@flock/wirespec 0.18.4 → 0.18.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clikt-clikt-mordant.mjs +39 -39
- package/colormath-root-colormath.mjs +406 -406
- package/kotlin-kotlin-stdlib.mjs +5 -5
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +4585 -4585
- package/kotlin-rgxgen.mjs +1757 -1757
- package/kotlinx-io-kotlinx-io-core.mjs +397 -397
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1616 -1616
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1271 -1271
- package/mordant-mordant.mjs +1097 -1097
- package/package.json +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +189 -188
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +166 -166
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +218 -217
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +303 -292
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +111 -110
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +149 -146
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +25 -25
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +2974 -2934
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +475 -475
- package/wirespec-src-converter-openapi.mjs +365 -365
- package/wirespec-src-plugin-arguments.mjs +115 -115
- package/wirespec-src-plugin-cli.mjs +84 -84
- package/wirespec-src-plugin-npm.mjs +20 -20
- package/wirespec-src-tools-generator.mjs +2 -2
|
@@ -281,28 +281,28 @@ function toOperationList(_this__u8e3s4) {
|
|
|
281
281
|
var tmp;
|
|
282
282
|
switch (element.b3_1) {
|
|
283
283
|
case 0:
|
|
284
|
-
tmp = _this__u8e3s4.
|
|
284
|
+
tmp = _this__u8e3s4.t2y();
|
|
285
285
|
break;
|
|
286
286
|
case 1:
|
|
287
|
-
tmp = _this__u8e3s4.
|
|
287
|
+
tmp = _this__u8e3s4.v2y();
|
|
288
288
|
break;
|
|
289
289
|
case 2:
|
|
290
|
-
tmp = _this__u8e3s4.
|
|
290
|
+
tmp = _this__u8e3s4.u2y();
|
|
291
291
|
break;
|
|
292
292
|
case 3:
|
|
293
|
-
tmp = _this__u8e3s4.
|
|
293
|
+
tmp = _this__u8e3s4.w2y();
|
|
294
294
|
break;
|
|
295
295
|
case 4:
|
|
296
|
-
tmp = _this__u8e3s4.
|
|
296
|
+
tmp = _this__u8e3s4.x2y();
|
|
297
297
|
break;
|
|
298
298
|
case 5:
|
|
299
|
-
tmp = _this__u8e3s4.
|
|
299
|
+
tmp = _this__u8e3s4.y2y();
|
|
300
300
|
break;
|
|
301
301
|
case 6:
|
|
302
|
-
tmp = _this__u8e3s4.
|
|
302
|
+
tmp = _this__u8e3s4.z2y();
|
|
303
303
|
break;
|
|
304
304
|
case 7:
|
|
305
|
-
tmp = _this__u8e3s4.
|
|
305
|
+
tmp = _this__u8e3s4.a2z();
|
|
306
306
|
break;
|
|
307
307
|
default:
|
|
308
308
|
noWhenBranchMatchedException();
|
|
@@ -314,7 +314,7 @@ function toOperationList(_this__u8e3s4) {
|
|
|
314
314
|
return filterNotNullValues(result);
|
|
315
315
|
}
|
|
316
316
|
function toName(_this__u8e3s4) {
|
|
317
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
317
|
+
var tmp0_safe_receiver = _this__u8e3s4.h32();
|
|
318
318
|
var tmp;
|
|
319
319
|
if (tmp0_safe_receiver == null) {
|
|
320
320
|
tmp = null;
|
|
@@ -359,7 +359,7 @@ function sanitize(_this__u8e3s4) {
|
|
|
359
359
|
}
|
|
360
360
|
function flatMapRequests(_this__u8e3s4, f) {
|
|
361
361
|
// Inline function 'kotlin.collections.flatMap' call
|
|
362
|
-
var tmp0 = _this__u8e3s4.
|
|
362
|
+
var tmp0 = _this__u8e3s4.b2y();
|
|
363
363
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
364
364
|
var destination = ArrayList_init_$Create$();
|
|
365
365
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -367,7 +367,7 @@ function flatMapRequests(_this__u8e3s4, f) {
|
|
|
367
367
|
while (_iterator__ex2g4s.u()) {
|
|
368
368
|
var element = _iterator__ex2g4s.v();
|
|
369
369
|
// Inline function 'kotlin.collections.component1' call
|
|
370
|
-
var path = element.k1().
|
|
370
|
+
var path = element.k1().h2v_1;
|
|
371
371
|
// Inline function 'kotlin.collections.component2' call
|
|
372
372
|
var pathItem = element.l1();
|
|
373
373
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -400,19 +400,19 @@ function flatMapRequests(_this__u8e3s4, f) {
|
|
|
400
400
|
return destination_1;
|
|
401
401
|
}
|
|
402
402
|
function FlattenRequest(path, pathItem, method, operation) {
|
|
403
|
-
this.
|
|
404
|
-
this.
|
|
405
|
-
this.
|
|
406
|
-
this.
|
|
403
|
+
this.z3f_1 = path;
|
|
404
|
+
this.a3g_1 = pathItem;
|
|
405
|
+
this.b3g_1 = method;
|
|
406
|
+
this.c3g_1 = operation;
|
|
407
407
|
}
|
|
408
408
|
protoOf(FlattenRequest).toString = function () {
|
|
409
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
409
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.z3f_1) + ', pathItem=' + toString(this.a3g_1) + ', method=' + this.b3g_1.toString() + ', operation=' + toString(this.c3g_1) + ')';
|
|
410
410
|
};
|
|
411
411
|
protoOf(FlattenRequest).hashCode = function () {
|
|
412
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
413
|
-
result = imul(result, 31) + hashCode(this.
|
|
414
|
-
result = imul(result, 31) + this.
|
|
415
|
-
result = imul(result, 31) + hashCode(this.
|
|
412
|
+
var result = Path__hashCode_impl_go73kd(this.z3f_1);
|
|
413
|
+
result = imul(result, 31) + hashCode(this.a3g_1) | 0;
|
|
414
|
+
result = imul(result, 31) + this.b3g_1.hashCode() | 0;
|
|
415
|
+
result = imul(result, 31) + hashCode(this.c3g_1) | 0;
|
|
416
416
|
return result;
|
|
417
417
|
};
|
|
418
418
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -420,19 +420,19 @@ protoOf(FlattenRequest).equals = function (other) {
|
|
|
420
420
|
return true;
|
|
421
421
|
if (!(other instanceof FlattenRequest))
|
|
422
422
|
return false;
|
|
423
|
-
if (!(this.
|
|
423
|
+
if (!(this.z3f_1 === other.z3f_1))
|
|
424
424
|
return false;
|
|
425
|
-
if (!equals(this.
|
|
425
|
+
if (!equals(this.a3g_1, other.a3g_1))
|
|
426
426
|
return false;
|
|
427
|
-
if (!this.
|
|
427
|
+
if (!this.b3g_1.equals(other.b3g_1))
|
|
428
428
|
return false;
|
|
429
|
-
if (!equals(this.
|
|
429
|
+
if (!equals(this.c3g_1, other.c3g_1))
|
|
430
430
|
return false;
|
|
431
431
|
return true;
|
|
432
432
|
};
|
|
433
433
|
function flatMapResponses(_this__u8e3s4, f) {
|
|
434
434
|
// Inline function 'kotlin.collections.flatMap' call
|
|
435
|
-
var tmp0 = _this__u8e3s4.
|
|
435
|
+
var tmp0 = _this__u8e3s4.b2y();
|
|
436
436
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
437
437
|
var destination = ArrayList_init_$Create$();
|
|
438
438
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -440,7 +440,7 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
440
440
|
while (_iterator__ex2g4s.u()) {
|
|
441
441
|
var element = _iterator__ex2g4s.v();
|
|
442
442
|
// Inline function 'kotlin.collections.component1' call
|
|
443
|
-
var path = element.k1().
|
|
443
|
+
var path = element.k1().h2v_1;
|
|
444
444
|
// Inline function 'kotlin.collections.component2' call
|
|
445
445
|
var pathItem = element.l1();
|
|
446
446
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -466,7 +466,7 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
466
466
|
while (_iterator__ex2g4s_1.u()) {
|
|
467
467
|
var item = _iterator__ex2g4s_1.v();
|
|
468
468
|
// Inline function 'kotlin.collections.component1' call
|
|
469
|
-
var statusCode = item.k1().
|
|
469
|
+
var statusCode = item.k1().l2v_1;
|
|
470
470
|
// Inline function 'kotlin.collections.component2' call
|
|
471
471
|
var response = item.l1();
|
|
472
472
|
var tmp$ret$10 = new FlattenResponse(path, pathItem, method, operation, statusCode, response);
|
|
@@ -490,23 +490,23 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
490
490
|
return destination_2;
|
|
491
491
|
}
|
|
492
492
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response) {
|
|
493
|
-
this.
|
|
494
|
-
this.
|
|
495
|
-
this.
|
|
496
|
-
this.
|
|
497
|
-
this.
|
|
498
|
-
this.
|
|
493
|
+
this.d3g_1 = path;
|
|
494
|
+
this.e3g_1 = pathItem;
|
|
495
|
+
this.f3g_1 = method;
|
|
496
|
+
this.g3g_1 = operation;
|
|
497
|
+
this.h3g_1 = statusCode;
|
|
498
|
+
this.i3g_1 = response;
|
|
499
499
|
}
|
|
500
500
|
protoOf(FlattenResponse).toString = function () {
|
|
501
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
501
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.d3g_1) + ', pathItem=' + toString(this.e3g_1) + ', method=' + this.f3g_1.toString() + ', operation=' + toString(this.g3g_1) + ', statusCode=' + StatusCode__toString_impl_6caewy(this.h3g_1) + ', response=' + toString(this.i3g_1) + ')';
|
|
502
502
|
};
|
|
503
503
|
protoOf(FlattenResponse).hashCode = function () {
|
|
504
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
505
|
-
result = imul(result, 31) + hashCode(this.
|
|
506
|
-
result = imul(result, 31) + this.
|
|
507
|
-
result = imul(result, 31) + hashCode(this.
|
|
508
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
509
|
-
result = imul(result, 31) + hashCode(this.
|
|
504
|
+
var result = Path__hashCode_impl_go73kd(this.d3g_1);
|
|
505
|
+
result = imul(result, 31) + hashCode(this.e3g_1) | 0;
|
|
506
|
+
result = imul(result, 31) + this.f3g_1.hashCode() | 0;
|
|
507
|
+
result = imul(result, 31) + hashCode(this.g3g_1) | 0;
|
|
508
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.h3g_1) | 0;
|
|
509
|
+
result = imul(result, 31) + hashCode(this.i3g_1) | 0;
|
|
510
510
|
return result;
|
|
511
511
|
};
|
|
512
512
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -514,17 +514,17 @@ protoOf(FlattenResponse).equals = function (other) {
|
|
|
514
514
|
return true;
|
|
515
515
|
if (!(other instanceof FlattenResponse))
|
|
516
516
|
return false;
|
|
517
|
-
if (!(this.
|
|
517
|
+
if (!(this.d3g_1 === other.d3g_1))
|
|
518
518
|
return false;
|
|
519
|
-
if (!equals(this.
|
|
519
|
+
if (!equals(this.e3g_1, other.e3g_1))
|
|
520
520
|
return false;
|
|
521
|
-
if (!this.
|
|
521
|
+
if (!this.f3g_1.equals(other.f3g_1))
|
|
522
522
|
return false;
|
|
523
|
-
if (!equals(this.
|
|
523
|
+
if (!equals(this.g3g_1, other.g3g_1))
|
|
524
524
|
return false;
|
|
525
|
-
if (!(this.
|
|
525
|
+
if (!(this.h3g_1 === other.h3g_1))
|
|
526
526
|
return false;
|
|
527
|
-
if (!equals(this.
|
|
527
|
+
if (!equals(this.i3g_1, other.i3g_1))
|
|
528
528
|
return false;
|
|
529
529
|
return true;
|
|
530
530
|
};
|
|
@@ -533,7 +533,7 @@ function toDict(_this__u8e3s4, isNullable) {
|
|
|
533
533
|
}
|
|
534
534
|
function getReference(_this__u8e3s4) {
|
|
535
535
|
// Inline function 'kotlin.let' call
|
|
536
|
-
var it = split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
536
|
+
var it = split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.m32()), ['/']);
|
|
537
537
|
var tmp;
|
|
538
538
|
if (_this__u8e3s4 instanceof OpenAPIV2Reference) {
|
|
539
539
|
tmp = getOrNull(it, 2);
|
|
@@ -547,7 +547,7 @@ function getReference(_this__u8e3s4) {
|
|
|
547
547
|
var tmp0_elvis_lhs = tmp;
|
|
548
548
|
var tmp_0;
|
|
549
549
|
if (tmp0_elvis_lhs == null) {
|
|
550
|
-
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
550
|
+
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe(_this__u8e3s4.m32());
|
|
551
551
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
552
552
|
} else {
|
|
553
553
|
tmp_0 = tmp0_elvis_lhs;
|
|
@@ -562,8 +562,8 @@ function isParam(_this__u8e3s4) {
|
|
|
562
562
|
}
|
|
563
563
|
function jsonDefault$lambda($strict) {
|
|
564
564
|
return function ($this$Json) {
|
|
565
|
-
$this$Json.
|
|
566
|
-
$this$Json.
|
|
565
|
+
$this$Json.n2k_1 = true;
|
|
566
|
+
$this$Json.l2k_1 = !$strict;
|
|
567
567
|
return Unit_instance;
|
|
568
568
|
};
|
|
569
569
|
}
|
|
@@ -723,25 +723,25 @@ function toDescriptionAnnotationList(_this__u8e3s4) {
|
|
|
723
723
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
724
724
|
}
|
|
725
725
|
function LinkInfo(name, operationId, operationRef, parameters, requestBody, description, serverUrl) {
|
|
726
|
-
this.
|
|
727
|
-
this.
|
|
728
|
-
this.
|
|
729
|
-
this.
|
|
730
|
-
this.
|
|
731
|
-
this.
|
|
732
|
-
this.
|
|
726
|
+
this.j3g_1 = name;
|
|
727
|
+
this.k3g_1 = operationId;
|
|
728
|
+
this.l3g_1 = operationRef;
|
|
729
|
+
this.m3g_1 = parameters;
|
|
730
|
+
this.n3g_1 = requestBody;
|
|
731
|
+
this.o3g_1 = description;
|
|
732
|
+
this.p3g_1 = serverUrl;
|
|
733
733
|
}
|
|
734
734
|
protoOf(LinkInfo).toString = function () {
|
|
735
|
-
return 'LinkInfo(name=' + this.
|
|
735
|
+
return 'LinkInfo(name=' + this.j3g_1 + ', operationId=' + this.k3g_1 + ', operationRef=' + this.l3g_1 + ', parameters=' + toString(this.m3g_1) + ', requestBody=' + this.n3g_1 + ', description=' + this.o3g_1 + ', serverUrl=' + this.p3g_1 + ')';
|
|
736
736
|
};
|
|
737
737
|
protoOf(LinkInfo).hashCode = function () {
|
|
738
|
-
var result = getStringHashCode(this.
|
|
739
|
-
result = imul(result, 31) + (this.j3g_1 == null ? 0 : getStringHashCode(this.j3g_1)) | 0;
|
|
738
|
+
var result = getStringHashCode(this.j3g_1);
|
|
740
739
|
result = imul(result, 31) + (this.k3g_1 == null ? 0 : getStringHashCode(this.k3g_1)) | 0;
|
|
741
|
-
result = imul(result, 31) +
|
|
742
|
-
result = imul(result, 31) + (this.m3g_1
|
|
740
|
+
result = imul(result, 31) + (this.l3g_1 == null ? 0 : getStringHashCode(this.l3g_1)) | 0;
|
|
741
|
+
result = imul(result, 31) + hashCode(this.m3g_1) | 0;
|
|
743
742
|
result = imul(result, 31) + (this.n3g_1 == null ? 0 : getStringHashCode(this.n3g_1)) | 0;
|
|
744
743
|
result = imul(result, 31) + (this.o3g_1 == null ? 0 : getStringHashCode(this.o3g_1)) | 0;
|
|
744
|
+
result = imul(result, 31) + (this.p3g_1 == null ? 0 : getStringHashCode(this.p3g_1)) | 0;
|
|
745
745
|
return result;
|
|
746
746
|
};
|
|
747
747
|
protoOf(LinkInfo).equals = function (other) {
|
|
@@ -749,20 +749,20 @@ protoOf(LinkInfo).equals = function (other) {
|
|
|
749
749
|
return true;
|
|
750
750
|
if (!(other instanceof LinkInfo))
|
|
751
751
|
return false;
|
|
752
|
-
if (!(this.
|
|
753
|
-
return false;
|
|
754
|
-
if (!(this.j3g_1 == other.j3g_1))
|
|
752
|
+
if (!(this.j3g_1 === other.j3g_1))
|
|
755
753
|
return false;
|
|
756
754
|
if (!(this.k3g_1 == other.k3g_1))
|
|
757
755
|
return false;
|
|
758
|
-
if (!
|
|
756
|
+
if (!(this.l3g_1 == other.l3g_1))
|
|
759
757
|
return false;
|
|
760
|
-
if (!(this.m3g_1
|
|
758
|
+
if (!equals(this.m3g_1, other.m3g_1))
|
|
761
759
|
return false;
|
|
762
760
|
if (!(this.n3g_1 == other.n3g_1))
|
|
763
761
|
return false;
|
|
764
762
|
if (!(this.o3g_1 == other.o3g_1))
|
|
765
763
|
return false;
|
|
764
|
+
if (!(this.p3g_1 == other.p3g_1))
|
|
765
|
+
return false;
|
|
766
766
|
return true;
|
|
767
767
|
};
|
|
768
768
|
function findLinks(_this__u8e3s4) {
|
|
@@ -796,8 +796,8 @@ function findLinks(_this__u8e3s4) {
|
|
|
796
796
|
}
|
|
797
797
|
function toAnnotation(_this__u8e3s4) {
|
|
798
798
|
_init_properties_Utils_kt__jo07cx();
|
|
799
|
-
var params = mutableListOf([new Parameter('default', new Single(_this__u8e3s4.
|
|
800
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
799
|
+
var params = mutableListOf([new Parameter('default', new Single(_this__u8e3s4.j3g_1))]);
|
|
800
|
+
var tmp0_safe_receiver = _this__u8e3s4.k3g_1;
|
|
801
801
|
if (tmp0_safe_receiver == null)
|
|
802
802
|
null;
|
|
803
803
|
else {
|
|
@@ -806,7 +806,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
806
806
|
var element = new Parameter('operationId', new Single(tmp0_safe_receiver));
|
|
807
807
|
params.x(element);
|
|
808
808
|
}
|
|
809
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
809
|
+
var tmp1_safe_receiver = _this__u8e3s4.l3g_1;
|
|
810
810
|
if (tmp1_safe_receiver == null)
|
|
811
811
|
null;
|
|
812
812
|
else {
|
|
@@ -816,9 +816,9 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
816
816
|
params.x(element_0);
|
|
817
817
|
}
|
|
818
818
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
819
|
-
if (!_this__u8e3s4.
|
|
819
|
+
if (!_this__u8e3s4.m3g_1.r()) {
|
|
820
820
|
// Inline function 'kotlin.collections.map' call
|
|
821
|
-
var this_0 = _this__u8e3s4.
|
|
821
|
+
var this_0 = _this__u8e3s4.m3g_1;
|
|
822
822
|
// Inline function 'kotlin.collections.mapTo' call
|
|
823
823
|
var destination = ArrayList_init_$Create$_0(this_0.a1());
|
|
824
824
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -836,7 +836,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
836
836
|
var element_1 = new Parameter('parameters', new Dict_0(destination));
|
|
837
837
|
params.x(element_1);
|
|
838
838
|
}
|
|
839
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
839
|
+
var tmp2_safe_receiver = _this__u8e3s4.n3g_1;
|
|
840
840
|
if (tmp2_safe_receiver == null)
|
|
841
841
|
null;
|
|
842
842
|
else {
|
|
@@ -845,7 +845,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
845
845
|
var element_2 = new Parameter('requestBody', new Single(tmp2_safe_receiver));
|
|
846
846
|
params.x(element_2);
|
|
847
847
|
}
|
|
848
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
848
|
+
var tmp3_safe_receiver = _this__u8e3s4.o3g_1;
|
|
849
849
|
if (tmp3_safe_receiver == null)
|
|
850
850
|
null;
|
|
851
851
|
else {
|
|
@@ -854,7 +854,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
854
854
|
var element_3 = new Parameter('description', new Single(tmp3_safe_receiver));
|
|
855
855
|
params.x(element_3);
|
|
856
856
|
}
|
|
857
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
857
|
+
var tmp4_safe_receiver = _this__u8e3s4.p3g_1;
|
|
858
858
|
if (tmp4_safe_receiver == null)
|
|
859
859
|
null;
|
|
860
860
|
else {
|
|
@@ -1007,7 +1007,7 @@ function filterNotNullValues(_this__u8e3s4) {
|
|
|
1007
1007
|
}
|
|
1008
1008
|
function json$lambda($this$Json) {
|
|
1009
1009
|
_init_properties_Utils_kt__jo07cx();
|
|
1010
|
-
$this$Json.
|
|
1010
|
+
$this$Json.n2k_1 = true;
|
|
1011
1011
|
return Unit_instance;
|
|
1012
1012
|
}
|
|
1013
1013
|
function className$lambda(it) {
|
|
@@ -1315,7 +1315,7 @@ function toProperties($this, _this__u8e3s4) {
|
|
|
1315
1315
|
var it = toSchemaOrReference($this, _this__u8e3s4.bp_1);
|
|
1316
1316
|
var tmp_0;
|
|
1317
1317
|
if (it instanceof OpenAPIV2Schema) {
|
|
1318
|
-
tmp_0 = it.
|
|
1318
|
+
tmp_0 = it.m30(VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription(_this__u8e3s4.zo_1));
|
|
1319
1319
|
} else {
|
|
1320
1320
|
if (it instanceof OpenAPIV2Reference) {
|
|
1321
1321
|
tmp_0 = it;
|
|
@@ -1556,7 +1556,7 @@ function emitParameter($this, _this__u8e3s4, location) {
|
|
|
1556
1556
|
tmp_0 = emit;
|
|
1557
1557
|
} else {
|
|
1558
1558
|
if (emit instanceof OpenAPIV2Schema) {
|
|
1559
|
-
tmp_0 = emit.
|
|
1559
|
+
tmp_0 = emit.u2z_1;
|
|
1560
1560
|
} else {
|
|
1561
1561
|
noWhenBranchMatchedException();
|
|
1562
1562
|
}
|
|
@@ -1742,10 +1742,10 @@ function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
|
1742
1742
|
}
|
|
1743
1743
|
function OpenAPIV2Emitter() {
|
|
1744
1744
|
OpenAPIV2Emitter_instance = this;
|
|
1745
|
-
this.
|
|
1745
|
+
this.q3g_1 = FileExtension_JSON_getInstance();
|
|
1746
1746
|
}
|
|
1747
1747
|
protoOf(OpenAPIV2Emitter).eq = function () {
|
|
1748
|
-
return this.
|
|
1748
|
+
return this.q3g_1;
|
|
1749
1749
|
};
|
|
1750
1750
|
protoOf(OpenAPIV2Emitter).on = function (ast, logger) {
|
|
1751
1751
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
@@ -1763,21 +1763,21 @@ protoOf(OpenAPIV2Emitter).on = function (ast, logger) {
|
|
|
1763
1763
|
}
|
|
1764
1764
|
// Inline function 'kotlin.let' call
|
|
1765
1765
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
1766
|
-
var tmp = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().
|
|
1766
|
+
var tmp = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().q3g_1.nq_1;
|
|
1767
1767
|
var tmp0_0 = get_json();
|
|
1768
1768
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
1769
|
-
var value = OpenAPIV2Emitter_getInstance().
|
|
1769
|
+
var value = OpenAPIV2Emitter_getInstance().r3g(it, logger);
|
|
1770
1770
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
1771
|
-
var this_1 = tmp0_0.
|
|
1771
|
+
var this_1 = tmp0_0.e23();
|
|
1772
1772
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1773
1773
|
var this_2 = serializer(this_1, createKType(getKClass(OpenAPIV2Model), arrayOf([]), false));
|
|
1774
1774
|
var tmp$ret$5 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
1775
|
-
var tmp$ret$6 = tmp0_0.
|
|
1775
|
+
var tmp$ret$6 = tmp0_0.r2j(tmp$ret$5, value);
|
|
1776
1776
|
// Inline function 'kotlin.let' call
|
|
1777
1777
|
var it_0 = new Emitted(tmp, tmp$ret$6);
|
|
1778
1778
|
return nonEmptyListOf(it_0, []);
|
|
1779
1779
|
};
|
|
1780
|
-
protoOf(OpenAPIV2Emitter).
|
|
1780
|
+
protoOf(OpenAPIV2Emitter).r3g = function (statements, logger) {
|
|
1781
1781
|
var tmp0_info = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, '0.0.0');
|
|
1782
1782
|
var tmp1_consumes = listOf('application/json');
|
|
1783
1783
|
var tmp2_produces = listOf('application/json');
|
|
@@ -1793,15 +1793,15 @@ function OpenAPIV2Emitter_getInstance() {
|
|
|
1793
1793
|
}
|
|
1794
1794
|
function OpenAPIV2Parser$parse$lambda($strict) {
|
|
1795
1795
|
return function (it) {
|
|
1796
|
-
return new NonEmptyList(OpenAPIV2Parser_instance.
|
|
1796
|
+
return new NonEmptyList(OpenAPIV2Parser_instance.s3g((new OpenAPIV2(jsonDefault($strict))).h2x(it)));
|
|
1797
1797
|
};
|
|
1798
1798
|
}
|
|
1799
1799
|
function OpenAPIV2Parser() {
|
|
1800
1800
|
}
|
|
1801
|
-
protoOf(OpenAPIV2Parser).
|
|
1801
|
+
protoOf(OpenAPIV2Parser).t3g = function (moduleContent, strict) {
|
|
1802
1802
|
return parseOpenApi(moduleContent, OpenAPIV2Parser$parse$lambda(strict));
|
|
1803
1803
|
};
|
|
1804
|
-
protoOf(OpenAPIV2Parser).
|
|
1804
|
+
protoOf(OpenAPIV2Parser).s3g = function (_this__u8e3s4) {
|
|
1805
1805
|
// Inline function 'kotlin.collections.reduce' call
|
|
1806
1806
|
var iterator = listOf_0([parseEndpoints(_this__u8e3s4), parseParameters(_this__u8e3s4), parseRequestBody(_this__u8e3s4), parseResponseBody(_this__u8e3s4), parseDefinitions(_this__u8e3s4)]).t();
|
|
1807
1807
|
if (!iterator.u())
|
|
@@ -1837,7 +1837,7 @@ function OpenAPIV2Parser_getInstance() {
|
|
|
1837
1837
|
}
|
|
1838
1838
|
function parseEndpoints(_this__u8e3s4) {
|
|
1839
1839
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1840
|
-
var tmp0 = _this__u8e3s4.
|
|
1840
|
+
var tmp0 = _this__u8e3s4.w2x_1;
|
|
1841
1841
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1842
1842
|
var destination = ArrayList_init_$Create$();
|
|
1843
1843
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1845,7 +1845,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1845
1845
|
while (_iterator__ex2g4s.u()) {
|
|
1846
1846
|
var element = _iterator__ex2g4s.v();
|
|
1847
1847
|
// Inline function 'kotlin.collections.component1' call
|
|
1848
|
-
var path = element.k1().
|
|
1848
|
+
var path = element.k1().h2v_1;
|
|
1849
1849
|
// Inline function 'kotlin.collections.component2' call
|
|
1850
1850
|
var pathItem = element.l1();
|
|
1851
1851
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1871,7 +1871,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1871
1871
|
var element_0 = _iterator__ex2g4s_1.v();
|
|
1872
1872
|
var method_0 = element_0.ne();
|
|
1873
1873
|
var operation_0 = element_0.oe();
|
|
1874
|
-
var parameters = plus_0(resolveParameters(_this__u8e3s4, pathItem.
|
|
1874
|
+
var parameters = plus_0(resolveParameters(_this__u8e3s4, pathItem.f2y_1), resolveParameters(_this__u8e3s4, operation_0.u31_1));
|
|
1875
1875
|
var segments = toSegments(path, parameters);
|
|
1876
1876
|
var tmp0_elvis_lhs = toName(operation_0);
|
|
1877
1877
|
var name = tmp0_elvis_lhs == null ? toName_0(path) + method_0.a3_1 : tmp0_elvis_lhs;
|
|
@@ -1881,7 +1881,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1881
1881
|
var _iterator__ex2g4s_2 = parameters.t();
|
|
1882
1882
|
while (_iterator__ex2g4s_2.u()) {
|
|
1883
1883
|
var element_1 = _iterator__ex2g4s_2.v();
|
|
1884
|
-
if (element_1.
|
|
1884
|
+
if (element_1.l31_1.equals(OpenAPIV2ParameterLocation_QUERY_getInstance())) {
|
|
1885
1885
|
destination_2.x(element_1);
|
|
1886
1886
|
}
|
|
1887
1887
|
}
|
|
@@ -1901,7 +1901,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1901
1901
|
var _iterator__ex2g4s_4 = parameters.t();
|
|
1902
1902
|
while (_iterator__ex2g4s_4.u()) {
|
|
1903
1903
|
var element_2 = _iterator__ex2g4s_4.v();
|
|
1904
|
-
if (element_2.
|
|
1904
|
+
if (element_2.l31_1.equals(OpenAPIV2ParameterLocation_HEADER_getInstance())) {
|
|
1905
1905
|
destination_4.x(element_2);
|
|
1906
1906
|
}
|
|
1907
1907
|
}
|
|
@@ -1921,7 +1921,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1921
1921
|
var _iterator__ex2g4s_6 = parameters.t();
|
|
1922
1922
|
while (_iterator__ex2g4s_6.u()) {
|
|
1923
1923
|
var element_3 = _iterator__ex2g4s_6.v();
|
|
1924
|
-
if (element_3.
|
|
1924
|
+
if (element_3.l31_1.equals(OpenAPIV2ParameterLocation_BODY_getInstance())) {
|
|
1925
1925
|
destination_6.x(element_3);
|
|
1926
1926
|
}
|
|
1927
1927
|
}
|
|
@@ -1932,10 +1932,10 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1932
1932
|
while (_iterator__ex2g4s_7.u()) {
|
|
1933
1933
|
var element_4 = _iterator__ex2g4s_7.v();
|
|
1934
1934
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1935
|
-
var tmp0_elvis_lhs_0 = _this__u8e3s4.
|
|
1935
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.p2x_1;
|
|
1936
1936
|
var tmp = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1937
1937
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1938
|
-
var tmp0_elvis_lhs_1 = operation_0.
|
|
1938
|
+
var tmp0_elvis_lhs_1 = operation_0.s31_1;
|
|
1939
1939
|
var tmp$ret$25 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1940
1940
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
1941
1941
|
var this_1 = distinct(plus_0(tmp, tmp$ret$25));
|
|
@@ -1953,7 +1953,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1953
1953
|
while (_iterator__ex2g4s_8.u()) {
|
|
1954
1954
|
var item_2 = _iterator__ex2g4s_8.v();
|
|
1955
1955
|
var isNullable = false;
|
|
1956
|
-
var schema = element_4.
|
|
1956
|
+
var schema = element_4.m31_1;
|
|
1957
1957
|
var tmp_1;
|
|
1958
1958
|
if (schema instanceof OpenAPIV2Reference) {
|
|
1959
1959
|
tmp_1 = toReference(_this__u8e3s4, schema, isNullable);
|
|
@@ -1984,7 +1984,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1984
1984
|
}
|
|
1985
1985
|
var requests = tmp_2;
|
|
1986
1986
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1987
|
-
var tmp0_elvis_lhs_2 = operation_0.
|
|
1987
|
+
var tmp0_elvis_lhs_2 = operation_0.w31_1;
|
|
1988
1988
|
// Inline function 'kotlin.collections.mapValues' call
|
|
1989
1989
|
var this_3 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
1990
1990
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
@@ -2005,14 +2005,14 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2005
2005
|
while (_iterator__ex2g4s_10.u()) {
|
|
2006
2006
|
var element_6 = _iterator__ex2g4s_10.v();
|
|
2007
2007
|
// Inline function 'kotlin.collections.component1' call
|
|
2008
|
-
var status = element_6.k1().
|
|
2008
|
+
var status = element_6.k1().l2v_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.q2x_1;
|
|
2013
2013
|
var tmp_4 = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
|
|
2014
2014
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2015
|
-
var tmp0_elvis_lhs_4 = operation_0.
|
|
2015
|
+
var tmp0_elvis_lhs_4 = operation_0.t31_1;
|
|
2016
2016
|
var tmp$ret$46 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
2017
2017
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
2018
2018
|
var this_4 = distinct(plus_0(tmp_4, tmp$ret$46));
|
|
@@ -2029,9 +2029,9 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2029
2029
|
var _iterator__ex2g4s_11 = this_5.t();
|
|
2030
2030
|
while (_iterator__ex2g4s_11.u()) {
|
|
2031
2031
|
var item_3 = _iterator__ex2g4s_11.v();
|
|
2032
|
-
var tmp2_annotations = toDescriptionAnnotationList(res.
|
|
2032
|
+
var tmp2_annotations = toDescriptionAnnotationList(res.s32_1);
|
|
2033
2033
|
var tmp3_status = _StatusCode___get_value__impl__we50mu(status);
|
|
2034
|
-
var tmp0_safe_receiver = res.
|
|
2034
|
+
var tmp0_safe_receiver = res.t32_1;
|
|
2035
2035
|
var tmp_6;
|
|
2036
2036
|
if (tmp0_safe_receiver == null) {
|
|
2037
2037
|
tmp_6 = null;
|
|
@@ -2055,7 +2055,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2055
2055
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2056
2056
|
var tmp0_elvis_lhs_5 = tmp_6;
|
|
2057
2057
|
var tmp4_headers = tmp0_elvis_lhs_5 == null ? emptyList() : tmp0_elvis_lhs_5;
|
|
2058
|
-
var tmp1_safe_receiver = res.
|
|
2058
|
+
var tmp1_safe_receiver = res.q32_1;
|
|
2059
2059
|
var tmp_7;
|
|
2060
2060
|
if (tmp1_safe_receiver == 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_0.
|
|
2095
|
+
var list_2 = listOf(new Endpoint(null, toDescriptionAnnotationList(operation_0.a32_1), new DefinitionIdentifier(sanitize(name)), method_0, segments, query, headers, requests, responses));
|
|
2096
2096
|
addAll(destination_1, list_2);
|
|
2097
2097
|
}
|
|
2098
2098
|
var list_3 = destination_1;
|
|
@@ -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.r2x_1;
|
|
2115
2115
|
// Inline function 'arrow.core.filterIsInstance' call
|
|
2116
2116
|
// Inline function 'kotlin.collections.filterValues' call
|
|
2117
2117
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
@@ -2133,7 +2133,7 @@ function parseDefinitions(_this__u8e3s4) {
|
|
|
2133
2133
|
var _iterator__ex2g4s_0 = tmp0.j1().t();
|
|
2134
2134
|
while (_iterator__ex2g4s_0.u()) {
|
|
2135
2135
|
var element = _iterator__ex2g4s_0.v();
|
|
2136
|
-
var tmp0_subject = element.l1().
|
|
2136
|
+
var tmp0_subject = element.l1().x2z_1;
|
|
2137
2137
|
var tmp_0;
|
|
2138
2138
|
if (tmp0_subject instanceof OpenAPIV2Boolean) {
|
|
2139
2139
|
tmp_0 = true;
|
|
@@ -2226,7 +2226,7 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
2226
2226
|
var _iterator__ex2g4s_0 = parameters.t();
|
|
2227
2227
|
while (_iterator__ex2g4s_0.u()) {
|
|
2228
2228
|
var element = _iterator__ex2g4s_0.v();
|
|
2229
|
-
if (element.
|
|
2229
|
+
if (element.n31_1 === param) {
|
|
2230
2230
|
tmp$ret$2 = element;
|
|
2231
2231
|
break $l$block;
|
|
2232
2232
|
}
|
|
@@ -2270,13 +2270,13 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
2270
2270
|
function toField(_this__u8e3s4, parameter, name) {
|
|
2271
2271
|
// Inline function 'kotlin.let' call
|
|
2272
2272
|
var schema = resolve_1(_this__u8e3s4, parameter);
|
|
2273
|
-
var tmp0_elvis_lhs = parameter.
|
|
2273
|
+
var tmp0_elvis_lhs = parameter.s30_1;
|
|
2274
2274
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
2275
2275
|
var tmp;
|
|
2276
|
-
if (!(parameter.
|
|
2277
|
-
tmp = new Custom(sanitize(className([name, 'Parameter', schema.
|
|
2276
|
+
if (!(parameter.j31_1 == null)) {
|
|
2277
|
+
tmp = new Custom(sanitize(className([name, 'Parameter', schema.n31_1])), isNullable);
|
|
2278
2278
|
} else {
|
|
2279
|
-
var tmp1_subject = schema.
|
|
2279
|
+
var tmp1_subject = schema.t30_1;
|
|
2280
2280
|
var tmp_0;
|
|
2281
2281
|
switch (tmp1_subject == null ? -1 : tmp1_subject.b3_1) {
|
|
2282
2282
|
case 0:
|
|
@@ -2289,7 +2289,7 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2289
2289
|
tmp_0 = new Primitive(primitive, isNullable);
|
|
2290
2290
|
break;
|
|
2291
2291
|
case 4:
|
|
2292
|
-
var tmp2_safe_receiver = schema.
|
|
2292
|
+
var tmp2_safe_receiver = schema.u30_1;
|
|
2293
2293
|
var tmp_1;
|
|
2294
2294
|
if (tmp2_safe_receiver == null) {
|
|
2295
2295
|
tmp_1 = null;
|
|
@@ -2336,8 +2336,8 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2336
2336
|
}
|
|
2337
2337
|
// Inline function 'kotlin.let' call
|
|
2338
2338
|
var it = tmp;
|
|
2339
|
-
var tmp0_identifier = new FieldIdentifier(parameter.
|
|
2340
|
-
var tmp1_annotations = toDescriptionAnnotationList(parameter.
|
|
2339
|
+
var tmp0_identifier = new FieldIdentifier(parameter.n31_1);
|
|
2340
|
+
var tmp1_annotations = toDescriptionAnnotationList(parameter.r30_1);
|
|
2341
2341
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
2342
2342
|
}
|
|
2343
2343
|
function toReference(_this__u8e3s4, reference, isNullable) {
|
|
@@ -2345,8 +2345,8 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2345
2345
|
var refOrSchema = resolveOpenAPIV2Schema(_this__u8e3s4, reference);
|
|
2346
2346
|
var schema = resolve_2(_this__u8e3s4, refOrSchema);
|
|
2347
2347
|
var tmp;
|
|
2348
|
-
if (exists(schema.
|
|
2349
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2348
|
+
if (exists(schema.x2z_1)) {
|
|
2349
|
+
var additionalProperties = ensureNotNull(schema.x2z_1);
|
|
2350
2350
|
var tmp_0;
|
|
2351
2351
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
2352
2352
|
tmp_0 = new Dict(new Any(false), isNullable);
|
|
@@ -2362,15 +2362,15 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2362
2362
|
}
|
|
2363
2363
|
}
|
|
2364
2364
|
tmp = tmp_0;
|
|
2365
|
-
} else if (!(schema.
|
|
2365
|
+
} else if (!(schema.t2z_1 == null)) {
|
|
2366
2366
|
tmp = new Custom(sanitize(className([getReference(reference)])), isNullable);
|
|
2367
|
-
} else if (isPrimitive(schema.
|
|
2367
|
+
} else if (isPrimitive(schema.g2z_1)) {
|
|
2368
2368
|
tmp = new Primitive(toPrimitive(schema), isNullable);
|
|
2369
2369
|
} else {
|
|
2370
|
-
var tmp0_subject = schema.
|
|
2370
|
+
var tmp0_subject = schema.g2z_1;
|
|
2371
2371
|
var tmp_1;
|
|
2372
2372
|
if ((tmp0_subject == null ? -1 : tmp0_subject.b3_1) === 4) {
|
|
2373
|
-
var items = schema.
|
|
2373
|
+
var items = schema.u2z_1;
|
|
2374
2374
|
var tmp_2;
|
|
2375
2375
|
if (items instanceof OpenAPIV2Reference) {
|
|
2376
2376
|
tmp_2 = toIterable(toReference(_this__u8e3s4, items, false), isNullable);
|
|
@@ -2379,7 +2379,7 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2379
2379
|
tmp_2 = toIterable(toReference_0(_this__u8e3s4, items, className([getReference(reference), 'Array']), isNullable), isNullable);
|
|
2380
2380
|
} else {
|
|
2381
2381
|
if (items == null) {
|
|
2382
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.
|
|
2382
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.k32_1);
|
|
2383
2383
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2384
2384
|
} else {
|
|
2385
2385
|
noWhenBranchMatchedException();
|
|
@@ -2412,44 +2412,44 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2412
2412
|
var tmp_3;
|
|
2413
2413
|
var tmp_4;
|
|
2414
2414
|
var tmp_5;
|
|
2415
|
-
var tmp0_safe_receiver = schema.
|
|
2415
|
+
var tmp0_safe_receiver = schema.v2z_1;
|
|
2416
2416
|
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1()) === 1) {
|
|
2417
|
-
var tmp_6 = first(ensureNotNull(schema.
|
|
2417
|
+
var tmp_6 = first(ensureNotNull(schema.v2z_1));
|
|
2418
2418
|
tmp_5 = tmp_6 instanceof OpenAPIV2Reference;
|
|
2419
2419
|
} else {
|
|
2420
2420
|
tmp_5 = false;
|
|
2421
2421
|
}
|
|
2422
2422
|
if (tmp_5) {
|
|
2423
|
-
tmp_4 = schema.
|
|
2423
|
+
tmp_4 = schema.w2z_1 == null;
|
|
2424
2424
|
} else {
|
|
2425
2425
|
tmp_4 = false;
|
|
2426
2426
|
}
|
|
2427
2427
|
if (tmp_4) {
|
|
2428
|
-
tmp_3 = schema.
|
|
2428
|
+
tmp_3 = schema.t2z_1 == null;
|
|
2429
2429
|
} else {
|
|
2430
2430
|
tmp_3 = false;
|
|
2431
2431
|
}
|
|
2432
2432
|
if (tmp_3) {
|
|
2433
|
-
tmp_2 = schema.
|
|
2433
|
+
tmp_2 = schema.g2z_1 == null;
|
|
2434
2434
|
} else {
|
|
2435
2435
|
tmp_2 = false;
|
|
2436
2436
|
}
|
|
2437
2437
|
if (tmp_2) {
|
|
2438
|
-
tmp_1 = schema.
|
|
2438
|
+
tmp_1 = schema.u2z_1 == null;
|
|
2439
2439
|
} else {
|
|
2440
2440
|
tmp_1 = false;
|
|
2441
2441
|
}
|
|
2442
2442
|
if (tmp_1) {
|
|
2443
|
-
tmp_0 = schema.
|
|
2443
|
+
tmp_0 = schema.x2z_1 == null;
|
|
2444
2444
|
} else {
|
|
2445
2445
|
tmp_0 = false;
|
|
2446
2446
|
}
|
|
2447
2447
|
if (tmp_0) {
|
|
2448
|
-
var tmp_7 = first(ensureNotNull(schema.
|
|
2448
|
+
var tmp_7 = first(ensureNotNull(schema.v2z_1));
|
|
2449
2449
|
tmp = toReference(_this__u8e3s4, tmp_7 instanceof OpenAPIV2Reference ? tmp_7 : THROW_CCE(), isNullable);
|
|
2450
2450
|
} else {
|
|
2451
|
-
if (!(schema.
|
|
2452
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2451
|
+
if (!(schema.x2z_1 == null)) {
|
|
2452
|
+
var additionalProperties = ensureNotNull(schema.x2z_1);
|
|
2453
2453
|
var tmp_8;
|
|
2454
2454
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
2455
2455
|
tmp_8 = new Dict(new Any(false), isNullable);
|
|
@@ -2460,7 +2460,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2460
2460
|
if (additionalProperties instanceof OpenAPIV2Schema) {
|
|
2461
2461
|
// Inline function 'kotlin.takeIf' call
|
|
2462
2462
|
var tmp_9;
|
|
2463
|
-
if (isPrimitive(additionalProperties.
|
|
2463
|
+
if (isPrimitive(additionalProperties.g2z_1) || !(additionalProperties.w2z_1 == null)) {
|
|
2464
2464
|
tmp_9 = additionalProperties;
|
|
2465
2465
|
} else {
|
|
2466
2466
|
tmp_9 = null;
|
|
@@ -2482,16 +2482,16 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2482
2482
|
}
|
|
2483
2483
|
tmp = tmp_8;
|
|
2484
2484
|
} else {
|
|
2485
|
-
if (!(schema.
|
|
2485
|
+
if (!(schema.t2z_1 == null)) {
|
|
2486
2486
|
var tmp_11;
|
|
2487
|
-
if (!(schema.
|
|
2487
|
+
if (!(schema.x2z_1 == null)) {
|
|
2488
2488
|
tmp_11 = new Dict(new Custom(sanitize(name), false), isNullable);
|
|
2489
2489
|
} else {
|
|
2490
2490
|
tmp_11 = new Custom(sanitize(name), isNullable);
|
|
2491
2491
|
}
|
|
2492
2492
|
tmp = tmp_11;
|
|
2493
2493
|
} else {
|
|
2494
|
-
var tmp3_subject = schema.
|
|
2494
|
+
var tmp3_subject = schema.g2z_1;
|
|
2495
2495
|
var tmp_12;
|
|
2496
2496
|
switch (tmp3_subject == null ? -1 : tmp3_subject.b3_1) {
|
|
2497
2497
|
case 0:
|
|
@@ -2499,7 +2499,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2499
2499
|
case 1:
|
|
2500
2500
|
case 3:
|
|
2501
2501
|
var tmp_13;
|
|
2502
|
-
if (!(schema.
|
|
2502
|
+
if (!(schema.x2z_1 == null)) {
|
|
2503
2503
|
tmp_13 = new Dict(new Primitive(toPrimitive(schema), false), isNullable);
|
|
2504
2504
|
} else {
|
|
2505
2505
|
tmp_13 = new Primitive(toPrimitive(schema), isNullable);
|
|
@@ -2510,17 +2510,17 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2510
2510
|
case -1:
|
|
2511
2511
|
case 5:
|
|
2512
2512
|
var tmp_14;
|
|
2513
|
-
var tmp_15 = schema.
|
|
2513
|
+
var tmp_15 = schema.x2z_1;
|
|
2514
2514
|
if (!(tmp_15 == null) ? isInterface(tmp_15, BooleanValue) : false) {
|
|
2515
2515
|
var tmp_16;
|
|
2516
|
-
if (!(schema.
|
|
2516
|
+
if (!(schema.x2z_1 == null)) {
|
|
2517
2517
|
tmp_16 = new Dict(new Any(isNullable), false);
|
|
2518
2518
|
} else {
|
|
2519
2519
|
tmp_16 = new Any(isNullable);
|
|
2520
2520
|
}
|
|
2521
2521
|
tmp_14 = tmp_16;
|
|
2522
2522
|
} else {
|
|
2523
|
-
if (!(schema.
|
|
2523
|
+
if (!(schema.x2z_1 == null)) {
|
|
2524
2524
|
new Dict(new Custom(sanitize(name), isNullable), false);
|
|
2525
2525
|
}
|
|
2526
2526
|
tmp_14 = new Custom(sanitize(name), isNullable);
|
|
@@ -2529,7 +2529,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2529
2529
|
tmp_12 = tmp_14;
|
|
2530
2530
|
break;
|
|
2531
2531
|
case 4:
|
|
2532
|
-
var items = schema.
|
|
2532
|
+
var items = schema.u2z_1;
|
|
2533
2533
|
var tmp_17;
|
|
2534
2534
|
if (items instanceof OpenAPIV2Reference) {
|
|
2535
2535
|
tmp_17 = toIterable(toReference(_this__u8e3s4, items, false), isNullable);
|
|
@@ -2576,10 +2576,10 @@ function resolve(_this__u8e3s4, responseOrReference) {
|
|
|
2576
2576
|
}
|
|
2577
2577
|
function toField_0(_this__u8e3s4, header, identifier) {
|
|
2578
2578
|
var tmp4_identifier = new FieldIdentifier(identifier);
|
|
2579
|
-
var tmp5_annotations = toDescriptionAnnotationList(header.
|
|
2579
|
+
var tmp5_annotations = toDescriptionAnnotationList(header.z32_1);
|
|
2580
2580
|
var tmp;
|
|
2581
|
-
if (header.
|
|
2582
|
-
var tmp1_safe_receiver = header.
|
|
2581
|
+
if (header.a33_1.b3_1 === 4) {
|
|
2582
|
+
var tmp1_safe_receiver = header.c33_1;
|
|
2583
2583
|
var tmp_0;
|
|
2584
2584
|
if (tmp1_safe_receiver == null) {
|
|
2585
2585
|
tmp_0 = null;
|
|
@@ -2652,13 +2652,13 @@ function resolve_1(_this__u8e3s4, parameterOrReference) {
|
|
|
2652
2652
|
}
|
|
2653
2653
|
function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
2654
2654
|
var tmp;
|
|
2655
|
-
if (exists(schemaObject.
|
|
2656
|
-
var tmp0_subject = schemaObject.
|
|
2655
|
+
if (exists(schemaObject.x2z_1)) {
|
|
2656
|
+
var tmp0_subject = schemaObject.x2z_1;
|
|
2657
2657
|
var tmp_0;
|
|
2658
2658
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
2659
2659
|
tmp_0 = emptyList();
|
|
2660
2660
|
} else {
|
|
2661
|
-
var tmp1_safe_receiver = schemaObject.
|
|
2661
|
+
var tmp1_safe_receiver = schemaObject.x2z_1;
|
|
2662
2662
|
var tmp_1;
|
|
2663
2663
|
if (tmp1_safe_receiver == null) {
|
|
2664
2664
|
tmp_1 = null;
|
|
@@ -2673,7 +2673,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2673
2673
|
} else {
|
|
2674
2674
|
// Inline function 'kotlin.takeIf' call
|
|
2675
2675
|
var tmp_3;
|
|
2676
|
-
if (!(tmp2_safe_receiver.
|
|
2676
|
+
if (!(tmp2_safe_receiver.w2z_1 == null)) {
|
|
2677
2677
|
tmp_3 = tmp2_safe_receiver;
|
|
2678
2678
|
} else {
|
|
2679
2679
|
tmp_3 = null;
|
|
@@ -2692,11 +2692,11 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2692
2692
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
2693
2693
|
}
|
|
2694
2694
|
tmp = tmp_0;
|
|
2695
|
-
} else if (!(schemaObject.
|
|
2696
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
2695
|
+
} else if (!(schemaObject.v2z_1 == null)) {
|
|
2696
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.m2z_1);
|
|
2697
2697
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
2698
2698
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2699
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
2699
|
+
var tmp0_elvis_lhs = schemaObject.v2z_1;
|
|
2700
2700
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2701
2701
|
var tmp0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2702
2702
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2730,7 +2730,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2730
2730
|
}
|
|
2731
2731
|
var tmp_8 = listOf(new Type(null, tmp_5, tmp_6, new Shape(list_0), emptyList()));
|
|
2732
2732
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2733
|
-
var tmp0_0 = ensureNotNull(schemaObject.
|
|
2733
|
+
var tmp0_0 = ensureNotNull(schemaObject.v2z_1);
|
|
2734
2734
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2735
2735
|
var destination_0 = ArrayList_init_$Create$();
|
|
2736
2736
|
var _iterator__ex2g4s_1 = tmp0_0.t();
|
|
@@ -2742,7 +2742,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2742
2742
|
} else {
|
|
2743
2743
|
if (element_0 instanceof OpenAPIV2Schema) {
|
|
2744
2744
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2745
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
2745
|
+
var tmp0_elvis_lhs_0 = element_0.w2z_1;
|
|
2746
2746
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2747
2747
|
var tmp0_1 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2748
2748
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2777,9 +2777,9 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2777
2777
|
addAll(destination_0, list_2);
|
|
2778
2778
|
}
|
|
2779
2779
|
tmp = plus_0(tmp_8, destination_0);
|
|
2780
|
-
} else if (!(schemaObject.
|
|
2780
|
+
} else if (!(schemaObject.t2z_1 == null)) {
|
|
2781
2781
|
// Inline function 'kotlin.collections.map' call
|
|
2782
|
-
var this_0 = ensureNotNull(schemaObject.
|
|
2782
|
+
var this_0 = ensureNotNull(schemaObject.t2z_1);
|
|
2783
2783
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2784
2784
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2785
2785
|
var _iterator__ex2g4s_3 = this_0.t();
|
|
@@ -2790,16 +2790,16 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2790
2790
|
}
|
|
2791
2791
|
// Inline function 'kotlin.let' call
|
|
2792
2792
|
var it = toSet(destination_2);
|
|
2793
|
-
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.
|
|
2793
|
+
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.m2z_1), new DefinitionIdentifier(sanitize(name)), it));
|
|
2794
2794
|
} else {
|
|
2795
|
-
var tmp5_subject = schemaObject.
|
|
2795
|
+
var tmp5_subject = schemaObject.g2z_1;
|
|
2796
2796
|
var tmp_11;
|
|
2797
2797
|
switch (tmp5_subject == null ? -1 : tmp5_subject.b3_1) {
|
|
2798
2798
|
case -1:
|
|
2799
2799
|
case 5:
|
|
2800
2800
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2801
2801
|
|
|
2802
|
-
var tmp0_elvis_lhs_1 = schemaObject.
|
|
2802
|
+
var tmp0_elvis_lhs_1 = schemaObject.w2z_1;
|
|
2803
2803
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2804
2804
|
|
|
2805
2805
|
var tmp0_2 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
@@ -2820,11 +2820,11 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2820
2820
|
}
|
|
2821
2821
|
|
|
2822
2822
|
var fields = destination_3;
|
|
2823
|
-
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.
|
|
2823
|
+
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.m2z_1), new DefinitionIdentifier(sanitize(name)), new Shape(toField_1(_this__u8e3s4, schemaObject, name)), emptyList()));
|
|
2824
2824
|
tmp_11 = plus_0(schema, fields);
|
|
2825
2825
|
break;
|
|
2826
2826
|
case 4:
|
|
2827
|
-
var it_0 = schemaObject.
|
|
2827
|
+
var it_0 = schemaObject.u2z_1;
|
|
2828
2828
|
var tmp_12;
|
|
2829
2829
|
if (it_0 instanceof OpenAPIV2Reference) {
|
|
2830
2830
|
tmp_12 = emptyList();
|
|
@@ -2851,11 +2851,11 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2851
2851
|
return tmp;
|
|
2852
2852
|
}
|
|
2853
2853
|
function resolveParameterObject(_this__u8e3s4, reference) {
|
|
2854
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2854
|
+
var tmp0_safe_receiver = _this__u8e3s4.s2x_1;
|
|
2855
2855
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p2(getReference(reference));
|
|
2856
2856
|
var tmp;
|
|
2857
2857
|
if (tmp1_elvis_lhs == null) {
|
|
2858
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
2858
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.k32_1);
|
|
2859
2859
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2860
2860
|
} else {
|
|
2861
2861
|
tmp = tmp1_elvis_lhs;
|
|
@@ -2867,13 +2867,13 @@ function toPrimitive(_this__u8e3s4) {
|
|
|
2867
2867
|
var tmp;
|
|
2868
2868
|
switch (tmp0_subject == null ? -1 : tmp0_subject.b3_1) {
|
|
2869
2869
|
case 0:
|
|
2870
|
-
tmp = !(_this__u8e3s4.
|
|
2870
|
+
tmp = !(_this__u8e3s4.k30() == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.k30()))) : _this__u8e3s4.j30() === 'binary' ? Bytes_instance : new String_0(null);
|
|
2871
2871
|
break;
|
|
2872
2872
|
case 2:
|
|
2873
|
-
tmp = new Integer(_this__u8e3s4.
|
|
2873
|
+
tmp = new Integer(_this__u8e3s4.j30() === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
2874
2874
|
break;
|
|
2875
2875
|
case 1:
|
|
2876
|
-
tmp = new Number_0(_this__u8e3s4.
|
|
2876
|
+
tmp = new Number_0(_this__u8e3s4.j30() === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
2877
2877
|
break;
|
|
2878
2878
|
case 3:
|
|
2879
2879
|
tmp = Boolean_instance;
|
|
@@ -2911,11 +2911,11 @@ function resolve_2(_this__u8e3s4, schemaOrReference) {
|
|
|
2911
2911
|
while (true);
|
|
2912
2912
|
}
|
|
2913
2913
|
function resolveOpenAPIV2Schema(_this__u8e3s4, reference) {
|
|
2914
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2914
|
+
var tmp0_safe_receiver = _this__u8e3s4.r2x_1;
|
|
2915
2915
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p2(getReference(reference));
|
|
2916
2916
|
var tmp;
|
|
2917
2917
|
if (tmp1_elvis_lhs == null) {
|
|
2918
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
2918
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.k32_1);
|
|
2919
2919
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2920
2920
|
} else {
|
|
2921
2921
|
tmp = tmp1_elvis_lhs;
|
|
@@ -2973,11 +2973,11 @@ function isPrimitive(_this__u8e3s4) {
|
|
|
2973
2973
|
return tmp;
|
|
2974
2974
|
}
|
|
2975
2975
|
function resolveResponseObject(_this__u8e3s4, reference) {
|
|
2976
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2976
|
+
var tmp0_safe_receiver = _this__u8e3s4.t2x_1;
|
|
2977
2977
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p2(getReference(reference));
|
|
2978
2978
|
var tmp;
|
|
2979
2979
|
if (tmp1_elvis_lhs == null) {
|
|
2980
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
2980
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.k32_1);
|
|
2981
2981
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2982
2982
|
} else {
|
|
2983
2983
|
tmp = tmp1_elvis_lhs;
|
|
@@ -3004,7 +3004,7 @@ function resolve_3(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
3004
3004
|
}
|
|
3005
3005
|
function toField_1(_this__u8e3s4, schema, name) {
|
|
3006
3006
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3007
|
-
var tmp0_elvis_lhs = schema.
|
|
3007
|
+
var tmp0_elvis_lhs = schema.w2z_1;
|
|
3008
3008
|
// Inline function 'kotlin.collections.map' call
|
|
3009
3009
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3010
3010
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3017,14 +3017,14 @@ function toField_1(_this__u8e3s4, schema, name) {
|
|
|
3017
3017
|
var key = item.k1();
|
|
3018
3018
|
// Inline function 'kotlin.collections.component2' call
|
|
3019
3019
|
var value = item.l1();
|
|
3020
|
-
var tmp0_safe_receiver = schema.
|
|
3020
|
+
var tmp0_safe_receiver = schema.s2z_1;
|
|
3021
3021
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u1(key);
|
|
3022
3022
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
3023
3023
|
var tmp;
|
|
3024
3024
|
if (value instanceof OpenAPIV2Schema) {
|
|
3025
3025
|
var tmp3_identifier = new FieldIdentifier(key);
|
|
3026
3026
|
var tmp4_annotations = emptyList();
|
|
3027
|
-
var tmp5_reference = !(value.
|
|
3027
|
+
var tmp5_reference = !(value.t2z_1 == null) ? toReference_0(_this__u8e3s4, value, className([name, key]), isNullable) : equals(value.g2z_1, OpenAPIV2Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, value, className([name, key, 'Array']), isNullable) : toReference_0(_this__u8e3s4, value, className([name, key]), isNullable);
|
|
3028
3028
|
tmp = new Field(tmp4_annotations, tmp3_identifier, tmp5_reference);
|
|
3029
3029
|
} else {
|
|
3030
3030
|
if (value instanceof OpenAPIV2Reference) {
|
|
@@ -3043,19 +3043,19 @@ function toField_1(_this__u8e3s4, schema, name) {
|
|
|
3043
3043
|
}
|
|
3044
3044
|
function parseParameters$lambda($this_parseParameters) {
|
|
3045
3045
|
return function ($this$flatMapRequests) {
|
|
3046
|
-
var tmp = $this$flatMapRequests.
|
|
3047
|
-
var tmp_0 = resolveParameters($this_parseParameters, (tmp instanceof OpenAPIV2PathItem ? tmp : THROW_CCE()).
|
|
3048
|
-
var tmp_1 = $this$flatMapRequests.
|
|
3049
|
-
var parameters = plus_0(tmp_0, resolveParameters($this_parseParameters, (tmp_1 instanceof OpenAPIV2Operation ? tmp_1 : THROW_CCE()).
|
|
3050
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
3051
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
3046
|
+
var tmp = $this$flatMapRequests.a3g_1;
|
|
3047
|
+
var tmp_0 = resolveParameters($this_parseParameters, (tmp instanceof OpenAPIV2PathItem ? tmp : THROW_CCE()).f2y_1);
|
|
3048
|
+
var tmp_1 = $this$flatMapRequests.c3g_1;
|
|
3049
|
+
var parameters = plus_0(tmp_0, resolveParameters($this_parseParameters, (tmp_1 instanceof OpenAPIV2Operation ? tmp_1 : THROW_CCE()).u31_1));
|
|
3050
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.c3g_1);
|
|
3051
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.z3f_1) + $this$flatMapRequests.b3g_1.a3_1 : tmp0_elvis_lhs;
|
|
3052
3052
|
// Inline function 'kotlin.collections.filter' call
|
|
3053
3053
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3054
3054
|
var destination = ArrayList_init_$Create$();
|
|
3055
3055
|
var _iterator__ex2g4s = parameters.t();
|
|
3056
3056
|
while (_iterator__ex2g4s.u()) {
|
|
3057
3057
|
var element = _iterator__ex2g4s.v();
|
|
3058
|
-
if (!element.
|
|
3058
|
+
if (!element.l31_1.equals(OpenAPIV2ParameterLocation_BODY_getInstance())) {
|
|
3059
3059
|
destination.x(element);
|
|
3060
3060
|
}
|
|
3061
3061
|
}
|
|
@@ -3065,13 +3065,13 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
3065
3065
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3066
3066
|
while (_iterator__ex2g4s_0.u()) {
|
|
3067
3067
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3068
|
-
var tmp0_safe_receiver = element_0.
|
|
3068
|
+
var tmp0_safe_receiver = element_0.m31_1;
|
|
3069
3069
|
var tmp_2;
|
|
3070
3070
|
if (tmp0_safe_receiver == null) {
|
|
3071
3071
|
tmp_2 = null;
|
|
3072
3072
|
} else {
|
|
3073
3073
|
// Inline function 'kotlin.let' call
|
|
3074
|
-
tmp_2 = flatten($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element_0.
|
|
3074
|
+
tmp_2 = flatten($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element_0.n31_1]));
|
|
3075
3075
|
}
|
|
3076
3076
|
var tmp1_elvis_lhs = tmp_2;
|
|
3077
3077
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -3082,12 +3082,12 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
3082
3082
|
}
|
|
3083
3083
|
function parseRequestBody$lambda($this_parseRequestBody) {
|
|
3084
3084
|
return function ($this$flatMapRequests) {
|
|
3085
|
-
var tmp = $this$flatMapRequests.
|
|
3086
|
-
var tmp_0 = resolveParameters($this_parseRequestBody, (tmp instanceof OpenAPIV2PathItem ? tmp : THROW_CCE()).
|
|
3087
|
-
var tmp_1 = $this$flatMapRequests.
|
|
3088
|
-
var parameters = plus_0(tmp_0, resolveParameters($this_parseRequestBody, (tmp_1 instanceof OpenAPIV2Operation ? tmp_1 : THROW_CCE()).
|
|
3089
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
3090
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
3085
|
+
var tmp = $this$flatMapRequests.a3g_1;
|
|
3086
|
+
var tmp_0 = resolveParameters($this_parseRequestBody, (tmp instanceof OpenAPIV2PathItem ? tmp : THROW_CCE()).f2y_1);
|
|
3087
|
+
var tmp_1 = $this$flatMapRequests.c3g_1;
|
|
3088
|
+
var parameters = plus_0(tmp_0, resolveParameters($this_parseRequestBody, (tmp_1 instanceof OpenAPIV2Operation ? tmp_1 : THROW_CCE()).u31_1));
|
|
3089
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.c3g_1);
|
|
3090
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.z3f_1) + $this$flatMapRequests.b3g_1.a3_1 : tmp0_elvis_lhs;
|
|
3091
3091
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3092
3092
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3093
3093
|
var destination = ArrayList_init_$Create$();
|
|
@@ -3095,11 +3095,11 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3095
3095
|
while (_iterator__ex2g4s.u()) {
|
|
3096
3096
|
var element = _iterator__ex2g4s.v();
|
|
3097
3097
|
var tmp_2;
|
|
3098
|
-
if (!(element.
|
|
3099
|
-
var tmp_3 = toDescriptionAnnotationList(element.
|
|
3100
|
-
var tmp_4 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.
|
|
3098
|
+
if (!(element.j31_1 == null)) {
|
|
3099
|
+
var tmp_3 = toDescriptionAnnotationList(element.r30_1);
|
|
3100
|
+
var tmp_4 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.n31_1])));
|
|
3101
3101
|
// Inline function 'kotlin.collections.map' call
|
|
3102
|
-
var this_0 = ensureNotNull(element.
|
|
3102
|
+
var this_0 = ensureNotNull(element.j31_1);
|
|
3103
3103
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3104
3104
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3105
3105
|
var _iterator__ex2g4s_0 = this_0.t();
|
|
@@ -3116,7 +3116,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3116
3116
|
addAll(destination, list);
|
|
3117
3117
|
}
|
|
3118
3118
|
var enums = destination;
|
|
3119
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
3119
|
+
var tmp1_safe_receiver = $this$flatMapRequests.c3g_1.u31_1;
|
|
3120
3120
|
var tmp_5;
|
|
3121
3121
|
if (tmp1_safe_receiver == null) {
|
|
3122
3122
|
tmp_5 = null;
|
|
@@ -3143,7 +3143,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3143
3143
|
var _iterator__ex2g4s_2 = tmp2_safe_receiver.t();
|
|
3144
3144
|
while (_iterator__ex2g4s_2.u()) {
|
|
3145
3145
|
var element_0 = _iterator__ex2g4s_2.v();
|
|
3146
|
-
if (element_0.
|
|
3146
|
+
if (element_0.l31_1.equals(OpenAPIV2ParameterLocation_BODY_getInstance())) {
|
|
3147
3147
|
destination_2.x(element_0);
|
|
3148
3148
|
}
|
|
3149
3149
|
}
|
|
@@ -3160,10 +3160,10 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3160
3160
|
var _iterator__ex2g4s_3 = tmp3_safe_receiver.t();
|
|
3161
3161
|
while (_iterator__ex2g4s_3.u()) {
|
|
3162
3162
|
var element_1 = _iterator__ex2g4s_3.v();
|
|
3163
|
-
var schema = element_1.
|
|
3163
|
+
var schema = element_1.m31_1;
|
|
3164
3164
|
var tmp_8;
|
|
3165
3165
|
if (schema instanceof OpenAPIV2Schema) {
|
|
3166
|
-
var tmp0_subject = schema.
|
|
3166
|
+
var tmp0_subject = schema.g2z_1;
|
|
3167
3167
|
var tmp_9;
|
|
3168
3168
|
switch (tmp0_subject == null ? -1 : tmp0_subject.b3_1) {
|
|
3169
3169
|
case -1:
|
|
@@ -3171,7 +3171,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3171
3171
|
tmp_9 = flatten_0($this_parseRequestBody, schema, className([name, 'RequestBody']));
|
|
3172
3172
|
break;
|
|
3173
3173
|
case 4:
|
|
3174
|
-
var tmp1_safe_receiver_0 = schema.
|
|
3174
|
+
var tmp1_safe_receiver_0 = schema.u2z_1;
|
|
3175
3175
|
var tmp_10;
|
|
3176
3176
|
if (tmp1_safe_receiver_0 == null) {
|
|
3177
3177
|
tmp_10 = null;
|
|
@@ -3205,28 +3205,28 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3205
3205
|
}
|
|
3206
3206
|
function parseResponseBody$lambda($this_parseResponseBody) {
|
|
3207
3207
|
return function ($this$flatMapResponses) {
|
|
3208
|
-
var tmp = $this$flatMapResponses.
|
|
3209
|
-
var schema = resolve($this_parseResponseBody, isInterface(tmp, OpenAPIV2ResponseOrReference) ? tmp : THROW_CCE()).
|
|
3210
|
-
var tmp_0 = $this$flatMapResponses.
|
|
3208
|
+
var tmp = $this$flatMapResponses.i3g_1;
|
|
3209
|
+
var schema = resolve($this_parseResponseBody, isInterface(tmp, OpenAPIV2ResponseOrReference) ? tmp : THROW_CCE()).q32_1;
|
|
3210
|
+
var tmp_0 = $this$flatMapResponses.g3g_1;
|
|
3211
3211
|
var tmp0_elvis_lhs = toName(tmp_0 instanceof OpenAPIV2Operation ? tmp_0 : THROW_CCE());
|
|
3212
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
3212
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.d3g_1) + $this$flatMapResponses.f3g_1.a3_1 : tmp0_elvis_lhs;
|
|
3213
3213
|
var tmp_1;
|
|
3214
3214
|
if (schema instanceof OpenAPIV2Schema) {
|
|
3215
|
-
var tmp2_subject = schema.
|
|
3215
|
+
var tmp2_subject = schema.g2z_1;
|
|
3216
3216
|
var tmp_2;
|
|
3217
3217
|
switch (tmp2_subject == null ? -1 : tmp2_subject.b3_1) {
|
|
3218
3218
|
case -1:
|
|
3219
3219
|
case 5:
|
|
3220
|
-
tmp_2 = flatten_0($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
3220
|
+
tmp_2 = flatten_0($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.h3g_1), 'ResponseBody']));
|
|
3221
3221
|
break;
|
|
3222
3222
|
case 4:
|
|
3223
|
-
var tmp3_safe_receiver = schema.
|
|
3223
|
+
var tmp3_safe_receiver = schema.u2z_1;
|
|
3224
3224
|
var tmp_3;
|
|
3225
3225
|
if (tmp3_safe_receiver == null) {
|
|
3226
3226
|
tmp_3 = null;
|
|
3227
3227
|
} else {
|
|
3228
3228
|
// Inline function 'kotlin.let' call
|
|
3229
|
-
tmp_3 = flatten($this_parseResponseBody, tmp3_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
3229
|
+
tmp_3 = flatten($this_parseResponseBody, tmp3_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.h3g_1), 'ResponseBody']));
|
|
3230
3230
|
}
|
|
3231
3231
|
|
|
3232
3232
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -3821,9 +3821,9 @@ function toOpenAPIV3Links($this, _this__u8e3s4) {
|
|
|
3821
3821
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
3822
3822
|
while (_iterator__ex2g4s.u()) {
|
|
3823
3823
|
var element = _iterator__ex2g4s.v();
|
|
3824
|
-
var tmp2 = element.
|
|
3824
|
+
var tmp2 = element.j3g_1;
|
|
3825
3825
|
// Inline function 'kotlin.collections.mapValues' call
|
|
3826
|
-
var this_0 = element.
|
|
3826
|
+
var this_0 = element.m3g_1;
|
|
3827
3827
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
3828
3828
|
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.a1()));
|
|
3829
3829
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -3842,7 +3842,7 @@ function toOpenAPIV3Links($this, _this__u8e3s4) {
|
|
|
3842
3842
|
tmp_0 = destination;
|
|
3843
3843
|
}
|
|
3844
3844
|
var tmp_1 = tmp_0;
|
|
3845
|
-
var tmp0_safe_receiver = element.
|
|
3845
|
+
var tmp0_safe_receiver = element.n3g_1;
|
|
3846
3846
|
var tmp_2;
|
|
3847
3847
|
if (tmp0_safe_receiver == null) {
|
|
3848
3848
|
tmp_2 = null;
|
|
@@ -3851,7 +3851,7 @@ function toOpenAPIV3Links($this, _this__u8e3s4) {
|
|
|
3851
3851
|
tmp_2 = JsonPrimitive(tmp0_safe_receiver);
|
|
3852
3852
|
}
|
|
3853
3853
|
// Inline function 'kotlin.collections.set' call
|
|
3854
|
-
var value = new OpenAPIV3Link(element.
|
|
3854
|
+
var value = new OpenAPIV3Link(element.l3g_1, element.k3g_1, tmp_1, tmp_2, element.o3g_1);
|
|
3855
3855
|
byName.w2(tmp2, value);
|
|
3856
3856
|
}
|
|
3857
3857
|
return new OpenAPIV3Links(toSet(byName.j1()));
|
|
@@ -3882,7 +3882,7 @@ function emitSchema($this, _this__u8e3s4) {
|
|
|
3882
3882
|
var it = emitSchema_0($this, _this__u8e3s4.bp_1);
|
|
3883
3883
|
var tmp_0;
|
|
3884
3884
|
if (it instanceof OpenAPIV3Schema) {
|
|
3885
|
-
tmp_0 = it.
|
|
3885
|
+
tmp_0 = it.s39(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription(_this__u8e3s4.zo_1));
|
|
3886
3886
|
} else {
|
|
3887
3887
|
if (it instanceof OpenAPIV3Reference) {
|
|
3888
3888
|
tmp_0 = it;
|
|
@@ -4079,10 +4079,10 @@ function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
|
4079
4079
|
}
|
|
4080
4080
|
function OpenAPIV3Emitter() {
|
|
4081
4081
|
OpenAPIV3Emitter_instance = this;
|
|
4082
|
-
this.
|
|
4082
|
+
this.u3g_1 = FileExtension_JSON_getInstance();
|
|
4083
4083
|
}
|
|
4084
4084
|
protoOf(OpenAPIV3Emitter).eq = function () {
|
|
4085
|
-
return this.
|
|
4085
|
+
return this.u3g_1;
|
|
4086
4086
|
};
|
|
4087
4087
|
protoOf(OpenAPIV3Emitter).on = function (ast, logger) {
|
|
4088
4088
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
@@ -4100,24 +4100,24 @@ protoOf(OpenAPIV3Emitter).on = function (ast, logger) {
|
|
|
4100
4100
|
}
|
|
4101
4101
|
// Inline function 'kotlin.let' call
|
|
4102
4102
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
4103
|
-
var tmp = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().
|
|
4103
|
+
var tmp = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().u3g_1.nq_1;
|
|
4104
4104
|
var tmp0_0 = get_json();
|
|
4105
4105
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
4106
|
-
var value = OpenAPIV3Emitter_getInstance().
|
|
4106
|
+
var value = OpenAPIV3Emitter_getInstance().v3g(it, null, logger);
|
|
4107
4107
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
4108
|
-
var this_1 = tmp0_0.
|
|
4108
|
+
var this_1 = tmp0_0.e23();
|
|
4109
4109
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
4110
4110
|
var this_2 = serializer(this_1, createKType(getKClass(OpenAPIV3Model), arrayOf([]), false));
|
|
4111
4111
|
var tmp$ret$5 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
4112
|
-
var tmp$ret$6 = tmp0_0.
|
|
4112
|
+
var tmp$ret$6 = tmp0_0.r2j(tmp$ret$5, value);
|
|
4113
4113
|
// Inline function 'kotlin.let' call
|
|
4114
4114
|
var it_0 = new Emitted(tmp, tmp$ret$6);
|
|
4115
4115
|
return nonEmptyListOf(it_0, []);
|
|
4116
4116
|
};
|
|
4117
|
-
protoOf(OpenAPIV3Emitter).
|
|
4118
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
4117
|
+
protoOf(OpenAPIV3Emitter).v3g = function (statements, options, logger) {
|
|
4118
|
+
var tmp1_elvis_lhs = options == null ? null : options.w3g_1;
|
|
4119
4119
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
4120
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
4120
|
+
var tmp3_elvis_lhs = options == null ? null : options.x3g_1;
|
|
4121
4121
|
var tmp4_info = new InfoObject(tmp, VOID, VOID, VOID, VOID, tmp3_elvis_lhs == null ? '0.0.0' : tmp3_elvis_lhs);
|
|
4122
4122
|
var tmp5_paths = emitPaths_0(this, statements, logger);
|
|
4123
4123
|
var tmp6_components = emitComponents(this, statements, logger);
|
|
@@ -4131,15 +4131,15 @@ function OpenAPIV3Emitter_getInstance() {
|
|
|
4131
4131
|
}
|
|
4132
4132
|
function OpenAPIV3Parser$parse$lambda($strict) {
|
|
4133
4133
|
return function (it) {
|
|
4134
|
-
return new NonEmptyList(OpenAPIV3Parser_instance.
|
|
4134
|
+
return new NonEmptyList(OpenAPIV3Parser_instance.y3g((new OpenAPIV3(jsonDefault($strict))).h2x(it)));
|
|
4135
4135
|
};
|
|
4136
4136
|
}
|
|
4137
4137
|
function OpenAPIV3Parser() {
|
|
4138
4138
|
}
|
|
4139
|
-
protoOf(OpenAPIV3Parser).
|
|
4139
|
+
protoOf(OpenAPIV3Parser).t3g = function (moduleContent, strict) {
|
|
4140
4140
|
return parseOpenApi(moduleContent, OpenAPIV3Parser$parse$lambda(strict));
|
|
4141
4141
|
};
|
|
4142
|
-
protoOf(OpenAPIV3Parser).
|
|
4142
|
+
protoOf(OpenAPIV3Parser).y3g = function (_this__u8e3s4) {
|
|
4143
4143
|
// Inline function 'kotlin.collections.reduce' call
|
|
4144
4144
|
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();
|
|
4145
4145
|
if (!iterator.u())
|
|
@@ -4175,7 +4175,7 @@ function OpenAPIV3Parser_getInstance() {
|
|
|
4175
4175
|
}
|
|
4176
4176
|
function parseEndpoints_0(_this__u8e3s4) {
|
|
4177
4177
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4178
|
-
var tmp0 = _this__u8e3s4.
|
|
4178
|
+
var tmp0 = _this__u8e3s4.u36_1;
|
|
4179
4179
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4180
4180
|
var destination = ArrayList_init_$Create$();
|
|
4181
4181
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -4183,7 +4183,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4183
4183
|
while (_iterator__ex2g4s.u()) {
|
|
4184
4184
|
var element = _iterator__ex2g4s.v();
|
|
4185
4185
|
// Inline function 'kotlin.collections.component1' call
|
|
4186
|
-
var path = element.k1().
|
|
4186
|
+
var path = element.k1().h2v_1;
|
|
4187
4187
|
// Inline function 'kotlin.collections.component2' call
|
|
4188
4188
|
var pathItem = element.l1();
|
|
4189
4189
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -4209,7 +4209,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4209
4209
|
var item_0 = _iterator__ex2g4s_1.v();
|
|
4210
4210
|
var method_0 = item_0.ne();
|
|
4211
4211
|
var operation_0 = item_0.oe();
|
|
4212
|
-
var parameters = plus_0(resolveParameters_0(_this__u8e3s4, pathItem.
|
|
4212
|
+
var parameters = plus_0(resolveParameters_0(_this__u8e3s4, pathItem.c37_1), resolveParameters_0(_this__u8e3s4, operation_0.p3a_1));
|
|
4213
4213
|
var segments = toSegments_0(_this__u8e3s4, path, parameters, operation_0, method_0);
|
|
4214
4214
|
var tmp0_elvis_lhs = toName(operation_0);
|
|
4215
4215
|
var name = tmp0_elvis_lhs == null ? toName_0(path) + method_0.a3_1 : tmp0_elvis_lhs;
|
|
@@ -4219,7 +4219,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4219
4219
|
var _iterator__ex2g4s_2 = parameters.t();
|
|
4220
4220
|
while (_iterator__ex2g4s_2.u()) {
|
|
4221
4221
|
var element_0 = _iterator__ex2g4s_2.v();
|
|
4222
|
-
if (element_0.
|
|
4222
|
+
if (element_0.i3a_1.equals(OpenAPIV3ParameterLocation_QUERY_getInstance())) {
|
|
4223
4223
|
destination_2.x(element_0);
|
|
4224
4224
|
}
|
|
4225
4225
|
}
|
|
@@ -4229,7 +4229,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4229
4229
|
var _iterator__ex2g4s_3 = destination_2.t();
|
|
4230
4230
|
while (_iterator__ex2g4s_3.u()) {
|
|
4231
4231
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
4232
|
-
var tmp$ret$12 = toField_2(_this__u8e3s4, item_1, className([name, 'Parameter', item_1.
|
|
4232
|
+
var tmp$ret$12 = toField_2(_this__u8e3s4, item_1, className([name, 'Parameter', item_1.k3a_1]));
|
|
4233
4233
|
destination_3.x(tmp$ret$12);
|
|
4234
4234
|
}
|
|
4235
4235
|
var query = destination_3;
|
|
@@ -4239,7 +4239,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4239
4239
|
var _iterator__ex2g4s_4 = parameters.t();
|
|
4240
4240
|
while (_iterator__ex2g4s_4.u()) {
|
|
4241
4241
|
var element_1 = _iterator__ex2g4s_4.v();
|
|
4242
|
-
if (element_1.
|
|
4242
|
+
if (element_1.i3a_1.equals(OpenAPIV3ParameterLocation_HEADER_getInstance())) {
|
|
4243
4243
|
destination_4.x(element_1);
|
|
4244
4244
|
}
|
|
4245
4245
|
}
|
|
@@ -4249,11 +4249,11 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4249
4249
|
var _iterator__ex2g4s_5 = destination_4.t();
|
|
4250
4250
|
while (_iterator__ex2g4s_5.u()) {
|
|
4251
4251
|
var item_2 = _iterator__ex2g4s_5.v();
|
|
4252
|
-
var tmp$ret$18 = toField_2(_this__u8e3s4, item_2, className([name, 'Parameter', item_2.
|
|
4252
|
+
var tmp$ret$18 = toField_2(_this__u8e3s4, item_2, className([name, 'Parameter', item_2.k3a_1]));
|
|
4253
4253
|
destination_5.x(tmp$ret$18);
|
|
4254
4254
|
}
|
|
4255
4255
|
var headers = destination_5;
|
|
4256
|
-
var tmp1_safe_receiver = operation_0.
|
|
4256
|
+
var tmp1_safe_receiver = operation_0.q3a_1;
|
|
4257
4257
|
var tmp;
|
|
4258
4258
|
if (tmp1_safe_receiver == null) {
|
|
4259
4259
|
tmp = null;
|
|
@@ -4268,7 +4268,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4268
4268
|
} else {
|
|
4269
4269
|
// Inline function 'kotlin.let' call
|
|
4270
4270
|
var isNullable = false;
|
|
4271
|
-
var tmp0_safe_receiver = tmp2_safe_receiver.
|
|
4271
|
+
var tmp0_safe_receiver = tmp2_safe_receiver.g3b_1;
|
|
4272
4272
|
var tmp_1;
|
|
4273
4273
|
if (tmp0_safe_receiver == null) {
|
|
4274
4274
|
tmp_1 = null;
|
|
@@ -4281,10 +4281,10 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4281
4281
|
while (_iterator__ex2g4s_6.u()) {
|
|
4282
4282
|
var item_3 = _iterator__ex2g4s_6.v();
|
|
4283
4283
|
// Inline function 'kotlin.collections.component1' call
|
|
4284
|
-
var mediaType = item_3.k1().
|
|
4284
|
+
var mediaType = item_3.k1().t2v_1;
|
|
4285
4285
|
// Inline function 'kotlin.collections.component2' call
|
|
4286
4286
|
var mediaObject = item_3.l1();
|
|
4287
|
-
var schema = mediaObject.
|
|
4287
|
+
var schema = mediaObject.m3b_1;
|
|
4288
4288
|
var tmp_2;
|
|
4289
4289
|
if (schema instanceof OpenAPIV3Reference) {
|
|
4290
4290
|
tmp_2 = toReference_1(_this__u8e3s4, schema, isNullable);
|
|
@@ -4318,7 +4318,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4318
4318
|
var tmp3_elvis_lhs = tmp_0;
|
|
4319
4319
|
var requests = tmp3_elvis_lhs == null ? listOf(new Request(null)) : tmp3_elvis_lhs;
|
|
4320
4320
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4321
|
-
var tmp0_elvis_lhs_0 = operation_0.
|
|
4321
|
+
var tmp0_elvis_lhs_0 = operation_0.r3a_1;
|
|
4322
4322
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4323
4323
|
var tmp0_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
4324
4324
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -4328,18 +4328,18 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4328
4328
|
while (_iterator__ex2g4s_7.u()) {
|
|
4329
4329
|
var element_2 = _iterator__ex2g4s_7.v();
|
|
4330
4330
|
// Inline function 'kotlin.collections.component1' call
|
|
4331
|
-
var status = element_2.k1().
|
|
4331
|
+
var status = element_2.k1().l2v_1;
|
|
4332
4332
|
// Inline function 'kotlin.collections.component2' call
|
|
4333
4333
|
var res = element_2.l1();
|
|
4334
4334
|
// Inline function 'kotlin.let' call
|
|
4335
4335
|
var response = resolve_5(_this__u8e3s4, res);
|
|
4336
4336
|
var tmp_4;
|
|
4337
4337
|
// Inline function 'kotlin.collections.isNullOrEmpty' call
|
|
4338
|
-
var this_1 = response.
|
|
4338
|
+
var this_1 = response.t3b_1;
|
|
4339
4339
|
if (this_1 == null || this_1.r()) {
|
|
4340
|
-
var tmp1_annotations = plus_0(toDescriptionAnnotationList(response.
|
|
4340
|
+
var tmp1_annotations = plus_0(toDescriptionAnnotationList(response.u3b_1), toLinkAnnotationList(_this__u8e3s4, response.w3b_1));
|
|
4341
4341
|
var tmp2_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4342
|
-
var tmp0_safe_receiver_0 = response.
|
|
4342
|
+
var tmp0_safe_receiver_0 = response.v3b_1;
|
|
4343
4343
|
var tmp_5;
|
|
4344
4344
|
if (tmp0_safe_receiver_0 == null) {
|
|
4345
4345
|
tmp_5 = null;
|
|
@@ -4361,7 +4361,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4361
4361
|
var tmp3_headers = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
4362
4362
|
tmp_4 = listOf(new Response(tmp2_status, tmp3_headers, null, tmp1_annotations));
|
|
4363
4363
|
} else {
|
|
4364
|
-
var tmp4_safe_receiver = response.
|
|
4364
|
+
var tmp4_safe_receiver = response.t3b_1;
|
|
4365
4365
|
var tmp_6;
|
|
4366
4366
|
if (tmp4_safe_receiver == null) {
|
|
4367
4367
|
tmp_6 = null;
|
|
@@ -4374,10 +4374,10 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4374
4374
|
while (_iterator__ex2g4s_9.u()) {
|
|
4375
4375
|
var item_5 = _iterator__ex2g4s_9.v();
|
|
4376
4376
|
// Inline function 'kotlin.collections.component1' call
|
|
4377
|
-
var contentType = item_5.k1().
|
|
4377
|
+
var contentType = item_5.k1().t2v_1;
|
|
4378
4378
|
// Inline function 'kotlin.collections.component2' call
|
|
4379
4379
|
var media = item_5.l1();
|
|
4380
|
-
var tmp0_safe_receiver_1 = media.
|
|
4380
|
+
var tmp0_safe_receiver_1 = media.m3b_1;
|
|
4381
4381
|
var tmp_7;
|
|
4382
4382
|
if (tmp0_safe_receiver_1 == null) {
|
|
4383
4383
|
tmp_7 = null;
|
|
@@ -4386,11 +4386,11 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4386
4386
|
tmp_7 = resolve_7(_this__u8e3s4, tmp0_safe_receiver_1);
|
|
4387
4387
|
}
|
|
4388
4388
|
var tmp1_safe_receiver_0 = tmp_7;
|
|
4389
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
4389
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.g38_1;
|
|
4390
4390
|
var isNullable_0 = tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs;
|
|
4391
|
-
var tmp4_annotations = plus_0(toDescriptionAnnotationList(response.
|
|
4391
|
+
var tmp4_annotations = plus_0(toDescriptionAnnotationList(response.u3b_1), toLinkAnnotationList(_this__u8e3s4, response.w3b_1));
|
|
4392
4392
|
var tmp5_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4393
|
-
var tmp3_safe_receiver = response.
|
|
4393
|
+
var tmp3_safe_receiver = response.v3b_1;
|
|
4394
4394
|
var tmp_8;
|
|
4395
4395
|
if (tmp3_safe_receiver == null) {
|
|
4396
4396
|
tmp_8 = null;
|
|
@@ -4411,7 +4411,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4411
4411
|
var tmp0_elvis_lhs_2 = tmp_8;
|
|
4412
4412
|
var tmp6_headers = tmp0_elvis_lhs_2 == null ? emptyList() : tmp0_elvis_lhs_2;
|
|
4413
4413
|
var tmp_9 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
4414
|
-
var schema_0 = media.
|
|
4414
|
+
var schema_0 = media.m3b_1;
|
|
4415
4415
|
var tmp_10;
|
|
4416
4416
|
if (schema_0 instanceof OpenAPIV3Reference) {
|
|
4417
4417
|
tmp_10 = toReference_1(_this__u8e3s4, schema_0, isNullable_0);
|
|
@@ -4439,7 +4439,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4439
4439
|
addAll(destination_7, list);
|
|
4440
4440
|
}
|
|
4441
4441
|
var responses = destination_7;
|
|
4442
|
-
var tmp$ret$61 = new Endpoint(null, toDescriptionAnnotationList(operation_0.
|
|
4442
|
+
var tmp$ret$61 = new Endpoint(null, toDescriptionAnnotationList(operation_0.v3a_1), new DefinitionIdentifier(name), method_0, segments, query, headers, requests, responses);
|
|
4443
4443
|
destination_1.x(tmp$ret$61);
|
|
4444
4444
|
}
|
|
4445
4445
|
var list_0 = destination_1;
|
|
@@ -4457,9 +4457,9 @@ function parseResponseBody_0(_this__u8e3s4) {
|
|
|
4457
4457
|
return flatMapResponses(_this__u8e3s4, parseResponseBody$lambda_0(_this__u8e3s4));
|
|
4458
4458
|
}
|
|
4459
4459
|
function parseDefinitions_0(_this__u8e3s4) {
|
|
4460
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
4460
|
+
var tmp0_safe_receiver = _this__u8e3s4.s36_1;
|
|
4461
4461
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4462
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4462
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t37_1;
|
|
4463
4463
|
// Inline function 'kotlin.collections.filter' call
|
|
4464
4464
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4465
4465
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -4471,7 +4471,7 @@ function parseDefinitions_0(_this__u8e3s4) {
|
|
|
4471
4471
|
var s = element.l1();
|
|
4472
4472
|
var tmp;
|
|
4473
4473
|
if (s instanceof OpenAPIV3Schema) {
|
|
4474
|
-
var tmp0_subject = s.
|
|
4474
|
+
var tmp0_subject = s.f39_1;
|
|
4475
4475
|
var tmp_0;
|
|
4476
4476
|
if (tmp0_subject instanceof OpenAPIV3Boolean) {
|
|
4477
4477
|
tmp_0 = true;
|
|
@@ -4577,7 +4577,7 @@ function toSegments_0(_this__u8e3s4, path, parameters, operation, method) {
|
|
|
4577
4577
|
var _iterator__ex2g4s_1 = parameters.t();
|
|
4578
4578
|
while (_iterator__ex2g4s_1.u()) {
|
|
4579
4579
|
var element_0 = _iterator__ex2g4s_1.v();
|
|
4580
|
-
if (element_0.
|
|
4580
|
+
if (element_0.k3a_1 === param) {
|
|
4581
4581
|
tmp$ret$5 = element_0;
|
|
4582
4582
|
break $l$block;
|
|
4583
4583
|
}
|
|
@@ -4586,7 +4586,7 @@ function toSegments_0(_this__u8e3s4, path, parameters, operation, method) {
|
|
|
4586
4586
|
}
|
|
4587
4587
|
|
|
4588
4588
|
var tmp2_safe_receiver = tmp$ret$5;
|
|
4589
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
4589
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.j3a_1;
|
|
4590
4590
|
var tmp_0;
|
|
4591
4591
|
if (tmp3_safe_receiver == null) {
|
|
4592
4592
|
tmp_0 = null;
|
|
@@ -4637,15 +4637,15 @@ function toSegments_0(_this__u8e3s4, path, parameters, operation, method) {
|
|
|
4637
4637
|
return destination_0;
|
|
4638
4638
|
}
|
|
4639
4639
|
function toField_2(_this__u8e3s4, parameter, name) {
|
|
4640
|
-
var tmp0_elvis_lhs = parameter.
|
|
4640
|
+
var tmp0_elvis_lhs = parameter.z39_1;
|
|
4641
4641
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
4642
|
-
var s = parameter.
|
|
4642
|
+
var s = parameter.j3a_1;
|
|
4643
4643
|
var tmp;
|
|
4644
4644
|
if (s instanceof OpenAPIV3Reference) {
|
|
4645
4645
|
tmp = toReference_1(_this__u8e3s4, s, isNullable);
|
|
4646
4646
|
} else {
|
|
4647
4647
|
if (s instanceof OpenAPIV3Schema) {
|
|
4648
|
-
tmp = toReference_2(_this__u8e3s4, s, isNullable, name + (equals(s.
|
|
4648
|
+
tmp = toReference_2(_this__u8e3s4, s, isNullable, name + (equals(s.n38_1, OpenAPIV3Type_ARRAY_getInstance()) ? 'Array' : ''));
|
|
4649
4649
|
} else {
|
|
4650
4650
|
if (s == null) {
|
|
4651
4651
|
tmp = new Primitive(new String_0(null), isNullable);
|
|
@@ -4656,8 +4656,8 @@ function toField_2(_this__u8e3s4, parameter, name) {
|
|
|
4656
4656
|
}
|
|
4657
4657
|
// Inline function 'kotlin.let' call
|
|
4658
4658
|
var it = tmp;
|
|
4659
|
-
var tmp0_identifier = new FieldIdentifier(parameter.
|
|
4660
|
-
var tmp1_annotations = toDescriptionAnnotationList(parameter.
|
|
4659
|
+
var tmp0_identifier = new FieldIdentifier(parameter.k3a_1);
|
|
4660
|
+
var tmp1_annotations = toDescriptionAnnotationList(parameter.y39_1);
|
|
4661
4661
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
4662
4662
|
}
|
|
4663
4663
|
function resolve_4(_this__u8e3s4, requestBodyOrReference) {
|
|
@@ -4679,18 +4679,18 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4679
4679
|
var referencingObject = destruct.ne();
|
|
4680
4680
|
var schema = destruct.oe();
|
|
4681
4681
|
var tmp;
|
|
4682
|
-
if (exists_0(schema.
|
|
4683
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4682
|
+
if (exists_0(schema.f39_1)) {
|
|
4683
|
+
var additionalProperties = ensureNotNull(schema.f39_1);
|
|
4684
4684
|
var tmp_0;
|
|
4685
4685
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
4686
4686
|
tmp_0 = new Dict(new Any(isNullable), false);
|
|
4687
4687
|
} else {
|
|
4688
4688
|
if (additionalProperties instanceof OpenAPIV3Reference) {
|
|
4689
|
-
var tmp0_elvis_lhs = schema.
|
|
4689
|
+
var tmp0_elvis_lhs = schema.g38_1;
|
|
4690
4690
|
tmp_0 = toDict(toReference_1(_this__u8e3s4, additionalProperties, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs), isNullable);
|
|
4691
4691
|
} else {
|
|
4692
4692
|
if (additionalProperties instanceof OpenAPIV3Schema) {
|
|
4693
|
-
var tmp1_elvis_lhs = schema.
|
|
4693
|
+
var tmp1_elvis_lhs = schema.g38_1;
|
|
4694
4694
|
tmp_0 = toDict(toReference_2(_this__u8e3s4, additionalProperties, tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs, getReference(reference)), false);
|
|
4695
4695
|
} else {
|
|
4696
4696
|
noWhenBranchMatchedException();
|
|
@@ -4698,24 +4698,24 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4698
4698
|
}
|
|
4699
4699
|
}
|
|
4700
4700
|
tmp = tmp_0;
|
|
4701
|
-
} else if (!(schema.
|
|
4701
|
+
} else if (!(schema.b39_1 == null)) {
|
|
4702
4702
|
tmp = new Custom(sanitize(className([getReference(referencingObject)])), isNullable);
|
|
4703
|
-
} else if (isPrimitive_0(schema.
|
|
4703
|
+
} else if (isPrimitive_0(schema.n38_1)) {
|
|
4704
4704
|
tmp = new Primitive(toPrimitive_0(schema), isNullable);
|
|
4705
|
-
} else if (equals(schema.
|
|
4706
|
-
var items = schema.
|
|
4705
|
+
} else if (equals(schema.n38_1, OpenAPIV3Type_ARRAY_getInstance())) {
|
|
4706
|
+
var items = schema.c39_1;
|
|
4707
4707
|
var tmp_1;
|
|
4708
4708
|
if (items instanceof OpenAPIV3Reference) {
|
|
4709
|
-
var tmp2_elvis_lhs = schema.
|
|
4709
|
+
var tmp2_elvis_lhs = schema.g38_1;
|
|
4710
4710
|
tmp_1 = toIterable(toReference_1(_this__u8e3s4, items, tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs), isNullable);
|
|
4711
4711
|
} else {
|
|
4712
4712
|
if (items instanceof OpenAPIV3Schema) {
|
|
4713
4713
|
var tmp_2 = sanitize(className([getReference(referencingObject), 'Array']));
|
|
4714
|
-
var tmp3_elvis_lhs = schema.
|
|
4714
|
+
var tmp3_elvis_lhs = schema.g38_1;
|
|
4715
4715
|
tmp_1 = toIterable(new Custom(tmp_2, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs), isNullable);
|
|
4716
4716
|
} else {
|
|
4717
4717
|
if (items == null) {
|
|
4718
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.
|
|
4718
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.m3c_1);
|
|
4719
4719
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4720
4720
|
} else {
|
|
4721
4721
|
noWhenBranchMatchedException();
|
|
@@ -4731,15 +4731,15 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4731
4731
|
function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
4732
4732
|
name = name === VOID ? '' : name;
|
|
4733
4733
|
var tmp;
|
|
4734
|
-
if (equals(schema.
|
|
4735
|
-
var items = schema.
|
|
4734
|
+
if (equals(schema.n38_1, OpenAPIV3Type_ARRAY_getInstance())) {
|
|
4735
|
+
var items = schema.c39_1;
|
|
4736
4736
|
var tmp_0;
|
|
4737
4737
|
if (items instanceof OpenAPIV3Reference) {
|
|
4738
|
-
var tmp0_elvis_lhs = schema.
|
|
4738
|
+
var tmp0_elvis_lhs = schema.g38_1;
|
|
4739
4739
|
tmp_0 = toIterable(toReference_1(_this__u8e3s4, items, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs), isNullable);
|
|
4740
4740
|
} else {
|
|
4741
4741
|
if (items instanceof OpenAPIV3Schema) {
|
|
4742
|
-
var tmp1_elvis_lhs = schema.
|
|
4742
|
+
var tmp1_elvis_lhs = schema.g38_1;
|
|
4743
4743
|
tmp_0 = toIterable(toReference_2(_this__u8e3s4, items, tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs, name), isNullable);
|
|
4744
4744
|
} else {
|
|
4745
4745
|
if (items == null) {
|
|
@@ -4751,21 +4751,21 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4751
4751
|
}
|
|
4752
4752
|
}
|
|
4753
4753
|
tmp = tmp_0;
|
|
4754
|
-
} else if (!(schema.
|
|
4755
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4754
|
+
} else if (!(schema.f39_1 == null)) {
|
|
4755
|
+
var additionalProperties = ensureNotNull(schema.f39_1);
|
|
4756
4756
|
var tmp_1;
|
|
4757
4757
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
4758
|
-
var tmp2_elvis_lhs = schema.
|
|
4758
|
+
var tmp2_elvis_lhs = schema.g38_1;
|
|
4759
4759
|
tmp_1 = new Dict(new Any(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs), isNullable);
|
|
4760
4760
|
} else {
|
|
4761
4761
|
if (additionalProperties instanceof OpenAPIV3Reference) {
|
|
4762
|
-
var tmp3_elvis_lhs = schema.
|
|
4762
|
+
var tmp3_elvis_lhs = schema.g38_1;
|
|
4763
4763
|
tmp_1 = toDict(toReference_1(_this__u8e3s4, additionalProperties, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs), isNullable);
|
|
4764
4764
|
} else {
|
|
4765
4765
|
if (additionalProperties instanceof OpenAPIV3Schema) {
|
|
4766
4766
|
// Inline function 'kotlin.takeIf' call
|
|
4767
4767
|
var tmp_2;
|
|
4768
|
-
if (isPrimitive_0(additionalProperties.
|
|
4768
|
+
if (isPrimitive_0(additionalProperties.n38_1) || !(additionalProperties.e39_1 == null)) {
|
|
4769
4769
|
tmp_2 = additionalProperties;
|
|
4770
4770
|
} else {
|
|
4771
4771
|
tmp_2 = null;
|
|
@@ -4776,13 +4776,13 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4776
4776
|
tmp_3 = null;
|
|
4777
4777
|
} else {
|
|
4778
4778
|
// Inline function 'kotlin.let' call
|
|
4779
|
-
var tmp0_elvis_lhs_0 = schema.
|
|
4779
|
+
var tmp0_elvis_lhs_0 = schema.g38_1;
|
|
4780
4780
|
tmp_3 = toDict(toReference_2(_this__u8e3s4, tmp4_safe_receiver, tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0, name), isNullable);
|
|
4781
4781
|
}
|
|
4782
4782
|
var tmp5_elvis_lhs = tmp_3;
|
|
4783
4783
|
var tmp_4;
|
|
4784
4784
|
if (tmp5_elvis_lhs == null) {
|
|
4785
|
-
var tmp6_elvis_lhs = schema.
|
|
4785
|
+
var tmp6_elvis_lhs = schema.g38_1;
|
|
4786
4786
|
tmp_4 = new Dict(new Any(tmp6_elvis_lhs == null ? false : tmp6_elvis_lhs), isNullable);
|
|
4787
4787
|
} else {
|
|
4788
4788
|
tmp_4 = tmp5_elvis_lhs;
|
|
@@ -4794,12 +4794,12 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4794
4794
|
}
|
|
4795
4795
|
}
|
|
4796
4796
|
tmp = tmp_1;
|
|
4797
|
-
} else if (!(schema.
|
|
4797
|
+
} else if (!(schema.b39_1 == null)) {
|
|
4798
4798
|
// Inline function 'kotlin.let' call
|
|
4799
4799
|
var it = new Custom(sanitize(name), isNullable);
|
|
4800
|
-
tmp = !(schema.
|
|
4800
|
+
tmp = !(schema.f39_1 == null) ? new Dict(it, false) : it;
|
|
4801
4801
|
} else {
|
|
4802
|
-
var tmp7_subject = schema.
|
|
4802
|
+
var tmp7_subject = schema.n38_1;
|
|
4803
4803
|
var tmp_5;
|
|
4804
4804
|
switch (tmp7_subject == null ? -1 : tmp7_subject.b3_1) {
|
|
4805
4805
|
case 0:
|
|
@@ -4809,33 +4809,33 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4809
4809
|
// Inline function 'kotlin.let' call
|
|
4810
4810
|
|
|
4811
4811
|
var it_0 = new Primitive(toPrimitive_0(schema), isNullable);
|
|
4812
|
-
tmp_5 = !(schema.
|
|
4812
|
+
tmp_5 = !(schema.f39_1 == null) ? new Dict(it_0, false) : it_0;
|
|
4813
4813
|
break;
|
|
4814
4814
|
case -1:
|
|
4815
4815
|
case 5:
|
|
4816
4816
|
var tmp_6;
|
|
4817
|
-
var tmp_7 = schema.
|
|
4817
|
+
var tmp_7 = schema.f39_1;
|
|
4818
4818
|
if (!(tmp_7 == null) ? isInterface(tmp_7, BooleanValue) : false) {
|
|
4819
4819
|
// Inline function 'kotlin.let' call
|
|
4820
4820
|
var it_1 = new Any(false);
|
|
4821
|
-
tmp_6 = !(schema.
|
|
4821
|
+
tmp_6 = !(schema.f39_1 == null) ? new Dict(it_1, false) : it_1;
|
|
4822
4822
|
} else {
|
|
4823
4823
|
// Inline function 'kotlin.let' call
|
|
4824
4824
|
var it_2 = new Custom(sanitize(name), isNullable);
|
|
4825
|
-
tmp_6 = !(schema.
|
|
4825
|
+
tmp_6 = !(schema.f39_1 == null) ? new Dict(it_2, false) : it_2;
|
|
4826
4826
|
}
|
|
4827
4827
|
|
|
4828
4828
|
tmp_5 = tmp_6;
|
|
4829
4829
|
break;
|
|
4830
4830
|
case 4:
|
|
4831
|
-
var it_3 = schema.
|
|
4831
|
+
var it_3 = schema.c39_1;
|
|
4832
4832
|
var tmp_8;
|
|
4833
4833
|
if (it_3 instanceof OpenAPIV3Reference) {
|
|
4834
|
-
var tmp8_elvis_lhs = schema.
|
|
4834
|
+
var tmp8_elvis_lhs = schema.g38_1;
|
|
4835
4835
|
tmp_8 = toIterable(toReference_1(_this__u8e3s4, it_3, tmp8_elvis_lhs == null ? false : tmp8_elvis_lhs), isNullable);
|
|
4836
4836
|
} else {
|
|
4837
4837
|
if (it_3 instanceof OpenAPIV3Schema) {
|
|
4838
|
-
var tmp9_elvis_lhs = schema.
|
|
4838
|
+
var tmp9_elvis_lhs = schema.g38_1;
|
|
4839
4839
|
tmp_8 = toIterable(toReference_2(_this__u8e3s4, it_3, tmp9_elvis_lhs == null ? false : tmp9_elvis_lhs, name), isNullable);
|
|
4840
4840
|
} else {
|
|
4841
4841
|
if (it_3 == null) {
|
|
@@ -4871,7 +4871,7 @@ function resolve_5(_this__u8e3s4, responseOrOpenAPIV3Reference) {
|
|
|
4871
4871
|
return tmp;
|
|
4872
4872
|
}
|
|
4873
4873
|
function toLinkAnnotationList(_this__u8e3s4, links) {
|
|
4874
|
-
var tmp1_safe_receiver = links == null ? null : links.
|
|
4874
|
+
var tmp1_safe_receiver = links == null ? null : links.a3c_1;
|
|
4875
4875
|
var tmp;
|
|
4876
4876
|
if (tmp1_safe_receiver == null) {
|
|
4877
4877
|
tmp = null;
|
|
@@ -4892,9 +4892,9 @@ function toLinkAnnotationList(_this__u8e3s4, links) {
|
|
|
4892
4892
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
4893
4893
|
}
|
|
4894
4894
|
function toField_3(_this__u8e3s4, header, identifier, name) {
|
|
4895
|
-
var tmp0_elvis_lhs = header.
|
|
4895
|
+
var tmp0_elvis_lhs = header.r3c_1;
|
|
4896
4896
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
4897
|
-
var s = header.
|
|
4897
|
+
var s = header.x3c_1;
|
|
4898
4898
|
var tmp;
|
|
4899
4899
|
if (s instanceof OpenAPIV3Reference) {
|
|
4900
4900
|
tmp = toReference_1(_this__u8e3s4, s, isNullable);
|
|
@@ -4912,7 +4912,7 @@ function toField_3(_this__u8e3s4, header, identifier, name) {
|
|
|
4912
4912
|
// Inline function 'kotlin.let' call
|
|
4913
4913
|
var it = tmp;
|
|
4914
4914
|
var tmp0_identifier = new FieldIdentifier(identifier);
|
|
4915
|
-
var tmp1_annotations = toDescriptionAnnotationList(header.
|
|
4915
|
+
var tmp1_annotations = toDescriptionAnnotationList(header.q3c_1);
|
|
4916
4916
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
4917
4917
|
}
|
|
4918
4918
|
function resolve_6(_this__u8e3s4, headerOrReference) {
|
|
@@ -4956,13 +4956,13 @@ function flatten_1(_this__u8e3s4, schemaOrReference, name) {
|
|
|
4956
4956
|
}
|
|
4957
4957
|
function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
4958
4958
|
var tmp;
|
|
4959
|
-
if (exists_0(schemaObject.
|
|
4960
|
-
var tmp0_subject = schemaObject.
|
|
4959
|
+
if (exists_0(schemaObject.f39_1)) {
|
|
4960
|
+
var tmp0_subject = schemaObject.f39_1;
|
|
4961
4961
|
var tmp_0;
|
|
4962
4962
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
4963
4963
|
tmp_0 = emptyList();
|
|
4964
4964
|
} else {
|
|
4965
|
-
var tmp1_safe_receiver = schemaObject.
|
|
4965
|
+
var tmp1_safe_receiver = schemaObject.f39_1;
|
|
4966
4966
|
var tmp_1;
|
|
4967
4967
|
if (tmp1_safe_receiver == null) {
|
|
4968
4968
|
tmp_1 = null;
|
|
@@ -4977,7 +4977,7 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
4977
4977
|
} else {
|
|
4978
4978
|
// Inline function 'kotlin.takeIf' call
|
|
4979
4979
|
var tmp_3;
|
|
4980
|
-
if (!(tmp2_safe_receiver.
|
|
4980
|
+
if (!(tmp2_safe_receiver.e39_1 == null)) {
|
|
4981
4981
|
tmp_3 = tmp2_safe_receiver;
|
|
4982
4982
|
} else {
|
|
4983
4983
|
tmp_3 = null;
|
|
@@ -4996,11 +4996,11 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
4996
4996
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
4997
4997
|
}
|
|
4998
4998
|
tmp = tmp_0;
|
|
4999
|
-
} else if (!(schemaObject.
|
|
5000
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
4999
|
+
} else if (!(schemaObject.j38_1 == null) || !(schemaObject.k38_1 == null)) {
|
|
5000
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.u38_1);
|
|
5001
5001
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
5002
5002
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5003
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
5003
|
+
var tmp0_elvis_lhs = schemaObject.j38_1;
|
|
5004
5004
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
5005
5005
|
var this_0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
5006
5006
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
@@ -5027,7 +5027,7 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
5027
5027
|
}
|
|
5028
5028
|
var tmp_8 = listOf(new Union(null, tmp_5, tmp_6, toSet(destination)));
|
|
5029
5029
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5030
|
-
var tmp0_elvis_lhs_0 = schemaObject.
|
|
5030
|
+
var tmp0_elvis_lhs_0 = schemaObject.j38_1;
|
|
5031
5031
|
// Inline function 'kotlin.collections.flatMapIndexed' call
|
|
5032
5032
|
var tmp0 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
5033
5033
|
// Inline function 'kotlin.collections.flatMapIndexedTo' call
|
|
@@ -5053,11 +5053,11 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
5053
5053
|
addAll(destination_0, list);
|
|
5054
5054
|
}
|
|
5055
5055
|
tmp = plus_0(tmp_8, destination_0);
|
|
5056
|
-
} else if (!(schemaObject.
|
|
5057
|
-
var tmp_10 = toDescriptionAnnotationList(schemaObject.
|
|
5056
|
+
} else if (!(schemaObject.d39_1 == null)) {
|
|
5057
|
+
var tmp_10 = toDescriptionAnnotationList(schemaObject.u38_1);
|
|
5058
5058
|
var tmp_11 = new DefinitionIdentifier(sanitize(name));
|
|
5059
5059
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5060
|
-
var tmp0_elvis_lhs_1 = schemaObject.
|
|
5060
|
+
var tmp0_elvis_lhs_1 = schemaObject.d39_1;
|
|
5061
5061
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5062
5062
|
var tmp0_0 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
5063
5063
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -5081,7 +5081,7 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
5081
5081
|
}
|
|
5082
5082
|
var tmp_12 = listOf(new Type(null, tmp_10, tmp_11, new Shape(list_1), emptyList()));
|
|
5083
5083
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5084
|
-
var tmp0_1 = ensureNotNull(schemaObject.
|
|
5084
|
+
var tmp0_1 = ensureNotNull(schemaObject.d39_1);
|
|
5085
5085
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5086
5086
|
var destination_2 = ArrayList_init_$Create$();
|
|
5087
5087
|
var _iterator__ex2g4s_3 = tmp0_1.t();
|
|
@@ -5090,12 +5090,12 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
5090
5090
|
var tmp_13;
|
|
5091
5091
|
if (element_1 instanceof OpenAPIV3Reference) {
|
|
5092
5092
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5093
|
-
var tmp0_elvis_lhs_2 = resolveOpenAPIV3Schema(_this__u8e3s4, element_1).xe_1.
|
|
5093
|
+
var tmp0_elvis_lhs_2 = resolveOpenAPIV3Schema(_this__u8e3s4, element_1).xe_1.e39_1;
|
|
5094
5094
|
tmp_13 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
5095
5095
|
} else {
|
|
5096
5096
|
if (element_1 instanceof OpenAPIV3Schema) {
|
|
5097
5097
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5098
|
-
var tmp0_elvis_lhs_3 = element_1.
|
|
5098
|
+
var tmp0_elvis_lhs_3 = element_1.e39_1;
|
|
5099
5099
|
tmp_13 = tmp0_elvis_lhs_3 == null ? emptyMap() : tmp0_elvis_lhs_3;
|
|
5100
5100
|
} else {
|
|
5101
5101
|
noWhenBranchMatchedException();
|
|
@@ -5120,9 +5120,9 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
5120
5120
|
addAll(destination_2, list_3);
|
|
5121
5121
|
}
|
|
5122
5122
|
tmp = plus_0(tmp_12, destination_2);
|
|
5123
|
-
} else if (!(schemaObject.
|
|
5123
|
+
} else if (!(schemaObject.b39_1 == null)) {
|
|
5124
5124
|
// Inline function 'kotlin.collections.map' call
|
|
5125
|
-
var this_1 = ensureNotNull(schemaObject.
|
|
5125
|
+
var this_1 = ensureNotNull(schemaObject.b39_1);
|
|
5126
5126
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5127
5127
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
5128
5128
|
var _iterator__ex2g4s_5 = this_1.t();
|
|
@@ -5133,16 +5133,16 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
5133
5133
|
}
|
|
5134
5134
|
// Inline function 'kotlin.let' call
|
|
5135
5135
|
var it = toSet(destination_4);
|
|
5136
|
-
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.
|
|
5136
|
+
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.u38_1), new DefinitionIdentifier(name), it));
|
|
5137
5137
|
} else {
|
|
5138
|
-
var tmp5_subject = schemaObject.
|
|
5138
|
+
var tmp5_subject = schemaObject.n38_1;
|
|
5139
5139
|
var tmp_14;
|
|
5140
5140
|
switch (tmp5_subject == null ? -1 : tmp5_subject.b3_1) {
|
|
5141
5141
|
case -1:
|
|
5142
5142
|
case 5:
|
|
5143
5143
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5144
5144
|
|
|
5145
|
-
var tmp0_elvis_lhs_4 = schemaObject.
|
|
5145
|
+
var tmp0_elvis_lhs_4 = schemaObject.e39_1;
|
|
5146
5146
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5147
5147
|
|
|
5148
5148
|
var tmp0_3 = tmp0_elvis_lhs_4 == null ? emptyMap() : tmp0_elvis_lhs_4;
|
|
@@ -5163,11 +5163,11 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
5163
5163
|
}
|
|
5164
5164
|
|
|
5165
5165
|
var fields = destination_5;
|
|
5166
|
-
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.
|
|
5166
|
+
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.u38_1), new DefinitionIdentifier(name), new Shape(toField_4(_this__u8e3s4, schemaObject, name)), emptyList()));
|
|
5167
5167
|
tmp_14 = plus_0(schema, fields);
|
|
5168
5168
|
break;
|
|
5169
5169
|
case 4:
|
|
5170
|
-
var tmp6_safe_receiver = schemaObject.
|
|
5170
|
+
var tmp6_safe_receiver = schemaObject.c39_1;
|
|
5171
5171
|
var tmp_15;
|
|
5172
5172
|
if (tmp6_safe_receiver == null) {
|
|
5173
5173
|
tmp_15 = null;
|
|
@@ -5199,7 +5199,7 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
5199
5199
|
}
|
|
5200
5200
|
function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
5201
5201
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5202
|
-
var tmp0_elvis_lhs = response.
|
|
5202
|
+
var tmp0_elvis_lhs = response.t3b_1;
|
|
5203
5203
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5204
5204
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
5205
5205
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -5210,10 +5210,10 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5210
5210
|
var element = _iterator__ex2g4s.v();
|
|
5211
5211
|
// Inline function 'kotlin.collections.component2' call
|
|
5212
5212
|
var mediaObject = element.l1();
|
|
5213
|
-
var schema = mediaObject.
|
|
5213
|
+
var schema = mediaObject.m3b_1;
|
|
5214
5214
|
var tmp;
|
|
5215
5215
|
if (schema instanceof OpenAPIV3Schema) {
|
|
5216
|
-
var tmp0_subject = schema.
|
|
5216
|
+
var tmp0_subject = schema.n38_1;
|
|
5217
5217
|
var tmp_0;
|
|
5218
5218
|
switch (tmp0_subject == null ? -1 : tmp0_subject.b3_1) {
|
|
5219
5219
|
case -1:
|
|
@@ -5221,7 +5221,7 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5221
5221
|
tmp_0 = flatten_2(_this__u8e3s4, schema, className([name, _StatusCode___get_value__impl__we50mu(statusCode), 'ResponseBody']));
|
|
5222
5222
|
break;
|
|
5223
5223
|
case 4:
|
|
5224
|
-
var tmp1_safe_receiver = schema.
|
|
5224
|
+
var tmp1_safe_receiver = schema.c39_1;
|
|
5225
5225
|
var tmp_1;
|
|
5226
5226
|
if (tmp1_safe_receiver == null) {
|
|
5227
5227
|
tmp_1 = null;
|
|
@@ -5249,8 +5249,8 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5249
5249
|
return destination;
|
|
5250
5250
|
}
|
|
5251
5251
|
function resolveOpenAPIV3Response(_this__u8e3s4, reference) {
|
|
5252
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5253
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5252
|
+
var tmp0_safe_receiver = _this__u8e3s4.s36_1;
|
|
5253
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u37_1;
|
|
5254
5254
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5255
5255
|
var tmp;
|
|
5256
5256
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5272,7 +5272,7 @@ function resolveOpenAPIV3Response(_this__u8e3s4, reference) {
|
|
|
5272
5272
|
var tmp3_elvis_lhs = tmp;
|
|
5273
5273
|
var tmp_1;
|
|
5274
5274
|
if (tmp3_elvis_lhs == null) {
|
|
5275
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5275
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.m3c_1);
|
|
5276
5276
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5277
5277
|
} else {
|
|
5278
5278
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5280,8 +5280,8 @@ function resolveOpenAPIV3Response(_this__u8e3s4, reference) {
|
|
|
5280
5280
|
return tmp_1;
|
|
5281
5281
|
}
|
|
5282
5282
|
function resolveOpenAPIV3Parameter(_this__u8e3s4, reference) {
|
|
5283
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5284
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5283
|
+
var tmp0_safe_receiver = _this__u8e3s4.s36_1;
|
|
5284
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v37_1;
|
|
5285
5285
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5286
5286
|
var tmp;
|
|
5287
5287
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5303,8 +5303,8 @@ function resolveOpenAPIV3Parameter(_this__u8e3s4, reference) {
|
|
|
5303
5303
|
return tmp;
|
|
5304
5304
|
}
|
|
5305
5305
|
function resolveOpenAPIV3RequestBody(_this__u8e3s4, reference) {
|
|
5306
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5307
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5306
|
+
var tmp0_safe_receiver = _this__u8e3s4.s36_1;
|
|
5307
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x37_1;
|
|
5308
5308
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5309
5309
|
var tmp;
|
|
5310
5310
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5326,7 +5326,7 @@ function resolveOpenAPIV3RequestBody(_this__u8e3s4, reference) {
|
|
|
5326
5326
|
var tmp3_elvis_lhs = tmp;
|
|
5327
5327
|
var tmp_1;
|
|
5328
5328
|
if (tmp3_elvis_lhs == null) {
|
|
5329
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5329
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.m3c_1);
|
|
5330
5330
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5331
5331
|
} else {
|
|
5332
5332
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5334,8 +5334,8 @@ function resolveOpenAPIV3RequestBody(_this__u8e3s4, reference) {
|
|
|
5334
5334
|
return tmp_1;
|
|
5335
5335
|
}
|
|
5336
5336
|
function resolveOpenAPIV3Schema(_this__u8e3s4, reference) {
|
|
5337
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5338
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5337
|
+
var tmp0_safe_receiver = _this__u8e3s4.s36_1;
|
|
5338
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t37_1;
|
|
5339
5339
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5340
5340
|
var tmp;
|
|
5341
5341
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5357,7 +5357,7 @@ function resolveOpenAPIV3Schema(_this__u8e3s4, reference) {
|
|
|
5357
5357
|
var tmp3_elvis_lhs = tmp;
|
|
5358
5358
|
var tmp_1;
|
|
5359
5359
|
if (tmp3_elvis_lhs == null) {
|
|
5360
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5360
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.m3c_1);
|
|
5361
5361
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5362
5362
|
} else {
|
|
5363
5363
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5412,17 +5412,17 @@ function isPrimitive_0(_this__u8e3s4) {
|
|
|
5412
5412
|
return tmp;
|
|
5413
5413
|
}
|
|
5414
5414
|
function toPrimitive_0(_this__u8e3s4) {
|
|
5415
|
-
var tmp0_subject = _this__u8e3s4.
|
|
5415
|
+
var tmp0_subject = _this__u8e3s4.n38_1;
|
|
5416
5416
|
var tmp;
|
|
5417
5417
|
switch (tmp0_subject == null ? -1 : tmp0_subject.b3_1) {
|
|
5418
5418
|
case 0:
|
|
5419
|
-
tmp = !(_this__u8e3s4.
|
|
5419
|
+
tmp = !(_this__u8e3s4.o39_1 == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.o39_1))) : _this__u8e3s4.h39_1 === 'binary' ? Bytes_instance : new String_0(null);
|
|
5420
5420
|
break;
|
|
5421
5421
|
case 2:
|
|
5422
|
-
tmp = new Integer(_this__u8e3s4.
|
|
5422
|
+
tmp = new Integer(_this__u8e3s4.h39_1 === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5423
5423
|
break;
|
|
5424
5424
|
case 1:
|
|
5425
|
-
tmp = new Number_0(_this__u8e3s4.
|
|
5425
|
+
tmp = new Number_0(_this__u8e3s4.h39_1 === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5426
5426
|
break;
|
|
5427
5427
|
case 3:
|
|
5428
5428
|
tmp = Boolean_instance;
|
|
@@ -5435,7 +5435,7 @@ function toPrimitive_0(_this__u8e3s4) {
|
|
|
5435
5435
|
}
|
|
5436
5436
|
function toLinkInfo_0(_this__u8e3s4, name) {
|
|
5437
5437
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5438
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
5438
|
+
var tmp0_elvis_lhs = _this__u8e3s4.g3c_1;
|
|
5439
5439
|
// Inline function 'kotlin.collections.mapValues' call
|
|
5440
5440
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
5441
5441
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
@@ -5449,10 +5449,10 @@ function toLinkInfo_0(_this__u8e3s4, name) {
|
|
|
5449
5449
|
destination.w2(tmp, tmp$ret$2);
|
|
5450
5450
|
}
|
|
5451
5451
|
var tmp_0 = destination;
|
|
5452
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5452
|
+
var tmp0_safe_receiver = _this__u8e3s4.h3c_1;
|
|
5453
5453
|
var tmp_1 = tmp0_safe_receiver == null ? null : asLinkExpression(tmp0_safe_receiver);
|
|
5454
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
5455
|
-
return new LinkInfo(name, _this__u8e3s4.
|
|
5454
|
+
var tmp1_safe_receiver = _this__u8e3s4.j3c_1;
|
|
5455
|
+
return new LinkInfo(name, _this__u8e3s4.f3c_1, _this__u8e3s4.e3c_1, tmp_0, tmp_1, _this__u8e3s4.i3c_1, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.x2v_1);
|
|
5456
5456
|
}
|
|
5457
5457
|
function resolve_8(_this__u8e3s4, linkOrReference) {
|
|
5458
5458
|
var tmp;
|
|
@@ -5468,8 +5468,8 @@ function resolve_8(_this__u8e3s4, linkOrReference) {
|
|
|
5468
5468
|
return tmp;
|
|
5469
5469
|
}
|
|
5470
5470
|
function resolveOpenAPIV3Header(_this__u8e3s4, reference) {
|
|
5471
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5472
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5471
|
+
var tmp0_safe_receiver = _this__u8e3s4.s36_1;
|
|
5472
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y37_1;
|
|
5473
5473
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5474
5474
|
var tmp;
|
|
5475
5475
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5491,7 +5491,7 @@ function resolveOpenAPIV3Header(_this__u8e3s4, reference) {
|
|
|
5491
5491
|
var tmp3_elvis_lhs = tmp;
|
|
5492
5492
|
var tmp_1;
|
|
5493
5493
|
if (tmp3_elvis_lhs == null) {
|
|
5494
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5494
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.m3c_1);
|
|
5495
5495
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5496
5496
|
} else {
|
|
5497
5497
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5518,7 +5518,7 @@ function resolve_9(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
5518
5518
|
}
|
|
5519
5519
|
function toField_4(_this__u8e3s4, schema, name) {
|
|
5520
5520
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5521
|
-
var tmp0_elvis_lhs = schema.
|
|
5521
|
+
var tmp0_elvis_lhs = schema.e39_1;
|
|
5522
5522
|
// Inline function 'kotlin.collections.map' call
|
|
5523
5523
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
5524
5524
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -5531,14 +5531,14 @@ function toField_4(_this__u8e3s4, schema, name) {
|
|
|
5531
5531
|
var key = item.k1();
|
|
5532
5532
|
// Inline function 'kotlin.collections.component2' call
|
|
5533
5533
|
var value = item.l1();
|
|
5534
|
-
var tmp0_safe_receiver = schema.
|
|
5534
|
+
var tmp0_safe_receiver = schema.a39_1;
|
|
5535
5535
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u1(key);
|
|
5536
5536
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
5537
5537
|
var tmp;
|
|
5538
5538
|
if (value instanceof OpenAPIV3Schema) {
|
|
5539
5539
|
var tmp3_identifier = new FieldIdentifier(key);
|
|
5540
|
-
var tmp4_annotations = toDescriptionAnnotationList(value.
|
|
5541
|
-
var tmp5_reference = !(value.
|
|
5540
|
+
var tmp4_annotations = toDescriptionAnnotationList(value.u38_1);
|
|
5541
|
+
var tmp5_reference = !(value.b39_1 == null) ? toReference_2(_this__u8e3s4, value, isNullable, className([name, key])) : equals(value.n38_1, OpenAPIV3Type_ARRAY_getInstance()) ? toReference_2(_this__u8e3s4, value, isNullable, className([name, key, 'Array'])) : toReference_2(_this__u8e3s4, value, isNullable, className([name, key]));
|
|
5542
5542
|
tmp = new Field(tmp4_annotations, tmp3_identifier, tmp5_reference);
|
|
5543
5543
|
} else {
|
|
5544
5544
|
if (value instanceof OpenAPIV3Reference) {
|
|
@@ -5561,8 +5561,8 @@ function asLinkExpression(_this__u8e3s4) {
|
|
|
5561
5561
|
return tmp1_elvis_lhs == null ? toString(_this__u8e3s4) : tmp1_elvis_lhs;
|
|
5562
5562
|
}
|
|
5563
5563
|
function resolveOpenAPIV3Link(_this__u8e3s4, reference) {
|
|
5564
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5565
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5564
|
+
var tmp0_safe_receiver = _this__u8e3s4.s36_1;
|
|
5565
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a38_1;
|
|
5566
5566
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5567
5567
|
var tmp;
|
|
5568
5568
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5584,7 +5584,7 @@ function resolveOpenAPIV3Link(_this__u8e3s4, reference) {
|
|
|
5584
5584
|
var tmp3_elvis_lhs = tmp;
|
|
5585
5585
|
var tmp_1;
|
|
5586
5586
|
if (tmp3_elvis_lhs == null) {
|
|
5587
|
-
var message = 'Cannot resolve link ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5587
|
+
var message = 'Cannot resolve link ref: ' + Ref__toString_impl_irb7zi(reference.m3c_1);
|
|
5588
5588
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5589
5589
|
} else {
|
|
5590
5590
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5593,25 +5593,25 @@ function resolveOpenAPIV3Link(_this__u8e3s4, reference) {
|
|
|
5593
5593
|
}
|
|
5594
5594
|
function parseParameters$lambda_0($this_parseParameters) {
|
|
5595
5595
|
return function ($this$flatMapRequests) {
|
|
5596
|
-
var tmp = $this$flatMapRequests.
|
|
5597
|
-
var tmp_0 = resolveParameters_0($this_parseParameters, (tmp instanceof OpenAPIV3PathItem ? tmp : THROW_CCE()).
|
|
5598
|
-
var tmp_1 = $this$flatMapRequests.
|
|
5599
|
-
var parameters = plus_0(tmp_0, resolveParameters_0($this_parseParameters, (tmp_1 instanceof OpenAPIV3Operation ? tmp_1 : THROW_CCE()).
|
|
5600
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
5601
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
5596
|
+
var tmp = $this$flatMapRequests.a3g_1;
|
|
5597
|
+
var tmp_0 = resolveParameters_0($this_parseParameters, (tmp instanceof OpenAPIV3PathItem ? tmp : THROW_CCE()).c37_1);
|
|
5598
|
+
var tmp_1 = $this$flatMapRequests.c3g_1;
|
|
5599
|
+
var parameters = plus_0(tmp_0, resolveParameters_0($this_parseParameters, (tmp_1 instanceof OpenAPIV3Operation ? tmp_1 : THROW_CCE()).p3a_1));
|
|
5600
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.c3g_1);
|
|
5601
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.z3f_1) + $this$flatMapRequests.b3g_1.a3_1 : tmp0_elvis_lhs;
|
|
5602
5602
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5603
5603
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5604
5604
|
var destination = ArrayList_init_$Create$();
|
|
5605
5605
|
var _iterator__ex2g4s = parameters.t();
|
|
5606
5606
|
while (_iterator__ex2g4s.u()) {
|
|
5607
5607
|
var element = _iterator__ex2g4s.v();
|
|
5608
|
-
var tmp0_safe_receiver = element.
|
|
5608
|
+
var tmp0_safe_receiver = element.j3a_1;
|
|
5609
5609
|
var tmp_2;
|
|
5610
5610
|
if (tmp0_safe_receiver == null) {
|
|
5611
5611
|
tmp_2 = null;
|
|
5612
5612
|
} else {
|
|
5613
5613
|
// Inline function 'kotlin.let' call
|
|
5614
|
-
tmp_2 = flatten_1($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element.
|
|
5614
|
+
tmp_2 = flatten_1($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element.k3a_1]));
|
|
5615
5615
|
}
|
|
5616
5616
|
var tmp1_elvis_lhs = tmp_2;
|
|
5617
5617
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -5622,10 +5622,10 @@ function parseParameters$lambda_0($this_parseParameters) {
|
|
|
5622
5622
|
}
|
|
5623
5623
|
function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
5624
5624
|
return function ($this$flatMapRequests) {
|
|
5625
|
-
var tmp = $this$flatMapRequests.
|
|
5625
|
+
var tmp = $this$flatMapRequests.c3g_1;
|
|
5626
5626
|
var tmp0_elvis_lhs = toName(tmp instanceof OpenAPIV3Operation ? tmp : THROW_CCE());
|
|
5627
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
5628
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
5627
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.z3f_1) + $this$flatMapRequests.b3g_1.a3_1 : tmp0_elvis_lhs;
|
|
5628
|
+
var tmp1_safe_receiver = $this$flatMapRequests.c3g_1.q3a_1;
|
|
5629
5629
|
var tmp_0;
|
|
5630
5630
|
if (tmp1_safe_receiver == null) {
|
|
5631
5631
|
tmp_0 = null;
|
|
@@ -5635,7 +5635,7 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
5635
5635
|
}
|
|
5636
5636
|
var tmp2_safe_receiver = tmp_0;
|
|
5637
5637
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5638
|
-
var tmp0_elvis_lhs_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
5638
|
+
var tmp0_elvis_lhs_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.g3b_1;
|
|
5639
5639
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5640
5640
|
var tmp0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
5641
5641
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -5646,10 +5646,10 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
5646
5646
|
var element = _iterator__ex2g4s.v();
|
|
5647
5647
|
// Inline function 'kotlin.collections.component2' call
|
|
5648
5648
|
var mediaObject = element.l1();
|
|
5649
|
-
var schema = mediaObject.
|
|
5649
|
+
var schema = mediaObject.m3b_1;
|
|
5650
5650
|
var tmp_1;
|
|
5651
5651
|
if (schema instanceof OpenAPIV3Schema) {
|
|
5652
|
-
var tmp0_subject = schema.
|
|
5652
|
+
var tmp0_subject = schema.n38_1;
|
|
5653
5653
|
var tmp_2;
|
|
5654
5654
|
switch (tmp0_subject == null ? -1 : tmp0_subject.b3_1) {
|
|
5655
5655
|
case -1:
|
|
@@ -5657,7 +5657,7 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
5657
5657
|
tmp_2 = flatten_2($this_parseRequestBody, schema, className([name, 'RequestBody']));
|
|
5658
5658
|
break;
|
|
5659
5659
|
case 4:
|
|
5660
|
-
var tmp1_safe_receiver_0 = schema.
|
|
5660
|
+
var tmp1_safe_receiver_0 = schema.c39_1;
|
|
5661
5661
|
var tmp_3;
|
|
5662
5662
|
if (tmp1_safe_receiver_0 == null) {
|
|
5663
5663
|
tmp_3 = null;
|
|
@@ -5697,17 +5697,17 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
5697
5697
|
}
|
|
5698
5698
|
function parseResponseBody$lambda_0($this_parseResponseBody) {
|
|
5699
5699
|
return function ($this$flatMapResponses) {
|
|
5700
|
-
var tmp = $this$flatMapResponses.
|
|
5700
|
+
var tmp = $this$flatMapResponses.g3g_1;
|
|
5701
5701
|
var tmp0_elvis_lhs = toName(tmp instanceof OpenAPIV3Operation ? tmp : THROW_CCE());
|
|
5702
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
5703
|
-
var tmp_0 = $this$flatMapResponses.
|
|
5702
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.d3g_1) + $this$flatMapResponses.f3g_1.a3_1 : tmp0_elvis_lhs;
|
|
5703
|
+
var tmp_0 = $this$flatMapResponses.i3g_1;
|
|
5704
5704
|
var response = isInterface(tmp_0, OpenAPIV3ResponseOrReference) ? tmp_0 : THROW_CCE();
|
|
5705
5705
|
var tmp_1;
|
|
5706
5706
|
if (response instanceof OpenAPIV3Response) {
|
|
5707
|
-
tmp_1 = flatMapResponse($this_parseResponseBody, response, name, $this$flatMapResponses.
|
|
5707
|
+
tmp_1 = flatMapResponse($this_parseResponseBody, response, name, $this$flatMapResponses.h3g_1);
|
|
5708
5708
|
} else {
|
|
5709
5709
|
if (response instanceof OpenAPIV3Reference) {
|
|
5710
|
-
tmp_1 = flatMapResponse($this_parseResponseBody, resolveOpenAPIV3Response($this_parseResponseBody, response).xe_1, name, $this$flatMapResponses.
|
|
5710
|
+
tmp_1 = flatMapResponse($this_parseResponseBody, resolveOpenAPIV3Response($this_parseResponseBody, response).xe_1, name, $this$flatMapResponses.h3g_1);
|
|
5711
5711
|
} else {
|
|
5712
5712
|
noWhenBranchMatchedException();
|
|
5713
5713
|
}
|