@flock/wirespec 0.22.5 → 0.22.7
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-atomic.mjs +11 -11
- package/arrow-arrow-core.mjs +157 -157
- package/clikt-clikt-mordant.mjs +80 -80
- package/clikt-clikt.mjs +1528 -1527
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +444 -444
- package/kotlin-kotlin-stdlib.mjs +1780 -1757
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10202 -10202
- package/kotlin-rgxgen.mjs +1812 -1812
- package/kotlinx-io-kotlinx-io-core.mjs +435 -435
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1848 -1848
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1576 -1576
- package/mordant-mordant.mjs +1322 -1322
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +7497 -7034
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +198 -214
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +164 -175
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +185 -198
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +425 -439
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +197 -207
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +234 -360
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +179 -199
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +282 -282
- package/wirespec-src-converter-asyncapi.mjs +861 -779
- package/wirespec-src-converter-asyncapi.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +603 -602
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-common.mjs +18 -18
- package/wirespec-src-converter-graphql.mjs +1070 -1070
- package/wirespec-src-converter-openapi.mjs +792 -680
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-ide-lsp.mjs +1383 -1383
- package/wirespec-src-plugin-arguments.mjs +207 -201
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +156 -159
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-extensions.mjs +1828 -1275
- package/wirespec-src-plugin-extensions.mjs.map +1 -1
- package/wirespec-src-plugin-npm.mjs +54 -54
- package/wirespec-src-tools-generator.mjs +32 -32
|
@@ -102,9 +102,9 @@ import {
|
|
|
102
102
|
minus165a8u1e0x1lu as minus_1,
|
|
103
103
|
isCharSequence1ju9jr1w86plq as isCharSequence,
|
|
104
104
|
trim11nh7r46at6sx as trim,
|
|
105
|
-
drop336950s126lmj as drop_0,
|
|
106
105
|
dropLastlqc2oyv04br0 as dropLast,
|
|
107
106
|
endsWith3cq61xxngobwh as endsWith,
|
|
107
|
+
drop336950s126lmj as drop_0,
|
|
108
108
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
109
109
|
import {
|
|
110
110
|
JsonObjectee06ihoeeiqj as JsonObject,
|
|
@@ -149,6 +149,7 @@ import {
|
|
|
149
149
|
EnumValue2b3i6n6mki85b as EnumValue,
|
|
150
150
|
_RegExp___init__impl__p22noo351zrimyjm8l3 as _RegExp___init__impl__p22noo,
|
|
151
151
|
RegExpiyof7szm5zfu as RegExp_0,
|
|
152
|
+
Companion_instance1ed4scihh5yo7 as Companion_instance_1,
|
|
152
153
|
String1czvr8pxnm6on as String_0,
|
|
153
154
|
Bytes_instance1cqd1xiwjq94x as Bytes_instance,
|
|
154
155
|
Precision_P64_getInstance1kka8j79p47e9 as Precision_P64_getInstance,
|
|
@@ -217,12 +218,12 @@ function Action_initEntries() {
|
|
|
217
218
|
var $ENTRIES;
|
|
218
219
|
function Action(name, ordinal, keyword, v2Keyword) {
|
|
219
220
|
Enum.call(this, name, ordinal);
|
|
220
|
-
this.
|
|
221
|
-
this.
|
|
221
|
+
this.v4p_1 = keyword;
|
|
222
|
+
this.w4p_1 = v2Keyword;
|
|
222
223
|
}
|
|
223
|
-
protoOf(Action).
|
|
224
|
+
protoOf(Action).x4p = function () {
|
|
224
225
|
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
225
|
-
var this_0 = this.
|
|
226
|
+
var this_0 = this.v4p_1;
|
|
226
227
|
var tmp;
|
|
227
228
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
228
229
|
if (charSequenceLength(this_0) > 0) {
|
|
@@ -237,8 +238,8 @@ protoOf(Action).j4n = function () {
|
|
|
237
238
|
}
|
|
238
239
|
return 'AsyncAPI' + tmp;
|
|
239
240
|
};
|
|
240
|
-
protoOf(Action).
|
|
241
|
-
return this.
|
|
241
|
+
protoOf(Action).y4p = function (channel) {
|
|
242
|
+
return this.v4p_1 + channel;
|
|
242
243
|
};
|
|
243
244
|
function toJsonObject($this, $receiver) {
|
|
244
245
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -249,8 +250,8 @@ function toJsonObject($this, $receiver) {
|
|
|
249
250
|
while (_iterator__ex2g4s.u()) {
|
|
250
251
|
var element = _iterator__ex2g4s.v();
|
|
251
252
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
252
|
-
var pair = to(fromLiteral(AsyncAPIAnnotations_getInstance(), element.
|
|
253
|
-
destination.
|
|
253
|
+
var pair = to(fromLiteral(AsyncAPIAnnotations_getInstance(), element.s1a_1), AsyncAPIAnnotations_getInstance().l4q(element.t1a_1));
|
|
254
|
+
destination.w2(pair.gf_1, pair.hf_1);
|
|
254
255
|
}
|
|
255
256
|
return new JsonObject(destination);
|
|
256
257
|
}
|
|
@@ -259,8 +260,8 @@ function toSingle($this, $receiver) {
|
|
|
259
260
|
if ($receiver instanceof JsonNull) {
|
|
260
261
|
tmp = 'null';
|
|
261
262
|
} else {
|
|
262
|
-
if ($receiver.
|
|
263
|
-
tmp = $receiver.
|
|
263
|
+
if ($receiver.w2o() && asJson($this, $receiver.m1i()) == null) {
|
|
264
|
+
tmp = $receiver.m1i();
|
|
264
265
|
} else {
|
|
265
266
|
tmp = $receiver.toString();
|
|
266
267
|
}
|
|
@@ -279,11 +280,11 @@ function asJson($this, $receiver) {
|
|
|
279
280
|
break;
|
|
280
281
|
default:
|
|
281
282
|
var tmp_0;
|
|
282
|
-
if ($this.
|
|
283
|
+
if ($this.j4q_1.sc($receiver)) {
|
|
283
284
|
tmp_0 = true;
|
|
284
285
|
} else {
|
|
285
286
|
var tmp_1 = firstOrNull($receiver);
|
|
286
|
-
tmp_0 = contains($this.
|
|
287
|
+
tmp_0 = contains($this.k4q_1, tmp_1 == null ? null : new Char(tmp_1));
|
|
287
288
|
}
|
|
288
289
|
|
|
289
290
|
if (tmp_0) {
|
|
@@ -291,7 +292,7 @@ function asJson($this, $receiver) {
|
|
|
291
292
|
var tmp_2;
|
|
292
293
|
try {
|
|
293
294
|
// Inline function 'kotlin.Companion.success' call
|
|
294
|
-
var value = Default_getInstance().
|
|
295
|
+
var value = Default_getInstance().u2m($receiver);
|
|
295
296
|
tmp_2 = _Result___init__impl__xyqfz8(value);
|
|
296
297
|
} catch ($p) {
|
|
297
298
|
var tmp_3;
|
|
@@ -394,20 +395,20 @@ function Action_RECEIVE_getInstance() {
|
|
|
394
395
|
}
|
|
395
396
|
function AsyncAPIAnnotations() {
|
|
396
397
|
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.
|
|
398
|
+
this.z4p_1 = 'Description';
|
|
399
|
+
this.a4q_1 = 'AsyncAPIName';
|
|
400
|
+
this.b4q_1 = 'AsyncAPIDocument';
|
|
401
|
+
this.c4q_1 = 'AsyncAPIComponents';
|
|
402
|
+
this.d4q_1 = 'AsyncAPIChannel';
|
|
403
|
+
this.e4q_1 = 'AsyncAPIMessage';
|
|
404
|
+
this.f4q_1 = 'AsyncAPISchema';
|
|
405
|
+
this.g4q_1 = 'AsyncAPIInline';
|
|
406
|
+
this.h4q_1 = 'omit';
|
|
407
|
+
this.i4q_1 = 'default';
|
|
408
|
+
this.j4q_1 = Regex_init_$Create$('-?(0|[1-9][0-9]*)(\\.[0-9]+)?([eE][+-]?[0-9]+)?');
|
|
409
|
+
this.k4q_1 = setOf([new Char(_Char___init__impl__6a9atx(123)), new Char(_Char___init__impl__6a9atx(91)), new Char(_Char___init__impl__6a9atx(34))]);
|
|
409
410
|
}
|
|
410
|
-
protoOf(AsyncAPIAnnotations).
|
|
411
|
+
protoOf(AsyncAPIAnnotations).m4q = function (name, value, parameters) {
|
|
411
412
|
var tmp;
|
|
412
413
|
if (value == null) {
|
|
413
414
|
tmp = null;
|
|
@@ -417,33 +418,33 @@ protoOf(AsyncAPIAnnotations).y4n = function (name, value, parameters) {
|
|
|
417
418
|
}
|
|
418
419
|
return new Annotation(name, plus(listOfNotNull(tmp), parameters));
|
|
419
420
|
};
|
|
420
|
-
protoOf(AsyncAPIAnnotations).
|
|
421
|
+
protoOf(AsyncAPIAnnotations).n4q = function (name, value, parameters, $super) {
|
|
421
422
|
value = value === VOID ? null : value;
|
|
422
423
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
423
|
-
return $super === VOID ? this.
|
|
424
|
+
return $super === VOID ? this.m4q(name, value, parameters) : $super.m4q.call(this, name, value, parameters);
|
|
424
425
|
};
|
|
425
|
-
protoOf(AsyncAPIAnnotations).
|
|
426
|
+
protoOf(AsyncAPIAnnotations).o4q = function (_this__u8e3s4) {
|
|
426
427
|
var tmp;
|
|
427
428
|
if (_this__u8e3s4 == null) {
|
|
428
429
|
tmp = null;
|
|
429
430
|
} else {
|
|
430
431
|
// Inline function 'kotlin.let' call
|
|
431
|
-
tmp = listOf(AsyncAPIAnnotations_getInstance().
|
|
432
|
+
tmp = listOf(AsyncAPIAnnotations_getInstance().n4q('Description', _this__u8e3s4));
|
|
432
433
|
}
|
|
433
434
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
434
435
|
var tmp0_elvis_lhs = tmp;
|
|
435
436
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
436
437
|
};
|
|
437
|
-
protoOf(AsyncAPIAnnotations).
|
|
438
|
+
protoOf(AsyncAPIAnnotations).p4q = function (key, value) {
|
|
438
439
|
return new Parameter(toLiteral(this, key), value);
|
|
439
440
|
};
|
|
440
|
-
protoOf(AsyncAPIAnnotations).
|
|
441
|
+
protoOf(AsyncAPIAnnotations).q4q = function (_this__u8e3s4) {
|
|
441
442
|
return toSingle(this, JsonPrimitive_0(_this__u8e3s4));
|
|
442
443
|
};
|
|
443
|
-
protoOf(AsyncAPIAnnotations).
|
|
444
|
+
protoOf(AsyncAPIAnnotations).r4q = function (_this__u8e3s4) {
|
|
444
445
|
// Inline function 'kotlin.collections.map' call
|
|
445
446
|
// Inline function 'kotlin.collections.mapTo' call
|
|
446
|
-
var destination = ArrayList_init_$Create$(_this__u8e3s4.
|
|
447
|
+
var destination = ArrayList_init_$Create$(_this__u8e3s4.c1());
|
|
447
448
|
// Inline function 'kotlin.collections.iterator' call
|
|
448
449
|
var _iterator__ex2g4s = _this__u8e3s4.m1().t();
|
|
449
450
|
while (_iterator__ex2g4s.u()) {
|
|
@@ -452,15 +453,15 @@ protoOf(AsyncAPIAnnotations).d4o = function (_this__u8e3s4) {
|
|
|
452
453
|
var key = item.n1();
|
|
453
454
|
// Inline function 'kotlin.collections.component2' call
|
|
454
455
|
var value = item.o1();
|
|
455
|
-
var tmp$ret$3 = AsyncAPIAnnotations_getInstance().
|
|
456
|
+
var tmp$ret$3 = AsyncAPIAnnotations_getInstance().p4q(key, AsyncAPIAnnotations_getInstance().s4q(value));
|
|
456
457
|
destination.x(tmp$ret$3);
|
|
457
458
|
}
|
|
458
459
|
return destination;
|
|
459
460
|
};
|
|
460
|
-
protoOf(AsyncAPIAnnotations).
|
|
461
|
+
protoOf(AsyncAPIAnnotations).s4q = function (_this__u8e3s4) {
|
|
461
462
|
var tmp;
|
|
462
463
|
if (_this__u8e3s4 instanceof JsonObject) {
|
|
463
|
-
tmp = new Dict(this.
|
|
464
|
+
tmp = new Dict(this.r4q(_this__u8e3s4));
|
|
464
465
|
} else {
|
|
465
466
|
if (_this__u8e3s4 instanceof JsonArray) {
|
|
466
467
|
var tmp_0;
|
|
@@ -513,29 +514,29 @@ protoOf(AsyncAPIAnnotations).e4o = function (_this__u8e3s4) {
|
|
|
513
514
|
}
|
|
514
515
|
return tmp;
|
|
515
516
|
};
|
|
516
|
-
protoOf(AsyncAPIAnnotations).
|
|
517
|
+
protoOf(AsyncAPIAnnotations).l4q = function (_this__u8e3s4) {
|
|
517
518
|
var tmp;
|
|
518
519
|
if (_this__u8e3s4 instanceof Single) {
|
|
519
520
|
// Inline function 'kotlin.let' call
|
|
520
|
-
var it = fromLiteral(this, _this__u8e3s4.
|
|
521
|
+
var it = fromLiteral(this, _this__u8e3s4.w1a_1);
|
|
521
522
|
var tmp0_elvis_lhs = asJson(AsyncAPIAnnotations_getInstance(), it);
|
|
522
523
|
tmp = tmp0_elvis_lhs == null ? JsonPrimitive_0(it) : tmp0_elvis_lhs;
|
|
523
524
|
} else {
|
|
524
525
|
if (_this__u8e3s4 instanceof Array_0) {
|
|
525
526
|
// Inline function 'kotlin.collections.map' call
|
|
526
|
-
var this_0 = _this__u8e3s4.
|
|
527
|
+
var this_0 = _this__u8e3s4.v1a_1;
|
|
527
528
|
// Inline function 'kotlin.collections.mapTo' call
|
|
528
529
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
529
530
|
var _iterator__ex2g4s = this_0.t();
|
|
530
531
|
while (_iterator__ex2g4s.u()) {
|
|
531
532
|
var item = _iterator__ex2g4s.v();
|
|
532
|
-
var tmp$ret$4 = AsyncAPIAnnotations_getInstance().
|
|
533
|
+
var tmp$ret$4 = AsyncAPIAnnotations_getInstance().l4q(item);
|
|
533
534
|
destination.x(tmp$ret$4);
|
|
534
535
|
}
|
|
535
536
|
tmp = new JsonArray(destination);
|
|
536
537
|
} else {
|
|
537
538
|
if (_this__u8e3s4 instanceof Dict) {
|
|
538
|
-
tmp = toJsonObject(this, _this__u8e3s4.
|
|
539
|
+
tmp = toJsonObject(this, _this__u8e3s4.u1a_1);
|
|
539
540
|
} else {
|
|
540
541
|
noWhenBranchMatchedException();
|
|
541
542
|
}
|
|
@@ -543,27 +544,27 @@ protoOf(AsyncAPIAnnotations).x4n = function (_this__u8e3s4) {
|
|
|
543
544
|
}
|
|
544
545
|
return tmp;
|
|
545
546
|
};
|
|
546
|
-
protoOf(AsyncAPIAnnotations).
|
|
547
|
+
protoOf(AsyncAPIAnnotations).i4p = function (_this__u8e3s4, name) {
|
|
547
548
|
// Inline function 'kotlin.collections.filter' call
|
|
548
549
|
// Inline function 'kotlin.collections.filterTo' call
|
|
549
550
|
var destination = ArrayList_init_$Create$_0();
|
|
550
551
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
551
552
|
while (_iterator__ex2g4s.u()) {
|
|
552
553
|
var element = _iterator__ex2g4s.v();
|
|
553
|
-
if (element.
|
|
554
|
+
if (element.q1a_1 === name) {
|
|
554
555
|
destination.x(element);
|
|
555
556
|
}
|
|
556
557
|
}
|
|
557
558
|
return destination;
|
|
558
559
|
};
|
|
559
|
-
protoOf(AsyncAPIAnnotations).
|
|
560
|
+
protoOf(AsyncAPIAnnotations).t4q = function (_this__u8e3s4, name) {
|
|
560
561
|
var tmp$ret$0;
|
|
561
562
|
$l$block: {
|
|
562
563
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
563
564
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
564
565
|
while (_iterator__ex2g4s.u()) {
|
|
565
566
|
var element = _iterator__ex2g4s.v();
|
|
566
|
-
if (element.
|
|
567
|
+
if (element.q1a_1 === name) {
|
|
567
568
|
tmp$ret$0 = element;
|
|
568
569
|
break $l$block;
|
|
569
570
|
}
|
|
@@ -572,7 +573,7 @@ protoOf(AsyncAPIAnnotations).f4o = function (_this__u8e3s4, name) {
|
|
|
572
573
|
}
|
|
573
574
|
return tmp$ret$0;
|
|
574
575
|
};
|
|
575
|
-
protoOf(AsyncAPIAnnotations).
|
|
576
|
+
protoOf(AsyncAPIAnnotations).g4p = function (_this__u8e3s4, name) {
|
|
576
577
|
var tmp$ret$0;
|
|
577
578
|
$l$block_0: {
|
|
578
579
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -589,7 +590,7 @@ protoOf(AsyncAPIAnnotations).s4m = function (_this__u8e3s4, name) {
|
|
|
589
590
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
590
591
|
while (_iterator__ex2g4s.u()) {
|
|
591
592
|
var element = _iterator__ex2g4s.v();
|
|
592
|
-
if (element.
|
|
593
|
+
if (element.q1a_1 === name) {
|
|
593
594
|
tmp$ret$0 = true;
|
|
594
595
|
break $l$block_0;
|
|
595
596
|
}
|
|
@@ -598,26 +599,26 @@ protoOf(AsyncAPIAnnotations).s4m = function (_this__u8e3s4, name) {
|
|
|
598
599
|
}
|
|
599
600
|
return tmp$ret$0;
|
|
600
601
|
};
|
|
601
|
-
protoOf(AsyncAPIAnnotations).
|
|
602
|
-
var tmp0_safe_receiver = this.
|
|
603
|
-
return tmp0_safe_receiver == null ? null : this.
|
|
602
|
+
protoOf(AsyncAPIAnnotations).m4p = function (_this__u8e3s4, name) {
|
|
603
|
+
var tmp0_safe_receiver = this.t4q(_this__u8e3s4, name);
|
|
604
|
+
return tmp0_safe_receiver == null ? null : this.u4q(tmp0_safe_receiver);
|
|
604
605
|
};
|
|
605
|
-
protoOf(AsyncAPIAnnotations).
|
|
606
|
-
var tmp = this.
|
|
606
|
+
protoOf(AsyncAPIAnnotations).u4q = function (_this__u8e3s4) {
|
|
607
|
+
var tmp = this.v4q(_this__u8e3s4);
|
|
607
608
|
var tmp0_safe_receiver = tmp instanceof Single ? tmp : null;
|
|
608
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
609
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w1a_1;
|
|
609
610
|
return tmp1_safe_receiver == null ? null : fromLiteral(this, tmp1_safe_receiver);
|
|
610
611
|
};
|
|
611
|
-
protoOf(AsyncAPIAnnotations).
|
|
612
|
+
protoOf(AsyncAPIAnnotations).v4q = function (_this__u8e3s4) {
|
|
612
613
|
// Inline function 'kotlin.collections.find' call
|
|
613
|
-
var tmp0 = _this__u8e3s4.
|
|
614
|
+
var tmp0 = _this__u8e3s4.r1a_1;
|
|
614
615
|
var tmp$ret$1;
|
|
615
616
|
$l$block: {
|
|
616
617
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
617
618
|
var _iterator__ex2g4s = tmp0.t();
|
|
618
619
|
while (_iterator__ex2g4s.u()) {
|
|
619
620
|
var element = _iterator__ex2g4s.v();
|
|
620
|
-
if (element.
|
|
621
|
+
if (element.s1a_1 === 'default') {
|
|
621
622
|
tmp$ret$1 = element;
|
|
622
623
|
break $l$block;
|
|
623
624
|
}
|
|
@@ -625,17 +626,17 @@ protoOf(AsyncAPIAnnotations).h4o = function (_this__u8e3s4) {
|
|
|
625
626
|
tmp$ret$1 = null;
|
|
626
627
|
}
|
|
627
628
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
628
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
629
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t1a_1;
|
|
629
630
|
};
|
|
630
|
-
protoOf(AsyncAPIAnnotations).
|
|
631
|
+
protoOf(AsyncAPIAnnotations).w4q = function (_this__u8e3s4) {
|
|
631
632
|
// Inline function 'kotlin.collections.filterNot' call
|
|
632
|
-
var tmp0 = _this__u8e3s4.
|
|
633
|
+
var tmp0 = _this__u8e3s4.r1a_1;
|
|
633
634
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
634
635
|
var destination = ArrayList_init_$Create$_0();
|
|
635
636
|
var _iterator__ex2g4s = tmp0.t();
|
|
636
637
|
while (_iterator__ex2g4s.u()) {
|
|
637
638
|
var element = _iterator__ex2g4s.v();
|
|
638
|
-
if (!(element.
|
|
639
|
+
if (!(element.s1a_1 === 'default')) {
|
|
639
640
|
destination.x(element);
|
|
640
641
|
}
|
|
641
642
|
}
|
|
@@ -648,33 +649,33 @@ function AsyncAPIAnnotations_getInstance() {
|
|
|
648
649
|
return AsyncAPIAnnotations_instance;
|
|
649
650
|
}
|
|
650
651
|
function AsyncAPIEmitter$json$lambda($this$Json) {
|
|
651
|
-
$this$Json.
|
|
652
|
+
$this$Json.o2n_1 = true;
|
|
652
653
|
return Unit_instance;
|
|
653
654
|
}
|
|
654
655
|
function AsyncAPIEmitter() {
|
|
655
656
|
AsyncAPIEmitter_instance = this;
|
|
656
|
-
this.
|
|
657
|
-
this.
|
|
657
|
+
this.x4q_1 = FileExtension_JSON_getInstance();
|
|
658
|
+
this.y4q_1 = true;
|
|
658
659
|
var tmp = this;
|
|
659
|
-
tmp.
|
|
660
|
+
tmp.z4q_1 = Json(VOID, AsyncAPIEmitter$json$lambda);
|
|
660
661
|
}
|
|
661
|
-
protoOf(AsyncAPIEmitter).
|
|
662
|
-
return this.
|
|
662
|
+
protoOf(AsyncAPIEmitter).xp = function () {
|
|
663
|
+
return this.x4q_1;
|
|
663
664
|
};
|
|
664
|
-
protoOf(AsyncAPIEmitter).
|
|
665
|
-
return this.
|
|
665
|
+
protoOf(AsyncAPIEmitter).wp = function () {
|
|
666
|
+
return this.y4q_1;
|
|
666
667
|
};
|
|
667
|
-
protoOf(AsyncAPIEmitter).
|
|
668
|
+
protoOf(AsyncAPIEmitter).uo = function (ast, logger) {
|
|
668
669
|
// Inline function 'kotlin.collections.onEach' call
|
|
669
670
|
// Inline function 'kotlin.apply' call
|
|
670
|
-
var this_0 = new NonEmptyList(ast.
|
|
671
|
+
var this_0 = new NonEmptyList(ast.fp_1);
|
|
671
672
|
var _iterator__ex2g4s = this_0.t();
|
|
672
673
|
while (_iterator__ex2g4s.u()) {
|
|
673
674
|
var element = _iterator__ex2g4s.v();
|
|
674
|
-
logger.
|
|
675
|
+
logger.bs('Emitting AsyncAPI from ' + element.gp_1.jo_1);
|
|
675
676
|
}
|
|
676
677
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
677
|
-
var this_1 = this_0.
|
|
678
|
+
var this_1 = this_0.en_1;
|
|
678
679
|
// Inline function 'kotlin.collections.flatMap' call
|
|
679
680
|
var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_1);
|
|
680
681
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -682,14 +683,14 @@ protoOf(AsyncAPIEmitter).to = function (ast, logger) {
|
|
|
682
683
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
683
684
|
while (_iterator__ex2g4s_0.u()) {
|
|
684
685
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
685
|
-
var list = new NonEmptyList(element_0.
|
|
686
|
+
var list = new NonEmptyList(element_0.hp_1);
|
|
686
687
|
addAll(destination, list);
|
|
687
688
|
}
|
|
688
689
|
// Inline function 'kotlin.let' call
|
|
689
690
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
690
691
|
// Inline function 'kotlin.let' call
|
|
691
|
-
var it_0 = (new WirespecToAsyncAPI(new NonEmptyList(it))).
|
|
692
|
-
return nonEmptyListOf(new Emitted('asyncapi.' + AsyncAPIEmitter_getInstance().
|
|
692
|
+
var it_0 = (new WirespecToAsyncAPI(new NonEmptyList(it))).k4r();
|
|
693
|
+
return nonEmptyListOf(new Emitted('asyncapi.' + AsyncAPIEmitter_getInstance().x4q_1.yr_1, AsyncAPIEmitter_getInstance().z4q_1.q2m(Companion_instance_0.z2o(), it_0)), []);
|
|
693
694
|
};
|
|
694
695
|
var AsyncAPIEmitter_instance;
|
|
695
696
|
function AsyncAPIEmitter_getInstance() {
|
|
@@ -698,36 +699,36 @@ function AsyncAPIEmitter_getInstance() {
|
|
|
698
699
|
return AsyncAPIEmitter_instance;
|
|
699
700
|
}
|
|
700
701
|
function toChannel($this, $receiver) {
|
|
701
|
-
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().
|
|
702
|
-
var fields = orEmpty(tmp0_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().
|
|
702
|
+
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().t4q($receiver.xq_1, 'AsyncAPIChannel');
|
|
703
|
+
var fields = orEmpty(tmp0_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().w4q(tmp0_safe_receiver));
|
|
703
704
|
var tmp;
|
|
704
705
|
// Inline function 'kotlin.collections.contains' call
|
|
705
706
|
// Inline function 'kotlin.collections.containsKey' call
|
|
706
|
-
if ((isInterface(fields, KtMap) ? fields : THROW_CCE()).
|
|
707
|
+
if ((isInterface(fields, KtMap) ? fields : THROW_CCE()).r2('$ref')) {
|
|
707
708
|
tmp = fields;
|
|
708
709
|
} else {
|
|
709
|
-
if ($this.
|
|
710
|
+
if ($this.j4r_1 === 2) {
|
|
710
711
|
var tmp_0 = plus_0(fields, jsonObjectOf([to('description', description($this, $receiver))]));
|
|
711
712
|
// Inline function 'kotlin.collections.associate' call
|
|
712
|
-
var this_0 = operations_0($this, $receiver.
|
|
713
|
+
var this_0 = operations_0($this, $receiver.xq_1);
|
|
713
714
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
714
715
|
// Inline function 'kotlin.collections.associateTo' call
|
|
715
716
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
716
717
|
var _iterator__ex2g4s = this_0.t();
|
|
717
718
|
while (_iterator__ex2g4s.u()) {
|
|
718
719
|
var element = _iterator__ex2g4s.v();
|
|
719
|
-
var annotation = element.
|
|
720
|
-
var action = element.
|
|
720
|
+
var annotation = element.af();
|
|
721
|
+
var action = element.bf();
|
|
721
722
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
722
|
-
var pair = to(action.
|
|
723
|
-
destination.
|
|
723
|
+
var pair = to(action.w4p_1, toOperationV2($this, annotation, messages($this, $receiver)));
|
|
724
|
+
destination.w2(pair.gf_1, pair.hf_1);
|
|
724
725
|
}
|
|
725
726
|
tmp = new JsonObject(plus_0(tmp_0, destination));
|
|
726
727
|
} else {
|
|
727
728
|
// Inline function 'kotlin.takeUnless' call
|
|
728
729
|
var this_1 = mapOf(to('address', JsonPrimitive_0(key($this, $receiver))));
|
|
729
730
|
var tmp_1;
|
|
730
|
-
if (!$this.
|
|
731
|
+
if (!$this.b4r_1) {
|
|
731
732
|
tmp_1 = this_1;
|
|
732
733
|
} else {
|
|
733
734
|
tmp_1 = null;
|
|
@@ -741,11 +742,11 @@ function toChannel($this, $receiver) {
|
|
|
741
742
|
return tmp;
|
|
742
743
|
}
|
|
743
744
|
function key($this, $receiver) {
|
|
744
|
-
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().
|
|
745
|
+
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().m4p($receiver.xq_1, 'AsyncAPIName');
|
|
745
746
|
var tmp;
|
|
746
747
|
if (tmp0_elvis_lhs == null) {
|
|
747
748
|
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
748
|
-
var this_0 = $receiver.
|
|
749
|
+
var this_0 = $receiver.yq_1.o1();
|
|
749
750
|
var tmp_0;
|
|
750
751
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
751
752
|
if (charSequenceLength(this_0) > 0) {
|
|
@@ -765,10 +766,10 @@ function key($this, $receiver) {
|
|
|
765
766
|
return tmp;
|
|
766
767
|
}
|
|
767
768
|
function description($this, $receiver) {
|
|
768
|
-
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().
|
|
769
|
+
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().m4p($receiver.xq_1, 'Description');
|
|
769
770
|
var tmp;
|
|
770
771
|
if (tmp0_elvis_lhs == null) {
|
|
771
|
-
var tmp1_safe_receiver = $receiver.
|
|
772
|
+
var tmp1_safe_receiver = $receiver.wq_1;
|
|
772
773
|
var tmp_0;
|
|
773
774
|
var tmp_1 = tmp1_safe_receiver;
|
|
774
775
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -792,14 +793,14 @@ function description($this, $receiver) {
|
|
|
792
793
|
}
|
|
793
794
|
function messages($this, $receiver) {
|
|
794
795
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
795
|
-
var tmp0 = AsyncAPIAnnotations_getInstance().
|
|
796
|
+
var tmp0 = AsyncAPIAnnotations_getInstance().i4p($receiver.xq_1, 'AsyncAPIMessage');
|
|
796
797
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
797
798
|
var destination = ArrayList_init_$Create$_0();
|
|
798
799
|
// Inline function 'kotlin.collections.forEach' call
|
|
799
800
|
var _iterator__ex2g4s = tmp0.t();
|
|
800
801
|
while (_iterator__ex2g4s.u()) {
|
|
801
802
|
var element = _iterator__ex2g4s.v();
|
|
802
|
-
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().
|
|
803
|
+
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().u4q(element);
|
|
803
804
|
var tmp;
|
|
804
805
|
if (tmp0_safe_receiver == null) {
|
|
805
806
|
tmp = null;
|
|
@@ -819,23 +820,23 @@ function messages($this, $receiver) {
|
|
|
819
820
|
var this_0 = toMap(destination);
|
|
820
821
|
var tmp_0;
|
|
821
822
|
if (this_0.r()) {
|
|
822
|
-
tmp_0 = $this.
|
|
823
|
+
tmp_0 = $this.b4r_1 ? emptyMap() : mapOf(to(defaultMessageKey($this, $receiver), ref('#/components/messages/' + escapePointer(defaultMessageKey($this, $receiver)))));
|
|
823
824
|
} else {
|
|
824
825
|
tmp_0 = this_0;
|
|
825
826
|
}
|
|
826
827
|
return tmp_0;
|
|
827
828
|
}
|
|
828
829
|
function defaultMessageKey($this, $receiver) {
|
|
829
|
-
var tmp = $receiver.
|
|
830
|
+
var tmp = $receiver.zq_1;
|
|
830
831
|
var tmp0_safe_receiver = tmp instanceof Custom ? tmp : null;
|
|
831
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
832
|
-
return tmp1_elvis_lhs == null ? $receiver.
|
|
832
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b1a_1;
|
|
833
|
+
return tmp1_elvis_lhs == null ? $receiver.yq_1.o1() + 'Message' : tmp1_elvis_lhs;
|
|
833
834
|
}
|
|
834
835
|
function toMessage($this, $receiver) {
|
|
835
836
|
// Inline function 'kotlin.collections.mapValues' call
|
|
836
|
-
var this_0 = AsyncAPIAnnotations_getInstance().
|
|
837
|
+
var this_0 = AsyncAPIAnnotations_getInstance().w4q($receiver);
|
|
837
838
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
838
|
-
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.
|
|
839
|
+
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.c1()));
|
|
839
840
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
840
841
|
var _iterator__ex2g4s = this_0.m1().t();
|
|
841
842
|
while (_iterator__ex2g4s.u()) {
|
|
@@ -845,8 +846,8 @@ function toMessage($this, $receiver) {
|
|
|
845
846
|
var field = element.n1();
|
|
846
847
|
// Inline function 'kotlin.collections.component2' call
|
|
847
848
|
var value = element.o1();
|
|
848
|
-
var tmp$ret$4 = Companion_getInstance().
|
|
849
|
-
destination.
|
|
849
|
+
var tmp$ret$4 = Companion_getInstance().m4r_1.i1(field) ? toSchema($this, value) : value;
|
|
850
|
+
destination.w2(tmp, tmp$ret$4);
|
|
850
851
|
}
|
|
851
852
|
return new JsonObject(destination);
|
|
852
853
|
}
|
|
@@ -858,7 +859,7 @@ function toSchema($this, $receiver) {
|
|
|
858
859
|
} else {
|
|
859
860
|
// Inline function 'kotlin.takeIf' call
|
|
860
861
|
var tmp_0;
|
|
861
|
-
if (tmp0_safe_receiver.
|
|
862
|
+
if (tmp0_safe_receiver.w2o()) {
|
|
862
863
|
tmp_0 = tmp0_safe_receiver;
|
|
863
864
|
} else {
|
|
864
865
|
tmp_0 = null;
|
|
@@ -872,24 +873,24 @@ function toSchema($this, $receiver) {
|
|
|
872
873
|
} else {
|
|
873
874
|
// Inline function 'kotlin.let' call
|
|
874
875
|
// Inline function 'kotlin.with' call
|
|
875
|
-
tmp_1 = $this.
|
|
876
|
+
tmp_1 = $this.g4r_1.q4r(toReference(tmp1_safe_receiver.m1i()));
|
|
876
877
|
}
|
|
877
878
|
var tmp2_elvis_lhs = tmp_1;
|
|
878
879
|
return tmp2_elvis_lhs == null ? $receiver : tmp2_elvis_lhs;
|
|
879
880
|
}
|
|
880
881
|
function operations($this) {
|
|
881
882
|
// Inline function 'kotlin.collections.flatMap' call
|
|
882
|
-
var tmp0 = $this.
|
|
883
|
+
var tmp0 = $this.h4r_1;
|
|
883
884
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
884
885
|
var destination = ArrayList_init_$Create$_0();
|
|
885
886
|
var _iterator__ex2g4s = tmp0.t();
|
|
886
887
|
while (_iterator__ex2g4s.u()) {
|
|
887
888
|
var element = _iterator__ex2g4s.v();
|
|
888
889
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
889
|
-
var this_0 = operations_0($this, element.
|
|
890
|
+
var this_0 = operations_0($this, element.xq_1);
|
|
890
891
|
var tmp;
|
|
891
892
|
if (this_0.r()) {
|
|
892
|
-
tmp = $this.
|
|
893
|
+
tmp = $this.b4r_1 ? emptyList() : listOf(to(AsyncAPIAnnotations_getInstance().n4q(Action_SEND_getInstance().x4p()), Action_SEND_getInstance()));
|
|
893
894
|
} else {
|
|
894
895
|
tmp = this_0;
|
|
895
896
|
}
|
|
@@ -900,19 +901,19 @@ function operations($this) {
|
|
|
900
901
|
var _iterator__ex2g4s_0 = this_1.t();
|
|
901
902
|
while (_iterator__ex2g4s_0.u()) {
|
|
902
903
|
var item = _iterator__ex2g4s_0.v();
|
|
903
|
-
var annotation = item.
|
|
904
|
-
var action = item.
|
|
905
|
-
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().
|
|
906
|
-
var tmp$ret$7 = to(tmp0_elvis_lhs == null ? action.
|
|
904
|
+
var annotation = item.af();
|
|
905
|
+
var action = item.bf();
|
|
906
|
+
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().u4q(annotation);
|
|
907
|
+
var tmp$ret$7 = to(tmp0_elvis_lhs == null ? action.y4p(element.yq_1.o1()) : tmp0_elvis_lhs, toOperation($this, annotation, action, '#/channels/' + escapePointer(key($this, element)), messages($this, element).u2()));
|
|
907
908
|
destination_0.x(tmp$ret$7);
|
|
908
909
|
}
|
|
909
910
|
var list = destination_0;
|
|
910
911
|
addAll(destination, list);
|
|
911
912
|
}
|
|
912
913
|
var tmp_0 = toMap(destination);
|
|
913
|
-
var tmp0_safe_receiver = $this.
|
|
914
|
+
var tmp0_safe_receiver = $this.a4r_1;
|
|
914
915
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
915
|
-
var tmp0_elvis_lhs_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
916
|
+
var tmp0_elvis_lhs_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kp_1;
|
|
916
917
|
var tmp$ret$8 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
917
918
|
// Inline function 'kotlin.collections.map' call
|
|
918
919
|
var this_2 = operations_0($this, tmp$ret$8);
|
|
@@ -921,10 +922,10 @@ function operations($this) {
|
|
|
921
922
|
var _iterator__ex2g4s_1 = this_2.t();
|
|
922
923
|
while (_iterator__ex2g4s_1.u()) {
|
|
923
924
|
var item_0 = _iterator__ex2g4s_1.v();
|
|
924
|
-
var annotation_0 = item_0.
|
|
925
|
-
var action_0 = item_0.
|
|
925
|
+
var annotation_0 = item_0.af();
|
|
926
|
+
var action_0 = item_0.bf();
|
|
926
927
|
// Inline function 'kotlin.text.orEmpty' call
|
|
927
|
-
var tmp0_elvis_lhs_1 = AsyncAPIAnnotations_getInstance().
|
|
928
|
+
var tmp0_elvis_lhs_1 = AsyncAPIAnnotations_getInstance().u4q(annotation_0);
|
|
928
929
|
var tmp$ret$12 = tmp0_elvis_lhs_1 == null ? '' : tmp0_elvis_lhs_1;
|
|
929
930
|
var tmp$ret$11 = to(tmp$ret$12, toOperation($this, annotation_0, action_0, null, emptySet()));
|
|
930
931
|
destination_1.x(tmp$ret$11);
|
|
@@ -947,7 +948,7 @@ function operations_0($this, $receiver) {
|
|
|
947
948
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
948
949
|
while (_iterator__ex2g4s_0.u()) {
|
|
949
950
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
950
|
-
if (element_0.
|
|
951
|
+
if (element_0.x4p() === element.q1a_1) {
|
|
951
952
|
tmp$ret$6 = element_0;
|
|
952
953
|
break $l$block;
|
|
953
954
|
}
|
|
@@ -973,14 +974,14 @@ function operations_0($this, $receiver) {
|
|
|
973
974
|
return destination;
|
|
974
975
|
}
|
|
975
976
|
function toOperation($this, $receiver, action, channelPointer, messageKeys) {
|
|
976
|
-
var fields = AsyncAPIAnnotations_getInstance().
|
|
977
|
+
var fields = AsyncAPIAnnotations_getInstance().w4q($receiver);
|
|
977
978
|
var tmp;
|
|
978
979
|
// Inline function 'kotlin.collections.contains' call
|
|
979
980
|
// Inline function 'kotlin.collections.containsKey' call
|
|
980
|
-
if ((isInterface(fields, KtMap) ? fields : THROW_CCE()).
|
|
981
|
+
if ((isInterface(fields, KtMap) ? fields : THROW_CCE()).r2('$ref')) {
|
|
981
982
|
tmp = fields;
|
|
982
983
|
} else {
|
|
983
|
-
var tmp_0 = mapOf(to('action', JsonPrimitive_0(action.
|
|
984
|
+
var tmp_0 = mapOf(to('action', JsonPrimitive_0(action.v4p_1)));
|
|
984
985
|
var tmp_1;
|
|
985
986
|
if (channelPointer == null) {
|
|
986
987
|
tmp_1 = null;
|
|
@@ -998,7 +999,7 @@ function toOperation($this, $receiver, action, channelPointer, messageKeys) {
|
|
|
998
999
|
} else {
|
|
999
1000
|
// Inline function 'kotlin.takeUnless' call
|
|
1000
1001
|
var tmp_4;
|
|
1001
|
-
if (!$this.
|
|
1002
|
+
if (!$this.b4r_1) {
|
|
1002
1003
|
tmp_4 = channelPointer;
|
|
1003
1004
|
} else {
|
|
1004
1005
|
tmp_4 = null;
|
|
@@ -1019,7 +1020,7 @@ function toOperation($this, $receiver, action, channelPointer, messageKeys) {
|
|
|
1019
1020
|
var tmp_6 = plus_0(tmp_2, tmp$ret$9);
|
|
1020
1021
|
// Inline function 'kotlin.collections.mapValues' call
|
|
1021
1022
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
1022
|
-
var destination = LinkedHashMap_init_$Create$(mapCapacity(fields.
|
|
1023
|
+
var destination = LinkedHashMap_init_$Create$(mapCapacity(fields.c1()));
|
|
1023
1024
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
1024
1025
|
var _iterator__ex2g4s = fields.m1().t();
|
|
1025
1026
|
while (_iterator__ex2g4s.u()) {
|
|
@@ -1030,7 +1031,7 @@ function toOperation($this, $receiver, action, channelPointer, messageKeys) {
|
|
|
1030
1031
|
// Inline function 'kotlin.collections.component2' call
|
|
1031
1032
|
var value = element.o1();
|
|
1032
1033
|
var tmp$ret$14 = field === 'messages' && !(channelPointer == null) ? toMessageRefs($this, value, channelPointer) : value;
|
|
1033
|
-
destination.
|
|
1034
|
+
destination.w2(tmp_7, tmp$ret$14);
|
|
1034
1035
|
}
|
|
1035
1036
|
tmp = new JsonObject(plus_0(tmp_6, destination));
|
|
1036
1037
|
}
|
|
@@ -1062,7 +1063,7 @@ function toMessageRefs($this, $receiver, channelPointer) {
|
|
|
1062
1063
|
var element = _iterator__ex2g4s.v();
|
|
1063
1064
|
var tmp_2;
|
|
1064
1065
|
if (element instanceof JsonPrimitive_1) {
|
|
1065
|
-
tmp_2 = element.
|
|
1066
|
+
tmp_2 = element.w2o();
|
|
1066
1067
|
} else {
|
|
1067
1068
|
tmp_2 = false;
|
|
1068
1069
|
}
|
|
@@ -1092,7 +1093,7 @@ function toMessageRefs($this, $receiver, channelPointer) {
|
|
|
1092
1093
|
var _iterator__ex2g4s_0 = tmp1_safe_receiver.t();
|
|
1093
1094
|
while (_iterator__ex2g4s_0.u()) {
|
|
1094
1095
|
var item = _iterator__ex2g4s_0.v();
|
|
1095
|
-
var tmp$ret$8 = (item instanceof JsonPrimitive_1 ? item : THROW_CCE()).
|
|
1096
|
+
var tmp$ret$8 = (item instanceof JsonPrimitive_1 ? item : THROW_CCE()).m1i();
|
|
1096
1097
|
destination.x(tmp$ret$8);
|
|
1097
1098
|
}
|
|
1098
1099
|
tmp_3 = toMessageRefs_0($this, toSet(destination), channelPointer);
|
|
@@ -1113,7 +1114,7 @@ function toMessageRefs_0($this, $receiver, channelPointer) {
|
|
|
1113
1114
|
return new JsonArray(destination);
|
|
1114
1115
|
}
|
|
1115
1116
|
function toOperationV2($this, $receiver, messages) {
|
|
1116
|
-
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().
|
|
1117
|
+
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().u4q($receiver);
|
|
1117
1118
|
var tmp;
|
|
1118
1119
|
if (tmp0_safe_receiver == null) {
|
|
1119
1120
|
tmp = null;
|
|
@@ -1125,9 +1126,9 @@ function toOperationV2($this, $receiver, messages) {
|
|
|
1125
1126
|
var tmp0_elvis_lhs = tmp;
|
|
1126
1127
|
var tmp_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1127
1128
|
// Inline function 'kotlin.collections.mapValues' call
|
|
1128
|
-
var this_0 = AsyncAPIAnnotations_getInstance().
|
|
1129
|
+
var this_0 = AsyncAPIAnnotations_getInstance().w4q($receiver);
|
|
1129
1130
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
1130
|
-
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.
|
|
1131
|
+
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.c1()));
|
|
1131
1132
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
1132
1133
|
var _iterator__ex2g4s = this_0.m1().t();
|
|
1133
1134
|
while (_iterator__ex2g4s.u()) {
|
|
@@ -1138,7 +1139,7 @@ function toOperationV2($this, $receiver, messages) {
|
|
|
1138
1139
|
// Inline function 'kotlin.collections.component2' call
|
|
1139
1140
|
var value = element.o1();
|
|
1140
1141
|
var tmp$ret$7 = field === 'message' ? toMessage_0($this, value, messages) : value;
|
|
1141
|
-
destination.
|
|
1142
|
+
destination.w2(tmp_1, tmp$ret$7);
|
|
1142
1143
|
}
|
|
1143
1144
|
return new JsonObject(plus_0(tmp_0, destination));
|
|
1144
1145
|
}
|
|
@@ -1146,12 +1147,12 @@ function toMessage_0($this, $receiver, messages) {
|
|
|
1146
1147
|
var tmp;
|
|
1147
1148
|
var tmp_0;
|
|
1148
1149
|
if ($receiver instanceof JsonPrimitive_1) {
|
|
1149
|
-
tmp_0 = $receiver.
|
|
1150
|
+
tmp_0 = $receiver.w2o();
|
|
1150
1151
|
} else {
|
|
1151
1152
|
tmp_0 = false;
|
|
1152
1153
|
}
|
|
1153
1154
|
if (tmp_0) {
|
|
1154
|
-
var tmp0_elvis_lhs = messages.
|
|
1155
|
+
var tmp0_elvis_lhs = messages.t2($receiver.m1i());
|
|
1155
1156
|
tmp = tmp0_elvis_lhs == null ? $receiver : tmp0_elvis_lhs;
|
|
1156
1157
|
} else {
|
|
1157
1158
|
var tmp_1;
|
|
@@ -1174,7 +1175,7 @@ function toMessage_0($this, $receiver, messages) {
|
|
|
1174
1175
|
var element = _iterator__ex2g4s.v();
|
|
1175
1176
|
var tmp_3;
|
|
1176
1177
|
if (element instanceof JsonPrimitive_1) {
|
|
1177
|
-
tmp_3 = element.
|
|
1178
|
+
tmp_3 = element.w2o();
|
|
1178
1179
|
} else {
|
|
1179
1180
|
tmp_3 = false;
|
|
1180
1181
|
}
|
|
@@ -1196,7 +1197,7 @@ function toMessage_0($this, $receiver, messages) {
|
|
|
1196
1197
|
var _iterator__ex2g4s_0 = $receiver.t();
|
|
1197
1198
|
while (_iterator__ex2g4s_0.u()) {
|
|
1198
1199
|
var item = _iterator__ex2g4s_0.v();
|
|
1199
|
-
var tmp0_elvis_lhs_0 = messages.
|
|
1200
|
+
var tmp0_elvis_lhs_0 = messages.t2((item instanceof JsonPrimitive_1 ? item : THROW_CCE()).m1i());
|
|
1200
1201
|
var tmp$ret$4 = tmp0_elvis_lhs_0 == null ? item : tmp0_elvis_lhs_0;
|
|
1201
1202
|
destination.x(tmp$ret$4);
|
|
1202
1203
|
}
|
|
@@ -1208,40 +1209,40 @@ function toMessage_0($this, $receiver, messages) {
|
|
|
1208
1209
|
return tmp;
|
|
1209
1210
|
}
|
|
1210
1211
|
function components($this) {
|
|
1211
|
-
var tmp0_safe_receiver = $this.
|
|
1212
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1213
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().
|
|
1214
|
-
var fields = tmp2_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().
|
|
1212
|
+
var tmp0_safe_receiver = $this.a4r_1;
|
|
1213
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kp_1;
|
|
1214
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().t4q(tmp1_safe_receiver, 'AsyncAPIComponents');
|
|
1215
|
+
var fields = tmp2_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().w4q(tmp2_safe_receiver);
|
|
1215
1216
|
// Inline function 'kotlin.collections.associate' call
|
|
1216
|
-
var this_0 = $this.
|
|
1217
|
+
var this_0 = $this.e4r_1;
|
|
1217
1218
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1218
1219
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1219
1220
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
1220
1221
|
var _iterator__ex2g4s = this_0.t();
|
|
1221
1222
|
while (_iterator__ex2g4s.u()) {
|
|
1222
1223
|
var element = _iterator__ex2g4s.v();
|
|
1223
|
-
var tmp = getValue($this.
|
|
1224
|
+
var tmp = getValue($this.f4r_1, element.es().o1());
|
|
1224
1225
|
// Inline function 'kotlin.with' call
|
|
1225
|
-
var tmp$ret$3 = $this.
|
|
1226
|
+
var tmp$ret$3 = $this.g4r_1.r4r(element);
|
|
1226
1227
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1227
1228
|
var pair = to(tmp, tmp$ret$3);
|
|
1228
|
-
destination.
|
|
1229
|
+
destination.w2(pair.gf_1, pair.hf_1);
|
|
1229
1230
|
}
|
|
1230
1231
|
var schemas = destination;
|
|
1231
1232
|
var tmp_0 = AsyncAPIAnnotations_getInstance();
|
|
1232
|
-
var tmp3_safe_receiver = $this.
|
|
1233
|
+
var tmp3_safe_receiver = $this.a4r_1;
|
|
1233
1234
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1234
|
-
var tmp0_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
1235
|
+
var tmp0_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.kp_1;
|
|
1235
1236
|
var tmp$ret$6 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1236
1237
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1237
|
-
var tmp0 = tmp_0.
|
|
1238
|
+
var tmp0 = tmp_0.i4p(tmp$ret$6, 'AsyncAPIMessage');
|
|
1238
1239
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1239
1240
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
1240
1241
|
// Inline function 'kotlin.collections.forEach' call
|
|
1241
1242
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
1242
1243
|
while (_iterator__ex2g4s_0.u()) {
|
|
1243
1244
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1244
|
-
var tmp0_safe_receiver_0 = AsyncAPIAnnotations_getInstance().
|
|
1245
|
+
var tmp0_safe_receiver_0 = AsyncAPIAnnotations_getInstance().u4q(element_0);
|
|
1245
1246
|
var tmp_1;
|
|
1246
1247
|
if (tmp0_safe_receiver_0 == null) {
|
|
1247
1248
|
tmp_1 = null;
|
|
@@ -1259,9 +1260,9 @@ function components($this) {
|
|
|
1259
1260
|
}
|
|
1260
1261
|
var tmp_2 = toMap(destination_0);
|
|
1261
1262
|
// Inline function 'kotlin.takeUnless' call
|
|
1262
|
-
var this_1 = $this.
|
|
1263
|
+
var this_1 = $this.h4r_1;
|
|
1263
1264
|
var tmp_3;
|
|
1264
|
-
if (!$this.
|
|
1265
|
+
if (!$this.b4r_1) {
|
|
1265
1266
|
tmp_3 = this_1;
|
|
1266
1267
|
} else {
|
|
1267
1268
|
tmp_3 = null;
|
|
@@ -1275,7 +1276,7 @@ function components($this) {
|
|
|
1275
1276
|
var _iterator__ex2g4s_1 = tmp0_0.t();
|
|
1276
1277
|
while (_iterator__ex2g4s_1.u()) {
|
|
1277
1278
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
1278
|
-
if (!AsyncAPIAnnotations_getInstance().
|
|
1279
|
+
if (!AsyncAPIAnnotations_getInstance().g4p(element_1.xq_1, 'AsyncAPIMessage')) {
|
|
1279
1280
|
destination_1.x(element_1);
|
|
1280
1281
|
}
|
|
1281
1282
|
}
|
|
@@ -1289,10 +1290,10 @@ function components($this) {
|
|
|
1289
1290
|
var tmp_4 = defaultMessageKey($this, element_2);
|
|
1290
1291
|
var tmp_5 = to('name', JsonPrimitive_0(defaultMessageKey($this, element_2)));
|
|
1291
1292
|
// Inline function 'kotlin.with' call
|
|
1292
|
-
var tmp$ret$25 = $this.
|
|
1293
|
+
var tmp$ret$25 = $this.g4r_1.q4r(element_2.zq_1);
|
|
1293
1294
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1294
1295
|
var pair_0 = to(tmp_4, jsonObjectOf([tmp_5, to('payload', tmp$ret$25)]));
|
|
1295
|
-
destination_2.
|
|
1296
|
+
destination_2.w2(pair_0.gf_1, pair_0.hf_1);
|
|
1296
1297
|
}
|
|
1297
1298
|
var messages = plus_0(tmp_2, destination_2);
|
|
1298
1299
|
var tmp_6;
|
|
@@ -1314,7 +1315,7 @@ function components($this) {
|
|
|
1314
1315
|
tmp_9 = null;
|
|
1315
1316
|
} else {
|
|
1316
1317
|
// Inline function 'kotlin.let' call
|
|
1317
|
-
var tmp_10 = fields == null ? null : fields.
|
|
1318
|
+
var tmp_10 = fields == null ? null : fields.ld('schemas');
|
|
1318
1319
|
tmp_9 = new JsonObject(plus_0(orEmpty(tmp_10 instanceof JsonObject ? tmp_10 : null), tmp4_safe_receiver));
|
|
1319
1320
|
}
|
|
1320
1321
|
tmp_6 = new JsonObject(plus_0(tmp_7, jsonObjectOf([to('schemas', tmp_9), to('messages', toJsonObjectOrNull(messages))])));
|
|
@@ -1322,27 +1323,27 @@ function components($this) {
|
|
|
1322
1323
|
return tmp_6;
|
|
1323
1324
|
}
|
|
1324
1325
|
function Companion() {
|
|
1325
|
-
|
|
1326
|
-
this.
|
|
1327
|
-
this.
|
|
1328
|
-
this.
|
|
1326
|
+
Companion_instance_2 = this;
|
|
1327
|
+
this.l4r_1 = '$ref';
|
|
1328
|
+
this.m4r_1 = setOf(['payload', 'headers']);
|
|
1329
|
+
this.n4r_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
1330
|
}
|
|
1330
|
-
var
|
|
1331
|
+
var Companion_instance_2;
|
|
1331
1332
|
function Companion_getInstance() {
|
|
1332
|
-
if (
|
|
1333
|
+
if (Companion_instance_2 == null)
|
|
1333
1334
|
new Companion();
|
|
1334
|
-
return
|
|
1335
|
+
return Companion_instance_2;
|
|
1335
1336
|
}
|
|
1336
1337
|
function Map$get$ref(p0) {
|
|
1337
1338
|
var l = function (_this__u8e3s4) {
|
|
1338
|
-
return p0.
|
|
1339
|
+
return p0.t2(_this__u8e3s4);
|
|
1339
1340
|
};
|
|
1340
1341
|
l.callableName = 'get';
|
|
1341
1342
|
return l;
|
|
1342
1343
|
}
|
|
1343
1344
|
function WirespecToAsyncAPI$writer$lambda(this$0) {
|
|
1344
1345
|
return function (it) {
|
|
1345
|
-
var tmp0_elvis_lhs = this$0.
|
|
1346
|
+
var tmp0_elvis_lhs = this$0.f4r_1.t2(it);
|
|
1346
1347
|
return tmp0_elvis_lhs == null ? it : tmp0_elvis_lhs;
|
|
1347
1348
|
};
|
|
1348
1349
|
}
|
|
@@ -1366,15 +1367,15 @@ function WirespecToAsyncAPI(definitions) {
|
|
|
1366
1367
|
var _iterator__ex2g4s_0 = destination.t();
|
|
1367
1368
|
while (_iterator__ex2g4s_0.u()) {
|
|
1368
1369
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1369
|
-
if (AsyncAPIAnnotations_getInstance().
|
|
1370
|
+
if (AsyncAPIAnnotations_getInstance().g4p(element_0.kp_1, 'AsyncAPIDocument')) {
|
|
1370
1371
|
tmp$ret$3 = element_0;
|
|
1371
1372
|
break $l$block;
|
|
1372
1373
|
}
|
|
1373
1374
|
}
|
|
1374
1375
|
tmp$ret$3 = null;
|
|
1375
1376
|
}
|
|
1376
|
-
tmp.
|
|
1377
|
-
this.
|
|
1377
|
+
tmp.a4r_1 = tmp$ret$3;
|
|
1378
|
+
this.b4r_1 = !(this.a4r_1 == null);
|
|
1378
1379
|
var tmp_0 = this;
|
|
1379
1380
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1380
1381
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
@@ -1392,20 +1393,20 @@ function WirespecToAsyncAPI(definitions) {
|
|
|
1392
1393
|
var _iterator__ex2g4s_2 = destination_0.t();
|
|
1393
1394
|
while (_iterator__ex2g4s_2.u()) {
|
|
1394
1395
|
var element_2 = _iterator__ex2g4s_2.v();
|
|
1395
|
-
if (!equals(element_2, this.
|
|
1396
|
+
if (!equals(element_2, this.a4r_1)) {
|
|
1396
1397
|
destination_1.x(element_2);
|
|
1397
1398
|
}
|
|
1398
1399
|
}
|
|
1399
|
-
tmp_0.
|
|
1400
|
+
tmp_0.c4r_1 = destination_1;
|
|
1400
1401
|
var tmp_1 = this;
|
|
1401
1402
|
// Inline function 'kotlin.collections.filter' call
|
|
1402
|
-
var tmp0 = this.
|
|
1403
|
+
var tmp0 = this.c4r_1;
|
|
1403
1404
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1404
1405
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
1405
1406
|
var _iterator__ex2g4s_3 = tmp0.t();
|
|
1406
1407
|
while (_iterator__ex2g4s_3.u()) {
|
|
1407
1408
|
var element_3 = _iterator__ex2g4s_3.v();
|
|
1408
|
-
if (AsyncAPIAnnotations_getInstance().
|
|
1409
|
+
if (AsyncAPIAnnotations_getInstance().g4p(element_3.m1e(), 'AsyncAPIInline')) {
|
|
1409
1410
|
destination_2.x(element_3);
|
|
1410
1411
|
}
|
|
1411
1412
|
}
|
|
@@ -1416,42 +1417,42 @@ function WirespecToAsyncAPI(definitions) {
|
|
|
1416
1417
|
var _iterator__ex2g4s_4 = destination_2.t();
|
|
1417
1418
|
while (_iterator__ex2g4s_4.u()) {
|
|
1418
1419
|
var element_4 = _iterator__ex2g4s_4.v();
|
|
1419
|
-
var tmp$ret$15 = element_4.
|
|
1420
|
-
destination_3.
|
|
1420
|
+
var tmp$ret$15 = element_4.es().o1();
|
|
1421
|
+
destination_3.w2(tmp$ret$15, element_4);
|
|
1421
1422
|
}
|
|
1422
|
-
tmp_1.
|
|
1423
|
+
tmp_1.d4r_1 = destination_3;
|
|
1423
1424
|
var tmp_2 = this;
|
|
1424
1425
|
// Inline function 'kotlin.collections.filterNot' call
|
|
1425
|
-
var tmp0_0 = this.
|
|
1426
|
+
var tmp0_0 = this.c4r_1;
|
|
1426
1427
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
1427
1428
|
var destination_4 = ArrayList_init_$Create$_0();
|
|
1428
1429
|
var _iterator__ex2g4s_5 = tmp0_0.t();
|
|
1429
1430
|
while (_iterator__ex2g4s_5.u()) {
|
|
1430
1431
|
var element_5 = _iterator__ex2g4s_5.v();
|
|
1431
|
-
if (!AsyncAPIAnnotations_getInstance().
|
|
1432
|
+
if (!AsyncAPIAnnotations_getInstance().g4p(element_5.m1e(), 'AsyncAPIInline')) {
|
|
1432
1433
|
destination_4.x(element_5);
|
|
1433
1434
|
}
|
|
1434
1435
|
}
|
|
1435
|
-
tmp_2.
|
|
1436
|
+
tmp_2.e4r_1 = destination_4;
|
|
1436
1437
|
var tmp_3 = this;
|
|
1437
1438
|
// Inline function 'kotlin.collections.associate' call
|
|
1438
|
-
var this_0 = this.
|
|
1439
|
+
var this_0 = this.e4r_1;
|
|
1439
1440
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1440
1441
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1441
1442
|
var destination_5 = LinkedHashMap_init_$Create$(capacity_0);
|
|
1442
1443
|
var _iterator__ex2g4s_6 = this_0.t();
|
|
1443
1444
|
while (_iterator__ex2g4s_6.u()) {
|
|
1444
1445
|
var element_6 = _iterator__ex2g4s_6.v();
|
|
1445
|
-
var tmp_4 = element_6.
|
|
1446
|
-
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().
|
|
1446
|
+
var tmp_4 = element_6.es().o1();
|
|
1447
|
+
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().m4p(element_6.m1e(), 'AsyncAPIName');
|
|
1447
1448
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1448
|
-
var pair = to(tmp_4, tmp0_elvis_lhs == null ? element_6.
|
|
1449
|
-
destination_5.
|
|
1449
|
+
var pair = to(tmp_4, tmp0_elvis_lhs == null ? element_6.es().o1() : tmp0_elvis_lhs);
|
|
1450
|
+
destination_5.w2(pair.gf_1, pair.hf_1);
|
|
1450
1451
|
}
|
|
1451
|
-
tmp_3.
|
|
1452
|
+
tmp_3.f4r_1 = destination_5;
|
|
1452
1453
|
var tmp_5 = this;
|
|
1453
|
-
var tmp_6 = Map$get$ref(this.
|
|
1454
|
-
tmp_5.
|
|
1454
|
+
var tmp_6 = Map$get$ref(this.d4r_1);
|
|
1455
|
+
tmp_5.g4r_1 = new JsonSchemaWriter(tmp_6, WirespecToAsyncAPI$writer$lambda(this));
|
|
1455
1456
|
var tmp_7 = this;
|
|
1456
1457
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1457
1458
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
@@ -1463,28 +1464,28 @@ function WirespecToAsyncAPI(definitions) {
|
|
|
1463
1464
|
destination_6.x(element_7);
|
|
1464
1465
|
}
|
|
1465
1466
|
}
|
|
1466
|
-
tmp_7.
|
|
1467
|
+
tmp_7.h4r_1 = destination_6;
|
|
1467
1468
|
var tmp_8 = this;
|
|
1468
|
-
var tmp0_safe_receiver = this.
|
|
1469
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
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.
|
|
1469
|
+
var tmp0_safe_receiver = this.a4r_1;
|
|
1470
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kp_1;
|
|
1471
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().t4q(tmp1_safe_receiver, 'AsyncAPIDocument');
|
|
1472
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().w4q(tmp2_safe_receiver);
|
|
1473
|
+
tmp_8.i4r_1 = tmp3_elvis_lhs == null ? Companion_getInstance().n4r_1 : tmp3_elvis_lhs;
|
|
1473
1474
|
var tmp_9 = this;
|
|
1474
1475
|
var tmp_10;
|
|
1475
|
-
var tmp_11 = this.
|
|
1476
|
+
var tmp_11 = this.i4r_1.ld('asyncapi');
|
|
1476
1477
|
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.
|
|
1478
|
+
var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.m1i();
|
|
1478
1479
|
if ((tmp1_safe_receiver_0 == null ? null : startsWith(tmp1_safe_receiver_0, '2.')) === true) {
|
|
1479
1480
|
tmp_10 = 2;
|
|
1480
1481
|
} else {
|
|
1481
1482
|
tmp_10 = 3;
|
|
1482
1483
|
}
|
|
1483
|
-
tmp_9.
|
|
1484
|
+
tmp_9.j4r_1 = tmp_10;
|
|
1484
1485
|
}
|
|
1485
|
-
protoOf(WirespecToAsyncAPI).
|
|
1486
|
+
protoOf(WirespecToAsyncAPI).k4r = function () {
|
|
1486
1487
|
// Inline function 'kotlin.collections.associate' call
|
|
1487
|
-
var this_0 = this.
|
|
1488
|
+
var this_0 = this.h4r_1;
|
|
1488
1489
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1489
1490
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1490
1491
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -1493,25 +1494,25 @@ protoOf(WirespecToAsyncAPI).w4o = function () {
|
|
|
1493
1494
|
var element = _iterator__ex2g4s.v();
|
|
1494
1495
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1495
1496
|
var pair = to(key(this, element), toChannel(this, element));
|
|
1496
|
-
destination.
|
|
1497
|
+
destination.w2(pair.gf_1, pair.hf_1);
|
|
1497
1498
|
}
|
|
1498
1499
|
var tmp = to('channels', toJsonObjectOrNull(destination));
|
|
1499
1500
|
// Inline function 'kotlin.takeIf' call
|
|
1500
1501
|
var this_1 = operations(this);
|
|
1501
1502
|
var tmp_0;
|
|
1502
|
-
if (this.
|
|
1503
|
+
if (this.j4r_1 === 3) {
|
|
1503
1504
|
tmp_0 = this_1;
|
|
1504
1505
|
} else {
|
|
1505
1506
|
tmp_0 = null;
|
|
1506
1507
|
}
|
|
1507
1508
|
var tmp0_safe_receiver = tmp_0;
|
|
1508
|
-
return new JsonObject(plus_0(this.
|
|
1509
|
+
return new JsonObject(plus_0(this.i4r_1, jsonObjectOf([tmp, to('operations', tmp0_safe_receiver == null ? null : toJsonObjectOrNull(tmp0_safe_receiver)), to('components', components(this))])));
|
|
1509
1510
|
};
|
|
1510
1511
|
function AsyncAPIParser() {
|
|
1511
1512
|
}
|
|
1512
|
-
protoOf(AsyncAPIParser).
|
|
1513
|
+
protoOf(AsyncAPIParser).u31 = function (moduleContent, strict) {
|
|
1513
1514
|
// Inline function 'kotlin.let' call
|
|
1514
|
-
var it = Default_getInstance().
|
|
1515
|
+
var it = Default_getInstance().u2m(moduleContent.eo_1);
|
|
1515
1516
|
var tmp0_elvis_lhs = it instanceof JsonObject ? it : null;
|
|
1516
1517
|
var tmp;
|
|
1517
1518
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1524,8 +1525,8 @@ protoOf(AsyncAPIParser).q30 = function (moduleContent, strict) {
|
|
|
1524
1525
|
// Inline function 'kotlin.let' call
|
|
1525
1526
|
var it_0 = tmp;
|
|
1526
1527
|
// Inline function 'kotlin.let' call
|
|
1527
|
-
var it_1 = (new AsyncAPIConverter(it_0)).
|
|
1528
|
-
return new Root(nonEmptyListOf(new Module(moduleContent.
|
|
1528
|
+
var it_1 = (new AsyncAPIConverter(it_0)).h4s();
|
|
1529
|
+
return new Root(nonEmptyListOf(new Module(moduleContent.do_1, it_1), []));
|
|
1529
1530
|
};
|
|
1530
1531
|
var AsyncAPIParser_instance;
|
|
1531
1532
|
function AsyncAPIParser_getInstance() {
|
|
@@ -1534,7 +1535,7 @@ function AsyncAPIParser_getInstance() {
|
|
|
1534
1535
|
function AsyncAPIConverter$Companion$primitive$lambda(it) {
|
|
1535
1536
|
// Inline function 'kotlin.takeIf' call
|
|
1536
1537
|
var tmp;
|
|
1537
|
-
if (Companion_getInstance_0().
|
|
1538
|
+
if (Companion_getInstance_0().k4s_1.sc(it)) {
|
|
1538
1539
|
tmp = it;
|
|
1539
1540
|
} else {
|
|
1540
1541
|
tmp = null;
|
|
@@ -1544,7 +1545,7 @@ function AsyncAPIConverter$Companion$primitive$lambda(it) {
|
|
|
1544
1545
|
function AsyncAPIConverter$Companion$primitive$lambda_0(it) {
|
|
1545
1546
|
// Inline function 'kotlin.takeIf' call
|
|
1546
1547
|
var tmp;
|
|
1547
|
-
if (Companion_getInstance_0().
|
|
1548
|
+
if (Companion_getInstance_0().l4s_1.sc(it)) {
|
|
1548
1549
|
tmp = it;
|
|
1549
1550
|
} else {
|
|
1550
1551
|
tmp = null;
|
|
@@ -1587,15 +1588,15 @@ function AsyncAPIConverter$Companion$toIdentifier$lambda(it) {
|
|
|
1587
1588
|
return tmp;
|
|
1588
1589
|
}
|
|
1589
1590
|
function holder($this, messages, operations) {
|
|
1590
|
-
var tmp = listOf(AsyncAPIAnnotations_getInstance().
|
|
1591
|
-
var tmp0_safe_receiver = $this.
|
|
1591
|
+
var tmp = listOf(AsyncAPIAnnotations_getInstance().n4q('AsyncAPIDocument', VOID, AsyncAPIAnnotations_getInstance().r4q(documentFields($this, $this.s4r_1))));
|
|
1592
|
+
var tmp0_safe_receiver = $this.v4r_1;
|
|
1592
1593
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : componentFields($this, tmp0_safe_receiver);
|
|
1593
1594
|
var tmp_0;
|
|
1594
1595
|
if (tmp1_safe_receiver == null) {
|
|
1595
1596
|
tmp_0 = null;
|
|
1596
1597
|
} else {
|
|
1597
1598
|
// Inline function 'kotlin.let' call
|
|
1598
|
-
tmp_0 = AsyncAPIAnnotations_getInstance().
|
|
1599
|
+
tmp_0 = AsyncAPIAnnotations_getInstance().n4q('AsyncAPIComponents', VOID, AsyncAPIAnnotations_getInstance().r4q(tmp1_safe_receiver));
|
|
1599
1600
|
}
|
|
1600
1601
|
var tmp_1 = plus(tmp, listOfNotNull(tmp_0));
|
|
1601
1602
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1604,7 +1605,7 @@ function holder($this, messages, operations) {
|
|
|
1604
1605
|
var _iterator__ex2g4s = messages.t();
|
|
1605
1606
|
while (_iterator__ex2g4s.u()) {
|
|
1606
1607
|
var item = _iterator__ex2g4s.v();
|
|
1607
|
-
var tmp$ret$4 = item.
|
|
1608
|
+
var tmp$ret$4 = item.o4s_1;
|
|
1608
1609
|
destination.x(tmp$ret$4);
|
|
1609
1610
|
}
|
|
1610
1611
|
var tmp_2 = plus(tmp_1, destination);
|
|
@@ -1614,12 +1615,12 @@ function holder($this, messages, operations) {
|
|
|
1614
1615
|
var _iterator__ex2g4s_0 = operations.t();
|
|
1615
1616
|
while (_iterator__ex2g4s_0.u()) {
|
|
1616
1617
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
1617
|
-
var key = item_0.
|
|
1618
|
-
var operation = item_0.
|
|
1618
|
+
var key = item_0.af();
|
|
1619
|
+
var operation = item_0.bf();
|
|
1619
1620
|
var tmp$ret$7 = toAnnotation($this, operation, key, null);
|
|
1620
1621
|
destination_0.x(tmp$ret$7);
|
|
1621
1622
|
}
|
|
1622
|
-
return new Type(null, plus(tmp_2, destination_0), new DefinitionIdentifier($this.
|
|
1623
|
+
return new Type(null, plus(tmp_2, destination_0), new DefinitionIdentifier($this.z4r_1), new Shape(emptyList()), emptyList());
|
|
1623
1624
|
}
|
|
1624
1625
|
function documentFields($this, $receiver) {
|
|
1625
1626
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -1636,10 +1637,10 @@ function documentFields($this, $receiver) {
|
|
|
1636
1637
|
var tmp;
|
|
1637
1638
|
switch (key) {
|
|
1638
1639
|
case 'channels':
|
|
1639
|
-
tmp = Companion_getInstance_0().
|
|
1640
|
+
tmp = Companion_getInstance_0().r4s(value);
|
|
1640
1641
|
break;
|
|
1641
1642
|
case 'operations':
|
|
1642
|
-
tmp = ($this.
|
|
1643
|
+
tmp = ($this.t4r_1 === 3 && Companion_getInstance_0().r4s(value));
|
|
1643
1644
|
break;
|
|
1644
1645
|
case 'components':
|
|
1645
1646
|
tmp = value instanceof JsonObject;
|
|
@@ -1649,7 +1650,7 @@ function documentFields($this, $receiver) {
|
|
|
1649
1650
|
break;
|
|
1650
1651
|
}
|
|
1651
1652
|
if (!tmp) {
|
|
1652
|
-
destination.
|
|
1653
|
+
destination.w2(element.n1(), element.o1());
|
|
1653
1654
|
}
|
|
1654
1655
|
}
|
|
1655
1656
|
return new JsonObject(destination);
|
|
@@ -1684,9 +1685,9 @@ function componentFields($this, $receiver) {
|
|
|
1684
1685
|
var it = entry.n1();
|
|
1685
1686
|
// Inline function 'kotlin.collections.contains' call
|
|
1686
1687
|
// Inline function 'kotlin.collections.containsKey' call
|
|
1687
|
-
var this_0 = $this.
|
|
1688
|
-
if (!(isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).
|
|
1689
|
-
result.
|
|
1688
|
+
var this_0 = $this.x4r_1;
|
|
1689
|
+
if (!(isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).r2(it)) {
|
|
1690
|
+
result.w2(entry.n1(), entry.o1());
|
|
1690
1691
|
}
|
|
1691
1692
|
}
|
|
1692
1693
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -1714,7 +1715,7 @@ function componentFields($this, $receiver) {
|
|
|
1714
1715
|
}
|
|
1715
1716
|
tmp = tmp_3;
|
|
1716
1717
|
} else {
|
|
1717
|
-
if (key === 'messages' && Companion_getInstance_0().
|
|
1718
|
+
if (key === 'messages' && Companion_getInstance_0().r4s(value)) {
|
|
1718
1719
|
tmp = null;
|
|
1719
1720
|
} else {
|
|
1720
1721
|
tmp = to(key, value);
|
|
@@ -1743,13 +1744,13 @@ function channelV3($this, key, element, operations) {
|
|
|
1743
1744
|
}
|
|
1744
1745
|
var channel_0 = tmp;
|
|
1745
1746
|
var identifier = claimChannel($this, key);
|
|
1746
|
-
var ref = Companion_getInstance_0().
|
|
1747
|
+
var ref = Companion_getInstance_0().s4s(channel_0);
|
|
1747
1748
|
var tmp_0;
|
|
1748
1749
|
if (ref == null) {
|
|
1749
1750
|
// Inline function 'kotlin.collections.map' call
|
|
1750
|
-
var this_0 = orEmpty(Companion_getInstance_0().
|
|
1751
|
+
var this_0 = orEmpty(Companion_getInstance_0().u4s(channel_0, 'messages'));
|
|
1751
1752
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1752
|
-
var destination = ArrayList_init_$Create$(this_0.
|
|
1753
|
+
var destination = ArrayList_init_$Create$(this_0.c1());
|
|
1753
1754
|
// Inline function 'kotlin.collections.iterator' call
|
|
1754
1755
|
var _iterator__ex2g4s = this_0.m1().t();
|
|
1755
1756
|
while (_iterator__ex2g4s.u()) {
|
|
@@ -1762,19 +1763,19 @@ function channelV3($this, key, element, operations) {
|
|
|
1762
1763
|
destination.x(tmp$ret$4);
|
|
1763
1764
|
}
|
|
1764
1765
|
// Inline function 'kotlin.let' call
|
|
1765
|
-
var tmp_1 = plus(AsyncAPIAnnotations_getInstance().
|
|
1766
|
+
var tmp_1 = plus(AsyncAPIAnnotations_getInstance().o4q(Companion_getInstance_0().v4s(channel_0)), nameAnnotation($this, key, Companion_getInstance_0().t4s(identifier)));
|
|
1766
1767
|
var tmp_2 = AsyncAPIAnnotations_getInstance();
|
|
1767
1768
|
var tmp_3 = AsyncAPIAnnotations_getInstance();
|
|
1768
1769
|
var tmp_4 = Companion_getInstance_0();
|
|
1769
1770
|
var tmp_5 = to('description', AsyncAPIConverter$channelV3$lambda);
|
|
1770
|
-
var tmp_6 = plus_2(tmp_1, tmp_2.
|
|
1771
|
+
var tmp_6 = plus_2(tmp_1, tmp_2.n4q('AsyncAPIChannel', VOID, tmp_3.r4q(new JsonObject(tmp_4.w4s(channel_0, [tmp_5, to('messages', AsyncAPIConverter$channelV3$lambda_0)])))));
|
|
1771
1772
|
// Inline function 'kotlin.collections.map' call
|
|
1772
1773
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1773
1774
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
1774
1775
|
var _iterator__ex2g4s_0 = destination.t();
|
|
1775
1776
|
while (_iterator__ex2g4s_0.u()) {
|
|
1776
1777
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
1777
|
-
var tmp$ret$11 = item_0.
|
|
1778
|
+
var tmp$ret$11 = item_0.o4s_1;
|
|
1778
1779
|
destination_0.x(tmp$ret$11);
|
|
1779
1780
|
}
|
|
1780
1781
|
var tmp_7 = plus(tmp_6, destination_0);
|
|
@@ -1784,8 +1785,8 @@ function channelV3($this, key, element, operations) {
|
|
|
1784
1785
|
var _iterator__ex2g4s_1 = operations.t();
|
|
1785
1786
|
while (_iterator__ex2g4s_1.u()) {
|
|
1786
1787
|
var item_1 = _iterator__ex2g4s_1.v();
|
|
1787
|
-
var operationKey = item_1.
|
|
1788
|
-
var operation = item_1.
|
|
1788
|
+
var operationKey = item_1.af();
|
|
1789
|
+
var operation = item_1.bf();
|
|
1789
1790
|
var tmp$ret$14 = toAnnotation($this, operation, operationKey, pointer);
|
|
1790
1791
|
destination_1.x(tmp$ret$14);
|
|
1791
1792
|
}
|
|
@@ -1796,20 +1797,20 @@ function channelV3($this, key, element, operations) {
|
|
|
1796
1797
|
var _iterator__ex2g4s_2 = destination.t();
|
|
1797
1798
|
while (_iterator__ex2g4s_2.u()) {
|
|
1798
1799
|
var item_2 = _iterator__ex2g4s_2.v();
|
|
1799
|
-
var tmp$ret$17 = new Converted(item_2.
|
|
1800
|
+
var tmp$ret$17 = new Converted(item_2.p4s_1, item_2.q4s_1);
|
|
1800
1801
|
destination_2.x(tmp$ret$17);
|
|
1801
1802
|
}
|
|
1802
1803
|
tmp_0 = channel($this, identifier, tmp_8, destination_2);
|
|
1803
1804
|
} else {
|
|
1804
|
-
var tmp_9 = plus_2(nameAnnotation($this, key, Companion_getInstance_0().
|
|
1805
|
+
var tmp_9 = plus_2(nameAnnotation($this, key, Companion_getInstance_0().t4s(identifier)), AsyncAPIAnnotations_getInstance().n4q('AsyncAPIChannel', VOID, AsyncAPIAnnotations_getInstance().r4q(channel_0)));
|
|
1805
1806
|
// Inline function 'kotlin.collections.map' call
|
|
1806
1807
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1807
1808
|
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(operations, 10));
|
|
1808
1809
|
var _iterator__ex2g4s_3 = operations.t();
|
|
1809
1810
|
while (_iterator__ex2g4s_3.u()) {
|
|
1810
1811
|
var item_3 = _iterator__ex2g4s_3.v();
|
|
1811
|
-
var operationKey_0 = item_3.
|
|
1812
|
-
var operation_0 = item_3.
|
|
1812
|
+
var operationKey_0 = item_3.af();
|
|
1813
|
+
var operation_0 = item_3.bf();
|
|
1813
1814
|
var tmp$ret$20 = toAnnotation($this, operation_0, operationKey_0, pointer);
|
|
1814
1815
|
destination_3.x(tmp$ret$20);
|
|
1815
1816
|
}
|
|
@@ -1817,9 +1818,9 @@ function channelV3($this, key, element, operations) {
|
|
|
1817
1818
|
var tmp_11 = lookup($this, ref);
|
|
1818
1819
|
var tmp1_safe_receiver = tmp_11 instanceof JsonObject ? tmp_11 : null;
|
|
1819
1820
|
// Inline function 'kotlin.collections.map' call
|
|
1820
|
-
var this_1 = orEmpty(tmp1_safe_receiver == null ? null : Companion_getInstance_0().
|
|
1821
|
+
var this_1 = orEmpty(tmp1_safe_receiver == null ? null : Companion_getInstance_0().u4s(tmp1_safe_receiver, 'messages'));
|
|
1821
1822
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1822
|
-
var destination_4 = ArrayList_init_$Create$(this_1.
|
|
1823
|
+
var destination_4 = ArrayList_init_$Create$(this_1.c1());
|
|
1823
1824
|
// Inline function 'kotlin.collections.iterator' call
|
|
1824
1825
|
var _iterator__ex2g4s_4 = this_1.m1().t();
|
|
1825
1826
|
while (_iterator__ex2g4s_4.u()) {
|
|
@@ -1830,7 +1831,7 @@ function channelV3($this, key, element, operations) {
|
|
|
1830
1831
|
var message_2 = item_4.o1();
|
|
1831
1832
|
// Inline function 'kotlin.let' call
|
|
1832
1833
|
var it = message($this, messageKey_0, ref + '/messages/' + escapePointer(messageKey_0), message_2);
|
|
1833
|
-
var tmp$ret$24 = new Converted(it.
|
|
1834
|
+
var tmp$ret$24 = new Converted(it.p4s_1, it.q4s_1);
|
|
1834
1835
|
destination_4.x(tmp$ret$24);
|
|
1835
1836
|
}
|
|
1836
1837
|
tmp_0 = channel($this, identifier, tmp_10, destination_4);
|
|
@@ -1858,7 +1859,7 @@ function channelV2($this, address, element) {
|
|
|
1858
1859
|
var _iterator__ex2g4s = tmp0.t();
|
|
1859
1860
|
while (_iterator__ex2g4s.u()) {
|
|
1860
1861
|
var element_0 = _iterator__ex2g4s.v();
|
|
1861
|
-
var tmp0_safe_receiver = Companion_getInstance_0().
|
|
1862
|
+
var tmp0_safe_receiver = Companion_getInstance_0().u4s(channel_0, element_0.w4p_1);
|
|
1862
1863
|
var tmp_0;
|
|
1863
1864
|
if (tmp0_safe_receiver == null) {
|
|
1864
1865
|
tmp_0 = null;
|
|
@@ -1876,7 +1877,7 @@ function channelV2($this, address, element) {
|
|
|
1876
1877
|
}
|
|
1877
1878
|
// Inline function 'kotlin.takeIf' call
|
|
1878
1879
|
var tmp_1;
|
|
1879
|
-
if (Companion_getInstance_0().
|
|
1880
|
+
if (Companion_getInstance_0().s4s(channel_0) == null) {
|
|
1880
1881
|
tmp_1 = destination;
|
|
1881
1882
|
} else {
|
|
1882
1883
|
tmp_1 = null;
|
|
@@ -1890,10 +1891,10 @@ function channelV2($this, address, element) {
|
|
|
1890
1891
|
var _iterator__ex2g4s_0 = operations.t();
|
|
1891
1892
|
while (_iterator__ex2g4s_0.u()) {
|
|
1892
1893
|
var item = _iterator__ex2g4s_0.v();
|
|
1893
|
-
var action = item.
|
|
1894
|
-
var operation = item.
|
|
1895
|
-
var messagePointer = pointer + '/' + action.
|
|
1896
|
-
var message_1 = operation.
|
|
1894
|
+
var action = item.af();
|
|
1895
|
+
var operation = item.bf();
|
|
1896
|
+
var messagePointer = pointer + '/' + action.w4p_1 + '/message';
|
|
1897
|
+
var message_1 = operation.ld('message');
|
|
1897
1898
|
var tmp_2;
|
|
1898
1899
|
if (message_1 == null) {
|
|
1899
1900
|
tmp_2 = to(emptyList(), false);
|
|
@@ -1905,7 +1906,7 @@ function channelV2($this, address, element) {
|
|
|
1905
1906
|
} else {
|
|
1906
1907
|
// Inline function 'kotlin.takeIf' call
|
|
1907
1908
|
var tmp_4;
|
|
1908
|
-
if (equals(tmp0_safe_receiver_1.
|
|
1909
|
+
if (equals(tmp0_safe_receiver_1.u2(), setOf_0('oneOf'))) {
|
|
1909
1910
|
tmp_4 = tmp0_safe_receiver_1;
|
|
1910
1911
|
} else {
|
|
1911
1912
|
tmp_4 = null;
|
|
@@ -1913,7 +1914,7 @@ function channelV2($this, address, element) {
|
|
|
1913
1914
|
tmp_3 = tmp_4;
|
|
1914
1915
|
}
|
|
1915
1916
|
var tmp1_safe_receiver = tmp_3;
|
|
1916
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1917
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ld('oneOf');
|
|
1917
1918
|
var tmp_5;
|
|
1918
1919
|
if (tmp2_safe_receiver == null) {
|
|
1919
1920
|
tmp_5 = null;
|
|
@@ -1962,7 +1963,7 @@ function channelV2($this, address, element) {
|
|
|
1962
1963
|
var _iterator__ex2g4s_2 = operationMessages.t();
|
|
1963
1964
|
while (_iterator__ex2g4s_2.u()) {
|
|
1964
1965
|
var element_1 = _iterator__ex2g4s_2.v();
|
|
1965
|
-
var list = element_1.
|
|
1966
|
+
var list = element_1.gf_1;
|
|
1966
1967
|
addAll(destination_2, list);
|
|
1967
1968
|
}
|
|
1968
1969
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
@@ -1971,7 +1972,7 @@ function channelV2($this, address, element) {
|
|
|
1971
1972
|
var _iterator__ex2g4s_3 = destination_2.t();
|
|
1972
1973
|
while (_iterator__ex2g4s_3.u()) {
|
|
1973
1974
|
var e = _iterator__ex2g4s_3.v();
|
|
1974
|
-
var key = e.
|
|
1975
|
+
var key = e.x4s_1;
|
|
1975
1976
|
if (set.x(key)) {
|
|
1976
1977
|
list_0.x(e);
|
|
1977
1978
|
}
|
|
@@ -1989,10 +1990,10 @@ function channelV2($this, address, element) {
|
|
|
1989
1990
|
var _iterator__ex2g4s_5 = keys.t();
|
|
1990
1991
|
while (_iterator__ex2g4s_5.u()) {
|
|
1991
1992
|
var item_1 = _iterator__ex2g4s_5.v();
|
|
1992
|
-
var tmp$ret$34 = item_1.
|
|
1993
|
+
var tmp$ret$34 = item_1.gf_1;
|
|
1993
1994
|
destination_3.x(tmp$ret$34);
|
|
1994
1995
|
}
|
|
1995
|
-
accumulator = plus_2(keys, to(tmp_8.
|
|
1996
|
+
accumulator = plus_2(keys, to(tmp_8.b4t(element_2.a4t_1, toSet(destination_3)), element_2));
|
|
1996
1997
|
}
|
|
1997
1998
|
var keys_0 = accumulator;
|
|
1998
1999
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -2002,11 +2003,11 @@ function channelV2($this, address, element) {
|
|
|
2002
2003
|
var _iterator__ex2g4s_6 = keys_0.t();
|
|
2003
2004
|
while (_iterator__ex2g4s_6.u()) {
|
|
2004
2005
|
var element_3 = _iterator__ex2g4s_6.v();
|
|
2005
|
-
var key_0 = element_3.
|
|
2006
|
-
var message_2 = element_3.
|
|
2006
|
+
var key_0 = element_3.af();
|
|
2007
|
+
var message_2 = element_3.bf();
|
|
2007
2008
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2008
|
-
var pair = to(message_2.
|
|
2009
|
-
destination_4.
|
|
2009
|
+
var pair = to(message_2.x4s_1, key_0);
|
|
2010
|
+
destination_4.w2(pair.gf_1, pair.hf_1);
|
|
2010
2011
|
}
|
|
2011
2012
|
var keyOf = destination_4;
|
|
2012
2013
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2015,35 +2016,35 @@ function channelV2($this, address, element) {
|
|
|
2015
2016
|
var _iterator__ex2g4s_7 = keys_0.t();
|
|
2016
2017
|
while (_iterator__ex2g4s_7.u()) {
|
|
2017
2018
|
var item_2 = _iterator__ex2g4s_7.v();
|
|
2018
|
-
var key_1 = item_2.
|
|
2019
|
-
var message_3 = item_2.
|
|
2020
|
-
var tmp$ret$41 = message($this, key_1, message_3.
|
|
2019
|
+
var key_1 = item_2.af();
|
|
2020
|
+
var message_3 = item_2.bf();
|
|
2021
|
+
var tmp$ret$41 = message($this, key_1, message_3.y4s_1, message_3.z4s_1);
|
|
2021
2022
|
destination_5.x(tmp$ret$41);
|
|
2022
2023
|
}
|
|
2023
2024
|
var messages = destination_5;
|
|
2024
2025
|
var tmp_9 = AsyncAPIAnnotations_getInstance();
|
|
2025
2026
|
// Inline function 'kotlin.takeIf' call
|
|
2026
2027
|
var tmp_10;
|
|
2027
|
-
if (Companion_getInstance_0().
|
|
2028
|
+
if (Companion_getInstance_0().s4s(channel_0) == null) {
|
|
2028
2029
|
tmp_10 = channel_0;
|
|
2029
2030
|
} else {
|
|
2030
2031
|
tmp_10 = null;
|
|
2031
2032
|
}
|
|
2032
2033
|
var tmp1_safe_receiver_0 = tmp_10;
|
|
2033
|
-
var tmp_11 = plus(tmp_9.
|
|
2034
|
+
var tmp_11 = plus(tmp_9.o4q(tmp1_safe_receiver_0 == null ? null : Companion_getInstance_0().v4s(tmp1_safe_receiver_0)), nameAnnotation($this, address, Companion_getInstance_0().t4s(identifier)));
|
|
2034
2035
|
var tmp_12 = AsyncAPIAnnotations_getInstance();
|
|
2035
2036
|
var tmp_13 = AsyncAPIAnnotations_getInstance();
|
|
2036
2037
|
var tmp_14;
|
|
2037
|
-
if (Companion_getInstance_0().
|
|
2038
|
+
if (Companion_getInstance_0().s4s(channel_0) == null) {
|
|
2038
2039
|
var tmp_15 = Companion_getInstance_0();
|
|
2039
|
-
var tmp_16 = tmp_15.
|
|
2040
|
+
var tmp_16 = tmp_15.w4s(channel_0, [to('description', AsyncAPIConverter$channelV2$lambda)]);
|
|
2040
2041
|
// Inline function 'kotlin.collections.map' call
|
|
2041
2042
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2042
2043
|
var destination_6 = ArrayList_init_$Create$(collectionSizeOrDefault(operations, 10));
|
|
2043
2044
|
var _iterator__ex2g4s_8 = operations.t();
|
|
2044
2045
|
while (_iterator__ex2g4s_8.u()) {
|
|
2045
2046
|
var item_3 = _iterator__ex2g4s_8.v();
|
|
2046
|
-
var tmp$ret$46 = item_3.
|
|
2047
|
+
var tmp$ret$46 = item_3.gf_1.w4p_1;
|
|
2047
2048
|
destination_6.x(tmp$ret$46);
|
|
2048
2049
|
}
|
|
2049
2050
|
tmp_14 = minus(tmp_16, toSet(destination_6));
|
|
@@ -2053,14 +2054,14 @@ function channelV2($this, address, element) {
|
|
|
2053
2054
|
// Inline function 'kotlin.let' call
|
|
2054
2055
|
var p0 = tmp_14;
|
|
2055
2056
|
var tmp$ret$47 = new JsonObject(p0);
|
|
2056
|
-
var tmp_17 = plus_2(tmp_11, tmp_12.
|
|
2057
|
+
var tmp_17 = plus_2(tmp_11, tmp_12.n4q('AsyncAPIChannel', VOID, tmp_13.r4q(tmp$ret$47)));
|
|
2057
2058
|
// Inline function 'kotlin.collections.map' call
|
|
2058
2059
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2059
2060
|
var destination_7 = ArrayList_init_$Create$(collectionSizeOrDefault(messages, 10));
|
|
2060
2061
|
var _iterator__ex2g4s_9 = messages.t();
|
|
2061
2062
|
while (_iterator__ex2g4s_9.u()) {
|
|
2062
2063
|
var item_4 = _iterator__ex2g4s_9.v();
|
|
2063
|
-
var tmp$ret$51 = item_4.
|
|
2064
|
+
var tmp$ret$51 = item_4.o4s_1;
|
|
2064
2065
|
destination_7.x(tmp$ret$51);
|
|
2065
2066
|
}
|
|
2066
2067
|
var tmp_18 = plus(tmp_17, destination_7);
|
|
@@ -2071,28 +2072,28 @@ function channelV2($this, address, element) {
|
|
|
2071
2072
|
var _iterator__ex2g4s_10 = this_0.t();
|
|
2072
2073
|
while (_iterator__ex2g4s_10.u()) {
|
|
2073
2074
|
var item_5 = _iterator__ex2g4s_10.v();
|
|
2074
|
-
var operation_0 = item_5.
|
|
2075
|
-
var messagesOfOperation = item_5.
|
|
2076
|
-
var action_0 = operation_0.
|
|
2077
|
-
var fields = operation_0.
|
|
2075
|
+
var operation_0 = item_5.af();
|
|
2076
|
+
var messagesOfOperation = item_5.bf();
|
|
2077
|
+
var action_0 = operation_0.af();
|
|
2078
|
+
var fields = operation_0.bf();
|
|
2078
2079
|
// Inline function 'kotlin.let' call
|
|
2079
|
-
var messages_0 = messagesOfOperation.
|
|
2080
|
-
var oneOf = messagesOfOperation.
|
|
2080
|
+
var messages_0 = messagesOfOperation.af();
|
|
2081
|
+
var oneOf = messagesOfOperation.bf();
|
|
2081
2082
|
// Inline function 'kotlin.collections.map' call
|
|
2082
2083
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2083
2084
|
var destination_9 = ArrayList_init_$Create$(collectionSizeOrDefault(messages_0, 10));
|
|
2084
2085
|
var _iterator__ex2g4s_11 = messages_0.t();
|
|
2085
2086
|
while (_iterator__ex2g4s_11.u()) {
|
|
2086
2087
|
var item_6 = _iterator__ex2g4s_11.v();
|
|
2087
|
-
var tmp$ret$59 = getValue(keyOf, item_6.
|
|
2088
|
+
var tmp$ret$59 = getValue(keyOf, item_6.x4s_1);
|
|
2088
2089
|
destination_9.x(tmp$ret$59);
|
|
2089
2090
|
}
|
|
2090
2091
|
var _destruct__k2r9zo = to(destination_9, oneOf);
|
|
2091
|
-
var operationKeys = _destruct__k2r9zo.
|
|
2092
|
-
var oneOf_0 = _destruct__k2r9zo.
|
|
2092
|
+
var operationKeys = _destruct__k2r9zo.af();
|
|
2093
|
+
var oneOf_0 = _destruct__k2r9zo.bf();
|
|
2093
2094
|
var tmp_19 = AsyncAPIAnnotations_getInstance();
|
|
2094
|
-
var tmp_20 = action_0.
|
|
2095
|
-
var tmp_21 = fields.
|
|
2095
|
+
var tmp_20 = action_0.x4p();
|
|
2096
|
+
var tmp_21 = fields.ld('operationId');
|
|
2096
2097
|
var tmp0_safe_receiver_2 = tmp_21 instanceof JsonPrimitive_1 ? tmp_21 : null;
|
|
2097
2098
|
var tmp_22;
|
|
2098
2099
|
if (tmp0_safe_receiver_2 == null) {
|
|
@@ -2100,7 +2101,7 @@ function channelV2($this, address, element) {
|
|
|
2100
2101
|
} else {
|
|
2101
2102
|
// Inline function 'kotlin.takeIf' call
|
|
2102
2103
|
var tmp_23;
|
|
2103
|
-
if (tmp0_safe_receiver_2.
|
|
2104
|
+
if (tmp0_safe_receiver_2.w2o()) {
|
|
2104
2105
|
tmp_23 = tmp0_safe_receiver_2;
|
|
2105
2106
|
} else {
|
|
2106
2107
|
tmp_23 = null;
|
|
@@ -2108,7 +2109,7 @@ function channelV2($this, address, element) {
|
|
|
2108
2109
|
tmp_22 = tmp_23;
|
|
2109
2110
|
}
|
|
2110
2111
|
var tmp1_safe_receiver_1 = tmp_22;
|
|
2111
|
-
var tmp_24 = tmp1_safe_receiver_1 == null ? null : tmp1_safe_receiver_1.
|
|
2112
|
+
var tmp_24 = tmp1_safe_receiver_1 == null ? null : tmp1_safe_receiver_1.m1i();
|
|
2112
2113
|
// Inline function 'kotlin.collections.filterNot' call
|
|
2113
2114
|
var tmp0_0 = fields.m1();
|
|
2114
2115
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
@@ -2120,7 +2121,7 @@ function channelV2($this, address, element) {
|
|
|
2120
2121
|
var field = element_4.n1();
|
|
2121
2122
|
// Inline function 'kotlin.collections.component2' call
|
|
2122
2123
|
var value = element_4.o1();
|
|
2123
|
-
if (!(field === 'operationId' && Companion_getInstance_0().
|
|
2124
|
+
if (!(field === 'operationId' && Companion_getInstance_0().c4t(value))) {
|
|
2124
2125
|
destination_10.x(element_4);
|
|
2125
2126
|
}
|
|
2126
2127
|
}
|
|
@@ -2137,7 +2138,7 @@ function channelV2($this, address, element) {
|
|
|
2137
2138
|
var tmp_25 = AsyncAPIAnnotations_getInstance();
|
|
2138
2139
|
var tmp_26;
|
|
2139
2140
|
if (!(field_0 === 'message')) {
|
|
2140
|
-
tmp_26 = AsyncAPIAnnotations_getInstance().
|
|
2141
|
+
tmp_26 = AsyncAPIAnnotations_getInstance().s4q(value_0);
|
|
2141
2142
|
} else if (oneOf_0) {
|
|
2142
2143
|
// Inline function 'kotlin.collections.map' call
|
|
2143
2144
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2145,17 +2146,17 @@ function channelV2($this, address, element) {
|
|
|
2145
2146
|
var _iterator__ex2g4s_14 = operationKeys.t();
|
|
2146
2147
|
while (_iterator__ex2g4s_14.u()) {
|
|
2147
2148
|
var item_8 = _iterator__ex2g4s_14.v();
|
|
2148
|
-
var tmp$ret$74 = AsyncAPIAnnotations_getInstance().
|
|
2149
|
+
var tmp$ret$74 = AsyncAPIAnnotations_getInstance().q4q(item_8);
|
|
2149
2150
|
destination_12.x(tmp$ret$74);
|
|
2150
2151
|
}
|
|
2151
2152
|
tmp_26 = new Array_0(destination_12);
|
|
2152
2153
|
} else {
|
|
2153
|
-
tmp_26 = AsyncAPIAnnotations_getInstance().
|
|
2154
|
+
tmp_26 = AsyncAPIAnnotations_getInstance().q4q(single(operationKeys));
|
|
2154
2155
|
}
|
|
2155
|
-
var tmp$ret$69 = tmp_25.
|
|
2156
|
+
var tmp$ret$69 = tmp_25.p4q(field_0, tmp_26);
|
|
2156
2157
|
destination_11.x(tmp$ret$69);
|
|
2157
2158
|
}
|
|
2158
|
-
var tmp$ret$54 = tmp_19.
|
|
2159
|
+
var tmp$ret$54 = tmp_19.m4q(tmp_20, tmp_24, destination_11);
|
|
2159
2160
|
destination_8.x(tmp$ret$54);
|
|
2160
2161
|
}
|
|
2161
2162
|
var tmp_27 = plus(tmp_18, destination_8);
|
|
@@ -2165,31 +2166,31 @@ function channelV2($this, address, element) {
|
|
|
2165
2166
|
var _iterator__ex2g4s_15 = messages.t();
|
|
2166
2167
|
while (_iterator__ex2g4s_15.u()) {
|
|
2167
2168
|
var item_9 = _iterator__ex2g4s_15.v();
|
|
2168
|
-
var tmp$ret$77 = new Converted(item_9.
|
|
2169
|
+
var tmp$ret$77 = new Converted(item_9.p4s_1, item_9.q4s_1);
|
|
2169
2170
|
destination_13.x(tmp$ret$77);
|
|
2170
2171
|
}
|
|
2171
2172
|
return channel($this, identifier, tmp_27, destination_13);
|
|
2172
2173
|
}
|
|
2173
2174
|
function operationMessage($this, pointer, element, action) {
|
|
2174
2175
|
var message = element instanceof JsonObject ? element : null;
|
|
2175
|
-
var ref = message == null ? null : Companion_getInstance_0().
|
|
2176
|
+
var ref = message == null ? null : Companion_getInstance_0().s4s(message);
|
|
2176
2177
|
var tmp = ref == null ? pointer : ref;
|
|
2177
|
-
var tmp3_elvis_lhs = ref == null ? null : Companion_getInstance_0().
|
|
2178
|
+
var tmp3_elvis_lhs = ref == null ? null : Companion_getInstance_0().d4t(ref, 'messages');
|
|
2178
2179
|
var tmp_0;
|
|
2179
2180
|
if (tmp3_elvis_lhs == null) {
|
|
2180
|
-
tmp_0 = message == null ? null : Companion_getInstance_0().
|
|
2181
|
+
tmp_0 = message == null ? null : Companion_getInstance_0().e4t(message, 'name');
|
|
2181
2182
|
} else {
|
|
2182
2183
|
tmp_0 = tmp3_elvis_lhs;
|
|
2183
2184
|
}
|
|
2184
2185
|
var tmp5_elvis_lhs = tmp_0;
|
|
2185
2186
|
var tmp_1;
|
|
2186
2187
|
if (tmp5_elvis_lhs == null) {
|
|
2187
|
-
tmp_1 = message == null ? null : Companion_getInstance_0().
|
|
2188
|
+
tmp_1 = message == null ? null : Companion_getInstance_0().e4t(message, 'messageId');
|
|
2188
2189
|
} else {
|
|
2189
2190
|
tmp_1 = tmp5_elvis_lhs;
|
|
2190
2191
|
}
|
|
2191
2192
|
var tmp7_elvis_lhs = tmp_1;
|
|
2192
|
-
return new OperationMessage(tmp, pointer, element, tmp7_elvis_lhs == null ? action.
|
|
2193
|
+
return new OperationMessage(tmp, pointer, element, tmp7_elvis_lhs == null ? action.v4p_1 + 'Message' : tmp7_elvis_lhs);
|
|
2193
2194
|
}
|
|
2194
2195
|
function channel($this, identifier, annotations, payloads) {
|
|
2195
2196
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2198,14 +2199,14 @@ function channel($this, identifier, annotations, payloads) {
|
|
|
2198
2199
|
var _iterator__ex2g4s = payloads.t();
|
|
2199
2200
|
while (_iterator__ex2g4s.u()) {
|
|
2200
2201
|
var item = _iterator__ex2g4s.v();
|
|
2201
|
-
var tmp$ret$2 = item.
|
|
2202
|
+
var tmp$ret$2 = item.f4t_1;
|
|
2202
2203
|
destination.x(tmp$ret$2);
|
|
2203
2204
|
}
|
|
2204
2205
|
var references = distinct(destination);
|
|
2205
2206
|
// Inline function 'kotlin.takeIf' call
|
|
2206
2207
|
var tmp;
|
|
2207
2208
|
var tmp_0;
|
|
2208
|
-
if (references.
|
|
2209
|
+
if (references.c1() > 1) {
|
|
2209
2210
|
var tmp$ret$5;
|
|
2210
2211
|
$l$block_0: {
|
|
2211
2212
|
// Inline function 'kotlin.collections.all' call
|
|
@@ -2244,7 +2245,7 @@ function channel($this, identifier, annotations, payloads) {
|
|
|
2244
2245
|
tmp_2 = null;
|
|
2245
2246
|
} else {
|
|
2246
2247
|
// Inline function 'kotlin.let' call
|
|
2247
|
-
var tmp_3 = listOf(AsyncAPIAnnotations_getInstance().
|
|
2248
|
+
var tmp_3 = listOf(AsyncAPIAnnotations_getInstance().n4q('AsyncAPIInline'));
|
|
2248
2249
|
var tmp_4 = new DefinitionIdentifier(claim($this, identifier + 'Message'));
|
|
2249
2250
|
// Inline function 'kotlin.collections.map' call
|
|
2250
2251
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2252,13 +2253,13 @@ function channel($this, identifier, annotations, payloads) {
|
|
|
2252
2253
|
var _iterator__ex2g4s_1 = tmp0_safe_receiver.t();
|
|
2253
2254
|
while (_iterator__ex2g4s_1.u()) {
|
|
2254
2255
|
var item_0 = _iterator__ex2g4s_1.v();
|
|
2255
|
-
var tmp$ret$11 = item_0.
|
|
2256
|
+
var tmp$ret$11 = item_0.x1a(false);
|
|
2256
2257
|
destination_0.x(tmp$ret$11);
|
|
2257
2258
|
}
|
|
2258
2259
|
tmp_2 = new Union(null, tmp_3, tmp_4, toSet(destination_0));
|
|
2259
2260
|
}
|
|
2260
2261
|
var union = tmp_2;
|
|
2261
|
-
var reference = !(union == null) ? new Custom(union.
|
|
2262
|
+
var reference = !(union == null) ? new Custom(union.cr_1.o1(), false) : references.c1() === 1 ? single(references) : new Any(false);
|
|
2262
2263
|
var tmp_5 = listOfNotNull_0([new Channel(null, annotations, new DefinitionIdentifier(identifier), reference), union]);
|
|
2263
2264
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2264
2265
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2266,7 +2267,7 @@ function channel($this, identifier, annotations, payloads) {
|
|
|
2266
2267
|
var _iterator__ex2g4s_2 = payloads.t();
|
|
2267
2268
|
while (_iterator__ex2g4s_2.u()) {
|
|
2268
2269
|
var element_0 = _iterator__ex2g4s_2.v();
|
|
2269
|
-
var list = element_0.
|
|
2270
|
+
var list = element_0.g4t_1;
|
|
2270
2271
|
addAll(destination_1, list);
|
|
2271
2272
|
}
|
|
2272
2273
|
return plus(tmp_5, destination_1);
|
|
@@ -2274,20 +2275,20 @@ function channel($this, identifier, annotations, payloads) {
|
|
|
2274
2275
|
function channelKey($this, $receiver) {
|
|
2275
2276
|
// Inline function 'kotlin.takeIf' call
|
|
2276
2277
|
var tmp;
|
|
2277
|
-
if (!(Companion_getInstance_0().
|
|
2278
|
+
if (!(Companion_getInstance_0().h4t($receiver.ld('action')) == null) && Companion_getInstance_0().s4s($receiver) == null) {
|
|
2278
2279
|
tmp = $receiver;
|
|
2279
2280
|
} else {
|
|
2280
2281
|
tmp = null;
|
|
2281
2282
|
}
|
|
2282
2283
|
var tmp0_safe_receiver = tmp;
|
|
2283
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : Companion_getInstance_0().
|
|
2284
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : Companion_getInstance_0().u4s(tmp0_safe_receiver, 'channel');
|
|
2284
2285
|
var tmp_0;
|
|
2285
2286
|
if (tmp1_safe_receiver == null) {
|
|
2286
2287
|
tmp_0 = null;
|
|
2287
2288
|
} else {
|
|
2288
2289
|
// Inline function 'kotlin.takeIf' call
|
|
2289
2290
|
var tmp_1;
|
|
2290
|
-
if (tmp1_safe_receiver.
|
|
2291
|
+
if (tmp1_safe_receiver.c1() === 1) {
|
|
2291
2292
|
tmp_1 = tmp1_safe_receiver;
|
|
2292
2293
|
} else {
|
|
2293
2294
|
tmp_1 = null;
|
|
@@ -2295,7 +2296,7 @@ function channelKey($this, $receiver) {
|
|
|
2295
2296
|
tmp_0 = tmp_1;
|
|
2296
2297
|
}
|
|
2297
2298
|
var tmp2_safe_receiver = tmp_0;
|
|
2298
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_getInstance_0().
|
|
2299
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_getInstance_0().s4s(tmp2_safe_receiver);
|
|
2299
2300
|
var tmp_2;
|
|
2300
2301
|
if (tmp3_safe_receiver == null) {
|
|
2301
2302
|
tmp_2 = null;
|
|
@@ -2319,7 +2320,7 @@ function channelKey($this, $receiver) {
|
|
|
2319
2320
|
} else {
|
|
2320
2321
|
// Inline function 'kotlin.takeIf' call
|
|
2321
2322
|
var tmp_5;
|
|
2322
|
-
if ($this.
|
|
2323
|
+
if ($this.g4s_1.i1(tmp5_safe_receiver)) {
|
|
2323
2324
|
tmp_5 = tmp5_safe_receiver;
|
|
2324
2325
|
} else {
|
|
2325
2326
|
tmp_5 = null;
|
|
@@ -2329,9 +2330,9 @@ function channelKey($this, $receiver) {
|
|
|
2329
2330
|
return tmp_4;
|
|
2330
2331
|
}
|
|
2331
2332
|
function toAnnotation($this, $receiver, key, channelPointer) {
|
|
2332
|
-
var action = Companion_getInstance_0().
|
|
2333
|
+
var action = Companion_getInstance_0().h4t($receiver.ld('action'));
|
|
2333
2334
|
var tmp = AsyncAPIAnnotations_getInstance();
|
|
2334
|
-
var tmp_0 = (action == null ? Action_SEND_getInstance() : action).
|
|
2335
|
+
var tmp_0 = (action == null ? Action_SEND_getInstance() : action).x4p();
|
|
2335
2336
|
// Inline function 'kotlin.collections.filterNot' call
|
|
2336
2337
|
var tmp0 = $receiver.m1();
|
|
2337
2338
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
@@ -2380,10 +2381,10 @@ function toAnnotation($this, $receiver, key, channelPointer) {
|
|
|
2380
2381
|
tmp_4 = toMessageKeys($this, value_0, tmp1_safe_receiver);
|
|
2381
2382
|
}
|
|
2382
2383
|
var tmp2_elvis_lhs = tmp_4;
|
|
2383
|
-
var tmp$ret$7 = tmp_1.
|
|
2384
|
+
var tmp$ret$7 = tmp_1.p4q(field_0, tmp2_elvis_lhs == null ? AsyncAPIAnnotations_getInstance().s4q(value_0) : tmp2_elvis_lhs);
|
|
2384
2385
|
destination_0.x(tmp$ret$7);
|
|
2385
2386
|
}
|
|
2386
|
-
return tmp.
|
|
2387
|
+
return tmp.m4q(tmp_0, key, destination_0);
|
|
2387
2388
|
}
|
|
2388
2389
|
function toMessageKeys($this, $receiver, channelPointer) {
|
|
2389
2390
|
var tmp0_safe_receiver = $receiver instanceof JsonArray ? $receiver : null;
|
|
@@ -2406,7 +2407,7 @@ function toMessageKeys($this, $receiver, channelPointer) {
|
|
|
2406
2407
|
} else {
|
|
2407
2408
|
// Inline function 'kotlin.takeIf' call
|
|
2408
2409
|
var tmp_1;
|
|
2409
|
-
if (tmp0_safe_receiver_0.
|
|
2410
|
+
if (tmp0_safe_receiver_0.c1() === 1) {
|
|
2410
2411
|
tmp_1 = tmp0_safe_receiver_0;
|
|
2411
2412
|
} else {
|
|
2412
2413
|
tmp_1 = null;
|
|
@@ -2414,7 +2415,7 @@ function toMessageKeys($this, $receiver, channelPointer) {
|
|
|
2414
2415
|
tmp_0 = tmp_1;
|
|
2415
2416
|
}
|
|
2416
2417
|
var tmp1_safe_receiver = tmp_0;
|
|
2417
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : Companion_getInstance_0().
|
|
2418
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : Companion_getInstance_0().s4s(tmp1_safe_receiver);
|
|
2418
2419
|
var tmp_2;
|
|
2419
2420
|
if (tmp2_safe_receiver == null) {
|
|
2420
2421
|
tmp_2 = null;
|
|
@@ -2441,7 +2442,7 @@ function toMessageKeys($this, $receiver, channelPointer) {
|
|
|
2441
2442
|
}
|
|
2442
2443
|
// Inline function 'kotlin.takeIf' call
|
|
2443
2444
|
var tmp_4;
|
|
2444
|
-
if (destination.
|
|
2445
|
+
if (destination.c1() === tmp0_safe_receiver.c1()) {
|
|
2445
2446
|
tmp_4 = destination;
|
|
2446
2447
|
} else {
|
|
2447
2448
|
tmp_4 = null;
|
|
@@ -2458,7 +2459,7 @@ function toMessageKeys($this, $receiver, channelPointer) {
|
|
|
2458
2459
|
var _iterator__ex2g4s_0 = tmp0_safe_receiver_3.t();
|
|
2459
2460
|
while (_iterator__ex2g4s_0.u()) {
|
|
2460
2461
|
var item = _iterator__ex2g4s_0.v();
|
|
2461
|
-
var tmp$ret$21 = AsyncAPIAnnotations_getInstance().
|
|
2462
|
+
var tmp$ret$21 = AsyncAPIAnnotations_getInstance().q4q(item);
|
|
2462
2463
|
destination_0.x(tmp$ret$21);
|
|
2463
2464
|
}
|
|
2464
2465
|
tmp_5 = new Array_0(destination_0);
|
|
@@ -2468,12 +2469,12 @@ function toMessageKeys($this, $receiver, channelPointer) {
|
|
|
2468
2469
|
return tmp;
|
|
2469
2470
|
}
|
|
2470
2471
|
function componentMessage($this, key) {
|
|
2471
|
-
var tmp0_elvis_lhs = $this.
|
|
2472
|
+
var tmp0_elvis_lhs = $this.e4s_1.t2(key);
|
|
2472
2473
|
var tmp;
|
|
2473
2474
|
if (tmp0_elvis_lhs == null) {
|
|
2474
|
-
var tmp1_safe_receiver = $this.
|
|
2475
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : Companion_getInstance_0().
|
|
2476
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
2475
|
+
var tmp1_safe_receiver = $this.v4r_1;
|
|
2476
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : Companion_getInstance_0().u4s(tmp1_safe_receiver, 'messages');
|
|
2477
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.ld(key);
|
|
2477
2478
|
var tmp_0;
|
|
2478
2479
|
if (tmp3_safe_receiver == null) {
|
|
2479
2480
|
tmp_0 = null;
|
|
@@ -2488,7 +2489,7 @@ function componentMessage($this, key) {
|
|
|
2488
2489
|
} else {
|
|
2489
2490
|
// Inline function 'kotlin.also' call
|
|
2490
2491
|
// Inline function 'kotlin.collections.set' call
|
|
2491
|
-
$this.
|
|
2492
|
+
$this.e4s_1.w2(key, tmp4_safe_receiver);
|
|
2492
2493
|
tmp_1 = tmp4_safe_receiver;
|
|
2493
2494
|
}
|
|
2494
2495
|
tmp = tmp_1;
|
|
@@ -2508,10 +2509,10 @@ function message($this, key, pointer, element) {
|
|
|
2508
2509
|
tmp = tmp0_elvis_lhs;
|
|
2509
2510
|
}
|
|
2510
2511
|
var message_0 = tmp;
|
|
2511
|
-
var ref = Companion_getInstance_0().
|
|
2512
|
+
var ref = Companion_getInstance_0().s4s(message_0);
|
|
2512
2513
|
var tmp_0;
|
|
2513
2514
|
if (ref == null) {
|
|
2514
|
-
var tmp1_elvis_lhs = Companion_getInstance_0().
|
|
2515
|
+
var tmp1_elvis_lhs = Companion_getInstance_0().e4t(message_0, 'name');
|
|
2515
2516
|
var name = tmp1_elvis_lhs == null ? key : tmp1_elvis_lhs;
|
|
2516
2517
|
// Inline function 'kotlin.collections.map' call
|
|
2517
2518
|
var this_0 = message_0.m1();
|
|
@@ -2530,15 +2531,15 @@ function message($this, key, pointer, element) {
|
|
|
2530
2531
|
var tmp_2 = pointer + '/payload';
|
|
2531
2532
|
// Inline function 'kotlin.let' call
|
|
2532
2533
|
|
|
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().
|
|
2534
|
+
var it = Companion_getInstance_0().i4t(name);
|
|
2535
|
+
var tmp$ret$6 = $this.u4r_1.i1(it) ? it + 'Payload' : it;
|
|
2536
|
+
tmp_1 = schemaPosition($this, tmp_2, value, tmp$ret$6, Companion_getInstance_0().e4t(message_0, 'schemaFormat'));
|
|
2536
2537
|
break;
|
|
2537
2538
|
case 'headers':
|
|
2538
2539
|
tmp_1 = schemaPosition($this, pointer + '/headers', value, name + '_headers', null);
|
|
2539
2540
|
break;
|
|
2540
2541
|
default:
|
|
2541
|
-
tmp_1 = to(AsyncAPIAnnotations_getInstance().
|
|
2542
|
+
tmp_1 = to(AsyncAPIAnnotations_getInstance().s4q(value), null);
|
|
2542
2543
|
break;
|
|
2543
2544
|
}
|
|
2544
2545
|
var tmp$ret$3 = to(field, tmp_1);
|
|
@@ -2552,19 +2553,19 @@ function message($this, key, pointer, element) {
|
|
|
2552
2553
|
var _iterator__ex2g4s_0 = positions.t();
|
|
2553
2554
|
while (_iterator__ex2g4s_0.u()) {
|
|
2554
2555
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
2555
|
-
var field_0 = item_0.
|
|
2556
|
-
var position = item_0.
|
|
2557
|
-
var tmp$ret$10 = AsyncAPIAnnotations_getInstance().
|
|
2556
|
+
var field_0 = item_0.af();
|
|
2557
|
+
var position = item_0.bf();
|
|
2558
|
+
var tmp$ret$10 = AsyncAPIAnnotations_getInstance().p4q(field_0, position.gf_1);
|
|
2558
2559
|
destination_0.x(tmp$ret$10);
|
|
2559
2560
|
}
|
|
2560
|
-
var tmp_4 = tmp_3.
|
|
2561
|
+
var tmp_4 = tmp_3.m4q('AsyncAPIMessage', key, destination_0);
|
|
2561
2562
|
var tmp$ret$11;
|
|
2562
2563
|
$l$block: {
|
|
2563
2564
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
2564
2565
|
var _iterator__ex2g4s_1 = positions.t();
|
|
2565
2566
|
while (_iterator__ex2g4s_1.u()) {
|
|
2566
2567
|
var element_0 = _iterator__ex2g4s_1.v();
|
|
2567
|
-
var field_1 = element_0.
|
|
2568
|
+
var field_1 = element_0.af();
|
|
2568
2569
|
if (field_1 === 'payload') {
|
|
2569
2570
|
tmp$ret$11 = element_0;
|
|
2570
2571
|
break $l$block;
|
|
@@ -2573,9 +2574,9 @@ function message($this, key, pointer, element) {
|
|
|
2573
2574
|
tmp$ret$11 = null;
|
|
2574
2575
|
}
|
|
2575
2576
|
var tmp2_safe_receiver = tmp$ret$11;
|
|
2576
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
2577
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
2578
|
-
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
2577
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.hf_1;
|
|
2578
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.hf_1;
|
|
2579
|
+
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.f4t_1;
|
|
2579
2580
|
var tmp_5 = tmp5_elvis_lhs == null ? new Any(false) : tmp5_elvis_lhs;
|
|
2580
2581
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2581
2582
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2583,10 +2584,10 @@ function message($this, key, pointer, element) {
|
|
|
2583
2584
|
var _iterator__ex2g4s_2 = positions.t();
|
|
2584
2585
|
while (_iterator__ex2g4s_2.u()) {
|
|
2585
2586
|
var element_1 = _iterator__ex2g4s_2.v();
|
|
2586
|
-
var position_0 = element_1.
|
|
2587
|
-
var tmp0_safe_receiver = position_0.
|
|
2587
|
+
var position_0 = element_1.bf();
|
|
2588
|
+
var tmp0_safe_receiver = position_0.hf_1;
|
|
2588
2589
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2589
|
-
var tmp0_elvis_lhs_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2590
|
+
var tmp0_elvis_lhs_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g4t_1;
|
|
2590
2591
|
var list = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
2591
2592
|
addAll(destination_1, list);
|
|
2592
2593
|
}
|
|
@@ -2594,18 +2595,18 @@ function message($this, key, pointer, element) {
|
|
|
2594
2595
|
} else {
|
|
2595
2596
|
// Inline function 'kotlin.let' call
|
|
2596
2597
|
var payload = referencedPayload($this, ref);
|
|
2597
|
-
tmp_0 = new ConvertedMessage(AsyncAPIAnnotations_getInstance().
|
|
2598
|
+
tmp_0 = new ConvertedMessage(AsyncAPIAnnotations_getInstance().m4q('AsyncAPIMessage', key, AsyncAPIAnnotations_getInstance().r4q(message_0)), payload.f4t_1, payload.g4t_1);
|
|
2598
2599
|
}
|
|
2599
2600
|
return tmp_0;
|
|
2600
2601
|
}
|
|
2601
2602
|
function referencedPayload($this, ref) {
|
|
2602
2603
|
var tmp;
|
|
2603
|
-
if ($this.
|
|
2604
|
+
if ($this.f4s_1.i1(ref)) {
|
|
2604
2605
|
tmp = null;
|
|
2605
2606
|
} else {
|
|
2606
2607
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2607
|
-
$this.
|
|
2608
|
-
var key = Companion_getInstance_0().
|
|
2608
|
+
$this.f4s_1.x(ref);
|
|
2609
|
+
var key = Companion_getInstance_0().d4t(ref, 'messages');
|
|
2609
2610
|
var tmp_0;
|
|
2610
2611
|
if (key == null) {
|
|
2611
2612
|
var tmp_1 = lookup($this, ref);
|
|
@@ -2623,7 +2624,7 @@ function referencedPayload($this, ref) {
|
|
|
2623
2624
|
tmp_3 = null;
|
|
2624
2625
|
} else {
|
|
2625
2626
|
// Inline function 'kotlin.let' call
|
|
2626
|
-
tmp_3 = new Converted(tmp2_safe_receiver.
|
|
2627
|
+
tmp_3 = new Converted(tmp2_safe_receiver.p4s_1, tmp2_safe_receiver.q4s_1);
|
|
2627
2628
|
}
|
|
2628
2629
|
tmp_0 = tmp_3;
|
|
2629
2630
|
} else {
|
|
@@ -2633,14 +2634,14 @@ function referencedPayload($this, ref) {
|
|
|
2633
2634
|
tmp_4 = null;
|
|
2634
2635
|
} else {
|
|
2635
2636
|
// Inline function 'kotlin.let' call
|
|
2636
|
-
tmp_4 = new Converted(tmp3_safe_receiver.
|
|
2637
|
+
tmp_4 = new Converted(tmp3_safe_receiver.p4s_1);
|
|
2637
2638
|
}
|
|
2638
2639
|
tmp_0 = tmp_4;
|
|
2639
2640
|
}
|
|
2640
2641
|
// Inline function 'kotlin.also' call
|
|
2641
2642
|
var this_0 = tmp_0;
|
|
2642
2643
|
// Inline function 'kotlin.collections.minusAssign' call
|
|
2643
|
-
$this.
|
|
2644
|
+
$this.f4s_1.z2(ref);
|
|
2644
2645
|
tmp = this_0;
|
|
2645
2646
|
}
|
|
2646
2647
|
var tmp4_elvis_lhs = tmp;
|
|
@@ -2658,10 +2659,10 @@ function schemaPosition($this, pointer, schema, name, format) {
|
|
|
2658
2659
|
// Inline function 'kotlin.collections.contains' call
|
|
2659
2660
|
// Inline function 'kotlin.collections.containsKey' call
|
|
2660
2661
|
var key = 'schemaFormat';
|
|
2661
|
-
if ((isInterface(tmp0_safe_receiver, KtMap) ? tmp0_safe_receiver : THROW_CCE()).
|
|
2662
|
+
if ((isInterface(tmp0_safe_receiver, KtMap) ? tmp0_safe_receiver : THROW_CCE()).r2(key)) {
|
|
2662
2663
|
// Inline function 'kotlin.collections.contains' call
|
|
2663
2664
|
// Inline function 'kotlin.collections.containsKey' call
|
|
2664
|
-
tmp_1 = (isInterface(tmp0_safe_receiver, KtMap) ? tmp0_safe_receiver : THROW_CCE()).
|
|
2665
|
+
tmp_1 = (isInterface(tmp0_safe_receiver, KtMap) ? tmp0_safe_receiver : THROW_CCE()).r2('schema');
|
|
2665
2666
|
} else {
|
|
2666
2667
|
tmp_1 = false;
|
|
2667
2668
|
}
|
|
@@ -2673,35 +2674,35 @@ function schemaPosition($this, pointer, schema, name, format) {
|
|
|
2673
2674
|
tmp = tmp_0;
|
|
2674
2675
|
}
|
|
2675
2676
|
var multiFormat = tmp;
|
|
2676
|
-
var tmp2_elvis_lhs = multiFormat == null ? null : Companion_getInstance_0().
|
|
2677
|
+
var tmp2_elvis_lhs = multiFormat == null ? null : Companion_getInstance_0().e4t(multiFormat, 'schemaFormat');
|
|
2677
2678
|
var schemaFormat = tmp2_elvis_lhs == null ? format : tmp2_elvis_lhs;
|
|
2678
2679
|
var tmp_2;
|
|
2679
|
-
if ((schemaFormat == null ? null : Companion_getInstance_0().
|
|
2680
|
-
tmp_2 = to(AsyncAPIAnnotations_getInstance().
|
|
2680
|
+
if ((schemaFormat == null ? null : Companion_getInstance_0().j4t(schemaFormat)) === false) {
|
|
2681
|
+
tmp_2 = to(AsyncAPIAnnotations_getInstance().s4q(schema), null);
|
|
2681
2682
|
} else {
|
|
2682
2683
|
if (!(multiFormat == null)) {
|
|
2683
|
-
tmp_2 = to(AsyncAPIAnnotations_getInstance().
|
|
2684
|
+
tmp_2 = to(AsyncAPIAnnotations_getInstance().s4q(schema), convertAt($this, pointer + '/schema', getValue(multiFormat, 'schema'), name));
|
|
2684
2685
|
} else {
|
|
2685
2686
|
// Inline function 'kotlin.let' call
|
|
2686
2687
|
var converted = convertAt($this, pointer, schema, name);
|
|
2687
2688
|
// Inline function 'kotlin.with' call
|
|
2688
|
-
var tmp0_subject = $this.
|
|
2689
|
-
tmp_2 = to(equals(tmp0_subject, schema) ? AsyncAPIAnnotations_getInstance().
|
|
2689
|
+
var tmp0_subject = $this.d4s_1.q4r(converted.f4t_1);
|
|
2690
|
+
tmp_2 = to(equals(tmp0_subject, schema) ? AsyncAPIAnnotations_getInstance().q4q(toWirespec(converted.f4t_1)) : AsyncAPIAnnotations_getInstance().s4q(schema), converted);
|
|
2690
2691
|
}
|
|
2691
2692
|
}
|
|
2692
2693
|
return tmp_2;
|
|
2693
2694
|
}
|
|
2694
2695
|
function component($this, key) {
|
|
2695
2696
|
var tmp = '#/components/schemas/' + escapePointer(key);
|
|
2696
|
-
var tmp_0 = getValue($this.
|
|
2697
|
-
var tmp0_elvis_lhs = $this.
|
|
2697
|
+
var tmp_0 = getValue($this.w4r_1, key);
|
|
2698
|
+
var tmp0_elvis_lhs = $this.x4r_1.t2(key);
|
|
2698
2699
|
var tmp_1 = tmp0_elvis_lhs == null ? key : tmp0_elvis_lhs;
|
|
2699
2700
|
// Inline function 'kotlin.takeIf' call
|
|
2700
2701
|
var tmp_2;
|
|
2701
2702
|
// Inline function 'kotlin.collections.contains' call
|
|
2702
2703
|
// Inline function 'kotlin.collections.containsKey' call
|
|
2703
|
-
var this_0 = $this.
|
|
2704
|
-
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).
|
|
2704
|
+
var this_0 = $this.x4r_1;
|
|
2705
|
+
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).r2(key)) {
|
|
2705
2706
|
tmp_2 = key;
|
|
2706
2707
|
} else {
|
|
2707
2708
|
tmp_2 = null;
|
|
@@ -2711,22 +2712,22 @@ function component($this, key) {
|
|
|
2711
2712
|
}
|
|
2712
2713
|
function convertAt($this, pointer, schema, name, component) {
|
|
2713
2714
|
component = component === VOID ? null : component;
|
|
2714
|
-
var reference = $this.
|
|
2715
|
+
var reference = $this.a4s_1.t2(pointer);
|
|
2715
2716
|
var tmp;
|
|
2716
2717
|
if (reference == null) {
|
|
2717
2718
|
var tmp_0;
|
|
2718
|
-
if ($this.
|
|
2719
|
+
if ($this.b4s_1.i1(pointer)) {
|
|
2719
2720
|
tmp_0 = new Converted(new Any(false));
|
|
2720
2721
|
} else {
|
|
2721
2722
|
// Inline function 'kotlin.let' call
|
|
2722
|
-
$this.
|
|
2723
|
+
$this.b4s_1.x(pointer);
|
|
2723
2724
|
// Inline function 'kotlin.also' call
|
|
2724
2725
|
var this_0 = convertSchema($this, pointer, schema, name, component);
|
|
2725
|
-
$this.
|
|
2726
|
-
var tmp0 = $this.
|
|
2726
|
+
$this.b4s_1.z2(pointer);
|
|
2727
|
+
var tmp0 = $this.a4s_1;
|
|
2727
2728
|
// Inline function 'kotlin.collections.set' call
|
|
2728
|
-
var value = this_0.
|
|
2729
|
-
tmp0.
|
|
2729
|
+
var value = this_0.f4t_1;
|
|
2730
|
+
tmp0.w2(pointer, value);
|
|
2730
2731
|
tmp_0 = this_0;
|
|
2731
2732
|
}
|
|
2732
2733
|
tmp = tmp_0;
|
|
@@ -2738,7 +2739,7 @@ function convertAt($this, pointer, schema, name, component) {
|
|
|
2738
2739
|
function convertSchema($this, pointer, schema, name, component) {
|
|
2739
2740
|
var tmp;
|
|
2740
2741
|
if (schema instanceof JsonObject) {
|
|
2741
|
-
var tmp1_safe_receiver = Companion_getInstance_0().
|
|
2742
|
+
var tmp1_safe_receiver = Companion_getInstance_0().s4s(schema);
|
|
2742
2743
|
var tmp_0;
|
|
2743
2744
|
if (tmp1_safe_receiver == null) {
|
|
2744
2745
|
tmp_0 = null;
|
|
@@ -2747,14 +2748,14 @@ function convertSchema($this, pointer, schema, name, component) {
|
|
|
2747
2748
|
tmp_0 = reference($this, tmp1_safe_receiver);
|
|
2748
2749
|
}
|
|
2749
2750
|
var tmp2_elvis_lhs = tmp_0;
|
|
2750
|
-
tmp = tmp2_elvis_lhs == null ? convertObject($this, schema, pointer, name, Companion_getInstance_0().
|
|
2751
|
+
tmp = tmp2_elvis_lhs == null ? convertObject($this, schema, pointer, name, Companion_getInstance_0().k4t(schema), component) : tmp2_elvis_lhs;
|
|
2751
2752
|
} else {
|
|
2752
2753
|
tmp = new Converted(new Any(false));
|
|
2753
2754
|
}
|
|
2754
2755
|
return tmp;
|
|
2755
2756
|
}
|
|
2756
2757
|
function reference($this, ref) {
|
|
2757
|
-
var tmp0_safe_receiver = Companion_getInstance_0().
|
|
2758
|
+
var tmp0_safe_receiver = Companion_getInstance_0().d4t(ref, 'schemas');
|
|
2758
2759
|
var tmp;
|
|
2759
2760
|
if (tmp0_safe_receiver == null) {
|
|
2760
2761
|
tmp = null;
|
|
@@ -2763,14 +2764,14 @@ function reference($this, ref) {
|
|
|
2763
2764
|
var tmp_0;
|
|
2764
2765
|
// Inline function 'kotlin.collections.contains' call
|
|
2765
2766
|
// Inline function 'kotlin.collections.containsKey' call
|
|
2766
|
-
var this_0 = $this.
|
|
2767
|
-
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).
|
|
2768
|
-
tmp_0 = new Converted(new Custom(getValue($this.
|
|
2767
|
+
var this_0 = $this.x4r_1;
|
|
2768
|
+
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).r2(tmp0_safe_receiver)) {
|
|
2769
|
+
tmp_0 = new Converted(new Custom(getValue($this.x4r_1, tmp0_safe_receiver), false));
|
|
2769
2770
|
} else {
|
|
2770
2771
|
// Inline function 'kotlin.collections.contains' call
|
|
2771
2772
|
// Inline function 'kotlin.collections.containsKey' call
|
|
2772
|
-
var this_1 = $this.
|
|
2773
|
-
if ((isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).
|
|
2773
|
+
var this_1 = $this.w4r_1;
|
|
2774
|
+
if ((isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).r2(tmp0_safe_receiver)) {
|
|
2774
2775
|
tmp_0 = component($this, tmp0_safe_receiver);
|
|
2775
2776
|
} else {
|
|
2776
2777
|
tmp_0 = null;
|
|
@@ -2782,39 +2783,39 @@ function reference($this, ref) {
|
|
|
2782
2783
|
return tmp1_elvis_lhs == null ? new Converted(new Any(false)) : tmp1_elvis_lhs;
|
|
2783
2784
|
}
|
|
2784
2785
|
function convertObject($this, $receiver, pointer, name, isNullable, component) {
|
|
2785
|
-
var wrapped = Companion_getInstance_0().
|
|
2786
|
-
var branches = Companion_getInstance_0().
|
|
2786
|
+
var wrapped = Companion_getInstance_0().l4t($receiver);
|
|
2787
|
+
var branches = Companion_getInstance_0().m4t($receiver);
|
|
2787
2788
|
var tmp;
|
|
2788
2789
|
if (!(wrapped == null)) {
|
|
2789
2790
|
// Inline function 'kotlin.let' call
|
|
2790
|
-
var path = wrapped.
|
|
2791
|
-
var schema = wrapped.
|
|
2791
|
+
var path = wrapped.af();
|
|
2792
|
+
var schema = wrapped.bf();
|
|
2792
2793
|
// Inline function 'kotlin.let' call
|
|
2793
2794
|
var it = convertAt($this, pointer + '/' + path, schema, name);
|
|
2794
|
-
tmp = it.
|
|
2795
|
+
tmp = it.s4t(Companion_getInstance_0().r4t(it.f4t_1, isNullable));
|
|
2795
2796
|
} else {
|
|
2796
2797
|
if (!(branches == null)) {
|
|
2797
2798
|
tmp = ownsDefinition($this, $receiver, !(component == null)) ? union($this, $receiver, pointer, identifier($this, name, component), branches, isNullable, component) : new Converted(new Any(isNullable));
|
|
2798
2799
|
} else {
|
|
2799
2800
|
// Inline function 'kotlin.collections.contains' call
|
|
2800
2801
|
// Inline function 'kotlin.collections.containsKey' call
|
|
2801
|
-
if ((isInterface($receiver, KtMap) ? $receiver : THROW_CCE()).
|
|
2802
|
+
if ((isInterface($receiver, KtMap) ? $receiver : THROW_CCE()).r2('allOf')) {
|
|
2802
2803
|
tmp = type($this, identifier($this, name, component), allOfParts($this, $receiver, pointer), isNullable, component);
|
|
2803
2804
|
} else {
|
|
2804
|
-
if (Companion_getInstance_0().
|
|
2805
|
+
if (Companion_getInstance_0().q4t($receiver)) {
|
|
2805
2806
|
tmp = enum_0($this, $receiver, identifier($this, name, component), isNullable, component);
|
|
2806
2807
|
} else {
|
|
2807
|
-
var type_0 = Companion_getInstance_0().
|
|
2808
|
+
var type_0 = Companion_getInstance_0().n4t($receiver);
|
|
2808
2809
|
var tmp_0;
|
|
2809
2810
|
if (type_0 === 'object' || type_0 == null) {
|
|
2810
2811
|
var tmp_1;
|
|
2811
2812
|
// Inline function 'kotlin.collections.contains' call
|
|
2812
2813
|
// Inline function 'kotlin.collections.containsKey' call
|
|
2813
2814
|
var key = 'properties';
|
|
2814
|
-
if ((isInterface($receiver, KtMap) ? $receiver : THROW_CCE()).
|
|
2815
|
+
if ((isInterface($receiver, KtMap) ? $receiver : THROW_CCE()).r2(key)) {
|
|
2815
2816
|
tmp_1 = type($this, identifier($this, name, component), listOf(new Located(pointer, $receiver)), isNullable, component);
|
|
2816
2817
|
} else {
|
|
2817
|
-
var tmp0_safe_receiver = Companion_getInstance_0().
|
|
2818
|
+
var tmp0_safe_receiver = Companion_getInstance_0().p4t($receiver);
|
|
2818
2819
|
var tmp_2;
|
|
2819
2820
|
if (tmp0_safe_receiver == null) {
|
|
2820
2821
|
tmp_2 = null;
|
|
@@ -2828,14 +2829,14 @@ function convertObject($this, $receiver, pointer, name, isNullable, component) {
|
|
|
2828
2829
|
tmp_3 = null;
|
|
2829
2830
|
} else {
|
|
2830
2831
|
// Inline function 'kotlin.let' call
|
|
2831
|
-
tmp_3 = new Converted(new Dict_0(tmp1_safe_receiver.
|
|
2832
|
+
tmp_3 = new Converted(new Dict_0(tmp1_safe_receiver.f4t_1, isNullable), tmp1_safe_receiver.g4t_1);
|
|
2832
2833
|
}
|
|
2833
2834
|
var tmp2_elvis_lhs = tmp_3;
|
|
2834
2835
|
tmp_1 = tmp2_elvis_lhs == null ? type_0 === 'object' && !(component == null) ? type($this, name, listOf(new Located(pointer, $receiver)), isNullable, component) : type_0 === 'object' ? new Converted(new Dict_0(new Any(false), isNullable)) : new Converted(new Any(isNullable)) : tmp2_elvis_lhs;
|
|
2835
2836
|
}
|
|
2836
2837
|
tmp_0 = tmp_1;
|
|
2837
2838
|
} else if (type_0 === 'array') {
|
|
2838
|
-
var tmp_4 = $receiver.
|
|
2839
|
+
var tmp_4 = $receiver.ld('items');
|
|
2839
2840
|
var tmp3_safe_receiver = tmp_4 instanceof JsonObject ? tmp_4 : null;
|
|
2840
2841
|
var tmp_5;
|
|
2841
2842
|
if (tmp3_safe_receiver == null) {
|
|
@@ -2846,14 +2847,14 @@ function convertObject($this, $receiver, pointer, name, isNullable, component) {
|
|
|
2846
2847
|
}
|
|
2847
2848
|
// Inline function 'kotlin.let' call
|
|
2848
2849
|
var items = tmp_5;
|
|
2849
|
-
var tmp1_elvis_lhs = items == null ? null : items.
|
|
2850
|
+
var tmp1_elvis_lhs = items == null ? null : items.f4t_1;
|
|
2850
2851
|
var tmp_6 = new Iterable(tmp1_elvis_lhs == null ? new Any(false) : tmp1_elvis_lhs, isNullable);
|
|
2851
2852
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2852
|
-
var tmp0_elvis_lhs = items == null ? null : items.
|
|
2853
|
+
var tmp0_elvis_lhs = items == null ? null : items.g4t_1;
|
|
2853
2854
|
var tmp$ret$16 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2854
2855
|
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().
|
|
2856
|
+
} else if (Companion_getInstance_0().j4s_1.i1(type_0)) {
|
|
2857
|
+
tmp_0 = component == null ? new Converted(new Primitive(Companion_getInstance_0().o4t($receiver, type_0, false), isNullable)) : new Converted(new Custom(name, isNullable), listOf(define_0($this, new Refined(null, AsyncAPIAnnotations_getInstance().o4q(Companion_getInstance_0().v4s($receiver)), new DefinitionIdentifier(name), new Primitive(Companion_getInstance_0().o4t($receiver, type_0, true), false)), $receiver, component)));
|
|
2857
2858
|
} else {
|
|
2858
2859
|
tmp_0 = new Converted(new Any(isNullable));
|
|
2859
2860
|
}
|
|
@@ -2865,40 +2866,40 @@ function convertObject($this, $receiver, pointer, name, isNullable, component) {
|
|
|
2865
2866
|
return tmp;
|
|
2866
2867
|
}
|
|
2867
2868
|
function ownsDefinition($this, $receiver, component) {
|
|
2868
|
-
var branches = Companion_getInstance_0().
|
|
2869
|
+
var branches = Companion_getInstance_0().m4t($receiver);
|
|
2869
2870
|
var tmp;
|
|
2870
2871
|
if (branches == null) {
|
|
2871
2872
|
var tmp_0;
|
|
2872
|
-
if (!(Companion_getInstance_0().
|
|
2873
|
+
if (!(Companion_getInstance_0().l4t($receiver) == null)) {
|
|
2873
2874
|
tmp_0 = false;
|
|
2874
2875
|
} else {
|
|
2875
2876
|
// Inline function 'kotlin.collections.contains' call
|
|
2876
2877
|
// Inline function 'kotlin.collections.containsKey' call
|
|
2877
|
-
if ((isInterface($receiver, KtMap) ? $receiver : THROW_CCE()).
|
|
2878
|
+
if ((isInterface($receiver, KtMap) ? $receiver : THROW_CCE()).r2('allOf')) {
|
|
2878
2879
|
tmp_0 = true;
|
|
2879
2880
|
} else {
|
|
2880
|
-
if (Companion_getInstance_0().
|
|
2881
|
+
if (Companion_getInstance_0().q4t($receiver)) {
|
|
2881
2882
|
tmp_0 = true;
|
|
2882
2883
|
} else {
|
|
2883
|
-
var tmp0_subject = Companion_getInstance_0().
|
|
2884
|
+
var tmp0_subject = Companion_getInstance_0().n4t($receiver);
|
|
2884
2885
|
var tmp_1;
|
|
2885
2886
|
if (tmp0_subject === 'object') {
|
|
2886
2887
|
var tmp_2;
|
|
2887
2888
|
// Inline function 'kotlin.collections.contains' call
|
|
2888
2889
|
// Inline function 'kotlin.collections.containsKey' call
|
|
2889
2890
|
var key = 'properties';
|
|
2890
|
-
if ((isInterface($receiver, KtMap) ? $receiver : THROW_CCE()).
|
|
2891
|
+
if ((isInterface($receiver, KtMap) ? $receiver : THROW_CCE()).r2(key)) {
|
|
2891
2892
|
tmp_2 = true;
|
|
2892
2893
|
} else {
|
|
2893
|
-
tmp_2 = (component && Companion_getInstance_0().
|
|
2894
|
+
tmp_2 = (component && Companion_getInstance_0().p4t($receiver) == null);
|
|
2894
2895
|
}
|
|
2895
2896
|
tmp_1 = tmp_2;
|
|
2896
2897
|
} else if (tmp0_subject == null) {
|
|
2897
2898
|
// Inline function 'kotlin.collections.contains' call
|
|
2898
2899
|
// Inline function 'kotlin.collections.containsKey' call
|
|
2899
2900
|
var key_0 = 'properties';
|
|
2900
|
-
tmp_1 = (isInterface($receiver, KtMap) ? $receiver : THROW_CCE()).
|
|
2901
|
-
} else if (Companion_getInstance_0().
|
|
2901
|
+
tmp_1 = (isInterface($receiver, KtMap) ? $receiver : THROW_CCE()).r2(key_0);
|
|
2902
|
+
} else if (Companion_getInstance_0().j4s_1.i1(tmp0_subject)) {
|
|
2902
2903
|
tmp_1 = component;
|
|
2903
2904
|
} else {
|
|
2904
2905
|
tmp_1 = false;
|
|
@@ -2910,7 +2911,7 @@ function ownsDefinition($this, $receiver, component) {
|
|
|
2910
2911
|
tmp = tmp_0;
|
|
2911
2912
|
} else {
|
|
2912
2913
|
var tmp_3;
|
|
2913
|
-
if (Companion_getInstance_0().
|
|
2914
|
+
if (Companion_getInstance_0().l4t($receiver) == null && branches.c1() > 1) {
|
|
2914
2915
|
var tmp$ret$6;
|
|
2915
2916
|
$l$block_0: {
|
|
2916
2917
|
// Inline function 'kotlin.collections.all' call
|
|
@@ -2927,7 +2928,7 @@ function ownsDefinition($this, $receiver, component) {
|
|
|
2927
2928
|
var _iterator__ex2g4s = branches.t();
|
|
2928
2929
|
while (_iterator__ex2g4s.u()) {
|
|
2929
2930
|
var element = _iterator__ex2g4s.v();
|
|
2930
|
-
if (!isNamed($this, element.
|
|
2931
|
+
if (!isNamed($this, element.ze_1)) {
|
|
2931
2932
|
tmp$ret$6 = false;
|
|
2932
2933
|
break $l$block_0;
|
|
2933
2934
|
}
|
|
@@ -2950,26 +2951,26 @@ function isNamed($this, $receiver, component) {
|
|
|
2950
2951
|
tmp = null;
|
|
2951
2952
|
} else {
|
|
2952
2953
|
// Inline function 'kotlin.let' call
|
|
2953
|
-
var ref = Companion_getInstance_0().
|
|
2954
|
+
var ref = Companion_getInstance_0().s4s(tmp0_safe_receiver);
|
|
2954
2955
|
var tmp_0;
|
|
2955
2956
|
if (ref == null) {
|
|
2956
2957
|
var tmp_1;
|
|
2957
2958
|
if (ownsDefinition($this, tmp0_safe_receiver, component)) {
|
|
2958
2959
|
tmp_1 = true;
|
|
2959
2960
|
} else {
|
|
2960
|
-
var tmp0_safe_receiver_0 = Companion_getInstance_0().
|
|
2961
|
-
var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.
|
|
2961
|
+
var tmp0_safe_receiver_0 = Companion_getInstance_0().l4t(tmp0_safe_receiver);
|
|
2962
|
+
var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.hf_1;
|
|
2962
2963
|
tmp_1 = (tmp1_safe_receiver == null ? null : isNamed($this, tmp1_safe_receiver, component)) === true;
|
|
2963
2964
|
}
|
|
2964
2965
|
tmp_0 = tmp_1;
|
|
2965
2966
|
} else {
|
|
2966
|
-
var tmp2_safe_receiver = Companion_getInstance_0().
|
|
2967
|
+
var tmp2_safe_receiver = Companion_getInstance_0().d4t(ref, 'schemas');
|
|
2967
2968
|
var tmp_2;
|
|
2968
2969
|
if (tmp2_safe_receiver == null) {
|
|
2969
2970
|
tmp_2 = null;
|
|
2970
2971
|
} else {
|
|
2971
2972
|
// Inline function 'kotlin.let' call
|
|
2972
|
-
var tmp0_safe_receiver_1 = $this.
|
|
2973
|
+
var tmp0_safe_receiver_1 = $this.w4r_1.t2(tmp2_safe_receiver);
|
|
2973
2974
|
tmp_2 = tmp0_safe_receiver_1 == null ? null : isNamed($this, tmp0_safe_receiver_1, true);
|
|
2974
2975
|
}
|
|
2975
2976
|
tmp_0 = tmp_2 === true;
|
|
@@ -2986,17 +2987,17 @@ function union($this, $receiver, pointer, identifier, branches, isNullable, comp
|
|
|
2986
2987
|
var _iterator__ex2g4s = branches.t();
|
|
2987
2988
|
while (_iterator__ex2g4s.u()) {
|
|
2988
2989
|
var item = _iterator__ex2g4s.v();
|
|
2989
|
-
var index = item.
|
|
2990
|
-
var branch = item.
|
|
2991
|
-
var tmp = pointer + '/' + Companion_getInstance_0().
|
|
2990
|
+
var index = item.af();
|
|
2991
|
+
var branch = item.bf();
|
|
2992
|
+
var tmp = pointer + '/' + Companion_getInstance_0().t4t($receiver) + '/' + index;
|
|
2992
2993
|
var tmp0_safe_receiver = branch instanceof JsonObject ? branch : null;
|
|
2993
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : Companion_getInstance_0().
|
|
2994
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : Companion_getInstance_0().e4t(tmp0_safe_receiver, 'title');
|
|
2994
2995
|
var tmp$ret$2 = convertAt($this, tmp, branch, tmp1_elvis_lhs == null ? identifier + index : tmp1_elvis_lhs);
|
|
2995
2996
|
destination.x(tmp$ret$2);
|
|
2996
2997
|
}
|
|
2997
2998
|
// Inline function 'kotlin.let' call
|
|
2998
2999
|
var tmp_0 = new Custom(identifier, isNullable);
|
|
2999
|
-
var tmp_1 = AsyncAPIAnnotations_getInstance().
|
|
3000
|
+
var tmp_1 = AsyncAPIAnnotations_getInstance().o4q(Companion_getInstance_0().v4s($receiver));
|
|
3000
3001
|
var tmp_2 = new DefinitionIdentifier(identifier);
|
|
3001
3002
|
// Inline function 'kotlin.collections.map' call
|
|
3002
3003
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3004,7 +3005,7 @@ function union($this, $receiver, pointer, identifier, branches, isNullable, comp
|
|
|
3004
3005
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3005
3006
|
while (_iterator__ex2g4s_0.u()) {
|
|
3006
3007
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
3007
|
-
var tmp$ret$7 = item_0.
|
|
3008
|
+
var tmp$ret$7 = item_0.f4t_1.x1a(false);
|
|
3008
3009
|
destination_0.x(tmp$ret$7);
|
|
3009
3010
|
}
|
|
3010
3011
|
var tmp_3 = listOf(define_0($this, new Union(null, tmp_1, tmp_2, toSet(destination_0)), $receiver, component));
|
|
@@ -3014,13 +3015,13 @@ function union($this, $receiver, pointer, identifier, branches, isNullable, comp
|
|
|
3014
3015
|
var _iterator__ex2g4s_1 = destination.t();
|
|
3015
3016
|
while (_iterator__ex2g4s_1.u()) {
|
|
3016
3017
|
var element = _iterator__ex2g4s_1.v();
|
|
3017
|
-
var list = element.
|
|
3018
|
+
var list = element.g4t_1;
|
|
3018
3019
|
addAll(destination_1, list);
|
|
3019
3020
|
}
|
|
3020
3021
|
return new Converted(tmp_0, plus(tmp_3, destination_1));
|
|
3021
3022
|
}
|
|
3022
3023
|
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().
|
|
3024
|
+
return new Converted(new Custom(identifier, isNullable), listOf(define_0($this, new Enum_0(null, AsyncAPIAnnotations_getInstance().o4q(Companion_getInstance_0().v4s($receiver)), new DefinitionIdentifier(identifier), toSet(Companion_getInstance_0().u4t($receiver))), $receiver, component)));
|
|
3024
3025
|
}
|
|
3025
3026
|
function type($this, identifier, parts, isNullable, component) {
|
|
3026
3027
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -3029,7 +3030,7 @@ function type($this, identifier, parts, isNullable, component) {
|
|
|
3029
3030
|
var _iterator__ex2g4s = parts.t();
|
|
3030
3031
|
while (_iterator__ex2g4s.u()) {
|
|
3031
3032
|
var element = _iterator__ex2g4s.v();
|
|
3032
|
-
var list = Companion_getInstance_0().
|
|
3033
|
+
var list = Companion_getInstance_0().x4t(element.w4t_1);
|
|
3033
3034
|
addAll(destination, list);
|
|
3034
3035
|
}
|
|
3035
3036
|
var required = toSet(destination);
|
|
@@ -3040,9 +3041,9 @@ function type($this, identifier, parts, isNullable, component) {
|
|
|
3040
3041
|
while (_iterator__ex2g4s_0.u()) {
|
|
3041
3042
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3042
3043
|
// Inline function 'kotlin.collections.map' call
|
|
3043
|
-
var this_0 = orEmpty(Companion_getInstance_0().
|
|
3044
|
+
var this_0 = orEmpty(Companion_getInstance_0().u4s(element_0.w4t_1, 'properties'));
|
|
3044
3045
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3045
|
-
var destination_1 = ArrayList_init_$Create$(this_0.
|
|
3046
|
+
var destination_1 = ArrayList_init_$Create$(this_0.c1());
|
|
3046
3047
|
// Inline function 'kotlin.collections.iterator' call
|
|
3047
3048
|
var _iterator__ex2g4s_1 = this_0.m1().t();
|
|
3048
3049
|
while (_iterator__ex2g4s_1.u()) {
|
|
@@ -3051,7 +3052,7 @@ function type($this, identifier, parts, isNullable, component) {
|
|
|
3051
3052
|
var key = item.n1();
|
|
3052
3053
|
// Inline function 'kotlin.collections.component2' call
|
|
3053
3054
|
var property = item.o1();
|
|
3054
|
-
var tmp$ret$9 = new Triple(element_0.
|
|
3055
|
+
var tmp$ret$9 = new Triple(element_0.v4t_1, key, property);
|
|
3055
3056
|
destination_1.x(tmp$ret$9);
|
|
3056
3057
|
}
|
|
3057
3058
|
var list_0 = destination_1;
|
|
@@ -3063,7 +3064,7 @@ function type($this, identifier, parts, isNullable, component) {
|
|
|
3063
3064
|
var _iterator__ex2g4s_2 = destination_0.t();
|
|
3064
3065
|
while (_iterator__ex2g4s_2.u()) {
|
|
3065
3066
|
var e = _iterator__ex2g4s_2.v();
|
|
3066
|
-
var key_0 = e.
|
|
3067
|
+
var key_0 = e.bf();
|
|
3067
3068
|
var key_1 = key_0;
|
|
3068
3069
|
if (set.x(key_1)) {
|
|
3069
3070
|
list_1.x(e);
|
|
@@ -3076,8 +3077,8 @@ function type($this, identifier, parts, isNullable, component) {
|
|
|
3076
3077
|
while (_iterator__ex2g4s_3.u()) {
|
|
3077
3078
|
var element_1 = _iterator__ex2g4s_3.v();
|
|
3078
3079
|
var names = accumulator;
|
|
3079
|
-
var key_2 = element_1.
|
|
3080
|
-
accumulator = plus_2(names, Companion_getInstance_0().
|
|
3080
|
+
var key_2 = element_1.bf();
|
|
3081
|
+
accumulator = plus_2(names, Companion_getInstance_0().b4t(Companion_getInstance_0().y4t(key_2), toSet(names)));
|
|
3081
3082
|
}
|
|
3082
3083
|
var names_0 = accumulator;
|
|
3083
3084
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3087,17 +3088,17 @@ function type($this, identifier, parts, isNullable, component) {
|
|
|
3087
3088
|
var _iterator__ex2g4s_4 = this_1.t();
|
|
3088
3089
|
while (_iterator__ex2g4s_4.u()) {
|
|
3089
3090
|
var item_0 = _iterator__ex2g4s_4.v();
|
|
3090
|
-
var property_0 = item_0.
|
|
3091
|
-
var fieldName = item_0.
|
|
3092
|
-
var partPointer = property_0.
|
|
3093
|
-
var key_3 = property_0.
|
|
3094
|
-
var schema = property_0.
|
|
3091
|
+
var property_0 = item_0.af();
|
|
3092
|
+
var fieldName = item_0.bf();
|
|
3093
|
+
var partPointer = property_0.af();
|
|
3094
|
+
var key_3 = property_0.bf();
|
|
3095
|
+
var schema = property_0.uk();
|
|
3095
3096
|
var tmp$ret$18 = field($this, partPointer + '/properties/' + escapePointer(key_3), key_3, fieldName, schema, required.i1(key_3), identifier);
|
|
3096
3097
|
destination_2.x(tmp$ret$18);
|
|
3097
3098
|
}
|
|
3098
3099
|
var fields = destination_2;
|
|
3099
3100
|
var tmp = new Custom(identifier, isNullable);
|
|
3100
|
-
var tmp_0 = AsyncAPIAnnotations_getInstance().
|
|
3101
|
+
var tmp_0 = AsyncAPIAnnotations_getInstance().o4q(Companion_getInstance_0().v4s(first(parts).w4t_1));
|
|
3101
3102
|
var tmp_1 = new DefinitionIdentifier(identifier);
|
|
3102
3103
|
// Inline function 'kotlin.collections.map' call
|
|
3103
3104
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3105,17 +3106,17 @@ function type($this, identifier, parts, isNullable, component) {
|
|
|
3105
3106
|
var _iterator__ex2g4s_5 = fields.t();
|
|
3106
3107
|
while (_iterator__ex2g4s_5.u()) {
|
|
3107
3108
|
var item_1 = _iterator__ex2g4s_5.v();
|
|
3108
|
-
var tmp$ret$21 = item_1.
|
|
3109
|
+
var tmp$ret$21 = item_1.gf_1;
|
|
3109
3110
|
destination_3.x(tmp$ret$21);
|
|
3110
3111
|
}
|
|
3111
|
-
var tmp_2 = listOf(define_0($this, new Type(null, tmp_0, tmp_1, new Shape(destination_3), emptyList()), first(parts).
|
|
3112
|
+
var tmp_2 = listOf(define_0($this, new Type(null, tmp_0, tmp_1, new Shape(destination_3), emptyList()), first(parts).w4t_1, component));
|
|
3112
3113
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3113
3114
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3114
3115
|
var destination_4 = ArrayList_init_$Create$_0();
|
|
3115
3116
|
var _iterator__ex2g4s_6 = fields.t();
|
|
3116
3117
|
while (_iterator__ex2g4s_6.u()) {
|
|
3117
3118
|
var element_2 = _iterator__ex2g4s_6.v();
|
|
3118
|
-
var list_2 = element_2.
|
|
3119
|
+
var list_2 = element_2.hf_1;
|
|
3119
3120
|
addAll(destination_4, list_2);
|
|
3120
3121
|
}
|
|
3121
3122
|
return new Converted(tmp, plus(tmp_2, destination_4));
|
|
@@ -3132,13 +3133,13 @@ function field($this, pointer, key, identifier, property, required, typeName) {
|
|
|
3132
3133
|
var tmp1_elvis_lhs = tmp;
|
|
3133
3134
|
var schema = tmp1_elvis_lhs == null ? property : tmp1_elvis_lhs;
|
|
3134
3135
|
var converted = convertAt($this, pointer, schema, typeName + '_' + key);
|
|
3135
|
-
var reference = Companion_getInstance_0().
|
|
3136
|
+
var reference = Companion_getInstance_0().r4t(converted.f4t_1, !required);
|
|
3136
3137
|
var tmp_0 = AsyncAPIAnnotations_getInstance();
|
|
3137
3138
|
var tmp_1 = Companion_getInstance_0();
|
|
3138
|
-
var tmp_2 = plus(tmp_0.
|
|
3139
|
+
var tmp_2 = plus(tmp_0.o4q(tmp_1.v4s(property instanceof JsonObject ? property : null)), nameAnnotation($this, key, identifier));
|
|
3139
3140
|
var tmp_3 = new FieldIdentifier(identifier);
|
|
3140
3141
|
var tmp2_safe_receiver = property instanceof JsonObject ? property : null;
|
|
3141
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
3142
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.ld('default');
|
|
3142
3143
|
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : toDefaultValue(tmp3_safe_receiver, reference);
|
|
3143
3144
|
var tmp_4;
|
|
3144
3145
|
if (tmp4_safe_receiver == null) {
|
|
@@ -3146,7 +3147,7 @@ function field($this, pointer, key, identifier, property, required, typeName) {
|
|
|
3146
3147
|
} else {
|
|
3147
3148
|
// Inline function 'kotlin.takeIf' call
|
|
3148
3149
|
var tmp_5;
|
|
3149
|
-
if (isValidFor($this, tmp4_safe_receiver, reference, converted.
|
|
3150
|
+
if (isValidFor($this, tmp4_safe_receiver, reference, converted.g4t_1)) {
|
|
3150
3151
|
tmp_5 = tmp4_safe_receiver;
|
|
3151
3152
|
} else {
|
|
3152
3153
|
tmp_5 = null;
|
|
@@ -3155,17 +3156,17 @@ function field($this, pointer, key, identifier, property, required, typeName) {
|
|
|
3155
3156
|
}
|
|
3156
3157
|
var field = new Field(tmp_2, tmp_3, reference, tmp_4);
|
|
3157
3158
|
// Inline function 'kotlin.with' call
|
|
3158
|
-
var tmp$ret$4 = $this.
|
|
3159
|
+
var tmp$ret$4 = $this.d4s_1.z4t(field);
|
|
3159
3160
|
var tmp5_safe_receiver = schemaPatch(tmp$ret$4, property);
|
|
3160
3161
|
var tmp_6;
|
|
3161
3162
|
if (tmp5_safe_receiver == null) {
|
|
3162
3163
|
tmp_6 = null;
|
|
3163
3164
|
} else {
|
|
3164
3165
|
// Inline function 'kotlin.let' call
|
|
3165
|
-
tmp_6 = field.
|
|
3166
|
+
tmp_6 = field.sp(plus_2(field.op_1, tmp5_safe_receiver));
|
|
3166
3167
|
}
|
|
3167
3168
|
var tmp6_elvis_lhs = tmp_6;
|
|
3168
|
-
return to(tmp6_elvis_lhs == null ? field : tmp6_elvis_lhs, converted.
|
|
3169
|
+
return to(tmp6_elvis_lhs == null ? field : tmp6_elvis_lhs, converted.g4t_1);
|
|
3169
3170
|
}
|
|
3170
3171
|
function isValidFor($this, $receiver, reference, definitions) {
|
|
3171
3172
|
var tmp;
|
|
@@ -3193,7 +3194,7 @@ function isValidFor($this, $receiver, reference, definitions) {
|
|
|
3193
3194
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3194
3195
|
while (_iterator__ex2g4s_0.u()) {
|
|
3195
3196
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3196
|
-
if (element_0.
|
|
3197
|
+
if (element_0.rs_1.o1() === tmp1_safe_receiver.b1a_1) {
|
|
3197
3198
|
tmp$ret$5 = element_0;
|
|
3198
3199
|
break $l$block;
|
|
3199
3200
|
}
|
|
@@ -3201,16 +3202,16 @@ function isValidFor($this, $receiver, reference, definitions) {
|
|
|
3201
3202
|
tmp$ret$5 = null;
|
|
3202
3203
|
}
|
|
3203
3204
|
var tmp0_safe_receiver = tmp$ret$5;
|
|
3204
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3205
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ss_1;
|
|
3205
3206
|
var tmp_1;
|
|
3206
3207
|
if (tmp1_elvis_lhs == null) {
|
|
3207
|
-
var tmp2_safe_receiver = $this.
|
|
3208
|
+
var tmp2_safe_receiver = $this.y4r_1.t2(tmp1_safe_receiver.b1a_1);
|
|
3208
3209
|
var tmp_2;
|
|
3209
3210
|
if (tmp2_safe_receiver == null) {
|
|
3210
3211
|
tmp_2 = null;
|
|
3211
3212
|
} else {
|
|
3212
3213
|
// Inline function 'kotlin.let' call
|
|
3213
|
-
var tmp_3 = $this.
|
|
3214
|
+
var tmp_3 = $this.w4r_1.t2(tmp2_safe_receiver);
|
|
3214
3215
|
var tmp0_safe_receiver_0 = tmp_3 instanceof JsonObject ? tmp_3 : null;
|
|
3215
3216
|
var tmp_4;
|
|
3216
3217
|
if (tmp0_safe_receiver_0 == null) {
|
|
@@ -3218,7 +3219,7 @@ function isValidFor($this, $receiver, reference, definitions) {
|
|
|
3218
3219
|
} else {
|
|
3219
3220
|
// Inline function 'kotlin.takeIf' call
|
|
3220
3221
|
var tmp_5;
|
|
3221
|
-
if (Companion_getInstance_0().
|
|
3222
|
+
if (Companion_getInstance_0().a4u(tmp0_safe_receiver_0)) {
|
|
3222
3223
|
tmp_5 = tmp0_safe_receiver_0;
|
|
3223
3224
|
} else {
|
|
3224
3225
|
tmp_5 = null;
|
|
@@ -3226,7 +3227,7 @@ function isValidFor($this, $receiver, reference, definitions) {
|
|
|
3226
3227
|
tmp_4 = tmp_5;
|
|
3227
3228
|
}
|
|
3228
3229
|
var tmp1_safe_receiver_0 = tmp_4;
|
|
3229
|
-
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : Companion_getInstance_0().
|
|
3230
|
+
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : Companion_getInstance_0().u4t(tmp1_safe_receiver_0);
|
|
3230
3231
|
tmp_2 = tmp2_safe_receiver_0 == null ? null : toSet(tmp2_safe_receiver_0);
|
|
3231
3232
|
}
|
|
3232
3233
|
tmp_1 = tmp_2;
|
|
@@ -3236,21 +3237,21 @@ function isValidFor($this, $receiver, reference, definitions) {
|
|
|
3236
3237
|
tmp_0 = tmp_1;
|
|
3237
3238
|
}
|
|
3238
3239
|
var tmp2_safe_receiver_1 = tmp_0;
|
|
3239
|
-
tmp = (tmp2_safe_receiver_1 == null ? null : tmp2_safe_receiver_1.i1($receiver.
|
|
3240
|
+
tmp = (tmp2_safe_receiver_1 == null ? null : tmp2_safe_receiver_1.i1($receiver.y1a_1)) === true;
|
|
3240
3241
|
} else {
|
|
3241
3242
|
tmp = true;
|
|
3242
3243
|
}
|
|
3243
3244
|
return tmp;
|
|
3244
3245
|
}
|
|
3245
3246
|
function define_0($this, model, original, component) {
|
|
3246
|
-
var tmp = model.
|
|
3247
|
+
var tmp = model.m1e();
|
|
3247
3248
|
var tmp_0;
|
|
3248
3249
|
if (component == null) {
|
|
3249
3250
|
tmp_0 = null;
|
|
3250
3251
|
} else {
|
|
3251
3252
|
// Inline function 'kotlin.takeIf' call
|
|
3252
3253
|
var tmp_1;
|
|
3253
|
-
if (!(component === model.
|
|
3254
|
+
if (!(component === model.es().o1())) {
|
|
3254
3255
|
tmp_1 = component;
|
|
3255
3256
|
} else {
|
|
3256
3257
|
tmp_1 = null;
|
|
@@ -3263,11 +3264,11 @@ function define_0($this, model, original, component) {
|
|
|
3263
3264
|
tmp_2 = null;
|
|
3264
3265
|
} else {
|
|
3265
3266
|
// Inline function 'kotlin.let' call
|
|
3266
|
-
tmp_2 = AsyncAPIAnnotations_getInstance().
|
|
3267
|
+
tmp_2 = AsyncAPIAnnotations_getInstance().n4q('AsyncAPIName', tmp1_safe_receiver);
|
|
3267
3268
|
}
|
|
3268
3269
|
var tmp_3 = tmp_2;
|
|
3269
3270
|
// Inline function 'kotlin.takeIf' call
|
|
3270
|
-
var this_0 = AsyncAPIAnnotations_getInstance().
|
|
3271
|
+
var this_0 = AsyncAPIAnnotations_getInstance().n4q('AsyncAPIInline');
|
|
3271
3272
|
var tmp_4;
|
|
3272
3273
|
if (component == null) {
|
|
3273
3274
|
tmp_4 = this_0;
|
|
@@ -3277,39 +3278,39 @@ function define_0($this, model, original, component) {
|
|
|
3277
3278
|
var tmp$ret$4 = tmp_4;
|
|
3278
3279
|
var named = withAnnotations($this, model, plus(tmp, listOfNotNull_0([tmp_3, tmp$ret$4])));
|
|
3279
3280
|
// Inline function 'kotlin.with' call
|
|
3280
|
-
var tmp$ret$6 = $this.
|
|
3281
|
+
var tmp$ret$6 = $this.d4s_1.b4u(named);
|
|
3281
3282
|
var tmp2_safe_receiver = schemaPatch(tmp$ret$6, original);
|
|
3282
3283
|
var tmp_5;
|
|
3283
3284
|
if (tmp2_safe_receiver == null) {
|
|
3284
3285
|
tmp_5 = null;
|
|
3285
3286
|
} else {
|
|
3286
3287
|
// Inline function 'kotlin.let' call
|
|
3287
|
-
tmp_5 = withAnnotations($this, named, plus_2(named.
|
|
3288
|
+
tmp_5 = withAnnotations($this, named, plus_2(named.m1e(), tmp2_safe_receiver));
|
|
3288
3289
|
}
|
|
3289
3290
|
var tmp3_elvis_lhs = tmp_5;
|
|
3290
3291
|
// Inline function 'kotlin.also' call
|
|
3291
3292
|
var this_1 = tmp3_elvis_lhs == null ? named : tmp3_elvis_lhs;
|
|
3292
3293
|
if (component == null) {
|
|
3293
|
-
var tmp0 = $this.
|
|
3294
|
+
var tmp0 = $this.c4s_1;
|
|
3294
3295
|
// Inline function 'kotlin.collections.set' call
|
|
3295
|
-
var key = this_1.
|
|
3296
|
-
tmp0.
|
|
3296
|
+
var key = this_1.es().o1();
|
|
3297
|
+
tmp0.w2(key, this_1);
|
|
3297
3298
|
}
|
|
3298
3299
|
return this_1;
|
|
3299
3300
|
}
|
|
3300
3301
|
function withAnnotations($this, $receiver, annotations) {
|
|
3301
3302
|
var tmp;
|
|
3302
3303
|
if ($receiver instanceof Type) {
|
|
3303
|
-
tmp = $receiver.
|
|
3304
|
+
tmp = $receiver.tp(VOID, annotations);
|
|
3304
3305
|
} else {
|
|
3305
3306
|
if ($receiver instanceof Enum_0) {
|
|
3306
|
-
tmp = $receiver.
|
|
3307
|
+
tmp = $receiver.w1e(VOID, annotations);
|
|
3307
3308
|
} else {
|
|
3308
3309
|
if ($receiver instanceof Union) {
|
|
3309
|
-
tmp = $receiver.
|
|
3310
|
+
tmp = $receiver.a1f(VOID, annotations);
|
|
3310
3311
|
} else {
|
|
3311
3312
|
if ($receiver instanceof Refined) {
|
|
3312
|
-
tmp = $receiver.
|
|
3313
|
+
tmp = $receiver.y1e(VOID, annotations);
|
|
3313
3314
|
} else {
|
|
3314
3315
|
noWhenBranchMatchedException();
|
|
3315
3316
|
}
|
|
@@ -3320,7 +3321,7 @@ function withAnnotations($this, $receiver, annotations) {
|
|
|
3320
3321
|
}
|
|
3321
3322
|
function allOfParts($this, $receiver, pointer) {
|
|
3322
3323
|
var tmp = listOf(new Located(pointer, $receiver));
|
|
3323
|
-
var tmp_0 = $receiver.
|
|
3324
|
+
var tmp_0 = $receiver.ld('allOf');
|
|
3324
3325
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3325
3326
|
var tmp0_elvis_lhs = tmp_0 instanceof JsonArray ? tmp_0 : null;
|
|
3326
3327
|
// Inline function 'kotlin.collections.flatMapIndexed' call
|
|
@@ -3340,7 +3341,7 @@ function allOfParts($this, $receiver, pointer) {
|
|
|
3340
3341
|
tmp_1 = null;
|
|
3341
3342
|
} else {
|
|
3342
3343
|
// Inline function 'kotlin.let' call
|
|
3343
|
-
tmp_1 = allOfParts($this, tmp0_safe_receiver.
|
|
3344
|
+
tmp_1 = allOfParts($this, tmp0_safe_receiver.w4t_1, tmp0_safe_receiver.v4t_1);
|
|
3344
3345
|
}
|
|
3345
3346
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3346
3347
|
var tmp0_elvis_lhs_0 = tmp_1;
|
|
@@ -3357,7 +3358,7 @@ function resolveSchema($this, pointer, schema, seen) {
|
|
|
3357
3358
|
tmp = null;
|
|
3358
3359
|
} else {
|
|
3359
3360
|
// Inline function 'kotlin.let' call
|
|
3360
|
-
var ref = Companion_getInstance_0().
|
|
3361
|
+
var ref = Companion_getInstance_0().s4s(tmp0_safe_receiver);
|
|
3361
3362
|
var tmp_0;
|
|
3362
3363
|
if (ref == null) {
|
|
3363
3364
|
tmp_0 = new Located(pointer, tmp0_safe_receiver);
|
|
@@ -3380,7 +3381,7 @@ function resolveSchema($this, pointer, schema, seen) {
|
|
|
3380
3381
|
}
|
|
3381
3382
|
function nameAnnotation($this, key, default_0) {
|
|
3382
3383
|
// Inline function 'kotlin.takeIf' call
|
|
3383
|
-
var this_0 = AsyncAPIAnnotations_getInstance().
|
|
3384
|
+
var this_0 = AsyncAPIAnnotations_getInstance().n4q('AsyncAPIName', key);
|
|
3384
3385
|
var tmp;
|
|
3385
3386
|
if (!(key === default_0)) {
|
|
3386
3387
|
tmp = this_0;
|
|
@@ -3392,9 +3393,9 @@ function nameAnnotation($this, key, default_0) {
|
|
|
3392
3393
|
}
|
|
3393
3394
|
function claimChannel($this, key) {
|
|
3394
3395
|
// Inline function 'kotlin.let' call
|
|
3395
|
-
var it = Companion_getInstance_0().
|
|
3396
|
+
var it = Companion_getInstance_0().i4t(key);
|
|
3396
3397
|
// Inline function 'kotlin.let' call
|
|
3397
|
-
var p0 = $this.
|
|
3398
|
+
var p0 = $this.u4r_1.i1(it) ? it + 'Channel' : it;
|
|
3398
3399
|
return claim($this, p0);
|
|
3399
3400
|
}
|
|
3400
3401
|
function identifier($this, name, component) {
|
|
@@ -3406,13 +3407,13 @@ function identifier($this, name, component) {
|
|
|
3406
3407
|
tmp = name;
|
|
3407
3408
|
}
|
|
3408
3409
|
var tmp1_elvis_lhs = tmp;
|
|
3409
|
-
return tmp1_elvis_lhs == null ? claim($this, Companion_getInstance_0().
|
|
3410
|
+
return tmp1_elvis_lhs == null ? claim($this, Companion_getInstance_0().i4t(name)) : tmp1_elvis_lhs;
|
|
3410
3411
|
}
|
|
3411
3412
|
function claim($this, name) {
|
|
3412
3413
|
// Inline function 'kotlin.also' call
|
|
3413
|
-
var this_0 = Companion_getInstance_0().
|
|
3414
|
+
var this_0 = Companion_getInstance_0().b4t(name, $this.u4r_1);
|
|
3414
3415
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3415
|
-
$this.
|
|
3416
|
+
$this.u4r_1.x(this_0);
|
|
3416
3417
|
return this_0;
|
|
3417
3418
|
}
|
|
3418
3419
|
function lookup($this, ref) {
|
|
@@ -3448,14 +3449,14 @@ function lookup($this, ref) {
|
|
|
3448
3449
|
tmp_1 = null;
|
|
3449
3450
|
} else {
|
|
3450
3451
|
// Inline function 'kotlin.collections.fold' call
|
|
3451
|
-
var accumulator = $this.
|
|
3452
|
+
var accumulator = $this.s4r_1;
|
|
3452
3453
|
var _iterator__ex2g4s_0 = tmp4_safe_receiver.t();
|
|
3453
3454
|
while (_iterator__ex2g4s_0.u()) {
|
|
3454
3455
|
var element = _iterator__ex2g4s_0.v();
|
|
3455
3456
|
var node = accumulator;
|
|
3456
3457
|
var tmp_2;
|
|
3457
3458
|
if (node instanceof JsonObject) {
|
|
3458
|
-
tmp_2 = node.
|
|
3459
|
+
tmp_2 = node.ld(element);
|
|
3459
3460
|
} else {
|
|
3460
3461
|
if (node instanceof JsonArray) {
|
|
3461
3462
|
var tmp1_safe_receiver_0 = toIntOrNull(element);
|
|
@@ -3478,15 +3479,15 @@ function lookup($this, ref) {
|
|
|
3478
3479
|
return tmp_1;
|
|
3479
3480
|
}
|
|
3480
3481
|
function Companion_0() {
|
|
3481
|
-
|
|
3482
|
-
this.
|
|
3483
|
-
this.
|
|
3484
|
-
this.
|
|
3485
|
-
this.
|
|
3486
|
-
this.
|
|
3487
|
-
this.
|
|
3482
|
+
Companion_instance_3 = this;
|
|
3483
|
+
this.i4s_1 = setOf([2, 3]);
|
|
3484
|
+
this.j4s_1 = setOf(['string', 'integer', 'number', 'boolean']);
|
|
3485
|
+
this.k4s_1 = Regex_init_$Create$('-?[0-9]+');
|
|
3486
|
+
this.l4s_1 = Regex_init_$Create$('-?[0-9]+(\\.[0-9]+)?');
|
|
3487
|
+
this.m4s_1 = Regex_init_$Create$('[a-zA-Z0-9_\\-]+');
|
|
3488
|
+
this.n4s_1 = 'AsyncAPI';
|
|
3488
3489
|
}
|
|
3489
|
-
protoOf(Companion_0).
|
|
3490
|
+
protoOf(Companion_0).h4t = function (_this__u8e3s4) {
|
|
3490
3491
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof JsonPrimitive_1 ? _this__u8e3s4 : null;
|
|
3491
3492
|
var tmp;
|
|
3492
3493
|
if (tmp0_safe_receiver == null) {
|
|
@@ -3494,7 +3495,7 @@ protoOf(Companion_0).t4q = function (_this__u8e3s4) {
|
|
|
3494
3495
|
} else {
|
|
3495
3496
|
// Inline function 'kotlin.takeIf' call
|
|
3496
3497
|
var tmp_0;
|
|
3497
|
-
if (tmp0_safe_receiver.
|
|
3498
|
+
if (tmp0_safe_receiver.w2o()) {
|
|
3498
3499
|
tmp_0 = tmp0_safe_receiver;
|
|
3499
3500
|
} else {
|
|
3500
3501
|
tmp_0 = null;
|
|
@@ -3515,7 +3516,7 @@ protoOf(Companion_0).t4q = function (_this__u8e3s4) {
|
|
|
3515
3516
|
var _iterator__ex2g4s = tmp0.t();
|
|
3516
3517
|
while (_iterator__ex2g4s.u()) {
|
|
3517
3518
|
var element = _iterator__ex2g4s.v();
|
|
3518
|
-
if (element.
|
|
3519
|
+
if (element.v4p_1 === tmp1_safe_receiver.m1i()) {
|
|
3519
3520
|
tmp$ret$5 = element;
|
|
3520
3521
|
break $l$block;
|
|
3521
3522
|
}
|
|
@@ -3526,7 +3527,7 @@ protoOf(Companion_0).t4q = function (_this__u8e3s4) {
|
|
|
3526
3527
|
}
|
|
3527
3528
|
return tmp_1;
|
|
3528
3529
|
};
|
|
3529
|
-
protoOf(Companion_0).
|
|
3530
|
+
protoOf(Companion_0).j4t = function (_this__u8e3s4) {
|
|
3530
3531
|
var tmp0 = listOf_0(['application/vnd.aai.asyncapi', 'application/schema+json', 'application/schema+yaml']);
|
|
3531
3532
|
var tmp$ret$0;
|
|
3532
3533
|
$l$block_0: {
|
|
@@ -3553,19 +3554,19 @@ protoOf(Companion_0).v4q = function (_this__u8e3s4) {
|
|
|
3553
3554
|
}
|
|
3554
3555
|
return tmp$ret$0;
|
|
3555
3556
|
};
|
|
3556
|
-
protoOf(Companion_0).
|
|
3557
|
-
return _this__u8e3s4.
|
|
3557
|
+
protoOf(Companion_0).r4t = function (_this__u8e3s4, isNullable) {
|
|
3558
|
+
return _this__u8e3s4.x1a(isNullable || _this__u8e3s4.ot());
|
|
3558
3559
|
};
|
|
3559
|
-
protoOf(Companion_0).
|
|
3560
|
+
protoOf(Companion_0).c4t = function (_this__u8e3s4) {
|
|
3560
3561
|
var tmp;
|
|
3561
3562
|
if (_this__u8e3s4 instanceof JsonPrimitive_1) {
|
|
3562
|
-
tmp = _this__u8e3s4.
|
|
3563
|
+
tmp = _this__u8e3s4.w2o();
|
|
3563
3564
|
} else {
|
|
3564
3565
|
tmp = false;
|
|
3565
3566
|
}
|
|
3566
3567
|
return tmp;
|
|
3567
3568
|
};
|
|
3568
|
-
protoOf(Companion_0).
|
|
3569
|
+
protoOf(Companion_0).r4s = function (_this__u8e3s4) {
|
|
3569
3570
|
var tmp;
|
|
3570
3571
|
if (_this__u8e3s4 instanceof JsonObject) {
|
|
3571
3572
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
@@ -3575,7 +3576,7 @@ protoOf(Companion_0).d4q = function (_this__u8e3s4) {
|
|
|
3575
3576
|
}
|
|
3576
3577
|
return tmp;
|
|
3577
3578
|
};
|
|
3578
|
-
protoOf(Companion_0).
|
|
3579
|
+
protoOf(Companion_0).w4s = function (_this__u8e3s4, fields) {
|
|
3579
3580
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3580
3581
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3581
3582
|
var destination = LinkedHashMap_init_$Create$_0();
|
|
@@ -3595,8 +3596,8 @@ protoOf(Companion_0).i4q = function (_this__u8e3s4, fields) {
|
|
|
3595
3596
|
while (inductionVariable < last) {
|
|
3596
3597
|
var element_0 = fields[inductionVariable];
|
|
3597
3598
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3598
|
-
var field = element_0.
|
|
3599
|
-
var isHeld = element_0.
|
|
3599
|
+
var field = element_0.af();
|
|
3600
|
+
var isHeld = element_0.bf();
|
|
3600
3601
|
if (field === key && isHeld(value)) {
|
|
3601
3602
|
tmp$ret$6 = true;
|
|
3602
3603
|
break $l$block;
|
|
@@ -3605,13 +3606,13 @@ protoOf(Companion_0).i4q = function (_this__u8e3s4, fields) {
|
|
|
3605
3606
|
tmp$ret$6 = false;
|
|
3606
3607
|
}
|
|
3607
3608
|
if (!tmp$ret$6) {
|
|
3608
|
-
destination.
|
|
3609
|
+
destination.w2(element.n1(), element.o1());
|
|
3609
3610
|
}
|
|
3610
3611
|
}
|
|
3611
3612
|
return destination;
|
|
3612
3613
|
};
|
|
3613
|
-
protoOf(Companion_0).
|
|
3614
|
-
var tmp = _this__u8e3s4.
|
|
3614
|
+
protoOf(Companion_0).e4t = function (_this__u8e3s4, key) {
|
|
3615
|
+
var tmp = _this__u8e3s4.ld(key);
|
|
3615
3616
|
var tmp0_safe_receiver = tmp instanceof JsonPrimitive_1 ? tmp : null;
|
|
3616
3617
|
var tmp_0;
|
|
3617
3618
|
if (tmp0_safe_receiver == null) {
|
|
@@ -3619,7 +3620,7 @@ protoOf(Companion_0).q4q = function (_this__u8e3s4, key) {
|
|
|
3619
3620
|
} else {
|
|
3620
3621
|
// Inline function 'kotlin.takeIf' call
|
|
3621
3622
|
var tmp_1;
|
|
3622
|
-
if (tmp0_safe_receiver.
|
|
3623
|
+
if (tmp0_safe_receiver.w2o()) {
|
|
3623
3624
|
tmp_1 = tmp0_safe_receiver;
|
|
3624
3625
|
} else {
|
|
3625
3626
|
tmp_1 = null;
|
|
@@ -3627,20 +3628,20 @@ protoOf(Companion_0).q4q = function (_this__u8e3s4, key) {
|
|
|
3627
3628
|
tmp_0 = tmp_1;
|
|
3628
3629
|
}
|
|
3629
3630
|
var tmp1_safe_receiver = tmp_0;
|
|
3630
|
-
return tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3631
|
+
return tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m1i();
|
|
3631
3632
|
};
|
|
3632
|
-
protoOf(Companion_0).
|
|
3633
|
-
var tmp = _this__u8e3s4.
|
|
3633
|
+
protoOf(Companion_0).u4s = function (_this__u8e3s4, key) {
|
|
3634
|
+
var tmp = _this__u8e3s4.ld(key);
|
|
3634
3635
|
return tmp instanceof JsonObject ? tmp : null;
|
|
3635
3636
|
};
|
|
3636
|
-
protoOf(Companion_0).
|
|
3637
|
-
return this.
|
|
3637
|
+
protoOf(Companion_0).s4s = function (_this__u8e3s4) {
|
|
3638
|
+
return this.e4t(_this__u8e3s4, '$ref');
|
|
3638
3639
|
};
|
|
3639
|
-
protoOf(Companion_0).
|
|
3640
|
-
return _this__u8e3s4 == null ? null : this.
|
|
3640
|
+
protoOf(Companion_0).v4s = function (_this__u8e3s4) {
|
|
3641
|
+
return _this__u8e3s4 == null ? null : this.e4t(_this__u8e3s4, 'description');
|
|
3641
3642
|
};
|
|
3642
|
-
protoOf(Companion_0).
|
|
3643
|
-
var tmp = _this__u8e3s4.
|
|
3643
|
+
protoOf(Companion_0).x4t = function (_this__u8e3s4) {
|
|
3644
|
+
var tmp = _this__u8e3s4.ld('required');
|
|
3644
3645
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3645
3646
|
var tmp0_elvis_lhs = tmp instanceof JsonArray ? tmp : null;
|
|
3646
3647
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -3652,7 +3653,7 @@ protoOf(Companion_0).j4r = function (_this__u8e3s4) {
|
|
|
3652
3653
|
while (_iterator__ex2g4s.u()) {
|
|
3653
3654
|
var element = _iterator__ex2g4s.v();
|
|
3654
3655
|
var tmp0_safe_receiver = element instanceof JsonPrimitive_1 ? element : null;
|
|
3655
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3656
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m1i();
|
|
3656
3657
|
if (tmp0_safe_receiver_0 == null)
|
|
3657
3658
|
null;
|
|
3658
3659
|
else {
|
|
@@ -3662,12 +3663,12 @@ protoOf(Companion_0).j4r = function (_this__u8e3s4) {
|
|
|
3662
3663
|
}
|
|
3663
3664
|
return destination;
|
|
3664
3665
|
};
|
|
3665
|
-
protoOf(Companion_0).
|
|
3666
|
-
var tmp = _this__u8e3s4.
|
|
3666
|
+
protoOf(Companion_0).p4t = function (_this__u8e3s4) {
|
|
3667
|
+
var tmp = _this__u8e3s4.ld('additionalProperties');
|
|
3667
3668
|
return tmp instanceof JsonObject ? tmp : null;
|
|
3668
3669
|
};
|
|
3669
|
-
protoOf(Companion_0).
|
|
3670
|
-
var type = _this__u8e3s4.
|
|
3670
|
+
protoOf(Companion_0).c4u = function (_this__u8e3s4) {
|
|
3671
|
+
var type = _this__u8e3s4.ld('type');
|
|
3671
3672
|
var tmp;
|
|
3672
3673
|
if (type instanceof JsonArray) {
|
|
3673
3674
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -3678,7 +3679,7 @@ protoOf(Companion_0).o4r = function (_this__u8e3s4) {
|
|
|
3678
3679
|
while (_iterator__ex2g4s.u()) {
|
|
3679
3680
|
var element = _iterator__ex2g4s.v();
|
|
3680
3681
|
var tmp0_safe_receiver = element instanceof JsonPrimitive_1 ? element : null;
|
|
3681
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3682
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m1i();
|
|
3682
3683
|
if (tmp0_safe_receiver_0 == null)
|
|
3683
3684
|
null;
|
|
3684
3685
|
else {
|
|
@@ -3689,15 +3690,15 @@ protoOf(Companion_0).o4r = function (_this__u8e3s4) {
|
|
|
3689
3690
|
tmp = destination;
|
|
3690
3691
|
} else {
|
|
3691
3692
|
if (type instanceof JsonPrimitive_1) {
|
|
3692
|
-
tmp = listOf(type.
|
|
3693
|
+
tmp = listOf(type.m1i());
|
|
3693
3694
|
} else {
|
|
3694
3695
|
tmp = emptyList();
|
|
3695
3696
|
}
|
|
3696
3697
|
}
|
|
3697
3698
|
return tmp;
|
|
3698
3699
|
};
|
|
3699
|
-
protoOf(Companion_0).
|
|
3700
|
-
var tmp0 = this.
|
|
3700
|
+
protoOf(Companion_0).n4t = function (_this__u8e3s4) {
|
|
3701
|
+
var tmp0 = this.c4u(_this__u8e3s4);
|
|
3701
3702
|
var tmp$ret$0;
|
|
3702
3703
|
$l$block: {
|
|
3703
3704
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -3713,27 +3714,27 @@ protoOf(Companion_0).z4q = function (_this__u8e3s4) {
|
|
|
3713
3714
|
}
|
|
3714
3715
|
return tmp$ret$0;
|
|
3715
3716
|
};
|
|
3716
|
-
protoOf(Companion_0).
|
|
3717
|
+
protoOf(Companion_0).d4u = function (_this__u8e3s4) {
|
|
3717
3718
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof JsonObject ? _this__u8e3s4 : null;
|
|
3718
|
-
return equals(tmp0_safe_receiver == null ? null : this.
|
|
3719
|
+
return equals(tmp0_safe_receiver == null ? null : this.c4u(tmp0_safe_receiver), listOf('null'));
|
|
3719
3720
|
};
|
|
3720
|
-
protoOf(Companion_0).
|
|
3721
|
+
protoOf(Companion_0).t4t = function (_this__u8e3s4) {
|
|
3721
3722
|
var tmp;
|
|
3722
3723
|
// Inline function 'kotlin.collections.contains' call
|
|
3723
3724
|
// Inline function 'kotlin.collections.containsKey' call
|
|
3724
|
-
if ((isInterface(_this__u8e3s4, KtMap) ? _this__u8e3s4 : THROW_CCE()).
|
|
3725
|
+
if ((isInterface(_this__u8e3s4, KtMap) ? _this__u8e3s4 : THROW_CCE()).r2('oneOf')) {
|
|
3725
3726
|
tmp = 'oneOf';
|
|
3726
3727
|
} else {
|
|
3727
3728
|
tmp = 'anyOf';
|
|
3728
3729
|
}
|
|
3729
3730
|
return tmp;
|
|
3730
3731
|
};
|
|
3731
|
-
protoOf(Companion_0).
|
|
3732
|
-
var tmp = _this__u8e3s4.
|
|
3732
|
+
protoOf(Companion_0).e4u = function (_this__u8e3s4) {
|
|
3733
|
+
var tmp = _this__u8e3s4.ld(this.t4t(_this__u8e3s4));
|
|
3733
3734
|
return tmp instanceof JsonArray ? tmp : null;
|
|
3734
3735
|
};
|
|
3735
|
-
protoOf(Companion_0).
|
|
3736
|
-
var tmp0_safe_receiver = this.
|
|
3736
|
+
protoOf(Companion_0).m4t = function (_this__u8e3s4) {
|
|
3737
|
+
var tmp0_safe_receiver = this.e4u(_this__u8e3s4);
|
|
3737
3738
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : withIndex(tmp0_safe_receiver);
|
|
3738
3739
|
var tmp;
|
|
3739
3740
|
if (tmp1_safe_receiver == null) {
|
|
@@ -3745,7 +3746,7 @@ protoOf(Companion_0).y4q = function (_this__u8e3s4) {
|
|
|
3745
3746
|
var _iterator__ex2g4s = tmp1_safe_receiver.t();
|
|
3746
3747
|
while (_iterator__ex2g4s.u()) {
|
|
3747
3748
|
var element = _iterator__ex2g4s.v();
|
|
3748
|
-
if (!Companion_getInstance_0().
|
|
3749
|
+
if (!Companion_getInstance_0().d4u(element.ze_1)) {
|
|
3749
3750
|
destination.x(element);
|
|
3750
3751
|
}
|
|
3751
3752
|
}
|
|
@@ -3753,22 +3754,22 @@ protoOf(Companion_0).y4q = function (_this__u8e3s4) {
|
|
|
3753
3754
|
}
|
|
3754
3755
|
return tmp;
|
|
3755
3756
|
};
|
|
3756
|
-
protoOf(Companion_0).
|
|
3757
|
-
var tmp0_safe_receiver = this.
|
|
3757
|
+
protoOf(Companion_0).l4t = function (_this__u8e3s4) {
|
|
3758
|
+
var tmp0_safe_receiver = this.m4t(_this__u8e3s4);
|
|
3758
3759
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : singleOrNull(tmp0_safe_receiver);
|
|
3759
3760
|
var tmp;
|
|
3760
3761
|
if (tmp1_safe_receiver == null) {
|
|
3761
3762
|
tmp = null;
|
|
3762
3763
|
} else {
|
|
3763
3764
|
// Inline function 'kotlin.let' call
|
|
3764
|
-
var index = tmp1_safe_receiver.
|
|
3765
|
-
var branch = tmp1_safe_receiver.
|
|
3766
|
-
tmp = to(Companion_getInstance_0().
|
|
3765
|
+
var index = tmp1_safe_receiver.af();
|
|
3766
|
+
var branch = tmp1_safe_receiver.bf();
|
|
3767
|
+
tmp = to(Companion_getInstance_0().t4t(_this__u8e3s4) + '/' + index, branch);
|
|
3767
3768
|
}
|
|
3768
3769
|
var tmp2_elvis_lhs = tmp;
|
|
3769
3770
|
var tmp_0;
|
|
3770
3771
|
if (tmp2_elvis_lhs == null) {
|
|
3771
|
-
var tmp_1 = _this__u8e3s4.
|
|
3772
|
+
var tmp_1 = _this__u8e3s4.ld('allOf');
|
|
3772
3773
|
var tmp3_safe_receiver = tmp_1 instanceof JsonArray ? tmp_1 : null;
|
|
3773
3774
|
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : singleOrNull(tmp3_safe_receiver);
|
|
3774
3775
|
var tmp_2;
|
|
@@ -3780,7 +3781,7 @@ protoOf(Companion_0).x4q = function (_this__u8e3s4) {
|
|
|
3780
3781
|
// Inline function 'kotlin.collections.contains' call
|
|
3781
3782
|
// Inline function 'kotlin.collections.containsKey' call
|
|
3782
3783
|
var key = 'properties';
|
|
3783
|
-
if (!(isInterface(_this__u8e3s4, KtMap) ? _this__u8e3s4 : THROW_CCE()).
|
|
3784
|
+
if (!(isInterface(_this__u8e3s4, KtMap) ? _this__u8e3s4 : THROW_CCE()).r2(key)) {
|
|
3784
3785
|
tmp_3 = tmp4_safe_receiver;
|
|
3785
3786
|
} else {
|
|
3786
3787
|
tmp_3 = null;
|
|
@@ -3801,21 +3802,21 @@ protoOf(Companion_0).x4q = function (_this__u8e3s4) {
|
|
|
3801
3802
|
}
|
|
3802
3803
|
return tmp_0;
|
|
3803
3804
|
};
|
|
3804
|
-
protoOf(Companion_0).
|
|
3805
|
+
protoOf(Companion_0).k4t = function (_this__u8e3s4) {
|
|
3805
3806
|
var tmp;
|
|
3806
3807
|
var tmp_0;
|
|
3807
3808
|
var tmp_1;
|
|
3808
|
-
if (this.
|
|
3809
|
+
if (this.c4u(_this__u8e3s4).i1('null')) {
|
|
3809
3810
|
tmp_1 = true;
|
|
3810
3811
|
} else {
|
|
3811
|
-
var tmp_2 = _this__u8e3s4.
|
|
3812
|
+
var tmp_2 = _this__u8e3s4.ld('nullable');
|
|
3812
3813
|
var tmp0_safe_receiver = tmp_2 instanceof JsonPrimitive_1 ? tmp_2 : null;
|
|
3813
|
-
tmp_1 = (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3814
|
+
tmp_1 = (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m1i()) === 'true';
|
|
3814
3815
|
}
|
|
3815
3816
|
if (tmp_1) {
|
|
3816
3817
|
tmp_0 = true;
|
|
3817
3818
|
} else {
|
|
3818
|
-
var tmp_3 = _this__u8e3s4.
|
|
3819
|
+
var tmp_3 = _this__u8e3s4.ld('enum');
|
|
3819
3820
|
var tmp1_safe_receiver = tmp_3 instanceof JsonArray ? tmp_3 : null;
|
|
3820
3821
|
var tmp_4;
|
|
3821
3822
|
if (tmp1_safe_receiver == null) {
|
|
@@ -3851,7 +3852,7 @@ protoOf(Companion_0).w4q = function (_this__u8e3s4) {
|
|
|
3851
3852
|
if (tmp_0) {
|
|
3852
3853
|
tmp = true;
|
|
3853
3854
|
} else {
|
|
3854
|
-
var tmp2_safe_receiver = this.
|
|
3855
|
+
var tmp2_safe_receiver = this.e4u(_this__u8e3s4);
|
|
3855
3856
|
var tmp_6;
|
|
3856
3857
|
if (tmp2_safe_receiver == null) {
|
|
3857
3858
|
tmp_6 = null;
|
|
@@ -3872,7 +3873,7 @@ protoOf(Companion_0).w4q = function (_this__u8e3s4) {
|
|
|
3872
3873
|
var _iterator__ex2g4s_0 = tmp2_safe_receiver.t();
|
|
3873
3874
|
while (_iterator__ex2g4s_0.u()) {
|
|
3874
3875
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3875
|
-
if (Companion_getInstance_0().
|
|
3876
|
+
if (Companion_getInstance_0().d4u(element_0)) {
|
|
3876
3877
|
tmp$ret$2 = true;
|
|
3877
3878
|
break $l$block_2;
|
|
3878
3879
|
}
|
|
@@ -3885,8 +3886,8 @@ protoOf(Companion_0).w4q = function (_this__u8e3s4) {
|
|
|
3885
3886
|
}
|
|
3886
3887
|
return tmp;
|
|
3887
3888
|
};
|
|
3888
|
-
protoOf(Companion_0).
|
|
3889
|
-
var tmp = _this__u8e3s4.
|
|
3889
|
+
protoOf(Companion_0).q4t = function (_this__u8e3s4) {
|
|
3890
|
+
var tmp = _this__u8e3s4.ld('enum');
|
|
3890
3891
|
var tmp0_safe_receiver = tmp instanceof JsonArray ? tmp : null;
|
|
3891
3892
|
var tmp_0;
|
|
3892
3893
|
if (tmp0_safe_receiver == null) {
|
|
@@ -3919,19 +3920,19 @@ protoOf(Companion_0).c4r = function (_this__u8e3s4) {
|
|
|
3919
3920
|
}
|
|
3920
3921
|
return tmp_0 === true;
|
|
3921
3922
|
};
|
|
3922
|
-
protoOf(Companion_0).
|
|
3923
|
+
protoOf(Companion_0).a4u = function (_this__u8e3s4) {
|
|
3923
3924
|
var tmp;
|
|
3924
|
-
if (this.
|
|
3925
|
+
if (this.q4t(_this__u8e3s4) && this.l4t(_this__u8e3s4) == null && this.e4u(_this__u8e3s4) == null) {
|
|
3925
3926
|
// Inline function 'kotlin.collections.contains' call
|
|
3926
3927
|
// Inline function 'kotlin.collections.containsKey' call
|
|
3927
|
-
tmp = !(isInterface(_this__u8e3s4, KtMap) ? _this__u8e3s4 : THROW_CCE()).
|
|
3928
|
+
tmp = !(isInterface(_this__u8e3s4, KtMap) ? _this__u8e3s4 : THROW_CCE()).r2('allOf');
|
|
3928
3929
|
} else {
|
|
3929
3930
|
tmp = false;
|
|
3930
3931
|
}
|
|
3931
3932
|
return tmp;
|
|
3932
3933
|
};
|
|
3933
|
-
protoOf(Companion_0).
|
|
3934
|
-
var tmp = _this__u8e3s4.
|
|
3934
|
+
protoOf(Companion_0).u4t = function (_this__u8e3s4) {
|
|
3935
|
+
var tmp = _this__u8e3s4.ld('enum');
|
|
3935
3936
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3936
3937
|
var tmp0_elvis_lhs = tmp instanceof JsonArray ? tmp : null;
|
|
3937
3938
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -3952,7 +3953,7 @@ protoOf(Companion_0).g4r = function (_this__u8e3s4) {
|
|
|
3952
3953
|
while (_iterator__ex2g4s_0.u()) {
|
|
3953
3954
|
var item = _iterator__ex2g4s_0.v();
|
|
3954
3955
|
var tmp0_safe_receiver = item instanceof JsonPrimitive_1 ? item : null;
|
|
3955
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3956
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m1i();
|
|
3956
3957
|
var tmp$ret$6 = tmp1_elvis_lhs == null ? toString_0(item) : tmp1_elvis_lhs;
|
|
3957
3958
|
destination_0.x(tmp$ret$6);
|
|
3958
3959
|
}
|
|
@@ -3962,82 +3963,99 @@ protoOf(Companion_0).g4r = function (_this__u8e3s4) {
|
|
|
3962
3963
|
while (_iterator__ex2g4s_1.u()) {
|
|
3963
3964
|
var element_0 = _iterator__ex2g4s_1.v();
|
|
3964
3965
|
var entries = accumulator;
|
|
3965
|
-
accumulator = plus_2(entries, Companion_getInstance_0().
|
|
3966
|
+
accumulator = plus_2(entries, Companion_getInstance_0().b4t(Companion_getInstance_0().f4u(element_0), toSet(entries)));
|
|
3966
3967
|
}
|
|
3967
3968
|
return accumulator;
|
|
3968
3969
|
};
|
|
3969
|
-
protoOf(Companion_0).
|
|
3970
|
+
protoOf(Companion_0).o4t = function (_this__u8e3s4, type, constrained) {
|
|
3970
3971
|
var tmp;
|
|
3971
3972
|
switch (type) {
|
|
3972
3973
|
case 'string':
|
|
3974
|
+
var format = this.e4t(_this__u8e3s4, 'format');
|
|
3973
3975
|
var tmp_0;
|
|
3974
|
-
if (
|
|
3976
|
+
if (format === 'binary') {
|
|
3975
3977
|
tmp_0 = Bytes_instance;
|
|
3976
3978
|
} else {
|
|
3977
|
-
var
|
|
3979
|
+
var tmp1_safe_receiver = this.e4t(_this__u8e3s4, 'pattern');
|
|
3978
3980
|
var tmp_1;
|
|
3979
|
-
if (
|
|
3981
|
+
if (tmp1_safe_receiver == null) {
|
|
3980
3982
|
tmp_1 = null;
|
|
3981
3983
|
} else {
|
|
3982
3984
|
// Inline function 'kotlin.takeIf' call
|
|
3983
3985
|
var tmp_2;
|
|
3984
|
-
if (constrained && !contains_0(
|
|
3985
|
-
tmp_2 =
|
|
3986
|
+
if (constrained && !contains_0(tmp1_safe_receiver, _Char___init__impl__6a9atx(10)) && !contains_0(tmp1_safe_receiver, _Char___init__impl__6a9atx(13))) {
|
|
3987
|
+
tmp_2 = tmp1_safe_receiver;
|
|
3986
3988
|
} else {
|
|
3987
3989
|
tmp_2 = null;
|
|
3988
3990
|
}
|
|
3989
3991
|
tmp_1 = tmp_2;
|
|
3990
3992
|
}
|
|
3991
|
-
var
|
|
3993
|
+
var tmp2_safe_receiver = tmp_1;
|
|
3992
3994
|
var tmp_3;
|
|
3993
|
-
if (
|
|
3995
|
+
if (tmp2_safe_receiver == null) {
|
|
3994
3996
|
tmp_3 = null;
|
|
3995
3997
|
} else {
|
|
3996
3998
|
// Inline function 'kotlin.let' call
|
|
3997
|
-
tmp_3 = _RegExp___init__impl__p22noo('/' + Companion_getInstance_0().
|
|
3999
|
+
tmp_3 = _RegExp___init__impl__p22noo('/' + Companion_getInstance_0().g4u(tmp2_safe_receiver) + '/g');
|
|
4000
|
+
}
|
|
4001
|
+
var tmp3_elvis_lhs = tmp_3;
|
|
4002
|
+
var tmp_4;
|
|
4003
|
+
var tmp_5 = tmp3_elvis_lhs;
|
|
4004
|
+
if ((tmp_5 == null ? null : new RegExp_0(tmp_5)) == null) {
|
|
4005
|
+
var tmp_6;
|
|
4006
|
+
if (format == null) {
|
|
4007
|
+
tmp_6 = null;
|
|
4008
|
+
} else {
|
|
4009
|
+
// Inline function 'kotlin.let' call
|
|
4010
|
+
tmp_6 = Companion_instance_1.au(format);
|
|
4011
|
+
}
|
|
4012
|
+
var tmp5_safe_receiver = tmp_6;
|
|
4013
|
+
tmp_4 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.st_1;
|
|
4014
|
+
} else {
|
|
4015
|
+
tmp_4 = tmp3_elvis_lhs;
|
|
3998
4016
|
}
|
|
3999
|
-
tmp_0 = new String_0(
|
|
4017
|
+
tmp_0 = new String_0(tmp_4);
|
|
4000
4018
|
}
|
|
4001
4019
|
|
|
4002
4020
|
tmp = tmp_0;
|
|
4003
4021
|
break;
|
|
4004
4022
|
case 'integer':
|
|
4005
|
-
var
|
|
4006
|
-
var
|
|
4007
|
-
var
|
|
4008
|
-
if (
|
|
4009
|
-
|
|
4023
|
+
var tmp_7 = this.e4t(_this__u8e3s4, 'format') === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance();
|
|
4024
|
+
var tmp6_safe_receiver = this.h4u(_this__u8e3s4, AsyncAPIConverter$Companion$primitive$lambda);
|
|
4025
|
+
var tmp_8;
|
|
4026
|
+
if (tmp6_safe_receiver == null) {
|
|
4027
|
+
tmp_8 = null;
|
|
4010
4028
|
} else {
|
|
4011
4029
|
// Inline function 'kotlin.takeIf' call
|
|
4012
|
-
var
|
|
4030
|
+
var tmp_9;
|
|
4013
4031
|
if (constrained) {
|
|
4014
|
-
|
|
4032
|
+
tmp_9 = tmp6_safe_receiver;
|
|
4015
4033
|
} else {
|
|
4016
|
-
|
|
4034
|
+
tmp_9 = null;
|
|
4017
4035
|
}
|
|
4018
|
-
|
|
4036
|
+
tmp_8 = tmp_9;
|
|
4019
4037
|
}
|
|
4020
4038
|
|
|
4021
|
-
tmp = new Integer(
|
|
4039
|
+
tmp = new Integer(tmp_7, tmp_8);
|
|
4022
4040
|
break;
|
|
4023
4041
|
case 'number':
|
|
4024
|
-
var
|
|
4025
|
-
var
|
|
4026
|
-
var
|
|
4027
|
-
if (
|
|
4028
|
-
|
|
4042
|
+
var tmp_10 = this.e4t(_this__u8e3s4, 'format') === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance();
|
|
4043
|
+
var tmp7_safe_receiver = this.h4u(_this__u8e3s4, AsyncAPIConverter$Companion$primitive$lambda_0);
|
|
4044
|
+
var tmp_11;
|
|
4045
|
+
if (tmp7_safe_receiver == null) {
|
|
4046
|
+
tmp_11 = null;
|
|
4029
4047
|
} else {
|
|
4030
4048
|
// Inline function 'kotlin.takeIf' call
|
|
4031
|
-
var
|
|
4049
|
+
var tmp_12;
|
|
4032
4050
|
if (constrained) {
|
|
4033
|
-
|
|
4051
|
+
tmp_12 = tmp7_safe_receiver;
|
|
4034
4052
|
} else {
|
|
4035
|
-
|
|
4053
|
+
tmp_12 = null;
|
|
4036
4054
|
}
|
|
4037
|
-
|
|
4055
|
+
tmp_11 = tmp_12;
|
|
4038
4056
|
}
|
|
4039
4057
|
|
|
4040
|
-
tmp = new Number_0(
|
|
4058
|
+
tmp = new Number_0(tmp_10, tmp_11);
|
|
4041
4059
|
break;
|
|
4042
4060
|
default:
|
|
4043
4061
|
tmp = Boolean_instance;
|
|
@@ -4045,8 +4063,8 @@ protoOf(Companion_0).a4r = function (_this__u8e3s4, type, constrained) {
|
|
|
4045
4063
|
}
|
|
4046
4064
|
return tmp;
|
|
4047
4065
|
};
|
|
4048
|
-
protoOf(Companion_0).
|
|
4049
|
-
var tmp = _this__u8e3s4.
|
|
4066
|
+
protoOf(Companion_0).h4u = function (_this__u8e3s4, format) {
|
|
4067
|
+
var tmp = _this__u8e3s4.ld('minimum');
|
|
4050
4068
|
var tmp0_safe_receiver = tmp instanceof JsonPrimitive_1 ? tmp : null;
|
|
4051
4069
|
var tmp_0;
|
|
4052
4070
|
if (tmp0_safe_receiver == null) {
|
|
@@ -4054,7 +4072,7 @@ protoOf(Companion_0).t4r = function (_this__u8e3s4, format) {
|
|
|
4054
4072
|
} else {
|
|
4055
4073
|
// Inline function 'kotlin.takeUnless' call
|
|
4056
4074
|
var tmp_1;
|
|
4057
|
-
if (!tmp0_safe_receiver.
|
|
4075
|
+
if (!tmp0_safe_receiver.w2o()) {
|
|
4058
4076
|
tmp_1 = tmp0_safe_receiver;
|
|
4059
4077
|
} else {
|
|
4060
4078
|
tmp_1 = null;
|
|
@@ -4062,7 +4080,7 @@ protoOf(Companion_0).t4r = function (_this__u8e3s4, format) {
|
|
|
4062
4080
|
tmp_0 = tmp_1;
|
|
4063
4081
|
}
|
|
4064
4082
|
var tmp1_safe_receiver = tmp_0;
|
|
4065
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4083
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m1i();
|
|
4066
4084
|
var tmp_2;
|
|
4067
4085
|
if (tmp2_safe_receiver == null) {
|
|
4068
4086
|
tmp_2 = null;
|
|
@@ -4071,7 +4089,7 @@ protoOf(Companion_0).t4r = function (_this__u8e3s4, format) {
|
|
|
4071
4089
|
tmp_2 = format(tmp2_safe_receiver);
|
|
4072
4090
|
}
|
|
4073
4091
|
var tmp_3 = tmp_2;
|
|
4074
|
-
var tmp_4 = _this__u8e3s4.
|
|
4092
|
+
var tmp_4 = _this__u8e3s4.ld('maximum');
|
|
4075
4093
|
var tmp3_safe_receiver = tmp_4 instanceof JsonPrimitive_1 ? tmp_4 : null;
|
|
4076
4094
|
var tmp_5;
|
|
4077
4095
|
if (tmp3_safe_receiver == null) {
|
|
@@ -4079,7 +4097,7 @@ protoOf(Companion_0).t4r = function (_this__u8e3s4, format) {
|
|
|
4079
4097
|
} else {
|
|
4080
4098
|
// Inline function 'kotlin.takeUnless' call
|
|
4081
4099
|
var tmp_6;
|
|
4082
|
-
if (!tmp3_safe_receiver.
|
|
4100
|
+
if (!tmp3_safe_receiver.w2o()) {
|
|
4083
4101
|
tmp_6 = tmp3_safe_receiver;
|
|
4084
4102
|
} else {
|
|
4085
4103
|
tmp_6 = null;
|
|
@@ -4087,7 +4105,7 @@ protoOf(Companion_0).t4r = function (_this__u8e3s4, format) {
|
|
|
4087
4105
|
tmp_5 = tmp_6;
|
|
4088
4106
|
}
|
|
4089
4107
|
var tmp4_safe_receiver = tmp_5;
|
|
4090
|
-
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
4108
|
+
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.m1i();
|
|
4091
4109
|
var tmp_7;
|
|
4092
4110
|
if (tmp5_safe_receiver == null) {
|
|
4093
4111
|
tmp_7 = null;
|
|
@@ -4098,18 +4116,18 @@ protoOf(Companion_0).t4r = function (_this__u8e3s4, format) {
|
|
|
4098
4116
|
// Inline function 'kotlin.takeIf' call
|
|
4099
4117
|
var this_0 = new Bound(tmp_3, tmp_7);
|
|
4100
4118
|
var tmp_8;
|
|
4101
|
-
if (!(this_0.
|
|
4119
|
+
if (!(this_0.j1a_1 == null) || !(this_0.k1a_1 == null)) {
|
|
4102
4120
|
tmp_8 = this_0;
|
|
4103
4121
|
} else {
|
|
4104
4122
|
tmp_8 = null;
|
|
4105
4123
|
}
|
|
4106
4124
|
return tmp_8;
|
|
4107
4125
|
};
|
|
4108
|
-
protoOf(Companion_0).
|
|
4126
|
+
protoOf(Companion_0).g4u = function (_this__u8e3s4) {
|
|
4109
4127
|
var tmp = Regex_init_$Create$('\\\\.|/');
|
|
4110
|
-
return tmp.
|
|
4128
|
+
return tmp.bd(_this__u8e3s4, AsyncAPIConverter$Companion$escapeSlashes$lambda);
|
|
4111
4129
|
};
|
|
4112
|
-
protoOf(Companion_0).
|
|
4130
|
+
protoOf(Companion_0).d4t = function (_this__u8e3s4, section) {
|
|
4113
4131
|
// Inline function 'kotlin.takeIf' call
|
|
4114
4132
|
var this_0 = removePrefix(_this__u8e3s4, '#/components/' + section + '/');
|
|
4115
4133
|
var tmp;
|
|
@@ -4121,7 +4139,7 @@ protoOf(Companion_0).p4q = function (_this__u8e3s4, section) {
|
|
|
4121
4139
|
var tmp0_safe_receiver = tmp;
|
|
4122
4140
|
return tmp0_safe_receiver == null ? null : unescapePointer(tmp0_safe_receiver);
|
|
4123
4141
|
};
|
|
4124
|
-
protoOf(Companion_0).
|
|
4142
|
+
protoOf(Companion_0).t4s = function (_this__u8e3s4) {
|
|
4125
4143
|
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
4126
4144
|
var tmp;
|
|
4127
4145
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
@@ -4137,7 +4155,7 @@ protoOf(Companion_0).f4q = function (_this__u8e3s4) {
|
|
|
4137
4155
|
}
|
|
4138
4156
|
return tmp;
|
|
4139
4157
|
};
|
|
4140
|
-
protoOf(Companion_0).
|
|
4158
|
+
protoOf(Companion_0).b4t = function (_this__u8e3s4, taken) {
|
|
4141
4159
|
var tmp = generateSequence(1, AsyncAPIConverter$Companion$unique$lambda);
|
|
4142
4160
|
var tmp0 = map(tmp, AsyncAPIConverter$Companion$unique$lambda_0(_this__u8e3s4));
|
|
4143
4161
|
var tmp$ret$0;
|
|
@@ -4155,9 +4173,9 @@ protoOf(Companion_0).n4q = function (_this__u8e3s4, taken) {
|
|
|
4155
4173
|
}
|
|
4156
4174
|
return tmp$ret$0;
|
|
4157
4175
|
};
|
|
4158
|
-
protoOf(Companion_0).
|
|
4176
|
+
protoOf(Companion_0).i4t = function (_this__u8e3s4) {
|
|
4159
4177
|
// Inline function 'kotlin.text.split' call
|
|
4160
|
-
var tmp = Regex_init_$Create$('[^a-zA-Z0-9]+').
|
|
4178
|
+
var tmp = Regex_init_$Create$('[^a-zA-Z0-9]+').fd(_this__u8e3s4, 0);
|
|
4161
4179
|
var tmp0 = joinToString(tmp, '', VOID, VOID, VOID, VOID, AsyncAPIConverter$Companion$toIdentifier$lambda);
|
|
4162
4180
|
var tmp$ret$1;
|
|
4163
4181
|
$l$block: {
|
|
@@ -4205,18 +4223,18 @@ protoOf(Companion_0).u4q = function (_this__u8e3s4) {
|
|
|
4205
4223
|
var tmp_2;
|
|
4206
4224
|
// Inline function 'kotlin.collections.contains' call
|
|
4207
4225
|
// Inline function 'kotlin.collections.containsKey' call
|
|
4208
|
-
var this_3 = WirespecType_getInstance().
|
|
4209
|
-
if ((isInterface(this_3, KtMap) ? this_3 : THROW_CCE()).
|
|
4226
|
+
var this_3 = WirespecType_getInstance().bp_1;
|
|
4227
|
+
if ((isInterface(this_3, KtMap) ? this_3 : THROW_CCE()).r2(it_0)) {
|
|
4210
4228
|
tmp_2 = 'AsyncAPI' + it_0;
|
|
4211
4229
|
} else {
|
|
4212
4230
|
tmp_2 = it_0;
|
|
4213
4231
|
}
|
|
4214
4232
|
return tmp_2;
|
|
4215
4233
|
};
|
|
4216
|
-
protoOf(Companion_0).
|
|
4234
|
+
protoOf(Companion_0).f4u = function (_this__u8e3s4) {
|
|
4217
4235
|
// Inline function 'kotlin.takeIf' call
|
|
4218
4236
|
var tmp;
|
|
4219
|
-
if (this.
|
|
4237
|
+
if (this.m4s_1.sc(_this__u8e3s4)) {
|
|
4220
4238
|
tmp = _this__u8e3s4;
|
|
4221
4239
|
} else {
|
|
4222
4240
|
tmp = null;
|
|
@@ -4226,7 +4244,7 @@ protoOf(Companion_0).r4r = function (_this__u8e3s4) {
|
|
|
4226
4244
|
if (tmp0_elvis_lhs == null) {
|
|
4227
4245
|
// Inline function 'kotlin.text.replace' call
|
|
4228
4246
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
4229
|
-
var this_0 = Regex_init_$Create$('[^a-zA-Z0-9_\\-]+').
|
|
4247
|
+
var this_0 = Regex_init_$Create$('[^a-zA-Z0-9_\\-]+').ad(_this__u8e3s4, '_');
|
|
4230
4248
|
var tmp_1;
|
|
4231
4249
|
// Inline function 'kotlin.text.isEmpty' call
|
|
4232
4250
|
if (charSequenceLength(this_0) === 0) {
|
|
@@ -4240,42 +4258,42 @@ protoOf(Companion_0).r4r = function (_this__u8e3s4) {
|
|
|
4240
4258
|
}
|
|
4241
4259
|
return tmp_0;
|
|
4242
4260
|
};
|
|
4243
|
-
protoOf(Companion_0).
|
|
4244
|
-
return this.
|
|
4261
|
+
protoOf(Companion_0).y4t = function (_this__u8e3s4) {
|
|
4262
|
+
return this.f4u(_this__u8e3s4);
|
|
4245
4263
|
};
|
|
4246
|
-
var
|
|
4264
|
+
var Companion_instance_3;
|
|
4247
4265
|
function Companion_getInstance_0() {
|
|
4248
|
-
if (
|
|
4266
|
+
if (Companion_instance_3 == null)
|
|
4249
4267
|
new Companion_0();
|
|
4250
|
-
return
|
|
4268
|
+
return Companion_instance_3;
|
|
4251
4269
|
}
|
|
4252
4270
|
function MutableMap$get$ref(p0) {
|
|
4253
4271
|
var l = function (_this__u8e3s4) {
|
|
4254
|
-
return p0.
|
|
4272
|
+
return p0.t2(_this__u8e3s4);
|
|
4255
4273
|
};
|
|
4256
4274
|
l.callableName = 'get';
|
|
4257
4275
|
return l;
|
|
4258
4276
|
}
|
|
4259
4277
|
function AsyncAPIConverter$writer$lambda(this$0) {
|
|
4260
4278
|
return function (it) {
|
|
4261
|
-
var tmp0_elvis_lhs = this$0.
|
|
4279
|
+
var tmp0_elvis_lhs = this$0.y4r_1.t2(it);
|
|
4262
4280
|
return tmp0_elvis_lhs == null ? it : tmp0_elvis_lhs;
|
|
4263
4281
|
};
|
|
4264
4282
|
}
|
|
4265
4283
|
function AsyncAPIConverter$channelV3$lambda(it) {
|
|
4266
|
-
return Companion_getInstance_0().
|
|
4284
|
+
return Companion_getInstance_0().c4t(it);
|
|
4267
4285
|
}
|
|
4268
4286
|
function AsyncAPIConverter$channelV3$lambda_0(it) {
|
|
4269
|
-
return Companion_getInstance_0().
|
|
4287
|
+
return Companion_getInstance_0().r4s(it);
|
|
4270
4288
|
}
|
|
4271
4289
|
function AsyncAPIConverter$channelV2$lambda(it) {
|
|
4272
|
-
return Companion_getInstance_0().
|
|
4290
|
+
return Companion_getInstance_0().c4t(it);
|
|
4273
4291
|
}
|
|
4274
4292
|
function AsyncAPIConverter(document) {
|
|
4275
4293
|
Companion_getInstance_0();
|
|
4276
|
-
this.
|
|
4294
|
+
this.s4r_1 = document;
|
|
4277
4295
|
var tmp = this;
|
|
4278
|
-
var tmp0_safe_receiver = Companion_getInstance_0().
|
|
4296
|
+
var tmp0_safe_receiver = Companion_getInstance_0().e4t(this.s4r_1, 'asyncapi');
|
|
4279
4297
|
var tmp_0;
|
|
4280
4298
|
if (tmp0_safe_receiver == null) {
|
|
4281
4299
|
tmp_0 = null;
|
|
@@ -4288,7 +4306,7 @@ function AsyncAPIConverter(document) {
|
|
|
4288
4306
|
} else {
|
|
4289
4307
|
// Inline function 'kotlin.takeIf' call
|
|
4290
4308
|
var tmp_2;
|
|
4291
|
-
if (Companion_getInstance_0().
|
|
4309
|
+
if (Companion_getInstance_0().i4s_1.i1(tmp0_safe_receiver_0)) {
|
|
4292
4310
|
tmp_2 = tmp0_safe_receiver_0;
|
|
4293
4311
|
} else {
|
|
4294
4312
|
tmp_2 = null;
|
|
@@ -4315,19 +4333,19 @@ function AsyncAPIConverter(document) {
|
|
|
4315
4333
|
} else {
|
|
4316
4334
|
tmp_4 = tmp1_elvis_lhs_0;
|
|
4317
4335
|
}
|
|
4318
|
-
tmp.
|
|
4336
|
+
tmp.t4r_1 = tmp_4;
|
|
4319
4337
|
var tmp_5 = this;
|
|
4320
4338
|
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
4321
|
-
tmp_5.
|
|
4339
|
+
tmp_5.u4r_1 = LinkedHashSet_init_$Create$();
|
|
4322
4340
|
var tmp_6 = this;
|
|
4323
|
-
var tmp_7 = this.
|
|
4324
|
-
tmp_6.
|
|
4341
|
+
var tmp_7 = this.s4r_1.ld('components');
|
|
4342
|
+
tmp_6.v4r_1 = tmp_7 instanceof JsonObject ? tmp_7 : null;
|
|
4325
4343
|
var tmp_8 = this;
|
|
4326
|
-
var tmp0_safe_receiver_1 = this.
|
|
4327
|
-
tmp_8.
|
|
4344
|
+
var tmp0_safe_receiver_1 = this.v4r_1;
|
|
4345
|
+
tmp_8.w4r_1 = orEmpty(tmp0_safe_receiver_1 == null ? null : Companion_getInstance_0().u4s(tmp0_safe_receiver_1, 'schemas'));
|
|
4328
4346
|
var tmp_9 = this;
|
|
4329
4347
|
// Inline function 'kotlin.collections.filterValues' call
|
|
4330
|
-
var this_0 = this.
|
|
4348
|
+
var this_0 = this.w4r_1;
|
|
4331
4349
|
var result = LinkedHashMap_init_$Create$_0();
|
|
4332
4350
|
// Inline function 'kotlin.collections.iterator' call
|
|
4333
4351
|
var _iterator__ex2g4s = this_0.m1().t();
|
|
@@ -4336,23 +4354,23 @@ function AsyncAPIConverter(document) {
|
|
|
4336
4354
|
var it = entry.o1();
|
|
4337
4355
|
var tmp0_safe_receiver_2 = it instanceof JsonObject ? it : null;
|
|
4338
4356
|
if ((tmp0_safe_receiver_2 == null ? null : ownsDefinition(this, tmp0_safe_receiver_2, true)) === true) {
|
|
4339
|
-
result.
|
|
4357
|
+
result.w2(entry.n1(), entry.o1());
|
|
4340
4358
|
}
|
|
4341
4359
|
}
|
|
4342
4360
|
// Inline function 'kotlin.collections.associateWith' call
|
|
4343
|
-
var this_1 = result.
|
|
4361
|
+
var this_1 = result.u2();
|
|
4344
4362
|
var result_0 = LinkedHashMap_init_$Create$(coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_1, 10)), 16));
|
|
4345
4363
|
// Inline function 'kotlin.collections.associateWithTo' call
|
|
4346
4364
|
var _iterator__ex2g4s_0 = this_1.t();
|
|
4347
4365
|
while (_iterator__ex2g4s_0.u()) {
|
|
4348
4366
|
var element = _iterator__ex2g4s_0.v();
|
|
4349
|
-
var tmp$ret$12 = claim(this, Companion_getInstance_0().
|
|
4350
|
-
result_0.
|
|
4367
|
+
var tmp$ret$12 = claim(this, Companion_getInstance_0().i4t(element));
|
|
4368
|
+
result_0.w2(element, tmp$ret$12);
|
|
4351
4369
|
}
|
|
4352
|
-
tmp_9.
|
|
4370
|
+
tmp_9.x4r_1 = result_0;
|
|
4353
4371
|
var tmp_10 = this;
|
|
4354
4372
|
// Inline function 'kotlin.collections.associate' call
|
|
4355
|
-
var this_2 = this.
|
|
4373
|
+
var this_2 = this.x4r_1.m1();
|
|
4356
4374
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_2, 10)), 16);
|
|
4357
4375
|
// Inline function 'kotlin.collections.associateTo' call
|
|
4358
4376
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -4365,35 +4383,35 @@ function AsyncAPIConverter(document) {
|
|
|
4365
4383
|
var name = element_0.o1();
|
|
4366
4384
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
4367
4385
|
var pair = to(name, key);
|
|
4368
|
-
destination.
|
|
4386
|
+
destination.w2(pair.gf_1, pair.hf_1);
|
|
4369
4387
|
}
|
|
4370
|
-
tmp_10.
|
|
4371
|
-
this.
|
|
4388
|
+
tmp_10.y4r_1 = destination;
|
|
4389
|
+
this.z4r_1 = claim(this, 'AsyncAPI');
|
|
4372
4390
|
var tmp_11 = this;
|
|
4373
4391
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
4374
|
-
tmp_11.
|
|
4392
|
+
tmp_11.a4s_1 = LinkedHashMap_init_$Create$_0();
|
|
4375
4393
|
var tmp_12 = this;
|
|
4376
4394
|
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
4377
|
-
tmp_12.
|
|
4395
|
+
tmp_12.b4s_1 = LinkedHashSet_init_$Create$();
|
|
4378
4396
|
var tmp_13 = this;
|
|
4379
4397
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
4380
|
-
tmp_13.
|
|
4398
|
+
tmp_13.c4s_1 = LinkedHashMap_init_$Create$_0();
|
|
4381
4399
|
var tmp_14 = this;
|
|
4382
|
-
var tmp_15 = MutableMap$get$ref(this.
|
|
4383
|
-
tmp_14.
|
|
4400
|
+
var tmp_15 = MutableMap$get$ref(this.c4s_1);
|
|
4401
|
+
tmp_14.d4s_1 = new JsonSchemaWriter(tmp_15, AsyncAPIConverter$writer$lambda(this));
|
|
4384
4402
|
var tmp_16 = this;
|
|
4385
4403
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
4386
|
-
tmp_16.
|
|
4404
|
+
tmp_16.e4s_1 = LinkedHashMap_init_$Create$_0();
|
|
4387
4405
|
var tmp_17 = this;
|
|
4388
4406
|
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
4389
|
-
tmp_17.
|
|
4390
|
-
this.
|
|
4407
|
+
tmp_17.f4s_1 = LinkedHashSet_init_$Create$();
|
|
4408
|
+
this.g4s_1 = orEmpty(Companion_getInstance_0().u4s(this.s4r_1, 'channels')).u2();
|
|
4391
4409
|
}
|
|
4392
|
-
protoOf(AsyncAPIConverter).
|
|
4410
|
+
protoOf(AsyncAPIConverter).h4s = function () {
|
|
4393
4411
|
// Inline function 'kotlin.takeIf' call
|
|
4394
|
-
var this_0 = orEmpty(Companion_getInstance_0().
|
|
4412
|
+
var this_0 = orEmpty(Companion_getInstance_0().u4s(this.s4r_1, 'operations'));
|
|
4395
4413
|
var tmp;
|
|
4396
|
-
if (this.
|
|
4414
|
+
if (this.t4r_1 === 3) {
|
|
4397
4415
|
tmp = this_0;
|
|
4398
4416
|
} else {
|
|
4399
4417
|
tmp = null;
|
|
@@ -4402,7 +4420,7 @@ protoOf(AsyncAPIConverter).t4p = function () {
|
|
|
4402
4420
|
// Inline function 'kotlin.collections.map' call
|
|
4403
4421
|
var this_1 = orEmpty(tmp$ret$0);
|
|
4404
4422
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4405
|
-
var destination = ArrayList_init_$Create$(this_1.
|
|
4423
|
+
var destination = ArrayList_init_$Create$(this_1.c1());
|
|
4406
4424
|
// Inline function 'kotlin.collections.iterator' call
|
|
4407
4425
|
var _iterator__ex2g4s = this_1.m1().t();
|
|
4408
4426
|
while (_iterator__ex2g4s.u()) {
|
|
@@ -4430,7 +4448,7 @@ protoOf(AsyncAPIConverter).t4p = function () {
|
|
|
4430
4448
|
var _iterator__ex2g4s_0 = operations.t();
|
|
4431
4449
|
while (_iterator__ex2g4s_0.u()) {
|
|
4432
4450
|
var element = _iterator__ex2g4s_0.v();
|
|
4433
|
-
var operation_0 = element.
|
|
4451
|
+
var operation_0 = element.bf();
|
|
4434
4452
|
if (!(channelKey(this, operation_0) == null)) {
|
|
4435
4453
|
first.x(element);
|
|
4436
4454
|
} else {
|
|
@@ -4438,10 +4456,10 @@ protoOf(AsyncAPIConverter).t4p = function () {
|
|
|
4438
4456
|
}
|
|
4439
4457
|
}
|
|
4440
4458
|
var _destruct__k2r9zo = new Pair(first, second);
|
|
4441
|
-
var channelOperations = _destruct__k2r9zo.
|
|
4442
|
-
var documentOperations = _destruct__k2r9zo.
|
|
4459
|
+
var channelOperations = _destruct__k2r9zo.af();
|
|
4460
|
+
var documentOperations = _destruct__k2r9zo.bf();
|
|
4443
4461
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4444
|
-
var tmp0 = orEmpty(Companion_getInstance_0().
|
|
4462
|
+
var tmp0 = orEmpty(Companion_getInstance_0().u4s(this.s4r_1, 'channels'));
|
|
4445
4463
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4446
4464
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
4447
4465
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -4453,7 +4471,7 @@ protoOf(AsyncAPIConverter).t4p = function () {
|
|
|
4453
4471
|
// Inline function 'kotlin.collections.component2' call
|
|
4454
4472
|
var channel = element_0.o1();
|
|
4455
4473
|
var tmp_1;
|
|
4456
|
-
if (this.
|
|
4474
|
+
if (this.t4r_1 === 2) {
|
|
4457
4475
|
tmp_1 = channelV2(this, key_0, channel);
|
|
4458
4476
|
} else {
|
|
4459
4477
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -4462,7 +4480,7 @@ protoOf(AsyncAPIConverter).t4p = function () {
|
|
|
4462
4480
|
var _iterator__ex2g4s_2 = channelOperations.t();
|
|
4463
4481
|
while (_iterator__ex2g4s_2.u()) {
|
|
4464
4482
|
var element_1 = _iterator__ex2g4s_2.v();
|
|
4465
|
-
var operation_1 = element_1.
|
|
4483
|
+
var operation_1 = element_1.bf();
|
|
4466
4484
|
if (channelKey(this, operation_1) === key_0) {
|
|
4467
4485
|
destination_1.x(element_1);
|
|
4468
4486
|
}
|
|
@@ -4473,9 +4491,9 @@ protoOf(AsyncAPIConverter).t4p = function () {
|
|
|
4473
4491
|
addAll(destination_0, list);
|
|
4474
4492
|
}
|
|
4475
4493
|
var channels = destination_0;
|
|
4476
|
-
var tmp0_safe_receiver = this.
|
|
4494
|
+
var tmp0_safe_receiver = this.v4r_1;
|
|
4477
4495
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
4478
|
-
var tmp0_0 = orEmpty(tmp0_safe_receiver == null ? null : Companion_getInstance_0().
|
|
4496
|
+
var tmp0_0 = orEmpty(tmp0_safe_receiver == null ? null : Companion_getInstance_0().u4s(tmp0_safe_receiver, 'messages')).u2();
|
|
4479
4497
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
4480
4498
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
4481
4499
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -4497,35 +4515,35 @@ protoOf(AsyncAPIConverter).t4p = function () {
|
|
|
4497
4515
|
var _iterator__ex2g4s_4 = messages.t();
|
|
4498
4516
|
while (_iterator__ex2g4s_4.u()) {
|
|
4499
4517
|
var element_3 = _iterator__ex2g4s_4.v();
|
|
4500
|
-
var list_0 = element_3.
|
|
4518
|
+
var list_0 = element_3.q4s_1;
|
|
4501
4519
|
addAll(destination_3, list_0);
|
|
4502
4520
|
}
|
|
4503
4521
|
var tmp_2 = plus(channels, destination_3);
|
|
4504
4522
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4505
|
-
var tmp0_1 = this.
|
|
4523
|
+
var tmp0_1 = this.x4r_1.u2();
|
|
4506
4524
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4507
4525
|
var destination_4 = ArrayList_init_$Create$_0();
|
|
4508
4526
|
var _iterator__ex2g4s_5 = tmp0_1.t();
|
|
4509
4527
|
while (_iterator__ex2g4s_5.u()) {
|
|
4510
4528
|
var element_4 = _iterator__ex2g4s_5.v();
|
|
4511
|
-
var list_1 = component(this, element_4).
|
|
4529
|
+
var list_1 = component(this, element_4).g4t_1;
|
|
4512
4530
|
addAll(destination_4, list_1);
|
|
4513
4531
|
}
|
|
4514
4532
|
var definitions = plus(tmp_2, destination_4);
|
|
4515
4533
|
return NonEmptyList__plus_impl_xqmb9(nonEmptyListOf(holder(this, messages, documentOperations), []), definitions);
|
|
4516
4534
|
};
|
|
4517
4535
|
function ConvertedMessage(annotation, payload, definitions) {
|
|
4518
|
-
this.
|
|
4519
|
-
this.
|
|
4520
|
-
this.
|
|
4536
|
+
this.o4s_1 = annotation;
|
|
4537
|
+
this.p4s_1 = payload;
|
|
4538
|
+
this.q4s_1 = definitions;
|
|
4521
4539
|
}
|
|
4522
4540
|
protoOf(ConvertedMessage).toString = function () {
|
|
4523
|
-
return 'ConvertedMessage(annotation=' + this.
|
|
4541
|
+
return 'ConvertedMessage(annotation=' + this.o4s_1.toString() + ', payload=' + toString_0(this.p4s_1) + ', definitions=' + toString_0(this.q4s_1) + ')';
|
|
4524
4542
|
};
|
|
4525
4543
|
protoOf(ConvertedMessage).hashCode = function () {
|
|
4526
|
-
var result = this.
|
|
4527
|
-
result = imul(result, 31) + hashCode(this.
|
|
4528
|
-
result = imul(result, 31) + hashCode(this.
|
|
4544
|
+
var result = this.o4s_1.hashCode();
|
|
4545
|
+
result = imul(result, 31) + hashCode(this.p4s_1) | 0;
|
|
4546
|
+
result = imul(result, 31) + hashCode(this.q4s_1) | 0;
|
|
4529
4547
|
return result;
|
|
4530
4548
|
};
|
|
4531
4549
|
protoOf(ConvertedMessage).equals = function (other) {
|
|
@@ -4533,33 +4551,33 @@ protoOf(ConvertedMessage).equals = function (other) {
|
|
|
4533
4551
|
return true;
|
|
4534
4552
|
if (!(other instanceof ConvertedMessage))
|
|
4535
4553
|
return false;
|
|
4536
|
-
if (!this.
|
|
4554
|
+
if (!this.o4s_1.equals(other.o4s_1))
|
|
4537
4555
|
return false;
|
|
4538
|
-
if (!equals(this.
|
|
4556
|
+
if (!equals(this.p4s_1, other.p4s_1))
|
|
4539
4557
|
return false;
|
|
4540
|
-
if (!equals(this.
|
|
4558
|
+
if (!equals(this.q4s_1, other.q4s_1))
|
|
4541
4559
|
return false;
|
|
4542
4560
|
return true;
|
|
4543
4561
|
};
|
|
4544
4562
|
function Converted(reference, definitions) {
|
|
4545
4563
|
definitions = definitions === VOID ? emptyList() : definitions;
|
|
4546
|
-
this.
|
|
4547
|
-
this.
|
|
4564
|
+
this.f4t_1 = reference;
|
|
4565
|
+
this.g4t_1 = definitions;
|
|
4548
4566
|
}
|
|
4549
|
-
protoOf(Converted).
|
|
4567
|
+
protoOf(Converted).i4u = function (reference, definitions) {
|
|
4550
4568
|
return new Converted(reference, definitions);
|
|
4551
4569
|
};
|
|
4552
|
-
protoOf(Converted).
|
|
4553
|
-
reference = reference === VOID ? this.
|
|
4554
|
-
definitions = definitions === VOID ? this.
|
|
4555
|
-
return $super === VOID ? this.
|
|
4570
|
+
protoOf(Converted).s4t = function (reference, definitions, $super) {
|
|
4571
|
+
reference = reference === VOID ? this.f4t_1 : reference;
|
|
4572
|
+
definitions = definitions === VOID ? this.g4t_1 : definitions;
|
|
4573
|
+
return $super === VOID ? this.i4u(reference, definitions) : $super.i4u.call(this, reference, definitions);
|
|
4556
4574
|
};
|
|
4557
4575
|
protoOf(Converted).toString = function () {
|
|
4558
|
-
return 'Converted(reference=' + toString_0(this.
|
|
4576
|
+
return 'Converted(reference=' + toString_0(this.f4t_1) + ', definitions=' + toString_0(this.g4t_1) + ')';
|
|
4559
4577
|
};
|
|
4560
4578
|
protoOf(Converted).hashCode = function () {
|
|
4561
|
-
var result = hashCode(this.
|
|
4562
|
-
result = imul(result, 31) + hashCode(this.
|
|
4579
|
+
var result = hashCode(this.f4t_1);
|
|
4580
|
+
result = imul(result, 31) + hashCode(this.g4t_1) | 0;
|
|
4563
4581
|
return result;
|
|
4564
4582
|
};
|
|
4565
4583
|
protoOf(Converted).equals = function (other) {
|
|
@@ -4567,26 +4585,26 @@ protoOf(Converted).equals = function (other) {
|
|
|
4567
4585
|
return true;
|
|
4568
4586
|
if (!(other instanceof Converted))
|
|
4569
4587
|
return false;
|
|
4570
|
-
if (!equals(this.
|
|
4588
|
+
if (!equals(this.f4t_1, other.f4t_1))
|
|
4571
4589
|
return false;
|
|
4572
|
-
if (!equals(this.
|
|
4590
|
+
if (!equals(this.g4t_1, other.g4t_1))
|
|
4573
4591
|
return false;
|
|
4574
4592
|
return true;
|
|
4575
4593
|
};
|
|
4576
4594
|
function OperationMessage(id, pointer, element, name) {
|
|
4577
|
-
this.
|
|
4578
|
-
this.
|
|
4579
|
-
this.
|
|
4580
|
-
this.
|
|
4595
|
+
this.x4s_1 = id;
|
|
4596
|
+
this.y4s_1 = pointer;
|
|
4597
|
+
this.z4s_1 = element;
|
|
4598
|
+
this.a4t_1 = name;
|
|
4581
4599
|
}
|
|
4582
4600
|
protoOf(OperationMessage).toString = function () {
|
|
4583
|
-
return 'OperationMessage(id=' + this.
|
|
4601
|
+
return 'OperationMessage(id=' + this.x4s_1 + ', pointer=' + this.y4s_1 + ', element=' + toString_0(this.z4s_1) + ', name=' + this.a4t_1 + ')';
|
|
4584
4602
|
};
|
|
4585
4603
|
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.
|
|
4604
|
+
var result = getStringHashCode(this.x4s_1);
|
|
4605
|
+
result = imul(result, 31) + getStringHashCode(this.y4s_1) | 0;
|
|
4606
|
+
result = imul(result, 31) + hashCode(this.z4s_1) | 0;
|
|
4607
|
+
result = imul(result, 31) + getStringHashCode(this.a4t_1) | 0;
|
|
4590
4608
|
return result;
|
|
4591
4609
|
};
|
|
4592
4610
|
protoOf(OperationMessage).equals = function (other) {
|
|
@@ -4594,26 +4612,26 @@ protoOf(OperationMessage).equals = function (other) {
|
|
|
4594
4612
|
return true;
|
|
4595
4613
|
if (!(other instanceof OperationMessage))
|
|
4596
4614
|
return false;
|
|
4597
|
-
if (!(this.
|
|
4615
|
+
if (!(this.x4s_1 === other.x4s_1))
|
|
4598
4616
|
return false;
|
|
4599
|
-
if (!(this.
|
|
4617
|
+
if (!(this.y4s_1 === other.y4s_1))
|
|
4600
4618
|
return false;
|
|
4601
|
-
if (!equals(this.
|
|
4619
|
+
if (!equals(this.z4s_1, other.z4s_1))
|
|
4602
4620
|
return false;
|
|
4603
|
-
if (!(this.
|
|
4621
|
+
if (!(this.a4t_1 === other.a4t_1))
|
|
4604
4622
|
return false;
|
|
4605
4623
|
return true;
|
|
4606
4624
|
};
|
|
4607
4625
|
function Located(pointer, node) {
|
|
4608
|
-
this.
|
|
4609
|
-
this.
|
|
4626
|
+
this.v4t_1 = pointer;
|
|
4627
|
+
this.w4t_1 = node;
|
|
4610
4628
|
}
|
|
4611
4629
|
protoOf(Located).toString = function () {
|
|
4612
|
-
return 'Located(pointer=' + this.
|
|
4630
|
+
return 'Located(pointer=' + this.v4t_1 + ', node=' + this.w4t_1.toString() + ')';
|
|
4613
4631
|
};
|
|
4614
4632
|
protoOf(Located).hashCode = function () {
|
|
4615
|
-
var result = getStringHashCode(this.
|
|
4616
|
-
result = imul(result, 31) + this.
|
|
4633
|
+
var result = getStringHashCode(this.v4t_1);
|
|
4634
|
+
result = imul(result, 31) + this.w4t_1.hashCode() | 0;
|
|
4617
4635
|
return result;
|
|
4618
4636
|
};
|
|
4619
4637
|
protoOf(Located).equals = function (other) {
|
|
@@ -4621,9 +4639,9 @@ protoOf(Located).equals = function (other) {
|
|
|
4621
4639
|
return true;
|
|
4622
4640
|
if (!(other instanceof Located))
|
|
4623
4641
|
return false;
|
|
4624
|
-
if (!(this.
|
|
4642
|
+
if (!(this.v4t_1 === other.v4t_1))
|
|
4625
4643
|
return false;
|
|
4626
|
-
if (!this.
|
|
4644
|
+
if (!this.w4t_1.equals(other.w4t_1))
|
|
4627
4645
|
return false;
|
|
4628
4646
|
return true;
|
|
4629
4647
|
};
|
|
@@ -4631,7 +4649,7 @@ function orEmpty(_this__u8e3s4) {
|
|
|
4631
4649
|
return _this__u8e3s4 == null ? new JsonObject(emptyMap()) : _this__u8e3s4;
|
|
4632
4650
|
}
|
|
4633
4651
|
function schema($this, $receiver, inlining) {
|
|
4634
|
-
return patched($this, canonical($this, $receiver, inlining), $receiver.
|
|
4652
|
+
return patched($this, canonical($this, $receiver, inlining), $receiver.m1e());
|
|
4635
4653
|
}
|
|
4636
4654
|
function canonical($this, $receiver, inlining) {
|
|
4637
4655
|
var tmp;
|
|
@@ -4639,7 +4657,7 @@ function canonical($this, $receiver, inlining) {
|
|
|
4639
4657
|
var tmp_0 = to('type', JsonPrimitive_0('object'));
|
|
4640
4658
|
var tmp_1 = to('description', description_0($this, $receiver));
|
|
4641
4659
|
// Inline function 'kotlin.collections.associate' call
|
|
4642
|
-
var this_0 = get_fields($receiver.
|
|
4660
|
+
var this_0 = get_fields($receiver.mp_1);
|
|
4643
4661
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
4644
4662
|
// Inline function 'kotlin.collections.associateTo' call
|
|
4645
4663
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -4648,17 +4666,17 @@ function canonical($this, $receiver, inlining) {
|
|
|
4648
4666
|
var element = _iterator__ex2g4s.v();
|
|
4649
4667
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
4650
4668
|
var pair = to(key_0($this, element), schema_0($this, element, inlining));
|
|
4651
|
-
destination.
|
|
4669
|
+
destination.w2(pair.gf_1, pair.hf_1);
|
|
4652
4670
|
}
|
|
4653
4671
|
var tmp_2 = to('properties', toJsonObjectOrNull(destination));
|
|
4654
4672
|
// Inline function 'kotlin.collections.filterNot' call
|
|
4655
|
-
var tmp0 = get_fields($receiver.
|
|
4673
|
+
var tmp0 = get_fields($receiver.mp_1);
|
|
4656
4674
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
4657
4675
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
4658
4676
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
4659
4677
|
while (_iterator__ex2g4s_0.u()) {
|
|
4660
4678
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
4661
|
-
if (!element_0.
|
|
4679
|
+
if (!element_0.qp_1.ot()) {
|
|
4662
4680
|
destination_0.x(element_0);
|
|
4663
4681
|
}
|
|
4664
4682
|
}
|
|
@@ -4693,7 +4711,7 @@ function canonical($this, $receiver, inlining) {
|
|
|
4693
4711
|
var tmp_5 = to('type', JsonPrimitive_0('string'));
|
|
4694
4712
|
var tmp_6 = to('description', description_0($this, $receiver));
|
|
4695
4713
|
// Inline function 'kotlin.collections.map' call
|
|
4696
|
-
var this_1 = $receiver.
|
|
4714
|
+
var this_1 = $receiver.ss_1;
|
|
4697
4715
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4698
4716
|
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
4699
4717
|
var _iterator__ex2g4s_2 = this_1.t();
|
|
@@ -4707,7 +4725,7 @@ function canonical($this, $receiver, inlining) {
|
|
|
4707
4725
|
if ($receiver instanceof Union) {
|
|
4708
4726
|
var tmp_7 = to('description', description_0($this, $receiver));
|
|
4709
4727
|
// Inline function 'kotlin.collections.map' call
|
|
4710
|
-
var this_2 = $receiver.
|
|
4728
|
+
var this_2 = $receiver.dr_1;
|
|
4711
4729
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4712
4730
|
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(this_2, 10));
|
|
4713
4731
|
var _iterator__ex2g4s_3 = this_2.t();
|
|
@@ -4719,7 +4737,7 @@ function canonical($this, $receiver, inlining) {
|
|
|
4719
4737
|
tmp = jsonObjectOf([tmp_7, to('oneOf', new JsonArray(destination_3))]);
|
|
4720
4738
|
} else {
|
|
4721
4739
|
if ($receiver instanceof Refined) {
|
|
4722
|
-
tmp = withEntries(schema_2($this, $receiver.
|
|
4740
|
+
tmp = withEntries(schema_2($this, $receiver.ns_1.d1a_1), [to('description', description_0($this, $receiver))]);
|
|
4723
4741
|
} else {
|
|
4724
4742
|
noWhenBranchMatchedException();
|
|
4725
4743
|
}
|
|
@@ -4729,11 +4747,11 @@ function canonical($this, $receiver, inlining) {
|
|
|
4729
4747
|
return tmp;
|
|
4730
4748
|
}
|
|
4731
4749
|
function schema_0($this, $receiver, inlining) {
|
|
4732
|
-
return patched($this, canonical_0($this, $receiver, inlining), $receiver.
|
|
4750
|
+
return patched($this, canonical_0($this, $receiver, inlining), $receiver.op_1);
|
|
4733
4751
|
}
|
|
4734
4752
|
function canonical_0($this, $receiver, inlining) {
|
|
4735
|
-
var tmp = schema_1($this, $receiver.
|
|
4736
|
-
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().
|
|
4753
|
+
var tmp = schema_1($this, $receiver.qp_1.x1a(false), inlining);
|
|
4754
|
+
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().m4p($receiver.op_1, 'Description');
|
|
4737
4755
|
var tmp_0;
|
|
4738
4756
|
if (tmp0_safe_receiver == null) {
|
|
4739
4757
|
tmp_0 = null;
|
|
@@ -4742,20 +4760,20 @@ function canonical_0($this, $receiver, inlining) {
|
|
|
4742
4760
|
tmp_0 = JsonPrimitive_0(tmp0_safe_receiver);
|
|
4743
4761
|
}
|
|
4744
4762
|
var tmp_1 = to('description', tmp_0);
|
|
4745
|
-
var tmp1_safe_receiver = $receiver.
|
|
4763
|
+
var tmp1_safe_receiver = $receiver.rp_1;
|
|
4746
4764
|
return withEntries(tmp, [tmp_1, to('default', tmp1_safe_receiver == null ? null : toJson($this, tmp1_safe_receiver))]);
|
|
4747
4765
|
}
|
|
4748
4766
|
function schema_1($this, $receiver, inlining) {
|
|
4749
4767
|
var tmp;
|
|
4750
4768
|
if ($receiver instanceof Custom) {
|
|
4751
|
-
var tmp1_safe_receiver = $this.
|
|
4769
|
+
var tmp1_safe_receiver = $this.o4r_1($receiver.b1a_1);
|
|
4752
4770
|
var tmp_0;
|
|
4753
4771
|
if (tmp1_safe_receiver == null) {
|
|
4754
4772
|
tmp_0 = null;
|
|
4755
4773
|
} else {
|
|
4756
4774
|
// Inline function 'kotlin.takeIf' call
|
|
4757
4775
|
var tmp_1;
|
|
4758
|
-
if (!inlining.i1($receiver.
|
|
4776
|
+
if (!inlining.i1($receiver.b1a_1)) {
|
|
4759
4777
|
tmp_1 = tmp1_safe_receiver;
|
|
4760
4778
|
} else {
|
|
4761
4779
|
tmp_1 = null;
|
|
@@ -4763,23 +4781,23 @@ function schema_1($this, $receiver, inlining) {
|
|
|
4763
4781
|
tmp_0 = tmp_1;
|
|
4764
4782
|
}
|
|
4765
4783
|
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.
|
|
4784
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : schema($this, tmp2_safe_receiver, plus_3(inlining, $receiver.b1a_1));
|
|
4785
|
+
tmp = tmp3_elvis_lhs == null ? ref('#/components/schemas/' + escapePointer($this.p4r_1($receiver.b1a_1))) : tmp3_elvis_lhs;
|
|
4768
4786
|
} else {
|
|
4769
4787
|
if ($receiver instanceof Primitive) {
|
|
4770
|
-
tmp = schema_2($this, $receiver.
|
|
4788
|
+
tmp = schema_2($this, $receiver.d1a_1);
|
|
4771
4789
|
} else {
|
|
4772
4790
|
if ($receiver instanceof Iterable) {
|
|
4773
|
-
tmp = jsonObjectOf([to('type', JsonPrimitive_0('array')), to('items', schema_1($this, $receiver.
|
|
4791
|
+
tmp = jsonObjectOf([to('type', JsonPrimitive_0('array')), to('items', schema_1($this, $receiver.zp_1, inlining))]);
|
|
4774
4792
|
} else {
|
|
4775
4793
|
if ($receiver instanceof Dict_0) {
|
|
4776
|
-
tmp = jsonObjectOf([to('type', JsonPrimitive_0('object')), to('additionalProperties', schema_1($this, $receiver.
|
|
4794
|
+
tmp = jsonObjectOf([to('type', JsonPrimitive_0('object')), to('additionalProperties', schema_1($this, $receiver.cq_1, inlining))]);
|
|
4777
4795
|
} else {
|
|
4778
4796
|
if ($receiver instanceof Any) {
|
|
4779
4797
|
tmp = new JsonObject(emptyMap());
|
|
4780
4798
|
} else {
|
|
4781
4799
|
if ($receiver instanceof Unit) {
|
|
4782
|
-
tmp = Companion_getInstance_1().
|
|
4800
|
+
tmp = Companion_getInstance_1().k4u_1;
|
|
4783
4801
|
} else {
|
|
4784
4802
|
noWhenBranchMatchedException();
|
|
4785
4803
|
}
|
|
@@ -4795,63 +4813,89 @@ function schema_1($this, $receiver, inlining) {
|
|
|
4795
4813
|
function schema_2($this, $receiver) {
|
|
4796
4814
|
var tmp;
|
|
4797
4815
|
if ($receiver instanceof String_0) {
|
|
4798
|
-
var
|
|
4799
|
-
var
|
|
4800
|
-
var tmp_1;
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
tmp_1 = null;
|
|
4816
|
+
var tmp1_safe_receiver = $receiver.o1a_1;
|
|
4817
|
+
var tmp_0;
|
|
4818
|
+
var tmp_1 = tmp1_safe_receiver;
|
|
4819
|
+
if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
|
|
4820
|
+
tmp_0 = null;
|
|
4804
4821
|
} else {
|
|
4805
|
-
|
|
4822
|
+
var tmp_2 = tmp1_safe_receiver;
|
|
4823
|
+
// Inline function 'kotlin.let' call
|
|
4824
|
+
var p0 = (tmp_2 == null ? null : new RegExp_0(tmp_2)).d1b_1;
|
|
4825
|
+
tmp_0 = Companion_instance_1.b1g(p0);
|
|
4806
4826
|
}
|
|
4807
|
-
var tmp2_safe_receiver =
|
|
4808
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPattern($this, tmp2_safe_receiver);
|
|
4827
|
+
var tmp2_safe_receiver = tmp_0;
|
|
4809
4828
|
var tmp_3;
|
|
4810
|
-
if (
|
|
4829
|
+
if (tmp2_safe_receiver == null) {
|
|
4811
4830
|
tmp_3 = null;
|
|
4812
4831
|
} else {
|
|
4813
4832
|
// Inline function 'kotlin.let' call
|
|
4814
|
-
tmp_3 = JsonPrimitive_0(
|
|
4833
|
+
tmp_3 = jsonObjectOf([to('type', JsonPrimitive_0('string')), to('format', JsonPrimitive_0(tmp2_safe_receiver.rt_1))]);
|
|
4834
|
+
}
|
|
4835
|
+
var tmp3_elvis_lhs = tmp_3;
|
|
4836
|
+
var tmp_4;
|
|
4837
|
+
if (tmp3_elvis_lhs == null) {
|
|
4838
|
+
var tmp_5 = to('type', JsonPrimitive_0('string'));
|
|
4839
|
+
var tmp4_safe_receiver = $receiver.o1a_1;
|
|
4840
|
+
var tmp_6;
|
|
4841
|
+
var tmp_7 = tmp4_safe_receiver;
|
|
4842
|
+
if ((tmp_7 == null ? null : new RegExp_0(tmp_7)) == null) {
|
|
4843
|
+
tmp_6 = null;
|
|
4844
|
+
} else {
|
|
4845
|
+
tmp_6 = _RegExp___get_value__impl__7o7618(tmp4_safe_receiver);
|
|
4846
|
+
}
|
|
4847
|
+
var tmp5_safe_receiver = tmp_6;
|
|
4848
|
+
var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : toPattern($this, tmp5_safe_receiver);
|
|
4849
|
+
var tmp_8;
|
|
4850
|
+
if (tmp6_safe_receiver == null) {
|
|
4851
|
+
tmp_8 = null;
|
|
4852
|
+
} else {
|
|
4853
|
+
// Inline function 'kotlin.let' call
|
|
4854
|
+
tmp_8 = JsonPrimitive_0(tmp6_safe_receiver);
|
|
4855
|
+
}
|
|
4856
|
+
tmp_4 = jsonObjectOf([tmp_5, to('pattern', tmp_8)]);
|
|
4857
|
+
} else {
|
|
4858
|
+
tmp_4 = tmp3_elvis_lhs;
|
|
4815
4859
|
}
|
|
4816
|
-
tmp =
|
|
4860
|
+
tmp = tmp_4;
|
|
4817
4861
|
} else {
|
|
4818
4862
|
if ($receiver instanceof Integer) {
|
|
4819
|
-
var
|
|
4863
|
+
var tmp_9 = to('type', JsonPrimitive_0('integer'));
|
|
4820
4864
|
// Inline function 'kotlin.takeIf' call
|
|
4821
4865
|
var this_0 = JsonPrimitive_0('int32');
|
|
4822
|
-
var
|
|
4823
|
-
if ($receiver.
|
|
4824
|
-
|
|
4866
|
+
var tmp_10;
|
|
4867
|
+
if ($receiver.l1a_1.equals(Precision_P32_getInstance())) {
|
|
4868
|
+
tmp_10 = this_0;
|
|
4825
4869
|
} else {
|
|
4826
|
-
|
|
4870
|
+
tmp_10 = null;
|
|
4827
4871
|
}
|
|
4828
|
-
var tmp$ret$
|
|
4829
|
-
var
|
|
4830
|
-
var
|
|
4831
|
-
var
|
|
4832
|
-
var
|
|
4833
|
-
var
|
|
4834
|
-
var
|
|
4835
|
-
tmp = jsonObjectOf([
|
|
4872
|
+
var tmp$ret$6 = tmp_10;
|
|
4873
|
+
var tmp_11 = to('format', tmp$ret$6);
|
|
4874
|
+
var tmp7_safe_receiver = $receiver.m1a_1;
|
|
4875
|
+
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.j1a_1;
|
|
4876
|
+
var tmp_12 = to('minimum', tmp8_safe_receiver == null ? null : toJsonNumber(tmp8_safe_receiver));
|
|
4877
|
+
var tmp9_safe_receiver = $receiver.m1a_1;
|
|
4878
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.k1a_1;
|
|
4879
|
+
tmp = jsonObjectOf([tmp_9, tmp_11, tmp_12, to('maximum', tmp10_safe_receiver == null ? null : toJsonNumber(tmp10_safe_receiver))]);
|
|
4836
4880
|
} else {
|
|
4837
4881
|
if ($receiver instanceof Number_0) {
|
|
4838
|
-
var
|
|
4882
|
+
var tmp_13 = to('type', JsonPrimitive_0('number'));
|
|
4839
4883
|
// Inline function 'kotlin.takeIf' call
|
|
4840
4884
|
var this_1 = JsonPrimitive_0('float');
|
|
4841
|
-
var
|
|
4842
|
-
if ($receiver.
|
|
4843
|
-
|
|
4885
|
+
var tmp_14;
|
|
4886
|
+
if ($receiver.g1a_1.equals(Precision_P32_getInstance())) {
|
|
4887
|
+
tmp_14 = this_1;
|
|
4844
4888
|
} else {
|
|
4845
|
-
|
|
4889
|
+
tmp_14 = null;
|
|
4846
4890
|
}
|
|
4847
|
-
var tmp$ret$
|
|
4848
|
-
var
|
|
4849
|
-
var
|
|
4850
|
-
var
|
|
4851
|
-
var
|
|
4852
|
-
var
|
|
4853
|
-
var
|
|
4854
|
-
tmp = jsonObjectOf([
|
|
4891
|
+
var tmp$ret$8 = tmp_14;
|
|
4892
|
+
var tmp_15 = to('format', tmp$ret$8);
|
|
4893
|
+
var tmp11_safe_receiver = $receiver.h1a_1;
|
|
4894
|
+
var tmp12_safe_receiver = tmp11_safe_receiver == null ? null : tmp11_safe_receiver.j1a_1;
|
|
4895
|
+
var tmp_16 = to('minimum', tmp12_safe_receiver == null ? null : toJsonNumber(tmp12_safe_receiver));
|
|
4896
|
+
var tmp13_safe_receiver = $receiver.h1a_1;
|
|
4897
|
+
var tmp14_safe_receiver = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.k1a_1;
|
|
4898
|
+
tmp = jsonObjectOf([tmp_13, tmp_15, tmp_16, to('maximum', tmp14_safe_receiver == null ? null : toJsonNumber(tmp14_safe_receiver))]);
|
|
4855
4899
|
} else {
|
|
4856
4900
|
if ($receiver instanceof Boolean_0) {
|
|
4857
4901
|
tmp = jsonObjectOf([to('type', JsonPrimitive_0('boolean'))]);
|
|
@@ -4868,10 +4912,10 @@ function schema_2($this, $receiver) {
|
|
|
4868
4912
|
return tmp;
|
|
4869
4913
|
}
|
|
4870
4914
|
function description_0($this, $receiver) {
|
|
4871
|
-
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().
|
|
4915
|
+
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().m4p($receiver.m1e(), 'Description');
|
|
4872
4916
|
var tmp;
|
|
4873
4917
|
if (tmp0_elvis_lhs == null) {
|
|
4874
|
-
var tmp1_safe_receiver = $receiver.
|
|
4918
|
+
var tmp1_safe_receiver = $receiver.l1e();
|
|
4875
4919
|
var tmp_0;
|
|
4876
4920
|
var tmp_1 = tmp1_safe_receiver;
|
|
4877
4921
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -4894,18 +4938,18 @@ function description_0($this, $receiver) {
|
|
|
4894
4938
|
return tmp_2;
|
|
4895
4939
|
}
|
|
4896
4940
|
function key_0($this, $receiver) {
|
|
4897
|
-
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().
|
|
4898
|
-
return tmp0_elvis_lhs == null ? $receiver.
|
|
4941
|
+
var tmp0_elvis_lhs = AsyncAPIAnnotations_getInstance().m4p($receiver.op_1, 'AsyncAPIName');
|
|
4942
|
+
return tmp0_elvis_lhs == null ? $receiver.pp_1.o1() : tmp0_elvis_lhs;
|
|
4899
4943
|
}
|
|
4900
4944
|
function patched($this, $receiver, annotations) {
|
|
4901
|
-
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().
|
|
4945
|
+
var tmp0_safe_receiver = AsyncAPIAnnotations_getInstance().t4q(annotations, 'AsyncAPISchema');
|
|
4902
4946
|
var tmp;
|
|
4903
4947
|
if (tmp0_safe_receiver == null) {
|
|
4904
4948
|
tmp = null;
|
|
4905
4949
|
} else {
|
|
4906
4950
|
// Inline function 'kotlin.let' call
|
|
4907
|
-
var tmp0_safe_receiver_0 = AsyncAPIAnnotations_getInstance().
|
|
4908
|
-
var replacement = tmp0_safe_receiver_0 == null ? null : AsyncAPIAnnotations_getInstance().
|
|
4951
|
+
var tmp0_safe_receiver_0 = AsyncAPIAnnotations_getInstance().v4q(tmp0_safe_receiver);
|
|
4952
|
+
var replacement = tmp0_safe_receiver_0 == null ? null : AsyncAPIAnnotations_getInstance().l4q(tmp0_safe_receiver_0);
|
|
4909
4953
|
var tmp_0;
|
|
4910
4954
|
var tmp_1;
|
|
4911
4955
|
if (replacement == null) {
|
|
@@ -4915,7 +4959,7 @@ function patched($this, $receiver, annotations) {
|
|
|
4915
4959
|
}
|
|
4916
4960
|
if (tmp_1) {
|
|
4917
4961
|
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().
|
|
4962
|
+
tmp_0 = new JsonObject(minus(plus_0(plus_0(tmp_2, orEmpty(replacement instanceof JsonObject ? replacement : null)), minus_0(AsyncAPIAnnotations_getInstance().w4q(tmp0_safe_receiver), 'omit')), toSet(omitted($this, tmp0_safe_receiver))));
|
|
4919
4963
|
} else {
|
|
4920
4964
|
tmp_0 = replacement;
|
|
4921
4965
|
}
|
|
@@ -4926,14 +4970,14 @@ function patched($this, $receiver, annotations) {
|
|
|
4926
4970
|
}
|
|
4927
4971
|
function omitted($this, $receiver) {
|
|
4928
4972
|
// Inline function 'kotlin.collections.find' call
|
|
4929
|
-
var tmp0 = $receiver.
|
|
4973
|
+
var tmp0 = $receiver.r1a_1;
|
|
4930
4974
|
var tmp$ret$1;
|
|
4931
4975
|
$l$block: {
|
|
4932
4976
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
4933
4977
|
var _iterator__ex2g4s = tmp0.t();
|
|
4934
4978
|
while (_iterator__ex2g4s.u()) {
|
|
4935
4979
|
var element = _iterator__ex2g4s.v();
|
|
4936
|
-
if (element.
|
|
4980
|
+
if (element.s1a_1 === 'omit') {
|
|
4937
4981
|
tmp$ret$1 = element;
|
|
4938
4982
|
break $l$block;
|
|
4939
4983
|
}
|
|
@@ -4941,8 +4985,8 @@ function omitted($this, $receiver) {
|
|
|
4941
4985
|
tmp$ret$1 = null;
|
|
4942
4986
|
}
|
|
4943
4987
|
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().
|
|
4988
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t1a_1;
|
|
4989
|
+
var tmp = tmp1_safe_receiver == null ? null : AsyncAPIAnnotations_getInstance().l4q(tmp1_safe_receiver);
|
|
4946
4990
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4947
4991
|
var tmp0_elvis_lhs = tmp instanceof JsonArray ? tmp : null;
|
|
4948
4992
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -4954,7 +4998,7 @@ function omitted($this, $receiver) {
|
|
|
4954
4998
|
while (_iterator__ex2g4s_0.u()) {
|
|
4955
4999
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
4956
5000
|
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.
|
|
5001
|
+
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.m1i();
|
|
4958
5002
|
if (tmp0_safe_receiver_1 == null)
|
|
4959
5003
|
null;
|
|
4960
5004
|
else {
|
|
@@ -4967,19 +5011,19 @@ function omitted($this, $receiver) {
|
|
|
4967
5011
|
function toJson($this, $receiver) {
|
|
4968
5012
|
var tmp;
|
|
4969
5013
|
if ($receiver instanceof StringValue) {
|
|
4970
|
-
tmp = JsonPrimitive_0($receiver.
|
|
5014
|
+
tmp = JsonPrimitive_0($receiver.c1b_1);
|
|
4971
5015
|
} else {
|
|
4972
5016
|
if ($receiver instanceof IntegerValue) {
|
|
4973
|
-
tmp = toJsonNumber($receiver.
|
|
5017
|
+
tmp = toJsonNumber($receiver.a1b_1);
|
|
4974
5018
|
} else {
|
|
4975
5019
|
if ($receiver instanceof NumberValue) {
|
|
4976
|
-
tmp = toJsonNumber($receiver.
|
|
5020
|
+
tmp = toJsonNumber($receiver.z1a_1);
|
|
4977
5021
|
} else {
|
|
4978
5022
|
if ($receiver instanceof BooleanValue) {
|
|
4979
|
-
tmp = JsonPrimitive($receiver.
|
|
5023
|
+
tmp = JsonPrimitive($receiver.b1b_1);
|
|
4980
5024
|
} else {
|
|
4981
5025
|
if ($receiver instanceof EnumValue) {
|
|
4982
|
-
tmp = JsonPrimitive_0($receiver.
|
|
5026
|
+
tmp = JsonPrimitive_0($receiver.y1a_1);
|
|
4983
5027
|
} else {
|
|
4984
5028
|
if ($receiver instanceof NullValue) {
|
|
4985
5029
|
tmp = JsonNull_getInstance();
|
|
@@ -5004,15 +5048,15 @@ function nullable($this, $receiver) {
|
|
|
5004
5048
|
if (tmp_0) {
|
|
5005
5049
|
tmp = $receiver;
|
|
5006
5050
|
} else {
|
|
5007
|
-
var type = $receiver.
|
|
5051
|
+
var type = $receiver.ld('type');
|
|
5008
5052
|
var tmp_1;
|
|
5009
5053
|
if (type instanceof JsonArray) {
|
|
5010
|
-
tmp_1 = type.
|
|
5054
|
+
tmp_1 = type.d2p(Companion_getInstance_1().j4u_1) ? $receiver : new JsonObject(plus_4($receiver, to('type', new JsonArray(plus_2(type, Companion_getInstance_1().j4u_1)))));
|
|
5011
5055
|
} else {
|
|
5012
5056
|
if (type instanceof JsonPrimitive_1) {
|
|
5013
|
-
tmp_1 = equals(type, Companion_getInstance_1().
|
|
5057
|
+
tmp_1 = equals(type, Companion_getInstance_1().j4u_1) ? $receiver : new JsonObject(plus_4($receiver, to('type', new JsonArray(listOf_0([type, Companion_getInstance_1().j4u_1])))));
|
|
5014
5058
|
} else {
|
|
5015
|
-
tmp_1 = jsonObjectOf([to('oneOf', new JsonArray(listOf_0([$receiver, Companion_getInstance_1().
|
|
5059
|
+
tmp_1 = jsonObjectOf([to('oneOf', new JsonArray(listOf_0([$receiver, Companion_getInstance_1().k4u_1])))]);
|
|
5016
5060
|
}
|
|
5017
5061
|
}
|
|
5018
5062
|
tmp = tmp_1;
|
|
@@ -5023,37 +5067,37 @@ function toPattern($this, $receiver) {
|
|
|
5023
5067
|
// Inline function 'kotlin.let' call
|
|
5024
5068
|
var pattern = substringBeforeLast(substringAfter($receiver, _Char___init__impl__6a9atx(47)), _Char___init__impl__6a9atx(47));
|
|
5025
5069
|
var tmp = Regex_init_$Create$('\\\\.');
|
|
5026
|
-
return tmp.
|
|
5070
|
+
return tmp.bd(pattern, JsonSchemaWriter$toPattern$lambda);
|
|
5027
5071
|
}
|
|
5028
5072
|
function Companion_1() {
|
|
5029
|
-
|
|
5030
|
-
this.
|
|
5031
|
-
this.
|
|
5073
|
+
Companion_instance_4 = this;
|
|
5074
|
+
this.j4u_1 = JsonPrimitive_0('null');
|
|
5075
|
+
this.k4u_1 = new JsonObject(mapOf(to('type', this.j4u_1)));
|
|
5032
5076
|
}
|
|
5033
|
-
var
|
|
5077
|
+
var Companion_instance_4;
|
|
5034
5078
|
function Companion_getInstance_1() {
|
|
5035
|
-
if (
|
|
5079
|
+
if (Companion_instance_4 == null)
|
|
5036
5080
|
new Companion_1();
|
|
5037
|
-
return
|
|
5081
|
+
return Companion_instance_4;
|
|
5038
5082
|
}
|
|
5039
5083
|
function JsonSchemaWriter$toPattern$lambda(it) {
|
|
5040
5084
|
return it.o1() === '\\/' ? '/' : it.o1();
|
|
5041
5085
|
}
|
|
5042
5086
|
function JsonSchemaWriter(inlineDefinition, componentKey) {
|
|
5043
5087
|
Companion_getInstance_1();
|
|
5044
|
-
this.
|
|
5045
|
-
this.
|
|
5088
|
+
this.o4r_1 = inlineDefinition;
|
|
5089
|
+
this.p4r_1 = componentKey;
|
|
5046
5090
|
}
|
|
5047
|
-
protoOf(JsonSchemaWriter).
|
|
5091
|
+
protoOf(JsonSchemaWriter).r4r = function (_this__u8e3s4) {
|
|
5048
5092
|
return schema(this, _this__u8e3s4, emptySet());
|
|
5049
5093
|
};
|
|
5050
|
-
protoOf(JsonSchemaWriter).
|
|
5094
|
+
protoOf(JsonSchemaWriter).b4u = function (_this__u8e3s4) {
|
|
5051
5095
|
return canonical(this, _this__u8e3s4, emptySet());
|
|
5052
5096
|
};
|
|
5053
|
-
protoOf(JsonSchemaWriter).
|
|
5097
|
+
protoOf(JsonSchemaWriter).z4t = function (_this__u8e3s4) {
|
|
5054
5098
|
return canonical_0(this, _this__u8e3s4, emptySet());
|
|
5055
5099
|
};
|
|
5056
|
-
protoOf(JsonSchemaWriter).
|
|
5100
|
+
protoOf(JsonSchemaWriter).q4r = function (_this__u8e3s4) {
|
|
5057
5101
|
return schema_1(this, _this__u8e3s4, emptySet());
|
|
5058
5102
|
};
|
|
5059
5103
|
function escapePointer(_this__u8e3s4) {
|
|
@@ -5088,7 +5132,7 @@ function schemaPatch(canonical, original) {
|
|
|
5088
5132
|
var key = element.n1();
|
|
5089
5133
|
// Inline function 'kotlin.collections.component2' call
|
|
5090
5134
|
var value = element.o1();
|
|
5091
|
-
if (!equals(canonical.
|
|
5135
|
+
if (!equals(canonical.ld(key), value)) {
|
|
5092
5136
|
destination.x(element);
|
|
5093
5137
|
}
|
|
5094
5138
|
}
|
|
@@ -5105,9 +5149,9 @@ function schemaPatch(canonical, original) {
|
|
|
5105
5149
|
}
|
|
5106
5150
|
}
|
|
5107
5151
|
var _destruct__k2r9zo = new Pair(first, second);
|
|
5108
|
-
var positional = _destruct__k2r9zo.
|
|
5109
|
-
var named = _destruct__k2r9zo.
|
|
5110
|
-
var omitted = minus_1(canonical.
|
|
5152
|
+
var positional = _destruct__k2r9zo.af();
|
|
5153
|
+
var named = _destruct__k2r9zo.bf();
|
|
5154
|
+
var omitted = minus_1(canonical.u2(), original.u2());
|
|
5111
5155
|
// Inline function 'kotlin.takeIf' call
|
|
5112
5156
|
var tmp_1;
|
|
5113
5157
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
@@ -5133,9 +5177,9 @@ function schemaPatch(canonical, original) {
|
|
|
5133
5177
|
// Inline function 'kotlin.collections.toPair' call
|
|
5134
5178
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5135
5179
|
var pair = new Pair(element_1.n1(), element_1.o1());
|
|
5136
|
-
destination_0.
|
|
5180
|
+
destination_0.w2(pair.gf_1, pair.hf_1);
|
|
5137
5181
|
}
|
|
5138
|
-
tmp_2 = new Parameter('default', tmp_3.
|
|
5182
|
+
tmp_2 = new Parameter('default', tmp_3.s4q(new JsonObject(destination_0)));
|
|
5139
5183
|
}
|
|
5140
5184
|
var tmp_4 = listOfNotNull(tmp_2);
|
|
5141
5185
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -5148,7 +5192,7 @@ function schemaPatch(canonical, original) {
|
|
|
5148
5192
|
var key_0 = item.n1();
|
|
5149
5193
|
// Inline function 'kotlin.collections.component2' call
|
|
5150
5194
|
var value_0 = item.o1();
|
|
5151
|
-
var tmp$ret$19 = AsyncAPIAnnotations_getInstance().
|
|
5195
|
+
var tmp$ret$19 = AsyncAPIAnnotations_getInstance().p4q(key_0, AsyncAPIAnnotations_getInstance().s4q(value_0));
|
|
5152
5196
|
destination_1.x(tmp$ret$19);
|
|
5153
5197
|
}
|
|
5154
5198
|
var tmp_5 = plus(tmp_4, destination_1);
|
|
@@ -5177,11 +5221,11 @@ function schemaPatch(canonical, original) {
|
|
|
5177
5221
|
var tmp$ret$29 = JsonPrimitive_0(item_0);
|
|
5178
5222
|
destination_2.x(tmp$ret$29);
|
|
5179
5223
|
}
|
|
5180
|
-
tmp_7 = tmp_8.
|
|
5224
|
+
tmp_7 = tmp_8.p4q('omit', tmp_9.s4q(new JsonArray(destination_2)));
|
|
5181
5225
|
}
|
|
5182
5226
|
tmp = new Annotation('AsyncAPISchema', plus(tmp_5, listOfNotNull(tmp_7)));
|
|
5183
5227
|
} else {
|
|
5184
|
-
tmp = new Annotation('AsyncAPISchema', listOf(new Parameter('default', AsyncAPIAnnotations_getInstance().
|
|
5228
|
+
tmp = new Annotation('AsyncAPISchema', listOf(new Parameter('default', AsyncAPIAnnotations_getInstance().s4q(original))));
|
|
5185
5229
|
}
|
|
5186
5230
|
}
|
|
5187
5231
|
return tmp;
|
|
@@ -5196,8 +5240,8 @@ function jsonObjectOf(entries) {
|
|
|
5196
5240
|
while (inductionVariable < last) {
|
|
5197
5241
|
var element = entries[inductionVariable];
|
|
5198
5242
|
inductionVariable = inductionVariable + 1 | 0;
|
|
5199
|
-
var key = element.
|
|
5200
|
-
var value = element.
|
|
5243
|
+
var key = element.af();
|
|
5244
|
+
var value = element.bf();
|
|
5201
5245
|
var tmp;
|
|
5202
5246
|
if (value == null) {
|
|
5203
5247
|
tmp = null;
|
|
@@ -5251,7 +5295,7 @@ function toJsonNumber(_this__u8e3s4) {
|
|
|
5251
5295
|
var tmp;
|
|
5252
5296
|
try {
|
|
5253
5297
|
// Inline function 'kotlin.Companion.success' call
|
|
5254
|
-
var value = Default_getInstance().
|
|
5298
|
+
var value = Default_getInstance().u2m(_this__u8e3s4);
|
|
5255
5299
|
tmp = _Result___init__impl__xyqfz8(value);
|
|
5256
5300
|
} catch ($p) {
|
|
5257
5301
|
var tmp_0;
|
|
@@ -5279,16 +5323,16 @@ function toWirespec(_this__u8e3s4) {
|
|
|
5279
5323
|
tmp = 'Unit';
|
|
5280
5324
|
} else {
|
|
5281
5325
|
if (_this__u8e3s4 instanceof Custom) {
|
|
5282
|
-
tmp = _this__u8e3s4.
|
|
5326
|
+
tmp = _this__u8e3s4.b1a_1;
|
|
5283
5327
|
} else {
|
|
5284
5328
|
if (_this__u8e3s4 instanceof Dict_0) {
|
|
5285
|
-
tmp = '{ ' + toWirespec(_this__u8e3s4.
|
|
5329
|
+
tmp = '{ ' + toWirespec(_this__u8e3s4.cq_1) + ' }';
|
|
5286
5330
|
} else {
|
|
5287
5331
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
5288
|
-
tmp = toWirespec(_this__u8e3s4.
|
|
5332
|
+
tmp = toWirespec(_this__u8e3s4.zp_1) + '[]';
|
|
5289
5333
|
} else {
|
|
5290
5334
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
5291
|
-
var type = _this__u8e3s4.
|
|
5335
|
+
var type = _this__u8e3s4.d1a_1;
|
|
5292
5336
|
var tmp_0;
|
|
5293
5337
|
if (type instanceof String_0) {
|
|
5294
5338
|
tmp_0 = 'String';
|
|
@@ -5300,10 +5344,10 @@ function toWirespec(_this__u8e3s4) {
|
|
|
5300
5344
|
tmp_0 = 'Bytes';
|
|
5301
5345
|
} else {
|
|
5302
5346
|
if (type instanceof Integer) {
|
|
5303
|
-
tmp_0 = type.
|
|
5347
|
+
tmp_0 = type.l1a_1.equals(Precision_P32_getInstance()) ? 'Integer32' : 'Integer';
|
|
5304
5348
|
} else {
|
|
5305
5349
|
if (type instanceof Number_0) {
|
|
5306
|
-
tmp_0 = type.
|
|
5350
|
+
tmp_0 = type.g1a_1.equals(Precision_P32_getInstance()) ? 'Number32' : 'Number';
|
|
5307
5351
|
} else {
|
|
5308
5352
|
noWhenBranchMatchedException();
|
|
5309
5353
|
}
|
|
@@ -5320,7 +5364,34 @@ function toWirespec(_this__u8e3s4) {
|
|
|
5320
5364
|
}
|
|
5321
5365
|
}
|
|
5322
5366
|
}
|
|
5323
|
-
return tmp + (_this__u8e3s4.ot() ? '?' : '');
|
|
5367
|
+
return tmp + (_this__u8e3s4.ot() ? '?' : '') + emitFormat(_this__u8e3s4);
|
|
5368
|
+
}
|
|
5369
|
+
function emitFormat(_this__u8e3s4) {
|
|
5370
|
+
var tmp0_safe_receiver = _this__u8e3s4 instanceof Primitive ? _this__u8e3s4 : null;
|
|
5371
|
+
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d1a_1;
|
|
5372
|
+
var tmp1_safe_receiver = tmp instanceof String_0 ? tmp : null;
|
|
5373
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o1a_1;
|
|
5374
|
+
var tmp_0;
|
|
5375
|
+
var tmp_1 = tmp2_safe_receiver;
|
|
5376
|
+
if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
|
|
5377
|
+
tmp_0 = null;
|
|
5378
|
+
} else {
|
|
5379
|
+
var tmp_2 = tmp2_safe_receiver;
|
|
5380
|
+
// Inline function 'kotlin.let' call
|
|
5381
|
+
var p0 = (tmp_2 == null ? null : new RegExp_0(tmp_2)).d1b_1;
|
|
5382
|
+
tmp_0 = Companion_instance_1.b1g(p0);
|
|
5383
|
+
}
|
|
5384
|
+
var tmp3_safe_receiver = tmp_0;
|
|
5385
|
+
var tmp_3;
|
|
5386
|
+
if (tmp3_safe_receiver == null) {
|
|
5387
|
+
tmp_3 = null;
|
|
5388
|
+
} else {
|
|
5389
|
+
// Inline function 'kotlin.let' call
|
|
5390
|
+
tmp_3 = '(' + tmp3_safe_receiver.rt_1 + ')';
|
|
5391
|
+
}
|
|
5392
|
+
// Inline function 'kotlin.text.orEmpty' call
|
|
5393
|
+
var tmp0_elvis_lhs = tmp_3;
|
|
5394
|
+
return tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
5324
5395
|
}
|
|
5325
5396
|
function toReference(_this__u8e3s4) {
|
|
5326
5397
|
// Inline function 'kotlin.text.trim' call
|
|
@@ -5328,11 +5399,22 @@ function toReference(_this__u8e3s4) {
|
|
|
5328
5399
|
var source = toString_0(trim(isCharSequence(_this__u8e3s4) ? _this__u8e3s4 : THROW_CCE()));
|
|
5329
5400
|
var tmp;
|
|
5330
5401
|
if (endsWith(source, '?')) {
|
|
5331
|
-
tmp = toReference(dropLast(source, 1)).
|
|
5402
|
+
tmp = toReference(dropLast(source, 1)).x1a(true);
|
|
5332
5403
|
} else if (endsWith(source, '[]')) {
|
|
5333
5404
|
tmp = new Iterable(toReference(dropLast(source, 2)), false);
|
|
5334
5405
|
} else if (startsWith(source, '{') && endsWith(source, '}')) {
|
|
5335
5406
|
tmp = new Dict_0(toReference(dropLast(drop_0(source, 1), 1)), false);
|
|
5407
|
+
} else if (endsWith(source, ')')) {
|
|
5408
|
+
var tmp_0 = Companion_instance_1;
|
|
5409
|
+
// Inline function 'kotlin.text.trim' call
|
|
5410
|
+
var this_0 = dropLast(substringAfter(source, _Char___init__impl__6a9atx(40)), 1);
|
|
5411
|
+
var tmp$ret$3 = toString_0(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
5412
|
+
var tmp0_safe_receiver = tmp_0.au(tmp$ret$3);
|
|
5413
|
+
var tmp_1 = new String_0(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.st_1);
|
|
5414
|
+
// Inline function 'kotlin.text.trim' call
|
|
5415
|
+
var this_1 = substringBefore(source, _Char___init__impl__6a9atx(40));
|
|
5416
|
+
var tmp$ret$4 = toString_0(trim(isCharSequence(this_1) ? this_1 : THROW_CCE()));
|
|
5417
|
+
tmp = new Primitive(tmp_1, endsWith(tmp$ret$4, '?'));
|
|
5336
5418
|
} else {
|
|
5337
5419
|
switch (source) {
|
|
5338
5420
|
case 'Any':
|