@flock/wirespec 0.16.5 → 0.16.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/clikt-clikt.mjs +1129 -1129
- package/colormath-root-colormath.mjs +400 -400
- package/kotlin-kotlin-stdlib.mjs +19 -19
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1764 -1764
- package/kotlinx-io-kotlinx-io-core.mjs +2 -2
- package/markdown.mjs +1796 -1796
- package/mordant-mordant.mjs +1531 -1531
- package/package.json +5 -1
- package/wirespec-serialization.d.ts +3 -0
- package/wirespec-serialization.mjs +17 -0
- package/wirespec-src-compiler-core.mjs +2935 -2770
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +176 -262
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +179 -179
- package/wirespec-src-compiler-emitters-python.mjs +162 -162
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +772 -626
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +57 -57
- package/wirespec-src-compiler-lib.mjs +312 -312
- package/wirespec-src-converter-avro.mjs +32 -32
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +197 -197
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +223 -249
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +75 -75
- package/wirespec-src-plugin-npm.d.ts +1 -1
- package/wirespec-src-plugin-npm.mjs +12 -11
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +25 -25
- package/fetch.ts +0 -0
|
@@ -213,7 +213,7 @@ initMetadataForClass(FlattenResponse_0, 'FlattenResponse');
|
|
|
213
213
|
initMetadataForObject(OpenAPIV3Parser, 'OpenAPIV3Parser');
|
|
214
214
|
//endregion
|
|
215
215
|
function Common$className$lambda(it) {
|
|
216
|
-
return Companion_instance.
|
|
216
|
+
return Companion_instance.z23(it);
|
|
217
217
|
}
|
|
218
218
|
function Common$json$lambda($this$Json) {
|
|
219
219
|
$this$Json.g16_1 = true;
|
|
@@ -282,7 +282,7 @@ function Common_getInstance() {
|
|
|
282
282
|
return Common_instance;
|
|
283
283
|
}
|
|
284
284
|
function toProperties(_this__u8e3s4, $this) {
|
|
285
|
-
return to(_this__u8e3s4.
|
|
285
|
+
return to(_this__u8e3s4.v26_1.b1(), toSchemaOrReference(_this__u8e3s4.w26_1, $this));
|
|
286
286
|
}
|
|
287
287
|
function emit(_this__u8e3s4, $this, method) {
|
|
288
288
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -293,7 +293,7 @@ function emit(_this__u8e3s4, $this, method) {
|
|
|
293
293
|
while (tmp0_iterator.h()) {
|
|
294
294
|
var element = tmp0_iterator.i();
|
|
295
295
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
296
|
-
if (element.
|
|
296
|
+
if (element.i25_1.equals(method)) {
|
|
297
297
|
destination.e(element);
|
|
298
298
|
}
|
|
299
299
|
}
|
|
@@ -309,8 +309,8 @@ function emit(_this__u8e3s4, $this, method) {
|
|
|
309
309
|
return firstOrNull(destination_0);
|
|
310
310
|
}
|
|
311
311
|
function emit_0(_this__u8e3s4, $this) {
|
|
312
|
-
var tmp1_operationId = _this__u8e3s4.
|
|
313
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
312
|
+
var tmp1_operationId = _this__u8e3s4.h25_1.b1();
|
|
313
|
+
var tmp0_safe_receiver = _this__u8e3s4.g25_1;
|
|
314
314
|
var tmp;
|
|
315
315
|
var tmp_0 = tmp0_safe_receiver;
|
|
316
316
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -322,7 +322,7 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
322
322
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
323
323
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
324
324
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
325
|
-
var this_0 = _this__u8e3s4.
|
|
325
|
+
var this_0 = _this__u8e3s4.m25_1;
|
|
326
326
|
var destination = ArrayList_init_$Create$();
|
|
327
327
|
// Inline function 'kotlin.collections.forEach' call
|
|
328
328
|
var tmp0_iterator = this_0.g();
|
|
@@ -330,8 +330,8 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
330
330
|
var element = tmp0_iterator.i();
|
|
331
331
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
332
332
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
333
|
-
var tmp0_safe_receiver_0 = element.
|
|
334
|
-
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.
|
|
333
|
+
var tmp0_safe_receiver_0 = element.x26_1;
|
|
334
|
+
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.y26_1;
|
|
335
335
|
if (tmp0_safe_receiver_1 == null)
|
|
336
336
|
null;
|
|
337
337
|
else {
|
|
@@ -353,7 +353,7 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
353
353
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
354
354
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
355
355
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
356
|
-
var this_2 = _this__u8e3s4.
|
|
356
|
+
var this_2 = _this__u8e3s4.n25_1;
|
|
357
357
|
var destination_0 = ArrayList_init_$Create$();
|
|
358
358
|
// Inline function 'kotlin.collections.forEach' call
|
|
359
359
|
var tmp0_iterator_0 = this_2.g();
|
|
@@ -361,8 +361,8 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
361
361
|
var element_0 = tmp0_iterator_0.i();
|
|
362
362
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
363
363
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
364
|
-
var tmp0_safe_receiver_2 = element_0.
|
|
365
|
-
var tmp0_safe_receiver_3 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.
|
|
364
|
+
var tmp0_safe_receiver_2 = element_0.t26_1;
|
|
365
|
+
var tmp0_safe_receiver_3 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.y26_1;
|
|
366
366
|
if (tmp0_safe_receiver_3 == null)
|
|
367
367
|
null;
|
|
368
368
|
else {
|
|
@@ -384,7 +384,7 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
384
384
|
// Inline function 'kotlin.collections.map' call
|
|
385
385
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
386
386
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
387
|
-
var this_4 = _this__u8e3s4.
|
|
387
|
+
var this_4 = _this__u8e3s4.m25_1;
|
|
388
388
|
var destination_1 = ArrayList_init_$Create$();
|
|
389
389
|
// Inline function 'kotlin.collections.forEach' call
|
|
390
390
|
var tmp0_iterator_1 = this_4.g();
|
|
@@ -392,7 +392,7 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
392
392
|
var element_1 = tmp0_iterator_1.i();
|
|
393
393
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
394
394
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
395
|
-
var tmp0_safe_receiver_4 = element_1.
|
|
395
|
+
var tmp0_safe_receiver_4 = element_1.x26_1;
|
|
396
396
|
if (tmp0_safe_receiver_4 == null)
|
|
397
397
|
null;
|
|
398
398
|
else {
|
|
@@ -409,14 +409,14 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
409
409
|
var item = tmp0_iterator_2.i();
|
|
410
410
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
411
411
|
var tmp0_in = ParameterLocation_BODY_getInstance();
|
|
412
|
-
var tmp1_schema = toSchemaOrReference(item.
|
|
413
|
-
var tmp2_required = !item.
|
|
412
|
+
var tmp1_schema = toSchemaOrReference(item.z26_1, OpenAPIV2Emitter_getInstance());
|
|
413
|
+
var tmp2_required = !item.z26_1.hm();
|
|
414
414
|
var tmp$ret$16 = new ParameterObject('RequestBody', tmp0_in, VOID, tmp2_required, tmp1_schema);
|
|
415
415
|
destination_2.e(tmp$ret$16);
|
|
416
416
|
}
|
|
417
417
|
var tmp_3 = destination_2;
|
|
418
418
|
// Inline function 'kotlin.collections.map' call
|
|
419
|
-
var this_6 = _this__u8e3s4.
|
|
419
|
+
var this_6 = _this__u8e3s4.k25_1;
|
|
420
420
|
// Inline function 'kotlin.collections.mapTo' call
|
|
421
421
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_6, 10));
|
|
422
422
|
var tmp0_iterator_3 = this_6.g();
|
|
@@ -428,7 +428,7 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
428
428
|
}
|
|
429
429
|
var tmp_4 = plus(tmp_3, destination_3);
|
|
430
430
|
// Inline function 'kotlin.collections.map' call
|
|
431
|
-
var this_7 = _this__u8e3s4.
|
|
431
|
+
var this_7 = _this__u8e3s4.l25_1;
|
|
432
432
|
// Inline function 'kotlin.collections.mapTo' call
|
|
433
433
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_7, 10));
|
|
434
434
|
var tmp0_iterator_4 = this_7.g();
|
|
@@ -440,7 +440,7 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
440
440
|
}
|
|
441
441
|
var tmp5_parameters = plus(tmp_4, destination_4);
|
|
442
442
|
// Inline function 'kotlin.collections.associate' call
|
|
443
|
-
var this_8 = _this__u8e3s4.
|
|
443
|
+
var this_8 = _this__u8e3s4.n25_1;
|
|
444
444
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_8, 10)), 16);
|
|
445
445
|
// Inline function 'kotlin.collections.associateTo' call
|
|
446
446
|
var destination_5 = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -449,8 +449,8 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
449
449
|
var element_2 = tmp0_iterator_5.i();
|
|
450
450
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
451
451
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
452
|
-
var tmp_5 = _StatusCode___init__impl__t1yi9q(element_2.
|
|
453
|
-
var tmp0_safe_receiver_5 = _this__u8e3s4.
|
|
452
|
+
var tmp_5 = _StatusCode___init__impl__t1yi9q(element_2.r26_1);
|
|
453
|
+
var tmp0_safe_receiver_5 = _this__u8e3s4.g25_1;
|
|
454
454
|
var tmp_6;
|
|
455
455
|
var tmp_7 = tmp0_safe_receiver_5;
|
|
456
456
|
if ((tmp_7 == null ? null : new Comment(tmp_7)) == null) {
|
|
@@ -459,9 +459,9 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
459
459
|
tmp_6 = _Comment___get_value__impl__8r3pla(tmp0_safe_receiver_5);
|
|
460
460
|
}
|
|
461
461
|
var tmp1_elvis_lhs = tmp_6;
|
|
462
|
-
var tmp4_description = tmp1_elvis_lhs == null ? _this__u8e3s4.
|
|
462
|
+
var tmp4_description = tmp1_elvis_lhs == null ? _this__u8e3s4.h25_1.b1() + ' ' + element_2.r26_1 + ' response' : tmp1_elvis_lhs;
|
|
463
463
|
// Inline function 'kotlin.collections.associate' call
|
|
464
|
-
var this_9 = element_2.
|
|
464
|
+
var this_9 = element_2.s26_1;
|
|
465
465
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_9, 10)), 16);
|
|
466
466
|
// Inline function 'kotlin.collections.associateTo' call
|
|
467
467
|
var destination_6 = LinkedHashMap_init_$Create$(capacity_0);
|
|
@@ -470,18 +470,18 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
470
470
|
var element_3 = tmp0_iterator_6.i();
|
|
471
471
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
472
472
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
473
|
-
var tmp_8 = element_3.
|
|
474
|
-
var tmp2_type = emitType_0(element_3.
|
|
475
|
-
var tmp3_format = emitFormat(element_3.
|
|
476
|
-
var tmp4_pattern = emitPattern(element_3.
|
|
477
|
-
var tmp_9 = element_3.
|
|
473
|
+
var tmp_8 = element_3.v26_1.b1();
|
|
474
|
+
var tmp2_type = emitType_0(element_3.w26_1, OpenAPIV2Emitter_getInstance());
|
|
475
|
+
var tmp3_format = emitFormat(element_3.w26_1, OpenAPIV2Emitter_getInstance());
|
|
476
|
+
var tmp4_pattern = emitPattern(element_3.w26_1, OpenAPIV2Emitter_getInstance());
|
|
477
|
+
var tmp_9 = element_3.w26_1;
|
|
478
478
|
var tmp0_safe_receiver_6 = tmp_9 instanceof Iterable ? tmp_9 : null;
|
|
479
|
-
var tmp1_safe_receiver = tmp0_safe_receiver_6 == null ? null : tmp0_safe_receiver_6.
|
|
479
|
+
var tmp1_safe_receiver = tmp0_safe_receiver_6 == null ? null : tmp0_safe_receiver_6.o23_1;
|
|
480
480
|
var tmp5_items = tmp1_safe_receiver == null ? null : toSchemaOrReference(tmp1_safe_receiver, OpenAPIV2Emitter_getInstance());
|
|
481
481
|
var pair = to(tmp_8, new HeaderObject(VOID, tmp2_type, tmp3_format, tmp5_items, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp4_pattern));
|
|
482
482
|
destination_6.n2(pair.ee_1, pair.fe_1);
|
|
483
483
|
}
|
|
484
|
-
var tmp2_safe_receiver = element_2.
|
|
484
|
+
var tmp2_safe_receiver = element_2.t26_1;
|
|
485
485
|
var tmp_10;
|
|
486
486
|
if (tmp2_safe_receiver == null) {
|
|
487
487
|
tmp_10 = null;
|
|
@@ -490,7 +490,7 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
490
490
|
// Inline function 'kotlin.contracts.contract' call
|
|
491
491
|
var tmp_11;
|
|
492
492
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
493
|
-
var tmp_12 = tmp2_safe_receiver.
|
|
493
|
+
var tmp_12 = tmp2_safe_receiver.z26_1;
|
|
494
494
|
if (!(tmp_12 instanceof Unit)) {
|
|
495
495
|
tmp_11 = tmp2_safe_receiver;
|
|
496
496
|
} else {
|
|
@@ -506,10 +506,10 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
506
506
|
// Inline function 'kotlin.let' call
|
|
507
507
|
// Inline function 'kotlin.contracts.contract' call
|
|
508
508
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
509
|
-
var ref = tmp3_safe_receiver.
|
|
509
|
+
var ref = tmp3_safe_receiver.z26_1;
|
|
510
510
|
var tmp_14;
|
|
511
511
|
if (ref instanceof Iterable) {
|
|
512
|
-
tmp_14 = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), toSchemaOrReference(ref.
|
|
512
|
+
tmp_14 = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), toSchemaOrReference(ref.o23_1, OpenAPIV2Emitter_getInstance()));
|
|
513
513
|
} else {
|
|
514
514
|
tmp_14 = toSchemaOrReference(ref, OpenAPIV2Emitter_getInstance());
|
|
515
515
|
}
|
|
@@ -525,11 +525,11 @@ function emitSegment(_this__u8e3s4, $this) {
|
|
|
525
525
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenAPIV2Emitter$emitSegment$lambda);
|
|
526
526
|
}
|
|
527
527
|
function emitParameter(_this__u8e3s4, $this, location) {
|
|
528
|
-
var tmp0_name = _this__u8e3s4.
|
|
529
|
-
var tmp1_type = emitType_0(_this__u8e3s4.
|
|
530
|
-
var tmp2_format = emitFormat(_this__u8e3s4.
|
|
531
|
-
var tmp3_pattern = emitPattern(_this__u8e3s4.
|
|
532
|
-
var ref = _this__u8e3s4.
|
|
528
|
+
var tmp0_name = _this__u8e3s4.v26_1.b1();
|
|
529
|
+
var tmp1_type = emitType_0(_this__u8e3s4.w26_1, $this);
|
|
530
|
+
var tmp2_format = emitFormat(_this__u8e3s4.w26_1, $this);
|
|
531
|
+
var tmp3_pattern = emitPattern(_this__u8e3s4.w26_1, $this);
|
|
532
|
+
var ref = _this__u8e3s4.w26_1;
|
|
533
533
|
var tmp;
|
|
534
534
|
if (ref instanceof Iterable) {
|
|
535
535
|
var emit = toSchemaOrReference(ref, $this);
|
|
@@ -548,22 +548,22 @@ function emitParameter(_this__u8e3s4, $this, location) {
|
|
|
548
548
|
tmp = null;
|
|
549
549
|
}
|
|
550
550
|
var tmp4_items = tmp;
|
|
551
|
-
var tmp5_required = !_this__u8e3s4.
|
|
551
|
+
var tmp5_required = !_this__u8e3s4.w26_1.hm();
|
|
552
552
|
return new ParameterObject(tmp0_name, location, VOID, tmp5_required, VOID, tmp1_type, tmp4_items, tmp2_format, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_pattern);
|
|
553
553
|
}
|
|
554
554
|
function toSchemaOrReference(_this__u8e3s4, $this) {
|
|
555
555
|
var tmp;
|
|
556
556
|
if (_this__u8e3s4 instanceof Dict) {
|
|
557
|
-
tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_OBJECT_getInstance(), toSchemaOrReference(_this__u8e3s4.
|
|
557
|
+
tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_OBJECT_getInstance(), toSchemaOrReference(_this__u8e3s4.r23_1, $this));
|
|
558
558
|
} else {
|
|
559
559
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
560
|
-
tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), toSchemaOrReference(_this__u8e3s4.
|
|
560
|
+
tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), toSchemaOrReference(_this__u8e3s4.o23_1, $this));
|
|
561
561
|
} else {
|
|
562
562
|
if (_this__u8e3s4 instanceof Custom) {
|
|
563
|
-
tmp = new ReferenceObject(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.
|
|
563
|
+
tmp = new ReferenceObject(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.h29_1));
|
|
564
564
|
} else {
|
|
565
565
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
566
|
-
var tmp1_type = emitType(_this__u8e3s4.
|
|
566
|
+
var tmp1_type = emitType(_this__u8e3s4.l29_1, $this);
|
|
567
567
|
var tmp2_format = emitFormat(_this__u8e3s4, $this);
|
|
568
568
|
var tmp3_pattern = emitPattern(_this__u8e3s4, $this);
|
|
569
569
|
tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, tmp2_format, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_pattern, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_type);
|
|
@@ -619,7 +619,7 @@ function emitType_0(_this__u8e3s4, $this) {
|
|
|
619
619
|
tmp = Type_ARRAY_getInstance();
|
|
620
620
|
} else {
|
|
621
621
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
622
|
-
tmp = emitType(_this__u8e3s4.
|
|
622
|
+
tmp = emitType(_this__u8e3s4.l29_1, $this);
|
|
623
623
|
} else {
|
|
624
624
|
if (_this__u8e3s4 instanceof Custom) {
|
|
625
625
|
tmp = Type_OBJECT_getInstance();
|
|
@@ -642,11 +642,11 @@ function emitType_0(_this__u8e3s4, $this) {
|
|
|
642
642
|
function emitFormat(_this__u8e3s4, $this) {
|
|
643
643
|
var tmp;
|
|
644
644
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
645
|
-
var t = _this__u8e3s4.
|
|
645
|
+
var t = _this__u8e3s4.l29_1;
|
|
646
646
|
var tmp_0;
|
|
647
647
|
if (t instanceof Number_0) {
|
|
648
648
|
var tmp_1;
|
|
649
|
-
switch (t.
|
|
649
|
+
switch (t.t28_1.r2_1) {
|
|
650
650
|
case 0:
|
|
651
651
|
tmp_1 = 'float';
|
|
652
652
|
break;
|
|
@@ -661,7 +661,7 @@ function emitFormat(_this__u8e3s4, $this) {
|
|
|
661
661
|
} else {
|
|
662
662
|
if (t instanceof Integer) {
|
|
663
663
|
var tmp_2;
|
|
664
|
-
switch (t.
|
|
664
|
+
switch (t.q28_1.r2_1) {
|
|
665
665
|
case 0:
|
|
666
666
|
tmp_2 = 'int32';
|
|
667
667
|
break;
|
|
@@ -690,10 +690,10 @@ function emitFormat(_this__u8e3s4, $this) {
|
|
|
690
690
|
function emitPattern(_this__u8e3s4, $this) {
|
|
691
691
|
var tmp;
|
|
692
692
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
693
|
-
var t = _this__u8e3s4.
|
|
693
|
+
var t = _this__u8e3s4.l29_1;
|
|
694
694
|
var tmp_0;
|
|
695
695
|
if (t instanceof String_0) {
|
|
696
|
-
var p = t.
|
|
696
|
+
var p = t.o28_1;
|
|
697
697
|
var tmp_1;
|
|
698
698
|
var tmp_2 = p;
|
|
699
699
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2))instanceof RegExp_0) {
|
|
@@ -714,16 +714,16 @@ function emitPattern(_this__u8e3s4, $this) {
|
|
|
714
714
|
function emitMinimum(_this__u8e3s4, $this) {
|
|
715
715
|
var tmp;
|
|
716
716
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
717
|
-
var t = _this__u8e3s4.
|
|
717
|
+
var t = _this__u8e3s4.l29_1;
|
|
718
718
|
var tmp_0;
|
|
719
719
|
if (t instanceof Number_0) {
|
|
720
|
-
var tmp1_safe_receiver = t.
|
|
721
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
720
|
+
var tmp1_safe_receiver = t.u28_1;
|
|
721
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m28_1;
|
|
722
722
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
723
723
|
} else {
|
|
724
724
|
if (t instanceof Integer) {
|
|
725
|
-
var tmp3_safe_receiver = t.
|
|
726
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
725
|
+
var tmp3_safe_receiver = t.r28_1;
|
|
726
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.m28_1;
|
|
727
727
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
728
728
|
} else {
|
|
729
729
|
tmp_0 = null;
|
|
@@ -738,10 +738,10 @@ function emitMinimum(_this__u8e3s4, $this) {
|
|
|
738
738
|
function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
739
739
|
var tmp;
|
|
740
740
|
if (it instanceof Param) {
|
|
741
|
-
tmp = '{' + it.
|
|
741
|
+
tmp = '{' + it.o26_1.b1() + '}';
|
|
742
742
|
} else {
|
|
743
743
|
if (it instanceof Literal) {
|
|
744
|
-
tmp = it.
|
|
744
|
+
tmp = it.q26_1;
|
|
745
745
|
} else {
|
|
746
746
|
noWhenBranchMatchedException();
|
|
747
747
|
}
|
|
@@ -755,13 +755,13 @@ function OpenAPIV2Emitter() {
|
|
|
755
755
|
this.a2f_1 = null;
|
|
756
756
|
this.b2f_1 = '';
|
|
757
757
|
}
|
|
758
|
-
protoOf(OpenAPIV2Emitter).
|
|
758
|
+
protoOf(OpenAPIV2Emitter).k24 = function () {
|
|
759
759
|
return this.z2e_1;
|
|
760
760
|
};
|
|
761
|
-
protoOf(OpenAPIV2Emitter).
|
|
761
|
+
protoOf(OpenAPIV2Emitter).b26 = function () {
|
|
762
762
|
return this.b2f_1;
|
|
763
763
|
};
|
|
764
|
-
protoOf(OpenAPIV2Emitter).
|
|
764
|
+
protoOf(OpenAPIV2Emitter).g24 = function (module_0, logger) {
|
|
765
765
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
766
766
|
var this_0 = Common_getInstance().w2e_1;
|
|
767
767
|
var value = this.c2f(module_0);
|
|
@@ -773,26 +773,26 @@ protoOf(OpenAPIV2Emitter).s24 = function (module_0, logger) {
|
|
|
773
773
|
var tmp$ret$2 = this_0.k15(tmp$ret$1, value);
|
|
774
774
|
return nonEmptyListOf(new Emitted('SwaggerObject', tmp$ret$2), []);
|
|
775
775
|
};
|
|
776
|
-
protoOf(OpenAPIV2Emitter).
|
|
777
|
-
return this.
|
|
776
|
+
protoOf(OpenAPIV2Emitter).t25 = function (type, module_0) {
|
|
777
|
+
return this.c26();
|
|
778
778
|
};
|
|
779
|
-
protoOf(OpenAPIV2Emitter).
|
|
780
|
-
return this.
|
|
779
|
+
protoOf(OpenAPIV2Emitter).f25 = function (enum_0, module_0) {
|
|
780
|
+
return this.c26();
|
|
781
781
|
};
|
|
782
|
-
protoOf(OpenAPIV2Emitter).
|
|
783
|
-
return this.
|
|
782
|
+
protoOf(OpenAPIV2Emitter).b25 = function (refined) {
|
|
783
|
+
return this.c26();
|
|
784
784
|
};
|
|
785
|
-
protoOf(OpenAPIV2Emitter).
|
|
786
|
-
return this.
|
|
785
|
+
protoOf(OpenAPIV2Emitter).o25 = function (endpoint) {
|
|
786
|
+
return this.c26();
|
|
787
787
|
};
|
|
788
|
-
protoOf(OpenAPIV2Emitter).
|
|
789
|
-
return this.
|
|
788
|
+
protoOf(OpenAPIV2Emitter).x24 = function (union) {
|
|
789
|
+
return this.c26();
|
|
790
790
|
};
|
|
791
|
-
protoOf(OpenAPIV2Emitter).
|
|
792
|
-
return this.
|
|
791
|
+
protoOf(OpenAPIV2Emitter).s24 = function (identifier) {
|
|
792
|
+
return this.c26();
|
|
793
793
|
};
|
|
794
|
-
protoOf(OpenAPIV2Emitter).
|
|
795
|
-
return this.
|
|
794
|
+
protoOf(OpenAPIV2Emitter).t24 = function (channel) {
|
|
795
|
+
return this.c26();
|
|
796
796
|
};
|
|
797
797
|
protoOf(OpenAPIV2Emitter).c2f = function (module_0) {
|
|
798
798
|
var tmp = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, '0.0.0');
|
|
@@ -802,7 +802,7 @@ protoOf(OpenAPIV2Emitter).c2f = function (module_0) {
|
|
|
802
802
|
// Inline function 'kotlin.collections.groupBy' call
|
|
803
803
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
804
804
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
805
|
-
var this_0 = module_0.
|
|
805
|
+
var this_0 = module_0.d24_1;
|
|
806
806
|
var destination = ArrayList_init_$Create$();
|
|
807
807
|
var tmp0_iterator = this_0.g();
|
|
808
808
|
while (tmp0_iterator.h()) {
|
|
@@ -817,7 +817,7 @@ protoOf(OpenAPIV2Emitter).c2f = function (module_0) {
|
|
|
817
817
|
while (tmp0_iterator_0.h()) {
|
|
818
818
|
var element_0 = tmp0_iterator_0.i();
|
|
819
819
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
820
|
-
var key = element_0.
|
|
820
|
+
var key = element_0.j25_1;
|
|
821
821
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
822
822
|
var value = destination_0.g2(key);
|
|
823
823
|
var tmp_2;
|
|
@@ -862,11 +862,11 @@ protoOf(OpenAPIV2Emitter).c2f = function (module_0) {
|
|
|
862
862
|
var item_0 = tmp0_iterator_3.i();
|
|
863
863
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
864
864
|
var tmp0_in = ParameterLocation_PATH_getInstance();
|
|
865
|
-
var tmp1_name = item_0.
|
|
866
|
-
var tmp2_type = emitType_0(item_0.
|
|
867
|
-
var tmp3_format = emitFormat(item_0.
|
|
868
|
-
var tmp4_pattern = emitPattern(item_0.
|
|
869
|
-
var tmp5_minimum = emitMinimum(item_0.
|
|
865
|
+
var tmp1_name = item_0.o26_1.b1();
|
|
866
|
+
var tmp2_type = emitType_0(item_0.p26_1, OpenAPIV2Emitter_getInstance());
|
|
867
|
+
var tmp3_format = emitFormat(item_0.p26_1, OpenAPIV2Emitter_getInstance());
|
|
868
|
+
var tmp4_pattern = emitPattern(item_0.p26_1, OpenAPIV2Emitter_getInstance());
|
|
869
|
+
var tmp5_minimum = emitMinimum(item_0.p26_1, OpenAPIV2Emitter_getInstance());
|
|
870
870
|
var tmp$ret$12 = new ParameterObject(tmp1_name, tmp0_in, VOID, VOID, VOID, tmp2_type, VOID, tmp3_format, VOID, VOID, VOID, VOID, VOID, tmp5_minimum, VOID, VOID, VOID, tmp4_pattern);
|
|
871
871
|
destination_3.e(tmp$ret$12);
|
|
872
872
|
}
|
|
@@ -885,7 +885,7 @@ protoOf(OpenAPIV2Emitter).c2f = function (module_0) {
|
|
|
885
885
|
// Inline function 'kotlin.collections.associate' call
|
|
886
886
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
887
887
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
888
|
-
var this_1 = module_0.
|
|
888
|
+
var this_1 = module_0.d24_1;
|
|
889
889
|
var destination_4 = ArrayList_init_$Create$();
|
|
890
890
|
var tmp0_iterator_4 = this_1.g();
|
|
891
891
|
while (tmp0_iterator_4.h()) {
|
|
@@ -902,39 +902,39 @@ protoOf(OpenAPIV2Emitter).c2f = function (module_0) {
|
|
|
902
902
|
var element_3 = tmp0_iterator_5.i();
|
|
903
903
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
904
904
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
905
|
-
var type = element_3.
|
|
905
|
+
var type = element_3.a25_1.l29_1;
|
|
906
906
|
var tmp_5;
|
|
907
907
|
if (equals(type, Boolean_instance)) {
|
|
908
|
-
tmp_5 = to(element_3.
|
|
908
|
+
tmp_5 = to(element_3.z24_1.b1(), new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_BOOLEAN_getInstance()));
|
|
909
909
|
} else {
|
|
910
910
|
if (equals(type, Bytes_instance)) {
|
|
911
|
-
tmp_5 = to(element_3.
|
|
911
|
+
tmp_5 = to(element_3.z24_1.b1(), new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_FILE_getInstance()));
|
|
912
912
|
} else {
|
|
913
913
|
if (type instanceof Integer) {
|
|
914
|
-
var tmp_6 = element_3.
|
|
914
|
+
var tmp_6 = element_3.z24_1.b1();
|
|
915
915
|
var tmp4_type = Type_INTEGER_getInstance();
|
|
916
|
-
var tmp0_safe_receiver = type.
|
|
917
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
916
|
+
var tmp0_safe_receiver = type.r28_1;
|
|
917
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m28_1;
|
|
918
918
|
var tmp5_minimum_0 = tmp1_safe_receiver == null ? null : toDouble(tmp1_safe_receiver);
|
|
919
|
-
var tmp2_safe_receiver = type.
|
|
920
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
919
|
+
var tmp2_safe_receiver = type.r28_1;
|
|
920
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.m28_1;
|
|
921
921
|
var tmp6_maximum = tmp3_safe_receiver == null ? null : toDouble(tmp3_safe_receiver);
|
|
922
922
|
tmp_5 = to(tmp_6, new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp6_maximum, VOID, tmp5_minimum_0, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp4_type));
|
|
923
923
|
} else {
|
|
924
924
|
if (type instanceof Number_0) {
|
|
925
|
-
var tmp_7 = element_3.
|
|
925
|
+
var tmp_7 = element_3.z24_1.b1();
|
|
926
926
|
var tmp11_type = Type_NUMBER_getInstance();
|
|
927
|
-
var tmp7_safe_receiver = type.
|
|
928
|
-
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.
|
|
927
|
+
var tmp7_safe_receiver = type.u28_1;
|
|
928
|
+
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.m28_1;
|
|
929
929
|
var tmp12_minimum = tmp8_safe_receiver == null ? null : toDouble(tmp8_safe_receiver);
|
|
930
|
-
var tmp9_safe_receiver = type.
|
|
931
|
-
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.
|
|
930
|
+
var tmp9_safe_receiver = type.u28_1;
|
|
931
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.m28_1;
|
|
932
932
|
var tmp13_maximum = tmp10_safe_receiver == null ? null : toDouble(tmp10_safe_receiver);
|
|
933
933
|
tmp_5 = to(tmp_7, new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp13_maximum, VOID, tmp12_minimum, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp11_type));
|
|
934
934
|
} else {
|
|
935
935
|
if (type instanceof String_0) {
|
|
936
|
-
var tmp_8 = element_3.
|
|
937
|
-
var pattern = type.
|
|
936
|
+
var tmp_8 = element_3.z24_1.b1();
|
|
937
|
+
var pattern = type.o28_1;
|
|
938
938
|
var tmp_9;
|
|
939
939
|
var tmp_10 = pattern;
|
|
940
940
|
if ((tmp_10 == null ? null : new RegExp_0(tmp_10))instanceof RegExp_0) {
|
|
@@ -964,7 +964,7 @@ protoOf(OpenAPIV2Emitter).c2f = function (module_0) {
|
|
|
964
964
|
// Inline function 'kotlin.collections.associate' call
|
|
965
965
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
966
966
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
967
|
-
var this_2 = module_0.
|
|
967
|
+
var this_2 = module_0.d24_1;
|
|
968
968
|
var destination_6 = ArrayList_init_$Create$();
|
|
969
969
|
var tmp0_iterator_6 = this_2.g();
|
|
970
970
|
while (tmp0_iterator_6.h()) {
|
|
@@ -981,9 +981,9 @@ protoOf(OpenAPIV2Emitter).c2f = function (module_0) {
|
|
|
981
981
|
var element_5 = tmp0_iterator_7.i();
|
|
982
982
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
983
983
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
984
|
-
var tmp_13 = element_5.
|
|
984
|
+
var tmp_13 = element_5.q25_1.b1();
|
|
985
985
|
// Inline function 'kotlin.collections.associate' call
|
|
986
|
-
var this_3 = element_5.
|
|
986
|
+
var this_3 = element_5.r25_1.u26_1;
|
|
987
987
|
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_3, 10)), 16);
|
|
988
988
|
// Inline function 'kotlin.collections.associateTo' call
|
|
989
989
|
var destination_8 = LinkedHashMap_init_$Create$(capacity_1);
|
|
@@ -999,13 +999,13 @@ protoOf(OpenAPIV2Emitter).c2f = function (module_0) {
|
|
|
999
999
|
// Inline function 'kotlin.collections.map' call
|
|
1000
1000
|
// Inline function 'kotlin.collections.filter' call
|
|
1001
1001
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1002
|
-
var this_4 = element_5.
|
|
1002
|
+
var this_4 = element_5.r25_1.u26_1;
|
|
1003
1003
|
var destination_9 = ArrayList_init_$Create$();
|
|
1004
1004
|
var tmp0_iterator_9 = this_4.g();
|
|
1005
1005
|
while (tmp0_iterator_9.h()) {
|
|
1006
1006
|
var element_7 = tmp0_iterator_9.i();
|
|
1007
1007
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
1008
|
-
if (!element_7.
|
|
1008
|
+
if (!element_7.w26_1.hm()) {
|
|
1009
1009
|
destination_9.e(element_7);
|
|
1010
1010
|
}
|
|
1011
1011
|
}
|
|
@@ -1015,7 +1015,7 @@ protoOf(OpenAPIV2Emitter).c2f = function (module_0) {
|
|
|
1015
1015
|
while (tmp0_iterator_10.h()) {
|
|
1016
1016
|
var item_1 = tmp0_iterator_10.i();
|
|
1017
1017
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
1018
|
-
var tmp$ret$31 = item_1.
|
|
1018
|
+
var tmp$ret$31 = item_1.v26_1.b1();
|
|
1019
1019
|
destination_10.e(tmp$ret$31);
|
|
1020
1020
|
}
|
|
1021
1021
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -1035,7 +1035,7 @@ protoOf(OpenAPIV2Emitter).c2f = function (module_0) {
|
|
|
1035
1035
|
// Inline function 'kotlin.collections.associate' call
|
|
1036
1036
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1037
1037
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
1038
|
-
var this_5 = module_0.
|
|
1038
|
+
var this_5 = module_0.d24_1;
|
|
1039
1039
|
var destination_11 = ArrayList_init_$Create$();
|
|
1040
1040
|
var tmp0_iterator_11 = this_5.g();
|
|
1041
1041
|
while (tmp0_iterator_11.h()) {
|
|
@@ -1052,10 +1052,10 @@ protoOf(OpenAPIV2Emitter).c2f = function (module_0) {
|
|
|
1052
1052
|
var element_9 = tmp0_iterator_12.i();
|
|
1053
1053
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1054
1054
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
1055
|
-
var tmp_16 = element_9.
|
|
1055
|
+
var tmp_16 = element_9.d25_1.b1();
|
|
1056
1056
|
var tmp0_type = Type_STRING_getInstance();
|
|
1057
1057
|
// Inline function 'kotlin.collections.map' call
|
|
1058
|
-
var this_6 = element_9.
|
|
1058
|
+
var this_6 = element_9.e25_1;
|
|
1059
1059
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1060
1060
|
var destination_13 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_6, 10));
|
|
1061
1061
|
var tmp0_iterator_13 = this_6.g();
|
|
@@ -1337,7 +1337,7 @@ function parseEndpoints(_this__u8e3s4, $this) {
|
|
|
1337
1337
|
while (tmp0_iterator_12.h()) {
|
|
1338
1338
|
var e = tmp0_iterator_12.i();
|
|
1339
1339
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
1340
|
-
var key = to(e.
|
|
1340
|
+
var key = to(e.r26_1, e.t26_1);
|
|
1341
1341
|
if (set.e(key)) {
|
|
1342
1342
|
list_1.e(e);
|
|
1343
1343
|
}
|
|
@@ -1656,7 +1656,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1656
1656
|
while (tmp0_iterator_0.h()) {
|
|
1657
1657
|
var e = tmp0_iterator_0.i();
|
|
1658
1658
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.flatten.<anonymous>' call
|
|
1659
|
-
var key = e.
|
|
1659
|
+
var key = e.v26_1;
|
|
1660
1660
|
if (set.e(key)) {
|
|
1661
1661
|
list_0.e(e);
|
|
1662
1662
|
}
|
|
@@ -2805,7 +2805,7 @@ function sanitize(_this__u8e3s4) {
|
|
|
2805
2805
|
// Inline function 'community.flock.wirespec.openapi.v2.sanitize.<anonymous>' call
|
|
2806
2806
|
var tmp1 = index;
|
|
2807
2807
|
index = tmp1 + 1 | 0;
|
|
2808
|
-
var tmp$ret$0 = checkIndexOverflow(tmp1) > 0 ? Companion_instance.
|
|
2808
|
+
var tmp$ret$0 = checkIndexOverflow(tmp1) > 0 ? Companion_instance.z23(item) : item;
|
|
2809
2809
|
destination.e(tmp$ret$0);
|
|
2810
2810
|
}
|
|
2811
2811
|
var tmp = asSequence(joinToString(destination, ''));
|
|
@@ -2858,7 +2858,7 @@ function emitComponents(_this__u8e3s4, $this) {
|
|
|
2858
2858
|
// Inline function 'kotlin.collections.associate' call
|
|
2859
2859
|
// Inline function 'kotlin.collections.filter' call
|
|
2860
2860
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2861
|
-
var this_0 = _this__u8e3s4.
|
|
2861
|
+
var this_0 = _this__u8e3s4.d24_1.nk();
|
|
2862
2862
|
var destination = ArrayList_init_$Create$();
|
|
2863
2863
|
var tmp0_iterator = this_0.g();
|
|
2864
2864
|
while (tmp0_iterator.h()) {
|
|
@@ -2876,7 +2876,7 @@ function emitComponents(_this__u8e3s4, $this) {
|
|
|
2876
2876
|
var element_0 = tmp0_iterator_0.i();
|
|
2877
2877
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2878
2878
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emitComponents.<anonymous>' call
|
|
2879
|
-
var tmp = element_0.
|
|
2879
|
+
var tmp = element_0.m24().b1();
|
|
2880
2880
|
var tmp_0;
|
|
2881
2881
|
if (element_0 instanceof Enum) {
|
|
2882
2882
|
tmp_0 = emit_3(element_0, OpenAPIV3Emitter_getInstance());
|
|
@@ -2917,7 +2917,7 @@ function emitPaths(_this__u8e3s4, $this) {
|
|
|
2917
2917
|
// Inline function 'kotlin.collections.groupBy' call
|
|
2918
2918
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
2919
2919
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
2920
|
-
var this_0 = _this__u8e3s4.
|
|
2920
|
+
var this_0 = _this__u8e3s4.d24_1;
|
|
2921
2921
|
var destination = ArrayList_init_$Create$();
|
|
2922
2922
|
var tmp0_iterator = this_0.g();
|
|
2923
2923
|
while (tmp0_iterator.h()) {
|
|
@@ -2932,7 +2932,7 @@ function emitPaths(_this__u8e3s4, $this) {
|
|
|
2932
2932
|
while (tmp0_iterator_0.h()) {
|
|
2933
2933
|
var element_0 = tmp0_iterator_0.i();
|
|
2934
2934
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emitPaths.<anonymous>' call
|
|
2935
|
-
var key = element_0.
|
|
2935
|
+
var key = element_0.j25_1;
|
|
2936
2936
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
2937
2937
|
var value = destination_0.g2(key);
|
|
2938
2938
|
var tmp;
|
|
@@ -3003,30 +3003,30 @@ function emitPaths(_this__u8e3s4, $this) {
|
|
|
3003
3003
|
return toMap(destination_1);
|
|
3004
3004
|
}
|
|
3005
3005
|
function emit_1(_this__u8e3s4, $this) {
|
|
3006
|
-
var type = _this__u8e3s4.
|
|
3006
|
+
var type = _this__u8e3s4.a25_1.l29_1;
|
|
3007
3007
|
var tmp;
|
|
3008
3008
|
if (type instanceof Integer) {
|
|
3009
3009
|
var tmp4_type = Type_STRING_getInstance_0();
|
|
3010
|
-
var tmp0_safe_receiver = type.
|
|
3011
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3010
|
+
var tmp0_safe_receiver = type.r28_1;
|
|
3011
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m28_1;
|
|
3012
3012
|
var tmp5_minimum = tmp1_safe_receiver == null ? null : toDouble(tmp1_safe_receiver);
|
|
3013
|
-
var tmp2_safe_receiver = type.
|
|
3014
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
3013
|
+
var tmp2_safe_receiver = type.r28_1;
|
|
3014
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.n28_1;
|
|
3015
3015
|
var tmp6_maximum = tmp3_safe_receiver == null ? null : toDouble(tmp3_safe_receiver);
|
|
3016
3016
|
tmp = new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp4_type, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp6_maximum, VOID, tmp5_minimum);
|
|
3017
3017
|
} else {
|
|
3018
3018
|
if (type instanceof Number_0) {
|
|
3019
3019
|
var tmp11_type = Type_STRING_getInstance_0();
|
|
3020
|
-
var tmp7_safe_receiver = type.
|
|
3021
|
-
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.
|
|
3020
|
+
var tmp7_safe_receiver = type.u28_1;
|
|
3021
|
+
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.m28_1;
|
|
3022
3022
|
var tmp12_minimum = tmp8_safe_receiver == null ? null : toDouble(tmp8_safe_receiver);
|
|
3023
|
-
var tmp9_safe_receiver = type.
|
|
3024
|
-
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.
|
|
3023
|
+
var tmp9_safe_receiver = type.u28_1;
|
|
3024
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.n28_1;
|
|
3025
3025
|
var tmp13_maximum = tmp10_safe_receiver == null ? null : toDouble(tmp10_safe_receiver);
|
|
3026
3026
|
tmp = new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp11_type, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp13_maximum, VOID, tmp12_minimum);
|
|
3027
3027
|
} else {
|
|
3028
3028
|
if (type instanceof String_0) {
|
|
3029
|
-
var pattern = type.
|
|
3029
|
+
var pattern = type.o28_1;
|
|
3030
3030
|
var tmp_0;
|
|
3031
3031
|
var tmp_1 = pattern;
|
|
3032
3032
|
if ((tmp_1 == null ? null : new RegExp_0(tmp_1))instanceof RegExp_0) {
|
|
@@ -3056,7 +3056,7 @@ function emit_1(_this__u8e3s4, $this) {
|
|
|
3056
3056
|
return tmp;
|
|
3057
3057
|
}
|
|
3058
3058
|
function emit_2(_this__u8e3s4, $this) {
|
|
3059
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3059
|
+
var tmp0_safe_receiver = _this__u8e3s4.p25_1;
|
|
3060
3060
|
var tmp;
|
|
3061
3061
|
var tmp_0 = tmp0_safe_receiver;
|
|
3062
3062
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -3066,7 +3066,7 @@ function emit_2(_this__u8e3s4, $this) {
|
|
|
3066
3066
|
}
|
|
3067
3067
|
var tmp1_description = tmp;
|
|
3068
3068
|
// Inline function 'kotlin.collections.associate' call
|
|
3069
|
-
var this_0 = _this__u8e3s4.
|
|
3069
|
+
var this_0 = _this__u8e3s4.r25_1.u26_1;
|
|
3070
3070
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
3071
3071
|
// Inline function 'kotlin.collections.associateTo' call
|
|
3072
3072
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -3082,13 +3082,13 @@ function emit_2(_this__u8e3s4, $this) {
|
|
|
3082
3082
|
// Inline function 'kotlin.collections.map' call
|
|
3083
3083
|
// Inline function 'kotlin.collections.filter' call
|
|
3084
3084
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3085
|
-
var this_1 = _this__u8e3s4.
|
|
3085
|
+
var this_1 = _this__u8e3s4.r25_1.u26_1;
|
|
3086
3086
|
var destination_0 = ArrayList_init_$Create$();
|
|
3087
3087
|
var tmp0_iterator_0 = this_1.g();
|
|
3088
3088
|
while (tmp0_iterator_0.h()) {
|
|
3089
3089
|
var element_0 = tmp0_iterator_0.i();
|
|
3090
3090
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
3091
|
-
if (!element_0.
|
|
3091
|
+
if (!element_0.w26_1.hm()) {
|
|
3092
3092
|
destination_0.e(element_0);
|
|
3093
3093
|
}
|
|
3094
3094
|
}
|
|
@@ -3098,7 +3098,7 @@ function emit_2(_this__u8e3s4, $this) {
|
|
|
3098
3098
|
while (tmp0_iterator_1.h()) {
|
|
3099
3099
|
var item = tmp0_iterator_1.i();
|
|
3100
3100
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
3101
|
-
var tmp$ret$6 = item.
|
|
3101
|
+
var tmp$ret$6 = item.v26_1.b1();
|
|
3102
3102
|
destination_1.e(tmp$ret$6);
|
|
3103
3103
|
}
|
|
3104
3104
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -3114,7 +3114,7 @@ function emit_2(_this__u8e3s4, $this) {
|
|
|
3114
3114
|
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, destination, VOID, tmp1_description, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_required);
|
|
3115
3115
|
}
|
|
3116
3116
|
function emit_3(_this__u8e3s4, $this) {
|
|
3117
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3117
|
+
var tmp0_safe_receiver = _this__u8e3s4.c25_1;
|
|
3118
3118
|
var tmp;
|
|
3119
3119
|
var tmp_0 = tmp0_safe_receiver;
|
|
3120
3120
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -3125,7 +3125,7 @@ function emit_3(_this__u8e3s4, $this) {
|
|
|
3125
3125
|
var tmp1_description = tmp;
|
|
3126
3126
|
var tmp2_type = Type_STRING_getInstance_0();
|
|
3127
3127
|
// Inline function 'kotlin.collections.map' call
|
|
3128
|
-
var this_0 = _this__u8e3s4.
|
|
3128
|
+
var this_0 = _this__u8e3s4.e25_1;
|
|
3129
3129
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3130
3130
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3131
3131
|
var tmp0_iterator = this_0.g();
|
|
@@ -3138,7 +3138,7 @@ function emit_3(_this__u8e3s4, $this) {
|
|
|
3138
3138
|
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_type, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_description, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, destination);
|
|
3139
3139
|
}
|
|
3140
3140
|
function emit_4(_this__u8e3s4, $this) {
|
|
3141
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3141
|
+
var tmp0_safe_receiver = _this__u8e3s4.u24_1;
|
|
3142
3142
|
var tmp;
|
|
3143
3143
|
var tmp_0 = tmp0_safe_receiver;
|
|
3144
3144
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -3149,7 +3149,7 @@ function emit_4(_this__u8e3s4, $this) {
|
|
|
3149
3149
|
var tmp1_description = tmp;
|
|
3150
3150
|
var tmp2_type = Type_STRING_getInstance_0();
|
|
3151
3151
|
// Inline function 'kotlin.collections.map' call
|
|
3152
|
-
var this_0 = _this__u8e3s4.
|
|
3152
|
+
var this_0 = _this__u8e3s4.w24_1;
|
|
3153
3153
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3154
3154
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3155
3155
|
var tmp0_iterator = this_0.g();
|
|
@@ -3170,7 +3170,7 @@ function emit_5(_this__u8e3s4, $this, method) {
|
|
|
3170
3170
|
while (tmp0_iterator.h()) {
|
|
3171
3171
|
var element = tmp0_iterator.i();
|
|
3172
3172
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
3173
|
-
if (element.
|
|
3173
|
+
if (element.i25_1.equals(method)) {
|
|
3174
3174
|
destination.e(element);
|
|
3175
3175
|
}
|
|
3176
3176
|
}
|
|
@@ -3186,8 +3186,8 @@ function emit_5(_this__u8e3s4, $this, method) {
|
|
|
3186
3186
|
return firstOrNull(destination_0);
|
|
3187
3187
|
}
|
|
3188
3188
|
function emit_6(_this__u8e3s4, $this) {
|
|
3189
|
-
var tmp2_operationId = _this__u8e3s4.
|
|
3190
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3189
|
+
var tmp2_operationId = _this__u8e3s4.h25_1.b1();
|
|
3190
|
+
var tmp0_safe_receiver = _this__u8e3s4.g25_1;
|
|
3191
3191
|
var tmp;
|
|
3192
3192
|
var tmp_0 = tmp0_safe_receiver;
|
|
3193
3193
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -3199,7 +3199,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3199
3199
|
// Inline function 'kotlin.collections.map' call
|
|
3200
3200
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3201
3201
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
3202
|
-
var this_0 = _this__u8e3s4.
|
|
3202
|
+
var this_0 = _this__u8e3s4.j25_1;
|
|
3203
3203
|
var destination = ArrayList_init_$Create$();
|
|
3204
3204
|
var tmp0_iterator = this_0.g();
|
|
3205
3205
|
while (tmp0_iterator.h()) {
|
|
@@ -3219,7 +3219,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3219
3219
|
}
|
|
3220
3220
|
var tmp_1 = destination_0;
|
|
3221
3221
|
// Inline function 'kotlin.collections.map' call
|
|
3222
|
-
var this_1 = _this__u8e3s4.
|
|
3222
|
+
var this_1 = _this__u8e3s4.k25_1;
|
|
3223
3223
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3224
3224
|
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
3225
3225
|
var tmp0_iterator_1 = this_1.g();
|
|
@@ -3231,7 +3231,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3231
3231
|
}
|
|
3232
3232
|
var tmp_2 = plus(tmp_1, destination_1);
|
|
3233
3233
|
// Inline function 'kotlin.collections.map' call
|
|
3234
|
-
var this_2 = _this__u8e3s4.
|
|
3234
|
+
var this_2 = _this__u8e3s4.l25_1;
|
|
3235
3235
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3236
3236
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
|
|
3237
3237
|
var tmp0_iterator_2 = this_2.g();
|
|
@@ -3245,7 +3245,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3245
3245
|
// Inline function 'kotlin.takeIf' call
|
|
3246
3246
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3247
3247
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3248
|
-
var this_3 = _this__u8e3s4.
|
|
3248
|
+
var this_3 = _this__u8e3s4.m25_1;
|
|
3249
3249
|
var destination_3 = ArrayList_init_$Create$();
|
|
3250
3250
|
// Inline function 'kotlin.collections.forEach' call
|
|
3251
3251
|
var tmp0_iterator_3 = this_3.g();
|
|
@@ -3253,7 +3253,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3253
3253
|
var element_0 = tmp0_iterator_3.i();
|
|
3254
3254
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3255
3255
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
3256
|
-
var tmp0_safe_receiver_0 = element_0.
|
|
3256
|
+
var tmp0_safe_receiver_0 = element_0.x26_1;
|
|
3257
3257
|
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : emit_7(tmp0_safe_receiver_0, OpenAPIV3Emitter_getInstance());
|
|
3258
3258
|
if (tmp0_safe_receiver_1 == null)
|
|
3259
3259
|
null;
|
|
@@ -3284,7 +3284,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3284
3284
|
var tmp$ret$18;
|
|
3285
3285
|
$l$block_0: {
|
|
3286
3286
|
// Inline function 'kotlin.collections.any' call
|
|
3287
|
-
var this_5 = _this__u8e3s4.
|
|
3287
|
+
var this_5 = _this__u8e3s4.m25_1;
|
|
3288
3288
|
var tmp_5;
|
|
3289
3289
|
if (isInterface(this_5, Collection)) {
|
|
3290
3290
|
tmp_5 = this_5.l();
|
|
@@ -3299,8 +3299,8 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3299
3299
|
while (tmp0_iterator_4.h()) {
|
|
3300
3300
|
var element_1 = tmp0_iterator_4.i();
|
|
3301
3301
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3302
|
-
var tmp0_safe_receiver_2 = element_1.
|
|
3303
|
-
var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.
|
|
3302
|
+
var tmp0_safe_receiver_2 = element_1.x26_1;
|
|
3303
|
+
var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.z26_1;
|
|
3304
3304
|
if ((tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.hm()) === true) {
|
|
3305
3305
|
tmp$ret$18 = true;
|
|
3306
3306
|
break $l$block_0;
|
|
@@ -3314,13 +3314,13 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3314
3314
|
// Inline function 'kotlin.collections.map' call
|
|
3315
3315
|
// Inline function 'kotlin.collections.groupBy' call
|
|
3316
3316
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
3317
|
-
var this_6 = _this__u8e3s4.
|
|
3317
|
+
var this_6 = _this__u8e3s4.n25_1;
|
|
3318
3318
|
var destination_4 = LinkedHashMap_init_$Create$_0();
|
|
3319
3319
|
var tmp0_iterator_5 = this_6.g();
|
|
3320
3320
|
while (tmp0_iterator_5.h()) {
|
|
3321
3321
|
var element_2 = tmp0_iterator_5.i();
|
|
3322
3322
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
3323
|
-
var key = element_2.
|
|
3323
|
+
var key = element_2.r26_1;
|
|
3324
3324
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
3325
3325
|
var value = destination_4.g2(key);
|
|
3326
3326
|
var tmp_6;
|
|
@@ -3355,7 +3355,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3355
3355
|
while (tmp0_iterator_7.h()) {
|
|
3356
3356
|
var element_3 = tmp0_iterator_7.i();
|
|
3357
3357
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3358
|
-
var list_0 = element_3.
|
|
3358
|
+
var list_0 = element_3.s26_1;
|
|
3359
3359
|
addAll(destination_6, list_0);
|
|
3360
3360
|
}
|
|
3361
3361
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_6, 10)), 16);
|
|
@@ -3369,7 +3369,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3369
3369
|
var pair = emitHeader(element_4, OpenAPIV3Emitter_getInstance());
|
|
3370
3370
|
destination_7.n2(pair.ee_1, pair.fe_1);
|
|
3371
3371
|
}
|
|
3372
|
-
var tmp1_description = _this__u8e3s4.
|
|
3372
|
+
var tmp1_description = _this__u8e3s4.h25_1.b1() + ' ' + statusCode + ' response';
|
|
3373
3373
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
3374
3374
|
// Inline function 'kotlin.collections.associate' call
|
|
3375
3375
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -3381,7 +3381,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3381
3381
|
var element_5 = tmp0_iterator_9.i();
|
|
3382
3382
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3383
3383
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3384
|
-
var tmp0_safe_receiver_3 = element_5.
|
|
3384
|
+
var tmp0_safe_receiver_3 = element_5.t26_1;
|
|
3385
3385
|
if (tmp0_safe_receiver_3 == null)
|
|
3386
3386
|
null;
|
|
3387
3387
|
else {
|
|
@@ -3420,32 +3420,32 @@ function emitSegment_0(_this__u8e3s4, $this) {
|
|
|
3420
3420
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenAPIV3Emitter$emitSegment$lambda);
|
|
3421
3421
|
}
|
|
3422
3422
|
function emitParameter_0(_this__u8e3s4, $this, location) {
|
|
3423
|
-
var tmp0_name = _this__u8e3s4.
|
|
3424
|
-
var tmp1_schema = emitSchema_0(_this__u8e3s4.
|
|
3423
|
+
var tmp0_name = _this__u8e3s4.v26_1.b1();
|
|
3424
|
+
var tmp1_schema = emitSchema_0(_this__u8e3s4.w26_1, $this);
|
|
3425
3425
|
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_schema, VOID, VOID, VOID, tmp0_name, location);
|
|
3426
3426
|
}
|
|
3427
3427
|
function emitParameter_1(_this__u8e3s4, $this) {
|
|
3428
3428
|
var tmp0_in = ParameterLocation_PATH_getInstance_0();
|
|
3429
|
-
var tmp1_name = _this__u8e3s4.
|
|
3430
|
-
var tmp2_schema = emitSchema_0(_this__u8e3s4.
|
|
3429
|
+
var tmp1_name = _this__u8e3s4.o26_1.b1();
|
|
3430
|
+
var tmp2_schema = emitSchema_0(_this__u8e3s4.p26_1, $this);
|
|
3431
3431
|
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_schema, VOID, VOID, VOID, tmp1_name, tmp0_in);
|
|
3432
3432
|
}
|
|
3433
3433
|
function emitHeader(_this__u8e3s4, $this) {
|
|
3434
|
-
return to(_this__u8e3s4.
|
|
3434
|
+
return to(_this__u8e3s4.v26_1.b1(), emitHeader_0(_this__u8e3s4.w26_1, $this));
|
|
3435
3435
|
}
|
|
3436
3436
|
function emitSchema(_this__u8e3s4, $this) {
|
|
3437
|
-
return to(_this__u8e3s4.
|
|
3437
|
+
return to(_this__u8e3s4.v26_1.b1(), emitSchema_0(_this__u8e3s4.w26_1, $this));
|
|
3438
3438
|
}
|
|
3439
3439
|
function emitHeader_0(_this__u8e3s4, $this) {
|
|
3440
3440
|
var tmp;
|
|
3441
3441
|
if (_this__u8e3s4 instanceof Dict) {
|
|
3442
|
-
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.
|
|
3442
|
+
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.t23_1));
|
|
3443
3443
|
} else {
|
|
3444
3444
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
3445
|
-
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.
|
|
3445
|
+
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.q23_1));
|
|
3446
3446
|
} else {
|
|
3447
3447
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3448
|
-
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.
|
|
3448
|
+
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.h29_1));
|
|
3449
3449
|
} else {
|
|
3450
3450
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3451
3451
|
tmp = new HeaderObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitSchema_0(_this__u8e3s4, $this));
|
|
@@ -3470,19 +3470,19 @@ function emitHeader_0(_this__u8e3s4, $this) {
|
|
|
3470
3470
|
function emitSchema_0(_this__u8e3s4, $this) {
|
|
3471
3471
|
var tmp;
|
|
3472
3472
|
if (_this__u8e3s4 instanceof Dict) {
|
|
3473
|
-
var tmp_0 = _this__u8e3s4.
|
|
3473
|
+
var tmp_0 = _this__u8e3s4.r23_1.hm();
|
|
3474
3474
|
var tmp_1 = Type_OBJECT_getInstance_0();
|
|
3475
|
-
var tmp_2 = emitSchema_0(_this__u8e3s4.
|
|
3475
|
+
var tmp_2 = emitSchema_0(_this__u8e3s4.r23_1, $this);
|
|
3476
3476
|
tmp = new SchemaObject_0(tmp_0, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_1, VOID, VOID, VOID, VOID, VOID, VOID, isInterface(tmp_2, SchemaOrReferenceOrBooleanObject) ? tmp_2 : THROW_CCE());
|
|
3477
3477
|
} else {
|
|
3478
3478
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
3479
|
-
tmp = new SchemaObject_0(_this__u8e3s4.
|
|
3479
|
+
tmp = new SchemaObject_0(_this__u8e3s4.o23_1.hm(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance_0(), VOID, VOID, VOID, VOID, emitSchema_0(_this__u8e3s4.o23_1, $this));
|
|
3480
3480
|
} else {
|
|
3481
3481
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3482
|
-
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/schemas/' + _this__u8e3s4.
|
|
3482
|
+
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/schemas/' + _this__u8e3s4.h29_1));
|
|
3483
3483
|
} else {
|
|
3484
3484
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3485
|
-
var tmp1_type = emitType_1(_this__u8e3s4.
|
|
3485
|
+
var tmp1_type = emitType_1(_this__u8e3s4.l29_1, $this);
|
|
3486
3486
|
var tmp2_format = emitFormat_0(_this__u8e3s4, $this);
|
|
3487
3487
|
var tmp3_pattern = emitPattern_0(_this__u8e3s4, $this);
|
|
3488
3488
|
var tmp4_minimum = emitMinimum_0(_this__u8e3s4, $this);
|
|
@@ -3532,16 +3532,16 @@ function emitType_1(_this__u8e3s4, $this) {
|
|
|
3532
3532
|
return tmp;
|
|
3533
3533
|
}
|
|
3534
3534
|
function emit_7(_this__u8e3s4, $this) {
|
|
3535
|
-
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.
|
|
3535
|
+
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.y26_1)), new MediaTypeObject(emitSchema_0(_this__u8e3s4.z26_1, $this)));
|
|
3536
3536
|
}
|
|
3537
3537
|
function emitFormat_0(_this__u8e3s4, $this) {
|
|
3538
3538
|
var tmp;
|
|
3539
3539
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3540
|
-
var t = _this__u8e3s4.
|
|
3540
|
+
var t = _this__u8e3s4.l29_1;
|
|
3541
3541
|
var tmp_0;
|
|
3542
3542
|
if (t instanceof Number_0) {
|
|
3543
3543
|
var tmp_1;
|
|
3544
|
-
switch (t.
|
|
3544
|
+
switch (t.t28_1.r2_1) {
|
|
3545
3545
|
case 0:
|
|
3546
3546
|
tmp_1 = 'float';
|
|
3547
3547
|
break;
|
|
@@ -3556,7 +3556,7 @@ function emitFormat_0(_this__u8e3s4, $this) {
|
|
|
3556
3556
|
} else {
|
|
3557
3557
|
if (t instanceof Integer) {
|
|
3558
3558
|
var tmp_2;
|
|
3559
|
-
switch (t.
|
|
3559
|
+
switch (t.q28_1.r2_1) {
|
|
3560
3560
|
case 0:
|
|
3561
3561
|
tmp_2 = 'int32';
|
|
3562
3562
|
break;
|
|
@@ -3585,10 +3585,10 @@ function emitFormat_0(_this__u8e3s4, $this) {
|
|
|
3585
3585
|
function emitPattern_0(_this__u8e3s4, $this) {
|
|
3586
3586
|
var tmp;
|
|
3587
3587
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3588
|
-
var t = _this__u8e3s4.
|
|
3588
|
+
var t = _this__u8e3s4.l29_1;
|
|
3589
3589
|
var tmp_0;
|
|
3590
3590
|
if (t instanceof String_0) {
|
|
3591
|
-
var p = t.
|
|
3591
|
+
var p = t.o28_1;
|
|
3592
3592
|
var tmp_1;
|
|
3593
3593
|
var tmp_2 = p;
|
|
3594
3594
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2))instanceof RegExp_0) {
|
|
@@ -3609,16 +3609,16 @@ function emitPattern_0(_this__u8e3s4, $this) {
|
|
|
3609
3609
|
function emitMinimum_0(_this__u8e3s4, $this) {
|
|
3610
3610
|
var tmp;
|
|
3611
3611
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3612
|
-
var t = _this__u8e3s4.
|
|
3612
|
+
var t = _this__u8e3s4.l29_1;
|
|
3613
3613
|
var tmp_0;
|
|
3614
3614
|
if (t instanceof Number_0) {
|
|
3615
|
-
var tmp1_safe_receiver = t.
|
|
3616
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3615
|
+
var tmp1_safe_receiver = t.u28_1;
|
|
3616
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m28_1;
|
|
3617
3617
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
3618
3618
|
} else {
|
|
3619
3619
|
if (t instanceof Integer) {
|
|
3620
|
-
var tmp3_safe_receiver = t.
|
|
3621
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
3620
|
+
var tmp3_safe_receiver = t.r28_1;
|
|
3621
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.m28_1;
|
|
3622
3622
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
3623
3623
|
} else {
|
|
3624
3624
|
tmp_0 = null;
|
|
@@ -3633,16 +3633,16 @@ function emitMinimum_0(_this__u8e3s4, $this) {
|
|
|
3633
3633
|
function emitMaximum(_this__u8e3s4, $this) {
|
|
3634
3634
|
var tmp;
|
|
3635
3635
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3636
|
-
var t = _this__u8e3s4.
|
|
3636
|
+
var t = _this__u8e3s4.l29_1;
|
|
3637
3637
|
var tmp_0;
|
|
3638
3638
|
if (t instanceof Number_0) {
|
|
3639
|
-
var tmp1_safe_receiver = t.
|
|
3640
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3639
|
+
var tmp1_safe_receiver = t.u28_1;
|
|
3640
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n28_1;
|
|
3641
3641
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
3642
3642
|
} else {
|
|
3643
3643
|
if (t instanceof Integer) {
|
|
3644
|
-
var tmp3_safe_receiver = t.
|
|
3645
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
3644
|
+
var tmp3_safe_receiver = t.r28_1;
|
|
3645
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.n28_1;
|
|
3646
3646
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
3647
3647
|
} else {
|
|
3648
3648
|
tmp_0 = null;
|
|
@@ -3657,10 +3657,10 @@ function emitMaximum(_this__u8e3s4, $this) {
|
|
|
3657
3657
|
function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
3658
3658
|
var tmp;
|
|
3659
3659
|
if (it instanceof Param) {
|
|
3660
|
-
tmp = '{' + it.
|
|
3660
|
+
tmp = '{' + it.o26_1.b1() + '}';
|
|
3661
3661
|
} else {
|
|
3662
3662
|
if (it instanceof Literal) {
|
|
3663
|
-
tmp = it.
|
|
3663
|
+
tmp = it.q26_1;
|
|
3664
3664
|
} else {
|
|
3665
3665
|
noWhenBranchMatchedException();
|
|
3666
3666
|
}
|
|
@@ -3674,13 +3674,13 @@ function OpenAPIV3Emitter() {
|
|
|
3674
3674
|
this.r2f_1 = null;
|
|
3675
3675
|
this.s2f_1 = '';
|
|
3676
3676
|
}
|
|
3677
|
-
protoOf(OpenAPIV3Emitter).
|
|
3677
|
+
protoOf(OpenAPIV3Emitter).k24 = function () {
|
|
3678
3678
|
return this.q2f_1;
|
|
3679
3679
|
};
|
|
3680
|
-
protoOf(OpenAPIV3Emitter).
|
|
3680
|
+
protoOf(OpenAPIV3Emitter).b26 = function () {
|
|
3681
3681
|
return this.s2f_1;
|
|
3682
3682
|
};
|
|
3683
|
-
protoOf(OpenAPIV3Emitter).
|
|
3683
|
+
protoOf(OpenAPIV3Emitter).g24 = function (module_0, logger) {
|
|
3684
3684
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
3685
3685
|
var this_0 = Common_getInstance().w2e_1;
|
|
3686
3686
|
var value = this.t2f(module_0, null);
|
|
@@ -3692,26 +3692,26 @@ protoOf(OpenAPIV3Emitter).s24 = function (module_0, logger) {
|
|
|
3692
3692
|
var tmp$ret$2 = this_0.k15(tmp$ret$1, value);
|
|
3693
3693
|
return nonEmptyListOf(new Emitted('OpenAPIObject', tmp$ret$2), []);
|
|
3694
3694
|
};
|
|
3695
|
-
protoOf(OpenAPIV3Emitter).
|
|
3696
|
-
return this.
|
|
3695
|
+
protoOf(OpenAPIV3Emitter).t25 = function (type, module_0) {
|
|
3696
|
+
return this.c26();
|
|
3697
3697
|
};
|
|
3698
|
-
protoOf(OpenAPIV3Emitter).
|
|
3699
|
-
return this.
|
|
3698
|
+
protoOf(OpenAPIV3Emitter).f25 = function (enum_0, module_0) {
|
|
3699
|
+
return this.c26();
|
|
3700
3700
|
};
|
|
3701
|
-
protoOf(OpenAPIV3Emitter).
|
|
3702
|
-
return this.
|
|
3701
|
+
protoOf(OpenAPIV3Emitter).b25 = function (refined) {
|
|
3702
|
+
return this.c26();
|
|
3703
3703
|
};
|
|
3704
|
-
protoOf(OpenAPIV3Emitter).
|
|
3705
|
-
return this.
|
|
3704
|
+
protoOf(OpenAPIV3Emitter).o25 = function (endpoint) {
|
|
3705
|
+
return this.c26();
|
|
3706
3706
|
};
|
|
3707
|
-
protoOf(OpenAPIV3Emitter).
|
|
3708
|
-
return this.
|
|
3707
|
+
protoOf(OpenAPIV3Emitter).x24 = function (union) {
|
|
3708
|
+
return this.c26();
|
|
3709
3709
|
};
|
|
3710
|
-
protoOf(OpenAPIV3Emitter).
|
|
3711
|
-
return this.
|
|
3710
|
+
protoOf(OpenAPIV3Emitter).s24 = function (identifier) {
|
|
3711
|
+
return this.c26();
|
|
3712
3712
|
};
|
|
3713
|
-
protoOf(OpenAPIV3Emitter).
|
|
3714
|
-
return this.
|
|
3713
|
+
protoOf(OpenAPIV3Emitter).t24 = function (channel) {
|
|
3714
|
+
return this.c26();
|
|
3715
3715
|
};
|
|
3716
3716
|
protoOf(OpenAPIV3Emitter).t2f = function (module_0, options) {
|
|
3717
3717
|
var tmp1_elvis_lhs = options == null ? null : options.u2f_1;
|
|
@@ -4647,7 +4647,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4647
4647
|
while (tmp0_iterator_2.h()) {
|
|
4648
4648
|
var e = tmp0_iterator_2.i();
|
|
4649
4649
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.flatten.<anonymous>' call
|
|
4650
|
-
var key = e.
|
|
4650
|
+
var key = e.v26_1;
|
|
4651
4651
|
if (set.e(key)) {
|
|
4652
4652
|
list_1.e(e);
|
|
4653
4653
|
}
|
|
@@ -5535,7 +5535,7 @@ function sanitize_0(_this__u8e3s4) {
|
|
|
5535
5535
|
// Inline function 'community.flock.wirespec.openapi.v3.sanitize.<anonymous>' call
|
|
5536
5536
|
var tmp1 = index;
|
|
5537
5537
|
index = tmp1 + 1 | 0;
|
|
5538
|
-
var tmp$ret$0 = checkIndexOverflow(tmp1) > 0 ? Companion_instance.
|
|
5538
|
+
var tmp$ret$0 = checkIndexOverflow(tmp1) > 0 ? Companion_instance.z23(item) : item;
|
|
5539
5539
|
destination.e(tmp$ret$0);
|
|
5540
5540
|
}
|
|
5541
5541
|
var tmp = asSequence(joinToString(destination, ''));
|