@flock/wirespec 0.19.4 → 0.19.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clikt-clikt-mordant.mjs +78 -78
- package/clikt-clikt.mjs +1312 -1312
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +426 -426
- package/kotlin-kotlin-stdlib.mjs +78 -77
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +9632 -9632
- package/kotlin-rgxgen.mjs +1759 -1759
- package/kotlinx-io-kotlinx-io-core.mjs +403 -403
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1729 -1729
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1467 -1467
- package/mordant-mordant.mjs +1157 -1157
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +13 -1
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +311 -340
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +143 -143
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +204 -196
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +349 -349
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +123 -123
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +194 -194
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +22 -22
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +3584 -3460
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +227 -58
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +473 -473
- package/wirespec-src-converter-openapi.mjs +342 -342
- package/wirespec-src-ide-lsp.mjs +1346 -1346
- package/wirespec-src-plugin-arguments.mjs +131 -131
- package/wirespec-src-plugin-cli.mjs +87 -87
- package/wirespec-src-plugin-npm.d.mts +39 -2
- package/wirespec-src-plugin-npm.mjs +21 -21
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +2 -2
|
@@ -303,28 +303,28 @@ function toOperationList(_this__u8e3s4) {
|
|
|
303
303
|
var tmp;
|
|
304
304
|
switch (element.b3_1) {
|
|
305
305
|
case 0:
|
|
306
|
-
tmp = _this__u8e3s4.
|
|
306
|
+
tmp = _this__u8e3s4.y34();
|
|
307
307
|
break;
|
|
308
308
|
case 1:
|
|
309
|
-
tmp = _this__u8e3s4.
|
|
309
|
+
tmp = _this__u8e3s4.a35();
|
|
310
310
|
break;
|
|
311
311
|
case 2:
|
|
312
|
-
tmp = _this__u8e3s4.
|
|
312
|
+
tmp = _this__u8e3s4.z34();
|
|
313
313
|
break;
|
|
314
314
|
case 3:
|
|
315
|
-
tmp = _this__u8e3s4.
|
|
315
|
+
tmp = _this__u8e3s4.b35();
|
|
316
316
|
break;
|
|
317
317
|
case 4:
|
|
318
|
-
tmp = _this__u8e3s4.
|
|
318
|
+
tmp = _this__u8e3s4.c35();
|
|
319
319
|
break;
|
|
320
320
|
case 5:
|
|
321
|
-
tmp = _this__u8e3s4.
|
|
321
|
+
tmp = _this__u8e3s4.d35();
|
|
322
322
|
break;
|
|
323
323
|
case 6:
|
|
324
|
-
tmp = _this__u8e3s4.
|
|
324
|
+
tmp = _this__u8e3s4.e35();
|
|
325
325
|
break;
|
|
326
326
|
case 7:
|
|
327
|
-
tmp = _this__u8e3s4.
|
|
327
|
+
tmp = _this__u8e3s4.f35();
|
|
328
328
|
break;
|
|
329
329
|
default:
|
|
330
330
|
noWhenBranchMatchedException();
|
|
@@ -336,7 +336,7 @@ function toOperationList(_this__u8e3s4) {
|
|
|
336
336
|
return filterNotNullValues(result);
|
|
337
337
|
}
|
|
338
338
|
function toName(_this__u8e3s4) {
|
|
339
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
339
|
+
var tmp0_safe_receiver = _this__u8e3s4.c31();
|
|
340
340
|
var tmp;
|
|
341
341
|
if (tmp0_safe_receiver == null) {
|
|
342
342
|
tmp = null;
|
|
@@ -381,7 +381,7 @@ function sanitize(_this__u8e3s4) {
|
|
|
381
381
|
}
|
|
382
382
|
function flatMapRequests(_this__u8e3s4, f) {
|
|
383
383
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
384
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
384
|
+
var tmp0_elvis_lhs = _this__u8e3s4.d33();
|
|
385
385
|
// Inline function 'kotlin.collections.flatMap' call
|
|
386
386
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
387
387
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -391,7 +391,7 @@ function flatMapRequests(_this__u8e3s4, f) {
|
|
|
391
391
|
while (_iterator__ex2g4s.u()) {
|
|
392
392
|
var element = _iterator__ex2g4s.v();
|
|
393
393
|
// Inline function 'kotlin.collections.component1' call
|
|
394
|
-
var path = element.k1().
|
|
394
|
+
var path = element.k1().d30_1;
|
|
395
395
|
// Inline function 'kotlin.collections.component2' call
|
|
396
396
|
var pathItem = element.l1();
|
|
397
397
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -424,19 +424,19 @@ function flatMapRequests(_this__u8e3s4, f) {
|
|
|
424
424
|
return destination_1;
|
|
425
425
|
}
|
|
426
426
|
function FlattenRequest(path, pathItem, method, operation) {
|
|
427
|
-
this.
|
|
428
|
-
this.
|
|
429
|
-
this.
|
|
430
|
-
this.
|
|
427
|
+
this.u46_1 = path;
|
|
428
|
+
this.v46_1 = pathItem;
|
|
429
|
+
this.w46_1 = method;
|
|
430
|
+
this.x46_1 = operation;
|
|
431
431
|
}
|
|
432
432
|
protoOf(FlattenRequest).toString = function () {
|
|
433
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
433
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.u46_1) + ', pathItem=' + toString(this.v46_1) + ', method=' + this.w46_1.toString() + ', operation=' + toString(this.x46_1) + ')';
|
|
434
434
|
};
|
|
435
435
|
protoOf(FlattenRequest).hashCode = function () {
|
|
436
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
437
|
-
result = imul(result, 31) + hashCode(this.t46_1) | 0;
|
|
438
|
-
result = imul(result, 31) + this.u46_1.hashCode() | 0;
|
|
436
|
+
var result = Path__hashCode_impl_go73kd(this.u46_1);
|
|
439
437
|
result = imul(result, 31) + hashCode(this.v46_1) | 0;
|
|
438
|
+
result = imul(result, 31) + this.w46_1.hashCode() | 0;
|
|
439
|
+
result = imul(result, 31) + hashCode(this.x46_1) | 0;
|
|
440
440
|
return result;
|
|
441
441
|
};
|
|
442
442
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -444,19 +444,19 @@ protoOf(FlattenRequest).equals = function (other) {
|
|
|
444
444
|
return true;
|
|
445
445
|
if (!(other instanceof FlattenRequest))
|
|
446
446
|
return false;
|
|
447
|
-
if (!(this.
|
|
447
|
+
if (!(this.u46_1 === other.u46_1))
|
|
448
448
|
return false;
|
|
449
|
-
if (!equals(this.
|
|
449
|
+
if (!equals(this.v46_1, other.v46_1))
|
|
450
450
|
return false;
|
|
451
|
-
if (!this.
|
|
451
|
+
if (!this.w46_1.equals(other.w46_1))
|
|
452
452
|
return false;
|
|
453
|
-
if (!equals(this.
|
|
453
|
+
if (!equals(this.x46_1, other.x46_1))
|
|
454
454
|
return false;
|
|
455
455
|
return true;
|
|
456
456
|
};
|
|
457
457
|
function flatMapResponses(_this__u8e3s4, f) {
|
|
458
458
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
459
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
459
|
+
var tmp0_elvis_lhs = _this__u8e3s4.d33();
|
|
460
460
|
// Inline function 'kotlin.collections.flatMap' call
|
|
461
461
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
462
462
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -466,7 +466,7 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
466
466
|
while (_iterator__ex2g4s.u()) {
|
|
467
467
|
var element = _iterator__ex2g4s.v();
|
|
468
468
|
// Inline function 'kotlin.collections.component1' call
|
|
469
|
-
var path = element.k1().
|
|
469
|
+
var path = element.k1().d30_1;
|
|
470
470
|
// Inline function 'kotlin.collections.component2' call
|
|
471
471
|
var pathItem = element.l1();
|
|
472
472
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -492,7 +492,7 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
492
492
|
while (_iterator__ex2g4s_1.u()) {
|
|
493
493
|
var item = _iterator__ex2g4s_1.v();
|
|
494
494
|
// Inline function 'kotlin.collections.component1' call
|
|
495
|
-
var statusCode = item.k1().
|
|
495
|
+
var statusCode = item.k1().h30_1;
|
|
496
496
|
// Inline function 'kotlin.collections.component2' call
|
|
497
497
|
var response = item.l1();
|
|
498
498
|
var tmp$ret$11 = new FlattenResponse(path, pathItem, method, operation, statusCode, response);
|
|
@@ -516,23 +516,23 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
516
516
|
return destination_2;
|
|
517
517
|
}
|
|
518
518
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response) {
|
|
519
|
-
this.
|
|
520
|
-
this.
|
|
521
|
-
this.
|
|
522
|
-
this.
|
|
523
|
-
this.
|
|
524
|
-
this.
|
|
519
|
+
this.y46_1 = path;
|
|
520
|
+
this.z46_1 = pathItem;
|
|
521
|
+
this.a47_1 = method;
|
|
522
|
+
this.b47_1 = operation;
|
|
523
|
+
this.c47_1 = statusCode;
|
|
524
|
+
this.d47_1 = response;
|
|
525
525
|
}
|
|
526
526
|
protoOf(FlattenResponse).toString = function () {
|
|
527
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
527
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.y46_1) + ', pathItem=' + toString(this.z46_1) + ', method=' + this.a47_1.toString() + ', operation=' + toString(this.b47_1) + ', statusCode=' + StatusCode__toString_impl_6caewy(this.c47_1) + ', response=' + toString(this.d47_1) + ')';
|
|
528
528
|
};
|
|
529
529
|
protoOf(FlattenResponse).hashCode = function () {
|
|
530
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
531
|
-
result = imul(result, 31) + hashCode(this.x46_1) | 0;
|
|
532
|
-
result = imul(result, 31) + this.y46_1.hashCode() | 0;
|
|
530
|
+
var result = Path__hashCode_impl_go73kd(this.y46_1);
|
|
533
531
|
result = imul(result, 31) + hashCode(this.z46_1) | 0;
|
|
534
|
-
result = imul(result, 31) +
|
|
532
|
+
result = imul(result, 31) + this.a47_1.hashCode() | 0;
|
|
535
533
|
result = imul(result, 31) + hashCode(this.b47_1) | 0;
|
|
534
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.c47_1) | 0;
|
|
535
|
+
result = imul(result, 31) + hashCode(this.d47_1) | 0;
|
|
536
536
|
return result;
|
|
537
537
|
};
|
|
538
538
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -540,18 +540,18 @@ protoOf(FlattenResponse).equals = function (other) {
|
|
|
540
540
|
return true;
|
|
541
541
|
if (!(other instanceof FlattenResponse))
|
|
542
542
|
return false;
|
|
543
|
-
if (!(this.
|
|
544
|
-
return false;
|
|
545
|
-
if (!equals(this.x46_1, other.x46_1))
|
|
546
|
-
return false;
|
|
547
|
-
if (!this.y46_1.equals(other.y46_1))
|
|
543
|
+
if (!(this.y46_1 === other.y46_1))
|
|
548
544
|
return false;
|
|
549
545
|
if (!equals(this.z46_1, other.z46_1))
|
|
550
546
|
return false;
|
|
551
|
-
if (!
|
|
547
|
+
if (!this.a47_1.equals(other.a47_1))
|
|
552
548
|
return false;
|
|
553
549
|
if (!equals(this.b47_1, other.b47_1))
|
|
554
550
|
return false;
|
|
551
|
+
if (!(this.c47_1 === other.c47_1))
|
|
552
|
+
return false;
|
|
553
|
+
if (!equals(this.d47_1, other.d47_1))
|
|
554
|
+
return false;
|
|
555
555
|
return true;
|
|
556
556
|
};
|
|
557
557
|
function toDict(_this__u8e3s4, isNullable) {
|
|
@@ -559,7 +559,7 @@ function toDict(_this__u8e3s4, isNullable) {
|
|
|
559
559
|
}
|
|
560
560
|
function getReference(_this__u8e3s4) {
|
|
561
561
|
// Inline function 'kotlin.let' call
|
|
562
|
-
var it = split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
562
|
+
var it = split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.m30()), ['/']);
|
|
563
563
|
var tmp;
|
|
564
564
|
if (_this__u8e3s4 instanceof OpenAPIV20Reference) {
|
|
565
565
|
tmp = getOrNull(it, 2);
|
|
@@ -569,7 +569,7 @@ function getReference(_this__u8e3s4) {
|
|
|
569
569
|
var tmp0_elvis_lhs = tmp;
|
|
570
570
|
var tmp_0;
|
|
571
571
|
if (tmp0_elvis_lhs == null) {
|
|
572
|
-
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
572
|
+
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe(_this__u8e3s4.m30());
|
|
573
573
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
574
574
|
} else {
|
|
575
575
|
tmp_0 = tmp0_elvis_lhs;
|
|
@@ -584,8 +584,8 @@ function isParam(_this__u8e3s4) {
|
|
|
584
584
|
}
|
|
585
585
|
function jsonDefault$lambda($strict) {
|
|
586
586
|
return function ($this$Json) {
|
|
587
|
-
$this$Json.
|
|
588
|
-
$this$Json.
|
|
587
|
+
$this$Json.d2n_1 = true;
|
|
588
|
+
$this$Json.b2n_1 = !$strict;
|
|
589
589
|
return Unit_instance;
|
|
590
590
|
};
|
|
591
591
|
}
|
|
@@ -745,25 +745,25 @@ function toDescriptionAnnotationList(_this__u8e3s4) {
|
|
|
745
745
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
746
746
|
}
|
|
747
747
|
function LinkInfo(name, operationId, operationRef, parameters, requestBody, description, serverUrl) {
|
|
748
|
-
this.
|
|
749
|
-
this.
|
|
750
|
-
this.
|
|
751
|
-
this.
|
|
752
|
-
this.
|
|
753
|
-
this.
|
|
754
|
-
this.
|
|
748
|
+
this.e47_1 = name;
|
|
749
|
+
this.f47_1 = operationId;
|
|
750
|
+
this.g47_1 = operationRef;
|
|
751
|
+
this.h47_1 = parameters;
|
|
752
|
+
this.i47_1 = requestBody;
|
|
753
|
+
this.j47_1 = description;
|
|
754
|
+
this.k47_1 = serverUrl;
|
|
755
755
|
}
|
|
756
756
|
protoOf(LinkInfo).toString = function () {
|
|
757
|
-
return 'LinkInfo(name=' + this.
|
|
757
|
+
return 'LinkInfo(name=' + this.e47_1 + ', operationId=' + this.f47_1 + ', operationRef=' + this.g47_1 + ', parameters=' + toString(this.h47_1) + ', requestBody=' + this.i47_1 + ', description=' + this.j47_1 + ', serverUrl=' + this.k47_1 + ')';
|
|
758
758
|
};
|
|
759
759
|
protoOf(LinkInfo).hashCode = function () {
|
|
760
|
-
var result = getStringHashCode(this.
|
|
761
|
-
result = imul(result, 31) + (this.
|
|
762
|
-
result = imul(result, 31) + (this.e47_1 == null ? 0 : getStringHashCode(this.e47_1)) | 0;
|
|
763
|
-
result = imul(result, 31) + hashCode(this.f47_1) | 0;
|
|
760
|
+
var result = getStringHashCode(this.e47_1);
|
|
761
|
+
result = imul(result, 31) + (this.f47_1 == null ? 0 : getStringHashCode(this.f47_1)) | 0;
|
|
764
762
|
result = imul(result, 31) + (this.g47_1 == null ? 0 : getStringHashCode(this.g47_1)) | 0;
|
|
765
|
-
result = imul(result, 31) + (this.h47_1
|
|
763
|
+
result = imul(result, 31) + hashCode(this.h47_1) | 0;
|
|
766
764
|
result = imul(result, 31) + (this.i47_1 == null ? 0 : getStringHashCode(this.i47_1)) | 0;
|
|
765
|
+
result = imul(result, 31) + (this.j47_1 == null ? 0 : getStringHashCode(this.j47_1)) | 0;
|
|
766
|
+
result = imul(result, 31) + (this.k47_1 == null ? 0 : getStringHashCode(this.k47_1)) | 0;
|
|
767
767
|
return result;
|
|
768
768
|
};
|
|
769
769
|
protoOf(LinkInfo).equals = function (other) {
|
|
@@ -771,20 +771,20 @@ protoOf(LinkInfo).equals = function (other) {
|
|
|
771
771
|
return true;
|
|
772
772
|
if (!(other instanceof LinkInfo))
|
|
773
773
|
return false;
|
|
774
|
-
if (!(this.
|
|
775
|
-
return false;
|
|
776
|
-
if (!(this.d47_1 == other.d47_1))
|
|
774
|
+
if (!(this.e47_1 === other.e47_1))
|
|
777
775
|
return false;
|
|
778
|
-
if (!(this.
|
|
779
|
-
return false;
|
|
780
|
-
if (!equals(this.f47_1, other.f47_1))
|
|
776
|
+
if (!(this.f47_1 == other.f47_1))
|
|
781
777
|
return false;
|
|
782
778
|
if (!(this.g47_1 == other.g47_1))
|
|
783
779
|
return false;
|
|
784
|
-
if (!(this.h47_1
|
|
780
|
+
if (!equals(this.h47_1, other.h47_1))
|
|
785
781
|
return false;
|
|
786
782
|
if (!(this.i47_1 == other.i47_1))
|
|
787
783
|
return false;
|
|
784
|
+
if (!(this.j47_1 == other.j47_1))
|
|
785
|
+
return false;
|
|
786
|
+
if (!(this.k47_1 == other.k47_1))
|
|
787
|
+
return false;
|
|
788
788
|
return true;
|
|
789
789
|
};
|
|
790
790
|
function findLinks(_this__u8e3s4) {
|
|
@@ -818,8 +818,8 @@ function findLinks(_this__u8e3s4) {
|
|
|
818
818
|
}
|
|
819
819
|
function toAnnotation(_this__u8e3s4) {
|
|
820
820
|
_init_properties_Utils_kt__jo07cx();
|
|
821
|
-
var params = mutableListOf([new Parameter('default', new Single(_this__u8e3s4.
|
|
822
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
821
|
+
var params = mutableListOf([new Parameter('default', new Single(_this__u8e3s4.e47_1))]);
|
|
822
|
+
var tmp0_safe_receiver = _this__u8e3s4.f47_1;
|
|
823
823
|
if (tmp0_safe_receiver == null)
|
|
824
824
|
null;
|
|
825
825
|
else {
|
|
@@ -828,7 +828,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
828
828
|
var element = new Parameter('operationId', new Single(tmp0_safe_receiver));
|
|
829
829
|
params.x(element);
|
|
830
830
|
}
|
|
831
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
831
|
+
var tmp1_safe_receiver = _this__u8e3s4.g47_1;
|
|
832
832
|
if (tmp1_safe_receiver == null)
|
|
833
833
|
null;
|
|
834
834
|
else {
|
|
@@ -838,9 +838,9 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
838
838
|
params.x(element_0);
|
|
839
839
|
}
|
|
840
840
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
841
|
-
if (!_this__u8e3s4.
|
|
841
|
+
if (!_this__u8e3s4.h47_1.r()) {
|
|
842
842
|
// Inline function 'kotlin.collections.map' call
|
|
843
|
-
var this_0 = _this__u8e3s4.
|
|
843
|
+
var this_0 = _this__u8e3s4.h47_1;
|
|
844
844
|
// Inline function 'kotlin.collections.mapTo' call
|
|
845
845
|
var destination = ArrayList_init_$Create$_0(this_0.a1());
|
|
846
846
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -858,7 +858,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
858
858
|
var element_1 = new Parameter('parameters', new Dict_0(destination));
|
|
859
859
|
params.x(element_1);
|
|
860
860
|
}
|
|
861
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
861
|
+
var tmp2_safe_receiver = _this__u8e3s4.i47_1;
|
|
862
862
|
if (tmp2_safe_receiver == null)
|
|
863
863
|
null;
|
|
864
864
|
else {
|
|
@@ -867,7 +867,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
867
867
|
var element_2 = new Parameter('requestBody', new Single(tmp2_safe_receiver));
|
|
868
868
|
params.x(element_2);
|
|
869
869
|
}
|
|
870
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
870
|
+
var tmp3_safe_receiver = _this__u8e3s4.j47_1;
|
|
871
871
|
if (tmp3_safe_receiver == null)
|
|
872
872
|
null;
|
|
873
873
|
else {
|
|
@@ -876,7 +876,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
876
876
|
var element_3 = new Parameter('description', new Single(tmp3_safe_receiver));
|
|
877
877
|
params.x(element_3);
|
|
878
878
|
}
|
|
879
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
879
|
+
var tmp4_safe_receiver = _this__u8e3s4.k47_1;
|
|
880
880
|
if (tmp4_safe_receiver == null)
|
|
881
881
|
null;
|
|
882
882
|
else {
|
|
@@ -1029,7 +1029,7 @@ function filterNotNullValues(_this__u8e3s4) {
|
|
|
1029
1029
|
}
|
|
1030
1030
|
function json$lambda($this$Json) {
|
|
1031
1031
|
_init_properties_Utils_kt__jo07cx();
|
|
1032
|
-
$this$Json.
|
|
1032
|
+
$this$Json.d2n_1 = true;
|
|
1033
1033
|
return Unit_instance;
|
|
1034
1034
|
}
|
|
1035
1035
|
function className$lambda(it) {
|
|
@@ -1337,7 +1337,7 @@ function toProperties($this, _this__u8e3s4) {
|
|
|
1337
1337
|
var it = toSchemaOrReference($this, _this__u8e3s4.rp_1);
|
|
1338
1338
|
var tmp_0;
|
|
1339
1339
|
if (it instanceof OpenAPIV20Schema) {
|
|
1340
|
-
tmp_0 = it.
|
|
1340
|
+
tmp_0 = it.p36(VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription(_this__u8e3s4.pp_1));
|
|
1341
1341
|
} else {
|
|
1342
1342
|
if (it instanceof OpenAPIV20Reference) {
|
|
1343
1343
|
tmp_0 = it;
|
|
@@ -1578,7 +1578,7 @@ function emitParameter($this, _this__u8e3s4, location) {
|
|
|
1578
1578
|
tmp_0 = emit;
|
|
1579
1579
|
} else {
|
|
1580
1580
|
if (emit instanceof OpenAPIV20Schema) {
|
|
1581
|
-
tmp_0 = emit.
|
|
1581
|
+
tmp_0 = emit.z35_1;
|
|
1582
1582
|
} else {
|
|
1583
1583
|
noWhenBranchMatchedException();
|
|
1584
1584
|
}
|
|
@@ -1764,10 +1764,10 @@ function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
|
1764
1764
|
}
|
|
1765
1765
|
function OpenAPIV2Emitter() {
|
|
1766
1766
|
OpenAPIV2Emitter_instance = this;
|
|
1767
|
-
this.
|
|
1767
|
+
this.l47_1 = FileExtension_JSON_getInstance();
|
|
1768
1768
|
}
|
|
1769
1769
|
protoOf(OpenAPIV2Emitter).uq = function () {
|
|
1770
|
-
return this.
|
|
1770
|
+
return this.l47_1;
|
|
1771
1771
|
};
|
|
1772
1772
|
protoOf(OpenAPIV2Emitter).eo = function (ast, logger) {
|
|
1773
1773
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
@@ -1785,21 +1785,21 @@ protoOf(OpenAPIV2Emitter).eo = function (ast, logger) {
|
|
|
1785
1785
|
}
|
|
1786
1786
|
// Inline function 'kotlin.let' call
|
|
1787
1787
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
1788
|
-
var tmp = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().
|
|
1788
|
+
var tmp = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().l47_1.dr_1;
|
|
1789
1789
|
var tmp0_0 = get_json();
|
|
1790
1790
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
1791
|
-
var value = OpenAPIV2Emitter_getInstance().
|
|
1791
|
+
var value = OpenAPIV2Emitter_getInstance().m47(it, logger);
|
|
1792
1792
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
1793
|
-
var this_1 = tmp0_0.
|
|
1793
|
+
var this_1 = tmp0_0.b25();
|
|
1794
1794
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1795
1795
|
var this_2 = serializer(this_1, createKType(getKClass(OpenAPIV2Model), arrayOf([]), false));
|
|
1796
1796
|
var tmp$ret$5 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
1797
|
-
var tmp$ret$6 = tmp0_0.
|
|
1797
|
+
var tmp$ret$6 = tmp0_0.g2m(tmp$ret$5, value);
|
|
1798
1798
|
// Inline function 'kotlin.let' call
|
|
1799
1799
|
var it_0 = new Emitted(tmp, tmp$ret$6);
|
|
1800
1800
|
return nonEmptyListOf(it_0, []);
|
|
1801
1801
|
};
|
|
1802
|
-
protoOf(OpenAPIV2Emitter).
|
|
1802
|
+
protoOf(OpenAPIV2Emitter).m47 = function (statements, logger) {
|
|
1803
1803
|
var tmp0_info = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, VOID, '0.0.0');
|
|
1804
1804
|
var tmp1_consumes = listOf('application/json');
|
|
1805
1805
|
var tmp2_produces = listOf('application/json');
|
|
@@ -1815,15 +1815,15 @@ function OpenAPIV2Emitter_getInstance() {
|
|
|
1815
1815
|
}
|
|
1816
1816
|
function OpenAPIV2Parser$parse$lambda($strict) {
|
|
1817
1817
|
return function (it) {
|
|
1818
|
-
return new NonEmptyList(OpenAPIV2Parser_instance.
|
|
1818
|
+
return new NonEmptyList(OpenAPIV2Parser_instance.n47((new OpenAPIV2(jsonDefault($strict))).x32(it)));
|
|
1819
1819
|
};
|
|
1820
1820
|
}
|
|
1821
1821
|
function OpenAPIV2Parser() {
|
|
1822
1822
|
}
|
|
1823
|
-
protoOf(OpenAPIV2Parser).
|
|
1823
|
+
protoOf(OpenAPIV2Parser).o47 = function (moduleContent, strict) {
|
|
1824
1824
|
return parseOpenApi(moduleContent, OpenAPIV2Parser$parse$lambda(strict));
|
|
1825
1825
|
};
|
|
1826
|
-
protoOf(OpenAPIV2Parser).
|
|
1826
|
+
protoOf(OpenAPIV2Parser).n47 = function (_this__u8e3s4) {
|
|
1827
1827
|
// Inline function 'kotlin.collections.reduce' call
|
|
1828
1828
|
var iterator = listOf_0([parseEndpoints(_this__u8e3s4), parseParameters(_this__u8e3s4), parseRequestBody(_this__u8e3s4), parseResponseBody(_this__u8e3s4), parseDefinitions(_this__u8e3s4)]).t();
|
|
1829
1829
|
if (!iterator.u())
|
|
@@ -1859,7 +1859,7 @@ function OpenAPIV2Parser_getInstance() {
|
|
|
1859
1859
|
}
|
|
1860
1860
|
function parseEndpoints(_this__u8e3s4) {
|
|
1861
1861
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1862
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1862
|
+
var tmp0_elvis_lhs = _this__u8e3s4.d33();
|
|
1863
1863
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1864
1864
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1865
1865
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -1869,7 +1869,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1869
1869
|
while (_iterator__ex2g4s.u()) {
|
|
1870
1870
|
var element = _iterator__ex2g4s.v();
|
|
1871
1871
|
// Inline function 'kotlin.collections.component1' call
|
|
1872
|
-
var path = element.k1().
|
|
1872
|
+
var path = element.k1().d30_1;
|
|
1873
1873
|
// Inline function 'kotlin.collections.component2' call
|
|
1874
1874
|
var pathItem = element.l1();
|
|
1875
1875
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1884,7 +1884,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1884
1884
|
var method = element_0.k1();
|
|
1885
1885
|
// Inline function 'kotlin.collections.component2' call
|
|
1886
1886
|
var operation = element_0.l1();
|
|
1887
|
-
var parameters = plus_0(resolveParameters(_this__u8e3s4, pathItem.
|
|
1887
|
+
var parameters = plus_0(resolveParameters(_this__u8e3s4, pathItem.d31()), resolveParameters(_this__u8e3s4, operation.d31()));
|
|
1888
1888
|
var segments = toSegments(path, parameters);
|
|
1889
1889
|
var tmp0_elvis_lhs_0 = toName(operation);
|
|
1890
1890
|
var name = tmp0_elvis_lhs_0 == null ? toName_0(path) + method.a3_1 : tmp0_elvis_lhs_0;
|
|
@@ -1929,9 +1929,9 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1929
1929
|
}
|
|
1930
1930
|
var headers = destination_4;
|
|
1931
1931
|
var tmp1_safe_receiver = operation instanceof OpenAPIV20Operation ? operation : null;
|
|
1932
|
-
var operationConsumes = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1932
|
+
var operationConsumes = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.v37_1;
|
|
1933
1933
|
var tmp2_safe_receiver = operation instanceof OpenAPIV20Operation ? operation : null;
|
|
1934
|
-
var operationProduces = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
1934
|
+
var operationProduces = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.w37_1;
|
|
1935
1935
|
// Inline function 'kotlin.collections.filter' call
|
|
1936
1936
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1937
1937
|
var destination_5 = ArrayList_init_$Create$();
|
|
@@ -1949,7 +1949,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1949
1949
|
while (_iterator__ex2g4s_6.u()) {
|
|
1950
1950
|
var element_4 = _iterator__ex2g4s_6.v();
|
|
1951
1951
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1952
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
1952
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.a33();
|
|
1953
1953
|
var tmp = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1954
1954
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1955
1955
|
var tmp$ret$23 = operationConsumes == null ? emptyList() : operationConsumes;
|
|
@@ -1969,7 +1969,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1969
1969
|
while (_iterator__ex2g4s_7.u()) {
|
|
1970
1970
|
var item_1 = _iterator__ex2g4s_7.v();
|
|
1971
1971
|
var isNullable = false;
|
|
1972
|
-
var schema = element_4.
|
|
1972
|
+
var schema = element_4.p37_1;
|
|
1973
1973
|
var tmp_1;
|
|
1974
1974
|
if (!(schema == null) ? isInterface(schema, Reference) : false) {
|
|
1975
1975
|
tmp_1 = toReference(_this__u8e3s4, schema, isNullable);
|
|
@@ -2021,11 +2021,11 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2021
2021
|
while (_iterator__ex2g4s_9.u()) {
|
|
2022
2022
|
var element_6 = _iterator__ex2g4s_9.v();
|
|
2023
2023
|
// Inline function 'kotlin.collections.component1' call
|
|
2024
|
-
var status = element_6.k1().
|
|
2024
|
+
var status = element_6.k1().h30_1;
|
|
2025
2025
|
// Inline function 'kotlin.collections.component2' call
|
|
2026
2026
|
var res = element_6.l1();
|
|
2027
2027
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2028
|
-
var tmp0_elvis_lhs_3 = _this__u8e3s4.
|
|
2028
|
+
var tmp0_elvis_lhs_3 = _this__u8e3s4.b33();
|
|
2029
2029
|
var tmp_4 = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
|
|
2030
2030
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2031
2031
|
var tmp$ret$44 = operationProduces == null ? emptyList() : operationProduces;
|
|
@@ -2044,7 +2044,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2044
2044
|
var _iterator__ex2g4s_10 = this_4.t();
|
|
2045
2045
|
while (_iterator__ex2g4s_10.u()) {
|
|
2046
2046
|
var item_2 = _iterator__ex2g4s_10.v();
|
|
2047
|
-
var tmp3_annotations = toDescriptionAnnotationList(res.
|
|
2047
|
+
var tmp3_annotations = toDescriptionAnnotationList(res.n30());
|
|
2048
2048
|
var tmp4_status = _StatusCode___get_value__impl__we50mu(status);
|
|
2049
2049
|
var tmp0_safe_receiver = res.ow();
|
|
2050
2050
|
var tmp_6;
|
|
@@ -2071,7 +2071,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2071
2071
|
var tmp0_elvis_lhs_4 = tmp_6;
|
|
2072
2072
|
var tmp5_headers = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
2073
2073
|
var tmp1_safe_receiver_0 = res instanceof OpenAPIV20Response ? res : null;
|
|
2074
|
-
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
2074
|
+
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.r38_1;
|
|
2075
2075
|
var tmp_7;
|
|
2076
2076
|
if (tmp2_safe_receiver_0 == null) {
|
|
2077
2077
|
tmp_7 = null;
|
|
@@ -2108,7 +2108,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2108
2108
|
}
|
|
2109
2109
|
}
|
|
2110
2110
|
var responses = list_1;
|
|
2111
|
-
var list_2 = listOf(new Endpoint(null, toDescriptionAnnotationList(operation.
|
|
2111
|
+
var list_2 = listOf(new Endpoint(null, toDescriptionAnnotationList(operation.n30()), new DefinitionIdentifier(sanitize(name)), method, segments, query, headers, requests, responses));
|
|
2112
2112
|
addAll(destination_0, list_2);
|
|
2113
2113
|
}
|
|
2114
2114
|
var list_3 = destination_0;
|
|
@@ -2127,7 +2127,7 @@ function parseResponseBody(_this__u8e3s4) {
|
|
|
2127
2127
|
}
|
|
2128
2128
|
function parseDefinitions(_this__u8e3s4) {
|
|
2129
2129
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2130
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2130
|
+
var tmp0_elvis_lhs = _this__u8e3s4.c33();
|
|
2131
2131
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2132
2132
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2133
2133
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -2163,7 +2163,7 @@ function parseDefinitions(_this__u8e3s4) {
|
|
|
2163
2163
|
var _iterator__ex2g4s_0 = destination.t();
|
|
2164
2164
|
while (_iterator__ex2g4s_0.u()) {
|
|
2165
2165
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
2166
|
-
var tmp0_subject = element_0.ff_1.
|
|
2166
|
+
var tmp0_subject = element_0.ff_1.s30();
|
|
2167
2167
|
var tmp_0;
|
|
2168
2168
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
2169
2169
|
tmp_0 = true;
|
|
@@ -2261,7 +2261,7 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
2261
2261
|
var _iterator__ex2g4s_0 = parameters.t();
|
|
2262
2262
|
while (_iterator__ex2g4s_0.u()) {
|
|
2263
2263
|
var element = _iterator__ex2g4s_0.v();
|
|
2264
|
-
if (element.
|
|
2264
|
+
if (element.q37_1 === param) {
|
|
2265
2265
|
tmp$ret$2 = element;
|
|
2266
2266
|
break $l$block;
|
|
2267
2267
|
}
|
|
@@ -2303,18 +2303,18 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
2303
2303
|
return destination;
|
|
2304
2304
|
}
|
|
2305
2305
|
function get_location(_this__u8e3s4) {
|
|
2306
|
-
return _this__u8e3s4.
|
|
2306
|
+
return _this__u8e3s4.o37_1;
|
|
2307
2307
|
}
|
|
2308
2308
|
function toField(_this__u8e3s4, parameter, name) {
|
|
2309
2309
|
// Inline function 'kotlin.let' call
|
|
2310
2310
|
var schema = resolveParameter(_this__u8e3s4, parameter);
|
|
2311
|
-
var tmp0_elvis_lhs = parameter.
|
|
2311
|
+
var tmp0_elvis_lhs = parameter.v36_1;
|
|
2312
2312
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
2313
2313
|
var tmp;
|
|
2314
|
-
if (!(parameter.
|
|
2315
|
-
tmp = new Custom(sanitize(className([name, 'Parameter', schema.
|
|
2314
|
+
if (!(parameter.m37_1 == null)) {
|
|
2315
|
+
tmp = new Custom(sanitize(className([name, 'Parameter', schema.q37_1])), isNullable);
|
|
2316
2316
|
} else {
|
|
2317
|
-
var tmp1_subject = schema.
|
|
2317
|
+
var tmp1_subject = schema.w36_1;
|
|
2318
2318
|
var tmp_0;
|
|
2319
2319
|
switch (tmp1_subject == null ? -1 : tmp1_subject.b3_1) {
|
|
2320
2320
|
case 0:
|
|
@@ -2327,7 +2327,7 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2327
2327
|
tmp_0 = new Primitive(primitive, isNullable);
|
|
2328
2328
|
break;
|
|
2329
2329
|
case 4:
|
|
2330
|
-
var tmp2_safe_receiver = schema.
|
|
2330
|
+
var tmp2_safe_receiver = schema.x36_1;
|
|
2331
2331
|
var tmp_1;
|
|
2332
2332
|
if (tmp2_safe_receiver == null) {
|
|
2333
2333
|
tmp_1 = null;
|
|
@@ -2374,8 +2374,8 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2374
2374
|
}
|
|
2375
2375
|
// Inline function 'kotlin.let' call
|
|
2376
2376
|
var it = tmp;
|
|
2377
|
-
var tmp0_identifier = new FieldIdentifier(parameter.
|
|
2378
|
-
var tmp1_annotations = toDescriptionAnnotationList(parameter.
|
|
2377
|
+
var tmp0_identifier = new FieldIdentifier(parameter.q37_1);
|
|
2378
|
+
var tmp1_annotations = toDescriptionAnnotationList(parameter.u36_1);
|
|
2379
2379
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
2380
2380
|
}
|
|
2381
2381
|
function toReference(_this__u8e3s4, reference, isNullable) {
|
|
@@ -2383,8 +2383,8 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2383
2383
|
var referencingObject = _destruct__k2r9zo.ve();
|
|
2384
2384
|
var schema = _destruct__k2r9zo.we();
|
|
2385
2385
|
var tmp;
|
|
2386
|
-
if (exists(schema.
|
|
2387
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2386
|
+
if (exists(schema.s30())) {
|
|
2387
|
+
var additionalProperties = ensureNotNull(schema.s30());
|
|
2388
2388
|
var tmp_0;
|
|
2389
2389
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
2390
2390
|
tmp_0 = new Dict(new Any(false), isNullable);
|
|
@@ -2400,7 +2400,7 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2400
2400
|
}
|
|
2401
2401
|
}
|
|
2402
2402
|
tmp = tmp_0;
|
|
2403
|
-
} else if (!(schema.
|
|
2403
|
+
} else if (!(schema.o30() == null)) {
|
|
2404
2404
|
tmp = new Custom(sanitize(className([getReference(referencingObject)])), isNullable);
|
|
2405
2405
|
} else if (isPrimitive(get_primitiveType(schema))) {
|
|
2406
2406
|
tmp = new Primitive(toPrimitive_0(schema), isNullable);
|
|
@@ -2408,7 +2408,7 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2408
2408
|
var tmp0_subject = get_primitiveType(schema);
|
|
2409
2409
|
var tmp_1;
|
|
2410
2410
|
if ((tmp0_subject == null ? -1 : tmp0_subject.b3_1) === 4) {
|
|
2411
|
-
var items = schema.
|
|
2411
|
+
var items = schema.p30();
|
|
2412
2412
|
var tmp_2;
|
|
2413
2413
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
2414
2414
|
tmp_2 = toIterable(toReference(_this__u8e3s4, items, false), isNullable);
|
|
@@ -2417,7 +2417,7 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2417
2417
|
tmp_2 = toIterable(toReference_0(_this__u8e3s4, items, className([getReference(referencingObject), 'Array']), isNullable), isNullable);
|
|
2418
2418
|
} else {
|
|
2419
2419
|
if (items == null) {
|
|
2420
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.
|
|
2420
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.m30());
|
|
2421
2421
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2422
2422
|
} else {
|
|
2423
2423
|
noWhenBranchMatchedException();
|
|
@@ -2440,20 +2440,20 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2440
2440
|
var tmp_3;
|
|
2441
2441
|
var tmp_4;
|
|
2442
2442
|
var tmp_5;
|
|
2443
|
-
var tmp0_safe_receiver = schema.
|
|
2443
|
+
var tmp0_safe_receiver = schema.q30();
|
|
2444
2444
|
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1()) === 1) {
|
|
2445
|
-
var tmp_6 = first(ensureNotNull(schema.
|
|
2445
|
+
var tmp_6 = first(ensureNotNull(schema.q30()));
|
|
2446
2446
|
tmp_5 = isInterface(tmp_6, Reference);
|
|
2447
2447
|
} else {
|
|
2448
2448
|
tmp_5 = false;
|
|
2449
2449
|
}
|
|
2450
2450
|
if (tmp_5) {
|
|
2451
|
-
tmp_4 = schema.
|
|
2451
|
+
tmp_4 = schema.r30() == null;
|
|
2452
2452
|
} else {
|
|
2453
2453
|
tmp_4 = false;
|
|
2454
2454
|
}
|
|
2455
2455
|
if (tmp_4) {
|
|
2456
|
-
tmp_3 = schema.
|
|
2456
|
+
tmp_3 = schema.o30() == null;
|
|
2457
2457
|
} else {
|
|
2458
2458
|
tmp_3 = false;
|
|
2459
2459
|
}
|
|
@@ -2463,21 +2463,21 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2463
2463
|
tmp_2 = false;
|
|
2464
2464
|
}
|
|
2465
2465
|
if (tmp_2) {
|
|
2466
|
-
tmp_1 = schema.
|
|
2466
|
+
tmp_1 = schema.p30() == null;
|
|
2467
2467
|
} else {
|
|
2468
2468
|
tmp_1 = false;
|
|
2469
2469
|
}
|
|
2470
2470
|
if (tmp_1) {
|
|
2471
|
-
tmp_0 = schema.
|
|
2471
|
+
tmp_0 = schema.s30() == null;
|
|
2472
2472
|
} else {
|
|
2473
2473
|
tmp_0 = false;
|
|
2474
2474
|
}
|
|
2475
2475
|
if (tmp_0) {
|
|
2476
|
-
var tmp_7 = first(ensureNotNull(schema.
|
|
2476
|
+
var tmp_7 = first(ensureNotNull(schema.q30()));
|
|
2477
2477
|
tmp = toReference(_this__u8e3s4, isInterface(tmp_7, Reference) ? tmp_7 : THROW_CCE(), isNullable);
|
|
2478
2478
|
} else {
|
|
2479
|
-
if (!(schema.
|
|
2480
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2479
|
+
if (!(schema.s30() == null)) {
|
|
2480
|
+
var additionalProperties = ensureNotNull(schema.s30());
|
|
2481
2481
|
var tmp_8;
|
|
2482
2482
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
2483
2483
|
tmp_8 = new Dict(new Any(false), isNullable);
|
|
@@ -2488,7 +2488,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2488
2488
|
if (isInterface(additionalProperties, Schema)) {
|
|
2489
2489
|
// Inline function 'kotlin.takeIf' call
|
|
2490
2490
|
var tmp_9;
|
|
2491
|
-
if (isPrimitive(get_primitiveType(additionalProperties)) || !(additionalProperties.
|
|
2491
|
+
if (isPrimitive(get_primitiveType(additionalProperties)) || !(additionalProperties.r30() == null)) {
|
|
2492
2492
|
tmp_9 = additionalProperties;
|
|
2493
2493
|
} else {
|
|
2494
2494
|
tmp_9 = null;
|
|
@@ -2510,9 +2510,9 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2510
2510
|
}
|
|
2511
2511
|
tmp = tmp_8;
|
|
2512
2512
|
} else {
|
|
2513
|
-
if (!(schema.
|
|
2513
|
+
if (!(schema.o30() == null)) {
|
|
2514
2514
|
var tmp_11;
|
|
2515
|
-
if (!(schema.
|
|
2515
|
+
if (!(schema.s30() == null)) {
|
|
2516
2516
|
tmp_11 = new Dict(new Custom(sanitize(name), false), isNullable);
|
|
2517
2517
|
} else {
|
|
2518
2518
|
tmp_11 = new Custom(sanitize(name), isNullable);
|
|
@@ -2527,7 +2527,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2527
2527
|
case 1:
|
|
2528
2528
|
case 3:
|
|
2529
2529
|
var tmp_13;
|
|
2530
|
-
if (!(schema.
|
|
2530
|
+
if (!(schema.s30() == null)) {
|
|
2531
2531
|
tmp_13 = new Dict(new Primitive(toPrimitive_0(schema), false), isNullable);
|
|
2532
2532
|
} else {
|
|
2533
2533
|
tmp_13 = new Primitive(toPrimitive_0(schema), isNullable);
|
|
@@ -2538,17 +2538,17 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2538
2538
|
case -1:
|
|
2539
2539
|
case 5:
|
|
2540
2540
|
var tmp_14;
|
|
2541
|
-
var tmp_15 = schema.
|
|
2541
|
+
var tmp_15 = schema.s30();
|
|
2542
2542
|
if (!(tmp_15 == null) ? isInterface(tmp_15, BooleanValue) : false) {
|
|
2543
2543
|
var tmp_16;
|
|
2544
|
-
if (!(schema.
|
|
2544
|
+
if (!(schema.s30() == null)) {
|
|
2545
2545
|
tmp_16 = new Dict(new Any(isNullable), false);
|
|
2546
2546
|
} else {
|
|
2547
2547
|
tmp_16 = new Any(isNullable);
|
|
2548
2548
|
}
|
|
2549
2549
|
tmp_14 = tmp_16;
|
|
2550
2550
|
} else {
|
|
2551
|
-
if (!(schema.
|
|
2551
|
+
if (!(schema.s30() == null)) {
|
|
2552
2552
|
new Dict(new Custom(sanitize(name), isNullable), false);
|
|
2553
2553
|
}
|
|
2554
2554
|
tmp_14 = new Custom(sanitize(name), isNullable);
|
|
@@ -2557,7 +2557,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2557
2557
|
tmp_12 = tmp_14;
|
|
2558
2558
|
break;
|
|
2559
2559
|
case 4:
|
|
2560
|
-
var items = schema.
|
|
2560
|
+
var items = schema.p30();
|
|
2561
2561
|
var tmp_17;
|
|
2562
2562
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
2563
2563
|
tmp_17 = toIterable(toReference(_this__u8e3s4, items, false), isNullable);
|
|
@@ -2613,10 +2613,10 @@ function toField_0(_this__u8e3s4, header, identifier) {
|
|
|
2613
2613
|
}
|
|
2614
2614
|
var v20 = tmp;
|
|
2615
2615
|
var tmp5_identifier = new FieldIdentifier(identifier);
|
|
2616
|
-
var tmp6_annotations = toDescriptionAnnotationList(header.
|
|
2616
|
+
var tmp6_annotations = toDescriptionAnnotationList(header.a39_1);
|
|
2617
2617
|
var tmp_0;
|
|
2618
|
-
if (v20.
|
|
2619
|
-
var tmp2_safe_receiver = v20.
|
|
2618
|
+
if (v20.b39_1.b3_1 === 4) {
|
|
2619
|
+
var tmp2_safe_receiver = v20.d39_1;
|
|
2620
2620
|
var tmp_1;
|
|
2621
2621
|
if (tmp2_safe_receiver == null) {
|
|
2622
2622
|
tmp_1 = null;
|
|
@@ -2697,17 +2697,17 @@ function resolveParameter(_this__u8e3s4, parameterOrReference) {
|
|
|
2697
2697
|
}
|
|
2698
2698
|
function get_primitiveType(_this__u8e3s4) {
|
|
2699
2699
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof OpenAPIV20Schema ? _this__u8e3s4 : null;
|
|
2700
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2700
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l35_1;
|
|
2701
2701
|
}
|
|
2702
2702
|
function flatten(_this__u8e3s4, schemaObject, name) {
|
|
2703
2703
|
var tmp;
|
|
2704
|
-
if (exists(schemaObject.
|
|
2705
|
-
var tmp0_subject = schemaObject.
|
|
2704
|
+
if (exists(schemaObject.s30())) {
|
|
2705
|
+
var tmp0_subject = schemaObject.s30();
|
|
2706
2706
|
var tmp_0;
|
|
2707
2707
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
2708
2708
|
tmp_0 = emptyList();
|
|
2709
2709
|
} else {
|
|
2710
|
-
var tmp1_safe_receiver = schemaObject.
|
|
2710
|
+
var tmp1_safe_receiver = schemaObject.s30();
|
|
2711
2711
|
var tmp_1;
|
|
2712
2712
|
if (tmp1_safe_receiver == null) {
|
|
2713
2713
|
tmp_1 = null;
|
|
@@ -2722,7 +2722,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2722
2722
|
} else {
|
|
2723
2723
|
// Inline function 'kotlin.takeIf' call
|
|
2724
2724
|
var tmp_3;
|
|
2725
|
-
if (!(tmp2_safe_receiver.
|
|
2725
|
+
if (!(tmp2_safe_receiver.r30() == null)) {
|
|
2726
2726
|
tmp_3 = tmp2_safe_receiver;
|
|
2727
2727
|
} else {
|
|
2728
2728
|
tmp_3 = null;
|
|
@@ -2741,11 +2741,11 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2741
2741
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
2742
2742
|
}
|
|
2743
2743
|
tmp = tmp_0;
|
|
2744
|
-
} else if (!(schemaObject.
|
|
2745
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
2744
|
+
} else if (!(schemaObject.q30() == null)) {
|
|
2745
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.n30());
|
|
2746
2746
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
2747
2747
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2748
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
2748
|
+
var tmp0_elvis_lhs = schemaObject.q30();
|
|
2749
2749
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2750
2750
|
var tmp0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2751
2751
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2779,7 +2779,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2779
2779
|
}
|
|
2780
2780
|
var tmp_8 = listOf(new Type(null, tmp_5, tmp_6, new Shape(list_0), emptyList()));
|
|
2781
2781
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2782
|
-
var tmp0_0 = ensureNotNull(schemaObject.
|
|
2782
|
+
var tmp0_0 = ensureNotNull(schemaObject.q30());
|
|
2783
2783
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2784
2784
|
var destination_0 = ArrayList_init_$Create$();
|
|
2785
2785
|
var _iterator__ex2g4s_1 = tmp0_0.t();
|
|
@@ -2791,7 +2791,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2791
2791
|
} else {
|
|
2792
2792
|
if (isInterface(element_0, Schema)) {
|
|
2793
2793
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2794
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
2794
|
+
var tmp0_elvis_lhs_0 = element_0.r30();
|
|
2795
2795
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2796
2796
|
var tmp0_1 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2797
2797
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2826,20 +2826,20 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2826
2826
|
addAll(destination_0, list_2);
|
|
2827
2827
|
}
|
|
2828
2828
|
tmp = plus_0(tmp_8, destination_0);
|
|
2829
|
-
} else if (!(schemaObject.
|
|
2829
|
+
} else if (!(schemaObject.o30() == null)) {
|
|
2830
2830
|
// Inline function 'kotlin.collections.map' call
|
|
2831
|
-
var this_0 = ensureNotNull(schemaObject.
|
|
2831
|
+
var this_0 = ensureNotNull(schemaObject.o30());
|
|
2832
2832
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2833
2833
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2834
2834
|
var _iterator__ex2g4s_3 = this_0.t();
|
|
2835
2835
|
while (_iterator__ex2g4s_3.u()) {
|
|
2836
2836
|
var item = _iterator__ex2g4s_3.v();
|
|
2837
|
-
var tmp$ret$22 = item.
|
|
2837
|
+
var tmp$ret$22 = item.cy();
|
|
2838
2838
|
destination_2.x(tmp$ret$22);
|
|
2839
2839
|
}
|
|
2840
2840
|
// Inline function 'kotlin.let' call
|
|
2841
2841
|
var it = toSet(destination_2);
|
|
2842
|
-
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.
|
|
2842
|
+
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.n30()), new DefinitionIdentifier(sanitize(name)), it));
|
|
2843
2843
|
} else {
|
|
2844
2844
|
var tmp5_subject = get_primitiveType(schemaObject);
|
|
2845
2845
|
var tmp_11;
|
|
@@ -2848,7 +2848,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2848
2848
|
case 5:
|
|
2849
2849
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2850
2850
|
|
|
2851
|
-
var tmp0_elvis_lhs_1 = schemaObject.
|
|
2851
|
+
var tmp0_elvis_lhs_1 = schemaObject.r30();
|
|
2852
2852
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2853
2853
|
|
|
2854
2854
|
var tmp0_2 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
@@ -2869,11 +2869,11 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2869
2869
|
}
|
|
2870
2870
|
|
|
2871
2871
|
var fields = destination_3;
|
|
2872
|
-
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.
|
|
2872
|
+
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.n30()), new DefinitionIdentifier(sanitize(name)), new Shape(toField_1(_this__u8e3s4, schemaObject, name)), emptyList()));
|
|
2873
2873
|
tmp_11 = plus_0(schema, fields);
|
|
2874
2874
|
break;
|
|
2875
2875
|
case 4:
|
|
2876
|
-
var it_0 = schemaObject.
|
|
2876
|
+
var it_0 = schemaObject.p30();
|
|
2877
2877
|
var tmp_12;
|
|
2878
2878
|
if (!(it_0 == null) ? isInterface(it_0, Reference) : false) {
|
|
2879
2879
|
tmp_12 = emptyList();
|
|
@@ -2900,7 +2900,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2900
2900
|
return tmp;
|
|
2901
2901
|
}
|
|
2902
2902
|
function resolveParameterObject(_this__u8e3s4, reference) {
|
|
2903
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2903
|
+
var tmp0_safe_receiver = _this__u8e3s4.d31();
|
|
2904
2904
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p2(getReference(reference));
|
|
2905
2905
|
var tmp;
|
|
2906
2906
|
if (tmp1_safe_receiver == null) {
|
|
@@ -2912,7 +2912,7 @@ function resolveParameterObject(_this__u8e3s4, reference) {
|
|
|
2912
2912
|
var tmp2_elvis_lhs = tmp;
|
|
2913
2913
|
var tmp_0;
|
|
2914
2914
|
if (tmp2_elvis_lhs == null) {
|
|
2915
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
2915
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.m30());
|
|
2916
2916
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2917
2917
|
} else {
|
|
2918
2918
|
tmp_0 = tmp2_elvis_lhs;
|
|
@@ -2924,13 +2924,13 @@ function toPrimitive(_this__u8e3s4) {
|
|
|
2924
2924
|
var tmp;
|
|
2925
2925
|
switch (tmp0_subject == null ? -1 : tmp0_subject.b3_1) {
|
|
2926
2926
|
case 0:
|
|
2927
|
-
tmp = !(_this__u8e3s4.
|
|
2927
|
+
tmp = !(_this__u8e3s4.u30() == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.u30()))) : _this__u8e3s4.t30() === 'binary' ? Bytes_instance : new String_0(null);
|
|
2928
2928
|
break;
|
|
2929
2929
|
case 2:
|
|
2930
|
-
tmp = new Integer(_this__u8e3s4.
|
|
2930
|
+
tmp = new Integer(_this__u8e3s4.t30() === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
2931
2931
|
break;
|
|
2932
2932
|
case 1:
|
|
2933
|
-
tmp = new Number_0(_this__u8e3s4.
|
|
2933
|
+
tmp = new Number_0(_this__u8e3s4.t30() === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
2934
2934
|
break;
|
|
2935
2935
|
case 3:
|
|
2936
2936
|
tmp = Boolean_instance;
|
|
@@ -2958,11 +2958,11 @@ function toPrimitive_0(_this__u8e3s4) {
|
|
|
2958
2958
|
return toPrimitive(isInterface(_this__u8e3s4, OpenAPIV20Base) ? _this__u8e3s4 : THROW_CCE());
|
|
2959
2959
|
}
|
|
2960
2960
|
function resolveSchemaRef(_this__u8e3s4, reference) {
|
|
2961
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2961
|
+
var tmp0_safe_receiver = _this__u8e3s4.c33();
|
|
2962
2962
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p2(getReference(reference));
|
|
2963
2963
|
var tmp;
|
|
2964
2964
|
if (tmp1_elvis_lhs == null) {
|
|
2965
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
2965
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.m30());
|
|
2966
2966
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2967
2967
|
} else {
|
|
2968
2968
|
tmp = tmp1_elvis_lhs;
|
|
@@ -3040,7 +3040,7 @@ function resolveResponseObject(_this__u8e3s4, reference) {
|
|
|
3040
3040
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p2(getReference(reference));
|
|
3041
3041
|
var tmp;
|
|
3042
3042
|
if (tmp1_elvis_lhs == null) {
|
|
3043
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
3043
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.m30());
|
|
3044
3044
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
3045
3045
|
} else {
|
|
3046
3046
|
tmp = tmp1_elvis_lhs;
|
|
@@ -3067,7 +3067,7 @@ function resolve_0(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
3067
3067
|
}
|
|
3068
3068
|
function toField_1(_this__u8e3s4, schema, name) {
|
|
3069
3069
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3070
|
-
var tmp0_elvis_lhs = schema.
|
|
3070
|
+
var tmp0_elvis_lhs = schema.r30();
|
|
3071
3071
|
// Inline function 'kotlin.collections.map' call
|
|
3072
3072
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3073
3073
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3080,14 +3080,14 @@ function toField_1(_this__u8e3s4, schema, name) {
|
|
|
3080
3080
|
var key = item.k1();
|
|
3081
3081
|
// Inline function 'kotlin.collections.component2' call
|
|
3082
3082
|
var value = item.l1();
|
|
3083
|
-
var tmp0_safe_receiver = schema.
|
|
3083
|
+
var tmp0_safe_receiver = schema.w1b();
|
|
3084
3084
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u1(key);
|
|
3085
3085
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
3086
3086
|
var tmp;
|
|
3087
3087
|
if (isInterface(value, Schema)) {
|
|
3088
3088
|
var tmp3_identifier = new FieldIdentifier(key);
|
|
3089
3089
|
var tmp4_annotations = emptyList();
|
|
3090
|
-
var tmp5_reference = !(value.
|
|
3090
|
+
var tmp5_reference = !(value.o30() == null) ? toReference_0(_this__u8e3s4, value, className([name, key]), isNullable) : equals(get_primitiveType(value), OpenAPIV20Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, value, className([name, key, 'Array']), isNullable) : toReference_0(_this__u8e3s4, value, className([name, key]), isNullable);
|
|
3091
3091
|
tmp = new Field(tmp4_annotations, tmp3_identifier, tmp5_reference);
|
|
3092
3092
|
} else {
|
|
3093
3093
|
if (isInterface(value, Reference)) {
|
|
@@ -3106,9 +3106,9 @@ function toField_1(_this__u8e3s4, schema, name) {
|
|
|
3106
3106
|
}
|
|
3107
3107
|
function parseParameters$lambda($this_parseParameters) {
|
|
3108
3108
|
return function ($this$flatMapRequests) {
|
|
3109
|
-
var parameters = plus_0(resolveParameters($this_parseParameters, $this$flatMapRequests.
|
|
3110
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
3111
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
3109
|
+
var parameters = plus_0(resolveParameters($this_parseParameters, $this$flatMapRequests.v46_1.d31()), resolveParameters($this_parseParameters, $this$flatMapRequests.x46_1.d31()));
|
|
3110
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.x46_1);
|
|
3111
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.u46_1) + $this$flatMapRequests.w46_1.a3_1 : tmp0_elvis_lhs;
|
|
3112
3112
|
// Inline function 'kotlin.collections.filter' call
|
|
3113
3113
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3114
3114
|
var destination = ArrayList_init_$Create$();
|
|
@@ -3125,13 +3125,13 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
3125
3125
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3126
3126
|
while (_iterator__ex2g4s_0.u()) {
|
|
3127
3127
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3128
|
-
var tmp0_safe_receiver = element_0.
|
|
3128
|
+
var tmp0_safe_receiver = element_0.p37_1;
|
|
3129
3129
|
var tmp;
|
|
3130
3130
|
if (tmp0_safe_receiver == null) {
|
|
3131
3131
|
tmp = null;
|
|
3132
3132
|
} else {
|
|
3133
3133
|
// Inline function 'kotlin.let' call
|
|
3134
|
-
tmp = flattenSchemaOrRef($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element_0.
|
|
3134
|
+
tmp = flattenSchemaOrRef($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element_0.q37_1]));
|
|
3135
3135
|
}
|
|
3136
3136
|
var tmp1_elvis_lhs = tmp;
|
|
3137
3137
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -3142,9 +3142,9 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
3142
3142
|
}
|
|
3143
3143
|
function parseRequestBody$lambda($this_parseRequestBody) {
|
|
3144
3144
|
return function ($this$flatMapRequests) {
|
|
3145
|
-
var parameters = plus_0(resolveParameters($this_parseRequestBody, $this$flatMapRequests.
|
|
3146
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
3147
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
3145
|
+
var parameters = plus_0(resolveParameters($this_parseRequestBody, $this$flatMapRequests.v46_1.d31()), resolveParameters($this_parseRequestBody, $this$flatMapRequests.x46_1.d31()));
|
|
3146
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.x46_1);
|
|
3147
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.u46_1) + $this$flatMapRequests.w46_1.a3_1 : tmp0_elvis_lhs;
|
|
3148
3148
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3149
3149
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3150
3150
|
var destination = ArrayList_init_$Create$();
|
|
@@ -3152,17 +3152,17 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3152
3152
|
while (_iterator__ex2g4s.u()) {
|
|
3153
3153
|
var element = _iterator__ex2g4s.v();
|
|
3154
3154
|
var tmp;
|
|
3155
|
-
if (!(element.
|
|
3156
|
-
var tmp_0 = toDescriptionAnnotationList(element.
|
|
3157
|
-
var tmp_1 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.
|
|
3155
|
+
if (!(element.m37_1 == null)) {
|
|
3156
|
+
var tmp_0 = toDescriptionAnnotationList(element.u36_1);
|
|
3157
|
+
var tmp_1 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.q37_1])));
|
|
3158
3158
|
// Inline function 'kotlin.collections.map' call
|
|
3159
|
-
var this_0 = ensureNotNull(element.
|
|
3159
|
+
var this_0 = ensureNotNull(element.m37_1);
|
|
3160
3160
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3161
3161
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3162
3162
|
var _iterator__ex2g4s_0 = this_0.t();
|
|
3163
3163
|
while (_iterator__ex2g4s_0.u()) {
|
|
3164
3164
|
var item = _iterator__ex2g4s_0.v();
|
|
3165
|
-
var tmp$ret$0 = item.
|
|
3165
|
+
var tmp$ret$0 = item.cy();
|
|
3166
3166
|
destination_0.x(tmp$ret$0);
|
|
3167
3167
|
}
|
|
3168
3168
|
tmp = listOf(new Enum(null, tmp_0, tmp_1, toSet(destination_0)));
|
|
@@ -3173,7 +3173,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3173
3173
|
addAll(destination, list);
|
|
3174
3174
|
}
|
|
3175
3175
|
var enums = destination;
|
|
3176
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
3176
|
+
var tmp1_safe_receiver = $this$flatMapRequests.x46_1.d31();
|
|
3177
3177
|
var tmp_2;
|
|
3178
3178
|
if (tmp1_safe_receiver == null) {
|
|
3179
3179
|
tmp_2 = null;
|
|
@@ -3217,7 +3217,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3217
3217
|
var _iterator__ex2g4s_3 = tmp3_safe_receiver.t();
|
|
3218
3218
|
while (_iterator__ex2g4s_3.u()) {
|
|
3219
3219
|
var element_1 = _iterator__ex2g4s_3.v();
|
|
3220
|
-
var schema = element_1.
|
|
3220
|
+
var schema = element_1.p37_1;
|
|
3221
3221
|
var tmp_5;
|
|
3222
3222
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
3223
3223
|
var tmp0_subject = get_primitiveType(schema);
|
|
@@ -3228,7 +3228,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3228
3228
|
tmp_6 = flatten($this_parseRequestBody, schema, className([name, 'RequestBody']));
|
|
3229
3229
|
break;
|
|
3230
3230
|
case 4:
|
|
3231
|
-
var tmp1_safe_receiver_0 = schema.
|
|
3231
|
+
var tmp1_safe_receiver_0 = schema.p30();
|
|
3232
3232
|
var tmp_7;
|
|
3233
3233
|
if (tmp1_safe_receiver_0 == null) {
|
|
3234
3234
|
tmp_7 = null;
|
|
@@ -3262,11 +3262,11 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3262
3262
|
}
|
|
3263
3263
|
function parseResponseBody$lambda($this_parseResponseBody) {
|
|
3264
3264
|
return function ($this$flatMapResponses) {
|
|
3265
|
-
var tmp = resolveResponse($this_parseResponseBody, $this$flatMapResponses.
|
|
3265
|
+
var tmp = resolveResponse($this_parseResponseBody, $this$flatMapResponses.d47_1);
|
|
3266
3266
|
var tmp0_safe_receiver = tmp instanceof OpenAPIV20Response ? tmp : null;
|
|
3267
|
-
var schema = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3268
|
-
var tmp1_elvis_lhs = toName($this$flatMapResponses.
|
|
3269
|
-
var name = tmp1_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
3267
|
+
var schema = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r38_1;
|
|
3268
|
+
var tmp1_elvis_lhs = toName($this$flatMapResponses.b47_1);
|
|
3269
|
+
var name = tmp1_elvis_lhs == null ? toName_0($this$flatMapResponses.y46_1) + $this$flatMapResponses.a47_1.a3_1 : tmp1_elvis_lhs;
|
|
3270
3270
|
var tmp_0;
|
|
3271
3271
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
3272
3272
|
var tmp3_subject = get_primitiveType(schema);
|
|
@@ -3274,16 +3274,16 @@ function parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
3274
3274
|
switch (tmp3_subject == null ? -1 : tmp3_subject.b3_1) {
|
|
3275
3275
|
case -1:
|
|
3276
3276
|
case 5:
|
|
3277
|
-
tmp_1 = flatten($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
3277
|
+
tmp_1 = flatten($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.c47_1), 'ResponseBody']));
|
|
3278
3278
|
break;
|
|
3279
3279
|
case 4:
|
|
3280
|
-
var tmp4_safe_receiver = schema.
|
|
3280
|
+
var tmp4_safe_receiver = schema.p30();
|
|
3281
3281
|
var tmp_2;
|
|
3282
3282
|
if (tmp4_safe_receiver == null) {
|
|
3283
3283
|
tmp_2 = null;
|
|
3284
3284
|
} else {
|
|
3285
3285
|
// Inline function 'kotlin.let' call
|
|
3286
|
-
tmp_2 = flattenSchemaOrRef($this_parseResponseBody, tmp4_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
3286
|
+
tmp_2 = flattenSchemaOrRef($this_parseResponseBody, tmp4_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.c47_1), 'ResponseBody']));
|
|
3287
3287
|
}
|
|
3288
3288
|
|
|
3289
3289
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -3881,9 +3881,9 @@ function toOpenAPIV30Links($this, _this__u8e3s4) {
|
|
|
3881
3881
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
3882
3882
|
while (_iterator__ex2g4s.u()) {
|
|
3883
3883
|
var element = _iterator__ex2g4s.v();
|
|
3884
|
-
var tmp2 = element.
|
|
3884
|
+
var tmp2 = element.e47_1;
|
|
3885
3885
|
// Inline function 'kotlin.collections.mapValues' call
|
|
3886
|
-
var this_0 = element.
|
|
3886
|
+
var this_0 = element.h47_1;
|
|
3887
3887
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
3888
3888
|
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.a1()));
|
|
3889
3889
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -3902,7 +3902,7 @@ function toOpenAPIV30Links($this, _this__u8e3s4) {
|
|
|
3902
3902
|
tmp_0 = destination;
|
|
3903
3903
|
}
|
|
3904
3904
|
var tmp_1 = tmp_0;
|
|
3905
|
-
var tmp0_safe_receiver = element.
|
|
3905
|
+
var tmp0_safe_receiver = element.i47_1;
|
|
3906
3906
|
var tmp_2;
|
|
3907
3907
|
if (tmp0_safe_receiver == null) {
|
|
3908
3908
|
tmp_2 = null;
|
|
@@ -3911,7 +3911,7 @@ function toOpenAPIV30Links($this, _this__u8e3s4) {
|
|
|
3911
3911
|
tmp_2 = JsonPrimitive(tmp0_safe_receiver);
|
|
3912
3912
|
}
|
|
3913
3913
|
// Inline function 'kotlin.collections.set' call
|
|
3914
|
-
var value = new OpenAPIV30Link(element.
|
|
3914
|
+
var value = new OpenAPIV30Link(element.g47_1, element.f47_1, tmp_1, tmp_2, element.j47_1);
|
|
3915
3915
|
byName.s2(tmp2, value);
|
|
3916
3916
|
}
|
|
3917
3917
|
return new OpenAPIV30Links(toSet(byName.j1()));
|
|
@@ -3942,7 +3942,7 @@ function emitSchema($this, _this__u8e3s4) {
|
|
|
3942
3942
|
var it = emitSchema_0($this, _this__u8e3s4.rp_1);
|
|
3943
3943
|
var tmp_0;
|
|
3944
3944
|
if (it instanceof OpenAPIV30Schema) {
|
|
3945
|
-
tmp_0 = it.
|
|
3945
|
+
tmp_0 = it.t3f(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription(_this__u8e3s4.pp_1));
|
|
3946
3946
|
} else {
|
|
3947
3947
|
if (it instanceof OpenAPIV30Reference) {
|
|
3948
3948
|
tmp_0 = it;
|
|
@@ -4139,10 +4139,10 @@ function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
|
4139
4139
|
}
|
|
4140
4140
|
function OpenAPIV3Emitter() {
|
|
4141
4141
|
OpenAPIV3Emitter_instance = this;
|
|
4142
|
-
this.
|
|
4142
|
+
this.p47_1 = FileExtension_JSON_getInstance();
|
|
4143
4143
|
}
|
|
4144
4144
|
protoOf(OpenAPIV3Emitter).uq = function () {
|
|
4145
|
-
return this.
|
|
4145
|
+
return this.p47_1;
|
|
4146
4146
|
};
|
|
4147
4147
|
protoOf(OpenAPIV3Emitter).eo = function (ast, logger) {
|
|
4148
4148
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
@@ -4160,24 +4160,24 @@ protoOf(OpenAPIV3Emitter).eo = function (ast, logger) {
|
|
|
4160
4160
|
}
|
|
4161
4161
|
// Inline function 'kotlin.let' call
|
|
4162
4162
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
4163
|
-
var tmp = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().
|
|
4163
|
+
var tmp = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().p47_1.dr_1;
|
|
4164
4164
|
var tmp0_0 = get_json();
|
|
4165
4165
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
4166
|
-
var value = OpenAPIV3Emitter_getInstance().
|
|
4166
|
+
var value = OpenAPIV3Emitter_getInstance().q47(it, null, logger);
|
|
4167
4167
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
4168
|
-
var this_1 = tmp0_0.
|
|
4168
|
+
var this_1 = tmp0_0.b25();
|
|
4169
4169
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
4170
4170
|
var this_2 = serializer(this_1, createKType(getKClass(OpenAPIV3Model), arrayOf([]), false));
|
|
4171
4171
|
var tmp$ret$5 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
4172
|
-
var tmp$ret$6 = tmp0_0.
|
|
4172
|
+
var tmp$ret$6 = tmp0_0.g2m(tmp$ret$5, value);
|
|
4173
4173
|
// Inline function 'kotlin.let' call
|
|
4174
4174
|
var it_0 = new Emitted(tmp, tmp$ret$6);
|
|
4175
4175
|
return nonEmptyListOf(it_0, []);
|
|
4176
4176
|
};
|
|
4177
|
-
protoOf(OpenAPIV3Emitter).
|
|
4178
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
4177
|
+
protoOf(OpenAPIV3Emitter).q47 = function (statements, options, logger) {
|
|
4178
|
+
var tmp1_elvis_lhs = options == null ? null : options.r47_1;
|
|
4179
4179
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
4180
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
4180
|
+
var tmp3_elvis_lhs = options == null ? null : options.s47_1;
|
|
4181
4181
|
var tmp4_info = new InfoObject(tmp, VOID, VOID, VOID, VOID, VOID, tmp3_elvis_lhs == null ? '0.0.0' : tmp3_elvis_lhs);
|
|
4182
4182
|
var tmp5_paths = emitPaths_0(this, statements, logger);
|
|
4183
4183
|
var tmp6_components = emitComponents(this, statements, logger);
|
|
@@ -4191,15 +4191,15 @@ function OpenAPIV3Emitter_getInstance() {
|
|
|
4191
4191
|
}
|
|
4192
4192
|
function OpenAPIV3Parser$parse$lambda($strict) {
|
|
4193
4193
|
return function (it) {
|
|
4194
|
-
return new NonEmptyList(OpenAPIV3Parser_instance.
|
|
4194
|
+
return new NonEmptyList(OpenAPIV3Parser_instance.t47((new OpenAPIV3(jsonDefault($strict))).x32(it)));
|
|
4195
4195
|
};
|
|
4196
4196
|
}
|
|
4197
4197
|
function OpenAPIV3Parser() {
|
|
4198
4198
|
}
|
|
4199
|
-
protoOf(OpenAPIV3Parser).
|
|
4199
|
+
protoOf(OpenAPIV3Parser).o47 = function (moduleContent, strict) {
|
|
4200
4200
|
return parseOpenApi(moduleContent, OpenAPIV3Parser$parse$lambda(strict));
|
|
4201
4201
|
};
|
|
4202
|
-
protoOf(OpenAPIV3Parser).
|
|
4202
|
+
protoOf(OpenAPIV3Parser).t47 = function (_this__u8e3s4) {
|
|
4203
4203
|
// Inline function 'kotlin.collections.reduce' call
|
|
4204
4204
|
var iterator = listOf_0([parseEndpoints_0(_this__u8e3s4), parseParameters_0(_this__u8e3s4), parseRequestBody_0(_this__u8e3s4), parseResponseBody_0(_this__u8e3s4), parseDefinitions_0(_this__u8e3s4)]).t();
|
|
4205
4205
|
if (!iterator.u())
|
|
@@ -4235,7 +4235,7 @@ function OpenAPIV3Parser_getInstance() {
|
|
|
4235
4235
|
}
|
|
4236
4236
|
function parseEndpoints_0(_this__u8e3s4) {
|
|
4237
4237
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4238
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
4238
|
+
var tmp0_elvis_lhs = _this__u8e3s4.d33();
|
|
4239
4239
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4240
4240
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4241
4241
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -4245,7 +4245,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4245
4245
|
while (_iterator__ex2g4s.u()) {
|
|
4246
4246
|
var element = _iterator__ex2g4s.v();
|
|
4247
4247
|
// Inline function 'kotlin.collections.component1' call
|
|
4248
|
-
var path = element.k1().
|
|
4248
|
+
var path = element.k1().d30_1;
|
|
4249
4249
|
// Inline function 'kotlin.collections.component2' call
|
|
4250
4250
|
var pathItem = element.l1();
|
|
4251
4251
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -4260,7 +4260,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4260
4260
|
var method = item.k1();
|
|
4261
4261
|
// Inline function 'kotlin.collections.component2' call
|
|
4262
4262
|
var operation = item.l1();
|
|
4263
|
-
var parameters = plus_0(resolveParameters_0(_this__u8e3s4, pathItem.
|
|
4263
|
+
var parameters = plus_0(resolveParameters_0(_this__u8e3s4, pathItem.d31()), resolveParameters_0(_this__u8e3s4, operation.d31()));
|
|
4264
4264
|
var tmp0_elvis_lhs_0 = toName(operation);
|
|
4265
4265
|
var segments = toSegments_0(_this__u8e3s4, path, parameters, tmp0_elvis_lhs_0 == null ? toName_0(path) + method.a3_1 : tmp0_elvis_lhs_0);
|
|
4266
4266
|
var tmp1_elvis_lhs = toName(operation);
|
|
@@ -4305,7 +4305,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4305
4305
|
destination_4.x(tmp$ret$16);
|
|
4306
4306
|
}
|
|
4307
4307
|
var headers = destination_4;
|
|
4308
|
-
var tmp2_safe_receiver = operation.
|
|
4308
|
+
var tmp2_safe_receiver = operation.e31();
|
|
4309
4309
|
var tmp;
|
|
4310
4310
|
if (tmp2_safe_receiver == null) {
|
|
4311
4311
|
tmp = null;
|
|
@@ -4320,7 +4320,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4320
4320
|
} else {
|
|
4321
4321
|
// Inline function 'kotlin.let' call
|
|
4322
4322
|
var isNullable = false;
|
|
4323
|
-
var tmp0_safe_receiver = tmp3_safe_receiver.
|
|
4323
|
+
var tmp0_safe_receiver = tmp3_safe_receiver.cy();
|
|
4324
4324
|
var tmp_1;
|
|
4325
4325
|
if (tmp0_safe_receiver == null) {
|
|
4326
4326
|
tmp_1 = null;
|
|
@@ -4333,10 +4333,10 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4333
4333
|
while (_iterator__ex2g4s_5.u()) {
|
|
4334
4334
|
var item_2 = _iterator__ex2g4s_5.v();
|
|
4335
4335
|
// Inline function 'kotlin.collections.component1' call
|
|
4336
|
-
var mediaType = item_2.k1().
|
|
4336
|
+
var mediaType = item_2.k1().a31_1;
|
|
4337
4337
|
// Inline function 'kotlin.collections.component2' call
|
|
4338
4338
|
var mediaObject = item_2.l1();
|
|
4339
|
-
var schema = mediaObject.
|
|
4339
|
+
var schema = mediaObject.w30();
|
|
4340
4340
|
var tmp_2;
|
|
4341
4341
|
if (!(schema == null) ? isInterface(schema, Reference) : false) {
|
|
4342
4342
|
tmp_2 = toReference_1(_this__u8e3s4, schema, isNullable);
|
|
@@ -4380,7 +4380,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4380
4380
|
while (_iterator__ex2g4s_6.u()) {
|
|
4381
4381
|
var element_2 = _iterator__ex2g4s_6.v();
|
|
4382
4382
|
// Inline function 'kotlin.collections.component1' call
|
|
4383
|
-
var status = element_2.k1().
|
|
4383
|
+
var status = element_2.k1().h30_1;
|
|
4384
4384
|
// Inline function 'kotlin.collections.component2' call
|
|
4385
4385
|
var res = element_2.l1();
|
|
4386
4386
|
// Inline function 'kotlin.let' call
|
|
@@ -4389,7 +4389,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4389
4389
|
var tmp_4;
|
|
4390
4390
|
// Inline function 'kotlin.collections.isNullOrEmpty' call
|
|
4391
4391
|
if (content == null || content.r()) {
|
|
4392
|
-
var tmp1_annotations = plus_0(toDescriptionAnnotationList(response.
|
|
4392
|
+
var tmp1_annotations = plus_0(toDescriptionAnnotationList(response.n30()), toLinkAnnotationList(_this__u8e3s4, response.v30()));
|
|
4393
4393
|
var tmp2_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4394
4394
|
var tmp0_safe_receiver_0 = response.ow();
|
|
4395
4395
|
var tmp_5;
|
|
@@ -4421,10 +4421,10 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4421
4421
|
while (_iterator__ex2g4s_8.u()) {
|
|
4422
4422
|
var item_4 = _iterator__ex2g4s_8.v();
|
|
4423
4423
|
// Inline function 'kotlin.collections.component1' call
|
|
4424
|
-
var contentType = item_4.k1().
|
|
4424
|
+
var contentType = item_4.k1().a31_1;
|
|
4425
4425
|
// Inline function 'kotlin.collections.component2' call
|
|
4426
4426
|
var media = item_4.l1();
|
|
4427
|
-
var tmp0_safe_receiver_1 = media.
|
|
4427
|
+
var tmp0_safe_receiver_1 = media.w30();
|
|
4428
4428
|
var tmp_6;
|
|
4429
4429
|
if (tmp0_safe_receiver_1 == null) {
|
|
4430
4430
|
tmp_6 = null;
|
|
@@ -4435,7 +4435,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4435
4435
|
var tmp1_safe_receiver = tmp_6;
|
|
4436
4436
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : get_isNullable(tmp1_safe_receiver);
|
|
4437
4437
|
var isNullable_0 = tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs;
|
|
4438
|
-
var tmp4_annotations = plus_0(toDescriptionAnnotationList(response.
|
|
4438
|
+
var tmp4_annotations = plus_0(toDescriptionAnnotationList(response.n30()), toLinkAnnotationList(_this__u8e3s4, response.v30()));
|
|
4439
4439
|
var tmp5_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4440
4440
|
var tmp3_safe_receiver_0 = response.ow();
|
|
4441
4441
|
var tmp_7;
|
|
@@ -4458,7 +4458,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4458
4458
|
var tmp0_elvis_lhs_3 = tmp_7;
|
|
4459
4459
|
var tmp6_headers = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
|
|
4460
4460
|
var tmp_8 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
4461
|
-
var schema_0 = media.
|
|
4461
|
+
var schema_0 = media.w30();
|
|
4462
4462
|
var tmp_9;
|
|
4463
4463
|
if (!(schema_0 == null) ? isInterface(schema_0, Reference) : false) {
|
|
4464
4464
|
tmp_9 = toReference_1(_this__u8e3s4, schema_0, isNullable_0);
|
|
@@ -4483,7 +4483,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4483
4483
|
addAll(destination_6, list);
|
|
4484
4484
|
}
|
|
4485
4485
|
var responses = destination_6;
|
|
4486
|
-
var tmp$ret$59 = new Endpoint(null, toDescriptionAnnotationList(operation.
|
|
4486
|
+
var tmp$ret$59 = new Endpoint(null, toDescriptionAnnotationList(operation.n30()), new DefinitionIdentifier(name), method, segments, query, headers, requests, responses);
|
|
4487
4487
|
destination_0.x(tmp$ret$59);
|
|
4488
4488
|
}
|
|
4489
4489
|
var list_0 = destination_0;
|
|
@@ -4501,9 +4501,9 @@ function parseResponseBody_0(_this__u8e3s4) {
|
|
|
4501
4501
|
return flatMapResponses(_this__u8e3s4, parseResponseBody$lambda_0(_this__u8e3s4));
|
|
4502
4502
|
}
|
|
4503
4503
|
function parseDefinitions_0(_this__u8e3s4) {
|
|
4504
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
4504
|
+
var tmp0_safe_receiver = _this__u8e3s4.j33();
|
|
4505
4505
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4506
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4506
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b3e();
|
|
4507
4507
|
// Inline function 'kotlin.collections.filter' call
|
|
4508
4508
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4509
4509
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -4515,7 +4515,7 @@ function parseDefinitions_0(_this__u8e3s4) {
|
|
|
4515
4515
|
var s = element.l1();
|
|
4516
4516
|
var tmp;
|
|
4517
4517
|
if (isInterface(s, Schema)) {
|
|
4518
|
-
var tmp0_subject = s.
|
|
4518
|
+
var tmp0_subject = s.s30();
|
|
4519
4519
|
var tmp_0;
|
|
4520
4520
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
4521
4521
|
tmp_0 = true;
|
|
@@ -4628,7 +4628,7 @@ function toSegments_0(_this__u8e3s4, path, parameters, name) {
|
|
|
4628
4628
|
}
|
|
4629
4629
|
|
|
4630
4630
|
var tmp1_safe_receiver = tmp$ret$5;
|
|
4631
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4631
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.w30();
|
|
4632
4632
|
var tmp_0;
|
|
4633
4633
|
if (tmp2_safe_receiver == null) {
|
|
4634
4634
|
tmp_0 = null;
|
|
@@ -4681,13 +4681,13 @@ function toSegments_0(_this__u8e3s4, path, parameters, name) {
|
|
|
4681
4681
|
function get_location_0(_this__u8e3s4) {
|
|
4682
4682
|
var tmp;
|
|
4683
4683
|
if (_this__u8e3s4 instanceof OpenAPIV30Parameter) {
|
|
4684
|
-
tmp = _this__u8e3s4.
|
|
4684
|
+
tmp = _this__u8e3s4.j3g_1;
|
|
4685
4685
|
} else {
|
|
4686
4686
|
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
4687
|
-
tmp = valueOf(_this__u8e3s4.
|
|
4687
|
+
tmp = valueOf(_this__u8e3s4.x3m_1.a3_1);
|
|
4688
4688
|
} else {
|
|
4689
4689
|
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
4690
|
-
tmp = valueOf(_this__u8e3s4.
|
|
4690
|
+
tmp = valueOf(_this__u8e3s4.c3x_1.a3_1);
|
|
4691
4691
|
} else {
|
|
4692
4692
|
var message = 'Unsupported parameter type: ' + toString(_this__u8e3s4);
|
|
4693
4693
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -4699,7 +4699,7 @@ function get_location_0(_this__u8e3s4) {
|
|
|
4699
4699
|
function toField_2(_this__u8e3s4, parameter, name) {
|
|
4700
4700
|
var tmp0_elvis_lhs = get_required(parameter);
|
|
4701
4701
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
4702
|
-
var s = parameter.
|
|
4702
|
+
var s = parameter.w30();
|
|
4703
4703
|
var tmp;
|
|
4704
4704
|
if (!(s == null) ? isInterface(s, Reference) : false) {
|
|
4705
4705
|
tmp = toReference_1(_this__u8e3s4, s, isNullable);
|
|
@@ -4740,8 +4740,8 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4740
4740
|
var schema = destruct.we();
|
|
4741
4741
|
var nullable = get_isNullable(schema);
|
|
4742
4742
|
var tmp;
|
|
4743
|
-
if (exists_0(schema.
|
|
4744
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4743
|
+
if (exists_0(schema.s30())) {
|
|
4744
|
+
var additionalProperties = ensureNotNull(schema.s30());
|
|
4745
4745
|
var tmp_0;
|
|
4746
4746
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
4747
4747
|
tmp_0 = new Dict(new Any(isNullable), false);
|
|
@@ -4757,12 +4757,12 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4757
4757
|
}
|
|
4758
4758
|
}
|
|
4759
4759
|
tmp = tmp_0;
|
|
4760
|
-
} else if (!(schema.
|
|
4760
|
+
} else if (!(schema.o30() == null)) {
|
|
4761
4761
|
tmp = new Custom(sanitize(className([getReference(referencingObject)])), isNullable);
|
|
4762
4762
|
} else if (isPrimitive_0(get_primitiveType_0(schema))) {
|
|
4763
4763
|
tmp = new Primitive(toPrimitive_1(schema), isNullable);
|
|
4764
4764
|
} else if (equals(get_primitiveType_0(schema), OpenAPIV30Type_ARRAY_getInstance())) {
|
|
4765
|
-
var items = schema.
|
|
4765
|
+
var items = schema.p30();
|
|
4766
4766
|
var tmp_1;
|
|
4767
4767
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
4768
4768
|
tmp_1 = toIterable(toReference_1(_this__u8e3s4, items, nullable), isNullable);
|
|
@@ -4771,7 +4771,7 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4771
4771
|
tmp_1 = toIterable(new Custom(sanitize(className([getReference(referencingObject), 'Array'])), nullable), isNullable);
|
|
4772
4772
|
} else {
|
|
4773
4773
|
if (items == null) {
|
|
4774
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.
|
|
4774
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.m30());
|
|
4775
4775
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4776
4776
|
} else {
|
|
4777
4777
|
noWhenBranchMatchedException();
|
|
@@ -4789,7 +4789,7 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4789
4789
|
var nullable = get_isNullable(schema);
|
|
4790
4790
|
var tmp;
|
|
4791
4791
|
if (equals(get_primitiveType_0(schema), OpenAPIV30Type_ARRAY_getInstance())) {
|
|
4792
|
-
var items = schema.
|
|
4792
|
+
var items = schema.p30();
|
|
4793
4793
|
var tmp_0;
|
|
4794
4794
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
4795
4795
|
tmp_0 = toIterable(toReference_1(_this__u8e3s4, items, nullable), isNullable);
|
|
@@ -4806,8 +4806,8 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4806
4806
|
}
|
|
4807
4807
|
}
|
|
4808
4808
|
tmp = tmp_0;
|
|
4809
|
-
} else if (!(schema.
|
|
4810
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4809
|
+
} else if (!(schema.s30() == null)) {
|
|
4810
|
+
var additionalProperties = ensureNotNull(schema.s30());
|
|
4811
4811
|
var tmp_1;
|
|
4812
4812
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
4813
4813
|
tmp_1 = new Dict(new Any(nullable), isNullable);
|
|
@@ -4818,7 +4818,7 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4818
4818
|
if (isInterface(additionalProperties, Schema)) {
|
|
4819
4819
|
// Inline function 'kotlin.takeIf' call
|
|
4820
4820
|
var tmp_2;
|
|
4821
|
-
if (isPrimitive_0(get_primitiveType_0(additionalProperties)) || !(additionalProperties.
|
|
4821
|
+
if (isPrimitive_0(get_primitiveType_0(additionalProperties)) || !(additionalProperties.r30() == null)) {
|
|
4822
4822
|
tmp_2 = additionalProperties;
|
|
4823
4823
|
} else {
|
|
4824
4824
|
tmp_2 = null;
|
|
@@ -4839,10 +4839,10 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4839
4839
|
}
|
|
4840
4840
|
}
|
|
4841
4841
|
tmp = tmp_1;
|
|
4842
|
-
} else if (!(schema.
|
|
4842
|
+
} else if (!(schema.o30() == null)) {
|
|
4843
4843
|
// Inline function 'kotlin.let' call
|
|
4844
4844
|
var it = new Custom(sanitize(name), isNullable);
|
|
4845
|
-
tmp = !(schema.
|
|
4845
|
+
tmp = !(schema.s30() == null) ? new Dict(it, false) : it;
|
|
4846
4846
|
} else {
|
|
4847
4847
|
var tmp2_subject = get_primitiveType_0(schema);
|
|
4848
4848
|
var tmp_4;
|
|
@@ -4854,26 +4854,26 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4854
4854
|
// Inline function 'kotlin.let' call
|
|
4855
4855
|
|
|
4856
4856
|
var it_0 = new Primitive(toPrimitive_1(schema), isNullable);
|
|
4857
|
-
tmp_4 = !(schema.
|
|
4857
|
+
tmp_4 = !(schema.s30() == null) ? new Dict(it_0, false) : it_0;
|
|
4858
4858
|
break;
|
|
4859
4859
|
case -1:
|
|
4860
4860
|
case 5:
|
|
4861
4861
|
var tmp_5;
|
|
4862
|
-
var tmp_6 = schema.
|
|
4862
|
+
var tmp_6 = schema.s30();
|
|
4863
4863
|
if (!(tmp_6 == null) ? isInterface(tmp_6, BooleanValue) : false) {
|
|
4864
4864
|
// Inline function 'kotlin.let' call
|
|
4865
4865
|
var it_1 = new Any(false);
|
|
4866
|
-
tmp_5 = !(schema.
|
|
4866
|
+
tmp_5 = !(schema.s30() == null) ? new Dict(it_1, false) : it_1;
|
|
4867
4867
|
} else {
|
|
4868
4868
|
// Inline function 'kotlin.let' call
|
|
4869
4869
|
var it_2 = new Custom(sanitize(name), isNullable);
|
|
4870
|
-
tmp_5 = !(schema.
|
|
4870
|
+
tmp_5 = !(schema.s30() == null) ? new Dict(it_2, false) : it_2;
|
|
4871
4871
|
}
|
|
4872
4872
|
|
|
4873
4873
|
tmp_4 = tmp_5;
|
|
4874
4874
|
break;
|
|
4875
4875
|
case 4:
|
|
4876
|
-
var it_3 = schema.
|
|
4876
|
+
var it_3 = schema.p30();
|
|
4877
4877
|
var tmp_7;
|
|
4878
4878
|
if (!(it_3 == null) ? isInterface(it_3, Reference) : false) {
|
|
4879
4879
|
tmp_7 = toIterable(toReference_1(_this__u8e3s4, it_3, nullable), isNullable);
|
|
@@ -4919,13 +4919,13 @@ function resolve_2(_this__u8e3s4, responseOrReference) {
|
|
|
4919
4919
|
function get_content(_this__u8e3s4) {
|
|
4920
4920
|
var tmp;
|
|
4921
4921
|
if (_this__u8e3s4 instanceof OpenAPIV30Response) {
|
|
4922
|
-
tmp = _this__u8e3s4.
|
|
4922
|
+
tmp = _this__u8e3s4.w3h_1;
|
|
4923
4923
|
} else {
|
|
4924
4924
|
if (_this__u8e3s4 instanceof OpenAPIV31Response) {
|
|
4925
|
-
tmp = _this__u8e3s4.
|
|
4925
|
+
tmp = _this__u8e3s4.e3n_1;
|
|
4926
4926
|
} else {
|
|
4927
4927
|
if (_this__u8e3s4 instanceof OpenAPIV32Response) {
|
|
4928
|
-
tmp = _this__u8e3s4.
|
|
4928
|
+
tmp = _this__u8e3s4.j3x_1;
|
|
4929
4929
|
} else {
|
|
4930
4930
|
tmp = null;
|
|
4931
4931
|
}
|
|
@@ -4975,7 +4975,7 @@ function toField_3(_this__u8e3s4, header, identifier, name) {
|
|
|
4975
4975
|
// Inline function 'kotlin.let' call
|
|
4976
4976
|
var it = tmp;
|
|
4977
4977
|
var tmp0_identifier = new FieldIdentifier(identifier);
|
|
4978
|
-
var tmp1_annotations = toDescriptionAnnotationList(header.
|
|
4978
|
+
var tmp1_annotations = toDescriptionAnnotationList(header.n30());
|
|
4979
4979
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
4980
4980
|
}
|
|
4981
4981
|
function resolve_3(_this__u8e3s4, headerOrReference) {
|
|
@@ -5007,20 +5007,20 @@ function resolve_4(_this__u8e3s4, schemaOrReference) {
|
|
|
5007
5007
|
function get_isNullable(_this__u8e3s4) {
|
|
5008
5008
|
var tmp;
|
|
5009
5009
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5010
|
-
var tmp1_elvis_lhs = _this__u8e3s4.
|
|
5010
|
+
var tmp1_elvis_lhs = _this__u8e3s4.g3e_1;
|
|
5011
5011
|
tmp = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
5012
5012
|
} else {
|
|
5013
5013
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5014
|
-
var tmp_0 = _this__u8e3s4.
|
|
5014
|
+
var tmp_0 = _this__u8e3s4.z3n_1;
|
|
5015
5015
|
var tmp2_safe_receiver = tmp_0 instanceof OpenAPIV31TypeArray ? tmp_0 : null;
|
|
5016
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
5016
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.p3p_1;
|
|
5017
5017
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.u1(OpenAPIV31Type_NULL_getInstance());
|
|
5018
5018
|
tmp = tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs;
|
|
5019
5019
|
} else {
|
|
5020
5020
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5021
|
-
var tmp_1 = _this__u8e3s4.
|
|
5021
|
+
var tmp_1 = _this__u8e3s4.e3y_1;
|
|
5022
5022
|
var tmp5_safe_receiver = tmp_1 instanceof OpenAPIV32TypeArray ? tmp_1 : null;
|
|
5023
|
-
var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.
|
|
5023
|
+
var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.u3z_1;
|
|
5024
5024
|
var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.u1(OpenAPIV32Type_NULL_getInstance());
|
|
5025
5025
|
tmp = tmp7_elvis_lhs == null ? false : tmp7_elvis_lhs;
|
|
5026
5026
|
} else {
|
|
@@ -5046,13 +5046,13 @@ function flattenSchemaOrRef_0(_this__u8e3s4, schemaOrReference, name) {
|
|
|
5046
5046
|
function get_primitiveType_0(_this__u8e3s4) {
|
|
5047
5047
|
var tmp;
|
|
5048
5048
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5049
|
-
var t = _this__u8e3s4.
|
|
5049
|
+
var t = _this__u8e3s4.n3e_1;
|
|
5050
5050
|
var tmp_0;
|
|
5051
5051
|
if (t instanceof OpenAPIV30SingleType) {
|
|
5052
|
-
tmp_0 = t.
|
|
5052
|
+
tmp_0 = t.e3h_1;
|
|
5053
5053
|
} else {
|
|
5054
5054
|
if (t instanceof OpenAPIV30TypeArray) {
|
|
5055
|
-
var tmp0 = t.
|
|
5055
|
+
var tmp0 = t.j3j_1;
|
|
5056
5056
|
var tmp$ret$1;
|
|
5057
5057
|
$l$block: {
|
|
5058
5058
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -5078,13 +5078,13 @@ function get_primitiveType_0(_this__u8e3s4) {
|
|
|
5078
5078
|
tmp = tmp_0;
|
|
5079
5079
|
} else {
|
|
5080
5080
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5081
|
-
var t_0 = _this__u8e3s4.
|
|
5081
|
+
var t_0 = _this__u8e3s4.z3n_1;
|
|
5082
5082
|
var tmp_1;
|
|
5083
5083
|
if (t_0 instanceof OpenAPIV31SingleType) {
|
|
5084
|
-
tmp_1 = toV30(t_0.
|
|
5084
|
+
tmp_1 = toV30(t_0.q3p_1);
|
|
5085
5085
|
} else {
|
|
5086
5086
|
if (t_0 instanceof OpenAPIV31TypeArray) {
|
|
5087
|
-
var tmp0_0 = t_0.
|
|
5087
|
+
var tmp0_0 = t_0.p3p_1;
|
|
5088
5088
|
var tmp$ret$3;
|
|
5089
5089
|
$l$block_0: {
|
|
5090
5090
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -5111,13 +5111,13 @@ function get_primitiveType_0(_this__u8e3s4) {
|
|
|
5111
5111
|
tmp = tmp_1;
|
|
5112
5112
|
} else {
|
|
5113
5113
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5114
|
-
var t_1 = _this__u8e3s4.
|
|
5114
|
+
var t_1 = _this__u8e3s4.e3y_1;
|
|
5115
5115
|
var tmp_2;
|
|
5116
5116
|
if (t_1 instanceof OpenAPIV32SingleType) {
|
|
5117
|
-
tmp_2 = toV30_0(t_1.
|
|
5117
|
+
tmp_2 = toV30_0(t_1.v3z_1);
|
|
5118
5118
|
} else {
|
|
5119
5119
|
if (t_1 instanceof OpenAPIV32TypeArray) {
|
|
5120
|
-
var tmp0_1 = t_1.
|
|
5120
|
+
var tmp0_1 = t_1.u3z_1;
|
|
5121
5121
|
var tmp$ret$5;
|
|
5122
5122
|
$l$block_1: {
|
|
5123
5123
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -5153,13 +5153,13 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5153
5153
|
var oneOf = get_oneOf(schemaObject);
|
|
5154
5154
|
var anyOf = get_anyOf(schemaObject);
|
|
5155
5155
|
var tmp;
|
|
5156
|
-
if (exists_0(schemaObject.
|
|
5157
|
-
var tmp0_subject = schemaObject.
|
|
5156
|
+
if (exists_0(schemaObject.s30())) {
|
|
5157
|
+
var tmp0_subject = schemaObject.s30();
|
|
5158
5158
|
var tmp_0;
|
|
5159
5159
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
5160
5160
|
tmp_0 = emptyList();
|
|
5161
5161
|
} else {
|
|
5162
|
-
var tmp1_safe_receiver = schemaObject.
|
|
5162
|
+
var tmp1_safe_receiver = schemaObject.s30();
|
|
5163
5163
|
var tmp_1;
|
|
5164
5164
|
if (tmp1_safe_receiver == null) {
|
|
5165
5165
|
tmp_1 = null;
|
|
@@ -5174,7 +5174,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5174
5174
|
} else {
|
|
5175
5175
|
// Inline function 'kotlin.takeIf' call
|
|
5176
5176
|
var tmp_3;
|
|
5177
|
-
if (!(tmp2_safe_receiver.
|
|
5177
|
+
if (!(tmp2_safe_receiver.r30() == null)) {
|
|
5178
5178
|
tmp_3 = tmp2_safe_receiver;
|
|
5179
5179
|
} else {
|
|
5180
5180
|
tmp_3 = null;
|
|
@@ -5194,7 +5194,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5194
5194
|
}
|
|
5195
5195
|
tmp = tmp_0;
|
|
5196
5196
|
} else if (!(oneOf == null) || !(anyOf == null)) {
|
|
5197
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
5197
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.n30());
|
|
5198
5198
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
5199
5199
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5200
5200
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
@@ -5248,11 +5248,11 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5248
5248
|
addAll(destination_0, list);
|
|
5249
5249
|
}
|
|
5250
5250
|
tmp = plus_0(tmp_8, destination_0);
|
|
5251
|
-
} else if (!(schemaObject.
|
|
5252
|
-
var tmp_10 = toDescriptionAnnotationList(schemaObject.
|
|
5251
|
+
} else if (!(schemaObject.q30() == null)) {
|
|
5252
|
+
var tmp_10 = toDescriptionAnnotationList(schemaObject.n30());
|
|
5253
5253
|
var tmp_11 = new DefinitionIdentifier(sanitize(name));
|
|
5254
5254
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5255
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
5255
|
+
var tmp0_elvis_lhs = schemaObject.q30();
|
|
5256
5256
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5257
5257
|
var tmp0_0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
5258
5258
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -5276,7 +5276,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5276
5276
|
}
|
|
5277
5277
|
var tmp_12 = listOf(new Type(null, tmp_10, tmp_11, new Shape(list_1), emptyList()));
|
|
5278
5278
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5279
|
-
var tmp0_1 = ensureNotNull(schemaObject.
|
|
5279
|
+
var tmp0_1 = ensureNotNull(schemaObject.q30());
|
|
5280
5280
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5281
5281
|
var destination_2 = ArrayList_init_$Create$();
|
|
5282
5282
|
var _iterator__ex2g4s_3 = tmp0_1.t();
|
|
@@ -5285,12 +5285,12 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5285
5285
|
var tmp_13;
|
|
5286
5286
|
if (isInterface(element_1, Reference)) {
|
|
5287
5287
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5288
|
-
var tmp0_elvis_lhs_0 = resolveSchemaRef_0(_this__u8e3s4, element_1).ff_1.
|
|
5288
|
+
var tmp0_elvis_lhs_0 = resolveSchemaRef_0(_this__u8e3s4, element_1).ff_1.r30();
|
|
5289
5289
|
tmp_13 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
5290
5290
|
} else {
|
|
5291
5291
|
if (isInterface(element_1, Schema)) {
|
|
5292
5292
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5293
|
-
var tmp0_elvis_lhs_1 = element_1.
|
|
5293
|
+
var tmp0_elvis_lhs_1 = element_1.r30();
|
|
5294
5294
|
tmp_13 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
5295
5295
|
} else {
|
|
5296
5296
|
noWhenBranchMatchedException();
|
|
@@ -5315,20 +5315,20 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5315
5315
|
addAll(destination_2, list_3);
|
|
5316
5316
|
}
|
|
5317
5317
|
tmp = plus_0(tmp_12, destination_2);
|
|
5318
|
-
} else if (!(schemaObject.
|
|
5318
|
+
} else if (!(schemaObject.o30() == null)) {
|
|
5319
5319
|
// Inline function 'kotlin.collections.map' call
|
|
5320
|
-
var this_1 = ensureNotNull(schemaObject.
|
|
5320
|
+
var this_1 = ensureNotNull(schemaObject.o30());
|
|
5321
5321
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5322
5322
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
5323
5323
|
var _iterator__ex2g4s_5 = this_1.t();
|
|
5324
5324
|
while (_iterator__ex2g4s_5.u()) {
|
|
5325
5325
|
var item_0 = _iterator__ex2g4s_5.v();
|
|
5326
|
-
var tmp$ret$31 = item_0.
|
|
5326
|
+
var tmp$ret$31 = item_0.cy();
|
|
5327
5327
|
destination_4.x(tmp$ret$31);
|
|
5328
5328
|
}
|
|
5329
5329
|
// Inline function 'kotlin.let' call
|
|
5330
5330
|
var it = toSet(destination_4);
|
|
5331
|
-
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.
|
|
5331
|
+
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.n30()), new DefinitionIdentifier(name), it));
|
|
5332
5332
|
} else {
|
|
5333
5333
|
var tmp5_subject = get_primitiveType_0(schemaObject);
|
|
5334
5334
|
var tmp_14;
|
|
@@ -5337,7 +5337,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5337
5337
|
case 5:
|
|
5338
5338
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5339
5339
|
|
|
5340
|
-
var tmp0_elvis_lhs_2 = schemaObject.
|
|
5340
|
+
var tmp0_elvis_lhs_2 = schemaObject.r30();
|
|
5341
5341
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5342
5342
|
|
|
5343
5343
|
var tmp0_3 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
@@ -5358,11 +5358,11 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5358
5358
|
}
|
|
5359
5359
|
|
|
5360
5360
|
var fields = destination_5;
|
|
5361
|
-
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.
|
|
5361
|
+
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.n30()), new DefinitionIdentifier(name), new Shape(toField_4(_this__u8e3s4, schemaObject, name)), emptyList()));
|
|
5362
5362
|
tmp_14 = plus_0(schema, fields);
|
|
5363
5363
|
break;
|
|
5364
5364
|
case 4:
|
|
5365
|
-
var tmp6_safe_receiver = schemaObject.
|
|
5365
|
+
var tmp6_safe_receiver = schemaObject.p30();
|
|
5366
5366
|
var tmp_15;
|
|
5367
5367
|
if (tmp6_safe_receiver == null) {
|
|
5368
5368
|
tmp_15 = null;
|
|
@@ -5405,7 +5405,7 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5405
5405
|
var element = _iterator__ex2g4s.v();
|
|
5406
5406
|
// Inline function 'kotlin.collections.component2' call
|
|
5407
5407
|
var mediaObject = element.l1();
|
|
5408
|
-
var schema = mediaObject.
|
|
5408
|
+
var schema = mediaObject.w30();
|
|
5409
5409
|
var tmp;
|
|
5410
5410
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
5411
5411
|
var tmp0_subject = get_primitiveType_0(schema);
|
|
@@ -5416,7 +5416,7 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5416
5416
|
tmp_0 = flatten_0(_this__u8e3s4, schema, className([name, _StatusCode___get_value__impl__we50mu(statusCode), 'ResponseBody']));
|
|
5417
5417
|
break;
|
|
5418
5418
|
case 4:
|
|
5419
|
-
var tmp1_safe_receiver = schema.
|
|
5419
|
+
var tmp1_safe_receiver = schema.p30();
|
|
5420
5420
|
var tmp_1;
|
|
5421
5421
|
if (tmp1_safe_receiver == null) {
|
|
5422
5422
|
tmp_1 = null;
|
|
@@ -5444,7 +5444,7 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5444
5444
|
return destination;
|
|
5445
5445
|
}
|
|
5446
5446
|
function resolveResponse_0(_this__u8e3s4, reference) {
|
|
5447
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5447
|
+
var tmp0_safe_receiver = _this__u8e3s4.j33();
|
|
5448
5448
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qw();
|
|
5449
5449
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5450
5450
|
var tmp;
|
|
@@ -5467,7 +5467,7 @@ function resolveResponse_0(_this__u8e3s4, reference) {
|
|
|
5467
5467
|
var tmp3_elvis_lhs = tmp;
|
|
5468
5468
|
var tmp_1;
|
|
5469
5469
|
if (tmp3_elvis_lhs == null) {
|
|
5470
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5470
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.m30());
|
|
5471
5471
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5472
5472
|
} else {
|
|
5473
5473
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5475,8 +5475,8 @@ function resolveResponse_0(_this__u8e3s4, reference) {
|
|
|
5475
5475
|
return tmp_1;
|
|
5476
5476
|
}
|
|
5477
5477
|
function resolveParameter_0(_this__u8e3s4, reference) {
|
|
5478
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5479
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5478
|
+
var tmp0_safe_receiver = _this__u8e3s4.j33();
|
|
5479
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d31();
|
|
5480
5480
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5481
5481
|
var tmp;
|
|
5482
5482
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5500,13 +5500,13 @@ function resolveParameter_0(_this__u8e3s4, reference) {
|
|
|
5500
5500
|
function get_required(_this__u8e3s4) {
|
|
5501
5501
|
var tmp;
|
|
5502
5502
|
if (_this__u8e3s4 instanceof OpenAPIV30Parameter) {
|
|
5503
|
-
tmp = _this__u8e3s4.
|
|
5503
|
+
tmp = _this__u8e3s4.a3g_1;
|
|
5504
5504
|
} else {
|
|
5505
5505
|
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
5506
|
-
tmp = _this__u8e3s4.
|
|
5506
|
+
tmp = _this__u8e3s4.o3m_1;
|
|
5507
5507
|
} else {
|
|
5508
5508
|
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
5509
|
-
tmp = _this__u8e3s4.
|
|
5509
|
+
tmp = _this__u8e3s4.t3w_1;
|
|
5510
5510
|
} else {
|
|
5511
5511
|
tmp = null;
|
|
5512
5512
|
}
|
|
@@ -5517,13 +5517,13 @@ function get_required(_this__u8e3s4) {
|
|
|
5517
5517
|
function get_description(_this__u8e3s4) {
|
|
5518
5518
|
var tmp;
|
|
5519
5519
|
if (_this__u8e3s4 instanceof OpenAPIV30Parameter) {
|
|
5520
|
-
tmp = _this__u8e3s4.
|
|
5520
|
+
tmp = _this__u8e3s4.z3f_1;
|
|
5521
5521
|
} else {
|
|
5522
5522
|
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
5523
|
-
tmp = _this__u8e3s4.
|
|
5523
|
+
tmp = _this__u8e3s4.n3m_1;
|
|
5524
5524
|
} else {
|
|
5525
5525
|
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
5526
|
-
tmp = _this__u8e3s4.
|
|
5526
|
+
tmp = _this__u8e3s4.s3w_1;
|
|
5527
5527
|
} else {
|
|
5528
5528
|
tmp = null;
|
|
5529
5529
|
}
|
|
@@ -5532,8 +5532,8 @@ function get_description(_this__u8e3s4) {
|
|
|
5532
5532
|
return tmp;
|
|
5533
5533
|
}
|
|
5534
5534
|
function resolveRequestBody(_this__u8e3s4, reference) {
|
|
5535
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5536
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5535
|
+
var tmp0_safe_receiver = _this__u8e3s4.j33();
|
|
5536
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c3e();
|
|
5537
5537
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5538
5538
|
var tmp;
|
|
5539
5539
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5555,7 +5555,7 @@ function resolveRequestBody(_this__u8e3s4, reference) {
|
|
|
5555
5555
|
var tmp3_elvis_lhs = tmp;
|
|
5556
5556
|
var tmp_1;
|
|
5557
5557
|
if (tmp3_elvis_lhs == null) {
|
|
5558
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5558
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.m30());
|
|
5559
5559
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5560
5560
|
} else {
|
|
5561
5561
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5563,8 +5563,8 @@ function resolveRequestBody(_this__u8e3s4, reference) {
|
|
|
5563
5563
|
return tmp_1;
|
|
5564
5564
|
}
|
|
5565
5565
|
function resolveSchemaRef_0(_this__u8e3s4, reference) {
|
|
5566
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5567
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5566
|
+
var tmp0_safe_receiver = _this__u8e3s4.j33();
|
|
5567
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b3e();
|
|
5568
5568
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5569
5569
|
var tmp;
|
|
5570
5570
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5586,7 +5586,7 @@ function resolveSchemaRef_0(_this__u8e3s4, reference) {
|
|
|
5586
5586
|
var tmp3_elvis_lhs = tmp;
|
|
5587
5587
|
var tmp_1;
|
|
5588
5588
|
if (tmp3_elvis_lhs == null) {
|
|
5589
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5589
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.m30());
|
|
5590
5590
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5591
5591
|
} else {
|
|
5592
5592
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5652,13 +5652,13 @@ function toPrimitive_1(_this__u8e3s4) {
|
|
|
5652
5652
|
var tmp;
|
|
5653
5653
|
switch (tmp0_subject == null ? -1 : tmp0_subject.b3_1) {
|
|
5654
5654
|
case 0:
|
|
5655
|
-
tmp = !(_this__u8e3s4.
|
|
5655
|
+
tmp = !(_this__u8e3s4.u30() == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.u30()))) : _this__u8e3s4.t30() === 'binary' ? Bytes_instance : new String_0(null);
|
|
5656
5656
|
break;
|
|
5657
5657
|
case 2:
|
|
5658
|
-
tmp = new Integer(_this__u8e3s4.
|
|
5658
|
+
tmp = new Integer(_this__u8e3s4.t30() === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5659
5659
|
break;
|
|
5660
5660
|
case 1:
|
|
5661
|
-
tmp = new Number_0(_this__u8e3s4.
|
|
5661
|
+
tmp = new Number_0(_this__u8e3s4.t30() === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5662
5662
|
break;
|
|
5663
5663
|
case 3:
|
|
5664
5664
|
tmp = Boolean_instance;
|
|
@@ -5670,10 +5670,10 @@ function toPrimitive_1(_this__u8e3s4) {
|
|
|
5670
5670
|
return tmp;
|
|
5671
5671
|
}
|
|
5672
5672
|
function toLinkInfo_0(_this__u8e3s4, name) {
|
|
5673
|
-
var tmp = _this__u8e3s4.
|
|
5674
|
-
var tmp_0 = _this__u8e3s4.
|
|
5673
|
+
var tmp = _this__u8e3s4.c31();
|
|
5674
|
+
var tmp_0 = _this__u8e3s4.b31();
|
|
5675
5675
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5676
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
5676
|
+
var tmp0_elvis_lhs = _this__u8e3s4.d31();
|
|
5677
5677
|
// Inline function 'kotlin.collections.mapValues' call
|
|
5678
5678
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
5679
5679
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
@@ -5687,11 +5687,11 @@ function toLinkInfo_0(_this__u8e3s4, name) {
|
|
|
5687
5687
|
destination.s2(tmp_1, tmp$ret$2);
|
|
5688
5688
|
}
|
|
5689
5689
|
var tmp_2 = destination;
|
|
5690
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5690
|
+
var tmp0_safe_receiver = _this__u8e3s4.e31();
|
|
5691
5691
|
var tmp_3 = tmp0_safe_receiver == null ? null : asLinkExpression(tmp0_safe_receiver);
|
|
5692
|
-
var tmp_4 = _this__u8e3s4.
|
|
5693
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
5694
|
-
return new LinkInfo(name, tmp, tmp_0, tmp_2, tmp_3, tmp_4, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5692
|
+
var tmp_4 = _this__u8e3s4.n30();
|
|
5693
|
+
var tmp1_safe_receiver = _this__u8e3s4.f31();
|
|
5694
|
+
return new LinkInfo(name, tmp, tmp_0, tmp_2, tmp_3, tmp_4, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.j31_1);
|
|
5695
5695
|
}
|
|
5696
5696
|
function resolve_5(_this__u8e3s4, linkOrReference) {
|
|
5697
5697
|
var tmp;
|
|
@@ -5709,13 +5709,13 @@ function resolve_5(_this__u8e3s4, linkOrReference) {
|
|
|
5709
5709
|
function get_required_0(_this__u8e3s4) {
|
|
5710
5710
|
var tmp;
|
|
5711
5711
|
if (_this__u8e3s4 instanceof OpenAPIV30Header) {
|
|
5712
|
-
tmp = _this__u8e3s4.
|
|
5712
|
+
tmp = _this__u8e3s4.y3i_1;
|
|
5713
5713
|
} else {
|
|
5714
5714
|
if (_this__u8e3s4 instanceof OpenAPIV31Header) {
|
|
5715
|
-
tmp = _this__u8e3s4.
|
|
5715
|
+
tmp = _this__u8e3s4.v3p_1;
|
|
5716
5716
|
} else {
|
|
5717
5717
|
if (_this__u8e3s4 instanceof OpenAPIV32Header) {
|
|
5718
|
-
tmp = _this__u8e3s4.
|
|
5718
|
+
tmp = _this__u8e3s4.a40_1;
|
|
5719
5719
|
} else {
|
|
5720
5720
|
tmp = null;
|
|
5721
5721
|
}
|
|
@@ -5726,13 +5726,13 @@ function get_required_0(_this__u8e3s4) {
|
|
|
5726
5726
|
function get_schema(_this__u8e3s4) {
|
|
5727
5727
|
var tmp;
|
|
5728
5728
|
if (_this__u8e3s4 instanceof OpenAPIV30Header) {
|
|
5729
|
-
tmp = _this__u8e3s4.
|
|
5729
|
+
tmp = _this__u8e3s4.e3j_1;
|
|
5730
5730
|
} else {
|
|
5731
5731
|
if (_this__u8e3s4 instanceof OpenAPIV31Header) {
|
|
5732
|
-
tmp = _this__u8e3s4.
|
|
5732
|
+
tmp = _this__u8e3s4.b3q_1;
|
|
5733
5733
|
} else {
|
|
5734
5734
|
if (_this__u8e3s4 instanceof OpenAPIV32Header) {
|
|
5735
|
-
tmp = _this__u8e3s4.
|
|
5735
|
+
tmp = _this__u8e3s4.g40_1;
|
|
5736
5736
|
} else {
|
|
5737
5737
|
tmp = null;
|
|
5738
5738
|
}
|
|
@@ -5741,7 +5741,7 @@ function get_schema(_this__u8e3s4) {
|
|
|
5741
5741
|
return tmp;
|
|
5742
5742
|
}
|
|
5743
5743
|
function resolveHeader_0(_this__u8e3s4, reference) {
|
|
5744
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5744
|
+
var tmp0_safe_receiver = _this__u8e3s4.j33();
|
|
5745
5745
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ow();
|
|
5746
5746
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5747
5747
|
var tmp;
|
|
@@ -5764,7 +5764,7 @@ function resolveHeader_0(_this__u8e3s4, reference) {
|
|
|
5764
5764
|
var tmp3_elvis_lhs = tmp;
|
|
5765
5765
|
var tmp_1;
|
|
5766
5766
|
if (tmp3_elvis_lhs == null) {
|
|
5767
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5767
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.m30());
|
|
5768
5768
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5769
5769
|
} else {
|
|
5770
5770
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5780,7 +5780,7 @@ function toV30_0(_this__u8e3s4) {
|
|
|
5780
5780
|
function get_oneOf(_this__u8e3s4) {
|
|
5781
5781
|
var tmp;
|
|
5782
5782
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5783
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
5783
|
+
var tmp1_safe_receiver = _this__u8e3s4.j3e_1;
|
|
5784
5784
|
var tmp_0;
|
|
5785
5785
|
if (tmp1_safe_receiver == null) {
|
|
5786
5786
|
tmp_0 = null;
|
|
@@ -5799,7 +5799,7 @@ function get_oneOf(_this__u8e3s4) {
|
|
|
5799
5799
|
tmp = tmp_0;
|
|
5800
5800
|
} else {
|
|
5801
5801
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5802
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
5802
|
+
var tmp2_safe_receiver = _this__u8e3s4.v3n_1;
|
|
5803
5803
|
var tmp_1;
|
|
5804
5804
|
if (tmp2_safe_receiver == null) {
|
|
5805
5805
|
tmp_1 = null;
|
|
@@ -5818,7 +5818,7 @@ function get_oneOf(_this__u8e3s4) {
|
|
|
5818
5818
|
tmp = tmp_1;
|
|
5819
5819
|
} else {
|
|
5820
5820
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5821
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
5821
|
+
var tmp3_safe_receiver = _this__u8e3s4.a3y_1;
|
|
5822
5822
|
var tmp_2;
|
|
5823
5823
|
if (tmp3_safe_receiver == null) {
|
|
5824
5824
|
tmp_2 = null;
|
|
@@ -5845,7 +5845,7 @@ function get_oneOf(_this__u8e3s4) {
|
|
|
5845
5845
|
function get_anyOf(_this__u8e3s4) {
|
|
5846
5846
|
var tmp;
|
|
5847
5847
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5848
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
5848
|
+
var tmp1_safe_receiver = _this__u8e3s4.k3e_1;
|
|
5849
5849
|
var tmp_0;
|
|
5850
5850
|
if (tmp1_safe_receiver == null) {
|
|
5851
5851
|
tmp_0 = null;
|
|
@@ -5864,7 +5864,7 @@ function get_anyOf(_this__u8e3s4) {
|
|
|
5864
5864
|
tmp = tmp_0;
|
|
5865
5865
|
} else {
|
|
5866
5866
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5867
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
5867
|
+
var tmp2_safe_receiver = _this__u8e3s4.w3n_1;
|
|
5868
5868
|
var tmp_1;
|
|
5869
5869
|
if (tmp2_safe_receiver == null) {
|
|
5870
5870
|
tmp_1 = null;
|
|
@@ -5883,7 +5883,7 @@ function get_anyOf(_this__u8e3s4) {
|
|
|
5883
5883
|
tmp = tmp_1;
|
|
5884
5884
|
} else {
|
|
5885
5885
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5886
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
5886
|
+
var tmp3_safe_receiver = _this__u8e3s4.b3y_1;
|
|
5887
5887
|
var tmp_2;
|
|
5888
5888
|
if (tmp3_safe_receiver == null) {
|
|
5889
5889
|
tmp_2 = null;
|
|
@@ -5927,7 +5927,7 @@ function resolve_6(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
5927
5927
|
}
|
|
5928
5928
|
function toField_4(_this__u8e3s4, schema, name) {
|
|
5929
5929
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5930
|
-
var tmp0_elvis_lhs = schema.
|
|
5930
|
+
var tmp0_elvis_lhs = schema.r30();
|
|
5931
5931
|
// Inline function 'kotlin.collections.map' call
|
|
5932
5932
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
5933
5933
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -5940,14 +5940,14 @@ function toField_4(_this__u8e3s4, schema, name) {
|
|
|
5940
5940
|
var key = item.k1();
|
|
5941
5941
|
// Inline function 'kotlin.collections.component2' call
|
|
5942
5942
|
var value = item.l1();
|
|
5943
|
-
var tmp0_safe_receiver = schema.
|
|
5943
|
+
var tmp0_safe_receiver = schema.w1b();
|
|
5944
5944
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u1(key);
|
|
5945
5945
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
5946
5946
|
var tmp;
|
|
5947
5947
|
if (isInterface(value, Schema)) {
|
|
5948
5948
|
var tmp3_identifier = new FieldIdentifier(key);
|
|
5949
|
-
var tmp4_annotations = toDescriptionAnnotationList(value.
|
|
5950
|
-
var tmp5_reference = !(value.
|
|
5949
|
+
var tmp4_annotations = toDescriptionAnnotationList(value.n30());
|
|
5950
|
+
var tmp5_reference = !(value.o30() == null) ? toReference_2(_this__u8e3s4, value, isNullable, className([name, key])) : equals(get_primitiveType_0(value), OpenAPIV30Type_ARRAY_getInstance()) ? toReference_2(_this__u8e3s4, value, isNullable, className([name, key, 'Array'])) : toReference_2(_this__u8e3s4, value, isNullable, className([name, key]));
|
|
5951
5951
|
tmp = new Field(tmp4_annotations, tmp3_identifier, tmp5_reference);
|
|
5952
5952
|
} else {
|
|
5953
5953
|
if (isInterface(value, Reference)) {
|
|
@@ -5970,8 +5970,8 @@ function asLinkExpression(_this__u8e3s4) {
|
|
|
5970
5970
|
return tmp1_elvis_lhs == null ? toString(_this__u8e3s4) : tmp1_elvis_lhs;
|
|
5971
5971
|
}
|
|
5972
5972
|
function resolveLink(_this__u8e3s4, reference) {
|
|
5973
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5974
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5973
|
+
var tmp0_safe_receiver = _this__u8e3s4.j33();
|
|
5974
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v30();
|
|
5975
5975
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5976
5976
|
var tmp;
|
|
5977
5977
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5993,7 +5993,7 @@ function resolveLink(_this__u8e3s4, reference) {
|
|
|
5993
5993
|
var tmp3_elvis_lhs = tmp;
|
|
5994
5994
|
var tmp_1;
|
|
5995
5995
|
if (tmp3_elvis_lhs == null) {
|
|
5996
|
-
var message = 'Cannot resolve link ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5996
|
+
var message = 'Cannot resolve link ref: ' + Ref__toString_impl_irb7zi(reference.m30());
|
|
5997
5997
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5998
5998
|
} else {
|
|
5999
5999
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -6041,16 +6041,16 @@ function toCommon_1(_this__u8e3s4) {
|
|
|
6041
6041
|
}
|
|
6042
6042
|
function parseParameters$lambda_0($this_parseParameters) {
|
|
6043
6043
|
return function ($this$flatMapRequests) {
|
|
6044
|
-
var parameters = plus_0(resolveParameters_0($this_parseParameters, $this$flatMapRequests.
|
|
6045
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
6046
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
6044
|
+
var parameters = plus_0(resolveParameters_0($this_parseParameters, $this$flatMapRequests.v46_1.d31()), resolveParameters_0($this_parseParameters, $this$flatMapRequests.x46_1.d31()));
|
|
6045
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.x46_1);
|
|
6046
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.u46_1) + $this$flatMapRequests.w46_1.a3_1 : tmp0_elvis_lhs;
|
|
6047
6047
|
// Inline function 'kotlin.collections.flatMap' call
|
|
6048
6048
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
6049
6049
|
var destination = ArrayList_init_$Create$();
|
|
6050
6050
|
var _iterator__ex2g4s = parameters.t();
|
|
6051
6051
|
while (_iterator__ex2g4s.u()) {
|
|
6052
6052
|
var element = _iterator__ex2g4s.v();
|
|
6053
|
-
var tmp0_safe_receiver = element.
|
|
6053
|
+
var tmp0_safe_receiver = element.w30();
|
|
6054
6054
|
var tmp;
|
|
6055
6055
|
if (tmp0_safe_receiver == null) {
|
|
6056
6056
|
tmp = null;
|
|
@@ -6067,9 +6067,9 @@ function parseParameters$lambda_0($this_parseParameters) {
|
|
|
6067
6067
|
}
|
|
6068
6068
|
function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
6069
6069
|
return function ($this$flatMapRequests) {
|
|
6070
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
6071
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
6072
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
6070
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.x46_1);
|
|
6071
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.u46_1) + $this$flatMapRequests.w46_1.a3_1 : tmp0_elvis_lhs;
|
|
6072
|
+
var tmp1_safe_receiver = $this$flatMapRequests.x46_1.e31();
|
|
6073
6073
|
var tmp;
|
|
6074
6074
|
if (tmp1_safe_receiver == null) {
|
|
6075
6075
|
tmp = null;
|
|
@@ -6079,7 +6079,7 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
6079
6079
|
}
|
|
6080
6080
|
var tmp2_safe_receiver = tmp;
|
|
6081
6081
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
6082
|
-
var tmp0_elvis_lhs_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
6082
|
+
var tmp0_elvis_lhs_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.cy();
|
|
6083
6083
|
// Inline function 'kotlin.collections.flatMap' call
|
|
6084
6084
|
var tmp0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
6085
6085
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -6090,7 +6090,7 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
6090
6090
|
var element = _iterator__ex2g4s.v();
|
|
6091
6091
|
// Inline function 'kotlin.collections.component2' call
|
|
6092
6092
|
var mediaObject = element.l1();
|
|
6093
|
-
var schema = mediaObject.
|
|
6093
|
+
var schema = mediaObject.w30();
|
|
6094
6094
|
var tmp_0;
|
|
6095
6095
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
6096
6096
|
var tmp0_subject = get_primitiveType_0(schema);
|
|
@@ -6101,7 +6101,7 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
6101
6101
|
tmp_1 = flatten_0($this_parseRequestBody, schema, className([name, 'RequestBody']));
|
|
6102
6102
|
break;
|
|
6103
6103
|
case 4:
|
|
6104
|
-
var tmp1_safe_receiver_0 = schema.
|
|
6104
|
+
var tmp1_safe_receiver_0 = schema.p30();
|
|
6105
6105
|
var tmp_2;
|
|
6106
6106
|
if (tmp1_safe_receiver_0 == null) {
|
|
6107
6107
|
tmp_2 = null;
|
|
@@ -6141,15 +6141,15 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
6141
6141
|
}
|
|
6142
6142
|
function parseResponseBody$lambda_0($this_parseResponseBody) {
|
|
6143
6143
|
return function ($this$flatMapResponses) {
|
|
6144
|
-
var tmp0_elvis_lhs = toName($this$flatMapResponses.
|
|
6145
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
6146
|
-
var res = $this$flatMapResponses.
|
|
6144
|
+
var tmp0_elvis_lhs = toName($this$flatMapResponses.b47_1);
|
|
6145
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.y46_1) + $this$flatMapResponses.a47_1.a3_1 : tmp0_elvis_lhs;
|
|
6146
|
+
var res = $this$flatMapResponses.d47_1;
|
|
6147
6147
|
var tmp;
|
|
6148
6148
|
if (isInterface(res, Reference)) {
|
|
6149
|
-
tmp = flatMapResponse($this_parseResponseBody, resolveResponse_0($this_parseResponseBody, res).ff_1, name, $this$flatMapResponses.
|
|
6149
|
+
tmp = flatMapResponse($this_parseResponseBody, resolveResponse_0($this_parseResponseBody, res).ff_1, name, $this$flatMapResponses.c47_1);
|
|
6150
6150
|
} else {
|
|
6151
6151
|
if (isInterface(res, Response_0)) {
|
|
6152
|
-
tmp = flatMapResponse($this_parseResponseBody, res, name, $this$flatMapResponses.
|
|
6152
|
+
tmp = flatMapResponse($this_parseResponseBody, res, name, $this$flatMapResponses.c47_1);
|
|
6153
6153
|
} else {
|
|
6154
6154
|
noWhenBranchMatchedException();
|
|
6155
6155
|
}
|