@flock/wirespec 0.16.5 → 0.16.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clikt-clikt.mjs +1148 -1148
- package/colormath-root-colormath.mjs +418 -418
- package/kotlin-kotlin-stdlib.mjs +13 -13
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1766 -1766
- package/kotlinx-io-kotlinx-io-core.mjs +373 -373
- package/markdown.mjs +1829 -1829
- package/mordant-mordant.mjs +1582 -1582
- 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 +177 -177
- package/wirespec-src-compiler-emitters-kotlin.mjs +179 -179
- package/wirespec-src-compiler-emitters-python.mjs +186 -186
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +774 -628
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +65 -65
- package/wirespec-src-compiler-lib.mjs +312 -312
- package/wirespec-src-converter-avro.mjs +290 -290
- package/wirespec-src-converter-openapi.mjs +350 -350
- package/wirespec-src-plugin-arguments.mjs +287 -313
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +74 -74
- package/wirespec-src-plugin-npm.mjs +15 -15
- 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;
|
|
@@ -222,9 +222,9 @@ function Common$json$lambda($this$Json) {
|
|
|
222
222
|
function Common() {
|
|
223
223
|
Common_instance = this;
|
|
224
224
|
var tmp = this;
|
|
225
|
-
tmp.
|
|
225
|
+
tmp.x2e_1 = Json(VOID, Common$json$lambda);
|
|
226
226
|
}
|
|
227
|
-
protoOf(Common).
|
|
227
|
+
protoOf(Common).y2e = function (arg) {
|
|
228
228
|
// Inline function 'kotlin.collections.flatMap' call
|
|
229
229
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
230
230
|
var destination = ArrayList_init_$Create$();
|
|
@@ -240,7 +240,7 @@ protoOf(Common).x2e = function (arg) {
|
|
|
240
240
|
var tmp = destination;
|
|
241
241
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, Common$className$lambda);
|
|
242
242
|
};
|
|
243
|
-
protoOf(Common).
|
|
243
|
+
protoOf(Common).z2e = function (_this__u8e3s4) {
|
|
244
244
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
245
245
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
246
246
|
var destination = ArrayList_init_$Create$();
|
|
@@ -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
|
}
|
|
@@ -751,20 +751,20 @@ function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
|
751
751
|
function OpenAPIV2Emitter() {
|
|
752
752
|
OpenAPIV2Emitter_instance = this;
|
|
753
753
|
Emitter.call(this);
|
|
754
|
-
this.
|
|
755
|
-
this.
|
|
756
|
-
this.
|
|
754
|
+
this.a2f_1 = FileExtension_JSON_getInstance();
|
|
755
|
+
this.b2f_1 = null;
|
|
756
|
+
this.c2f_1 = '';
|
|
757
757
|
}
|
|
758
|
-
protoOf(OpenAPIV2Emitter).
|
|
759
|
-
return this.
|
|
758
|
+
protoOf(OpenAPIV2Emitter).k24 = function () {
|
|
759
|
+
return this.a2f_1;
|
|
760
760
|
};
|
|
761
|
-
protoOf(OpenAPIV2Emitter).
|
|
762
|
-
return this.
|
|
761
|
+
protoOf(OpenAPIV2Emitter).b26 = function () {
|
|
762
|
+
return this.c2f_1;
|
|
763
763
|
};
|
|
764
|
-
protoOf(OpenAPIV2Emitter).
|
|
764
|
+
protoOf(OpenAPIV2Emitter).g24 = function (module_0, logger) {
|
|
765
765
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
766
|
-
var this_0 = Common_getInstance().
|
|
767
|
-
var value = this.
|
|
766
|
+
var this_0 = Common_getInstance().x2e_1;
|
|
767
|
+
var value = this.d2f(module_0);
|
|
768
768
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
769
769
|
var this_1 = this_0.xo();
|
|
770
770
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -773,28 +773,28 @@ 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
|
-
protoOf(OpenAPIV2Emitter).
|
|
797
|
+
protoOf(OpenAPIV2Emitter).d2f = function (module_0) {
|
|
798
798
|
var tmp = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, '0.0.0');
|
|
799
799
|
var tmp_0 = listOf('application/json');
|
|
800
800
|
var tmp_1 = listOf('application/json');
|
|
@@ -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();
|
|
@@ -1201,7 +1201,7 @@ function parseEndpoints(_this__u8e3s4, $this) {
|
|
|
1201
1201
|
tmp_1 = toReference(_this__u8e3s4, OpenAPIV2Parser_instance, schema, isNullable);
|
|
1202
1202
|
} else {
|
|
1203
1203
|
if (schema instanceof SchemaObject) {
|
|
1204
|
-
tmp_1 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, schema, Common_getInstance().
|
|
1204
|
+
tmp_1 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, schema, Common_getInstance().y2e([name, 'RequestBody']), isNullable);
|
|
1205
1205
|
} else {
|
|
1206
1206
|
if (schema == null) {
|
|
1207
1207
|
var reason = 'Not yet implemented';
|
|
@@ -1318,7 +1318,7 @@ function parseEndpoints(_this__u8e3s4, $this) {
|
|
|
1318
1318
|
tmp_10 = toReference(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver, false);
|
|
1319
1319
|
} else {
|
|
1320
1320
|
if (tmp1_safe_receiver instanceof SchemaObject) {
|
|
1321
|
-
tmp_10 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
1321
|
+
tmp_10 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver, Common_getInstance().y2e([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']), false);
|
|
1322
1322
|
} else {
|
|
1323
1323
|
noWhenBranchMatchedException();
|
|
1324
1324
|
}
|
|
@@ -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
|
}
|
|
@@ -1398,7 +1398,7 @@ function parseDefinitions(_this__u8e3s4, $this) {
|
|
|
1398
1398
|
while (tmp0_iterator_1.h()) {
|
|
1399
1399
|
var element_0 = tmp0_iterator_1.i();
|
|
1400
1400
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseDefinitions.<anonymous>' call
|
|
1401
|
-
var list = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, element_0.b1(), Common_getInstance().
|
|
1401
|
+
var list = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, element_0.b1(), Common_getInstance().y2e([element_0.a1()]));
|
|
1402
1402
|
addAll(destination_0, list);
|
|
1403
1403
|
}
|
|
1404
1404
|
return destination_0;
|
|
@@ -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
|
}
|
|
@@ -1695,7 +1695,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1695
1695
|
tmp_9 = emptyList();
|
|
1696
1696
|
} else {
|
|
1697
1697
|
if (value instanceof SchemaObject) {
|
|
1698
|
-
tmp_9 = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().
|
|
1698
|
+
tmp_9 = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().y2e([name, key_0]));
|
|
1699
1699
|
} else {
|
|
1700
1700
|
noWhenBranchMatchedException();
|
|
1701
1701
|
}
|
|
@@ -1754,7 +1754,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1754
1754
|
var key_1 = element_2.a1();
|
|
1755
1755
|
// Inline function 'kotlin.collections.component2' call
|
|
1756
1756
|
var value_0 = element_2.b1();
|
|
1757
|
-
var list_3 = flatten_0(_this__u8e3s4, OpenAPIV2Parser_instance, value_0, Common_getInstance().
|
|
1757
|
+
var list_3 = flatten_0(_this__u8e3s4, OpenAPIV2Parser_instance, value_0, Common_getInstance().y2e([name, key_1]));
|
|
1758
1758
|
addAll(destination_3, list_3);
|
|
1759
1759
|
}
|
|
1760
1760
|
|
|
@@ -1769,7 +1769,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1769
1769
|
tmp_11 = emptyList();
|
|
1770
1770
|
} else {
|
|
1771
1771
|
if (it_0 instanceof SchemaObject) {
|
|
1772
|
-
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().
|
|
1772
|
+
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().y2e([name, 'Array']));
|
|
1773
1773
|
} else {
|
|
1774
1774
|
if (it_0 == null) {
|
|
1775
1775
|
tmp_11 = emptyList();
|
|
@@ -1827,7 +1827,7 @@ function toReference(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
1827
1827
|
}
|
|
1828
1828
|
tmp = tmp_0;
|
|
1829
1829
|
} else if (!(schema.s1n_1 == null)) {
|
|
1830
|
-
tmp = new Custom(sanitize(Common_getInstance().
|
|
1830
|
+
tmp = new Custom(sanitize(Common_getInstance().y2e([getReference(reference, OpenAPIV2Parser_instance)])), isNullable);
|
|
1831
1831
|
} else if (isPrimitive(schema.t1n_1)) {
|
|
1832
1832
|
tmp = new Primitive(toPrimitive(schema, OpenAPIV2Parser_instance), isNullable);
|
|
1833
1833
|
} else {
|
|
@@ -1840,7 +1840,7 @@ function toReference(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
1840
1840
|
tmp_2 = toIterable(toReference(_this__u8e3s4, OpenAPIV2Parser_instance, items, false), isNullable);
|
|
1841
1841
|
} else {
|
|
1842
1842
|
if (items instanceof SchemaObject) {
|
|
1843
|
-
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, items, Common_getInstance().
|
|
1843
|
+
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, items, Common_getInstance().y2e([getReference(reference, OpenAPIV2Parser_instance), 'Array']), isNullable), isNullable);
|
|
1844
1844
|
} else {
|
|
1845
1845
|
if (items == null) {
|
|
1846
1846
|
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.c1o_1);
|
|
@@ -1854,10 +1854,10 @@ function toReference(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
1854
1854
|
} else {
|
|
1855
1855
|
var tmp_3;
|
|
1856
1856
|
if (refOrSchema instanceof SchemaObject) {
|
|
1857
|
-
tmp_3 = new Custom(sanitize(Common_getInstance().
|
|
1857
|
+
tmp_3 = new Custom(sanitize(Common_getInstance().y2e([getReference(reference, OpenAPIV2Parser_instance)])), isNullable);
|
|
1858
1858
|
} else {
|
|
1859
1859
|
if (refOrSchema instanceof ReferenceObject) {
|
|
1860
|
-
tmp_3 = new Custom(sanitize(Common_getInstance().
|
|
1860
|
+
tmp_3 = new Custom(sanitize(Common_getInstance().y2e([getReference(refOrSchema, OpenAPIV2Parser_instance)])), isNullable);
|
|
1861
1861
|
} else {
|
|
1862
1862
|
noWhenBranchMatchedException();
|
|
1863
1863
|
}
|
|
@@ -2027,7 +2027,7 @@ function toOperationList(_this__u8e3s4, $this) {
|
|
|
2027
2027
|
var tmp$ret$0 = tmp_0;
|
|
2028
2028
|
result.n2(element, tmp$ret$0);
|
|
2029
2029
|
}
|
|
2030
|
-
return tmp.
|
|
2030
|
+
return tmp.z2e(result);
|
|
2031
2031
|
}
|
|
2032
2032
|
function getReference(_this__u8e3s4, $this) {
|
|
2033
2033
|
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.c1o_1), ['/']).k(2);
|
|
@@ -2113,7 +2113,7 @@ function toField_0(_this__u8e3s4, $this, schema, name) {
|
|
|
2113
2113
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
2114
2114
|
var tmp;
|
|
2115
2115
|
if (value instanceof SchemaObject) {
|
|
2116
|
-
tmp = new Field(new FieldIdentifier(key), !(value.s1n_1 == null) ? toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().
|
|
2116
|
+
tmp = new Field(new FieldIdentifier(key), !(value.s1n_1 == null) ? toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().y2e([name, key]), isNullable) : equals(value.t1n_1, Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().y2e([name, key, 'Array']), isNullable) : toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().y2e([name, key]), isNullable));
|
|
2117
2117
|
} else {
|
|
2118
2118
|
if (value instanceof ReferenceObject) {
|
|
2119
2119
|
tmp = new Field(new FieldIdentifier(key), toReference(_this__u8e3s4, OpenAPIV2Parser_instance, value, isNullable));
|
|
@@ -2136,7 +2136,7 @@ function toField_1(_this__u8e3s4, $this, parameter, name) {
|
|
|
2136
2136
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
2137
2137
|
var tmp;
|
|
2138
2138
|
if (!(parameter.q1j_1 == null)) {
|
|
2139
|
-
tmp = new Custom(sanitize(Common_getInstance().
|
|
2139
|
+
tmp = new Custom(sanitize(Common_getInstance().y2e([name, 'Parameter', schema.v1i_1])), isNullable);
|
|
2140
2140
|
} else {
|
|
2141
2141
|
var tmp1_subject = schema.a1j_1;
|
|
2142
2142
|
var tmp_0;
|
|
@@ -2293,7 +2293,7 @@ function toName(_this__u8e3s4, $this) {
|
|
|
2293
2293
|
// Inline function 'kotlin.let' call
|
|
2294
2294
|
// Inline function 'kotlin.contracts.contract' call
|
|
2295
2295
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.toName.<anonymous>' call
|
|
2296
|
-
tmp = Common_getInstance().
|
|
2296
|
+
tmp = Common_getInstance().y2e([tmp0_safe_receiver]);
|
|
2297
2297
|
}
|
|
2298
2298
|
return tmp;
|
|
2299
2299
|
}
|
|
@@ -2315,21 +2315,21 @@ function toName_0(_this__u8e3s4, $this) {
|
|
|
2315
2315
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenAPIV2Parser$toName$lambda);
|
|
2316
2316
|
}
|
|
2317
2317
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
2318
|
-
this.
|
|
2319
|
-
this.
|
|
2320
|
-
this.
|
|
2321
|
-
this.
|
|
2322
|
-
this.
|
|
2318
|
+
this.e2f_1 = path;
|
|
2319
|
+
this.f2f_1 = pathItem;
|
|
2320
|
+
this.g2f_1 = method;
|
|
2321
|
+
this.h2f_1 = operation;
|
|
2322
|
+
this.i2f_1 = type;
|
|
2323
2323
|
}
|
|
2324
2324
|
protoOf(FlattenRequest).toString = function () {
|
|
2325
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
2325
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.e2f_1) + ', pathItem=' + this.f2f_1.toString() + ', method=' + this.g2f_1.toString() + ', operation=' + this.h2f_1.toString() + ', type=' + this.i2f_1 + ')';
|
|
2326
2326
|
};
|
|
2327
2327
|
protoOf(FlattenRequest).hashCode = function () {
|
|
2328
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2329
|
-
result = imul(result, 31) + this.e2f_1.hashCode() | 0;
|
|
2328
|
+
var result = Path__hashCode_impl_go73kd(this.e2f_1);
|
|
2330
2329
|
result = imul(result, 31) + this.f2f_1.hashCode() | 0;
|
|
2331
2330
|
result = imul(result, 31) + this.g2f_1.hashCode() | 0;
|
|
2332
|
-
result = imul(result, 31) +
|
|
2331
|
+
result = imul(result, 31) + this.h2f_1.hashCode() | 0;
|
|
2332
|
+
result = imul(result, 31) + getStringHashCode(this.i2f_1) | 0;
|
|
2333
2333
|
return result;
|
|
2334
2334
|
};
|
|
2335
2335
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -2338,15 +2338,15 @@ protoOf(FlattenRequest).equals = function (other) {
|
|
|
2338
2338
|
if (!(other instanceof FlattenRequest))
|
|
2339
2339
|
return false;
|
|
2340
2340
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
2341
|
-
if (!(this.
|
|
2342
|
-
return false;
|
|
2343
|
-
if (!this.e2f_1.equals(tmp0_other_with_cast.e2f_1))
|
|
2341
|
+
if (!(this.e2f_1 === tmp0_other_with_cast.e2f_1))
|
|
2344
2342
|
return false;
|
|
2345
2343
|
if (!this.f2f_1.equals(tmp0_other_with_cast.f2f_1))
|
|
2346
2344
|
return false;
|
|
2347
2345
|
if (!this.g2f_1.equals(tmp0_other_with_cast.g2f_1))
|
|
2348
2346
|
return false;
|
|
2349
|
-
if (!
|
|
2347
|
+
if (!this.h2f_1.equals(tmp0_other_with_cast.h2f_1))
|
|
2348
|
+
return false;
|
|
2349
|
+
if (!(this.i2f_1 === tmp0_other_with_cast.i2f_1))
|
|
2350
2350
|
return false;
|
|
2351
2351
|
return true;
|
|
2352
2352
|
};
|
|
@@ -2408,25 +2408,25 @@ function flatMapRequests(_this__u8e3s4, $this, f) {
|
|
|
2408
2408
|
return destination_2;
|
|
2409
2409
|
}
|
|
2410
2410
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
2411
|
-
this.
|
|
2412
|
-
this.
|
|
2413
|
-
this.
|
|
2414
|
-
this.
|
|
2415
|
-
this.
|
|
2416
|
-
this.
|
|
2417
|
-
this.
|
|
2411
|
+
this.j2f_1 = path;
|
|
2412
|
+
this.k2f_1 = pathItem;
|
|
2413
|
+
this.l2f_1 = method;
|
|
2414
|
+
this.m2f_1 = operation;
|
|
2415
|
+
this.n2f_1 = statusCode;
|
|
2416
|
+
this.o2f_1 = response;
|
|
2417
|
+
this.p2f_1 = type;
|
|
2418
2418
|
}
|
|
2419
2419
|
protoOf(FlattenResponse).toString = function () {
|
|
2420
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
2420
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.j2f_1) + ', pathItem=' + this.k2f_1.toString() + ', method=' + this.l2f_1.toString() + ', operation=' + this.m2f_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy(this.n2f_1) + ', response=' + toString(this.o2f_1) + ', type=' + this.p2f_1 + ')';
|
|
2421
2421
|
};
|
|
2422
2422
|
protoOf(FlattenResponse).hashCode = function () {
|
|
2423
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2424
|
-
result = imul(result, 31) + this.j2f_1.hashCode() | 0;
|
|
2423
|
+
var result = Path__hashCode_impl_go73kd(this.j2f_1);
|
|
2425
2424
|
result = imul(result, 31) + this.k2f_1.hashCode() | 0;
|
|
2426
2425
|
result = imul(result, 31) + this.l2f_1.hashCode() | 0;
|
|
2427
|
-
result = imul(result, 31) +
|
|
2428
|
-
result = imul(result, 31) +
|
|
2429
|
-
result = imul(result, 31) +
|
|
2426
|
+
result = imul(result, 31) + this.m2f_1.hashCode() | 0;
|
|
2427
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.n2f_1) | 0;
|
|
2428
|
+
result = imul(result, 31) + hashCode(this.o2f_1) | 0;
|
|
2429
|
+
result = imul(result, 31) + getStringHashCode(this.p2f_1) | 0;
|
|
2430
2430
|
return result;
|
|
2431
2431
|
};
|
|
2432
2432
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -2435,19 +2435,19 @@ protoOf(FlattenResponse).equals = function (other) {
|
|
|
2435
2435
|
if (!(other instanceof FlattenResponse))
|
|
2436
2436
|
return false;
|
|
2437
2437
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
2438
|
-
if (!(this.
|
|
2439
|
-
return false;
|
|
2440
|
-
if (!this.j2f_1.equals(tmp0_other_with_cast.j2f_1))
|
|
2438
|
+
if (!(this.j2f_1 === tmp0_other_with_cast.j2f_1))
|
|
2441
2439
|
return false;
|
|
2442
2440
|
if (!this.k2f_1.equals(tmp0_other_with_cast.k2f_1))
|
|
2443
2441
|
return false;
|
|
2444
2442
|
if (!this.l2f_1.equals(tmp0_other_with_cast.l2f_1))
|
|
2445
2443
|
return false;
|
|
2446
|
-
if (!
|
|
2444
|
+
if (!this.m2f_1.equals(tmp0_other_with_cast.m2f_1))
|
|
2447
2445
|
return false;
|
|
2448
|
-
if (!
|
|
2446
|
+
if (!(this.n2f_1 === tmp0_other_with_cast.n2f_1))
|
|
2449
2447
|
return false;
|
|
2450
|
-
if (!(this.o2f_1
|
|
2448
|
+
if (!equals(this.o2f_1, tmp0_other_with_cast.o2f_1))
|
|
2449
|
+
return false;
|
|
2450
|
+
if (!(this.p2f_1 === tmp0_other_with_cast.p2f_1))
|
|
2451
2451
|
return false;
|
|
2452
2452
|
return true;
|
|
2453
2453
|
};
|
|
@@ -2535,9 +2535,9 @@ function OpenAPIV2Parser$parse$lambda($strict) {
|
|
|
2535
2535
|
}
|
|
2536
2536
|
function OpenAPIV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
2537
2537
|
return function ($this$flatMapRequests) {
|
|
2538
|
-
var parameters = plus(resolveParameters_0($this_parseParameters, OpenAPIV2Parser_instance, $this$flatMapRequests.
|
|
2539
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2540
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2538
|
+
var parameters = plus(resolveParameters_0($this_parseParameters, OpenAPIV2Parser_instance, $this$flatMapRequests.f2f_1), resolveParameters($this_parseParameters, OpenAPIV2Parser_instance, $this$flatMapRequests.h2f_1));
|
|
2539
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.h2f_1, OpenAPIV2Parser_instance);
|
|
2540
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.e2f_1, OpenAPIV2Parser_instance) + $this$flatMapRequests.g2f_1.q2_1 : tmp0_elvis_lhs;
|
|
2541
2541
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2542
2542
|
// Inline function 'kotlin.collections.filter' call
|
|
2543
2543
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -2564,7 +2564,7 @@ function OpenAPIV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
2564
2564
|
// Inline function 'kotlin.let' call
|
|
2565
2565
|
// Inline function 'kotlin.contracts.contract' call
|
|
2566
2566
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
2567
|
-
tmp = flatten_0($this_parseParameters, OpenAPIV2Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
2567
|
+
tmp = flatten_0($this_parseParameters, OpenAPIV2Parser_instance, tmp0_safe_receiver, Common_getInstance().y2e([name, 'Parameter', element_0.v1i_1]));
|
|
2568
2568
|
}
|
|
2569
2569
|
var tmp1_elvis_lhs = tmp;
|
|
2570
2570
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -2575,9 +2575,9 @@ function OpenAPIV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
2575
2575
|
}
|
|
2576
2576
|
function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
2577
2577
|
return function ($this$flatMapRequests) {
|
|
2578
|
-
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenAPIV2Parser_instance, $this$flatMapRequests.
|
|
2579
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2580
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2578
|
+
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenAPIV2Parser_instance, $this$flatMapRequests.f2f_1), resolveParameters($this_parseRequestBody, OpenAPIV2Parser_instance, $this$flatMapRequests.h2f_1));
|
|
2579
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.h2f_1, OpenAPIV2Parser_instance);
|
|
2580
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.e2f_1, OpenAPIV2Parser_instance) + $this$flatMapRequests.g2f_1.q2_1 : tmp0_elvis_lhs;
|
|
2581
2581
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2582
2582
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2583
2583
|
var destination = ArrayList_init_$Create$();
|
|
@@ -2587,7 +2587,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2587
2587
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
2588
2588
|
var tmp;
|
|
2589
2589
|
if (!(element.q1j_1 == null)) {
|
|
2590
|
-
var tmp_0 = new DefinitionIdentifier(sanitize(Common_getInstance().
|
|
2590
|
+
var tmp_0 = new DefinitionIdentifier(sanitize(Common_getInstance().y2e([name, 'Parameter', element.v1i_1])));
|
|
2591
2591
|
// Inline function 'kotlin.collections.map' call
|
|
2592
2592
|
var this_0 = ensureNotNull(element.q1j_1);
|
|
2593
2593
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2607,7 +2607,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2607
2607
|
addAll(destination, list);
|
|
2608
2608
|
}
|
|
2609
2609
|
var enums = destination;
|
|
2610
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
2610
|
+
var tmp1_safe_receiver = $this$flatMapRequests.h2f_1.w1l_1;
|
|
2611
2611
|
var tmp_1;
|
|
2612
2612
|
if (tmp1_safe_receiver == null) {
|
|
2613
2613
|
tmp_1 = null;
|
|
@@ -2662,7 +2662,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2662
2662
|
switch (tmp0_subject == null ? -1 : tmp0_subject.r2_1) {
|
|
2663
2663
|
case -1:
|
|
2664
2664
|
case 5:
|
|
2665
|
-
tmp_5 = flatten($this_parseRequestBody, OpenAPIV2Parser_instance, schema, Common_getInstance().
|
|
2665
|
+
tmp_5 = flatten($this_parseRequestBody, OpenAPIV2Parser_instance, schema, Common_getInstance().y2e([name, 'RequestBody']));
|
|
2666
2666
|
break;
|
|
2667
2667
|
case 4:
|
|
2668
2668
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2675,7 +2675,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2675
2675
|
// Inline function 'kotlin.let' call
|
|
2676
2676
|
// Inline function 'kotlin.contracts.contract' call
|
|
2677
2677
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
2678
|
-
tmp_6 = flatten_0($this_parseRequestBody, OpenAPIV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
2678
|
+
tmp_6 = flatten_0($this_parseRequestBody, OpenAPIV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().y2e([name, 'RequestBody']));
|
|
2679
2679
|
}
|
|
2680
2680
|
|
|
2681
2681
|
var tmp0_elvis_lhs_0 = tmp_6;
|
|
@@ -2701,9 +2701,9 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2701
2701
|
}
|
|
2702
2702
|
function OpenAPIV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
2703
2703
|
return function ($this$flatMapResponses) {
|
|
2704
|
-
var schema = resolve_1($this_parseResponseBody, OpenAPIV2Parser_instance, $this$flatMapResponses.
|
|
2705
|
-
var tmp0_elvis_lhs = toName($this$flatMapResponses.
|
|
2706
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
2704
|
+
var schema = resolve_1($this_parseResponseBody, OpenAPIV2Parser_instance, $this$flatMapResponses.o2f_1).a1k_1;
|
|
2705
|
+
var tmp0_elvis_lhs = toName($this$flatMapResponses.m2f_1, OpenAPIV2Parser_instance);
|
|
2706
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.j2f_1, OpenAPIV2Parser_instance) + $this$flatMapResponses.l2f_1.q2_1 : tmp0_elvis_lhs;
|
|
2707
2707
|
var tmp;
|
|
2708
2708
|
if (schema instanceof SchemaObject) {
|
|
2709
2709
|
var tmp2_subject = schema.t1n_1;
|
|
@@ -2711,7 +2711,7 @@ function OpenAPIV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
2711
2711
|
switch (tmp2_subject == null ? -1 : tmp2_subject.r2_1) {
|
|
2712
2712
|
case -1:
|
|
2713
2713
|
case 5:
|
|
2714
|
-
tmp_0 = flatten($this_parseResponseBody, OpenAPIV2Parser_instance, schema, Common_getInstance().
|
|
2714
|
+
tmp_0 = flatten($this_parseResponseBody, OpenAPIV2Parser_instance, schema, Common_getInstance().y2e([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.n2f_1), 'ResponseBody']));
|
|
2715
2715
|
break;
|
|
2716
2716
|
case 4:
|
|
2717
2717
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2724,7 +2724,7 @@ function OpenAPIV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
2724
2724
|
// Inline function 'kotlin.let' call
|
|
2725
2725
|
// Inline function 'kotlin.contracts.contract' call
|
|
2726
2726
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
2727
|
-
tmp_1 = flatten_0($this_parseResponseBody, OpenAPIV2Parser_instance, tmp3_safe_receiver, Common_getInstance().
|
|
2727
|
+
tmp_1 = flatten_0($this_parseResponseBody, OpenAPIV2Parser_instance, tmp3_safe_receiver, Common_getInstance().y2e([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.n2f_1), 'ResponseBody']));
|
|
2728
2728
|
}
|
|
2729
2729
|
|
|
2730
2730
|
var tmp0_elvis_lhs_0 = tmp_1;
|
|
@@ -2752,10 +2752,10 @@ function OpenAPIV2Parser$toName$lambda(it) {
|
|
|
2752
2752
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2753
2753
|
|
|
2754
2754
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
2755
|
-
tmp = tmp_0.
|
|
2755
|
+
tmp = tmp_0.y2e([tmp$ret$1]);
|
|
2756
2756
|
break;
|
|
2757
2757
|
case false:
|
|
2758
|
-
tmp = Common_getInstance().
|
|
2758
|
+
tmp = Common_getInstance().y2e([it]);
|
|
2759
2759
|
break;
|
|
2760
2760
|
default:
|
|
2761
2761
|
noWhenBranchMatchedException();
|
|
@@ -2765,8 +2765,8 @@ function OpenAPIV2Parser$toName$lambda(it) {
|
|
|
2765
2765
|
}
|
|
2766
2766
|
function OpenAPIV2Parser() {
|
|
2767
2767
|
}
|
|
2768
|
-
protoOf(OpenAPIV2Parser).
|
|
2769
|
-
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.
|
|
2768
|
+
protoOf(OpenAPIV2Parser).w2e = function (moduleContent, strict) {
|
|
2769
|
+
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.q2f((new OpenAPI(Json(VOID, OpenAPIV2Parser$parse$lambda(strict)))).r1g(moduleContent.o22_1)));
|
|
2770
2770
|
var tmp;
|
|
2771
2771
|
if (tmp0_elvis_lhs == null) {
|
|
2772
2772
|
var message = 'Cannot yield non empty AST for OpenAPI v2';
|
|
@@ -2776,7 +2776,7 @@ protoOf(OpenAPIV2Parser).v2e = function (moduleContent, strict) {
|
|
|
2776
2776
|
}
|
|
2777
2777
|
return new AST(nonEmptyListOf(new Module(moduleContent.n22_1, tmp), []));
|
|
2778
2778
|
};
|
|
2779
|
-
protoOf(OpenAPIV2Parser).
|
|
2779
|
+
protoOf(OpenAPIV2Parser).q2f = function (_this__u8e3s4) {
|
|
2780
2780
|
// Inline function 'kotlin.collections.reduce' call
|
|
2781
2781
|
var iterator = listOf_0([parseEndpoints(_this__u8e3s4, this), parseParameters(_this__u8e3s4, this), parseRequestBody(_this__u8e3s4, this), parseResponseBody(_this__u8e3s4, this), parseDefinitions(_this__u8e3s4, this)]).g();
|
|
2782
2782
|
if (!iterator.h())
|
|
@@ -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
|
}
|
|
@@ -3670,20 +3670,20 @@ function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
|
3670
3670
|
function OpenAPIV3Emitter() {
|
|
3671
3671
|
OpenAPIV3Emitter_instance = this;
|
|
3672
3672
|
Emitter.call(this);
|
|
3673
|
-
this.
|
|
3674
|
-
this.
|
|
3675
|
-
this.
|
|
3673
|
+
this.r2f_1 = FileExtension_JSON_getInstance();
|
|
3674
|
+
this.s2f_1 = null;
|
|
3675
|
+
this.t2f_1 = '';
|
|
3676
3676
|
}
|
|
3677
|
-
protoOf(OpenAPIV3Emitter).
|
|
3678
|
-
return this.
|
|
3677
|
+
protoOf(OpenAPIV3Emitter).k24 = function () {
|
|
3678
|
+
return this.r2f_1;
|
|
3679
3679
|
};
|
|
3680
|
-
protoOf(OpenAPIV3Emitter).
|
|
3681
|
-
return this.
|
|
3680
|
+
protoOf(OpenAPIV3Emitter).b26 = function () {
|
|
3681
|
+
return this.t2f_1;
|
|
3682
3682
|
};
|
|
3683
|
-
protoOf(OpenAPIV3Emitter).
|
|
3683
|
+
protoOf(OpenAPIV3Emitter).g24 = function (module_0, logger) {
|
|
3684
3684
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
3685
|
-
var this_0 = Common_getInstance().
|
|
3686
|
-
var value = this.
|
|
3685
|
+
var this_0 = Common_getInstance().x2e_1;
|
|
3686
|
+
var value = this.u2f(module_0, null);
|
|
3687
3687
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3688
3688
|
var this_1 = this_0.xo();
|
|
3689
3689
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -3692,31 +3692,31 @@ 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
|
-
protoOf(OpenAPIV3Emitter).
|
|
3717
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
3716
|
+
protoOf(OpenAPIV3Emitter).u2f = function (module_0, options) {
|
|
3717
|
+
var tmp1_elvis_lhs = options == null ? null : options.v2f_1;
|
|
3718
3718
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
3719
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
3719
|
+
var tmp3_elvis_lhs = options == null ? null : options.w2f_1;
|
|
3720
3720
|
return new OpenAPIObject('3.0.0', new InfoObject_0(tmp, VOID, VOID, VOID, VOID, tmp3_elvis_lhs == null ? '0.0.0' : tmp3_elvis_lhs), VOID, emitPaths(module_0, this), emitComponents(module_0, this));
|
|
3721
3721
|
};
|
|
3722
3722
|
var OpenAPIV3Emitter_instance;
|
|
@@ -3774,7 +3774,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3774
3774
|
while (tmp0_iterator_2.h()) {
|
|
3775
3775
|
var item_0 = tmp0_iterator_2.i();
|
|
3776
3776
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3777
|
-
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_0, Common_getInstance().
|
|
3777
|
+
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_0, Common_getInstance().y2e([name, 'Parameter', item_0.i1w_1]));
|
|
3778
3778
|
destination_2.e(tmp$ret$9);
|
|
3779
3779
|
}
|
|
3780
3780
|
var query = destination_2;
|
|
@@ -3796,7 +3796,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3796
3796
|
while (tmp0_iterator_4.h()) {
|
|
3797
3797
|
var item_1 = tmp0_iterator_4.i();
|
|
3798
3798
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3799
|
-
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_1, Common_getInstance().
|
|
3799
|
+
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_1, Common_getInstance().y2e([name, 'Parameter', item_1.i1w_1]));
|
|
3800
3800
|
destination_4.e(tmp$ret$15);
|
|
3801
3801
|
}
|
|
3802
3802
|
var headers = destination_4;
|
|
@@ -3842,7 +3842,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3842
3842
|
tmp_2 = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema, isNullable);
|
|
3843
3843
|
} else {
|
|
3844
3844
|
if (schema instanceof SchemaObject_0) {
|
|
3845
|
-
tmp_2 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema, isNullable, Common_getInstance().
|
|
3845
|
+
tmp_2 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema, isNullable, Common_getInstance().y2e([name, 'RequestBody']));
|
|
3846
3846
|
} else {
|
|
3847
3847
|
if (schema == null) {
|
|
3848
3848
|
tmp_2 = null;
|
|
@@ -3935,7 +3935,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3935
3935
|
while (tmp0_iterator_8.h()) {
|
|
3936
3936
|
var item_4 = tmp0_iterator_8.i();
|
|
3937
3937
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3938
|
-
var tmp$ret$40 = toField_4(_this__u8e3s4, OpenAPIV3Parser_instance, resolve_5(_this__u8e3s4, OpenAPIV3Parser_instance, item_4.b1()), item_4.a1(), Common_getInstance().
|
|
3938
|
+
var tmp$ret$40 = toField_4(_this__u8e3s4, OpenAPIV3Parser_instance, resolve_5(_this__u8e3s4, OpenAPIV3Parser_instance, item_4.b1()), item_4.a1(), Common_getInstance().y2e([name, 'ResponseHeader']));
|
|
3939
3939
|
destination_8.e(tmp$ret$40);
|
|
3940
3940
|
}
|
|
3941
3941
|
tmp_7 = destination_8;
|
|
@@ -3949,7 +3949,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3949
3949
|
tmp_10 = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema_0, isNullable_0);
|
|
3950
3950
|
} else {
|
|
3951
3951
|
if (schema_0 instanceof SchemaObject_0) {
|
|
3952
|
-
tmp_10 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema_0, isNullable_0, Common_getInstance().
|
|
3952
|
+
tmp_10 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema_0, isNullable_0, Common_getInstance().y2e([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
3953
3953
|
} else {
|
|
3954
3954
|
if (schema_0 == null) {
|
|
3955
3955
|
tmp_10 = new Any(isNullable_0);
|
|
@@ -4004,7 +4004,7 @@ function flatMapResponse(_this__u8e3s4, $this, response, name, statusCode) {
|
|
|
4004
4004
|
switch (tmp0_subject == null ? -1 : tmp0_subject.r2_1) {
|
|
4005
4005
|
case -1:
|
|
4006
4006
|
case 5:
|
|
4007
|
-
tmp_0 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema, Common_getInstance().
|
|
4007
|
+
tmp_0 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema, Common_getInstance().y2e([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
4008
4008
|
break;
|
|
4009
4009
|
case 4:
|
|
4010
4010
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -4017,7 +4017,7 @@ function flatMapResponse(_this__u8e3s4, $this, response, name, statusCode) {
|
|
|
4017
4017
|
// Inline function 'kotlin.let' call
|
|
4018
4018
|
// Inline function 'kotlin.contracts.contract' call
|
|
4019
4019
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.flatMapResponse.<anonymous>.<anonymous>' call
|
|
4020
|
-
tmp_1 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
4020
|
+
tmp_1 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp1_safe_receiver, Common_getInstance().y2e([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
4021
4021
|
}
|
|
4022
4022
|
|
|
4023
4023
|
var tmp0_elvis_lhs_0 = tmp_1;
|
|
@@ -4071,7 +4071,7 @@ function parseComponents(_this__u8e3s4, $this) {
|
|
|
4071
4071
|
while (tmp0_iterator_0.h()) {
|
|
4072
4072
|
var element_0 = tmp0_iterator_0.i();
|
|
4073
4073
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseComponents.<anonymous>' call
|
|
4074
|
-
var list = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, element_0.b1(), Common_getInstance().
|
|
4074
|
+
var list = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, element_0.b1(), Common_getInstance().y2e([element_0.a1()]));
|
|
4075
4075
|
addAll(destination_0, list);
|
|
4076
4076
|
}
|
|
4077
4077
|
return destination_0;
|
|
@@ -4088,7 +4088,7 @@ function toName_1(_this__u8e3s4, $this) {
|
|
|
4088
4088
|
// Inline function 'kotlin.let' call
|
|
4089
4089
|
// Inline function 'kotlin.contracts.contract' call
|
|
4090
4090
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.toName.<anonymous>' call
|
|
4091
|
-
tmp = Common_getInstance().
|
|
4091
|
+
tmp = Common_getInstance().y2e([tmp0_safe_receiver]);
|
|
4092
4092
|
}
|
|
4093
4093
|
return tmp;
|
|
4094
4094
|
}
|
|
@@ -4178,7 +4178,7 @@ function toSegments_0(_this__u8e3s4, $this, path, parameters, operation, method)
|
|
|
4178
4178
|
// Inline function 'kotlin.let' call
|
|
4179
4179
|
// Inline function 'kotlin.contracts.contract' call
|
|
4180
4180
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.toSegments.<anonymous>.<anonymous>' call
|
|
4181
|
-
tmp_1 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp4_safe_receiver, false, Common_getInstance().
|
|
4181
|
+
tmp_1 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp4_safe_receiver, false, Common_getInstance().y2e([name, 'Parameter', param]));
|
|
4182
4182
|
}
|
|
4183
4183
|
|
|
4184
4184
|
var tmp5_safe_receiver = tmp_1;
|
|
@@ -4588,7 +4588,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4588
4588
|
tmp_6 = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, item, false);
|
|
4589
4589
|
} else {
|
|
4590
4590
|
if (item instanceof SchemaObject_0) {
|
|
4591
|
-
tmp_6 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, item, false, Common_getInstance().
|
|
4591
|
+
tmp_6 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, item, false, Common_getInstance().y2e([name, index_0.toString()]));
|
|
4592
4592
|
} else {
|
|
4593
4593
|
noWhenBranchMatchedException();
|
|
4594
4594
|
}
|
|
@@ -4616,7 +4616,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4616
4616
|
tmp_8 = emptyList();
|
|
4617
4617
|
} else {
|
|
4618
4618
|
if (element instanceof SchemaObject_0) {
|
|
4619
|
-
tmp_8 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, element, Common_getInstance().
|
|
4619
|
+
tmp_8 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, element, Common_getInstance().y2e([name, index_2.toString()]));
|
|
4620
4620
|
} else {
|
|
4621
4621
|
noWhenBranchMatchedException();
|
|
4622
4622
|
}
|
|
@@ -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
|
}
|
|
@@ -4688,7 +4688,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4688
4688
|
var key_0 = element_2.a1();
|
|
4689
4689
|
// Inline function 'kotlin.collections.component2' call
|
|
4690
4690
|
var value = element_2.b1();
|
|
4691
|
-
var list_2 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, Common_getInstance().
|
|
4691
|
+
var list_2 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, Common_getInstance().y2e([name, key_0]));
|
|
4692
4692
|
addAll(destination_3, list_2);
|
|
4693
4693
|
}
|
|
4694
4694
|
var list_3 = destination_3;
|
|
@@ -4737,7 +4737,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4737
4737
|
var key_1 = element_3.a1();
|
|
4738
4738
|
// Inline function 'kotlin.collections.component2' call
|
|
4739
4739
|
var value_0 = element_3.b1();
|
|
4740
|
-
var list_4 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value_0, Common_getInstance().
|
|
4740
|
+
var list_4 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value_0, Common_getInstance().y2e([name, key_1]));
|
|
4741
4741
|
addAll(destination_5, list_4);
|
|
4742
4742
|
}
|
|
4743
4743
|
|
|
@@ -4759,7 +4759,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4759
4759
|
tmp_14 = emptyList();
|
|
4760
4760
|
} else {
|
|
4761
4761
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
4762
|
-
tmp_14 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, tmp6_safe_receiver, Common_getInstance().
|
|
4762
|
+
tmp_14 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, tmp6_safe_receiver, Common_getInstance().y2e([name, 'array']));
|
|
4763
4763
|
} else {
|
|
4764
4764
|
noWhenBranchMatchedException();
|
|
4765
4765
|
}
|
|
@@ -4821,7 +4821,7 @@ function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
4821
4821
|
}
|
|
4822
4822
|
tmp = tmp_0;
|
|
4823
4823
|
} else if (!(schema.b1y_1 == null)) {
|
|
4824
|
-
tmp = new Custom(sanitize_0(Common_getInstance().
|
|
4824
|
+
tmp = new Custom(sanitize_0(Common_getInstance().y2e([getReference_0(referencingObject, OpenAPIV3Parser_instance)])), isNullable);
|
|
4825
4825
|
} else if (isPrimitive_0(schema.b1x_1)) {
|
|
4826
4826
|
tmp = new Primitive(toPrimitive_0(schema, OpenAPIV3Parser_instance), isNullable);
|
|
4827
4827
|
} else if (equals(schema.b1x_1, Type_ARRAY_getInstance_0())) {
|
|
@@ -4833,7 +4833,7 @@ function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
4833
4833
|
tmp_3 = toIterable_0(toReference_1(_this__u8e3s4, tmp_4, items, tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs), isNullable);
|
|
4834
4834
|
} else {
|
|
4835
4835
|
if (items instanceof SchemaObject_0) {
|
|
4836
|
-
var tmp_5 = sanitize_0(Common_getInstance().
|
|
4836
|
+
var tmp_5 = sanitize_0(Common_getInstance().y2e([getReference_0(referencingObject, OpenAPIV3Parser_instance), 'Array']));
|
|
4837
4837
|
var tmp3_elvis_lhs = schema.s1w_1;
|
|
4838
4838
|
tmp_3 = toIterable_0(new Custom(tmp_5, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs), isNullable);
|
|
4839
4839
|
} else {
|
|
@@ -4847,7 +4847,7 @@ function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
4847
4847
|
}
|
|
4848
4848
|
tmp = tmp_3;
|
|
4849
4849
|
} else {
|
|
4850
|
-
tmp = new Custom(sanitize_0(Common_getInstance().
|
|
4850
|
+
tmp = new Custom(sanitize_0(Common_getInstance().y2e([getReference_0(referencingObject, OpenAPIV3Parser_instance)])), isNullable);
|
|
4851
4851
|
}
|
|
4852
4852
|
return tmp;
|
|
4853
4853
|
}
|
|
@@ -5037,7 +5037,7 @@ function toOperationList_0(_this__u8e3s4, $this) {
|
|
|
5037
5037
|
var tmp$ret$0 = tmp_0;
|
|
5038
5038
|
result.n2(element, tmp$ret$0);
|
|
5039
5039
|
}
|
|
5040
|
-
return tmp.
|
|
5040
|
+
return tmp.z2e(result);
|
|
5041
5041
|
}
|
|
5042
5042
|
function getReference_0(_this__u8e3s4, $this) {
|
|
5043
5043
|
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.o1w_1), ['/']), 3);
|
|
@@ -5093,7 +5093,7 @@ function toField_2(_this__u8e3s4, $this, schema, name) {
|
|
|
5093
5093
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
5094
5094
|
var tmp;
|
|
5095
5095
|
if (value instanceof SchemaObject_0) {
|
|
5096
|
-
tmp = new Field(new FieldIdentifier(key), !(value.b1y_1 == null) ? toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().
|
|
5096
|
+
tmp = new Field(new FieldIdentifier(key), !(value.b1y_1 == null) ? toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().y2e([name, key])) : equals(value.b1x_1, Type_ARRAY_getInstance_0()) ? toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().y2e([name, key, 'Array'])) : toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().y2e([name, key])));
|
|
5097
5097
|
} else {
|
|
5098
5098
|
if (value instanceof ReferenceObject_0) {
|
|
5099
5099
|
tmp = new Field(new FieldIdentifier(key), toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable));
|
|
@@ -5155,19 +5155,19 @@ function toField_4(_this__u8e3s4, $this, header, identifier, name) {
|
|
|
5155
5155
|
return new Field(new FieldIdentifier(identifier), it);
|
|
5156
5156
|
}
|
|
5157
5157
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
5158
|
-
this.
|
|
5159
|
-
this.
|
|
5160
|
-
this.
|
|
5161
|
-
this.
|
|
5158
|
+
this.x2f_1 = path;
|
|
5159
|
+
this.y2f_1 = pathItem;
|
|
5160
|
+
this.z2f_1 = method;
|
|
5161
|
+
this.a2g_1 = operation;
|
|
5162
5162
|
}
|
|
5163
5163
|
protoOf(FlattenRequest_0).toString = function () {
|
|
5164
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
5164
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.x2f_1) + ', pathItem=' + this.y2f_1.toString() + ', method=' + this.z2f_1.toString() + ', operation=' + this.a2g_1.toString() + ')';
|
|
5165
5165
|
};
|
|
5166
5166
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
5167
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
5168
|
-
result = imul(result, 31) + this.x2f_1.hashCode() | 0;
|
|
5167
|
+
var result = Path__hashCode_impl_go73kd_0(this.x2f_1);
|
|
5169
5168
|
result = imul(result, 31) + this.y2f_1.hashCode() | 0;
|
|
5170
5169
|
result = imul(result, 31) + this.z2f_1.hashCode() | 0;
|
|
5170
|
+
result = imul(result, 31) + this.a2g_1.hashCode() | 0;
|
|
5171
5171
|
return result;
|
|
5172
5172
|
};
|
|
5173
5173
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -5176,14 +5176,14 @@ protoOf(FlattenRequest_0).equals = function (other) {
|
|
|
5176
5176
|
if (!(other instanceof FlattenRequest_0))
|
|
5177
5177
|
return false;
|
|
5178
5178
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
5179
|
-
if (!(this.
|
|
5180
|
-
return false;
|
|
5181
|
-
if (!this.x2f_1.equals(tmp0_other_with_cast.x2f_1))
|
|
5179
|
+
if (!(this.x2f_1 === tmp0_other_with_cast.x2f_1))
|
|
5182
5180
|
return false;
|
|
5183
5181
|
if (!this.y2f_1.equals(tmp0_other_with_cast.y2f_1))
|
|
5184
5182
|
return false;
|
|
5185
5183
|
if (!this.z2f_1.equals(tmp0_other_with_cast.z2f_1))
|
|
5186
5184
|
return false;
|
|
5185
|
+
if (!this.a2g_1.equals(tmp0_other_with_cast.a2g_1))
|
|
5186
|
+
return false;
|
|
5187
5187
|
return true;
|
|
5188
5188
|
};
|
|
5189
5189
|
function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
@@ -5231,23 +5231,23 @@ function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
|
5231
5231
|
return destination_1;
|
|
5232
5232
|
}
|
|
5233
5233
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
5234
|
-
this.
|
|
5235
|
-
this.
|
|
5236
|
-
this.
|
|
5237
|
-
this.
|
|
5238
|
-
this.
|
|
5239
|
-
this.
|
|
5234
|
+
this.b2g_1 = path;
|
|
5235
|
+
this.c2g_1 = pathItem;
|
|
5236
|
+
this.d2g_1 = method;
|
|
5237
|
+
this.e2g_1 = operation;
|
|
5238
|
+
this.f2g_1 = statusCode;
|
|
5239
|
+
this.g2g_1 = response;
|
|
5240
5240
|
}
|
|
5241
5241
|
protoOf(FlattenResponse_0).toString = function () {
|
|
5242
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
5242
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.b2g_1) + ', pathItem=' + this.c2g_1.toString() + ', method=' + this.d2g_1.toString() + ', operation=' + this.e2g_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy_0(this.f2g_1) + ', response=' + toString(this.g2g_1) + ')';
|
|
5243
5243
|
};
|
|
5244
5244
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
5245
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
5246
|
-
result = imul(result, 31) + this.b2g_1.hashCode() | 0;
|
|
5245
|
+
var result = Path__hashCode_impl_go73kd_0(this.b2g_1);
|
|
5247
5246
|
result = imul(result, 31) + this.c2g_1.hashCode() | 0;
|
|
5248
5247
|
result = imul(result, 31) + this.d2g_1.hashCode() | 0;
|
|
5249
|
-
result = imul(result, 31) +
|
|
5250
|
-
result = imul(result, 31) +
|
|
5248
|
+
result = imul(result, 31) + this.e2g_1.hashCode() | 0;
|
|
5249
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.f2g_1) | 0;
|
|
5250
|
+
result = imul(result, 31) + hashCode(this.g2g_1) | 0;
|
|
5251
5251
|
return result;
|
|
5252
5252
|
};
|
|
5253
5253
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -5256,17 +5256,17 @@ protoOf(FlattenResponse_0).equals = function (other) {
|
|
|
5256
5256
|
if (!(other instanceof FlattenResponse_0))
|
|
5257
5257
|
return false;
|
|
5258
5258
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
5259
|
-
if (!(this.
|
|
5260
|
-
return false;
|
|
5261
|
-
if (!this.b2g_1.equals(tmp0_other_with_cast.b2g_1))
|
|
5259
|
+
if (!(this.b2g_1 === tmp0_other_with_cast.b2g_1))
|
|
5262
5260
|
return false;
|
|
5263
5261
|
if (!this.c2g_1.equals(tmp0_other_with_cast.c2g_1))
|
|
5264
5262
|
return false;
|
|
5265
5263
|
if (!this.d2g_1.equals(tmp0_other_with_cast.d2g_1))
|
|
5266
5264
|
return false;
|
|
5267
|
-
if (!
|
|
5265
|
+
if (!this.e2g_1.equals(tmp0_other_with_cast.e2g_1))
|
|
5266
|
+
return false;
|
|
5267
|
+
if (!(this.f2g_1 === tmp0_other_with_cast.f2g_1))
|
|
5268
5268
|
return false;
|
|
5269
|
-
if (!equals(this.
|
|
5269
|
+
if (!equals(this.g2g_1, tmp0_other_with_cast.g2g_1))
|
|
5270
5270
|
return false;
|
|
5271
5271
|
return true;
|
|
5272
5272
|
};
|
|
@@ -5347,9 +5347,9 @@ function OpenAPIV3Parser$parse$lambda($strict) {
|
|
|
5347
5347
|
}
|
|
5348
5348
|
function OpenAPIV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
5349
5349
|
return function ($this$flatMapRequests) {
|
|
5350
|
-
var parameters = plus(resolveParameters_2($this_parseParameters, OpenAPIV3Parser_instance, $this$flatMapRequests.
|
|
5351
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5352
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5350
|
+
var parameters = plus(resolveParameters_2($this_parseParameters, OpenAPIV3Parser_instance, $this$flatMapRequests.y2f_1), resolveParameters_1($this_parseParameters, OpenAPIV3Parser_instance, $this$flatMapRequests.a2g_1));
|
|
5351
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.a2g_1, OpenAPIV3Parser_instance);
|
|
5352
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.x2f_1, OpenAPIV3Parser_instance) + $this$flatMapRequests.z2f_1.q2_1 : tmp0_elvis_lhs;
|
|
5353
5353
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5354
5354
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5355
5355
|
var destination = ArrayList_init_$Create$();
|
|
@@ -5365,7 +5365,7 @@ function OpenAPIV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
5365
5365
|
// Inline function 'kotlin.let' call
|
|
5366
5366
|
// Inline function 'kotlin.contracts.contract' call
|
|
5367
5367
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
5368
|
-
tmp = flatten_2($this_parseParameters, OpenAPIV3Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
5368
|
+
tmp = flatten_2($this_parseParameters, OpenAPIV3Parser_instance, tmp0_safe_receiver, Common_getInstance().y2e([name, 'Parameter', element.i1w_1]));
|
|
5369
5369
|
}
|
|
5370
5370
|
var tmp1_elvis_lhs = tmp;
|
|
5371
5371
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -5376,11 +5376,11 @@ function OpenAPIV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
5376
5376
|
}
|
|
5377
5377
|
function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
5378
5378
|
return function ($this$flatMapRequests) {
|
|
5379
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5380
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5379
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.a2g_1, OpenAPIV3Parser_instance);
|
|
5380
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.x2f_1, OpenAPIV3Parser_instance) + $this$flatMapRequests.z2f_1.q2_1 : tmp0_elvis_lhs;
|
|
5381
5381
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5382
5382
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5383
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
5383
|
+
var tmp1_safe_receiver = $this$flatMapRequests.a2g_1.j1u_1;
|
|
5384
5384
|
var tmp;
|
|
5385
5385
|
if (tmp1_safe_receiver == null) {
|
|
5386
5386
|
tmp = null;
|
|
@@ -5410,7 +5410,7 @@ function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
5410
5410
|
switch (tmp0_subject == null ? -1 : tmp0_subject.r2_1) {
|
|
5411
5411
|
case -1:
|
|
5412
5412
|
case 5:
|
|
5413
|
-
tmp_1 = flatten_1($this_parseRequestBody, OpenAPIV3Parser_instance, schema, Common_getInstance().
|
|
5413
|
+
tmp_1 = flatten_1($this_parseRequestBody, OpenAPIV3Parser_instance, schema, Common_getInstance().y2e([name, 'RequestBody']));
|
|
5414
5414
|
break;
|
|
5415
5415
|
case 4:
|
|
5416
5416
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -5423,7 +5423,7 @@ function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
5423
5423
|
// Inline function 'kotlin.let' call
|
|
5424
5424
|
// Inline function 'kotlin.contracts.contract' call
|
|
5425
5425
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
5426
|
-
tmp_2 = flatten_2($this_parseRequestBody, OpenAPIV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
5426
|
+
tmp_2 = flatten_2($this_parseRequestBody, OpenAPIV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().y2e([name, 'RequestBody']));
|
|
5427
5427
|
}
|
|
5428
5428
|
|
|
5429
5429
|
var tmp0_elvis_lhs_1 = tmp_2;
|
|
@@ -5455,15 +5455,15 @@ function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
5455
5455
|
}
|
|
5456
5456
|
function OpenAPIV3Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
5457
5457
|
return function ($this$flatMapResponses) {
|
|
5458
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.
|
|
5459
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.
|
|
5460
|
-
var response = $this$flatMapResponses.
|
|
5458
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.e2g_1, OpenAPIV3Parser_instance);
|
|
5459
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.b2g_1, OpenAPIV3Parser_instance) + $this$flatMapResponses.d2g_1.q2_1 : tmp0_elvis_lhs;
|
|
5460
|
+
var response = $this$flatMapResponses.g2g_1;
|
|
5461
5461
|
var tmp;
|
|
5462
5462
|
if (response instanceof ResponseObject_0) {
|
|
5463
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, response, name, $this$flatMapResponses.
|
|
5463
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, response, name, $this$flatMapResponses.f2g_1);
|
|
5464
5464
|
} else {
|
|
5465
5465
|
if (response instanceof ReferenceObject_0) {
|
|
5466
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenAPIV3Parser_instance, response).fe_1, name, $this$flatMapResponses.
|
|
5466
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenAPIV3Parser_instance, response).fe_1, name, $this$flatMapResponses.f2g_1);
|
|
5467
5467
|
} else {
|
|
5468
5468
|
noWhenBranchMatchedException();
|
|
5469
5469
|
}
|
|
@@ -5482,10 +5482,10 @@ function OpenAPIV3Parser$toName$lambda(it) {
|
|
|
5482
5482
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5483
5483
|
|
|
5484
5484
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
5485
|
-
tmp = tmp_0.
|
|
5485
|
+
tmp = tmp_0.y2e([tmp$ret$1]);
|
|
5486
5486
|
break;
|
|
5487
5487
|
case false:
|
|
5488
|
-
tmp = Common_getInstance().
|
|
5488
|
+
tmp = Common_getInstance().y2e([it]);
|
|
5489
5489
|
break;
|
|
5490
5490
|
default:
|
|
5491
5491
|
noWhenBranchMatchedException();
|
|
@@ -5495,8 +5495,8 @@ function OpenAPIV3Parser$toName$lambda(it) {
|
|
|
5495
5495
|
}
|
|
5496
5496
|
function OpenAPIV3Parser() {
|
|
5497
5497
|
}
|
|
5498
|
-
protoOf(OpenAPIV3Parser).
|
|
5499
|
-
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.
|
|
5498
|
+
protoOf(OpenAPIV3Parser).w2e = function (moduleContent, strict) {
|
|
5499
|
+
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.h2g((new OpenAPI_0(Json(VOID, OpenAPIV3Parser$parse$lambda(strict)))).r1g(moduleContent.o22_1)));
|
|
5500
5500
|
var tmp;
|
|
5501
5501
|
if (tmp0_elvis_lhs == null) {
|
|
5502
5502
|
var message = 'Cannot yield non empty List<Node> for OpenAPI v3';
|
|
@@ -5506,7 +5506,7 @@ protoOf(OpenAPIV3Parser).v2e = function (moduleContent, strict) {
|
|
|
5506
5506
|
}
|
|
5507
5507
|
return new AST(nonEmptyListOf(new Module(moduleContent.n22_1, tmp), []));
|
|
5508
5508
|
};
|
|
5509
|
-
protoOf(OpenAPIV3Parser).
|
|
5509
|
+
protoOf(OpenAPIV3Parser).h2g = function (_this__u8e3s4) {
|
|
5510
5510
|
// Inline function 'kotlin.collections.reduce' call
|
|
5511
5511
|
var iterator = listOf_0([parseEndpoint(_this__u8e3s4, this), parseParameters_0(_this__u8e3s4, this), parseRequestBody_0(_this__u8e3s4, this), parseResponseBody_0(_this__u8e3s4, this), parseComponents(_this__u8e3s4, this)]).g();
|
|
5512
5512
|
if (!iterator.h())
|
|
@@ -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, ''));
|