@flock/wirespec 0.14.8 → 0.14.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arrow-arrow-core.mjs +1 -0
- package/clikt-clikt.mjs +1155 -1155
- package/colormath-root-colormath.mjs +425 -425
- package/kotlin-kotlin-stdlib.mjs +10 -10
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +0 -1
- package/kotlin-rgxgen.mjs +1767 -1767
- package/kotlinx-io-kotlinx-io-core.mjs +380 -380
- package/markdown.mjs +1870 -1870
- package/mordant-mordant.mjs +1634 -1634
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +2314 -2226
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +328 -353
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +294 -292
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +338 -361
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +137 -143
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +79 -86
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-npm.d.ts +12 -21
- package/wirespec-src-plugin-npm.mjs +22 -45
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +14 -14
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Companion_instance2sejo8e2h37r2 as Companion_instance,
|
|
3
3
|
_Comment___get_value__impl__8r3pla12d959au1m11p as _Comment___get_value__impl__8r3pla,
|
|
4
4
|
Comment3h0atpoyd2ga8 as Comment,
|
|
5
5
|
Iterablerto606wd057m as Iterable,
|
|
@@ -173,7 +173,6 @@ import {
|
|
|
173
173
|
MediaTypeObjectye2dn9wzbmx8 as MediaTypeObject,
|
|
174
174
|
OpenAPIObjectd8pbkdbpfozt as OpenAPIObject,
|
|
175
175
|
InfoObjecti16jgbhn8t2n as InfoObject_0,
|
|
176
|
-
ParameterLocation_COOKIE_getInstance3nzwkc3vozo3 as ParameterLocation_COOKIE_getInstance,
|
|
177
176
|
_MediaType___get_value__impl__wy58mp4164g70708y1 as _MediaType___get_value__impl__wy58mp,
|
|
178
177
|
_StatusCode___get_value__impl__we50muqafaav4hneqy as _StatusCode___get_value__impl__we50mu_0,
|
|
179
178
|
_Path___get_value__impl__thmflc3s2k0r73cg1gg as _Path___get_value__impl__thmflc_0,
|
|
@@ -209,7 +208,7 @@ initMetadataForClass(FlattenResponse_0, 'FlattenResponse');
|
|
|
209
208
|
initMetadataForObject(OpenAPIV3Parser, 'OpenAPIV3Parser');
|
|
210
209
|
//endregion
|
|
211
210
|
function Common$className$lambda(it) {
|
|
212
|
-
return
|
|
211
|
+
return Companion_instance.r25(it);
|
|
213
212
|
}
|
|
214
213
|
function Common$json$lambda($this$Json) {
|
|
215
214
|
$this$Json.r16_1 = true;
|
|
@@ -218,9 +217,9 @@ function Common$json$lambda($this$Json) {
|
|
|
218
217
|
function Common() {
|
|
219
218
|
Common_instance = this;
|
|
220
219
|
var tmp = this;
|
|
221
|
-
tmp.
|
|
220
|
+
tmp.p2e_1 = Json(VOID, Common$json$lambda);
|
|
222
221
|
}
|
|
223
|
-
protoOf(Common).
|
|
222
|
+
protoOf(Common).q2e = function (arg) {
|
|
224
223
|
// Inline function 'kotlin.collections.flatMap' call
|
|
225
224
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
226
225
|
var destination = ArrayList_init_$Create$();
|
|
@@ -236,7 +235,7 @@ protoOf(Common).u2e = function (arg) {
|
|
|
236
235
|
var tmp = destination;
|
|
237
236
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, Common$className$lambda);
|
|
238
237
|
};
|
|
239
|
-
protoOf(Common).
|
|
238
|
+
protoOf(Common).r2e = function (_this__u8e3s4) {
|
|
240
239
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
241
240
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
242
241
|
var destination = ArrayList_init_$Create$();
|
|
@@ -277,7 +276,7 @@ function Common_getInstance() {
|
|
|
277
276
|
return Common_instance;
|
|
278
277
|
}
|
|
279
278
|
function toProperties(_this__u8e3s4, $this) {
|
|
280
|
-
return to(_this__u8e3s4.
|
|
279
|
+
return to(_this__u8e3s4.s25_1.b1(), toSchemaOrReference(_this__u8e3s4.t25_1, $this));
|
|
281
280
|
}
|
|
282
281
|
function emit(_this__u8e3s4, $this, method) {
|
|
283
282
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -287,7 +286,7 @@ function emit(_this__u8e3s4, $this, method) {
|
|
|
287
286
|
while (_iterator__ex2g4s.h()) {
|
|
288
287
|
var element = _iterator__ex2g4s.i();
|
|
289
288
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
290
|
-
if (element.
|
|
289
|
+
if (element.a25_1.equals(method)) {
|
|
291
290
|
destination.e(element);
|
|
292
291
|
}
|
|
293
292
|
}
|
|
@@ -304,8 +303,8 @@ function emit(_this__u8e3s4, $this, method) {
|
|
|
304
303
|
return firstOrNull(destination_0);
|
|
305
304
|
}
|
|
306
305
|
function emit_0(_this__u8e3s4, $this) {
|
|
307
|
-
var tmp1_operationId = _this__u8e3s4.
|
|
308
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
306
|
+
var tmp1_operationId = _this__u8e3s4.z24_1.b1();
|
|
307
|
+
var tmp0_safe_receiver = _this__u8e3s4.y24_1;
|
|
309
308
|
var tmp;
|
|
310
309
|
var tmp_0 = tmp0_safe_receiver;
|
|
311
310
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -315,7 +314,7 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
315
314
|
}
|
|
316
315
|
var tmp2_description = tmp;
|
|
317
316
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
318
|
-
var tmp0 = _this__u8e3s4.
|
|
317
|
+
var tmp0 = _this__u8e3s4.e25_1;
|
|
319
318
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
320
319
|
var destination = ArrayList_init_$Create$();
|
|
321
320
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -324,8 +323,8 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
324
323
|
var element = _iterator__ex2g4s.i();
|
|
325
324
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
326
325
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
327
|
-
var tmp0_safe_receiver_0 = element.
|
|
328
|
-
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.
|
|
326
|
+
var tmp0_safe_receiver_0 = element.l25_1;
|
|
327
|
+
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.m25_1;
|
|
329
328
|
if (tmp0_safe_receiver_1 == null)
|
|
330
329
|
null;
|
|
331
330
|
else {
|
|
@@ -345,7 +344,7 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
345
344
|
}
|
|
346
345
|
var tmp3_consumes = tmp_1;
|
|
347
346
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
348
|
-
var tmp0_0 = _this__u8e3s4.
|
|
347
|
+
var tmp0_0 = _this__u8e3s4.f25_1;
|
|
349
348
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
350
349
|
var destination_0 = ArrayList_init_$Create$();
|
|
351
350
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -354,8 +353,8 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
354
353
|
var element_0 = _iterator__ex2g4s_0.i();
|
|
355
354
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
356
355
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
357
|
-
var tmp0_safe_receiver_2 = element_0.
|
|
358
|
-
var tmp0_safe_receiver_3 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.
|
|
356
|
+
var tmp0_safe_receiver_2 = element_0.i25_1;
|
|
357
|
+
var tmp0_safe_receiver_3 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.m25_1;
|
|
359
358
|
if (tmp0_safe_receiver_3 == null)
|
|
360
359
|
null;
|
|
361
360
|
else {
|
|
@@ -375,7 +374,7 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
375
374
|
}
|
|
376
375
|
var tmp4_produces = tmp_2;
|
|
377
376
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
378
|
-
var tmp0_1 = _this__u8e3s4.
|
|
377
|
+
var tmp0_1 = _this__u8e3s4.e25_1;
|
|
379
378
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
380
379
|
var destination_1 = ArrayList_init_$Create$();
|
|
381
380
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -384,7 +383,7 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
384
383
|
var element_1 = _iterator__ex2g4s_1.i();
|
|
385
384
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
386
385
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
387
|
-
var tmp0_safe_receiver_4 = element_1.
|
|
386
|
+
var tmp0_safe_receiver_4 = element_1.l25_1;
|
|
388
387
|
if (tmp0_safe_receiver_4 == null)
|
|
389
388
|
null;
|
|
390
389
|
else {
|
|
@@ -402,14 +401,14 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
402
401
|
var item = _iterator__ex2g4s_2.i();
|
|
403
402
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
404
403
|
var tmp0_in = ParameterLocation_BODY_getInstance();
|
|
405
|
-
var tmp1_schema = toSchemaOrReference(item.
|
|
406
|
-
var tmp2_required = !item.
|
|
404
|
+
var tmp1_schema = toSchemaOrReference(item.n25_1, OpenAPIV2Emitter_getInstance());
|
|
405
|
+
var tmp2_required = !item.n25_1.sm();
|
|
407
406
|
var tmp$ret$16 = new ParameterObject('RequestBody', tmp0_in, VOID, tmp2_required, tmp1_schema);
|
|
408
407
|
destination_2.e(tmp$ret$16);
|
|
409
408
|
}
|
|
410
409
|
var tmp_3 = destination_2;
|
|
411
410
|
// Inline function 'kotlin.collections.map' call
|
|
412
|
-
var this_3 = _this__u8e3s4.
|
|
411
|
+
var this_3 = _this__u8e3s4.c25_1;
|
|
413
412
|
// Inline function 'kotlin.collections.mapTo' call
|
|
414
413
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_3, 10));
|
|
415
414
|
var _iterator__ex2g4s_3 = this_3.g();
|
|
@@ -421,7 +420,7 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
421
420
|
}
|
|
422
421
|
var tmp_4 = plus(tmp_3, destination_3);
|
|
423
422
|
// Inline function 'kotlin.collections.map' call
|
|
424
|
-
var this_4 = _this__u8e3s4.
|
|
423
|
+
var this_4 = _this__u8e3s4.d25_1;
|
|
425
424
|
// Inline function 'kotlin.collections.mapTo' call
|
|
426
425
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_4, 10));
|
|
427
426
|
var _iterator__ex2g4s_4 = this_4.g();
|
|
@@ -433,7 +432,7 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
433
432
|
}
|
|
434
433
|
var tmp5_parameters = plus(tmp_4, destination_4);
|
|
435
434
|
// Inline function 'kotlin.collections.associate' call
|
|
436
|
-
var this_5 = _this__u8e3s4.
|
|
435
|
+
var this_5 = _this__u8e3s4.f25_1;
|
|
437
436
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_5, 10)), 16);
|
|
438
437
|
// Inline function 'kotlin.collections.associateTo' call
|
|
439
438
|
var destination_5 = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -441,8 +440,8 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
441
440
|
while (_iterator__ex2g4s_5.h()) {
|
|
442
441
|
var element_2 = _iterator__ex2g4s_5.i();
|
|
443
442
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
444
|
-
var tmp_5 = _StatusCode___init__impl__t1yi9q(element_2.
|
|
445
|
-
var tmp0_safe_receiver_5 = _this__u8e3s4.
|
|
443
|
+
var tmp_5 = _StatusCode___init__impl__t1yi9q(element_2.g25_1);
|
|
444
|
+
var tmp0_safe_receiver_5 = _this__u8e3s4.y24_1;
|
|
446
445
|
var tmp_6;
|
|
447
446
|
var tmp_7 = tmp0_safe_receiver_5;
|
|
448
447
|
if ((tmp_7 == null ? null : new Comment(tmp_7)) == null) {
|
|
@@ -451,9 +450,9 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
451
450
|
tmp_6 = _Comment___get_value__impl__8r3pla(tmp0_safe_receiver_5);
|
|
452
451
|
}
|
|
453
452
|
var tmp1_elvis_lhs = tmp_6;
|
|
454
|
-
var tmp4_description = tmp1_elvis_lhs == null ? _this__u8e3s4.
|
|
453
|
+
var tmp4_description = tmp1_elvis_lhs == null ? _this__u8e3s4.z24_1.b1() + ' ' + element_2.g25_1 + ' response' : tmp1_elvis_lhs;
|
|
455
454
|
// Inline function 'kotlin.collections.associate' call
|
|
456
|
-
var this_6 = element_2.
|
|
455
|
+
var this_6 = element_2.h25_1;
|
|
457
456
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_6, 10)), 16);
|
|
458
457
|
// Inline function 'kotlin.collections.associateTo' call
|
|
459
458
|
var destination_6 = LinkedHashMap_init_$Create$(capacity_0);
|
|
@@ -461,17 +460,17 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
461
460
|
while (_iterator__ex2g4s_6.h()) {
|
|
462
461
|
var element_3 = _iterator__ex2g4s_6.i();
|
|
463
462
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
464
|
-
var tmp_8 = element_3.
|
|
465
|
-
var tmp_9 = emitType_0(element_3.
|
|
466
|
-
var tmp_10 = emitFormat(element_3.
|
|
467
|
-
var tmp_11 = element_3.
|
|
463
|
+
var tmp_8 = element_3.s25_1.b1();
|
|
464
|
+
var tmp_9 = emitType_0(element_3.t25_1, OpenAPIV2Emitter_getInstance()).q2_1;
|
|
465
|
+
var tmp_10 = emitFormat(element_3.t25_1, OpenAPIV2Emitter_getInstance());
|
|
466
|
+
var tmp_11 = element_3.t25_1;
|
|
468
467
|
var tmp0_safe_receiver_6 = tmp_11 instanceof Iterable ? tmp_11 : null;
|
|
469
468
|
var tmp1_safe_receiver = tmp0_safe_receiver_6 == null ? null : tmp0_safe_receiver_6.a24_1;
|
|
470
469
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
471
470
|
var pair = to(tmp_8, new HeaderObject(VOID, tmp_9, tmp_10, tmp1_safe_receiver == null ? null : toSchemaOrReference(tmp1_safe_receiver, OpenAPIV2Emitter_getInstance())));
|
|
472
471
|
destination_6.n2(pair.ke_1, pair.le_1);
|
|
473
472
|
}
|
|
474
|
-
var tmp2_safe_receiver = element_2.
|
|
473
|
+
var tmp2_safe_receiver = element_2.i25_1;
|
|
475
474
|
var tmp_12;
|
|
476
475
|
if (tmp2_safe_receiver == null) {
|
|
477
476
|
tmp_12 = null;
|
|
@@ -479,7 +478,7 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
479
478
|
// Inline function 'kotlin.takeIf' call
|
|
480
479
|
var tmp_13;
|
|
481
480
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
482
|
-
var tmp_14 = tmp2_safe_receiver.
|
|
481
|
+
var tmp_14 = tmp2_safe_receiver.n25_1;
|
|
483
482
|
if (!(tmp_14 instanceof Unit)) {
|
|
484
483
|
tmp_13 = tmp2_safe_receiver;
|
|
485
484
|
} else {
|
|
@@ -494,7 +493,7 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
494
493
|
} else {
|
|
495
494
|
// Inline function 'kotlin.let' call
|
|
496
495
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
497
|
-
var ref = tmp3_safe_receiver.
|
|
496
|
+
var ref = tmp3_safe_receiver.n25_1;
|
|
498
497
|
var tmp_16;
|
|
499
498
|
if (ref instanceof Iterable) {
|
|
500
499
|
tmp_16 = 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.a24_1, OpenAPIV2Emitter_getInstance()));
|
|
@@ -514,10 +513,10 @@ function emitSegment(_this__u8e3s4, $this) {
|
|
|
514
513
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenAPIV2Emitter$emitSegment$lambda);
|
|
515
514
|
}
|
|
516
515
|
function emitParameter(_this__u8e3s4, $this, location) {
|
|
517
|
-
var tmp0_name = _this__u8e3s4.
|
|
518
|
-
var tmp1_type = emitType_0(_this__u8e3s4.
|
|
519
|
-
var tmp2_format = emitFormat(_this__u8e3s4.
|
|
520
|
-
var ref = _this__u8e3s4.
|
|
516
|
+
var tmp0_name = _this__u8e3s4.s25_1.b1();
|
|
517
|
+
var tmp1_type = emitType_0(_this__u8e3s4.t25_1, $this);
|
|
518
|
+
var tmp2_format = emitFormat(_this__u8e3s4.t25_1, $this);
|
|
519
|
+
var ref = _this__u8e3s4.t25_1;
|
|
521
520
|
var tmp;
|
|
522
521
|
if (ref instanceof Iterable) {
|
|
523
522
|
var emit = toSchemaOrReference(ref, $this);
|
|
@@ -536,7 +535,7 @@ function emitParameter(_this__u8e3s4, $this, location) {
|
|
|
536
535
|
tmp = null;
|
|
537
536
|
}
|
|
538
537
|
var tmp3_items = tmp;
|
|
539
|
-
var tmp4_required = !_this__u8e3s4.
|
|
538
|
+
var tmp4_required = !_this__u8e3s4.t25_1.sm();
|
|
540
539
|
return new ParameterObject(tmp0_name, location, VOID, tmp4_required, VOID, tmp1_type, tmp3_items, tmp2_format);
|
|
541
540
|
}
|
|
542
541
|
function toSchemaOrReference(_this__u8e3s4, $this) {
|
|
@@ -677,10 +676,10 @@ function emitFormat(_this__u8e3s4, $this) {
|
|
|
677
676
|
function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
678
677
|
var tmp;
|
|
679
678
|
if (it instanceof Param) {
|
|
680
|
-
tmp = '{' + it.
|
|
679
|
+
tmp = '{' + it.w25_1.b1() + '}';
|
|
681
680
|
} else {
|
|
682
681
|
if (it instanceof Literal) {
|
|
683
|
-
tmp = it.
|
|
682
|
+
tmp = it.g26_1;
|
|
684
683
|
} else {
|
|
685
684
|
noWhenBranchMatchedException();
|
|
686
685
|
}
|
|
@@ -690,23 +689,20 @@ function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
|
690
689
|
function OpenAPIV2Emitter() {
|
|
691
690
|
OpenAPIV2Emitter_instance = this;
|
|
692
691
|
Emitter.call(this);
|
|
693
|
-
this.
|
|
694
|
-
this.
|
|
695
|
-
this.
|
|
692
|
+
this.s2e_1 = FileExtension_JSON_getInstance();
|
|
693
|
+
this.t2e_1 = null;
|
|
694
|
+
this.u2e_1 = '';
|
|
696
695
|
}
|
|
697
|
-
protoOf(OpenAPIV2Emitter).
|
|
698
|
-
return this.
|
|
699
|
-
};
|
|
700
|
-
protoOf(OpenAPIV2Emitter).i26 = function (_this__u8e3s4) {
|
|
701
|
-
return this.n29();
|
|
696
|
+
protoOf(OpenAPIV2Emitter).i26 = function () {
|
|
697
|
+
return this.s2e_1;
|
|
702
698
|
};
|
|
703
|
-
protoOf(OpenAPIV2Emitter).
|
|
704
|
-
return this.
|
|
699
|
+
protoOf(OpenAPIV2Emitter).k26 = function () {
|
|
700
|
+
return this.u2e_1;
|
|
705
701
|
};
|
|
706
|
-
protoOf(OpenAPIV2Emitter).
|
|
707
|
-
var tmp0 = Common_getInstance().
|
|
702
|
+
protoOf(OpenAPIV2Emitter).l26 = function (module_0, logger) {
|
|
703
|
+
var tmp0 = Common_getInstance().p2e_1;
|
|
708
704
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
709
|
-
var value = this.
|
|
705
|
+
var value = this.v2e(module_0);
|
|
710
706
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
711
707
|
var this_0 = tmp0.ip();
|
|
712
708
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -715,30 +711,33 @@ protoOf(OpenAPIV2Emitter).a27 = function (module_0, logger) {
|
|
|
715
711
|
var tmp$ret$2 = tmp0.v15(tmp$ret$1, value);
|
|
716
712
|
return nonEmptyListOf(new Emitted('SwaggerObject', tmp$ret$2), []);
|
|
717
713
|
};
|
|
718
|
-
protoOf(OpenAPIV2Emitter).
|
|
719
|
-
return this.
|
|
714
|
+
protoOf(OpenAPIV2Emitter).t26 = function (type, module_0) {
|
|
715
|
+
return this.r29();
|
|
716
|
+
};
|
|
717
|
+
protoOf(OpenAPIV2Emitter).n27 = function (enum_0, module_0) {
|
|
718
|
+
return this.r29();
|
|
720
719
|
};
|
|
721
|
-
protoOf(OpenAPIV2Emitter).
|
|
722
|
-
return this.
|
|
720
|
+
protoOf(OpenAPIV2Emitter).g27 = function (refined) {
|
|
721
|
+
return this.r29();
|
|
723
722
|
};
|
|
724
|
-
protoOf(OpenAPIV2Emitter).
|
|
725
|
-
return this.
|
|
723
|
+
protoOf(OpenAPIV2Emitter).z27 = function (endpoint) {
|
|
724
|
+
return this.r29();
|
|
726
725
|
};
|
|
727
|
-
protoOf(OpenAPIV2Emitter).
|
|
728
|
-
return this.
|
|
726
|
+
protoOf(OpenAPIV2Emitter).s27 = function (union) {
|
|
727
|
+
return this.r29();
|
|
729
728
|
};
|
|
730
|
-
protoOf(OpenAPIV2Emitter).
|
|
731
|
-
return this.
|
|
729
|
+
protoOf(OpenAPIV2Emitter).u25 = function (identifier) {
|
|
730
|
+
return this.r29();
|
|
732
731
|
};
|
|
733
|
-
protoOf(OpenAPIV2Emitter).
|
|
734
|
-
return this.
|
|
732
|
+
protoOf(OpenAPIV2Emitter).t27 = function (channel) {
|
|
733
|
+
return this.r29();
|
|
735
734
|
};
|
|
736
|
-
protoOf(OpenAPIV2Emitter).
|
|
735
|
+
protoOf(OpenAPIV2Emitter).v2e = function (module_0) {
|
|
737
736
|
var tmp = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, '0.0.0');
|
|
738
737
|
var tmp_0 = listOf('application/json');
|
|
739
738
|
var tmp_1 = listOf('application/json');
|
|
740
739
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
741
|
-
var tmp0 = module_0.
|
|
740
|
+
var tmp0 = module_0.b27_1;
|
|
742
741
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
743
742
|
var destination = ArrayList_init_$Create$();
|
|
744
743
|
var _iterator__ex2g4s = tmp0.g();
|
|
@@ -755,7 +754,7 @@ protoOf(OpenAPIV2Emitter).z2e = function (module_0) {
|
|
|
755
754
|
while (_iterator__ex2g4s_0.h()) {
|
|
756
755
|
var element_0 = _iterator__ex2g4s_0.i();
|
|
757
756
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
758
|
-
var key = element_0.
|
|
757
|
+
var key = element_0.b25_1;
|
|
759
758
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
760
759
|
var value = destination_0.g2(key);
|
|
761
760
|
var tmp_2;
|
|
@@ -801,9 +800,9 @@ protoOf(OpenAPIV2Emitter).z2e = function (module_0) {
|
|
|
801
800
|
var item_0 = _iterator__ex2g4s_3.i();
|
|
802
801
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
803
802
|
var tmp0_in = ParameterLocation_PATH_getInstance();
|
|
804
|
-
var tmp1_name = item_0.
|
|
805
|
-
var tmp2_type = emitType_0(item_0.
|
|
806
|
-
var tmp3_format = emitFormat(item_0.
|
|
803
|
+
var tmp1_name = item_0.w25_1.b1();
|
|
804
|
+
var tmp2_type = emitType_0(item_0.x25_1, OpenAPIV2Emitter_getInstance());
|
|
805
|
+
var tmp3_format = emitFormat(item_0.x25_1, OpenAPIV2Emitter_getInstance());
|
|
807
806
|
var tmp$ret$12 = new ParameterObject(tmp1_name, tmp0_in, VOID, VOID, VOID, tmp2_type, VOID, tmp3_format);
|
|
808
807
|
destination_3.e(tmp$ret$12);
|
|
809
808
|
}
|
|
@@ -820,7 +819,7 @@ protoOf(OpenAPIV2Emitter).z2e = function (module_0) {
|
|
|
820
819
|
}
|
|
821
820
|
var tmp_4 = toMap(destination_1);
|
|
822
821
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
823
|
-
var tmp0_0 = module_0.
|
|
822
|
+
var tmp0_0 = module_0.b27_1;
|
|
824
823
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
825
824
|
var destination_4 = ArrayList_init_$Create$();
|
|
826
825
|
var _iterator__ex2g4s_4 = tmp0_0.g();
|
|
@@ -838,16 +837,16 @@ protoOf(OpenAPIV2Emitter).z2e = function (module_0) {
|
|
|
838
837
|
while (_iterator__ex2g4s_5.h()) {
|
|
839
838
|
var element_3 = _iterator__ex2g4s_5.i();
|
|
840
839
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
841
|
-
var tmp_5 = element_3.
|
|
840
|
+
var tmp_5 = element_3.i27_1.b1();
|
|
842
841
|
var tmp0_type = Type_STRING_getInstance();
|
|
843
|
-
var tmp1_pattern = element_3.
|
|
842
|
+
var tmp1_pattern = element_3.j27_1.l27_1;
|
|
844
843
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
845
844
|
var pair = to(tmp_5, new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_pattern, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_type));
|
|
846
845
|
destination_5.n2(pair.ke_1, pair.le_1);
|
|
847
846
|
}
|
|
848
847
|
var tmp_6 = destination_5;
|
|
849
848
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
850
|
-
var tmp0_1 = module_0.
|
|
849
|
+
var tmp0_1 = module_0.b27_1;
|
|
851
850
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
852
851
|
var destination_6 = ArrayList_init_$Create$();
|
|
853
852
|
var _iterator__ex2g4s_6 = tmp0_1.g();
|
|
@@ -865,9 +864,9 @@ protoOf(OpenAPIV2Emitter).z2e = function (module_0) {
|
|
|
865
864
|
while (_iterator__ex2g4s_7.h()) {
|
|
866
865
|
var element_5 = _iterator__ex2g4s_7.i();
|
|
867
866
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
868
|
-
var tmp_7 = element_5.
|
|
867
|
+
var tmp_7 = element_5.v26_1.b1();
|
|
869
868
|
// Inline function 'kotlin.collections.associate' call
|
|
870
|
-
var this_0 = element_5.
|
|
869
|
+
var this_0 = element_5.w26_1.f27_1;
|
|
871
870
|
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
872
871
|
// Inline function 'kotlin.collections.associateTo' call
|
|
873
872
|
var destination_8 = LinkedHashMap_init_$Create$(capacity_1);
|
|
@@ -880,14 +879,14 @@ protoOf(OpenAPIV2Emitter).z2e = function (module_0) {
|
|
|
880
879
|
destination_8.n2(pair_0.ke_1, pair_0.le_1);
|
|
881
880
|
}
|
|
882
881
|
// Inline function 'kotlin.collections.filter' call
|
|
883
|
-
var tmp0_2 = element_5.
|
|
882
|
+
var tmp0_2 = element_5.w26_1.f27_1;
|
|
884
883
|
// Inline function 'kotlin.collections.filterTo' call
|
|
885
884
|
var destination_9 = ArrayList_init_$Create$();
|
|
886
885
|
var _iterator__ex2g4s_9 = tmp0_2.g();
|
|
887
886
|
while (_iterator__ex2g4s_9.h()) {
|
|
888
887
|
var element_7 = _iterator__ex2g4s_9.i();
|
|
889
888
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
890
|
-
if (!element_7.
|
|
889
|
+
if (!element_7.t25_1.sm()) {
|
|
891
890
|
destination_9.e(element_7);
|
|
892
891
|
}
|
|
893
892
|
}
|
|
@@ -898,7 +897,7 @@ protoOf(OpenAPIV2Emitter).z2e = function (module_0) {
|
|
|
898
897
|
while (_iterator__ex2g4s_10.h()) {
|
|
899
898
|
var item_1 = _iterator__ex2g4s_10.i();
|
|
900
899
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
901
|
-
var tmp$ret$31 = item_1.
|
|
900
|
+
var tmp$ret$31 = item_1.s25_1.b1();
|
|
902
901
|
destination_10.e(tmp$ret$31);
|
|
903
902
|
}
|
|
904
903
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -917,7 +916,7 @@ protoOf(OpenAPIV2Emitter).z2e = function (module_0) {
|
|
|
917
916
|
}
|
|
918
917
|
var tmp_9 = plus_0(tmp_6, destination_7);
|
|
919
918
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
920
|
-
var tmp0_3 = module_0.
|
|
919
|
+
var tmp0_3 = module_0.b27_1;
|
|
921
920
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
922
921
|
var destination_11 = ArrayList_init_$Create$();
|
|
923
922
|
var _iterator__ex2g4s_11 = tmp0_3.g();
|
|
@@ -935,10 +934,10 @@ protoOf(OpenAPIV2Emitter).z2e = function (module_0) {
|
|
|
935
934
|
while (_iterator__ex2g4s_12.h()) {
|
|
936
935
|
var element_9 = _iterator__ex2g4s_12.i();
|
|
937
936
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
938
|
-
var tmp_10 = element_9.
|
|
937
|
+
var tmp_10 = element_9.p27_1.b1();
|
|
939
938
|
var tmp0_type_0 = Type_STRING_getInstance();
|
|
940
939
|
// Inline function 'kotlin.collections.map' call
|
|
941
|
-
var this_1 = element_9.
|
|
940
|
+
var this_1 = element_9.q27_1;
|
|
942
941
|
// Inline function 'kotlin.collections.mapTo' call
|
|
943
942
|
var destination_13 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
944
943
|
var _iterator__ex2g4s_13 = this_1.g();
|
|
@@ -1083,7 +1082,7 @@ function parseEndpoints(_this__u8e3s4, $this) {
|
|
|
1083
1082
|
tmp_1 = toReference(_this__u8e3s4, OpenAPIV2Parser_instance, schema, isNullable);
|
|
1084
1083
|
} else {
|
|
1085
1084
|
if (schema instanceof SchemaObject) {
|
|
1086
|
-
tmp_1 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, schema, Common_getInstance().
|
|
1085
|
+
tmp_1 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, schema, Common_getInstance().q2e([name, 'RequestBody']), isNullable);
|
|
1087
1086
|
} else {
|
|
1088
1087
|
if (schema == null) {
|
|
1089
1088
|
var reason = 'Not yet implemented';
|
|
@@ -1197,7 +1196,7 @@ function parseEndpoints(_this__u8e3s4, $this) {
|
|
|
1197
1196
|
tmp_10 = toReference(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver, false);
|
|
1198
1197
|
} else {
|
|
1199
1198
|
if (tmp1_safe_receiver instanceof SchemaObject) {
|
|
1200
|
-
tmp_10 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
1199
|
+
tmp_10 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver, Common_getInstance().q2e([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']), false);
|
|
1201
1200
|
} else {
|
|
1202
1201
|
noWhenBranchMatchedException();
|
|
1203
1202
|
}
|
|
@@ -1217,13 +1216,13 @@ function parseEndpoints(_this__u8e3s4, $this) {
|
|
|
1217
1216
|
while (_iterator__ex2g4s_12.h()) {
|
|
1218
1217
|
var e = _iterator__ex2g4s_12.i();
|
|
1219
1218
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
1220
|
-
var key = to(e.
|
|
1219
|
+
var key = to(e.g25_1, e.i25_1);
|
|
1221
1220
|
if (set.e(key)) {
|
|
1222
1221
|
list_1.e(e);
|
|
1223
1222
|
}
|
|
1224
1223
|
}
|
|
1225
1224
|
var responses = list_1;
|
|
1226
|
-
var list_2 = listOf(new Endpoint(null, new DefinitionIdentifier(sanitize(name)), method, segments, query, headers,
|
|
1225
|
+
var list_2 = listOf(new Endpoint(null, new DefinitionIdentifier(sanitize(name)), method, segments, query, headers, requests, responses));
|
|
1227
1226
|
addAll(destination_0, list_2);
|
|
1228
1227
|
}
|
|
1229
1228
|
var list_3 = destination_0;
|
|
@@ -1278,7 +1277,7 @@ function parseDefinitions(_this__u8e3s4, $this) {
|
|
|
1278
1277
|
while (_iterator__ex2g4s_1.h()) {
|
|
1279
1278
|
var element_0 = _iterator__ex2g4s_1.i();
|
|
1280
1279
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseDefinitions.<anonymous>' call
|
|
1281
|
-
var list = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, element_0.b1(), Common_getInstance().
|
|
1280
|
+
var list = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, element_0.b1(), Common_getInstance().q2e([element_0.a1()]));
|
|
1282
1281
|
addAll(destination_0, list);
|
|
1283
1282
|
}
|
|
1284
1283
|
return destination_0;
|
|
@@ -1557,7 +1556,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1557
1556
|
while (_iterator__ex2g4s_0.h()) {
|
|
1558
1557
|
var e = _iterator__ex2g4s_0.i();
|
|
1559
1558
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.flatten.<anonymous>' call
|
|
1560
|
-
var key = e.
|
|
1559
|
+
var key = e.s25_1;
|
|
1561
1560
|
if (set.e(key)) {
|
|
1562
1561
|
list_0.e(e);
|
|
1563
1562
|
}
|
|
@@ -1596,7 +1595,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1596
1595
|
tmp_9 = emptyList();
|
|
1597
1596
|
} else {
|
|
1598
1597
|
if (value instanceof SchemaObject) {
|
|
1599
|
-
tmp_9 = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().
|
|
1598
|
+
tmp_9 = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().q2e([name, key_0]));
|
|
1600
1599
|
} else {
|
|
1601
1600
|
noWhenBranchMatchedException();
|
|
1602
1601
|
}
|
|
@@ -1654,7 +1653,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1654
1653
|
var key_1 = element_2.a1();
|
|
1655
1654
|
// Inline function 'kotlin.collections.component2' call
|
|
1656
1655
|
var value_0 = element_2.b1();
|
|
1657
|
-
var list_3 = flatten_0(_this__u8e3s4, OpenAPIV2Parser_instance, value_0, Common_getInstance().
|
|
1656
|
+
var list_3 = flatten_0(_this__u8e3s4, OpenAPIV2Parser_instance, value_0, Common_getInstance().q2e([name, key_1]));
|
|
1658
1657
|
addAll(destination_3, list_3);
|
|
1659
1658
|
}
|
|
1660
1659
|
|
|
@@ -1669,7 +1668,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1669
1668
|
tmp_11 = emptyList();
|
|
1670
1669
|
} else {
|
|
1671
1670
|
if (it_0 instanceof SchemaObject) {
|
|
1672
|
-
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().
|
|
1671
|
+
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().q2e([name, 'Array']));
|
|
1673
1672
|
} else {
|
|
1674
1673
|
if (it_0 == null) {
|
|
1675
1674
|
tmp_11 = emptyList();
|
|
@@ -1726,7 +1725,7 @@ function toReference(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
1726
1725
|
}
|
|
1727
1726
|
tmp = tmp_0;
|
|
1728
1727
|
} else if (!(schema.x1n_1 == null)) {
|
|
1729
|
-
tmp = new Custom(sanitize(Common_getInstance().
|
|
1728
|
+
tmp = new Custom(sanitize(Common_getInstance().q2e([getReference(reference, OpenAPIV2Parser_instance)])), isNullable);
|
|
1730
1729
|
} else if (isPrimitive(schema.y1n_1)) {
|
|
1731
1730
|
tmp = new Primitive(toPrimitive(ensureNotNull(schema.y1n_1), OpenAPIV2Parser_instance, schema.f1n_1), isNullable);
|
|
1732
1731
|
} else {
|
|
@@ -1739,7 +1738,7 @@ function toReference(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
1739
1738
|
tmp_2 = toIterable(toReference(_this__u8e3s4, OpenAPIV2Parser_instance, items, false), isNullable);
|
|
1740
1739
|
} else {
|
|
1741
1740
|
if (items instanceof SchemaObject) {
|
|
1742
|
-
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, items, Common_getInstance().
|
|
1741
|
+
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, items, Common_getInstance().q2e([getReference(reference, OpenAPIV2Parser_instance), 'Array']), isNullable), isNullable);
|
|
1743
1742
|
} else {
|
|
1744
1743
|
if (items == null) {
|
|
1745
1744
|
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.h1o_1);
|
|
@@ -1753,10 +1752,10 @@ function toReference(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
1753
1752
|
} else {
|
|
1754
1753
|
var tmp_3;
|
|
1755
1754
|
if (refOrSchema instanceof SchemaObject) {
|
|
1756
|
-
tmp_3 = new Custom(sanitize(Common_getInstance().
|
|
1755
|
+
tmp_3 = new Custom(sanitize(Common_getInstance().q2e([getReference(reference, OpenAPIV2Parser_instance)])), isNullable);
|
|
1757
1756
|
} else {
|
|
1758
1757
|
if (refOrSchema instanceof ReferenceObject) {
|
|
1759
|
-
tmp_3 = new Custom(sanitize(Common_getInstance().
|
|
1758
|
+
tmp_3 = new Custom(sanitize(Common_getInstance().q2e([getReference(refOrSchema, OpenAPIV2Parser_instance)])), isNullable);
|
|
1760
1759
|
} else {
|
|
1761
1760
|
noWhenBranchMatchedException();
|
|
1762
1761
|
}
|
|
@@ -1924,7 +1923,7 @@ function toOperationList(_this__u8e3s4, $this) {
|
|
|
1924
1923
|
var tmp$ret$0 = tmp_0;
|
|
1925
1924
|
result.n2(element, tmp$ret$0);
|
|
1926
1925
|
}
|
|
1927
|
-
return tmp.
|
|
1926
|
+
return tmp.r2e(result);
|
|
1928
1927
|
}
|
|
1929
1928
|
function getReference(_this__u8e3s4, $this) {
|
|
1930
1929
|
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.h1o_1), ['/']).k(2);
|
|
@@ -2007,7 +2006,7 @@ function toField_0(_this__u8e3s4, $this, schema, name) {
|
|
|
2007
2006
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
2008
2007
|
var tmp;
|
|
2009
2008
|
if (value instanceof SchemaObject) {
|
|
2010
|
-
tmp = new Field(new FieldIdentifier(key), !(value.x1n_1 == null) ? toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().
|
|
2009
|
+
tmp = new Field(new FieldIdentifier(key), !(value.x1n_1 == null) ? toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().q2e([name, key]), isNullable) : equals(value.y1n_1, Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().q2e([name, key, 'Array']), isNullable) : toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().q2e([name, key]), isNullable));
|
|
2011
2010
|
} else {
|
|
2012
2011
|
if (value instanceof ReferenceObject) {
|
|
2013
2012
|
tmp = new Field(new FieldIdentifier(key), toReference(_this__u8e3s4, OpenAPIV2Parser_instance, value, isNullable));
|
|
@@ -2028,7 +2027,7 @@ function toField_1(_this__u8e3s4, $this, parameter, name) {
|
|
|
2028
2027
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
2029
2028
|
var tmp;
|
|
2030
2029
|
if (!(parameter.z1j_1 == null)) {
|
|
2031
|
-
tmp = new Custom(sanitize(Common_getInstance().
|
|
2030
|
+
tmp = new Custom(sanitize(Common_getInstance().q2e([name, 'Parameter', it.e1j_1])), isNullable);
|
|
2032
2031
|
} else {
|
|
2033
2032
|
var type = it.j1j_1;
|
|
2034
2033
|
var tmp_0;
|
|
@@ -2198,7 +2197,7 @@ function toName(_this__u8e3s4, $this) {
|
|
|
2198
2197
|
} else {
|
|
2199
2198
|
// Inline function 'kotlin.let' call
|
|
2200
2199
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.toName.<anonymous>' call
|
|
2201
|
-
tmp = Common_getInstance().
|
|
2200
|
+
tmp = Common_getInstance().q2e([tmp0_safe_receiver]);
|
|
2202
2201
|
}
|
|
2203
2202
|
return tmp;
|
|
2204
2203
|
}
|
|
@@ -2220,21 +2219,21 @@ function toName_0(_this__u8e3s4, $this) {
|
|
|
2220
2219
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenAPIV2Parser$toName$lambda);
|
|
2221
2220
|
}
|
|
2222
2221
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
2223
|
-
this.
|
|
2224
|
-
this.
|
|
2225
|
-
this.
|
|
2226
|
-
this.
|
|
2227
|
-
this.
|
|
2222
|
+
this.w2e_1 = path;
|
|
2223
|
+
this.x2e_1 = pathItem;
|
|
2224
|
+
this.y2e_1 = method;
|
|
2225
|
+
this.z2e_1 = operation;
|
|
2226
|
+
this.a2f_1 = type;
|
|
2228
2227
|
}
|
|
2229
2228
|
protoOf(FlattenRequest).toString = function () {
|
|
2230
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
2229
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.w2e_1) + ', pathItem=' + this.x2e_1.toString() + ', method=' + this.y2e_1.toString() + ', operation=' + this.z2e_1.toString() + ', type=' + this.a2f_1 + ')';
|
|
2231
2230
|
};
|
|
2232
2231
|
protoOf(FlattenRequest).hashCode = function () {
|
|
2233
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2234
|
-
result = imul(result, 31) + this.
|
|
2235
|
-
result = imul(result, 31) + this.
|
|
2236
|
-
result = imul(result, 31) + this.
|
|
2237
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2232
|
+
var result = Path__hashCode_impl_go73kd(this.w2e_1);
|
|
2233
|
+
result = imul(result, 31) + this.x2e_1.hashCode() | 0;
|
|
2234
|
+
result = imul(result, 31) + this.y2e_1.hashCode() | 0;
|
|
2235
|
+
result = imul(result, 31) + this.z2e_1.hashCode() | 0;
|
|
2236
|
+
result = imul(result, 31) + getStringHashCode(this.a2f_1) | 0;
|
|
2238
2237
|
return result;
|
|
2239
2238
|
};
|
|
2240
2239
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -2243,15 +2242,15 @@ protoOf(FlattenRequest).equals = function (other) {
|
|
|
2243
2242
|
if (!(other instanceof FlattenRequest))
|
|
2244
2243
|
return false;
|
|
2245
2244
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
2246
|
-
if (!(this.
|
|
2245
|
+
if (!(this.w2e_1 === tmp0_other_with_cast.w2e_1))
|
|
2247
2246
|
return false;
|
|
2248
|
-
if (!this.
|
|
2247
|
+
if (!this.x2e_1.equals(tmp0_other_with_cast.x2e_1))
|
|
2249
2248
|
return false;
|
|
2250
|
-
if (!this.
|
|
2249
|
+
if (!this.y2e_1.equals(tmp0_other_with_cast.y2e_1))
|
|
2251
2250
|
return false;
|
|
2252
|
-
if (!this.
|
|
2251
|
+
if (!this.z2e_1.equals(tmp0_other_with_cast.z2e_1))
|
|
2253
2252
|
return false;
|
|
2254
|
-
if (!(this.
|
|
2253
|
+
if (!(this.a2f_1 === tmp0_other_with_cast.a2f_1))
|
|
2255
2254
|
return false;
|
|
2256
2255
|
return true;
|
|
2257
2256
|
};
|
|
@@ -2313,25 +2312,25 @@ function flatMapRequests(_this__u8e3s4, $this, f) {
|
|
|
2313
2312
|
return destination_2;
|
|
2314
2313
|
}
|
|
2315
2314
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
2316
|
-
this.
|
|
2317
|
-
this.
|
|
2318
|
-
this.
|
|
2319
|
-
this.
|
|
2320
|
-
this.
|
|
2321
|
-
this.
|
|
2322
|
-
this.
|
|
2315
|
+
this.b2f_1 = path;
|
|
2316
|
+
this.c2f_1 = pathItem;
|
|
2317
|
+
this.d2f_1 = method;
|
|
2318
|
+
this.e2f_1 = operation;
|
|
2319
|
+
this.f2f_1 = statusCode;
|
|
2320
|
+
this.g2f_1 = response;
|
|
2321
|
+
this.h2f_1 = type;
|
|
2323
2322
|
}
|
|
2324
2323
|
protoOf(FlattenResponse).toString = function () {
|
|
2325
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
2324
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.b2f_1) + ', pathItem=' + this.c2f_1.toString() + ', method=' + this.d2f_1.toString() + ', operation=' + this.e2f_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy(this.f2f_1) + ', response=' + toString(this.g2f_1) + ', type=' + this.h2f_1 + ')';
|
|
2326
2325
|
};
|
|
2327
2326
|
protoOf(FlattenResponse).hashCode = function () {
|
|
2328
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2329
|
-
result = imul(result, 31) + this.
|
|
2330
|
-
result = imul(result, 31) + this.
|
|
2331
|
-
result = imul(result, 31) + this.
|
|
2332
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
2333
|
-
result = imul(result, 31) + hashCode(this.
|
|
2334
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2327
|
+
var result = Path__hashCode_impl_go73kd(this.b2f_1);
|
|
2328
|
+
result = imul(result, 31) + this.c2f_1.hashCode() | 0;
|
|
2329
|
+
result = imul(result, 31) + this.d2f_1.hashCode() | 0;
|
|
2330
|
+
result = imul(result, 31) + this.e2f_1.hashCode() | 0;
|
|
2331
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.f2f_1) | 0;
|
|
2332
|
+
result = imul(result, 31) + hashCode(this.g2f_1) | 0;
|
|
2333
|
+
result = imul(result, 31) + getStringHashCode(this.h2f_1) | 0;
|
|
2335
2334
|
return result;
|
|
2336
2335
|
};
|
|
2337
2336
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -2340,19 +2339,19 @@ protoOf(FlattenResponse).equals = function (other) {
|
|
|
2340
2339
|
if (!(other instanceof FlattenResponse))
|
|
2341
2340
|
return false;
|
|
2342
2341
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
2343
|
-
if (!(this.
|
|
2342
|
+
if (!(this.b2f_1 === tmp0_other_with_cast.b2f_1))
|
|
2344
2343
|
return false;
|
|
2345
|
-
if (!this.
|
|
2344
|
+
if (!this.c2f_1.equals(tmp0_other_with_cast.c2f_1))
|
|
2346
2345
|
return false;
|
|
2347
|
-
if (!this.
|
|
2346
|
+
if (!this.d2f_1.equals(tmp0_other_with_cast.d2f_1))
|
|
2348
2347
|
return false;
|
|
2349
|
-
if (!this.
|
|
2348
|
+
if (!this.e2f_1.equals(tmp0_other_with_cast.e2f_1))
|
|
2350
2349
|
return false;
|
|
2351
|
-
if (!(this.
|
|
2350
|
+
if (!(this.f2f_1 === tmp0_other_with_cast.f2f_1))
|
|
2352
2351
|
return false;
|
|
2353
|
-
if (!equals(this.
|
|
2352
|
+
if (!equals(this.g2f_1, tmp0_other_with_cast.g2f_1))
|
|
2354
2353
|
return false;
|
|
2355
|
-
if (!(this.
|
|
2354
|
+
if (!(this.h2f_1 === tmp0_other_with_cast.h2f_1))
|
|
2356
2355
|
return false;
|
|
2357
2356
|
return true;
|
|
2358
2357
|
};
|
|
@@ -2440,9 +2439,9 @@ function OpenAPIV2Parser$parse$lambda($strict) {
|
|
|
2440
2439
|
}
|
|
2441
2440
|
function OpenAPIV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
2442
2441
|
return function ($this$flatMapRequests) {
|
|
2443
|
-
var parameters = plus(resolveParameters_0($this_parseParameters, OpenAPIV2Parser_instance, $this$flatMapRequests.
|
|
2444
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2445
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2442
|
+
var parameters = plus(resolveParameters_0($this_parseParameters, OpenAPIV2Parser_instance, $this$flatMapRequests.x2e_1), resolveParameters($this_parseParameters, OpenAPIV2Parser_instance, $this$flatMapRequests.z2e_1));
|
|
2443
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.z2e_1, OpenAPIV2Parser_instance);
|
|
2444
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.w2e_1, OpenAPIV2Parser_instance) + $this$flatMapRequests.y2e_1.q2_1 : tmp0_elvis_lhs;
|
|
2446
2445
|
// Inline function 'kotlin.collections.filter' call
|
|
2447
2446
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2448
2447
|
var destination = ArrayList_init_$Create$();
|
|
@@ -2468,7 +2467,7 @@ function OpenAPIV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
2468
2467
|
} else {
|
|
2469
2468
|
// Inline function 'kotlin.let' call
|
|
2470
2469
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
2471
|
-
tmp = flatten_0($this_parseParameters, OpenAPIV2Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
2470
|
+
tmp = flatten_0($this_parseParameters, OpenAPIV2Parser_instance, tmp0_safe_receiver, Common_getInstance().q2e([name, 'Parameter', element_0.e1j_1]));
|
|
2472
2471
|
}
|
|
2473
2472
|
var tmp1_elvis_lhs = tmp;
|
|
2474
2473
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -2479,9 +2478,9 @@ function OpenAPIV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
2479
2478
|
}
|
|
2480
2479
|
function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
2481
2480
|
return function ($this$flatMapRequests) {
|
|
2482
|
-
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenAPIV2Parser_instance, $this$flatMapRequests.
|
|
2483
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2484
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2481
|
+
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenAPIV2Parser_instance, $this$flatMapRequests.x2e_1), resolveParameters($this_parseRequestBody, OpenAPIV2Parser_instance, $this$flatMapRequests.z2e_1));
|
|
2482
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.z2e_1, OpenAPIV2Parser_instance);
|
|
2483
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.w2e_1, OpenAPIV2Parser_instance) + $this$flatMapRequests.y2e_1.q2_1 : tmp0_elvis_lhs;
|
|
2485
2484
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2486
2485
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2487
2486
|
var destination = ArrayList_init_$Create$();
|
|
@@ -2491,7 +2490,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2491
2490
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
2492
2491
|
var tmp;
|
|
2493
2492
|
if (!(element.z1j_1 == null)) {
|
|
2494
|
-
var tmp_0 = new DefinitionIdentifier(sanitize(Common_getInstance().
|
|
2493
|
+
var tmp_0 = new DefinitionIdentifier(sanitize(Common_getInstance().q2e([name, 'Parameter', element.e1j_1])));
|
|
2495
2494
|
// Inline function 'kotlin.collections.map' call
|
|
2496
2495
|
var this_0 = ensureNotNull(element.z1j_1);
|
|
2497
2496
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2511,7 +2510,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2511
2510
|
addAll(destination, list);
|
|
2512
2511
|
}
|
|
2513
2512
|
var enums = destination;
|
|
2514
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
2513
|
+
var tmp1_safe_receiver = $this$flatMapRequests.z2e_1.b1m_1;
|
|
2515
2514
|
var tmp_1;
|
|
2516
2515
|
if (tmp1_safe_receiver == null) {
|
|
2517
2516
|
tmp_1 = null;
|
|
@@ -2566,7 +2565,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2566
2565
|
switch (tmp0_subject == null ? -1 : tmp0_subject.r2_1) {
|
|
2567
2566
|
case -1:
|
|
2568
2567
|
case 5:
|
|
2569
|
-
tmp_5 = flatten($this_parseRequestBody, OpenAPIV2Parser_instance, schema, Common_getInstance().
|
|
2568
|
+
tmp_5 = flatten($this_parseRequestBody, OpenAPIV2Parser_instance, schema, Common_getInstance().q2e([name, 'RequestBody']));
|
|
2570
2569
|
break;
|
|
2571
2570
|
case 4:
|
|
2572
2571
|
var tmp1_safe_receiver_0 = schema.z1n_1;
|
|
@@ -2576,7 +2575,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2576
2575
|
} else {
|
|
2577
2576
|
// Inline function 'kotlin.let' call
|
|
2578
2577
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
2579
|
-
tmp_6 = flatten_0($this_parseRequestBody, OpenAPIV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
2578
|
+
tmp_6 = flatten_0($this_parseRequestBody, OpenAPIV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().q2e([name, 'RequestBody']));
|
|
2580
2579
|
}
|
|
2581
2580
|
|
|
2582
2581
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2604,9 +2603,9 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2604
2603
|
}
|
|
2605
2604
|
function OpenAPIV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
2606
2605
|
return function ($this$flatMapResponses) {
|
|
2607
|
-
var schema = resolve_1($this_parseResponseBody, OpenAPIV2Parser_instance, $this$flatMapResponses.
|
|
2608
|
-
var tmp0_elvis_lhs = toName($this$flatMapResponses.
|
|
2609
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
2606
|
+
var schema = resolve_1($this_parseResponseBody, OpenAPIV2Parser_instance, $this$flatMapResponses.g2f_1).g1k_1;
|
|
2607
|
+
var tmp0_elvis_lhs = toName($this$flatMapResponses.e2f_1, OpenAPIV2Parser_instance);
|
|
2608
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.b2f_1, OpenAPIV2Parser_instance) + $this$flatMapResponses.d2f_1.q2_1 : tmp0_elvis_lhs;
|
|
2610
2609
|
var tmp;
|
|
2611
2610
|
if (schema instanceof SchemaObject) {
|
|
2612
2611
|
var tmp2_subject = schema.y1n_1;
|
|
@@ -2614,7 +2613,7 @@ function OpenAPIV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
2614
2613
|
switch (tmp2_subject == null ? -1 : tmp2_subject.r2_1) {
|
|
2615
2614
|
case -1:
|
|
2616
2615
|
case 5:
|
|
2617
|
-
tmp_0 = flatten($this_parseResponseBody, OpenAPIV2Parser_instance, schema, Common_getInstance().
|
|
2616
|
+
tmp_0 = flatten($this_parseResponseBody, OpenAPIV2Parser_instance, schema, Common_getInstance().q2e([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.f2f_1), 'ResponseBody']));
|
|
2618
2617
|
break;
|
|
2619
2618
|
case 4:
|
|
2620
2619
|
var tmp3_safe_receiver = schema.z1n_1;
|
|
@@ -2624,7 +2623,7 @@ function OpenAPIV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
2624
2623
|
} else {
|
|
2625
2624
|
// Inline function 'kotlin.let' call
|
|
2626
2625
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
2627
|
-
tmp_1 = flatten_0($this_parseResponseBody, OpenAPIV2Parser_instance, tmp3_safe_receiver, Common_getInstance().
|
|
2626
|
+
tmp_1 = flatten_0($this_parseResponseBody, OpenAPIV2Parser_instance, tmp3_safe_receiver, Common_getInstance().q2e([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.f2f_1), 'ResponseBody']));
|
|
2628
2627
|
}
|
|
2629
2628
|
|
|
2630
2629
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2654,10 +2653,10 @@ function OpenAPIV2Parser$toName$lambda(it) {
|
|
|
2654
2653
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2655
2654
|
|
|
2656
2655
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
2657
|
-
tmp = tmp_0.
|
|
2656
|
+
tmp = tmp_0.q2e([tmp$ret$1]);
|
|
2658
2657
|
break;
|
|
2659
2658
|
case false:
|
|
2660
|
-
tmp = Common_getInstance().
|
|
2659
|
+
tmp = Common_getInstance().q2e([it]);
|
|
2661
2660
|
break;
|
|
2662
2661
|
default:
|
|
2663
2662
|
noWhenBranchMatchedException();
|
|
@@ -2667,8 +2666,8 @@ function OpenAPIV2Parser$toName$lambda(it) {
|
|
|
2667
2666
|
}
|
|
2668
2667
|
function OpenAPIV2Parser() {
|
|
2669
2668
|
}
|
|
2670
|
-
protoOf(OpenAPIV2Parser).
|
|
2671
|
-
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.
|
|
2669
|
+
protoOf(OpenAPIV2Parser).n2e = function (moduleContent, strict) {
|
|
2670
|
+
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.i2f((new OpenAPI(Json(VOID, OpenAPIV2Parser$parse$lambda(strict)))).c1h(moduleContent.u22_1)));
|
|
2672
2671
|
var tmp;
|
|
2673
2672
|
if (tmp0_elvis_lhs == null) {
|
|
2674
2673
|
var message = 'Cannot yield non empty AST for OpenAPI v2';
|
|
@@ -2678,11 +2677,11 @@ protoOf(OpenAPIV2Parser).r2e = function (moduleContent, strict) {
|
|
|
2678
2677
|
}
|
|
2679
2678
|
return new AST(nonEmptyListOf(new Module(moduleContent.t22_1, tmp), []));
|
|
2680
2679
|
};
|
|
2681
|
-
protoOf(OpenAPIV2Parser).
|
|
2680
|
+
protoOf(OpenAPIV2Parser).j2f = function (moduleContent, strict, $super) {
|
|
2682
2681
|
strict = strict === VOID ? true : strict;
|
|
2683
|
-
return $super === VOID ? this.
|
|
2682
|
+
return $super === VOID ? this.n2e(moduleContent, strict) : $super.n2e.call(this, moduleContent, strict);
|
|
2684
2683
|
};
|
|
2685
|
-
protoOf(OpenAPIV2Parser).
|
|
2684
|
+
protoOf(OpenAPIV2Parser).i2f = function (_this__u8e3s4) {
|
|
2686
2685
|
// Inline function 'kotlin.collections.reduce' call
|
|
2687
2686
|
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();
|
|
2688
2687
|
if (!iterator.h())
|
|
@@ -2712,7 +2711,7 @@ function sanitize(_this__u8e3s4) {
|
|
|
2712
2711
|
var _unary__edvuaz = index;
|
|
2713
2712
|
index = _unary__edvuaz + 1 | 0;
|
|
2714
2713
|
// Inline function 'community.flock.wirespec.openapi.v2.sanitize.<anonymous>' call
|
|
2715
|
-
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ?
|
|
2714
|
+
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.r25(item) : item;
|
|
2716
2715
|
destination.e(tmp$ret$0);
|
|
2717
2716
|
}
|
|
2718
2717
|
var tmp = asSequence(joinToString(destination, ''));
|
|
@@ -2762,7 +2761,7 @@ function sanitize$lambda(it) {
|
|
|
2762
2761
|
}
|
|
2763
2762
|
function emitComponents(_this__u8e3s4, $this) {
|
|
2764
2763
|
// Inline function 'kotlin.collections.filter' call
|
|
2765
|
-
var tmp0 = _this__u8e3s4.
|
|
2764
|
+
var tmp0 = _this__u8e3s4.b27_1.yk();
|
|
2766
2765
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2767
2766
|
var destination = ArrayList_init_$Create$();
|
|
2768
2767
|
var _iterator__ex2g4s = tmp0.g();
|
|
@@ -2781,7 +2780,7 @@ function emitComponents(_this__u8e3s4, $this) {
|
|
|
2781
2780
|
while (_iterator__ex2g4s_0.h()) {
|
|
2782
2781
|
var element_0 = _iterator__ex2g4s_0.i();
|
|
2783
2782
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emitComponents.<anonymous>' call
|
|
2784
|
-
var tmp = element_0.
|
|
2783
|
+
var tmp = element_0.w24().b1();
|
|
2785
2784
|
var tmp_0;
|
|
2786
2785
|
if (element_0 instanceof Enum) {
|
|
2787
2786
|
tmp_0 = emit_3(element_0, OpenAPIV3Emitter_getInstance());
|
|
@@ -2820,7 +2819,7 @@ function emitComponents(_this__u8e3s4, $this) {
|
|
|
2820
2819
|
}
|
|
2821
2820
|
function emitPaths(_this__u8e3s4, $this) {
|
|
2822
2821
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
2823
|
-
var tmp0 = _this__u8e3s4.
|
|
2822
|
+
var tmp0 = _this__u8e3s4.b27_1;
|
|
2824
2823
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
2825
2824
|
var destination = ArrayList_init_$Create$();
|
|
2826
2825
|
var _iterator__ex2g4s = tmp0.g();
|
|
@@ -2837,7 +2836,7 @@ function emitPaths(_this__u8e3s4, $this) {
|
|
|
2837
2836
|
while (_iterator__ex2g4s_0.h()) {
|
|
2838
2837
|
var element_0 = _iterator__ex2g4s_0.i();
|
|
2839
2838
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emitPaths.<anonymous>' call
|
|
2840
|
-
var key = element_0.
|
|
2839
|
+
var key = element_0.b25_1;
|
|
2841
2840
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
2842
2841
|
var value = destination_0.g2(key);
|
|
2843
2842
|
var tmp;
|
|
@@ -2908,10 +2907,10 @@ function emitPaths(_this__u8e3s4, $this) {
|
|
|
2908
2907
|
return toMap(destination_1);
|
|
2909
2908
|
}
|
|
2910
2909
|
function emit_1(_this__u8e3s4, $this) {
|
|
2911
|
-
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_STRING_getInstance_0(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, _this__u8e3s4.
|
|
2910
|
+
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_STRING_getInstance_0(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, _this__u8e3s4.j27_1.l27_1);
|
|
2912
2911
|
}
|
|
2913
2912
|
function emit_2(_this__u8e3s4, $this) {
|
|
2914
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2913
|
+
var tmp0_safe_receiver = _this__u8e3s4.u26_1;
|
|
2915
2914
|
var tmp;
|
|
2916
2915
|
var tmp_0 = tmp0_safe_receiver;
|
|
2917
2916
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -2921,7 +2920,7 @@ function emit_2(_this__u8e3s4, $this) {
|
|
|
2921
2920
|
}
|
|
2922
2921
|
var tmp1_description = tmp;
|
|
2923
2922
|
// Inline function 'kotlin.collections.associate' call
|
|
2924
|
-
var this_0 = _this__u8e3s4.
|
|
2923
|
+
var this_0 = _this__u8e3s4.w26_1.f27_1;
|
|
2925
2924
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2926
2925
|
// Inline function 'kotlin.collections.associateTo' call
|
|
2927
2926
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -2934,14 +2933,14 @@ function emit_2(_this__u8e3s4, $this) {
|
|
|
2934
2933
|
destination.n2(pair.ke_1, pair.le_1);
|
|
2935
2934
|
}
|
|
2936
2935
|
// Inline function 'kotlin.collections.filter' call
|
|
2937
|
-
var tmp0 = _this__u8e3s4.
|
|
2936
|
+
var tmp0 = _this__u8e3s4.w26_1.f27_1;
|
|
2938
2937
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2939
2938
|
var destination_0 = ArrayList_init_$Create$();
|
|
2940
2939
|
var _iterator__ex2g4s_0 = tmp0.g();
|
|
2941
2940
|
while (_iterator__ex2g4s_0.h()) {
|
|
2942
2941
|
var element_0 = _iterator__ex2g4s_0.i();
|
|
2943
2942
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
2944
|
-
if (!element_0.
|
|
2943
|
+
if (!element_0.t25_1.sm()) {
|
|
2945
2944
|
destination_0.e(element_0);
|
|
2946
2945
|
}
|
|
2947
2946
|
}
|
|
@@ -2952,7 +2951,7 @@ function emit_2(_this__u8e3s4, $this) {
|
|
|
2952
2951
|
while (_iterator__ex2g4s_1.h()) {
|
|
2953
2952
|
var item = _iterator__ex2g4s_1.i();
|
|
2954
2953
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
2955
|
-
var tmp$ret$6 = item.
|
|
2954
|
+
var tmp$ret$6 = item.s25_1.b1();
|
|
2956
2955
|
destination_1.e(tmp$ret$6);
|
|
2957
2956
|
}
|
|
2958
2957
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -2968,7 +2967,7 @@ function emit_2(_this__u8e3s4, $this) {
|
|
|
2968
2967
|
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);
|
|
2969
2968
|
}
|
|
2970
2969
|
function emit_3(_this__u8e3s4, $this) {
|
|
2971
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2970
|
+
var tmp0_safe_receiver = _this__u8e3s4.o27_1;
|
|
2972
2971
|
var tmp;
|
|
2973
2972
|
var tmp_0 = tmp0_safe_receiver;
|
|
2974
2973
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -2979,7 +2978,7 @@ function emit_3(_this__u8e3s4, $this) {
|
|
|
2979
2978
|
var tmp1_description = tmp;
|
|
2980
2979
|
var tmp2_type = Type_STRING_getInstance_0();
|
|
2981
2980
|
// Inline function 'kotlin.collections.map' call
|
|
2982
|
-
var this_0 = _this__u8e3s4.
|
|
2981
|
+
var this_0 = _this__u8e3s4.q27_1;
|
|
2983
2982
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2984
2983
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2985
2984
|
var _iterator__ex2g4s = this_0.g();
|
|
@@ -2992,7 +2991,7 @@ function emit_3(_this__u8e3s4, $this) {
|
|
|
2992
2991
|
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);
|
|
2993
2992
|
}
|
|
2994
2993
|
function emit_4(_this__u8e3s4, $this) {
|
|
2995
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2994
|
+
var tmp0_safe_receiver = _this__u8e3s4.c27_1;
|
|
2996
2995
|
var tmp;
|
|
2997
2996
|
var tmp_0 = tmp0_safe_receiver;
|
|
2998
2997
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -3003,7 +3002,7 @@ function emit_4(_this__u8e3s4, $this) {
|
|
|
3003
3002
|
var tmp1_description = tmp;
|
|
3004
3003
|
var tmp2_type = Type_STRING_getInstance_0();
|
|
3005
3004
|
// Inline function 'kotlin.collections.map' call
|
|
3006
|
-
var this_0 = _this__u8e3s4.
|
|
3005
|
+
var this_0 = _this__u8e3s4.e27_1;
|
|
3007
3006
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3008
3007
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3009
3008
|
var _iterator__ex2g4s = this_0.g();
|
|
@@ -3023,7 +3022,7 @@ function emit_5(_this__u8e3s4, $this, method) {
|
|
|
3023
3022
|
while (_iterator__ex2g4s.h()) {
|
|
3024
3023
|
var element = _iterator__ex2g4s.i();
|
|
3025
3024
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
3026
|
-
if (element.
|
|
3025
|
+
if (element.a25_1.equals(method)) {
|
|
3027
3026
|
destination.e(element);
|
|
3028
3027
|
}
|
|
3029
3028
|
}
|
|
@@ -3040,8 +3039,8 @@ function emit_5(_this__u8e3s4, $this, method) {
|
|
|
3040
3039
|
return firstOrNull(destination_0);
|
|
3041
3040
|
}
|
|
3042
3041
|
function emit_6(_this__u8e3s4, $this) {
|
|
3043
|
-
var tmp2_operationId = _this__u8e3s4.
|
|
3044
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3042
|
+
var tmp2_operationId = _this__u8e3s4.z24_1.b1();
|
|
3043
|
+
var tmp0_safe_receiver = _this__u8e3s4.y24_1;
|
|
3045
3044
|
var tmp;
|
|
3046
3045
|
var tmp_0 = tmp0_safe_receiver;
|
|
3047
3046
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -3051,7 +3050,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3051
3050
|
}
|
|
3052
3051
|
var tmp3_description = tmp;
|
|
3053
3052
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3054
|
-
var tmp0 = _this__u8e3s4.
|
|
3053
|
+
var tmp0 = _this__u8e3s4.b25_1;
|
|
3055
3054
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
3056
3055
|
var destination = ArrayList_init_$Create$();
|
|
3057
3056
|
var _iterator__ex2g4s = tmp0.g();
|
|
@@ -3073,7 +3072,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3073
3072
|
}
|
|
3074
3073
|
var tmp_1 = destination_0;
|
|
3075
3074
|
// Inline function 'kotlin.collections.map' call
|
|
3076
|
-
var this_0 = _this__u8e3s4.
|
|
3075
|
+
var this_0 = _this__u8e3s4.c25_1;
|
|
3077
3076
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3078
3077
|
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3079
3078
|
var _iterator__ex2g4s_1 = this_0.g();
|
|
@@ -3085,7 +3084,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3085
3084
|
}
|
|
3086
3085
|
var tmp_2 = plus(tmp_1, destination_1);
|
|
3087
3086
|
// Inline function 'kotlin.collections.map' call
|
|
3088
|
-
var this_1 = _this__u8e3s4.
|
|
3087
|
+
var this_1 = _this__u8e3s4.d25_1;
|
|
3089
3088
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3090
3089
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
3091
3090
|
var _iterator__ex2g4s_2 = this_1.g();
|
|
@@ -3097,7 +3096,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3097
3096
|
}
|
|
3098
3097
|
var tmp4_parameters = plus(tmp_2, destination_2);
|
|
3099
3098
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3100
|
-
var tmp0_0 = _this__u8e3s4.
|
|
3099
|
+
var tmp0_0 = _this__u8e3s4.e25_1;
|
|
3101
3100
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3102
3101
|
var destination_3 = ArrayList_init_$Create$();
|
|
3103
3102
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -3106,7 +3105,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3106
3105
|
var element_0 = _iterator__ex2g4s_3.i();
|
|
3107
3106
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3108
3107
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
3109
|
-
var tmp0_safe_receiver_0 = element_0.
|
|
3108
|
+
var tmp0_safe_receiver_0 = element_0.l25_1;
|
|
3110
3109
|
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : emit_7(tmp0_safe_receiver_0, OpenAPIV3Emitter_getInstance());
|
|
3111
3110
|
if (tmp0_safe_receiver_1 == null)
|
|
3112
3111
|
null;
|
|
@@ -3133,7 +3132,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3133
3132
|
} else {
|
|
3134
3133
|
// Inline function 'kotlin.let' call
|
|
3135
3134
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
3136
|
-
var tmp0_1 = _this__u8e3s4.
|
|
3135
|
+
var tmp0_1 = _this__u8e3s4.e25_1;
|
|
3137
3136
|
var tmp$ret$18;
|
|
3138
3137
|
$l$block_0: {
|
|
3139
3138
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -3151,8 +3150,8 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3151
3150
|
while (_iterator__ex2g4s_4.h()) {
|
|
3152
3151
|
var element_1 = _iterator__ex2g4s_4.i();
|
|
3153
3152
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3154
|
-
var tmp0_safe_receiver_2 = element_1.
|
|
3155
|
-
var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.
|
|
3153
|
+
var tmp0_safe_receiver_2 = element_1.l25_1;
|
|
3154
|
+
var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.n25_1;
|
|
3156
3155
|
if ((tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.sm()) === true) {
|
|
3157
3156
|
tmp$ret$18 = true;
|
|
3158
3157
|
break $l$block_0;
|
|
@@ -3164,14 +3163,14 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3164
3163
|
}
|
|
3165
3164
|
var tmp5_requestBody = tmp_4;
|
|
3166
3165
|
// Inline function 'kotlin.collections.groupBy' call
|
|
3167
|
-
var tmp0_2 = _this__u8e3s4.
|
|
3166
|
+
var tmp0_2 = _this__u8e3s4.f25_1;
|
|
3168
3167
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
3169
3168
|
var destination_4 = LinkedHashMap_init_$Create$_0();
|
|
3170
3169
|
var _iterator__ex2g4s_5 = tmp0_2.g();
|
|
3171
3170
|
while (_iterator__ex2g4s_5.h()) {
|
|
3172
3171
|
var element_2 = _iterator__ex2g4s_5.i();
|
|
3173
3172
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
3174
|
-
var key = element_2.
|
|
3173
|
+
var key = element_2.g25_1;
|
|
3175
3174
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
3176
3175
|
var value = destination_4.g2(key);
|
|
3177
3176
|
var tmp_6;
|
|
@@ -3206,7 +3205,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3206
3205
|
while (_iterator__ex2g4s_7.h()) {
|
|
3207
3206
|
var element_3 = _iterator__ex2g4s_7.i();
|
|
3208
3207
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3209
|
-
var list_0 = element_3.
|
|
3208
|
+
var list_0 = element_3.h25_1;
|
|
3210
3209
|
addAll(destination_6, list_0);
|
|
3211
3210
|
}
|
|
3212
3211
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -3221,7 +3220,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3221
3220
|
var pair = emitHeader(element_4, OpenAPIV3Emitter_getInstance());
|
|
3222
3221
|
destination_7.n2(pair.ke_1, pair.le_1);
|
|
3223
3222
|
}
|
|
3224
|
-
var tmp1_description = _this__u8e3s4.
|
|
3223
|
+
var tmp1_description = _this__u8e3s4.z24_1.b1() + ' ' + statusCode + ' response';
|
|
3225
3224
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3226
3225
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3227
3226
|
var destination_8 = ArrayList_init_$Create$();
|
|
@@ -3231,7 +3230,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3231
3230
|
var element_5 = _iterator__ex2g4s_9.i();
|
|
3232
3231
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3233
3232
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3234
|
-
var tmp0_safe_receiver_3 = element_5.
|
|
3233
|
+
var tmp0_safe_receiver_3 = element_5.i25_1;
|
|
3235
3234
|
if (tmp0_safe_receiver_3 == null)
|
|
3236
3235
|
null;
|
|
3237
3236
|
else {
|
|
@@ -3271,21 +3270,21 @@ function emitSegment_0(_this__u8e3s4, $this) {
|
|
|
3271
3270
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenAPIV3Emitter$emitSegment$lambda);
|
|
3272
3271
|
}
|
|
3273
3272
|
function emitParameter_0(_this__u8e3s4, $this, location) {
|
|
3274
|
-
var tmp0_name = _this__u8e3s4.
|
|
3275
|
-
var tmp1_schema = emitSchema_0(_this__u8e3s4.
|
|
3273
|
+
var tmp0_name = _this__u8e3s4.s25_1.b1();
|
|
3274
|
+
var tmp1_schema = emitSchema_0(_this__u8e3s4.t25_1, $this);
|
|
3276
3275
|
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_schema, VOID, VOID, VOID, tmp0_name, location);
|
|
3277
3276
|
}
|
|
3278
3277
|
function emitParameter_1(_this__u8e3s4, $this) {
|
|
3279
3278
|
var tmp0_in = ParameterLocation_PATH_getInstance_0();
|
|
3280
|
-
var tmp1_name = _this__u8e3s4.
|
|
3281
|
-
var tmp2_schema = emitSchema_0(_this__u8e3s4.
|
|
3279
|
+
var tmp1_name = _this__u8e3s4.w25_1.b1();
|
|
3280
|
+
var tmp2_schema = emitSchema_0(_this__u8e3s4.x25_1, $this);
|
|
3282
3281
|
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_schema, VOID, VOID, VOID, tmp1_name, tmp0_in);
|
|
3283
3282
|
}
|
|
3284
3283
|
function emitHeader(_this__u8e3s4, $this) {
|
|
3285
|
-
return to(_this__u8e3s4.
|
|
3284
|
+
return to(_this__u8e3s4.s25_1.b1(), emitHeader_0(_this__u8e3s4.t25_1, $this));
|
|
3286
3285
|
}
|
|
3287
3286
|
function emitSchema(_this__u8e3s4, $this) {
|
|
3288
|
-
return to(_this__u8e3s4.
|
|
3287
|
+
return to(_this__u8e3s4.s25_1.b1(), emitSchema_0(_this__u8e3s4.t25_1, $this));
|
|
3289
3288
|
}
|
|
3290
3289
|
function emitHeader_0(_this__u8e3s4, $this) {
|
|
3291
3290
|
var tmp;
|
|
@@ -3378,7 +3377,7 @@ function emitType_1(_this__u8e3s4, $this) {
|
|
|
3378
3377
|
return tmp;
|
|
3379
3378
|
}
|
|
3380
3379
|
function emit_7(_this__u8e3s4, $this) {
|
|
3381
|
-
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.
|
|
3380
|
+
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.m25_1)), new MediaTypeObject(emitSchema_0(_this__u8e3s4.n25_1, $this)));
|
|
3382
3381
|
}
|
|
3383
3382
|
function emitFormat_0(_this__u8e3s4, $this) {
|
|
3384
3383
|
var tmp;
|
|
@@ -3431,10 +3430,10 @@ function emitFormat_0(_this__u8e3s4, $this) {
|
|
|
3431
3430
|
function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
3432
3431
|
var tmp;
|
|
3433
3432
|
if (it instanceof Param) {
|
|
3434
|
-
tmp = '{' + it.
|
|
3433
|
+
tmp = '{' + it.w25_1.b1() + '}';
|
|
3435
3434
|
} else {
|
|
3436
3435
|
if (it instanceof Literal) {
|
|
3437
|
-
tmp = it.
|
|
3436
|
+
tmp = it.g26_1;
|
|
3438
3437
|
} else {
|
|
3439
3438
|
noWhenBranchMatchedException();
|
|
3440
3439
|
}
|
|
@@ -3444,23 +3443,20 @@ function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
|
3444
3443
|
function OpenAPIV3Emitter() {
|
|
3445
3444
|
OpenAPIV3Emitter_instance = this;
|
|
3446
3445
|
Emitter.call(this);
|
|
3447
|
-
this.
|
|
3448
|
-
this.
|
|
3449
|
-
this.
|
|
3446
|
+
this.k2f_1 = FileExtension_JSON_getInstance();
|
|
3447
|
+
this.l2f_1 = null;
|
|
3448
|
+
this.m2f_1 = '';
|
|
3450
3449
|
}
|
|
3451
|
-
protoOf(OpenAPIV3Emitter).
|
|
3452
|
-
return this.
|
|
3453
|
-
};
|
|
3454
|
-
protoOf(OpenAPIV3Emitter).i26 = function (_this__u8e3s4) {
|
|
3455
|
-
return this.n29();
|
|
3450
|
+
protoOf(OpenAPIV3Emitter).i26 = function () {
|
|
3451
|
+
return this.k2f_1;
|
|
3456
3452
|
};
|
|
3457
|
-
protoOf(OpenAPIV3Emitter).
|
|
3458
|
-
return this.
|
|
3453
|
+
protoOf(OpenAPIV3Emitter).k26 = function () {
|
|
3454
|
+
return this.m2f_1;
|
|
3459
3455
|
};
|
|
3460
|
-
protoOf(OpenAPIV3Emitter).
|
|
3461
|
-
var tmp0 = Common_getInstance().
|
|
3456
|
+
protoOf(OpenAPIV3Emitter).l26 = function (module_0, logger) {
|
|
3457
|
+
var tmp0 = Common_getInstance().p2e_1;
|
|
3462
3458
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
3463
|
-
var value = this.
|
|
3459
|
+
var value = this.n2f(module_0, null);
|
|
3464
3460
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3465
3461
|
var this_0 = tmp0.ip();
|
|
3466
3462
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -3469,28 +3465,31 @@ protoOf(OpenAPIV3Emitter).a27 = function (module_0, logger) {
|
|
|
3469
3465
|
var tmp$ret$2 = tmp0.v15(tmp$ret$1, value);
|
|
3470
3466
|
return nonEmptyListOf(new Emitted('OpenAPIObject', tmp$ret$2), []);
|
|
3471
3467
|
};
|
|
3472
|
-
protoOf(OpenAPIV3Emitter).
|
|
3473
|
-
return this.
|
|
3468
|
+
protoOf(OpenAPIV3Emitter).t26 = function (type, module_0) {
|
|
3469
|
+
return this.r29();
|
|
3474
3470
|
};
|
|
3475
|
-
protoOf(OpenAPIV3Emitter).
|
|
3476
|
-
return this.
|
|
3471
|
+
protoOf(OpenAPIV3Emitter).n27 = function (enum_0, module_0) {
|
|
3472
|
+
return this.r29();
|
|
3477
3473
|
};
|
|
3478
|
-
protoOf(OpenAPIV3Emitter).
|
|
3479
|
-
return this.
|
|
3474
|
+
protoOf(OpenAPIV3Emitter).g27 = function (refined) {
|
|
3475
|
+
return this.r29();
|
|
3480
3476
|
};
|
|
3481
|
-
protoOf(OpenAPIV3Emitter).
|
|
3482
|
-
return this.
|
|
3477
|
+
protoOf(OpenAPIV3Emitter).z27 = function (endpoint) {
|
|
3478
|
+
return this.r29();
|
|
3483
3479
|
};
|
|
3484
|
-
protoOf(OpenAPIV3Emitter).
|
|
3485
|
-
return this.
|
|
3480
|
+
protoOf(OpenAPIV3Emitter).s27 = function (union) {
|
|
3481
|
+
return this.r29();
|
|
3486
3482
|
};
|
|
3487
|
-
protoOf(OpenAPIV3Emitter).
|
|
3488
|
-
return this.
|
|
3483
|
+
protoOf(OpenAPIV3Emitter).u25 = function (identifier) {
|
|
3484
|
+
return this.r29();
|
|
3489
3485
|
};
|
|
3490
|
-
protoOf(OpenAPIV3Emitter).
|
|
3491
|
-
|
|
3486
|
+
protoOf(OpenAPIV3Emitter).t27 = function (channel) {
|
|
3487
|
+
return this.r29();
|
|
3488
|
+
};
|
|
3489
|
+
protoOf(OpenAPIV3Emitter).n2f = function (module_0, options) {
|
|
3490
|
+
var tmp1_elvis_lhs = options == null ? null : options.o2f_1;
|
|
3492
3491
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
3493
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
3492
|
+
var tmp3_elvis_lhs = options == null ? null : options.p2f_1;
|
|
3494
3493
|
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));
|
|
3495
3494
|
};
|
|
3496
3495
|
var OpenAPIV3Emitter_instance;
|
|
@@ -3548,7 +3547,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3548
3547
|
while (_iterator__ex2g4s_2.h()) {
|
|
3549
3548
|
var item_0 = _iterator__ex2g4s_2.i();
|
|
3550
3549
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3551
|
-
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_0, Common_getInstance().
|
|
3550
|
+
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_0, Common_getInstance().q2e([name, 'Parameter', item_0.q1w_1]));
|
|
3552
3551
|
destination_2.e(tmp$ret$9);
|
|
3553
3552
|
}
|
|
3554
3553
|
var query = destination_2;
|
|
@@ -3570,32 +3569,10 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3570
3569
|
while (_iterator__ex2g4s_4.h()) {
|
|
3571
3570
|
var item_1 = _iterator__ex2g4s_4.i();
|
|
3572
3571
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3573
|
-
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_1, Common_getInstance().
|
|
3572
|
+
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_1, Common_getInstance().q2e([name, 'Parameter', item_1.q1w_1]));
|
|
3574
3573
|
destination_4.e(tmp$ret$15);
|
|
3575
3574
|
}
|
|
3576
3575
|
var headers = destination_4;
|
|
3577
|
-
// Inline function 'kotlin.collections.filter' call
|
|
3578
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
3579
|
-
var destination_5 = ArrayList_init_$Create$();
|
|
3580
|
-
var _iterator__ex2g4s_5 = parameters.g();
|
|
3581
|
-
while (_iterator__ex2g4s_5.h()) {
|
|
3582
|
-
var element_2 = _iterator__ex2g4s_5.i();
|
|
3583
|
-
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3584
|
-
if (element_2.r1w_1.equals(ParameterLocation_COOKIE_getInstance())) {
|
|
3585
|
-
destination_5.e(element_2);
|
|
3586
|
-
}
|
|
3587
|
-
}
|
|
3588
|
-
// Inline function 'kotlin.collections.map' call
|
|
3589
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3590
|
-
var destination_6 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_5, 10));
|
|
3591
|
-
var _iterator__ex2g4s_6 = destination_5.g();
|
|
3592
|
-
while (_iterator__ex2g4s_6.h()) {
|
|
3593
|
-
var item_2 = _iterator__ex2g4s_6.i();
|
|
3594
|
-
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3595
|
-
var tmp$ret$21 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_2, Common_getInstance().u2e([name, 'Parameter', item_2.q1w_1]));
|
|
3596
|
-
destination_6.e(tmp$ret$21);
|
|
3597
|
-
}
|
|
3598
|
-
var cookies = destination_6;
|
|
3599
3576
|
var tmp1_safe_receiver = operation.t1u_1;
|
|
3600
3577
|
var tmp;
|
|
3601
3578
|
if (tmp1_safe_receiver == null) {
|
|
@@ -3620,23 +3597,23 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3620
3597
|
} else {
|
|
3621
3598
|
// Inline function 'kotlin.collections.map' call
|
|
3622
3599
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3623
|
-
var
|
|
3600
|
+
var destination_5 = ArrayList_init_$Create$_0(tmp0_safe_receiver.j());
|
|
3624
3601
|
// Inline function 'kotlin.collections.iterator' call
|
|
3625
|
-
var
|
|
3626
|
-
while (
|
|
3627
|
-
var
|
|
3602
|
+
var _iterator__ex2g4s_5 = tmp0_safe_receiver.z().g();
|
|
3603
|
+
while (_iterator__ex2g4s_5.h()) {
|
|
3604
|
+
var item_2 = _iterator__ex2g4s_5.i();
|
|
3628
3605
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3629
3606
|
// Inline function 'kotlin.collections.component1' call
|
|
3630
|
-
var mediaType =
|
|
3607
|
+
var mediaType = item_2.a1().p20_1;
|
|
3631
3608
|
// Inline function 'kotlin.collections.component2' call
|
|
3632
|
-
var mediaObject =
|
|
3609
|
+
var mediaObject = item_2.b1();
|
|
3633
3610
|
var schema = mediaObject.t20_1;
|
|
3634
3611
|
var tmp_2;
|
|
3635
3612
|
if (schema instanceof ReferenceObject_0) {
|
|
3636
3613
|
tmp_2 = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema, isNullable);
|
|
3637
3614
|
} else {
|
|
3638
3615
|
if (schema instanceof SchemaObject_0) {
|
|
3639
|
-
tmp_2 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema, isNullable, Common_getInstance().
|
|
3616
|
+
tmp_2 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema, isNullable, Common_getInstance().q2e([name, 'RequestBody']));
|
|
3640
3617
|
} else {
|
|
3641
3618
|
if (schema == null) {
|
|
3642
3619
|
tmp_2 = null;
|
|
@@ -3655,10 +3632,10 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3655
3632
|
tmp_3 = new Request(new Content(_MediaType___get_value__impl__wy58mp(mediaType), reference));
|
|
3656
3633
|
}
|
|
3657
3634
|
var tmp1_elvis_lhs = tmp_3;
|
|
3658
|
-
var tmp$ret$
|
|
3659
|
-
|
|
3635
|
+
var tmp$ret$25 = tmp1_elvis_lhs == null ? new Request(null) : tmp1_elvis_lhs;
|
|
3636
|
+
destination_5.e(tmp$ret$25);
|
|
3660
3637
|
}
|
|
3661
|
-
tmp_1 =
|
|
3638
|
+
tmp_1 = destination_5;
|
|
3662
3639
|
}
|
|
3663
3640
|
tmp_0 = tmp_1;
|
|
3664
3641
|
}
|
|
@@ -3669,16 +3646,16 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3669
3646
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3670
3647
|
var tmp0_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
3671
3648
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3672
|
-
var
|
|
3649
|
+
var destination_6 = ArrayList_init_$Create$();
|
|
3673
3650
|
// Inline function 'kotlin.collections.iterator' call
|
|
3674
|
-
var
|
|
3675
|
-
while (
|
|
3676
|
-
var
|
|
3651
|
+
var _iterator__ex2g4s_6 = tmp0_0.z().g();
|
|
3652
|
+
while (_iterator__ex2g4s_6.h()) {
|
|
3653
|
+
var element_2 = _iterator__ex2g4s_6.i();
|
|
3677
3654
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3678
3655
|
// Inline function 'kotlin.collections.component1' call
|
|
3679
|
-
var status =
|
|
3656
|
+
var status = element_2.a1().c1w_1;
|
|
3680
3657
|
// Inline function 'kotlin.collections.component2' call
|
|
3681
|
-
var res =
|
|
3658
|
+
var res = element_2.b1();
|
|
3682
3659
|
// Inline function 'kotlin.let' call
|
|
3683
3660
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3684
3661
|
var response = resolve_8(_this__u8e3s4, OpenAPIV3Parser_instance, res);
|
|
@@ -3689,16 +3666,16 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3689
3666
|
} else {
|
|
3690
3667
|
// Inline function 'kotlin.collections.map' call
|
|
3691
3668
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3692
|
-
var
|
|
3669
|
+
var destination_7 = ArrayList_init_$Create$_0(tmp0_safe_receiver_0.j());
|
|
3693
3670
|
// Inline function 'kotlin.collections.iterator' call
|
|
3694
|
-
var
|
|
3695
|
-
while (
|
|
3696
|
-
var
|
|
3671
|
+
var _iterator__ex2g4s_7 = tmp0_safe_receiver_0.z().g();
|
|
3672
|
+
while (_iterator__ex2g4s_7.h()) {
|
|
3673
|
+
var item_3 = _iterator__ex2g4s_7.i();
|
|
3697
3674
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3698
3675
|
// Inline function 'kotlin.collections.component1' call
|
|
3699
|
-
var contentType =
|
|
3676
|
+
var contentType = item_3.a1().p20_1;
|
|
3700
3677
|
// Inline function 'kotlin.collections.component2' call
|
|
3701
|
-
var media =
|
|
3678
|
+
var media = item_3.b1();
|
|
3702
3679
|
var tmp0_safe_receiver_1 = media.t20_1;
|
|
3703
3680
|
var tmp_5;
|
|
3704
3681
|
if (tmp0_safe_receiver_1 == null) {
|
|
@@ -3719,16 +3696,16 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3719
3696
|
} else {
|
|
3720
3697
|
// Inline function 'kotlin.collections.map' call
|
|
3721
3698
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3722
|
-
var
|
|
3699
|
+
var destination_8 = ArrayList_init_$Create$_0(tmp3_safe_receiver.j());
|
|
3723
3700
|
// Inline function 'kotlin.collections.iterator' call
|
|
3724
|
-
var
|
|
3725
|
-
while (
|
|
3726
|
-
var
|
|
3701
|
+
var _iterator__ex2g4s_8 = tmp3_safe_receiver.z().g();
|
|
3702
|
+
while (_iterator__ex2g4s_8.h()) {
|
|
3703
|
+
var item_4 = _iterator__ex2g4s_8.i();
|
|
3727
3704
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3728
|
-
var tmp$ret$
|
|
3729
|
-
|
|
3705
|
+
var tmp$ret$40 = toField_4(_this__u8e3s4, OpenAPIV3Parser_instance, resolve_5(_this__u8e3s4, OpenAPIV3Parser_instance, item_4.b1()), item_4.a1(), Common_getInstance().q2e([name, 'ResponseHeader']));
|
|
3706
|
+
destination_8.e(tmp$ret$40);
|
|
3730
3707
|
}
|
|
3731
|
-
tmp_7 =
|
|
3708
|
+
tmp_7 = destination_8;
|
|
3732
3709
|
}
|
|
3733
3710
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3734
3711
|
var tmp0_elvis_lhs_1 = tmp_7;
|
|
@@ -3740,7 +3717,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3740
3717
|
tmp_10 = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema_0, isNullable_0);
|
|
3741
3718
|
} else {
|
|
3742
3719
|
if (schema_0 instanceof SchemaObject_0) {
|
|
3743
|
-
tmp_10 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema_0, isNullable_0, Common_getInstance().
|
|
3720
|
+
tmp_10 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema_0, isNullable_0, Common_getInstance().q2e([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
3744
3721
|
} else {
|
|
3745
3722
|
if (schema_0 == null) {
|
|
3746
3723
|
tmp_10 = new Any(isNullable_0);
|
|
@@ -3749,18 +3726,18 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3749
3726
|
}
|
|
3750
3727
|
}
|
|
3751
3728
|
}
|
|
3752
|
-
var tmp$ret$
|
|
3753
|
-
|
|
3729
|
+
var tmp$ret$44 = new Response(tmp_6, tmp_8, new Content(tmp_9, tmp_10));
|
|
3730
|
+
destination_7.e(tmp$ret$44);
|
|
3754
3731
|
}
|
|
3755
|
-
tmp_4 =
|
|
3732
|
+
tmp_4 = destination_7;
|
|
3756
3733
|
}
|
|
3757
3734
|
var tmp0_elvis_lhs_2 = tmp_4;
|
|
3758
3735
|
var list = tmp0_elvis_lhs_2 == null ? listOf(new Response(_StatusCode___get_value__impl__we50mu_0(status), emptyList(), null)) : tmp0_elvis_lhs_2;
|
|
3759
|
-
addAll(
|
|
3736
|
+
addAll(destination_6, list);
|
|
3760
3737
|
}
|
|
3761
|
-
var responses =
|
|
3762
|
-
var tmp$ret$
|
|
3763
|
-
destination_0.e(tmp$ret$
|
|
3738
|
+
var responses = destination_6;
|
|
3739
|
+
var tmp$ret$52 = new Endpoint(null, new DefinitionIdentifier(name), method, segments, query, headers, requests, responses);
|
|
3740
|
+
destination_0.e(tmp$ret$52);
|
|
3764
3741
|
}
|
|
3765
3742
|
var list_0 = destination_0;
|
|
3766
3743
|
addAll(destination, list_0);
|
|
@@ -3795,7 +3772,7 @@ function flatMapResponse(_this__u8e3s4, $this, response, name, statusCode) {
|
|
|
3795
3772
|
switch (tmp0_subject == null ? -1 : tmp0_subject.r2_1) {
|
|
3796
3773
|
case -1:
|
|
3797
3774
|
case 5:
|
|
3798
|
-
tmp_0 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema, Common_getInstance().
|
|
3775
|
+
tmp_0 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema, Common_getInstance().q2e([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
3799
3776
|
break;
|
|
3800
3777
|
case 4:
|
|
3801
3778
|
var tmp1_safe_receiver = schema.n1x_1;
|
|
@@ -3805,7 +3782,7 @@ function flatMapResponse(_this__u8e3s4, $this, response, name, statusCode) {
|
|
|
3805
3782
|
} else {
|
|
3806
3783
|
// Inline function 'kotlin.let' call
|
|
3807
3784
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.flatMapResponse.<anonymous>.<anonymous>' call
|
|
3808
|
-
tmp_1 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
3785
|
+
tmp_1 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp1_safe_receiver, Common_getInstance().q2e([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
3809
3786
|
}
|
|
3810
3787
|
|
|
3811
3788
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -3861,7 +3838,7 @@ function parseComponents(_this__u8e3s4, $this) {
|
|
|
3861
3838
|
while (_iterator__ex2g4s_0.h()) {
|
|
3862
3839
|
var element_0 = _iterator__ex2g4s_0.i();
|
|
3863
3840
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseComponents.<anonymous>' call
|
|
3864
|
-
var list = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, element_0.b1(), Common_getInstance().
|
|
3841
|
+
var list = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, element_0.b1(), Common_getInstance().q2e([element_0.a1()]));
|
|
3865
3842
|
addAll(destination_0, list);
|
|
3866
3843
|
}
|
|
3867
3844
|
return destination_0;
|
|
@@ -3877,7 +3854,7 @@ function toName_1(_this__u8e3s4, $this) {
|
|
|
3877
3854
|
} else {
|
|
3878
3855
|
// Inline function 'kotlin.let' call
|
|
3879
3856
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.toName.<anonymous>' call
|
|
3880
|
-
tmp = Common_getInstance().
|
|
3857
|
+
tmp = Common_getInstance().q2e([tmp0_safe_receiver]);
|
|
3881
3858
|
}
|
|
3882
3859
|
return tmp;
|
|
3883
3860
|
}
|
|
@@ -3965,7 +3942,7 @@ function toSegments_0(_this__u8e3s4, $this, path, parameters, operation, method)
|
|
|
3965
3942
|
} else {
|
|
3966
3943
|
// Inline function 'kotlin.let' call
|
|
3967
3944
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.toSegments.<anonymous>.<anonymous>' call
|
|
3968
|
-
tmp_1 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp4_safe_receiver, false, Common_getInstance().
|
|
3945
|
+
tmp_1 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp4_safe_receiver, false, Common_getInstance().q2e([name, 'Parameter', param]));
|
|
3969
3946
|
}
|
|
3970
3947
|
|
|
3971
3948
|
var tmp5_safe_receiver = tmp_1;
|
|
@@ -4366,7 +4343,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4366
4343
|
tmp_6 = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, item, false);
|
|
4367
4344
|
} else {
|
|
4368
4345
|
if (item instanceof SchemaObject_0) {
|
|
4369
|
-
tmp_6 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, item, false, Common_getInstance().
|
|
4346
|
+
tmp_6 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, item, false, Common_getInstance().q2e([name, index_0.toString()]));
|
|
4370
4347
|
} else {
|
|
4371
4348
|
noWhenBranchMatchedException();
|
|
4372
4349
|
}
|
|
@@ -4394,7 +4371,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4394
4371
|
tmp_8 = emptyList();
|
|
4395
4372
|
} else {
|
|
4396
4373
|
if (element instanceof SchemaObject_0) {
|
|
4397
|
-
tmp_8 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, element, Common_getInstance().
|
|
4374
|
+
tmp_8 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, element, Common_getInstance().q2e([name, index_2.toString()]));
|
|
4398
4375
|
} else {
|
|
4399
4376
|
noWhenBranchMatchedException();
|
|
4400
4377
|
}
|
|
@@ -4425,7 +4402,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4425
4402
|
while (_iterator__ex2g4s_2.h()) {
|
|
4426
4403
|
var e = _iterator__ex2g4s_2.i();
|
|
4427
4404
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.flatten.<anonymous>' call
|
|
4428
|
-
var key = e.
|
|
4405
|
+
var key = e.s25_1;
|
|
4429
4406
|
if (set.e(key)) {
|
|
4430
4407
|
list_1.e(e);
|
|
4431
4408
|
}
|
|
@@ -4466,7 +4443,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4466
4443
|
var key_0 = element_2.a1();
|
|
4467
4444
|
// Inline function 'kotlin.collections.component2' call
|
|
4468
4445
|
var value = element_2.b1();
|
|
4469
|
-
var list_2 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, Common_getInstance().
|
|
4446
|
+
var list_2 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, Common_getInstance().q2e([name, key_0]));
|
|
4470
4447
|
addAll(destination_3, list_2);
|
|
4471
4448
|
}
|
|
4472
4449
|
var list_3 = destination_3;
|
|
@@ -4514,7 +4491,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4514
4491
|
var key_1 = element_3.a1();
|
|
4515
4492
|
// Inline function 'kotlin.collections.component2' call
|
|
4516
4493
|
var value_0 = element_3.b1();
|
|
4517
|
-
var list_4 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value_0, Common_getInstance().
|
|
4494
|
+
var list_4 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value_0, Common_getInstance().q2e([name, key_1]));
|
|
4518
4495
|
addAll(destination_5, list_4);
|
|
4519
4496
|
}
|
|
4520
4497
|
|
|
@@ -4535,7 +4512,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4535
4512
|
tmp_14 = emptyList();
|
|
4536
4513
|
} else {
|
|
4537
4514
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
4538
|
-
tmp_14 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, tmp6_safe_receiver, Common_getInstance().
|
|
4515
|
+
tmp_14 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, tmp6_safe_receiver, Common_getInstance().q2e([name, 'array']));
|
|
4539
4516
|
} else {
|
|
4540
4517
|
noWhenBranchMatchedException();
|
|
4541
4518
|
}
|
|
@@ -4596,7 +4573,7 @@ function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
4596
4573
|
}
|
|
4597
4574
|
tmp = tmp_0;
|
|
4598
4575
|
} else if (!(schema.i1y_1 == null)) {
|
|
4599
|
-
tmp = new Custom(sanitize_0(Common_getInstance().
|
|
4576
|
+
tmp = new Custom(sanitize_0(Common_getInstance().q2e([getReference_0(referencingObject, OpenAPIV3Parser_instance)])), isNullable);
|
|
4600
4577
|
} else if (isPrimitive_0(schema.i1x_1)) {
|
|
4601
4578
|
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.i1x_1), OpenAPIV3Parser_instance, schema.r1x_1), isNullable);
|
|
4602
4579
|
} else if (equals(schema.i1x_1, Type_ARRAY_getInstance_0())) {
|
|
@@ -4608,7 +4585,7 @@ function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
4608
4585
|
tmp_3 = toIterable_0(toReference_1(_this__u8e3s4, tmp_4, items, tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs), isNullable);
|
|
4609
4586
|
} else {
|
|
4610
4587
|
if (items instanceof SchemaObject_0) {
|
|
4611
|
-
var tmp_5 = sanitize_0(Common_getInstance().
|
|
4588
|
+
var tmp_5 = sanitize_0(Common_getInstance().q2e([getReference_0(referencingObject, OpenAPIV3Parser_instance), 'Array']));
|
|
4612
4589
|
var tmp3_elvis_lhs = schema.z1w_1;
|
|
4613
4590
|
tmp_3 = toIterable_0(new Custom(tmp_5, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs), isNullable);
|
|
4614
4591
|
} else {
|
|
@@ -4622,7 +4599,7 @@ function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
4622
4599
|
}
|
|
4623
4600
|
tmp = tmp_3;
|
|
4624
4601
|
} else {
|
|
4625
|
-
tmp = new Custom(sanitize_0(Common_getInstance().
|
|
4602
|
+
tmp = new Custom(sanitize_0(Common_getInstance().q2e([getReference_0(referencingObject, OpenAPIV3Parser_instance)])), isNullable);
|
|
4626
4603
|
}
|
|
4627
4604
|
return tmp;
|
|
4628
4605
|
}
|
|
@@ -4805,7 +4782,7 @@ function toOperationList_0(_this__u8e3s4, $this) {
|
|
|
4805
4782
|
var tmp$ret$0 = tmp_0;
|
|
4806
4783
|
result.n2(element, tmp$ret$0);
|
|
4807
4784
|
}
|
|
4808
|
-
return tmp.
|
|
4785
|
+
return tmp.r2e(result);
|
|
4809
4786
|
}
|
|
4810
4787
|
function getReference_0(_this__u8e3s4, $this) {
|
|
4811
4788
|
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.w1w_1), ['/']), 3);
|
|
@@ -4860,7 +4837,7 @@ function toField_2(_this__u8e3s4, $this, schema, name) {
|
|
|
4860
4837
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
4861
4838
|
var tmp;
|
|
4862
4839
|
if (value instanceof SchemaObject_0) {
|
|
4863
|
-
tmp = new Field(new FieldIdentifier(key), !(value.i1y_1 == null) ? toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().
|
|
4840
|
+
tmp = new Field(new FieldIdentifier(key), !(value.i1y_1 == null) ? toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().q2e([name, key])) : equals(value.i1x_1, Type_ARRAY_getInstance_0()) ? toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().q2e([name, key, 'Array'])) : toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().q2e([name, key])));
|
|
4864
4841
|
} else {
|
|
4865
4842
|
if (value instanceof ReferenceObject_0) {
|
|
4866
4843
|
tmp = new Field(new FieldIdentifier(key), toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable));
|
|
@@ -4920,19 +4897,19 @@ function toField_4(_this__u8e3s4, $this, header, identifier, name) {
|
|
|
4920
4897
|
return new Field(new FieldIdentifier(identifier), it);
|
|
4921
4898
|
}
|
|
4922
4899
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
4923
|
-
this.
|
|
4924
|
-
this.
|
|
4925
|
-
this.
|
|
4926
|
-
this.
|
|
4900
|
+
this.q2f_1 = path;
|
|
4901
|
+
this.r2f_1 = pathItem;
|
|
4902
|
+
this.s2f_1 = method;
|
|
4903
|
+
this.t2f_1 = operation;
|
|
4927
4904
|
}
|
|
4928
4905
|
protoOf(FlattenRequest_0).toString = function () {
|
|
4929
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
4906
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.q2f_1) + ', pathItem=' + this.r2f_1.toString() + ', method=' + this.s2f_1.toString() + ', operation=' + this.t2f_1.toString() + ')';
|
|
4930
4907
|
};
|
|
4931
4908
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
4932
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
4933
|
-
result = imul(result, 31) + this.
|
|
4934
|
-
result = imul(result, 31) + this.
|
|
4935
|
-
result = imul(result, 31) + this.
|
|
4909
|
+
var result = Path__hashCode_impl_go73kd_0(this.q2f_1);
|
|
4910
|
+
result = imul(result, 31) + this.r2f_1.hashCode() | 0;
|
|
4911
|
+
result = imul(result, 31) + this.s2f_1.hashCode() | 0;
|
|
4912
|
+
result = imul(result, 31) + this.t2f_1.hashCode() | 0;
|
|
4936
4913
|
return result;
|
|
4937
4914
|
};
|
|
4938
4915
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -4941,13 +4918,13 @@ protoOf(FlattenRequest_0).equals = function (other) {
|
|
|
4941
4918
|
if (!(other instanceof FlattenRequest_0))
|
|
4942
4919
|
return false;
|
|
4943
4920
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
4944
|
-
if (!(this.
|
|
4921
|
+
if (!(this.q2f_1 === tmp0_other_with_cast.q2f_1))
|
|
4945
4922
|
return false;
|
|
4946
|
-
if (!this.
|
|
4923
|
+
if (!this.r2f_1.equals(tmp0_other_with_cast.r2f_1))
|
|
4947
4924
|
return false;
|
|
4948
|
-
if (!this.
|
|
4925
|
+
if (!this.s2f_1.equals(tmp0_other_with_cast.s2f_1))
|
|
4949
4926
|
return false;
|
|
4950
|
-
if (!this.
|
|
4927
|
+
if (!this.t2f_1.equals(tmp0_other_with_cast.t2f_1))
|
|
4951
4928
|
return false;
|
|
4952
4929
|
return true;
|
|
4953
4930
|
};
|
|
@@ -4996,23 +4973,23 @@ function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
|
4996
4973
|
return destination_1;
|
|
4997
4974
|
}
|
|
4998
4975
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
4999
|
-
this.
|
|
5000
|
-
this.
|
|
5001
|
-
this.
|
|
5002
|
-
this.
|
|
5003
|
-
this.
|
|
5004
|
-
this.
|
|
4976
|
+
this.u2f_1 = path;
|
|
4977
|
+
this.v2f_1 = pathItem;
|
|
4978
|
+
this.w2f_1 = method;
|
|
4979
|
+
this.x2f_1 = operation;
|
|
4980
|
+
this.y2f_1 = statusCode;
|
|
4981
|
+
this.z2f_1 = response;
|
|
5005
4982
|
}
|
|
5006
4983
|
protoOf(FlattenResponse_0).toString = function () {
|
|
5007
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
4984
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.u2f_1) + ', pathItem=' + this.v2f_1.toString() + ', method=' + this.w2f_1.toString() + ', operation=' + this.x2f_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy_0(this.y2f_1) + ', response=' + toString(this.z2f_1) + ')';
|
|
5008
4985
|
};
|
|
5009
4986
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
5010
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
5011
|
-
result = imul(result, 31) + this.
|
|
5012
|
-
result = imul(result, 31) + this.
|
|
5013
|
-
result = imul(result, 31) + this.
|
|
5014
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.
|
|
5015
|
-
result = imul(result, 31) + hashCode(this.
|
|
4987
|
+
var result = Path__hashCode_impl_go73kd_0(this.u2f_1);
|
|
4988
|
+
result = imul(result, 31) + this.v2f_1.hashCode() | 0;
|
|
4989
|
+
result = imul(result, 31) + this.w2f_1.hashCode() | 0;
|
|
4990
|
+
result = imul(result, 31) + this.x2f_1.hashCode() | 0;
|
|
4991
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.y2f_1) | 0;
|
|
4992
|
+
result = imul(result, 31) + hashCode(this.z2f_1) | 0;
|
|
5016
4993
|
return result;
|
|
5017
4994
|
};
|
|
5018
4995
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -5021,17 +4998,17 @@ protoOf(FlattenResponse_0).equals = function (other) {
|
|
|
5021
4998
|
if (!(other instanceof FlattenResponse_0))
|
|
5022
4999
|
return false;
|
|
5023
5000
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
5024
|
-
if (!(this.
|
|
5001
|
+
if (!(this.u2f_1 === tmp0_other_with_cast.u2f_1))
|
|
5025
5002
|
return false;
|
|
5026
|
-
if (!this.
|
|
5003
|
+
if (!this.v2f_1.equals(tmp0_other_with_cast.v2f_1))
|
|
5027
5004
|
return false;
|
|
5028
|
-
if (!this.
|
|
5005
|
+
if (!this.w2f_1.equals(tmp0_other_with_cast.w2f_1))
|
|
5029
5006
|
return false;
|
|
5030
|
-
if (!this.
|
|
5007
|
+
if (!this.x2f_1.equals(tmp0_other_with_cast.x2f_1))
|
|
5031
5008
|
return false;
|
|
5032
|
-
if (!(this.
|
|
5009
|
+
if (!(this.y2f_1 === tmp0_other_with_cast.y2f_1))
|
|
5033
5010
|
return false;
|
|
5034
|
-
if (!equals(this.
|
|
5011
|
+
if (!equals(this.z2f_1, tmp0_other_with_cast.z2f_1))
|
|
5035
5012
|
return false;
|
|
5036
5013
|
return true;
|
|
5037
5014
|
};
|
|
@@ -5112,9 +5089,9 @@ function OpenAPIV3Parser$parse$lambda($strict) {
|
|
|
5112
5089
|
}
|
|
5113
5090
|
function OpenAPIV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
5114
5091
|
return function ($this$flatMapRequests) {
|
|
5115
|
-
var parameters = plus(resolveParameters_2($this_parseParameters, OpenAPIV3Parser_instance, $this$flatMapRequests.
|
|
5116
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5117
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5092
|
+
var parameters = plus(resolveParameters_2($this_parseParameters, OpenAPIV3Parser_instance, $this$flatMapRequests.r2f_1), resolveParameters_1($this_parseParameters, OpenAPIV3Parser_instance, $this$flatMapRequests.t2f_1));
|
|
5093
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.t2f_1, OpenAPIV3Parser_instance);
|
|
5094
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.q2f_1, OpenAPIV3Parser_instance) + $this$flatMapRequests.s2f_1.q2_1 : tmp0_elvis_lhs;
|
|
5118
5095
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5119
5096
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5120
5097
|
var destination = ArrayList_init_$Create$();
|
|
@@ -5129,7 +5106,7 @@ function OpenAPIV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
5129
5106
|
} else {
|
|
5130
5107
|
// Inline function 'kotlin.let' call
|
|
5131
5108
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
5132
|
-
tmp = flatten_2($this_parseParameters, OpenAPIV3Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
5109
|
+
tmp = flatten_2($this_parseParameters, OpenAPIV3Parser_instance, tmp0_safe_receiver, Common_getInstance().q2e([name, 'Parameter', element.q1w_1]));
|
|
5133
5110
|
}
|
|
5134
5111
|
var tmp1_elvis_lhs = tmp;
|
|
5135
5112
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -5140,9 +5117,9 @@ function OpenAPIV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
5140
5117
|
}
|
|
5141
5118
|
function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
5142
5119
|
return function ($this$flatMapRequests) {
|
|
5143
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5144
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5145
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
5120
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.t2f_1, OpenAPIV3Parser_instance);
|
|
5121
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.q2f_1, OpenAPIV3Parser_instance) + $this$flatMapRequests.s2f_1.q2_1 : tmp0_elvis_lhs;
|
|
5122
|
+
var tmp1_safe_receiver = $this$flatMapRequests.t2f_1.t1u_1;
|
|
5146
5123
|
var tmp;
|
|
5147
5124
|
if (tmp1_safe_receiver == null) {
|
|
5148
5125
|
tmp = null;
|
|
@@ -5173,7 +5150,7 @@ function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
5173
5150
|
switch (tmp0_subject == null ? -1 : tmp0_subject.r2_1) {
|
|
5174
5151
|
case -1:
|
|
5175
5152
|
case 5:
|
|
5176
|
-
tmp_1 = flatten_1($this_parseRequestBody, OpenAPIV3Parser_instance, schema, Common_getInstance().
|
|
5153
|
+
tmp_1 = flatten_1($this_parseRequestBody, OpenAPIV3Parser_instance, schema, Common_getInstance().q2e([name, 'RequestBody']));
|
|
5177
5154
|
break;
|
|
5178
5155
|
case 4:
|
|
5179
5156
|
var tmp1_safe_receiver_0 = schema.n1x_1;
|
|
@@ -5183,7 +5160,7 @@ function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
5183
5160
|
} else {
|
|
5184
5161
|
// Inline function 'kotlin.let' call
|
|
5185
5162
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
5186
|
-
tmp_2 = flatten_2($this_parseRequestBody, OpenAPIV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
5163
|
+
tmp_2 = flatten_2($this_parseRequestBody, OpenAPIV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().q2e([name, 'RequestBody']));
|
|
5187
5164
|
}
|
|
5188
5165
|
|
|
5189
5166
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -5217,15 +5194,15 @@ function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
5217
5194
|
}
|
|
5218
5195
|
function OpenAPIV3Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
5219
5196
|
return function ($this$flatMapResponses) {
|
|
5220
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.
|
|
5221
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.
|
|
5222
|
-
var response = $this$flatMapResponses.
|
|
5197
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.x2f_1, OpenAPIV3Parser_instance);
|
|
5198
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.u2f_1, OpenAPIV3Parser_instance) + $this$flatMapResponses.w2f_1.q2_1 : tmp0_elvis_lhs;
|
|
5199
|
+
var response = $this$flatMapResponses.z2f_1;
|
|
5223
5200
|
var tmp;
|
|
5224
5201
|
if (response instanceof ResponseObject_0) {
|
|
5225
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, response, name, $this$flatMapResponses.
|
|
5202
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, response, name, $this$flatMapResponses.y2f_1);
|
|
5226
5203
|
} else {
|
|
5227
5204
|
if (response instanceof ReferenceObject_0) {
|
|
5228
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenAPIV3Parser_instance, response).le_1, name, $this$flatMapResponses.
|
|
5205
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenAPIV3Parser_instance, response).le_1, name, $this$flatMapResponses.y2f_1);
|
|
5229
5206
|
} else {
|
|
5230
5207
|
noWhenBranchMatchedException();
|
|
5231
5208
|
}
|
|
@@ -5244,10 +5221,10 @@ function OpenAPIV3Parser$toName$lambda(it) {
|
|
|
5244
5221
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5245
5222
|
|
|
5246
5223
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
5247
|
-
tmp = tmp_0.
|
|
5224
|
+
tmp = tmp_0.q2e([tmp$ret$1]);
|
|
5248
5225
|
break;
|
|
5249
5226
|
case false:
|
|
5250
|
-
tmp = Common_getInstance().
|
|
5227
|
+
tmp = Common_getInstance().q2e([it]);
|
|
5251
5228
|
break;
|
|
5252
5229
|
default:
|
|
5253
5230
|
noWhenBranchMatchedException();
|
|
@@ -5257,8 +5234,8 @@ function OpenAPIV3Parser$toName$lambda(it) {
|
|
|
5257
5234
|
}
|
|
5258
5235
|
function OpenAPIV3Parser() {
|
|
5259
5236
|
}
|
|
5260
|
-
protoOf(OpenAPIV3Parser).
|
|
5261
|
-
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.
|
|
5237
|
+
protoOf(OpenAPIV3Parser).n2e = function (moduleContent, strict) {
|
|
5238
|
+
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.a2g((new OpenAPI_0(Json(VOID, OpenAPIV3Parser$parse$lambda(strict)))).c1h(moduleContent.u22_1)));
|
|
5262
5239
|
var tmp;
|
|
5263
5240
|
if (tmp0_elvis_lhs == null) {
|
|
5264
5241
|
var message = 'Cannot yield non empty List<Node> for OpenAPI v3';
|
|
@@ -5268,11 +5245,11 @@ protoOf(OpenAPIV3Parser).r2e = function (moduleContent, strict) {
|
|
|
5268
5245
|
}
|
|
5269
5246
|
return new AST(nonEmptyListOf(new Module(moduleContent.t22_1, tmp), []));
|
|
5270
5247
|
};
|
|
5271
|
-
protoOf(OpenAPIV3Parser).
|
|
5248
|
+
protoOf(OpenAPIV3Parser).b2g = function (moduleContent, strict, $super) {
|
|
5272
5249
|
strict = strict === VOID ? false : strict;
|
|
5273
|
-
return $super === VOID ? this.
|
|
5250
|
+
return $super === VOID ? this.n2e(moduleContent, strict) : $super.n2e.call(this, moduleContent, strict);
|
|
5274
5251
|
};
|
|
5275
|
-
protoOf(OpenAPIV3Parser).
|
|
5252
|
+
protoOf(OpenAPIV3Parser).a2g = function (_this__u8e3s4) {
|
|
5276
5253
|
// Inline function 'kotlin.collections.reduce' call
|
|
5277
5254
|
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();
|
|
5278
5255
|
if (!iterator.h())
|
|
@@ -5302,7 +5279,7 @@ function sanitize_0(_this__u8e3s4) {
|
|
|
5302
5279
|
var _unary__edvuaz = index;
|
|
5303
5280
|
index = _unary__edvuaz + 1 | 0;
|
|
5304
5281
|
// Inline function 'community.flock.wirespec.openapi.v3.sanitize.<anonymous>' call
|
|
5305
|
-
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ?
|
|
5282
|
+
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.r25(item) : item;
|
|
5306
5283
|
destination.e(tmp$ret$0);
|
|
5307
5284
|
}
|
|
5308
5285
|
var tmp = asSequence(joinToString(destination, ''));
|