@flock/wirespec 0.22.8 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clikt-clikt-mordant.mjs +39 -39
- package/colormath-root-colormath.mjs +433 -433
- package/kotlin-kotlin-stdlib.mjs +113 -80
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +6384 -6384
- package/kotlin-rgxgen.mjs +1756 -1756
- package/kotlinx-io-kotlinx-io-core.mjs +404 -404
- package/mordant-mordant.mjs +1202 -1202
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +552 -543
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +45 -45
- package/wirespec-src-compiler-emitters-kotlin.mjs +39 -39
- package/wirespec-src-compiler-emitters-python.mjs +29 -29
- package/wirespec-src-compiler-emitters-rust.mjs +25 -25
- package/wirespec-src-compiler-emitters-scala.mjs +523 -37
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +26 -26
- package/wirespec-src-compiler-emitters-wirespec.mjs +43 -43
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-converter-asyncapi.mjs +447 -447
- package/wirespec-src-converter-graphql.mjs +1500 -986
- package/wirespec-src-converter-graphql.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +332 -332
- package/wirespec-src-ide-lsp.mjs +767 -767
- package/wirespec-src-plugin-arguments.mjs +165 -154
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +87 -87
- package/wirespec-src-plugin-extensions.mjs +2603 -694
- package/wirespec-src-plugin-extensions.mjs.map +1 -1
- package/wirespec-src-plugin-npm.d.mts +13 -9
- package/wirespec-src-plugin-npm.mjs +24 -14
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +2 -2
|
@@ -381,28 +381,28 @@ function toOperationList(_this__u8e3s4) {
|
|
|
381
381
|
var tmp;
|
|
382
382
|
switch (element.f3_1) {
|
|
383
383
|
case 0:
|
|
384
|
-
tmp = _this__u8e3s4.
|
|
384
|
+
tmp = _this__u8e3s4.u3q();
|
|
385
385
|
break;
|
|
386
386
|
case 1:
|
|
387
|
-
tmp = _this__u8e3s4.
|
|
387
|
+
tmp = _this__u8e3s4.w3q();
|
|
388
388
|
break;
|
|
389
389
|
case 2:
|
|
390
|
-
tmp = _this__u8e3s4.
|
|
390
|
+
tmp = _this__u8e3s4.v3q();
|
|
391
391
|
break;
|
|
392
392
|
case 3:
|
|
393
|
-
tmp = _this__u8e3s4.
|
|
393
|
+
tmp = _this__u8e3s4.x3q();
|
|
394
394
|
break;
|
|
395
395
|
case 4:
|
|
396
|
-
tmp = _this__u8e3s4.
|
|
396
|
+
tmp = _this__u8e3s4.y3q();
|
|
397
397
|
break;
|
|
398
398
|
case 5:
|
|
399
|
-
tmp = _this__u8e3s4.
|
|
399
|
+
tmp = _this__u8e3s4.z3q();
|
|
400
400
|
break;
|
|
401
401
|
case 6:
|
|
402
|
-
tmp = _this__u8e3s4.
|
|
402
|
+
tmp = _this__u8e3s4.a3r();
|
|
403
403
|
break;
|
|
404
404
|
case 7:
|
|
405
|
-
tmp = _this__u8e3s4.
|
|
405
|
+
tmp = _this__u8e3s4.b3r();
|
|
406
406
|
break;
|
|
407
407
|
default:
|
|
408
408
|
noWhenBranchMatchedException();
|
|
@@ -414,7 +414,7 @@ function toOperationList(_this__u8e3s4) {
|
|
|
414
414
|
return filterNotNullValues(result);
|
|
415
415
|
}
|
|
416
416
|
function toName(_this__u8e3s4) {
|
|
417
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
417
|
+
var tmp0_safe_receiver = _this__u8e3s4.z3m();
|
|
418
418
|
var tmp;
|
|
419
419
|
if (tmp0_safe_receiver == null) {
|
|
420
420
|
tmp = null;
|
|
@@ -459,7 +459,7 @@ function sanitize(_this__u8e3s4) {
|
|
|
459
459
|
}
|
|
460
460
|
function flatMapRequests(_this__u8e3s4, f) {
|
|
461
461
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
462
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
462
|
+
var tmp0_elvis_lhs = _this__u8e3s4.z3o();
|
|
463
463
|
// Inline function 'kotlin.collections.flatMap' call
|
|
464
464
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
465
465
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -469,7 +469,7 @@ function flatMapRequests(_this__u8e3s4, f) {
|
|
|
469
469
|
while (_iterator__ex2g4s.u()) {
|
|
470
470
|
var element = _iterator__ex2g4s.v();
|
|
471
471
|
// Inline function 'kotlin.collections.component1' call
|
|
472
|
-
var path = element.n1().
|
|
472
|
+
var path = element.n1().z3l_1;
|
|
473
473
|
// Inline function 'kotlin.collections.component2' call
|
|
474
474
|
var pathItem = element.o1();
|
|
475
475
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -502,19 +502,19 @@ function flatMapRequests(_this__u8e3s4, f) {
|
|
|
502
502
|
return destination_1;
|
|
503
503
|
}
|
|
504
504
|
function FlattenRequest(path, pathItem, method, operation) {
|
|
505
|
-
this.
|
|
506
|
-
this.
|
|
507
|
-
this.
|
|
508
|
-
this.
|
|
505
|
+
this.q4s_1 = path;
|
|
506
|
+
this.r4s_1 = pathItem;
|
|
507
|
+
this.s4s_1 = method;
|
|
508
|
+
this.t4s_1 = operation;
|
|
509
509
|
}
|
|
510
510
|
protoOf(FlattenRequest).toString = function () {
|
|
511
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
511
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.q4s_1) + ', pathItem=' + toString(this.r4s_1) + ', method=' + this.s4s_1.toString() + ', operation=' + toString(this.t4s_1) + ')';
|
|
512
512
|
};
|
|
513
513
|
protoOf(FlattenRequest).hashCode = function () {
|
|
514
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
515
|
-
result = imul(result, 31) + hashCode(this.
|
|
516
|
-
result = imul(result, 31) + this.
|
|
517
|
-
result = imul(result, 31) + hashCode(this.
|
|
514
|
+
var result = Path__hashCode_impl_go73kd(this.q4s_1);
|
|
515
|
+
result = imul(result, 31) + hashCode(this.r4s_1) | 0;
|
|
516
|
+
result = imul(result, 31) + this.s4s_1.hashCode() | 0;
|
|
517
|
+
result = imul(result, 31) + hashCode(this.t4s_1) | 0;
|
|
518
518
|
return result;
|
|
519
519
|
};
|
|
520
520
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -522,19 +522,19 @@ protoOf(FlattenRequest).equals = function (other) {
|
|
|
522
522
|
return true;
|
|
523
523
|
if (!(other instanceof FlattenRequest))
|
|
524
524
|
return false;
|
|
525
|
-
if (!(this.
|
|
525
|
+
if (!(this.q4s_1 === other.q4s_1))
|
|
526
526
|
return false;
|
|
527
|
-
if (!equals(this.
|
|
527
|
+
if (!equals(this.r4s_1, other.r4s_1))
|
|
528
528
|
return false;
|
|
529
|
-
if (!this.
|
|
529
|
+
if (!this.s4s_1.equals(other.s4s_1))
|
|
530
530
|
return false;
|
|
531
|
-
if (!equals(this.
|
|
531
|
+
if (!equals(this.t4s_1, other.t4s_1))
|
|
532
532
|
return false;
|
|
533
533
|
return true;
|
|
534
534
|
};
|
|
535
535
|
function flatMapResponses(_this__u8e3s4, f) {
|
|
536
536
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
537
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
537
|
+
var tmp0_elvis_lhs = _this__u8e3s4.z3o();
|
|
538
538
|
// Inline function 'kotlin.collections.flatMap' call
|
|
539
539
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
540
540
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -544,7 +544,7 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
544
544
|
while (_iterator__ex2g4s.u()) {
|
|
545
545
|
var element = _iterator__ex2g4s.v();
|
|
546
546
|
// Inline function 'kotlin.collections.component1' call
|
|
547
|
-
var path = element.n1().
|
|
547
|
+
var path = element.n1().z3l_1;
|
|
548
548
|
// Inline function 'kotlin.collections.component2' call
|
|
549
549
|
var pathItem = element.o1();
|
|
550
550
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -570,7 +570,7 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
570
570
|
while (_iterator__ex2g4s_1.u()) {
|
|
571
571
|
var item = _iterator__ex2g4s_1.v();
|
|
572
572
|
// Inline function 'kotlin.collections.component1' call
|
|
573
|
-
var statusCode = item.n1().
|
|
573
|
+
var statusCode = item.n1().d3m_1;
|
|
574
574
|
// Inline function 'kotlin.collections.component2' call
|
|
575
575
|
var response = item.o1();
|
|
576
576
|
var tmp$ret$17 = new FlattenResponse(path, pathItem, method, operation, statusCode, response);
|
|
@@ -594,23 +594,23 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
594
594
|
return destination_2;
|
|
595
595
|
}
|
|
596
596
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response) {
|
|
597
|
-
this.
|
|
598
|
-
this.
|
|
599
|
-
this.
|
|
600
|
-
this.
|
|
601
|
-
this.
|
|
602
|
-
this.
|
|
597
|
+
this.u4s_1 = path;
|
|
598
|
+
this.v4s_1 = pathItem;
|
|
599
|
+
this.w4s_1 = method;
|
|
600
|
+
this.x4s_1 = operation;
|
|
601
|
+
this.y4s_1 = statusCode;
|
|
602
|
+
this.z4s_1 = response;
|
|
603
603
|
}
|
|
604
604
|
protoOf(FlattenResponse).toString = function () {
|
|
605
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
605
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.u4s_1) + ', pathItem=' + toString(this.v4s_1) + ', method=' + this.w4s_1.toString() + ', operation=' + toString(this.x4s_1) + ', statusCode=' + StatusCode__toString_impl_6caewy(this.y4s_1) + ', response=' + toString(this.z4s_1) + ')';
|
|
606
606
|
};
|
|
607
607
|
protoOf(FlattenResponse).hashCode = function () {
|
|
608
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
609
|
-
result = imul(result, 31) + hashCode(this.
|
|
610
|
-
result = imul(result, 31) + this.
|
|
611
|
-
result = imul(result, 31) + hashCode(this.
|
|
612
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
613
|
-
result = imul(result, 31) + hashCode(this.
|
|
608
|
+
var result = Path__hashCode_impl_go73kd(this.u4s_1);
|
|
609
|
+
result = imul(result, 31) + hashCode(this.v4s_1) | 0;
|
|
610
|
+
result = imul(result, 31) + this.w4s_1.hashCode() | 0;
|
|
611
|
+
result = imul(result, 31) + hashCode(this.x4s_1) | 0;
|
|
612
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.y4s_1) | 0;
|
|
613
|
+
result = imul(result, 31) + hashCode(this.z4s_1) | 0;
|
|
614
614
|
return result;
|
|
615
615
|
};
|
|
616
616
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -618,17 +618,17 @@ protoOf(FlattenResponse).equals = function (other) {
|
|
|
618
618
|
return true;
|
|
619
619
|
if (!(other instanceof FlattenResponse))
|
|
620
620
|
return false;
|
|
621
|
-
if (!(this.
|
|
621
|
+
if (!(this.u4s_1 === other.u4s_1))
|
|
622
622
|
return false;
|
|
623
|
-
if (!equals(this.
|
|
623
|
+
if (!equals(this.v4s_1, other.v4s_1))
|
|
624
624
|
return false;
|
|
625
|
-
if (!this.
|
|
625
|
+
if (!this.w4s_1.equals(other.w4s_1))
|
|
626
626
|
return false;
|
|
627
|
-
if (!equals(this.
|
|
627
|
+
if (!equals(this.x4s_1, other.x4s_1))
|
|
628
628
|
return false;
|
|
629
|
-
if (!(this.
|
|
629
|
+
if (!(this.y4s_1 === other.y4s_1))
|
|
630
630
|
return false;
|
|
631
|
-
if (!equals(this.
|
|
631
|
+
if (!equals(this.z4s_1, other.z4s_1))
|
|
632
632
|
return false;
|
|
633
633
|
return true;
|
|
634
634
|
};
|
|
@@ -637,7 +637,7 @@ function toDict(_this__u8e3s4, isNullable) {
|
|
|
637
637
|
}
|
|
638
638
|
function getReference(_this__u8e3s4) {
|
|
639
639
|
// Inline function 'kotlin.let' call
|
|
640
|
-
var it = split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
640
|
+
var it = split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.i3m()), ['/']);
|
|
641
641
|
var tmp;
|
|
642
642
|
if (_this__u8e3s4 instanceof OpenAPIV20Reference) {
|
|
643
643
|
tmp = getOrNull(it, 2);
|
|
@@ -648,7 +648,7 @@ function getReference(_this__u8e3s4) {
|
|
|
648
648
|
var tmp_0;
|
|
649
649
|
if (tmp0_elvis_lhs == null) {
|
|
650
650
|
// Inline function 'kotlin.error' call
|
|
651
|
-
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
651
|
+
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe(_this__u8e3s4.i3m());
|
|
652
652
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
653
653
|
} else {
|
|
654
654
|
tmp_0 = tmp0_elvis_lhs;
|
|
@@ -889,25 +889,25 @@ function toDescriptionAnnotationList(_this__u8e3s4) {
|
|
|
889
889
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
890
890
|
}
|
|
891
891
|
function LinkInfo(name, operationId, operationRef, parameters, requestBody, description, serverUrl) {
|
|
892
|
-
this.
|
|
893
|
-
this.
|
|
894
|
-
this.
|
|
895
|
-
this.
|
|
896
|
-
this.
|
|
897
|
-
this.
|
|
898
|
-
this.
|
|
892
|
+
this.a4t_1 = name;
|
|
893
|
+
this.b4t_1 = operationId;
|
|
894
|
+
this.c4t_1 = operationRef;
|
|
895
|
+
this.d4t_1 = parameters;
|
|
896
|
+
this.e4t_1 = requestBody;
|
|
897
|
+
this.f4t_1 = description;
|
|
898
|
+
this.g4t_1 = serverUrl;
|
|
899
899
|
}
|
|
900
900
|
protoOf(LinkInfo).toString = function () {
|
|
901
|
-
return 'LinkInfo(name=' + this.
|
|
901
|
+
return 'LinkInfo(name=' + this.a4t_1 + ', operationId=' + this.b4t_1 + ', operationRef=' + this.c4t_1 + ', parameters=' + toString(this.d4t_1) + ', requestBody=' + this.e4t_1 + ', description=' + this.f4t_1 + ', serverUrl=' + this.g4t_1 + ')';
|
|
902
902
|
};
|
|
903
903
|
protoOf(LinkInfo).hashCode = function () {
|
|
904
|
-
var result = getStringHashCode(this.
|
|
905
|
-
result = imul(result, 31) + (this.
|
|
906
|
-
result = imul(result, 31) + (this.
|
|
907
|
-
result = imul(result, 31) + hashCode(this.
|
|
908
|
-
result = imul(result, 31) + (this.
|
|
909
|
-
result = imul(result, 31) + (this.
|
|
910
|
-
result = imul(result, 31) + (this.
|
|
904
|
+
var result = getStringHashCode(this.a4t_1);
|
|
905
|
+
result = imul(result, 31) + (this.b4t_1 == null ? 0 : getStringHashCode(this.b4t_1)) | 0;
|
|
906
|
+
result = imul(result, 31) + (this.c4t_1 == null ? 0 : getStringHashCode(this.c4t_1)) | 0;
|
|
907
|
+
result = imul(result, 31) + hashCode(this.d4t_1) | 0;
|
|
908
|
+
result = imul(result, 31) + (this.e4t_1 == null ? 0 : getStringHashCode(this.e4t_1)) | 0;
|
|
909
|
+
result = imul(result, 31) + (this.f4t_1 == null ? 0 : getStringHashCode(this.f4t_1)) | 0;
|
|
910
|
+
result = imul(result, 31) + (this.g4t_1 == null ? 0 : getStringHashCode(this.g4t_1)) | 0;
|
|
911
911
|
return result;
|
|
912
912
|
};
|
|
913
913
|
protoOf(LinkInfo).equals = function (other) {
|
|
@@ -915,19 +915,19 @@ protoOf(LinkInfo).equals = function (other) {
|
|
|
915
915
|
return true;
|
|
916
916
|
if (!(other instanceof LinkInfo))
|
|
917
917
|
return false;
|
|
918
|
-
if (!(this.
|
|
918
|
+
if (!(this.a4t_1 === other.a4t_1))
|
|
919
919
|
return false;
|
|
920
|
-
if (!(this.
|
|
920
|
+
if (!(this.b4t_1 == other.b4t_1))
|
|
921
921
|
return false;
|
|
922
|
-
if (!(this.
|
|
922
|
+
if (!(this.c4t_1 == other.c4t_1))
|
|
923
923
|
return false;
|
|
924
|
-
if (!equals(this.
|
|
924
|
+
if (!equals(this.d4t_1, other.d4t_1))
|
|
925
925
|
return false;
|
|
926
|
-
if (!(this.
|
|
926
|
+
if (!(this.e4t_1 == other.e4t_1))
|
|
927
927
|
return false;
|
|
928
|
-
if (!(this.
|
|
928
|
+
if (!(this.f4t_1 == other.f4t_1))
|
|
929
929
|
return false;
|
|
930
|
-
if (!(this.
|
|
930
|
+
if (!(this.g4t_1 == other.g4t_1))
|
|
931
931
|
return false;
|
|
932
932
|
return true;
|
|
933
933
|
};
|
|
@@ -962,8 +962,8 @@ function findLinks(_this__u8e3s4) {
|
|
|
962
962
|
}
|
|
963
963
|
function toAnnotation(_this__u8e3s4) {
|
|
964
964
|
_init_properties_Utils_kt__jo07cx();
|
|
965
|
-
var params = mutableListOf([new Parameter('default', new Single(_this__u8e3s4.
|
|
966
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
965
|
+
var params = mutableListOf([new Parameter('default', new Single(_this__u8e3s4.a4t_1))]);
|
|
966
|
+
var tmp0_safe_receiver = _this__u8e3s4.b4t_1;
|
|
967
967
|
if (tmp0_safe_receiver == null)
|
|
968
968
|
null;
|
|
969
969
|
else {
|
|
@@ -972,7 +972,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
972
972
|
var element = new Parameter('operationId', new Single(tmp0_safe_receiver));
|
|
973
973
|
params.x(element);
|
|
974
974
|
}
|
|
975
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
975
|
+
var tmp1_safe_receiver = _this__u8e3s4.c4t_1;
|
|
976
976
|
if (tmp1_safe_receiver == null)
|
|
977
977
|
null;
|
|
978
978
|
else {
|
|
@@ -982,9 +982,9 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
982
982
|
params.x(element_0);
|
|
983
983
|
}
|
|
984
984
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
985
|
-
if (!_this__u8e3s4.
|
|
985
|
+
if (!_this__u8e3s4.d4t_1.r()) {
|
|
986
986
|
// Inline function 'kotlin.collections.map' call
|
|
987
|
-
var this_0 = _this__u8e3s4.
|
|
987
|
+
var this_0 = _this__u8e3s4.d4t_1;
|
|
988
988
|
// Inline function 'kotlin.collections.mapTo' call
|
|
989
989
|
var destination = ArrayList_init_$Create$(this_0.c1());
|
|
990
990
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1002,7 +1002,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
1002
1002
|
var element_1 = new Parameter('parameters', new Dict_0(destination));
|
|
1003
1003
|
params.x(element_1);
|
|
1004
1004
|
}
|
|
1005
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
1005
|
+
var tmp2_safe_receiver = _this__u8e3s4.e4t_1;
|
|
1006
1006
|
if (tmp2_safe_receiver == null)
|
|
1007
1007
|
null;
|
|
1008
1008
|
else {
|
|
@@ -1011,7 +1011,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
1011
1011
|
var element_2 = new Parameter('requestBody', new Single(tmp2_safe_receiver));
|
|
1012
1012
|
params.x(element_2);
|
|
1013
1013
|
}
|
|
1014
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
1014
|
+
var tmp3_safe_receiver = _this__u8e3s4.f4t_1;
|
|
1015
1015
|
if (tmp3_safe_receiver == null)
|
|
1016
1016
|
null;
|
|
1017
1017
|
else {
|
|
@@ -1020,7 +1020,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
1020
1020
|
var element_3 = new Parameter('description', new Single(tmp3_safe_receiver));
|
|
1021
1021
|
params.x(element_3);
|
|
1022
1022
|
}
|
|
1023
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
1023
|
+
var tmp4_safe_receiver = _this__u8e3s4.g4t_1;
|
|
1024
1024
|
if (tmp4_safe_receiver == null)
|
|
1025
1025
|
null;
|
|
1026
1026
|
else {
|
|
@@ -1481,7 +1481,7 @@ function toProperties($this, $receiver) {
|
|
|
1481
1481
|
var it = toSchemaOrReference($this, $receiver.qp_1);
|
|
1482
1482
|
var tmp_0;
|
|
1483
1483
|
if (it instanceof OpenAPIV20Schema) {
|
|
1484
|
-
tmp_0 = it.
|
|
1484
|
+
tmp_0 = it.l3s(VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription($receiver.op_1), toSchemaDefault($receiver.rp_1));
|
|
1485
1485
|
} else {
|
|
1486
1486
|
if (it instanceof OpenAPIV20Reference) {
|
|
1487
1487
|
tmp_0 = it;
|
|
@@ -1722,7 +1722,7 @@ function emitParameter($this, $receiver, location) {
|
|
|
1722
1722
|
tmp_0 = emit;
|
|
1723
1723
|
} else {
|
|
1724
1724
|
if (emit instanceof OpenAPIV20Schema) {
|
|
1725
|
-
tmp_0 = emit.
|
|
1725
|
+
tmp_0 = emit.v3r_1;
|
|
1726
1726
|
} else {
|
|
1727
1727
|
noWhenBranchMatchedException();
|
|
1728
1728
|
}
|
|
@@ -1910,14 +1910,14 @@ function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
|
1910
1910
|
}
|
|
1911
1911
|
function OpenAPIV2Emitter() {
|
|
1912
1912
|
OpenAPIV2Emitter_instance = this;
|
|
1913
|
-
this.
|
|
1914
|
-
this.
|
|
1913
|
+
this.h4t_1 = FileExtension_JSON_getInstance();
|
|
1914
|
+
this.i4t_1 = true;
|
|
1915
1915
|
}
|
|
1916
1916
|
protoOf(OpenAPIV2Emitter).xp = function () {
|
|
1917
|
-
return this.
|
|
1917
|
+
return this.h4t_1;
|
|
1918
1918
|
};
|
|
1919
1919
|
protoOf(OpenAPIV2Emitter).wp = function () {
|
|
1920
|
-
return this.
|
|
1920
|
+
return this.i4t_1;
|
|
1921
1921
|
};
|
|
1922
1922
|
protoOf(OpenAPIV2Emitter).uo = function (ast, logger) {
|
|
1923
1923
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
@@ -1935,10 +1935,10 @@ protoOf(OpenAPIV2Emitter).uo = function (ast, logger) {
|
|
|
1935
1935
|
}
|
|
1936
1936
|
// Inline function 'kotlin.let' call
|
|
1937
1937
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
1938
|
-
var tmp = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().
|
|
1938
|
+
var tmp = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().h4t_1.yr_1;
|
|
1939
1939
|
var tmp0_0 = get_json();
|
|
1940
1940
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
1941
|
-
var value = OpenAPIV2Emitter_getInstance().
|
|
1941
|
+
var value = OpenAPIV2Emitter_getInstance().j4t(it, logger);
|
|
1942
1942
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
1943
1943
|
var this_1 = tmp0_0.l25();
|
|
1944
1944
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -1949,7 +1949,7 @@ protoOf(OpenAPIV2Emitter).uo = function (ast, logger) {
|
|
|
1949
1949
|
var it_0 = new Emitted(tmp, tmp$ret$6);
|
|
1950
1950
|
return nonEmptyListOf(it_0, []);
|
|
1951
1951
|
};
|
|
1952
|
-
protoOf(OpenAPIV2Emitter).
|
|
1952
|
+
protoOf(OpenAPIV2Emitter).j4t = function (statements, logger) {
|
|
1953
1953
|
var tmp0_info = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, VOID, '0.0.0');
|
|
1954
1954
|
var tmp1_consumes = listOf('application/json');
|
|
1955
1955
|
var tmp2_produces = listOf('application/json');
|
|
@@ -1965,7 +1965,7 @@ function OpenAPIV2Emitter_getInstance() {
|
|
|
1965
1965
|
}
|
|
1966
1966
|
function OpenAPIV2Parser$parse$lambda($strict) {
|
|
1967
1967
|
return function (it) {
|
|
1968
|
-
return new NonEmptyList(OpenAPIV2Parser_instance.
|
|
1968
|
+
return new NonEmptyList(OpenAPIV2Parser_instance.k4t((new OpenAPIV2(jsonDefault($strict))).t3o(it)));
|
|
1969
1969
|
};
|
|
1970
1970
|
}
|
|
1971
1971
|
function OpenAPIV2Parser() {
|
|
@@ -1973,7 +1973,7 @@ function OpenAPIV2Parser() {
|
|
|
1973
1973
|
protoOf(OpenAPIV2Parser).u31 = function (moduleContent, strict) {
|
|
1974
1974
|
return parseOpenApi(moduleContent, OpenAPIV2Parser$parse$lambda(strict));
|
|
1975
1975
|
};
|
|
1976
|
-
protoOf(OpenAPIV2Parser).
|
|
1976
|
+
protoOf(OpenAPIV2Parser).k4t = function (_this__u8e3s4) {
|
|
1977
1977
|
// Inline function 'kotlin.collections.reduce' call
|
|
1978
1978
|
var iterator = listOf_0([parseEndpoints(_this__u8e3s4), parseParameters(_this__u8e3s4), parseRequestBody(_this__u8e3s4), parseResponseBody(_this__u8e3s4), parseDefinitions(_this__u8e3s4)]).t();
|
|
1979
1979
|
if (!iterator.u())
|
|
@@ -2009,7 +2009,7 @@ function OpenAPIV2Parser_getInstance() {
|
|
|
2009
2009
|
}
|
|
2010
2010
|
function parseEndpoints(_this__u8e3s4) {
|
|
2011
2011
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2012
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2012
|
+
var tmp0_elvis_lhs = _this__u8e3s4.z3o();
|
|
2013
2013
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2014
2014
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2015
2015
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2019,7 +2019,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2019
2019
|
while (_iterator__ex2g4s.u()) {
|
|
2020
2020
|
var element = _iterator__ex2g4s.v();
|
|
2021
2021
|
// Inline function 'kotlin.collections.component1' call
|
|
2022
|
-
var path = element.n1().
|
|
2022
|
+
var path = element.n1().z3l_1;
|
|
2023
2023
|
// Inline function 'kotlin.collections.component2' call
|
|
2024
2024
|
var pathItem = element.o1();
|
|
2025
2025
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -2081,9 +2081,9 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2081
2081
|
// Inline function 'kotlin.let' call
|
|
2082
2082
|
var headers = new Shape(destination_4);
|
|
2083
2083
|
var tmp1_safe_receiver = operation instanceof OpenAPIV20Operation ? operation : null;
|
|
2084
|
-
var operationConsumes = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2084
|
+
var operationConsumes = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r3t_1;
|
|
2085
2085
|
var tmp2_safe_receiver = operation instanceof OpenAPIV20Operation ? operation : null;
|
|
2086
|
-
var operationProduces = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
2086
|
+
var operationProduces = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.s3t_1;
|
|
2087
2087
|
// Inline function 'kotlin.collections.filter' call
|
|
2088
2088
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2089
2089
|
var destination_5 = ArrayList_init_$Create$_0();
|
|
@@ -2101,7 +2101,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2101
2101
|
while (_iterator__ex2g4s_6.u()) {
|
|
2102
2102
|
var element_4 = _iterator__ex2g4s_6.v();
|
|
2103
2103
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2104
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
2104
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.w3o();
|
|
2105
2105
|
var tmp = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
2106
2106
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2107
2107
|
var tmp$ret$36 = operationConsumes == null ? emptyList() : operationConsumes;
|
|
@@ -2121,7 +2121,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2121
2121
|
while (_iterator__ex2g4s_7.u()) {
|
|
2122
2122
|
var item_1 = _iterator__ex2g4s_7.v();
|
|
2123
2123
|
var isNullable = false;
|
|
2124
|
-
var schema = element_4.
|
|
2124
|
+
var schema = element_4.l3t_1;
|
|
2125
2125
|
var tmp_1;
|
|
2126
2126
|
if (!(schema == null) ? isInterface(schema, Reference) : false) {
|
|
2127
2127
|
tmp_1 = toReference(_this__u8e3s4, schema, isNullable);
|
|
@@ -2174,11 +2174,11 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2174
2174
|
while (_iterator__ex2g4s_9.u()) {
|
|
2175
2175
|
var element_6 = _iterator__ex2g4s_9.v();
|
|
2176
2176
|
// Inline function 'kotlin.collections.component1' call
|
|
2177
|
-
var status = element_6.n1().
|
|
2177
|
+
var status = element_6.n1().d3m_1;
|
|
2178
2178
|
// Inline function 'kotlin.collections.component2' call
|
|
2179
2179
|
var res = element_6.o1();
|
|
2180
2180
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2181
|
-
var tmp0_elvis_lhs_3 = _this__u8e3s4.
|
|
2181
|
+
var tmp0_elvis_lhs_3 = _this__u8e3s4.x3o();
|
|
2182
2182
|
var tmp_4 = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
|
|
2183
2183
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2184
2184
|
var tmp$ret$58 = operationProduces == null ? emptyList() : operationProduces;
|
|
@@ -2197,7 +2197,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2197
2197
|
var _iterator__ex2g4s_10 = this_4.t();
|
|
2198
2198
|
while (_iterator__ex2g4s_10.u()) {
|
|
2199
2199
|
var item_2 = _iterator__ex2g4s_10.v();
|
|
2200
|
-
var tmp3_annotations = toDescriptionAnnotationList(res.
|
|
2200
|
+
var tmp3_annotations = toDescriptionAnnotationList(res.j3m());
|
|
2201
2201
|
var tmp4_status = _StatusCode___get_value__impl__we50mu(status);
|
|
2202
2202
|
var tmp0_safe_receiver = res.i1h();
|
|
2203
2203
|
var tmp_6;
|
|
@@ -2226,7 +2226,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2226
2226
|
var p0 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
2227
2227
|
var tmp5_headers = new Shape(p0);
|
|
2228
2228
|
var tmp1_safe_receiver_0 = res instanceof OpenAPIV20Response ? res : null;
|
|
2229
|
-
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
2229
|
+
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.n3u_1;
|
|
2230
2230
|
var tmp_7;
|
|
2231
2231
|
if (tmp2_safe_receiver_0 == null) {
|
|
2232
2232
|
tmp_7 = null;
|
|
@@ -2263,7 +2263,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2263
2263
|
}
|
|
2264
2264
|
}
|
|
2265
2265
|
var responses = list_1;
|
|
2266
|
-
var list_2 = listOf(new Endpoint(null, toDescriptionAnnotationList(operation.
|
|
2266
|
+
var list_2 = listOf(new Endpoint(null, toDescriptionAnnotationList(operation.j3m()), new DefinitionIdentifier(sanitize(name)), method, segments, query, headers, requests, responses));
|
|
2267
2267
|
addAll(destination_0, list_2);
|
|
2268
2268
|
}
|
|
2269
2269
|
var list_3 = destination_0;
|
|
@@ -2282,7 +2282,7 @@ function parseResponseBody(_this__u8e3s4) {
|
|
|
2282
2282
|
}
|
|
2283
2283
|
function parseDefinitions(_this__u8e3s4) {
|
|
2284
2284
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2285
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2285
|
+
var tmp0_elvis_lhs = _this__u8e3s4.y3o();
|
|
2286
2286
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2287
2287
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2288
2288
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -2318,7 +2318,7 @@ function parseDefinitions(_this__u8e3s4) {
|
|
|
2318
2318
|
var _iterator__ex2g4s_0 = destination.t();
|
|
2319
2319
|
while (_iterator__ex2g4s_0.u()) {
|
|
2320
2320
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
2321
|
-
var tmp0_subject = element_0.hf_1.
|
|
2321
|
+
var tmp0_subject = element_0.hf_1.p3m();
|
|
2322
2322
|
var tmp_0;
|
|
2323
2323
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
2324
2324
|
tmp_0 = true;
|
|
@@ -2416,7 +2416,7 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
2416
2416
|
var _iterator__ex2g4s_0 = parameters.t();
|
|
2417
2417
|
while (_iterator__ex2g4s_0.u()) {
|
|
2418
2418
|
var element = _iterator__ex2g4s_0.v();
|
|
2419
|
-
if (element.
|
|
2419
|
+
if (element.m3t_1 === param) {
|
|
2420
2420
|
tmp$ret$5 = element;
|
|
2421
2421
|
break $l$block;
|
|
2422
2422
|
}
|
|
@@ -2459,18 +2459,18 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
2459
2459
|
return destination;
|
|
2460
2460
|
}
|
|
2461
2461
|
function get_location(_this__u8e3s4) {
|
|
2462
|
-
return _this__u8e3s4.
|
|
2462
|
+
return _this__u8e3s4.k3t_1;
|
|
2463
2463
|
}
|
|
2464
2464
|
function toField(_this__u8e3s4, parameter, name) {
|
|
2465
2465
|
// Inline function 'kotlin.let' call
|
|
2466
2466
|
var schema = resolveParameter(_this__u8e3s4, parameter);
|
|
2467
|
-
var tmp0_elvis_lhs = parameter.
|
|
2467
|
+
var tmp0_elvis_lhs = parameter.r3s_1;
|
|
2468
2468
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
2469
2469
|
var tmp;
|
|
2470
|
-
if (!(parameter.
|
|
2471
|
-
tmp = new Custom(sanitize(className([name, 'Parameter', schema.
|
|
2470
|
+
if (!(parameter.i3t_1 == null)) {
|
|
2471
|
+
tmp = new Custom(sanitize(className([name, 'Parameter', schema.m3t_1])), isNullable);
|
|
2472
2472
|
} else {
|
|
2473
|
-
var tmp1_subject = schema.
|
|
2473
|
+
var tmp1_subject = schema.s3s_1;
|
|
2474
2474
|
var tmp_0;
|
|
2475
2475
|
switch (tmp1_subject == null ? -1 : tmp1_subject.f3_1) {
|
|
2476
2476
|
case 0:
|
|
@@ -2483,7 +2483,7 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2483
2483
|
tmp_0 = new Primitive(primitive, isNullable);
|
|
2484
2484
|
break;
|
|
2485
2485
|
case 4:
|
|
2486
|
-
var tmp2_safe_receiver = schema.
|
|
2486
|
+
var tmp2_safe_receiver = schema.t3s_1;
|
|
2487
2487
|
var tmp_1;
|
|
2488
2488
|
if (tmp2_safe_receiver == null) {
|
|
2489
2489
|
tmp_1 = null;
|
|
@@ -2537,8 +2537,8 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2537
2537
|
}
|
|
2538
2538
|
// Inline function 'kotlin.let' call
|
|
2539
2539
|
var it = tmp;
|
|
2540
|
-
var tmp0_identifier = new FieldIdentifier(parameter.
|
|
2541
|
-
var tmp1_annotations = toDescriptionAnnotationList(parameter.
|
|
2540
|
+
var tmp0_identifier = new FieldIdentifier(parameter.m3t_1);
|
|
2541
|
+
var tmp1_annotations = toDescriptionAnnotationList(parameter.q3s_1);
|
|
2542
2542
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
2543
2543
|
}
|
|
2544
2544
|
function toReference(_this__u8e3s4, reference, isNullable) {
|
|
@@ -2546,8 +2546,8 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2546
2546
|
var referencingObject = _destruct__k2r9zo.af();
|
|
2547
2547
|
var schema = _destruct__k2r9zo.bf();
|
|
2548
2548
|
var tmp;
|
|
2549
|
-
if (exists(schema.
|
|
2550
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2549
|
+
if (exists(schema.p3m())) {
|
|
2550
|
+
var additionalProperties = ensureNotNull(schema.p3m());
|
|
2551
2551
|
var tmp_0;
|
|
2552
2552
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
2553
2553
|
tmp_0 = new Dict(new Any(false), isNullable);
|
|
@@ -2563,7 +2563,7 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2563
2563
|
}
|
|
2564
2564
|
}
|
|
2565
2565
|
tmp = tmp_0;
|
|
2566
|
-
} else if (!(schema.
|
|
2566
|
+
} else if (!(schema.l3m() == null)) {
|
|
2567
2567
|
tmp = new Custom(sanitize(className([getReference(referencingObject)])), isNullable);
|
|
2568
2568
|
} else if (isPrimitive(get_primitiveType(schema))) {
|
|
2569
2569
|
tmp = new Primitive(toPrimitive_0(schema), isNullable);
|
|
@@ -2571,7 +2571,7 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2571
2571
|
var tmp0_subject = get_primitiveType(schema);
|
|
2572
2572
|
var tmp_1;
|
|
2573
2573
|
if ((tmp0_subject == null ? -1 : tmp0_subject.f3_1) === 4) {
|
|
2574
|
-
var items = schema.
|
|
2574
|
+
var items = schema.m3m();
|
|
2575
2575
|
var tmp_2;
|
|
2576
2576
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
2577
2577
|
tmp_2 = toIterable(toReference(_this__u8e3s4, items, false), isNullable);
|
|
@@ -2581,7 +2581,7 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2581
2581
|
} else {
|
|
2582
2582
|
if (items == null) {
|
|
2583
2583
|
// Inline function 'kotlin.error' call
|
|
2584
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.
|
|
2584
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.i3m());
|
|
2585
2585
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2586
2586
|
} else {
|
|
2587
2587
|
noWhenBranchMatchedException();
|
|
@@ -2604,20 +2604,20 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2604
2604
|
var tmp_3;
|
|
2605
2605
|
var tmp_4;
|
|
2606
2606
|
var tmp_5;
|
|
2607
|
-
var tmp0_safe_receiver = schema.
|
|
2607
|
+
var tmp0_safe_receiver = schema.n3m();
|
|
2608
2608
|
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c1()) === 1) {
|
|
2609
|
-
var tmp_6 = first(ensureNotNull(schema.
|
|
2609
|
+
var tmp_6 = first(ensureNotNull(schema.n3m()));
|
|
2610
2610
|
tmp_5 = isInterface(tmp_6, Reference);
|
|
2611
2611
|
} else {
|
|
2612
2612
|
tmp_5 = false;
|
|
2613
2613
|
}
|
|
2614
2614
|
if (tmp_5) {
|
|
2615
|
-
tmp_4 = schema.
|
|
2615
|
+
tmp_4 = schema.o3m() == null;
|
|
2616
2616
|
} else {
|
|
2617
2617
|
tmp_4 = false;
|
|
2618
2618
|
}
|
|
2619
2619
|
if (tmp_4) {
|
|
2620
|
-
tmp_3 = schema.
|
|
2620
|
+
tmp_3 = schema.l3m() == null;
|
|
2621
2621
|
} else {
|
|
2622
2622
|
tmp_3 = false;
|
|
2623
2623
|
}
|
|
@@ -2627,21 +2627,21 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2627
2627
|
tmp_2 = false;
|
|
2628
2628
|
}
|
|
2629
2629
|
if (tmp_2) {
|
|
2630
|
-
tmp_1 = schema.
|
|
2630
|
+
tmp_1 = schema.m3m() == null;
|
|
2631
2631
|
} else {
|
|
2632
2632
|
tmp_1 = false;
|
|
2633
2633
|
}
|
|
2634
2634
|
if (tmp_1) {
|
|
2635
|
-
tmp_0 = schema.
|
|
2635
|
+
tmp_0 = schema.p3m() == null;
|
|
2636
2636
|
} else {
|
|
2637
2637
|
tmp_0 = false;
|
|
2638
2638
|
}
|
|
2639
2639
|
if (tmp_0) {
|
|
2640
|
-
var tmp_7 = first(ensureNotNull(schema.
|
|
2640
|
+
var tmp_7 = first(ensureNotNull(schema.n3m()));
|
|
2641
2641
|
tmp = toReference(_this__u8e3s4, isInterface(tmp_7, Reference) ? tmp_7 : THROW_CCE(), isNullable);
|
|
2642
2642
|
} else {
|
|
2643
|
-
if (!(schema.
|
|
2644
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2643
|
+
if (!(schema.p3m() == null)) {
|
|
2644
|
+
var additionalProperties = ensureNotNull(schema.p3m());
|
|
2645
2645
|
var tmp_8;
|
|
2646
2646
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
2647
2647
|
tmp_8 = new Dict(new Any(false), isNullable);
|
|
@@ -2652,7 +2652,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2652
2652
|
if (isInterface(additionalProperties, Schema)) {
|
|
2653
2653
|
// Inline function 'kotlin.takeIf' call
|
|
2654
2654
|
var tmp_9;
|
|
2655
|
-
if (isPrimitive(get_primitiveType(additionalProperties)) || !(additionalProperties.
|
|
2655
|
+
if (isPrimitive(get_primitiveType(additionalProperties)) || !(additionalProperties.o3m() == null)) {
|
|
2656
2656
|
tmp_9 = additionalProperties;
|
|
2657
2657
|
} else {
|
|
2658
2658
|
tmp_9 = null;
|
|
@@ -2674,9 +2674,9 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2674
2674
|
}
|
|
2675
2675
|
tmp = tmp_8;
|
|
2676
2676
|
} else {
|
|
2677
|
-
if (!(schema.
|
|
2677
|
+
if (!(schema.l3m() == null)) {
|
|
2678
2678
|
var tmp_11;
|
|
2679
|
-
if (!(schema.
|
|
2679
|
+
if (!(schema.p3m() == null)) {
|
|
2680
2680
|
tmp_11 = new Dict(new Custom(sanitize(name), false), isNullable);
|
|
2681
2681
|
} else {
|
|
2682
2682
|
tmp_11 = new Custom(sanitize(name), isNullable);
|
|
@@ -2691,7 +2691,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2691
2691
|
case 1:
|
|
2692
2692
|
case 3:
|
|
2693
2693
|
var tmp_13;
|
|
2694
|
-
if (!(schema.
|
|
2694
|
+
if (!(schema.p3m() == null)) {
|
|
2695
2695
|
tmp_13 = new Dict(new Primitive(toPrimitive_0(schema), false), isNullable);
|
|
2696
2696
|
} else {
|
|
2697
2697
|
tmp_13 = new Primitive(toPrimitive_0(schema), isNullable);
|
|
@@ -2702,17 +2702,17 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2702
2702
|
case -1:
|
|
2703
2703
|
case 5:
|
|
2704
2704
|
var tmp_14;
|
|
2705
|
-
var tmp_15 = schema.
|
|
2705
|
+
var tmp_15 = schema.p3m();
|
|
2706
2706
|
if (!(tmp_15 == null) ? isInterface(tmp_15, BooleanValue) : false) {
|
|
2707
2707
|
var tmp_16;
|
|
2708
|
-
if (!(schema.
|
|
2708
|
+
if (!(schema.p3m() == null)) {
|
|
2709
2709
|
tmp_16 = new Dict(new Any(isNullable), false);
|
|
2710
2710
|
} else {
|
|
2711
2711
|
tmp_16 = new Any(isNullable);
|
|
2712
2712
|
}
|
|
2713
2713
|
tmp_14 = tmp_16;
|
|
2714
2714
|
} else {
|
|
2715
|
-
if (!(schema.
|
|
2715
|
+
if (!(schema.p3m() == null)) {
|
|
2716
2716
|
new Dict(new Custom(sanitize(name), isNullable), false);
|
|
2717
2717
|
}
|
|
2718
2718
|
tmp_14 = new Custom(sanitize(name), isNullable);
|
|
@@ -2721,7 +2721,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2721
2721
|
tmp_12 = tmp_14;
|
|
2722
2722
|
break;
|
|
2723
2723
|
case 4:
|
|
2724
|
-
var items = schema.
|
|
2724
|
+
var items = schema.m3m();
|
|
2725
2725
|
var tmp_17;
|
|
2726
2726
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
2727
2727
|
tmp_17 = toIterable(toReference(_this__u8e3s4, items, false), isNullable);
|
|
@@ -2781,10 +2781,10 @@ function toField_0(_this__u8e3s4, header, identifier) {
|
|
|
2781
2781
|
}
|
|
2782
2782
|
var v20 = tmp;
|
|
2783
2783
|
var tmp5_identifier = new FieldIdentifier(identifier);
|
|
2784
|
-
var tmp6_annotations = toDescriptionAnnotationList(header.
|
|
2784
|
+
var tmp6_annotations = toDescriptionAnnotationList(header.w3u_1);
|
|
2785
2785
|
var tmp_0;
|
|
2786
|
-
if (v20.
|
|
2787
|
-
var tmp2_safe_receiver = v20.
|
|
2786
|
+
if (v20.x3u_1.f3_1 === 4) {
|
|
2787
|
+
var tmp2_safe_receiver = v20.z3u_1;
|
|
2788
2788
|
var tmp_1;
|
|
2789
2789
|
if (tmp2_safe_receiver == null) {
|
|
2790
2790
|
tmp_1 = null;
|
|
@@ -2868,17 +2868,17 @@ function resolveParameter(_this__u8e3s4, parameterOrReference) {
|
|
|
2868
2868
|
}
|
|
2869
2869
|
function get_primitiveType(_this__u8e3s4) {
|
|
2870
2870
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof OpenAPIV20Schema ? _this__u8e3s4 : null;
|
|
2871
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2871
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h3r_1;
|
|
2872
2872
|
}
|
|
2873
2873
|
function flatten(_this__u8e3s4, schemaObject, name) {
|
|
2874
2874
|
var tmp;
|
|
2875
|
-
if (exists(schemaObject.
|
|
2876
|
-
var tmp0_subject = schemaObject.
|
|
2875
|
+
if (exists(schemaObject.p3m())) {
|
|
2876
|
+
var tmp0_subject = schemaObject.p3m();
|
|
2877
2877
|
var tmp_0;
|
|
2878
2878
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
2879
2879
|
tmp_0 = emptyList();
|
|
2880
2880
|
} else {
|
|
2881
|
-
var tmp1_safe_receiver = schemaObject.
|
|
2881
|
+
var tmp1_safe_receiver = schemaObject.p3m();
|
|
2882
2882
|
var tmp_1;
|
|
2883
2883
|
if (tmp1_safe_receiver == null) {
|
|
2884
2884
|
tmp_1 = null;
|
|
@@ -2893,7 +2893,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2893
2893
|
} else {
|
|
2894
2894
|
// Inline function 'kotlin.takeIf' call
|
|
2895
2895
|
var tmp_3;
|
|
2896
|
-
if (!(tmp2_safe_receiver.
|
|
2896
|
+
if (!(tmp2_safe_receiver.o3m() == null)) {
|
|
2897
2897
|
tmp_3 = tmp2_safe_receiver;
|
|
2898
2898
|
} else {
|
|
2899
2899
|
tmp_3 = null;
|
|
@@ -2912,11 +2912,11 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2912
2912
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
2913
2913
|
}
|
|
2914
2914
|
tmp = tmp_0;
|
|
2915
|
-
} else if (!(schemaObject.
|
|
2916
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
2915
|
+
} else if (!(schemaObject.n3m() == null)) {
|
|
2916
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.j3m());
|
|
2917
2917
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
2918
2918
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2919
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
2919
|
+
var tmp0_elvis_lhs = schemaObject.n3m();
|
|
2920
2920
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2921
2921
|
var tmp0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2922
2922
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2950,7 +2950,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2950
2950
|
}
|
|
2951
2951
|
var tmp_8 = listOf(new Type(null, tmp_5, tmp_6, new Shape(list_0), emptyList()));
|
|
2952
2952
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2953
|
-
var tmp0_0 = ensureNotNull(schemaObject.
|
|
2953
|
+
var tmp0_0 = ensureNotNull(schemaObject.n3m());
|
|
2954
2954
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2955
2955
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
2956
2956
|
var _iterator__ex2g4s_1 = tmp0_0.t();
|
|
@@ -2962,7 +2962,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2962
2962
|
} else {
|
|
2963
2963
|
if (isInterface(element_0, Schema)) {
|
|
2964
2964
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2965
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
2965
|
+
var tmp0_elvis_lhs_0 = element_0.o3m();
|
|
2966
2966
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2967
2967
|
var tmp0_1 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2968
2968
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2997,9 +2997,9 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2997
2997
|
addAll(destination_0, list_2);
|
|
2998
2998
|
}
|
|
2999
2999
|
tmp = plus_0(tmp_8, destination_0);
|
|
3000
|
-
} else if (!(schemaObject.
|
|
3000
|
+
} else if (!(schemaObject.l3m() == null)) {
|
|
3001
3001
|
// Inline function 'kotlin.collections.map' call
|
|
3002
|
-
var this_0 = ensureNotNull(schemaObject.
|
|
3002
|
+
var this_0 = ensureNotNull(schemaObject.l3m());
|
|
3003
3003
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3004
3004
|
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3005
3005
|
var _iterator__ex2g4s_3 = this_0.t();
|
|
@@ -3010,7 +3010,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
3010
3010
|
}
|
|
3011
3011
|
// Inline function 'kotlin.let' call
|
|
3012
3012
|
var it = toSet(destination_2);
|
|
3013
|
-
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.
|
|
3013
|
+
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.j3m()), new DefinitionIdentifier(sanitize(name)), it));
|
|
3014
3014
|
} else {
|
|
3015
3015
|
var tmp5_subject = get_primitiveType(schemaObject);
|
|
3016
3016
|
var tmp_11;
|
|
@@ -3019,7 +3019,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
3019
3019
|
case 5:
|
|
3020
3020
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3021
3021
|
|
|
3022
|
-
var tmp0_elvis_lhs_1 = schemaObject.
|
|
3022
|
+
var tmp0_elvis_lhs_1 = schemaObject.o3m();
|
|
3023
3023
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3024
3024
|
|
|
3025
3025
|
var tmp0_2 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
@@ -3040,11 +3040,11 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
3040
3040
|
}
|
|
3041
3041
|
|
|
3042
3042
|
var fields = destination_3;
|
|
3043
|
-
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.
|
|
3043
|
+
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.j3m()), new DefinitionIdentifier(sanitize(name)), new Shape(toField_1(_this__u8e3s4, schemaObject, name)), emptyList()));
|
|
3044
3044
|
tmp_11 = plus_0(schema, fields);
|
|
3045
3045
|
break;
|
|
3046
3046
|
case 4:
|
|
3047
|
-
var it_0 = schemaObject.
|
|
3047
|
+
var it_0 = schemaObject.m3m();
|
|
3048
3048
|
var tmp_12;
|
|
3049
3049
|
if (!(it_0 == null) ? isInterface(it_0, Reference) : false) {
|
|
3050
3050
|
tmp_12 = emptyList();
|
|
@@ -3084,7 +3084,7 @@ function resolveParameterObject(_this__u8e3s4, reference) {
|
|
|
3084
3084
|
var tmp_0;
|
|
3085
3085
|
if (tmp2_elvis_lhs == null) {
|
|
3086
3086
|
// Inline function 'kotlin.error' call
|
|
3087
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
3087
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.i3m());
|
|
3088
3088
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
3089
3089
|
} else {
|
|
3090
3090
|
tmp_0 = tmp2_elvis_lhs;
|
|
@@ -3096,13 +3096,13 @@ function toPrimitive(_this__u8e3s4) {
|
|
|
3096
3096
|
var tmp;
|
|
3097
3097
|
switch (tmp0_subject == null ? -1 : tmp0_subject.f3_1) {
|
|
3098
3098
|
case 0:
|
|
3099
|
-
tmp = _this__u8e3s4.
|
|
3099
|
+
tmp = _this__u8e3s4.r3m() == null && _this__u8e3s4.q3m() === 'binary' ? Bytes_instance : stringType(_this__u8e3s4.r3m(), _this__u8e3s4.q3m());
|
|
3100
3100
|
break;
|
|
3101
3101
|
case 2:
|
|
3102
|
-
tmp = new Integer(_this__u8e3s4.
|
|
3102
|
+
tmp = new Integer(_this__u8e3s4.q3m() === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
3103
3103
|
break;
|
|
3104
3104
|
case 1:
|
|
3105
|
-
tmp = new Number_0(_this__u8e3s4.
|
|
3105
|
+
tmp = new Number_0(_this__u8e3s4.q3m() === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
3106
3106
|
break;
|
|
3107
3107
|
case 3:
|
|
3108
3108
|
tmp = Boolean_instance;
|
|
@@ -3132,12 +3132,12 @@ function toPrimitive_0(_this__u8e3s4) {
|
|
|
3132
3132
|
return toPrimitive(isInterface(_this__u8e3s4, OpenAPIV20Base) ? _this__u8e3s4 : THROW_CCE());
|
|
3133
3133
|
}
|
|
3134
3134
|
function resolveSchemaRef(_this__u8e3s4, reference) {
|
|
3135
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3135
|
+
var tmp0_safe_receiver = _this__u8e3s4.y3o();
|
|
3136
3136
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t2(getReference(reference));
|
|
3137
3137
|
var tmp;
|
|
3138
3138
|
if (tmp1_elvis_lhs == null) {
|
|
3139
3139
|
// Inline function 'kotlin.error' call
|
|
3140
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
3140
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.i3m());
|
|
3141
3141
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
3142
3142
|
} else {
|
|
3143
3143
|
tmp = tmp1_elvis_lhs;
|
|
@@ -3216,7 +3216,7 @@ function resolveResponseObject(_this__u8e3s4, reference) {
|
|
|
3216
3216
|
var tmp;
|
|
3217
3217
|
if (tmp1_elvis_lhs == null) {
|
|
3218
3218
|
// Inline function 'kotlin.error' call
|
|
3219
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
3219
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.i3m());
|
|
3220
3220
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
3221
3221
|
} else {
|
|
3222
3222
|
tmp = tmp1_elvis_lhs;
|
|
@@ -3244,7 +3244,7 @@ function resolve_0(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
3244
3244
|
}
|
|
3245
3245
|
function toField_1(_this__u8e3s4, schema, name) {
|
|
3246
3246
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3247
|
-
var tmp0_elvis_lhs = schema.
|
|
3247
|
+
var tmp0_elvis_lhs = schema.o3m();
|
|
3248
3248
|
// Inline function 'kotlin.collections.map' call
|
|
3249
3249
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3250
3250
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3263,10 +3263,10 @@ function toField_1(_this__u8e3s4, schema, name) {
|
|
|
3263
3263
|
var tmp;
|
|
3264
3264
|
if (isInterface(value, Schema)) {
|
|
3265
3265
|
// Inline function 'kotlin.let' call
|
|
3266
|
-
var reference = !(value.
|
|
3266
|
+
var reference = !(value.l3m() == 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);
|
|
3267
3267
|
var tmp1_identifier = new FieldIdentifier(key);
|
|
3268
3268
|
var tmp2_annotations = emptyList();
|
|
3269
|
-
var tmp0_safe_receiver_0 = value.
|
|
3269
|
+
var tmp0_safe_receiver_0 = value.k3m();
|
|
3270
3270
|
var tmp3_defaultValue = tmp0_safe_receiver_0 == null ? null : toDefaultValue(tmp0_safe_receiver_0, reference);
|
|
3271
3271
|
tmp = new Field(tmp2_annotations, tmp1_identifier, reference, tmp3_defaultValue);
|
|
3272
3272
|
} else {
|
|
@@ -3286,9 +3286,9 @@ function toField_1(_this__u8e3s4, schema, name) {
|
|
|
3286
3286
|
}
|
|
3287
3287
|
function parseParameters$lambda($this_parseParameters) {
|
|
3288
3288
|
return function ($this$flatMapRequests) {
|
|
3289
|
-
var parameters = plus_0(resolveParameters($this_parseParameters, $this$flatMapRequests.
|
|
3290
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
3291
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
3289
|
+
var parameters = plus_0(resolveParameters($this_parseParameters, $this$flatMapRequests.r4s_1.o1i()), resolveParameters($this_parseParameters, $this$flatMapRequests.t4s_1.o1i()));
|
|
3290
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.t4s_1);
|
|
3291
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.q4s_1) + $this$flatMapRequests.s4s_1.e3_1 : tmp0_elvis_lhs;
|
|
3292
3292
|
// Inline function 'kotlin.collections.filter' call
|
|
3293
3293
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3294
3294
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -3305,13 +3305,13 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
3305
3305
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3306
3306
|
while (_iterator__ex2g4s_0.u()) {
|
|
3307
3307
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3308
|
-
var tmp0_safe_receiver = element_0.
|
|
3308
|
+
var tmp0_safe_receiver = element_0.l3t_1;
|
|
3309
3309
|
var tmp;
|
|
3310
3310
|
if (tmp0_safe_receiver == null) {
|
|
3311
3311
|
tmp = null;
|
|
3312
3312
|
} else {
|
|
3313
3313
|
// Inline function 'kotlin.let' call
|
|
3314
|
-
tmp = flattenSchemaOrRef($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element_0.
|
|
3314
|
+
tmp = flattenSchemaOrRef($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element_0.m3t_1]));
|
|
3315
3315
|
}
|
|
3316
3316
|
var tmp1_elvis_lhs = tmp;
|
|
3317
3317
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -3322,9 +3322,9 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
3322
3322
|
}
|
|
3323
3323
|
function parseRequestBody$lambda($this_parseRequestBody) {
|
|
3324
3324
|
return function ($this$flatMapRequests) {
|
|
3325
|
-
var parameters = plus_0(resolveParameters($this_parseRequestBody, $this$flatMapRequests.
|
|
3326
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
3327
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
3325
|
+
var parameters = plus_0(resolveParameters($this_parseRequestBody, $this$flatMapRequests.r4s_1.o1i()), resolveParameters($this_parseRequestBody, $this$flatMapRequests.t4s_1.o1i()));
|
|
3326
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.t4s_1);
|
|
3327
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.q4s_1) + $this$flatMapRequests.s4s_1.e3_1 : tmp0_elvis_lhs;
|
|
3328
3328
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3329
3329
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3330
3330
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -3332,11 +3332,11 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3332
3332
|
while (_iterator__ex2g4s.u()) {
|
|
3333
3333
|
var element = _iterator__ex2g4s.v();
|
|
3334
3334
|
var tmp;
|
|
3335
|
-
if (!(element.
|
|
3336
|
-
var tmp_0 = toDescriptionAnnotationList(element.
|
|
3337
|
-
var tmp_1 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.
|
|
3335
|
+
if (!(element.i3t_1 == null)) {
|
|
3336
|
+
var tmp_0 = toDescriptionAnnotationList(element.q3s_1);
|
|
3337
|
+
var tmp_1 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.m3t_1])));
|
|
3338
3338
|
// Inline function 'kotlin.collections.map' call
|
|
3339
|
-
var this_0 = ensureNotNull(element.
|
|
3339
|
+
var this_0 = ensureNotNull(element.i3t_1);
|
|
3340
3340
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3341
3341
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3342
3342
|
var _iterator__ex2g4s_0 = this_0.t();
|
|
@@ -3353,7 +3353,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3353
3353
|
addAll(destination, list);
|
|
3354
3354
|
}
|
|
3355
3355
|
var enums = destination;
|
|
3356
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
3356
|
+
var tmp1_safe_receiver = $this$flatMapRequests.t4s_1.o1i();
|
|
3357
3357
|
var tmp_2;
|
|
3358
3358
|
if (tmp1_safe_receiver == null) {
|
|
3359
3359
|
tmp_2 = null;
|
|
@@ -3397,7 +3397,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3397
3397
|
var _iterator__ex2g4s_3 = tmp3_safe_receiver.t();
|
|
3398
3398
|
while (_iterator__ex2g4s_3.u()) {
|
|
3399
3399
|
var element_1 = _iterator__ex2g4s_3.v();
|
|
3400
|
-
var schema = element_1.
|
|
3400
|
+
var schema = element_1.l3t_1;
|
|
3401
3401
|
var tmp_5;
|
|
3402
3402
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
3403
3403
|
var tmp0_subject = get_primitiveType(schema);
|
|
@@ -3408,7 +3408,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3408
3408
|
tmp_6 = flatten($this_parseRequestBody, schema, className([name, 'RequestBody']));
|
|
3409
3409
|
break;
|
|
3410
3410
|
case 4:
|
|
3411
|
-
var tmp1_safe_receiver_0 = schema.
|
|
3411
|
+
var tmp1_safe_receiver_0 = schema.m3m();
|
|
3412
3412
|
var tmp_7;
|
|
3413
3413
|
if (tmp1_safe_receiver_0 == null) {
|
|
3414
3414
|
tmp_7 = null;
|
|
@@ -3442,11 +3442,11 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3442
3442
|
}
|
|
3443
3443
|
function parseResponseBody$lambda($this_parseResponseBody) {
|
|
3444
3444
|
return function ($this$flatMapResponses) {
|
|
3445
|
-
var tmp = resolveResponse($this_parseResponseBody, $this$flatMapResponses.
|
|
3445
|
+
var tmp = resolveResponse($this_parseResponseBody, $this$flatMapResponses.z4s_1);
|
|
3446
3446
|
var tmp0_safe_receiver = tmp instanceof OpenAPIV20Response ? tmp : null;
|
|
3447
|
-
var schema = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3448
|
-
var tmp1_elvis_lhs = toName($this$flatMapResponses.
|
|
3449
|
-
var name = tmp1_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
3447
|
+
var schema = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n3u_1;
|
|
3448
|
+
var tmp1_elvis_lhs = toName($this$flatMapResponses.x4s_1);
|
|
3449
|
+
var name = tmp1_elvis_lhs == null ? toName_0($this$flatMapResponses.u4s_1) + $this$flatMapResponses.w4s_1.e3_1 : tmp1_elvis_lhs;
|
|
3450
3450
|
var tmp_0;
|
|
3451
3451
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
3452
3452
|
var tmp3_subject = get_primitiveType(schema);
|
|
@@ -3454,16 +3454,16 @@ function parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
3454
3454
|
switch (tmp3_subject == null ? -1 : tmp3_subject.f3_1) {
|
|
3455
3455
|
case -1:
|
|
3456
3456
|
case 5:
|
|
3457
|
-
tmp_1 = flatten($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
3457
|
+
tmp_1 = flatten($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.y4s_1), 'ResponseBody']));
|
|
3458
3458
|
break;
|
|
3459
3459
|
case 4:
|
|
3460
|
-
var tmp4_safe_receiver = schema.
|
|
3460
|
+
var tmp4_safe_receiver = schema.m3m();
|
|
3461
3461
|
var tmp_2;
|
|
3462
3462
|
if (tmp4_safe_receiver == null) {
|
|
3463
3463
|
tmp_2 = null;
|
|
3464
3464
|
} else {
|
|
3465
3465
|
// Inline function 'kotlin.let' call
|
|
3466
|
-
tmp_2 = flattenSchemaOrRef($this_parseResponseBody, tmp4_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
3466
|
+
tmp_2 = flattenSchemaOrRef($this_parseResponseBody, tmp4_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.y4s_1), 'ResponseBody']));
|
|
3467
3467
|
}
|
|
3468
3468
|
|
|
3469
3469
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -4054,9 +4054,9 @@ function toOpenAPIV30Links($this, $receiver) {
|
|
|
4054
4054
|
var _iterator__ex2g4s = $receiver.t();
|
|
4055
4055
|
while (_iterator__ex2g4s.u()) {
|
|
4056
4056
|
var element = _iterator__ex2g4s.v();
|
|
4057
|
-
var tmp2 = element.
|
|
4057
|
+
var tmp2 = element.a4t_1;
|
|
4058
4058
|
// Inline function 'kotlin.collections.mapValues' call
|
|
4059
|
-
var this_0 = element.
|
|
4059
|
+
var this_0 = element.d4t_1;
|
|
4060
4060
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
4061
4061
|
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.c1()));
|
|
4062
4062
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -4075,7 +4075,7 @@ function toOpenAPIV30Links($this, $receiver) {
|
|
|
4075
4075
|
tmp_0 = destination;
|
|
4076
4076
|
}
|
|
4077
4077
|
var tmp_1 = tmp_0;
|
|
4078
|
-
var tmp0_safe_receiver = element.
|
|
4078
|
+
var tmp0_safe_receiver = element.e4t_1;
|
|
4079
4079
|
var tmp_2;
|
|
4080
4080
|
if (tmp0_safe_receiver == null) {
|
|
4081
4081
|
tmp_2 = null;
|
|
@@ -4084,7 +4084,7 @@ function toOpenAPIV30Links($this, $receiver) {
|
|
|
4084
4084
|
tmp_2 = JsonPrimitive(tmp0_safe_receiver);
|
|
4085
4085
|
}
|
|
4086
4086
|
// Inline function 'kotlin.collections.set' call
|
|
4087
|
-
var value = new OpenAPIV30Link(element.
|
|
4087
|
+
var value = new OpenAPIV30Link(element.c4t_1, element.b4t_1, tmp_1, tmp_2, element.f4t_1);
|
|
4088
4088
|
byName.w2(tmp2, value);
|
|
4089
4089
|
}
|
|
4090
4090
|
return new OpenAPIV30Links(toSet(byName.m1()));
|
|
@@ -4115,7 +4115,7 @@ function emitSchema($this, $receiver) {
|
|
|
4115
4115
|
var it = emitSchema_0($this, $receiver.qp_1);
|
|
4116
4116
|
var tmp_0;
|
|
4117
4117
|
if (it instanceof OpenAPIV30Schema) {
|
|
4118
|
-
tmp_0 = it.
|
|
4118
|
+
tmp_0 = it.p41(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription($receiver.op_1), toSchemaDefault($receiver.rp_1));
|
|
4119
4119
|
} else {
|
|
4120
4120
|
if (it instanceof OpenAPIV30Reference) {
|
|
4121
4121
|
tmp_0 = it;
|
|
@@ -4316,14 +4316,14 @@ function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
|
4316
4316
|
}
|
|
4317
4317
|
function OpenAPIV3Emitter() {
|
|
4318
4318
|
OpenAPIV3Emitter_instance = this;
|
|
4319
|
-
this.
|
|
4320
|
-
this.
|
|
4319
|
+
this.l4t_1 = FileExtension_JSON_getInstance();
|
|
4320
|
+
this.m4t_1 = true;
|
|
4321
4321
|
}
|
|
4322
4322
|
protoOf(OpenAPIV3Emitter).xp = function () {
|
|
4323
|
-
return this.
|
|
4323
|
+
return this.l4t_1;
|
|
4324
4324
|
};
|
|
4325
4325
|
protoOf(OpenAPIV3Emitter).wp = function () {
|
|
4326
|
-
return this.
|
|
4326
|
+
return this.m4t_1;
|
|
4327
4327
|
};
|
|
4328
4328
|
protoOf(OpenAPIV3Emitter).uo = function (ast, logger) {
|
|
4329
4329
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
@@ -4341,10 +4341,10 @@ protoOf(OpenAPIV3Emitter).uo = function (ast, logger) {
|
|
|
4341
4341
|
}
|
|
4342
4342
|
// Inline function 'kotlin.let' call
|
|
4343
4343
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
4344
|
-
var tmp = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().
|
|
4344
|
+
var tmp = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().l4t_1.yr_1;
|
|
4345
4345
|
var tmp0_0 = get_json();
|
|
4346
4346
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
4347
|
-
var value = OpenAPIV3Emitter_getInstance().
|
|
4347
|
+
var value = OpenAPIV3Emitter_getInstance().n4t(it, null, logger);
|
|
4348
4348
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
4349
4349
|
var this_1 = tmp0_0.l25();
|
|
4350
4350
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -4355,10 +4355,10 @@ protoOf(OpenAPIV3Emitter).uo = function (ast, logger) {
|
|
|
4355
4355
|
var it_0 = new Emitted(tmp, tmp$ret$6);
|
|
4356
4356
|
return nonEmptyListOf(it_0, []);
|
|
4357
4357
|
};
|
|
4358
|
-
protoOf(OpenAPIV3Emitter).
|
|
4359
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
4358
|
+
protoOf(OpenAPIV3Emitter).n4t = function (statements, options, logger) {
|
|
4359
|
+
var tmp1_elvis_lhs = options == null ? null : options.o4t_1;
|
|
4360
4360
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
4361
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
4361
|
+
var tmp3_elvis_lhs = options == null ? null : options.p4t_1;
|
|
4362
4362
|
var tmp4_info = new InfoObject(tmp, VOID, VOID, VOID, VOID, VOID, tmp3_elvis_lhs == null ? '0.0.0' : tmp3_elvis_lhs);
|
|
4363
4363
|
var tmp5_paths = emitPaths_0(this, statements, logger);
|
|
4364
4364
|
var tmp6_components = emitComponents(this, statements, logger);
|
|
@@ -4372,7 +4372,7 @@ function OpenAPIV3Emitter_getInstance() {
|
|
|
4372
4372
|
}
|
|
4373
4373
|
function OpenAPIV3Parser$parse$lambda($strict) {
|
|
4374
4374
|
return function (it) {
|
|
4375
|
-
return new NonEmptyList(OpenAPIV3Parser_instance.
|
|
4375
|
+
return new NonEmptyList(OpenAPIV3Parser_instance.q4t((new OpenAPIV3(jsonDefault($strict))).t3o(it)));
|
|
4376
4376
|
};
|
|
4377
4377
|
}
|
|
4378
4378
|
function OpenAPIV3Parser() {
|
|
@@ -4380,7 +4380,7 @@ function OpenAPIV3Parser() {
|
|
|
4380
4380
|
protoOf(OpenAPIV3Parser).u31 = function (moduleContent, strict) {
|
|
4381
4381
|
return parseOpenApi(moduleContent, OpenAPIV3Parser$parse$lambda(strict));
|
|
4382
4382
|
};
|
|
4383
|
-
protoOf(OpenAPIV3Parser).
|
|
4383
|
+
protoOf(OpenAPIV3Parser).q4t = function (_this__u8e3s4) {
|
|
4384
4384
|
// Inline function 'kotlin.collections.reduce' call
|
|
4385
4385
|
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();
|
|
4386
4386
|
if (!iterator.u())
|
|
@@ -4416,7 +4416,7 @@ function OpenAPIV3Parser_getInstance() {
|
|
|
4416
4416
|
}
|
|
4417
4417
|
function parseEndpoints_0(_this__u8e3s4) {
|
|
4418
4418
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4419
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
4419
|
+
var tmp0_elvis_lhs = _this__u8e3s4.z3o();
|
|
4420
4420
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4421
4421
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4422
4422
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -4426,7 +4426,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4426
4426
|
while (_iterator__ex2g4s.u()) {
|
|
4427
4427
|
var element = _iterator__ex2g4s.v();
|
|
4428
4428
|
// Inline function 'kotlin.collections.component1' call
|
|
4429
|
-
var path = element.n1().
|
|
4429
|
+
var path = element.n1().z3l_1;
|
|
4430
4430
|
// Inline function 'kotlin.collections.component2' call
|
|
4431
4431
|
var pathItem = element.o1();
|
|
4432
4432
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -4488,7 +4488,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4488
4488
|
}
|
|
4489
4489
|
// Inline function 'kotlin.let' call
|
|
4490
4490
|
var headers = new Shape(destination_4);
|
|
4491
|
-
var tmp2_safe_receiver = operation.
|
|
4491
|
+
var tmp2_safe_receiver = operation.a3n();
|
|
4492
4492
|
var tmp;
|
|
4493
4493
|
if (tmp2_safe_receiver == null) {
|
|
4494
4494
|
tmp = null;
|
|
@@ -4516,10 +4516,10 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4516
4516
|
while (_iterator__ex2g4s_5.u()) {
|
|
4517
4517
|
var item_2 = _iterator__ex2g4s_5.v();
|
|
4518
4518
|
// Inline function 'kotlin.collections.component1' call
|
|
4519
|
-
var mediaType = item_2.n1().
|
|
4519
|
+
var mediaType = item_2.n1().x3m_1;
|
|
4520
4520
|
// Inline function 'kotlin.collections.component2' call
|
|
4521
4521
|
var mediaObject = item_2.o1();
|
|
4522
|
-
var schema = mediaObject.
|
|
4522
|
+
var schema = mediaObject.t3m();
|
|
4523
4523
|
var tmp_2;
|
|
4524
4524
|
if (!(schema == null) ? isInterface(schema, Reference) : false) {
|
|
4525
4525
|
tmp_2 = toReference_1(_this__u8e3s4, schema, isNullable);
|
|
@@ -4563,7 +4563,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4563
4563
|
while (_iterator__ex2g4s_6.u()) {
|
|
4564
4564
|
var element_2 = _iterator__ex2g4s_6.v();
|
|
4565
4565
|
// Inline function 'kotlin.collections.component1' call
|
|
4566
|
-
var status = element_2.n1().
|
|
4566
|
+
var status = element_2.n1().d3m_1;
|
|
4567
4567
|
// Inline function 'kotlin.collections.component2' call
|
|
4568
4568
|
var res = element_2.o1();
|
|
4569
4569
|
// Inline function 'kotlin.let' call
|
|
@@ -4572,7 +4572,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4572
4572
|
var tmp_4;
|
|
4573
4573
|
// Inline function 'kotlin.collections.isNullOrEmpty' call
|
|
4574
4574
|
if (content == null || content.r()) {
|
|
4575
|
-
var tmp1_annotations = plus_0(toDescriptionAnnotationList(response.
|
|
4575
|
+
var tmp1_annotations = plus_0(toDescriptionAnnotationList(response.j3m()), toLinkAnnotationList(_this__u8e3s4, response.s3m()));
|
|
4576
4576
|
var tmp2_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4577
4577
|
var tmp0_safe_receiver_0 = response.i1h();
|
|
4578
4578
|
var tmp_5;
|
|
@@ -4606,10 +4606,10 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4606
4606
|
while (_iterator__ex2g4s_8.u()) {
|
|
4607
4607
|
var item_4 = _iterator__ex2g4s_8.v();
|
|
4608
4608
|
// Inline function 'kotlin.collections.component1' call
|
|
4609
|
-
var contentType = item_4.n1().
|
|
4609
|
+
var contentType = item_4.n1().x3m_1;
|
|
4610
4610
|
// Inline function 'kotlin.collections.component2' call
|
|
4611
4611
|
var media = item_4.o1();
|
|
4612
|
-
var tmp0_safe_receiver_1 = media.
|
|
4612
|
+
var tmp0_safe_receiver_1 = media.t3m();
|
|
4613
4613
|
var tmp_6;
|
|
4614
4614
|
if (tmp0_safe_receiver_1 == null) {
|
|
4615
4615
|
tmp_6 = null;
|
|
@@ -4620,7 +4620,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4620
4620
|
var tmp1_safe_receiver = tmp_6;
|
|
4621
4621
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : get_isNullable(tmp1_safe_receiver);
|
|
4622
4622
|
var isNullable_0 = tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs;
|
|
4623
|
-
var tmp4_annotations = plus_0(toDescriptionAnnotationList(response.
|
|
4623
|
+
var tmp4_annotations = plus_0(toDescriptionAnnotationList(response.j3m()), toLinkAnnotationList(_this__u8e3s4, response.s3m()));
|
|
4624
4624
|
var tmp5_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4625
4625
|
var tmp3_safe_receiver_0 = response.i1h();
|
|
4626
4626
|
var tmp_7;
|
|
@@ -4645,7 +4645,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4645
4645
|
var p0_0 = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
|
|
4646
4646
|
var tmp6_headers = new Shape(p0_0);
|
|
4647
4647
|
var tmp_8 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
4648
|
-
var schema_0 = media.
|
|
4648
|
+
var schema_0 = media.t3m();
|
|
4649
4649
|
var tmp_9;
|
|
4650
4650
|
if (!(schema_0 == null) ? isInterface(schema_0, Reference) : false) {
|
|
4651
4651
|
tmp_9 = toReference_1(_this__u8e3s4, schema_0, isNullable_0);
|
|
@@ -4670,7 +4670,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4670
4670
|
addAll(destination_6, list);
|
|
4671
4671
|
}
|
|
4672
4672
|
var responses = destination_6;
|
|
4673
|
-
var tmp$ret$10 = new Endpoint(null, toDescriptionAnnotationList(operation.
|
|
4673
|
+
var tmp$ret$10 = new Endpoint(null, toDescriptionAnnotationList(operation.j3m()), new DefinitionIdentifier(name), method, segments, query, headers, requests, responses);
|
|
4674
4674
|
destination_0.x(tmp$ret$10);
|
|
4675
4675
|
}
|
|
4676
4676
|
var list_0 = destination_0;
|
|
@@ -4688,9 +4688,9 @@ function parseResponseBody_0(_this__u8e3s4) {
|
|
|
4688
4688
|
return flatMapResponses(_this__u8e3s4, parseResponseBody$lambda_0(_this__u8e3s4));
|
|
4689
4689
|
}
|
|
4690
4690
|
function parseDefinitions_0(_this__u8e3s4) {
|
|
4691
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
4691
|
+
var tmp0_safe_receiver = _this__u8e3s4.f3p();
|
|
4692
4692
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4693
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4693
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x3z();
|
|
4694
4694
|
// Inline function 'kotlin.collections.filter' call
|
|
4695
4695
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4696
4696
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -4702,7 +4702,7 @@ function parseDefinitions_0(_this__u8e3s4) {
|
|
|
4702
4702
|
var s = element.o1();
|
|
4703
4703
|
var tmp;
|
|
4704
4704
|
if (isInterface(s, Schema)) {
|
|
4705
|
-
var tmp0_subject = s.
|
|
4705
|
+
var tmp0_subject = s.p3m();
|
|
4706
4706
|
var tmp_0;
|
|
4707
4707
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
4708
4708
|
tmp_0 = true;
|
|
@@ -4815,7 +4815,7 @@ function toSegments_0(_this__u8e3s4, path, parameters, name) {
|
|
|
4815
4815
|
}
|
|
4816
4816
|
|
|
4817
4817
|
var tmp1_safe_receiver = tmp$ret$8;
|
|
4818
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4818
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t3m();
|
|
4819
4819
|
var tmp_0;
|
|
4820
4820
|
if (tmp2_safe_receiver == null) {
|
|
4821
4821
|
tmp_0 = null;
|
|
@@ -4869,13 +4869,13 @@ function toSegments_0(_this__u8e3s4, path, parameters, name) {
|
|
|
4869
4869
|
function get_location_0(_this__u8e3s4) {
|
|
4870
4870
|
var tmp;
|
|
4871
4871
|
if (_this__u8e3s4 instanceof OpenAPIV30Parameter) {
|
|
4872
|
-
tmp = _this__u8e3s4.
|
|
4872
|
+
tmp = _this__u8e3s4.f42_1;
|
|
4873
4873
|
} else {
|
|
4874
4874
|
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
4875
|
-
tmp = valueOf(_this__u8e3s4.
|
|
4875
|
+
tmp = valueOf(_this__u8e3s4.t48_1.e3_1);
|
|
4876
4876
|
} else {
|
|
4877
4877
|
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
4878
|
-
tmp = valueOf(_this__u8e3s4.
|
|
4878
|
+
tmp = valueOf(_this__u8e3s4.y4i_1.e3_1);
|
|
4879
4879
|
} else {
|
|
4880
4880
|
// Inline function 'kotlin.error' call
|
|
4881
4881
|
var message = 'Unsupported parameter type: ' + toString(_this__u8e3s4);
|
|
@@ -4888,7 +4888,7 @@ function get_location_0(_this__u8e3s4) {
|
|
|
4888
4888
|
function toField_2(_this__u8e3s4, parameter, name) {
|
|
4889
4889
|
var tmp0_elvis_lhs = get_required(parameter);
|
|
4890
4890
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
4891
|
-
var s = parameter.
|
|
4891
|
+
var s = parameter.t3m();
|
|
4892
4892
|
var tmp;
|
|
4893
4893
|
if (!(s == null) ? isInterface(s, Reference) : false) {
|
|
4894
4894
|
tmp = toReference_1(_this__u8e3s4, s, isNullable);
|
|
@@ -4929,8 +4929,8 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4929
4929
|
var schema = destruct.bf();
|
|
4930
4930
|
var nullable = get_isNullable(schema);
|
|
4931
4931
|
var tmp;
|
|
4932
|
-
if (exists_0(schema.
|
|
4933
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4932
|
+
if (exists_0(schema.p3m())) {
|
|
4933
|
+
var additionalProperties = ensureNotNull(schema.p3m());
|
|
4934
4934
|
var tmp_0;
|
|
4935
4935
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
4936
4936
|
tmp_0 = new Dict(new Any(isNullable), false);
|
|
@@ -4946,12 +4946,12 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4946
4946
|
}
|
|
4947
4947
|
}
|
|
4948
4948
|
tmp = tmp_0;
|
|
4949
|
-
} else if (!(schema.
|
|
4949
|
+
} else if (!(schema.l3m() == null)) {
|
|
4950
4950
|
tmp = new Custom(sanitize(className([getReference(referencingObject)])), isNullable);
|
|
4951
4951
|
} else if (isPrimitive_0(get_primitiveType_0(schema))) {
|
|
4952
4952
|
tmp = new Primitive(toPrimitive_1(schema), isNullable);
|
|
4953
4953
|
} else if (equals(get_primitiveType_0(schema), OpenAPIV30Type_ARRAY_getInstance())) {
|
|
4954
|
-
var items = schema.
|
|
4954
|
+
var items = schema.m3m();
|
|
4955
4955
|
var tmp_1;
|
|
4956
4956
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
4957
4957
|
tmp_1 = toIterable(toReference_1(_this__u8e3s4, items, nullable), isNullable);
|
|
@@ -4961,7 +4961,7 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4961
4961
|
} else {
|
|
4962
4962
|
if (items == null) {
|
|
4963
4963
|
// Inline function 'kotlin.error' call
|
|
4964
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.
|
|
4964
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.i3m());
|
|
4965
4965
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4966
4966
|
} else {
|
|
4967
4967
|
noWhenBranchMatchedException();
|
|
@@ -4979,7 +4979,7 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4979
4979
|
var nullable = get_isNullable(schema);
|
|
4980
4980
|
var tmp;
|
|
4981
4981
|
if (equals(get_primitiveType_0(schema), OpenAPIV30Type_ARRAY_getInstance())) {
|
|
4982
|
-
var items = schema.
|
|
4982
|
+
var items = schema.m3m();
|
|
4983
4983
|
var tmp_0;
|
|
4984
4984
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
4985
4985
|
tmp_0 = toIterable(toReference_1(_this__u8e3s4, items, nullable), isNullable);
|
|
@@ -4997,8 +4997,8 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4997
4997
|
}
|
|
4998
4998
|
}
|
|
4999
4999
|
tmp = tmp_0;
|
|
5000
|
-
} else if (!(schema.
|
|
5001
|
-
var additionalProperties = ensureNotNull(schema.
|
|
5000
|
+
} else if (!(schema.p3m() == null)) {
|
|
5001
|
+
var additionalProperties = ensureNotNull(schema.p3m());
|
|
5002
5002
|
var tmp_1;
|
|
5003
5003
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
5004
5004
|
tmp_1 = new Dict(new Any(nullable), isNullable);
|
|
@@ -5009,7 +5009,7 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
5009
5009
|
if (isInterface(additionalProperties, Schema)) {
|
|
5010
5010
|
// Inline function 'kotlin.takeIf' call
|
|
5011
5011
|
var tmp_2;
|
|
5012
|
-
if (isPrimitive_0(get_primitiveType_0(additionalProperties)) || !(additionalProperties.
|
|
5012
|
+
if (isPrimitive_0(get_primitiveType_0(additionalProperties)) || !(additionalProperties.o3m() == null)) {
|
|
5013
5013
|
tmp_2 = additionalProperties;
|
|
5014
5014
|
} else {
|
|
5015
5015
|
tmp_2 = null;
|
|
@@ -5030,10 +5030,10 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
5030
5030
|
}
|
|
5031
5031
|
}
|
|
5032
5032
|
tmp = tmp_1;
|
|
5033
|
-
} else if (!(schema.
|
|
5033
|
+
} else if (!(schema.l3m() == null)) {
|
|
5034
5034
|
// Inline function 'kotlin.let' call
|
|
5035
5035
|
var it = new Custom(sanitize(name), isNullable);
|
|
5036
|
-
tmp = !(schema.
|
|
5036
|
+
tmp = !(schema.p3m() == null) ? new Dict(it, false) : it;
|
|
5037
5037
|
} else {
|
|
5038
5038
|
var tmp2_subject = get_primitiveType_0(schema);
|
|
5039
5039
|
var tmp_4;
|
|
@@ -5045,26 +5045,26 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
5045
5045
|
// Inline function 'kotlin.let' call
|
|
5046
5046
|
|
|
5047
5047
|
var it_0 = new Primitive(toPrimitive_1(schema), isNullable);
|
|
5048
|
-
tmp_4 = !(schema.
|
|
5048
|
+
tmp_4 = !(schema.p3m() == null) ? new Dict(it_0, false) : it_0;
|
|
5049
5049
|
break;
|
|
5050
5050
|
case -1:
|
|
5051
5051
|
case 5:
|
|
5052
5052
|
var tmp_5;
|
|
5053
|
-
var tmp_6 = schema.
|
|
5053
|
+
var tmp_6 = schema.p3m();
|
|
5054
5054
|
if (!(tmp_6 == null) ? isInterface(tmp_6, BooleanValue) : false) {
|
|
5055
5055
|
// Inline function 'kotlin.let' call
|
|
5056
5056
|
var it_1 = new Any(false);
|
|
5057
|
-
tmp_5 = !(schema.
|
|
5057
|
+
tmp_5 = !(schema.p3m() == null) ? new Dict(it_1, false) : it_1;
|
|
5058
5058
|
} else {
|
|
5059
5059
|
// Inline function 'kotlin.let' call
|
|
5060
5060
|
var it_2 = new Custom(sanitize(name), isNullable);
|
|
5061
|
-
tmp_5 = !(schema.
|
|
5061
|
+
tmp_5 = !(schema.p3m() == null) ? new Dict(it_2, false) : it_2;
|
|
5062
5062
|
}
|
|
5063
5063
|
|
|
5064
5064
|
tmp_4 = tmp_5;
|
|
5065
5065
|
break;
|
|
5066
5066
|
case 4:
|
|
5067
|
-
var it_3 = schema.
|
|
5067
|
+
var it_3 = schema.m3m();
|
|
5068
5068
|
var tmp_7;
|
|
5069
5069
|
if (!(it_3 == null) ? isInterface(it_3, Reference) : false) {
|
|
5070
5070
|
tmp_7 = toIterable(toReference_1(_this__u8e3s4, it_3, nullable), isNullable);
|
|
@@ -5111,13 +5111,13 @@ function resolve_2(_this__u8e3s4, responseOrReference) {
|
|
|
5111
5111
|
function get_content(_this__u8e3s4) {
|
|
5112
5112
|
var tmp;
|
|
5113
5113
|
if (_this__u8e3s4 instanceof OpenAPIV30Response) {
|
|
5114
|
-
tmp = _this__u8e3s4.
|
|
5114
|
+
tmp = _this__u8e3s4.s43_1;
|
|
5115
5115
|
} else {
|
|
5116
5116
|
if (_this__u8e3s4 instanceof OpenAPIV31Response) {
|
|
5117
|
-
tmp = _this__u8e3s4.
|
|
5117
|
+
tmp = _this__u8e3s4.a49_1;
|
|
5118
5118
|
} else {
|
|
5119
5119
|
if (_this__u8e3s4 instanceof OpenAPIV32Response) {
|
|
5120
|
-
tmp = _this__u8e3s4.
|
|
5120
|
+
tmp = _this__u8e3s4.f4j_1;
|
|
5121
5121
|
} else {
|
|
5122
5122
|
tmp = null;
|
|
5123
5123
|
}
|
|
@@ -5167,7 +5167,7 @@ function toField_3(_this__u8e3s4, header, identifier, name) {
|
|
|
5167
5167
|
// Inline function 'kotlin.let' call
|
|
5168
5168
|
var it = tmp;
|
|
5169
5169
|
var tmp0_identifier = new FieldIdentifier(identifier);
|
|
5170
|
-
var tmp1_annotations = toDescriptionAnnotationList(header.
|
|
5170
|
+
var tmp1_annotations = toDescriptionAnnotationList(header.j3m());
|
|
5171
5171
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
5172
5172
|
}
|
|
5173
5173
|
function resolve_3(_this__u8e3s4, headerOrReference) {
|
|
@@ -5199,20 +5199,20 @@ function resolve_4(_this__u8e3s4, schemaOrReference) {
|
|
|
5199
5199
|
function get_isNullable(_this__u8e3s4) {
|
|
5200
5200
|
var tmp;
|
|
5201
5201
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5202
|
-
var tmp1_elvis_lhs = _this__u8e3s4.
|
|
5202
|
+
var tmp1_elvis_lhs = _this__u8e3s4.c40_1;
|
|
5203
5203
|
tmp = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
5204
5204
|
} else {
|
|
5205
5205
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5206
|
-
var tmp_0 = _this__u8e3s4.
|
|
5206
|
+
var tmp_0 = _this__u8e3s4.v49_1;
|
|
5207
5207
|
var tmp2_safe_receiver = tmp_0 instanceof OpenAPIV31TypeArray ? tmp_0 : null;
|
|
5208
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
5208
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.l4b_1;
|
|
5209
5209
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.i1(OpenAPIV31Type_NULL_getInstance());
|
|
5210
5210
|
tmp = tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs;
|
|
5211
5211
|
} else {
|
|
5212
5212
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5213
|
-
var tmp_1 = _this__u8e3s4.
|
|
5213
|
+
var tmp_1 = _this__u8e3s4.a4k_1;
|
|
5214
5214
|
var tmp5_safe_receiver = tmp_1 instanceof OpenAPIV32TypeArray ? tmp_1 : null;
|
|
5215
|
-
var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.
|
|
5215
|
+
var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.q4l_1;
|
|
5216
5216
|
var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.i1(OpenAPIV32Type_NULL_getInstance());
|
|
5217
5217
|
tmp = tmp7_elvis_lhs == null ? false : tmp7_elvis_lhs;
|
|
5218
5218
|
} else {
|
|
@@ -5238,13 +5238,13 @@ function flattenSchemaOrRef_0(_this__u8e3s4, schemaOrReference, name) {
|
|
|
5238
5238
|
function get_primitiveType_0(_this__u8e3s4) {
|
|
5239
5239
|
var tmp;
|
|
5240
5240
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5241
|
-
var t = _this__u8e3s4.
|
|
5241
|
+
var t = _this__u8e3s4.j40_1;
|
|
5242
5242
|
var tmp_0;
|
|
5243
5243
|
if (t instanceof OpenAPIV30SingleType) {
|
|
5244
|
-
tmp_0 = t.
|
|
5244
|
+
tmp_0 = t.a43_1;
|
|
5245
5245
|
} else {
|
|
5246
5246
|
if (t instanceof OpenAPIV30TypeArray) {
|
|
5247
|
-
var tmp0 = t.
|
|
5247
|
+
var tmp0 = t.f45_1;
|
|
5248
5248
|
var tmp$ret$0;
|
|
5249
5249
|
$l$block: {
|
|
5250
5250
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -5270,13 +5270,13 @@ function get_primitiveType_0(_this__u8e3s4) {
|
|
|
5270
5270
|
tmp = tmp_0;
|
|
5271
5271
|
} else {
|
|
5272
5272
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5273
|
-
var t_0 = _this__u8e3s4.
|
|
5273
|
+
var t_0 = _this__u8e3s4.v49_1;
|
|
5274
5274
|
var tmp_1;
|
|
5275
5275
|
if (t_0 instanceof OpenAPIV31SingleType) {
|
|
5276
|
-
tmp_1 = toV30(t_0.
|
|
5276
|
+
tmp_1 = toV30(t_0.m4b_1);
|
|
5277
5277
|
} else {
|
|
5278
5278
|
if (t_0 instanceof OpenAPIV31TypeArray) {
|
|
5279
|
-
var tmp0_0 = t_0.
|
|
5279
|
+
var tmp0_0 = t_0.l4b_1;
|
|
5280
5280
|
var tmp$ret$2;
|
|
5281
5281
|
$l$block_0: {
|
|
5282
5282
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -5303,13 +5303,13 @@ function get_primitiveType_0(_this__u8e3s4) {
|
|
|
5303
5303
|
tmp = tmp_1;
|
|
5304
5304
|
} else {
|
|
5305
5305
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5306
|
-
var t_1 = _this__u8e3s4.
|
|
5306
|
+
var t_1 = _this__u8e3s4.a4k_1;
|
|
5307
5307
|
var tmp_2;
|
|
5308
5308
|
if (t_1 instanceof OpenAPIV32SingleType) {
|
|
5309
|
-
tmp_2 = toV30_0(t_1.
|
|
5309
|
+
tmp_2 = toV30_0(t_1.r4l_1);
|
|
5310
5310
|
} else {
|
|
5311
5311
|
if (t_1 instanceof OpenAPIV32TypeArray) {
|
|
5312
|
-
var tmp0_1 = t_1.
|
|
5312
|
+
var tmp0_1 = t_1.q4l_1;
|
|
5313
5313
|
var tmp$ret$4;
|
|
5314
5314
|
$l$block_1: {
|
|
5315
5315
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -5345,13 +5345,13 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5345
5345
|
var oneOf = get_oneOf(schemaObject);
|
|
5346
5346
|
var anyOf = get_anyOf(schemaObject);
|
|
5347
5347
|
var tmp;
|
|
5348
|
-
if (exists_0(schemaObject.
|
|
5349
|
-
var tmp0_subject = schemaObject.
|
|
5348
|
+
if (exists_0(schemaObject.p3m())) {
|
|
5349
|
+
var tmp0_subject = schemaObject.p3m();
|
|
5350
5350
|
var tmp_0;
|
|
5351
5351
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
5352
5352
|
tmp_0 = emptyList();
|
|
5353
5353
|
} else {
|
|
5354
|
-
var tmp1_safe_receiver = schemaObject.
|
|
5354
|
+
var tmp1_safe_receiver = schemaObject.p3m();
|
|
5355
5355
|
var tmp_1;
|
|
5356
5356
|
if (tmp1_safe_receiver == null) {
|
|
5357
5357
|
tmp_1 = null;
|
|
@@ -5366,7 +5366,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5366
5366
|
} else {
|
|
5367
5367
|
// Inline function 'kotlin.takeIf' call
|
|
5368
5368
|
var tmp_3;
|
|
5369
|
-
if (!(tmp2_safe_receiver.
|
|
5369
|
+
if (!(tmp2_safe_receiver.o3m() == null)) {
|
|
5370
5370
|
tmp_3 = tmp2_safe_receiver;
|
|
5371
5371
|
} else {
|
|
5372
5372
|
tmp_3 = null;
|
|
@@ -5386,7 +5386,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5386
5386
|
}
|
|
5387
5387
|
tmp = tmp_0;
|
|
5388
5388
|
} else if (!(oneOf == null) || !(anyOf == null)) {
|
|
5389
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
5389
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.j3m());
|
|
5390
5390
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
5391
5391
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5392
5392
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
@@ -5440,11 +5440,11 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5440
5440
|
addAll(destination_0, list);
|
|
5441
5441
|
}
|
|
5442
5442
|
tmp = plus_0(tmp_8, destination_0);
|
|
5443
|
-
} else if (!(schemaObject.
|
|
5444
|
-
var tmp_10 = toDescriptionAnnotationList(schemaObject.
|
|
5443
|
+
} else if (!(schemaObject.n3m() == null)) {
|
|
5444
|
+
var tmp_10 = toDescriptionAnnotationList(schemaObject.j3m());
|
|
5445
5445
|
var tmp_11 = new DefinitionIdentifier(sanitize(name));
|
|
5446
5446
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5447
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
5447
|
+
var tmp0_elvis_lhs = schemaObject.n3m();
|
|
5448
5448
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5449
5449
|
var tmp0_0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
5450
5450
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -5468,7 +5468,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5468
5468
|
}
|
|
5469
5469
|
var tmp_12 = listOf(new Type(null, tmp_10, tmp_11, new Shape(list_1), emptyList()));
|
|
5470
5470
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5471
|
-
var tmp0_1 = ensureNotNull(schemaObject.
|
|
5471
|
+
var tmp0_1 = ensureNotNull(schemaObject.n3m());
|
|
5472
5472
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5473
5473
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
5474
5474
|
var _iterator__ex2g4s_3 = tmp0_1.t();
|
|
@@ -5477,12 +5477,12 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5477
5477
|
var tmp_13;
|
|
5478
5478
|
if (isInterface(element_1, Reference)) {
|
|
5479
5479
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5480
|
-
var tmp0_elvis_lhs_0 = resolveSchemaRef_0(_this__u8e3s4, element_1).hf_1.
|
|
5480
|
+
var tmp0_elvis_lhs_0 = resolveSchemaRef_0(_this__u8e3s4, element_1).hf_1.o3m();
|
|
5481
5481
|
tmp_13 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
5482
5482
|
} else {
|
|
5483
5483
|
if (isInterface(element_1, Schema)) {
|
|
5484
5484
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5485
|
-
var tmp0_elvis_lhs_1 = element_1.
|
|
5485
|
+
var tmp0_elvis_lhs_1 = element_1.o3m();
|
|
5486
5486
|
tmp_13 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
5487
5487
|
} else {
|
|
5488
5488
|
noWhenBranchMatchedException();
|
|
@@ -5507,9 +5507,9 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5507
5507
|
addAll(destination_2, list_3);
|
|
5508
5508
|
}
|
|
5509
5509
|
tmp = plus_0(tmp_12, destination_2);
|
|
5510
|
-
} else if (!(schemaObject.
|
|
5510
|
+
} else if (!(schemaObject.l3m() == null)) {
|
|
5511
5511
|
// Inline function 'kotlin.collections.map' call
|
|
5512
|
-
var this_1 = ensureNotNull(schemaObject.
|
|
5512
|
+
var this_1 = ensureNotNull(schemaObject.l3m());
|
|
5513
5513
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5514
5514
|
var destination_4 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
5515
5515
|
var _iterator__ex2g4s_5 = this_1.t();
|
|
@@ -5520,7 +5520,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5520
5520
|
}
|
|
5521
5521
|
// Inline function 'kotlin.let' call
|
|
5522
5522
|
var it = toSet(destination_4);
|
|
5523
|
-
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.
|
|
5523
|
+
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.j3m()), new DefinitionIdentifier(name), it));
|
|
5524
5524
|
} else {
|
|
5525
5525
|
var tmp5_subject = get_primitiveType_0(schemaObject);
|
|
5526
5526
|
var tmp_14;
|
|
@@ -5529,7 +5529,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5529
5529
|
case 5:
|
|
5530
5530
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5531
5531
|
|
|
5532
|
-
var tmp0_elvis_lhs_2 = schemaObject.
|
|
5532
|
+
var tmp0_elvis_lhs_2 = schemaObject.o3m();
|
|
5533
5533
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5534
5534
|
|
|
5535
5535
|
var tmp0_3 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
@@ -5550,11 +5550,11 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5550
5550
|
}
|
|
5551
5551
|
|
|
5552
5552
|
var fields = destination_5;
|
|
5553
|
-
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.
|
|
5553
|
+
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.j3m()), new DefinitionIdentifier(name), new Shape(toField_4(_this__u8e3s4, schemaObject, name)), emptyList()));
|
|
5554
5554
|
tmp_14 = plus_0(schema, fields);
|
|
5555
5555
|
break;
|
|
5556
5556
|
case 4:
|
|
5557
|
-
var tmp6_safe_receiver = schemaObject.
|
|
5557
|
+
var tmp6_safe_receiver = schemaObject.m3m();
|
|
5558
5558
|
var tmp_15;
|
|
5559
5559
|
if (tmp6_safe_receiver == null) {
|
|
5560
5560
|
tmp_15 = null;
|
|
@@ -5597,7 +5597,7 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5597
5597
|
var element = _iterator__ex2g4s.v();
|
|
5598
5598
|
// Inline function 'kotlin.collections.component2' call
|
|
5599
5599
|
var mediaObject = element.o1();
|
|
5600
|
-
var schema = mediaObject.
|
|
5600
|
+
var schema = mediaObject.t3m();
|
|
5601
5601
|
var tmp;
|
|
5602
5602
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
5603
5603
|
var tmp0_subject = get_primitiveType_0(schema);
|
|
@@ -5608,7 +5608,7 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5608
5608
|
tmp_0 = flatten_0(_this__u8e3s4, schema, className([name, _StatusCode___get_value__impl__we50mu(statusCode), 'ResponseBody']));
|
|
5609
5609
|
break;
|
|
5610
5610
|
case 4:
|
|
5611
|
-
var tmp1_safe_receiver = schema.
|
|
5611
|
+
var tmp1_safe_receiver = schema.m3m();
|
|
5612
5612
|
var tmp_1;
|
|
5613
5613
|
if (tmp1_safe_receiver == null) {
|
|
5614
5614
|
tmp_1 = null;
|
|
@@ -5636,7 +5636,7 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5636
5636
|
return destination;
|
|
5637
5637
|
}
|
|
5638
5638
|
function resolveResponse_0(_this__u8e3s4, reference) {
|
|
5639
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5639
|
+
var tmp0_safe_receiver = _this__u8e3s4.f3p();
|
|
5640
5640
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k1h();
|
|
5641
5641
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t2(getReference(reference));
|
|
5642
5642
|
var tmp;
|
|
@@ -5660,7 +5660,7 @@ function resolveResponse_0(_this__u8e3s4, reference) {
|
|
|
5660
5660
|
var tmp_1;
|
|
5661
5661
|
if (tmp3_elvis_lhs == null) {
|
|
5662
5662
|
// Inline function 'kotlin.error' call
|
|
5663
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5663
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.i3m());
|
|
5664
5664
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5665
5665
|
} else {
|
|
5666
5666
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5668,7 +5668,7 @@ function resolveResponse_0(_this__u8e3s4, reference) {
|
|
|
5668
5668
|
return tmp_1;
|
|
5669
5669
|
}
|
|
5670
5670
|
function resolveParameter_0(_this__u8e3s4, reference) {
|
|
5671
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5671
|
+
var tmp0_safe_receiver = _this__u8e3s4.f3p();
|
|
5672
5672
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o1i();
|
|
5673
5673
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t2(getReference(reference));
|
|
5674
5674
|
var tmp;
|
|
@@ -5693,13 +5693,13 @@ function resolveParameter_0(_this__u8e3s4, reference) {
|
|
|
5693
5693
|
function get_required(_this__u8e3s4) {
|
|
5694
5694
|
var tmp;
|
|
5695
5695
|
if (_this__u8e3s4 instanceof OpenAPIV30Parameter) {
|
|
5696
|
-
tmp = _this__u8e3s4.
|
|
5696
|
+
tmp = _this__u8e3s4.w41_1;
|
|
5697
5697
|
} else {
|
|
5698
5698
|
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
5699
|
-
tmp = _this__u8e3s4.
|
|
5699
|
+
tmp = _this__u8e3s4.k48_1;
|
|
5700
5700
|
} else {
|
|
5701
5701
|
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
5702
|
-
tmp = _this__u8e3s4.
|
|
5702
|
+
tmp = _this__u8e3s4.p4i_1;
|
|
5703
5703
|
} else {
|
|
5704
5704
|
tmp = null;
|
|
5705
5705
|
}
|
|
@@ -5710,13 +5710,13 @@ function get_required(_this__u8e3s4) {
|
|
|
5710
5710
|
function get_description(_this__u8e3s4) {
|
|
5711
5711
|
var tmp;
|
|
5712
5712
|
if (_this__u8e3s4 instanceof OpenAPIV30Parameter) {
|
|
5713
|
-
tmp = _this__u8e3s4.
|
|
5713
|
+
tmp = _this__u8e3s4.v41_1;
|
|
5714
5714
|
} else {
|
|
5715
5715
|
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
5716
|
-
tmp = _this__u8e3s4.
|
|
5716
|
+
tmp = _this__u8e3s4.j48_1;
|
|
5717
5717
|
} else {
|
|
5718
5718
|
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
5719
|
-
tmp = _this__u8e3s4.
|
|
5719
|
+
tmp = _this__u8e3s4.o4i_1;
|
|
5720
5720
|
} else {
|
|
5721
5721
|
tmp = null;
|
|
5722
5722
|
}
|
|
@@ -5725,8 +5725,8 @@ function get_description(_this__u8e3s4) {
|
|
|
5725
5725
|
return tmp;
|
|
5726
5726
|
}
|
|
5727
5727
|
function resolveRequestBody(_this__u8e3s4, reference) {
|
|
5728
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5729
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5728
|
+
var tmp0_safe_receiver = _this__u8e3s4.f3p();
|
|
5729
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y3z();
|
|
5730
5730
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t2(getReference(reference));
|
|
5731
5731
|
var tmp;
|
|
5732
5732
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5749,7 +5749,7 @@ function resolveRequestBody(_this__u8e3s4, reference) {
|
|
|
5749
5749
|
var tmp_1;
|
|
5750
5750
|
if (tmp3_elvis_lhs == null) {
|
|
5751
5751
|
// Inline function 'kotlin.error' call
|
|
5752
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5752
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.i3m());
|
|
5753
5753
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5754
5754
|
} else {
|
|
5755
5755
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5757,8 +5757,8 @@ function resolveRequestBody(_this__u8e3s4, reference) {
|
|
|
5757
5757
|
return tmp_1;
|
|
5758
5758
|
}
|
|
5759
5759
|
function resolveSchemaRef_0(_this__u8e3s4, reference) {
|
|
5760
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5761
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5760
|
+
var tmp0_safe_receiver = _this__u8e3s4.f3p();
|
|
5761
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x3z();
|
|
5762
5762
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t2(getReference(reference));
|
|
5763
5763
|
var tmp;
|
|
5764
5764
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5781,7 +5781,7 @@ function resolveSchemaRef_0(_this__u8e3s4, reference) {
|
|
|
5781
5781
|
var tmp_1;
|
|
5782
5782
|
if (tmp3_elvis_lhs == null) {
|
|
5783
5783
|
// Inline function 'kotlin.error' call
|
|
5784
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5784
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.i3m());
|
|
5785
5785
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5786
5786
|
} else {
|
|
5787
5787
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5847,13 +5847,13 @@ function toPrimitive_1(_this__u8e3s4) {
|
|
|
5847
5847
|
var tmp;
|
|
5848
5848
|
switch (tmp0_subject == null ? -1 : tmp0_subject.f3_1) {
|
|
5849
5849
|
case 0:
|
|
5850
|
-
tmp = _this__u8e3s4.
|
|
5850
|
+
tmp = _this__u8e3s4.r3m() == null && _this__u8e3s4.q3m() === 'binary' ? Bytes_instance : stringType(_this__u8e3s4.r3m(), _this__u8e3s4.q3m());
|
|
5851
5851
|
break;
|
|
5852
5852
|
case 2:
|
|
5853
|
-
tmp = new Integer(_this__u8e3s4.
|
|
5853
|
+
tmp = new Integer(_this__u8e3s4.q3m() === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5854
5854
|
break;
|
|
5855
5855
|
case 1:
|
|
5856
|
-
tmp = new Number_0(_this__u8e3s4.
|
|
5856
|
+
tmp = new Number_0(_this__u8e3s4.q3m() === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5857
5857
|
break;
|
|
5858
5858
|
case 3:
|
|
5859
5859
|
tmp = Boolean_instance;
|
|
@@ -5867,8 +5867,8 @@ function toPrimitive_1(_this__u8e3s4) {
|
|
|
5867
5867
|
return tmp;
|
|
5868
5868
|
}
|
|
5869
5869
|
function toLinkInfo_0(_this__u8e3s4, name) {
|
|
5870
|
-
var tmp = _this__u8e3s4.
|
|
5871
|
-
var tmp_0 = _this__u8e3s4.
|
|
5870
|
+
var tmp = _this__u8e3s4.z3m();
|
|
5871
|
+
var tmp_0 = _this__u8e3s4.y3m();
|
|
5872
5872
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5873
5873
|
var tmp0_elvis_lhs = _this__u8e3s4.o1i();
|
|
5874
5874
|
// Inline function 'kotlin.collections.mapValues' call
|
|
@@ -5884,11 +5884,11 @@ function toLinkInfo_0(_this__u8e3s4, name) {
|
|
|
5884
5884
|
destination.w2(tmp_1, tmp$ret$5);
|
|
5885
5885
|
}
|
|
5886
5886
|
var tmp_2 = destination;
|
|
5887
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5887
|
+
var tmp0_safe_receiver = _this__u8e3s4.a3n();
|
|
5888
5888
|
var tmp_3 = tmp0_safe_receiver == null ? null : asLinkExpression(tmp0_safe_receiver);
|
|
5889
|
-
var tmp_4 = _this__u8e3s4.
|
|
5890
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
5891
|
-
return new LinkInfo(name, tmp, tmp_0, tmp_2, tmp_3, tmp_4, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5889
|
+
var tmp_4 = _this__u8e3s4.j3m();
|
|
5890
|
+
var tmp1_safe_receiver = _this__u8e3s4.b3n();
|
|
5891
|
+
return new LinkInfo(name, tmp, tmp_0, tmp_2, tmp_3, tmp_4, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f3n_1);
|
|
5892
5892
|
}
|
|
5893
5893
|
function resolve_5(_this__u8e3s4, linkOrReference) {
|
|
5894
5894
|
var tmp;
|
|
@@ -5906,13 +5906,13 @@ function resolve_5(_this__u8e3s4, linkOrReference) {
|
|
|
5906
5906
|
function get_required_0(_this__u8e3s4) {
|
|
5907
5907
|
var tmp;
|
|
5908
5908
|
if (_this__u8e3s4 instanceof OpenAPIV30Header) {
|
|
5909
|
-
tmp = _this__u8e3s4.
|
|
5909
|
+
tmp = _this__u8e3s4.u44_1;
|
|
5910
5910
|
} else {
|
|
5911
5911
|
if (_this__u8e3s4 instanceof OpenAPIV31Header) {
|
|
5912
|
-
tmp = _this__u8e3s4.
|
|
5912
|
+
tmp = _this__u8e3s4.r4b_1;
|
|
5913
5913
|
} else {
|
|
5914
5914
|
if (_this__u8e3s4 instanceof OpenAPIV32Header) {
|
|
5915
|
-
tmp = _this__u8e3s4.
|
|
5915
|
+
tmp = _this__u8e3s4.w4l_1;
|
|
5916
5916
|
} else {
|
|
5917
5917
|
tmp = null;
|
|
5918
5918
|
}
|
|
@@ -5923,13 +5923,13 @@ function get_required_0(_this__u8e3s4) {
|
|
|
5923
5923
|
function get_schema(_this__u8e3s4) {
|
|
5924
5924
|
var tmp;
|
|
5925
5925
|
if (_this__u8e3s4 instanceof OpenAPIV30Header) {
|
|
5926
|
-
tmp = _this__u8e3s4.
|
|
5926
|
+
tmp = _this__u8e3s4.a45_1;
|
|
5927
5927
|
} else {
|
|
5928
5928
|
if (_this__u8e3s4 instanceof OpenAPIV31Header) {
|
|
5929
|
-
tmp = _this__u8e3s4.
|
|
5929
|
+
tmp = _this__u8e3s4.x4b_1;
|
|
5930
5930
|
} else {
|
|
5931
5931
|
if (_this__u8e3s4 instanceof OpenAPIV32Header) {
|
|
5932
|
-
tmp = _this__u8e3s4.
|
|
5932
|
+
tmp = _this__u8e3s4.c4m_1;
|
|
5933
5933
|
} else {
|
|
5934
5934
|
tmp = null;
|
|
5935
5935
|
}
|
|
@@ -5938,7 +5938,7 @@ function get_schema(_this__u8e3s4) {
|
|
|
5938
5938
|
return tmp;
|
|
5939
5939
|
}
|
|
5940
5940
|
function resolveHeader_0(_this__u8e3s4, reference) {
|
|
5941
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5941
|
+
var tmp0_safe_receiver = _this__u8e3s4.f3p();
|
|
5942
5942
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i1h();
|
|
5943
5943
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t2(getReference(reference));
|
|
5944
5944
|
var tmp;
|
|
@@ -5962,7 +5962,7 @@ function resolveHeader_0(_this__u8e3s4, reference) {
|
|
|
5962
5962
|
var tmp_1;
|
|
5963
5963
|
if (tmp3_elvis_lhs == null) {
|
|
5964
5964
|
// Inline function 'kotlin.error' call
|
|
5965
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5965
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.i3m());
|
|
5966
5966
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5967
5967
|
} else {
|
|
5968
5968
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5978,7 +5978,7 @@ function toV30_0(_this__u8e3s4) {
|
|
|
5978
5978
|
function get_oneOf(_this__u8e3s4) {
|
|
5979
5979
|
var tmp;
|
|
5980
5980
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5981
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
5981
|
+
var tmp1_safe_receiver = _this__u8e3s4.f40_1;
|
|
5982
5982
|
var tmp_0;
|
|
5983
5983
|
if (tmp1_safe_receiver == null) {
|
|
5984
5984
|
tmp_0 = null;
|
|
@@ -5997,7 +5997,7 @@ function get_oneOf(_this__u8e3s4) {
|
|
|
5997
5997
|
tmp = tmp_0;
|
|
5998
5998
|
} else {
|
|
5999
5999
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
6000
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
6000
|
+
var tmp2_safe_receiver = _this__u8e3s4.r49_1;
|
|
6001
6001
|
var tmp_1;
|
|
6002
6002
|
if (tmp2_safe_receiver == null) {
|
|
6003
6003
|
tmp_1 = null;
|
|
@@ -6016,7 +6016,7 @@ function get_oneOf(_this__u8e3s4) {
|
|
|
6016
6016
|
tmp = tmp_1;
|
|
6017
6017
|
} else {
|
|
6018
6018
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
6019
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
6019
|
+
var tmp3_safe_receiver = _this__u8e3s4.w4j_1;
|
|
6020
6020
|
var tmp_2;
|
|
6021
6021
|
if (tmp3_safe_receiver == null) {
|
|
6022
6022
|
tmp_2 = null;
|
|
@@ -6043,7 +6043,7 @@ function get_oneOf(_this__u8e3s4) {
|
|
|
6043
6043
|
function get_anyOf(_this__u8e3s4) {
|
|
6044
6044
|
var tmp;
|
|
6045
6045
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
6046
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
6046
|
+
var tmp1_safe_receiver = _this__u8e3s4.g40_1;
|
|
6047
6047
|
var tmp_0;
|
|
6048
6048
|
if (tmp1_safe_receiver == null) {
|
|
6049
6049
|
tmp_0 = null;
|
|
@@ -6062,7 +6062,7 @@ function get_anyOf(_this__u8e3s4) {
|
|
|
6062
6062
|
tmp = tmp_0;
|
|
6063
6063
|
} else {
|
|
6064
6064
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
6065
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
6065
|
+
var tmp2_safe_receiver = _this__u8e3s4.s49_1;
|
|
6066
6066
|
var tmp_1;
|
|
6067
6067
|
if (tmp2_safe_receiver == null) {
|
|
6068
6068
|
tmp_1 = null;
|
|
@@ -6081,7 +6081,7 @@ function get_anyOf(_this__u8e3s4) {
|
|
|
6081
6081
|
tmp = tmp_1;
|
|
6082
6082
|
} else {
|
|
6083
6083
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
6084
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
6084
|
+
var tmp3_safe_receiver = _this__u8e3s4.x4j_1;
|
|
6085
6085
|
var tmp_2;
|
|
6086
6086
|
if (tmp3_safe_receiver == null) {
|
|
6087
6087
|
tmp_2 = null;
|
|
@@ -6126,7 +6126,7 @@ function resolve_6(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
6126
6126
|
}
|
|
6127
6127
|
function toField_4(_this__u8e3s4, schema, name) {
|
|
6128
6128
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
6129
|
-
var tmp0_elvis_lhs = schema.
|
|
6129
|
+
var tmp0_elvis_lhs = schema.o3m();
|
|
6130
6130
|
// Inline function 'kotlin.collections.map' call
|
|
6131
6131
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
6132
6132
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -6145,10 +6145,10 @@ function toField_4(_this__u8e3s4, schema, name) {
|
|
|
6145
6145
|
var tmp;
|
|
6146
6146
|
if (isInterface(value, Schema)) {
|
|
6147
6147
|
// Inline function 'kotlin.let' call
|
|
6148
|
-
var reference = !(value.
|
|
6148
|
+
var reference = !(value.l3m() == 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]));
|
|
6149
6149
|
var tmp1_identifier = new FieldIdentifier(key);
|
|
6150
|
-
var tmp2_annotations = toDescriptionAnnotationList(value.
|
|
6151
|
-
var tmp0_safe_receiver_0 = value.
|
|
6150
|
+
var tmp2_annotations = toDescriptionAnnotationList(value.j3m());
|
|
6151
|
+
var tmp0_safe_receiver_0 = value.k3m();
|
|
6152
6152
|
var tmp3_defaultValue = tmp0_safe_receiver_0 == null ? null : toDefaultValue(tmp0_safe_receiver_0, reference);
|
|
6153
6153
|
tmp = new Field(tmp2_annotations, tmp1_identifier, reference, tmp3_defaultValue);
|
|
6154
6154
|
} else {
|
|
@@ -6172,8 +6172,8 @@ function asLinkExpression(_this__u8e3s4) {
|
|
|
6172
6172
|
return tmp1_elvis_lhs == null ? toString(_this__u8e3s4) : tmp1_elvis_lhs;
|
|
6173
6173
|
}
|
|
6174
6174
|
function resolveLink(_this__u8e3s4, reference) {
|
|
6175
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
6176
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
6175
|
+
var tmp0_safe_receiver = _this__u8e3s4.f3p();
|
|
6176
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s3m();
|
|
6177
6177
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t2(getReference(reference));
|
|
6178
6178
|
var tmp;
|
|
6179
6179
|
if (tmp2_safe_receiver == null) {
|
|
@@ -6196,7 +6196,7 @@ function resolveLink(_this__u8e3s4, reference) {
|
|
|
6196
6196
|
var tmp_1;
|
|
6197
6197
|
if (tmp3_elvis_lhs == null) {
|
|
6198
6198
|
// Inline function 'kotlin.error' call
|
|
6199
|
-
var message = 'Cannot resolve link ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
6199
|
+
var message = 'Cannot resolve link ref: ' + Ref__toString_impl_irb7zi(reference.i3m());
|
|
6200
6200
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
6201
6201
|
} else {
|
|
6202
6202
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -6244,16 +6244,16 @@ function toCommon_1(_this__u8e3s4) {
|
|
|
6244
6244
|
}
|
|
6245
6245
|
function parseParameters$lambda_0($this_parseParameters) {
|
|
6246
6246
|
return function ($this$flatMapRequests) {
|
|
6247
|
-
var parameters = plus_0(resolveParameters_0($this_parseParameters, $this$flatMapRequests.
|
|
6248
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
6249
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
6247
|
+
var parameters = plus_0(resolveParameters_0($this_parseParameters, $this$flatMapRequests.r4s_1.o1i()), resolveParameters_0($this_parseParameters, $this$flatMapRequests.t4s_1.o1i()));
|
|
6248
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.t4s_1);
|
|
6249
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.q4s_1) + $this$flatMapRequests.s4s_1.e3_1 : tmp0_elvis_lhs;
|
|
6250
6250
|
// Inline function 'kotlin.collections.flatMap' call
|
|
6251
6251
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
6252
6252
|
var destination = ArrayList_init_$Create$_0();
|
|
6253
6253
|
var _iterator__ex2g4s = parameters.t();
|
|
6254
6254
|
while (_iterator__ex2g4s.u()) {
|
|
6255
6255
|
var element = _iterator__ex2g4s.v();
|
|
6256
|
-
var tmp0_safe_receiver = element.
|
|
6256
|
+
var tmp0_safe_receiver = element.t3m();
|
|
6257
6257
|
var tmp;
|
|
6258
6258
|
if (tmp0_safe_receiver == null) {
|
|
6259
6259
|
tmp = null;
|
|
@@ -6270,9 +6270,9 @@ function parseParameters$lambda_0($this_parseParameters) {
|
|
|
6270
6270
|
}
|
|
6271
6271
|
function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
6272
6272
|
return function ($this$flatMapRequests) {
|
|
6273
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
6274
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
6275
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
6273
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.t4s_1);
|
|
6274
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.q4s_1) + $this$flatMapRequests.s4s_1.e3_1 : tmp0_elvis_lhs;
|
|
6275
|
+
var tmp1_safe_receiver = $this$flatMapRequests.t4s_1.a3n();
|
|
6276
6276
|
var tmp;
|
|
6277
6277
|
if (tmp1_safe_receiver == null) {
|
|
6278
6278
|
tmp = null;
|
|
@@ -6293,7 +6293,7 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
6293
6293
|
var element = _iterator__ex2g4s.v();
|
|
6294
6294
|
// Inline function 'kotlin.collections.component2' call
|
|
6295
6295
|
var mediaObject = element.o1();
|
|
6296
|
-
var schema = mediaObject.
|
|
6296
|
+
var schema = mediaObject.t3m();
|
|
6297
6297
|
var tmp_0;
|
|
6298
6298
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
6299
6299
|
var tmp0_subject = get_primitiveType_0(schema);
|
|
@@ -6304,7 +6304,7 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
6304
6304
|
tmp_1 = flatten_0($this_parseRequestBody, schema, className([name, 'RequestBody']));
|
|
6305
6305
|
break;
|
|
6306
6306
|
case 4:
|
|
6307
|
-
var tmp1_safe_receiver_0 = schema.
|
|
6307
|
+
var tmp1_safe_receiver_0 = schema.m3m();
|
|
6308
6308
|
var tmp_2;
|
|
6309
6309
|
if (tmp1_safe_receiver_0 == null) {
|
|
6310
6310
|
tmp_2 = null;
|
|
@@ -6344,15 +6344,15 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
6344
6344
|
}
|
|
6345
6345
|
function parseResponseBody$lambda_0($this_parseResponseBody) {
|
|
6346
6346
|
return function ($this$flatMapResponses) {
|
|
6347
|
-
var tmp0_elvis_lhs = toName($this$flatMapResponses.
|
|
6348
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
6349
|
-
var res = $this$flatMapResponses.
|
|
6347
|
+
var tmp0_elvis_lhs = toName($this$flatMapResponses.x4s_1);
|
|
6348
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.u4s_1) + $this$flatMapResponses.w4s_1.e3_1 : tmp0_elvis_lhs;
|
|
6349
|
+
var res = $this$flatMapResponses.z4s_1;
|
|
6350
6350
|
var tmp;
|
|
6351
6351
|
if (isInterface(res, Reference)) {
|
|
6352
|
-
tmp = flatMapResponse($this_parseResponseBody, resolveResponse_0($this_parseResponseBody, res).hf_1, name, $this$flatMapResponses.
|
|
6352
|
+
tmp = flatMapResponse($this_parseResponseBody, resolveResponse_0($this_parseResponseBody, res).hf_1, name, $this$flatMapResponses.y4s_1);
|
|
6353
6353
|
} else {
|
|
6354
6354
|
if (isInterface(res, Response_0)) {
|
|
6355
|
-
tmp = flatMapResponse($this_parseResponseBody, res, name, $this$flatMapResponses.
|
|
6355
|
+
tmp = flatMapResponse($this_parseResponseBody, res, name, $this$flatMapResponses.y4s_1);
|
|
6356
6356
|
} else {
|
|
6357
6357
|
noWhenBranchMatchedException();
|
|
6358
6358
|
}
|