@flock/wirespec 0.10.24 → 0.10.26
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.js +1162 -1162
- package/colormath-root-colormath.js +425 -425
- package/kotlin-kotlin-stdlib.js +10 -10
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-rgxgen.js +1767 -1767
- package/markdown.js +1874 -1874
- package/mordant-mordant.js +1641 -1641
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +1823 -1662
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +280 -280
- package/wirespec-src-converter-openapi.js +313 -313
- package/wirespec-src-plugin-arguments.js +78 -78
- package/wirespec-src-plugin-cli.js +113 -113
- package/wirespec-src-plugin-npm.js +4 -4
- package/wirespec-src-tools-generator.js +13 -13
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
initMetadataForObject(OpenApiV3Parser, 'OpenApiV3Parser');
|
|
212
212
|
//endregion
|
|
213
213
|
function Common$className$lambda(it) {
|
|
214
|
-
return Companion_getInstance().
|
|
214
|
+
return Companion_getInstance().q24(it);
|
|
215
215
|
}
|
|
216
216
|
function Common$json$lambda($this$Json) {
|
|
217
217
|
$this$Json.x15_1 = true;
|
|
@@ -220,9 +220,9 @@
|
|
|
220
220
|
function Common() {
|
|
221
221
|
Common_instance = this;
|
|
222
222
|
var tmp = this;
|
|
223
|
-
tmp.
|
|
223
|
+
tmp.e2a_1 = Json(VOID, Common$json$lambda);
|
|
224
224
|
}
|
|
225
|
-
protoOf(Common).
|
|
225
|
+
protoOf(Common).f2a = function (arg) {
|
|
226
226
|
// Inline function 'kotlin.collections.flatMap' call
|
|
227
227
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
228
228
|
var destination = ArrayList_init_$Create$();
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
var tmp = destination;
|
|
239
239
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, Common$className$lambda);
|
|
240
240
|
};
|
|
241
|
-
protoOf(Common).
|
|
241
|
+
protoOf(Common).g2a = function (_this__u8e3s4) {
|
|
242
242
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
243
243
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
244
244
|
var destination = ArrayList_init_$Create$();
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
while (tmp0_iterator.h()) {
|
|
289
289
|
var element = tmp0_iterator.i();
|
|
290
290
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
291
|
-
if (element.
|
|
291
|
+
if (element.x23_1.equals(method)) {
|
|
292
292
|
destination.e(element);
|
|
293
293
|
}
|
|
294
294
|
}
|
|
@@ -304,8 +304,8 @@
|
|
|
304
304
|
return firstOrNull(destination_0);
|
|
305
305
|
}
|
|
306
306
|
function emit_0(_this__u8e3s4, $this) {
|
|
307
|
-
var tmp1_operationId = _this__u8e3s4.
|
|
308
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
307
|
+
var tmp1_operationId = _this__u8e3s4.w23_1.b1();
|
|
308
|
+
var tmp0_safe_receiver = _this__u8e3s4.v23_1;
|
|
309
309
|
var tmp;
|
|
310
310
|
var tmp_0 = tmp0_safe_receiver;
|
|
311
311
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -317,7 +317,7 @@
|
|
|
317
317
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
318
318
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
319
319
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
320
|
-
var this_0 = _this__u8e3s4.
|
|
320
|
+
var this_0 = _this__u8e3s4.c24_1;
|
|
321
321
|
var destination = ArrayList_init_$Create$();
|
|
322
322
|
// Inline function 'kotlin.collections.forEach' call
|
|
323
323
|
var tmp0_iterator = this_0.g();
|
|
@@ -325,8 +325,8 @@
|
|
|
325
325
|
var element = tmp0_iterator.i();
|
|
326
326
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
327
327
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
328
|
-
var tmp0_safe_receiver_0 = element.
|
|
329
|
-
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.
|
|
328
|
+
var tmp0_safe_receiver_0 = element.j24_1;
|
|
329
|
+
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.k24_1;
|
|
330
330
|
if (tmp0_safe_receiver_1 == null)
|
|
331
331
|
null;
|
|
332
332
|
else {
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
349
349
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
350
350
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
351
|
-
var this_2 = _this__u8e3s4.
|
|
351
|
+
var this_2 = _this__u8e3s4.d24_1;
|
|
352
352
|
var destination_0 = ArrayList_init_$Create$();
|
|
353
353
|
// Inline function 'kotlin.collections.forEach' call
|
|
354
354
|
var tmp0_iterator_0 = this_2.g();
|
|
@@ -356,8 +356,8 @@
|
|
|
356
356
|
var element_0 = tmp0_iterator_0.i();
|
|
357
357
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
358
358
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
359
|
-
var tmp0_safe_receiver_2 = element_0.
|
|
360
|
-
var tmp0_safe_receiver_3 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.
|
|
359
|
+
var tmp0_safe_receiver_2 = element_0.g24_1;
|
|
360
|
+
var tmp0_safe_receiver_3 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.k24_1;
|
|
361
361
|
if (tmp0_safe_receiver_3 == null)
|
|
362
362
|
null;
|
|
363
363
|
else {
|
|
@@ -379,7 +379,7 @@
|
|
|
379
379
|
// Inline function 'kotlin.collections.map' call
|
|
380
380
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
381
381
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
382
|
-
var this_4 = _this__u8e3s4.
|
|
382
|
+
var this_4 = _this__u8e3s4.c24_1;
|
|
383
383
|
var destination_1 = ArrayList_init_$Create$();
|
|
384
384
|
// Inline function 'kotlin.collections.forEach' call
|
|
385
385
|
var tmp0_iterator_1 = this_4.g();
|
|
@@ -387,7 +387,7 @@
|
|
|
387
387
|
var element_1 = tmp0_iterator_1.i();
|
|
388
388
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
389
389
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
390
|
-
var tmp0_safe_receiver_4 = element_1.
|
|
390
|
+
var tmp0_safe_receiver_4 = element_1.j24_1;
|
|
391
391
|
if (tmp0_safe_receiver_4 == null)
|
|
392
392
|
null;
|
|
393
393
|
else {
|
|
@@ -404,14 +404,14 @@
|
|
|
404
404
|
var item = tmp0_iterator_2.i();
|
|
405
405
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
406
406
|
var tmp0_in = ParameterLocation_BODY_getInstance();
|
|
407
|
-
var tmp1_schema = OpenApiV2Emitter_getInstance().
|
|
408
|
-
var tmp2_required = !item.
|
|
407
|
+
var tmp1_schema = OpenApiV2Emitter_getInstance().x24(item.l24_1);
|
|
408
|
+
var tmp2_required = !item.m24_1;
|
|
409
409
|
var tmp$ret$16 = new ParameterObject('RequestBody', tmp0_in, VOID, tmp2_required, tmp1_schema);
|
|
410
410
|
destination_2.e(tmp$ret$16);
|
|
411
411
|
}
|
|
412
412
|
var tmp_3 = destination_2;
|
|
413
413
|
// Inline function 'kotlin.collections.map' call
|
|
414
|
-
var this_6 = _this__u8e3s4.
|
|
414
|
+
var this_6 = _this__u8e3s4.z23_1;
|
|
415
415
|
// Inline function 'kotlin.collections.mapTo' call
|
|
416
416
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_6, 10));
|
|
417
417
|
var tmp0_iterator_3 = this_6.g();
|
|
@@ -423,7 +423,7 @@
|
|
|
423
423
|
}
|
|
424
424
|
var tmp_4 = plus(tmp_3, destination_3);
|
|
425
425
|
// Inline function 'kotlin.collections.map' call
|
|
426
|
-
var this_7 = _this__u8e3s4.
|
|
426
|
+
var this_7 = _this__u8e3s4.a24_1;
|
|
427
427
|
// Inline function 'kotlin.collections.mapTo' call
|
|
428
428
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_7, 10));
|
|
429
429
|
var tmp0_iterator_4 = this_7.g();
|
|
@@ -435,7 +435,7 @@
|
|
|
435
435
|
}
|
|
436
436
|
var tmp5_parameters = plus(tmp_4, destination_4);
|
|
437
437
|
// Inline function 'kotlin.collections.associate' call
|
|
438
|
-
var this_8 = _this__u8e3s4.
|
|
438
|
+
var this_8 = _this__u8e3s4.d24_1;
|
|
439
439
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_8, 10)), 16);
|
|
440
440
|
// Inline function 'kotlin.collections.associateTo' call
|
|
441
441
|
var destination_5 = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -444,8 +444,8 @@
|
|
|
444
444
|
var element_2 = tmp0_iterator_5.i();
|
|
445
445
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
446
446
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
447
|
-
var tmp_5 = _StatusCode___init__impl__t1yi9q(element_2.
|
|
448
|
-
var tmp0_safe_receiver_5 = _this__u8e3s4.
|
|
447
|
+
var tmp_5 = _StatusCode___init__impl__t1yi9q(element_2.e24_1);
|
|
448
|
+
var tmp0_safe_receiver_5 = _this__u8e3s4.v23_1;
|
|
449
449
|
var tmp_6;
|
|
450
450
|
var tmp_7 = tmp0_safe_receiver_5;
|
|
451
451
|
if ((tmp_7 == null ? null : new Comment(tmp_7)) == null) {
|
|
@@ -454,9 +454,9 @@
|
|
|
454
454
|
tmp_6 = _Comment___get_value__impl__8r3pla(tmp0_safe_receiver_5);
|
|
455
455
|
}
|
|
456
456
|
var tmp1_elvis_lhs = tmp_6;
|
|
457
|
-
var tmp4_description = tmp1_elvis_lhs == null ? _this__u8e3s4.
|
|
457
|
+
var tmp4_description = tmp1_elvis_lhs == null ? _this__u8e3s4.w23_1.b1() + ' ' + element_2.e24_1 + ' response' : tmp1_elvis_lhs;
|
|
458
458
|
// Inline function 'kotlin.collections.associate' call
|
|
459
|
-
var this_9 = element_2.
|
|
459
|
+
var this_9 = element_2.f24_1;
|
|
460
460
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_9, 10)), 16);
|
|
461
461
|
// Inline function 'kotlin.collections.associateTo' call
|
|
462
462
|
var destination_6 = LinkedHashMap_init_$Create$(capacity_0);
|
|
@@ -465,10 +465,10 @@
|
|
|
465
465
|
var element_3 = tmp0_iterator_6.i();
|
|
466
466
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
467
467
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
468
|
-
var pair = to(element_3.
|
|
468
|
+
var pair = to(element_3.r24_1.b1(), new HeaderObject(VOID, emitType_0(element_3.s24_1, OpenApiV2Emitter_getInstance()).p2_1, emitFormat(element_3.s24_1, OpenApiV2Emitter_getInstance()), element_3.s24_1.n24() ? OpenApiV2Emitter_getInstance().x24(element_3.s24_1) : null));
|
|
469
469
|
destination_6.m2(pair.ce_1, pair.de_1);
|
|
470
470
|
}
|
|
471
|
-
var tmp2_safe_receiver = element_2.
|
|
471
|
+
var tmp2_safe_receiver = element_2.g24_1;
|
|
472
472
|
var tmp_8;
|
|
473
473
|
if (tmp2_safe_receiver == null) {
|
|
474
474
|
tmp_8 = null;
|
|
@@ -477,7 +477,7 @@
|
|
|
477
477
|
// Inline function 'kotlin.contracts.contract' call
|
|
478
478
|
var tmp_9;
|
|
479
479
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
480
|
-
var tmp_10 = tmp2_safe_receiver.
|
|
480
|
+
var tmp_10 = tmp2_safe_receiver.l24_1;
|
|
481
481
|
if (!(tmp_10 instanceof Unit)) {
|
|
482
482
|
tmp_9 = tmp2_safe_receiver;
|
|
483
483
|
} else {
|
|
@@ -494,12 +494,12 @@
|
|
|
494
494
|
// Inline function 'kotlin.contracts.contract' call
|
|
495
495
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
496
496
|
var tmp_12;
|
|
497
|
-
switch (tmp3_safe_receiver.
|
|
497
|
+
switch (tmp3_safe_receiver.l24_1.n24()) {
|
|
498
498
|
case false:
|
|
499
|
-
tmp_12 = OpenApiV2Emitter_getInstance().
|
|
499
|
+
tmp_12 = OpenApiV2Emitter_getInstance().x24(tmp3_safe_receiver.l24_1);
|
|
500
500
|
break;
|
|
501
501
|
case true:
|
|
502
|
-
tmp_12 = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), OpenApiV2Emitter_getInstance().
|
|
502
|
+
tmp_12 = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), OpenApiV2Emitter_getInstance().x24(tmp3_safe_receiver.l24_1));
|
|
503
503
|
break;
|
|
504
504
|
default:
|
|
505
505
|
noWhenBranchMatchedException();
|
|
@@ -517,13 +517,13 @@
|
|
|
517
517
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenApiV2Emitter$emitSegment$lambda);
|
|
518
518
|
}
|
|
519
519
|
function emitParameter(_this__u8e3s4, $this, location) {
|
|
520
|
-
var tmp1_name = _this__u8e3s4.
|
|
521
|
-
var tmp2_type = emitType_0(_this__u8e3s4.
|
|
522
|
-
var tmp3_format = emitFormat(_this__u8e3s4.
|
|
520
|
+
var tmp1_name = _this__u8e3s4.r24_1.b1();
|
|
521
|
+
var tmp2_type = emitType_0(_this__u8e3s4.s24_1, $this);
|
|
522
|
+
var tmp3_format = emitFormat(_this__u8e3s4.s24_1, $this);
|
|
523
523
|
var tmp;
|
|
524
|
-
switch (_this__u8e3s4.
|
|
524
|
+
switch (_this__u8e3s4.s24_1.n24()) {
|
|
525
525
|
case true:
|
|
526
|
-
var emit = $this.
|
|
526
|
+
var emit = $this.x24(_this__u8e3s4.s24_1);
|
|
527
527
|
var tmp_0;
|
|
528
528
|
if (emit instanceof ReferenceObject) {
|
|
529
529
|
tmp_0 = emit;
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
break;
|
|
546
546
|
}
|
|
547
547
|
var tmp4_items = tmp;
|
|
548
|
-
var tmp5_required = !_this__u8e3s4.
|
|
548
|
+
var tmp5_required = !_this__u8e3s4.t24_1;
|
|
549
549
|
return new ParameterObject(tmp1_name, location, VOID, tmp5_required, VOID, tmp2_type, tmp4_items, tmp3_format);
|
|
550
550
|
}
|
|
551
551
|
function emitType(_this__u8e3s4, $this) {
|
|
@@ -575,12 +575,12 @@
|
|
|
575
575
|
}
|
|
576
576
|
function emitType_0(_this__u8e3s4, $this) {
|
|
577
577
|
var tmp;
|
|
578
|
-
if (_this__u8e3s4.
|
|
578
|
+
if (_this__u8e3s4.n24()) {
|
|
579
579
|
tmp = Type_ARRAY_getInstance();
|
|
580
580
|
} else {
|
|
581
581
|
var tmp_0;
|
|
582
582
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
583
|
-
tmp_0 = emitType(_this__u8e3s4.
|
|
583
|
+
tmp_0 = emitType(_this__u8e3s4.n23_1, $this);
|
|
584
584
|
} else {
|
|
585
585
|
if (_this__u8e3s4 instanceof Custom) {
|
|
586
586
|
tmp_0 = Type_OBJECT_getInstance();
|
|
@@ -603,11 +603,11 @@
|
|
|
603
603
|
function emitFormat(_this__u8e3s4, $this) {
|
|
604
604
|
var tmp;
|
|
605
605
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
606
|
-
var t = _this__u8e3s4.
|
|
606
|
+
var t = _this__u8e3s4.n23_1;
|
|
607
607
|
var tmp_0;
|
|
608
608
|
if (t instanceof Number_0) {
|
|
609
609
|
var tmp_1;
|
|
610
|
-
switch (t.
|
|
610
|
+
switch (t.r23_1.q2_1) {
|
|
611
611
|
case 0:
|
|
612
612
|
tmp_1 = 'float';
|
|
613
613
|
break;
|
|
@@ -622,7 +622,7 @@
|
|
|
622
622
|
} else {
|
|
623
623
|
if (t instanceof Integer) {
|
|
624
624
|
var tmp_2;
|
|
625
|
-
switch (t.
|
|
625
|
+
switch (t.t23_1.q2_1) {
|
|
626
626
|
case 0:
|
|
627
627
|
tmp_2 = 'int32';
|
|
628
628
|
break;
|
|
@@ -651,10 +651,10 @@
|
|
|
651
651
|
function OpenApiV2Emitter$emitSegment$lambda(it) {
|
|
652
652
|
var tmp;
|
|
653
653
|
if (it instanceof Param) {
|
|
654
|
-
tmp = '{' + it.
|
|
654
|
+
tmp = '{' + it.v24_1.b1() + '}';
|
|
655
655
|
} else {
|
|
656
656
|
if (it instanceof Literal) {
|
|
657
|
-
tmp = it.
|
|
657
|
+
tmp = it.e25_1;
|
|
658
658
|
} else {
|
|
659
659
|
noWhenBranchMatchedException();
|
|
660
660
|
}
|
|
@@ -664,15 +664,15 @@
|
|
|
664
664
|
function OpenApiV2Emitter() {
|
|
665
665
|
OpenApiV2Emitter_instance = this;
|
|
666
666
|
Emitter.call(this, get_noLogger());
|
|
667
|
-
this.
|
|
667
|
+
this.j2a_1 = '';
|
|
668
668
|
}
|
|
669
|
-
protoOf(OpenApiV2Emitter).
|
|
670
|
-
return this.
|
|
669
|
+
protoOf(OpenApiV2Emitter).r25 = function () {
|
|
670
|
+
return this.j2a_1;
|
|
671
671
|
};
|
|
672
672
|
protoOf(OpenApiV2Emitter).p22 = function (ast) {
|
|
673
673
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
674
|
-
var this_0 = Common_getInstance().
|
|
675
|
-
var value = this.
|
|
674
|
+
var this_0 = Common_getInstance().e2a_1;
|
|
675
|
+
var value = this.k2a(ast);
|
|
676
676
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
677
677
|
var this_1 = this_0.mo();
|
|
678
678
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -681,25 +681,25 @@
|
|
|
681
681
|
var tmp$ret$2 = this_0.b15(tmp$ret$1, value);
|
|
682
682
|
return listOf(new Emitted('SwaggerObject', tmp$ret$2));
|
|
683
683
|
};
|
|
684
|
-
protoOf(OpenApiV2Emitter).
|
|
685
|
-
return this.
|
|
684
|
+
protoOf(OpenApiV2Emitter).v25 = function (type, ast) {
|
|
685
|
+
return this.l26();
|
|
686
686
|
};
|
|
687
|
-
protoOf(OpenApiV2Emitter).
|
|
688
|
-
return this.
|
|
687
|
+
protoOf(OpenApiV2Emitter).c26 = function (enum_0) {
|
|
688
|
+
return this.l26();
|
|
689
689
|
};
|
|
690
|
-
protoOf(OpenApiV2Emitter).
|
|
691
|
-
return this.
|
|
690
|
+
protoOf(OpenApiV2Emitter).y25 = function (refined) {
|
|
691
|
+
return this.l26();
|
|
692
692
|
};
|
|
693
|
-
protoOf(OpenApiV2Emitter).
|
|
694
|
-
return this.
|
|
693
|
+
protoOf(OpenApiV2Emitter).g26 = function (endpoint) {
|
|
694
|
+
return this.l26();
|
|
695
695
|
};
|
|
696
|
-
protoOf(OpenApiV2Emitter).
|
|
697
|
-
return this.
|
|
696
|
+
protoOf(OpenApiV2Emitter).e26 = function (union) {
|
|
697
|
+
return this.l26();
|
|
698
698
|
};
|
|
699
|
-
protoOf(OpenApiV2Emitter).
|
|
700
|
-
return this.
|
|
699
|
+
protoOf(OpenApiV2Emitter).f26 = function (channel) {
|
|
700
|
+
return this.l26();
|
|
701
701
|
};
|
|
702
|
-
protoOf(OpenApiV2Emitter).
|
|
702
|
+
protoOf(OpenApiV2Emitter).k2a = function (ast) {
|
|
703
703
|
var tmp = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, '0.0.0');
|
|
704
704
|
var tmp_0 = listOf('application/json');
|
|
705
705
|
var tmp_1 = listOf('application/json');
|
|
@@ -721,7 +721,7 @@
|
|
|
721
721
|
while (tmp0_iterator_0.h()) {
|
|
722
722
|
var element_0 = tmp0_iterator_0.i();
|
|
723
723
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
724
|
-
var key = element_0.
|
|
724
|
+
var key = element_0.y23_1;
|
|
725
725
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
726
726
|
var value = destination_0.f2(key);
|
|
727
727
|
var tmp_2;
|
|
@@ -766,9 +766,9 @@
|
|
|
766
766
|
var item_0 = tmp0_iterator_3.i();
|
|
767
767
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
768
768
|
var tmp0_in = ParameterLocation_PATH_getInstance();
|
|
769
|
-
var tmp1_name = item_0.
|
|
770
|
-
var tmp2_type = emitType_0(item_0.
|
|
771
|
-
var tmp3_format = emitFormat(item_0.
|
|
769
|
+
var tmp1_name = item_0.v24_1.b1();
|
|
770
|
+
var tmp2_type = emitType_0(item_0.w24_1, OpenApiV2Emitter_getInstance());
|
|
771
|
+
var tmp3_format = emitFormat(item_0.w24_1, OpenApiV2Emitter_getInstance());
|
|
772
772
|
var tmp$ret$12 = new ParameterObject(tmp1_name, tmp0_in, VOID, VOID, VOID, tmp2_type, VOID, tmp3_format);
|
|
773
773
|
destination_3.e(tmp$ret$12);
|
|
774
774
|
}
|
|
@@ -803,9 +803,9 @@
|
|
|
803
803
|
var element_3 = tmp0_iterator_5.i();
|
|
804
804
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
805
805
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
806
|
-
var tmp_5 = element_3.
|
|
806
|
+
var tmp_5 = element_3.i25_1.b1();
|
|
807
807
|
var tmp0_type = Type_STRING_getInstance();
|
|
808
|
-
var tmp1_pattern = element_3.
|
|
808
|
+
var tmp1_pattern = element_3.j25_1.a26_1;
|
|
809
809
|
var pair = to(tmp_5, new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_pattern, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_type));
|
|
810
810
|
destination_5.m2(pair.ce_1, pair.de_1);
|
|
811
811
|
}
|
|
@@ -829,9 +829,9 @@
|
|
|
829
829
|
var element_5 = tmp0_iterator_7.i();
|
|
830
830
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
831
831
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
832
|
-
var tmp_7 = element_5.
|
|
832
|
+
var tmp_7 = element_5.d23_1.b1();
|
|
833
833
|
// Inline function 'kotlin.collections.associate' call
|
|
834
|
-
var this_0 = element_5.
|
|
834
|
+
var this_0 = element_5.e23_1.x25_1;
|
|
835
835
|
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
836
836
|
// Inline function 'kotlin.collections.associateTo' call
|
|
837
837
|
var destination_8 = LinkedHashMap_init_$Create$(capacity_1);
|
|
@@ -840,20 +840,20 @@
|
|
|
840
840
|
var element_6 = tmp0_iterator_8.i();
|
|
841
841
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
842
842
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
843
|
-
var pair_0 = OpenApiV2Emitter_getInstance().
|
|
843
|
+
var pair_0 = OpenApiV2Emitter_getInstance().b25(element_6);
|
|
844
844
|
destination_8.m2(pair_0.ce_1, pair_0.de_1);
|
|
845
845
|
}
|
|
846
846
|
// Inline function 'kotlin.takeIf' call
|
|
847
847
|
// Inline function 'kotlin.collections.map' call
|
|
848
848
|
// Inline function 'kotlin.collections.filter' call
|
|
849
849
|
// Inline function 'kotlin.collections.filterTo' call
|
|
850
|
-
var this_1 = element_5.
|
|
850
|
+
var this_1 = element_5.e23_1.x25_1;
|
|
851
851
|
var destination_9 = ArrayList_init_$Create$();
|
|
852
852
|
var tmp0_iterator_9 = this_1.g();
|
|
853
853
|
while (tmp0_iterator_9.h()) {
|
|
854
854
|
var element_7 = tmp0_iterator_9.i();
|
|
855
855
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
856
|
-
if (!element_7.
|
|
856
|
+
if (!element_7.t24_1) {
|
|
857
857
|
destination_9.e(element_7);
|
|
858
858
|
}
|
|
859
859
|
}
|
|
@@ -863,7 +863,7 @@
|
|
|
863
863
|
while (tmp0_iterator_10.h()) {
|
|
864
864
|
var item_1 = tmp0_iterator_10.i();
|
|
865
865
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
866
|
-
var tmp$ret$31 = item_1.
|
|
866
|
+
var tmp$ret$31 = item_1.r24_1.b1();
|
|
867
867
|
destination_10.e(tmp$ret$31);
|
|
868
868
|
}
|
|
869
869
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -899,10 +899,10 @@
|
|
|
899
899
|
var element_9 = tmp0_iterator_12.i();
|
|
900
900
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
901
901
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
902
|
-
var tmp_10 = element_9.
|
|
902
|
+
var tmp_10 = element_9.l25_1.b1();
|
|
903
903
|
var tmp0_type_0 = Type_STRING_getInstance();
|
|
904
904
|
// Inline function 'kotlin.collections.map' call
|
|
905
|
-
var this_2 = element_9.
|
|
905
|
+
var this_2 = element_9.m25_1;
|
|
906
906
|
// Inline function 'kotlin.collections.mapTo' call
|
|
907
907
|
var destination_13 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
|
|
908
908
|
var tmp0_iterator_13 = this_2.g();
|
|
@@ -917,17 +917,17 @@
|
|
|
917
917
|
}
|
|
918
918
|
return new SwaggerObject('2.0', tmp, VOID, VOID, VOID, tmp_0, tmp_1, tmp_4, plus_0(tmp_9, destination_12));
|
|
919
919
|
};
|
|
920
|
-
protoOf(OpenApiV2Emitter).
|
|
921
|
-
return to(_this__u8e3s4.
|
|
920
|
+
protoOf(OpenApiV2Emitter).b25 = function (_this__u8e3s4) {
|
|
921
|
+
return to(_this__u8e3s4.r24_1.b1(), this.x24(_this__u8e3s4.s24_1));
|
|
922
922
|
};
|
|
923
|
-
protoOf(OpenApiV2Emitter).
|
|
923
|
+
protoOf(OpenApiV2Emitter).x24 = function (_this__u8e3s4) {
|
|
924
924
|
// Inline function 'kotlin.let' call
|
|
925
925
|
var tmp;
|
|
926
926
|
if (_this__u8e3s4 instanceof Custom) {
|
|
927
|
-
tmp = new ReferenceObject(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.
|
|
927
|
+
tmp = new ReferenceObject(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.z22_1));
|
|
928
928
|
} else {
|
|
929
929
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
930
|
-
var tmp1_type = emitType(_this__u8e3s4.
|
|
930
|
+
var tmp1_type = emitType(_this__u8e3s4.n23_1, this);
|
|
931
931
|
var tmp2_format = emitFormat(_this__u8e3s4, this);
|
|
932
932
|
tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, tmp2_format, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_type);
|
|
933
933
|
} else {
|
|
@@ -947,7 +947,7 @@
|
|
|
947
947
|
// Inline function 'kotlin.contracts.contract' call
|
|
948
948
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
949
949
|
var it = tmp;
|
|
950
|
-
return _this__u8e3s4.
|
|
950
|
+
return _this__u8e3s4.n24() ? new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), it) : it;
|
|
951
951
|
};
|
|
952
952
|
var OpenApiV2Emitter_instance;
|
|
953
953
|
function OpenApiV2Emitter_getInstance() {
|
|
@@ -1079,7 +1079,7 @@
|
|
|
1079
1079
|
tmp_1 = toReference(_this__u8e3s4, OpenApiV2Parser_instance, schema);
|
|
1080
1080
|
} else {
|
|
1081
1081
|
if (schema instanceof SchemaObject) {
|
|
1082
|
-
tmp_1 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, schema, Common_getInstance().
|
|
1082
|
+
tmp_1 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, schema, Common_getInstance().f2a([name, 'RequestBody']));
|
|
1083
1083
|
} else {
|
|
1084
1084
|
if (schema == null) {
|
|
1085
1085
|
var reason = 'Not yet implemented';
|
|
@@ -1198,7 +1198,7 @@
|
|
|
1198
1198
|
tmp_11 = toReference(_this__u8e3s4, OpenApiV2Parser_instance, tmp1_safe_receiver);
|
|
1199
1199
|
} else {
|
|
1200
1200
|
if (tmp1_safe_receiver instanceof SchemaObject) {
|
|
1201
|
-
tmp_11 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
1201
|
+
tmp_11 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, tmp1_safe_receiver, Common_getInstance().f2a([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']));
|
|
1202
1202
|
} else {
|
|
1203
1203
|
noWhenBranchMatchedException();
|
|
1204
1204
|
}
|
|
@@ -1217,7 +1217,7 @@
|
|
|
1217
1217
|
while (tmp0_iterator_12.h()) {
|
|
1218
1218
|
var e = tmp0_iterator_12.i();
|
|
1219
1219
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
1220
|
-
var key = to(e.
|
|
1220
|
+
var key = to(e.e24_1, e.g24_1);
|
|
1221
1221
|
if (set.e(key)) {
|
|
1222
1222
|
list_1.e(e);
|
|
1223
1223
|
}
|
|
@@ -1278,7 +1278,7 @@
|
|
|
1278
1278
|
while (tmp0_iterator_1.h()) {
|
|
1279
1279
|
var element_0 = tmp0_iterator_1.i();
|
|
1280
1280
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseDefinitions.<anonymous>' call
|
|
1281
|
-
var list = flatten(_this__u8e3s4, OpenApiV2Parser_instance, element_0.b1(), Common_getInstance().
|
|
1281
|
+
var list = flatten(_this__u8e3s4, OpenApiV2Parser_instance, element_0.b1(), Common_getInstance().f2a([element_0.a1()]));
|
|
1282
1282
|
addAll(destination_0, list);
|
|
1283
1283
|
}
|
|
1284
1284
|
return destination_0;
|
|
@@ -1559,7 +1559,7 @@
|
|
|
1559
1559
|
while (tmp0_iterator_0.h()) {
|
|
1560
1560
|
var e = tmp0_iterator_0.i();
|
|
1561
1561
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
|
|
1562
|
-
var key = e.
|
|
1562
|
+
var key = e.r24_1;
|
|
1563
1563
|
if (set.e(key)) {
|
|
1564
1564
|
list_0.e(e);
|
|
1565
1565
|
}
|
|
@@ -1598,7 +1598,7 @@
|
|
|
1598
1598
|
tmp_9 = emptyList();
|
|
1599
1599
|
} else {
|
|
1600
1600
|
if (value instanceof SchemaObject) {
|
|
1601
|
-
tmp_9 = flatten(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().
|
|
1601
|
+
tmp_9 = flatten(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().f2a([name, key_0]));
|
|
1602
1602
|
} else {
|
|
1603
1603
|
noWhenBranchMatchedException();
|
|
1604
1604
|
}
|
|
@@ -1657,7 +1657,7 @@
|
|
|
1657
1657
|
var key_1 = element_2.a1();
|
|
1658
1658
|
// Inline function 'kotlin.collections.component2' call
|
|
1659
1659
|
var value_0 = element_2.b1();
|
|
1660
|
-
var list_3 = flatten_0(_this__u8e3s4, OpenApiV2Parser_instance, value_0, Common_getInstance().
|
|
1660
|
+
var list_3 = flatten_0(_this__u8e3s4, OpenApiV2Parser_instance, value_0, Common_getInstance().f2a([name, key_1]));
|
|
1661
1661
|
addAll(destination_3, list_3);
|
|
1662
1662
|
}
|
|
1663
1663
|
|
|
@@ -1672,7 +1672,7 @@
|
|
|
1672
1672
|
tmp_11 = emptyList();
|
|
1673
1673
|
} else {
|
|
1674
1674
|
if (it_0 instanceof SchemaObject) {
|
|
1675
|
-
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().
|
|
1675
|
+
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().f2a([name, 'Array']));
|
|
1676
1676
|
} else {
|
|
1677
1677
|
if (it_0 == null) {
|
|
1678
1678
|
tmp_11 = emptyList();
|
|
@@ -1730,7 +1730,7 @@
|
|
|
1730
1730
|
}
|
|
1731
1731
|
tmp = tmp_0;
|
|
1732
1732
|
} else if (!(schema.d1n_1 == null)) {
|
|
1733
|
-
tmp = new Custom(Common_getInstance().
|
|
1733
|
+
tmp = new Custom(Common_getInstance().f2a([getReference(reference, OpenApiV2Parser_instance)]), false, false);
|
|
1734
1734
|
} else if (isPrimitive(schema.e1n_1)) {
|
|
1735
1735
|
tmp = new Primitive(toPrimitive(ensureNotNull(schema.e1n_1), OpenApiV2Parser_instance, schema.l1m_1), false, false);
|
|
1736
1736
|
} else {
|
|
@@ -1743,7 +1743,7 @@
|
|
|
1743
1743
|
tmp_2 = toIterable(toReference(_this__u8e3s4, OpenApiV2Parser_instance, items));
|
|
1744
1744
|
} else {
|
|
1745
1745
|
if (items instanceof SchemaObject) {
|
|
1746
|
-
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, items, Common_getInstance().
|
|
1746
|
+
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, items, Common_getInstance().f2a([getReference(reference, OpenApiV2Parser_instance), 'Array'])));
|
|
1747
1747
|
} else {
|
|
1748
1748
|
if (items == null) {
|
|
1749
1749
|
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.n1n_1);
|
|
@@ -1757,10 +1757,10 @@
|
|
|
1757
1757
|
} else {
|
|
1758
1758
|
var tmp_3;
|
|
1759
1759
|
if (refOrSchema instanceof SchemaObject) {
|
|
1760
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
1760
|
+
tmp_3 = new Custom(Common_getInstance().f2a([getReference(reference, OpenApiV2Parser_instance)]), false);
|
|
1761
1761
|
} else {
|
|
1762
1762
|
if (refOrSchema instanceof ReferenceObject) {
|
|
1763
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
1763
|
+
tmp_3 = new Custom(Common_getInstance().f2a([getReference(refOrSchema, OpenApiV2Parser_instance)]), false);
|
|
1764
1764
|
} else {
|
|
1765
1765
|
noWhenBranchMatchedException();
|
|
1766
1766
|
}
|
|
@@ -1908,7 +1908,7 @@
|
|
|
1908
1908
|
var tmp$ret$0 = tmp_0;
|
|
1909
1909
|
result.m2(element, tmp$ret$0);
|
|
1910
1910
|
}
|
|
1911
|
-
return tmp.
|
|
1911
|
+
return tmp.g2a(result);
|
|
1912
1912
|
}
|
|
1913
1913
|
function getReference(_this__u8e3s4, $this) {
|
|
1914
1914
|
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.n1n_1), ['/']).k(2);
|
|
@@ -1991,7 +1991,7 @@
|
|
|
1991
1991
|
var tmp;
|
|
1992
1992
|
if (value instanceof SchemaObject) {
|
|
1993
1993
|
var tmp_0 = new FieldIdentifier(key);
|
|
1994
|
-
var tmp_1 = !(value.d1n_1 == null) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().
|
|
1994
|
+
var tmp_1 = !(value.d1n_1 == null) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().f2a([name, key])) : equals(value.e1n_1, Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().f2a([name, key, 'Array'])) : toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().f2a([name, key]));
|
|
1995
1995
|
var tmp1_safe_receiver = schema.c1n_1;
|
|
1996
1996
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p1(key);
|
|
1997
1997
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
@@ -2019,7 +2019,7 @@
|
|
|
2019
2019
|
var it = resolve_3(_this__u8e3s4, $this, parameter);
|
|
2020
2020
|
var tmp;
|
|
2021
2021
|
if (!(parameter.f1j_1 == null)) {
|
|
2022
|
-
tmp = new Custom(Common_getInstance().
|
|
2022
|
+
tmp = new Custom(Common_getInstance().f2a([name, 'Parameter', it.k1i_1]), false);
|
|
2023
2023
|
} else {
|
|
2024
2024
|
var type = it.p1i_1;
|
|
2025
2025
|
var tmp_0;
|
|
@@ -2199,7 +2199,7 @@
|
|
|
2199
2199
|
// Inline function 'kotlin.let' call
|
|
2200
2200
|
// Inline function 'kotlin.contracts.contract' call
|
|
2201
2201
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toName.<anonymous>' call
|
|
2202
|
-
tmp = Common_getInstance().
|
|
2202
|
+
tmp = Common_getInstance().f2a([tmp0_safe_receiver]);
|
|
2203
2203
|
}
|
|
2204
2204
|
return tmp;
|
|
2205
2205
|
}
|
|
@@ -2221,21 +2221,21 @@
|
|
|
2221
2221
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenApiV2Parser$toName$lambda);
|
|
2222
2222
|
}
|
|
2223
2223
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
2224
|
-
this.
|
|
2225
|
-
this.
|
|
2226
|
-
this.
|
|
2227
|
-
this.
|
|
2228
|
-
this.
|
|
2224
|
+
this.l2a_1 = path;
|
|
2225
|
+
this.m2a_1 = pathItem;
|
|
2226
|
+
this.n2a_1 = method;
|
|
2227
|
+
this.o2a_1 = operation;
|
|
2228
|
+
this.p2a_1 = type;
|
|
2229
2229
|
}
|
|
2230
2230
|
protoOf(FlattenRequest).toString = function () {
|
|
2231
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
2231
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.l2a_1) + ', pathItem=' + this.m2a_1.toString() + ', method=' + this.n2a_1.toString() + ', operation=' + this.o2a_1.toString() + ', type=' + this.p2a_1 + ')';
|
|
2232
2232
|
};
|
|
2233
2233
|
protoOf(FlattenRequest).hashCode = function () {
|
|
2234
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2235
|
-
result = imul(result, 31) + this.
|
|
2236
|
-
result = imul(result, 31) + this.
|
|
2237
|
-
result = imul(result, 31) + this.
|
|
2238
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2234
|
+
var result = Path__hashCode_impl_go73kd(this.l2a_1);
|
|
2235
|
+
result = imul(result, 31) + this.m2a_1.hashCode() | 0;
|
|
2236
|
+
result = imul(result, 31) + this.n2a_1.hashCode() | 0;
|
|
2237
|
+
result = imul(result, 31) + this.o2a_1.hashCode() | 0;
|
|
2238
|
+
result = imul(result, 31) + getStringHashCode(this.p2a_1) | 0;
|
|
2239
2239
|
return result;
|
|
2240
2240
|
};
|
|
2241
2241
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -2244,15 +2244,15 @@
|
|
|
2244
2244
|
if (!(other instanceof FlattenRequest))
|
|
2245
2245
|
return false;
|
|
2246
2246
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
2247
|
-
if (!(this.
|
|
2247
|
+
if (!(this.l2a_1 === tmp0_other_with_cast.l2a_1))
|
|
2248
2248
|
return false;
|
|
2249
|
-
if (!this.
|
|
2249
|
+
if (!this.m2a_1.equals(tmp0_other_with_cast.m2a_1))
|
|
2250
2250
|
return false;
|
|
2251
|
-
if (!this.
|
|
2251
|
+
if (!this.n2a_1.equals(tmp0_other_with_cast.n2a_1))
|
|
2252
2252
|
return false;
|
|
2253
|
-
if (!this.
|
|
2253
|
+
if (!this.o2a_1.equals(tmp0_other_with_cast.o2a_1))
|
|
2254
2254
|
return false;
|
|
2255
|
-
if (!(this.
|
|
2255
|
+
if (!(this.p2a_1 === tmp0_other_with_cast.p2a_1))
|
|
2256
2256
|
return false;
|
|
2257
2257
|
return true;
|
|
2258
2258
|
};
|
|
@@ -2314,25 +2314,25 @@
|
|
|
2314
2314
|
return destination_2;
|
|
2315
2315
|
}
|
|
2316
2316
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
2317
|
-
this.
|
|
2318
|
-
this.
|
|
2319
|
-
this.
|
|
2320
|
-
this.
|
|
2321
|
-
this.
|
|
2322
|
-
this.
|
|
2323
|
-
this.
|
|
2317
|
+
this.q2a_1 = path;
|
|
2318
|
+
this.r2a_1 = pathItem;
|
|
2319
|
+
this.s2a_1 = method;
|
|
2320
|
+
this.t2a_1 = operation;
|
|
2321
|
+
this.u2a_1 = statusCode;
|
|
2322
|
+
this.v2a_1 = response;
|
|
2323
|
+
this.w2a_1 = type;
|
|
2324
2324
|
}
|
|
2325
2325
|
protoOf(FlattenResponse).toString = function () {
|
|
2326
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
2326
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.q2a_1) + ', pathItem=' + this.r2a_1.toString() + ', method=' + this.s2a_1.toString() + ', operation=' + this.t2a_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy(this.u2a_1) + ', response=' + toString(this.v2a_1) + ', type=' + this.w2a_1 + ')';
|
|
2327
2327
|
};
|
|
2328
2328
|
protoOf(FlattenResponse).hashCode = function () {
|
|
2329
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2330
|
-
result = imul(result, 31) + this.
|
|
2331
|
-
result = imul(result, 31) + this.
|
|
2332
|
-
result = imul(result, 31) + this.
|
|
2333
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
2334
|
-
result = imul(result, 31) + hashCode(this.
|
|
2335
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2329
|
+
var result = Path__hashCode_impl_go73kd(this.q2a_1);
|
|
2330
|
+
result = imul(result, 31) + this.r2a_1.hashCode() | 0;
|
|
2331
|
+
result = imul(result, 31) + this.s2a_1.hashCode() | 0;
|
|
2332
|
+
result = imul(result, 31) + this.t2a_1.hashCode() | 0;
|
|
2333
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.u2a_1) | 0;
|
|
2334
|
+
result = imul(result, 31) + hashCode(this.v2a_1) | 0;
|
|
2335
|
+
result = imul(result, 31) + getStringHashCode(this.w2a_1) | 0;
|
|
2336
2336
|
return result;
|
|
2337
2337
|
};
|
|
2338
2338
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -2341,19 +2341,19 @@
|
|
|
2341
2341
|
if (!(other instanceof FlattenResponse))
|
|
2342
2342
|
return false;
|
|
2343
2343
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
2344
|
-
if (!(this.
|
|
2344
|
+
if (!(this.q2a_1 === tmp0_other_with_cast.q2a_1))
|
|
2345
2345
|
return false;
|
|
2346
|
-
if (!this.
|
|
2346
|
+
if (!this.r2a_1.equals(tmp0_other_with_cast.r2a_1))
|
|
2347
2347
|
return false;
|
|
2348
|
-
if (!this.
|
|
2348
|
+
if (!this.s2a_1.equals(tmp0_other_with_cast.s2a_1))
|
|
2349
2349
|
return false;
|
|
2350
|
-
if (!this.
|
|
2350
|
+
if (!this.t2a_1.equals(tmp0_other_with_cast.t2a_1))
|
|
2351
2351
|
return false;
|
|
2352
|
-
if (!(this.
|
|
2352
|
+
if (!(this.u2a_1 === tmp0_other_with_cast.u2a_1))
|
|
2353
2353
|
return false;
|
|
2354
|
-
if (!equals(this.
|
|
2354
|
+
if (!equals(this.v2a_1, tmp0_other_with_cast.v2a_1))
|
|
2355
2355
|
return false;
|
|
2356
|
-
if (!(this.
|
|
2356
|
+
if (!(this.w2a_1 === tmp0_other_with_cast.w2a_1))
|
|
2357
2357
|
return false;
|
|
2358
2358
|
return true;
|
|
2359
2359
|
};
|
|
@@ -2441,9 +2441,9 @@
|
|
|
2441
2441
|
}
|
|
2442
2442
|
function OpenApiV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
2443
2443
|
return function ($this$flatMapRequests) {
|
|
2444
|
-
var parameters = plus(resolveParameters_0($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.
|
|
2445
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2446
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2444
|
+
var parameters = plus(resolveParameters_0($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.m2a_1), resolveParameters($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.o2a_1));
|
|
2445
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.o2a_1, OpenApiV2Parser_instance);
|
|
2446
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.l2a_1, OpenApiV2Parser_instance) + $this$flatMapRequests.n2a_1.p2_1 : tmp0_elvis_lhs;
|
|
2447
2447
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2448
2448
|
// Inline function 'kotlin.collections.filter' call
|
|
2449
2449
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -2470,7 +2470,7 @@
|
|
|
2470
2470
|
// Inline function 'kotlin.let' call
|
|
2471
2471
|
// Inline function 'kotlin.contracts.contract' call
|
|
2472
2472
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
2473
|
-
tmp = flatten_0($this_parseParameters, OpenApiV2Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
2473
|
+
tmp = flatten_0($this_parseParameters, OpenApiV2Parser_instance, tmp0_safe_receiver, Common_getInstance().f2a([name, 'Parameter', element_0.k1i_1]));
|
|
2474
2474
|
}
|
|
2475
2475
|
var tmp1_elvis_lhs = tmp;
|
|
2476
2476
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -2481,9 +2481,9 @@
|
|
|
2481
2481
|
}
|
|
2482
2482
|
function OpenApiV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
2483
2483
|
return function ($this$flatMapRequests) {
|
|
2484
|
-
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.
|
|
2485
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2486
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2484
|
+
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.m2a_1), resolveParameters($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.o2a_1));
|
|
2485
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.o2a_1, OpenApiV2Parser_instance);
|
|
2486
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.l2a_1, OpenApiV2Parser_instance) + $this$flatMapRequests.n2a_1.p2_1 : tmp0_elvis_lhs;
|
|
2487
2487
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2488
2488
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2489
2489
|
var destination = ArrayList_init_$Create$();
|
|
@@ -2493,7 +2493,7 @@
|
|
|
2493
2493
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
2494
2494
|
var tmp;
|
|
2495
2495
|
if (!(element.f1j_1 == null)) {
|
|
2496
|
-
var tmp_0 = new DefinitionIdentifier(Common_getInstance().
|
|
2496
|
+
var tmp_0 = new DefinitionIdentifier(Common_getInstance().f2a([name, 'Parameter', element.k1i_1]));
|
|
2497
2497
|
// Inline function 'kotlin.collections.map' call
|
|
2498
2498
|
var this_0 = ensureNotNull(element.f1j_1);
|
|
2499
2499
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2513,7 +2513,7 @@
|
|
|
2513
2513
|
addAll(destination, list);
|
|
2514
2514
|
}
|
|
2515
2515
|
var enums = destination;
|
|
2516
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
2516
|
+
var tmp1_safe_receiver = $this$flatMapRequests.o2a_1.h1l_1;
|
|
2517
2517
|
var tmp_1;
|
|
2518
2518
|
if (tmp1_safe_receiver == null) {
|
|
2519
2519
|
tmp_1 = null;
|
|
@@ -2568,7 +2568,7 @@
|
|
|
2568
2568
|
switch (tmp0_subject == null ? -1 : tmp0_subject.q2_1) {
|
|
2569
2569
|
case -1:
|
|
2570
2570
|
case 5:
|
|
2571
|
-
tmp_5 = flatten($this_parseRequestBody, OpenApiV2Parser_instance, schema, Common_getInstance().
|
|
2571
|
+
tmp_5 = flatten($this_parseRequestBody, OpenApiV2Parser_instance, schema, Common_getInstance().f2a([name, 'RequestBody']));
|
|
2572
2572
|
break;
|
|
2573
2573
|
case 4:
|
|
2574
2574
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2581,7 +2581,7 @@
|
|
|
2581
2581
|
// Inline function 'kotlin.let' call
|
|
2582
2582
|
// Inline function 'kotlin.contracts.contract' call
|
|
2583
2583
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
2584
|
-
tmp_6 = flatten_0($this_parseRequestBody, OpenApiV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
2584
|
+
tmp_6 = flatten_0($this_parseRequestBody, OpenApiV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().f2a([name, 'RequestBody']));
|
|
2585
2585
|
}
|
|
2586
2586
|
|
|
2587
2587
|
var tmp0_elvis_lhs_0 = tmp_6;
|
|
@@ -2607,9 +2607,9 @@
|
|
|
2607
2607
|
}
|
|
2608
2608
|
function OpenApiV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
2609
2609
|
return function ($this$flatMapResponses) {
|
|
2610
|
-
var schema = resolve_1($this_parseResponseBody, OpenApiV2Parser_instance, $this$flatMapResponses.
|
|
2611
|
-
var tmp0_elvis_lhs = toName($this$flatMapResponses.
|
|
2612
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
2610
|
+
var schema = resolve_1($this_parseResponseBody, OpenApiV2Parser_instance, $this$flatMapResponses.v2a_1).m1j_1;
|
|
2611
|
+
var tmp0_elvis_lhs = toName($this$flatMapResponses.t2a_1, OpenApiV2Parser_instance);
|
|
2612
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.q2a_1, OpenApiV2Parser_instance) + $this$flatMapResponses.s2a_1.p2_1 : tmp0_elvis_lhs;
|
|
2613
2613
|
var tmp;
|
|
2614
2614
|
if (schema instanceof SchemaObject) {
|
|
2615
2615
|
var tmp2_subject = schema.e1n_1;
|
|
@@ -2617,7 +2617,7 @@
|
|
|
2617
2617
|
switch (tmp2_subject == null ? -1 : tmp2_subject.q2_1) {
|
|
2618
2618
|
case -1:
|
|
2619
2619
|
case 5:
|
|
2620
|
-
tmp_0 = flatten($this_parseResponseBody, OpenApiV2Parser_instance, schema, Common_getInstance().
|
|
2620
|
+
tmp_0 = flatten($this_parseResponseBody, OpenApiV2Parser_instance, schema, Common_getInstance().f2a([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.u2a_1), 'ResponseBody']));
|
|
2621
2621
|
break;
|
|
2622
2622
|
case 4:
|
|
2623
2623
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2630,7 +2630,7 @@
|
|
|
2630
2630
|
// Inline function 'kotlin.let' call
|
|
2631
2631
|
// Inline function 'kotlin.contracts.contract' call
|
|
2632
2632
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
2633
|
-
tmp_1 = flatten_0($this_parseResponseBody, OpenApiV2Parser_instance, tmp3_safe_receiver, Common_getInstance().
|
|
2633
|
+
tmp_1 = flatten_0($this_parseResponseBody, OpenApiV2Parser_instance, tmp3_safe_receiver, Common_getInstance().f2a([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.u2a_1), 'ResponseBody']));
|
|
2634
2634
|
}
|
|
2635
2635
|
|
|
2636
2636
|
var tmp0_elvis_lhs_0 = tmp_1;
|
|
@@ -2658,10 +2658,10 @@
|
|
|
2658
2658
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2659
2659
|
|
|
2660
2660
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
2661
|
-
tmp = tmp_0.
|
|
2661
|
+
tmp = tmp_0.f2a([tmp$ret$1]);
|
|
2662
2662
|
break;
|
|
2663
2663
|
case false:
|
|
2664
|
-
tmp = Common_getInstance().
|
|
2664
|
+
tmp = Common_getInstance().f2a([it]);
|
|
2665
2665
|
break;
|
|
2666
2666
|
default:
|
|
2667
2667
|
noWhenBranchMatchedException();
|
|
@@ -2671,14 +2671,14 @@
|
|
|
2671
2671
|
}
|
|
2672
2672
|
function OpenApiV2Parser() {
|
|
2673
2673
|
}
|
|
2674
|
-
protoOf(OpenApiV2Parser).
|
|
2675
|
-
return this.
|
|
2674
|
+
protoOf(OpenApiV2Parser).x2a = function (json, ignoreUnknown) {
|
|
2675
|
+
return this.y2a((new OpenAPI(Json(VOID, OpenApiV2Parser$parse$lambda(ignoreUnknown)))).i1g(json));
|
|
2676
2676
|
};
|
|
2677
|
-
protoOf(OpenApiV2Parser).
|
|
2677
|
+
protoOf(OpenApiV2Parser).z2a = function (json, ignoreUnknown, $super) {
|
|
2678
2678
|
ignoreUnknown = ignoreUnknown === VOID ? false : ignoreUnknown;
|
|
2679
|
-
return $super === VOID ? this.
|
|
2679
|
+
return $super === VOID ? this.x2a(json, ignoreUnknown) : $super.x2a.call(this, json, ignoreUnknown);
|
|
2680
2680
|
};
|
|
2681
|
-
protoOf(OpenApiV2Parser).
|
|
2681
|
+
protoOf(OpenApiV2Parser).y2a = function (_this__u8e3s4) {
|
|
2682
2682
|
// Inline function 'kotlin.collections.reduce' call
|
|
2683
2683
|
var iterator = listOf_0([parseEndpoints(_this__u8e3s4, this), parseParameters(_this__u8e3s4, this), parseRequestBody(_this__u8e3s4, this), parseResponseBody(_this__u8e3s4, this), parseDefinitions(_this__u8e3s4, this)]).g();
|
|
2684
2684
|
if (!iterator.h())
|
|
@@ -2698,16 +2698,16 @@
|
|
|
2698
2698
|
function toMap_0(_this__u8e3s4) {
|
|
2699
2699
|
var tmp;
|
|
2700
2700
|
if (_this__u8e3s4 instanceof Custom) {
|
|
2701
|
-
tmp = _this__u8e3s4.
|
|
2701
|
+
tmp = _this__u8e3s4.i29(VOID, VOID, true);
|
|
2702
2702
|
} else {
|
|
2703
2703
|
if (_this__u8e3s4 instanceof Any) {
|
|
2704
|
-
tmp = _this__u8e3s4.
|
|
2704
|
+
tmp = _this__u8e3s4.c29(VOID, true);
|
|
2705
2705
|
} else {
|
|
2706
2706
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
2707
|
-
tmp = _this__u8e3s4.
|
|
2707
|
+
tmp = _this__u8e3s4.k29(VOID, VOID, true);
|
|
2708
2708
|
} else {
|
|
2709
2709
|
if (_this__u8e3s4 instanceof Unit) {
|
|
2710
|
-
tmp = _this__u8e3s4.
|
|
2710
|
+
tmp = _this__u8e3s4.g29(VOID, true);
|
|
2711
2711
|
} else {
|
|
2712
2712
|
noWhenBranchMatchedException();
|
|
2713
2713
|
}
|
|
@@ -2752,16 +2752,16 @@
|
|
|
2752
2752
|
function toIterable(_this__u8e3s4) {
|
|
2753
2753
|
var tmp;
|
|
2754
2754
|
if (_this__u8e3s4 instanceof Custom) {
|
|
2755
|
-
tmp = _this__u8e3s4.
|
|
2755
|
+
tmp = _this__u8e3s4.i29(VOID, true);
|
|
2756
2756
|
} else {
|
|
2757
2757
|
if (_this__u8e3s4 instanceof Any) {
|
|
2758
|
-
tmp = _this__u8e3s4.
|
|
2758
|
+
tmp = _this__u8e3s4.c29(true);
|
|
2759
2759
|
} else {
|
|
2760
2760
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
2761
|
-
tmp = _this__u8e3s4.
|
|
2761
|
+
tmp = _this__u8e3s4.k29(VOID, true);
|
|
2762
2762
|
} else {
|
|
2763
2763
|
if (_this__u8e3s4 instanceof Unit) {
|
|
2764
|
-
tmp = _this__u8e3s4.
|
|
2764
|
+
tmp = _this__u8e3s4.g29(true);
|
|
2765
2765
|
} else {
|
|
2766
2766
|
noWhenBranchMatchedException();
|
|
2767
2767
|
}
|
|
@@ -2802,7 +2802,7 @@
|
|
|
2802
2802
|
var element_1 = tmp0_iterator_1.i();
|
|
2803
2803
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2804
2804
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitComponents.<anonymous>' call
|
|
2805
|
-
var tmp = element_1.
|
|
2805
|
+
var tmp = element_1.s28().b1();
|
|
2806
2806
|
var tmp_0;
|
|
2807
2807
|
if (element_1 instanceof Enum) {
|
|
2808
2808
|
tmp_0 = emit_3(element_1, OpenApiV3Emitter_getInstance());
|
|
@@ -2857,7 +2857,7 @@
|
|
|
2857
2857
|
while (tmp0_iterator_0.h()) {
|
|
2858
2858
|
var element_0 = tmp0_iterator_0.i();
|
|
2859
2859
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitPaths.<anonymous>' call
|
|
2860
|
-
var key = element_0.
|
|
2860
|
+
var key = element_0.y23_1;
|
|
2861
2861
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
2862
2862
|
var value = destination_0.f2(key);
|
|
2863
2863
|
var tmp;
|
|
@@ -2928,10 +2928,10 @@
|
|
|
2928
2928
|
return toMap(destination_1);
|
|
2929
2929
|
}
|
|
2930
2930
|
function emit_1(_this__u8e3s4, $this) {
|
|
2931
|
-
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_STRING_getInstance_0(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, _this__u8e3s4.
|
|
2931
|
+
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_STRING_getInstance_0(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, _this__u8e3s4.j25_1.a26_1);
|
|
2932
2932
|
}
|
|
2933
2933
|
function emit_2(_this__u8e3s4, $this) {
|
|
2934
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2934
|
+
var tmp0_safe_receiver = _this__u8e3s4.c23_1;
|
|
2935
2935
|
var tmp;
|
|
2936
2936
|
var tmp_0 = tmp0_safe_receiver;
|
|
2937
2937
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -2941,7 +2941,7 @@
|
|
|
2941
2941
|
}
|
|
2942
2942
|
var tmp1_description = tmp;
|
|
2943
2943
|
// Inline function 'kotlin.collections.associate' call
|
|
2944
|
-
var this_0 = _this__u8e3s4.
|
|
2944
|
+
var this_0 = _this__u8e3s4.e23_1.x25_1;
|
|
2945
2945
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2946
2946
|
// Inline function 'kotlin.collections.associateTo' call
|
|
2947
2947
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -2957,13 +2957,13 @@
|
|
|
2957
2957
|
// Inline function 'kotlin.collections.map' call
|
|
2958
2958
|
// Inline function 'kotlin.collections.filter' call
|
|
2959
2959
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2960
|
-
var this_1 = _this__u8e3s4.
|
|
2960
|
+
var this_1 = _this__u8e3s4.e23_1.x25_1;
|
|
2961
2961
|
var destination_0 = ArrayList_init_$Create$();
|
|
2962
2962
|
var tmp0_iterator_0 = this_1.g();
|
|
2963
2963
|
while (tmp0_iterator_0.h()) {
|
|
2964
2964
|
var element_0 = tmp0_iterator_0.i();
|
|
2965
2965
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2966
|
-
if (!element_0.
|
|
2966
|
+
if (!element_0.t24_1) {
|
|
2967
2967
|
destination_0.e(element_0);
|
|
2968
2968
|
}
|
|
2969
2969
|
}
|
|
@@ -2973,7 +2973,7 @@
|
|
|
2973
2973
|
while (tmp0_iterator_1.h()) {
|
|
2974
2974
|
var item = tmp0_iterator_1.i();
|
|
2975
2975
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2976
|
-
var tmp$ret$6 = item.
|
|
2976
|
+
var tmp$ret$6 = item.r24_1.b1();
|
|
2977
2977
|
destination_1.e(tmp$ret$6);
|
|
2978
2978
|
}
|
|
2979
2979
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -2989,7 +2989,7 @@
|
|
|
2989
2989
|
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, destination, VOID, tmp1_description, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_required);
|
|
2990
2990
|
}
|
|
2991
2991
|
function emit_3(_this__u8e3s4, $this) {
|
|
2992
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2992
|
+
var tmp0_safe_receiver = _this__u8e3s4.k25_1;
|
|
2993
2993
|
var tmp;
|
|
2994
2994
|
var tmp_0 = tmp0_safe_receiver;
|
|
2995
2995
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -3000,7 +3000,7 @@
|
|
|
3000
3000
|
var tmp1_description = tmp;
|
|
3001
3001
|
var tmp2_type = Type_STRING_getInstance_0();
|
|
3002
3002
|
// Inline function 'kotlin.collections.map' call
|
|
3003
|
-
var this_0 = _this__u8e3s4.
|
|
3003
|
+
var this_0 = _this__u8e3s4.m25_1;
|
|
3004
3004
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3005
3005
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3006
3006
|
var tmp0_iterator = this_0.g();
|
|
@@ -3013,7 +3013,7 @@
|
|
|
3013
3013
|
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_type, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_description, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, destination);
|
|
3014
3014
|
}
|
|
3015
3015
|
function emit_4(_this__u8e3s4, $this) {
|
|
3016
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3016
|
+
var tmp0_safe_receiver = _this__u8e3s4.w22_1;
|
|
3017
3017
|
var tmp;
|
|
3018
3018
|
var tmp_0 = tmp0_safe_receiver;
|
|
3019
3019
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -3024,7 +3024,7 @@
|
|
|
3024
3024
|
var tmp1_description = tmp;
|
|
3025
3025
|
var tmp2_type = Type_STRING_getInstance_0();
|
|
3026
3026
|
// Inline function 'kotlin.collections.map' call
|
|
3027
|
-
var this_0 = _this__u8e3s4.
|
|
3027
|
+
var this_0 = _this__u8e3s4.y22_1;
|
|
3028
3028
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3029
3029
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3030
3030
|
var tmp0_iterator = this_0.g();
|
|
@@ -3045,7 +3045,7 @@
|
|
|
3045
3045
|
while (tmp0_iterator.h()) {
|
|
3046
3046
|
var element = tmp0_iterator.i();
|
|
3047
3047
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
3048
|
-
if (element.
|
|
3048
|
+
if (element.x23_1.equals(method)) {
|
|
3049
3049
|
destination.e(element);
|
|
3050
3050
|
}
|
|
3051
3051
|
}
|
|
@@ -3061,8 +3061,8 @@
|
|
|
3061
3061
|
return firstOrNull(destination_0);
|
|
3062
3062
|
}
|
|
3063
3063
|
function emit_6(_this__u8e3s4, $this) {
|
|
3064
|
-
var tmp1_operationId = _this__u8e3s4.
|
|
3065
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3064
|
+
var tmp1_operationId = _this__u8e3s4.w23_1.b1();
|
|
3065
|
+
var tmp0_safe_receiver = _this__u8e3s4.v23_1;
|
|
3066
3066
|
var tmp;
|
|
3067
3067
|
var tmp_0 = tmp0_safe_receiver;
|
|
3068
3068
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -3074,7 +3074,7 @@
|
|
|
3074
3074
|
// Inline function 'kotlin.collections.map' call
|
|
3075
3075
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3076
3076
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
3077
|
-
var this_0 = _this__u8e3s4.
|
|
3077
|
+
var this_0 = _this__u8e3s4.y23_1;
|
|
3078
3078
|
var destination = ArrayList_init_$Create$();
|
|
3079
3079
|
var tmp0_iterator = this_0.g();
|
|
3080
3080
|
while (tmp0_iterator.h()) {
|
|
@@ -3094,7 +3094,7 @@
|
|
|
3094
3094
|
}
|
|
3095
3095
|
var tmp_1 = destination_0;
|
|
3096
3096
|
// Inline function 'kotlin.collections.map' call
|
|
3097
|
-
var this_1 = _this__u8e3s4.
|
|
3097
|
+
var this_1 = _this__u8e3s4.z23_1;
|
|
3098
3098
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3099
3099
|
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
3100
3100
|
var tmp0_iterator_1 = this_1.g();
|
|
@@ -3106,7 +3106,7 @@
|
|
|
3106
3106
|
}
|
|
3107
3107
|
var tmp_2 = plus(tmp_1, destination_1);
|
|
3108
3108
|
// Inline function 'kotlin.collections.map' call
|
|
3109
|
-
var this_2 = _this__u8e3s4.
|
|
3109
|
+
var this_2 = _this__u8e3s4.a24_1;
|
|
3110
3110
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3111
3111
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
|
|
3112
3112
|
var tmp0_iterator_2 = this_2.g();
|
|
@@ -3120,7 +3120,7 @@
|
|
|
3120
3120
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
3121
3121
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3122
3122
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3123
|
-
var this_3 = _this__u8e3s4.
|
|
3123
|
+
var this_3 = _this__u8e3s4.c24_1;
|
|
3124
3124
|
var destination_3 = ArrayList_init_$Create$();
|
|
3125
3125
|
// Inline function 'kotlin.collections.forEach' call
|
|
3126
3126
|
var tmp0_iterator_3 = this_3.g();
|
|
@@ -3128,7 +3128,7 @@
|
|
|
3128
3128
|
var element_0 = tmp0_iterator_3.i();
|
|
3129
3129
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3130
3130
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
3131
|
-
var tmp0_safe_receiver_0 = element_0.
|
|
3131
|
+
var tmp0_safe_receiver_0 = element_0.j24_1;
|
|
3132
3132
|
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : emit_7(tmp0_safe_receiver_0, OpenApiV3Emitter_getInstance());
|
|
3133
3133
|
if (tmp0_safe_receiver_1 == null)
|
|
3134
3134
|
null;
|
|
@@ -3151,7 +3151,7 @@
|
|
|
3151
3151
|
var tmp$ret$17;
|
|
3152
3152
|
$l$block_0: {
|
|
3153
3153
|
// Inline function 'kotlin.collections.any' call
|
|
3154
|
-
var this_5 = _this__u8e3s4.
|
|
3154
|
+
var this_5 = _this__u8e3s4.c24_1;
|
|
3155
3155
|
var tmp_5;
|
|
3156
3156
|
if (isInterface(this_5, Collection)) {
|
|
3157
3157
|
tmp_5 = this_5.l();
|
|
@@ -3166,8 +3166,8 @@
|
|
|
3166
3166
|
while (tmp0_iterator_4.h()) {
|
|
3167
3167
|
var element_1 = tmp0_iterator_4.i();
|
|
3168
3168
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
3169
|
-
var tmp0_safe_receiver_2 = element_1.
|
|
3170
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.
|
|
3169
|
+
var tmp0_safe_receiver_2 = element_1.j24_1;
|
|
3170
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.m24_1;
|
|
3171
3171
|
if (tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs) {
|
|
3172
3172
|
tmp$ret$17 = true;
|
|
3173
3173
|
break $l$block_0;
|
|
@@ -3179,13 +3179,13 @@
|
|
|
3179
3179
|
// Inline function 'kotlin.collections.map' call
|
|
3180
3180
|
// Inline function 'kotlin.collections.groupBy' call
|
|
3181
3181
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
3182
|
-
var this_6 = _this__u8e3s4.
|
|
3182
|
+
var this_6 = _this__u8e3s4.d24_1;
|
|
3183
3183
|
var destination_4 = LinkedHashMap_init_$Create$_0();
|
|
3184
3184
|
var tmp0_iterator_5 = this_6.g();
|
|
3185
3185
|
while (tmp0_iterator_5.h()) {
|
|
3186
3186
|
var element_2 = tmp0_iterator_5.i();
|
|
3187
3187
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
3188
|
-
var key = element_2.
|
|
3188
|
+
var key = element_2.e24_1;
|
|
3189
3189
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
3190
3190
|
var value = destination_4.f2(key);
|
|
3191
3191
|
var tmp_6;
|
|
@@ -3220,7 +3220,7 @@
|
|
|
3220
3220
|
while (tmp0_iterator_7.h()) {
|
|
3221
3221
|
var element_3 = tmp0_iterator_7.i();
|
|
3222
3222
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3223
|
-
var list_0 = element_3.
|
|
3223
|
+
var list_0 = element_3.f24_1;
|
|
3224
3224
|
addAll(destination_6, list_0);
|
|
3225
3225
|
}
|
|
3226
3226
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_6, 10)), 16);
|
|
@@ -3234,7 +3234,7 @@
|
|
|
3234
3234
|
var pair = emitHeader(element_4, OpenApiV3Emitter_getInstance());
|
|
3235
3235
|
destination_7.m2(pair.ce_1, pair.de_1);
|
|
3236
3236
|
}
|
|
3237
|
-
var tmp1_description = _this__u8e3s4.
|
|
3237
|
+
var tmp1_description = _this__u8e3s4.w23_1.b1() + ' ' + statusCode + ' response';
|
|
3238
3238
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
3239
3239
|
// Inline function 'kotlin.collections.associate' call
|
|
3240
3240
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -3246,7 +3246,7 @@
|
|
|
3246
3246
|
var element_5 = tmp0_iterator_9.i();
|
|
3247
3247
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3248
3248
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3249
|
-
var tmp0_safe_receiver_3 = element_5.
|
|
3249
|
+
var tmp0_safe_receiver_3 = element_5.g24_1;
|
|
3250
3250
|
if (tmp0_safe_receiver_3 == null)
|
|
3251
3251
|
null;
|
|
3252
3252
|
else {
|
|
@@ -3285,26 +3285,26 @@
|
|
|
3285
3285
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenApiV3Emitter$emitSegment$lambda);
|
|
3286
3286
|
}
|
|
3287
3287
|
function emitParameter_0(_this__u8e3s4, $this, location) {
|
|
3288
|
-
var tmp0_name = _this__u8e3s4.
|
|
3289
|
-
var tmp1_schema = emitSchema_0(_this__u8e3s4.
|
|
3288
|
+
var tmp0_name = _this__u8e3s4.r24_1.b1();
|
|
3289
|
+
var tmp1_schema = emitSchema_0(_this__u8e3s4.s24_1, $this);
|
|
3290
3290
|
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_schema, VOID, VOID, VOID, tmp0_name, location);
|
|
3291
3291
|
}
|
|
3292
3292
|
function emitParameter_1(_this__u8e3s4, $this) {
|
|
3293
3293
|
var tmp0_in = ParameterLocation_PATH_getInstance_0();
|
|
3294
|
-
var tmp1_name = _this__u8e3s4.
|
|
3295
|
-
var tmp2_schema = emitSchema_0(_this__u8e3s4.
|
|
3294
|
+
var tmp1_name = _this__u8e3s4.v24_1.b1();
|
|
3295
|
+
var tmp2_schema = emitSchema_0(_this__u8e3s4.w24_1, $this);
|
|
3296
3296
|
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_schema, VOID, VOID, VOID, tmp1_name, tmp0_in);
|
|
3297
3297
|
}
|
|
3298
3298
|
function emitHeader(_this__u8e3s4, $this) {
|
|
3299
|
-
return to(_this__u8e3s4.
|
|
3299
|
+
return to(_this__u8e3s4.r24_1.b1(), emitHeader_0(_this__u8e3s4.s24_1, $this));
|
|
3300
3300
|
}
|
|
3301
3301
|
function emitSchema(_this__u8e3s4, $this) {
|
|
3302
|
-
return to(_this__u8e3s4.
|
|
3302
|
+
return to(_this__u8e3s4.r24_1.b1(), emitSchema_0(_this__u8e3s4.s24_1, $this));
|
|
3303
3303
|
}
|
|
3304
3304
|
function emitHeader_0(_this__u8e3s4, $this) {
|
|
3305
3305
|
var tmp;
|
|
3306
3306
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3307
|
-
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.
|
|
3307
|
+
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.z22_1));
|
|
3308
3308
|
} else {
|
|
3309
3309
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3310
3310
|
tmp = new HeaderObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitSchema_0(_this__u8e3s4, $this));
|
|
@@ -3328,10 +3328,10 @@
|
|
|
3328
3328
|
// Inline function 'kotlin.let' call
|
|
3329
3329
|
var tmp;
|
|
3330
3330
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3331
|
-
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/schemas/' + _this__u8e3s4.
|
|
3331
|
+
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/schemas/' + _this__u8e3s4.z22_1));
|
|
3332
3332
|
} else {
|
|
3333
3333
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3334
|
-
tmp = new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType_1(_this__u8e3s4.
|
|
3334
|
+
tmp = new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType_1(_this__u8e3s4.n23_1, $this), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitFormat_0(_this__u8e3s4, $this));
|
|
3335
3335
|
} else {
|
|
3336
3336
|
if (_this__u8e3s4 instanceof Any) {
|
|
3337
3337
|
var message = 'Cannot map Any';
|
|
@@ -3349,7 +3349,7 @@
|
|
|
3349
3349
|
// Inline function 'kotlin.contracts.contract' call
|
|
3350
3350
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitSchema.<anonymous>' call
|
|
3351
3351
|
var it = tmp;
|
|
3352
|
-
return _this__u8e3s4.
|
|
3352
|
+
return _this__u8e3s4.z24() ? new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_OBJECT_getInstance_0(), VOID, VOID, VOID, VOID, VOID, VOID, it) : _this__u8e3s4.n24() ? new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance_0(), VOID, VOID, VOID, VOID, it) : it;
|
|
3353
3353
|
}
|
|
3354
3354
|
function emitType_1(_this__u8e3s4, $this) {
|
|
3355
3355
|
var tmp;
|
|
@@ -3377,16 +3377,16 @@
|
|
|
3377
3377
|
return tmp;
|
|
3378
3378
|
}
|
|
3379
3379
|
function emit_7(_this__u8e3s4, $this) {
|
|
3380
|
-
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.
|
|
3380
|
+
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.k24_1)), new MediaTypeObject(emitSchema_0(_this__u8e3s4.l24_1, $this)));
|
|
3381
3381
|
}
|
|
3382
3382
|
function emitFormat_0(_this__u8e3s4, $this) {
|
|
3383
3383
|
var tmp;
|
|
3384
3384
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3385
|
-
var t = _this__u8e3s4.
|
|
3385
|
+
var t = _this__u8e3s4.n23_1;
|
|
3386
3386
|
var tmp_0;
|
|
3387
3387
|
if (t instanceof Number_0) {
|
|
3388
3388
|
var tmp_1;
|
|
3389
|
-
switch (t.
|
|
3389
|
+
switch (t.r23_1.q2_1) {
|
|
3390
3390
|
case 0:
|
|
3391
3391
|
tmp_1 = 'float';
|
|
3392
3392
|
break;
|
|
@@ -3401,7 +3401,7 @@
|
|
|
3401
3401
|
} else {
|
|
3402
3402
|
if (t instanceof Integer) {
|
|
3403
3403
|
var tmp_2;
|
|
3404
|
-
switch (t.
|
|
3404
|
+
switch (t.t23_1.q2_1) {
|
|
3405
3405
|
case 0:
|
|
3406
3406
|
tmp_2 = 'int32';
|
|
3407
3407
|
break;
|
|
@@ -3430,10 +3430,10 @@
|
|
|
3430
3430
|
function OpenApiV3Emitter$emitSegment$lambda(it) {
|
|
3431
3431
|
var tmp;
|
|
3432
3432
|
if (it instanceof Param) {
|
|
3433
|
-
tmp = '{' + it.
|
|
3433
|
+
tmp = '{' + it.v24_1.b1() + '}';
|
|
3434
3434
|
} else {
|
|
3435
3435
|
if (it instanceof Literal) {
|
|
3436
|
-
tmp = it.
|
|
3436
|
+
tmp = it.e25_1;
|
|
3437
3437
|
} else {
|
|
3438
3438
|
noWhenBranchMatchedException();
|
|
3439
3439
|
}
|
|
@@ -3443,15 +3443,15 @@
|
|
|
3443
3443
|
function OpenApiV3Emitter() {
|
|
3444
3444
|
OpenApiV3Emitter_instance = this;
|
|
3445
3445
|
Emitter.call(this, get_noLogger());
|
|
3446
|
-
this.
|
|
3446
|
+
this.c2b_1 = '';
|
|
3447
3447
|
}
|
|
3448
|
-
protoOf(OpenApiV3Emitter).
|
|
3449
|
-
return this.
|
|
3448
|
+
protoOf(OpenApiV3Emitter).r25 = function () {
|
|
3449
|
+
return this.c2b_1;
|
|
3450
3450
|
};
|
|
3451
3451
|
protoOf(OpenApiV3Emitter).p22 = function (ast) {
|
|
3452
3452
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
3453
|
-
var this_0 = Common_getInstance().
|
|
3454
|
-
var value = this.
|
|
3453
|
+
var this_0 = Common_getInstance().e2a_1;
|
|
3454
|
+
var value = this.d2b(ast, null);
|
|
3455
3455
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3456
3456
|
var this_1 = this_0.mo();
|
|
3457
3457
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -3460,28 +3460,28 @@
|
|
|
3460
3460
|
var tmp$ret$2 = this_0.b15(tmp$ret$1, value);
|
|
3461
3461
|
return listOf(new Emitted('OpenAPIObject', tmp$ret$2));
|
|
3462
3462
|
};
|
|
3463
|
-
protoOf(OpenApiV3Emitter).
|
|
3464
|
-
return this.
|
|
3463
|
+
protoOf(OpenApiV3Emitter).v25 = function (type, ast) {
|
|
3464
|
+
return this.l26();
|
|
3465
3465
|
};
|
|
3466
|
-
protoOf(OpenApiV3Emitter).
|
|
3467
|
-
return this.
|
|
3466
|
+
protoOf(OpenApiV3Emitter).c26 = function (enum_0) {
|
|
3467
|
+
return this.l26();
|
|
3468
3468
|
};
|
|
3469
|
-
protoOf(OpenApiV3Emitter).
|
|
3470
|
-
return this.
|
|
3469
|
+
protoOf(OpenApiV3Emitter).y25 = function (refined) {
|
|
3470
|
+
return this.l26();
|
|
3471
3471
|
};
|
|
3472
|
-
protoOf(OpenApiV3Emitter).
|
|
3473
|
-
return this.
|
|
3472
|
+
protoOf(OpenApiV3Emitter).g26 = function (endpoint) {
|
|
3473
|
+
return this.l26();
|
|
3474
3474
|
};
|
|
3475
|
-
protoOf(OpenApiV3Emitter).
|
|
3476
|
-
return this.
|
|
3475
|
+
protoOf(OpenApiV3Emitter).e26 = function (union) {
|
|
3476
|
+
return this.l26();
|
|
3477
3477
|
};
|
|
3478
|
-
protoOf(OpenApiV3Emitter).
|
|
3479
|
-
return this.
|
|
3478
|
+
protoOf(OpenApiV3Emitter).f26 = function (channel) {
|
|
3479
|
+
return this.l26();
|
|
3480
3480
|
};
|
|
3481
|
-
protoOf(OpenApiV3Emitter).
|
|
3482
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
3481
|
+
protoOf(OpenApiV3Emitter).d2b = function (ast, options) {
|
|
3482
|
+
var tmp1_elvis_lhs = options == null ? null : options.e2b_1;
|
|
3483
3483
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
3484
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
3484
|
+
var tmp3_elvis_lhs = options == null ? null : options.f2b_1;
|
|
3485
3485
|
return new OpenAPIObject('3.0.0', new InfoObject_0(tmp, VOID, VOID, VOID, VOID, tmp3_elvis_lhs == null ? '0.0.0' : tmp3_elvis_lhs), VOID, emitPaths(ast, this), emitComponents(ast, this));
|
|
3486
3486
|
};
|
|
3487
3487
|
var OpenApiV3Emitter_instance;
|
|
@@ -3539,7 +3539,7 @@
|
|
|
3539
3539
|
while (tmp0_iterator_2.h()) {
|
|
3540
3540
|
var item_0 = tmp0_iterator_2.i();
|
|
3541
3541
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3542
|
-
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_0, Common_getInstance().
|
|
3542
|
+
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_0, Common_getInstance().f2a([name, 'Parameter', item_0.w1v_1]));
|
|
3543
3543
|
destination_2.e(tmp$ret$9);
|
|
3544
3544
|
}
|
|
3545
3545
|
var query = destination_2;
|
|
@@ -3561,7 +3561,7 @@
|
|
|
3561
3561
|
while (tmp0_iterator_4.h()) {
|
|
3562
3562
|
var item_1 = tmp0_iterator_4.i();
|
|
3563
3563
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3564
|
-
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_1, Common_getInstance().
|
|
3564
|
+
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_1, Common_getInstance().f2a([name, 'Parameter', item_1.w1v_1]));
|
|
3565
3565
|
destination_4.e(tmp$ret$15);
|
|
3566
3566
|
}
|
|
3567
3567
|
var headers = destination_4;
|
|
@@ -3583,7 +3583,7 @@
|
|
|
3583
3583
|
while (tmp0_iterator_6.h()) {
|
|
3584
3584
|
var item_2 = tmp0_iterator_6.i();
|
|
3585
3585
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3586
|
-
var tmp$ret$21 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_2, Common_getInstance().
|
|
3586
|
+
var tmp$ret$21 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_2, Common_getInstance().f2a([name, 'Parameter', item_2.w1v_1]));
|
|
3587
3587
|
destination_6.e(tmp$ret$21);
|
|
3588
3588
|
}
|
|
3589
3589
|
var cookies = destination_6;
|
|
@@ -3628,7 +3628,7 @@
|
|
|
3628
3628
|
tmp_2 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, schema);
|
|
3629
3629
|
} else {
|
|
3630
3630
|
if (schema instanceof SchemaObject_0) {
|
|
3631
|
-
tmp_2 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_getInstance().
|
|
3631
|
+
tmp_2 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_getInstance().f2a([name, 'RequestBody']));
|
|
3632
3632
|
} else {
|
|
3633
3633
|
if (schema == null) {
|
|
3634
3634
|
tmp_2 = null;
|
|
@@ -3710,7 +3710,7 @@
|
|
|
3710
3710
|
while (tmp0_iterator_10.h()) {
|
|
3711
3711
|
var item_5 = tmp0_iterator_10.i();
|
|
3712
3712
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3713
|
-
var tmp$ret$44 = toField_4(_this__u8e3s4, OpenApiV3Parser_instance, resolve_5(_this__u8e3s4, OpenApiV3Parser_instance, item_5.b1()), item_5.a1(), Common_getInstance().
|
|
3713
|
+
var tmp$ret$44 = toField_4(_this__u8e3s4, OpenApiV3Parser_instance, resolve_5(_this__u8e3s4, OpenApiV3Parser_instance, item_5.b1()), item_5.a1(), Common_getInstance().f2a([name, 'ResponseHeader']));
|
|
3714
3714
|
destination_10.e(tmp$ret$44);
|
|
3715
3715
|
}
|
|
3716
3716
|
tmp_7 = destination_10;
|
|
@@ -3724,7 +3724,7 @@
|
|
|
3724
3724
|
tmp_10 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, schema_0);
|
|
3725
3725
|
} else {
|
|
3726
3726
|
if (schema_0 instanceof SchemaObject_0) {
|
|
3727
|
-
tmp_10 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema_0, Common_getInstance().
|
|
3727
|
+
tmp_10 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema_0, Common_getInstance().f2a([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
3728
3728
|
} else {
|
|
3729
3729
|
if (schema_0 == null) {
|
|
3730
3730
|
tmp_10 = new Any(false);
|
|
@@ -3792,7 +3792,7 @@
|
|
|
3792
3792
|
switch (tmp0_subject == null ? -1 : tmp0_subject.q2_1) {
|
|
3793
3793
|
case -1:
|
|
3794
3794
|
case 5:
|
|
3795
|
-
tmp_0 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_getInstance().
|
|
3795
|
+
tmp_0 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_getInstance().f2a([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
3796
3796
|
break;
|
|
3797
3797
|
case 4:
|
|
3798
3798
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -3805,7 +3805,7 @@
|
|
|
3805
3805
|
// Inline function 'kotlin.let' call
|
|
3806
3806
|
// Inline function 'kotlin.contracts.contract' call
|
|
3807
3807
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatMapResponse.<anonymous>.<anonymous>' call
|
|
3808
|
-
tmp_1 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
3808
|
+
tmp_1 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp1_safe_receiver, Common_getInstance().f2a([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
3809
3809
|
}
|
|
3810
3810
|
|
|
3811
3811
|
var tmp0_elvis_lhs_0 = tmp_1;
|
|
@@ -3859,7 +3859,7 @@
|
|
|
3859
3859
|
while (tmp0_iterator_0.h()) {
|
|
3860
3860
|
var element_0 = tmp0_iterator_0.i();
|
|
3861
3861
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseComponents.<anonymous>' call
|
|
3862
|
-
var list = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, element_0.b1(), Common_getInstance().
|
|
3862
|
+
var list = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, element_0.b1(), Common_getInstance().f2a([element_0.a1()]));
|
|
3863
3863
|
addAll(destination_0, list);
|
|
3864
3864
|
}
|
|
3865
3865
|
return destination_0;
|
|
@@ -3876,7 +3876,7 @@
|
|
|
3876
3876
|
// Inline function 'kotlin.let' call
|
|
3877
3877
|
// Inline function 'kotlin.contracts.contract' call
|
|
3878
3878
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toName.<anonymous>' call
|
|
3879
|
-
tmp = Common_getInstance().
|
|
3879
|
+
tmp = Common_getInstance().f2a([tmp0_safe_receiver]);
|
|
3880
3880
|
}
|
|
3881
3881
|
return tmp;
|
|
3882
3882
|
}
|
|
@@ -3966,7 +3966,7 @@
|
|
|
3966
3966
|
// Inline function 'kotlin.let' call
|
|
3967
3967
|
// Inline function 'kotlin.contracts.contract' call
|
|
3968
3968
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toSegments.<anonymous>.<anonymous>' call
|
|
3969
|
-
tmp_1 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp4_safe_receiver, Common_getInstance().
|
|
3969
|
+
tmp_1 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp4_safe_receiver, Common_getInstance().f2a([name, 'Parameter', param]));
|
|
3970
3970
|
}
|
|
3971
3971
|
|
|
3972
3972
|
var tmp5_safe_receiver = tmp_1;
|
|
@@ -4376,7 +4376,7 @@
|
|
|
4376
4376
|
tmp_6 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, item);
|
|
4377
4377
|
} else {
|
|
4378
4378
|
if (item instanceof SchemaObject_0) {
|
|
4379
|
-
tmp_6 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, item, Common_getInstance().
|
|
4379
|
+
tmp_6 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, item, Common_getInstance().f2a([name, index_0.toString()]));
|
|
4380
4380
|
} else {
|
|
4381
4381
|
noWhenBranchMatchedException();
|
|
4382
4382
|
}
|
|
@@ -4404,7 +4404,7 @@
|
|
|
4404
4404
|
tmp_8 = emptyList();
|
|
4405
4405
|
} else {
|
|
4406
4406
|
if (element instanceof SchemaObject_0) {
|
|
4407
|
-
tmp_8 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, element, Common_getInstance().
|
|
4407
|
+
tmp_8 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, element, Common_getInstance().f2a([name, index_2.toString()]));
|
|
4408
4408
|
} else {
|
|
4409
4409
|
noWhenBranchMatchedException();
|
|
4410
4410
|
}
|
|
@@ -4435,7 +4435,7 @@
|
|
|
4435
4435
|
while (tmp0_iterator_2.h()) {
|
|
4436
4436
|
var e = tmp0_iterator_2.i();
|
|
4437
4437
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
|
|
4438
|
-
var key = e.
|
|
4438
|
+
var key = e.r24_1;
|
|
4439
4439
|
if (set.e(key)) {
|
|
4440
4440
|
list_1.e(e);
|
|
4441
4441
|
}
|
|
@@ -4476,7 +4476,7 @@
|
|
|
4476
4476
|
var key_0 = element_2.a1();
|
|
4477
4477
|
// Inline function 'kotlin.collections.component2' call
|
|
4478
4478
|
var value = element_2.b1();
|
|
4479
|
-
var list_2 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().
|
|
4479
|
+
var list_2 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().f2a([name, key_0]));
|
|
4480
4480
|
addAll(destination_3, list_2);
|
|
4481
4481
|
}
|
|
4482
4482
|
var list_3 = destination_3;
|
|
@@ -4525,7 +4525,7 @@
|
|
|
4525
4525
|
var key_1 = element_3.a1();
|
|
4526
4526
|
// Inline function 'kotlin.collections.component2' call
|
|
4527
4527
|
var value_0 = element_3.b1();
|
|
4528
|
-
var list_4 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value_0, Common_getInstance().
|
|
4528
|
+
var list_4 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value_0, Common_getInstance().f2a([name, key_1]));
|
|
4529
4529
|
addAll(destination_5, list_4);
|
|
4530
4530
|
}
|
|
4531
4531
|
|
|
@@ -4547,7 +4547,7 @@
|
|
|
4547
4547
|
tmp_14 = emptyList();
|
|
4548
4548
|
} else {
|
|
4549
4549
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
4550
|
-
tmp_14 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, tmp6_safe_receiver, Common_getInstance().
|
|
4550
|
+
tmp_14 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, tmp6_safe_receiver, Common_getInstance().f2a([name, 'array']));
|
|
4551
4551
|
} else {
|
|
4552
4552
|
noWhenBranchMatchedException();
|
|
4553
4553
|
}
|
|
@@ -4605,7 +4605,7 @@
|
|
|
4605
4605
|
}
|
|
4606
4606
|
tmp = tmp_0;
|
|
4607
4607
|
} else if (!(schema.o1x_1 == null)) {
|
|
4608
|
-
tmp = new Custom(Common_getInstance().
|
|
4608
|
+
tmp = new Custom(Common_getInstance().f2a([getReference_0(referencingObject, OpenApiV3Parser_instance)]), false, false);
|
|
4609
4609
|
} else if (isPrimitive_0(schema.o1w_1)) {
|
|
4610
4610
|
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.o1w_1), OpenApiV3Parser_instance, schema.x1w_1), false, false);
|
|
4611
4611
|
} else if (equals(schema.o1w_1, Type_ARRAY_getInstance_0())) {
|
|
@@ -4615,7 +4615,7 @@
|
|
|
4615
4615
|
tmp_1 = toIterable_0(toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, items));
|
|
4616
4616
|
} else {
|
|
4617
4617
|
if (items instanceof SchemaObject_0) {
|
|
4618
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
4618
|
+
tmp_1 = new Custom(Common_getInstance().f2a([getReference_0(referencingObject, OpenApiV3Parser_instance), 'Array']), true);
|
|
4619
4619
|
} else {
|
|
4620
4620
|
if (items == null) {
|
|
4621
4621
|
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi_0(reference.c1w_1);
|
|
@@ -4627,7 +4627,7 @@
|
|
|
4627
4627
|
}
|
|
4628
4628
|
tmp = tmp_1;
|
|
4629
4629
|
} else {
|
|
4630
|
-
tmp = new Custom(Common_getInstance().
|
|
4630
|
+
tmp = new Custom(Common_getInstance().f2a([getReference_0(referencingObject, OpenApiV3Parser_instance)]), false);
|
|
4631
4631
|
}
|
|
4632
4632
|
return tmp;
|
|
4633
4633
|
}
|
|
@@ -4782,7 +4782,7 @@
|
|
|
4782
4782
|
var tmp$ret$0 = tmp_0;
|
|
4783
4783
|
result.m2(element, tmp$ret$0);
|
|
4784
4784
|
}
|
|
4785
|
-
return tmp.
|
|
4785
|
+
return tmp.g2a(result);
|
|
4786
4786
|
}
|
|
4787
4787
|
function getReference_0(_this__u8e3s4, $this) {
|
|
4788
4788
|
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.c1w_1), ['/']), 3);
|
|
@@ -4835,7 +4835,7 @@
|
|
|
4835
4835
|
var tmp;
|
|
4836
4836
|
if (value instanceof SchemaObject_0) {
|
|
4837
4837
|
var tmp_0 = new FieldIdentifier(key);
|
|
4838
|
-
var tmp_1 = !(value.o1x_1 == null) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().
|
|
4838
|
+
var tmp_1 = !(value.o1x_1 == null) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().f2a([name, key])) : equals(value.o1w_1, Type_ARRAY_getInstance_0()) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().f2a([name, key, 'Array'])) : toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().f2a([name, key]));
|
|
4839
4839
|
var tmp1_safe_receiver = schema.n1x_1;
|
|
4840
4840
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p1(key);
|
|
4841
4841
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
@@ -4904,19 +4904,19 @@
|
|
|
4904
4904
|
return new Field(tmp_0, it, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
4905
4905
|
}
|
|
4906
4906
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
4907
|
-
this.
|
|
4908
|
-
this.
|
|
4909
|
-
this.
|
|
4910
|
-
this.
|
|
4907
|
+
this.g2b_1 = path;
|
|
4908
|
+
this.h2b_1 = pathItem;
|
|
4909
|
+
this.i2b_1 = method;
|
|
4910
|
+
this.j2b_1 = operation;
|
|
4911
4911
|
}
|
|
4912
4912
|
protoOf(FlattenRequest_0).toString = function () {
|
|
4913
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
4913
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.g2b_1) + ', pathItem=' + this.h2b_1.toString() + ', method=' + this.i2b_1.toString() + ', operation=' + this.j2b_1.toString() + ')';
|
|
4914
4914
|
};
|
|
4915
4915
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
4916
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
4917
|
-
result = imul(result, 31) + this.
|
|
4918
|
-
result = imul(result, 31) + this.
|
|
4919
|
-
result = imul(result, 31) + this.
|
|
4916
|
+
var result = Path__hashCode_impl_go73kd_0(this.g2b_1);
|
|
4917
|
+
result = imul(result, 31) + this.h2b_1.hashCode() | 0;
|
|
4918
|
+
result = imul(result, 31) + this.i2b_1.hashCode() | 0;
|
|
4919
|
+
result = imul(result, 31) + this.j2b_1.hashCode() | 0;
|
|
4920
4920
|
return result;
|
|
4921
4921
|
};
|
|
4922
4922
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -4925,13 +4925,13 @@
|
|
|
4925
4925
|
if (!(other instanceof FlattenRequest_0))
|
|
4926
4926
|
return false;
|
|
4927
4927
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
4928
|
-
if (!(this.
|
|
4928
|
+
if (!(this.g2b_1 === tmp0_other_with_cast.g2b_1))
|
|
4929
4929
|
return false;
|
|
4930
|
-
if (!this.
|
|
4930
|
+
if (!this.h2b_1.equals(tmp0_other_with_cast.h2b_1))
|
|
4931
4931
|
return false;
|
|
4932
|
-
if (!this.
|
|
4932
|
+
if (!this.i2b_1.equals(tmp0_other_with_cast.i2b_1))
|
|
4933
4933
|
return false;
|
|
4934
|
-
if (!this.
|
|
4934
|
+
if (!this.j2b_1.equals(tmp0_other_with_cast.j2b_1))
|
|
4935
4935
|
return false;
|
|
4936
4936
|
return true;
|
|
4937
4937
|
};
|
|
@@ -4980,23 +4980,23 @@
|
|
|
4980
4980
|
return destination_1;
|
|
4981
4981
|
}
|
|
4982
4982
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
4983
|
-
this.
|
|
4984
|
-
this.
|
|
4985
|
-
this.
|
|
4986
|
-
this.
|
|
4987
|
-
this.
|
|
4988
|
-
this.
|
|
4983
|
+
this.k2b_1 = path;
|
|
4984
|
+
this.l2b_1 = pathItem;
|
|
4985
|
+
this.m2b_1 = method;
|
|
4986
|
+
this.n2b_1 = operation;
|
|
4987
|
+
this.o2b_1 = statusCode;
|
|
4988
|
+
this.p2b_1 = response;
|
|
4989
4989
|
}
|
|
4990
4990
|
protoOf(FlattenResponse_0).toString = function () {
|
|
4991
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
4991
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.k2b_1) + ', pathItem=' + this.l2b_1.toString() + ', method=' + this.m2b_1.toString() + ', operation=' + this.n2b_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy_0(this.o2b_1) + ', response=' + toString(this.p2b_1) + ')';
|
|
4992
4992
|
};
|
|
4993
4993
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
4994
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
4995
|
-
result = imul(result, 31) + this.
|
|
4996
|
-
result = imul(result, 31) + this.
|
|
4997
|
-
result = imul(result, 31) + this.
|
|
4998
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.
|
|
4999
|
-
result = imul(result, 31) + hashCode(this.
|
|
4994
|
+
var result = Path__hashCode_impl_go73kd_0(this.k2b_1);
|
|
4995
|
+
result = imul(result, 31) + this.l2b_1.hashCode() | 0;
|
|
4996
|
+
result = imul(result, 31) + this.m2b_1.hashCode() | 0;
|
|
4997
|
+
result = imul(result, 31) + this.n2b_1.hashCode() | 0;
|
|
4998
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.o2b_1) | 0;
|
|
4999
|
+
result = imul(result, 31) + hashCode(this.p2b_1) | 0;
|
|
5000
5000
|
return result;
|
|
5001
5001
|
};
|
|
5002
5002
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -5005,17 +5005,17 @@
|
|
|
5005
5005
|
if (!(other instanceof FlattenResponse_0))
|
|
5006
5006
|
return false;
|
|
5007
5007
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
5008
|
-
if (!(this.
|
|
5008
|
+
if (!(this.k2b_1 === tmp0_other_with_cast.k2b_1))
|
|
5009
5009
|
return false;
|
|
5010
|
-
if (!this.
|
|
5010
|
+
if (!this.l2b_1.equals(tmp0_other_with_cast.l2b_1))
|
|
5011
5011
|
return false;
|
|
5012
|
-
if (!this.
|
|
5012
|
+
if (!this.m2b_1.equals(tmp0_other_with_cast.m2b_1))
|
|
5013
5013
|
return false;
|
|
5014
|
-
if (!this.
|
|
5014
|
+
if (!this.n2b_1.equals(tmp0_other_with_cast.n2b_1))
|
|
5015
5015
|
return false;
|
|
5016
|
-
if (!(this.
|
|
5016
|
+
if (!(this.o2b_1 === tmp0_other_with_cast.o2b_1))
|
|
5017
5017
|
return false;
|
|
5018
|
-
if (!equals(this.
|
|
5018
|
+
if (!equals(this.p2b_1, tmp0_other_with_cast.p2b_1))
|
|
5019
5019
|
return false;
|
|
5020
5020
|
return true;
|
|
5021
5021
|
};
|
|
@@ -5096,9 +5096,9 @@
|
|
|
5096
5096
|
}
|
|
5097
5097
|
function OpenApiV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
5098
5098
|
return function ($this$flatMapRequests) {
|
|
5099
|
-
var parameters = plus(resolveParameters_2($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.
|
|
5100
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5101
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5099
|
+
var parameters = plus(resolveParameters_2($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.h2b_1), resolveParameters_1($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.j2b_1));
|
|
5100
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.j2b_1, OpenApiV3Parser_instance);
|
|
5101
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.g2b_1, OpenApiV3Parser_instance) + $this$flatMapRequests.i2b_1.p2_1 : tmp0_elvis_lhs;
|
|
5102
5102
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5103
5103
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5104
5104
|
var destination = ArrayList_init_$Create$();
|
|
@@ -5114,7 +5114,7 @@
|
|
|
5114
5114
|
// Inline function 'kotlin.let' call
|
|
5115
5115
|
// Inline function 'kotlin.contracts.contract' call
|
|
5116
5116
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
5117
|
-
tmp = flatten_2($this_parseParameters, OpenApiV3Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
5117
|
+
tmp = flatten_2($this_parseParameters, OpenApiV3Parser_instance, tmp0_safe_receiver, Common_getInstance().f2a([name, 'Parameter', element.w1v_1]));
|
|
5118
5118
|
}
|
|
5119
5119
|
var tmp1_elvis_lhs = tmp;
|
|
5120
5120
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -5125,11 +5125,11 @@
|
|
|
5125
5125
|
}
|
|
5126
5126
|
function OpenApiV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
5127
5127
|
return function ($this$flatMapRequests) {
|
|
5128
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5129
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5128
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.j2b_1, OpenApiV3Parser_instance);
|
|
5129
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.g2b_1, OpenApiV3Parser_instance) + $this$flatMapRequests.i2b_1.p2_1 : tmp0_elvis_lhs;
|
|
5130
5130
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5131
5131
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5132
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
5132
|
+
var tmp1_safe_receiver = $this$flatMapRequests.j2b_1.z1t_1;
|
|
5133
5133
|
var tmp;
|
|
5134
5134
|
if (tmp1_safe_receiver == null) {
|
|
5135
5135
|
tmp = null;
|
|
@@ -5159,7 +5159,7 @@
|
|
|
5159
5159
|
switch (tmp0_subject == null ? -1 : tmp0_subject.q2_1) {
|
|
5160
5160
|
case -1:
|
|
5161
5161
|
case 5:
|
|
5162
|
-
tmp_1 = flatten_1($this_parseRequestBody, OpenApiV3Parser_instance, schema, Common_getInstance().
|
|
5162
|
+
tmp_1 = flatten_1($this_parseRequestBody, OpenApiV3Parser_instance, schema, Common_getInstance().f2a([name, 'RequestBody']));
|
|
5163
5163
|
break;
|
|
5164
5164
|
case 4:
|
|
5165
5165
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -5172,7 +5172,7 @@
|
|
|
5172
5172
|
// Inline function 'kotlin.let' call
|
|
5173
5173
|
// Inline function 'kotlin.contracts.contract' call
|
|
5174
5174
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
5175
|
-
tmp_2 = flatten_2($this_parseRequestBody, OpenApiV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
5175
|
+
tmp_2 = flatten_2($this_parseRequestBody, OpenApiV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().f2a([name, 'RequestBody']));
|
|
5176
5176
|
}
|
|
5177
5177
|
|
|
5178
5178
|
var tmp0_elvis_lhs_1 = tmp_2;
|
|
@@ -5204,15 +5204,15 @@
|
|
|
5204
5204
|
}
|
|
5205
5205
|
function OpenApiV3Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
5206
5206
|
return function ($this$flatMapResponses) {
|
|
5207
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.
|
|
5208
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.
|
|
5209
|
-
var response = $this$flatMapResponses.
|
|
5207
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.n2b_1, OpenApiV3Parser_instance);
|
|
5208
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.k2b_1, OpenApiV3Parser_instance) + $this$flatMapResponses.m2b_1.p2_1 : tmp0_elvis_lhs;
|
|
5209
|
+
var response = $this$flatMapResponses.p2b_1;
|
|
5210
5210
|
var tmp;
|
|
5211
5211
|
if (response instanceof ResponseObject_0) {
|
|
5212
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenApiV3Parser_instance, response, name, $this$flatMapResponses.
|
|
5212
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenApiV3Parser_instance, response, name, $this$flatMapResponses.o2b_1);
|
|
5213
5213
|
} else {
|
|
5214
5214
|
if (response instanceof ReferenceObject_0) {
|
|
5215
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenApiV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenApiV3Parser_instance, response).de_1, name, $this$flatMapResponses.
|
|
5215
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenApiV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenApiV3Parser_instance, response).de_1, name, $this$flatMapResponses.o2b_1);
|
|
5216
5216
|
} else {
|
|
5217
5217
|
noWhenBranchMatchedException();
|
|
5218
5218
|
}
|
|
@@ -5231,10 +5231,10 @@
|
|
|
5231
5231
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5232
5232
|
|
|
5233
5233
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
5234
|
-
tmp = tmp_0.
|
|
5234
|
+
tmp = tmp_0.f2a([tmp$ret$1]);
|
|
5235
5235
|
break;
|
|
5236
5236
|
case false:
|
|
5237
|
-
tmp = Common_getInstance().
|
|
5237
|
+
tmp = Common_getInstance().f2a([it]);
|
|
5238
5238
|
break;
|
|
5239
5239
|
default:
|
|
5240
5240
|
noWhenBranchMatchedException();
|
|
@@ -5244,14 +5244,14 @@
|
|
|
5244
5244
|
}
|
|
5245
5245
|
function OpenApiV3Parser() {
|
|
5246
5246
|
}
|
|
5247
|
-
protoOf(OpenApiV3Parser).
|
|
5248
|
-
return this.
|
|
5247
|
+
protoOf(OpenApiV3Parser).x2a = function (json, strict) {
|
|
5248
|
+
return this.q2b((new OpenAPI_0(Json(VOID, OpenApiV3Parser$parse$lambda(strict)))).i1g(json));
|
|
5249
5249
|
};
|
|
5250
|
-
protoOf(OpenApiV3Parser).
|
|
5250
|
+
protoOf(OpenApiV3Parser).r2b = function (json, strict, $super) {
|
|
5251
5251
|
strict = strict === VOID ? false : strict;
|
|
5252
|
-
return $super === VOID ? this.
|
|
5252
|
+
return $super === VOID ? this.x2a(json, strict) : $super.x2a.call(this, json, strict);
|
|
5253
5253
|
};
|
|
5254
|
-
protoOf(OpenApiV3Parser).
|
|
5254
|
+
protoOf(OpenApiV3Parser).q2b = function (_this__u8e3s4) {
|
|
5255
5255
|
// Inline function 'kotlin.collections.reduce' call
|
|
5256
5256
|
var iterator = listOf_0([parseEndpoint(_this__u8e3s4, this), parseParameters_0(_this__u8e3s4, this), parseRequestBody_0(_this__u8e3s4, this), parseResponseBody_0(_this__u8e3s4, this), parseComponents(_this__u8e3s4, this)]).g();
|
|
5257
5257
|
if (!iterator.h())
|
|
@@ -5271,16 +5271,16 @@
|
|
|
5271
5271
|
function toMap_1(_this__u8e3s4) {
|
|
5272
5272
|
var tmp;
|
|
5273
5273
|
if (_this__u8e3s4 instanceof Custom) {
|
|
5274
|
-
tmp = _this__u8e3s4.
|
|
5274
|
+
tmp = _this__u8e3s4.i29(VOID, VOID, true);
|
|
5275
5275
|
} else {
|
|
5276
5276
|
if (_this__u8e3s4 instanceof Any) {
|
|
5277
|
-
tmp = _this__u8e3s4.
|
|
5277
|
+
tmp = _this__u8e3s4.c29(VOID, true);
|
|
5278
5278
|
} else {
|
|
5279
5279
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
5280
|
-
tmp = _this__u8e3s4.
|
|
5280
|
+
tmp = _this__u8e3s4.k29(VOID, VOID, true);
|
|
5281
5281
|
} else {
|
|
5282
5282
|
if (_this__u8e3s4 instanceof Unit) {
|
|
5283
|
-
tmp = _this__u8e3s4.
|
|
5283
|
+
tmp = _this__u8e3s4.g29(VOID, true);
|
|
5284
5284
|
} else {
|
|
5285
5285
|
noWhenBranchMatchedException();
|
|
5286
5286
|
}
|
|
@@ -5322,16 +5322,16 @@
|
|
|
5322
5322
|
function toIterable_0(_this__u8e3s4) {
|
|
5323
5323
|
var tmp;
|
|
5324
5324
|
if (_this__u8e3s4 instanceof Custom) {
|
|
5325
|
-
tmp = _this__u8e3s4.
|
|
5325
|
+
tmp = _this__u8e3s4.i29(VOID, true);
|
|
5326
5326
|
} else {
|
|
5327
5327
|
if (_this__u8e3s4 instanceof Any) {
|
|
5328
|
-
tmp = _this__u8e3s4.
|
|
5328
|
+
tmp = _this__u8e3s4.c29(true);
|
|
5329
5329
|
} else {
|
|
5330
5330
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
5331
|
-
tmp = _this__u8e3s4.
|
|
5331
|
+
tmp = _this__u8e3s4.k29(VOID, true);
|
|
5332
5332
|
} else {
|
|
5333
5333
|
if (_this__u8e3s4 instanceof Unit) {
|
|
5334
|
-
tmp = _this__u8e3s4.
|
|
5334
|
+
tmp = _this__u8e3s4.g29(true);
|
|
5335
5335
|
} else {
|
|
5336
5336
|
noWhenBranchMatchedException();
|
|
5337
5337
|
}
|