@flock/wirespec 0.18.14 → 0.18.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clikt-clikt-mordant.mjs +39 -39
- package/colormath-root-colormath.mjs +432 -432
- package/kotlin-kotlin-stdlib.mjs +20 -10
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +9842 -9842
- package/kotlin-rgxgen.mjs +1758 -1758
- package/kotlinx-io-kotlinx-io-core.mjs +404 -404
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1775 -1775
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1466 -1466
- package/mordant-mordant.mjs +1190 -1190
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +182 -182
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +197 -133
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +147 -147
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +68 -54
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +29 -29
- package/wirespec-src-compiler-emitters-typescript.mjs +81 -54
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +26 -26
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +144 -134
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +479 -479
- package/wirespec-src-converter-openapi.mjs +320 -320
- package/wirespec-src-ide-lsp.mjs +1348 -1348
- package/wirespec-src-plugin-arguments.mjs +136 -136
- package/wirespec-src-plugin-cli.mjs +84 -84
- package/wirespec-src-plugin-npm.mjs +10 -10
- package/wirespec-src-tools-generator.mjs +2 -2
|
@@ -287,28 +287,28 @@ function toOperationList(_this__u8e3s4) {
|
|
|
287
287
|
var tmp;
|
|
288
288
|
switch (element.b3_1) {
|
|
289
289
|
case 0:
|
|
290
|
-
tmp = _this__u8e3s4.
|
|
290
|
+
tmp = _this__u8e3s4.j33();
|
|
291
291
|
break;
|
|
292
292
|
case 1:
|
|
293
|
-
tmp = _this__u8e3s4.
|
|
293
|
+
tmp = _this__u8e3s4.l33();
|
|
294
294
|
break;
|
|
295
295
|
case 2:
|
|
296
|
-
tmp = _this__u8e3s4.
|
|
296
|
+
tmp = _this__u8e3s4.k33();
|
|
297
297
|
break;
|
|
298
298
|
case 3:
|
|
299
|
-
tmp = _this__u8e3s4.
|
|
299
|
+
tmp = _this__u8e3s4.m33();
|
|
300
300
|
break;
|
|
301
301
|
case 4:
|
|
302
|
-
tmp = _this__u8e3s4.
|
|
302
|
+
tmp = _this__u8e3s4.n33();
|
|
303
303
|
break;
|
|
304
304
|
case 5:
|
|
305
|
-
tmp = _this__u8e3s4.
|
|
305
|
+
tmp = _this__u8e3s4.o33();
|
|
306
306
|
break;
|
|
307
307
|
case 6:
|
|
308
|
-
tmp = _this__u8e3s4.
|
|
308
|
+
tmp = _this__u8e3s4.p33();
|
|
309
309
|
break;
|
|
310
310
|
case 7:
|
|
311
|
-
tmp = _this__u8e3s4.
|
|
311
|
+
tmp = _this__u8e3s4.q33();
|
|
312
312
|
break;
|
|
313
313
|
default:
|
|
314
314
|
noWhenBranchMatchedException();
|
|
@@ -320,7 +320,7 @@ function toOperationList(_this__u8e3s4) {
|
|
|
320
320
|
return filterNotNullValues(result);
|
|
321
321
|
}
|
|
322
322
|
function toName(_this__u8e3s4) {
|
|
323
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
323
|
+
var tmp0_safe_receiver = _this__u8e3s4.n2z();
|
|
324
324
|
var tmp;
|
|
325
325
|
if (tmp0_safe_receiver == null) {
|
|
326
326
|
tmp = null;
|
|
@@ -365,7 +365,7 @@ function sanitize(_this__u8e3s4) {
|
|
|
365
365
|
}
|
|
366
366
|
function flatMapRequests(_this__u8e3s4, f) {
|
|
367
367
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
368
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
368
|
+
var tmp0_elvis_lhs = _this__u8e3s4.o31();
|
|
369
369
|
// Inline function 'kotlin.collections.flatMap' call
|
|
370
370
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
371
371
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -375,7 +375,7 @@ function flatMapRequests(_this__u8e3s4, f) {
|
|
|
375
375
|
while (_iterator__ex2g4s.u()) {
|
|
376
376
|
var element = _iterator__ex2g4s.v();
|
|
377
377
|
// Inline function 'kotlin.collections.component1' call
|
|
378
|
-
var path = element.k1().
|
|
378
|
+
var path = element.k1().p2y_1;
|
|
379
379
|
// Inline function 'kotlin.collections.component2' call
|
|
380
380
|
var pathItem = element.l1();
|
|
381
381
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -408,19 +408,19 @@ function flatMapRequests(_this__u8e3s4, f) {
|
|
|
408
408
|
return destination_1;
|
|
409
409
|
}
|
|
410
410
|
function FlattenRequest(path, pathItem, method, operation) {
|
|
411
|
-
this.
|
|
412
|
-
this.
|
|
413
|
-
this.
|
|
414
|
-
this.
|
|
411
|
+
this.g45_1 = path;
|
|
412
|
+
this.h45_1 = pathItem;
|
|
413
|
+
this.i45_1 = method;
|
|
414
|
+
this.j45_1 = operation;
|
|
415
415
|
}
|
|
416
416
|
protoOf(FlattenRequest).toString = function () {
|
|
417
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
417
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.g45_1) + ', pathItem=' + toString(this.h45_1) + ', method=' + this.i45_1.toString() + ', operation=' + toString(this.j45_1) + ')';
|
|
418
418
|
};
|
|
419
419
|
protoOf(FlattenRequest).hashCode = function () {
|
|
420
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
421
|
-
result = imul(result, 31) + hashCode(this.
|
|
422
|
-
result = imul(result, 31) + this.
|
|
423
|
-
result = imul(result, 31) + hashCode(this.
|
|
420
|
+
var result = Path__hashCode_impl_go73kd(this.g45_1);
|
|
421
|
+
result = imul(result, 31) + hashCode(this.h45_1) | 0;
|
|
422
|
+
result = imul(result, 31) + this.i45_1.hashCode() | 0;
|
|
423
|
+
result = imul(result, 31) + hashCode(this.j45_1) | 0;
|
|
424
424
|
return result;
|
|
425
425
|
};
|
|
426
426
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -428,19 +428,19 @@ protoOf(FlattenRequest).equals = function (other) {
|
|
|
428
428
|
return true;
|
|
429
429
|
if (!(other instanceof FlattenRequest))
|
|
430
430
|
return false;
|
|
431
|
-
if (!(this.
|
|
431
|
+
if (!(this.g45_1 === other.g45_1))
|
|
432
432
|
return false;
|
|
433
|
-
if (!equals(this.
|
|
433
|
+
if (!equals(this.h45_1, other.h45_1))
|
|
434
434
|
return false;
|
|
435
|
-
if (!this.
|
|
435
|
+
if (!this.i45_1.equals(other.i45_1))
|
|
436
436
|
return false;
|
|
437
|
-
if (!equals(this.
|
|
437
|
+
if (!equals(this.j45_1, other.j45_1))
|
|
438
438
|
return false;
|
|
439
439
|
return true;
|
|
440
440
|
};
|
|
441
441
|
function flatMapResponses(_this__u8e3s4, f) {
|
|
442
442
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
443
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
443
|
+
var tmp0_elvis_lhs = _this__u8e3s4.o31();
|
|
444
444
|
// Inline function 'kotlin.collections.flatMap' call
|
|
445
445
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
446
446
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -450,7 +450,7 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
450
450
|
while (_iterator__ex2g4s.u()) {
|
|
451
451
|
var element = _iterator__ex2g4s.v();
|
|
452
452
|
// Inline function 'kotlin.collections.component1' call
|
|
453
|
-
var path = element.k1().
|
|
453
|
+
var path = element.k1().p2y_1;
|
|
454
454
|
// Inline function 'kotlin.collections.component2' call
|
|
455
455
|
var pathItem = element.l1();
|
|
456
456
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -476,7 +476,7 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
476
476
|
while (_iterator__ex2g4s_1.u()) {
|
|
477
477
|
var item = _iterator__ex2g4s_1.v();
|
|
478
478
|
// Inline function 'kotlin.collections.component1' call
|
|
479
|
-
var statusCode = item.k1().
|
|
479
|
+
var statusCode = item.k1().t2y_1;
|
|
480
480
|
// Inline function 'kotlin.collections.component2' call
|
|
481
481
|
var response = item.l1();
|
|
482
482
|
var tmp$ret$11 = new FlattenResponse(path, pathItem, method, operation, statusCode, response);
|
|
@@ -500,23 +500,23 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
500
500
|
return destination_2;
|
|
501
501
|
}
|
|
502
502
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response) {
|
|
503
|
-
this.
|
|
504
|
-
this.
|
|
505
|
-
this.
|
|
506
|
-
this.
|
|
507
|
-
this.
|
|
508
|
-
this.
|
|
503
|
+
this.k45_1 = path;
|
|
504
|
+
this.l45_1 = pathItem;
|
|
505
|
+
this.m45_1 = method;
|
|
506
|
+
this.n45_1 = operation;
|
|
507
|
+
this.o45_1 = statusCode;
|
|
508
|
+
this.p45_1 = response;
|
|
509
509
|
}
|
|
510
510
|
protoOf(FlattenResponse).toString = function () {
|
|
511
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
511
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.k45_1) + ', pathItem=' + toString(this.l45_1) + ', method=' + this.m45_1.toString() + ', operation=' + toString(this.n45_1) + ', statusCode=' + StatusCode__toString_impl_6caewy(this.o45_1) + ', response=' + toString(this.p45_1) + ')';
|
|
512
512
|
};
|
|
513
513
|
protoOf(FlattenResponse).hashCode = function () {
|
|
514
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
515
|
-
result = imul(result, 31) + hashCode(this.h45_1) | 0;
|
|
516
|
-
result = imul(result, 31) + this.i45_1.hashCode() | 0;
|
|
517
|
-
result = imul(result, 31) + hashCode(this.j45_1) | 0;
|
|
518
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.k45_1) | 0;
|
|
514
|
+
var result = Path__hashCode_impl_go73kd(this.k45_1);
|
|
519
515
|
result = imul(result, 31) + hashCode(this.l45_1) | 0;
|
|
516
|
+
result = imul(result, 31) + this.m45_1.hashCode() | 0;
|
|
517
|
+
result = imul(result, 31) + hashCode(this.n45_1) | 0;
|
|
518
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.o45_1) | 0;
|
|
519
|
+
result = imul(result, 31) + hashCode(this.p45_1) | 0;
|
|
520
520
|
return result;
|
|
521
521
|
};
|
|
522
522
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -524,17 +524,17 @@ protoOf(FlattenResponse).equals = function (other) {
|
|
|
524
524
|
return true;
|
|
525
525
|
if (!(other instanceof FlattenResponse))
|
|
526
526
|
return false;
|
|
527
|
-
if (!(this.
|
|
527
|
+
if (!(this.k45_1 === other.k45_1))
|
|
528
528
|
return false;
|
|
529
|
-
if (!equals(this.
|
|
529
|
+
if (!equals(this.l45_1, other.l45_1))
|
|
530
530
|
return false;
|
|
531
|
-
if (!this.
|
|
531
|
+
if (!this.m45_1.equals(other.m45_1))
|
|
532
532
|
return false;
|
|
533
|
-
if (!equals(this.
|
|
533
|
+
if (!equals(this.n45_1, other.n45_1))
|
|
534
534
|
return false;
|
|
535
|
-
if (!(this.
|
|
535
|
+
if (!(this.o45_1 === other.o45_1))
|
|
536
536
|
return false;
|
|
537
|
-
if (!equals(this.
|
|
537
|
+
if (!equals(this.p45_1, other.p45_1))
|
|
538
538
|
return false;
|
|
539
539
|
return true;
|
|
540
540
|
};
|
|
@@ -543,7 +543,7 @@ function toDict(_this__u8e3s4, isNullable) {
|
|
|
543
543
|
}
|
|
544
544
|
function getReference(_this__u8e3s4) {
|
|
545
545
|
// Inline function 'kotlin.let' call
|
|
546
|
-
var it = split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
546
|
+
var it = split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.y2y()), ['/']);
|
|
547
547
|
var tmp;
|
|
548
548
|
if (_this__u8e3s4 instanceof OpenAPIV20Reference) {
|
|
549
549
|
tmp = getOrNull(it, 2);
|
|
@@ -553,7 +553,7 @@ function getReference(_this__u8e3s4) {
|
|
|
553
553
|
var tmp0_elvis_lhs = tmp;
|
|
554
554
|
var tmp_0;
|
|
555
555
|
if (tmp0_elvis_lhs == null) {
|
|
556
|
-
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
556
|
+
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe(_this__u8e3s4.y2y());
|
|
557
557
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
558
558
|
} else {
|
|
559
559
|
tmp_0 = tmp0_elvis_lhs;
|
|
@@ -568,8 +568,8 @@ function isParam(_this__u8e3s4) {
|
|
|
568
568
|
}
|
|
569
569
|
function jsonDefault$lambda($strict) {
|
|
570
570
|
return function ($this$Json) {
|
|
571
|
-
$this$Json.
|
|
572
|
-
$this$Json.
|
|
571
|
+
$this$Json.p2l_1 = true;
|
|
572
|
+
$this$Json.n2l_1 = !$strict;
|
|
573
573
|
return Unit_instance;
|
|
574
574
|
};
|
|
575
575
|
}
|
|
@@ -729,25 +729,25 @@ function toDescriptionAnnotationList(_this__u8e3s4) {
|
|
|
729
729
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
730
730
|
}
|
|
731
731
|
function LinkInfo(name, operationId, operationRef, parameters, requestBody, description, serverUrl) {
|
|
732
|
-
this.
|
|
733
|
-
this.
|
|
734
|
-
this.
|
|
735
|
-
this.
|
|
736
|
-
this.
|
|
737
|
-
this.
|
|
738
|
-
this.
|
|
732
|
+
this.q45_1 = name;
|
|
733
|
+
this.r45_1 = operationId;
|
|
734
|
+
this.s45_1 = operationRef;
|
|
735
|
+
this.t45_1 = parameters;
|
|
736
|
+
this.u45_1 = requestBody;
|
|
737
|
+
this.v45_1 = description;
|
|
738
|
+
this.w45_1 = serverUrl;
|
|
739
739
|
}
|
|
740
740
|
protoOf(LinkInfo).toString = function () {
|
|
741
|
-
return 'LinkInfo(name=' + this.
|
|
741
|
+
return 'LinkInfo(name=' + this.q45_1 + ', operationId=' + this.r45_1 + ', operationRef=' + this.s45_1 + ', parameters=' + toString(this.t45_1) + ', requestBody=' + this.u45_1 + ', description=' + this.v45_1 + ', serverUrl=' + this.w45_1 + ')';
|
|
742
742
|
};
|
|
743
743
|
protoOf(LinkInfo).hashCode = function () {
|
|
744
|
-
var result = getStringHashCode(this.
|
|
745
|
-
result = imul(result, 31) + (this.n45_1 == null ? 0 : getStringHashCode(this.n45_1)) | 0;
|
|
746
|
-
result = imul(result, 31) + (this.o45_1 == null ? 0 : getStringHashCode(this.o45_1)) | 0;
|
|
747
|
-
result = imul(result, 31) + hashCode(this.p45_1) | 0;
|
|
748
|
-
result = imul(result, 31) + (this.q45_1 == null ? 0 : getStringHashCode(this.q45_1)) | 0;
|
|
744
|
+
var result = getStringHashCode(this.q45_1);
|
|
749
745
|
result = imul(result, 31) + (this.r45_1 == null ? 0 : getStringHashCode(this.r45_1)) | 0;
|
|
750
746
|
result = imul(result, 31) + (this.s45_1 == null ? 0 : getStringHashCode(this.s45_1)) | 0;
|
|
747
|
+
result = imul(result, 31) + hashCode(this.t45_1) | 0;
|
|
748
|
+
result = imul(result, 31) + (this.u45_1 == null ? 0 : getStringHashCode(this.u45_1)) | 0;
|
|
749
|
+
result = imul(result, 31) + (this.v45_1 == null ? 0 : getStringHashCode(this.v45_1)) | 0;
|
|
750
|
+
result = imul(result, 31) + (this.w45_1 == null ? 0 : getStringHashCode(this.w45_1)) | 0;
|
|
751
751
|
return result;
|
|
752
752
|
};
|
|
753
753
|
protoOf(LinkInfo).equals = function (other) {
|
|
@@ -755,19 +755,19 @@ protoOf(LinkInfo).equals = function (other) {
|
|
|
755
755
|
return true;
|
|
756
756
|
if (!(other instanceof LinkInfo))
|
|
757
757
|
return false;
|
|
758
|
-
if (!(this.
|
|
758
|
+
if (!(this.q45_1 === other.q45_1))
|
|
759
759
|
return false;
|
|
760
|
-
if (!(this.
|
|
760
|
+
if (!(this.r45_1 == other.r45_1))
|
|
761
761
|
return false;
|
|
762
|
-
if (!(this.
|
|
762
|
+
if (!(this.s45_1 == other.s45_1))
|
|
763
763
|
return false;
|
|
764
|
-
if (!equals(this.
|
|
764
|
+
if (!equals(this.t45_1, other.t45_1))
|
|
765
765
|
return false;
|
|
766
|
-
if (!(this.
|
|
766
|
+
if (!(this.u45_1 == other.u45_1))
|
|
767
767
|
return false;
|
|
768
|
-
if (!(this.
|
|
768
|
+
if (!(this.v45_1 == other.v45_1))
|
|
769
769
|
return false;
|
|
770
|
-
if (!(this.
|
|
770
|
+
if (!(this.w45_1 == other.w45_1))
|
|
771
771
|
return false;
|
|
772
772
|
return true;
|
|
773
773
|
};
|
|
@@ -802,8 +802,8 @@ function findLinks(_this__u8e3s4) {
|
|
|
802
802
|
}
|
|
803
803
|
function toAnnotation(_this__u8e3s4) {
|
|
804
804
|
_init_properties_Utils_kt__jo07cx();
|
|
805
|
-
var params = mutableListOf([new Parameter('default', new Single(_this__u8e3s4.
|
|
806
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
805
|
+
var params = mutableListOf([new Parameter('default', new Single(_this__u8e3s4.q45_1))]);
|
|
806
|
+
var tmp0_safe_receiver = _this__u8e3s4.r45_1;
|
|
807
807
|
if (tmp0_safe_receiver == null)
|
|
808
808
|
null;
|
|
809
809
|
else {
|
|
@@ -812,7 +812,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
812
812
|
var element = new Parameter('operationId', new Single(tmp0_safe_receiver));
|
|
813
813
|
params.x(element);
|
|
814
814
|
}
|
|
815
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
815
|
+
var tmp1_safe_receiver = _this__u8e3s4.s45_1;
|
|
816
816
|
if (tmp1_safe_receiver == null)
|
|
817
817
|
null;
|
|
818
818
|
else {
|
|
@@ -822,9 +822,9 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
822
822
|
params.x(element_0);
|
|
823
823
|
}
|
|
824
824
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
825
|
-
if (!_this__u8e3s4.
|
|
825
|
+
if (!_this__u8e3s4.t45_1.r()) {
|
|
826
826
|
// Inline function 'kotlin.collections.map' call
|
|
827
|
-
var this_0 = _this__u8e3s4.
|
|
827
|
+
var this_0 = _this__u8e3s4.t45_1;
|
|
828
828
|
// Inline function 'kotlin.collections.mapTo' call
|
|
829
829
|
var destination = ArrayList_init_$Create$_0(this_0.a1());
|
|
830
830
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -842,7 +842,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
842
842
|
var element_1 = new Parameter('parameters', new Dict_0(destination));
|
|
843
843
|
params.x(element_1);
|
|
844
844
|
}
|
|
845
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
845
|
+
var tmp2_safe_receiver = _this__u8e3s4.u45_1;
|
|
846
846
|
if (tmp2_safe_receiver == null)
|
|
847
847
|
null;
|
|
848
848
|
else {
|
|
@@ -851,7 +851,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
851
851
|
var element_2 = new Parameter('requestBody', new Single(tmp2_safe_receiver));
|
|
852
852
|
params.x(element_2);
|
|
853
853
|
}
|
|
854
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
854
|
+
var tmp3_safe_receiver = _this__u8e3s4.v45_1;
|
|
855
855
|
if (tmp3_safe_receiver == null)
|
|
856
856
|
null;
|
|
857
857
|
else {
|
|
@@ -860,7 +860,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
860
860
|
var element_3 = new Parameter('description', new Single(tmp3_safe_receiver));
|
|
861
861
|
params.x(element_3);
|
|
862
862
|
}
|
|
863
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
863
|
+
var tmp4_safe_receiver = _this__u8e3s4.w45_1;
|
|
864
864
|
if (tmp4_safe_receiver == null)
|
|
865
865
|
null;
|
|
866
866
|
else {
|
|
@@ -1013,7 +1013,7 @@ function filterNotNullValues(_this__u8e3s4) {
|
|
|
1013
1013
|
}
|
|
1014
1014
|
function json$lambda($this$Json) {
|
|
1015
1015
|
_init_properties_Utils_kt__jo07cx();
|
|
1016
|
-
$this$Json.
|
|
1016
|
+
$this$Json.p2l_1 = true;
|
|
1017
1017
|
return Unit_instance;
|
|
1018
1018
|
}
|
|
1019
1019
|
function className$lambda(it) {
|
|
@@ -1321,7 +1321,7 @@ function toProperties($this, _this__u8e3s4) {
|
|
|
1321
1321
|
var it = toSchemaOrReference($this, _this__u8e3s4.fp_1);
|
|
1322
1322
|
var tmp_0;
|
|
1323
1323
|
if (it instanceof OpenAPIV20Schema) {
|
|
1324
|
-
tmp_0 = it.
|
|
1324
|
+
tmp_0 = it.a35(VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription(_this__u8e3s4.dp_1));
|
|
1325
1325
|
} else {
|
|
1326
1326
|
if (it instanceof OpenAPIV20Reference) {
|
|
1327
1327
|
tmp_0 = it;
|
|
@@ -1562,7 +1562,7 @@ function emitParameter($this, _this__u8e3s4, location) {
|
|
|
1562
1562
|
tmp_0 = emit;
|
|
1563
1563
|
} else {
|
|
1564
1564
|
if (emit instanceof OpenAPIV20Schema) {
|
|
1565
|
-
tmp_0 = emit.
|
|
1565
|
+
tmp_0 = emit.k34_1;
|
|
1566
1566
|
} else {
|
|
1567
1567
|
noWhenBranchMatchedException();
|
|
1568
1568
|
}
|
|
@@ -1748,10 +1748,10 @@ function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
|
1748
1748
|
}
|
|
1749
1749
|
function OpenAPIV2Emitter() {
|
|
1750
1750
|
OpenAPIV2Emitter_instance = this;
|
|
1751
|
-
this.
|
|
1751
|
+
this.x45_1 = FileExtension_JSON_getInstance();
|
|
1752
1752
|
}
|
|
1753
1753
|
protoOf(OpenAPIV2Emitter).iq = function () {
|
|
1754
|
-
return this.
|
|
1754
|
+
return this.x45_1;
|
|
1755
1755
|
};
|
|
1756
1756
|
protoOf(OpenAPIV2Emitter).sn = function (ast, logger) {
|
|
1757
1757
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
@@ -1769,21 +1769,21 @@ protoOf(OpenAPIV2Emitter).sn = function (ast, logger) {
|
|
|
1769
1769
|
}
|
|
1770
1770
|
// Inline function 'kotlin.let' call
|
|
1771
1771
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
1772
|
-
var tmp = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().
|
|
1772
|
+
var tmp = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().x45_1.rq_1;
|
|
1773
1773
|
var tmp0_0 = get_json();
|
|
1774
1774
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
1775
|
-
var value = OpenAPIV2Emitter_getInstance().
|
|
1775
|
+
var value = OpenAPIV2Emitter_getInstance().y45(it, logger);
|
|
1776
1776
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
1777
|
-
var this_1 = tmp0_0.
|
|
1777
|
+
var this_1 = tmp0_0.n23();
|
|
1778
1778
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1779
1779
|
var this_2 = serializer(this_1, createKType(getKClass(OpenAPIV2Model), arrayOf([]), false));
|
|
1780
1780
|
var tmp$ret$5 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
1781
|
-
var tmp$ret$6 = tmp0_0.
|
|
1781
|
+
var tmp$ret$6 = tmp0_0.s2k(tmp$ret$5, value);
|
|
1782
1782
|
// Inline function 'kotlin.let' call
|
|
1783
1783
|
var it_0 = new Emitted(tmp, tmp$ret$6);
|
|
1784
1784
|
return nonEmptyListOf(it_0, []);
|
|
1785
1785
|
};
|
|
1786
|
-
protoOf(OpenAPIV2Emitter).
|
|
1786
|
+
protoOf(OpenAPIV2Emitter).y45 = function (statements, logger) {
|
|
1787
1787
|
var tmp0_info = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, VOID, '0.0.0');
|
|
1788
1788
|
var tmp1_consumes = listOf('application/json');
|
|
1789
1789
|
var tmp2_produces = listOf('application/json');
|
|
@@ -1799,15 +1799,15 @@ function OpenAPIV2Emitter_getInstance() {
|
|
|
1799
1799
|
}
|
|
1800
1800
|
function OpenAPIV2Parser$parse$lambda($strict) {
|
|
1801
1801
|
return function (it) {
|
|
1802
|
-
return new NonEmptyList(OpenAPIV2Parser_instance.
|
|
1802
|
+
return new NonEmptyList(OpenAPIV2Parser_instance.z45((new OpenAPIV2(jsonDefault($strict))).i31(it)));
|
|
1803
1803
|
};
|
|
1804
1804
|
}
|
|
1805
1805
|
function OpenAPIV2Parser() {
|
|
1806
1806
|
}
|
|
1807
|
-
protoOf(OpenAPIV2Parser).
|
|
1807
|
+
protoOf(OpenAPIV2Parser).a46 = function (moduleContent, strict) {
|
|
1808
1808
|
return parseOpenApi(moduleContent, OpenAPIV2Parser$parse$lambda(strict));
|
|
1809
1809
|
};
|
|
1810
|
-
protoOf(OpenAPIV2Parser).
|
|
1810
|
+
protoOf(OpenAPIV2Parser).z45 = function (_this__u8e3s4) {
|
|
1811
1811
|
// Inline function 'kotlin.collections.reduce' call
|
|
1812
1812
|
var iterator = listOf_0([parseEndpoints(_this__u8e3s4), parseParameters(_this__u8e3s4), parseRequestBody(_this__u8e3s4), parseResponseBody(_this__u8e3s4), parseDefinitions(_this__u8e3s4)]).t();
|
|
1813
1813
|
if (!iterator.u())
|
|
@@ -1843,7 +1843,7 @@ function OpenAPIV2Parser_getInstance() {
|
|
|
1843
1843
|
}
|
|
1844
1844
|
function parseEndpoints(_this__u8e3s4) {
|
|
1845
1845
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1846
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1846
|
+
var tmp0_elvis_lhs = _this__u8e3s4.o31();
|
|
1847
1847
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1848
1848
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1849
1849
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -1853,7 +1853,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1853
1853
|
while (_iterator__ex2g4s.u()) {
|
|
1854
1854
|
var element = _iterator__ex2g4s.v();
|
|
1855
1855
|
// Inline function 'kotlin.collections.component1' call
|
|
1856
|
-
var path = element.k1().
|
|
1856
|
+
var path = element.k1().p2y_1;
|
|
1857
1857
|
// Inline function 'kotlin.collections.component2' call
|
|
1858
1858
|
var pathItem = element.l1();
|
|
1859
1859
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1868,7 +1868,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1868
1868
|
var method = element_0.k1();
|
|
1869
1869
|
// Inline function 'kotlin.collections.component2' call
|
|
1870
1870
|
var operation = element_0.l1();
|
|
1871
|
-
var parameters = plus_0(resolveParameters(_this__u8e3s4, pathItem.
|
|
1871
|
+
var parameters = plus_0(resolveParameters(_this__u8e3s4, pathItem.o2z()), resolveParameters(_this__u8e3s4, operation.o2z()));
|
|
1872
1872
|
var segments = toSegments(path, parameters);
|
|
1873
1873
|
var tmp0_elvis_lhs_0 = toName(operation);
|
|
1874
1874
|
var name = tmp0_elvis_lhs_0 == null ? toName_0(path) + method.a3_1 : tmp0_elvis_lhs_0;
|
|
@@ -1913,9 +1913,9 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1913
1913
|
}
|
|
1914
1914
|
var headers = destination_4;
|
|
1915
1915
|
var tmp1_safe_receiver = operation instanceof OpenAPIV20Operation ? operation : null;
|
|
1916
|
-
var operationConsumes = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1916
|
+
var operationConsumes = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g36_1;
|
|
1917
1917
|
var tmp2_safe_receiver = operation instanceof OpenAPIV20Operation ? operation : null;
|
|
1918
|
-
var operationProduces = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
1918
|
+
var operationProduces = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.h36_1;
|
|
1919
1919
|
// Inline function 'kotlin.collections.filter' call
|
|
1920
1920
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1921
1921
|
var destination_5 = ArrayList_init_$Create$();
|
|
@@ -1933,7 +1933,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1933
1933
|
while (_iterator__ex2g4s_6.u()) {
|
|
1934
1934
|
var element_4 = _iterator__ex2g4s_6.v();
|
|
1935
1935
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1936
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
1936
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.l31();
|
|
1937
1937
|
var tmp = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1938
1938
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1939
1939
|
var tmp$ret$23 = operationConsumes == null ? emptyList() : operationConsumes;
|
|
@@ -1953,7 +1953,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1953
1953
|
while (_iterator__ex2g4s_7.u()) {
|
|
1954
1954
|
var item_1 = _iterator__ex2g4s_7.v();
|
|
1955
1955
|
var isNullable = false;
|
|
1956
|
-
var schema = element_4.
|
|
1956
|
+
var schema = element_4.a36_1;
|
|
1957
1957
|
var tmp_1;
|
|
1958
1958
|
if (!(schema == null) ? isInterface(schema, Reference) : false) {
|
|
1959
1959
|
tmp_1 = toReference(_this__u8e3s4, schema, isNullable);
|
|
@@ -2005,11 +2005,11 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2005
2005
|
while (_iterator__ex2g4s_9.u()) {
|
|
2006
2006
|
var element_6 = _iterator__ex2g4s_9.v();
|
|
2007
2007
|
// Inline function 'kotlin.collections.component1' call
|
|
2008
|
-
var status = element_6.k1().
|
|
2008
|
+
var status = element_6.k1().t2y_1;
|
|
2009
2009
|
// Inline function 'kotlin.collections.component2' call
|
|
2010
2010
|
var res = element_6.l1();
|
|
2011
2011
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2012
|
-
var tmp0_elvis_lhs_3 = _this__u8e3s4.
|
|
2012
|
+
var tmp0_elvis_lhs_3 = _this__u8e3s4.m31();
|
|
2013
2013
|
var tmp_4 = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
|
|
2014
2014
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2015
2015
|
var tmp$ret$44 = operationProduces == null ? emptyList() : operationProduces;
|
|
@@ -2028,7 +2028,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2028
2028
|
var _iterator__ex2g4s_10 = this_4.t();
|
|
2029
2029
|
while (_iterator__ex2g4s_10.u()) {
|
|
2030
2030
|
var item_2 = _iterator__ex2g4s_10.v();
|
|
2031
|
-
var tmp3_annotations = toDescriptionAnnotationList(res.
|
|
2031
|
+
var tmp3_annotations = toDescriptionAnnotationList(res.z2y());
|
|
2032
2032
|
var tmp4_status = _StatusCode___get_value__impl__we50mu(status);
|
|
2033
2033
|
var tmp0_safe_receiver = res.cw();
|
|
2034
2034
|
var tmp_6;
|
|
@@ -2055,7 +2055,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2055
2055
|
var tmp0_elvis_lhs_4 = tmp_6;
|
|
2056
2056
|
var tmp5_headers = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
2057
2057
|
var tmp1_safe_receiver_0 = res instanceof OpenAPIV20Response ? res : null;
|
|
2058
|
-
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
2058
|
+
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.c37_1;
|
|
2059
2059
|
var tmp_7;
|
|
2060
2060
|
if (tmp2_safe_receiver_0 == null) {
|
|
2061
2061
|
tmp_7 = null;
|
|
@@ -2092,7 +2092,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2092
2092
|
}
|
|
2093
2093
|
}
|
|
2094
2094
|
var responses = list_1;
|
|
2095
|
-
var list_2 = listOf(new Endpoint(null, toDescriptionAnnotationList(operation.
|
|
2095
|
+
var list_2 = listOf(new Endpoint(null, toDescriptionAnnotationList(operation.z2y()), new DefinitionIdentifier(sanitize(name)), method, segments, query, headers, requests, responses));
|
|
2096
2096
|
addAll(destination_0, list_2);
|
|
2097
2097
|
}
|
|
2098
2098
|
var list_3 = destination_0;
|
|
@@ -2111,7 +2111,7 @@ function parseResponseBody(_this__u8e3s4) {
|
|
|
2111
2111
|
}
|
|
2112
2112
|
function parseDefinitions(_this__u8e3s4) {
|
|
2113
2113
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2114
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2114
|
+
var tmp0_elvis_lhs = _this__u8e3s4.n31();
|
|
2115
2115
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2116
2116
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2117
2117
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -2147,7 +2147,7 @@ function parseDefinitions(_this__u8e3s4) {
|
|
|
2147
2147
|
var _iterator__ex2g4s_0 = destination.t();
|
|
2148
2148
|
while (_iterator__ex2g4s_0.u()) {
|
|
2149
2149
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
2150
|
-
var tmp0_subject = element_0.af_1.
|
|
2150
|
+
var tmp0_subject = element_0.af_1.e2z();
|
|
2151
2151
|
var tmp_0;
|
|
2152
2152
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
2153
2153
|
tmp_0 = true;
|
|
@@ -2245,7 +2245,7 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
2245
2245
|
var _iterator__ex2g4s_0 = parameters.t();
|
|
2246
2246
|
while (_iterator__ex2g4s_0.u()) {
|
|
2247
2247
|
var element = _iterator__ex2g4s_0.v();
|
|
2248
|
-
if (element.
|
|
2248
|
+
if (element.b36_1 === param) {
|
|
2249
2249
|
tmp$ret$2 = element;
|
|
2250
2250
|
break $l$block;
|
|
2251
2251
|
}
|
|
@@ -2287,18 +2287,18 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
2287
2287
|
return destination;
|
|
2288
2288
|
}
|
|
2289
2289
|
function get_location(_this__u8e3s4) {
|
|
2290
|
-
return _this__u8e3s4.
|
|
2290
|
+
return _this__u8e3s4.z35_1;
|
|
2291
2291
|
}
|
|
2292
2292
|
function toField(_this__u8e3s4, parameter, name) {
|
|
2293
2293
|
// Inline function 'kotlin.let' call
|
|
2294
2294
|
var schema = resolveParameter(_this__u8e3s4, parameter);
|
|
2295
|
-
var tmp0_elvis_lhs = parameter.
|
|
2295
|
+
var tmp0_elvis_lhs = parameter.g35_1;
|
|
2296
2296
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
2297
2297
|
var tmp;
|
|
2298
|
-
if (!(parameter.
|
|
2299
|
-
tmp = new Custom(sanitize(className([name, 'Parameter', schema.
|
|
2298
|
+
if (!(parameter.x35_1 == null)) {
|
|
2299
|
+
tmp = new Custom(sanitize(className([name, 'Parameter', schema.b36_1])), isNullable);
|
|
2300
2300
|
} else {
|
|
2301
|
-
var tmp1_subject = schema.
|
|
2301
|
+
var tmp1_subject = schema.h35_1;
|
|
2302
2302
|
var tmp_0;
|
|
2303
2303
|
switch (tmp1_subject == null ? -1 : tmp1_subject.b3_1) {
|
|
2304
2304
|
case 0:
|
|
@@ -2311,7 +2311,7 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2311
2311
|
tmp_0 = new Primitive(primitive, isNullable);
|
|
2312
2312
|
break;
|
|
2313
2313
|
case 4:
|
|
2314
|
-
var tmp2_safe_receiver = schema.
|
|
2314
|
+
var tmp2_safe_receiver = schema.i35_1;
|
|
2315
2315
|
var tmp_1;
|
|
2316
2316
|
if (tmp2_safe_receiver == null) {
|
|
2317
2317
|
tmp_1 = null;
|
|
@@ -2358,8 +2358,8 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2358
2358
|
}
|
|
2359
2359
|
// Inline function 'kotlin.let' call
|
|
2360
2360
|
var it = tmp;
|
|
2361
|
-
var tmp0_identifier = new FieldIdentifier(parameter.
|
|
2362
|
-
var tmp1_annotations = toDescriptionAnnotationList(parameter.
|
|
2361
|
+
var tmp0_identifier = new FieldIdentifier(parameter.b36_1);
|
|
2362
|
+
var tmp1_annotations = toDescriptionAnnotationList(parameter.f35_1);
|
|
2363
2363
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
2364
2364
|
}
|
|
2365
2365
|
function toReference(_this__u8e3s4, reference, isNullable) {
|
|
@@ -2367,8 +2367,8 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2367
2367
|
var referencingObject = _destruct__k2r9zo.qe();
|
|
2368
2368
|
var schema = _destruct__k2r9zo.re();
|
|
2369
2369
|
var tmp;
|
|
2370
|
-
if (exists(schema.
|
|
2371
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2370
|
+
if (exists(schema.e2z())) {
|
|
2371
|
+
var additionalProperties = ensureNotNull(schema.e2z());
|
|
2372
2372
|
var tmp_0;
|
|
2373
2373
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
2374
2374
|
tmp_0 = new Dict(new Any(false), isNullable);
|
|
@@ -2384,7 +2384,7 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2384
2384
|
}
|
|
2385
2385
|
}
|
|
2386
2386
|
tmp = tmp_0;
|
|
2387
|
-
} else if (!(schema.
|
|
2387
|
+
} else if (!(schema.a2z() == null)) {
|
|
2388
2388
|
tmp = new Custom(sanitize(className([getReference(referencingObject)])), isNullable);
|
|
2389
2389
|
} else if (isPrimitive(get_primitiveType(schema))) {
|
|
2390
2390
|
tmp = new Primitive(toPrimitive_0(schema), isNullable);
|
|
@@ -2392,7 +2392,7 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2392
2392
|
var tmp0_subject = get_primitiveType(schema);
|
|
2393
2393
|
var tmp_1;
|
|
2394
2394
|
if ((tmp0_subject == null ? -1 : tmp0_subject.b3_1) === 4) {
|
|
2395
|
-
var items = schema.
|
|
2395
|
+
var items = schema.b2z();
|
|
2396
2396
|
var tmp_2;
|
|
2397
2397
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
2398
2398
|
tmp_2 = toIterable(toReference(_this__u8e3s4, items, false), isNullable);
|
|
@@ -2401,7 +2401,7 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2401
2401
|
tmp_2 = toIterable(toReference_0(_this__u8e3s4, items, className([getReference(referencingObject), 'Array']), isNullable), isNullable);
|
|
2402
2402
|
} else {
|
|
2403
2403
|
if (items == null) {
|
|
2404
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.
|
|
2404
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.y2y());
|
|
2405
2405
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2406
2406
|
} else {
|
|
2407
2407
|
noWhenBranchMatchedException();
|
|
@@ -2424,20 +2424,20 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2424
2424
|
var tmp_3;
|
|
2425
2425
|
var tmp_4;
|
|
2426
2426
|
var tmp_5;
|
|
2427
|
-
var tmp0_safe_receiver = schema.
|
|
2427
|
+
var tmp0_safe_receiver = schema.c2z();
|
|
2428
2428
|
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1()) === 1) {
|
|
2429
|
-
var tmp_6 = first(ensureNotNull(schema.
|
|
2429
|
+
var tmp_6 = first(ensureNotNull(schema.c2z()));
|
|
2430
2430
|
tmp_5 = isInterface(tmp_6, Reference);
|
|
2431
2431
|
} else {
|
|
2432
2432
|
tmp_5 = false;
|
|
2433
2433
|
}
|
|
2434
2434
|
if (tmp_5) {
|
|
2435
|
-
tmp_4 = schema.
|
|
2435
|
+
tmp_4 = schema.d2z() == null;
|
|
2436
2436
|
} else {
|
|
2437
2437
|
tmp_4 = false;
|
|
2438
2438
|
}
|
|
2439
2439
|
if (tmp_4) {
|
|
2440
|
-
tmp_3 = schema.
|
|
2440
|
+
tmp_3 = schema.a2z() == null;
|
|
2441
2441
|
} else {
|
|
2442
2442
|
tmp_3 = false;
|
|
2443
2443
|
}
|
|
@@ -2447,21 +2447,21 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2447
2447
|
tmp_2 = false;
|
|
2448
2448
|
}
|
|
2449
2449
|
if (tmp_2) {
|
|
2450
|
-
tmp_1 = schema.
|
|
2450
|
+
tmp_1 = schema.b2z() == null;
|
|
2451
2451
|
} else {
|
|
2452
2452
|
tmp_1 = false;
|
|
2453
2453
|
}
|
|
2454
2454
|
if (tmp_1) {
|
|
2455
|
-
tmp_0 = schema.
|
|
2455
|
+
tmp_0 = schema.e2z() == null;
|
|
2456
2456
|
} else {
|
|
2457
2457
|
tmp_0 = false;
|
|
2458
2458
|
}
|
|
2459
2459
|
if (tmp_0) {
|
|
2460
|
-
var tmp_7 = first(ensureNotNull(schema.
|
|
2460
|
+
var tmp_7 = first(ensureNotNull(schema.c2z()));
|
|
2461
2461
|
tmp = toReference(_this__u8e3s4, isInterface(tmp_7, Reference) ? tmp_7 : THROW_CCE(), isNullable);
|
|
2462
2462
|
} else {
|
|
2463
|
-
if (!(schema.
|
|
2464
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2463
|
+
if (!(schema.e2z() == null)) {
|
|
2464
|
+
var additionalProperties = ensureNotNull(schema.e2z());
|
|
2465
2465
|
var tmp_8;
|
|
2466
2466
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
2467
2467
|
tmp_8 = new Dict(new Any(false), isNullable);
|
|
@@ -2472,7 +2472,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2472
2472
|
if (isInterface(additionalProperties, Schema)) {
|
|
2473
2473
|
// Inline function 'kotlin.takeIf' call
|
|
2474
2474
|
var tmp_9;
|
|
2475
|
-
if (isPrimitive(get_primitiveType(additionalProperties)) || !(additionalProperties.
|
|
2475
|
+
if (isPrimitive(get_primitiveType(additionalProperties)) || !(additionalProperties.d2z() == null)) {
|
|
2476
2476
|
tmp_9 = additionalProperties;
|
|
2477
2477
|
} else {
|
|
2478
2478
|
tmp_9 = null;
|
|
@@ -2494,9 +2494,9 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2494
2494
|
}
|
|
2495
2495
|
tmp = tmp_8;
|
|
2496
2496
|
} else {
|
|
2497
|
-
if (!(schema.
|
|
2497
|
+
if (!(schema.a2z() == null)) {
|
|
2498
2498
|
var tmp_11;
|
|
2499
|
-
if (!(schema.
|
|
2499
|
+
if (!(schema.e2z() == null)) {
|
|
2500
2500
|
tmp_11 = new Dict(new Custom(sanitize(name), false), isNullable);
|
|
2501
2501
|
} else {
|
|
2502
2502
|
tmp_11 = new Custom(sanitize(name), isNullable);
|
|
@@ -2511,7 +2511,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2511
2511
|
case 1:
|
|
2512
2512
|
case 3:
|
|
2513
2513
|
var tmp_13;
|
|
2514
|
-
if (!(schema.
|
|
2514
|
+
if (!(schema.e2z() == null)) {
|
|
2515
2515
|
tmp_13 = new Dict(new Primitive(toPrimitive_0(schema), false), isNullable);
|
|
2516
2516
|
} else {
|
|
2517
2517
|
tmp_13 = new Primitive(toPrimitive_0(schema), isNullable);
|
|
@@ -2522,17 +2522,17 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2522
2522
|
case -1:
|
|
2523
2523
|
case 5:
|
|
2524
2524
|
var tmp_14;
|
|
2525
|
-
var tmp_15 = schema.
|
|
2525
|
+
var tmp_15 = schema.e2z();
|
|
2526
2526
|
if (!(tmp_15 == null) ? isInterface(tmp_15, BooleanValue) : false) {
|
|
2527
2527
|
var tmp_16;
|
|
2528
|
-
if (!(schema.
|
|
2528
|
+
if (!(schema.e2z() == null)) {
|
|
2529
2529
|
tmp_16 = new Dict(new Any(isNullable), false);
|
|
2530
2530
|
} else {
|
|
2531
2531
|
tmp_16 = new Any(isNullable);
|
|
2532
2532
|
}
|
|
2533
2533
|
tmp_14 = tmp_16;
|
|
2534
2534
|
} else {
|
|
2535
|
-
if (!(schema.
|
|
2535
|
+
if (!(schema.e2z() == null)) {
|
|
2536
2536
|
new Dict(new Custom(sanitize(name), isNullable), false);
|
|
2537
2537
|
}
|
|
2538
2538
|
tmp_14 = new Custom(sanitize(name), isNullable);
|
|
@@ -2541,7 +2541,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2541
2541
|
tmp_12 = tmp_14;
|
|
2542
2542
|
break;
|
|
2543
2543
|
case 4:
|
|
2544
|
-
var items = schema.
|
|
2544
|
+
var items = schema.b2z();
|
|
2545
2545
|
var tmp_17;
|
|
2546
2546
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
2547
2547
|
tmp_17 = toIterable(toReference(_this__u8e3s4, items, false), isNullable);
|
|
@@ -2597,10 +2597,10 @@ function toField_0(_this__u8e3s4, header, identifier) {
|
|
|
2597
2597
|
}
|
|
2598
2598
|
var v20 = tmp;
|
|
2599
2599
|
var tmp5_identifier = new FieldIdentifier(identifier);
|
|
2600
|
-
var tmp6_annotations = toDescriptionAnnotationList(header.
|
|
2600
|
+
var tmp6_annotations = toDescriptionAnnotationList(header.l37_1);
|
|
2601
2601
|
var tmp_0;
|
|
2602
|
-
if (v20.
|
|
2603
|
-
var tmp2_safe_receiver = v20.
|
|
2602
|
+
if (v20.m37_1.b3_1 === 4) {
|
|
2603
|
+
var tmp2_safe_receiver = v20.o37_1;
|
|
2604
2604
|
var tmp_1;
|
|
2605
2605
|
if (tmp2_safe_receiver == null) {
|
|
2606
2606
|
tmp_1 = null;
|
|
@@ -2681,17 +2681,17 @@ function resolveParameter(_this__u8e3s4, parameterOrReference) {
|
|
|
2681
2681
|
}
|
|
2682
2682
|
function get_primitiveType(_this__u8e3s4) {
|
|
2683
2683
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof OpenAPIV20Schema ? _this__u8e3s4 : null;
|
|
2684
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2684
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w33_1;
|
|
2685
2685
|
}
|
|
2686
2686
|
function flatten(_this__u8e3s4, schemaObject, name) {
|
|
2687
2687
|
var tmp;
|
|
2688
|
-
if (exists(schemaObject.
|
|
2689
|
-
var tmp0_subject = schemaObject.
|
|
2688
|
+
if (exists(schemaObject.e2z())) {
|
|
2689
|
+
var tmp0_subject = schemaObject.e2z();
|
|
2690
2690
|
var tmp_0;
|
|
2691
2691
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
2692
2692
|
tmp_0 = emptyList();
|
|
2693
2693
|
} else {
|
|
2694
|
-
var tmp1_safe_receiver = schemaObject.
|
|
2694
|
+
var tmp1_safe_receiver = schemaObject.e2z();
|
|
2695
2695
|
var tmp_1;
|
|
2696
2696
|
if (tmp1_safe_receiver == null) {
|
|
2697
2697
|
tmp_1 = null;
|
|
@@ -2706,7 +2706,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2706
2706
|
} else {
|
|
2707
2707
|
// Inline function 'kotlin.takeIf' call
|
|
2708
2708
|
var tmp_3;
|
|
2709
|
-
if (!(tmp2_safe_receiver.
|
|
2709
|
+
if (!(tmp2_safe_receiver.d2z() == null)) {
|
|
2710
2710
|
tmp_3 = tmp2_safe_receiver;
|
|
2711
2711
|
} else {
|
|
2712
2712
|
tmp_3 = null;
|
|
@@ -2725,11 +2725,11 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2725
2725
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
2726
2726
|
}
|
|
2727
2727
|
tmp = tmp_0;
|
|
2728
|
-
} else if (!(schemaObject.
|
|
2729
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
2728
|
+
} else if (!(schemaObject.c2z() == null)) {
|
|
2729
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.z2y());
|
|
2730
2730
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
2731
2731
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2732
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
2732
|
+
var tmp0_elvis_lhs = schemaObject.c2z();
|
|
2733
2733
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2734
2734
|
var tmp0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2735
2735
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2763,7 +2763,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2763
2763
|
}
|
|
2764
2764
|
var tmp_8 = listOf(new Type(null, tmp_5, tmp_6, new Shape(list_0), emptyList()));
|
|
2765
2765
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2766
|
-
var tmp0_0 = ensureNotNull(schemaObject.
|
|
2766
|
+
var tmp0_0 = ensureNotNull(schemaObject.c2z());
|
|
2767
2767
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2768
2768
|
var destination_0 = ArrayList_init_$Create$();
|
|
2769
2769
|
var _iterator__ex2g4s_1 = tmp0_0.t();
|
|
@@ -2775,7 +2775,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2775
2775
|
} else {
|
|
2776
2776
|
if (isInterface(element_0, Schema)) {
|
|
2777
2777
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2778
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
2778
|
+
var tmp0_elvis_lhs_0 = element_0.d2z();
|
|
2779
2779
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2780
2780
|
var tmp0_1 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2781
2781
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2810,9 +2810,9 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2810
2810
|
addAll(destination_0, list_2);
|
|
2811
2811
|
}
|
|
2812
2812
|
tmp = plus_0(tmp_8, destination_0);
|
|
2813
|
-
} else if (!(schemaObject.
|
|
2813
|
+
} else if (!(schemaObject.a2z() == null)) {
|
|
2814
2814
|
// Inline function 'kotlin.collections.map' call
|
|
2815
|
-
var this_0 = ensureNotNull(schemaObject.
|
|
2815
|
+
var this_0 = ensureNotNull(schemaObject.a2z());
|
|
2816
2816
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2817
2817
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2818
2818
|
var _iterator__ex2g4s_3 = this_0.t();
|
|
@@ -2823,7 +2823,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2823
2823
|
}
|
|
2824
2824
|
// Inline function 'kotlin.let' call
|
|
2825
2825
|
var it = toSet(destination_2);
|
|
2826
|
-
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.
|
|
2826
|
+
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.z2y()), new DefinitionIdentifier(sanitize(name)), it));
|
|
2827
2827
|
} else {
|
|
2828
2828
|
var tmp5_subject = get_primitiveType(schemaObject);
|
|
2829
2829
|
var tmp_11;
|
|
@@ -2832,7 +2832,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2832
2832
|
case 5:
|
|
2833
2833
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2834
2834
|
|
|
2835
|
-
var tmp0_elvis_lhs_1 = schemaObject.
|
|
2835
|
+
var tmp0_elvis_lhs_1 = schemaObject.d2z();
|
|
2836
2836
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2837
2837
|
|
|
2838
2838
|
var tmp0_2 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
@@ -2853,11 +2853,11 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2853
2853
|
}
|
|
2854
2854
|
|
|
2855
2855
|
var fields = destination_3;
|
|
2856
|
-
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.
|
|
2856
|
+
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.z2y()), new DefinitionIdentifier(sanitize(name)), new Shape(toField_1(_this__u8e3s4, schemaObject, name)), emptyList()));
|
|
2857
2857
|
tmp_11 = plus_0(schema, fields);
|
|
2858
2858
|
break;
|
|
2859
2859
|
case 4:
|
|
2860
|
-
var it_0 = schemaObject.
|
|
2860
|
+
var it_0 = schemaObject.b2z();
|
|
2861
2861
|
var tmp_12;
|
|
2862
2862
|
if (!(it_0 == null) ? isInterface(it_0, Reference) : false) {
|
|
2863
2863
|
tmp_12 = emptyList();
|
|
@@ -2884,7 +2884,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2884
2884
|
return tmp;
|
|
2885
2885
|
}
|
|
2886
2886
|
function resolveParameterObject(_this__u8e3s4, reference) {
|
|
2887
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2887
|
+
var tmp0_safe_receiver = _this__u8e3s4.o2z();
|
|
2888
2888
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p2(getReference(reference));
|
|
2889
2889
|
var tmp;
|
|
2890
2890
|
if (tmp1_safe_receiver == null) {
|
|
@@ -2896,7 +2896,7 @@ function resolveParameterObject(_this__u8e3s4, reference) {
|
|
|
2896
2896
|
var tmp2_elvis_lhs = tmp;
|
|
2897
2897
|
var tmp_0;
|
|
2898
2898
|
if (tmp2_elvis_lhs == null) {
|
|
2899
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
2899
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.y2y());
|
|
2900
2900
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2901
2901
|
} else {
|
|
2902
2902
|
tmp_0 = tmp2_elvis_lhs;
|
|
@@ -2908,13 +2908,13 @@ function toPrimitive(_this__u8e3s4) {
|
|
|
2908
2908
|
var tmp;
|
|
2909
2909
|
switch (tmp0_subject == null ? -1 : tmp0_subject.b3_1) {
|
|
2910
2910
|
case 0:
|
|
2911
|
-
tmp = !(_this__u8e3s4.
|
|
2911
|
+
tmp = !(_this__u8e3s4.g2z() == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.g2z()))) : _this__u8e3s4.f2z() === 'binary' ? Bytes_instance : new String_0(null);
|
|
2912
2912
|
break;
|
|
2913
2913
|
case 2:
|
|
2914
|
-
tmp = new Integer(_this__u8e3s4.
|
|
2914
|
+
tmp = new Integer(_this__u8e3s4.f2z() === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
2915
2915
|
break;
|
|
2916
2916
|
case 1:
|
|
2917
|
-
tmp = new Number_0(_this__u8e3s4.
|
|
2917
|
+
tmp = new Number_0(_this__u8e3s4.f2z() === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
2918
2918
|
break;
|
|
2919
2919
|
case 3:
|
|
2920
2920
|
tmp = Boolean_instance;
|
|
@@ -2942,11 +2942,11 @@ function toPrimitive_0(_this__u8e3s4) {
|
|
|
2942
2942
|
return toPrimitive(isInterface(_this__u8e3s4, OpenAPIV20Base) ? _this__u8e3s4 : THROW_CCE());
|
|
2943
2943
|
}
|
|
2944
2944
|
function resolveSchemaRef(_this__u8e3s4, reference) {
|
|
2945
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2945
|
+
var tmp0_safe_receiver = _this__u8e3s4.n31();
|
|
2946
2946
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p2(getReference(reference));
|
|
2947
2947
|
var tmp;
|
|
2948
2948
|
if (tmp1_elvis_lhs == null) {
|
|
2949
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
2949
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.y2y());
|
|
2950
2950
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2951
2951
|
} else {
|
|
2952
2952
|
tmp = tmp1_elvis_lhs;
|
|
@@ -3024,7 +3024,7 @@ function resolveResponseObject(_this__u8e3s4, reference) {
|
|
|
3024
3024
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p2(getReference(reference));
|
|
3025
3025
|
var tmp;
|
|
3026
3026
|
if (tmp1_elvis_lhs == null) {
|
|
3027
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
3027
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.y2y());
|
|
3028
3028
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
3029
3029
|
} else {
|
|
3030
3030
|
tmp = tmp1_elvis_lhs;
|
|
@@ -3051,7 +3051,7 @@ function resolve_0(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
3051
3051
|
}
|
|
3052
3052
|
function toField_1(_this__u8e3s4, schema, name) {
|
|
3053
3053
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3054
|
-
var tmp0_elvis_lhs = schema.
|
|
3054
|
+
var tmp0_elvis_lhs = schema.d2z();
|
|
3055
3055
|
// Inline function 'kotlin.collections.map' call
|
|
3056
3056
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3057
3057
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3071,7 +3071,7 @@ function toField_1(_this__u8e3s4, schema, name) {
|
|
|
3071
3071
|
if (isInterface(value, Schema)) {
|
|
3072
3072
|
var tmp3_identifier = new FieldIdentifier(key);
|
|
3073
3073
|
var tmp4_annotations = emptyList();
|
|
3074
|
-
var tmp5_reference = !(value.
|
|
3074
|
+
var tmp5_reference = !(value.a2z() == 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);
|
|
3075
3075
|
tmp = new Field(tmp4_annotations, tmp3_identifier, tmp5_reference);
|
|
3076
3076
|
} else {
|
|
3077
3077
|
if (isInterface(value, Reference)) {
|
|
@@ -3090,9 +3090,9 @@ function toField_1(_this__u8e3s4, schema, name) {
|
|
|
3090
3090
|
}
|
|
3091
3091
|
function parseParameters$lambda($this_parseParameters) {
|
|
3092
3092
|
return function ($this$flatMapRequests) {
|
|
3093
|
-
var parameters = plus_0(resolveParameters($this_parseParameters, $this$flatMapRequests.
|
|
3094
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
3095
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
3093
|
+
var parameters = plus_0(resolveParameters($this_parseParameters, $this$flatMapRequests.h45_1.o2z()), resolveParameters($this_parseParameters, $this$flatMapRequests.j45_1.o2z()));
|
|
3094
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.j45_1);
|
|
3095
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.g45_1) + $this$flatMapRequests.i45_1.a3_1 : tmp0_elvis_lhs;
|
|
3096
3096
|
// Inline function 'kotlin.collections.filter' call
|
|
3097
3097
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3098
3098
|
var destination = ArrayList_init_$Create$();
|
|
@@ -3109,13 +3109,13 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
3109
3109
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3110
3110
|
while (_iterator__ex2g4s_0.u()) {
|
|
3111
3111
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3112
|
-
var tmp0_safe_receiver = element_0.
|
|
3112
|
+
var tmp0_safe_receiver = element_0.a36_1;
|
|
3113
3113
|
var tmp;
|
|
3114
3114
|
if (tmp0_safe_receiver == null) {
|
|
3115
3115
|
tmp = null;
|
|
3116
3116
|
} else {
|
|
3117
3117
|
// Inline function 'kotlin.let' call
|
|
3118
|
-
tmp = flattenSchemaOrRef($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element_0.
|
|
3118
|
+
tmp = flattenSchemaOrRef($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element_0.b36_1]));
|
|
3119
3119
|
}
|
|
3120
3120
|
var tmp1_elvis_lhs = tmp;
|
|
3121
3121
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -3126,9 +3126,9 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
3126
3126
|
}
|
|
3127
3127
|
function parseRequestBody$lambda($this_parseRequestBody) {
|
|
3128
3128
|
return function ($this$flatMapRequests) {
|
|
3129
|
-
var parameters = plus_0(resolveParameters($this_parseRequestBody, $this$flatMapRequests.
|
|
3130
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
3131
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
3129
|
+
var parameters = plus_0(resolveParameters($this_parseRequestBody, $this$flatMapRequests.h45_1.o2z()), resolveParameters($this_parseRequestBody, $this$flatMapRequests.j45_1.o2z()));
|
|
3130
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.j45_1);
|
|
3131
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.g45_1) + $this$flatMapRequests.i45_1.a3_1 : tmp0_elvis_lhs;
|
|
3132
3132
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3133
3133
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3134
3134
|
var destination = ArrayList_init_$Create$();
|
|
@@ -3136,11 +3136,11 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3136
3136
|
while (_iterator__ex2g4s.u()) {
|
|
3137
3137
|
var element = _iterator__ex2g4s.v();
|
|
3138
3138
|
var tmp;
|
|
3139
|
-
if (!(element.
|
|
3140
|
-
var tmp_0 = toDescriptionAnnotationList(element.
|
|
3141
|
-
var tmp_1 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.
|
|
3139
|
+
if (!(element.x35_1 == null)) {
|
|
3140
|
+
var tmp_0 = toDescriptionAnnotationList(element.f35_1);
|
|
3141
|
+
var tmp_1 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.b36_1])));
|
|
3142
3142
|
// Inline function 'kotlin.collections.map' call
|
|
3143
|
-
var this_0 = ensureNotNull(element.
|
|
3143
|
+
var this_0 = ensureNotNull(element.x35_1);
|
|
3144
3144
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3145
3145
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3146
3146
|
var _iterator__ex2g4s_0 = this_0.t();
|
|
@@ -3157,7 +3157,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3157
3157
|
addAll(destination, list);
|
|
3158
3158
|
}
|
|
3159
3159
|
var enums = destination;
|
|
3160
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
3160
|
+
var tmp1_safe_receiver = $this$flatMapRequests.j45_1.o2z();
|
|
3161
3161
|
var tmp_2;
|
|
3162
3162
|
if (tmp1_safe_receiver == null) {
|
|
3163
3163
|
tmp_2 = null;
|
|
@@ -3201,7 +3201,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3201
3201
|
var _iterator__ex2g4s_3 = tmp3_safe_receiver.t();
|
|
3202
3202
|
while (_iterator__ex2g4s_3.u()) {
|
|
3203
3203
|
var element_1 = _iterator__ex2g4s_3.v();
|
|
3204
|
-
var schema = element_1.
|
|
3204
|
+
var schema = element_1.a36_1;
|
|
3205
3205
|
var tmp_5;
|
|
3206
3206
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
3207
3207
|
var tmp0_subject = get_primitiveType(schema);
|
|
@@ -3212,7 +3212,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3212
3212
|
tmp_6 = flatten($this_parseRequestBody, schema, className([name, 'RequestBody']));
|
|
3213
3213
|
break;
|
|
3214
3214
|
case 4:
|
|
3215
|
-
var tmp1_safe_receiver_0 = schema.
|
|
3215
|
+
var tmp1_safe_receiver_0 = schema.b2z();
|
|
3216
3216
|
var tmp_7;
|
|
3217
3217
|
if (tmp1_safe_receiver_0 == null) {
|
|
3218
3218
|
tmp_7 = null;
|
|
@@ -3246,11 +3246,11 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3246
3246
|
}
|
|
3247
3247
|
function parseResponseBody$lambda($this_parseResponseBody) {
|
|
3248
3248
|
return function ($this$flatMapResponses) {
|
|
3249
|
-
var tmp = resolveResponse($this_parseResponseBody, $this$flatMapResponses.
|
|
3249
|
+
var tmp = resolveResponse($this_parseResponseBody, $this$flatMapResponses.p45_1);
|
|
3250
3250
|
var tmp0_safe_receiver = tmp instanceof OpenAPIV20Response ? tmp : null;
|
|
3251
|
-
var schema = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3252
|
-
var tmp1_elvis_lhs = toName($this$flatMapResponses.
|
|
3253
|
-
var name = tmp1_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
3251
|
+
var schema = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c37_1;
|
|
3252
|
+
var tmp1_elvis_lhs = toName($this$flatMapResponses.n45_1);
|
|
3253
|
+
var name = tmp1_elvis_lhs == null ? toName_0($this$flatMapResponses.k45_1) + $this$flatMapResponses.m45_1.a3_1 : tmp1_elvis_lhs;
|
|
3254
3254
|
var tmp_0;
|
|
3255
3255
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
3256
3256
|
var tmp3_subject = get_primitiveType(schema);
|
|
@@ -3258,16 +3258,16 @@ function parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
3258
3258
|
switch (tmp3_subject == null ? -1 : tmp3_subject.b3_1) {
|
|
3259
3259
|
case -1:
|
|
3260
3260
|
case 5:
|
|
3261
|
-
tmp_1 = flatten($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
3261
|
+
tmp_1 = flatten($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.o45_1), 'ResponseBody']));
|
|
3262
3262
|
break;
|
|
3263
3263
|
case 4:
|
|
3264
|
-
var tmp4_safe_receiver = schema.
|
|
3264
|
+
var tmp4_safe_receiver = schema.b2z();
|
|
3265
3265
|
var tmp_2;
|
|
3266
3266
|
if (tmp4_safe_receiver == null) {
|
|
3267
3267
|
tmp_2 = null;
|
|
3268
3268
|
} else {
|
|
3269
3269
|
// Inline function 'kotlin.let' call
|
|
3270
|
-
tmp_2 = flattenSchemaOrRef($this_parseResponseBody, tmp4_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
3270
|
+
tmp_2 = flattenSchemaOrRef($this_parseResponseBody, tmp4_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.o45_1), 'ResponseBody']));
|
|
3271
3271
|
}
|
|
3272
3272
|
|
|
3273
3273
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -3865,9 +3865,9 @@ function toOpenAPIV30Links($this, _this__u8e3s4) {
|
|
|
3865
3865
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
3866
3866
|
while (_iterator__ex2g4s.u()) {
|
|
3867
3867
|
var element = _iterator__ex2g4s.v();
|
|
3868
|
-
var tmp2 = element.
|
|
3868
|
+
var tmp2 = element.q45_1;
|
|
3869
3869
|
// Inline function 'kotlin.collections.mapValues' call
|
|
3870
|
-
var this_0 = element.
|
|
3870
|
+
var this_0 = element.t45_1;
|
|
3871
3871
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
3872
3872
|
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.a1()));
|
|
3873
3873
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -3886,7 +3886,7 @@ function toOpenAPIV30Links($this, _this__u8e3s4) {
|
|
|
3886
3886
|
tmp_0 = destination;
|
|
3887
3887
|
}
|
|
3888
3888
|
var tmp_1 = tmp_0;
|
|
3889
|
-
var tmp0_safe_receiver = element.
|
|
3889
|
+
var tmp0_safe_receiver = element.u45_1;
|
|
3890
3890
|
var tmp_2;
|
|
3891
3891
|
if (tmp0_safe_receiver == null) {
|
|
3892
3892
|
tmp_2 = null;
|
|
@@ -3895,7 +3895,7 @@ function toOpenAPIV30Links($this, _this__u8e3s4) {
|
|
|
3895
3895
|
tmp_2 = JsonPrimitive(tmp0_safe_receiver);
|
|
3896
3896
|
}
|
|
3897
3897
|
// Inline function 'kotlin.collections.set' call
|
|
3898
|
-
var value = new OpenAPIV30Link(element.
|
|
3898
|
+
var value = new OpenAPIV30Link(element.s45_1, element.r45_1, tmp_1, tmp_2, element.v45_1);
|
|
3899
3899
|
byName.s2(tmp2, value);
|
|
3900
3900
|
}
|
|
3901
3901
|
return new OpenAPIV30Links(toSet(byName.j1()));
|
|
@@ -3926,7 +3926,7 @@ function emitSchema($this, _this__u8e3s4) {
|
|
|
3926
3926
|
var it = emitSchema_0($this, _this__u8e3s4.fp_1);
|
|
3927
3927
|
var tmp_0;
|
|
3928
3928
|
if (it instanceof OpenAPIV30Schema) {
|
|
3929
|
-
tmp_0 = it.
|
|
3929
|
+
tmp_0 = it.f3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription(_this__u8e3s4.dp_1));
|
|
3930
3930
|
} else {
|
|
3931
3931
|
if (it instanceof OpenAPIV30Reference) {
|
|
3932
3932
|
tmp_0 = it;
|
|
@@ -4123,10 +4123,10 @@ function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
|
4123
4123
|
}
|
|
4124
4124
|
function OpenAPIV3Emitter() {
|
|
4125
4125
|
OpenAPIV3Emitter_instance = this;
|
|
4126
|
-
this.
|
|
4126
|
+
this.b46_1 = FileExtension_JSON_getInstance();
|
|
4127
4127
|
}
|
|
4128
4128
|
protoOf(OpenAPIV3Emitter).iq = function () {
|
|
4129
|
-
return this.
|
|
4129
|
+
return this.b46_1;
|
|
4130
4130
|
};
|
|
4131
4131
|
protoOf(OpenAPIV3Emitter).sn = function (ast, logger) {
|
|
4132
4132
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
@@ -4144,24 +4144,24 @@ protoOf(OpenAPIV3Emitter).sn = function (ast, logger) {
|
|
|
4144
4144
|
}
|
|
4145
4145
|
// Inline function 'kotlin.let' call
|
|
4146
4146
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
4147
|
-
var tmp = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().
|
|
4147
|
+
var tmp = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().b46_1.rq_1;
|
|
4148
4148
|
var tmp0_0 = get_json();
|
|
4149
4149
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
4150
|
-
var value = OpenAPIV3Emitter_getInstance().
|
|
4150
|
+
var value = OpenAPIV3Emitter_getInstance().c46(it, null, logger);
|
|
4151
4151
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
4152
|
-
var this_1 = tmp0_0.
|
|
4152
|
+
var this_1 = tmp0_0.n23();
|
|
4153
4153
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
4154
4154
|
var this_2 = serializer(this_1, createKType(getKClass(OpenAPIV3Model), arrayOf([]), false));
|
|
4155
4155
|
var tmp$ret$5 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
4156
|
-
var tmp$ret$6 = tmp0_0.
|
|
4156
|
+
var tmp$ret$6 = tmp0_0.s2k(tmp$ret$5, value);
|
|
4157
4157
|
// Inline function 'kotlin.let' call
|
|
4158
4158
|
var it_0 = new Emitted(tmp, tmp$ret$6);
|
|
4159
4159
|
return nonEmptyListOf(it_0, []);
|
|
4160
4160
|
};
|
|
4161
|
-
protoOf(OpenAPIV3Emitter).
|
|
4162
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
4161
|
+
protoOf(OpenAPIV3Emitter).c46 = function (statements, options, logger) {
|
|
4162
|
+
var tmp1_elvis_lhs = options == null ? null : options.d46_1;
|
|
4163
4163
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
4164
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
4164
|
+
var tmp3_elvis_lhs = options == null ? null : options.e46_1;
|
|
4165
4165
|
var tmp4_info = new InfoObject(tmp, VOID, VOID, VOID, VOID, VOID, tmp3_elvis_lhs == null ? '0.0.0' : tmp3_elvis_lhs);
|
|
4166
4166
|
var tmp5_paths = emitPaths_0(this, statements, logger);
|
|
4167
4167
|
var tmp6_components = emitComponents(this, statements, logger);
|
|
@@ -4175,15 +4175,15 @@ function OpenAPIV3Emitter_getInstance() {
|
|
|
4175
4175
|
}
|
|
4176
4176
|
function OpenAPIV3Parser$parse$lambda($strict) {
|
|
4177
4177
|
return function (it) {
|
|
4178
|
-
return new NonEmptyList(OpenAPIV3Parser_instance.
|
|
4178
|
+
return new NonEmptyList(OpenAPIV3Parser_instance.f46((new OpenAPIV3(jsonDefault($strict))).i31(it)));
|
|
4179
4179
|
};
|
|
4180
4180
|
}
|
|
4181
4181
|
function OpenAPIV3Parser() {
|
|
4182
4182
|
}
|
|
4183
|
-
protoOf(OpenAPIV3Parser).
|
|
4183
|
+
protoOf(OpenAPIV3Parser).a46 = function (moduleContent, strict) {
|
|
4184
4184
|
return parseOpenApi(moduleContent, OpenAPIV3Parser$parse$lambda(strict));
|
|
4185
4185
|
};
|
|
4186
|
-
protoOf(OpenAPIV3Parser).
|
|
4186
|
+
protoOf(OpenAPIV3Parser).f46 = function (_this__u8e3s4) {
|
|
4187
4187
|
// Inline function 'kotlin.collections.reduce' call
|
|
4188
4188
|
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();
|
|
4189
4189
|
if (!iterator.u())
|
|
@@ -4219,7 +4219,7 @@ function OpenAPIV3Parser_getInstance() {
|
|
|
4219
4219
|
}
|
|
4220
4220
|
function parseEndpoints_0(_this__u8e3s4) {
|
|
4221
4221
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4222
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
4222
|
+
var tmp0_elvis_lhs = _this__u8e3s4.o31();
|
|
4223
4223
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4224
4224
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4225
4225
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -4229,7 +4229,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4229
4229
|
while (_iterator__ex2g4s.u()) {
|
|
4230
4230
|
var element = _iterator__ex2g4s.v();
|
|
4231
4231
|
// Inline function 'kotlin.collections.component1' call
|
|
4232
|
-
var path = element.k1().
|
|
4232
|
+
var path = element.k1().p2y_1;
|
|
4233
4233
|
// Inline function 'kotlin.collections.component2' call
|
|
4234
4234
|
var pathItem = element.l1();
|
|
4235
4235
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -4244,7 +4244,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4244
4244
|
var method = item.k1();
|
|
4245
4245
|
// Inline function 'kotlin.collections.component2' call
|
|
4246
4246
|
var operation = item.l1();
|
|
4247
|
-
var parameters = plus_0(resolveParameters_0(_this__u8e3s4, pathItem.
|
|
4247
|
+
var parameters = plus_0(resolveParameters_0(_this__u8e3s4, pathItem.o2z()), resolveParameters_0(_this__u8e3s4, operation.o2z()));
|
|
4248
4248
|
var tmp0_elvis_lhs_0 = toName(operation);
|
|
4249
4249
|
var segments = toSegments_0(_this__u8e3s4, path, parameters, tmp0_elvis_lhs_0 == null ? toName_0(path) + method.a3_1 : tmp0_elvis_lhs_0);
|
|
4250
4250
|
var tmp1_elvis_lhs = toName(operation);
|
|
@@ -4265,7 +4265,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4265
4265
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
4266
4266
|
while (_iterator__ex2g4s_2.u()) {
|
|
4267
4267
|
var item_0 = _iterator__ex2g4s_2.v();
|
|
4268
|
-
var tmp$ret$10 = toField_2(_this__u8e3s4, item_0, className([name, 'Parameter', item_0.
|
|
4268
|
+
var tmp$ret$10 = toField_2(_this__u8e3s4, item_0, className([name, 'Parameter', item_0.x3e_1]));
|
|
4269
4269
|
destination_2.x(tmp$ret$10);
|
|
4270
4270
|
}
|
|
4271
4271
|
var query = destination_2;
|
|
@@ -4285,11 +4285,11 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4285
4285
|
var _iterator__ex2g4s_4 = destination_3.t();
|
|
4286
4286
|
while (_iterator__ex2g4s_4.u()) {
|
|
4287
4287
|
var item_1 = _iterator__ex2g4s_4.v();
|
|
4288
|
-
var tmp$ret$16 = toField_2(_this__u8e3s4, item_1, className([name, 'Parameter', item_1.
|
|
4288
|
+
var tmp$ret$16 = toField_2(_this__u8e3s4, item_1, className([name, 'Parameter', item_1.x3e_1]));
|
|
4289
4289
|
destination_4.x(tmp$ret$16);
|
|
4290
4290
|
}
|
|
4291
4291
|
var headers = destination_4;
|
|
4292
|
-
var tmp2_safe_receiver = operation.
|
|
4292
|
+
var tmp2_safe_receiver = operation.p2z();
|
|
4293
4293
|
var tmp;
|
|
4294
4294
|
if (tmp2_safe_receiver == null) {
|
|
4295
4295
|
tmp = null;
|
|
@@ -4317,10 +4317,10 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4317
4317
|
while (_iterator__ex2g4s_5.u()) {
|
|
4318
4318
|
var item_2 = _iterator__ex2g4s_5.v();
|
|
4319
4319
|
// Inline function 'kotlin.collections.component1' call
|
|
4320
|
-
var mediaType = item_2.k1().
|
|
4320
|
+
var mediaType = item_2.k1().l2z_1;
|
|
4321
4321
|
// Inline function 'kotlin.collections.component2' call
|
|
4322
4322
|
var mediaObject = item_2.l1();
|
|
4323
|
-
var schema = mediaObject.
|
|
4323
|
+
var schema = mediaObject.w39();
|
|
4324
4324
|
var tmp_2;
|
|
4325
4325
|
if (!(schema == null) ? isInterface(schema, Reference) : false) {
|
|
4326
4326
|
tmp_2 = toReference_1(_this__u8e3s4, schema, isNullable);
|
|
@@ -4364,17 +4364,17 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4364
4364
|
while (_iterator__ex2g4s_6.u()) {
|
|
4365
4365
|
var element_2 = _iterator__ex2g4s_6.v();
|
|
4366
4366
|
// Inline function 'kotlin.collections.component1' call
|
|
4367
|
-
var status = element_2.k1().
|
|
4367
|
+
var status = element_2.k1().t2y_1;
|
|
4368
4368
|
// Inline function 'kotlin.collections.component2' call
|
|
4369
4369
|
var res = element_2.l1();
|
|
4370
4370
|
// Inline function 'kotlin.let' call
|
|
4371
4371
|
var response = resolve_2(_this__u8e3s4, res);
|
|
4372
4372
|
var tmp0_safe_receiver_0 = response instanceof OpenAPIV30Response ? response : null;
|
|
4373
|
-
var content = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.
|
|
4373
|
+
var content = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.i3g_1;
|
|
4374
4374
|
var tmp_4;
|
|
4375
4375
|
// Inline function 'kotlin.collections.isNullOrEmpty' call
|
|
4376
4376
|
if (content == null || content.r()) {
|
|
4377
|
-
var tmp2_annotations = plus_0(toDescriptionAnnotationList(response.
|
|
4377
|
+
var tmp2_annotations = plus_0(toDescriptionAnnotationList(response.z2y()), toLinkAnnotationList(_this__u8e3s4, response.h2z()));
|
|
4378
4378
|
var tmp3_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4379
4379
|
var tmp1_safe_receiver = response.cw();
|
|
4380
4380
|
var tmp_5;
|
|
@@ -4406,10 +4406,10 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4406
4406
|
while (_iterator__ex2g4s_8.u()) {
|
|
4407
4407
|
var item_4 = _iterator__ex2g4s_8.v();
|
|
4408
4408
|
// Inline function 'kotlin.collections.component1' call
|
|
4409
|
-
var contentType = item_4.k1().
|
|
4409
|
+
var contentType = item_4.k1().l2z_1;
|
|
4410
4410
|
// Inline function 'kotlin.collections.component2' call
|
|
4411
4411
|
var media = item_4.l1();
|
|
4412
|
-
var tmp0_safe_receiver_1 = media.
|
|
4412
|
+
var tmp0_safe_receiver_1 = media.b3g_1;
|
|
4413
4413
|
var tmp_6;
|
|
4414
4414
|
if (tmp0_safe_receiver_1 == null) {
|
|
4415
4415
|
tmp_6 = null;
|
|
@@ -4424,13 +4424,13 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4424
4424
|
} else {
|
|
4425
4425
|
// Inline function 'kotlin.let' call
|
|
4426
4426
|
var tmp0_safe_receiver_2 = tmp1_safe_receiver_0 instanceof OpenAPIV30Schema ? tmp1_safe_receiver_0 : null;
|
|
4427
|
-
tmp_7 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.
|
|
4427
|
+
tmp_7 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.s3c_1;
|
|
4428
4428
|
}
|
|
4429
4429
|
var tmp2_elvis_lhs = tmp_7;
|
|
4430
4430
|
var isNullable_0 = tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs;
|
|
4431
|
-
var tmp4_annotations = plus_0(toDescriptionAnnotationList(response.
|
|
4431
|
+
var tmp4_annotations = plus_0(toDescriptionAnnotationList(response.j3g_1), toLinkAnnotationList(_this__u8e3s4, response.l3g_1));
|
|
4432
4432
|
var tmp5_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4433
|
-
var tmp3_safe_receiver_0 = response.
|
|
4433
|
+
var tmp3_safe_receiver_0 = response.k3g_1;
|
|
4434
4434
|
var tmp_8;
|
|
4435
4435
|
if (tmp3_safe_receiver_0 == null) {
|
|
4436
4436
|
tmp_8 = null;
|
|
@@ -4451,7 +4451,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4451
4451
|
var tmp0_elvis_lhs_3 = tmp_8;
|
|
4452
4452
|
var tmp6_headers = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
|
|
4453
4453
|
var tmp_9 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
4454
|
-
var schema_0 = media.
|
|
4454
|
+
var schema_0 = media.b3g_1;
|
|
4455
4455
|
var tmp_10;
|
|
4456
4456
|
if (!(schema_0 == null) ? isInterface(schema_0, Reference) : false) {
|
|
4457
4457
|
tmp_10 = toReference_1(_this__u8e3s4, schema_0, isNullable_0);
|
|
@@ -4476,7 +4476,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4476
4476
|
addAll(destination_6, list);
|
|
4477
4477
|
}
|
|
4478
4478
|
var responses = destination_6;
|
|
4479
|
-
var tmp$ret$61 = new Endpoint(null, toDescriptionAnnotationList(operation.
|
|
4479
|
+
var tmp$ret$61 = new Endpoint(null, toDescriptionAnnotationList(operation.z2y()), new DefinitionIdentifier(name), method, segments, query, headers, requests, responses);
|
|
4480
4480
|
destination_0.x(tmp$ret$61);
|
|
4481
4481
|
}
|
|
4482
4482
|
var list_0 = destination_0;
|
|
@@ -4494,9 +4494,9 @@ function parseResponseBody_0(_this__u8e3s4) {
|
|
|
4494
4494
|
return flatMapResponses(_this__u8e3s4, parseResponseBody$lambda_0(_this__u8e3s4));
|
|
4495
4495
|
}
|
|
4496
4496
|
function parseDefinitions_0(_this__u8e3s4) {
|
|
4497
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
4497
|
+
var tmp0_safe_receiver = _this__u8e3s4.u31();
|
|
4498
4498
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4499
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4499
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n3c();
|
|
4500
4500
|
// Inline function 'kotlin.collections.filter' call
|
|
4501
4501
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4502
4502
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -4508,7 +4508,7 @@ function parseDefinitions_0(_this__u8e3s4) {
|
|
|
4508
4508
|
var s = element.l1();
|
|
4509
4509
|
var tmp;
|
|
4510
4510
|
if (isInterface(s, Schema)) {
|
|
4511
|
-
var tmp0_subject = s.
|
|
4511
|
+
var tmp0_subject = s.e2z();
|
|
4512
4512
|
var tmp_0;
|
|
4513
4513
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
4514
4514
|
tmp_0 = true;
|
|
@@ -4612,7 +4612,7 @@ function toSegments_0(_this__u8e3s4, path, parameters, name) {
|
|
|
4612
4612
|
var _iterator__ex2g4s_1 = parameters.t();
|
|
4613
4613
|
while (_iterator__ex2g4s_1.u()) {
|
|
4614
4614
|
var element_0 = _iterator__ex2g4s_1.v();
|
|
4615
|
-
if (element_0.
|
|
4615
|
+
if (element_0.x3e_1 === param) {
|
|
4616
4616
|
tmp$ret$5 = element_0;
|
|
4617
4617
|
break $l$block;
|
|
4618
4618
|
}
|
|
@@ -4621,7 +4621,7 @@ function toSegments_0(_this__u8e3s4, path, parameters, name) {
|
|
|
4621
4621
|
}
|
|
4622
4622
|
|
|
4623
4623
|
var tmp1_safe_receiver = tmp$ret$5;
|
|
4624
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4624
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.w3e_1;
|
|
4625
4625
|
var tmp_0;
|
|
4626
4626
|
if (tmp2_safe_receiver == null) {
|
|
4627
4627
|
tmp_0 = null;
|
|
@@ -4672,12 +4672,12 @@ function toSegments_0(_this__u8e3s4, path, parameters, name) {
|
|
|
4672
4672
|
return destination_0;
|
|
4673
4673
|
}
|
|
4674
4674
|
function get_location_0(_this__u8e3s4) {
|
|
4675
|
-
return _this__u8e3s4.
|
|
4675
|
+
return _this__u8e3s4.v3e_1;
|
|
4676
4676
|
}
|
|
4677
4677
|
function toField_2(_this__u8e3s4, parameter, name) {
|
|
4678
|
-
var tmp0_elvis_lhs = parameter.
|
|
4678
|
+
var tmp0_elvis_lhs = parameter.m3e_1;
|
|
4679
4679
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
4680
|
-
var s = parameter.
|
|
4680
|
+
var s = parameter.w3e_1;
|
|
4681
4681
|
var tmp;
|
|
4682
4682
|
if (!(s == null) ? isInterface(s, Reference) : false) {
|
|
4683
4683
|
tmp = toReference_1(_this__u8e3s4, s, isNullable);
|
|
@@ -4694,8 +4694,8 @@ function toField_2(_this__u8e3s4, parameter, name) {
|
|
|
4694
4694
|
}
|
|
4695
4695
|
// Inline function 'kotlin.let' call
|
|
4696
4696
|
var it = tmp;
|
|
4697
|
-
var tmp0_identifier = new FieldIdentifier(parameter.
|
|
4698
|
-
var tmp1_annotations = toDescriptionAnnotationList(parameter.
|
|
4697
|
+
var tmp0_identifier = new FieldIdentifier(parameter.x3e_1);
|
|
4698
|
+
var tmp1_annotations = toDescriptionAnnotationList(parameter.l3e_1);
|
|
4699
4699
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
4700
4700
|
}
|
|
4701
4701
|
function resolve_1(_this__u8e3s4, requestBodyOrReference) {
|
|
@@ -4717,11 +4717,11 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4717
4717
|
var referencingObject = destruct.qe();
|
|
4718
4718
|
var schema = destruct.re();
|
|
4719
4719
|
var tmp0_safe_receiver = schema instanceof OpenAPIV30Schema ? schema : null;
|
|
4720
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4720
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s3c_1;
|
|
4721
4721
|
var nullable = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
4722
4722
|
var tmp;
|
|
4723
|
-
if (exists_0(schema.
|
|
4724
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4723
|
+
if (exists_0(schema.e2z())) {
|
|
4724
|
+
var additionalProperties = ensureNotNull(schema.e2z());
|
|
4725
4725
|
var tmp_0;
|
|
4726
4726
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
4727
4727
|
tmp_0 = new Dict(new Any(isNullable), false);
|
|
@@ -4737,12 +4737,12 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4737
4737
|
}
|
|
4738
4738
|
}
|
|
4739
4739
|
tmp = tmp_0;
|
|
4740
|
-
} else if (!(schema.
|
|
4740
|
+
} else if (!(schema.a2z() == null)) {
|
|
4741
4741
|
tmp = new Custom(sanitize(className([getReference(referencingObject)])), isNullable);
|
|
4742
4742
|
} else if (isPrimitive_0(get_primitiveType_0(schema))) {
|
|
4743
4743
|
tmp = new Primitive(toPrimitive_1(schema), isNullable);
|
|
4744
4744
|
} else if (equals(get_primitiveType_0(schema), OpenAPIV30Type_ARRAY_getInstance())) {
|
|
4745
|
-
var items = schema.
|
|
4745
|
+
var items = schema.b2z();
|
|
4746
4746
|
var tmp_1;
|
|
4747
4747
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
4748
4748
|
tmp_1 = toIterable(toReference_1(_this__u8e3s4, items, nullable), isNullable);
|
|
@@ -4751,7 +4751,7 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4751
4751
|
tmp_1 = toIterable(new Custom(sanitize(className([getReference(referencingObject), 'Array'])), nullable), isNullable);
|
|
4752
4752
|
} else {
|
|
4753
4753
|
if (items == null) {
|
|
4754
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.
|
|
4754
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.y2y());
|
|
4755
4755
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4756
4756
|
} else {
|
|
4757
4757
|
noWhenBranchMatchedException();
|
|
@@ -4767,11 +4767,11 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4767
4767
|
function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
4768
4768
|
name = name === VOID ? '' : name;
|
|
4769
4769
|
var tmp0_safe_receiver = schema instanceof OpenAPIV30Schema ? schema : null;
|
|
4770
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4770
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s3c_1;
|
|
4771
4771
|
var nullable = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
4772
4772
|
var tmp;
|
|
4773
4773
|
if (equals(get_primitiveType_0(schema), OpenAPIV30Type_ARRAY_getInstance())) {
|
|
4774
|
-
var items = schema.
|
|
4774
|
+
var items = schema.b2z();
|
|
4775
4775
|
var tmp_0;
|
|
4776
4776
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
4777
4777
|
tmp_0 = toIterable(toReference_1(_this__u8e3s4, items, nullable), isNullable);
|
|
@@ -4788,8 +4788,8 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4788
4788
|
}
|
|
4789
4789
|
}
|
|
4790
4790
|
tmp = tmp_0;
|
|
4791
|
-
} else if (!(schema.
|
|
4792
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4791
|
+
} else if (!(schema.e2z() == null)) {
|
|
4792
|
+
var additionalProperties = ensureNotNull(schema.e2z());
|
|
4793
4793
|
var tmp_1;
|
|
4794
4794
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
4795
4795
|
tmp_1 = new Dict(new Any(nullable), isNullable);
|
|
@@ -4800,7 +4800,7 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4800
4800
|
if (isInterface(additionalProperties, Schema)) {
|
|
4801
4801
|
// Inline function 'kotlin.takeIf' call
|
|
4802
4802
|
var tmp_2;
|
|
4803
|
-
if (isPrimitive_0(get_primitiveType_0(additionalProperties)) || !(additionalProperties.
|
|
4803
|
+
if (isPrimitive_0(get_primitiveType_0(additionalProperties)) || !(additionalProperties.d2z() == null)) {
|
|
4804
4804
|
tmp_2 = additionalProperties;
|
|
4805
4805
|
} else {
|
|
4806
4806
|
tmp_2 = null;
|
|
@@ -4821,10 +4821,10 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4821
4821
|
}
|
|
4822
4822
|
}
|
|
4823
4823
|
tmp = tmp_1;
|
|
4824
|
-
} else if (!(schema.
|
|
4824
|
+
} else if (!(schema.a2z() == null)) {
|
|
4825
4825
|
// Inline function 'kotlin.let' call
|
|
4826
4826
|
var it = new Custom(sanitize(name), isNullable);
|
|
4827
|
-
tmp = !(schema.
|
|
4827
|
+
tmp = !(schema.e2z() == null) ? new Dict(it, false) : it;
|
|
4828
4828
|
} else {
|
|
4829
4829
|
var tmp4_subject = get_primitiveType_0(schema);
|
|
4830
4830
|
var tmp_4;
|
|
@@ -4836,26 +4836,26 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4836
4836
|
// Inline function 'kotlin.let' call
|
|
4837
4837
|
|
|
4838
4838
|
var it_0 = new Primitive(toPrimitive_1(schema), isNullable);
|
|
4839
|
-
tmp_4 = !(schema.
|
|
4839
|
+
tmp_4 = !(schema.e2z() == null) ? new Dict(it_0, false) : it_0;
|
|
4840
4840
|
break;
|
|
4841
4841
|
case -1:
|
|
4842
4842
|
case 5:
|
|
4843
4843
|
var tmp_5;
|
|
4844
|
-
var tmp_6 = schema.
|
|
4844
|
+
var tmp_6 = schema.e2z();
|
|
4845
4845
|
if (!(tmp_6 == null) ? isInterface(tmp_6, BooleanValue) : false) {
|
|
4846
4846
|
// Inline function 'kotlin.let' call
|
|
4847
4847
|
var it_1 = new Any(false);
|
|
4848
|
-
tmp_5 = !(schema.
|
|
4848
|
+
tmp_5 = !(schema.e2z() == null) ? new Dict(it_1, false) : it_1;
|
|
4849
4849
|
} else {
|
|
4850
4850
|
// Inline function 'kotlin.let' call
|
|
4851
4851
|
var it_2 = new Custom(sanitize(name), isNullable);
|
|
4852
|
-
tmp_5 = !(schema.
|
|
4852
|
+
tmp_5 = !(schema.e2z() == null) ? new Dict(it_2, false) : it_2;
|
|
4853
4853
|
}
|
|
4854
4854
|
|
|
4855
4855
|
tmp_4 = tmp_5;
|
|
4856
4856
|
break;
|
|
4857
4857
|
case 4:
|
|
4858
|
-
var it_3 = schema.
|
|
4858
|
+
var it_3 = schema.b2z();
|
|
4859
4859
|
var tmp_7;
|
|
4860
4860
|
if (!(it_3 == null) ? isInterface(it_3, Reference) : false) {
|
|
4861
4861
|
tmp_7 = toIterable(toReference_1(_this__u8e3s4, it_3, nullable), isNullable);
|
|
@@ -4921,9 +4921,9 @@ function toLinkAnnotationList(_this__u8e3s4, links) {
|
|
|
4921
4921
|
}
|
|
4922
4922
|
function toField_3(_this__u8e3s4, header, identifier, name) {
|
|
4923
4923
|
var v30 = header instanceof OpenAPIV30Header ? header : null;
|
|
4924
|
-
var tmp1_elvis_lhs = v30 == null ? null : v30.
|
|
4924
|
+
var tmp1_elvis_lhs = v30 == null ? null : v30.k3h_1;
|
|
4925
4925
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
4926
|
-
var s = v30 == null ? null : v30.
|
|
4926
|
+
var s = v30 == null ? null : v30.q3h_1;
|
|
4927
4927
|
var tmp;
|
|
4928
4928
|
if (!(s == null) ? isInterface(s, Reference) : false) {
|
|
4929
4929
|
tmp = toReference_1(_this__u8e3s4, s, isNullable);
|
|
@@ -4941,7 +4941,7 @@ function toField_3(_this__u8e3s4, header, identifier, name) {
|
|
|
4941
4941
|
// Inline function 'kotlin.let' call
|
|
4942
4942
|
var it = tmp;
|
|
4943
4943
|
var tmp0_identifier = new FieldIdentifier(identifier);
|
|
4944
|
-
var tmp1_annotations = toDescriptionAnnotationList(header.
|
|
4944
|
+
var tmp1_annotations = toDescriptionAnnotationList(header.z2y());
|
|
4945
4945
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
4946
4946
|
}
|
|
4947
4947
|
function resolve_3(_this__u8e3s4, headerOrReference) {
|
|
@@ -4989,13 +4989,13 @@ function get_primitiveType_0(_this__u8e3s4) {
|
|
|
4989
4989
|
if (s == null) {
|
|
4990
4990
|
tmp = null;
|
|
4991
4991
|
} else {
|
|
4992
|
-
var t = s.
|
|
4992
|
+
var t = s.z3c_1;
|
|
4993
4993
|
var tmp_0;
|
|
4994
4994
|
if (t instanceof OpenAPIV30SingleType) {
|
|
4995
|
-
tmp_0 = t.
|
|
4995
|
+
tmp_0 = t.q3f_1;
|
|
4996
4996
|
} else {
|
|
4997
4997
|
if (t instanceof OpenAPIV30TypeArray) {
|
|
4998
|
-
var tmp0 = t.
|
|
4998
|
+
var tmp0 = t.v3h_1;
|
|
4999
4999
|
var tmp$ret$1;
|
|
5000
5000
|
$l$block: {
|
|
5001
5001
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -5024,16 +5024,16 @@ function get_primitiveType_0(_this__u8e3s4) {
|
|
|
5024
5024
|
}
|
|
5025
5025
|
function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
5026
5026
|
var v30 = schemaObject instanceof OpenAPIV30Schema ? schemaObject : null;
|
|
5027
|
-
var oneOf = v30 == null ? null : v30.
|
|
5028
|
-
var anyOf = v30 == null ? null : v30.
|
|
5027
|
+
var oneOf = v30 == null ? null : v30.v3c_1;
|
|
5028
|
+
var anyOf = v30 == null ? null : v30.w3c_1;
|
|
5029
5029
|
var tmp;
|
|
5030
|
-
if (exists_0(schemaObject.
|
|
5031
|
-
var tmp2_subject = schemaObject.
|
|
5030
|
+
if (exists_0(schemaObject.e2z())) {
|
|
5031
|
+
var tmp2_subject = schemaObject.e2z();
|
|
5032
5032
|
var tmp_0;
|
|
5033
5033
|
if (!(tmp2_subject == null) ? isInterface(tmp2_subject, BooleanValue) : false) {
|
|
5034
5034
|
tmp_0 = emptyList();
|
|
5035
5035
|
} else {
|
|
5036
|
-
var tmp3_safe_receiver = schemaObject.
|
|
5036
|
+
var tmp3_safe_receiver = schemaObject.e2z();
|
|
5037
5037
|
var tmp_1;
|
|
5038
5038
|
if (tmp3_safe_receiver == null) {
|
|
5039
5039
|
tmp_1 = null;
|
|
@@ -5048,7 +5048,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5048
5048
|
} else {
|
|
5049
5049
|
// Inline function 'kotlin.takeIf' call
|
|
5050
5050
|
var tmp_3;
|
|
5051
|
-
if (!(tmp4_safe_receiver.
|
|
5051
|
+
if (!(tmp4_safe_receiver.d2z() == null)) {
|
|
5052
5052
|
tmp_3 = tmp4_safe_receiver;
|
|
5053
5053
|
} else {
|
|
5054
5054
|
tmp_3 = null;
|
|
@@ -5068,7 +5068,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5068
5068
|
}
|
|
5069
5069
|
tmp = tmp_0;
|
|
5070
5070
|
} else if (!(oneOf == null) || !(anyOf == null)) {
|
|
5071
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
5071
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.g3d_1);
|
|
5072
5072
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
5073
5073
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5074
5074
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
@@ -5122,11 +5122,11 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5122
5122
|
addAll(destination_0, list);
|
|
5123
5123
|
}
|
|
5124
5124
|
tmp = plus_0(tmp_8, destination_0);
|
|
5125
|
-
} else if (!(schemaObject.
|
|
5126
|
-
var tmp_10 = toDescriptionAnnotationList(schemaObject.
|
|
5125
|
+
} else if (!(schemaObject.c2z() == null)) {
|
|
5126
|
+
var tmp_10 = toDescriptionAnnotationList(schemaObject.z2y());
|
|
5127
5127
|
var tmp_11 = new DefinitionIdentifier(sanitize(name));
|
|
5128
5128
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5129
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
5129
|
+
var tmp0_elvis_lhs = schemaObject.c2z();
|
|
5130
5130
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5131
5131
|
var tmp0_0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
5132
5132
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -5150,7 +5150,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5150
5150
|
}
|
|
5151
5151
|
var tmp_12 = listOf(new Type(null, tmp_10, tmp_11, new Shape(list_1), emptyList()));
|
|
5152
5152
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5153
|
-
var tmp0_1 = ensureNotNull(schemaObject.
|
|
5153
|
+
var tmp0_1 = ensureNotNull(schemaObject.c2z());
|
|
5154
5154
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5155
5155
|
var destination_2 = ArrayList_init_$Create$();
|
|
5156
5156
|
var _iterator__ex2g4s_3 = tmp0_1.t();
|
|
@@ -5159,12 +5159,12 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5159
5159
|
var tmp_13;
|
|
5160
5160
|
if (isInterface(element_1, Reference)) {
|
|
5161
5161
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5162
|
-
var tmp0_elvis_lhs_0 = resolveSchemaRef_0(_this__u8e3s4, element_1).af_1.
|
|
5162
|
+
var tmp0_elvis_lhs_0 = resolveSchemaRef_0(_this__u8e3s4, element_1).af_1.d2z();
|
|
5163
5163
|
tmp_13 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
5164
5164
|
} else {
|
|
5165
5165
|
if (isInterface(element_1, Schema)) {
|
|
5166
5166
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5167
|
-
var tmp0_elvis_lhs_1 = element_1.
|
|
5167
|
+
var tmp0_elvis_lhs_1 = element_1.d2z();
|
|
5168
5168
|
tmp_13 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
5169
5169
|
} else {
|
|
5170
5170
|
noWhenBranchMatchedException();
|
|
@@ -5189,9 +5189,9 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5189
5189
|
addAll(destination_2, list_3);
|
|
5190
5190
|
}
|
|
5191
5191
|
tmp = plus_0(tmp_12, destination_2);
|
|
5192
|
-
} else if (!(schemaObject.
|
|
5192
|
+
} else if (!(schemaObject.a2z() == null)) {
|
|
5193
5193
|
// Inline function 'kotlin.collections.map' call
|
|
5194
|
-
var this_1 = ensureNotNull(schemaObject.
|
|
5194
|
+
var this_1 = ensureNotNull(schemaObject.a2z());
|
|
5195
5195
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5196
5196
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
5197
5197
|
var _iterator__ex2g4s_5 = this_1.t();
|
|
@@ -5202,7 +5202,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5202
5202
|
}
|
|
5203
5203
|
// Inline function 'kotlin.let' call
|
|
5204
5204
|
var it = toSet(destination_4);
|
|
5205
|
-
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.
|
|
5205
|
+
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.z2y()), new DefinitionIdentifier(name), it));
|
|
5206
5206
|
} else {
|
|
5207
5207
|
var tmp7_subject = get_primitiveType_0(schemaObject);
|
|
5208
5208
|
var tmp_14;
|
|
@@ -5211,7 +5211,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5211
5211
|
case 5:
|
|
5212
5212
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5213
5213
|
|
|
5214
|
-
var tmp0_elvis_lhs_2 = schemaObject.
|
|
5214
|
+
var tmp0_elvis_lhs_2 = schemaObject.d2z();
|
|
5215
5215
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5216
5216
|
|
|
5217
5217
|
var tmp0_3 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
@@ -5232,11 +5232,11 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5232
5232
|
}
|
|
5233
5233
|
|
|
5234
5234
|
var fields = destination_5;
|
|
5235
|
-
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.
|
|
5235
|
+
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.z2y()), new DefinitionIdentifier(name), new Shape(toField_4(_this__u8e3s4, schemaObject, name)), emptyList()));
|
|
5236
5236
|
tmp_14 = plus_0(schema, fields);
|
|
5237
5237
|
break;
|
|
5238
5238
|
case 4:
|
|
5239
|
-
var tmp8_safe_receiver = schemaObject.
|
|
5239
|
+
var tmp8_safe_receiver = schemaObject.b2z();
|
|
5240
5240
|
var tmp_15;
|
|
5241
5241
|
if (tmp8_safe_receiver == null) {
|
|
5242
5242
|
tmp_15 = null;
|
|
@@ -5269,7 +5269,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5269
5269
|
function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
5270
5270
|
var tmp0_safe_receiver = response instanceof OpenAPIV30Response ? response : null;
|
|
5271
5271
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5272
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5272
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i3g_1;
|
|
5273
5273
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5274
5274
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
5275
5275
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -5280,7 +5280,7 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5280
5280
|
var element = _iterator__ex2g4s.v();
|
|
5281
5281
|
// Inline function 'kotlin.collections.component2' call
|
|
5282
5282
|
var mediaObject = element.l1();
|
|
5283
|
-
var schema = mediaObject.
|
|
5283
|
+
var schema = mediaObject.b3g_1;
|
|
5284
5284
|
var tmp;
|
|
5285
5285
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
5286
5286
|
var tmp0_subject = get_primitiveType_0(schema);
|
|
@@ -5291,7 +5291,7 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5291
5291
|
tmp_0 = flatten_0(_this__u8e3s4, schema, className([name, _StatusCode___get_value__impl__we50mu(statusCode), 'ResponseBody']));
|
|
5292
5292
|
break;
|
|
5293
5293
|
case 4:
|
|
5294
|
-
var tmp1_safe_receiver = schema.
|
|
5294
|
+
var tmp1_safe_receiver = schema.b2z();
|
|
5295
5295
|
var tmp_1;
|
|
5296
5296
|
if (tmp1_safe_receiver == null) {
|
|
5297
5297
|
tmp_1 = null;
|
|
@@ -5319,7 +5319,7 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5319
5319
|
return destination;
|
|
5320
5320
|
}
|
|
5321
5321
|
function resolveResponse_0(_this__u8e3s4, reference) {
|
|
5322
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5322
|
+
var tmp0_safe_receiver = _this__u8e3s4.u31();
|
|
5323
5323
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ew();
|
|
5324
5324
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5325
5325
|
var tmp;
|
|
@@ -5342,7 +5342,7 @@ function resolveResponse_0(_this__u8e3s4, reference) {
|
|
|
5342
5342
|
var tmp3_elvis_lhs = tmp;
|
|
5343
5343
|
var tmp_1;
|
|
5344
5344
|
if (tmp3_elvis_lhs == null) {
|
|
5345
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5345
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.y2y());
|
|
5346
5346
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5347
5347
|
} else {
|
|
5348
5348
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5350,8 +5350,8 @@ function resolveResponse_0(_this__u8e3s4, reference) {
|
|
|
5350
5350
|
return tmp_1;
|
|
5351
5351
|
}
|
|
5352
5352
|
function resolveParameter_0(_this__u8e3s4, reference) {
|
|
5353
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5354
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5353
|
+
var tmp0_safe_receiver = _this__u8e3s4.u31();
|
|
5354
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o2z();
|
|
5355
5355
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5356
5356
|
var tmp;
|
|
5357
5357
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5373,8 +5373,8 @@ function resolveParameter_0(_this__u8e3s4, reference) {
|
|
|
5373
5373
|
return tmp;
|
|
5374
5374
|
}
|
|
5375
5375
|
function resolveRequestBody(_this__u8e3s4, reference) {
|
|
5376
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5377
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5376
|
+
var tmp0_safe_receiver = _this__u8e3s4.u31();
|
|
5377
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o3c();
|
|
5378
5378
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5379
5379
|
var tmp;
|
|
5380
5380
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5396,7 +5396,7 @@ function resolveRequestBody(_this__u8e3s4, reference) {
|
|
|
5396
5396
|
var tmp3_elvis_lhs = tmp;
|
|
5397
5397
|
var tmp_1;
|
|
5398
5398
|
if (tmp3_elvis_lhs == null) {
|
|
5399
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5399
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.y2y());
|
|
5400
5400
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5401
5401
|
} else {
|
|
5402
5402
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5404,8 +5404,8 @@ function resolveRequestBody(_this__u8e3s4, reference) {
|
|
|
5404
5404
|
return tmp_1;
|
|
5405
5405
|
}
|
|
5406
5406
|
function resolveSchemaRef_0(_this__u8e3s4, reference) {
|
|
5407
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5408
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5407
|
+
var tmp0_safe_receiver = _this__u8e3s4.u31();
|
|
5408
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n3c();
|
|
5409
5409
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5410
5410
|
var tmp;
|
|
5411
5411
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5427,7 +5427,7 @@ function resolveSchemaRef_0(_this__u8e3s4, reference) {
|
|
|
5427
5427
|
var tmp3_elvis_lhs = tmp;
|
|
5428
5428
|
var tmp_1;
|
|
5429
5429
|
if (tmp3_elvis_lhs == null) {
|
|
5430
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5430
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.y2y());
|
|
5431
5431
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5432
5432
|
} else {
|
|
5433
5433
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5493,13 +5493,13 @@ function toPrimitive_1(_this__u8e3s4) {
|
|
|
5493
5493
|
var tmp;
|
|
5494
5494
|
switch (tmp0_subject == null ? -1 : tmp0_subject.b3_1) {
|
|
5495
5495
|
case 0:
|
|
5496
|
-
tmp = !(_this__u8e3s4.
|
|
5496
|
+
tmp = !(_this__u8e3s4.g2z() == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.g2z()))) : _this__u8e3s4.f2z() === 'binary' ? Bytes_instance : new String_0(null);
|
|
5497
5497
|
break;
|
|
5498
5498
|
case 2:
|
|
5499
|
-
tmp = new Integer(_this__u8e3s4.
|
|
5499
|
+
tmp = new Integer(_this__u8e3s4.f2z() === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5500
5500
|
break;
|
|
5501
5501
|
case 1:
|
|
5502
|
-
tmp = new Number_0(_this__u8e3s4.
|
|
5502
|
+
tmp = new Number_0(_this__u8e3s4.f2z() === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5503
5503
|
break;
|
|
5504
5504
|
case 3:
|
|
5505
5505
|
tmp = Boolean_instance;
|
|
@@ -5511,10 +5511,10 @@ function toPrimitive_1(_this__u8e3s4) {
|
|
|
5511
5511
|
return tmp;
|
|
5512
5512
|
}
|
|
5513
5513
|
function toLinkInfo_0(_this__u8e3s4, name) {
|
|
5514
|
-
var tmp = _this__u8e3s4.
|
|
5515
|
-
var tmp_0 = _this__u8e3s4.
|
|
5514
|
+
var tmp = _this__u8e3s4.n2z();
|
|
5515
|
+
var tmp_0 = _this__u8e3s4.m2z();
|
|
5516
5516
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5517
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
5517
|
+
var tmp0_elvis_lhs = _this__u8e3s4.o2z();
|
|
5518
5518
|
// Inline function 'kotlin.collections.mapValues' call
|
|
5519
5519
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
5520
5520
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
@@ -5528,11 +5528,11 @@ function toLinkInfo_0(_this__u8e3s4, name) {
|
|
|
5528
5528
|
destination.s2(tmp_1, tmp$ret$2);
|
|
5529
5529
|
}
|
|
5530
5530
|
var tmp_2 = destination;
|
|
5531
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5531
|
+
var tmp0_safe_receiver = _this__u8e3s4.p2z();
|
|
5532
5532
|
var tmp_3 = tmp0_safe_receiver == null ? null : asLinkExpression(tmp0_safe_receiver);
|
|
5533
|
-
var tmp_4 = _this__u8e3s4.
|
|
5534
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
5535
|
-
return new LinkInfo(name, tmp, tmp_0, tmp_2, tmp_3, tmp_4, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5533
|
+
var tmp_4 = _this__u8e3s4.z2y();
|
|
5534
|
+
var tmp1_safe_receiver = _this__u8e3s4.q2z();
|
|
5535
|
+
return new LinkInfo(name, tmp, tmp_0, tmp_2, tmp_3, tmp_4, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2z_1);
|
|
5536
5536
|
}
|
|
5537
5537
|
function resolve_5(_this__u8e3s4, linkOrReference) {
|
|
5538
5538
|
var tmp;
|
|
@@ -5548,7 +5548,7 @@ function resolve_5(_this__u8e3s4, linkOrReference) {
|
|
|
5548
5548
|
return tmp;
|
|
5549
5549
|
}
|
|
5550
5550
|
function resolveHeader_0(_this__u8e3s4, reference) {
|
|
5551
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5551
|
+
var tmp0_safe_receiver = _this__u8e3s4.u31();
|
|
5552
5552
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.cw();
|
|
5553
5553
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5554
5554
|
var tmp;
|
|
@@ -5571,7 +5571,7 @@ function resolveHeader_0(_this__u8e3s4, reference) {
|
|
|
5571
5571
|
var tmp3_elvis_lhs = tmp;
|
|
5572
5572
|
var tmp_1;
|
|
5573
5573
|
if (tmp3_elvis_lhs == null) {
|
|
5574
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5574
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.y2y());
|
|
5575
5575
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5576
5576
|
} else {
|
|
5577
5577
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5598,7 +5598,7 @@ function resolve_6(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
5598
5598
|
}
|
|
5599
5599
|
function toField_4(_this__u8e3s4, schema, name) {
|
|
5600
5600
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5601
|
-
var tmp0_elvis_lhs = schema.
|
|
5601
|
+
var tmp0_elvis_lhs = schema.d2z();
|
|
5602
5602
|
// Inline function 'kotlin.collections.map' call
|
|
5603
5603
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
5604
5604
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -5617,8 +5617,8 @@ function toField_4(_this__u8e3s4, schema, name) {
|
|
|
5617
5617
|
var tmp;
|
|
5618
5618
|
if (isInterface(value, Schema)) {
|
|
5619
5619
|
var tmp3_identifier = new FieldIdentifier(key);
|
|
5620
|
-
var tmp4_annotations = toDescriptionAnnotationList(value.
|
|
5621
|
-
var tmp5_reference = !(value.
|
|
5620
|
+
var tmp4_annotations = toDescriptionAnnotationList(value.z2y());
|
|
5621
|
+
var tmp5_reference = !(value.a2z() == 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]));
|
|
5622
5622
|
tmp = new Field(tmp4_annotations, tmp3_identifier, tmp5_reference);
|
|
5623
5623
|
} else {
|
|
5624
5624
|
if (isInterface(value, Reference)) {
|
|
@@ -5641,8 +5641,8 @@ function asLinkExpression(_this__u8e3s4) {
|
|
|
5641
5641
|
return tmp1_elvis_lhs == null ? toString(_this__u8e3s4) : tmp1_elvis_lhs;
|
|
5642
5642
|
}
|
|
5643
5643
|
function resolveLink(_this__u8e3s4, reference) {
|
|
5644
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5645
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5644
|
+
var tmp0_safe_receiver = _this__u8e3s4.u31();
|
|
5645
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h2z();
|
|
5646
5646
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5647
5647
|
var tmp;
|
|
5648
5648
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5664,7 +5664,7 @@ function resolveLink(_this__u8e3s4, reference) {
|
|
|
5664
5664
|
var tmp3_elvis_lhs = tmp;
|
|
5665
5665
|
var tmp_1;
|
|
5666
5666
|
if (tmp3_elvis_lhs == null) {
|
|
5667
|
-
var message = 'Cannot resolve link ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5667
|
+
var message = 'Cannot resolve link ref: ' + Ref__toString_impl_irb7zi(reference.y2y());
|
|
5668
5668
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5669
5669
|
} else {
|
|
5670
5670
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5673,22 +5673,22 @@ function resolveLink(_this__u8e3s4, reference) {
|
|
|
5673
5673
|
}
|
|
5674
5674
|
function parseParameters$lambda_0($this_parseParameters) {
|
|
5675
5675
|
return function ($this$flatMapRequests) {
|
|
5676
|
-
var parameters = plus_0(resolveParameters_0($this_parseParameters, $this$flatMapRequests.
|
|
5677
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
5678
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
5676
|
+
var parameters = plus_0(resolveParameters_0($this_parseParameters, $this$flatMapRequests.h45_1.o2z()), resolveParameters_0($this_parseParameters, $this$flatMapRequests.j45_1.o2z()));
|
|
5677
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.j45_1);
|
|
5678
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.g45_1) + $this$flatMapRequests.i45_1.a3_1 : tmp0_elvis_lhs;
|
|
5679
5679
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5680
5680
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5681
5681
|
var destination = ArrayList_init_$Create$();
|
|
5682
5682
|
var _iterator__ex2g4s = parameters.t();
|
|
5683
5683
|
while (_iterator__ex2g4s.u()) {
|
|
5684
5684
|
var element = _iterator__ex2g4s.v();
|
|
5685
|
-
var tmp0_safe_receiver = element.
|
|
5685
|
+
var tmp0_safe_receiver = element.w3e_1;
|
|
5686
5686
|
var tmp;
|
|
5687
5687
|
if (tmp0_safe_receiver == null) {
|
|
5688
5688
|
tmp = null;
|
|
5689
5689
|
} else {
|
|
5690
5690
|
// Inline function 'kotlin.let' call
|
|
5691
|
-
tmp = flattenSchemaOrRef_0($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element.
|
|
5691
|
+
tmp = flattenSchemaOrRef_0($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element.x3e_1]));
|
|
5692
5692
|
}
|
|
5693
5693
|
var tmp1_elvis_lhs = tmp;
|
|
5694
5694
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -5699,9 +5699,9 @@ function parseParameters$lambda_0($this_parseParameters) {
|
|
|
5699
5699
|
}
|
|
5700
5700
|
function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
5701
5701
|
return function ($this$flatMapRequests) {
|
|
5702
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
5703
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
5704
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
5702
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.j45_1);
|
|
5703
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.g45_1) + $this$flatMapRequests.i45_1.a3_1 : tmp0_elvis_lhs;
|
|
5704
|
+
var tmp1_safe_receiver = $this$flatMapRequests.j45_1.p2z();
|
|
5705
5705
|
var tmp;
|
|
5706
5706
|
if (tmp1_safe_receiver == null) {
|
|
5707
5707
|
tmp = null;
|
|
@@ -5722,7 +5722,7 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
5722
5722
|
var element = _iterator__ex2g4s.v();
|
|
5723
5723
|
// Inline function 'kotlin.collections.component2' call
|
|
5724
5724
|
var mediaObject = element.l1();
|
|
5725
|
-
var schema = mediaObject.
|
|
5725
|
+
var schema = mediaObject.w39();
|
|
5726
5726
|
var tmp_0;
|
|
5727
5727
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
5728
5728
|
var tmp0_subject = get_primitiveType_0(schema);
|
|
@@ -5733,7 +5733,7 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
5733
5733
|
tmp_1 = flatten_0($this_parseRequestBody, schema, className([name, 'RequestBody']));
|
|
5734
5734
|
break;
|
|
5735
5735
|
case 4:
|
|
5736
|
-
var tmp1_safe_receiver_0 = schema.
|
|
5736
|
+
var tmp1_safe_receiver_0 = schema.b2z();
|
|
5737
5737
|
var tmp_2;
|
|
5738
5738
|
if (tmp1_safe_receiver_0 == null) {
|
|
5739
5739
|
tmp_2 = null;
|
|
@@ -5773,15 +5773,15 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
5773
5773
|
}
|
|
5774
5774
|
function parseResponseBody$lambda_0($this_parseResponseBody) {
|
|
5775
5775
|
return function ($this$flatMapResponses) {
|
|
5776
|
-
var tmp0_elvis_lhs = toName($this$flatMapResponses.
|
|
5777
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
5778
|
-
var res = $this$flatMapResponses.
|
|
5776
|
+
var tmp0_elvis_lhs = toName($this$flatMapResponses.n45_1);
|
|
5777
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.k45_1) + $this$flatMapResponses.m45_1.a3_1 : tmp0_elvis_lhs;
|
|
5778
|
+
var res = $this$flatMapResponses.p45_1;
|
|
5779
5779
|
var tmp;
|
|
5780
5780
|
if (isInterface(res, Reference)) {
|
|
5781
|
-
tmp = flatMapResponse($this_parseResponseBody, resolveResponse_0($this_parseResponseBody, res).af_1, name, $this$flatMapResponses.
|
|
5781
|
+
tmp = flatMapResponse($this_parseResponseBody, resolveResponse_0($this_parseResponseBody, res).af_1, name, $this$flatMapResponses.o45_1);
|
|
5782
5782
|
} else {
|
|
5783
5783
|
if (isInterface(res, Response_0)) {
|
|
5784
|
-
tmp = flatMapResponse($this_parseResponseBody, res, name, $this$flatMapResponses.
|
|
5784
|
+
tmp = flatMapResponse($this_parseResponseBody, res, name, $this$flatMapResponses.o45_1);
|
|
5785
5785
|
} else {
|
|
5786
5786
|
noWhenBranchMatchedException();
|
|
5787
5787
|
}
|