@flock/wirespec 0.22.5 → 0.22.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arrow-arrow-core.mjs +8 -8
- package/clikt-clikt-mordant.mjs +79 -79
- package/clikt-clikt.mjs +1364 -1363
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +436 -436
- package/kotlin-kotlin-stdlib.mjs +192 -191
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10204 -10204
- package/kotlin-rgxgen.mjs +1771 -1771
- package/kotlinx-io-kotlinx-io-core.mjs +425 -425
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1824 -1824
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1509 -1509
- package/mordant-mordant.mjs +1246 -1246
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +5661 -5333
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +171 -187
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +138 -149
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +147 -160
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +356 -370
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +165 -175
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +187 -313
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +79 -79
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +194 -194
- package/wirespec-src-converter-asyncapi.mjs +545 -545
- package/wirespec-src-converter-avro.mjs +544 -544
- package/wirespec-src-converter-common.mjs +11 -11
- package/wirespec-src-converter-graphql.mjs +942 -942
- package/wirespec-src-converter-openapi.mjs +453 -453
- package/wirespec-src-ide-lsp.mjs +1359 -1359
- package/wirespec-src-plugin-arguments.mjs +153 -157
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +139 -142
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-extensions.mjs +1631 -1114
- package/wirespec-src-plugin-extensions.mjs.map +1 -1
- package/wirespec-src-plugin-npm.mjs +27 -27
- package/wirespec-src-tools-generator.mjs +17 -17
|
@@ -217,12 +217,12 @@ function Action_initEntries() {
|
|
|
217
217
|
var $ENTRIES;
|
|
218
218
|
function Action(name, ordinal, keyword, v2Keyword) {
|
|
219
219
|
Enum.call(this, name, ordinal);
|
|
220
|
-
this.
|
|
221
|
-
this.
|
|
220
|
+
this.q4p_1 = keyword;
|
|
221
|
+
this.r4p_1 = v2Keyword;
|
|
222
222
|
}
|
|
223
|
-
protoOf(Action).
|
|
223
|
+
protoOf(Action).s4p = function () {
|
|
224
224
|
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
225
|
-
var this_0 = this.
|
|
225
|
+
var this_0 = this.q4p_1;
|
|
226
226
|
var tmp;
|
|
227
227
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
228
228
|
if (charSequenceLength(this_0) > 0) {
|
|
@@ -237,8 +237,8 @@ protoOf(Action).j4n = function () {
|
|
|
237
237
|
}
|
|
238
238
|
return 'AsyncAPI' + tmp;
|
|
239
239
|
};
|
|
240
|
-
protoOf(Action).
|
|
241
|
-
return this.
|
|
240
|
+
protoOf(Action).t4p = function (channel) {
|
|
241
|
+
return this.q4p_1 + channel;
|
|
242
242
|
};
|
|
243
243
|
function toJsonObject($this, $receiver) {
|
|
244
244
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -249,7 +249,7 @@ function toJsonObject($this, $receiver) {
|
|
|
249
249
|
while (_iterator__ex2g4s.u()) {
|
|
250
250
|
var element = _iterator__ex2g4s.v();
|
|
251
251
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
252
|
-
var pair = to(fromLiteral(AsyncAPIAnnotations_getInstance(), element.
|
|
252
|
+
var pair = to(fromLiteral(AsyncAPIAnnotations_getInstance(), element.o1a_1), AsyncAPIAnnotations_getInstance().g4q(element.p1a_1));
|
|
253
253
|
destination.v2(pair.ff_1, pair.gf_1);
|
|
254
254
|
}
|
|
255
255
|
return new JsonObject(destination);
|
|
@@ -259,8 +259,8 @@ function toSingle($this, $receiver) {
|
|
|
259
259
|
if ($receiver instanceof JsonNull) {
|
|
260
260
|
tmp = 'null';
|
|
261
261
|
} else {
|
|
262
|
-
if ($receiver.
|
|
263
|
-
tmp = $receiver.
|
|
262
|
+
if ($receiver.r2o() && asJson($this, $receiver.h1i()) == null) {
|
|
263
|
+
tmp = $receiver.h1i();
|
|
264
264
|
} else {
|
|
265
265
|
tmp = $receiver.toString();
|
|
266
266
|
}
|
|
@@ -279,11 +279,11 @@ function asJson($this, $receiver) {
|
|
|
279
279
|
break;
|
|
280
280
|
default:
|
|
281
281
|
var tmp_0;
|
|
282
|
-
if ($this.
|
|
282
|
+
if ($this.e4q_1.rc($receiver)) {
|
|
283
283
|
tmp_0 = true;
|
|
284
284
|
} else {
|
|
285
285
|
var tmp_1 = firstOrNull($receiver);
|
|
286
|
-
tmp_0 = contains($this.
|
|
286
|
+
tmp_0 = contains($this.f4q_1, tmp_1 == null ? null : new Char(tmp_1));
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
if (tmp_0) {
|
|
@@ -291,7 +291,7 @@ function asJson($this, $receiver) {
|
|
|
291
291
|
var tmp_2;
|
|
292
292
|
try {
|
|
293
293
|
// Inline function 'kotlin.Companion.success' call
|
|
294
|
-
var value = Default_getInstance().
|
|
294
|
+
var value = Default_getInstance().p2m($receiver);
|
|
295
295
|
tmp_2 = _Result___init__impl__xyqfz8(value);
|
|
296
296
|
} catch ($p) {
|
|
297
297
|
var tmp_3;
|
|
@@ -394,20 +394,20 @@ function Action_RECEIVE_getInstance() {
|
|
|
394
394
|
}
|
|
395
395
|
function AsyncAPIAnnotations() {
|
|
396
396
|
AsyncAPIAnnotations_instance = this;
|
|
397
|
-
this.
|
|
398
|
-
this.
|
|
399
|
-
this.
|
|
400
|
-
this.
|
|
401
|
-
this.
|
|
402
|
-
this.
|
|
403
|
-
this.
|
|
404
|
-
this.
|
|
405
|
-
this.
|
|
406
|
-
this.
|
|
407
|
-
this.
|
|
408
|
-
this.
|
|
397
|
+
this.u4p_1 = 'Description';
|
|
398
|
+
this.v4p_1 = 'AsyncAPIName';
|
|
399
|
+
this.w4p_1 = 'AsyncAPIDocument';
|
|
400
|
+
this.x4p_1 = 'AsyncAPIComponents';
|
|
401
|
+
this.y4p_1 = 'AsyncAPIChannel';
|
|
402
|
+
this.z4p_1 = 'AsyncAPIMessage';
|
|
403
|
+
this.a4q_1 = 'AsyncAPISchema';
|
|
404
|
+
this.b4q_1 = 'AsyncAPIInline';
|
|
405
|
+
this.c4q_1 = 'omit';
|
|
406
|
+
this.d4q_1 = 'default';
|
|
407
|
+
this.e4q_1 = Regex_init_$Create$('-?(0|[1-9][0-9]*)(\\.[0-9]+)?([eE][+-]?[0-9]+)?');
|
|
408
|
+
this.f4q_1 = setOf([new Char(_Char___init__impl__6a9atx(123)), new Char(_Char___init__impl__6a9atx(91)), new Char(_Char___init__impl__6a9atx(34))]);
|
|
409
409
|
}
|
|
410
|
-
protoOf(AsyncAPIAnnotations).
|
|
410
|
+
protoOf(AsyncAPIAnnotations).h4q = function (name, value, parameters) {
|
|
411
411
|
var tmp;
|
|
412
412
|
if (value == null) {
|
|
413
413
|
tmp = null;
|
|
@@ -417,33 +417,33 @@ protoOf(AsyncAPIAnnotations).y4n = function (name, value, parameters) {
|
|
|
417
417
|
}
|
|
418
418
|
return new Annotation(name, plus(listOfNotNull(tmp), parameters));
|
|
419
419
|
};
|
|
420
|
-
protoOf(AsyncAPIAnnotations).
|
|
420
|
+
protoOf(AsyncAPIAnnotations).i4q = function (name, value, parameters, $super) {
|
|
421
421
|
value = value === VOID ? null : value;
|
|
422
422
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
423
|
-
return $super === VOID ? this.
|
|
423
|
+
return $super === VOID ? this.h4q(name, value, parameters) : $super.h4q.call(this, name, value, parameters);
|
|
424
424
|
};
|
|
425
|
-
protoOf(AsyncAPIAnnotations).
|
|
425
|
+
protoOf(AsyncAPIAnnotations).j4q = function (_this__u8e3s4) {
|
|
426
426
|
var tmp;
|
|
427
427
|
if (_this__u8e3s4 == null) {
|
|
428
428
|
tmp = null;
|
|
429
429
|
} else {
|
|
430
430
|
// Inline function 'kotlin.let' call
|
|
431
|
-
tmp = listOf(AsyncAPIAnnotations_getInstance().
|
|
431
|
+
tmp = listOf(AsyncAPIAnnotations_getInstance().i4q('Description', _this__u8e3s4));
|
|
432
432
|
}
|
|
433
433
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
434
434
|
var tmp0_elvis_lhs = tmp;
|
|
435
435
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
436
436
|
};
|
|
437
|
-
protoOf(AsyncAPIAnnotations).
|
|
437
|
+
protoOf(AsyncAPIAnnotations).k4q = function (key, value) {
|
|
438
438
|
return new Parameter(toLiteral(this, key), value);
|
|
439
439
|
};
|
|
440
|
-
protoOf(AsyncAPIAnnotations).
|
|
440
|
+
protoOf(AsyncAPIAnnotations).l4q = function (_this__u8e3s4) {
|
|
441
441
|
return toSingle(this, JsonPrimitive_0(_this__u8e3s4));
|
|
442
442
|
};
|
|
443
|
-
protoOf(AsyncAPIAnnotations).
|
|
443
|
+
protoOf(AsyncAPIAnnotations).m4q = function (_this__u8e3s4) {
|
|
444
444
|
// Inline function 'kotlin.collections.map' call
|
|
445
445
|
// Inline function 'kotlin.collections.mapTo' call
|
|
446
|
-
var destination = ArrayList_init_$Create$(_this__u8e3s4.
|
|
446
|
+
var destination = ArrayList_init_$Create$(_this__u8e3s4.c1());
|
|
447
447
|
// Inline function 'kotlin.collections.iterator' call
|
|
448
448
|
var _iterator__ex2g4s = _this__u8e3s4.m1().t();
|
|
449
449
|
while (_iterator__ex2g4s.u()) {
|
|
@@ -452,15 +452,15 @@ protoOf(AsyncAPIAnnotations).d4o = function (_this__u8e3s4) {
|
|
|
452
452
|
var key = item.n1();
|
|
453
453
|
// Inline function 'kotlin.collections.component2' call
|
|
454
454
|
var value = item.o1();
|
|
455
|
-
var tmp$ret$3 = AsyncAPIAnnotations_getInstance().
|
|
455
|
+
var tmp$ret$3 = AsyncAPIAnnotations_getInstance().k4q(key, AsyncAPIAnnotations_getInstance().n4q(value));
|
|
456
456
|
destination.x(tmp$ret$3);
|
|
457
457
|
}
|
|
458
458
|
return destination;
|
|
459
459
|
};
|
|
460
|
-
protoOf(AsyncAPIAnnotations).
|
|
460
|
+
protoOf(AsyncAPIAnnotations).n4q = function (_this__u8e3s4) {
|
|
461
461
|
var tmp;
|
|
462
462
|
if (_this__u8e3s4 instanceof JsonObject) {
|
|
463
|
-
tmp = new Dict(this.
|
|
463
|
+
tmp = new Dict(this.m4q(_this__u8e3s4));
|
|
464
464
|
} else {
|
|
465
465
|
if (_this__u8e3s4 instanceof JsonArray) {
|
|
466
466
|
var tmp_0;
|
|
@@ -513,29 +513,29 @@ protoOf(AsyncAPIAnnotations).e4o = function (_this__u8e3s4) {
|
|
|
513
513
|
}
|
|
514
514
|
return tmp;
|
|
515
515
|
};
|
|
516
|
-
protoOf(AsyncAPIAnnotations).
|
|
516
|
+
protoOf(AsyncAPIAnnotations).g4q = function (_this__u8e3s4) {
|
|
517
517
|
var tmp;
|
|
518
518
|
if (_this__u8e3s4 instanceof Single) {
|
|
519
519
|
// Inline function 'kotlin.let' call
|
|
520
|
-
var it = fromLiteral(this, _this__u8e3s4.
|
|
520
|
+
var it = fromLiteral(this, _this__u8e3s4.s1a_1);
|
|
521
521
|
var tmp0_elvis_lhs = asJson(AsyncAPIAnnotations_getInstance(), it);
|
|
522
522
|
tmp = tmp0_elvis_lhs == null ? JsonPrimitive_0(it) : tmp0_elvis_lhs;
|
|
523
523
|
} else {
|
|
524
524
|
if (_this__u8e3s4 instanceof Array_0) {
|
|
525
525
|
// Inline function 'kotlin.collections.map' call
|
|
526
|
-
var this_0 = _this__u8e3s4.
|
|
526
|
+
var this_0 = _this__u8e3s4.r1a_1;
|
|
527
527
|
// Inline function 'kotlin.collections.mapTo' call
|
|
528
528
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
529
529
|
var _iterator__ex2g4s = this_0.t();
|
|
530
530
|
while (_iterator__ex2g4s.u()) {
|
|
531
531
|
var item = _iterator__ex2g4s.v();
|
|
532
|
-
var tmp$ret$4 = AsyncAPIAnnotations_getInstance().
|
|
532
|
+
var tmp$ret$4 = AsyncAPIAnnotations_getInstance().g4q(item);
|
|
533
533
|
destination.x(tmp$ret$4);
|
|
534
534
|
}
|
|
535
535
|
tmp = new JsonArray(destination);
|
|
536
536
|
} else {
|
|
537
537
|
if (_this__u8e3s4 instanceof Dict) {
|
|
538
|
-
tmp = toJsonObject(this, _this__u8e3s4.
|
|
538
|
+
tmp = toJsonObject(this, _this__u8e3s4.q1a_1);
|
|
539
539
|
} else {
|
|
540
540
|
noWhenBranchMatchedException();
|
|
541
541
|
}
|
|
@@ -543,27 +543,27 @@ protoOf(AsyncAPIAnnotations).x4n = function (_this__u8e3s4) {
|
|
|
543
543
|
}
|
|
544
544
|
return tmp;
|
|
545
545
|
};
|
|
546
|
-
protoOf(AsyncAPIAnnotations).
|
|
546
|
+
protoOf(AsyncAPIAnnotations).d4p = function (_this__u8e3s4, name) {
|
|
547
547
|
// Inline function 'kotlin.collections.filter' call
|
|
548
548
|
// Inline function 'kotlin.collections.filterTo' call
|
|
549
549
|
var destination = ArrayList_init_$Create$_0();
|
|
550
550
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
551
551
|
while (_iterator__ex2g4s.u()) {
|
|
552
552
|
var element = _iterator__ex2g4s.v();
|
|
553
|
-
if (element.
|
|
553
|
+
if (element.m1a_1 === name) {
|
|
554
554
|
destination.x(element);
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
return destination;
|
|
558
558
|
};
|
|
559
|
-
protoOf(AsyncAPIAnnotations).
|
|
559
|
+
protoOf(AsyncAPIAnnotations).o4q = function (_this__u8e3s4, name) {
|
|
560
560
|
var tmp$ret$0;
|
|
561
561
|
$l$block: {
|
|
562
562
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
563
563
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
564
564
|
while (_iterator__ex2g4s.u()) {
|
|
565
565
|
var element = _iterator__ex2g4s.v();
|
|
566
|
-
if (element.
|
|
566
|
+
if (element.m1a_1 === name) {
|
|
567
567
|
tmp$ret$0 = element;
|
|
568
568
|
break $l$block;
|
|
569
569
|
}
|
|
@@ -572,7 +572,7 @@ protoOf(AsyncAPIAnnotations).f4o = function (_this__u8e3s4, name) {
|
|
|
572
572
|
}
|
|
573
573
|
return tmp$ret$0;
|
|
574
574
|
};
|
|
575
|
-
protoOf(AsyncAPIAnnotations).
|
|
575
|
+
protoOf(AsyncAPIAnnotations).b4p = function (_this__u8e3s4, name) {
|
|
576
576
|
var tmp$ret$0;
|
|
577
577
|
$l$block_0: {
|
|
578
578
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -589,7 +589,7 @@ protoOf(AsyncAPIAnnotations).s4m = function (_this__u8e3s4, name) {
|
|
|
589
589
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
590
590
|
while (_iterator__ex2g4s.u()) {
|
|
591
591
|
var element = _iterator__ex2g4s.v();
|
|
592
|
-
if (element.
|
|
592
|
+
if (element.m1a_1 === name) {
|
|
593
593
|
tmp$ret$0 = true;
|
|
594
594
|
break $l$block_0;
|
|
595
595
|
}
|
|
@@ -598,26 +598,26 @@ protoOf(AsyncAPIAnnotations).s4m = function (_this__u8e3s4, name) {
|
|
|
598
598
|
}
|
|
599
599
|
return tmp$ret$0;
|
|
600
600
|
};
|
|
601
|
-
protoOf(AsyncAPIAnnotations).
|
|
602
|
-
var tmp0_safe_receiver = this.
|
|
603
|
-
return tmp0_safe_receiver == null ? null : this.
|
|
601
|
+
protoOf(AsyncAPIAnnotations).h4p = function (_this__u8e3s4, name) {
|
|
602
|
+
var tmp0_safe_receiver = this.o4q(_this__u8e3s4, name);
|
|
603
|
+
return tmp0_safe_receiver == null ? null : this.p4q(tmp0_safe_receiver);
|
|
604
604
|
};
|
|
605
|
-
protoOf(AsyncAPIAnnotations).
|
|
606
|
-
var tmp = this.
|
|
605
|
+
protoOf(AsyncAPIAnnotations).p4q = function (_this__u8e3s4) {
|
|
606
|
+
var tmp = this.q4q(_this__u8e3s4);
|
|
607
607
|
var tmp0_safe_receiver = tmp instanceof Single ? tmp : null;
|
|
608
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
608
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s1a_1;
|
|
609
609
|
return tmp1_safe_receiver == null ? null : fromLiteral(this, tmp1_safe_receiver);
|
|
610
610
|
};
|
|
611
|
-
protoOf(AsyncAPIAnnotations).
|
|
611
|
+
protoOf(AsyncAPIAnnotations).q4q = function (_this__u8e3s4) {
|
|
612
612
|
// Inline function 'kotlin.collections.find' call
|
|
613
|
-
var tmp0 = _this__u8e3s4.
|
|
613
|
+
var tmp0 = _this__u8e3s4.n1a_1;
|
|
614
614
|
var tmp$ret$1;
|
|
615
615
|
$l$block: {
|
|
616
616
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
617
617
|
var _iterator__ex2g4s = tmp0.t();
|
|
618
618
|
while (_iterator__ex2g4s.u()) {
|
|
619
619
|
var element = _iterator__ex2g4s.v();
|
|
620
|
-
if (element.
|
|
620
|
+
if (element.o1a_1 === 'default') {
|
|
621
621
|
tmp$ret$1 = element;
|
|
622
622
|
break $l$block;
|
|
623
623
|
}
|
|
@@ -625,17 +625,17 @@ protoOf(AsyncAPIAnnotations).h4o = function (_this__u8e3s4) {
|
|
|
625
625
|
tmp$ret$1 = null;
|
|
626
626
|
}
|
|
627
627
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
628
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
628
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p1a_1;
|
|
629
629
|
};
|
|
630
|
-
protoOf(AsyncAPIAnnotations).
|
|
630
|
+
protoOf(AsyncAPIAnnotations).r4q = function (_this__u8e3s4) {
|
|
631
631
|
// Inline function 'kotlin.collections.filterNot' call
|
|
632
|
-
var tmp0 = _this__u8e3s4.
|
|
632
|
+
var tmp0 = _this__u8e3s4.n1a_1;
|
|
633
633
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
634
634
|
var destination = ArrayList_init_$Create$_0();
|
|
635
635
|
var _iterator__ex2g4s = tmp0.t();
|
|
636
636
|
while (_iterator__ex2g4s.u()) {
|
|
637
637
|
var element = _iterator__ex2g4s.v();
|
|
638
|
-
if (!(element.
|
|
638
|
+
if (!(element.o1a_1 === 'default')) {
|
|
639
639
|
destination.x(element);
|
|
640
640
|
}
|
|
641
641
|
}
|
|
@@ -648,21 +648,21 @@ function AsyncAPIAnnotations_getInstance() {
|
|
|
648
648
|
return AsyncAPIAnnotations_instance;
|
|
649
649
|
}
|
|
650
650
|
function AsyncAPIEmitter$json$lambda($this$Json) {
|
|
651
|
-
$this$Json.
|
|
651
|
+
$this$Json.j2n_1 = true;
|
|
652
652
|
return Unit_instance;
|
|
653
653
|
}
|
|
654
654
|
function AsyncAPIEmitter() {
|
|
655
655
|
AsyncAPIEmitter_instance = this;
|
|
656
|
-
this.
|
|
657
|
-
this.
|
|
656
|
+
this.s4q_1 = FileExtension_JSON_getInstance();
|
|
657
|
+
this.t4q_1 = true;
|
|
658
658
|
var tmp = this;
|
|
659
|
-
tmp.
|
|
659
|
+
tmp.u4q_1 = Json(VOID, AsyncAPIEmitter$json$lambda);
|
|
660
660
|
}
|
|
661
661
|
protoOf(AsyncAPIEmitter).wp = function () {
|
|
662
|
-
return this.
|
|
662
|
+
return this.s4q_1;
|
|
663
663
|
};
|
|
664
664
|
protoOf(AsyncAPIEmitter).vp = function () {
|
|
665
|
-
return this.
|
|
665
|
+
return this.t4q_1;
|
|
666
666
|
};
|
|
667
667
|
protoOf(AsyncAPIEmitter).to = function (ast, logger) {
|
|
668
668
|
// Inline function 'kotlin.collections.onEach' call
|
|
@@ -688,8 +688,8 @@ protoOf(AsyncAPIEmitter).to = function (ast, logger) {
|
|
|
688
688
|
// Inline function 'kotlin.let' call
|
|
689
689
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
690
690
|
// Inline function 'kotlin.let' call
|
|
691
|
-
var it_0 = (new WirespecToAsyncAPI(new NonEmptyList(it))).
|
|
692
|
-
return nonEmptyListOf(new Emitted('asyncapi.' + AsyncAPIEmitter_getInstance().
|
|
691
|
+
var it_0 = (new WirespecToAsyncAPI(new NonEmptyList(it))).f4r();
|
|
692
|
+
return nonEmptyListOf(new Emitted('asyncapi.' + AsyncAPIEmitter_getInstance().s4q_1.xr_1, AsyncAPIEmitter_getInstance().u4q_1.l2m(Companion_instance_0.u2o(), it_0)), []);
|
|
693
693
|
};
|
|
694
694
|
var AsyncAPIEmitter_instance;
|
|
695
695
|
function AsyncAPIEmitter_getInstance() {
|
|
@@ -698,15 +698,15 @@ function AsyncAPIEmitter_getInstance() {
|
|
|
698
698
|
return AsyncAPIEmitter_instance;
|
|
699
699
|
}
|
|
700
700
|
function toChannel($this, $receiver) {
|
|
701
|
-
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().
|
|
702
|
-
var fields = orEmpty(tmp0_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().
|
|
701
|
+
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().o4q($receiver.wq_1, 'AsyncAPIChannel');
|
|
702
|
+
var fields = orEmpty(tmp0_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().r4q(tmp0_safe_receiver));
|
|
703
703
|
var tmp;
|
|
704
704
|
// Inline function 'kotlin.collections.contains' call
|
|
705
705
|
// Inline function 'kotlin.collections.containsKey' call
|
|
706
706
|
if ((isInterface(fields, KtMap) ? fields : THROW_CCE()).q2('$ref')) {
|
|
707
707
|
tmp = fields;
|
|
708
708
|
} else {
|
|
709
|
-
if ($this.
|
|
709
|
+
if ($this.e4r_1 === 2) {
|
|
710
710
|
var tmp_0 = plus_0(fields, jsonObjectOf([to('description', description($this, $receiver))]));
|
|
711
711
|
// Inline function 'kotlin.collections.associate' call
|
|
712
712
|
var this_0 = operations_0($this, $receiver.wq_1);
|
|
@@ -719,7 +719,7 @@ function toChannel($this, $receiver) {
|
|
|
719
719
|
var annotation = element.ze();
|
|
720
720
|
var action = element.af();
|
|
721
721
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
722
|
-
var pair = to(action.
|
|
722
|
+
var pair = to(action.r4p_1, toOperationV2($this, annotation, messages($this, $receiver)));
|
|
723
723
|
destination.v2(pair.ff_1, pair.gf_1);
|
|
724
724
|
}
|
|
725
725
|
tmp = new JsonObject(plus_0(tmp_0, destination));
|
|
@@ -727,7 +727,7 @@ function toChannel($this, $receiver) {
|
|
|
727
727
|
// Inline function 'kotlin.takeUnless' call
|
|
728
728
|
var this_1 = mapOf(to('address', JsonPrimitive_0(key($this, $receiver))));
|
|
729
729
|
var tmp_1;
|
|
730
|
-
if (!$this.
|
|
730
|
+
if (!$this.w4q_1) {
|
|
731
731
|
tmp_1 = this_1;
|
|
732
732
|
} else {
|
|
733
733
|
tmp_1 = null;
|
|
@@ -741,7 +741,7 @@ function toChannel($this, $receiver) {
|
|
|
741
741
|
return tmp;
|
|
742
742
|
}
|
|
743
743
|
function key($this, $receiver) {
|
|
744
|
-
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().
|
|
744
|
+
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().h4p($receiver.wq_1, 'AsyncAPIName');
|
|
745
745
|
var tmp;
|
|
746
746
|
if (tmp0_elvis_lhs == null) {
|
|
747
747
|
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
@@ -765,7 +765,7 @@ function key($this, $receiver) {
|
|
|
765
765
|
return tmp;
|
|
766
766
|
}
|
|
767
767
|
function description($this, $receiver) {
|
|
768
|
-
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().
|
|
768
|
+
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().h4p($receiver.wq_1, 'Description');
|
|
769
769
|
var tmp;
|
|
770
770
|
if (tmp0_elvis_lhs == null) {
|
|
771
771
|
var tmp1_safe_receiver = $receiver.vq_1;
|
|
@@ -792,14 +792,14 @@ function description($this, $receiver) {
|
|
|
792
792
|
}
|
|
793
793
|
function messages($this, $receiver) {
|
|
794
794
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
795
|
-
var tmp0 = AsyncAPIAnnotations_getInstance().
|
|
795
|
+
var tmp0 = AsyncAPIAnnotations_getInstance().d4p($receiver.wq_1, 'AsyncAPIMessage');
|
|
796
796
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
797
797
|
var destination = ArrayList_init_$Create$_0();
|
|
798
798
|
// Inline function 'kotlin.collections.forEach' call
|
|
799
799
|
var _iterator__ex2g4s = tmp0.t();
|
|
800
800
|
while (_iterator__ex2g4s.u()) {
|
|
801
801
|
var element = _iterator__ex2g4s.v();
|
|
802
|
-
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().
|
|
802
|
+
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().p4q(element);
|
|
803
803
|
var tmp;
|
|
804
804
|
if (tmp0_safe_receiver == null) {
|
|
805
805
|
tmp = null;
|
|
@@ -819,7 +819,7 @@ function messages($this, $receiver) {
|
|
|
819
819
|
var this_0 = toMap(destination);
|
|
820
820
|
var tmp_0;
|
|
821
821
|
if (this_0.r()) {
|
|
822
|
-
tmp_0 = $this.
|
|
822
|
+
tmp_0 = $this.w4q_1 ? emptyMap() : mapOf(to(defaultMessageKey($this, $receiver), ref('#/components/messages/' + escapePointer(defaultMessageKey($this, $receiver)))));
|
|
823
823
|
} else {
|
|
824
824
|
tmp_0 = this_0;
|
|
825
825
|
}
|
|
@@ -828,14 +828,14 @@ function messages($this, $receiver) {
|
|
|
828
828
|
function defaultMessageKey($this, $receiver) {
|
|
829
829
|
var tmp = $receiver.yq_1;
|
|
830
830
|
var tmp0_safe_receiver = tmp instanceof Custom ? tmp : null;
|
|
831
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
831
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x19_1;
|
|
832
832
|
return tmp1_elvis_lhs == null ? $receiver.xq_1.o1() + 'Message' : tmp1_elvis_lhs;
|
|
833
833
|
}
|
|
834
834
|
function toMessage($this, $receiver) {
|
|
835
835
|
// Inline function 'kotlin.collections.mapValues' call
|
|
836
|
-
var this_0 = AsyncAPIAnnotations_getInstance().
|
|
836
|
+
var this_0 = AsyncAPIAnnotations_getInstance().r4q($receiver);
|
|
837
837
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
838
|
-
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.
|
|
838
|
+
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.c1()));
|
|
839
839
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
840
840
|
var _iterator__ex2g4s = this_0.m1().t();
|
|
841
841
|
while (_iterator__ex2g4s.u()) {
|
|
@@ -845,7 +845,7 @@ function toMessage($this, $receiver) {
|
|
|
845
845
|
var field = element.n1();
|
|
846
846
|
// Inline function 'kotlin.collections.component2' call
|
|
847
847
|
var value = element.o1();
|
|
848
|
-
var tmp$ret$4 = Companion_getInstance().
|
|
848
|
+
var tmp$ret$4 = Companion_getInstance().h4r_1.i1(field) ? toSchema($this, value) : value;
|
|
849
849
|
destination.v2(tmp, tmp$ret$4);
|
|
850
850
|
}
|
|
851
851
|
return new JsonObject(destination);
|
|
@@ -858,7 +858,7 @@ function toSchema($this, $receiver) {
|
|
|
858
858
|
} else {
|
|
859
859
|
// Inline function 'kotlin.takeIf' call
|
|
860
860
|
var tmp_0;
|
|
861
|
-
if (tmp0_safe_receiver.
|
|
861
|
+
if (tmp0_safe_receiver.r2o()) {
|
|
862
862
|
tmp_0 = tmp0_safe_receiver;
|
|
863
863
|
} else {
|
|
864
864
|
tmp_0 = null;
|
|
@@ -872,14 +872,14 @@ function toSchema($this, $receiver) {
|
|
|
872
872
|
} else {
|
|
873
873
|
// Inline function 'kotlin.let' call
|
|
874
874
|
// Inline function 'kotlin.with' call
|
|
875
|
-
tmp_1 = $this.
|
|
875
|
+
tmp_1 = $this.b4r_1.l4r(toReference(tmp1_safe_receiver.h1i()));
|
|
876
876
|
}
|
|
877
877
|
var tmp2_elvis_lhs = tmp_1;
|
|
878
878
|
return tmp2_elvis_lhs == null ? $receiver : tmp2_elvis_lhs;
|
|
879
879
|
}
|
|
880
880
|
function operations($this) {
|
|
881
881
|
// Inline function 'kotlin.collections.flatMap' call
|
|
882
|
-
var tmp0 = $this.
|
|
882
|
+
var tmp0 = $this.c4r_1;
|
|
883
883
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
884
884
|
var destination = ArrayList_init_$Create$_0();
|
|
885
885
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -889,7 +889,7 @@ function operations($this) {
|
|
|
889
889
|
var this_0 = operations_0($this, element.wq_1);
|
|
890
890
|
var tmp;
|
|
891
891
|
if (this_0.r()) {
|
|
892
|
-
tmp = $this.
|
|
892
|
+
tmp = $this.w4q_1 ? emptyList() : listOf(to(AsyncAPIAnnotations_getInstance().i4q(Action_SEND_getInstance().s4p()), Action_SEND_getInstance()));
|
|
893
893
|
} else {
|
|
894
894
|
tmp = this_0;
|
|
895
895
|
}
|
|
@@ -902,15 +902,15 @@ function operations($this) {
|
|
|
902
902
|
var item = _iterator__ex2g4s_0.v();
|
|
903
903
|
var annotation = item.ze();
|
|
904
904
|
var action = item.af();
|
|
905
|
-
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().
|
|
906
|
-
var tmp$ret$7 = to(tmp0_elvis_lhs == null ? action.
|
|
905
|
+
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().p4q(annotation);
|
|
906
|
+
var tmp$ret$7 = to(tmp0_elvis_lhs == null ? action.t4p(element.xq_1.o1()) : tmp0_elvis_lhs, toOperation($this, annotation, action, '#/channels/' + escapePointer(key($this, element)), messages($this, element).t2()));
|
|
907
907
|
destination_0.x(tmp$ret$7);
|
|
908
908
|
}
|
|
909
909
|
var list = destination_0;
|
|
910
910
|
addAll(destination, list);
|
|
911
911
|
}
|
|
912
912
|
var tmp_0 = toMap(destination);
|
|
913
|
-
var tmp0_safe_receiver = $this.
|
|
913
|
+
var tmp0_safe_receiver = $this.v4q_1;
|
|
914
914
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
915
915
|
var tmp0_elvis_lhs_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jp_1;
|
|
916
916
|
var tmp$ret$8 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
@@ -924,7 +924,7 @@ function operations($this) {
|
|
|
924
924
|
var annotation_0 = item_0.ze();
|
|
925
925
|
var action_0 = item_0.af();
|
|
926
926
|
// Inline function 'kotlin.text.orEmpty' call
|
|
927
|
-
var tmp0_elvis_lhs_1 = AsyncAPIAnnotations_getInstance().
|
|
927
|
+
var tmp0_elvis_lhs_1 = AsyncAPIAnnotations_getInstance().p4q(annotation_0);
|
|
928
928
|
var tmp$ret$12 = tmp0_elvis_lhs_1 == null ? '' : tmp0_elvis_lhs_1;
|
|
929
929
|
var tmp$ret$11 = to(tmp$ret$12, toOperation($this, annotation_0, action_0, null, emptySet()));
|
|
930
930
|
destination_1.x(tmp$ret$11);
|
|
@@ -947,7 +947,7 @@ function operations_0($this, $receiver) {
|
|
|
947
947
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
948
948
|
while (_iterator__ex2g4s_0.u()) {
|
|
949
949
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
950
|
-
if (element_0.
|
|
950
|
+
if (element_0.s4p() === element.m1a_1) {
|
|
951
951
|
tmp$ret$6 = element_0;
|
|
952
952
|
break $l$block;
|
|
953
953
|
}
|
|
@@ -973,14 +973,14 @@ function operations_0($this, $receiver) {
|
|
|
973
973
|
return destination;
|
|
974
974
|
}
|
|
975
975
|
function toOperation($this, $receiver, action, channelPointer, messageKeys) {
|
|
976
|
-
var fields = AsyncAPIAnnotations_getInstance().
|
|
976
|
+
var fields = AsyncAPIAnnotations_getInstance().r4q($receiver);
|
|
977
977
|
var tmp;
|
|
978
978
|
// Inline function 'kotlin.collections.contains' call
|
|
979
979
|
// Inline function 'kotlin.collections.containsKey' call
|
|
980
980
|
if ((isInterface(fields, KtMap) ? fields : THROW_CCE()).q2('$ref')) {
|
|
981
981
|
tmp = fields;
|
|
982
982
|
} else {
|
|
983
|
-
var tmp_0 = mapOf(to('action', JsonPrimitive_0(action.
|
|
983
|
+
var tmp_0 = mapOf(to('action', JsonPrimitive_0(action.q4p_1)));
|
|
984
984
|
var tmp_1;
|
|
985
985
|
if (channelPointer == null) {
|
|
986
986
|
tmp_1 = null;
|
|
@@ -998,7 +998,7 @@ function toOperation($this, $receiver, action, channelPointer, messageKeys) {
|
|
|
998
998
|
} else {
|
|
999
999
|
// Inline function 'kotlin.takeUnless' call
|
|
1000
1000
|
var tmp_4;
|
|
1001
|
-
if (!$this.
|
|
1001
|
+
if (!$this.w4q_1) {
|
|
1002
1002
|
tmp_4 = channelPointer;
|
|
1003
1003
|
} else {
|
|
1004
1004
|
tmp_4 = null;
|
|
@@ -1019,7 +1019,7 @@ function toOperation($this, $receiver, action, channelPointer, messageKeys) {
|
|
|
1019
1019
|
var tmp_6 = plus_0(tmp_2, tmp$ret$9);
|
|
1020
1020
|
// Inline function 'kotlin.collections.mapValues' call
|
|
1021
1021
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
1022
|
-
var destination = LinkedHashMap_init_$Create$(mapCapacity(fields.
|
|
1022
|
+
var destination = LinkedHashMap_init_$Create$(mapCapacity(fields.c1()));
|
|
1023
1023
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
1024
1024
|
var _iterator__ex2g4s = fields.m1().t();
|
|
1025
1025
|
while (_iterator__ex2g4s.u()) {
|
|
@@ -1062,7 +1062,7 @@ function toMessageRefs($this, $receiver, channelPointer) {
|
|
|
1062
1062
|
var element = _iterator__ex2g4s.v();
|
|
1063
1063
|
var tmp_2;
|
|
1064
1064
|
if (element instanceof JsonPrimitive_1) {
|
|
1065
|
-
tmp_2 = element.
|
|
1065
|
+
tmp_2 = element.r2o();
|
|
1066
1066
|
} else {
|
|
1067
1067
|
tmp_2 = false;
|
|
1068
1068
|
}
|
|
@@ -1092,7 +1092,7 @@ function toMessageRefs($this, $receiver, channelPointer) {
|
|
|
1092
1092
|
var _iterator__ex2g4s_0 = tmp1_safe_receiver.t();
|
|
1093
1093
|
while (_iterator__ex2g4s_0.u()) {
|
|
1094
1094
|
var item = _iterator__ex2g4s_0.v();
|
|
1095
|
-
var tmp$ret$8 = (item instanceof JsonPrimitive_1 ? item : THROW_CCE()).
|
|
1095
|
+
var tmp$ret$8 = (item instanceof JsonPrimitive_1 ? item : THROW_CCE()).h1i();
|
|
1096
1096
|
destination.x(tmp$ret$8);
|
|
1097
1097
|
}
|
|
1098
1098
|
tmp_3 = toMessageRefs_0($this, toSet(destination), channelPointer);
|
|
@@ -1113,7 +1113,7 @@ function toMessageRefs_0($this, $receiver, channelPointer) {
|
|
|
1113
1113
|
return new JsonArray(destination);
|
|
1114
1114
|
}
|
|
1115
1115
|
function toOperationV2($this, $receiver, messages) {
|
|
1116
|
-
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().
|
|
1116
|
+
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().p4q($receiver);
|
|
1117
1117
|
var tmp;
|
|
1118
1118
|
if (tmp0_safe_receiver == null) {
|
|
1119
1119
|
tmp = null;
|
|
@@ -1125,9 +1125,9 @@ function toOperationV2($this, $receiver, messages) {
|
|
|
1125
1125
|
var tmp0_elvis_lhs = tmp;
|
|
1126
1126
|
var tmp_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1127
1127
|
// Inline function 'kotlin.collections.mapValues' call
|
|
1128
|
-
var this_0 = AsyncAPIAnnotations_getInstance().
|
|
1128
|
+
var this_0 = AsyncAPIAnnotations_getInstance().r4q($receiver);
|
|
1129
1129
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
1130
|
-
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.
|
|
1130
|
+
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.c1()));
|
|
1131
1131
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
1132
1132
|
var _iterator__ex2g4s = this_0.m1().t();
|
|
1133
1133
|
while (_iterator__ex2g4s.u()) {
|
|
@@ -1146,12 +1146,12 @@ function toMessage_0($this, $receiver, messages) {
|
|
|
1146
1146
|
var tmp;
|
|
1147
1147
|
var tmp_0;
|
|
1148
1148
|
if ($receiver instanceof JsonPrimitive_1) {
|
|
1149
|
-
tmp_0 = $receiver.
|
|
1149
|
+
tmp_0 = $receiver.r2o();
|
|
1150
1150
|
} else {
|
|
1151
1151
|
tmp_0 = false;
|
|
1152
1152
|
}
|
|
1153
1153
|
if (tmp_0) {
|
|
1154
|
-
var tmp0_elvis_lhs = messages.s2($receiver.
|
|
1154
|
+
var tmp0_elvis_lhs = messages.s2($receiver.h1i());
|
|
1155
1155
|
tmp = tmp0_elvis_lhs == null ? $receiver : tmp0_elvis_lhs;
|
|
1156
1156
|
} else {
|
|
1157
1157
|
var tmp_1;
|
|
@@ -1174,7 +1174,7 @@ function toMessage_0($this, $receiver, messages) {
|
|
|
1174
1174
|
var element = _iterator__ex2g4s.v();
|
|
1175
1175
|
var tmp_3;
|
|
1176
1176
|
if (element instanceof JsonPrimitive_1) {
|
|
1177
|
-
tmp_3 = element.
|
|
1177
|
+
tmp_3 = element.r2o();
|
|
1178
1178
|
} else {
|
|
1179
1179
|
tmp_3 = false;
|
|
1180
1180
|
}
|
|
@@ -1196,7 +1196,7 @@ function toMessage_0($this, $receiver, messages) {
|
|
|
1196
1196
|
var _iterator__ex2g4s_0 = $receiver.t();
|
|
1197
1197
|
while (_iterator__ex2g4s_0.u()) {
|
|
1198
1198
|
var item = _iterator__ex2g4s_0.v();
|
|
1199
|
-
var tmp0_elvis_lhs_0 = messages.s2((item instanceof JsonPrimitive_1 ? item : THROW_CCE()).
|
|
1199
|
+
var tmp0_elvis_lhs_0 = messages.s2((item instanceof JsonPrimitive_1 ? item : THROW_CCE()).h1i());
|
|
1200
1200
|
var tmp$ret$4 = tmp0_elvis_lhs_0 == null ? item : tmp0_elvis_lhs_0;
|
|
1201
1201
|
destination.x(tmp$ret$4);
|
|
1202
1202
|
}
|
|
@@ -1208,40 +1208,40 @@ function toMessage_0($this, $receiver, messages) {
|
|
|
1208
1208
|
return tmp;
|
|
1209
1209
|
}
|
|
1210
1210
|
function components($this) {
|
|
1211
|
-
var tmp0_safe_receiver = $this.
|
|
1211
|
+
var tmp0_safe_receiver = $this.v4q_1;
|
|
1212
1212
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jp_1;
|
|
1213
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().
|
|
1214
|
-
var fields = tmp2_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().
|
|
1213
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().o4q(tmp1_safe_receiver, 'AsyncAPIComponents');
|
|
1214
|
+
var fields = tmp2_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().r4q(tmp2_safe_receiver);
|
|
1215
1215
|
// Inline function 'kotlin.collections.associate' call
|
|
1216
|
-
var this_0 = $this.
|
|
1216
|
+
var this_0 = $this.z4q_1;
|
|
1217
1217
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1218
1218
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1219
1219
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
1220
1220
|
var _iterator__ex2g4s = this_0.t();
|
|
1221
1221
|
while (_iterator__ex2g4s.u()) {
|
|
1222
1222
|
var element = _iterator__ex2g4s.v();
|
|
1223
|
-
var tmp = getValue($this.
|
|
1223
|
+
var tmp = getValue($this.a4r_1, element.ds().o1());
|
|
1224
1224
|
// Inline function 'kotlin.with' call
|
|
1225
|
-
var tmp$ret$3 = $this.
|
|
1225
|
+
var tmp$ret$3 = $this.b4r_1.m4r(element);
|
|
1226
1226
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1227
1227
|
var pair = to(tmp, tmp$ret$3);
|
|
1228
1228
|
destination.v2(pair.ff_1, pair.gf_1);
|
|
1229
1229
|
}
|
|
1230
1230
|
var schemas = destination;
|
|
1231
1231
|
var tmp_0 = AsyncAPIAnnotations_getInstance();
|
|
1232
|
-
var tmp3_safe_receiver = $this.
|
|
1232
|
+
var tmp3_safe_receiver = $this.v4q_1;
|
|
1233
1233
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1234
1234
|
var tmp0_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.jp_1;
|
|
1235
1235
|
var tmp$ret$6 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1236
1236
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1237
|
-
var tmp0 = tmp_0.
|
|
1237
|
+
var tmp0 = tmp_0.d4p(tmp$ret$6, 'AsyncAPIMessage');
|
|
1238
1238
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1239
1239
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
1240
1240
|
// Inline function 'kotlin.collections.forEach' call
|
|
1241
1241
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
1242
1242
|
while (_iterator__ex2g4s_0.u()) {
|
|
1243
1243
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1244
|
-
var tmp0_safe_receiver_0 = AsyncAPIAnnotations_getInstance().
|
|
1244
|
+
var tmp0_safe_receiver_0 = AsyncAPIAnnotations_getInstance().p4q(element_0);
|
|
1245
1245
|
var tmp_1;
|
|
1246
1246
|
if (tmp0_safe_receiver_0 == null) {
|
|
1247
1247
|
tmp_1 = null;
|
|
@@ -1259,9 +1259,9 @@ function components($this) {
|
|
|
1259
1259
|
}
|
|
1260
1260
|
var tmp_2 = toMap(destination_0);
|
|
1261
1261
|
// Inline function 'kotlin.takeUnless' call
|
|
1262
|
-
var this_1 = $this.
|
|
1262
|
+
var this_1 = $this.c4r_1;
|
|
1263
1263
|
var tmp_3;
|
|
1264
|
-
if (!$this.
|
|
1264
|
+
if (!$this.w4q_1) {
|
|
1265
1265
|
tmp_3 = this_1;
|
|
1266
1266
|
} else {
|
|
1267
1267
|
tmp_3 = null;
|
|
@@ -1275,7 +1275,7 @@ function components($this) {
|
|
|
1275
1275
|
var _iterator__ex2g4s_1 = tmp0_0.t();
|
|
1276
1276
|
while (_iterator__ex2g4s_1.u()) {
|
|
1277
1277
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
1278
|
-
if (!AsyncAPIAnnotations_getInstance().
|
|
1278
|
+
if (!AsyncAPIAnnotations_getInstance().b4p(element_1.wq_1, 'AsyncAPIMessage')) {
|
|
1279
1279
|
destination_1.x(element_1);
|
|
1280
1280
|
}
|
|
1281
1281
|
}
|
|
@@ -1289,7 +1289,7 @@ function components($this) {
|
|
|
1289
1289
|
var tmp_4 = defaultMessageKey($this, element_2);
|
|
1290
1290
|
var tmp_5 = to('name', JsonPrimitive_0(defaultMessageKey($this, element_2)));
|
|
1291
1291
|
// Inline function 'kotlin.with' call
|
|
1292
|
-
var tmp$ret$25 = $this.
|
|
1292
|
+
var tmp$ret$25 = $this.b4r_1.l4r(element_2.yq_1);
|
|
1293
1293
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1294
1294
|
var pair_0 = to(tmp_4, jsonObjectOf([tmp_5, to('payload', tmp$ret$25)]));
|
|
1295
1295
|
destination_2.v2(pair_0.ff_1, pair_0.gf_1);
|
|
@@ -1323,9 +1323,9 @@ function components($this) {
|
|
|
1323
1323
|
}
|
|
1324
1324
|
function Companion() {
|
|
1325
1325
|
Companion_instance_1 = this;
|
|
1326
|
-
this.
|
|
1327
|
-
this.
|
|
1328
|
-
this.
|
|
1326
|
+
this.g4r_1 = '$ref';
|
|
1327
|
+
this.h4r_1 = setOf(['payload', 'headers']);
|
|
1328
|
+
this.i4r_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'))]);
|
|
1329
1329
|
}
|
|
1330
1330
|
var Companion_instance_1;
|
|
1331
1331
|
function Companion_getInstance() {
|
|
@@ -1342,7 +1342,7 @@ function Map$get$ref(p0) {
|
|
|
1342
1342
|
}
|
|
1343
1343
|
function WirespecToAsyncAPI$writer$lambda(this$0) {
|
|
1344
1344
|
return function (it) {
|
|
1345
|
-
var tmp0_elvis_lhs = this$0.
|
|
1345
|
+
var tmp0_elvis_lhs = this$0.a4r_1.s2(it);
|
|
1346
1346
|
return tmp0_elvis_lhs == null ? it : tmp0_elvis_lhs;
|
|
1347
1347
|
};
|
|
1348
1348
|
}
|
|
@@ -1366,15 +1366,15 @@ function WirespecToAsyncAPI(definitions) {
|
|
|
1366
1366
|
var _iterator__ex2g4s_0 = destination.t();
|
|
1367
1367
|
while (_iterator__ex2g4s_0.u()) {
|
|
1368
1368
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1369
|
-
if (AsyncAPIAnnotations_getInstance().
|
|
1369
|
+
if (AsyncAPIAnnotations_getInstance().b4p(element_0.jp_1, 'AsyncAPIDocument')) {
|
|
1370
1370
|
tmp$ret$3 = element_0;
|
|
1371
1371
|
break $l$block;
|
|
1372
1372
|
}
|
|
1373
1373
|
}
|
|
1374
1374
|
tmp$ret$3 = null;
|
|
1375
1375
|
}
|
|
1376
|
-
tmp.
|
|
1377
|
-
this.
|
|
1376
|
+
tmp.v4q_1 = tmp$ret$3;
|
|
1377
|
+
this.w4q_1 = !(this.v4q_1 == null);
|
|
1378
1378
|
var tmp_0 = this;
|
|
1379
1379
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1380
1380
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
@@ -1392,20 +1392,20 @@ function WirespecToAsyncAPI(definitions) {
|
|
|
1392
1392
|
var _iterator__ex2g4s_2 = destination_0.t();
|
|
1393
1393
|
while (_iterator__ex2g4s_2.u()) {
|
|
1394
1394
|
var element_2 = _iterator__ex2g4s_2.v();
|
|
1395
|
-
if (!equals(element_2, this.
|
|
1395
|
+
if (!equals(element_2, this.v4q_1)) {
|
|
1396
1396
|
destination_1.x(element_2);
|
|
1397
1397
|
}
|
|
1398
1398
|
}
|
|
1399
|
-
tmp_0.
|
|
1399
|
+
tmp_0.x4q_1 = destination_1;
|
|
1400
1400
|
var tmp_1 = this;
|
|
1401
1401
|
// Inline function 'kotlin.collections.filter' call
|
|
1402
|
-
var tmp0 = this.
|
|
1402
|
+
var tmp0 = this.x4q_1;
|
|
1403
1403
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1404
1404
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
1405
1405
|
var _iterator__ex2g4s_3 = tmp0.t();
|
|
1406
1406
|
while (_iterator__ex2g4s_3.u()) {
|
|
1407
1407
|
var element_3 = _iterator__ex2g4s_3.v();
|
|
1408
|
-
if (AsyncAPIAnnotations_getInstance().
|
|
1408
|
+
if (AsyncAPIAnnotations_getInstance().b4p(element_3.i1e(), 'AsyncAPIInline')) {
|
|
1409
1409
|
destination_2.x(element_3);
|
|
1410
1410
|
}
|
|
1411
1411
|
}
|
|
@@ -1419,23 +1419,23 @@ function WirespecToAsyncAPI(definitions) {
|
|
|
1419
1419
|
var tmp$ret$15 = element_4.ds().o1();
|
|
1420
1420
|
destination_3.v2(tmp$ret$15, element_4);
|
|
1421
1421
|
}
|
|
1422
|
-
tmp_1.
|
|
1422
|
+
tmp_1.y4q_1 = destination_3;
|
|
1423
1423
|
var tmp_2 = this;
|
|
1424
1424
|
// Inline function 'kotlin.collections.filterNot' call
|
|
1425
|
-
var tmp0_0 = this.
|
|
1425
|
+
var tmp0_0 = this.x4q_1;
|
|
1426
1426
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
1427
1427
|
var destination_4 = ArrayList_init_$Create$_0();
|
|
1428
1428
|
var _iterator__ex2g4s_5 = tmp0_0.t();
|
|
1429
1429
|
while (_iterator__ex2g4s_5.u()) {
|
|
1430
1430
|
var element_5 = _iterator__ex2g4s_5.v();
|
|
1431
|
-
if (!AsyncAPIAnnotations_getInstance().
|
|
1431
|
+
if (!AsyncAPIAnnotations_getInstance().b4p(element_5.i1e(), 'AsyncAPIInline')) {
|
|
1432
1432
|
destination_4.x(element_5);
|
|
1433
1433
|
}
|
|
1434
1434
|
}
|
|
1435
|
-
tmp_2.
|
|
1435
|
+
tmp_2.z4q_1 = destination_4;
|
|
1436
1436
|
var tmp_3 = this;
|
|
1437
1437
|
// Inline function 'kotlin.collections.associate' call
|
|
1438
|
-
var this_0 = this.
|
|
1438
|
+
var this_0 = this.z4q_1;
|
|
1439
1439
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1440
1440
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1441
1441
|
var destination_5 = LinkedHashMap_init_$Create$(capacity_0);
|
|
@@ -1443,15 +1443,15 @@ function WirespecToAsyncAPI(definitions) {
|
|
|
1443
1443
|
while (_iterator__ex2g4s_6.u()) {
|
|
1444
1444
|
var element_6 = _iterator__ex2g4s_6.v();
|
|
1445
1445
|
var tmp_4 = element_6.ds().o1();
|
|
1446
|
-
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().
|
|
1446
|
+
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().h4p(element_6.i1e(), 'AsyncAPIName');
|
|
1447
1447
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1448
1448
|
var pair = to(tmp_4, tmp0_elvis_lhs == null ? element_6.ds().o1() : tmp0_elvis_lhs);
|
|
1449
1449
|
destination_5.v2(pair.ff_1, pair.gf_1);
|
|
1450
1450
|
}
|
|
1451
|
-
tmp_3.
|
|
1451
|
+
tmp_3.a4r_1 = destination_5;
|
|
1452
1452
|
var tmp_5 = this;
|
|
1453
|
-
var tmp_6 = Map$get$ref(this.
|
|
1454
|
-
tmp_5.
|
|
1453
|
+
var tmp_6 = Map$get$ref(this.y4q_1);
|
|
1454
|
+
tmp_5.b4r_1 = new JsonSchemaWriter(tmp_6, WirespecToAsyncAPI$writer$lambda(this));
|
|
1455
1455
|
var tmp_7 = this;
|
|
1456
1456
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1457
1457
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
@@ -1463,28 +1463,28 @@ function WirespecToAsyncAPI(definitions) {
|
|
|
1463
1463
|
destination_6.x(element_7);
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
|
-
tmp_7.
|
|
1466
|
+
tmp_7.c4r_1 = destination_6;
|
|
1467
1467
|
var tmp_8 = this;
|
|
1468
|
-
var tmp0_safe_receiver = this.
|
|
1468
|
+
var tmp0_safe_receiver = this.v4q_1;
|
|
1469
1469
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jp_1;
|
|
1470
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().
|
|
1471
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().
|
|
1472
|
-
tmp_8.
|
|
1470
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().o4q(tmp1_safe_receiver, 'AsyncAPIDocument');
|
|
1471
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().r4q(tmp2_safe_receiver);
|
|
1472
|
+
tmp_8.d4r_1 = tmp3_elvis_lhs == null ? Companion_getInstance().i4r_1 : tmp3_elvis_lhs;
|
|
1473
1473
|
var tmp_9 = this;
|
|
1474
1474
|
var tmp_10;
|
|
1475
|
-
var tmp_11 = this.
|
|
1475
|
+
var tmp_11 = this.d4r_1.kd('asyncapi');
|
|
1476
1476
|
var tmp0_safe_receiver_0 = tmp_11 instanceof JsonPrimitive_1 ? tmp_11 : null;
|
|
1477
|
-
var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.
|
|
1477
|
+
var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.h1i();
|
|
1478
1478
|
if ((tmp1_safe_receiver_0 == null ? null : startsWith(tmp1_safe_receiver_0, '2.')) === true) {
|
|
1479
1479
|
tmp_10 = 2;
|
|
1480
1480
|
} else {
|
|
1481
1481
|
tmp_10 = 3;
|
|
1482
1482
|
}
|
|
1483
|
-
tmp_9.
|
|
1483
|
+
tmp_9.e4r_1 = tmp_10;
|
|
1484
1484
|
}
|
|
1485
|
-
protoOf(WirespecToAsyncAPI).
|
|
1485
|
+
protoOf(WirespecToAsyncAPI).f4r = function () {
|
|
1486
1486
|
// Inline function 'kotlin.collections.associate' call
|
|
1487
|
-
var this_0 = this.
|
|
1487
|
+
var this_0 = this.c4r_1;
|
|
1488
1488
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1489
1489
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1490
1490
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -1499,19 +1499,19 @@ protoOf(WirespecToAsyncAPI).w4o = function () {
|
|
|
1499
1499
|
// Inline function 'kotlin.takeIf' call
|
|
1500
1500
|
var this_1 = operations(this);
|
|
1501
1501
|
var tmp_0;
|
|
1502
|
-
if (this.
|
|
1502
|
+
if (this.e4r_1 === 3) {
|
|
1503
1503
|
tmp_0 = this_1;
|
|
1504
1504
|
} else {
|
|
1505
1505
|
tmp_0 = null;
|
|
1506
1506
|
}
|
|
1507
1507
|
var tmp0_safe_receiver = tmp_0;
|
|
1508
|
-
return new JsonObject(plus_0(this.
|
|
1508
|
+
return new JsonObject(plus_0(this.d4r_1, jsonObjectOf([tmp, to('operations', tmp0_safe_receiver == null ? null : toJsonObjectOrNull(tmp0_safe_receiver)), to('components', components(this))])));
|
|
1509
1509
|
};
|
|
1510
1510
|
function AsyncAPIParser() {
|
|
1511
1511
|
}
|
|
1512
|
-
protoOf(AsyncAPIParser).
|
|
1512
|
+
protoOf(AsyncAPIParser).p31 = function (moduleContent, strict) {
|
|
1513
1513
|
// Inline function 'kotlin.let' call
|
|
1514
|
-
var it = Default_getInstance().
|
|
1514
|
+
var it = Default_getInstance().p2m(moduleContent.do_1);
|
|
1515
1515
|
var tmp0_elvis_lhs = it instanceof JsonObject ? it : null;
|
|
1516
1516
|
var tmp;
|
|
1517
1517
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1524,7 +1524,7 @@ protoOf(AsyncAPIParser).q30 = function (moduleContent, strict) {
|
|
|
1524
1524
|
// Inline function 'kotlin.let' call
|
|
1525
1525
|
var it_0 = tmp;
|
|
1526
1526
|
// Inline function 'kotlin.let' call
|
|
1527
|
-
var it_1 = (new AsyncAPIConverter(it_0)).
|
|
1527
|
+
var it_1 = (new AsyncAPIConverter(it_0)).c4s();
|
|
1528
1528
|
return new Root(nonEmptyListOf(new Module(moduleContent.co_1, it_1), []));
|
|
1529
1529
|
};
|
|
1530
1530
|
var AsyncAPIParser_instance;
|
|
@@ -1534,7 +1534,7 @@ function AsyncAPIParser_getInstance() {
|
|
|
1534
1534
|
function AsyncAPIConverter$Companion$primitive$lambda(it) {
|
|
1535
1535
|
// Inline function 'kotlin.takeIf' call
|
|
1536
1536
|
var tmp;
|
|
1537
|
-
if (Companion_getInstance_0().
|
|
1537
|
+
if (Companion_getInstance_0().f4s_1.rc(it)) {
|
|
1538
1538
|
tmp = it;
|
|
1539
1539
|
} else {
|
|
1540
1540
|
tmp = null;
|
|
@@ -1544,7 +1544,7 @@ function AsyncAPIConverter$Companion$primitive$lambda(it) {
|
|
|
1544
1544
|
function AsyncAPIConverter$Companion$primitive$lambda_0(it) {
|
|
1545
1545
|
// Inline function 'kotlin.takeIf' call
|
|
1546
1546
|
var tmp;
|
|
1547
|
-
if (Companion_getInstance_0().
|
|
1547
|
+
if (Companion_getInstance_0().g4s_1.rc(it)) {
|
|
1548
1548
|
tmp = it;
|
|
1549
1549
|
} else {
|
|
1550
1550
|
tmp = null;
|
|
@@ -1587,15 +1587,15 @@ function AsyncAPIConverter$Companion$toIdentifier$lambda(it) {
|
|
|
1587
1587
|
return tmp;
|
|
1588
1588
|
}
|
|
1589
1589
|
function holder($this, messages, operations) {
|
|
1590
|
-
var tmp = listOf(AsyncAPIAnnotations_getInstance().
|
|
1591
|
-
var tmp0_safe_receiver = $this.
|
|
1590
|
+
var tmp = listOf(AsyncAPIAnnotations_getInstance().i4q('AsyncAPIDocument', VOID, AsyncAPIAnnotations_getInstance().m4q(documentFields($this, $this.n4r_1))));
|
|
1591
|
+
var tmp0_safe_receiver = $this.q4r_1;
|
|
1592
1592
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : componentFields($this, tmp0_safe_receiver);
|
|
1593
1593
|
var tmp_0;
|
|
1594
1594
|
if (tmp1_safe_receiver == null) {
|
|
1595
1595
|
tmp_0 = null;
|
|
1596
1596
|
} else {
|
|
1597
1597
|
// Inline function 'kotlin.let' call
|
|
1598
|
-
tmp_0 = AsyncAPIAnnotations_getInstance().
|
|
1598
|
+
tmp_0 = AsyncAPIAnnotations_getInstance().i4q('AsyncAPIComponents', VOID, AsyncAPIAnnotations_getInstance().m4q(tmp1_safe_receiver));
|
|
1599
1599
|
}
|
|
1600
1600
|
var tmp_1 = plus(tmp, listOfNotNull(tmp_0));
|
|
1601
1601
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1604,7 +1604,7 @@ function holder($this, messages, operations) {
|
|
|
1604
1604
|
var _iterator__ex2g4s = messages.t();
|
|
1605
1605
|
while (_iterator__ex2g4s.u()) {
|
|
1606
1606
|
var item = _iterator__ex2g4s.v();
|
|
1607
|
-
var tmp$ret$4 = item.
|
|
1607
|
+
var tmp$ret$4 = item.j4s_1;
|
|
1608
1608
|
destination.x(tmp$ret$4);
|
|
1609
1609
|
}
|
|
1610
1610
|
var tmp_2 = plus(tmp_1, destination);
|
|
@@ -1619,7 +1619,7 @@ function holder($this, messages, operations) {
|
|
|
1619
1619
|
var tmp$ret$7 = toAnnotation($this, operation, key, null);
|
|
1620
1620
|
destination_0.x(tmp$ret$7);
|
|
1621
1621
|
}
|
|
1622
|
-
return new Type(null, plus(tmp_2, destination_0), new DefinitionIdentifier($this.
|
|
1622
|
+
return new Type(null, plus(tmp_2, destination_0), new DefinitionIdentifier($this.u4r_1), new Shape(emptyList()), emptyList());
|
|
1623
1623
|
}
|
|
1624
1624
|
function documentFields($this, $receiver) {
|
|
1625
1625
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -1636,10 +1636,10 @@ function documentFields($this, $receiver) {
|
|
|
1636
1636
|
var tmp;
|
|
1637
1637
|
switch (key) {
|
|
1638
1638
|
case 'channels':
|
|
1639
|
-
tmp = Companion_getInstance_0().
|
|
1639
|
+
tmp = Companion_getInstance_0().m4s(value);
|
|
1640
1640
|
break;
|
|
1641
1641
|
case 'operations':
|
|
1642
|
-
tmp = ($this.
|
|
1642
|
+
tmp = ($this.o4r_1 === 3 && Companion_getInstance_0().m4s(value));
|
|
1643
1643
|
break;
|
|
1644
1644
|
case 'components':
|
|
1645
1645
|
tmp = value instanceof JsonObject;
|
|
@@ -1684,7 +1684,7 @@ function componentFields($this, $receiver) {
|
|
|
1684
1684
|
var it = entry.n1();
|
|
1685
1685
|
// Inline function 'kotlin.collections.contains' call
|
|
1686
1686
|
// Inline function 'kotlin.collections.containsKey' call
|
|
1687
|
-
var this_0 = $this.
|
|
1687
|
+
var this_0 = $this.s4r_1;
|
|
1688
1688
|
if (!(isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).q2(it)) {
|
|
1689
1689
|
result.v2(entry.n1(), entry.o1());
|
|
1690
1690
|
}
|
|
@@ -1714,7 +1714,7 @@ function componentFields($this, $receiver) {
|
|
|
1714
1714
|
}
|
|
1715
1715
|
tmp = tmp_3;
|
|
1716
1716
|
} else {
|
|
1717
|
-
if (key === 'messages' && Companion_getInstance_0().
|
|
1717
|
+
if (key === 'messages' && Companion_getInstance_0().m4s(value)) {
|
|
1718
1718
|
tmp = null;
|
|
1719
1719
|
} else {
|
|
1720
1720
|
tmp = to(key, value);
|
|
@@ -1743,13 +1743,13 @@ function channelV3($this, key, element, operations) {
|
|
|
1743
1743
|
}
|
|
1744
1744
|
var channel_0 = tmp;
|
|
1745
1745
|
var identifier = claimChannel($this, key);
|
|
1746
|
-
var ref = Companion_getInstance_0().
|
|
1746
|
+
var ref = Companion_getInstance_0().n4s(channel_0);
|
|
1747
1747
|
var tmp_0;
|
|
1748
1748
|
if (ref == null) {
|
|
1749
1749
|
// Inline function 'kotlin.collections.map' call
|
|
1750
|
-
var this_0 = orEmpty(Companion_getInstance_0().
|
|
1750
|
+
var this_0 = orEmpty(Companion_getInstance_0().p4s(channel_0, 'messages'));
|
|
1751
1751
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1752
|
-
var destination = ArrayList_init_$Create$(this_0.
|
|
1752
|
+
var destination = ArrayList_init_$Create$(this_0.c1());
|
|
1753
1753
|
// Inline function 'kotlin.collections.iterator' call
|
|
1754
1754
|
var _iterator__ex2g4s = this_0.m1().t();
|
|
1755
1755
|
while (_iterator__ex2g4s.u()) {
|
|
@@ -1762,19 +1762,19 @@ function channelV3($this, key, element, operations) {
|
|
|
1762
1762
|
destination.x(tmp$ret$4);
|
|
1763
1763
|
}
|
|
1764
1764
|
// Inline function 'kotlin.let' call
|
|
1765
|
-
var tmp_1 = plus(AsyncAPIAnnotations_getInstance().
|
|
1765
|
+
var tmp_1 = plus(AsyncAPIAnnotations_getInstance().j4q(Companion_getInstance_0().q4s(channel_0)), nameAnnotation($this, key, Companion_getInstance_0().o4s(identifier)));
|
|
1766
1766
|
var tmp_2 = AsyncAPIAnnotations_getInstance();
|
|
1767
1767
|
var tmp_3 = AsyncAPIAnnotations_getInstance();
|
|
1768
1768
|
var tmp_4 = Companion_getInstance_0();
|
|
1769
1769
|
var tmp_5 = to('description', AsyncAPIConverter$channelV3$lambda);
|
|
1770
|
-
var tmp_6 = plus_2(tmp_1, tmp_2.
|
|
1770
|
+
var tmp_6 = plus_2(tmp_1, tmp_2.i4q('AsyncAPIChannel', VOID, tmp_3.m4q(new JsonObject(tmp_4.r4s(channel_0, [tmp_5, to('messages', AsyncAPIConverter$channelV3$lambda_0)])))));
|
|
1771
1771
|
// Inline function 'kotlin.collections.map' call
|
|
1772
1772
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1773
1773
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
1774
1774
|
var _iterator__ex2g4s_0 = destination.t();
|
|
1775
1775
|
while (_iterator__ex2g4s_0.u()) {
|
|
1776
1776
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
1777
|
-
var tmp$ret$11 = item_0.
|
|
1777
|
+
var tmp$ret$11 = item_0.j4s_1;
|
|
1778
1778
|
destination_0.x(tmp$ret$11);
|
|
1779
1779
|
}
|
|
1780
1780
|
var tmp_7 = plus(tmp_6, destination_0);
|
|
@@ -1796,12 +1796,12 @@ function channelV3($this, key, element, operations) {
|
|
|
1796
1796
|
var _iterator__ex2g4s_2 = destination.t();
|
|
1797
1797
|
while (_iterator__ex2g4s_2.u()) {
|
|
1798
1798
|
var item_2 = _iterator__ex2g4s_2.v();
|
|
1799
|
-
var tmp$ret$17 = new Converted(item_2.
|
|
1799
|
+
var tmp$ret$17 = new Converted(item_2.k4s_1, item_2.l4s_1);
|
|
1800
1800
|
destination_2.x(tmp$ret$17);
|
|
1801
1801
|
}
|
|
1802
1802
|
tmp_0 = channel($this, identifier, tmp_8, destination_2);
|
|
1803
1803
|
} else {
|
|
1804
|
-
var tmp_9 = plus_2(nameAnnotation($this, key, Companion_getInstance_0().
|
|
1804
|
+
var tmp_9 = plus_2(nameAnnotation($this, key, Companion_getInstance_0().o4s(identifier)), AsyncAPIAnnotations_getInstance().i4q('AsyncAPIChannel', VOID, AsyncAPIAnnotations_getInstance().m4q(channel_0)));
|
|
1805
1805
|
// Inline function 'kotlin.collections.map' call
|
|
1806
1806
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1807
1807
|
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(operations, 10));
|
|
@@ -1817,9 +1817,9 @@ function channelV3($this, key, element, operations) {
|
|
|
1817
1817
|
var tmp_11 = lookup($this, ref);
|
|
1818
1818
|
var tmp1_safe_receiver = tmp_11 instanceof JsonObject ? tmp_11 : null;
|
|
1819
1819
|
// Inline function 'kotlin.collections.map' call
|
|
1820
|
-
var this_1 = orEmpty(tmp1_safe_receiver == null ? null : Companion_getInstance_0().
|
|
1820
|
+
var this_1 = orEmpty(tmp1_safe_receiver == null ? null : Companion_getInstance_0().p4s(tmp1_safe_receiver, 'messages'));
|
|
1821
1821
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1822
|
-
var destination_4 = ArrayList_init_$Create$(this_1.
|
|
1822
|
+
var destination_4 = ArrayList_init_$Create$(this_1.c1());
|
|
1823
1823
|
// Inline function 'kotlin.collections.iterator' call
|
|
1824
1824
|
var _iterator__ex2g4s_4 = this_1.m1().t();
|
|
1825
1825
|
while (_iterator__ex2g4s_4.u()) {
|
|
@@ -1830,7 +1830,7 @@ function channelV3($this, key, element, operations) {
|
|
|
1830
1830
|
var message_2 = item_4.o1();
|
|
1831
1831
|
// Inline function 'kotlin.let' call
|
|
1832
1832
|
var it = message($this, messageKey_0, ref + '/messages/' + escapePointer(messageKey_0), message_2);
|
|
1833
|
-
var tmp$ret$24 = new Converted(it.
|
|
1833
|
+
var tmp$ret$24 = new Converted(it.k4s_1, it.l4s_1);
|
|
1834
1834
|
destination_4.x(tmp$ret$24);
|
|
1835
1835
|
}
|
|
1836
1836
|
tmp_0 = channel($this, identifier, tmp_10, destination_4);
|
|
@@ -1858,7 +1858,7 @@ function channelV2($this, address, element) {
|
|
|
1858
1858
|
var _iterator__ex2g4s = tmp0.t();
|
|
1859
1859
|
while (_iterator__ex2g4s.u()) {
|
|
1860
1860
|
var element_0 = _iterator__ex2g4s.v();
|
|
1861
|
-
var tmp0_safe_receiver = Companion_getInstance_0().
|
|
1861
|
+
var tmp0_safe_receiver = Companion_getInstance_0().p4s(channel_0, element_0.r4p_1);
|
|
1862
1862
|
var tmp_0;
|
|
1863
1863
|
if (tmp0_safe_receiver == null) {
|
|
1864
1864
|
tmp_0 = null;
|
|
@@ -1876,7 +1876,7 @@ function channelV2($this, address, element) {
|
|
|
1876
1876
|
}
|
|
1877
1877
|
// Inline function 'kotlin.takeIf' call
|
|
1878
1878
|
var tmp_1;
|
|
1879
|
-
if (Companion_getInstance_0().
|
|
1879
|
+
if (Companion_getInstance_0().n4s(channel_0) == null) {
|
|
1880
1880
|
tmp_1 = destination;
|
|
1881
1881
|
} else {
|
|
1882
1882
|
tmp_1 = null;
|
|
@@ -1892,7 +1892,7 @@ function channelV2($this, address, element) {
|
|
|
1892
1892
|
var item = _iterator__ex2g4s_0.v();
|
|
1893
1893
|
var action = item.ze();
|
|
1894
1894
|
var operation = item.af();
|
|
1895
|
-
var messagePointer = pointer + '/' + action.
|
|
1895
|
+
var messagePointer = pointer + '/' + action.r4p_1 + '/message';
|
|
1896
1896
|
var message_1 = operation.kd('message');
|
|
1897
1897
|
var tmp_2;
|
|
1898
1898
|
if (message_1 == null) {
|
|
@@ -1971,7 +1971,7 @@ function channelV2($this, address, element) {
|
|
|
1971
1971
|
var _iterator__ex2g4s_3 = destination_2.t();
|
|
1972
1972
|
while (_iterator__ex2g4s_3.u()) {
|
|
1973
1973
|
var e = _iterator__ex2g4s_3.v();
|
|
1974
|
-
var key = e.
|
|
1974
|
+
var key = e.s4s_1;
|
|
1975
1975
|
if (set.x(key)) {
|
|
1976
1976
|
list_0.x(e);
|
|
1977
1977
|
}
|
|
@@ -1992,7 +1992,7 @@ function channelV2($this, address, element) {
|
|
|
1992
1992
|
var tmp$ret$34 = item_1.ff_1;
|
|
1993
1993
|
destination_3.x(tmp$ret$34);
|
|
1994
1994
|
}
|
|
1995
|
-
accumulator = plus_2(keys, to(tmp_8.
|
|
1995
|
+
accumulator = plus_2(keys, to(tmp_8.w4s(element_2.v4s_1, toSet(destination_3)), element_2));
|
|
1996
1996
|
}
|
|
1997
1997
|
var keys_0 = accumulator;
|
|
1998
1998
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -2005,7 +2005,7 @@ function channelV2($this, address, element) {
|
|
|
2005
2005
|
var key_0 = element_3.ze();
|
|
2006
2006
|
var message_2 = element_3.af();
|
|
2007
2007
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2008
|
-
var pair = to(message_2.
|
|
2008
|
+
var pair = to(message_2.s4s_1, key_0);
|
|
2009
2009
|
destination_4.v2(pair.ff_1, pair.gf_1);
|
|
2010
2010
|
}
|
|
2011
2011
|
var keyOf = destination_4;
|
|
@@ -2017,33 +2017,33 @@ function channelV2($this, address, element) {
|
|
|
2017
2017
|
var item_2 = _iterator__ex2g4s_7.v();
|
|
2018
2018
|
var key_1 = item_2.ze();
|
|
2019
2019
|
var message_3 = item_2.af();
|
|
2020
|
-
var tmp$ret$41 = message($this, key_1, message_3.
|
|
2020
|
+
var tmp$ret$41 = message($this, key_1, message_3.t4s_1, message_3.u4s_1);
|
|
2021
2021
|
destination_5.x(tmp$ret$41);
|
|
2022
2022
|
}
|
|
2023
2023
|
var messages = destination_5;
|
|
2024
2024
|
var tmp_9 = AsyncAPIAnnotations_getInstance();
|
|
2025
2025
|
// Inline function 'kotlin.takeIf' call
|
|
2026
2026
|
var tmp_10;
|
|
2027
|
-
if (Companion_getInstance_0().
|
|
2027
|
+
if (Companion_getInstance_0().n4s(channel_0) == null) {
|
|
2028
2028
|
tmp_10 = channel_0;
|
|
2029
2029
|
} else {
|
|
2030
2030
|
tmp_10 = null;
|
|
2031
2031
|
}
|
|
2032
2032
|
var tmp1_safe_receiver_0 = tmp_10;
|
|
2033
|
-
var tmp_11 = plus(tmp_9.
|
|
2033
|
+
var tmp_11 = plus(tmp_9.j4q(tmp1_safe_receiver_0 == null ? null : Companion_getInstance_0().q4s(tmp1_safe_receiver_0)), nameAnnotation($this, address, Companion_getInstance_0().o4s(identifier)));
|
|
2034
2034
|
var tmp_12 = AsyncAPIAnnotations_getInstance();
|
|
2035
2035
|
var tmp_13 = AsyncAPIAnnotations_getInstance();
|
|
2036
2036
|
var tmp_14;
|
|
2037
|
-
if (Companion_getInstance_0().
|
|
2037
|
+
if (Companion_getInstance_0().n4s(channel_0) == null) {
|
|
2038
2038
|
var tmp_15 = Companion_getInstance_0();
|
|
2039
|
-
var tmp_16 = tmp_15.
|
|
2039
|
+
var tmp_16 = tmp_15.r4s(channel_0, [to('description', AsyncAPIConverter$channelV2$lambda)]);
|
|
2040
2040
|
// Inline function 'kotlin.collections.map' call
|
|
2041
2041
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2042
2042
|
var destination_6 = ArrayList_init_$Create$(collectionSizeOrDefault(operations, 10));
|
|
2043
2043
|
var _iterator__ex2g4s_8 = operations.t();
|
|
2044
2044
|
while (_iterator__ex2g4s_8.u()) {
|
|
2045
2045
|
var item_3 = _iterator__ex2g4s_8.v();
|
|
2046
|
-
var tmp$ret$46 = item_3.ff_1.
|
|
2046
|
+
var tmp$ret$46 = item_3.ff_1.r4p_1;
|
|
2047
2047
|
destination_6.x(tmp$ret$46);
|
|
2048
2048
|
}
|
|
2049
2049
|
tmp_14 = minus(tmp_16, toSet(destination_6));
|
|
@@ -2053,14 +2053,14 @@ function channelV2($this, address, element) {
|
|
|
2053
2053
|
// Inline function 'kotlin.let' call
|
|
2054
2054
|
var p0 = tmp_14;
|
|
2055
2055
|
var tmp$ret$47 = new JsonObject(p0);
|
|
2056
|
-
var tmp_17 = plus_2(tmp_11, tmp_12.
|
|
2056
|
+
var tmp_17 = plus_2(tmp_11, tmp_12.i4q('AsyncAPIChannel', VOID, tmp_13.m4q(tmp$ret$47)));
|
|
2057
2057
|
// Inline function 'kotlin.collections.map' call
|
|
2058
2058
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2059
2059
|
var destination_7 = ArrayList_init_$Create$(collectionSizeOrDefault(messages, 10));
|
|
2060
2060
|
var _iterator__ex2g4s_9 = messages.t();
|
|
2061
2061
|
while (_iterator__ex2g4s_9.u()) {
|
|
2062
2062
|
var item_4 = _iterator__ex2g4s_9.v();
|
|
2063
|
-
var tmp$ret$51 = item_4.
|
|
2063
|
+
var tmp$ret$51 = item_4.j4s_1;
|
|
2064
2064
|
destination_7.x(tmp$ret$51);
|
|
2065
2065
|
}
|
|
2066
2066
|
var tmp_18 = plus(tmp_17, destination_7);
|
|
@@ -2084,14 +2084,14 @@ function channelV2($this, address, element) {
|
|
|
2084
2084
|
var _iterator__ex2g4s_11 = messages_0.t();
|
|
2085
2085
|
while (_iterator__ex2g4s_11.u()) {
|
|
2086
2086
|
var item_6 = _iterator__ex2g4s_11.v();
|
|
2087
|
-
var tmp$ret$59 = getValue(keyOf, item_6.
|
|
2087
|
+
var tmp$ret$59 = getValue(keyOf, item_6.s4s_1);
|
|
2088
2088
|
destination_9.x(tmp$ret$59);
|
|
2089
2089
|
}
|
|
2090
2090
|
var _destruct__k2r9zo = to(destination_9, oneOf);
|
|
2091
2091
|
var operationKeys = _destruct__k2r9zo.ze();
|
|
2092
2092
|
var oneOf_0 = _destruct__k2r9zo.af();
|
|
2093
2093
|
var tmp_19 = AsyncAPIAnnotations_getInstance();
|
|
2094
|
-
var tmp_20 = action_0.
|
|
2094
|
+
var tmp_20 = action_0.s4p();
|
|
2095
2095
|
var tmp_21 = fields.kd('operationId');
|
|
2096
2096
|
var tmp0_safe_receiver_2 = tmp_21 instanceof JsonPrimitive_1 ? tmp_21 : null;
|
|
2097
2097
|
var tmp_22;
|
|
@@ -2100,7 +2100,7 @@ function channelV2($this, address, element) {
|
|
|
2100
2100
|
} else {
|
|
2101
2101
|
// Inline function 'kotlin.takeIf' call
|
|
2102
2102
|
var tmp_23;
|
|
2103
|
-
if (tmp0_safe_receiver_2.
|
|
2103
|
+
if (tmp0_safe_receiver_2.r2o()) {
|
|
2104
2104
|
tmp_23 = tmp0_safe_receiver_2;
|
|
2105
2105
|
} else {
|
|
2106
2106
|
tmp_23 = null;
|
|
@@ -2108,7 +2108,7 @@ function channelV2($this, address, element) {
|
|
|
2108
2108
|
tmp_22 = tmp_23;
|
|
2109
2109
|
}
|
|
2110
2110
|
var tmp1_safe_receiver_1 = tmp_22;
|
|
2111
|
-
var tmp_24 = tmp1_safe_receiver_1 == null ? null : tmp1_safe_receiver_1.
|
|
2111
|
+
var tmp_24 = tmp1_safe_receiver_1 == null ? null : tmp1_safe_receiver_1.h1i();
|
|
2112
2112
|
// Inline function 'kotlin.collections.filterNot' call
|
|
2113
2113
|
var tmp0_0 = fields.m1();
|
|
2114
2114
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
@@ -2120,7 +2120,7 @@ function channelV2($this, address, element) {
|
|
|
2120
2120
|
var field = element_4.n1();
|
|
2121
2121
|
// Inline function 'kotlin.collections.component2' call
|
|
2122
2122
|
var value = element_4.o1();
|
|
2123
|
-
if (!(field === 'operationId' && Companion_getInstance_0().
|
|
2123
|
+
if (!(field === 'operationId' && Companion_getInstance_0().x4s(value))) {
|
|
2124
2124
|
destination_10.x(element_4);
|
|
2125
2125
|
}
|
|
2126
2126
|
}
|
|
@@ -2137,7 +2137,7 @@ function channelV2($this, address, element) {
|
|
|
2137
2137
|
var tmp_25 = AsyncAPIAnnotations_getInstance();
|
|
2138
2138
|
var tmp_26;
|
|
2139
2139
|
if (!(field_0 === 'message')) {
|
|
2140
|
-
tmp_26 = AsyncAPIAnnotations_getInstance().
|
|
2140
|
+
tmp_26 = AsyncAPIAnnotations_getInstance().n4q(value_0);
|
|
2141
2141
|
} else if (oneOf_0) {
|
|
2142
2142
|
// Inline function 'kotlin.collections.map' call
|
|
2143
2143
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2145,17 +2145,17 @@ function channelV2($this, address, element) {
|
|
|
2145
2145
|
var _iterator__ex2g4s_14 = operationKeys.t();
|
|
2146
2146
|
while (_iterator__ex2g4s_14.u()) {
|
|
2147
2147
|
var item_8 = _iterator__ex2g4s_14.v();
|
|
2148
|
-
var tmp$ret$74 = AsyncAPIAnnotations_getInstance().
|
|
2148
|
+
var tmp$ret$74 = AsyncAPIAnnotations_getInstance().l4q(item_8);
|
|
2149
2149
|
destination_12.x(tmp$ret$74);
|
|
2150
2150
|
}
|
|
2151
2151
|
tmp_26 = new Array_0(destination_12);
|
|
2152
2152
|
} else {
|
|
2153
|
-
tmp_26 = AsyncAPIAnnotations_getInstance().
|
|
2153
|
+
tmp_26 = AsyncAPIAnnotations_getInstance().l4q(single(operationKeys));
|
|
2154
2154
|
}
|
|
2155
|
-
var tmp$ret$69 = tmp_25.
|
|
2155
|
+
var tmp$ret$69 = tmp_25.k4q(field_0, tmp_26);
|
|
2156
2156
|
destination_11.x(tmp$ret$69);
|
|
2157
2157
|
}
|
|
2158
|
-
var tmp$ret$54 = tmp_19.
|
|
2158
|
+
var tmp$ret$54 = tmp_19.h4q(tmp_20, tmp_24, destination_11);
|
|
2159
2159
|
destination_8.x(tmp$ret$54);
|
|
2160
2160
|
}
|
|
2161
2161
|
var tmp_27 = plus(tmp_18, destination_8);
|
|
@@ -2165,31 +2165,31 @@ function channelV2($this, address, element) {
|
|
|
2165
2165
|
var _iterator__ex2g4s_15 = messages.t();
|
|
2166
2166
|
while (_iterator__ex2g4s_15.u()) {
|
|
2167
2167
|
var item_9 = _iterator__ex2g4s_15.v();
|
|
2168
|
-
var tmp$ret$77 = new Converted(item_9.
|
|
2168
|
+
var tmp$ret$77 = new Converted(item_9.k4s_1, item_9.l4s_1);
|
|
2169
2169
|
destination_13.x(tmp$ret$77);
|
|
2170
2170
|
}
|
|
2171
2171
|
return channel($this, identifier, tmp_27, destination_13);
|
|
2172
2172
|
}
|
|
2173
2173
|
function operationMessage($this, pointer, element, action) {
|
|
2174
2174
|
var message = element instanceof JsonObject ? element : null;
|
|
2175
|
-
var ref = message == null ? null : Companion_getInstance_0().
|
|
2175
|
+
var ref = message == null ? null : Companion_getInstance_0().n4s(message);
|
|
2176
2176
|
var tmp = ref == null ? pointer : ref;
|
|
2177
|
-
var tmp3_elvis_lhs = ref == null ? null : Companion_getInstance_0().
|
|
2177
|
+
var tmp3_elvis_lhs = ref == null ? null : Companion_getInstance_0().y4s(ref, 'messages');
|
|
2178
2178
|
var tmp_0;
|
|
2179
2179
|
if (tmp3_elvis_lhs == null) {
|
|
2180
|
-
tmp_0 = message == null ? null : Companion_getInstance_0().
|
|
2180
|
+
tmp_0 = message == null ? null : Companion_getInstance_0().z4s(message, 'name');
|
|
2181
2181
|
} else {
|
|
2182
2182
|
tmp_0 = tmp3_elvis_lhs;
|
|
2183
2183
|
}
|
|
2184
2184
|
var tmp5_elvis_lhs = tmp_0;
|
|
2185
2185
|
var tmp_1;
|
|
2186
2186
|
if (tmp5_elvis_lhs == null) {
|
|
2187
|
-
tmp_1 = message == null ? null : Companion_getInstance_0().
|
|
2187
|
+
tmp_1 = message == null ? null : Companion_getInstance_0().z4s(message, 'messageId');
|
|
2188
2188
|
} else {
|
|
2189
2189
|
tmp_1 = tmp5_elvis_lhs;
|
|
2190
2190
|
}
|
|
2191
2191
|
var tmp7_elvis_lhs = tmp_1;
|
|
2192
|
-
return new OperationMessage(tmp, pointer, element, tmp7_elvis_lhs == null ? action.
|
|
2192
|
+
return new OperationMessage(tmp, pointer, element, tmp7_elvis_lhs == null ? action.q4p_1 + 'Message' : tmp7_elvis_lhs);
|
|
2193
2193
|
}
|
|
2194
2194
|
function channel($this, identifier, annotations, payloads) {
|
|
2195
2195
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2198,14 +2198,14 @@ function channel($this, identifier, annotations, payloads) {
|
|
|
2198
2198
|
var _iterator__ex2g4s = payloads.t();
|
|
2199
2199
|
while (_iterator__ex2g4s.u()) {
|
|
2200
2200
|
var item = _iterator__ex2g4s.v();
|
|
2201
|
-
var tmp$ret$2 = item.
|
|
2201
|
+
var tmp$ret$2 = item.a4t_1;
|
|
2202
2202
|
destination.x(tmp$ret$2);
|
|
2203
2203
|
}
|
|
2204
2204
|
var references = distinct(destination);
|
|
2205
2205
|
// Inline function 'kotlin.takeIf' call
|
|
2206
2206
|
var tmp;
|
|
2207
2207
|
var tmp_0;
|
|
2208
|
-
if (references.
|
|
2208
|
+
if (references.c1() > 1) {
|
|
2209
2209
|
var tmp$ret$5;
|
|
2210
2210
|
$l$block_0: {
|
|
2211
2211
|
// Inline function 'kotlin.collections.all' call
|
|
@@ -2244,7 +2244,7 @@ function channel($this, identifier, annotations, payloads) {
|
|
|
2244
2244
|
tmp_2 = null;
|
|
2245
2245
|
} else {
|
|
2246
2246
|
// Inline function 'kotlin.let' call
|
|
2247
|
-
var tmp_3 = listOf(AsyncAPIAnnotations_getInstance().
|
|
2247
|
+
var tmp_3 = listOf(AsyncAPIAnnotations_getInstance().i4q('AsyncAPIInline'));
|
|
2248
2248
|
var tmp_4 = new DefinitionIdentifier(claim($this, identifier + 'Message'));
|
|
2249
2249
|
// Inline function 'kotlin.collections.map' call
|
|
2250
2250
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2252,13 +2252,13 @@ function channel($this, identifier, annotations, payloads) {
|
|
|
2252
2252
|
var _iterator__ex2g4s_1 = tmp0_safe_receiver.t();
|
|
2253
2253
|
while (_iterator__ex2g4s_1.u()) {
|
|
2254
2254
|
var item_0 = _iterator__ex2g4s_1.v();
|
|
2255
|
-
var tmp$ret$11 = item_0.
|
|
2255
|
+
var tmp$ret$11 = item_0.t1a(false);
|
|
2256
2256
|
destination_0.x(tmp$ret$11);
|
|
2257
2257
|
}
|
|
2258
2258
|
tmp_2 = new Union(null, tmp_3, tmp_4, toSet(destination_0));
|
|
2259
2259
|
}
|
|
2260
2260
|
var union = tmp_2;
|
|
2261
|
-
var reference = !(union == null) ? new Custom(union.br_1.o1(), false) : references.
|
|
2261
|
+
var reference = !(union == null) ? new Custom(union.br_1.o1(), false) : references.c1() === 1 ? single(references) : new Any(false);
|
|
2262
2262
|
var tmp_5 = listOfNotNull_0([new Channel(null, annotations, new DefinitionIdentifier(identifier), reference), union]);
|
|
2263
2263
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2264
2264
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2266,7 +2266,7 @@ function channel($this, identifier, annotations, payloads) {
|
|
|
2266
2266
|
var _iterator__ex2g4s_2 = payloads.t();
|
|
2267
2267
|
while (_iterator__ex2g4s_2.u()) {
|
|
2268
2268
|
var element_0 = _iterator__ex2g4s_2.v();
|
|
2269
|
-
var list = element_0.
|
|
2269
|
+
var list = element_0.b4t_1;
|
|
2270
2270
|
addAll(destination_1, list);
|
|
2271
2271
|
}
|
|
2272
2272
|
return plus(tmp_5, destination_1);
|
|
@@ -2274,20 +2274,20 @@ function channel($this, identifier, annotations, payloads) {
|
|
|
2274
2274
|
function channelKey($this, $receiver) {
|
|
2275
2275
|
// Inline function 'kotlin.takeIf' call
|
|
2276
2276
|
var tmp;
|
|
2277
|
-
if (!(Companion_getInstance_0().
|
|
2277
|
+
if (!(Companion_getInstance_0().c4t($receiver.kd('action')) == null) && Companion_getInstance_0().n4s($receiver) == null) {
|
|
2278
2278
|
tmp = $receiver;
|
|
2279
2279
|
} else {
|
|
2280
2280
|
tmp = null;
|
|
2281
2281
|
}
|
|
2282
2282
|
var tmp0_safe_receiver = tmp;
|
|
2283
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : Companion_getInstance_0().
|
|
2283
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : Companion_getInstance_0().p4s(tmp0_safe_receiver, 'channel');
|
|
2284
2284
|
var tmp_0;
|
|
2285
2285
|
if (tmp1_safe_receiver == null) {
|
|
2286
2286
|
tmp_0 = null;
|
|
2287
2287
|
} else {
|
|
2288
2288
|
// Inline function 'kotlin.takeIf' call
|
|
2289
2289
|
var tmp_1;
|
|
2290
|
-
if (tmp1_safe_receiver.
|
|
2290
|
+
if (tmp1_safe_receiver.c1() === 1) {
|
|
2291
2291
|
tmp_1 = tmp1_safe_receiver;
|
|
2292
2292
|
} else {
|
|
2293
2293
|
tmp_1 = null;
|
|
@@ -2295,7 +2295,7 @@ function channelKey($this, $receiver) {
|
|
|
2295
2295
|
tmp_0 = tmp_1;
|
|
2296
2296
|
}
|
|
2297
2297
|
var tmp2_safe_receiver = tmp_0;
|
|
2298
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_getInstance_0().
|
|
2298
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_getInstance_0().n4s(tmp2_safe_receiver);
|
|
2299
2299
|
var tmp_2;
|
|
2300
2300
|
if (tmp3_safe_receiver == null) {
|
|
2301
2301
|
tmp_2 = null;
|
|
@@ -2319,7 +2319,7 @@ function channelKey($this, $receiver) {
|
|
|
2319
2319
|
} else {
|
|
2320
2320
|
// Inline function 'kotlin.takeIf' call
|
|
2321
2321
|
var tmp_5;
|
|
2322
|
-
if ($this.
|
|
2322
|
+
if ($this.b4s_1.i1(tmp5_safe_receiver)) {
|
|
2323
2323
|
tmp_5 = tmp5_safe_receiver;
|
|
2324
2324
|
} else {
|
|
2325
2325
|
tmp_5 = null;
|
|
@@ -2329,9 +2329,9 @@ function channelKey($this, $receiver) {
|
|
|
2329
2329
|
return tmp_4;
|
|
2330
2330
|
}
|
|
2331
2331
|
function toAnnotation($this, $receiver, key, channelPointer) {
|
|
2332
|
-
var action = Companion_getInstance_0().
|
|
2332
|
+
var action = Companion_getInstance_0().c4t($receiver.kd('action'));
|
|
2333
2333
|
var tmp = AsyncAPIAnnotations_getInstance();
|
|
2334
|
-
var tmp_0 = (action == null ? Action_SEND_getInstance() : action).
|
|
2334
|
+
var tmp_0 = (action == null ? Action_SEND_getInstance() : action).s4p();
|
|
2335
2335
|
// Inline function 'kotlin.collections.filterNot' call
|
|
2336
2336
|
var tmp0 = $receiver.m1();
|
|
2337
2337
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
@@ -2380,10 +2380,10 @@ function toAnnotation($this, $receiver, key, channelPointer) {
|
|
|
2380
2380
|
tmp_4 = toMessageKeys($this, value_0, tmp1_safe_receiver);
|
|
2381
2381
|
}
|
|
2382
2382
|
var tmp2_elvis_lhs = tmp_4;
|
|
2383
|
-
var tmp$ret$7 = tmp_1.
|
|
2383
|
+
var tmp$ret$7 = tmp_1.k4q(field_0, tmp2_elvis_lhs == null ? AsyncAPIAnnotations_getInstance().n4q(value_0) : tmp2_elvis_lhs);
|
|
2384
2384
|
destination_0.x(tmp$ret$7);
|
|
2385
2385
|
}
|
|
2386
|
-
return tmp.
|
|
2386
|
+
return tmp.h4q(tmp_0, key, destination_0);
|
|
2387
2387
|
}
|
|
2388
2388
|
function toMessageKeys($this, $receiver, channelPointer) {
|
|
2389
2389
|
var tmp0_safe_receiver = $receiver instanceof JsonArray ? $receiver : null;
|
|
@@ -2406,7 +2406,7 @@ function toMessageKeys($this, $receiver, channelPointer) {
|
|
|
2406
2406
|
} else {
|
|
2407
2407
|
// Inline function 'kotlin.takeIf' call
|
|
2408
2408
|
var tmp_1;
|
|
2409
|
-
if (tmp0_safe_receiver_0.
|
|
2409
|
+
if (tmp0_safe_receiver_0.c1() === 1) {
|
|
2410
2410
|
tmp_1 = tmp0_safe_receiver_0;
|
|
2411
2411
|
} else {
|
|
2412
2412
|
tmp_1 = null;
|
|
@@ -2414,7 +2414,7 @@ function toMessageKeys($this, $receiver, channelPointer) {
|
|
|
2414
2414
|
tmp_0 = tmp_1;
|
|
2415
2415
|
}
|
|
2416
2416
|
var tmp1_safe_receiver = tmp_0;
|
|
2417
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : Companion_getInstance_0().
|
|
2417
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : Companion_getInstance_0().n4s(tmp1_safe_receiver);
|
|
2418
2418
|
var tmp_2;
|
|
2419
2419
|
if (tmp2_safe_receiver == null) {
|
|
2420
2420
|
tmp_2 = null;
|
|
@@ -2441,7 +2441,7 @@ function toMessageKeys($this, $receiver, channelPointer) {
|
|
|
2441
2441
|
}
|
|
2442
2442
|
// Inline function 'kotlin.takeIf' call
|
|
2443
2443
|
var tmp_4;
|
|
2444
|
-
if (destination.
|
|
2444
|
+
if (destination.c1() === tmp0_safe_receiver.c1()) {
|
|
2445
2445
|
tmp_4 = destination;
|
|
2446
2446
|
} else {
|
|
2447
2447
|
tmp_4 = null;
|
|
@@ -2458,7 +2458,7 @@ function toMessageKeys($this, $receiver, channelPointer) {
|
|
|
2458
2458
|
var _iterator__ex2g4s_0 = tmp0_safe_receiver_3.t();
|
|
2459
2459
|
while (_iterator__ex2g4s_0.u()) {
|
|
2460
2460
|
var item = _iterator__ex2g4s_0.v();
|
|
2461
|
-
var tmp$ret$21 = AsyncAPIAnnotations_getInstance().
|
|
2461
|
+
var tmp$ret$21 = AsyncAPIAnnotations_getInstance().l4q(item);
|
|
2462
2462
|
destination_0.x(tmp$ret$21);
|
|
2463
2463
|
}
|
|
2464
2464
|
tmp_5 = new Array_0(destination_0);
|
|
@@ -2468,11 +2468,11 @@ function toMessageKeys($this, $receiver, channelPointer) {
|
|
|
2468
2468
|
return tmp;
|
|
2469
2469
|
}
|
|
2470
2470
|
function componentMessage($this, key) {
|
|
2471
|
-
var tmp0_elvis_lhs = $this.
|
|
2471
|
+
var tmp0_elvis_lhs = $this.z4r_1.s2(key);
|
|
2472
2472
|
var tmp;
|
|
2473
2473
|
if (tmp0_elvis_lhs == null) {
|
|
2474
|
-
var tmp1_safe_receiver = $this.
|
|
2475
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : Companion_getInstance_0().
|
|
2474
|
+
var tmp1_safe_receiver = $this.q4r_1;
|
|
2475
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : Companion_getInstance_0().p4s(tmp1_safe_receiver, 'messages');
|
|
2476
2476
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.kd(key);
|
|
2477
2477
|
var tmp_0;
|
|
2478
2478
|
if (tmp3_safe_receiver == null) {
|
|
@@ -2488,7 +2488,7 @@ function componentMessage($this, key) {
|
|
|
2488
2488
|
} else {
|
|
2489
2489
|
// Inline function 'kotlin.also' call
|
|
2490
2490
|
// Inline function 'kotlin.collections.set' call
|
|
2491
|
-
$this.
|
|
2491
|
+
$this.z4r_1.v2(key, tmp4_safe_receiver);
|
|
2492
2492
|
tmp_1 = tmp4_safe_receiver;
|
|
2493
2493
|
}
|
|
2494
2494
|
tmp = tmp_1;
|
|
@@ -2508,10 +2508,10 @@ function message($this, key, pointer, element) {
|
|
|
2508
2508
|
tmp = tmp0_elvis_lhs;
|
|
2509
2509
|
}
|
|
2510
2510
|
var message_0 = tmp;
|
|
2511
|
-
var ref = Companion_getInstance_0().
|
|
2511
|
+
var ref = Companion_getInstance_0().n4s(message_0);
|
|
2512
2512
|
var tmp_0;
|
|
2513
2513
|
if (ref == null) {
|
|
2514
|
-
var tmp1_elvis_lhs = Companion_getInstance_0().
|
|
2514
|
+
var tmp1_elvis_lhs = Companion_getInstance_0().z4s(message_0, 'name');
|
|
2515
2515
|
var name = tmp1_elvis_lhs == null ? key : tmp1_elvis_lhs;
|
|
2516
2516
|
// Inline function 'kotlin.collections.map' call
|
|
2517
2517
|
var this_0 = message_0.m1();
|
|
@@ -2530,15 +2530,15 @@ function message($this, key, pointer, element) {
|
|
|
2530
2530
|
var tmp_2 = pointer + '/payload';
|
|
2531
2531
|
// Inline function 'kotlin.let' call
|
|
2532
2532
|
|
|
2533
|
-
var it = Companion_getInstance_0().
|
|
2534
|
-
var tmp$ret$6 = $this.
|
|
2535
|
-
tmp_1 = schemaPosition($this, tmp_2, value, tmp$ret$6, Companion_getInstance_0().
|
|
2533
|
+
var it = Companion_getInstance_0().d4t(name);
|
|
2534
|
+
var tmp$ret$6 = $this.p4r_1.i1(it) ? it + 'Payload' : it;
|
|
2535
|
+
tmp_1 = schemaPosition($this, tmp_2, value, tmp$ret$6, Companion_getInstance_0().z4s(message_0, 'schemaFormat'));
|
|
2536
2536
|
break;
|
|
2537
2537
|
case 'headers':
|
|
2538
2538
|
tmp_1 = schemaPosition($this, pointer + '/headers', value, name + '_headers', null);
|
|
2539
2539
|
break;
|
|
2540
2540
|
default:
|
|
2541
|
-
tmp_1 = to(AsyncAPIAnnotations_getInstance().
|
|
2541
|
+
tmp_1 = to(AsyncAPIAnnotations_getInstance().n4q(value), null);
|
|
2542
2542
|
break;
|
|
2543
2543
|
}
|
|
2544
2544
|
var tmp$ret$3 = to(field, tmp_1);
|
|
@@ -2554,10 +2554,10 @@ function message($this, key, pointer, element) {
|
|
|
2554
2554
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
2555
2555
|
var field_0 = item_0.ze();
|
|
2556
2556
|
var position = item_0.af();
|
|
2557
|
-
var tmp$ret$10 = AsyncAPIAnnotations_getInstance().
|
|
2557
|
+
var tmp$ret$10 = AsyncAPIAnnotations_getInstance().k4q(field_0, position.ff_1);
|
|
2558
2558
|
destination_0.x(tmp$ret$10);
|
|
2559
2559
|
}
|
|
2560
|
-
var tmp_4 = tmp_3.
|
|
2560
|
+
var tmp_4 = tmp_3.h4q('AsyncAPIMessage', key, destination_0);
|
|
2561
2561
|
var tmp$ret$11;
|
|
2562
2562
|
$l$block: {
|
|
2563
2563
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -2575,7 +2575,7 @@ function message($this, key, pointer, element) {
|
|
|
2575
2575
|
var tmp2_safe_receiver = tmp$ret$11;
|
|
2576
2576
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.gf_1;
|
|
2577
2577
|
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.gf_1;
|
|
2578
|
-
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
2578
|
+
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.a4t_1;
|
|
2579
2579
|
var tmp_5 = tmp5_elvis_lhs == null ? new Any(false) : tmp5_elvis_lhs;
|
|
2580
2580
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2581
2581
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2586,7 +2586,7 @@ function message($this, key, pointer, element) {
|
|
|
2586
2586
|
var position_0 = element_1.af();
|
|
2587
2587
|
var tmp0_safe_receiver = position_0.gf_1;
|
|
2588
2588
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2589
|
-
var tmp0_elvis_lhs_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2589
|
+
var tmp0_elvis_lhs_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b4t_1;
|
|
2590
2590
|
var list = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
2591
2591
|
addAll(destination_1, list);
|
|
2592
2592
|
}
|
|
@@ -2594,18 +2594,18 @@ function message($this, key, pointer, element) {
|
|
|
2594
2594
|
} else {
|
|
2595
2595
|
// Inline function 'kotlin.let' call
|
|
2596
2596
|
var payload = referencedPayload($this, ref);
|
|
2597
|
-
tmp_0 = new ConvertedMessage(AsyncAPIAnnotations_getInstance().
|
|
2597
|
+
tmp_0 = new ConvertedMessage(AsyncAPIAnnotations_getInstance().h4q('AsyncAPIMessage', key, AsyncAPIAnnotations_getInstance().m4q(message_0)), payload.a4t_1, payload.b4t_1);
|
|
2598
2598
|
}
|
|
2599
2599
|
return tmp_0;
|
|
2600
2600
|
}
|
|
2601
2601
|
function referencedPayload($this, ref) {
|
|
2602
2602
|
var tmp;
|
|
2603
|
-
if ($this.
|
|
2603
|
+
if ($this.a4s_1.i1(ref)) {
|
|
2604
2604
|
tmp = null;
|
|
2605
2605
|
} else {
|
|
2606
2606
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2607
|
-
$this.
|
|
2608
|
-
var key = Companion_getInstance_0().
|
|
2607
|
+
$this.a4s_1.x(ref);
|
|
2608
|
+
var key = Companion_getInstance_0().y4s(ref, 'messages');
|
|
2609
2609
|
var tmp_0;
|
|
2610
2610
|
if (key == null) {
|
|
2611
2611
|
var tmp_1 = lookup($this, ref);
|
|
@@ -2623,7 +2623,7 @@ function referencedPayload($this, ref) {
|
|
|
2623
2623
|
tmp_3 = null;
|
|
2624
2624
|
} else {
|
|
2625
2625
|
// Inline function 'kotlin.let' call
|
|
2626
|
-
tmp_3 = new Converted(tmp2_safe_receiver.
|
|
2626
|
+
tmp_3 = new Converted(tmp2_safe_receiver.k4s_1, tmp2_safe_receiver.l4s_1);
|
|
2627
2627
|
}
|
|
2628
2628
|
tmp_0 = tmp_3;
|
|
2629
2629
|
} else {
|
|
@@ -2633,14 +2633,14 @@ function referencedPayload($this, ref) {
|
|
|
2633
2633
|
tmp_4 = null;
|
|
2634
2634
|
} else {
|
|
2635
2635
|
// Inline function 'kotlin.let' call
|
|
2636
|
-
tmp_4 = new Converted(tmp3_safe_receiver.
|
|
2636
|
+
tmp_4 = new Converted(tmp3_safe_receiver.k4s_1);
|
|
2637
2637
|
}
|
|
2638
2638
|
tmp_0 = tmp_4;
|
|
2639
2639
|
}
|
|
2640
2640
|
// Inline function 'kotlin.also' call
|
|
2641
2641
|
var this_0 = tmp_0;
|
|
2642
2642
|
// Inline function 'kotlin.collections.minusAssign' call
|
|
2643
|
-
$this.
|
|
2643
|
+
$this.a4s_1.y2(ref);
|
|
2644
2644
|
tmp = this_0;
|
|
2645
2645
|
}
|
|
2646
2646
|
var tmp4_elvis_lhs = tmp;
|
|
@@ -2673,34 +2673,34 @@ function schemaPosition($this, pointer, schema, name, format) {
|
|
|
2673
2673
|
tmp = tmp_0;
|
|
2674
2674
|
}
|
|
2675
2675
|
var multiFormat = tmp;
|
|
2676
|
-
var tmp2_elvis_lhs = multiFormat == null ? null : Companion_getInstance_0().
|
|
2676
|
+
var tmp2_elvis_lhs = multiFormat == null ? null : Companion_getInstance_0().z4s(multiFormat, 'schemaFormat');
|
|
2677
2677
|
var schemaFormat = tmp2_elvis_lhs == null ? format : tmp2_elvis_lhs;
|
|
2678
2678
|
var tmp_2;
|
|
2679
|
-
if ((schemaFormat == null ? null : Companion_getInstance_0().
|
|
2680
|
-
tmp_2 = to(AsyncAPIAnnotations_getInstance().
|
|
2679
|
+
if ((schemaFormat == null ? null : Companion_getInstance_0().e4t(schemaFormat)) === false) {
|
|
2680
|
+
tmp_2 = to(AsyncAPIAnnotations_getInstance().n4q(schema), null);
|
|
2681
2681
|
} else {
|
|
2682
2682
|
if (!(multiFormat == null)) {
|
|
2683
|
-
tmp_2 = to(AsyncAPIAnnotations_getInstance().
|
|
2683
|
+
tmp_2 = to(AsyncAPIAnnotations_getInstance().n4q(schema), convertAt($this, pointer + '/schema', getValue(multiFormat, 'schema'), name));
|
|
2684
2684
|
} else {
|
|
2685
2685
|
// Inline function 'kotlin.let' call
|
|
2686
2686
|
var converted = convertAt($this, pointer, schema, name);
|
|
2687
2687
|
// Inline function 'kotlin.with' call
|
|
2688
|
-
var tmp0_subject = $this.
|
|
2689
|
-
tmp_2 = to(equals(tmp0_subject, schema) ? AsyncAPIAnnotations_getInstance().
|
|
2688
|
+
var tmp0_subject = $this.y4r_1.l4r(converted.a4t_1);
|
|
2689
|
+
tmp_2 = to(equals(tmp0_subject, schema) ? AsyncAPIAnnotations_getInstance().l4q(toWirespec(converted.a4t_1)) : AsyncAPIAnnotations_getInstance().n4q(schema), converted);
|
|
2690
2690
|
}
|
|
2691
2691
|
}
|
|
2692
2692
|
return tmp_2;
|
|
2693
2693
|
}
|
|
2694
2694
|
function component($this, key) {
|
|
2695
2695
|
var tmp = '#/components/schemas/' + escapePointer(key);
|
|
2696
|
-
var tmp_0 = getValue($this.
|
|
2697
|
-
var tmp0_elvis_lhs = $this.
|
|
2696
|
+
var tmp_0 = getValue($this.r4r_1, key);
|
|
2697
|
+
var tmp0_elvis_lhs = $this.s4r_1.s2(key);
|
|
2698
2698
|
var tmp_1 = tmp0_elvis_lhs == null ? key : tmp0_elvis_lhs;
|
|
2699
2699
|
// Inline function 'kotlin.takeIf' call
|
|
2700
2700
|
var tmp_2;
|
|
2701
2701
|
// Inline function 'kotlin.collections.contains' call
|
|
2702
2702
|
// Inline function 'kotlin.collections.containsKey' call
|
|
2703
|
-
var this_0 = $this.
|
|
2703
|
+
var this_0 = $this.s4r_1;
|
|
2704
2704
|
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).q2(key)) {
|
|
2705
2705
|
tmp_2 = key;
|
|
2706
2706
|
} else {
|
|
@@ -2711,21 +2711,21 @@ function component($this, key) {
|
|
|
2711
2711
|
}
|
|
2712
2712
|
function convertAt($this, pointer, schema, name, component) {
|
|
2713
2713
|
component = component === VOID ? null : component;
|
|
2714
|
-
var reference = $this.
|
|
2714
|
+
var reference = $this.v4r_1.s2(pointer);
|
|
2715
2715
|
var tmp;
|
|
2716
2716
|
if (reference == null) {
|
|
2717
2717
|
var tmp_0;
|
|
2718
|
-
if ($this.
|
|
2718
|
+
if ($this.w4r_1.i1(pointer)) {
|
|
2719
2719
|
tmp_0 = new Converted(new Any(false));
|
|
2720
2720
|
} else {
|
|
2721
2721
|
// Inline function 'kotlin.let' call
|
|
2722
|
-
$this.
|
|
2722
|
+
$this.w4r_1.x(pointer);
|
|
2723
2723
|
// Inline function 'kotlin.also' call
|
|
2724
2724
|
var this_0 = convertSchema($this, pointer, schema, name, component);
|
|
2725
|
-
$this.
|
|
2726
|
-
var tmp0 = $this.
|
|
2725
|
+
$this.w4r_1.y2(pointer);
|
|
2726
|
+
var tmp0 = $this.v4r_1;
|
|
2727
2727
|
// Inline function 'kotlin.collections.set' call
|
|
2728
|
-
var value = this_0.
|
|
2728
|
+
var value = this_0.a4t_1;
|
|
2729
2729
|
tmp0.v2(pointer, value);
|
|
2730
2730
|
tmp_0 = this_0;
|
|
2731
2731
|
}
|
|
@@ -2738,7 +2738,7 @@ function convertAt($this, pointer, schema, name, component) {
|
|
|
2738
2738
|
function convertSchema($this, pointer, schema, name, component) {
|
|
2739
2739
|
var tmp;
|
|
2740
2740
|
if (schema instanceof JsonObject) {
|
|
2741
|
-
var tmp1_safe_receiver = Companion_getInstance_0().
|
|
2741
|
+
var tmp1_safe_receiver = Companion_getInstance_0().n4s(schema);
|
|
2742
2742
|
var tmp_0;
|
|
2743
2743
|
if (tmp1_safe_receiver == null) {
|
|
2744
2744
|
tmp_0 = null;
|
|
@@ -2747,14 +2747,14 @@ function convertSchema($this, pointer, schema, name, component) {
|
|
|
2747
2747
|
tmp_0 = reference($this, tmp1_safe_receiver);
|
|
2748
2748
|
}
|
|
2749
2749
|
var tmp2_elvis_lhs = tmp_0;
|
|
2750
|
-
tmp = tmp2_elvis_lhs == null ? convertObject($this, schema, pointer, name, Companion_getInstance_0().
|
|
2750
|
+
tmp = tmp2_elvis_lhs == null ? convertObject($this, schema, pointer, name, Companion_getInstance_0().f4t(schema), component) : tmp2_elvis_lhs;
|
|
2751
2751
|
} else {
|
|
2752
2752
|
tmp = new Converted(new Any(false));
|
|
2753
2753
|
}
|
|
2754
2754
|
return tmp;
|
|
2755
2755
|
}
|
|
2756
2756
|
function reference($this, ref) {
|
|
2757
|
-
var tmp0_safe_receiver = Companion_getInstance_0().
|
|
2757
|
+
var tmp0_safe_receiver = Companion_getInstance_0().y4s(ref, 'schemas');
|
|
2758
2758
|
var tmp;
|
|
2759
2759
|
if (tmp0_safe_receiver == null) {
|
|
2760
2760
|
tmp = null;
|
|
@@ -2763,13 +2763,13 @@ function reference($this, ref) {
|
|
|
2763
2763
|
var tmp_0;
|
|
2764
2764
|
// Inline function 'kotlin.collections.contains' call
|
|
2765
2765
|
// Inline function 'kotlin.collections.containsKey' call
|
|
2766
|
-
var this_0 = $this.
|
|
2766
|
+
var this_0 = $this.s4r_1;
|
|
2767
2767
|
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).q2(tmp0_safe_receiver)) {
|
|
2768
|
-
tmp_0 = new Converted(new Custom(getValue($this.
|
|
2768
|
+
tmp_0 = new Converted(new Custom(getValue($this.s4r_1, tmp0_safe_receiver), false));
|
|
2769
2769
|
} else {
|
|
2770
2770
|
// Inline function 'kotlin.collections.contains' call
|
|
2771
2771
|
// Inline function 'kotlin.collections.containsKey' call
|
|
2772
|
-
var this_1 = $this.
|
|
2772
|
+
var this_1 = $this.r4r_1;
|
|
2773
2773
|
if ((isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).q2(tmp0_safe_receiver)) {
|
|
2774
2774
|
tmp_0 = component($this, tmp0_safe_receiver);
|
|
2775
2775
|
} else {
|
|
@@ -2782,8 +2782,8 @@ function reference($this, ref) {
|
|
|
2782
2782
|
return tmp1_elvis_lhs == null ? new Converted(new Any(false)) : tmp1_elvis_lhs;
|
|
2783
2783
|
}
|
|
2784
2784
|
function convertObject($this, $receiver, pointer, name, isNullable, component) {
|
|
2785
|
-
var wrapped = Companion_getInstance_0().
|
|
2786
|
-
var branches = Companion_getInstance_0().
|
|
2785
|
+
var wrapped = Companion_getInstance_0().g4t($receiver);
|
|
2786
|
+
var branches = Companion_getInstance_0().h4t($receiver);
|
|
2787
2787
|
var tmp;
|
|
2788
2788
|
if (!(wrapped == null)) {
|
|
2789
2789
|
// Inline function 'kotlin.let' call
|
|
@@ -2791,7 +2791,7 @@ function convertObject($this, $receiver, pointer, name, isNullable, component) {
|
|
|
2791
2791
|
var schema = wrapped.af();
|
|
2792
2792
|
// Inline function 'kotlin.let' call
|
|
2793
2793
|
var it = convertAt($this, pointer + '/' + path, schema, name);
|
|
2794
|
-
tmp = it.
|
|
2794
|
+
tmp = it.n4t(Companion_getInstance_0().m4t(it.a4t_1, isNullable));
|
|
2795
2795
|
} else {
|
|
2796
2796
|
if (!(branches == null)) {
|
|
2797
2797
|
tmp = ownsDefinition($this, $receiver, !(component == null)) ? union($this, $receiver, pointer, identifier($this, name, component), branches, isNullable, component) : new Converted(new Any(isNullable));
|
|
@@ -2801,10 +2801,10 @@ function convertObject($this, $receiver, pointer, name, isNullable, component) {
|
|
|
2801
2801
|
if ((isInterface($receiver, KtMap) ? $receiver : THROW_CCE()).q2('allOf')) {
|
|
2802
2802
|
tmp = type($this, identifier($this, name, component), allOfParts($this, $receiver, pointer), isNullable, component);
|
|
2803
2803
|
} else {
|
|
2804
|
-
if (Companion_getInstance_0().
|
|
2804
|
+
if (Companion_getInstance_0().l4t($receiver)) {
|
|
2805
2805
|
tmp = enum_0($this, $receiver, identifier($this, name, component), isNullable, component);
|
|
2806
2806
|
} else {
|
|
2807
|
-
var type_0 = Companion_getInstance_0().
|
|
2807
|
+
var type_0 = Companion_getInstance_0().i4t($receiver);
|
|
2808
2808
|
var tmp_0;
|
|
2809
2809
|
if (type_0 === 'object' || type_0 == null) {
|
|
2810
2810
|
var tmp_1;
|
|
@@ -2814,7 +2814,7 @@ function convertObject($this, $receiver, pointer, name, isNullable, component) {
|
|
|
2814
2814
|
if ((isInterface($receiver, KtMap) ? $receiver : THROW_CCE()).q2(key)) {
|
|
2815
2815
|
tmp_1 = type($this, identifier($this, name, component), listOf(new Located(pointer, $receiver)), isNullable, component);
|
|
2816
2816
|
} else {
|
|
2817
|
-
var tmp0_safe_receiver = Companion_getInstance_0().
|
|
2817
|
+
var tmp0_safe_receiver = Companion_getInstance_0().k4t($receiver);
|
|
2818
2818
|
var tmp_2;
|
|
2819
2819
|
if (tmp0_safe_receiver == null) {
|
|
2820
2820
|
tmp_2 = null;
|
|
@@ -2828,7 +2828,7 @@ function convertObject($this, $receiver, pointer, name, isNullable, component) {
|
|
|
2828
2828
|
tmp_3 = null;
|
|
2829
2829
|
} else {
|
|
2830
2830
|
// Inline function 'kotlin.let' call
|
|
2831
|
-
tmp_3 = new Converted(new Dict_0(tmp1_safe_receiver.
|
|
2831
|
+
tmp_3 = new Converted(new Dict_0(tmp1_safe_receiver.a4t_1, isNullable), tmp1_safe_receiver.b4t_1);
|
|
2832
2832
|
}
|
|
2833
2833
|
var tmp2_elvis_lhs = tmp_3;
|
|
2834
2834
|
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;
|
|
@@ -2846,14 +2846,14 @@ function convertObject($this, $receiver, pointer, name, isNullable, component) {
|
|
|
2846
2846
|
}
|
|
2847
2847
|
// Inline function 'kotlin.let' call
|
|
2848
2848
|
var items = tmp_5;
|
|
2849
|
-
var tmp1_elvis_lhs = items == null ? null : items.
|
|
2849
|
+
var tmp1_elvis_lhs = items == null ? null : items.a4t_1;
|
|
2850
2850
|
var tmp_6 = new Iterable(tmp1_elvis_lhs == null ? new Any(false) : tmp1_elvis_lhs, isNullable);
|
|
2851
2851
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2852
|
-
var tmp0_elvis_lhs = items == null ? null : items.
|
|
2852
|
+
var tmp0_elvis_lhs = items == null ? null : items.b4t_1;
|
|
2853
2853
|
var tmp$ret$16 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2854
2854
|
tmp_0 = new Converted(tmp_6, tmp$ret$16);
|
|
2855
|
-
} else if (Companion_getInstance_0().
|
|
2856
|
-
tmp_0 = component == null ? new Converted(new Primitive(Companion_getInstance_0().
|
|
2855
|
+
} else if (Companion_getInstance_0().e4s_1.i1(type_0)) {
|
|
2856
|
+
tmp_0 = component == null ? new Converted(new Primitive(Companion_getInstance_0().j4t($receiver, type_0, false), isNullable)) : new Converted(new Custom(name, isNullable), listOf(define_0($this, new Refined(null, AsyncAPIAnnotations_getInstance().j4q(Companion_getInstance_0().q4s($receiver)), new DefinitionIdentifier(name), new Primitive(Companion_getInstance_0().j4t($receiver, type_0, true), false)), $receiver, component)));
|
|
2857
2857
|
} else {
|
|
2858
2858
|
tmp_0 = new Converted(new Any(isNullable));
|
|
2859
2859
|
}
|
|
@@ -2865,11 +2865,11 @@ function convertObject($this, $receiver, pointer, name, isNullable, component) {
|
|
|
2865
2865
|
return tmp;
|
|
2866
2866
|
}
|
|
2867
2867
|
function ownsDefinition($this, $receiver, component) {
|
|
2868
|
-
var branches = Companion_getInstance_0().
|
|
2868
|
+
var branches = Companion_getInstance_0().h4t($receiver);
|
|
2869
2869
|
var tmp;
|
|
2870
2870
|
if (branches == null) {
|
|
2871
2871
|
var tmp_0;
|
|
2872
|
-
if (!(Companion_getInstance_0().
|
|
2872
|
+
if (!(Companion_getInstance_0().g4t($receiver) == null)) {
|
|
2873
2873
|
tmp_0 = false;
|
|
2874
2874
|
} else {
|
|
2875
2875
|
// Inline function 'kotlin.collections.contains' call
|
|
@@ -2877,10 +2877,10 @@ function ownsDefinition($this, $receiver, component) {
|
|
|
2877
2877
|
if ((isInterface($receiver, KtMap) ? $receiver : THROW_CCE()).q2('allOf')) {
|
|
2878
2878
|
tmp_0 = true;
|
|
2879
2879
|
} else {
|
|
2880
|
-
if (Companion_getInstance_0().
|
|
2880
|
+
if (Companion_getInstance_0().l4t($receiver)) {
|
|
2881
2881
|
tmp_0 = true;
|
|
2882
2882
|
} else {
|
|
2883
|
-
var tmp0_subject = Companion_getInstance_0().
|
|
2883
|
+
var tmp0_subject = Companion_getInstance_0().i4t($receiver);
|
|
2884
2884
|
var tmp_1;
|
|
2885
2885
|
if (tmp0_subject === 'object') {
|
|
2886
2886
|
var tmp_2;
|
|
@@ -2890,7 +2890,7 @@ function ownsDefinition($this, $receiver, component) {
|
|
|
2890
2890
|
if ((isInterface($receiver, KtMap) ? $receiver : THROW_CCE()).q2(key)) {
|
|
2891
2891
|
tmp_2 = true;
|
|
2892
2892
|
} else {
|
|
2893
|
-
tmp_2 = (component && Companion_getInstance_0().
|
|
2893
|
+
tmp_2 = (component && Companion_getInstance_0().k4t($receiver) == null);
|
|
2894
2894
|
}
|
|
2895
2895
|
tmp_1 = tmp_2;
|
|
2896
2896
|
} else if (tmp0_subject == null) {
|
|
@@ -2898,7 +2898,7 @@ function ownsDefinition($this, $receiver, component) {
|
|
|
2898
2898
|
// Inline function 'kotlin.collections.containsKey' call
|
|
2899
2899
|
var key_0 = 'properties';
|
|
2900
2900
|
tmp_1 = (isInterface($receiver, KtMap) ? $receiver : THROW_CCE()).q2(key_0);
|
|
2901
|
-
} else if (Companion_getInstance_0().
|
|
2901
|
+
} else if (Companion_getInstance_0().e4s_1.i1(tmp0_subject)) {
|
|
2902
2902
|
tmp_1 = component;
|
|
2903
2903
|
} else {
|
|
2904
2904
|
tmp_1 = false;
|
|
@@ -2910,7 +2910,7 @@ function ownsDefinition($this, $receiver, component) {
|
|
|
2910
2910
|
tmp = tmp_0;
|
|
2911
2911
|
} else {
|
|
2912
2912
|
var tmp_3;
|
|
2913
|
-
if (Companion_getInstance_0().
|
|
2913
|
+
if (Companion_getInstance_0().g4t($receiver) == null && branches.c1() > 1) {
|
|
2914
2914
|
var tmp$ret$6;
|
|
2915
2915
|
$l$block_0: {
|
|
2916
2916
|
// Inline function 'kotlin.collections.all' call
|
|
@@ -2950,26 +2950,26 @@ function isNamed($this, $receiver, component) {
|
|
|
2950
2950
|
tmp = null;
|
|
2951
2951
|
} else {
|
|
2952
2952
|
// Inline function 'kotlin.let' call
|
|
2953
|
-
var ref = Companion_getInstance_0().
|
|
2953
|
+
var ref = Companion_getInstance_0().n4s(tmp0_safe_receiver);
|
|
2954
2954
|
var tmp_0;
|
|
2955
2955
|
if (ref == null) {
|
|
2956
2956
|
var tmp_1;
|
|
2957
2957
|
if (ownsDefinition($this, tmp0_safe_receiver, component)) {
|
|
2958
2958
|
tmp_1 = true;
|
|
2959
2959
|
} else {
|
|
2960
|
-
var tmp0_safe_receiver_0 = Companion_getInstance_0().
|
|
2960
|
+
var tmp0_safe_receiver_0 = Companion_getInstance_0().g4t(tmp0_safe_receiver);
|
|
2961
2961
|
var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.gf_1;
|
|
2962
2962
|
tmp_1 = (tmp1_safe_receiver == null ? null : isNamed($this, tmp1_safe_receiver, component)) === true;
|
|
2963
2963
|
}
|
|
2964
2964
|
tmp_0 = tmp_1;
|
|
2965
2965
|
} else {
|
|
2966
|
-
var tmp2_safe_receiver = Companion_getInstance_0().
|
|
2966
|
+
var tmp2_safe_receiver = Companion_getInstance_0().y4s(ref, 'schemas');
|
|
2967
2967
|
var tmp_2;
|
|
2968
2968
|
if (tmp2_safe_receiver == null) {
|
|
2969
2969
|
tmp_2 = null;
|
|
2970
2970
|
} else {
|
|
2971
2971
|
// Inline function 'kotlin.let' call
|
|
2972
|
-
var tmp0_safe_receiver_1 = $this.
|
|
2972
|
+
var tmp0_safe_receiver_1 = $this.r4r_1.s2(tmp2_safe_receiver);
|
|
2973
2973
|
tmp_2 = tmp0_safe_receiver_1 == null ? null : isNamed($this, tmp0_safe_receiver_1, true);
|
|
2974
2974
|
}
|
|
2975
2975
|
tmp_0 = tmp_2 === true;
|
|
@@ -2988,15 +2988,15 @@ function union($this, $receiver, pointer, identifier, branches, isNullable, comp
|
|
|
2988
2988
|
var item = _iterator__ex2g4s.v();
|
|
2989
2989
|
var index = item.ze();
|
|
2990
2990
|
var branch = item.af();
|
|
2991
|
-
var tmp = pointer + '/' + Companion_getInstance_0().
|
|
2991
|
+
var tmp = pointer + '/' + Companion_getInstance_0().o4t($receiver) + '/' + index;
|
|
2992
2992
|
var tmp0_safe_receiver = branch instanceof JsonObject ? branch : null;
|
|
2993
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : Companion_getInstance_0().
|
|
2993
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : Companion_getInstance_0().z4s(tmp0_safe_receiver, 'title');
|
|
2994
2994
|
var tmp$ret$2 = convertAt($this, tmp, branch, tmp1_elvis_lhs == null ? identifier + index : tmp1_elvis_lhs);
|
|
2995
2995
|
destination.x(tmp$ret$2);
|
|
2996
2996
|
}
|
|
2997
2997
|
// Inline function 'kotlin.let' call
|
|
2998
2998
|
var tmp_0 = new Custom(identifier, isNullable);
|
|
2999
|
-
var tmp_1 = AsyncAPIAnnotations_getInstance().
|
|
2999
|
+
var tmp_1 = AsyncAPIAnnotations_getInstance().j4q(Companion_getInstance_0().q4s($receiver));
|
|
3000
3000
|
var tmp_2 = new DefinitionIdentifier(identifier);
|
|
3001
3001
|
// Inline function 'kotlin.collections.map' call
|
|
3002
3002
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3004,7 +3004,7 @@ function union($this, $receiver, pointer, identifier, branches, isNullable, comp
|
|
|
3004
3004
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3005
3005
|
while (_iterator__ex2g4s_0.u()) {
|
|
3006
3006
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
3007
|
-
var tmp$ret$7 = item_0.
|
|
3007
|
+
var tmp$ret$7 = item_0.a4t_1.t1a(false);
|
|
3008
3008
|
destination_0.x(tmp$ret$7);
|
|
3009
3009
|
}
|
|
3010
3010
|
var tmp_3 = listOf(define_0($this, new Union(null, tmp_1, tmp_2, toSet(destination_0)), $receiver, component));
|
|
@@ -3014,13 +3014,13 @@ function union($this, $receiver, pointer, identifier, branches, isNullable, comp
|
|
|
3014
3014
|
var _iterator__ex2g4s_1 = destination.t();
|
|
3015
3015
|
while (_iterator__ex2g4s_1.u()) {
|
|
3016
3016
|
var element = _iterator__ex2g4s_1.v();
|
|
3017
|
-
var list = element.
|
|
3017
|
+
var list = element.b4t_1;
|
|
3018
3018
|
addAll(destination_1, list);
|
|
3019
3019
|
}
|
|
3020
3020
|
return new Converted(tmp_0, plus(tmp_3, destination_1));
|
|
3021
3021
|
}
|
|
3022
3022
|
function enum_0($this, $receiver, identifier, isNullable, component) {
|
|
3023
|
-
return new Converted(new Custom(identifier, isNullable), listOf(define_0($this, new Enum_0(null, AsyncAPIAnnotations_getInstance().
|
|
3023
|
+
return new Converted(new Custom(identifier, isNullable), listOf(define_0($this, new Enum_0(null, AsyncAPIAnnotations_getInstance().j4q(Companion_getInstance_0().q4s($receiver)), new DefinitionIdentifier(identifier), toSet(Companion_getInstance_0().p4t($receiver))), $receiver, component)));
|
|
3024
3024
|
}
|
|
3025
3025
|
function type($this, identifier, parts, isNullable, component) {
|
|
3026
3026
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -3029,7 +3029,7 @@ function type($this, identifier, parts, isNullable, component) {
|
|
|
3029
3029
|
var _iterator__ex2g4s = parts.t();
|
|
3030
3030
|
while (_iterator__ex2g4s.u()) {
|
|
3031
3031
|
var element = _iterator__ex2g4s.v();
|
|
3032
|
-
var list = Companion_getInstance_0().
|
|
3032
|
+
var list = Companion_getInstance_0().s4t(element.r4t_1);
|
|
3033
3033
|
addAll(destination, list);
|
|
3034
3034
|
}
|
|
3035
3035
|
var required = toSet(destination);
|
|
@@ -3040,9 +3040,9 @@ function type($this, identifier, parts, isNullable, component) {
|
|
|
3040
3040
|
while (_iterator__ex2g4s_0.u()) {
|
|
3041
3041
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3042
3042
|
// Inline function 'kotlin.collections.map' call
|
|
3043
|
-
var this_0 = orEmpty(Companion_getInstance_0().
|
|
3043
|
+
var this_0 = orEmpty(Companion_getInstance_0().p4s(element_0.r4t_1, 'properties'));
|
|
3044
3044
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3045
|
-
var destination_1 = ArrayList_init_$Create$(this_0.
|
|
3045
|
+
var destination_1 = ArrayList_init_$Create$(this_0.c1());
|
|
3046
3046
|
// Inline function 'kotlin.collections.iterator' call
|
|
3047
3047
|
var _iterator__ex2g4s_1 = this_0.m1().t();
|
|
3048
3048
|
while (_iterator__ex2g4s_1.u()) {
|
|
@@ -3051,7 +3051,7 @@ function type($this, identifier, parts, isNullable, component) {
|
|
|
3051
3051
|
var key = item.n1();
|
|
3052
3052
|
// Inline function 'kotlin.collections.component2' call
|
|
3053
3053
|
var property = item.o1();
|
|
3054
|
-
var tmp$ret$9 = new Triple(element_0.
|
|
3054
|
+
var tmp$ret$9 = new Triple(element_0.q4t_1, key, property);
|
|
3055
3055
|
destination_1.x(tmp$ret$9);
|
|
3056
3056
|
}
|
|
3057
3057
|
var list_0 = destination_1;
|
|
@@ -3077,7 +3077,7 @@ function type($this, identifier, parts, isNullable, component) {
|
|
|
3077
3077
|
var element_1 = _iterator__ex2g4s_3.v();
|
|
3078
3078
|
var names = accumulator;
|
|
3079
3079
|
var key_2 = element_1.af();
|
|
3080
|
-
accumulator = plus_2(names, Companion_getInstance_0().
|
|
3080
|
+
accumulator = plus_2(names, Companion_getInstance_0().w4s(Companion_getInstance_0().t4t(key_2), toSet(names)));
|
|
3081
3081
|
}
|
|
3082
3082
|
var names_0 = accumulator;
|
|
3083
3083
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3097,7 +3097,7 @@ function type($this, identifier, parts, isNullable, component) {
|
|
|
3097
3097
|
}
|
|
3098
3098
|
var fields = destination_2;
|
|
3099
3099
|
var tmp = new Custom(identifier, isNullable);
|
|
3100
|
-
var tmp_0 = AsyncAPIAnnotations_getInstance().
|
|
3100
|
+
var tmp_0 = AsyncAPIAnnotations_getInstance().j4q(Companion_getInstance_0().q4s(first(parts).r4t_1));
|
|
3101
3101
|
var tmp_1 = new DefinitionIdentifier(identifier);
|
|
3102
3102
|
// Inline function 'kotlin.collections.map' call
|
|
3103
3103
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3108,7 +3108,7 @@ function type($this, identifier, parts, isNullable, component) {
|
|
|
3108
3108
|
var tmp$ret$21 = item_1.ff_1;
|
|
3109
3109
|
destination_3.x(tmp$ret$21);
|
|
3110
3110
|
}
|
|
3111
|
-
var tmp_2 = listOf(define_0($this, new Type(null, tmp_0, tmp_1, new Shape(destination_3), emptyList()), first(parts).
|
|
3111
|
+
var tmp_2 = listOf(define_0($this, new Type(null, tmp_0, tmp_1, new Shape(destination_3), emptyList()), first(parts).r4t_1, component));
|
|
3112
3112
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3113
3113
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3114
3114
|
var destination_4 = ArrayList_init_$Create$_0();
|
|
@@ -3132,10 +3132,10 @@ function field($this, pointer, key, identifier, property, required, typeName) {
|
|
|
3132
3132
|
var tmp1_elvis_lhs = tmp;
|
|
3133
3133
|
var schema = tmp1_elvis_lhs == null ? property : tmp1_elvis_lhs;
|
|
3134
3134
|
var converted = convertAt($this, pointer, schema, typeName + '_' + key);
|
|
3135
|
-
var reference = Companion_getInstance_0().
|
|
3135
|
+
var reference = Companion_getInstance_0().m4t(converted.a4t_1, !required);
|
|
3136
3136
|
var tmp_0 = AsyncAPIAnnotations_getInstance();
|
|
3137
3137
|
var tmp_1 = Companion_getInstance_0();
|
|
3138
|
-
var tmp_2 = plus(tmp_0.
|
|
3138
|
+
var tmp_2 = plus(tmp_0.j4q(tmp_1.q4s(property instanceof JsonObject ? property : null)), nameAnnotation($this, key, identifier));
|
|
3139
3139
|
var tmp_3 = new FieldIdentifier(identifier);
|
|
3140
3140
|
var tmp2_safe_receiver = property instanceof JsonObject ? property : null;
|
|
3141
3141
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.kd('default');
|
|
@@ -3146,7 +3146,7 @@ function field($this, pointer, key, identifier, property, required, typeName) {
|
|
|
3146
3146
|
} else {
|
|
3147
3147
|
// Inline function 'kotlin.takeIf' call
|
|
3148
3148
|
var tmp_5;
|
|
3149
|
-
if (isValidFor($this, tmp4_safe_receiver, reference, converted.
|
|
3149
|
+
if (isValidFor($this, tmp4_safe_receiver, reference, converted.b4t_1)) {
|
|
3150
3150
|
tmp_5 = tmp4_safe_receiver;
|
|
3151
3151
|
} else {
|
|
3152
3152
|
tmp_5 = null;
|
|
@@ -3155,7 +3155,7 @@ function field($this, pointer, key, identifier, property, required, typeName) {
|
|
|
3155
3155
|
}
|
|
3156
3156
|
var field = new Field(tmp_2, tmp_3, reference, tmp_4);
|
|
3157
3157
|
// Inline function 'kotlin.with' call
|
|
3158
|
-
var tmp$ret$4 = $this.
|
|
3158
|
+
var tmp$ret$4 = $this.y4r_1.u4t(field);
|
|
3159
3159
|
var tmp5_safe_receiver = schemaPatch(tmp$ret$4, property);
|
|
3160
3160
|
var tmp_6;
|
|
3161
3161
|
if (tmp5_safe_receiver == null) {
|
|
@@ -3165,7 +3165,7 @@ function field($this, pointer, key, identifier, property, required, typeName) {
|
|
|
3165
3165
|
tmp_6 = field.rp(plus_2(field.np_1, tmp5_safe_receiver));
|
|
3166
3166
|
}
|
|
3167
3167
|
var tmp6_elvis_lhs = tmp_6;
|
|
3168
|
-
return to(tmp6_elvis_lhs == null ? field : tmp6_elvis_lhs, converted.
|
|
3168
|
+
return to(tmp6_elvis_lhs == null ? field : tmp6_elvis_lhs, converted.b4t_1);
|
|
3169
3169
|
}
|
|
3170
3170
|
function isValidFor($this, $receiver, reference, definitions) {
|
|
3171
3171
|
var tmp;
|
|
@@ -3193,7 +3193,7 @@ function isValidFor($this, $receiver, reference, definitions) {
|
|
|
3193
3193
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3194
3194
|
while (_iterator__ex2g4s_0.u()) {
|
|
3195
3195
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3196
|
-
if (element_0.qs_1.o1() === tmp1_safe_receiver.
|
|
3196
|
+
if (element_0.qs_1.o1() === tmp1_safe_receiver.x19_1) {
|
|
3197
3197
|
tmp$ret$5 = element_0;
|
|
3198
3198
|
break $l$block;
|
|
3199
3199
|
}
|
|
@@ -3204,13 +3204,13 @@ function isValidFor($this, $receiver, reference, definitions) {
|
|
|
3204
3204
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.rs_1;
|
|
3205
3205
|
var tmp_1;
|
|
3206
3206
|
if (tmp1_elvis_lhs == null) {
|
|
3207
|
-
var tmp2_safe_receiver = $this.
|
|
3207
|
+
var tmp2_safe_receiver = $this.t4r_1.s2(tmp1_safe_receiver.x19_1);
|
|
3208
3208
|
var tmp_2;
|
|
3209
3209
|
if (tmp2_safe_receiver == null) {
|
|
3210
3210
|
tmp_2 = null;
|
|
3211
3211
|
} else {
|
|
3212
3212
|
// Inline function 'kotlin.let' call
|
|
3213
|
-
var tmp_3 = $this.
|
|
3213
|
+
var tmp_3 = $this.r4r_1.s2(tmp2_safe_receiver);
|
|
3214
3214
|
var tmp0_safe_receiver_0 = tmp_3 instanceof JsonObject ? tmp_3 : null;
|
|
3215
3215
|
var tmp_4;
|
|
3216
3216
|
if (tmp0_safe_receiver_0 == null) {
|
|
@@ -3218,7 +3218,7 @@ function isValidFor($this, $receiver, reference, definitions) {
|
|
|
3218
3218
|
} else {
|
|
3219
3219
|
// Inline function 'kotlin.takeIf' call
|
|
3220
3220
|
var tmp_5;
|
|
3221
|
-
if (Companion_getInstance_0().
|
|
3221
|
+
if (Companion_getInstance_0().v4t(tmp0_safe_receiver_0)) {
|
|
3222
3222
|
tmp_5 = tmp0_safe_receiver_0;
|
|
3223
3223
|
} else {
|
|
3224
3224
|
tmp_5 = null;
|
|
@@ -3226,7 +3226,7 @@ function isValidFor($this, $receiver, reference, definitions) {
|
|
|
3226
3226
|
tmp_4 = tmp_5;
|
|
3227
3227
|
}
|
|
3228
3228
|
var tmp1_safe_receiver_0 = tmp_4;
|
|
3229
|
-
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : Companion_getInstance_0().
|
|
3229
|
+
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : Companion_getInstance_0().p4t(tmp1_safe_receiver_0);
|
|
3230
3230
|
tmp_2 = tmp2_safe_receiver_0 == null ? null : toSet(tmp2_safe_receiver_0);
|
|
3231
3231
|
}
|
|
3232
3232
|
tmp_1 = tmp_2;
|
|
@@ -3236,14 +3236,14 @@ function isValidFor($this, $receiver, reference, definitions) {
|
|
|
3236
3236
|
tmp_0 = tmp_1;
|
|
3237
3237
|
}
|
|
3238
3238
|
var tmp2_safe_receiver_1 = tmp_0;
|
|
3239
|
-
tmp = (tmp2_safe_receiver_1 == null ? null : tmp2_safe_receiver_1.i1($receiver.
|
|
3239
|
+
tmp = (tmp2_safe_receiver_1 == null ? null : tmp2_safe_receiver_1.i1($receiver.u1a_1)) === true;
|
|
3240
3240
|
} else {
|
|
3241
3241
|
tmp = true;
|
|
3242
3242
|
}
|
|
3243
3243
|
return tmp;
|
|
3244
3244
|
}
|
|
3245
3245
|
function define_0($this, model, original, component) {
|
|
3246
|
-
var tmp = model.
|
|
3246
|
+
var tmp = model.i1e();
|
|
3247
3247
|
var tmp_0;
|
|
3248
3248
|
if (component == null) {
|
|
3249
3249
|
tmp_0 = null;
|
|
@@ -3263,11 +3263,11 @@ function define_0($this, model, original, component) {
|
|
|
3263
3263
|
tmp_2 = null;
|
|
3264
3264
|
} else {
|
|
3265
3265
|
// Inline function 'kotlin.let' call
|
|
3266
|
-
tmp_2 = AsyncAPIAnnotations_getInstance().
|
|
3266
|
+
tmp_2 = AsyncAPIAnnotations_getInstance().i4q('AsyncAPIName', tmp1_safe_receiver);
|
|
3267
3267
|
}
|
|
3268
3268
|
var tmp_3 = tmp_2;
|
|
3269
3269
|
// Inline function 'kotlin.takeIf' call
|
|
3270
|
-
var this_0 = AsyncAPIAnnotations_getInstance().
|
|
3270
|
+
var this_0 = AsyncAPIAnnotations_getInstance().i4q('AsyncAPIInline');
|
|
3271
3271
|
var tmp_4;
|
|
3272
3272
|
if (component == null) {
|
|
3273
3273
|
tmp_4 = this_0;
|
|
@@ -3277,20 +3277,20 @@ function define_0($this, model, original, component) {
|
|
|
3277
3277
|
var tmp$ret$4 = tmp_4;
|
|
3278
3278
|
var named = withAnnotations($this, model, plus(tmp, listOfNotNull_0([tmp_3, tmp$ret$4])));
|
|
3279
3279
|
// Inline function 'kotlin.with' call
|
|
3280
|
-
var tmp$ret$6 = $this.
|
|
3280
|
+
var tmp$ret$6 = $this.y4r_1.w4t(named);
|
|
3281
3281
|
var tmp2_safe_receiver = schemaPatch(tmp$ret$6, original);
|
|
3282
3282
|
var tmp_5;
|
|
3283
3283
|
if (tmp2_safe_receiver == null) {
|
|
3284
3284
|
tmp_5 = null;
|
|
3285
3285
|
} else {
|
|
3286
3286
|
// Inline function 'kotlin.let' call
|
|
3287
|
-
tmp_5 = withAnnotations($this, named, plus_2(named.
|
|
3287
|
+
tmp_5 = withAnnotations($this, named, plus_2(named.i1e(), tmp2_safe_receiver));
|
|
3288
3288
|
}
|
|
3289
3289
|
var tmp3_elvis_lhs = tmp_5;
|
|
3290
3290
|
// Inline function 'kotlin.also' call
|
|
3291
3291
|
var this_1 = tmp3_elvis_lhs == null ? named : tmp3_elvis_lhs;
|
|
3292
3292
|
if (component == null) {
|
|
3293
|
-
var tmp0 = $this.
|
|
3293
|
+
var tmp0 = $this.x4r_1;
|
|
3294
3294
|
// Inline function 'kotlin.collections.set' call
|
|
3295
3295
|
var key = this_1.ds().o1();
|
|
3296
3296
|
tmp0.v2(key, this_1);
|
|
@@ -3303,13 +3303,13 @@ function withAnnotations($this, $receiver, annotations) {
|
|
|
3303
3303
|
tmp = $receiver.sp(VOID, annotations);
|
|
3304
3304
|
} else {
|
|
3305
3305
|
if ($receiver instanceof Enum_0) {
|
|
3306
|
-
tmp = $receiver.
|
|
3306
|
+
tmp = $receiver.s1e(VOID, annotations);
|
|
3307
3307
|
} else {
|
|
3308
3308
|
if ($receiver instanceof Union) {
|
|
3309
|
-
tmp = $receiver.
|
|
3309
|
+
tmp = $receiver.w1e(VOID, annotations);
|
|
3310
3310
|
} else {
|
|
3311
3311
|
if ($receiver instanceof Refined) {
|
|
3312
|
-
tmp = $receiver.
|
|
3312
|
+
tmp = $receiver.u1e(VOID, annotations);
|
|
3313
3313
|
} else {
|
|
3314
3314
|
noWhenBranchMatchedException();
|
|
3315
3315
|
}
|
|
@@ -3340,7 +3340,7 @@ function allOfParts($this, $receiver, pointer) {
|
|
|
3340
3340
|
tmp_1 = null;
|
|
3341
3341
|
} else {
|
|
3342
3342
|
// Inline function 'kotlin.let' call
|
|
3343
|
-
tmp_1 = allOfParts($this, tmp0_safe_receiver.
|
|
3343
|
+
tmp_1 = allOfParts($this, tmp0_safe_receiver.r4t_1, tmp0_safe_receiver.q4t_1);
|
|
3344
3344
|
}
|
|
3345
3345
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3346
3346
|
var tmp0_elvis_lhs_0 = tmp_1;
|
|
@@ -3357,7 +3357,7 @@ function resolveSchema($this, pointer, schema, seen) {
|
|
|
3357
3357
|
tmp = null;
|
|
3358
3358
|
} else {
|
|
3359
3359
|
// Inline function 'kotlin.let' call
|
|
3360
|
-
var ref = Companion_getInstance_0().
|
|
3360
|
+
var ref = Companion_getInstance_0().n4s(tmp0_safe_receiver);
|
|
3361
3361
|
var tmp_0;
|
|
3362
3362
|
if (ref == null) {
|
|
3363
3363
|
tmp_0 = new Located(pointer, tmp0_safe_receiver);
|
|
@@ -3380,7 +3380,7 @@ function resolveSchema($this, pointer, schema, seen) {
|
|
|
3380
3380
|
}
|
|
3381
3381
|
function nameAnnotation($this, key, default_0) {
|
|
3382
3382
|
// Inline function 'kotlin.takeIf' call
|
|
3383
|
-
var this_0 = AsyncAPIAnnotations_getInstance().
|
|
3383
|
+
var this_0 = AsyncAPIAnnotations_getInstance().i4q('AsyncAPIName', key);
|
|
3384
3384
|
var tmp;
|
|
3385
3385
|
if (!(key === default_0)) {
|
|
3386
3386
|
tmp = this_0;
|
|
@@ -3392,9 +3392,9 @@ function nameAnnotation($this, key, default_0) {
|
|
|
3392
3392
|
}
|
|
3393
3393
|
function claimChannel($this, key) {
|
|
3394
3394
|
// Inline function 'kotlin.let' call
|
|
3395
|
-
var it = Companion_getInstance_0().
|
|
3395
|
+
var it = Companion_getInstance_0().d4t(key);
|
|
3396
3396
|
// Inline function 'kotlin.let' call
|
|
3397
|
-
var p0 = $this.
|
|
3397
|
+
var p0 = $this.p4r_1.i1(it) ? it + 'Channel' : it;
|
|
3398
3398
|
return claim($this, p0);
|
|
3399
3399
|
}
|
|
3400
3400
|
function identifier($this, name, component) {
|
|
@@ -3406,13 +3406,13 @@ function identifier($this, name, component) {
|
|
|
3406
3406
|
tmp = name;
|
|
3407
3407
|
}
|
|
3408
3408
|
var tmp1_elvis_lhs = tmp;
|
|
3409
|
-
return tmp1_elvis_lhs == null ? claim($this, Companion_getInstance_0().
|
|
3409
|
+
return tmp1_elvis_lhs == null ? claim($this, Companion_getInstance_0().d4t(name)) : tmp1_elvis_lhs;
|
|
3410
3410
|
}
|
|
3411
3411
|
function claim($this, name) {
|
|
3412
3412
|
// Inline function 'kotlin.also' call
|
|
3413
|
-
var this_0 = Companion_getInstance_0().
|
|
3413
|
+
var this_0 = Companion_getInstance_0().w4s(name, $this.p4r_1);
|
|
3414
3414
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3415
|
-
$this.
|
|
3415
|
+
$this.p4r_1.x(this_0);
|
|
3416
3416
|
return this_0;
|
|
3417
3417
|
}
|
|
3418
3418
|
function lookup($this, ref) {
|
|
@@ -3448,7 +3448,7 @@ function lookup($this, ref) {
|
|
|
3448
3448
|
tmp_1 = null;
|
|
3449
3449
|
} else {
|
|
3450
3450
|
// Inline function 'kotlin.collections.fold' call
|
|
3451
|
-
var accumulator = $this.
|
|
3451
|
+
var accumulator = $this.n4r_1;
|
|
3452
3452
|
var _iterator__ex2g4s_0 = tmp4_safe_receiver.t();
|
|
3453
3453
|
while (_iterator__ex2g4s_0.u()) {
|
|
3454
3454
|
var element = _iterator__ex2g4s_0.v();
|
|
@@ -3479,14 +3479,14 @@ function lookup($this, ref) {
|
|
|
3479
3479
|
}
|
|
3480
3480
|
function Companion_0() {
|
|
3481
3481
|
Companion_instance_2 = this;
|
|
3482
|
-
this.
|
|
3483
|
-
this.
|
|
3484
|
-
this.
|
|
3485
|
-
this.
|
|
3486
|
-
this.
|
|
3487
|
-
this.
|
|
3482
|
+
this.d4s_1 = setOf([2, 3]);
|
|
3483
|
+
this.e4s_1 = setOf(['string', 'integer', 'number', 'boolean']);
|
|
3484
|
+
this.f4s_1 = Regex_init_$Create$('-?[0-9]+');
|
|
3485
|
+
this.g4s_1 = Regex_init_$Create$('-?[0-9]+(\\.[0-9]+)?');
|
|
3486
|
+
this.h4s_1 = Regex_init_$Create$('[a-zA-Z0-9_\\-]+');
|
|
3487
|
+
this.i4s_1 = 'AsyncAPI';
|
|
3488
3488
|
}
|
|
3489
|
-
protoOf(Companion_0).
|
|
3489
|
+
protoOf(Companion_0).c4t = function (_this__u8e3s4) {
|
|
3490
3490
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof JsonPrimitive_1 ? _this__u8e3s4 : null;
|
|
3491
3491
|
var tmp;
|
|
3492
3492
|
if (tmp0_safe_receiver == null) {
|
|
@@ -3494,7 +3494,7 @@ protoOf(Companion_0).t4q = function (_this__u8e3s4) {
|
|
|
3494
3494
|
} else {
|
|
3495
3495
|
// Inline function 'kotlin.takeIf' call
|
|
3496
3496
|
var tmp_0;
|
|
3497
|
-
if (tmp0_safe_receiver.
|
|
3497
|
+
if (tmp0_safe_receiver.r2o()) {
|
|
3498
3498
|
tmp_0 = tmp0_safe_receiver;
|
|
3499
3499
|
} else {
|
|
3500
3500
|
tmp_0 = null;
|
|
@@ -3515,7 +3515,7 @@ protoOf(Companion_0).t4q = function (_this__u8e3s4) {
|
|
|
3515
3515
|
var _iterator__ex2g4s = tmp0.t();
|
|
3516
3516
|
while (_iterator__ex2g4s.u()) {
|
|
3517
3517
|
var element = _iterator__ex2g4s.v();
|
|
3518
|
-
if (element.
|
|
3518
|
+
if (element.q4p_1 === tmp1_safe_receiver.h1i()) {
|
|
3519
3519
|
tmp$ret$5 = element;
|
|
3520
3520
|
break $l$block;
|
|
3521
3521
|
}
|
|
@@ -3526,7 +3526,7 @@ protoOf(Companion_0).t4q = function (_this__u8e3s4) {
|
|
|
3526
3526
|
}
|
|
3527
3527
|
return tmp_1;
|
|
3528
3528
|
};
|
|
3529
|
-
protoOf(Companion_0).
|
|
3529
|
+
protoOf(Companion_0).e4t = function (_this__u8e3s4) {
|
|
3530
3530
|
var tmp0 = listOf_0(['application/vnd.aai.asyncapi', 'application/schema+json', 'application/schema+yaml']);
|
|
3531
3531
|
var tmp$ret$0;
|
|
3532
3532
|
$l$block_0: {
|
|
@@ -3553,19 +3553,19 @@ protoOf(Companion_0).v4q = function (_this__u8e3s4) {
|
|
|
3553
3553
|
}
|
|
3554
3554
|
return tmp$ret$0;
|
|
3555
3555
|
};
|
|
3556
|
-
protoOf(Companion_0).
|
|
3557
|
-
return _this__u8e3s4.
|
|
3556
|
+
protoOf(Companion_0).m4t = function (_this__u8e3s4, isNullable) {
|
|
3557
|
+
return _this__u8e3s4.t1a(isNullable || _this__u8e3s4.ot());
|
|
3558
3558
|
};
|
|
3559
|
-
protoOf(Companion_0).
|
|
3559
|
+
protoOf(Companion_0).x4s = function (_this__u8e3s4) {
|
|
3560
3560
|
var tmp;
|
|
3561
3561
|
if (_this__u8e3s4 instanceof JsonPrimitive_1) {
|
|
3562
|
-
tmp = _this__u8e3s4.
|
|
3562
|
+
tmp = _this__u8e3s4.r2o();
|
|
3563
3563
|
} else {
|
|
3564
3564
|
tmp = false;
|
|
3565
3565
|
}
|
|
3566
3566
|
return tmp;
|
|
3567
3567
|
};
|
|
3568
|
-
protoOf(Companion_0).
|
|
3568
|
+
protoOf(Companion_0).m4s = function (_this__u8e3s4) {
|
|
3569
3569
|
var tmp;
|
|
3570
3570
|
if (_this__u8e3s4 instanceof JsonObject) {
|
|
3571
3571
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
@@ -3575,7 +3575,7 @@ protoOf(Companion_0).d4q = function (_this__u8e3s4) {
|
|
|
3575
3575
|
}
|
|
3576
3576
|
return tmp;
|
|
3577
3577
|
};
|
|
3578
|
-
protoOf(Companion_0).
|
|
3578
|
+
protoOf(Companion_0).r4s = function (_this__u8e3s4, fields) {
|
|
3579
3579
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3580
3580
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3581
3581
|
var destination = LinkedHashMap_init_$Create$_0();
|
|
@@ -3610,7 +3610,7 @@ protoOf(Companion_0).i4q = function (_this__u8e3s4, fields) {
|
|
|
3610
3610
|
}
|
|
3611
3611
|
return destination;
|
|
3612
3612
|
};
|
|
3613
|
-
protoOf(Companion_0).
|
|
3613
|
+
protoOf(Companion_0).z4s = function (_this__u8e3s4, key) {
|
|
3614
3614
|
var tmp = _this__u8e3s4.kd(key);
|
|
3615
3615
|
var tmp0_safe_receiver = tmp instanceof JsonPrimitive_1 ? tmp : null;
|
|
3616
3616
|
var tmp_0;
|
|
@@ -3619,7 +3619,7 @@ protoOf(Companion_0).q4q = function (_this__u8e3s4, key) {
|
|
|
3619
3619
|
} else {
|
|
3620
3620
|
// Inline function 'kotlin.takeIf' call
|
|
3621
3621
|
var tmp_1;
|
|
3622
|
-
if (tmp0_safe_receiver.
|
|
3622
|
+
if (tmp0_safe_receiver.r2o()) {
|
|
3623
3623
|
tmp_1 = tmp0_safe_receiver;
|
|
3624
3624
|
} else {
|
|
3625
3625
|
tmp_1 = null;
|
|
@@ -3627,19 +3627,19 @@ protoOf(Companion_0).q4q = function (_this__u8e3s4, key) {
|
|
|
3627
3627
|
tmp_0 = tmp_1;
|
|
3628
3628
|
}
|
|
3629
3629
|
var tmp1_safe_receiver = tmp_0;
|
|
3630
|
-
return tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3630
|
+
return tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h1i();
|
|
3631
3631
|
};
|
|
3632
|
-
protoOf(Companion_0).
|
|
3632
|
+
protoOf(Companion_0).p4s = function (_this__u8e3s4, key) {
|
|
3633
3633
|
var tmp = _this__u8e3s4.kd(key);
|
|
3634
3634
|
return tmp instanceof JsonObject ? tmp : null;
|
|
3635
3635
|
};
|
|
3636
|
-
protoOf(Companion_0).
|
|
3637
|
-
return this.
|
|
3636
|
+
protoOf(Companion_0).n4s = function (_this__u8e3s4) {
|
|
3637
|
+
return this.z4s(_this__u8e3s4, '$ref');
|
|
3638
3638
|
};
|
|
3639
|
-
protoOf(Companion_0).
|
|
3640
|
-
return _this__u8e3s4 == null ? null : this.
|
|
3639
|
+
protoOf(Companion_0).q4s = function (_this__u8e3s4) {
|
|
3640
|
+
return _this__u8e3s4 == null ? null : this.z4s(_this__u8e3s4, 'description');
|
|
3641
3641
|
};
|
|
3642
|
-
protoOf(Companion_0).
|
|
3642
|
+
protoOf(Companion_0).s4t = function (_this__u8e3s4) {
|
|
3643
3643
|
var tmp = _this__u8e3s4.kd('required');
|
|
3644
3644
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3645
3645
|
var tmp0_elvis_lhs = tmp instanceof JsonArray ? tmp : null;
|
|
@@ -3652,7 +3652,7 @@ protoOf(Companion_0).j4r = function (_this__u8e3s4) {
|
|
|
3652
3652
|
while (_iterator__ex2g4s.u()) {
|
|
3653
3653
|
var element = _iterator__ex2g4s.v();
|
|
3654
3654
|
var tmp0_safe_receiver = element instanceof JsonPrimitive_1 ? element : null;
|
|
3655
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3655
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h1i();
|
|
3656
3656
|
if (tmp0_safe_receiver_0 == null)
|
|
3657
3657
|
null;
|
|
3658
3658
|
else {
|
|
@@ -3662,11 +3662,11 @@ protoOf(Companion_0).j4r = function (_this__u8e3s4) {
|
|
|
3662
3662
|
}
|
|
3663
3663
|
return destination;
|
|
3664
3664
|
};
|
|
3665
|
-
protoOf(Companion_0).
|
|
3665
|
+
protoOf(Companion_0).k4t = function (_this__u8e3s4) {
|
|
3666
3666
|
var tmp = _this__u8e3s4.kd('additionalProperties');
|
|
3667
3667
|
return tmp instanceof JsonObject ? tmp : null;
|
|
3668
3668
|
};
|
|
3669
|
-
protoOf(Companion_0).
|
|
3669
|
+
protoOf(Companion_0).x4t = function (_this__u8e3s4) {
|
|
3670
3670
|
var type = _this__u8e3s4.kd('type');
|
|
3671
3671
|
var tmp;
|
|
3672
3672
|
if (type instanceof JsonArray) {
|
|
@@ -3678,7 +3678,7 @@ protoOf(Companion_0).o4r = function (_this__u8e3s4) {
|
|
|
3678
3678
|
while (_iterator__ex2g4s.u()) {
|
|
3679
3679
|
var element = _iterator__ex2g4s.v();
|
|
3680
3680
|
var tmp0_safe_receiver = element instanceof JsonPrimitive_1 ? element : null;
|
|
3681
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3681
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h1i();
|
|
3682
3682
|
if (tmp0_safe_receiver_0 == null)
|
|
3683
3683
|
null;
|
|
3684
3684
|
else {
|
|
@@ -3689,15 +3689,15 @@ protoOf(Companion_0).o4r = function (_this__u8e3s4) {
|
|
|
3689
3689
|
tmp = destination;
|
|
3690
3690
|
} else {
|
|
3691
3691
|
if (type instanceof JsonPrimitive_1) {
|
|
3692
|
-
tmp = listOf(type.
|
|
3692
|
+
tmp = listOf(type.h1i());
|
|
3693
3693
|
} else {
|
|
3694
3694
|
tmp = emptyList();
|
|
3695
3695
|
}
|
|
3696
3696
|
}
|
|
3697
3697
|
return tmp;
|
|
3698
3698
|
};
|
|
3699
|
-
protoOf(Companion_0).
|
|
3700
|
-
var tmp0 = this.
|
|
3699
|
+
protoOf(Companion_0).i4t = function (_this__u8e3s4) {
|
|
3700
|
+
var tmp0 = this.x4t(_this__u8e3s4);
|
|
3701
3701
|
var tmp$ret$0;
|
|
3702
3702
|
$l$block: {
|
|
3703
3703
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -3713,11 +3713,11 @@ protoOf(Companion_0).z4q = function (_this__u8e3s4) {
|
|
|
3713
3713
|
}
|
|
3714
3714
|
return tmp$ret$0;
|
|
3715
3715
|
};
|
|
3716
|
-
protoOf(Companion_0).
|
|
3716
|
+
protoOf(Companion_0).y4t = function (_this__u8e3s4) {
|
|
3717
3717
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof JsonObject ? _this__u8e3s4 : null;
|
|
3718
|
-
return equals(tmp0_safe_receiver == null ? null : this.
|
|
3718
|
+
return equals(tmp0_safe_receiver == null ? null : this.x4t(tmp0_safe_receiver), listOf('null'));
|
|
3719
3719
|
};
|
|
3720
|
-
protoOf(Companion_0).
|
|
3720
|
+
protoOf(Companion_0).o4t = function (_this__u8e3s4) {
|
|
3721
3721
|
var tmp;
|
|
3722
3722
|
// Inline function 'kotlin.collections.contains' call
|
|
3723
3723
|
// Inline function 'kotlin.collections.containsKey' call
|
|
@@ -3728,12 +3728,12 @@ protoOf(Companion_0).f4r = function (_this__u8e3s4) {
|
|
|
3728
3728
|
}
|
|
3729
3729
|
return tmp;
|
|
3730
3730
|
};
|
|
3731
|
-
protoOf(Companion_0).
|
|
3732
|
-
var tmp = _this__u8e3s4.kd(this.
|
|
3731
|
+
protoOf(Companion_0).z4t = function (_this__u8e3s4) {
|
|
3732
|
+
var tmp = _this__u8e3s4.kd(this.o4t(_this__u8e3s4));
|
|
3733
3733
|
return tmp instanceof JsonArray ? tmp : null;
|
|
3734
3734
|
};
|
|
3735
|
-
protoOf(Companion_0).
|
|
3736
|
-
var tmp0_safe_receiver = this.
|
|
3735
|
+
protoOf(Companion_0).h4t = function (_this__u8e3s4) {
|
|
3736
|
+
var tmp0_safe_receiver = this.z4t(_this__u8e3s4);
|
|
3737
3737
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : withIndex(tmp0_safe_receiver);
|
|
3738
3738
|
var tmp;
|
|
3739
3739
|
if (tmp1_safe_receiver == null) {
|
|
@@ -3745,7 +3745,7 @@ protoOf(Companion_0).y4q = function (_this__u8e3s4) {
|
|
|
3745
3745
|
var _iterator__ex2g4s = tmp1_safe_receiver.t();
|
|
3746
3746
|
while (_iterator__ex2g4s.u()) {
|
|
3747
3747
|
var element = _iterator__ex2g4s.v();
|
|
3748
|
-
if (!Companion_getInstance_0().
|
|
3748
|
+
if (!Companion_getInstance_0().y4t(element.ye_1)) {
|
|
3749
3749
|
destination.x(element);
|
|
3750
3750
|
}
|
|
3751
3751
|
}
|
|
@@ -3753,8 +3753,8 @@ protoOf(Companion_0).y4q = function (_this__u8e3s4) {
|
|
|
3753
3753
|
}
|
|
3754
3754
|
return tmp;
|
|
3755
3755
|
};
|
|
3756
|
-
protoOf(Companion_0).
|
|
3757
|
-
var tmp0_safe_receiver = this.
|
|
3756
|
+
protoOf(Companion_0).g4t = function (_this__u8e3s4) {
|
|
3757
|
+
var tmp0_safe_receiver = this.h4t(_this__u8e3s4);
|
|
3758
3758
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : singleOrNull(tmp0_safe_receiver);
|
|
3759
3759
|
var tmp;
|
|
3760
3760
|
if (tmp1_safe_receiver == null) {
|
|
@@ -3763,7 +3763,7 @@ protoOf(Companion_0).x4q = function (_this__u8e3s4) {
|
|
|
3763
3763
|
// Inline function 'kotlin.let' call
|
|
3764
3764
|
var index = tmp1_safe_receiver.ze();
|
|
3765
3765
|
var branch = tmp1_safe_receiver.af();
|
|
3766
|
-
tmp = to(Companion_getInstance_0().
|
|
3766
|
+
tmp = to(Companion_getInstance_0().o4t(_this__u8e3s4) + '/' + index, branch);
|
|
3767
3767
|
}
|
|
3768
3768
|
var tmp2_elvis_lhs = tmp;
|
|
3769
3769
|
var tmp_0;
|
|
@@ -3801,16 +3801,16 @@ protoOf(Companion_0).x4q = function (_this__u8e3s4) {
|
|
|
3801
3801
|
}
|
|
3802
3802
|
return tmp_0;
|
|
3803
3803
|
};
|
|
3804
|
-
protoOf(Companion_0).
|
|
3804
|
+
protoOf(Companion_0).f4t = function (_this__u8e3s4) {
|
|
3805
3805
|
var tmp;
|
|
3806
3806
|
var tmp_0;
|
|
3807
3807
|
var tmp_1;
|
|
3808
|
-
if (this.
|
|
3808
|
+
if (this.x4t(_this__u8e3s4).i1('null')) {
|
|
3809
3809
|
tmp_1 = true;
|
|
3810
3810
|
} else {
|
|
3811
3811
|
var tmp_2 = _this__u8e3s4.kd('nullable');
|
|
3812
3812
|
var tmp0_safe_receiver = tmp_2 instanceof JsonPrimitive_1 ? tmp_2 : null;
|
|
3813
|
-
tmp_1 = (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3813
|
+
tmp_1 = (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h1i()) === 'true';
|
|
3814
3814
|
}
|
|
3815
3815
|
if (tmp_1) {
|
|
3816
3816
|
tmp_0 = true;
|
|
@@ -3851,7 +3851,7 @@ protoOf(Companion_0).w4q = function (_this__u8e3s4) {
|
|
|
3851
3851
|
if (tmp_0) {
|
|
3852
3852
|
tmp = true;
|
|
3853
3853
|
} else {
|
|
3854
|
-
var tmp2_safe_receiver = this.
|
|
3854
|
+
var tmp2_safe_receiver = this.z4t(_this__u8e3s4);
|
|
3855
3855
|
var tmp_6;
|
|
3856
3856
|
if (tmp2_safe_receiver == null) {
|
|
3857
3857
|
tmp_6 = null;
|
|
@@ -3872,7 +3872,7 @@ protoOf(Companion_0).w4q = function (_this__u8e3s4) {
|
|
|
3872
3872
|
var _iterator__ex2g4s_0 = tmp2_safe_receiver.t();
|
|
3873
3873
|
while (_iterator__ex2g4s_0.u()) {
|
|
3874
3874
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3875
|
-
if (Companion_getInstance_0().
|
|
3875
|
+
if (Companion_getInstance_0().y4t(element_0)) {
|
|
3876
3876
|
tmp$ret$2 = true;
|
|
3877
3877
|
break $l$block_2;
|
|
3878
3878
|
}
|
|
@@ -3885,7 +3885,7 @@ protoOf(Companion_0).w4q = function (_this__u8e3s4) {
|
|
|
3885
3885
|
}
|
|
3886
3886
|
return tmp;
|
|
3887
3887
|
};
|
|
3888
|
-
protoOf(Companion_0).
|
|
3888
|
+
protoOf(Companion_0).l4t = function (_this__u8e3s4) {
|
|
3889
3889
|
var tmp = _this__u8e3s4.kd('enum');
|
|
3890
3890
|
var tmp0_safe_receiver = tmp instanceof JsonArray ? tmp : null;
|
|
3891
3891
|
var tmp_0;
|
|
@@ -3919,9 +3919,9 @@ protoOf(Companion_0).c4r = function (_this__u8e3s4) {
|
|
|
3919
3919
|
}
|
|
3920
3920
|
return tmp_0 === true;
|
|
3921
3921
|
};
|
|
3922
|
-
protoOf(Companion_0).
|
|
3922
|
+
protoOf(Companion_0).v4t = function (_this__u8e3s4) {
|
|
3923
3923
|
var tmp;
|
|
3924
|
-
if (this.
|
|
3924
|
+
if (this.l4t(_this__u8e3s4) && this.g4t(_this__u8e3s4) == null && this.z4t(_this__u8e3s4) == null) {
|
|
3925
3925
|
// Inline function 'kotlin.collections.contains' call
|
|
3926
3926
|
// Inline function 'kotlin.collections.containsKey' call
|
|
3927
3927
|
tmp = !(isInterface(_this__u8e3s4, KtMap) ? _this__u8e3s4 : THROW_CCE()).q2('allOf');
|
|
@@ -3930,7 +3930,7 @@ protoOf(Companion_0).m4r = function (_this__u8e3s4) {
|
|
|
3930
3930
|
}
|
|
3931
3931
|
return tmp;
|
|
3932
3932
|
};
|
|
3933
|
-
protoOf(Companion_0).
|
|
3933
|
+
protoOf(Companion_0).p4t = function (_this__u8e3s4) {
|
|
3934
3934
|
var tmp = _this__u8e3s4.kd('enum');
|
|
3935
3935
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3936
3936
|
var tmp0_elvis_lhs = tmp instanceof JsonArray ? tmp : null;
|
|
@@ -3952,7 +3952,7 @@ protoOf(Companion_0).g4r = function (_this__u8e3s4) {
|
|
|
3952
3952
|
while (_iterator__ex2g4s_0.u()) {
|
|
3953
3953
|
var item = _iterator__ex2g4s_0.v();
|
|
3954
3954
|
var tmp0_safe_receiver = item instanceof JsonPrimitive_1 ? item : null;
|
|
3955
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3955
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h1i();
|
|
3956
3956
|
var tmp$ret$6 = tmp1_elvis_lhs == null ? toString_0(item) : tmp1_elvis_lhs;
|
|
3957
3957
|
destination_0.x(tmp$ret$6);
|
|
3958
3958
|
}
|
|
@@ -3962,19 +3962,19 @@ protoOf(Companion_0).g4r = function (_this__u8e3s4) {
|
|
|
3962
3962
|
while (_iterator__ex2g4s_1.u()) {
|
|
3963
3963
|
var element_0 = _iterator__ex2g4s_1.v();
|
|
3964
3964
|
var entries = accumulator;
|
|
3965
|
-
accumulator = plus_2(entries, Companion_getInstance_0().
|
|
3965
|
+
accumulator = plus_2(entries, Companion_getInstance_0().w4s(Companion_getInstance_0().a4u(element_0), toSet(entries)));
|
|
3966
3966
|
}
|
|
3967
3967
|
return accumulator;
|
|
3968
3968
|
};
|
|
3969
|
-
protoOf(Companion_0).
|
|
3969
|
+
protoOf(Companion_0).j4t = function (_this__u8e3s4, type, constrained) {
|
|
3970
3970
|
var tmp;
|
|
3971
3971
|
switch (type) {
|
|
3972
3972
|
case 'string':
|
|
3973
3973
|
var tmp_0;
|
|
3974
|
-
if (this.
|
|
3974
|
+
if (this.z4s(_this__u8e3s4, 'format') === 'binary') {
|
|
3975
3975
|
tmp_0 = Bytes_instance;
|
|
3976
3976
|
} else {
|
|
3977
|
-
var tmp2_safe_receiver = this.
|
|
3977
|
+
var tmp2_safe_receiver = this.z4s(_this__u8e3s4, 'pattern');
|
|
3978
3978
|
var tmp_1;
|
|
3979
3979
|
if (tmp2_safe_receiver == null) {
|
|
3980
3980
|
tmp_1 = null;
|
|
@@ -3994,7 +3994,7 @@ protoOf(Companion_0).a4r = function (_this__u8e3s4, type, constrained) {
|
|
|
3994
3994
|
tmp_3 = null;
|
|
3995
3995
|
} else {
|
|
3996
3996
|
// Inline function 'kotlin.let' call
|
|
3997
|
-
tmp_3 = _RegExp___init__impl__p22noo('/' + Companion_getInstance_0().
|
|
3997
|
+
tmp_3 = _RegExp___init__impl__p22noo('/' + Companion_getInstance_0().b4u(tmp3_safe_receiver) + '/g');
|
|
3998
3998
|
}
|
|
3999
3999
|
tmp_0 = new String_0(tmp_3);
|
|
4000
4000
|
}
|
|
@@ -4002,8 +4002,8 @@ protoOf(Companion_0).a4r = function (_this__u8e3s4, type, constrained) {
|
|
|
4002
4002
|
tmp = tmp_0;
|
|
4003
4003
|
break;
|
|
4004
4004
|
case 'integer':
|
|
4005
|
-
var tmp_4 = this.
|
|
4006
|
-
var tmp4_safe_receiver = this.
|
|
4005
|
+
var tmp_4 = this.z4s(_this__u8e3s4, 'format') === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance();
|
|
4006
|
+
var tmp4_safe_receiver = this.c4u(_this__u8e3s4, AsyncAPIConverter$Companion$primitive$lambda);
|
|
4007
4007
|
var tmp_5;
|
|
4008
4008
|
if (tmp4_safe_receiver == null) {
|
|
4009
4009
|
tmp_5 = null;
|
|
@@ -4021,8 +4021,8 @@ protoOf(Companion_0).a4r = function (_this__u8e3s4, type, constrained) {
|
|
|
4021
4021
|
tmp = new Integer(tmp_4, tmp_5);
|
|
4022
4022
|
break;
|
|
4023
4023
|
case 'number':
|
|
4024
|
-
var tmp_7 = this.
|
|
4025
|
-
var tmp5_safe_receiver = this.
|
|
4024
|
+
var tmp_7 = this.z4s(_this__u8e3s4, 'format') === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance();
|
|
4025
|
+
var tmp5_safe_receiver = this.c4u(_this__u8e3s4, AsyncAPIConverter$Companion$primitive$lambda_0);
|
|
4026
4026
|
var tmp_8;
|
|
4027
4027
|
if (tmp5_safe_receiver == null) {
|
|
4028
4028
|
tmp_8 = null;
|
|
@@ -4045,7 +4045,7 @@ protoOf(Companion_0).a4r = function (_this__u8e3s4, type, constrained) {
|
|
|
4045
4045
|
}
|
|
4046
4046
|
return tmp;
|
|
4047
4047
|
};
|
|
4048
|
-
protoOf(Companion_0).
|
|
4048
|
+
protoOf(Companion_0).c4u = function (_this__u8e3s4, format) {
|
|
4049
4049
|
var tmp = _this__u8e3s4.kd('minimum');
|
|
4050
4050
|
var tmp0_safe_receiver = tmp instanceof JsonPrimitive_1 ? tmp : null;
|
|
4051
4051
|
var tmp_0;
|
|
@@ -4054,7 +4054,7 @@ protoOf(Companion_0).t4r = function (_this__u8e3s4, format) {
|
|
|
4054
4054
|
} else {
|
|
4055
4055
|
// Inline function 'kotlin.takeUnless' call
|
|
4056
4056
|
var tmp_1;
|
|
4057
|
-
if (!tmp0_safe_receiver.
|
|
4057
|
+
if (!tmp0_safe_receiver.r2o()) {
|
|
4058
4058
|
tmp_1 = tmp0_safe_receiver;
|
|
4059
4059
|
} else {
|
|
4060
4060
|
tmp_1 = null;
|
|
@@ -4062,7 +4062,7 @@ protoOf(Companion_0).t4r = function (_this__u8e3s4, format) {
|
|
|
4062
4062
|
tmp_0 = tmp_1;
|
|
4063
4063
|
}
|
|
4064
4064
|
var tmp1_safe_receiver = tmp_0;
|
|
4065
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4065
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h1i();
|
|
4066
4066
|
var tmp_2;
|
|
4067
4067
|
if (tmp2_safe_receiver == null) {
|
|
4068
4068
|
tmp_2 = null;
|
|
@@ -4079,7 +4079,7 @@ protoOf(Companion_0).t4r = function (_this__u8e3s4, format) {
|
|
|
4079
4079
|
} else {
|
|
4080
4080
|
// Inline function 'kotlin.takeUnless' call
|
|
4081
4081
|
var tmp_6;
|
|
4082
|
-
if (!tmp3_safe_receiver.
|
|
4082
|
+
if (!tmp3_safe_receiver.r2o()) {
|
|
4083
4083
|
tmp_6 = tmp3_safe_receiver;
|
|
4084
4084
|
} else {
|
|
4085
4085
|
tmp_6 = null;
|
|
@@ -4087,7 +4087,7 @@ protoOf(Companion_0).t4r = function (_this__u8e3s4, format) {
|
|
|
4087
4087
|
tmp_5 = tmp_6;
|
|
4088
4088
|
}
|
|
4089
4089
|
var tmp4_safe_receiver = tmp_5;
|
|
4090
|
-
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
4090
|
+
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.h1i();
|
|
4091
4091
|
var tmp_7;
|
|
4092
4092
|
if (tmp5_safe_receiver == null) {
|
|
4093
4093
|
tmp_7 = null;
|
|
@@ -4098,18 +4098,18 @@ protoOf(Companion_0).t4r = function (_this__u8e3s4, format) {
|
|
|
4098
4098
|
// Inline function 'kotlin.takeIf' call
|
|
4099
4099
|
var this_0 = new Bound(tmp_3, tmp_7);
|
|
4100
4100
|
var tmp_8;
|
|
4101
|
-
if (!(this_0.
|
|
4101
|
+
if (!(this_0.f1a_1 == null) || !(this_0.g1a_1 == null)) {
|
|
4102
4102
|
tmp_8 = this_0;
|
|
4103
4103
|
} else {
|
|
4104
4104
|
tmp_8 = null;
|
|
4105
4105
|
}
|
|
4106
4106
|
return tmp_8;
|
|
4107
4107
|
};
|
|
4108
|
-
protoOf(Companion_0).
|
|
4108
|
+
protoOf(Companion_0).b4u = function (_this__u8e3s4) {
|
|
4109
4109
|
var tmp = Regex_init_$Create$('\\\\.|/');
|
|
4110
4110
|
return tmp.ad(_this__u8e3s4, AsyncAPIConverter$Companion$escapeSlashes$lambda);
|
|
4111
4111
|
};
|
|
4112
|
-
protoOf(Companion_0).
|
|
4112
|
+
protoOf(Companion_0).y4s = function (_this__u8e3s4, section) {
|
|
4113
4113
|
// Inline function 'kotlin.takeIf' call
|
|
4114
4114
|
var this_0 = removePrefix(_this__u8e3s4, '#/components/' + section + '/');
|
|
4115
4115
|
var tmp;
|
|
@@ -4121,7 +4121,7 @@ protoOf(Companion_0).p4q = function (_this__u8e3s4, section) {
|
|
|
4121
4121
|
var tmp0_safe_receiver = tmp;
|
|
4122
4122
|
return tmp0_safe_receiver == null ? null : unescapePointer(tmp0_safe_receiver);
|
|
4123
4123
|
};
|
|
4124
|
-
protoOf(Companion_0).
|
|
4124
|
+
protoOf(Companion_0).o4s = function (_this__u8e3s4) {
|
|
4125
4125
|
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
4126
4126
|
var tmp;
|
|
4127
4127
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
@@ -4137,7 +4137,7 @@ protoOf(Companion_0).f4q = function (_this__u8e3s4) {
|
|
|
4137
4137
|
}
|
|
4138
4138
|
return tmp;
|
|
4139
4139
|
};
|
|
4140
|
-
protoOf(Companion_0).
|
|
4140
|
+
protoOf(Companion_0).w4s = function (_this__u8e3s4, taken) {
|
|
4141
4141
|
var tmp = generateSequence(1, AsyncAPIConverter$Companion$unique$lambda);
|
|
4142
4142
|
var tmp0 = map(tmp, AsyncAPIConverter$Companion$unique$lambda_0(_this__u8e3s4));
|
|
4143
4143
|
var tmp$ret$0;
|
|
@@ -4155,7 +4155,7 @@ protoOf(Companion_0).n4q = function (_this__u8e3s4, taken) {
|
|
|
4155
4155
|
}
|
|
4156
4156
|
return tmp$ret$0;
|
|
4157
4157
|
};
|
|
4158
|
-
protoOf(Companion_0).
|
|
4158
|
+
protoOf(Companion_0).d4t = function (_this__u8e3s4) {
|
|
4159
4159
|
// Inline function 'kotlin.text.split' call
|
|
4160
4160
|
var tmp = Regex_init_$Create$('[^a-zA-Z0-9]+').ed(_this__u8e3s4, 0);
|
|
4161
4161
|
var tmp0 = joinToString(tmp, '', VOID, VOID, VOID, VOID, AsyncAPIConverter$Companion$toIdentifier$lambda);
|
|
@@ -4213,10 +4213,10 @@ protoOf(Companion_0).u4q = function (_this__u8e3s4) {
|
|
|
4213
4213
|
}
|
|
4214
4214
|
return tmp_2;
|
|
4215
4215
|
};
|
|
4216
|
-
protoOf(Companion_0).
|
|
4216
|
+
protoOf(Companion_0).a4u = function (_this__u8e3s4) {
|
|
4217
4217
|
// Inline function 'kotlin.takeIf' call
|
|
4218
4218
|
var tmp;
|
|
4219
|
-
if (this.
|
|
4219
|
+
if (this.h4s_1.rc(_this__u8e3s4)) {
|
|
4220
4220
|
tmp = _this__u8e3s4;
|
|
4221
4221
|
} else {
|
|
4222
4222
|
tmp = null;
|
|
@@ -4240,8 +4240,8 @@ protoOf(Companion_0).r4r = function (_this__u8e3s4) {
|
|
|
4240
4240
|
}
|
|
4241
4241
|
return tmp_0;
|
|
4242
4242
|
};
|
|
4243
|
-
protoOf(Companion_0).
|
|
4244
|
-
return this.
|
|
4243
|
+
protoOf(Companion_0).t4t = function (_this__u8e3s4) {
|
|
4244
|
+
return this.a4u(_this__u8e3s4);
|
|
4245
4245
|
};
|
|
4246
4246
|
var Companion_instance_2;
|
|
4247
4247
|
function Companion_getInstance_0() {
|
|
@@ -4258,24 +4258,24 @@ function MutableMap$get$ref(p0) {
|
|
|
4258
4258
|
}
|
|
4259
4259
|
function AsyncAPIConverter$writer$lambda(this$0) {
|
|
4260
4260
|
return function (it) {
|
|
4261
|
-
var tmp0_elvis_lhs = this$0.
|
|
4261
|
+
var tmp0_elvis_lhs = this$0.t4r_1.s2(it);
|
|
4262
4262
|
return tmp0_elvis_lhs == null ? it : tmp0_elvis_lhs;
|
|
4263
4263
|
};
|
|
4264
4264
|
}
|
|
4265
4265
|
function AsyncAPIConverter$channelV3$lambda(it) {
|
|
4266
|
-
return Companion_getInstance_0().
|
|
4266
|
+
return Companion_getInstance_0().x4s(it);
|
|
4267
4267
|
}
|
|
4268
4268
|
function AsyncAPIConverter$channelV3$lambda_0(it) {
|
|
4269
|
-
return Companion_getInstance_0().
|
|
4269
|
+
return Companion_getInstance_0().m4s(it);
|
|
4270
4270
|
}
|
|
4271
4271
|
function AsyncAPIConverter$channelV2$lambda(it) {
|
|
4272
|
-
return Companion_getInstance_0().
|
|
4272
|
+
return Companion_getInstance_0().x4s(it);
|
|
4273
4273
|
}
|
|
4274
4274
|
function AsyncAPIConverter(document) {
|
|
4275
4275
|
Companion_getInstance_0();
|
|
4276
|
-
this.
|
|
4276
|
+
this.n4r_1 = document;
|
|
4277
4277
|
var tmp = this;
|
|
4278
|
-
var tmp0_safe_receiver = Companion_getInstance_0().
|
|
4278
|
+
var tmp0_safe_receiver = Companion_getInstance_0().z4s(this.n4r_1, 'asyncapi');
|
|
4279
4279
|
var tmp_0;
|
|
4280
4280
|
if (tmp0_safe_receiver == null) {
|
|
4281
4281
|
tmp_0 = null;
|
|
@@ -4288,7 +4288,7 @@ function AsyncAPIConverter(document) {
|
|
|
4288
4288
|
} else {
|
|
4289
4289
|
// Inline function 'kotlin.takeIf' call
|
|
4290
4290
|
var tmp_2;
|
|
4291
|
-
if (Companion_getInstance_0().
|
|
4291
|
+
if (Companion_getInstance_0().d4s_1.i1(tmp0_safe_receiver_0)) {
|
|
4292
4292
|
tmp_2 = tmp0_safe_receiver_0;
|
|
4293
4293
|
} else {
|
|
4294
4294
|
tmp_2 = null;
|
|
@@ -4315,19 +4315,19 @@ function AsyncAPIConverter(document) {
|
|
|
4315
4315
|
} else {
|
|
4316
4316
|
tmp_4 = tmp1_elvis_lhs_0;
|
|
4317
4317
|
}
|
|
4318
|
-
tmp.
|
|
4318
|
+
tmp.o4r_1 = tmp_4;
|
|
4319
4319
|
var tmp_5 = this;
|
|
4320
4320
|
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
4321
|
-
tmp_5.
|
|
4321
|
+
tmp_5.p4r_1 = LinkedHashSet_init_$Create$();
|
|
4322
4322
|
var tmp_6 = this;
|
|
4323
|
-
var tmp_7 = this.
|
|
4324
|
-
tmp_6.
|
|
4323
|
+
var tmp_7 = this.n4r_1.kd('components');
|
|
4324
|
+
tmp_6.q4r_1 = tmp_7 instanceof JsonObject ? tmp_7 : null;
|
|
4325
4325
|
var tmp_8 = this;
|
|
4326
|
-
var tmp0_safe_receiver_1 = this.
|
|
4327
|
-
tmp_8.
|
|
4326
|
+
var tmp0_safe_receiver_1 = this.q4r_1;
|
|
4327
|
+
tmp_8.r4r_1 = orEmpty(tmp0_safe_receiver_1 == null ? null : Companion_getInstance_0().p4s(tmp0_safe_receiver_1, 'schemas'));
|
|
4328
4328
|
var tmp_9 = this;
|
|
4329
4329
|
// Inline function 'kotlin.collections.filterValues' call
|
|
4330
|
-
var this_0 = this.
|
|
4330
|
+
var this_0 = this.r4r_1;
|
|
4331
4331
|
var result = LinkedHashMap_init_$Create$_0();
|
|
4332
4332
|
// Inline function 'kotlin.collections.iterator' call
|
|
4333
4333
|
var _iterator__ex2g4s = this_0.m1().t();
|
|
@@ -4346,13 +4346,13 @@ function AsyncAPIConverter(document) {
|
|
|
4346
4346
|
var _iterator__ex2g4s_0 = this_1.t();
|
|
4347
4347
|
while (_iterator__ex2g4s_0.u()) {
|
|
4348
4348
|
var element = _iterator__ex2g4s_0.v();
|
|
4349
|
-
var tmp$ret$12 = claim(this, Companion_getInstance_0().
|
|
4349
|
+
var tmp$ret$12 = claim(this, Companion_getInstance_0().d4t(element));
|
|
4350
4350
|
result_0.v2(element, tmp$ret$12);
|
|
4351
4351
|
}
|
|
4352
|
-
tmp_9.
|
|
4352
|
+
tmp_9.s4r_1 = result_0;
|
|
4353
4353
|
var tmp_10 = this;
|
|
4354
4354
|
// Inline function 'kotlin.collections.associate' call
|
|
4355
|
-
var this_2 = this.
|
|
4355
|
+
var this_2 = this.s4r_1.m1();
|
|
4356
4356
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_2, 10)), 16);
|
|
4357
4357
|
// Inline function 'kotlin.collections.associateTo' call
|
|
4358
4358
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -4367,33 +4367,33 @@ function AsyncAPIConverter(document) {
|
|
|
4367
4367
|
var pair = to(name, key);
|
|
4368
4368
|
destination.v2(pair.ff_1, pair.gf_1);
|
|
4369
4369
|
}
|
|
4370
|
-
tmp_10.
|
|
4371
|
-
this.
|
|
4370
|
+
tmp_10.t4r_1 = destination;
|
|
4371
|
+
this.u4r_1 = claim(this, 'AsyncAPI');
|
|
4372
4372
|
var tmp_11 = this;
|
|
4373
4373
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
4374
|
-
tmp_11.
|
|
4374
|
+
tmp_11.v4r_1 = LinkedHashMap_init_$Create$_0();
|
|
4375
4375
|
var tmp_12 = this;
|
|
4376
4376
|
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
4377
|
-
tmp_12.
|
|
4377
|
+
tmp_12.w4r_1 = LinkedHashSet_init_$Create$();
|
|
4378
4378
|
var tmp_13 = this;
|
|
4379
4379
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
4380
|
-
tmp_13.
|
|
4380
|
+
tmp_13.x4r_1 = LinkedHashMap_init_$Create$_0();
|
|
4381
4381
|
var tmp_14 = this;
|
|
4382
|
-
var tmp_15 = MutableMap$get$ref(this.
|
|
4383
|
-
tmp_14.
|
|
4382
|
+
var tmp_15 = MutableMap$get$ref(this.x4r_1);
|
|
4383
|
+
tmp_14.y4r_1 = new JsonSchemaWriter(tmp_15, AsyncAPIConverter$writer$lambda(this));
|
|
4384
4384
|
var tmp_16 = this;
|
|
4385
4385
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
4386
|
-
tmp_16.
|
|
4386
|
+
tmp_16.z4r_1 = LinkedHashMap_init_$Create$_0();
|
|
4387
4387
|
var tmp_17 = this;
|
|
4388
4388
|
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
4389
|
-
tmp_17.
|
|
4390
|
-
this.
|
|
4389
|
+
tmp_17.a4s_1 = LinkedHashSet_init_$Create$();
|
|
4390
|
+
this.b4s_1 = orEmpty(Companion_getInstance_0().p4s(this.n4r_1, 'channels')).t2();
|
|
4391
4391
|
}
|
|
4392
|
-
protoOf(AsyncAPIConverter).
|
|
4392
|
+
protoOf(AsyncAPIConverter).c4s = function () {
|
|
4393
4393
|
// Inline function 'kotlin.takeIf' call
|
|
4394
|
-
var this_0 = orEmpty(Companion_getInstance_0().
|
|
4394
|
+
var this_0 = orEmpty(Companion_getInstance_0().p4s(this.n4r_1, 'operations'));
|
|
4395
4395
|
var tmp;
|
|
4396
|
-
if (this.
|
|
4396
|
+
if (this.o4r_1 === 3) {
|
|
4397
4397
|
tmp = this_0;
|
|
4398
4398
|
} else {
|
|
4399
4399
|
tmp = null;
|
|
@@ -4402,7 +4402,7 @@ protoOf(AsyncAPIConverter).t4p = function () {
|
|
|
4402
4402
|
// Inline function 'kotlin.collections.map' call
|
|
4403
4403
|
var this_1 = orEmpty(tmp$ret$0);
|
|
4404
4404
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4405
|
-
var destination = ArrayList_init_$Create$(this_1.
|
|
4405
|
+
var destination = ArrayList_init_$Create$(this_1.c1());
|
|
4406
4406
|
// Inline function 'kotlin.collections.iterator' call
|
|
4407
4407
|
var _iterator__ex2g4s = this_1.m1().t();
|
|
4408
4408
|
while (_iterator__ex2g4s.u()) {
|
|
@@ -4441,7 +4441,7 @@ protoOf(AsyncAPIConverter).t4p = function () {
|
|
|
4441
4441
|
var channelOperations = _destruct__k2r9zo.ze();
|
|
4442
4442
|
var documentOperations = _destruct__k2r9zo.af();
|
|
4443
4443
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4444
|
-
var tmp0 = orEmpty(Companion_getInstance_0().
|
|
4444
|
+
var tmp0 = orEmpty(Companion_getInstance_0().p4s(this.n4r_1, 'channels'));
|
|
4445
4445
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4446
4446
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
4447
4447
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -4453,7 +4453,7 @@ protoOf(AsyncAPIConverter).t4p = function () {
|
|
|
4453
4453
|
// Inline function 'kotlin.collections.component2' call
|
|
4454
4454
|
var channel = element_0.o1();
|
|
4455
4455
|
var tmp_1;
|
|
4456
|
-
if (this.
|
|
4456
|
+
if (this.o4r_1 === 2) {
|
|
4457
4457
|
tmp_1 = channelV2(this, key_0, channel);
|
|
4458
4458
|
} else {
|
|
4459
4459
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -4473,9 +4473,9 @@ protoOf(AsyncAPIConverter).t4p = function () {
|
|
|
4473
4473
|
addAll(destination_0, list);
|
|
4474
4474
|
}
|
|
4475
4475
|
var channels = destination_0;
|
|
4476
|
-
var tmp0_safe_receiver = this.
|
|
4476
|
+
var tmp0_safe_receiver = this.q4r_1;
|
|
4477
4477
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
4478
|
-
var tmp0_0 = orEmpty(tmp0_safe_receiver == null ? null : Companion_getInstance_0().
|
|
4478
|
+
var tmp0_0 = orEmpty(tmp0_safe_receiver == null ? null : Companion_getInstance_0().p4s(tmp0_safe_receiver, 'messages')).t2();
|
|
4479
4479
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
4480
4480
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
4481
4481
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -4497,35 +4497,35 @@ protoOf(AsyncAPIConverter).t4p = function () {
|
|
|
4497
4497
|
var _iterator__ex2g4s_4 = messages.t();
|
|
4498
4498
|
while (_iterator__ex2g4s_4.u()) {
|
|
4499
4499
|
var element_3 = _iterator__ex2g4s_4.v();
|
|
4500
|
-
var list_0 = element_3.
|
|
4500
|
+
var list_0 = element_3.l4s_1;
|
|
4501
4501
|
addAll(destination_3, list_0);
|
|
4502
4502
|
}
|
|
4503
4503
|
var tmp_2 = plus(channels, destination_3);
|
|
4504
4504
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4505
|
-
var tmp0_1 = this.
|
|
4505
|
+
var tmp0_1 = this.s4r_1.t2();
|
|
4506
4506
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4507
4507
|
var destination_4 = ArrayList_init_$Create$_0();
|
|
4508
4508
|
var _iterator__ex2g4s_5 = tmp0_1.t();
|
|
4509
4509
|
while (_iterator__ex2g4s_5.u()) {
|
|
4510
4510
|
var element_4 = _iterator__ex2g4s_5.v();
|
|
4511
|
-
var list_1 = component(this, element_4).
|
|
4511
|
+
var list_1 = component(this, element_4).b4t_1;
|
|
4512
4512
|
addAll(destination_4, list_1);
|
|
4513
4513
|
}
|
|
4514
4514
|
var definitions = plus(tmp_2, destination_4);
|
|
4515
4515
|
return NonEmptyList__plus_impl_xqmb9(nonEmptyListOf(holder(this, messages, documentOperations), []), definitions);
|
|
4516
4516
|
};
|
|
4517
4517
|
function ConvertedMessage(annotation, payload, definitions) {
|
|
4518
|
-
this.
|
|
4519
|
-
this.
|
|
4520
|
-
this.
|
|
4518
|
+
this.j4s_1 = annotation;
|
|
4519
|
+
this.k4s_1 = payload;
|
|
4520
|
+
this.l4s_1 = definitions;
|
|
4521
4521
|
}
|
|
4522
4522
|
protoOf(ConvertedMessage).toString = function () {
|
|
4523
|
-
return 'ConvertedMessage(annotation=' + this.
|
|
4523
|
+
return 'ConvertedMessage(annotation=' + this.j4s_1.toString() + ', payload=' + toString_0(this.k4s_1) + ', definitions=' + toString_0(this.l4s_1) + ')';
|
|
4524
4524
|
};
|
|
4525
4525
|
protoOf(ConvertedMessage).hashCode = function () {
|
|
4526
|
-
var result = this.
|
|
4527
|
-
result = imul(result, 31) + hashCode(this.
|
|
4528
|
-
result = imul(result, 31) + hashCode(this.
|
|
4526
|
+
var result = this.j4s_1.hashCode();
|
|
4527
|
+
result = imul(result, 31) + hashCode(this.k4s_1) | 0;
|
|
4528
|
+
result = imul(result, 31) + hashCode(this.l4s_1) | 0;
|
|
4529
4529
|
return result;
|
|
4530
4530
|
};
|
|
4531
4531
|
protoOf(ConvertedMessage).equals = function (other) {
|
|
@@ -4533,33 +4533,33 @@ protoOf(ConvertedMessage).equals = function (other) {
|
|
|
4533
4533
|
return true;
|
|
4534
4534
|
if (!(other instanceof ConvertedMessage))
|
|
4535
4535
|
return false;
|
|
4536
|
-
if (!this.
|
|
4536
|
+
if (!this.j4s_1.equals(other.j4s_1))
|
|
4537
4537
|
return false;
|
|
4538
|
-
if (!equals(this.
|
|
4538
|
+
if (!equals(this.k4s_1, other.k4s_1))
|
|
4539
4539
|
return false;
|
|
4540
|
-
if (!equals(this.
|
|
4540
|
+
if (!equals(this.l4s_1, other.l4s_1))
|
|
4541
4541
|
return false;
|
|
4542
4542
|
return true;
|
|
4543
4543
|
};
|
|
4544
4544
|
function Converted(reference, definitions) {
|
|
4545
4545
|
definitions = definitions === VOID ? emptyList() : definitions;
|
|
4546
|
-
this.
|
|
4547
|
-
this.
|
|
4546
|
+
this.a4t_1 = reference;
|
|
4547
|
+
this.b4t_1 = definitions;
|
|
4548
4548
|
}
|
|
4549
|
-
protoOf(Converted).
|
|
4549
|
+
protoOf(Converted).d4u = function (reference, definitions) {
|
|
4550
4550
|
return new Converted(reference, definitions);
|
|
4551
4551
|
};
|
|
4552
|
-
protoOf(Converted).
|
|
4553
|
-
reference = reference === VOID ? this.
|
|
4554
|
-
definitions = definitions === VOID ? this.
|
|
4555
|
-
return $super === VOID ? this.
|
|
4552
|
+
protoOf(Converted).n4t = function (reference, definitions, $super) {
|
|
4553
|
+
reference = reference === VOID ? this.a4t_1 : reference;
|
|
4554
|
+
definitions = definitions === VOID ? this.b4t_1 : definitions;
|
|
4555
|
+
return $super === VOID ? this.d4u(reference, definitions) : $super.d4u.call(this, reference, definitions);
|
|
4556
4556
|
};
|
|
4557
4557
|
protoOf(Converted).toString = function () {
|
|
4558
|
-
return 'Converted(reference=' + toString_0(this.
|
|
4558
|
+
return 'Converted(reference=' + toString_0(this.a4t_1) + ', definitions=' + toString_0(this.b4t_1) + ')';
|
|
4559
4559
|
};
|
|
4560
4560
|
protoOf(Converted).hashCode = function () {
|
|
4561
|
-
var result = hashCode(this.
|
|
4562
|
-
result = imul(result, 31) + hashCode(this.
|
|
4561
|
+
var result = hashCode(this.a4t_1);
|
|
4562
|
+
result = imul(result, 31) + hashCode(this.b4t_1) | 0;
|
|
4563
4563
|
return result;
|
|
4564
4564
|
};
|
|
4565
4565
|
protoOf(Converted).equals = function (other) {
|
|
@@ -4567,26 +4567,26 @@ protoOf(Converted).equals = function (other) {
|
|
|
4567
4567
|
return true;
|
|
4568
4568
|
if (!(other instanceof Converted))
|
|
4569
4569
|
return false;
|
|
4570
|
-
if (!equals(this.
|
|
4570
|
+
if (!equals(this.a4t_1, other.a4t_1))
|
|
4571
4571
|
return false;
|
|
4572
|
-
if (!equals(this.
|
|
4572
|
+
if (!equals(this.b4t_1, other.b4t_1))
|
|
4573
4573
|
return false;
|
|
4574
4574
|
return true;
|
|
4575
4575
|
};
|
|
4576
4576
|
function OperationMessage(id, pointer, element, name) {
|
|
4577
|
-
this.
|
|
4578
|
-
this.
|
|
4579
|
-
this.
|
|
4580
|
-
this.
|
|
4577
|
+
this.s4s_1 = id;
|
|
4578
|
+
this.t4s_1 = pointer;
|
|
4579
|
+
this.u4s_1 = element;
|
|
4580
|
+
this.v4s_1 = name;
|
|
4581
4581
|
}
|
|
4582
4582
|
protoOf(OperationMessage).toString = function () {
|
|
4583
|
-
return 'OperationMessage(id=' + this.
|
|
4583
|
+
return 'OperationMessage(id=' + this.s4s_1 + ', pointer=' + this.t4s_1 + ', element=' + toString_0(this.u4s_1) + ', name=' + this.v4s_1 + ')';
|
|
4584
4584
|
};
|
|
4585
4585
|
protoOf(OperationMessage).hashCode = function () {
|
|
4586
|
-
var result = getStringHashCode(this.
|
|
4587
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
4588
|
-
result = imul(result, 31) + hashCode(this.
|
|
4589
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
4586
|
+
var result = getStringHashCode(this.s4s_1);
|
|
4587
|
+
result = imul(result, 31) + getStringHashCode(this.t4s_1) | 0;
|
|
4588
|
+
result = imul(result, 31) + hashCode(this.u4s_1) | 0;
|
|
4589
|
+
result = imul(result, 31) + getStringHashCode(this.v4s_1) | 0;
|
|
4590
4590
|
return result;
|
|
4591
4591
|
};
|
|
4592
4592
|
protoOf(OperationMessage).equals = function (other) {
|
|
@@ -4594,26 +4594,26 @@ protoOf(OperationMessage).equals = function (other) {
|
|
|
4594
4594
|
return true;
|
|
4595
4595
|
if (!(other instanceof OperationMessage))
|
|
4596
4596
|
return false;
|
|
4597
|
-
if (!(this.
|
|
4597
|
+
if (!(this.s4s_1 === other.s4s_1))
|
|
4598
4598
|
return false;
|
|
4599
|
-
if (!(this.
|
|
4599
|
+
if (!(this.t4s_1 === other.t4s_1))
|
|
4600
4600
|
return false;
|
|
4601
|
-
if (!equals(this.
|
|
4601
|
+
if (!equals(this.u4s_1, other.u4s_1))
|
|
4602
4602
|
return false;
|
|
4603
|
-
if (!(this.
|
|
4603
|
+
if (!(this.v4s_1 === other.v4s_1))
|
|
4604
4604
|
return false;
|
|
4605
4605
|
return true;
|
|
4606
4606
|
};
|
|
4607
4607
|
function Located(pointer, node) {
|
|
4608
|
-
this.
|
|
4609
|
-
this.
|
|
4608
|
+
this.q4t_1 = pointer;
|
|
4609
|
+
this.r4t_1 = node;
|
|
4610
4610
|
}
|
|
4611
4611
|
protoOf(Located).toString = function () {
|
|
4612
|
-
return 'Located(pointer=' + this.
|
|
4612
|
+
return 'Located(pointer=' + this.q4t_1 + ', node=' + this.r4t_1.toString() + ')';
|
|
4613
4613
|
};
|
|
4614
4614
|
protoOf(Located).hashCode = function () {
|
|
4615
|
-
var result = getStringHashCode(this.
|
|
4616
|
-
result = imul(result, 31) + this.
|
|
4615
|
+
var result = getStringHashCode(this.q4t_1);
|
|
4616
|
+
result = imul(result, 31) + this.r4t_1.hashCode() | 0;
|
|
4617
4617
|
return result;
|
|
4618
4618
|
};
|
|
4619
4619
|
protoOf(Located).equals = function (other) {
|
|
@@ -4621,9 +4621,9 @@ protoOf(Located).equals = function (other) {
|
|
|
4621
4621
|
return true;
|
|
4622
4622
|
if (!(other instanceof Located))
|
|
4623
4623
|
return false;
|
|
4624
|
-
if (!(this.
|
|
4624
|
+
if (!(this.q4t_1 === other.q4t_1))
|
|
4625
4625
|
return false;
|
|
4626
|
-
if (!this.
|
|
4626
|
+
if (!this.r4t_1.equals(other.r4t_1))
|
|
4627
4627
|
return false;
|
|
4628
4628
|
return true;
|
|
4629
4629
|
};
|
|
@@ -4631,7 +4631,7 @@ function orEmpty(_this__u8e3s4) {
|
|
|
4631
4631
|
return _this__u8e3s4 == null ? new JsonObject(emptyMap()) : _this__u8e3s4;
|
|
4632
4632
|
}
|
|
4633
4633
|
function schema($this, $receiver, inlining) {
|
|
4634
|
-
return patched($this, canonical($this, $receiver, inlining), $receiver.
|
|
4634
|
+
return patched($this, canonical($this, $receiver, inlining), $receiver.i1e());
|
|
4635
4635
|
}
|
|
4636
4636
|
function canonical($this, $receiver, inlining) {
|
|
4637
4637
|
var tmp;
|
|
@@ -4719,7 +4719,7 @@ function canonical($this, $receiver, inlining) {
|
|
|
4719
4719
|
tmp = jsonObjectOf([tmp_7, to('oneOf', new JsonArray(destination_3))]);
|
|
4720
4720
|
} else {
|
|
4721
4721
|
if ($receiver instanceof Refined) {
|
|
4722
|
-
tmp = withEntries(schema_2($this, $receiver.ms_1.
|
|
4722
|
+
tmp = withEntries(schema_2($this, $receiver.ms_1.z19_1), [to('description', description_0($this, $receiver))]);
|
|
4723
4723
|
} else {
|
|
4724
4724
|
noWhenBranchMatchedException();
|
|
4725
4725
|
}
|
|
@@ -4732,8 +4732,8 @@ function schema_0($this, $receiver, inlining) {
|
|
|
4732
4732
|
return patched($this, canonical_0($this, $receiver, inlining), $receiver.np_1);
|
|
4733
4733
|
}
|
|
4734
4734
|
function canonical_0($this, $receiver, inlining) {
|
|
4735
|
-
var tmp = schema_1($this, $receiver.pp_1.
|
|
4736
|
-
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().
|
|
4735
|
+
var tmp = schema_1($this, $receiver.pp_1.t1a(false), inlining);
|
|
4736
|
+
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().h4p($receiver.np_1, 'Description');
|
|
4737
4737
|
var tmp_0;
|
|
4738
4738
|
if (tmp0_safe_receiver == null) {
|
|
4739
4739
|
tmp_0 = null;
|
|
@@ -4748,14 +4748,14 @@ function canonical_0($this, $receiver, inlining) {
|
|
|
4748
4748
|
function schema_1($this, $receiver, inlining) {
|
|
4749
4749
|
var tmp;
|
|
4750
4750
|
if ($receiver instanceof Custom) {
|
|
4751
|
-
var tmp1_safe_receiver = $this.
|
|
4751
|
+
var tmp1_safe_receiver = $this.j4r_1($receiver.x19_1);
|
|
4752
4752
|
var tmp_0;
|
|
4753
4753
|
if (tmp1_safe_receiver == null) {
|
|
4754
4754
|
tmp_0 = null;
|
|
4755
4755
|
} else {
|
|
4756
4756
|
// Inline function 'kotlin.takeIf' call
|
|
4757
4757
|
var tmp_1;
|
|
4758
|
-
if (!inlining.i1($receiver.
|
|
4758
|
+
if (!inlining.i1($receiver.x19_1)) {
|
|
4759
4759
|
tmp_1 = tmp1_safe_receiver;
|
|
4760
4760
|
} else {
|
|
4761
4761
|
tmp_1 = null;
|
|
@@ -4763,11 +4763,11 @@ function schema_1($this, $receiver, inlining) {
|
|
|
4763
4763
|
tmp_0 = tmp_1;
|
|
4764
4764
|
}
|
|
4765
4765
|
var tmp2_safe_receiver = tmp_0;
|
|
4766
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : schema($this, tmp2_safe_receiver, plus_3(inlining, $receiver.
|
|
4767
|
-
tmp = tmp3_elvis_lhs == null ? ref('#/components/schemas/' + escapePointer($this.
|
|
4766
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : schema($this, tmp2_safe_receiver, plus_3(inlining, $receiver.x19_1));
|
|
4767
|
+
tmp = tmp3_elvis_lhs == null ? ref('#/components/schemas/' + escapePointer($this.k4r_1($receiver.x19_1))) : tmp3_elvis_lhs;
|
|
4768
4768
|
} else {
|
|
4769
4769
|
if ($receiver instanceof Primitive) {
|
|
4770
|
-
tmp = schema_2($this, $receiver.
|
|
4770
|
+
tmp = schema_2($this, $receiver.z19_1);
|
|
4771
4771
|
} else {
|
|
4772
4772
|
if ($receiver instanceof Iterable) {
|
|
4773
4773
|
tmp = jsonObjectOf([to('type', JsonPrimitive_0('array')), to('items', schema_1($this, $receiver.yp_1, inlining))]);
|
|
@@ -4779,7 +4779,7 @@ function schema_1($this, $receiver, inlining) {
|
|
|
4779
4779
|
tmp = new JsonObject(emptyMap());
|
|
4780
4780
|
} else {
|
|
4781
4781
|
if ($receiver instanceof Unit) {
|
|
4782
|
-
tmp = Companion_getInstance_1().
|
|
4782
|
+
tmp = Companion_getInstance_1().f4u_1;
|
|
4783
4783
|
} else {
|
|
4784
4784
|
noWhenBranchMatchedException();
|
|
4785
4785
|
}
|
|
@@ -4796,7 +4796,7 @@ function schema_2($this, $receiver) {
|
|
|
4796
4796
|
var tmp;
|
|
4797
4797
|
if ($receiver instanceof String_0) {
|
|
4798
4798
|
var tmp_0 = to('type', JsonPrimitive_0('string'));
|
|
4799
|
-
var tmp1_safe_receiver = $receiver.
|
|
4799
|
+
var tmp1_safe_receiver = $receiver.k1a_1;
|
|
4800
4800
|
var tmp_1;
|
|
4801
4801
|
var tmp_2 = tmp1_safe_receiver;
|
|
4802
4802
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2)) == null) {
|
|
@@ -4820,18 +4820,18 @@ function schema_2($this, $receiver) {
|
|
|
4820
4820
|
// Inline function 'kotlin.takeIf' call
|
|
4821
4821
|
var this_0 = JsonPrimitive_0('int32');
|
|
4822
4822
|
var tmp_5;
|
|
4823
|
-
if ($receiver.
|
|
4823
|
+
if ($receiver.h1a_1.equals(Precision_P32_getInstance())) {
|
|
4824
4824
|
tmp_5 = this_0;
|
|
4825
4825
|
} else {
|
|
4826
4826
|
tmp_5 = null;
|
|
4827
4827
|
}
|
|
4828
4828
|
var tmp$ret$2 = tmp_5;
|
|
4829
4829
|
var tmp_6 = to('format', tmp$ret$2);
|
|
4830
|
-
var tmp4_safe_receiver = $receiver.
|
|
4831
|
-
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
4830
|
+
var tmp4_safe_receiver = $receiver.i1a_1;
|
|
4831
|
+
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.f1a_1;
|
|
4832
4832
|
var tmp_7 = to('minimum', tmp5_safe_receiver == null ? null : toJsonNumber(tmp5_safe_receiver));
|
|
4833
|
-
var tmp6_safe_receiver = $receiver.
|
|
4834
|
-
var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.
|
|
4833
|
+
var tmp6_safe_receiver = $receiver.i1a_1;
|
|
4834
|
+
var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.g1a_1;
|
|
4835
4835
|
tmp = jsonObjectOf([tmp_4, tmp_6, tmp_7, to('maximum', tmp7_safe_receiver == null ? null : toJsonNumber(tmp7_safe_receiver))]);
|
|
4836
4836
|
} else {
|
|
4837
4837
|
if ($receiver instanceof Number_0) {
|
|
@@ -4839,18 +4839,18 @@ function schema_2($this, $receiver) {
|
|
|
4839
4839
|
// Inline function 'kotlin.takeIf' call
|
|
4840
4840
|
var this_1 = JsonPrimitive_0('float');
|
|
4841
4841
|
var tmp_9;
|
|
4842
|
-
if ($receiver.
|
|
4842
|
+
if ($receiver.c1a_1.equals(Precision_P32_getInstance())) {
|
|
4843
4843
|
tmp_9 = this_1;
|
|
4844
4844
|
} else {
|
|
4845
4845
|
tmp_9 = null;
|
|
4846
4846
|
}
|
|
4847
4847
|
var tmp$ret$4 = tmp_9;
|
|
4848
4848
|
var tmp_10 = to('format', tmp$ret$4);
|
|
4849
|
-
var tmp8_safe_receiver = $receiver.
|
|
4850
|
-
var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.
|
|
4849
|
+
var tmp8_safe_receiver = $receiver.d1a_1;
|
|
4850
|
+
var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.f1a_1;
|
|
4851
4851
|
var tmp_11 = to('minimum', tmp9_safe_receiver == null ? null : toJsonNumber(tmp9_safe_receiver));
|
|
4852
|
-
var tmp10_safe_receiver = $receiver.
|
|
4853
|
-
var tmp11_safe_receiver = tmp10_safe_receiver == null ? null : tmp10_safe_receiver.
|
|
4852
|
+
var tmp10_safe_receiver = $receiver.d1a_1;
|
|
4853
|
+
var tmp11_safe_receiver = tmp10_safe_receiver == null ? null : tmp10_safe_receiver.g1a_1;
|
|
4854
4854
|
tmp = jsonObjectOf([tmp_8, tmp_10, tmp_11, to('maximum', tmp11_safe_receiver == null ? null : toJsonNumber(tmp11_safe_receiver))]);
|
|
4855
4855
|
} else {
|
|
4856
4856
|
if ($receiver instanceof Boolean_0) {
|
|
@@ -4868,10 +4868,10 @@ function schema_2($this, $receiver) {
|
|
|
4868
4868
|
return tmp;
|
|
4869
4869
|
}
|
|
4870
4870
|
function description_0($this, $receiver) {
|
|
4871
|
-
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().
|
|
4871
|
+
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().h4p($receiver.i1e(), 'Description');
|
|
4872
4872
|
var tmp;
|
|
4873
4873
|
if (tmp0_elvis_lhs == null) {
|
|
4874
|
-
var tmp1_safe_receiver = $receiver.
|
|
4874
|
+
var tmp1_safe_receiver = $receiver.h1e();
|
|
4875
4875
|
var tmp_0;
|
|
4876
4876
|
var tmp_1 = tmp1_safe_receiver;
|
|
4877
4877
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -4894,18 +4894,18 @@ function description_0($this, $receiver) {
|
|
|
4894
4894
|
return tmp_2;
|
|
4895
4895
|
}
|
|
4896
4896
|
function key_0($this, $receiver) {
|
|
4897
|
-
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().
|
|
4897
|
+
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().h4p($receiver.np_1, 'AsyncAPIName');
|
|
4898
4898
|
return tmp0_elvis_lhs == null ? $receiver.op_1.o1() : tmp0_elvis_lhs;
|
|
4899
4899
|
}
|
|
4900
4900
|
function patched($this, $receiver, annotations) {
|
|
4901
|
-
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().
|
|
4901
|
+
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().o4q(annotations, 'AsyncAPISchema');
|
|
4902
4902
|
var tmp;
|
|
4903
4903
|
if (tmp0_safe_receiver == null) {
|
|
4904
4904
|
tmp = null;
|
|
4905
4905
|
} else {
|
|
4906
4906
|
// Inline function 'kotlin.let' call
|
|
4907
|
-
var tmp0_safe_receiver_0 = AsyncAPIAnnotations_getInstance().
|
|
4908
|
-
var replacement = tmp0_safe_receiver_0 == null ? null : AsyncAPIAnnotations_getInstance().
|
|
4907
|
+
var tmp0_safe_receiver_0 = AsyncAPIAnnotations_getInstance().q4q(tmp0_safe_receiver);
|
|
4908
|
+
var replacement = tmp0_safe_receiver_0 == null ? null : AsyncAPIAnnotations_getInstance().g4q(tmp0_safe_receiver_0);
|
|
4909
4909
|
var tmp_0;
|
|
4910
4910
|
var tmp_1;
|
|
4911
4911
|
if (replacement == null) {
|
|
@@ -4915,7 +4915,7 @@ function patched($this, $receiver, annotations) {
|
|
|
4915
4915
|
}
|
|
4916
4916
|
if (tmp_1) {
|
|
4917
4917
|
var tmp_2 = orEmpty($receiver instanceof JsonObject ? $receiver : null);
|
|
4918
|
-
tmp_0 = new JsonObject(minus(plus_0(plus_0(tmp_2, orEmpty(replacement instanceof JsonObject ? replacement : null)), minus_0(AsyncAPIAnnotations_getInstance().
|
|
4918
|
+
tmp_0 = new JsonObject(minus(plus_0(plus_0(tmp_2, orEmpty(replacement instanceof JsonObject ? replacement : null)), minus_0(AsyncAPIAnnotations_getInstance().r4q(tmp0_safe_receiver), 'omit')), toSet(omitted($this, tmp0_safe_receiver))));
|
|
4919
4919
|
} else {
|
|
4920
4920
|
tmp_0 = replacement;
|
|
4921
4921
|
}
|
|
@@ -4926,14 +4926,14 @@ function patched($this, $receiver, annotations) {
|
|
|
4926
4926
|
}
|
|
4927
4927
|
function omitted($this, $receiver) {
|
|
4928
4928
|
// Inline function 'kotlin.collections.find' call
|
|
4929
|
-
var tmp0 = $receiver.
|
|
4929
|
+
var tmp0 = $receiver.n1a_1;
|
|
4930
4930
|
var tmp$ret$1;
|
|
4931
4931
|
$l$block: {
|
|
4932
4932
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
4933
4933
|
var _iterator__ex2g4s = tmp0.t();
|
|
4934
4934
|
while (_iterator__ex2g4s.u()) {
|
|
4935
4935
|
var element = _iterator__ex2g4s.v();
|
|
4936
|
-
if (element.
|
|
4936
|
+
if (element.o1a_1 === 'omit') {
|
|
4937
4937
|
tmp$ret$1 = element;
|
|
4938
4938
|
break $l$block;
|
|
4939
4939
|
}
|
|
@@ -4941,8 +4941,8 @@ function omitted($this, $receiver) {
|
|
|
4941
4941
|
tmp$ret$1 = null;
|
|
4942
4942
|
}
|
|
4943
4943
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
4944
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4945
|
-
var tmp = tmp1_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().
|
|
4944
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p1a_1;
|
|
4945
|
+
var tmp = tmp1_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().g4q(tmp1_safe_receiver);
|
|
4946
4946
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4947
4947
|
var tmp0_elvis_lhs = tmp instanceof JsonArray ? tmp : null;
|
|
4948
4948
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -4954,7 +4954,7 @@ function omitted($this, $receiver) {
|
|
|
4954
4954
|
while (_iterator__ex2g4s_0.u()) {
|
|
4955
4955
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
4956
4956
|
var tmp0_safe_receiver_0 = element_0 instanceof JsonPrimitive_1 ? element_0 : null;
|
|
4957
|
-
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.
|
|
4957
|
+
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.h1i();
|
|
4958
4958
|
if (tmp0_safe_receiver_1 == null)
|
|
4959
4959
|
null;
|
|
4960
4960
|
else {
|
|
@@ -4967,19 +4967,19 @@ function omitted($this, $receiver) {
|
|
|
4967
4967
|
function toJson($this, $receiver) {
|
|
4968
4968
|
var tmp;
|
|
4969
4969
|
if ($receiver instanceof StringValue) {
|
|
4970
|
-
tmp = JsonPrimitive_0($receiver.
|
|
4970
|
+
tmp = JsonPrimitive_0($receiver.y1a_1);
|
|
4971
4971
|
} else {
|
|
4972
4972
|
if ($receiver instanceof IntegerValue) {
|
|
4973
|
-
tmp = toJsonNumber($receiver.
|
|
4973
|
+
tmp = toJsonNumber($receiver.w1a_1);
|
|
4974
4974
|
} else {
|
|
4975
4975
|
if ($receiver instanceof NumberValue) {
|
|
4976
|
-
tmp = toJsonNumber($receiver.
|
|
4976
|
+
tmp = toJsonNumber($receiver.v1a_1);
|
|
4977
4977
|
} else {
|
|
4978
4978
|
if ($receiver instanceof BooleanValue) {
|
|
4979
|
-
tmp = JsonPrimitive($receiver.
|
|
4979
|
+
tmp = JsonPrimitive($receiver.x1a_1);
|
|
4980
4980
|
} else {
|
|
4981
4981
|
if ($receiver instanceof EnumValue) {
|
|
4982
|
-
tmp = JsonPrimitive_0($receiver.
|
|
4982
|
+
tmp = JsonPrimitive_0($receiver.u1a_1);
|
|
4983
4983
|
} else {
|
|
4984
4984
|
if ($receiver instanceof NullValue) {
|
|
4985
4985
|
tmp = JsonNull_getInstance();
|
|
@@ -5007,12 +5007,12 @@ function nullable($this, $receiver) {
|
|
|
5007
5007
|
var type = $receiver.kd('type');
|
|
5008
5008
|
var tmp_1;
|
|
5009
5009
|
if (type instanceof JsonArray) {
|
|
5010
|
-
tmp_1 = type.
|
|
5010
|
+
tmp_1 = type.y2o(Companion_getInstance_1().e4u_1) ? $receiver : new JsonObject(plus_4($receiver, to('type', new JsonArray(plus_2(type, Companion_getInstance_1().e4u_1)))));
|
|
5011
5011
|
} else {
|
|
5012
5012
|
if (type instanceof JsonPrimitive_1) {
|
|
5013
|
-
tmp_1 = equals(type, Companion_getInstance_1().
|
|
5013
|
+
tmp_1 = equals(type, Companion_getInstance_1().e4u_1) ? $receiver : new JsonObject(plus_4($receiver, to('type', new JsonArray(listOf_0([type, Companion_getInstance_1().e4u_1])))));
|
|
5014
5014
|
} else {
|
|
5015
|
-
tmp_1 = jsonObjectOf([to('oneOf', new JsonArray(listOf_0([$receiver, Companion_getInstance_1().
|
|
5015
|
+
tmp_1 = jsonObjectOf([to('oneOf', new JsonArray(listOf_0([$receiver, Companion_getInstance_1().f4u_1])))]);
|
|
5016
5016
|
}
|
|
5017
5017
|
}
|
|
5018
5018
|
tmp = tmp_1;
|
|
@@ -5027,8 +5027,8 @@ function toPattern($this, $receiver) {
|
|
|
5027
5027
|
}
|
|
5028
5028
|
function Companion_1() {
|
|
5029
5029
|
Companion_instance_3 = this;
|
|
5030
|
-
this.
|
|
5031
|
-
this.
|
|
5030
|
+
this.e4u_1 = JsonPrimitive_0('null');
|
|
5031
|
+
this.f4u_1 = new JsonObject(mapOf(to('type', this.e4u_1)));
|
|
5032
5032
|
}
|
|
5033
5033
|
var Companion_instance_3;
|
|
5034
5034
|
function Companion_getInstance_1() {
|
|
@@ -5041,19 +5041,19 @@ function JsonSchemaWriter$toPattern$lambda(it) {
|
|
|
5041
5041
|
}
|
|
5042
5042
|
function JsonSchemaWriter(inlineDefinition, componentKey) {
|
|
5043
5043
|
Companion_getInstance_1();
|
|
5044
|
-
this.
|
|
5045
|
-
this.
|
|
5044
|
+
this.j4r_1 = inlineDefinition;
|
|
5045
|
+
this.k4r_1 = componentKey;
|
|
5046
5046
|
}
|
|
5047
|
-
protoOf(JsonSchemaWriter).
|
|
5047
|
+
protoOf(JsonSchemaWriter).m4r = function (_this__u8e3s4) {
|
|
5048
5048
|
return schema(this, _this__u8e3s4, emptySet());
|
|
5049
5049
|
};
|
|
5050
|
-
protoOf(JsonSchemaWriter).
|
|
5050
|
+
protoOf(JsonSchemaWriter).w4t = function (_this__u8e3s4) {
|
|
5051
5051
|
return canonical(this, _this__u8e3s4, emptySet());
|
|
5052
5052
|
};
|
|
5053
|
-
protoOf(JsonSchemaWriter).
|
|
5053
|
+
protoOf(JsonSchemaWriter).u4t = function (_this__u8e3s4) {
|
|
5054
5054
|
return canonical_0(this, _this__u8e3s4, emptySet());
|
|
5055
5055
|
};
|
|
5056
|
-
protoOf(JsonSchemaWriter).
|
|
5056
|
+
protoOf(JsonSchemaWriter).l4r = function (_this__u8e3s4) {
|
|
5057
5057
|
return schema_1(this, _this__u8e3s4, emptySet());
|
|
5058
5058
|
};
|
|
5059
5059
|
function escapePointer(_this__u8e3s4) {
|
|
@@ -5135,7 +5135,7 @@ function schemaPatch(canonical, original) {
|
|
|
5135
5135
|
var pair = new Pair(element_1.n1(), element_1.o1());
|
|
5136
5136
|
destination_0.v2(pair.ff_1, pair.gf_1);
|
|
5137
5137
|
}
|
|
5138
|
-
tmp_2 = new Parameter('default', tmp_3.
|
|
5138
|
+
tmp_2 = new Parameter('default', tmp_3.n4q(new JsonObject(destination_0)));
|
|
5139
5139
|
}
|
|
5140
5140
|
var tmp_4 = listOfNotNull(tmp_2);
|
|
5141
5141
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -5148,7 +5148,7 @@ function schemaPatch(canonical, original) {
|
|
|
5148
5148
|
var key_0 = item.n1();
|
|
5149
5149
|
// Inline function 'kotlin.collections.component2' call
|
|
5150
5150
|
var value_0 = item.o1();
|
|
5151
|
-
var tmp$ret$19 = AsyncAPIAnnotations_getInstance().
|
|
5151
|
+
var tmp$ret$19 = AsyncAPIAnnotations_getInstance().k4q(key_0, AsyncAPIAnnotations_getInstance().n4q(value_0));
|
|
5152
5152
|
destination_1.x(tmp$ret$19);
|
|
5153
5153
|
}
|
|
5154
5154
|
var tmp_5 = plus(tmp_4, destination_1);
|
|
@@ -5177,11 +5177,11 @@ function schemaPatch(canonical, original) {
|
|
|
5177
5177
|
var tmp$ret$29 = JsonPrimitive_0(item_0);
|
|
5178
5178
|
destination_2.x(tmp$ret$29);
|
|
5179
5179
|
}
|
|
5180
|
-
tmp_7 = tmp_8.
|
|
5180
|
+
tmp_7 = tmp_8.k4q('omit', tmp_9.n4q(new JsonArray(destination_2)));
|
|
5181
5181
|
}
|
|
5182
5182
|
tmp = new Annotation('AsyncAPISchema', plus(tmp_5, listOfNotNull(tmp_7)));
|
|
5183
5183
|
} else {
|
|
5184
|
-
tmp = new Annotation('AsyncAPISchema', listOf(new Parameter('default', AsyncAPIAnnotations_getInstance().
|
|
5184
|
+
tmp = new Annotation('AsyncAPISchema', listOf(new Parameter('default', AsyncAPIAnnotations_getInstance().n4q(original))));
|
|
5185
5185
|
}
|
|
5186
5186
|
}
|
|
5187
5187
|
return tmp;
|
|
@@ -5251,7 +5251,7 @@ function toJsonNumber(_this__u8e3s4) {
|
|
|
5251
5251
|
var tmp;
|
|
5252
5252
|
try {
|
|
5253
5253
|
// Inline function 'kotlin.Companion.success' call
|
|
5254
|
-
var value = Default_getInstance().
|
|
5254
|
+
var value = Default_getInstance().p2m(_this__u8e3s4);
|
|
5255
5255
|
tmp = _Result___init__impl__xyqfz8(value);
|
|
5256
5256
|
} catch ($p) {
|
|
5257
5257
|
var tmp_0;
|
|
@@ -5279,7 +5279,7 @@ function toWirespec(_this__u8e3s4) {
|
|
|
5279
5279
|
tmp = 'Unit';
|
|
5280
5280
|
} else {
|
|
5281
5281
|
if (_this__u8e3s4 instanceof Custom) {
|
|
5282
|
-
tmp = _this__u8e3s4.
|
|
5282
|
+
tmp = _this__u8e3s4.x19_1;
|
|
5283
5283
|
} else {
|
|
5284
5284
|
if (_this__u8e3s4 instanceof Dict_0) {
|
|
5285
5285
|
tmp = '{ ' + toWirespec(_this__u8e3s4.bq_1) + ' }';
|
|
@@ -5288,7 +5288,7 @@ function toWirespec(_this__u8e3s4) {
|
|
|
5288
5288
|
tmp = toWirespec(_this__u8e3s4.yp_1) + '[]';
|
|
5289
5289
|
} else {
|
|
5290
5290
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
5291
|
-
var type = _this__u8e3s4.
|
|
5291
|
+
var type = _this__u8e3s4.z19_1;
|
|
5292
5292
|
var tmp_0;
|
|
5293
5293
|
if (type instanceof String_0) {
|
|
5294
5294
|
tmp_0 = 'String';
|
|
@@ -5300,10 +5300,10 @@ function toWirespec(_this__u8e3s4) {
|
|
|
5300
5300
|
tmp_0 = 'Bytes';
|
|
5301
5301
|
} else {
|
|
5302
5302
|
if (type instanceof Integer) {
|
|
5303
|
-
tmp_0 = type.
|
|
5303
|
+
tmp_0 = type.h1a_1.equals(Precision_P32_getInstance()) ? 'Integer32' : 'Integer';
|
|
5304
5304
|
} else {
|
|
5305
5305
|
if (type instanceof Number_0) {
|
|
5306
|
-
tmp_0 = type.
|
|
5306
|
+
tmp_0 = type.c1a_1.equals(Precision_P32_getInstance()) ? 'Number32' : 'Number';
|
|
5307
5307
|
} else {
|
|
5308
5308
|
noWhenBranchMatchedException();
|
|
5309
5309
|
}
|
|
@@ -5328,7 +5328,7 @@ function toReference(_this__u8e3s4) {
|
|
|
5328
5328
|
var source = toString_0(trim(isCharSequence(_this__u8e3s4) ? _this__u8e3s4 : THROW_CCE()));
|
|
5329
5329
|
var tmp;
|
|
5330
5330
|
if (endsWith(source, '?')) {
|
|
5331
|
-
tmp = toReference(dropLast(source, 1)).
|
|
5331
|
+
tmp = toReference(dropLast(source, 1)).t1a(true);
|
|
5332
5332
|
} else if (endsWith(source, '[]')) {
|
|
5333
5333
|
tmp = new Iterable(toReference(dropLast(source, 2)), false);
|
|
5334
5334
|
} else if (startsWith(source, '{') && endsWith(source, '}')) {
|