@flock/wirespec 0.22.7 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clikt-clikt-mordant.mjs +39 -39
- package/colormath-root-colormath.mjs +433 -433
- package/kotlin-kotlin-stdlib.mjs +115 -82
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +6385 -6385
- package/kotlin-rgxgen.mjs +1756 -1756
- package/kotlinx-io-kotlinx-io-core.mjs +404 -404
- package/mordant-mordant.mjs +1202 -1202
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1603 -1889
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +45 -45
- package/wirespec-src-compiler-emitters-kotlin.mjs +39 -39
- package/wirespec-src-compiler-emitters-python.mjs +29 -29
- package/wirespec-src-compiler-emitters-rust.mjs +1335 -1950
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +523 -37
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +26 -26
- package/wirespec-src-compiler-emitters-wirespec.mjs +44 -44
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-converter-asyncapi.mjs +447 -447
- package/wirespec-src-converter-graphql.mjs +1500 -986
- package/wirespec-src-converter-graphql.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +332 -332
- package/wirespec-src-ide-lsp.mjs +767 -767
- package/wirespec-src-plugin-arguments.mjs +165 -154
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +87 -87
- package/wirespec-src-plugin-extensions.mjs +2603 -694
- package/wirespec-src-plugin-extensions.mjs.map +1 -1
- package/wirespec-src-plugin-npm.d.mts +13 -9
- package/wirespec-src-plugin-npm.mjs +24 -14
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +2 -2
|
@@ -218,12 +218,12 @@ function Action_initEntries() {
|
|
|
218
218
|
var $ENTRIES;
|
|
219
219
|
function Action(name, ordinal, keyword, v2Keyword) {
|
|
220
220
|
Enum.call(this, name, ordinal);
|
|
221
|
-
this.
|
|
222
|
-
this.
|
|
221
|
+
this.t4t_1 = keyword;
|
|
222
|
+
this.u4t_1 = v2Keyword;
|
|
223
223
|
}
|
|
224
|
-
protoOf(Action).
|
|
224
|
+
protoOf(Action).v4t = function () {
|
|
225
225
|
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
226
|
-
var this_0 = this.
|
|
226
|
+
var this_0 = this.t4t_1;
|
|
227
227
|
var tmp;
|
|
228
228
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
229
229
|
if (charSequenceLength(this_0) > 0) {
|
|
@@ -238,8 +238,8 @@ protoOf(Action).x4p = function () {
|
|
|
238
238
|
}
|
|
239
239
|
return 'AsyncAPI' + tmp;
|
|
240
240
|
};
|
|
241
|
-
protoOf(Action).
|
|
242
|
-
return this.
|
|
241
|
+
protoOf(Action).w4t = function (channel) {
|
|
242
|
+
return this.t4t_1 + channel;
|
|
243
243
|
};
|
|
244
244
|
function toJsonObject($this, $receiver) {
|
|
245
245
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -250,7 +250,7 @@ function toJsonObject($this, $receiver) {
|
|
|
250
250
|
while (_iterator__ex2g4s.u()) {
|
|
251
251
|
var element = _iterator__ex2g4s.v();
|
|
252
252
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
253
|
-
var pair = to(fromLiteral(AsyncAPIAnnotations_getInstance(), element.s1a_1), AsyncAPIAnnotations_getInstance().
|
|
253
|
+
var pair = to(fromLiteral(AsyncAPIAnnotations_getInstance(), element.s1a_1), AsyncAPIAnnotations_getInstance().j4u(element.t1a_1));
|
|
254
254
|
destination.w2(pair.gf_1, pair.hf_1);
|
|
255
255
|
}
|
|
256
256
|
return new JsonObject(destination);
|
|
@@ -280,11 +280,11 @@ function asJson($this, $receiver) {
|
|
|
280
280
|
break;
|
|
281
281
|
default:
|
|
282
282
|
var tmp_0;
|
|
283
|
-
if ($this.
|
|
283
|
+
if ($this.h4u_1.sc($receiver)) {
|
|
284
284
|
tmp_0 = true;
|
|
285
285
|
} else {
|
|
286
286
|
var tmp_1 = firstOrNull($receiver);
|
|
287
|
-
tmp_0 = contains($this.
|
|
287
|
+
tmp_0 = contains($this.i4u_1, tmp_1 == null ? null : new Char(tmp_1));
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
if (tmp_0) {
|
|
@@ -395,20 +395,20 @@ function Action_RECEIVE_getInstance() {
|
|
|
395
395
|
}
|
|
396
396
|
function AsyncAPIAnnotations() {
|
|
397
397
|
AsyncAPIAnnotations_instance = this;
|
|
398
|
-
this.
|
|
399
|
-
this.
|
|
400
|
-
this.
|
|
401
|
-
this.
|
|
402
|
-
this.
|
|
403
|
-
this.
|
|
404
|
-
this.
|
|
405
|
-
this.
|
|
406
|
-
this.
|
|
407
|
-
this.
|
|
408
|
-
this.
|
|
409
|
-
this.
|
|
398
|
+
this.x4t_1 = 'Description';
|
|
399
|
+
this.y4t_1 = 'AsyncAPIName';
|
|
400
|
+
this.z4t_1 = 'AsyncAPIDocument';
|
|
401
|
+
this.a4u_1 = 'AsyncAPIComponents';
|
|
402
|
+
this.b4u_1 = 'AsyncAPIChannel';
|
|
403
|
+
this.c4u_1 = 'AsyncAPIMessage';
|
|
404
|
+
this.d4u_1 = 'AsyncAPISchema';
|
|
405
|
+
this.e4u_1 = 'AsyncAPIInline';
|
|
406
|
+
this.f4u_1 = 'omit';
|
|
407
|
+
this.g4u_1 = 'default';
|
|
408
|
+
this.h4u_1 = Regex_init_$Create$('-?(0|[1-9][0-9]*)(\\.[0-9]+)?([eE][+-]?[0-9]+)?');
|
|
409
|
+
this.i4u_1 = setOf([new Char(_Char___init__impl__6a9atx(123)), new Char(_Char___init__impl__6a9atx(91)), new Char(_Char___init__impl__6a9atx(34))]);
|
|
410
410
|
}
|
|
411
|
-
protoOf(AsyncAPIAnnotations).
|
|
411
|
+
protoOf(AsyncAPIAnnotations).k4u = function (name, value, parameters) {
|
|
412
412
|
var tmp;
|
|
413
413
|
if (value == null) {
|
|
414
414
|
tmp = null;
|
|
@@ -418,30 +418,30 @@ protoOf(AsyncAPIAnnotations).m4q = function (name, value, parameters) {
|
|
|
418
418
|
}
|
|
419
419
|
return new Annotation(name, plus(listOfNotNull(tmp), parameters));
|
|
420
420
|
};
|
|
421
|
-
protoOf(AsyncAPIAnnotations).
|
|
421
|
+
protoOf(AsyncAPIAnnotations).l4u = function (name, value, parameters, $super) {
|
|
422
422
|
value = value === VOID ? null : value;
|
|
423
423
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
424
|
-
return $super === VOID ? this.
|
|
424
|
+
return $super === VOID ? this.k4u(name, value, parameters) : $super.k4u.call(this, name, value, parameters);
|
|
425
425
|
};
|
|
426
|
-
protoOf(AsyncAPIAnnotations).
|
|
426
|
+
protoOf(AsyncAPIAnnotations).m4u = function (_this__u8e3s4) {
|
|
427
427
|
var tmp;
|
|
428
428
|
if (_this__u8e3s4 == null) {
|
|
429
429
|
tmp = null;
|
|
430
430
|
} else {
|
|
431
431
|
// Inline function 'kotlin.let' call
|
|
432
|
-
tmp = listOf(AsyncAPIAnnotations_getInstance().
|
|
432
|
+
tmp = listOf(AsyncAPIAnnotations_getInstance().l4u('Description', _this__u8e3s4));
|
|
433
433
|
}
|
|
434
434
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
435
435
|
var tmp0_elvis_lhs = tmp;
|
|
436
436
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
437
437
|
};
|
|
438
|
-
protoOf(AsyncAPIAnnotations).
|
|
438
|
+
protoOf(AsyncAPIAnnotations).n4u = function (key, value) {
|
|
439
439
|
return new Parameter(toLiteral(this, key), value);
|
|
440
440
|
};
|
|
441
|
-
protoOf(AsyncAPIAnnotations).
|
|
441
|
+
protoOf(AsyncAPIAnnotations).o4u = function (_this__u8e3s4) {
|
|
442
442
|
return toSingle(this, JsonPrimitive_0(_this__u8e3s4));
|
|
443
443
|
};
|
|
444
|
-
protoOf(AsyncAPIAnnotations).
|
|
444
|
+
protoOf(AsyncAPIAnnotations).p4u = function (_this__u8e3s4) {
|
|
445
445
|
// Inline function 'kotlin.collections.map' call
|
|
446
446
|
// Inline function 'kotlin.collections.mapTo' call
|
|
447
447
|
var destination = ArrayList_init_$Create$(_this__u8e3s4.c1());
|
|
@@ -453,15 +453,15 @@ protoOf(AsyncAPIAnnotations).r4q = function (_this__u8e3s4) {
|
|
|
453
453
|
var key = item.n1();
|
|
454
454
|
// Inline function 'kotlin.collections.component2' call
|
|
455
455
|
var value = item.o1();
|
|
456
|
-
var tmp$ret$3 = AsyncAPIAnnotations_getInstance().
|
|
456
|
+
var tmp$ret$3 = AsyncAPIAnnotations_getInstance().n4u(key, AsyncAPIAnnotations_getInstance().q4u(value));
|
|
457
457
|
destination.x(tmp$ret$3);
|
|
458
458
|
}
|
|
459
459
|
return destination;
|
|
460
460
|
};
|
|
461
|
-
protoOf(AsyncAPIAnnotations).
|
|
461
|
+
protoOf(AsyncAPIAnnotations).q4u = function (_this__u8e3s4) {
|
|
462
462
|
var tmp;
|
|
463
463
|
if (_this__u8e3s4 instanceof JsonObject) {
|
|
464
|
-
tmp = new Dict(this.
|
|
464
|
+
tmp = new Dict(this.p4u(_this__u8e3s4));
|
|
465
465
|
} else {
|
|
466
466
|
if (_this__u8e3s4 instanceof JsonArray) {
|
|
467
467
|
var tmp_0;
|
|
@@ -514,7 +514,7 @@ protoOf(AsyncAPIAnnotations).s4q = function (_this__u8e3s4) {
|
|
|
514
514
|
}
|
|
515
515
|
return tmp;
|
|
516
516
|
};
|
|
517
|
-
protoOf(AsyncAPIAnnotations).
|
|
517
|
+
protoOf(AsyncAPIAnnotations).j4u = function (_this__u8e3s4) {
|
|
518
518
|
var tmp;
|
|
519
519
|
if (_this__u8e3s4 instanceof Single) {
|
|
520
520
|
// Inline function 'kotlin.let' call
|
|
@@ -530,7 +530,7 @@ protoOf(AsyncAPIAnnotations).l4q = function (_this__u8e3s4) {
|
|
|
530
530
|
var _iterator__ex2g4s = this_0.t();
|
|
531
531
|
while (_iterator__ex2g4s.u()) {
|
|
532
532
|
var item = _iterator__ex2g4s.v();
|
|
533
|
-
var tmp$ret$4 = AsyncAPIAnnotations_getInstance().
|
|
533
|
+
var tmp$ret$4 = AsyncAPIAnnotations_getInstance().j4u(item);
|
|
534
534
|
destination.x(tmp$ret$4);
|
|
535
535
|
}
|
|
536
536
|
tmp = new JsonArray(destination);
|
|
@@ -544,7 +544,7 @@ protoOf(AsyncAPIAnnotations).l4q = function (_this__u8e3s4) {
|
|
|
544
544
|
}
|
|
545
545
|
return tmp;
|
|
546
546
|
};
|
|
547
|
-
protoOf(AsyncAPIAnnotations).
|
|
547
|
+
protoOf(AsyncAPIAnnotations).z3a = function (_this__u8e3s4, name) {
|
|
548
548
|
// Inline function 'kotlin.collections.filter' call
|
|
549
549
|
// Inline function 'kotlin.collections.filterTo' call
|
|
550
550
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -557,7 +557,7 @@ protoOf(AsyncAPIAnnotations).i4p = function (_this__u8e3s4, name) {
|
|
|
557
557
|
}
|
|
558
558
|
return destination;
|
|
559
559
|
};
|
|
560
|
-
protoOf(AsyncAPIAnnotations).
|
|
560
|
+
protoOf(AsyncAPIAnnotations).r4u = function (_this__u8e3s4, name) {
|
|
561
561
|
var tmp$ret$0;
|
|
562
562
|
$l$block: {
|
|
563
563
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -573,7 +573,7 @@ protoOf(AsyncAPIAnnotations).t4q = function (_this__u8e3s4, name) {
|
|
|
573
573
|
}
|
|
574
574
|
return tmp$ret$0;
|
|
575
575
|
};
|
|
576
|
-
protoOf(AsyncAPIAnnotations).
|
|
576
|
+
protoOf(AsyncAPIAnnotations).x3a = function (_this__u8e3s4, name) {
|
|
577
577
|
var tmp$ret$0;
|
|
578
578
|
$l$block_0: {
|
|
579
579
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -599,17 +599,17 @@ protoOf(AsyncAPIAnnotations).g4p = function (_this__u8e3s4, name) {
|
|
|
599
599
|
}
|
|
600
600
|
return tmp$ret$0;
|
|
601
601
|
};
|
|
602
|
-
protoOf(AsyncAPIAnnotations).
|
|
603
|
-
var tmp0_safe_receiver = this.
|
|
604
|
-
return tmp0_safe_receiver == null ? null : this.
|
|
602
|
+
protoOf(AsyncAPIAnnotations).d3b = function (_this__u8e3s4, name) {
|
|
603
|
+
var tmp0_safe_receiver = this.r4u(_this__u8e3s4, name);
|
|
604
|
+
return tmp0_safe_receiver == null ? null : this.s4u(tmp0_safe_receiver);
|
|
605
605
|
};
|
|
606
|
-
protoOf(AsyncAPIAnnotations).
|
|
607
|
-
var tmp = this.
|
|
606
|
+
protoOf(AsyncAPIAnnotations).s4u = function (_this__u8e3s4) {
|
|
607
|
+
var tmp = this.t4u(_this__u8e3s4);
|
|
608
608
|
var tmp0_safe_receiver = tmp instanceof Single ? tmp : null;
|
|
609
609
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w1a_1;
|
|
610
610
|
return tmp1_safe_receiver == null ? null : fromLiteral(this, tmp1_safe_receiver);
|
|
611
611
|
};
|
|
612
|
-
protoOf(AsyncAPIAnnotations).
|
|
612
|
+
protoOf(AsyncAPIAnnotations).t4u = function (_this__u8e3s4) {
|
|
613
613
|
// Inline function 'kotlin.collections.find' call
|
|
614
614
|
var tmp0 = _this__u8e3s4.r1a_1;
|
|
615
615
|
var tmp$ret$1;
|
|
@@ -628,7 +628,7 @@ protoOf(AsyncAPIAnnotations).v4q = function (_this__u8e3s4) {
|
|
|
628
628
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
629
629
|
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t1a_1;
|
|
630
630
|
};
|
|
631
|
-
protoOf(AsyncAPIAnnotations).
|
|
631
|
+
protoOf(AsyncAPIAnnotations).u4u = function (_this__u8e3s4) {
|
|
632
632
|
// Inline function 'kotlin.collections.filterNot' call
|
|
633
633
|
var tmp0 = _this__u8e3s4.r1a_1;
|
|
634
634
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
@@ -654,16 +654,16 @@ function AsyncAPIEmitter$json$lambda($this$Json) {
|
|
|
654
654
|
}
|
|
655
655
|
function AsyncAPIEmitter() {
|
|
656
656
|
AsyncAPIEmitter_instance = this;
|
|
657
|
-
this.
|
|
658
|
-
this.
|
|
657
|
+
this.v4u_1 = FileExtension_JSON_getInstance();
|
|
658
|
+
this.w4u_1 = true;
|
|
659
659
|
var tmp = this;
|
|
660
|
-
tmp.
|
|
660
|
+
tmp.x4u_1 = Json(VOID, AsyncAPIEmitter$json$lambda);
|
|
661
661
|
}
|
|
662
662
|
protoOf(AsyncAPIEmitter).xp = function () {
|
|
663
|
-
return this.
|
|
663
|
+
return this.v4u_1;
|
|
664
664
|
};
|
|
665
665
|
protoOf(AsyncAPIEmitter).wp = function () {
|
|
666
|
-
return this.
|
|
666
|
+
return this.w4u_1;
|
|
667
667
|
};
|
|
668
668
|
protoOf(AsyncAPIEmitter).uo = function (ast, logger) {
|
|
669
669
|
// Inline function 'kotlin.collections.onEach' call
|
|
@@ -689,8 +689,8 @@ protoOf(AsyncAPIEmitter).uo = function (ast, logger) {
|
|
|
689
689
|
// Inline function 'kotlin.let' call
|
|
690
690
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
691
691
|
// Inline function 'kotlin.let' call
|
|
692
|
-
var it_0 = (new WirespecToAsyncAPI(new NonEmptyList(it))).
|
|
693
|
-
return nonEmptyListOf(new Emitted('asyncapi.' + AsyncAPIEmitter_getInstance().
|
|
692
|
+
var it_0 = (new WirespecToAsyncAPI(new NonEmptyList(it))).i4v();
|
|
693
|
+
return nonEmptyListOf(new Emitted('asyncapi.' + AsyncAPIEmitter_getInstance().v4u_1.yr_1, AsyncAPIEmitter_getInstance().x4u_1.q2m(Companion_instance_0.z2o(), it_0)), []);
|
|
694
694
|
};
|
|
695
695
|
var AsyncAPIEmitter_instance;
|
|
696
696
|
function AsyncAPIEmitter_getInstance() {
|
|
@@ -699,15 +699,15 @@ function AsyncAPIEmitter_getInstance() {
|
|
|
699
699
|
return AsyncAPIEmitter_instance;
|
|
700
700
|
}
|
|
701
701
|
function toChannel($this, $receiver) {
|
|
702
|
-
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().
|
|
703
|
-
var fields = orEmpty(tmp0_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().
|
|
702
|
+
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().r4u($receiver.xq_1, 'AsyncAPIChannel');
|
|
703
|
+
var fields = orEmpty(tmp0_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().u4u(tmp0_safe_receiver));
|
|
704
704
|
var tmp;
|
|
705
705
|
// Inline function 'kotlin.collections.contains' call
|
|
706
706
|
// Inline function 'kotlin.collections.containsKey' call
|
|
707
707
|
if ((isInterface(fields, KtMap) ? fields : THROW_CCE()).r2('$ref')) {
|
|
708
708
|
tmp = fields;
|
|
709
709
|
} else {
|
|
710
|
-
if ($this.
|
|
710
|
+
if ($this.h4v_1 === 2) {
|
|
711
711
|
var tmp_0 = plus_0(fields, jsonObjectOf([to('description', description($this, $receiver))]));
|
|
712
712
|
// Inline function 'kotlin.collections.associate' call
|
|
713
713
|
var this_0 = operations_0($this, $receiver.xq_1);
|
|
@@ -720,7 +720,7 @@ function toChannel($this, $receiver) {
|
|
|
720
720
|
var annotation = element.af();
|
|
721
721
|
var action = element.bf();
|
|
722
722
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
723
|
-
var pair = to(action.
|
|
723
|
+
var pair = to(action.u4t_1, toOperationV2($this, annotation, messages($this, $receiver)));
|
|
724
724
|
destination.w2(pair.gf_1, pair.hf_1);
|
|
725
725
|
}
|
|
726
726
|
tmp = new JsonObject(plus_0(tmp_0, destination));
|
|
@@ -728,7 +728,7 @@ function toChannel($this, $receiver) {
|
|
|
728
728
|
// Inline function 'kotlin.takeUnless' call
|
|
729
729
|
var this_1 = mapOf(to('address', JsonPrimitive_0(key($this, $receiver))));
|
|
730
730
|
var tmp_1;
|
|
731
|
-
if (!$this.
|
|
731
|
+
if (!$this.z4u_1) {
|
|
732
732
|
tmp_1 = this_1;
|
|
733
733
|
} else {
|
|
734
734
|
tmp_1 = null;
|
|
@@ -742,7 +742,7 @@ function toChannel($this, $receiver) {
|
|
|
742
742
|
return tmp;
|
|
743
743
|
}
|
|
744
744
|
function key($this, $receiver) {
|
|
745
|
-
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().
|
|
745
|
+
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().d3b($receiver.xq_1, 'AsyncAPIName');
|
|
746
746
|
var tmp;
|
|
747
747
|
if (tmp0_elvis_lhs == null) {
|
|
748
748
|
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
@@ -766,7 +766,7 @@ function key($this, $receiver) {
|
|
|
766
766
|
return tmp;
|
|
767
767
|
}
|
|
768
768
|
function description($this, $receiver) {
|
|
769
|
-
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().
|
|
769
|
+
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().d3b($receiver.xq_1, 'Description');
|
|
770
770
|
var tmp;
|
|
771
771
|
if (tmp0_elvis_lhs == null) {
|
|
772
772
|
var tmp1_safe_receiver = $receiver.wq_1;
|
|
@@ -793,14 +793,14 @@ function description($this, $receiver) {
|
|
|
793
793
|
}
|
|
794
794
|
function messages($this, $receiver) {
|
|
795
795
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
796
|
-
var tmp0 = AsyncAPIAnnotations_getInstance().
|
|
796
|
+
var tmp0 = AsyncAPIAnnotations_getInstance().z3a($receiver.xq_1, 'AsyncAPIMessage');
|
|
797
797
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
798
798
|
var destination = ArrayList_init_$Create$_0();
|
|
799
799
|
// Inline function 'kotlin.collections.forEach' call
|
|
800
800
|
var _iterator__ex2g4s = tmp0.t();
|
|
801
801
|
while (_iterator__ex2g4s.u()) {
|
|
802
802
|
var element = _iterator__ex2g4s.v();
|
|
803
|
-
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().
|
|
803
|
+
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().s4u(element);
|
|
804
804
|
var tmp;
|
|
805
805
|
if (tmp0_safe_receiver == null) {
|
|
806
806
|
tmp = null;
|
|
@@ -820,7 +820,7 @@ function messages($this, $receiver) {
|
|
|
820
820
|
var this_0 = toMap(destination);
|
|
821
821
|
var tmp_0;
|
|
822
822
|
if (this_0.r()) {
|
|
823
|
-
tmp_0 = $this.
|
|
823
|
+
tmp_0 = $this.z4u_1 ? emptyMap() : mapOf(to(defaultMessageKey($this, $receiver), ref('#/components/messages/' + escapePointer(defaultMessageKey($this, $receiver)))));
|
|
824
824
|
} else {
|
|
825
825
|
tmp_0 = this_0;
|
|
826
826
|
}
|
|
@@ -834,7 +834,7 @@ function defaultMessageKey($this, $receiver) {
|
|
|
834
834
|
}
|
|
835
835
|
function toMessage($this, $receiver) {
|
|
836
836
|
// Inline function 'kotlin.collections.mapValues' call
|
|
837
|
-
var this_0 = AsyncAPIAnnotations_getInstance().
|
|
837
|
+
var this_0 = AsyncAPIAnnotations_getInstance().u4u($receiver);
|
|
838
838
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
839
839
|
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.c1()));
|
|
840
840
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -846,7 +846,7 @@ function toMessage($this, $receiver) {
|
|
|
846
846
|
var field = element.n1();
|
|
847
847
|
// Inline function 'kotlin.collections.component2' call
|
|
848
848
|
var value = element.o1();
|
|
849
|
-
var tmp$ret$4 = Companion_getInstance().
|
|
849
|
+
var tmp$ret$4 = Companion_getInstance().k4v_1.i1(field) ? toSchema($this, value) : value;
|
|
850
850
|
destination.w2(tmp, tmp$ret$4);
|
|
851
851
|
}
|
|
852
852
|
return new JsonObject(destination);
|
|
@@ -873,14 +873,14 @@ function toSchema($this, $receiver) {
|
|
|
873
873
|
} else {
|
|
874
874
|
// Inline function 'kotlin.let' call
|
|
875
875
|
// Inline function 'kotlin.with' call
|
|
876
|
-
tmp_1 = $this.
|
|
876
|
+
tmp_1 = $this.e4v_1.o4v(toReference(tmp1_safe_receiver.m1i()));
|
|
877
877
|
}
|
|
878
878
|
var tmp2_elvis_lhs = tmp_1;
|
|
879
879
|
return tmp2_elvis_lhs == null ? $receiver : tmp2_elvis_lhs;
|
|
880
880
|
}
|
|
881
881
|
function operations($this) {
|
|
882
882
|
// Inline function 'kotlin.collections.flatMap' call
|
|
883
|
-
var tmp0 = $this.
|
|
883
|
+
var tmp0 = $this.f4v_1;
|
|
884
884
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
885
885
|
var destination = ArrayList_init_$Create$_0();
|
|
886
886
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -890,7 +890,7 @@ function operations($this) {
|
|
|
890
890
|
var this_0 = operations_0($this, element.xq_1);
|
|
891
891
|
var tmp;
|
|
892
892
|
if (this_0.r()) {
|
|
893
|
-
tmp = $this.
|
|
893
|
+
tmp = $this.z4u_1 ? emptyList() : listOf(to(AsyncAPIAnnotations_getInstance().l4u(Action_SEND_getInstance().v4t()), Action_SEND_getInstance()));
|
|
894
894
|
} else {
|
|
895
895
|
tmp = this_0;
|
|
896
896
|
}
|
|
@@ -903,15 +903,15 @@ function operations($this) {
|
|
|
903
903
|
var item = _iterator__ex2g4s_0.v();
|
|
904
904
|
var annotation = item.af();
|
|
905
905
|
var action = item.bf();
|
|
906
|
-
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().
|
|
907
|
-
var tmp$ret$7 = to(tmp0_elvis_lhs == null ? action.
|
|
906
|
+
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().s4u(annotation);
|
|
907
|
+
var tmp$ret$7 = to(tmp0_elvis_lhs == null ? action.w4t(element.yq_1.o1()) : tmp0_elvis_lhs, toOperation($this, annotation, action, '#/channels/' + escapePointer(key($this, element)), messages($this, element).u2()));
|
|
908
908
|
destination_0.x(tmp$ret$7);
|
|
909
909
|
}
|
|
910
910
|
var list = destination_0;
|
|
911
911
|
addAll(destination, list);
|
|
912
912
|
}
|
|
913
913
|
var tmp_0 = toMap(destination);
|
|
914
|
-
var tmp0_safe_receiver = $this.
|
|
914
|
+
var tmp0_safe_receiver = $this.y4u_1;
|
|
915
915
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
916
916
|
var tmp0_elvis_lhs_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kp_1;
|
|
917
917
|
var tmp$ret$8 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
@@ -925,7 +925,7 @@ function operations($this) {
|
|
|
925
925
|
var annotation_0 = item_0.af();
|
|
926
926
|
var action_0 = item_0.bf();
|
|
927
927
|
// Inline function 'kotlin.text.orEmpty' call
|
|
928
|
-
var tmp0_elvis_lhs_1 = AsyncAPIAnnotations_getInstance().
|
|
928
|
+
var tmp0_elvis_lhs_1 = AsyncAPIAnnotations_getInstance().s4u(annotation_0);
|
|
929
929
|
var tmp$ret$12 = tmp0_elvis_lhs_1 == null ? '' : tmp0_elvis_lhs_1;
|
|
930
930
|
var tmp$ret$11 = to(tmp$ret$12, toOperation($this, annotation_0, action_0, null, emptySet()));
|
|
931
931
|
destination_1.x(tmp$ret$11);
|
|
@@ -948,7 +948,7 @@ function operations_0($this, $receiver) {
|
|
|
948
948
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
949
949
|
while (_iterator__ex2g4s_0.u()) {
|
|
950
950
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
951
|
-
if (element_0.
|
|
951
|
+
if (element_0.v4t() === element.q1a_1) {
|
|
952
952
|
tmp$ret$6 = element_0;
|
|
953
953
|
break $l$block;
|
|
954
954
|
}
|
|
@@ -974,14 +974,14 @@ function operations_0($this, $receiver) {
|
|
|
974
974
|
return destination;
|
|
975
975
|
}
|
|
976
976
|
function toOperation($this, $receiver, action, channelPointer, messageKeys) {
|
|
977
|
-
var fields = AsyncAPIAnnotations_getInstance().
|
|
977
|
+
var fields = AsyncAPIAnnotations_getInstance().u4u($receiver);
|
|
978
978
|
var tmp;
|
|
979
979
|
// Inline function 'kotlin.collections.contains' call
|
|
980
980
|
// Inline function 'kotlin.collections.containsKey' call
|
|
981
981
|
if ((isInterface(fields, KtMap) ? fields : THROW_CCE()).r2('$ref')) {
|
|
982
982
|
tmp = fields;
|
|
983
983
|
} else {
|
|
984
|
-
var tmp_0 = mapOf(to('action', JsonPrimitive_0(action.
|
|
984
|
+
var tmp_0 = mapOf(to('action', JsonPrimitive_0(action.t4t_1)));
|
|
985
985
|
var tmp_1;
|
|
986
986
|
if (channelPointer == null) {
|
|
987
987
|
tmp_1 = null;
|
|
@@ -999,7 +999,7 @@ function toOperation($this, $receiver, action, channelPointer, messageKeys) {
|
|
|
999
999
|
} else {
|
|
1000
1000
|
// Inline function 'kotlin.takeUnless' call
|
|
1001
1001
|
var tmp_4;
|
|
1002
|
-
if (!$this.
|
|
1002
|
+
if (!$this.z4u_1) {
|
|
1003
1003
|
tmp_4 = channelPointer;
|
|
1004
1004
|
} else {
|
|
1005
1005
|
tmp_4 = null;
|
|
@@ -1114,7 +1114,7 @@ function toMessageRefs_0($this, $receiver, channelPointer) {
|
|
|
1114
1114
|
return new JsonArray(destination);
|
|
1115
1115
|
}
|
|
1116
1116
|
function toOperationV2($this, $receiver, messages) {
|
|
1117
|
-
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().
|
|
1117
|
+
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().s4u($receiver);
|
|
1118
1118
|
var tmp;
|
|
1119
1119
|
if (tmp0_safe_receiver == null) {
|
|
1120
1120
|
tmp = null;
|
|
@@ -1126,7 +1126,7 @@ function toOperationV2($this, $receiver, messages) {
|
|
|
1126
1126
|
var tmp0_elvis_lhs = tmp;
|
|
1127
1127
|
var tmp_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1128
1128
|
// Inline function 'kotlin.collections.mapValues' call
|
|
1129
|
-
var this_0 = AsyncAPIAnnotations_getInstance().
|
|
1129
|
+
var this_0 = AsyncAPIAnnotations_getInstance().u4u($receiver);
|
|
1130
1130
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
1131
1131
|
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.c1()));
|
|
1132
1132
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -1209,40 +1209,40 @@ function toMessage_0($this, $receiver, messages) {
|
|
|
1209
1209
|
return tmp;
|
|
1210
1210
|
}
|
|
1211
1211
|
function components($this) {
|
|
1212
|
-
var tmp0_safe_receiver = $this.
|
|
1212
|
+
var tmp0_safe_receiver = $this.y4u_1;
|
|
1213
1213
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kp_1;
|
|
1214
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().
|
|
1215
|
-
var fields = tmp2_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().
|
|
1214
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().r4u(tmp1_safe_receiver, 'AsyncAPIComponents');
|
|
1215
|
+
var fields = tmp2_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().u4u(tmp2_safe_receiver);
|
|
1216
1216
|
// Inline function 'kotlin.collections.associate' call
|
|
1217
|
-
var this_0 = $this.
|
|
1217
|
+
var this_0 = $this.c4v_1;
|
|
1218
1218
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1219
1219
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1220
1220
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
1221
1221
|
var _iterator__ex2g4s = this_0.t();
|
|
1222
1222
|
while (_iterator__ex2g4s.u()) {
|
|
1223
1223
|
var element = _iterator__ex2g4s.v();
|
|
1224
|
-
var tmp = getValue($this.
|
|
1224
|
+
var tmp = getValue($this.d4v_1, element.es().o1());
|
|
1225
1225
|
// Inline function 'kotlin.with' call
|
|
1226
|
-
var tmp$ret$3 = $this.
|
|
1226
|
+
var tmp$ret$3 = $this.e4v_1.p4v(element);
|
|
1227
1227
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1228
1228
|
var pair = to(tmp, tmp$ret$3);
|
|
1229
1229
|
destination.w2(pair.gf_1, pair.hf_1);
|
|
1230
1230
|
}
|
|
1231
1231
|
var schemas = destination;
|
|
1232
1232
|
var tmp_0 = AsyncAPIAnnotations_getInstance();
|
|
1233
|
-
var tmp3_safe_receiver = $this.
|
|
1233
|
+
var tmp3_safe_receiver = $this.y4u_1;
|
|
1234
1234
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1235
1235
|
var tmp0_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.kp_1;
|
|
1236
1236
|
var tmp$ret$6 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1237
1237
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1238
|
-
var tmp0 = tmp_0.
|
|
1238
|
+
var tmp0 = tmp_0.z3a(tmp$ret$6, 'AsyncAPIMessage');
|
|
1239
1239
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1240
1240
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
1241
1241
|
// Inline function 'kotlin.collections.forEach' call
|
|
1242
1242
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
1243
1243
|
while (_iterator__ex2g4s_0.u()) {
|
|
1244
1244
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1245
|
-
var tmp0_safe_receiver_0 = AsyncAPIAnnotations_getInstance().
|
|
1245
|
+
var tmp0_safe_receiver_0 = AsyncAPIAnnotations_getInstance().s4u(element_0);
|
|
1246
1246
|
var tmp_1;
|
|
1247
1247
|
if (tmp0_safe_receiver_0 == null) {
|
|
1248
1248
|
tmp_1 = null;
|
|
@@ -1260,9 +1260,9 @@ function components($this) {
|
|
|
1260
1260
|
}
|
|
1261
1261
|
var tmp_2 = toMap(destination_0);
|
|
1262
1262
|
// Inline function 'kotlin.takeUnless' call
|
|
1263
|
-
var this_1 = $this.
|
|
1263
|
+
var this_1 = $this.f4v_1;
|
|
1264
1264
|
var tmp_3;
|
|
1265
|
-
if (!$this.
|
|
1265
|
+
if (!$this.z4u_1) {
|
|
1266
1266
|
tmp_3 = this_1;
|
|
1267
1267
|
} else {
|
|
1268
1268
|
tmp_3 = null;
|
|
@@ -1276,7 +1276,7 @@ function components($this) {
|
|
|
1276
1276
|
var _iterator__ex2g4s_1 = tmp0_0.t();
|
|
1277
1277
|
while (_iterator__ex2g4s_1.u()) {
|
|
1278
1278
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
1279
|
-
if (!AsyncAPIAnnotations_getInstance().
|
|
1279
|
+
if (!AsyncAPIAnnotations_getInstance().x3a(element_1.xq_1, 'AsyncAPIMessage')) {
|
|
1280
1280
|
destination_1.x(element_1);
|
|
1281
1281
|
}
|
|
1282
1282
|
}
|
|
@@ -1290,7 +1290,7 @@ function components($this) {
|
|
|
1290
1290
|
var tmp_4 = defaultMessageKey($this, element_2);
|
|
1291
1291
|
var tmp_5 = to('name', JsonPrimitive_0(defaultMessageKey($this, element_2)));
|
|
1292
1292
|
// Inline function 'kotlin.with' call
|
|
1293
|
-
var tmp$ret$25 = $this.
|
|
1293
|
+
var tmp$ret$25 = $this.e4v_1.o4v(element_2.zq_1);
|
|
1294
1294
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1295
1295
|
var pair_0 = to(tmp_4, jsonObjectOf([tmp_5, to('payload', tmp$ret$25)]));
|
|
1296
1296
|
destination_2.w2(pair_0.gf_1, pair_0.hf_1);
|
|
@@ -1324,9 +1324,9 @@ function components($this) {
|
|
|
1324
1324
|
}
|
|
1325
1325
|
function Companion() {
|
|
1326
1326
|
Companion_instance_2 = this;
|
|
1327
|
-
this.
|
|
1328
|
-
this.
|
|
1329
|
-
this.
|
|
1327
|
+
this.j4v_1 = '$ref';
|
|
1328
|
+
this.k4v_1 = setOf(['payload', 'headers']);
|
|
1329
|
+
this.l4v_1 = jsonObjectOf([to('asyncapi', JsonPrimitive_0('3.0.0')), to('info', jsonObjectOf([to('title', JsonPrimitive_0('Wirespec')), to('version', JsonPrimitive_0('0.0.0'))])), to('defaultContentType', JsonPrimitive_0('application/json'))]);
|
|
1330
1330
|
}
|
|
1331
1331
|
var Companion_instance_2;
|
|
1332
1332
|
function Companion_getInstance() {
|
|
@@ -1343,7 +1343,7 @@ function Map$get$ref(p0) {
|
|
|
1343
1343
|
}
|
|
1344
1344
|
function WirespecToAsyncAPI$writer$lambda(this$0) {
|
|
1345
1345
|
return function (it) {
|
|
1346
|
-
var tmp0_elvis_lhs = this$0.
|
|
1346
|
+
var tmp0_elvis_lhs = this$0.d4v_1.t2(it);
|
|
1347
1347
|
return tmp0_elvis_lhs == null ? it : tmp0_elvis_lhs;
|
|
1348
1348
|
};
|
|
1349
1349
|
}
|
|
@@ -1367,15 +1367,15 @@ function WirespecToAsyncAPI(definitions) {
|
|
|
1367
1367
|
var _iterator__ex2g4s_0 = destination.t();
|
|
1368
1368
|
while (_iterator__ex2g4s_0.u()) {
|
|
1369
1369
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1370
|
-
if (AsyncAPIAnnotations_getInstance().
|
|
1370
|
+
if (AsyncAPIAnnotations_getInstance().x3a(element_0.kp_1, 'AsyncAPIDocument')) {
|
|
1371
1371
|
tmp$ret$3 = element_0;
|
|
1372
1372
|
break $l$block;
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
1375
|
tmp$ret$3 = null;
|
|
1376
1376
|
}
|
|
1377
|
-
tmp.
|
|
1378
|
-
this.
|
|
1377
|
+
tmp.y4u_1 = tmp$ret$3;
|
|
1378
|
+
this.z4u_1 = !(this.y4u_1 == null);
|
|
1379
1379
|
var tmp_0 = this;
|
|
1380
1380
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1381
1381
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
@@ -1393,20 +1393,20 @@ function WirespecToAsyncAPI(definitions) {
|
|
|
1393
1393
|
var _iterator__ex2g4s_2 = destination_0.t();
|
|
1394
1394
|
while (_iterator__ex2g4s_2.u()) {
|
|
1395
1395
|
var element_2 = _iterator__ex2g4s_2.v();
|
|
1396
|
-
if (!equals(element_2, this.
|
|
1396
|
+
if (!equals(element_2, this.y4u_1)) {
|
|
1397
1397
|
destination_1.x(element_2);
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
1400
|
-
tmp_0.
|
|
1400
|
+
tmp_0.a4v_1 = destination_1;
|
|
1401
1401
|
var tmp_1 = this;
|
|
1402
1402
|
// Inline function 'kotlin.collections.filter' call
|
|
1403
|
-
var tmp0 = this.
|
|
1403
|
+
var tmp0 = this.a4v_1;
|
|
1404
1404
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1405
1405
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
1406
1406
|
var _iterator__ex2g4s_3 = tmp0.t();
|
|
1407
1407
|
while (_iterator__ex2g4s_3.u()) {
|
|
1408
1408
|
var element_3 = _iterator__ex2g4s_3.v();
|
|
1409
|
-
if (AsyncAPIAnnotations_getInstance().
|
|
1409
|
+
if (AsyncAPIAnnotations_getInstance().x3a(element_3.m1e(), 'AsyncAPIInline')) {
|
|
1410
1410
|
destination_2.x(element_3);
|
|
1411
1411
|
}
|
|
1412
1412
|
}
|
|
@@ -1420,23 +1420,23 @@ function WirespecToAsyncAPI(definitions) {
|
|
|
1420
1420
|
var tmp$ret$15 = element_4.es().o1();
|
|
1421
1421
|
destination_3.w2(tmp$ret$15, element_4);
|
|
1422
1422
|
}
|
|
1423
|
-
tmp_1.
|
|
1423
|
+
tmp_1.b4v_1 = destination_3;
|
|
1424
1424
|
var tmp_2 = this;
|
|
1425
1425
|
// Inline function 'kotlin.collections.filterNot' call
|
|
1426
|
-
var tmp0_0 = this.
|
|
1426
|
+
var tmp0_0 = this.a4v_1;
|
|
1427
1427
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
1428
1428
|
var destination_4 = ArrayList_init_$Create$_0();
|
|
1429
1429
|
var _iterator__ex2g4s_5 = tmp0_0.t();
|
|
1430
1430
|
while (_iterator__ex2g4s_5.u()) {
|
|
1431
1431
|
var element_5 = _iterator__ex2g4s_5.v();
|
|
1432
|
-
if (!AsyncAPIAnnotations_getInstance().
|
|
1432
|
+
if (!AsyncAPIAnnotations_getInstance().x3a(element_5.m1e(), 'AsyncAPIInline')) {
|
|
1433
1433
|
destination_4.x(element_5);
|
|
1434
1434
|
}
|
|
1435
1435
|
}
|
|
1436
|
-
tmp_2.
|
|
1436
|
+
tmp_2.c4v_1 = destination_4;
|
|
1437
1437
|
var tmp_3 = this;
|
|
1438
1438
|
// Inline function 'kotlin.collections.associate' call
|
|
1439
|
-
var this_0 = this.
|
|
1439
|
+
var this_0 = this.c4v_1;
|
|
1440
1440
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1441
1441
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1442
1442
|
var destination_5 = LinkedHashMap_init_$Create$(capacity_0);
|
|
@@ -1444,15 +1444,15 @@ function WirespecToAsyncAPI(definitions) {
|
|
|
1444
1444
|
while (_iterator__ex2g4s_6.u()) {
|
|
1445
1445
|
var element_6 = _iterator__ex2g4s_6.v();
|
|
1446
1446
|
var tmp_4 = element_6.es().o1();
|
|
1447
|
-
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().
|
|
1447
|
+
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().d3b(element_6.m1e(), 'AsyncAPIName');
|
|
1448
1448
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1449
1449
|
var pair = to(tmp_4, tmp0_elvis_lhs == null ? element_6.es().o1() : tmp0_elvis_lhs);
|
|
1450
1450
|
destination_5.w2(pair.gf_1, pair.hf_1);
|
|
1451
1451
|
}
|
|
1452
|
-
tmp_3.
|
|
1452
|
+
tmp_3.d4v_1 = destination_5;
|
|
1453
1453
|
var tmp_5 = this;
|
|
1454
|
-
var tmp_6 = Map$get$ref(this.
|
|
1455
|
-
tmp_5.
|
|
1454
|
+
var tmp_6 = Map$get$ref(this.b4v_1);
|
|
1455
|
+
tmp_5.e4v_1 = new JsonSchemaWriter(tmp_6, WirespecToAsyncAPI$writer$lambda(this));
|
|
1456
1456
|
var tmp_7 = this;
|
|
1457
1457
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1458
1458
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
@@ -1464,16 +1464,16 @@ function WirespecToAsyncAPI(definitions) {
|
|
|
1464
1464
|
destination_6.x(element_7);
|
|
1465
1465
|
}
|
|
1466
1466
|
}
|
|
1467
|
-
tmp_7.
|
|
1467
|
+
tmp_7.f4v_1 = destination_6;
|
|
1468
1468
|
var tmp_8 = this;
|
|
1469
|
-
var tmp0_safe_receiver = this.
|
|
1469
|
+
var tmp0_safe_receiver = this.y4u_1;
|
|
1470
1470
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kp_1;
|
|
1471
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().
|
|
1472
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().
|
|
1473
|
-
tmp_8.
|
|
1471
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().r4u(tmp1_safe_receiver, 'AsyncAPIDocument');
|
|
1472
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().u4u(tmp2_safe_receiver);
|
|
1473
|
+
tmp_8.g4v_1 = tmp3_elvis_lhs == null ? Companion_getInstance().l4v_1 : tmp3_elvis_lhs;
|
|
1474
1474
|
var tmp_9 = this;
|
|
1475
1475
|
var tmp_10;
|
|
1476
|
-
var tmp_11 = this.
|
|
1476
|
+
var tmp_11 = this.g4v_1.ld('asyncapi');
|
|
1477
1477
|
var tmp0_safe_receiver_0 = tmp_11 instanceof JsonPrimitive_1 ? tmp_11 : null;
|
|
1478
1478
|
var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.m1i();
|
|
1479
1479
|
if ((tmp1_safe_receiver_0 == null ? null : startsWith(tmp1_safe_receiver_0, '2.')) === true) {
|
|
@@ -1481,11 +1481,11 @@ function WirespecToAsyncAPI(definitions) {
|
|
|
1481
1481
|
} else {
|
|
1482
1482
|
tmp_10 = 3;
|
|
1483
1483
|
}
|
|
1484
|
-
tmp_9.
|
|
1484
|
+
tmp_9.h4v_1 = tmp_10;
|
|
1485
1485
|
}
|
|
1486
|
-
protoOf(WirespecToAsyncAPI).
|
|
1486
|
+
protoOf(WirespecToAsyncAPI).i4v = function () {
|
|
1487
1487
|
// Inline function 'kotlin.collections.associate' call
|
|
1488
|
-
var this_0 = this.
|
|
1488
|
+
var this_0 = this.f4v_1;
|
|
1489
1489
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1490
1490
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1491
1491
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -1500,13 +1500,13 @@ protoOf(WirespecToAsyncAPI).k4r = function () {
|
|
|
1500
1500
|
// Inline function 'kotlin.takeIf' call
|
|
1501
1501
|
var this_1 = operations(this);
|
|
1502
1502
|
var tmp_0;
|
|
1503
|
-
if (this.
|
|
1503
|
+
if (this.h4v_1 === 3) {
|
|
1504
1504
|
tmp_0 = this_1;
|
|
1505
1505
|
} else {
|
|
1506
1506
|
tmp_0 = null;
|
|
1507
1507
|
}
|
|
1508
1508
|
var tmp0_safe_receiver = tmp_0;
|
|
1509
|
-
return new JsonObject(plus_0(this.
|
|
1509
|
+
return new JsonObject(plus_0(this.g4v_1, jsonObjectOf([tmp, to('operations', tmp0_safe_receiver == null ? null : toJsonObjectOrNull(tmp0_safe_receiver)), to('components', components(this))])));
|
|
1510
1510
|
};
|
|
1511
1511
|
function AsyncAPIParser() {
|
|
1512
1512
|
}
|
|
@@ -1525,7 +1525,7 @@ protoOf(AsyncAPIParser).u31 = function (moduleContent, strict) {
|
|
|
1525
1525
|
// Inline function 'kotlin.let' call
|
|
1526
1526
|
var it_0 = tmp;
|
|
1527
1527
|
// Inline function 'kotlin.let' call
|
|
1528
|
-
var it_1 = (new AsyncAPIConverter(it_0)).
|
|
1528
|
+
var it_1 = (new AsyncAPIConverter(it_0)).f4w();
|
|
1529
1529
|
return new Root(nonEmptyListOf(new Module(moduleContent.do_1, it_1), []));
|
|
1530
1530
|
};
|
|
1531
1531
|
var AsyncAPIParser_instance;
|
|
@@ -1535,7 +1535,7 @@ function AsyncAPIParser_getInstance() {
|
|
|
1535
1535
|
function AsyncAPIConverter$Companion$primitive$lambda(it) {
|
|
1536
1536
|
// Inline function 'kotlin.takeIf' call
|
|
1537
1537
|
var tmp;
|
|
1538
|
-
if (Companion_getInstance_0().
|
|
1538
|
+
if (Companion_getInstance_0().i4w_1.sc(it)) {
|
|
1539
1539
|
tmp = it;
|
|
1540
1540
|
} else {
|
|
1541
1541
|
tmp = null;
|
|
@@ -1545,7 +1545,7 @@ function AsyncAPIConverter$Companion$primitive$lambda(it) {
|
|
|
1545
1545
|
function AsyncAPIConverter$Companion$primitive$lambda_0(it) {
|
|
1546
1546
|
// Inline function 'kotlin.takeIf' call
|
|
1547
1547
|
var tmp;
|
|
1548
|
-
if (Companion_getInstance_0().
|
|
1548
|
+
if (Companion_getInstance_0().j4w_1.sc(it)) {
|
|
1549
1549
|
tmp = it;
|
|
1550
1550
|
} else {
|
|
1551
1551
|
tmp = null;
|
|
@@ -1588,15 +1588,15 @@ function AsyncAPIConverter$Companion$toIdentifier$lambda(it) {
|
|
|
1588
1588
|
return tmp;
|
|
1589
1589
|
}
|
|
1590
1590
|
function holder($this, messages, operations) {
|
|
1591
|
-
var tmp = listOf(AsyncAPIAnnotations_getInstance().
|
|
1592
|
-
var tmp0_safe_receiver = $this.
|
|
1591
|
+
var tmp = listOf(AsyncAPIAnnotations_getInstance().l4u('AsyncAPIDocument', VOID, AsyncAPIAnnotations_getInstance().p4u(documentFields($this, $this.q4v_1))));
|
|
1592
|
+
var tmp0_safe_receiver = $this.t4v_1;
|
|
1593
1593
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : componentFields($this, tmp0_safe_receiver);
|
|
1594
1594
|
var tmp_0;
|
|
1595
1595
|
if (tmp1_safe_receiver == null) {
|
|
1596
1596
|
tmp_0 = null;
|
|
1597
1597
|
} else {
|
|
1598
1598
|
// Inline function 'kotlin.let' call
|
|
1599
|
-
tmp_0 = AsyncAPIAnnotations_getInstance().
|
|
1599
|
+
tmp_0 = AsyncAPIAnnotations_getInstance().l4u('AsyncAPIComponents', VOID, AsyncAPIAnnotations_getInstance().p4u(tmp1_safe_receiver));
|
|
1600
1600
|
}
|
|
1601
1601
|
var tmp_1 = plus(tmp, listOfNotNull(tmp_0));
|
|
1602
1602
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1605,7 +1605,7 @@ function holder($this, messages, operations) {
|
|
|
1605
1605
|
var _iterator__ex2g4s = messages.t();
|
|
1606
1606
|
while (_iterator__ex2g4s.u()) {
|
|
1607
1607
|
var item = _iterator__ex2g4s.v();
|
|
1608
|
-
var tmp$ret$4 = item.
|
|
1608
|
+
var tmp$ret$4 = item.m4w_1;
|
|
1609
1609
|
destination.x(tmp$ret$4);
|
|
1610
1610
|
}
|
|
1611
1611
|
var tmp_2 = plus(tmp_1, destination);
|
|
@@ -1620,7 +1620,7 @@ function holder($this, messages, operations) {
|
|
|
1620
1620
|
var tmp$ret$7 = toAnnotation($this, operation, key, null);
|
|
1621
1621
|
destination_0.x(tmp$ret$7);
|
|
1622
1622
|
}
|
|
1623
|
-
return new Type(null, plus(tmp_2, destination_0), new DefinitionIdentifier($this.
|
|
1623
|
+
return new Type(null, plus(tmp_2, destination_0), new DefinitionIdentifier($this.x4v_1), new Shape(emptyList()), emptyList());
|
|
1624
1624
|
}
|
|
1625
1625
|
function documentFields($this, $receiver) {
|
|
1626
1626
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -1637,10 +1637,10 @@ function documentFields($this, $receiver) {
|
|
|
1637
1637
|
var tmp;
|
|
1638
1638
|
switch (key) {
|
|
1639
1639
|
case 'channels':
|
|
1640
|
-
tmp = Companion_getInstance_0().
|
|
1640
|
+
tmp = Companion_getInstance_0().p4w(value);
|
|
1641
1641
|
break;
|
|
1642
1642
|
case 'operations':
|
|
1643
|
-
tmp = ($this.
|
|
1643
|
+
tmp = ($this.r4v_1 === 3 && Companion_getInstance_0().p4w(value));
|
|
1644
1644
|
break;
|
|
1645
1645
|
case 'components':
|
|
1646
1646
|
tmp = value instanceof JsonObject;
|
|
@@ -1685,7 +1685,7 @@ function componentFields($this, $receiver) {
|
|
|
1685
1685
|
var it = entry.n1();
|
|
1686
1686
|
// Inline function 'kotlin.collections.contains' call
|
|
1687
1687
|
// Inline function 'kotlin.collections.containsKey' call
|
|
1688
|
-
var this_0 = $this.
|
|
1688
|
+
var this_0 = $this.v4v_1;
|
|
1689
1689
|
if (!(isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).r2(it)) {
|
|
1690
1690
|
result.w2(entry.n1(), entry.o1());
|
|
1691
1691
|
}
|
|
@@ -1715,7 +1715,7 @@ function componentFields($this, $receiver) {
|
|
|
1715
1715
|
}
|
|
1716
1716
|
tmp = tmp_3;
|
|
1717
1717
|
} else {
|
|
1718
|
-
if (key === 'messages' && Companion_getInstance_0().
|
|
1718
|
+
if (key === 'messages' && Companion_getInstance_0().p4w(value)) {
|
|
1719
1719
|
tmp = null;
|
|
1720
1720
|
} else {
|
|
1721
1721
|
tmp = to(key, value);
|
|
@@ -1744,11 +1744,11 @@ function channelV3($this, key, element, operations) {
|
|
|
1744
1744
|
}
|
|
1745
1745
|
var channel_0 = tmp;
|
|
1746
1746
|
var identifier = claimChannel($this, key);
|
|
1747
|
-
var ref = Companion_getInstance_0().
|
|
1747
|
+
var ref = Companion_getInstance_0().q4w(channel_0);
|
|
1748
1748
|
var tmp_0;
|
|
1749
1749
|
if (ref == null) {
|
|
1750
1750
|
// Inline function 'kotlin.collections.map' call
|
|
1751
|
-
var this_0 = orEmpty(Companion_getInstance_0().
|
|
1751
|
+
var this_0 = orEmpty(Companion_getInstance_0().s4w(channel_0, 'messages'));
|
|
1752
1752
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1753
1753
|
var destination = ArrayList_init_$Create$(this_0.c1());
|
|
1754
1754
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1763,19 +1763,19 @@ function channelV3($this, key, element, operations) {
|
|
|
1763
1763
|
destination.x(tmp$ret$4);
|
|
1764
1764
|
}
|
|
1765
1765
|
// Inline function 'kotlin.let' call
|
|
1766
|
-
var tmp_1 = plus(AsyncAPIAnnotations_getInstance().
|
|
1766
|
+
var tmp_1 = plus(AsyncAPIAnnotations_getInstance().m4u(Companion_getInstance_0().t4w(channel_0)), nameAnnotation($this, key, Companion_getInstance_0().r4w(identifier)));
|
|
1767
1767
|
var tmp_2 = AsyncAPIAnnotations_getInstance();
|
|
1768
1768
|
var tmp_3 = AsyncAPIAnnotations_getInstance();
|
|
1769
1769
|
var tmp_4 = Companion_getInstance_0();
|
|
1770
1770
|
var tmp_5 = to('description', AsyncAPIConverter$channelV3$lambda);
|
|
1771
|
-
var tmp_6 = plus_2(tmp_1, tmp_2.
|
|
1771
|
+
var tmp_6 = plus_2(tmp_1, tmp_2.l4u('AsyncAPIChannel', VOID, tmp_3.p4u(new JsonObject(tmp_4.u4w(channel_0, [tmp_5, to('messages', AsyncAPIConverter$channelV3$lambda_0)])))));
|
|
1772
1772
|
// Inline function 'kotlin.collections.map' call
|
|
1773
1773
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1774
1774
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
1775
1775
|
var _iterator__ex2g4s_0 = destination.t();
|
|
1776
1776
|
while (_iterator__ex2g4s_0.u()) {
|
|
1777
1777
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
1778
|
-
var tmp$ret$11 = item_0.
|
|
1778
|
+
var tmp$ret$11 = item_0.m4w_1;
|
|
1779
1779
|
destination_0.x(tmp$ret$11);
|
|
1780
1780
|
}
|
|
1781
1781
|
var tmp_7 = plus(tmp_6, destination_0);
|
|
@@ -1797,12 +1797,12 @@ function channelV3($this, key, element, operations) {
|
|
|
1797
1797
|
var _iterator__ex2g4s_2 = destination.t();
|
|
1798
1798
|
while (_iterator__ex2g4s_2.u()) {
|
|
1799
1799
|
var item_2 = _iterator__ex2g4s_2.v();
|
|
1800
|
-
var tmp$ret$17 = new Converted(item_2.
|
|
1800
|
+
var tmp$ret$17 = new Converted(item_2.n4w_1, item_2.o4w_1);
|
|
1801
1801
|
destination_2.x(tmp$ret$17);
|
|
1802
1802
|
}
|
|
1803
1803
|
tmp_0 = channel($this, identifier, tmp_8, destination_2);
|
|
1804
1804
|
} else {
|
|
1805
|
-
var tmp_9 = plus_2(nameAnnotation($this, key, Companion_getInstance_0().
|
|
1805
|
+
var tmp_9 = plus_2(nameAnnotation($this, key, Companion_getInstance_0().r4w(identifier)), AsyncAPIAnnotations_getInstance().l4u('AsyncAPIChannel', VOID, AsyncAPIAnnotations_getInstance().p4u(channel_0)));
|
|
1806
1806
|
// Inline function 'kotlin.collections.map' call
|
|
1807
1807
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1808
1808
|
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(operations, 10));
|
|
@@ -1818,7 +1818,7 @@ function channelV3($this, key, element, operations) {
|
|
|
1818
1818
|
var tmp_11 = lookup($this, ref);
|
|
1819
1819
|
var tmp1_safe_receiver = tmp_11 instanceof JsonObject ? tmp_11 : null;
|
|
1820
1820
|
// Inline function 'kotlin.collections.map' call
|
|
1821
|
-
var this_1 = orEmpty(tmp1_safe_receiver == null ? null : Companion_getInstance_0().
|
|
1821
|
+
var this_1 = orEmpty(tmp1_safe_receiver == null ? null : Companion_getInstance_0().s4w(tmp1_safe_receiver, 'messages'));
|
|
1822
1822
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1823
1823
|
var destination_4 = ArrayList_init_$Create$(this_1.c1());
|
|
1824
1824
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1831,7 +1831,7 @@ function channelV3($this, key, element, operations) {
|
|
|
1831
1831
|
var message_2 = item_4.o1();
|
|
1832
1832
|
// Inline function 'kotlin.let' call
|
|
1833
1833
|
var it = message($this, messageKey_0, ref + '/messages/' + escapePointer(messageKey_0), message_2);
|
|
1834
|
-
var tmp$ret$24 = new Converted(it.
|
|
1834
|
+
var tmp$ret$24 = new Converted(it.n4w_1, it.o4w_1);
|
|
1835
1835
|
destination_4.x(tmp$ret$24);
|
|
1836
1836
|
}
|
|
1837
1837
|
tmp_0 = channel($this, identifier, tmp_10, destination_4);
|
|
@@ -1859,7 +1859,7 @@ function channelV2($this, address, element) {
|
|
|
1859
1859
|
var _iterator__ex2g4s = tmp0.t();
|
|
1860
1860
|
while (_iterator__ex2g4s.u()) {
|
|
1861
1861
|
var element_0 = _iterator__ex2g4s.v();
|
|
1862
|
-
var tmp0_safe_receiver = Companion_getInstance_0().
|
|
1862
|
+
var tmp0_safe_receiver = Companion_getInstance_0().s4w(channel_0, element_0.u4t_1);
|
|
1863
1863
|
var tmp_0;
|
|
1864
1864
|
if (tmp0_safe_receiver == null) {
|
|
1865
1865
|
tmp_0 = null;
|
|
@@ -1877,7 +1877,7 @@ function channelV2($this, address, element) {
|
|
|
1877
1877
|
}
|
|
1878
1878
|
// Inline function 'kotlin.takeIf' call
|
|
1879
1879
|
var tmp_1;
|
|
1880
|
-
if (Companion_getInstance_0().
|
|
1880
|
+
if (Companion_getInstance_0().q4w(channel_0) == null) {
|
|
1881
1881
|
tmp_1 = destination;
|
|
1882
1882
|
} else {
|
|
1883
1883
|
tmp_1 = null;
|
|
@@ -1893,7 +1893,7 @@ function channelV2($this, address, element) {
|
|
|
1893
1893
|
var item = _iterator__ex2g4s_0.v();
|
|
1894
1894
|
var action = item.af();
|
|
1895
1895
|
var operation = item.bf();
|
|
1896
|
-
var messagePointer = pointer + '/' + action.
|
|
1896
|
+
var messagePointer = pointer + '/' + action.u4t_1 + '/message';
|
|
1897
1897
|
var message_1 = operation.ld('message');
|
|
1898
1898
|
var tmp_2;
|
|
1899
1899
|
if (message_1 == null) {
|
|
@@ -1972,7 +1972,7 @@ function channelV2($this, address, element) {
|
|
|
1972
1972
|
var _iterator__ex2g4s_3 = destination_2.t();
|
|
1973
1973
|
while (_iterator__ex2g4s_3.u()) {
|
|
1974
1974
|
var e = _iterator__ex2g4s_3.v();
|
|
1975
|
-
var key = e.
|
|
1975
|
+
var key = e.v4w_1;
|
|
1976
1976
|
if (set.x(key)) {
|
|
1977
1977
|
list_0.x(e);
|
|
1978
1978
|
}
|
|
@@ -1993,7 +1993,7 @@ function channelV2($this, address, element) {
|
|
|
1993
1993
|
var tmp$ret$34 = item_1.gf_1;
|
|
1994
1994
|
destination_3.x(tmp$ret$34);
|
|
1995
1995
|
}
|
|
1996
|
-
accumulator = plus_2(keys, to(tmp_8.
|
|
1996
|
+
accumulator = plus_2(keys, to(tmp_8.z4w(element_2.y4w_1, toSet(destination_3)), element_2));
|
|
1997
1997
|
}
|
|
1998
1998
|
var keys_0 = accumulator;
|
|
1999
1999
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -2006,7 +2006,7 @@ function channelV2($this, address, element) {
|
|
|
2006
2006
|
var key_0 = element_3.af();
|
|
2007
2007
|
var message_2 = element_3.bf();
|
|
2008
2008
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2009
|
-
var pair = to(message_2.
|
|
2009
|
+
var pair = to(message_2.v4w_1, key_0);
|
|
2010
2010
|
destination_4.w2(pair.gf_1, pair.hf_1);
|
|
2011
2011
|
}
|
|
2012
2012
|
var keyOf = destination_4;
|
|
@@ -2018,33 +2018,33 @@ function channelV2($this, address, element) {
|
|
|
2018
2018
|
var item_2 = _iterator__ex2g4s_7.v();
|
|
2019
2019
|
var key_1 = item_2.af();
|
|
2020
2020
|
var message_3 = item_2.bf();
|
|
2021
|
-
var tmp$ret$41 = message($this, key_1, message_3.
|
|
2021
|
+
var tmp$ret$41 = message($this, key_1, message_3.w4w_1, message_3.x4w_1);
|
|
2022
2022
|
destination_5.x(tmp$ret$41);
|
|
2023
2023
|
}
|
|
2024
2024
|
var messages = destination_5;
|
|
2025
2025
|
var tmp_9 = AsyncAPIAnnotations_getInstance();
|
|
2026
2026
|
// Inline function 'kotlin.takeIf' call
|
|
2027
2027
|
var tmp_10;
|
|
2028
|
-
if (Companion_getInstance_0().
|
|
2028
|
+
if (Companion_getInstance_0().q4w(channel_0) == null) {
|
|
2029
2029
|
tmp_10 = channel_0;
|
|
2030
2030
|
} else {
|
|
2031
2031
|
tmp_10 = null;
|
|
2032
2032
|
}
|
|
2033
2033
|
var tmp1_safe_receiver_0 = tmp_10;
|
|
2034
|
-
var tmp_11 = plus(tmp_9.
|
|
2034
|
+
var tmp_11 = plus(tmp_9.m4u(tmp1_safe_receiver_0 == null ? null : Companion_getInstance_0().t4w(tmp1_safe_receiver_0)), nameAnnotation($this, address, Companion_getInstance_0().r4w(identifier)));
|
|
2035
2035
|
var tmp_12 = AsyncAPIAnnotations_getInstance();
|
|
2036
2036
|
var tmp_13 = AsyncAPIAnnotations_getInstance();
|
|
2037
2037
|
var tmp_14;
|
|
2038
|
-
if (Companion_getInstance_0().
|
|
2038
|
+
if (Companion_getInstance_0().q4w(channel_0) == null) {
|
|
2039
2039
|
var tmp_15 = Companion_getInstance_0();
|
|
2040
|
-
var tmp_16 = tmp_15.
|
|
2040
|
+
var tmp_16 = tmp_15.u4w(channel_0, [to('description', AsyncAPIConverter$channelV2$lambda)]);
|
|
2041
2041
|
// Inline function 'kotlin.collections.map' call
|
|
2042
2042
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2043
2043
|
var destination_6 = ArrayList_init_$Create$(collectionSizeOrDefault(operations, 10));
|
|
2044
2044
|
var _iterator__ex2g4s_8 = operations.t();
|
|
2045
2045
|
while (_iterator__ex2g4s_8.u()) {
|
|
2046
2046
|
var item_3 = _iterator__ex2g4s_8.v();
|
|
2047
|
-
var tmp$ret$46 = item_3.gf_1.
|
|
2047
|
+
var tmp$ret$46 = item_3.gf_1.u4t_1;
|
|
2048
2048
|
destination_6.x(tmp$ret$46);
|
|
2049
2049
|
}
|
|
2050
2050
|
tmp_14 = minus(tmp_16, toSet(destination_6));
|
|
@@ -2054,14 +2054,14 @@ function channelV2($this, address, element) {
|
|
|
2054
2054
|
// Inline function 'kotlin.let' call
|
|
2055
2055
|
var p0 = tmp_14;
|
|
2056
2056
|
var tmp$ret$47 = new JsonObject(p0);
|
|
2057
|
-
var tmp_17 = plus_2(tmp_11, tmp_12.
|
|
2057
|
+
var tmp_17 = plus_2(tmp_11, tmp_12.l4u('AsyncAPIChannel', VOID, tmp_13.p4u(tmp$ret$47)));
|
|
2058
2058
|
// Inline function 'kotlin.collections.map' call
|
|
2059
2059
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2060
2060
|
var destination_7 = ArrayList_init_$Create$(collectionSizeOrDefault(messages, 10));
|
|
2061
2061
|
var _iterator__ex2g4s_9 = messages.t();
|
|
2062
2062
|
while (_iterator__ex2g4s_9.u()) {
|
|
2063
2063
|
var item_4 = _iterator__ex2g4s_9.v();
|
|
2064
|
-
var tmp$ret$51 = item_4.
|
|
2064
|
+
var tmp$ret$51 = item_4.m4w_1;
|
|
2065
2065
|
destination_7.x(tmp$ret$51);
|
|
2066
2066
|
}
|
|
2067
2067
|
var tmp_18 = plus(tmp_17, destination_7);
|
|
@@ -2085,14 +2085,14 @@ function channelV2($this, address, element) {
|
|
|
2085
2085
|
var _iterator__ex2g4s_11 = messages_0.t();
|
|
2086
2086
|
while (_iterator__ex2g4s_11.u()) {
|
|
2087
2087
|
var item_6 = _iterator__ex2g4s_11.v();
|
|
2088
|
-
var tmp$ret$59 = getValue(keyOf, item_6.
|
|
2088
|
+
var tmp$ret$59 = getValue(keyOf, item_6.v4w_1);
|
|
2089
2089
|
destination_9.x(tmp$ret$59);
|
|
2090
2090
|
}
|
|
2091
2091
|
var _destruct__k2r9zo = to(destination_9, oneOf);
|
|
2092
2092
|
var operationKeys = _destruct__k2r9zo.af();
|
|
2093
2093
|
var oneOf_0 = _destruct__k2r9zo.bf();
|
|
2094
2094
|
var tmp_19 = AsyncAPIAnnotations_getInstance();
|
|
2095
|
-
var tmp_20 = action_0.
|
|
2095
|
+
var tmp_20 = action_0.v4t();
|
|
2096
2096
|
var tmp_21 = fields.ld('operationId');
|
|
2097
2097
|
var tmp0_safe_receiver_2 = tmp_21 instanceof JsonPrimitive_1 ? tmp_21 : null;
|
|
2098
2098
|
var tmp_22;
|
|
@@ -2121,7 +2121,7 @@ function channelV2($this, address, element) {
|
|
|
2121
2121
|
var field = element_4.n1();
|
|
2122
2122
|
// Inline function 'kotlin.collections.component2' call
|
|
2123
2123
|
var value = element_4.o1();
|
|
2124
|
-
if (!(field === 'operationId' && Companion_getInstance_0().
|
|
2124
|
+
if (!(field === 'operationId' && Companion_getInstance_0().a4x(value))) {
|
|
2125
2125
|
destination_10.x(element_4);
|
|
2126
2126
|
}
|
|
2127
2127
|
}
|
|
@@ -2138,7 +2138,7 @@ function channelV2($this, address, element) {
|
|
|
2138
2138
|
var tmp_25 = AsyncAPIAnnotations_getInstance();
|
|
2139
2139
|
var tmp_26;
|
|
2140
2140
|
if (!(field_0 === 'message')) {
|
|
2141
|
-
tmp_26 = AsyncAPIAnnotations_getInstance().
|
|
2141
|
+
tmp_26 = AsyncAPIAnnotations_getInstance().q4u(value_0);
|
|
2142
2142
|
} else if (oneOf_0) {
|
|
2143
2143
|
// Inline function 'kotlin.collections.map' call
|
|
2144
2144
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2146,17 +2146,17 @@ function channelV2($this, address, element) {
|
|
|
2146
2146
|
var _iterator__ex2g4s_14 = operationKeys.t();
|
|
2147
2147
|
while (_iterator__ex2g4s_14.u()) {
|
|
2148
2148
|
var item_8 = _iterator__ex2g4s_14.v();
|
|
2149
|
-
var tmp$ret$74 = AsyncAPIAnnotations_getInstance().
|
|
2149
|
+
var tmp$ret$74 = AsyncAPIAnnotations_getInstance().o4u(item_8);
|
|
2150
2150
|
destination_12.x(tmp$ret$74);
|
|
2151
2151
|
}
|
|
2152
2152
|
tmp_26 = new Array_0(destination_12);
|
|
2153
2153
|
} else {
|
|
2154
|
-
tmp_26 = AsyncAPIAnnotations_getInstance().
|
|
2154
|
+
tmp_26 = AsyncAPIAnnotations_getInstance().o4u(single(operationKeys));
|
|
2155
2155
|
}
|
|
2156
|
-
var tmp$ret$69 = tmp_25.
|
|
2156
|
+
var tmp$ret$69 = tmp_25.n4u(field_0, tmp_26);
|
|
2157
2157
|
destination_11.x(tmp$ret$69);
|
|
2158
2158
|
}
|
|
2159
|
-
var tmp$ret$54 = tmp_19.
|
|
2159
|
+
var tmp$ret$54 = tmp_19.k4u(tmp_20, tmp_24, destination_11);
|
|
2160
2160
|
destination_8.x(tmp$ret$54);
|
|
2161
2161
|
}
|
|
2162
2162
|
var tmp_27 = plus(tmp_18, destination_8);
|
|
@@ -2166,31 +2166,31 @@ function channelV2($this, address, element) {
|
|
|
2166
2166
|
var _iterator__ex2g4s_15 = messages.t();
|
|
2167
2167
|
while (_iterator__ex2g4s_15.u()) {
|
|
2168
2168
|
var item_9 = _iterator__ex2g4s_15.v();
|
|
2169
|
-
var tmp$ret$77 = new Converted(item_9.
|
|
2169
|
+
var tmp$ret$77 = new Converted(item_9.n4w_1, item_9.o4w_1);
|
|
2170
2170
|
destination_13.x(tmp$ret$77);
|
|
2171
2171
|
}
|
|
2172
2172
|
return channel($this, identifier, tmp_27, destination_13);
|
|
2173
2173
|
}
|
|
2174
2174
|
function operationMessage($this, pointer, element, action) {
|
|
2175
2175
|
var message = element instanceof JsonObject ? element : null;
|
|
2176
|
-
var ref = message == null ? null : Companion_getInstance_0().
|
|
2176
|
+
var ref = message == null ? null : Companion_getInstance_0().q4w(message);
|
|
2177
2177
|
var tmp = ref == null ? pointer : ref;
|
|
2178
|
-
var tmp3_elvis_lhs = ref == null ? null : Companion_getInstance_0().
|
|
2178
|
+
var tmp3_elvis_lhs = ref == null ? null : Companion_getInstance_0().b4x(ref, 'messages');
|
|
2179
2179
|
var tmp_0;
|
|
2180
2180
|
if (tmp3_elvis_lhs == null) {
|
|
2181
|
-
tmp_0 = message == null ? null : Companion_getInstance_0().
|
|
2181
|
+
tmp_0 = message == null ? null : Companion_getInstance_0().c4x(message, 'name');
|
|
2182
2182
|
} else {
|
|
2183
2183
|
tmp_0 = tmp3_elvis_lhs;
|
|
2184
2184
|
}
|
|
2185
2185
|
var tmp5_elvis_lhs = tmp_0;
|
|
2186
2186
|
var tmp_1;
|
|
2187
2187
|
if (tmp5_elvis_lhs == null) {
|
|
2188
|
-
tmp_1 = message == null ? null : Companion_getInstance_0().
|
|
2188
|
+
tmp_1 = message == null ? null : Companion_getInstance_0().c4x(message, 'messageId');
|
|
2189
2189
|
} else {
|
|
2190
2190
|
tmp_1 = tmp5_elvis_lhs;
|
|
2191
2191
|
}
|
|
2192
2192
|
var tmp7_elvis_lhs = tmp_1;
|
|
2193
|
-
return new OperationMessage(tmp, pointer, element, tmp7_elvis_lhs == null ? action.
|
|
2193
|
+
return new OperationMessage(tmp, pointer, element, tmp7_elvis_lhs == null ? action.t4t_1 + 'Message' : tmp7_elvis_lhs);
|
|
2194
2194
|
}
|
|
2195
2195
|
function channel($this, identifier, annotations, payloads) {
|
|
2196
2196
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2199,7 +2199,7 @@ function channel($this, identifier, annotations, payloads) {
|
|
|
2199
2199
|
var _iterator__ex2g4s = payloads.t();
|
|
2200
2200
|
while (_iterator__ex2g4s.u()) {
|
|
2201
2201
|
var item = _iterator__ex2g4s.v();
|
|
2202
|
-
var tmp$ret$2 = item.
|
|
2202
|
+
var tmp$ret$2 = item.d4x_1;
|
|
2203
2203
|
destination.x(tmp$ret$2);
|
|
2204
2204
|
}
|
|
2205
2205
|
var references = distinct(destination);
|
|
@@ -2245,7 +2245,7 @@ function channel($this, identifier, annotations, payloads) {
|
|
|
2245
2245
|
tmp_2 = null;
|
|
2246
2246
|
} else {
|
|
2247
2247
|
// Inline function 'kotlin.let' call
|
|
2248
|
-
var tmp_3 = listOf(AsyncAPIAnnotations_getInstance().
|
|
2248
|
+
var tmp_3 = listOf(AsyncAPIAnnotations_getInstance().l4u('AsyncAPIInline'));
|
|
2249
2249
|
var tmp_4 = new DefinitionIdentifier(claim($this, identifier + 'Message'));
|
|
2250
2250
|
// Inline function 'kotlin.collections.map' call
|
|
2251
2251
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2267,7 +2267,7 @@ function channel($this, identifier, annotations, payloads) {
|
|
|
2267
2267
|
var _iterator__ex2g4s_2 = payloads.t();
|
|
2268
2268
|
while (_iterator__ex2g4s_2.u()) {
|
|
2269
2269
|
var element_0 = _iterator__ex2g4s_2.v();
|
|
2270
|
-
var list = element_0.
|
|
2270
|
+
var list = element_0.e4x_1;
|
|
2271
2271
|
addAll(destination_1, list);
|
|
2272
2272
|
}
|
|
2273
2273
|
return plus(tmp_5, destination_1);
|
|
@@ -2275,13 +2275,13 @@ function channel($this, identifier, annotations, payloads) {
|
|
|
2275
2275
|
function channelKey($this, $receiver) {
|
|
2276
2276
|
// Inline function 'kotlin.takeIf' call
|
|
2277
2277
|
var tmp;
|
|
2278
|
-
if (!(Companion_getInstance_0().
|
|
2278
|
+
if (!(Companion_getInstance_0().f4x($receiver.ld('action')) == null) && Companion_getInstance_0().q4w($receiver) == null) {
|
|
2279
2279
|
tmp = $receiver;
|
|
2280
2280
|
} else {
|
|
2281
2281
|
tmp = null;
|
|
2282
2282
|
}
|
|
2283
2283
|
var tmp0_safe_receiver = tmp;
|
|
2284
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : Companion_getInstance_0().
|
|
2284
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : Companion_getInstance_0().s4w(tmp0_safe_receiver, 'channel');
|
|
2285
2285
|
var tmp_0;
|
|
2286
2286
|
if (tmp1_safe_receiver == null) {
|
|
2287
2287
|
tmp_0 = null;
|
|
@@ -2296,7 +2296,7 @@ function channelKey($this, $receiver) {
|
|
|
2296
2296
|
tmp_0 = tmp_1;
|
|
2297
2297
|
}
|
|
2298
2298
|
var tmp2_safe_receiver = tmp_0;
|
|
2299
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_getInstance_0().
|
|
2299
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_getInstance_0().q4w(tmp2_safe_receiver);
|
|
2300
2300
|
var tmp_2;
|
|
2301
2301
|
if (tmp3_safe_receiver == null) {
|
|
2302
2302
|
tmp_2 = null;
|
|
@@ -2320,7 +2320,7 @@ function channelKey($this, $receiver) {
|
|
|
2320
2320
|
} else {
|
|
2321
2321
|
// Inline function 'kotlin.takeIf' call
|
|
2322
2322
|
var tmp_5;
|
|
2323
|
-
if ($this.
|
|
2323
|
+
if ($this.e4w_1.i1(tmp5_safe_receiver)) {
|
|
2324
2324
|
tmp_5 = tmp5_safe_receiver;
|
|
2325
2325
|
} else {
|
|
2326
2326
|
tmp_5 = null;
|
|
@@ -2330,9 +2330,9 @@ function channelKey($this, $receiver) {
|
|
|
2330
2330
|
return tmp_4;
|
|
2331
2331
|
}
|
|
2332
2332
|
function toAnnotation($this, $receiver, key, channelPointer) {
|
|
2333
|
-
var action = Companion_getInstance_0().
|
|
2333
|
+
var action = Companion_getInstance_0().f4x($receiver.ld('action'));
|
|
2334
2334
|
var tmp = AsyncAPIAnnotations_getInstance();
|
|
2335
|
-
var tmp_0 = (action == null ? Action_SEND_getInstance() : action).
|
|
2335
|
+
var tmp_0 = (action == null ? Action_SEND_getInstance() : action).v4t();
|
|
2336
2336
|
// Inline function 'kotlin.collections.filterNot' call
|
|
2337
2337
|
var tmp0 = $receiver.m1();
|
|
2338
2338
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
@@ -2381,10 +2381,10 @@ function toAnnotation($this, $receiver, key, channelPointer) {
|
|
|
2381
2381
|
tmp_4 = toMessageKeys($this, value_0, tmp1_safe_receiver);
|
|
2382
2382
|
}
|
|
2383
2383
|
var tmp2_elvis_lhs = tmp_4;
|
|
2384
|
-
var tmp$ret$7 = tmp_1.
|
|
2384
|
+
var tmp$ret$7 = tmp_1.n4u(field_0, tmp2_elvis_lhs == null ? AsyncAPIAnnotations_getInstance().q4u(value_0) : tmp2_elvis_lhs);
|
|
2385
2385
|
destination_0.x(tmp$ret$7);
|
|
2386
2386
|
}
|
|
2387
|
-
return tmp.
|
|
2387
|
+
return tmp.k4u(tmp_0, key, destination_0);
|
|
2388
2388
|
}
|
|
2389
2389
|
function toMessageKeys($this, $receiver, channelPointer) {
|
|
2390
2390
|
var tmp0_safe_receiver = $receiver instanceof JsonArray ? $receiver : null;
|
|
@@ -2415,7 +2415,7 @@ function toMessageKeys($this, $receiver, channelPointer) {
|
|
|
2415
2415
|
tmp_0 = tmp_1;
|
|
2416
2416
|
}
|
|
2417
2417
|
var tmp1_safe_receiver = tmp_0;
|
|
2418
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : Companion_getInstance_0().
|
|
2418
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : Companion_getInstance_0().q4w(tmp1_safe_receiver);
|
|
2419
2419
|
var tmp_2;
|
|
2420
2420
|
if (tmp2_safe_receiver == null) {
|
|
2421
2421
|
tmp_2 = null;
|
|
@@ -2459,7 +2459,7 @@ function toMessageKeys($this, $receiver, channelPointer) {
|
|
|
2459
2459
|
var _iterator__ex2g4s_0 = tmp0_safe_receiver_3.t();
|
|
2460
2460
|
while (_iterator__ex2g4s_0.u()) {
|
|
2461
2461
|
var item = _iterator__ex2g4s_0.v();
|
|
2462
|
-
var tmp$ret$21 = AsyncAPIAnnotations_getInstance().
|
|
2462
|
+
var tmp$ret$21 = AsyncAPIAnnotations_getInstance().o4u(item);
|
|
2463
2463
|
destination_0.x(tmp$ret$21);
|
|
2464
2464
|
}
|
|
2465
2465
|
tmp_5 = new Array_0(destination_0);
|
|
@@ -2469,11 +2469,11 @@ function toMessageKeys($this, $receiver, channelPointer) {
|
|
|
2469
2469
|
return tmp;
|
|
2470
2470
|
}
|
|
2471
2471
|
function componentMessage($this, key) {
|
|
2472
|
-
var tmp0_elvis_lhs = $this.
|
|
2472
|
+
var tmp0_elvis_lhs = $this.c4w_1.t2(key);
|
|
2473
2473
|
var tmp;
|
|
2474
2474
|
if (tmp0_elvis_lhs == null) {
|
|
2475
|
-
var tmp1_safe_receiver = $this.
|
|
2476
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : Companion_getInstance_0().
|
|
2475
|
+
var tmp1_safe_receiver = $this.t4v_1;
|
|
2476
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : Companion_getInstance_0().s4w(tmp1_safe_receiver, 'messages');
|
|
2477
2477
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.ld(key);
|
|
2478
2478
|
var tmp_0;
|
|
2479
2479
|
if (tmp3_safe_receiver == null) {
|
|
@@ -2489,7 +2489,7 @@ function componentMessage($this, key) {
|
|
|
2489
2489
|
} else {
|
|
2490
2490
|
// Inline function 'kotlin.also' call
|
|
2491
2491
|
// Inline function 'kotlin.collections.set' call
|
|
2492
|
-
$this.
|
|
2492
|
+
$this.c4w_1.w2(key, tmp4_safe_receiver);
|
|
2493
2493
|
tmp_1 = tmp4_safe_receiver;
|
|
2494
2494
|
}
|
|
2495
2495
|
tmp = tmp_1;
|
|
@@ -2509,10 +2509,10 @@ function message($this, key, pointer, element) {
|
|
|
2509
2509
|
tmp = tmp0_elvis_lhs;
|
|
2510
2510
|
}
|
|
2511
2511
|
var message_0 = tmp;
|
|
2512
|
-
var ref = Companion_getInstance_0().
|
|
2512
|
+
var ref = Companion_getInstance_0().q4w(message_0);
|
|
2513
2513
|
var tmp_0;
|
|
2514
2514
|
if (ref == null) {
|
|
2515
|
-
var tmp1_elvis_lhs = Companion_getInstance_0().
|
|
2515
|
+
var tmp1_elvis_lhs = Companion_getInstance_0().c4x(message_0, 'name');
|
|
2516
2516
|
var name = tmp1_elvis_lhs == null ? key : tmp1_elvis_lhs;
|
|
2517
2517
|
// Inline function 'kotlin.collections.map' call
|
|
2518
2518
|
var this_0 = message_0.m1();
|
|
@@ -2531,15 +2531,15 @@ function message($this, key, pointer, element) {
|
|
|
2531
2531
|
var tmp_2 = pointer + '/payload';
|
|
2532
2532
|
// Inline function 'kotlin.let' call
|
|
2533
2533
|
|
|
2534
|
-
var it = Companion_getInstance_0().
|
|
2535
|
-
var tmp$ret$6 = $this.
|
|
2536
|
-
tmp_1 = schemaPosition($this, tmp_2, value, tmp$ret$6, Companion_getInstance_0().
|
|
2534
|
+
var it = Companion_getInstance_0().g4x(name);
|
|
2535
|
+
var tmp$ret$6 = $this.s4v_1.i1(it) ? it + 'Payload' : it;
|
|
2536
|
+
tmp_1 = schemaPosition($this, tmp_2, value, tmp$ret$6, Companion_getInstance_0().c4x(message_0, 'schemaFormat'));
|
|
2537
2537
|
break;
|
|
2538
2538
|
case 'headers':
|
|
2539
2539
|
tmp_1 = schemaPosition($this, pointer + '/headers', value, name + '_headers', null);
|
|
2540
2540
|
break;
|
|
2541
2541
|
default:
|
|
2542
|
-
tmp_1 = to(AsyncAPIAnnotations_getInstance().
|
|
2542
|
+
tmp_1 = to(AsyncAPIAnnotations_getInstance().q4u(value), null);
|
|
2543
2543
|
break;
|
|
2544
2544
|
}
|
|
2545
2545
|
var tmp$ret$3 = to(field, tmp_1);
|
|
@@ -2555,10 +2555,10 @@ function message($this, key, pointer, element) {
|
|
|
2555
2555
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
2556
2556
|
var field_0 = item_0.af();
|
|
2557
2557
|
var position = item_0.bf();
|
|
2558
|
-
var tmp$ret$10 = AsyncAPIAnnotations_getInstance().
|
|
2558
|
+
var tmp$ret$10 = AsyncAPIAnnotations_getInstance().n4u(field_0, position.gf_1);
|
|
2559
2559
|
destination_0.x(tmp$ret$10);
|
|
2560
2560
|
}
|
|
2561
|
-
var tmp_4 = tmp_3.
|
|
2561
|
+
var tmp_4 = tmp_3.k4u('AsyncAPIMessage', key, destination_0);
|
|
2562
2562
|
var tmp$ret$11;
|
|
2563
2563
|
$l$block: {
|
|
2564
2564
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -2576,7 +2576,7 @@ function message($this, key, pointer, element) {
|
|
|
2576
2576
|
var tmp2_safe_receiver = tmp$ret$11;
|
|
2577
2577
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.hf_1;
|
|
2578
2578
|
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.hf_1;
|
|
2579
|
-
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
2579
|
+
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.d4x_1;
|
|
2580
2580
|
var tmp_5 = tmp5_elvis_lhs == null ? new Any(false) : tmp5_elvis_lhs;
|
|
2581
2581
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2582
2582
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2587,7 +2587,7 @@ function message($this, key, pointer, element) {
|
|
|
2587
2587
|
var position_0 = element_1.bf();
|
|
2588
2588
|
var tmp0_safe_receiver = position_0.hf_1;
|
|
2589
2589
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2590
|
-
var tmp0_elvis_lhs_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2590
|
+
var tmp0_elvis_lhs_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e4x_1;
|
|
2591
2591
|
var list = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
2592
2592
|
addAll(destination_1, list);
|
|
2593
2593
|
}
|
|
@@ -2595,18 +2595,18 @@ function message($this, key, pointer, element) {
|
|
|
2595
2595
|
} else {
|
|
2596
2596
|
// Inline function 'kotlin.let' call
|
|
2597
2597
|
var payload = referencedPayload($this, ref);
|
|
2598
|
-
tmp_0 = new ConvertedMessage(AsyncAPIAnnotations_getInstance().
|
|
2598
|
+
tmp_0 = new ConvertedMessage(AsyncAPIAnnotations_getInstance().k4u('AsyncAPIMessage', key, AsyncAPIAnnotations_getInstance().p4u(message_0)), payload.d4x_1, payload.e4x_1);
|
|
2599
2599
|
}
|
|
2600
2600
|
return tmp_0;
|
|
2601
2601
|
}
|
|
2602
2602
|
function referencedPayload($this, ref) {
|
|
2603
2603
|
var tmp;
|
|
2604
|
-
if ($this.
|
|
2604
|
+
if ($this.d4w_1.i1(ref)) {
|
|
2605
2605
|
tmp = null;
|
|
2606
2606
|
} else {
|
|
2607
2607
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2608
|
-
$this.
|
|
2609
|
-
var key = Companion_getInstance_0().
|
|
2608
|
+
$this.d4w_1.x(ref);
|
|
2609
|
+
var key = Companion_getInstance_0().b4x(ref, 'messages');
|
|
2610
2610
|
var tmp_0;
|
|
2611
2611
|
if (key == null) {
|
|
2612
2612
|
var tmp_1 = lookup($this, ref);
|
|
@@ -2624,7 +2624,7 @@ function referencedPayload($this, ref) {
|
|
|
2624
2624
|
tmp_3 = null;
|
|
2625
2625
|
} else {
|
|
2626
2626
|
// Inline function 'kotlin.let' call
|
|
2627
|
-
tmp_3 = new Converted(tmp2_safe_receiver.
|
|
2627
|
+
tmp_3 = new Converted(tmp2_safe_receiver.n4w_1, tmp2_safe_receiver.o4w_1);
|
|
2628
2628
|
}
|
|
2629
2629
|
tmp_0 = tmp_3;
|
|
2630
2630
|
} else {
|
|
@@ -2634,14 +2634,14 @@ function referencedPayload($this, ref) {
|
|
|
2634
2634
|
tmp_4 = null;
|
|
2635
2635
|
} else {
|
|
2636
2636
|
// Inline function 'kotlin.let' call
|
|
2637
|
-
tmp_4 = new Converted(tmp3_safe_receiver.
|
|
2637
|
+
tmp_4 = new Converted(tmp3_safe_receiver.n4w_1);
|
|
2638
2638
|
}
|
|
2639
2639
|
tmp_0 = tmp_4;
|
|
2640
2640
|
}
|
|
2641
2641
|
// Inline function 'kotlin.also' call
|
|
2642
2642
|
var this_0 = tmp_0;
|
|
2643
2643
|
// Inline function 'kotlin.collections.minusAssign' call
|
|
2644
|
-
$this.
|
|
2644
|
+
$this.d4w_1.z2(ref);
|
|
2645
2645
|
tmp = this_0;
|
|
2646
2646
|
}
|
|
2647
2647
|
var tmp4_elvis_lhs = tmp;
|
|
@@ -2674,34 +2674,34 @@ function schemaPosition($this, pointer, schema, name, format) {
|
|
|
2674
2674
|
tmp = tmp_0;
|
|
2675
2675
|
}
|
|
2676
2676
|
var multiFormat = tmp;
|
|
2677
|
-
var tmp2_elvis_lhs = multiFormat == null ? null : Companion_getInstance_0().
|
|
2677
|
+
var tmp2_elvis_lhs = multiFormat == null ? null : Companion_getInstance_0().c4x(multiFormat, 'schemaFormat');
|
|
2678
2678
|
var schemaFormat = tmp2_elvis_lhs == null ? format : tmp2_elvis_lhs;
|
|
2679
2679
|
var tmp_2;
|
|
2680
|
-
if ((schemaFormat == null ? null : Companion_getInstance_0().
|
|
2681
|
-
tmp_2 = to(AsyncAPIAnnotations_getInstance().
|
|
2680
|
+
if ((schemaFormat == null ? null : Companion_getInstance_0().h4x(schemaFormat)) === false) {
|
|
2681
|
+
tmp_2 = to(AsyncAPIAnnotations_getInstance().q4u(schema), null);
|
|
2682
2682
|
} else {
|
|
2683
2683
|
if (!(multiFormat == null)) {
|
|
2684
|
-
tmp_2 = to(AsyncAPIAnnotations_getInstance().
|
|
2684
|
+
tmp_2 = to(AsyncAPIAnnotations_getInstance().q4u(schema), convertAt($this, pointer + '/schema', getValue(multiFormat, 'schema'), name));
|
|
2685
2685
|
} else {
|
|
2686
2686
|
// Inline function 'kotlin.let' call
|
|
2687
2687
|
var converted = convertAt($this, pointer, schema, name);
|
|
2688
2688
|
// Inline function 'kotlin.with' call
|
|
2689
|
-
var tmp0_subject = $this.
|
|
2690
|
-
tmp_2 = to(equals(tmp0_subject, schema) ? AsyncAPIAnnotations_getInstance().
|
|
2689
|
+
var tmp0_subject = $this.b4w_1.o4v(converted.d4x_1);
|
|
2690
|
+
tmp_2 = to(equals(tmp0_subject, schema) ? AsyncAPIAnnotations_getInstance().o4u(toWirespec(converted.d4x_1)) : AsyncAPIAnnotations_getInstance().q4u(schema), converted);
|
|
2691
2691
|
}
|
|
2692
2692
|
}
|
|
2693
2693
|
return tmp_2;
|
|
2694
2694
|
}
|
|
2695
2695
|
function component($this, key) {
|
|
2696
2696
|
var tmp = '#/components/schemas/' + escapePointer(key);
|
|
2697
|
-
var tmp_0 = getValue($this.
|
|
2698
|
-
var tmp0_elvis_lhs = $this.
|
|
2697
|
+
var tmp_0 = getValue($this.u4v_1, key);
|
|
2698
|
+
var tmp0_elvis_lhs = $this.v4v_1.t2(key);
|
|
2699
2699
|
var tmp_1 = tmp0_elvis_lhs == null ? key : tmp0_elvis_lhs;
|
|
2700
2700
|
// Inline function 'kotlin.takeIf' call
|
|
2701
2701
|
var tmp_2;
|
|
2702
2702
|
// Inline function 'kotlin.collections.contains' call
|
|
2703
2703
|
// Inline function 'kotlin.collections.containsKey' call
|
|
2704
|
-
var this_0 = $this.
|
|
2704
|
+
var this_0 = $this.v4v_1;
|
|
2705
2705
|
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).r2(key)) {
|
|
2706
2706
|
tmp_2 = key;
|
|
2707
2707
|
} else {
|
|
@@ -2712,21 +2712,21 @@ function component($this, key) {
|
|
|
2712
2712
|
}
|
|
2713
2713
|
function convertAt($this, pointer, schema, name, component) {
|
|
2714
2714
|
component = component === VOID ? null : component;
|
|
2715
|
-
var reference = $this.
|
|
2715
|
+
var reference = $this.y4v_1.t2(pointer);
|
|
2716
2716
|
var tmp;
|
|
2717
2717
|
if (reference == null) {
|
|
2718
2718
|
var tmp_0;
|
|
2719
|
-
if ($this.
|
|
2719
|
+
if ($this.z4v_1.i1(pointer)) {
|
|
2720
2720
|
tmp_0 = new Converted(new Any(false));
|
|
2721
2721
|
} else {
|
|
2722
2722
|
// Inline function 'kotlin.let' call
|
|
2723
|
-
$this.
|
|
2723
|
+
$this.z4v_1.x(pointer);
|
|
2724
2724
|
// Inline function 'kotlin.also' call
|
|
2725
2725
|
var this_0 = convertSchema($this, pointer, schema, name, component);
|
|
2726
|
-
$this.
|
|
2727
|
-
var tmp0 = $this.
|
|
2726
|
+
$this.z4v_1.z2(pointer);
|
|
2727
|
+
var tmp0 = $this.y4v_1;
|
|
2728
2728
|
// Inline function 'kotlin.collections.set' call
|
|
2729
|
-
var value = this_0.
|
|
2729
|
+
var value = this_0.d4x_1;
|
|
2730
2730
|
tmp0.w2(pointer, value);
|
|
2731
2731
|
tmp_0 = this_0;
|
|
2732
2732
|
}
|
|
@@ -2739,7 +2739,7 @@ function convertAt($this, pointer, schema, name, component) {
|
|
|
2739
2739
|
function convertSchema($this, pointer, schema, name, component) {
|
|
2740
2740
|
var tmp;
|
|
2741
2741
|
if (schema instanceof JsonObject) {
|
|
2742
|
-
var tmp1_safe_receiver = Companion_getInstance_0().
|
|
2742
|
+
var tmp1_safe_receiver = Companion_getInstance_0().q4w(schema);
|
|
2743
2743
|
var tmp_0;
|
|
2744
2744
|
if (tmp1_safe_receiver == null) {
|
|
2745
2745
|
tmp_0 = null;
|
|
@@ -2748,14 +2748,14 @@ function convertSchema($this, pointer, schema, name, component) {
|
|
|
2748
2748
|
tmp_0 = reference($this, tmp1_safe_receiver);
|
|
2749
2749
|
}
|
|
2750
2750
|
var tmp2_elvis_lhs = tmp_0;
|
|
2751
|
-
tmp = tmp2_elvis_lhs == null ? convertObject($this, schema, pointer, name, Companion_getInstance_0().
|
|
2751
|
+
tmp = tmp2_elvis_lhs == null ? convertObject($this, schema, pointer, name, Companion_getInstance_0().i4x(schema), component) : tmp2_elvis_lhs;
|
|
2752
2752
|
} else {
|
|
2753
2753
|
tmp = new Converted(new Any(false));
|
|
2754
2754
|
}
|
|
2755
2755
|
return tmp;
|
|
2756
2756
|
}
|
|
2757
2757
|
function reference($this, ref) {
|
|
2758
|
-
var tmp0_safe_receiver = Companion_getInstance_0().
|
|
2758
|
+
var tmp0_safe_receiver = Companion_getInstance_0().b4x(ref, 'schemas');
|
|
2759
2759
|
var tmp;
|
|
2760
2760
|
if (tmp0_safe_receiver == null) {
|
|
2761
2761
|
tmp = null;
|
|
@@ -2764,13 +2764,13 @@ function reference($this, ref) {
|
|
|
2764
2764
|
var tmp_0;
|
|
2765
2765
|
// Inline function 'kotlin.collections.contains' call
|
|
2766
2766
|
// Inline function 'kotlin.collections.containsKey' call
|
|
2767
|
-
var this_0 = $this.
|
|
2767
|
+
var this_0 = $this.v4v_1;
|
|
2768
2768
|
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).r2(tmp0_safe_receiver)) {
|
|
2769
|
-
tmp_0 = new Converted(new Custom(getValue($this.
|
|
2769
|
+
tmp_0 = new Converted(new Custom(getValue($this.v4v_1, tmp0_safe_receiver), false));
|
|
2770
2770
|
} else {
|
|
2771
2771
|
// Inline function 'kotlin.collections.contains' call
|
|
2772
2772
|
// Inline function 'kotlin.collections.containsKey' call
|
|
2773
|
-
var this_1 = $this.
|
|
2773
|
+
var this_1 = $this.u4v_1;
|
|
2774
2774
|
if ((isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).r2(tmp0_safe_receiver)) {
|
|
2775
2775
|
tmp_0 = component($this, tmp0_safe_receiver);
|
|
2776
2776
|
} else {
|
|
@@ -2783,8 +2783,8 @@ function reference($this, ref) {
|
|
|
2783
2783
|
return tmp1_elvis_lhs == null ? new Converted(new Any(false)) : tmp1_elvis_lhs;
|
|
2784
2784
|
}
|
|
2785
2785
|
function convertObject($this, $receiver, pointer, name, isNullable, component) {
|
|
2786
|
-
var wrapped = Companion_getInstance_0().
|
|
2787
|
-
var branches = Companion_getInstance_0().
|
|
2786
|
+
var wrapped = Companion_getInstance_0().j4x($receiver);
|
|
2787
|
+
var branches = Companion_getInstance_0().k4x($receiver);
|
|
2788
2788
|
var tmp;
|
|
2789
2789
|
if (!(wrapped == null)) {
|
|
2790
2790
|
// Inline function 'kotlin.let' call
|
|
@@ -2792,7 +2792,7 @@ function convertObject($this, $receiver, pointer, name, isNullable, component) {
|
|
|
2792
2792
|
var schema = wrapped.bf();
|
|
2793
2793
|
// Inline function 'kotlin.let' call
|
|
2794
2794
|
var it = convertAt($this, pointer + '/' + path, schema, name);
|
|
2795
|
-
tmp = it.
|
|
2795
|
+
tmp = it.q4x(Companion_getInstance_0().p4x(it.d4x_1, isNullable));
|
|
2796
2796
|
} else {
|
|
2797
2797
|
if (!(branches == null)) {
|
|
2798
2798
|
tmp = ownsDefinition($this, $receiver, !(component == null)) ? union($this, $receiver, pointer, identifier($this, name, component), branches, isNullable, component) : new Converted(new Any(isNullable));
|
|
@@ -2802,10 +2802,10 @@ function convertObject($this, $receiver, pointer, name, isNullable, component) {
|
|
|
2802
2802
|
if ((isInterface($receiver, KtMap) ? $receiver : THROW_CCE()).r2('allOf')) {
|
|
2803
2803
|
tmp = type($this, identifier($this, name, component), allOfParts($this, $receiver, pointer), isNullable, component);
|
|
2804
2804
|
} else {
|
|
2805
|
-
if (Companion_getInstance_0().
|
|
2805
|
+
if (Companion_getInstance_0().o4x($receiver)) {
|
|
2806
2806
|
tmp = enum_0($this, $receiver, identifier($this, name, component), isNullable, component);
|
|
2807
2807
|
} else {
|
|
2808
|
-
var type_0 = Companion_getInstance_0().
|
|
2808
|
+
var type_0 = Companion_getInstance_0().l4x($receiver);
|
|
2809
2809
|
var tmp_0;
|
|
2810
2810
|
if (type_0 === 'object' || type_0 == null) {
|
|
2811
2811
|
var tmp_1;
|
|
@@ -2815,7 +2815,7 @@ function convertObject($this, $receiver, pointer, name, isNullable, component) {
|
|
|
2815
2815
|
if ((isInterface($receiver, KtMap) ? $receiver : THROW_CCE()).r2(key)) {
|
|
2816
2816
|
tmp_1 = type($this, identifier($this, name, component), listOf(new Located(pointer, $receiver)), isNullable, component);
|
|
2817
2817
|
} else {
|
|
2818
|
-
var tmp0_safe_receiver = Companion_getInstance_0().
|
|
2818
|
+
var tmp0_safe_receiver = Companion_getInstance_0().n4x($receiver);
|
|
2819
2819
|
var tmp_2;
|
|
2820
2820
|
if (tmp0_safe_receiver == null) {
|
|
2821
2821
|
tmp_2 = null;
|
|
@@ -2829,7 +2829,7 @@ function convertObject($this, $receiver, pointer, name, isNullable, component) {
|
|
|
2829
2829
|
tmp_3 = null;
|
|
2830
2830
|
} else {
|
|
2831
2831
|
// Inline function 'kotlin.let' call
|
|
2832
|
-
tmp_3 = new Converted(new Dict_0(tmp1_safe_receiver.
|
|
2832
|
+
tmp_3 = new Converted(new Dict_0(tmp1_safe_receiver.d4x_1, isNullable), tmp1_safe_receiver.e4x_1);
|
|
2833
2833
|
}
|
|
2834
2834
|
var tmp2_elvis_lhs = tmp_3;
|
|
2835
2835
|
tmp_1 = tmp2_elvis_lhs == null ? type_0 === 'object' && !(component == null) ? type($this, name, listOf(new Located(pointer, $receiver)), isNullable, component) : type_0 === 'object' ? new Converted(new Dict_0(new Any(false), isNullable)) : new Converted(new Any(isNullable)) : tmp2_elvis_lhs;
|
|
@@ -2847,14 +2847,14 @@ function convertObject($this, $receiver, pointer, name, isNullable, component) {
|
|
|
2847
2847
|
}
|
|
2848
2848
|
// Inline function 'kotlin.let' call
|
|
2849
2849
|
var items = tmp_5;
|
|
2850
|
-
var tmp1_elvis_lhs = items == null ? null : items.
|
|
2850
|
+
var tmp1_elvis_lhs = items == null ? null : items.d4x_1;
|
|
2851
2851
|
var tmp_6 = new Iterable(tmp1_elvis_lhs == null ? new Any(false) : tmp1_elvis_lhs, isNullable);
|
|
2852
2852
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2853
|
-
var tmp0_elvis_lhs = items == null ? null : items.
|
|
2853
|
+
var tmp0_elvis_lhs = items == null ? null : items.e4x_1;
|
|
2854
2854
|
var tmp$ret$16 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2855
2855
|
tmp_0 = new Converted(tmp_6, tmp$ret$16);
|
|
2856
|
-
} else if (Companion_getInstance_0().
|
|
2857
|
-
tmp_0 = component == null ? new Converted(new Primitive(Companion_getInstance_0().
|
|
2856
|
+
} else if (Companion_getInstance_0().h4w_1.i1(type_0)) {
|
|
2857
|
+
tmp_0 = component == null ? new Converted(new Primitive(Companion_getInstance_0().m4x($receiver, type_0, false), isNullable)) : new Converted(new Custom(name, isNullable), listOf(define_0($this, new Refined(null, AsyncAPIAnnotations_getInstance().m4u(Companion_getInstance_0().t4w($receiver)), new DefinitionIdentifier(name), new Primitive(Companion_getInstance_0().m4x($receiver, type_0, true), false)), $receiver, component)));
|
|
2858
2858
|
} else {
|
|
2859
2859
|
tmp_0 = new Converted(new Any(isNullable));
|
|
2860
2860
|
}
|
|
@@ -2866,11 +2866,11 @@ function convertObject($this, $receiver, pointer, name, isNullable, component) {
|
|
|
2866
2866
|
return tmp;
|
|
2867
2867
|
}
|
|
2868
2868
|
function ownsDefinition($this, $receiver, component) {
|
|
2869
|
-
var branches = Companion_getInstance_0().
|
|
2869
|
+
var branches = Companion_getInstance_0().k4x($receiver);
|
|
2870
2870
|
var tmp;
|
|
2871
2871
|
if (branches == null) {
|
|
2872
2872
|
var tmp_0;
|
|
2873
|
-
if (!(Companion_getInstance_0().
|
|
2873
|
+
if (!(Companion_getInstance_0().j4x($receiver) == null)) {
|
|
2874
2874
|
tmp_0 = false;
|
|
2875
2875
|
} else {
|
|
2876
2876
|
// Inline function 'kotlin.collections.contains' call
|
|
@@ -2878,10 +2878,10 @@ function ownsDefinition($this, $receiver, component) {
|
|
|
2878
2878
|
if ((isInterface($receiver, KtMap) ? $receiver : THROW_CCE()).r2('allOf')) {
|
|
2879
2879
|
tmp_0 = true;
|
|
2880
2880
|
} else {
|
|
2881
|
-
if (Companion_getInstance_0().
|
|
2881
|
+
if (Companion_getInstance_0().o4x($receiver)) {
|
|
2882
2882
|
tmp_0 = true;
|
|
2883
2883
|
} else {
|
|
2884
|
-
var tmp0_subject = Companion_getInstance_0().
|
|
2884
|
+
var tmp0_subject = Companion_getInstance_0().l4x($receiver);
|
|
2885
2885
|
var tmp_1;
|
|
2886
2886
|
if (tmp0_subject === 'object') {
|
|
2887
2887
|
var tmp_2;
|
|
@@ -2891,7 +2891,7 @@ function ownsDefinition($this, $receiver, component) {
|
|
|
2891
2891
|
if ((isInterface($receiver, KtMap) ? $receiver : THROW_CCE()).r2(key)) {
|
|
2892
2892
|
tmp_2 = true;
|
|
2893
2893
|
} else {
|
|
2894
|
-
tmp_2 = (component && Companion_getInstance_0().
|
|
2894
|
+
tmp_2 = (component && Companion_getInstance_0().n4x($receiver) == null);
|
|
2895
2895
|
}
|
|
2896
2896
|
tmp_1 = tmp_2;
|
|
2897
2897
|
} else if (tmp0_subject == null) {
|
|
@@ -2899,7 +2899,7 @@ function ownsDefinition($this, $receiver, component) {
|
|
|
2899
2899
|
// Inline function 'kotlin.collections.containsKey' call
|
|
2900
2900
|
var key_0 = 'properties';
|
|
2901
2901
|
tmp_1 = (isInterface($receiver, KtMap) ? $receiver : THROW_CCE()).r2(key_0);
|
|
2902
|
-
} else if (Companion_getInstance_0().
|
|
2902
|
+
} else if (Companion_getInstance_0().h4w_1.i1(tmp0_subject)) {
|
|
2903
2903
|
tmp_1 = component;
|
|
2904
2904
|
} else {
|
|
2905
2905
|
tmp_1 = false;
|
|
@@ -2911,7 +2911,7 @@ function ownsDefinition($this, $receiver, component) {
|
|
|
2911
2911
|
tmp = tmp_0;
|
|
2912
2912
|
} else {
|
|
2913
2913
|
var tmp_3;
|
|
2914
|
-
if (Companion_getInstance_0().
|
|
2914
|
+
if (Companion_getInstance_0().j4x($receiver) == null && branches.c1() > 1) {
|
|
2915
2915
|
var tmp$ret$6;
|
|
2916
2916
|
$l$block_0: {
|
|
2917
2917
|
// Inline function 'kotlin.collections.all' call
|
|
@@ -2951,26 +2951,26 @@ function isNamed($this, $receiver, component) {
|
|
|
2951
2951
|
tmp = null;
|
|
2952
2952
|
} else {
|
|
2953
2953
|
// Inline function 'kotlin.let' call
|
|
2954
|
-
var ref = Companion_getInstance_0().
|
|
2954
|
+
var ref = Companion_getInstance_0().q4w(tmp0_safe_receiver);
|
|
2955
2955
|
var tmp_0;
|
|
2956
2956
|
if (ref == null) {
|
|
2957
2957
|
var tmp_1;
|
|
2958
2958
|
if (ownsDefinition($this, tmp0_safe_receiver, component)) {
|
|
2959
2959
|
tmp_1 = true;
|
|
2960
2960
|
} else {
|
|
2961
|
-
var tmp0_safe_receiver_0 = Companion_getInstance_0().
|
|
2961
|
+
var tmp0_safe_receiver_0 = Companion_getInstance_0().j4x(tmp0_safe_receiver);
|
|
2962
2962
|
var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.hf_1;
|
|
2963
2963
|
tmp_1 = (tmp1_safe_receiver == null ? null : isNamed($this, tmp1_safe_receiver, component)) === true;
|
|
2964
2964
|
}
|
|
2965
2965
|
tmp_0 = tmp_1;
|
|
2966
2966
|
} else {
|
|
2967
|
-
var tmp2_safe_receiver = Companion_getInstance_0().
|
|
2967
|
+
var tmp2_safe_receiver = Companion_getInstance_0().b4x(ref, 'schemas');
|
|
2968
2968
|
var tmp_2;
|
|
2969
2969
|
if (tmp2_safe_receiver == null) {
|
|
2970
2970
|
tmp_2 = null;
|
|
2971
2971
|
} else {
|
|
2972
2972
|
// Inline function 'kotlin.let' call
|
|
2973
|
-
var tmp0_safe_receiver_1 = $this.
|
|
2973
|
+
var tmp0_safe_receiver_1 = $this.u4v_1.t2(tmp2_safe_receiver);
|
|
2974
2974
|
tmp_2 = tmp0_safe_receiver_1 == null ? null : isNamed($this, tmp0_safe_receiver_1, true);
|
|
2975
2975
|
}
|
|
2976
2976
|
tmp_0 = tmp_2 === true;
|
|
@@ -2989,15 +2989,15 @@ function union($this, $receiver, pointer, identifier, branches, isNullable, comp
|
|
|
2989
2989
|
var item = _iterator__ex2g4s.v();
|
|
2990
2990
|
var index = item.af();
|
|
2991
2991
|
var branch = item.bf();
|
|
2992
|
-
var tmp = pointer + '/' + Companion_getInstance_0().
|
|
2992
|
+
var tmp = pointer + '/' + Companion_getInstance_0().r4x($receiver) + '/' + index;
|
|
2993
2993
|
var tmp0_safe_receiver = branch instanceof JsonObject ? branch : null;
|
|
2994
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : Companion_getInstance_0().
|
|
2994
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : Companion_getInstance_0().c4x(tmp0_safe_receiver, 'title');
|
|
2995
2995
|
var tmp$ret$2 = convertAt($this, tmp, branch, tmp1_elvis_lhs == null ? identifier + index : tmp1_elvis_lhs);
|
|
2996
2996
|
destination.x(tmp$ret$2);
|
|
2997
2997
|
}
|
|
2998
2998
|
// Inline function 'kotlin.let' call
|
|
2999
2999
|
var tmp_0 = new Custom(identifier, isNullable);
|
|
3000
|
-
var tmp_1 = AsyncAPIAnnotations_getInstance().
|
|
3000
|
+
var tmp_1 = AsyncAPIAnnotations_getInstance().m4u(Companion_getInstance_0().t4w($receiver));
|
|
3001
3001
|
var tmp_2 = new DefinitionIdentifier(identifier);
|
|
3002
3002
|
// Inline function 'kotlin.collections.map' call
|
|
3003
3003
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3005,7 +3005,7 @@ function union($this, $receiver, pointer, identifier, branches, isNullable, comp
|
|
|
3005
3005
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3006
3006
|
while (_iterator__ex2g4s_0.u()) {
|
|
3007
3007
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
3008
|
-
var tmp$ret$7 = item_0.
|
|
3008
|
+
var tmp$ret$7 = item_0.d4x_1.x1a(false);
|
|
3009
3009
|
destination_0.x(tmp$ret$7);
|
|
3010
3010
|
}
|
|
3011
3011
|
var tmp_3 = listOf(define_0($this, new Union(null, tmp_1, tmp_2, toSet(destination_0)), $receiver, component));
|
|
@@ -3015,13 +3015,13 @@ function union($this, $receiver, pointer, identifier, branches, isNullable, comp
|
|
|
3015
3015
|
var _iterator__ex2g4s_1 = destination.t();
|
|
3016
3016
|
while (_iterator__ex2g4s_1.u()) {
|
|
3017
3017
|
var element = _iterator__ex2g4s_1.v();
|
|
3018
|
-
var list = element.
|
|
3018
|
+
var list = element.e4x_1;
|
|
3019
3019
|
addAll(destination_1, list);
|
|
3020
3020
|
}
|
|
3021
3021
|
return new Converted(tmp_0, plus(tmp_3, destination_1));
|
|
3022
3022
|
}
|
|
3023
3023
|
function enum_0($this, $receiver, identifier, isNullable, component) {
|
|
3024
|
-
return new Converted(new Custom(identifier, isNullable), listOf(define_0($this, new Enum_0(null, AsyncAPIAnnotations_getInstance().
|
|
3024
|
+
return new Converted(new Custom(identifier, isNullable), listOf(define_0($this, new Enum_0(null, AsyncAPIAnnotations_getInstance().m4u(Companion_getInstance_0().t4w($receiver)), new DefinitionIdentifier(identifier), toSet(Companion_getInstance_0().s4x($receiver))), $receiver, component)));
|
|
3025
3025
|
}
|
|
3026
3026
|
function type($this, identifier, parts, isNullable, component) {
|
|
3027
3027
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -3030,7 +3030,7 @@ function type($this, identifier, parts, isNullable, component) {
|
|
|
3030
3030
|
var _iterator__ex2g4s = parts.t();
|
|
3031
3031
|
while (_iterator__ex2g4s.u()) {
|
|
3032
3032
|
var element = _iterator__ex2g4s.v();
|
|
3033
|
-
var list = Companion_getInstance_0().
|
|
3033
|
+
var list = Companion_getInstance_0().v4x(element.u4x_1);
|
|
3034
3034
|
addAll(destination, list);
|
|
3035
3035
|
}
|
|
3036
3036
|
var required = toSet(destination);
|
|
@@ -3041,7 +3041,7 @@ function type($this, identifier, parts, isNullable, component) {
|
|
|
3041
3041
|
while (_iterator__ex2g4s_0.u()) {
|
|
3042
3042
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3043
3043
|
// Inline function 'kotlin.collections.map' call
|
|
3044
|
-
var this_0 = orEmpty(Companion_getInstance_0().
|
|
3044
|
+
var this_0 = orEmpty(Companion_getInstance_0().s4w(element_0.u4x_1, 'properties'));
|
|
3045
3045
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3046
3046
|
var destination_1 = ArrayList_init_$Create$(this_0.c1());
|
|
3047
3047
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -3052,7 +3052,7 @@ function type($this, identifier, parts, isNullable, component) {
|
|
|
3052
3052
|
var key = item.n1();
|
|
3053
3053
|
// Inline function 'kotlin.collections.component2' call
|
|
3054
3054
|
var property = item.o1();
|
|
3055
|
-
var tmp$ret$9 = new Triple(element_0.
|
|
3055
|
+
var tmp$ret$9 = new Triple(element_0.t4x_1, key, property);
|
|
3056
3056
|
destination_1.x(tmp$ret$9);
|
|
3057
3057
|
}
|
|
3058
3058
|
var list_0 = destination_1;
|
|
@@ -3078,7 +3078,7 @@ function type($this, identifier, parts, isNullable, component) {
|
|
|
3078
3078
|
var element_1 = _iterator__ex2g4s_3.v();
|
|
3079
3079
|
var names = accumulator;
|
|
3080
3080
|
var key_2 = element_1.bf();
|
|
3081
|
-
accumulator = plus_2(names, Companion_getInstance_0().
|
|
3081
|
+
accumulator = plus_2(names, Companion_getInstance_0().z4w(Companion_getInstance_0().w4x(key_2), toSet(names)));
|
|
3082
3082
|
}
|
|
3083
3083
|
var names_0 = accumulator;
|
|
3084
3084
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3098,7 +3098,7 @@ function type($this, identifier, parts, isNullable, component) {
|
|
|
3098
3098
|
}
|
|
3099
3099
|
var fields = destination_2;
|
|
3100
3100
|
var tmp = new Custom(identifier, isNullable);
|
|
3101
|
-
var tmp_0 = AsyncAPIAnnotations_getInstance().
|
|
3101
|
+
var tmp_0 = AsyncAPIAnnotations_getInstance().m4u(Companion_getInstance_0().t4w(first(parts).u4x_1));
|
|
3102
3102
|
var tmp_1 = new DefinitionIdentifier(identifier);
|
|
3103
3103
|
// Inline function 'kotlin.collections.map' call
|
|
3104
3104
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3109,7 +3109,7 @@ function type($this, identifier, parts, isNullable, component) {
|
|
|
3109
3109
|
var tmp$ret$21 = item_1.gf_1;
|
|
3110
3110
|
destination_3.x(tmp$ret$21);
|
|
3111
3111
|
}
|
|
3112
|
-
var tmp_2 = listOf(define_0($this, new Type(null, tmp_0, tmp_1, new Shape(destination_3), emptyList()), first(parts).
|
|
3112
|
+
var tmp_2 = listOf(define_0($this, new Type(null, tmp_0, tmp_1, new Shape(destination_3), emptyList()), first(parts).u4x_1, component));
|
|
3113
3113
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3114
3114
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3115
3115
|
var destination_4 = ArrayList_init_$Create$_0();
|
|
@@ -3133,10 +3133,10 @@ function field($this, pointer, key, identifier, property, required, typeName) {
|
|
|
3133
3133
|
var tmp1_elvis_lhs = tmp;
|
|
3134
3134
|
var schema = tmp1_elvis_lhs == null ? property : tmp1_elvis_lhs;
|
|
3135
3135
|
var converted = convertAt($this, pointer, schema, typeName + '_' + key);
|
|
3136
|
-
var reference = Companion_getInstance_0().
|
|
3136
|
+
var reference = Companion_getInstance_0().p4x(converted.d4x_1, !required);
|
|
3137
3137
|
var tmp_0 = AsyncAPIAnnotations_getInstance();
|
|
3138
3138
|
var tmp_1 = Companion_getInstance_0();
|
|
3139
|
-
var tmp_2 = plus(tmp_0.
|
|
3139
|
+
var tmp_2 = plus(tmp_0.m4u(tmp_1.t4w(property instanceof JsonObject ? property : null)), nameAnnotation($this, key, identifier));
|
|
3140
3140
|
var tmp_3 = new FieldIdentifier(identifier);
|
|
3141
3141
|
var tmp2_safe_receiver = property instanceof JsonObject ? property : null;
|
|
3142
3142
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.ld('default');
|
|
@@ -3147,7 +3147,7 @@ function field($this, pointer, key, identifier, property, required, typeName) {
|
|
|
3147
3147
|
} else {
|
|
3148
3148
|
// Inline function 'kotlin.takeIf' call
|
|
3149
3149
|
var tmp_5;
|
|
3150
|
-
if (isValidFor($this, tmp4_safe_receiver, reference, converted.
|
|
3150
|
+
if (isValidFor($this, tmp4_safe_receiver, reference, converted.e4x_1)) {
|
|
3151
3151
|
tmp_5 = tmp4_safe_receiver;
|
|
3152
3152
|
} else {
|
|
3153
3153
|
tmp_5 = null;
|
|
@@ -3156,7 +3156,7 @@ function field($this, pointer, key, identifier, property, required, typeName) {
|
|
|
3156
3156
|
}
|
|
3157
3157
|
var field = new Field(tmp_2, tmp_3, reference, tmp_4);
|
|
3158
3158
|
// Inline function 'kotlin.with' call
|
|
3159
|
-
var tmp$ret$4 = $this.
|
|
3159
|
+
var tmp$ret$4 = $this.b4w_1.x4x(field);
|
|
3160
3160
|
var tmp5_safe_receiver = schemaPatch(tmp$ret$4, property);
|
|
3161
3161
|
var tmp_6;
|
|
3162
3162
|
if (tmp5_safe_receiver == null) {
|
|
@@ -3166,7 +3166,7 @@ function field($this, pointer, key, identifier, property, required, typeName) {
|
|
|
3166
3166
|
tmp_6 = field.sp(plus_2(field.op_1, tmp5_safe_receiver));
|
|
3167
3167
|
}
|
|
3168
3168
|
var tmp6_elvis_lhs = tmp_6;
|
|
3169
|
-
return to(tmp6_elvis_lhs == null ? field : tmp6_elvis_lhs, converted.
|
|
3169
|
+
return to(tmp6_elvis_lhs == null ? field : tmp6_elvis_lhs, converted.e4x_1);
|
|
3170
3170
|
}
|
|
3171
3171
|
function isValidFor($this, $receiver, reference, definitions) {
|
|
3172
3172
|
var tmp;
|
|
@@ -3205,13 +3205,13 @@ function isValidFor($this, $receiver, reference, definitions) {
|
|
|
3205
3205
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ss_1;
|
|
3206
3206
|
var tmp_1;
|
|
3207
3207
|
if (tmp1_elvis_lhs == null) {
|
|
3208
|
-
var tmp2_safe_receiver = $this.
|
|
3208
|
+
var tmp2_safe_receiver = $this.w4v_1.t2(tmp1_safe_receiver.b1a_1);
|
|
3209
3209
|
var tmp_2;
|
|
3210
3210
|
if (tmp2_safe_receiver == null) {
|
|
3211
3211
|
tmp_2 = null;
|
|
3212
3212
|
} else {
|
|
3213
3213
|
// Inline function 'kotlin.let' call
|
|
3214
|
-
var tmp_3 = $this.
|
|
3214
|
+
var tmp_3 = $this.u4v_1.t2(tmp2_safe_receiver);
|
|
3215
3215
|
var tmp0_safe_receiver_0 = tmp_3 instanceof JsonObject ? tmp_3 : null;
|
|
3216
3216
|
var tmp_4;
|
|
3217
3217
|
if (tmp0_safe_receiver_0 == null) {
|
|
@@ -3219,7 +3219,7 @@ function isValidFor($this, $receiver, reference, definitions) {
|
|
|
3219
3219
|
} else {
|
|
3220
3220
|
// Inline function 'kotlin.takeIf' call
|
|
3221
3221
|
var tmp_5;
|
|
3222
|
-
if (Companion_getInstance_0().
|
|
3222
|
+
if (Companion_getInstance_0().y4x(tmp0_safe_receiver_0)) {
|
|
3223
3223
|
tmp_5 = tmp0_safe_receiver_0;
|
|
3224
3224
|
} else {
|
|
3225
3225
|
tmp_5 = null;
|
|
@@ -3227,7 +3227,7 @@ function isValidFor($this, $receiver, reference, definitions) {
|
|
|
3227
3227
|
tmp_4 = tmp_5;
|
|
3228
3228
|
}
|
|
3229
3229
|
var tmp1_safe_receiver_0 = tmp_4;
|
|
3230
|
-
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : Companion_getInstance_0().
|
|
3230
|
+
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : Companion_getInstance_0().s4x(tmp1_safe_receiver_0);
|
|
3231
3231
|
tmp_2 = tmp2_safe_receiver_0 == null ? null : toSet(tmp2_safe_receiver_0);
|
|
3232
3232
|
}
|
|
3233
3233
|
tmp_1 = tmp_2;
|
|
@@ -3264,11 +3264,11 @@ function define_0($this, model, original, component) {
|
|
|
3264
3264
|
tmp_2 = null;
|
|
3265
3265
|
} else {
|
|
3266
3266
|
// Inline function 'kotlin.let' call
|
|
3267
|
-
tmp_2 = AsyncAPIAnnotations_getInstance().
|
|
3267
|
+
tmp_2 = AsyncAPIAnnotations_getInstance().l4u('AsyncAPIName', tmp1_safe_receiver);
|
|
3268
3268
|
}
|
|
3269
3269
|
var tmp_3 = tmp_2;
|
|
3270
3270
|
// Inline function 'kotlin.takeIf' call
|
|
3271
|
-
var this_0 = AsyncAPIAnnotations_getInstance().
|
|
3271
|
+
var this_0 = AsyncAPIAnnotations_getInstance().l4u('AsyncAPIInline');
|
|
3272
3272
|
var tmp_4;
|
|
3273
3273
|
if (component == null) {
|
|
3274
3274
|
tmp_4 = this_0;
|
|
@@ -3278,7 +3278,7 @@ function define_0($this, model, original, component) {
|
|
|
3278
3278
|
var tmp$ret$4 = tmp_4;
|
|
3279
3279
|
var named = withAnnotations($this, model, plus(tmp, listOfNotNull_0([tmp_3, tmp$ret$4])));
|
|
3280
3280
|
// Inline function 'kotlin.with' call
|
|
3281
|
-
var tmp$ret$6 = $this.
|
|
3281
|
+
var tmp$ret$6 = $this.b4w_1.z4x(named);
|
|
3282
3282
|
var tmp2_safe_receiver = schemaPatch(tmp$ret$6, original);
|
|
3283
3283
|
var tmp_5;
|
|
3284
3284
|
if (tmp2_safe_receiver == null) {
|
|
@@ -3291,7 +3291,7 @@ function define_0($this, model, original, component) {
|
|
|
3291
3291
|
// Inline function 'kotlin.also' call
|
|
3292
3292
|
var this_1 = tmp3_elvis_lhs == null ? named : tmp3_elvis_lhs;
|
|
3293
3293
|
if (component == null) {
|
|
3294
|
-
var tmp0 = $this.
|
|
3294
|
+
var tmp0 = $this.a4w_1;
|
|
3295
3295
|
// Inline function 'kotlin.collections.set' call
|
|
3296
3296
|
var key = this_1.es().o1();
|
|
3297
3297
|
tmp0.w2(key, this_1);
|
|
@@ -3341,7 +3341,7 @@ function allOfParts($this, $receiver, pointer) {
|
|
|
3341
3341
|
tmp_1 = null;
|
|
3342
3342
|
} else {
|
|
3343
3343
|
// Inline function 'kotlin.let' call
|
|
3344
|
-
tmp_1 = allOfParts($this, tmp0_safe_receiver.
|
|
3344
|
+
tmp_1 = allOfParts($this, tmp0_safe_receiver.u4x_1, tmp0_safe_receiver.t4x_1);
|
|
3345
3345
|
}
|
|
3346
3346
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3347
3347
|
var tmp0_elvis_lhs_0 = tmp_1;
|
|
@@ -3358,7 +3358,7 @@ function resolveSchema($this, pointer, schema, seen) {
|
|
|
3358
3358
|
tmp = null;
|
|
3359
3359
|
} else {
|
|
3360
3360
|
// Inline function 'kotlin.let' call
|
|
3361
|
-
var ref = Companion_getInstance_0().
|
|
3361
|
+
var ref = Companion_getInstance_0().q4w(tmp0_safe_receiver);
|
|
3362
3362
|
var tmp_0;
|
|
3363
3363
|
if (ref == null) {
|
|
3364
3364
|
tmp_0 = new Located(pointer, tmp0_safe_receiver);
|
|
@@ -3381,7 +3381,7 @@ function resolveSchema($this, pointer, schema, seen) {
|
|
|
3381
3381
|
}
|
|
3382
3382
|
function nameAnnotation($this, key, default_0) {
|
|
3383
3383
|
// Inline function 'kotlin.takeIf' call
|
|
3384
|
-
var this_0 = AsyncAPIAnnotations_getInstance().
|
|
3384
|
+
var this_0 = AsyncAPIAnnotations_getInstance().l4u('AsyncAPIName', key);
|
|
3385
3385
|
var tmp;
|
|
3386
3386
|
if (!(key === default_0)) {
|
|
3387
3387
|
tmp = this_0;
|
|
@@ -3393,9 +3393,9 @@ function nameAnnotation($this, key, default_0) {
|
|
|
3393
3393
|
}
|
|
3394
3394
|
function claimChannel($this, key) {
|
|
3395
3395
|
// Inline function 'kotlin.let' call
|
|
3396
|
-
var it = Companion_getInstance_0().
|
|
3396
|
+
var it = Companion_getInstance_0().g4x(key);
|
|
3397
3397
|
// Inline function 'kotlin.let' call
|
|
3398
|
-
var p0 = $this.
|
|
3398
|
+
var p0 = $this.s4v_1.i1(it) ? it + 'Channel' : it;
|
|
3399
3399
|
return claim($this, p0);
|
|
3400
3400
|
}
|
|
3401
3401
|
function identifier($this, name, component) {
|
|
@@ -3407,13 +3407,13 @@ function identifier($this, name, component) {
|
|
|
3407
3407
|
tmp = name;
|
|
3408
3408
|
}
|
|
3409
3409
|
var tmp1_elvis_lhs = tmp;
|
|
3410
|
-
return tmp1_elvis_lhs == null ? claim($this, Companion_getInstance_0().
|
|
3410
|
+
return tmp1_elvis_lhs == null ? claim($this, Companion_getInstance_0().g4x(name)) : tmp1_elvis_lhs;
|
|
3411
3411
|
}
|
|
3412
3412
|
function claim($this, name) {
|
|
3413
3413
|
// Inline function 'kotlin.also' call
|
|
3414
|
-
var this_0 = Companion_getInstance_0().
|
|
3414
|
+
var this_0 = Companion_getInstance_0().z4w(name, $this.s4v_1);
|
|
3415
3415
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3416
|
-
$this.
|
|
3416
|
+
$this.s4v_1.x(this_0);
|
|
3417
3417
|
return this_0;
|
|
3418
3418
|
}
|
|
3419
3419
|
function lookup($this, ref) {
|
|
@@ -3449,7 +3449,7 @@ function lookup($this, ref) {
|
|
|
3449
3449
|
tmp_1 = null;
|
|
3450
3450
|
} else {
|
|
3451
3451
|
// Inline function 'kotlin.collections.fold' call
|
|
3452
|
-
var accumulator = $this.
|
|
3452
|
+
var accumulator = $this.q4v_1;
|
|
3453
3453
|
var _iterator__ex2g4s_0 = tmp4_safe_receiver.t();
|
|
3454
3454
|
while (_iterator__ex2g4s_0.u()) {
|
|
3455
3455
|
var element = _iterator__ex2g4s_0.v();
|
|
@@ -3480,14 +3480,14 @@ function lookup($this, ref) {
|
|
|
3480
3480
|
}
|
|
3481
3481
|
function Companion_0() {
|
|
3482
3482
|
Companion_instance_3 = this;
|
|
3483
|
-
this.
|
|
3484
|
-
this.
|
|
3485
|
-
this.
|
|
3486
|
-
this.
|
|
3487
|
-
this.
|
|
3488
|
-
this.
|
|
3483
|
+
this.g4w_1 = setOf([2, 3]);
|
|
3484
|
+
this.h4w_1 = setOf(['string', 'integer', 'number', 'boolean']);
|
|
3485
|
+
this.i4w_1 = Regex_init_$Create$('-?[0-9]+');
|
|
3486
|
+
this.j4w_1 = Regex_init_$Create$('-?[0-9]+(\\.[0-9]+)?');
|
|
3487
|
+
this.k4w_1 = Regex_init_$Create$('[a-zA-Z0-9_\\-]+');
|
|
3488
|
+
this.l4w_1 = 'AsyncAPI';
|
|
3489
3489
|
}
|
|
3490
|
-
protoOf(Companion_0).
|
|
3490
|
+
protoOf(Companion_0).f4x = function (_this__u8e3s4) {
|
|
3491
3491
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof JsonPrimitive_1 ? _this__u8e3s4 : null;
|
|
3492
3492
|
var tmp;
|
|
3493
3493
|
if (tmp0_safe_receiver == null) {
|
|
@@ -3516,7 +3516,7 @@ protoOf(Companion_0).h4t = function (_this__u8e3s4) {
|
|
|
3516
3516
|
var _iterator__ex2g4s = tmp0.t();
|
|
3517
3517
|
while (_iterator__ex2g4s.u()) {
|
|
3518
3518
|
var element = _iterator__ex2g4s.v();
|
|
3519
|
-
if (element.
|
|
3519
|
+
if (element.t4t_1 === tmp1_safe_receiver.m1i()) {
|
|
3520
3520
|
tmp$ret$5 = element;
|
|
3521
3521
|
break $l$block;
|
|
3522
3522
|
}
|
|
@@ -3527,7 +3527,7 @@ protoOf(Companion_0).h4t = function (_this__u8e3s4) {
|
|
|
3527
3527
|
}
|
|
3528
3528
|
return tmp_1;
|
|
3529
3529
|
};
|
|
3530
|
-
protoOf(Companion_0).
|
|
3530
|
+
protoOf(Companion_0).h4x = function (_this__u8e3s4) {
|
|
3531
3531
|
var tmp0 = listOf_0(['application/vnd.aai.asyncapi', 'application/schema+json', 'application/schema+yaml']);
|
|
3532
3532
|
var tmp$ret$0;
|
|
3533
3533
|
$l$block_0: {
|
|
@@ -3554,10 +3554,10 @@ protoOf(Companion_0).j4t = function (_this__u8e3s4) {
|
|
|
3554
3554
|
}
|
|
3555
3555
|
return tmp$ret$0;
|
|
3556
3556
|
};
|
|
3557
|
-
protoOf(Companion_0).
|
|
3557
|
+
protoOf(Companion_0).p4x = function (_this__u8e3s4, isNullable) {
|
|
3558
3558
|
return _this__u8e3s4.x1a(isNullable || _this__u8e3s4.ot());
|
|
3559
3559
|
};
|
|
3560
|
-
protoOf(Companion_0).
|
|
3560
|
+
protoOf(Companion_0).a4x = function (_this__u8e3s4) {
|
|
3561
3561
|
var tmp;
|
|
3562
3562
|
if (_this__u8e3s4 instanceof JsonPrimitive_1) {
|
|
3563
3563
|
tmp = _this__u8e3s4.w2o();
|
|
@@ -3566,7 +3566,7 @@ protoOf(Companion_0).c4t = function (_this__u8e3s4) {
|
|
|
3566
3566
|
}
|
|
3567
3567
|
return tmp;
|
|
3568
3568
|
};
|
|
3569
|
-
protoOf(Companion_0).
|
|
3569
|
+
protoOf(Companion_0).p4w = function (_this__u8e3s4) {
|
|
3570
3570
|
var tmp;
|
|
3571
3571
|
if (_this__u8e3s4 instanceof JsonObject) {
|
|
3572
3572
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
@@ -3576,7 +3576,7 @@ protoOf(Companion_0).r4s = function (_this__u8e3s4) {
|
|
|
3576
3576
|
}
|
|
3577
3577
|
return tmp;
|
|
3578
3578
|
};
|
|
3579
|
-
protoOf(Companion_0).
|
|
3579
|
+
protoOf(Companion_0).u4w = function (_this__u8e3s4, fields) {
|
|
3580
3580
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3581
3581
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3582
3582
|
var destination = LinkedHashMap_init_$Create$_0();
|
|
@@ -3611,7 +3611,7 @@ protoOf(Companion_0).w4s = function (_this__u8e3s4, fields) {
|
|
|
3611
3611
|
}
|
|
3612
3612
|
return destination;
|
|
3613
3613
|
};
|
|
3614
|
-
protoOf(Companion_0).
|
|
3614
|
+
protoOf(Companion_0).c4x = function (_this__u8e3s4, key) {
|
|
3615
3615
|
var tmp = _this__u8e3s4.ld(key);
|
|
3616
3616
|
var tmp0_safe_receiver = tmp instanceof JsonPrimitive_1 ? tmp : null;
|
|
3617
3617
|
var tmp_0;
|
|
@@ -3630,17 +3630,17 @@ protoOf(Companion_0).e4t = function (_this__u8e3s4, key) {
|
|
|
3630
3630
|
var tmp1_safe_receiver = tmp_0;
|
|
3631
3631
|
return tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m1i();
|
|
3632
3632
|
};
|
|
3633
|
-
protoOf(Companion_0).
|
|
3633
|
+
protoOf(Companion_0).s4w = function (_this__u8e3s4, key) {
|
|
3634
3634
|
var tmp = _this__u8e3s4.ld(key);
|
|
3635
3635
|
return tmp instanceof JsonObject ? tmp : null;
|
|
3636
3636
|
};
|
|
3637
|
-
protoOf(Companion_0).
|
|
3638
|
-
return this.
|
|
3637
|
+
protoOf(Companion_0).q4w = function (_this__u8e3s4) {
|
|
3638
|
+
return this.c4x(_this__u8e3s4, '$ref');
|
|
3639
3639
|
};
|
|
3640
|
-
protoOf(Companion_0).
|
|
3641
|
-
return _this__u8e3s4 == null ? null : this.
|
|
3640
|
+
protoOf(Companion_0).t4w = function (_this__u8e3s4) {
|
|
3641
|
+
return _this__u8e3s4 == null ? null : this.c4x(_this__u8e3s4, 'description');
|
|
3642
3642
|
};
|
|
3643
|
-
protoOf(Companion_0).
|
|
3643
|
+
protoOf(Companion_0).v4x = function (_this__u8e3s4) {
|
|
3644
3644
|
var tmp = _this__u8e3s4.ld('required');
|
|
3645
3645
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3646
3646
|
var tmp0_elvis_lhs = tmp instanceof JsonArray ? tmp : null;
|
|
@@ -3663,11 +3663,11 @@ protoOf(Companion_0).x4t = function (_this__u8e3s4) {
|
|
|
3663
3663
|
}
|
|
3664
3664
|
return destination;
|
|
3665
3665
|
};
|
|
3666
|
-
protoOf(Companion_0).
|
|
3666
|
+
protoOf(Companion_0).n4x = function (_this__u8e3s4) {
|
|
3667
3667
|
var tmp = _this__u8e3s4.ld('additionalProperties');
|
|
3668
3668
|
return tmp instanceof JsonObject ? tmp : null;
|
|
3669
3669
|
};
|
|
3670
|
-
protoOf(Companion_0).
|
|
3670
|
+
protoOf(Companion_0).a4y = function (_this__u8e3s4) {
|
|
3671
3671
|
var type = _this__u8e3s4.ld('type');
|
|
3672
3672
|
var tmp;
|
|
3673
3673
|
if (type instanceof JsonArray) {
|
|
@@ -3697,8 +3697,8 @@ protoOf(Companion_0).c4u = function (_this__u8e3s4) {
|
|
|
3697
3697
|
}
|
|
3698
3698
|
return tmp;
|
|
3699
3699
|
};
|
|
3700
|
-
protoOf(Companion_0).
|
|
3701
|
-
var tmp0 = this.
|
|
3700
|
+
protoOf(Companion_0).l4x = function (_this__u8e3s4) {
|
|
3701
|
+
var tmp0 = this.a4y(_this__u8e3s4);
|
|
3702
3702
|
var tmp$ret$0;
|
|
3703
3703
|
$l$block: {
|
|
3704
3704
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -3714,11 +3714,11 @@ protoOf(Companion_0).n4t = function (_this__u8e3s4) {
|
|
|
3714
3714
|
}
|
|
3715
3715
|
return tmp$ret$0;
|
|
3716
3716
|
};
|
|
3717
|
-
protoOf(Companion_0).
|
|
3717
|
+
protoOf(Companion_0).b4y = function (_this__u8e3s4) {
|
|
3718
3718
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof JsonObject ? _this__u8e3s4 : null;
|
|
3719
|
-
return equals(tmp0_safe_receiver == null ? null : this.
|
|
3719
|
+
return equals(tmp0_safe_receiver == null ? null : this.a4y(tmp0_safe_receiver), listOf('null'));
|
|
3720
3720
|
};
|
|
3721
|
-
protoOf(Companion_0).
|
|
3721
|
+
protoOf(Companion_0).r4x = function (_this__u8e3s4) {
|
|
3722
3722
|
var tmp;
|
|
3723
3723
|
// Inline function 'kotlin.collections.contains' call
|
|
3724
3724
|
// Inline function 'kotlin.collections.containsKey' call
|
|
@@ -3729,12 +3729,12 @@ protoOf(Companion_0).t4t = function (_this__u8e3s4) {
|
|
|
3729
3729
|
}
|
|
3730
3730
|
return tmp;
|
|
3731
3731
|
};
|
|
3732
|
-
protoOf(Companion_0).
|
|
3733
|
-
var tmp = _this__u8e3s4.ld(this.
|
|
3732
|
+
protoOf(Companion_0).c4y = function (_this__u8e3s4) {
|
|
3733
|
+
var tmp = _this__u8e3s4.ld(this.r4x(_this__u8e3s4));
|
|
3734
3734
|
return tmp instanceof JsonArray ? tmp : null;
|
|
3735
3735
|
};
|
|
3736
|
-
protoOf(Companion_0).
|
|
3737
|
-
var tmp0_safe_receiver = this.
|
|
3736
|
+
protoOf(Companion_0).k4x = function (_this__u8e3s4) {
|
|
3737
|
+
var tmp0_safe_receiver = this.c4y(_this__u8e3s4);
|
|
3738
3738
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : withIndex(tmp0_safe_receiver);
|
|
3739
3739
|
var tmp;
|
|
3740
3740
|
if (tmp1_safe_receiver == null) {
|
|
@@ -3746,7 +3746,7 @@ protoOf(Companion_0).m4t = function (_this__u8e3s4) {
|
|
|
3746
3746
|
var _iterator__ex2g4s = tmp1_safe_receiver.t();
|
|
3747
3747
|
while (_iterator__ex2g4s.u()) {
|
|
3748
3748
|
var element = _iterator__ex2g4s.v();
|
|
3749
|
-
if (!Companion_getInstance_0().
|
|
3749
|
+
if (!Companion_getInstance_0().b4y(element.ze_1)) {
|
|
3750
3750
|
destination.x(element);
|
|
3751
3751
|
}
|
|
3752
3752
|
}
|
|
@@ -3754,8 +3754,8 @@ protoOf(Companion_0).m4t = function (_this__u8e3s4) {
|
|
|
3754
3754
|
}
|
|
3755
3755
|
return tmp;
|
|
3756
3756
|
};
|
|
3757
|
-
protoOf(Companion_0).
|
|
3758
|
-
var tmp0_safe_receiver = this.
|
|
3757
|
+
protoOf(Companion_0).j4x = function (_this__u8e3s4) {
|
|
3758
|
+
var tmp0_safe_receiver = this.k4x(_this__u8e3s4);
|
|
3759
3759
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : singleOrNull(tmp0_safe_receiver);
|
|
3760
3760
|
var tmp;
|
|
3761
3761
|
if (tmp1_safe_receiver == null) {
|
|
@@ -3764,7 +3764,7 @@ protoOf(Companion_0).l4t = function (_this__u8e3s4) {
|
|
|
3764
3764
|
// Inline function 'kotlin.let' call
|
|
3765
3765
|
var index = tmp1_safe_receiver.af();
|
|
3766
3766
|
var branch = tmp1_safe_receiver.bf();
|
|
3767
|
-
tmp = to(Companion_getInstance_0().
|
|
3767
|
+
tmp = to(Companion_getInstance_0().r4x(_this__u8e3s4) + '/' + index, branch);
|
|
3768
3768
|
}
|
|
3769
3769
|
var tmp2_elvis_lhs = tmp;
|
|
3770
3770
|
var tmp_0;
|
|
@@ -3802,11 +3802,11 @@ protoOf(Companion_0).l4t = function (_this__u8e3s4) {
|
|
|
3802
3802
|
}
|
|
3803
3803
|
return tmp_0;
|
|
3804
3804
|
};
|
|
3805
|
-
protoOf(Companion_0).
|
|
3805
|
+
protoOf(Companion_0).i4x = function (_this__u8e3s4) {
|
|
3806
3806
|
var tmp;
|
|
3807
3807
|
var tmp_0;
|
|
3808
3808
|
var tmp_1;
|
|
3809
|
-
if (this.
|
|
3809
|
+
if (this.a4y(_this__u8e3s4).i1('null')) {
|
|
3810
3810
|
tmp_1 = true;
|
|
3811
3811
|
} else {
|
|
3812
3812
|
var tmp_2 = _this__u8e3s4.ld('nullable');
|
|
@@ -3852,7 +3852,7 @@ protoOf(Companion_0).k4t = function (_this__u8e3s4) {
|
|
|
3852
3852
|
if (tmp_0) {
|
|
3853
3853
|
tmp = true;
|
|
3854
3854
|
} else {
|
|
3855
|
-
var tmp2_safe_receiver = this.
|
|
3855
|
+
var tmp2_safe_receiver = this.c4y(_this__u8e3s4);
|
|
3856
3856
|
var tmp_6;
|
|
3857
3857
|
if (tmp2_safe_receiver == null) {
|
|
3858
3858
|
tmp_6 = null;
|
|
@@ -3873,7 +3873,7 @@ protoOf(Companion_0).k4t = function (_this__u8e3s4) {
|
|
|
3873
3873
|
var _iterator__ex2g4s_0 = tmp2_safe_receiver.t();
|
|
3874
3874
|
while (_iterator__ex2g4s_0.u()) {
|
|
3875
3875
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3876
|
-
if (Companion_getInstance_0().
|
|
3876
|
+
if (Companion_getInstance_0().b4y(element_0)) {
|
|
3877
3877
|
tmp$ret$2 = true;
|
|
3878
3878
|
break $l$block_2;
|
|
3879
3879
|
}
|
|
@@ -3886,7 +3886,7 @@ protoOf(Companion_0).k4t = function (_this__u8e3s4) {
|
|
|
3886
3886
|
}
|
|
3887
3887
|
return tmp;
|
|
3888
3888
|
};
|
|
3889
|
-
protoOf(Companion_0).
|
|
3889
|
+
protoOf(Companion_0).o4x = function (_this__u8e3s4) {
|
|
3890
3890
|
var tmp = _this__u8e3s4.ld('enum');
|
|
3891
3891
|
var tmp0_safe_receiver = tmp instanceof JsonArray ? tmp : null;
|
|
3892
3892
|
var tmp_0;
|
|
@@ -3920,9 +3920,9 @@ protoOf(Companion_0).q4t = function (_this__u8e3s4) {
|
|
|
3920
3920
|
}
|
|
3921
3921
|
return tmp_0 === true;
|
|
3922
3922
|
};
|
|
3923
|
-
protoOf(Companion_0).
|
|
3923
|
+
protoOf(Companion_0).y4x = function (_this__u8e3s4) {
|
|
3924
3924
|
var tmp;
|
|
3925
|
-
if (this.
|
|
3925
|
+
if (this.o4x(_this__u8e3s4) && this.j4x(_this__u8e3s4) == null && this.c4y(_this__u8e3s4) == null) {
|
|
3926
3926
|
// Inline function 'kotlin.collections.contains' call
|
|
3927
3927
|
// Inline function 'kotlin.collections.containsKey' call
|
|
3928
3928
|
tmp = !(isInterface(_this__u8e3s4, KtMap) ? _this__u8e3s4 : THROW_CCE()).r2('allOf');
|
|
@@ -3931,7 +3931,7 @@ protoOf(Companion_0).a4u = function (_this__u8e3s4) {
|
|
|
3931
3931
|
}
|
|
3932
3932
|
return tmp;
|
|
3933
3933
|
};
|
|
3934
|
-
protoOf(Companion_0).
|
|
3934
|
+
protoOf(Companion_0).s4x = function (_this__u8e3s4) {
|
|
3935
3935
|
var tmp = _this__u8e3s4.ld('enum');
|
|
3936
3936
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3937
3937
|
var tmp0_elvis_lhs = tmp instanceof JsonArray ? tmp : null;
|
|
@@ -3963,20 +3963,20 @@ protoOf(Companion_0).u4t = function (_this__u8e3s4) {
|
|
|
3963
3963
|
while (_iterator__ex2g4s_1.u()) {
|
|
3964
3964
|
var element_0 = _iterator__ex2g4s_1.v();
|
|
3965
3965
|
var entries = accumulator;
|
|
3966
|
-
accumulator = plus_2(entries, Companion_getInstance_0().
|
|
3966
|
+
accumulator = plus_2(entries, Companion_getInstance_0().z4w(Companion_getInstance_0().d4y(element_0), toSet(entries)));
|
|
3967
3967
|
}
|
|
3968
3968
|
return accumulator;
|
|
3969
3969
|
};
|
|
3970
|
-
protoOf(Companion_0).
|
|
3970
|
+
protoOf(Companion_0).m4x = function (_this__u8e3s4, type, constrained) {
|
|
3971
3971
|
var tmp;
|
|
3972
3972
|
switch (type) {
|
|
3973
3973
|
case 'string':
|
|
3974
|
-
var format = this.
|
|
3974
|
+
var format = this.c4x(_this__u8e3s4, 'format');
|
|
3975
3975
|
var tmp_0;
|
|
3976
3976
|
if (format === 'binary') {
|
|
3977
3977
|
tmp_0 = Bytes_instance;
|
|
3978
3978
|
} else {
|
|
3979
|
-
var tmp1_safe_receiver = this.
|
|
3979
|
+
var tmp1_safe_receiver = this.c4x(_this__u8e3s4, 'pattern');
|
|
3980
3980
|
var tmp_1;
|
|
3981
3981
|
if (tmp1_safe_receiver == null) {
|
|
3982
3982
|
tmp_1 = null;
|
|
@@ -3996,7 +3996,7 @@ protoOf(Companion_0).o4t = function (_this__u8e3s4, type, constrained) {
|
|
|
3996
3996
|
tmp_3 = null;
|
|
3997
3997
|
} else {
|
|
3998
3998
|
// Inline function 'kotlin.let' call
|
|
3999
|
-
tmp_3 = _RegExp___init__impl__p22noo('/' + Companion_getInstance_0().
|
|
3999
|
+
tmp_3 = _RegExp___init__impl__p22noo('/' + Companion_getInstance_0().e4y(tmp2_safe_receiver) + '/g');
|
|
4000
4000
|
}
|
|
4001
4001
|
var tmp3_elvis_lhs = tmp_3;
|
|
4002
4002
|
var tmp_4;
|
|
@@ -4020,8 +4020,8 @@ protoOf(Companion_0).o4t = function (_this__u8e3s4, type, constrained) {
|
|
|
4020
4020
|
tmp = tmp_0;
|
|
4021
4021
|
break;
|
|
4022
4022
|
case 'integer':
|
|
4023
|
-
var tmp_7 = this.
|
|
4024
|
-
var tmp6_safe_receiver = this.
|
|
4023
|
+
var tmp_7 = this.c4x(_this__u8e3s4, 'format') === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance();
|
|
4024
|
+
var tmp6_safe_receiver = this.f4y(_this__u8e3s4, AsyncAPIConverter$Companion$primitive$lambda);
|
|
4025
4025
|
var tmp_8;
|
|
4026
4026
|
if (tmp6_safe_receiver == null) {
|
|
4027
4027
|
tmp_8 = null;
|
|
@@ -4039,8 +4039,8 @@ protoOf(Companion_0).o4t = function (_this__u8e3s4, type, constrained) {
|
|
|
4039
4039
|
tmp = new Integer(tmp_7, tmp_8);
|
|
4040
4040
|
break;
|
|
4041
4041
|
case 'number':
|
|
4042
|
-
var tmp_10 = this.
|
|
4043
|
-
var tmp7_safe_receiver = this.
|
|
4042
|
+
var tmp_10 = this.c4x(_this__u8e3s4, 'format') === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance();
|
|
4043
|
+
var tmp7_safe_receiver = this.f4y(_this__u8e3s4, AsyncAPIConverter$Companion$primitive$lambda_0);
|
|
4044
4044
|
var tmp_11;
|
|
4045
4045
|
if (tmp7_safe_receiver == null) {
|
|
4046
4046
|
tmp_11 = null;
|
|
@@ -4063,7 +4063,7 @@ protoOf(Companion_0).o4t = function (_this__u8e3s4, type, constrained) {
|
|
|
4063
4063
|
}
|
|
4064
4064
|
return tmp;
|
|
4065
4065
|
};
|
|
4066
|
-
protoOf(Companion_0).
|
|
4066
|
+
protoOf(Companion_0).f4y = function (_this__u8e3s4, format) {
|
|
4067
4067
|
var tmp = _this__u8e3s4.ld('minimum');
|
|
4068
4068
|
var tmp0_safe_receiver = tmp instanceof JsonPrimitive_1 ? tmp : null;
|
|
4069
4069
|
var tmp_0;
|
|
@@ -4123,11 +4123,11 @@ protoOf(Companion_0).h4u = function (_this__u8e3s4, format) {
|
|
|
4123
4123
|
}
|
|
4124
4124
|
return tmp_8;
|
|
4125
4125
|
};
|
|
4126
|
-
protoOf(Companion_0).
|
|
4126
|
+
protoOf(Companion_0).e4y = function (_this__u8e3s4) {
|
|
4127
4127
|
var tmp = Regex_init_$Create$('\\\\.|/');
|
|
4128
4128
|
return tmp.bd(_this__u8e3s4, AsyncAPIConverter$Companion$escapeSlashes$lambda);
|
|
4129
4129
|
};
|
|
4130
|
-
protoOf(Companion_0).
|
|
4130
|
+
protoOf(Companion_0).b4x = function (_this__u8e3s4, section) {
|
|
4131
4131
|
// Inline function 'kotlin.takeIf' call
|
|
4132
4132
|
var this_0 = removePrefix(_this__u8e3s4, '#/components/' + section + '/');
|
|
4133
4133
|
var tmp;
|
|
@@ -4139,7 +4139,7 @@ protoOf(Companion_0).d4t = function (_this__u8e3s4, section) {
|
|
|
4139
4139
|
var tmp0_safe_receiver = tmp;
|
|
4140
4140
|
return tmp0_safe_receiver == null ? null : unescapePointer(tmp0_safe_receiver);
|
|
4141
4141
|
};
|
|
4142
|
-
protoOf(Companion_0).
|
|
4142
|
+
protoOf(Companion_0).r4w = function (_this__u8e3s4) {
|
|
4143
4143
|
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
4144
4144
|
var tmp;
|
|
4145
4145
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
@@ -4155,7 +4155,7 @@ protoOf(Companion_0).t4s = function (_this__u8e3s4) {
|
|
|
4155
4155
|
}
|
|
4156
4156
|
return tmp;
|
|
4157
4157
|
};
|
|
4158
|
-
protoOf(Companion_0).
|
|
4158
|
+
protoOf(Companion_0).z4w = function (_this__u8e3s4, taken) {
|
|
4159
4159
|
var tmp = generateSequence(1, AsyncAPIConverter$Companion$unique$lambda);
|
|
4160
4160
|
var tmp0 = map(tmp, AsyncAPIConverter$Companion$unique$lambda_0(_this__u8e3s4));
|
|
4161
4161
|
var tmp$ret$0;
|
|
@@ -4173,7 +4173,7 @@ protoOf(Companion_0).b4t = function (_this__u8e3s4, taken) {
|
|
|
4173
4173
|
}
|
|
4174
4174
|
return tmp$ret$0;
|
|
4175
4175
|
};
|
|
4176
|
-
protoOf(Companion_0).
|
|
4176
|
+
protoOf(Companion_0).g4x = function (_this__u8e3s4) {
|
|
4177
4177
|
// Inline function 'kotlin.text.split' call
|
|
4178
4178
|
var tmp = Regex_init_$Create$('[^a-zA-Z0-9]+').fd(_this__u8e3s4, 0);
|
|
4179
4179
|
var tmp0 = joinToString(tmp, '', VOID, VOID, VOID, VOID, AsyncAPIConverter$Companion$toIdentifier$lambda);
|
|
@@ -4231,10 +4231,10 @@ protoOf(Companion_0).i4t = function (_this__u8e3s4) {
|
|
|
4231
4231
|
}
|
|
4232
4232
|
return tmp_2;
|
|
4233
4233
|
};
|
|
4234
|
-
protoOf(Companion_0).
|
|
4234
|
+
protoOf(Companion_0).d4y = function (_this__u8e3s4) {
|
|
4235
4235
|
// Inline function 'kotlin.takeIf' call
|
|
4236
4236
|
var tmp;
|
|
4237
|
-
if (this.
|
|
4237
|
+
if (this.k4w_1.sc(_this__u8e3s4)) {
|
|
4238
4238
|
tmp = _this__u8e3s4;
|
|
4239
4239
|
} else {
|
|
4240
4240
|
tmp = null;
|
|
@@ -4258,8 +4258,8 @@ protoOf(Companion_0).f4u = function (_this__u8e3s4) {
|
|
|
4258
4258
|
}
|
|
4259
4259
|
return tmp_0;
|
|
4260
4260
|
};
|
|
4261
|
-
protoOf(Companion_0).
|
|
4262
|
-
return this.
|
|
4261
|
+
protoOf(Companion_0).w4x = function (_this__u8e3s4) {
|
|
4262
|
+
return this.d4y(_this__u8e3s4);
|
|
4263
4263
|
};
|
|
4264
4264
|
var Companion_instance_3;
|
|
4265
4265
|
function Companion_getInstance_0() {
|
|
@@ -4276,24 +4276,24 @@ function MutableMap$get$ref(p0) {
|
|
|
4276
4276
|
}
|
|
4277
4277
|
function AsyncAPIConverter$writer$lambda(this$0) {
|
|
4278
4278
|
return function (it) {
|
|
4279
|
-
var tmp0_elvis_lhs = this$0.
|
|
4279
|
+
var tmp0_elvis_lhs = this$0.w4v_1.t2(it);
|
|
4280
4280
|
return tmp0_elvis_lhs == null ? it : tmp0_elvis_lhs;
|
|
4281
4281
|
};
|
|
4282
4282
|
}
|
|
4283
4283
|
function AsyncAPIConverter$channelV3$lambda(it) {
|
|
4284
|
-
return Companion_getInstance_0().
|
|
4284
|
+
return Companion_getInstance_0().a4x(it);
|
|
4285
4285
|
}
|
|
4286
4286
|
function AsyncAPIConverter$channelV3$lambda_0(it) {
|
|
4287
|
-
return Companion_getInstance_0().
|
|
4287
|
+
return Companion_getInstance_0().p4w(it);
|
|
4288
4288
|
}
|
|
4289
4289
|
function AsyncAPIConverter$channelV2$lambda(it) {
|
|
4290
|
-
return Companion_getInstance_0().
|
|
4290
|
+
return Companion_getInstance_0().a4x(it);
|
|
4291
4291
|
}
|
|
4292
4292
|
function AsyncAPIConverter(document) {
|
|
4293
4293
|
Companion_getInstance_0();
|
|
4294
|
-
this.
|
|
4294
|
+
this.q4v_1 = document;
|
|
4295
4295
|
var tmp = this;
|
|
4296
|
-
var tmp0_safe_receiver = Companion_getInstance_0().
|
|
4296
|
+
var tmp0_safe_receiver = Companion_getInstance_0().c4x(this.q4v_1, 'asyncapi');
|
|
4297
4297
|
var tmp_0;
|
|
4298
4298
|
if (tmp0_safe_receiver == null) {
|
|
4299
4299
|
tmp_0 = null;
|
|
@@ -4306,7 +4306,7 @@ function AsyncAPIConverter(document) {
|
|
|
4306
4306
|
} else {
|
|
4307
4307
|
// Inline function 'kotlin.takeIf' call
|
|
4308
4308
|
var tmp_2;
|
|
4309
|
-
if (Companion_getInstance_0().
|
|
4309
|
+
if (Companion_getInstance_0().g4w_1.i1(tmp0_safe_receiver_0)) {
|
|
4310
4310
|
tmp_2 = tmp0_safe_receiver_0;
|
|
4311
4311
|
} else {
|
|
4312
4312
|
tmp_2 = null;
|
|
@@ -4333,19 +4333,19 @@ function AsyncAPIConverter(document) {
|
|
|
4333
4333
|
} else {
|
|
4334
4334
|
tmp_4 = tmp1_elvis_lhs_0;
|
|
4335
4335
|
}
|
|
4336
|
-
tmp.
|
|
4336
|
+
tmp.r4v_1 = tmp_4;
|
|
4337
4337
|
var tmp_5 = this;
|
|
4338
4338
|
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
4339
|
-
tmp_5.
|
|
4339
|
+
tmp_5.s4v_1 = LinkedHashSet_init_$Create$();
|
|
4340
4340
|
var tmp_6 = this;
|
|
4341
|
-
var tmp_7 = this.
|
|
4342
|
-
tmp_6.
|
|
4341
|
+
var tmp_7 = this.q4v_1.ld('components');
|
|
4342
|
+
tmp_6.t4v_1 = tmp_7 instanceof JsonObject ? tmp_7 : null;
|
|
4343
4343
|
var tmp_8 = this;
|
|
4344
|
-
var tmp0_safe_receiver_1 = this.
|
|
4345
|
-
tmp_8.
|
|
4344
|
+
var tmp0_safe_receiver_1 = this.t4v_1;
|
|
4345
|
+
tmp_8.u4v_1 = orEmpty(tmp0_safe_receiver_1 == null ? null : Companion_getInstance_0().s4w(tmp0_safe_receiver_1, 'schemas'));
|
|
4346
4346
|
var tmp_9 = this;
|
|
4347
4347
|
// Inline function 'kotlin.collections.filterValues' call
|
|
4348
|
-
var this_0 = this.
|
|
4348
|
+
var this_0 = this.u4v_1;
|
|
4349
4349
|
var result = LinkedHashMap_init_$Create$_0();
|
|
4350
4350
|
// Inline function 'kotlin.collections.iterator' call
|
|
4351
4351
|
var _iterator__ex2g4s = this_0.m1().t();
|
|
@@ -4364,13 +4364,13 @@ function AsyncAPIConverter(document) {
|
|
|
4364
4364
|
var _iterator__ex2g4s_0 = this_1.t();
|
|
4365
4365
|
while (_iterator__ex2g4s_0.u()) {
|
|
4366
4366
|
var element = _iterator__ex2g4s_0.v();
|
|
4367
|
-
var tmp$ret$12 = claim(this, Companion_getInstance_0().
|
|
4367
|
+
var tmp$ret$12 = claim(this, Companion_getInstance_0().g4x(element));
|
|
4368
4368
|
result_0.w2(element, tmp$ret$12);
|
|
4369
4369
|
}
|
|
4370
|
-
tmp_9.
|
|
4370
|
+
tmp_9.v4v_1 = result_0;
|
|
4371
4371
|
var tmp_10 = this;
|
|
4372
4372
|
// Inline function 'kotlin.collections.associate' call
|
|
4373
|
-
var this_2 = this.
|
|
4373
|
+
var this_2 = this.v4v_1.m1();
|
|
4374
4374
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_2, 10)), 16);
|
|
4375
4375
|
// Inline function 'kotlin.collections.associateTo' call
|
|
4376
4376
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -4385,33 +4385,33 @@ function AsyncAPIConverter(document) {
|
|
|
4385
4385
|
var pair = to(name, key);
|
|
4386
4386
|
destination.w2(pair.gf_1, pair.hf_1);
|
|
4387
4387
|
}
|
|
4388
|
-
tmp_10.
|
|
4389
|
-
this.
|
|
4388
|
+
tmp_10.w4v_1 = destination;
|
|
4389
|
+
this.x4v_1 = claim(this, 'AsyncAPI');
|
|
4390
4390
|
var tmp_11 = this;
|
|
4391
4391
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
4392
|
-
tmp_11.
|
|
4392
|
+
tmp_11.y4v_1 = LinkedHashMap_init_$Create$_0();
|
|
4393
4393
|
var tmp_12 = this;
|
|
4394
4394
|
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
4395
|
-
tmp_12.
|
|
4395
|
+
tmp_12.z4v_1 = LinkedHashSet_init_$Create$();
|
|
4396
4396
|
var tmp_13 = this;
|
|
4397
4397
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
4398
|
-
tmp_13.
|
|
4398
|
+
tmp_13.a4w_1 = LinkedHashMap_init_$Create$_0();
|
|
4399
4399
|
var tmp_14 = this;
|
|
4400
|
-
var tmp_15 = MutableMap$get$ref(this.
|
|
4401
|
-
tmp_14.
|
|
4400
|
+
var tmp_15 = MutableMap$get$ref(this.a4w_1);
|
|
4401
|
+
tmp_14.b4w_1 = new JsonSchemaWriter(tmp_15, AsyncAPIConverter$writer$lambda(this));
|
|
4402
4402
|
var tmp_16 = this;
|
|
4403
4403
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
4404
|
-
tmp_16.
|
|
4404
|
+
tmp_16.c4w_1 = LinkedHashMap_init_$Create$_0();
|
|
4405
4405
|
var tmp_17 = this;
|
|
4406
4406
|
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
4407
|
-
tmp_17.
|
|
4408
|
-
this.
|
|
4407
|
+
tmp_17.d4w_1 = LinkedHashSet_init_$Create$();
|
|
4408
|
+
this.e4w_1 = orEmpty(Companion_getInstance_0().s4w(this.q4v_1, 'channels')).u2();
|
|
4409
4409
|
}
|
|
4410
|
-
protoOf(AsyncAPIConverter).
|
|
4410
|
+
protoOf(AsyncAPIConverter).f4w = function () {
|
|
4411
4411
|
// Inline function 'kotlin.takeIf' call
|
|
4412
|
-
var this_0 = orEmpty(Companion_getInstance_0().
|
|
4412
|
+
var this_0 = orEmpty(Companion_getInstance_0().s4w(this.q4v_1, 'operations'));
|
|
4413
4413
|
var tmp;
|
|
4414
|
-
if (this.
|
|
4414
|
+
if (this.r4v_1 === 3) {
|
|
4415
4415
|
tmp = this_0;
|
|
4416
4416
|
} else {
|
|
4417
4417
|
tmp = null;
|
|
@@ -4459,7 +4459,7 @@ protoOf(AsyncAPIConverter).h4s = function () {
|
|
|
4459
4459
|
var channelOperations = _destruct__k2r9zo.af();
|
|
4460
4460
|
var documentOperations = _destruct__k2r9zo.bf();
|
|
4461
4461
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4462
|
-
var tmp0 = orEmpty(Companion_getInstance_0().
|
|
4462
|
+
var tmp0 = orEmpty(Companion_getInstance_0().s4w(this.q4v_1, 'channels'));
|
|
4463
4463
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4464
4464
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
4465
4465
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -4471,7 +4471,7 @@ protoOf(AsyncAPIConverter).h4s = function () {
|
|
|
4471
4471
|
// Inline function 'kotlin.collections.component2' call
|
|
4472
4472
|
var channel = element_0.o1();
|
|
4473
4473
|
var tmp_1;
|
|
4474
|
-
if (this.
|
|
4474
|
+
if (this.r4v_1 === 2) {
|
|
4475
4475
|
tmp_1 = channelV2(this, key_0, channel);
|
|
4476
4476
|
} else {
|
|
4477
4477
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -4491,9 +4491,9 @@ protoOf(AsyncAPIConverter).h4s = function () {
|
|
|
4491
4491
|
addAll(destination_0, list);
|
|
4492
4492
|
}
|
|
4493
4493
|
var channels = destination_0;
|
|
4494
|
-
var tmp0_safe_receiver = this.
|
|
4494
|
+
var tmp0_safe_receiver = this.t4v_1;
|
|
4495
4495
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
4496
|
-
var tmp0_0 = orEmpty(tmp0_safe_receiver == null ? null : Companion_getInstance_0().
|
|
4496
|
+
var tmp0_0 = orEmpty(tmp0_safe_receiver == null ? null : Companion_getInstance_0().s4w(tmp0_safe_receiver, 'messages')).u2();
|
|
4497
4497
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
4498
4498
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
4499
4499
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -4515,35 +4515,35 @@ protoOf(AsyncAPIConverter).h4s = function () {
|
|
|
4515
4515
|
var _iterator__ex2g4s_4 = messages.t();
|
|
4516
4516
|
while (_iterator__ex2g4s_4.u()) {
|
|
4517
4517
|
var element_3 = _iterator__ex2g4s_4.v();
|
|
4518
|
-
var list_0 = element_3.
|
|
4518
|
+
var list_0 = element_3.o4w_1;
|
|
4519
4519
|
addAll(destination_3, list_0);
|
|
4520
4520
|
}
|
|
4521
4521
|
var tmp_2 = plus(channels, destination_3);
|
|
4522
4522
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4523
|
-
var tmp0_1 = this.
|
|
4523
|
+
var tmp0_1 = this.v4v_1.u2();
|
|
4524
4524
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4525
4525
|
var destination_4 = ArrayList_init_$Create$_0();
|
|
4526
4526
|
var _iterator__ex2g4s_5 = tmp0_1.t();
|
|
4527
4527
|
while (_iterator__ex2g4s_5.u()) {
|
|
4528
4528
|
var element_4 = _iterator__ex2g4s_5.v();
|
|
4529
|
-
var list_1 = component(this, element_4).
|
|
4529
|
+
var list_1 = component(this, element_4).e4x_1;
|
|
4530
4530
|
addAll(destination_4, list_1);
|
|
4531
4531
|
}
|
|
4532
4532
|
var definitions = plus(tmp_2, destination_4);
|
|
4533
4533
|
return NonEmptyList__plus_impl_xqmb9(nonEmptyListOf(holder(this, messages, documentOperations), []), definitions);
|
|
4534
4534
|
};
|
|
4535
4535
|
function ConvertedMessage(annotation, payload, definitions) {
|
|
4536
|
-
this.
|
|
4537
|
-
this.
|
|
4538
|
-
this.
|
|
4536
|
+
this.m4w_1 = annotation;
|
|
4537
|
+
this.n4w_1 = payload;
|
|
4538
|
+
this.o4w_1 = definitions;
|
|
4539
4539
|
}
|
|
4540
4540
|
protoOf(ConvertedMessage).toString = function () {
|
|
4541
|
-
return 'ConvertedMessage(annotation=' + this.
|
|
4541
|
+
return 'ConvertedMessage(annotation=' + this.m4w_1.toString() + ', payload=' + toString_0(this.n4w_1) + ', definitions=' + toString_0(this.o4w_1) + ')';
|
|
4542
4542
|
};
|
|
4543
4543
|
protoOf(ConvertedMessage).hashCode = function () {
|
|
4544
|
-
var result = this.
|
|
4545
|
-
result = imul(result, 31) + hashCode(this.
|
|
4546
|
-
result = imul(result, 31) + hashCode(this.
|
|
4544
|
+
var result = this.m4w_1.hashCode();
|
|
4545
|
+
result = imul(result, 31) + hashCode(this.n4w_1) | 0;
|
|
4546
|
+
result = imul(result, 31) + hashCode(this.o4w_1) | 0;
|
|
4547
4547
|
return result;
|
|
4548
4548
|
};
|
|
4549
4549
|
protoOf(ConvertedMessage).equals = function (other) {
|
|
@@ -4551,33 +4551,33 @@ protoOf(ConvertedMessage).equals = function (other) {
|
|
|
4551
4551
|
return true;
|
|
4552
4552
|
if (!(other instanceof ConvertedMessage))
|
|
4553
4553
|
return false;
|
|
4554
|
-
if (!this.
|
|
4554
|
+
if (!this.m4w_1.equals(other.m4w_1))
|
|
4555
4555
|
return false;
|
|
4556
|
-
if (!equals(this.
|
|
4556
|
+
if (!equals(this.n4w_1, other.n4w_1))
|
|
4557
4557
|
return false;
|
|
4558
|
-
if (!equals(this.
|
|
4558
|
+
if (!equals(this.o4w_1, other.o4w_1))
|
|
4559
4559
|
return false;
|
|
4560
4560
|
return true;
|
|
4561
4561
|
};
|
|
4562
4562
|
function Converted(reference, definitions) {
|
|
4563
4563
|
definitions = definitions === VOID ? emptyList() : definitions;
|
|
4564
|
-
this.
|
|
4565
|
-
this.
|
|
4564
|
+
this.d4x_1 = reference;
|
|
4565
|
+
this.e4x_1 = definitions;
|
|
4566
4566
|
}
|
|
4567
|
-
protoOf(Converted).
|
|
4567
|
+
protoOf(Converted).g4y = function (reference, definitions) {
|
|
4568
4568
|
return new Converted(reference, definitions);
|
|
4569
4569
|
};
|
|
4570
|
-
protoOf(Converted).
|
|
4571
|
-
reference = reference === VOID ? this.
|
|
4572
|
-
definitions = definitions === VOID ? this.
|
|
4573
|
-
return $super === VOID ? this.
|
|
4570
|
+
protoOf(Converted).q4x = function (reference, definitions, $super) {
|
|
4571
|
+
reference = reference === VOID ? this.d4x_1 : reference;
|
|
4572
|
+
definitions = definitions === VOID ? this.e4x_1 : definitions;
|
|
4573
|
+
return $super === VOID ? this.g4y(reference, definitions) : $super.g4y.call(this, reference, definitions);
|
|
4574
4574
|
};
|
|
4575
4575
|
protoOf(Converted).toString = function () {
|
|
4576
|
-
return 'Converted(reference=' + toString_0(this.
|
|
4576
|
+
return 'Converted(reference=' + toString_0(this.d4x_1) + ', definitions=' + toString_0(this.e4x_1) + ')';
|
|
4577
4577
|
};
|
|
4578
4578
|
protoOf(Converted).hashCode = function () {
|
|
4579
|
-
var result = hashCode(this.
|
|
4580
|
-
result = imul(result, 31) + hashCode(this.
|
|
4579
|
+
var result = hashCode(this.d4x_1);
|
|
4580
|
+
result = imul(result, 31) + hashCode(this.e4x_1) | 0;
|
|
4581
4581
|
return result;
|
|
4582
4582
|
};
|
|
4583
4583
|
protoOf(Converted).equals = function (other) {
|
|
@@ -4585,26 +4585,26 @@ protoOf(Converted).equals = function (other) {
|
|
|
4585
4585
|
return true;
|
|
4586
4586
|
if (!(other instanceof Converted))
|
|
4587
4587
|
return false;
|
|
4588
|
-
if (!equals(this.
|
|
4588
|
+
if (!equals(this.d4x_1, other.d4x_1))
|
|
4589
4589
|
return false;
|
|
4590
|
-
if (!equals(this.
|
|
4590
|
+
if (!equals(this.e4x_1, other.e4x_1))
|
|
4591
4591
|
return false;
|
|
4592
4592
|
return true;
|
|
4593
4593
|
};
|
|
4594
4594
|
function OperationMessage(id, pointer, element, name) {
|
|
4595
|
-
this.
|
|
4596
|
-
this.
|
|
4597
|
-
this.
|
|
4598
|
-
this.
|
|
4595
|
+
this.v4w_1 = id;
|
|
4596
|
+
this.w4w_1 = pointer;
|
|
4597
|
+
this.x4w_1 = element;
|
|
4598
|
+
this.y4w_1 = name;
|
|
4599
4599
|
}
|
|
4600
4600
|
protoOf(OperationMessage).toString = function () {
|
|
4601
|
-
return 'OperationMessage(id=' + this.
|
|
4601
|
+
return 'OperationMessage(id=' + this.v4w_1 + ', pointer=' + this.w4w_1 + ', element=' + toString_0(this.x4w_1) + ', name=' + this.y4w_1 + ')';
|
|
4602
4602
|
};
|
|
4603
4603
|
protoOf(OperationMessage).hashCode = function () {
|
|
4604
|
-
var result = getStringHashCode(this.
|
|
4605
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
4606
|
-
result = imul(result, 31) + hashCode(this.
|
|
4607
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
4604
|
+
var result = getStringHashCode(this.v4w_1);
|
|
4605
|
+
result = imul(result, 31) + getStringHashCode(this.w4w_1) | 0;
|
|
4606
|
+
result = imul(result, 31) + hashCode(this.x4w_1) | 0;
|
|
4607
|
+
result = imul(result, 31) + getStringHashCode(this.y4w_1) | 0;
|
|
4608
4608
|
return result;
|
|
4609
4609
|
};
|
|
4610
4610
|
protoOf(OperationMessage).equals = function (other) {
|
|
@@ -4612,26 +4612,26 @@ protoOf(OperationMessage).equals = function (other) {
|
|
|
4612
4612
|
return true;
|
|
4613
4613
|
if (!(other instanceof OperationMessage))
|
|
4614
4614
|
return false;
|
|
4615
|
-
if (!(this.
|
|
4615
|
+
if (!(this.v4w_1 === other.v4w_1))
|
|
4616
4616
|
return false;
|
|
4617
|
-
if (!(this.
|
|
4617
|
+
if (!(this.w4w_1 === other.w4w_1))
|
|
4618
4618
|
return false;
|
|
4619
|
-
if (!equals(this.
|
|
4619
|
+
if (!equals(this.x4w_1, other.x4w_1))
|
|
4620
4620
|
return false;
|
|
4621
|
-
if (!(this.
|
|
4621
|
+
if (!(this.y4w_1 === other.y4w_1))
|
|
4622
4622
|
return false;
|
|
4623
4623
|
return true;
|
|
4624
4624
|
};
|
|
4625
4625
|
function Located(pointer, node) {
|
|
4626
|
-
this.
|
|
4627
|
-
this.
|
|
4626
|
+
this.t4x_1 = pointer;
|
|
4627
|
+
this.u4x_1 = node;
|
|
4628
4628
|
}
|
|
4629
4629
|
protoOf(Located).toString = function () {
|
|
4630
|
-
return 'Located(pointer=' + this.
|
|
4630
|
+
return 'Located(pointer=' + this.t4x_1 + ', node=' + this.u4x_1.toString() + ')';
|
|
4631
4631
|
};
|
|
4632
4632
|
protoOf(Located).hashCode = function () {
|
|
4633
|
-
var result = getStringHashCode(this.
|
|
4634
|
-
result = imul(result, 31) + this.
|
|
4633
|
+
var result = getStringHashCode(this.t4x_1);
|
|
4634
|
+
result = imul(result, 31) + this.u4x_1.hashCode() | 0;
|
|
4635
4635
|
return result;
|
|
4636
4636
|
};
|
|
4637
4637
|
protoOf(Located).equals = function (other) {
|
|
@@ -4639,9 +4639,9 @@ protoOf(Located).equals = function (other) {
|
|
|
4639
4639
|
return true;
|
|
4640
4640
|
if (!(other instanceof Located))
|
|
4641
4641
|
return false;
|
|
4642
|
-
if (!(this.
|
|
4642
|
+
if (!(this.t4x_1 === other.t4x_1))
|
|
4643
4643
|
return false;
|
|
4644
|
-
if (!this.
|
|
4644
|
+
if (!this.u4x_1.equals(other.u4x_1))
|
|
4645
4645
|
return false;
|
|
4646
4646
|
return true;
|
|
4647
4647
|
};
|
|
@@ -4751,7 +4751,7 @@ function schema_0($this, $receiver, inlining) {
|
|
|
4751
4751
|
}
|
|
4752
4752
|
function canonical_0($this, $receiver, inlining) {
|
|
4753
4753
|
var tmp = schema_1($this, $receiver.qp_1.x1a(false), inlining);
|
|
4754
|
-
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().
|
|
4754
|
+
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().d3b($receiver.op_1, 'Description');
|
|
4755
4755
|
var tmp_0;
|
|
4756
4756
|
if (tmp0_safe_receiver == null) {
|
|
4757
4757
|
tmp_0 = null;
|
|
@@ -4766,7 +4766,7 @@ function canonical_0($this, $receiver, inlining) {
|
|
|
4766
4766
|
function schema_1($this, $receiver, inlining) {
|
|
4767
4767
|
var tmp;
|
|
4768
4768
|
if ($receiver instanceof Custom) {
|
|
4769
|
-
var tmp1_safe_receiver = $this.
|
|
4769
|
+
var tmp1_safe_receiver = $this.m4v_1($receiver.b1a_1);
|
|
4770
4770
|
var tmp_0;
|
|
4771
4771
|
if (tmp1_safe_receiver == null) {
|
|
4772
4772
|
tmp_0 = null;
|
|
@@ -4782,7 +4782,7 @@ function schema_1($this, $receiver, inlining) {
|
|
|
4782
4782
|
}
|
|
4783
4783
|
var tmp2_safe_receiver = tmp_0;
|
|
4784
4784
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : schema($this, tmp2_safe_receiver, plus_3(inlining, $receiver.b1a_1));
|
|
4785
|
-
tmp = tmp3_elvis_lhs == null ? ref('#/components/schemas/' + escapePointer($this.
|
|
4785
|
+
tmp = tmp3_elvis_lhs == null ? ref('#/components/schemas/' + escapePointer($this.n4v_1($receiver.b1a_1))) : tmp3_elvis_lhs;
|
|
4786
4786
|
} else {
|
|
4787
4787
|
if ($receiver instanceof Primitive) {
|
|
4788
4788
|
tmp = schema_2($this, $receiver.d1a_1);
|
|
@@ -4797,7 +4797,7 @@ function schema_1($this, $receiver, inlining) {
|
|
|
4797
4797
|
tmp = new JsonObject(emptyMap());
|
|
4798
4798
|
} else {
|
|
4799
4799
|
if ($receiver instanceof Unit) {
|
|
4800
|
-
tmp = Companion_getInstance_1().
|
|
4800
|
+
tmp = Companion_getInstance_1().i4y_1;
|
|
4801
4801
|
} else {
|
|
4802
4802
|
noWhenBranchMatchedException();
|
|
4803
4803
|
}
|
|
@@ -4912,7 +4912,7 @@ function schema_2($this, $receiver) {
|
|
|
4912
4912
|
return tmp;
|
|
4913
4913
|
}
|
|
4914
4914
|
function description_0($this, $receiver) {
|
|
4915
|
-
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().
|
|
4915
|
+
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().d3b($receiver.m1e(), 'Description');
|
|
4916
4916
|
var tmp;
|
|
4917
4917
|
if (tmp0_elvis_lhs == null) {
|
|
4918
4918
|
var tmp1_safe_receiver = $receiver.l1e();
|
|
@@ -4938,18 +4938,18 @@ function description_0($this, $receiver) {
|
|
|
4938
4938
|
return tmp_2;
|
|
4939
4939
|
}
|
|
4940
4940
|
function key_0($this, $receiver) {
|
|
4941
|
-
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().
|
|
4941
|
+
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().d3b($receiver.op_1, 'AsyncAPIName');
|
|
4942
4942
|
return tmp0_elvis_lhs == null ? $receiver.pp_1.o1() : tmp0_elvis_lhs;
|
|
4943
4943
|
}
|
|
4944
4944
|
function patched($this, $receiver, annotations) {
|
|
4945
|
-
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().
|
|
4945
|
+
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().r4u(annotations, 'AsyncAPISchema');
|
|
4946
4946
|
var tmp;
|
|
4947
4947
|
if (tmp0_safe_receiver == null) {
|
|
4948
4948
|
tmp = null;
|
|
4949
4949
|
} else {
|
|
4950
4950
|
// Inline function 'kotlin.let' call
|
|
4951
|
-
var tmp0_safe_receiver_0 = AsyncAPIAnnotations_getInstance().
|
|
4952
|
-
var replacement = tmp0_safe_receiver_0 == null ? null : AsyncAPIAnnotations_getInstance().
|
|
4951
|
+
var tmp0_safe_receiver_0 = AsyncAPIAnnotations_getInstance().t4u(tmp0_safe_receiver);
|
|
4952
|
+
var replacement = tmp0_safe_receiver_0 == null ? null : AsyncAPIAnnotations_getInstance().j4u(tmp0_safe_receiver_0);
|
|
4953
4953
|
var tmp_0;
|
|
4954
4954
|
var tmp_1;
|
|
4955
4955
|
if (replacement == null) {
|
|
@@ -4959,7 +4959,7 @@ function patched($this, $receiver, annotations) {
|
|
|
4959
4959
|
}
|
|
4960
4960
|
if (tmp_1) {
|
|
4961
4961
|
var tmp_2 = orEmpty($receiver instanceof JsonObject ? $receiver : null);
|
|
4962
|
-
tmp_0 = new JsonObject(minus(plus_0(plus_0(tmp_2, orEmpty(replacement instanceof JsonObject ? replacement : null)), minus_0(AsyncAPIAnnotations_getInstance().
|
|
4962
|
+
tmp_0 = new JsonObject(minus(plus_0(plus_0(tmp_2, orEmpty(replacement instanceof JsonObject ? replacement : null)), minus_0(AsyncAPIAnnotations_getInstance().u4u(tmp0_safe_receiver), 'omit')), toSet(omitted($this, tmp0_safe_receiver))));
|
|
4963
4963
|
} else {
|
|
4964
4964
|
tmp_0 = replacement;
|
|
4965
4965
|
}
|
|
@@ -4986,7 +4986,7 @@ function omitted($this, $receiver) {
|
|
|
4986
4986
|
}
|
|
4987
4987
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
4988
4988
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t1a_1;
|
|
4989
|
-
var tmp = tmp1_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().
|
|
4989
|
+
var tmp = tmp1_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().j4u(tmp1_safe_receiver);
|
|
4990
4990
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4991
4991
|
var tmp0_elvis_lhs = tmp instanceof JsonArray ? tmp : null;
|
|
4992
4992
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -5051,12 +5051,12 @@ function nullable($this, $receiver) {
|
|
|
5051
5051
|
var type = $receiver.ld('type');
|
|
5052
5052
|
var tmp_1;
|
|
5053
5053
|
if (type instanceof JsonArray) {
|
|
5054
|
-
tmp_1 = type.d2p(Companion_getInstance_1().
|
|
5054
|
+
tmp_1 = type.d2p(Companion_getInstance_1().h4y_1) ? $receiver : new JsonObject(plus_4($receiver, to('type', new JsonArray(plus_2(type, Companion_getInstance_1().h4y_1)))));
|
|
5055
5055
|
} else {
|
|
5056
5056
|
if (type instanceof JsonPrimitive_1) {
|
|
5057
|
-
tmp_1 = equals(type, Companion_getInstance_1().
|
|
5057
|
+
tmp_1 = equals(type, Companion_getInstance_1().h4y_1) ? $receiver : new JsonObject(plus_4($receiver, to('type', new JsonArray(listOf_0([type, Companion_getInstance_1().h4y_1])))));
|
|
5058
5058
|
} else {
|
|
5059
|
-
tmp_1 = jsonObjectOf([to('oneOf', new JsonArray(listOf_0([$receiver, Companion_getInstance_1().
|
|
5059
|
+
tmp_1 = jsonObjectOf([to('oneOf', new JsonArray(listOf_0([$receiver, Companion_getInstance_1().i4y_1])))]);
|
|
5060
5060
|
}
|
|
5061
5061
|
}
|
|
5062
5062
|
tmp = tmp_1;
|
|
@@ -5071,8 +5071,8 @@ function toPattern($this, $receiver) {
|
|
|
5071
5071
|
}
|
|
5072
5072
|
function Companion_1() {
|
|
5073
5073
|
Companion_instance_4 = this;
|
|
5074
|
-
this.
|
|
5075
|
-
this.
|
|
5074
|
+
this.h4y_1 = JsonPrimitive_0('null');
|
|
5075
|
+
this.i4y_1 = new JsonObject(mapOf(to('type', this.h4y_1)));
|
|
5076
5076
|
}
|
|
5077
5077
|
var Companion_instance_4;
|
|
5078
5078
|
function Companion_getInstance_1() {
|
|
@@ -5085,19 +5085,19 @@ function JsonSchemaWriter$toPattern$lambda(it) {
|
|
|
5085
5085
|
}
|
|
5086
5086
|
function JsonSchemaWriter(inlineDefinition, componentKey) {
|
|
5087
5087
|
Companion_getInstance_1();
|
|
5088
|
-
this.
|
|
5089
|
-
this.
|
|
5088
|
+
this.m4v_1 = inlineDefinition;
|
|
5089
|
+
this.n4v_1 = componentKey;
|
|
5090
5090
|
}
|
|
5091
|
-
protoOf(JsonSchemaWriter).
|
|
5091
|
+
protoOf(JsonSchemaWriter).p4v = function (_this__u8e3s4) {
|
|
5092
5092
|
return schema(this, _this__u8e3s4, emptySet());
|
|
5093
5093
|
};
|
|
5094
|
-
protoOf(JsonSchemaWriter).
|
|
5094
|
+
protoOf(JsonSchemaWriter).z4x = function (_this__u8e3s4) {
|
|
5095
5095
|
return canonical(this, _this__u8e3s4, emptySet());
|
|
5096
5096
|
};
|
|
5097
|
-
protoOf(JsonSchemaWriter).
|
|
5097
|
+
protoOf(JsonSchemaWriter).x4x = function (_this__u8e3s4) {
|
|
5098
5098
|
return canonical_0(this, _this__u8e3s4, emptySet());
|
|
5099
5099
|
};
|
|
5100
|
-
protoOf(JsonSchemaWriter).
|
|
5100
|
+
protoOf(JsonSchemaWriter).o4v = function (_this__u8e3s4) {
|
|
5101
5101
|
return schema_1(this, _this__u8e3s4, emptySet());
|
|
5102
5102
|
};
|
|
5103
5103
|
function escapePointer(_this__u8e3s4) {
|
|
@@ -5179,7 +5179,7 @@ function schemaPatch(canonical, original) {
|
|
|
5179
5179
|
var pair = new Pair(element_1.n1(), element_1.o1());
|
|
5180
5180
|
destination_0.w2(pair.gf_1, pair.hf_1);
|
|
5181
5181
|
}
|
|
5182
|
-
tmp_2 = new Parameter('default', tmp_3.
|
|
5182
|
+
tmp_2 = new Parameter('default', tmp_3.q4u(new JsonObject(destination_0)));
|
|
5183
5183
|
}
|
|
5184
5184
|
var tmp_4 = listOfNotNull(tmp_2);
|
|
5185
5185
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -5192,7 +5192,7 @@ function schemaPatch(canonical, original) {
|
|
|
5192
5192
|
var key_0 = item.n1();
|
|
5193
5193
|
// Inline function 'kotlin.collections.component2' call
|
|
5194
5194
|
var value_0 = item.o1();
|
|
5195
|
-
var tmp$ret$19 = AsyncAPIAnnotations_getInstance().
|
|
5195
|
+
var tmp$ret$19 = AsyncAPIAnnotations_getInstance().n4u(key_0, AsyncAPIAnnotations_getInstance().q4u(value_0));
|
|
5196
5196
|
destination_1.x(tmp$ret$19);
|
|
5197
5197
|
}
|
|
5198
5198
|
var tmp_5 = plus(tmp_4, destination_1);
|
|
@@ -5221,11 +5221,11 @@ function schemaPatch(canonical, original) {
|
|
|
5221
5221
|
var tmp$ret$29 = JsonPrimitive_0(item_0);
|
|
5222
5222
|
destination_2.x(tmp$ret$29);
|
|
5223
5223
|
}
|
|
5224
|
-
tmp_7 = tmp_8.
|
|
5224
|
+
tmp_7 = tmp_8.n4u('omit', tmp_9.q4u(new JsonArray(destination_2)));
|
|
5225
5225
|
}
|
|
5226
5226
|
tmp = new Annotation('AsyncAPISchema', plus(tmp_5, listOfNotNull(tmp_7)));
|
|
5227
5227
|
} else {
|
|
5228
|
-
tmp = new Annotation('AsyncAPISchema', listOf(new Parameter('default', AsyncAPIAnnotations_getInstance().
|
|
5228
|
+
tmp = new Annotation('AsyncAPISchema', listOf(new Parameter('default', AsyncAPIAnnotations_getInstance().q4u(original))));
|
|
5229
5229
|
}
|
|
5230
5230
|
}
|
|
5231
5231
|
return tmp;
|