@flock/wirespec 0.9.5 → 0.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clikt-clikt.js +1150 -1150
- package/colormath-root-colormath.js +362 -362
- package/kotlin-kotlin-stdlib.js +14 -14
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-rgxgen.js +1763 -1763
- package/markdown.js +1837 -1837
- package/mordant-mordant.js +1583 -1583
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +1497 -1464
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +248 -248
- package/wirespec-src-converter-openapi.js +298 -298
- package/wirespec-src-generator.js +21 -21
- package/wirespec-src-plugin-arguments.js +76 -76
- package/wirespec-src-plugin-cli.js +107 -107
- package/wirespec-src-plugin-cli.js.map +1 -1
- package/wirespec-src-plugin-npm.js +2 -2
|
@@ -187,12 +187,12 @@
|
|
|
187
187
|
setMetadataFor(OpenApiV3Parser, 'OpenApiV3Parser', classMeta);
|
|
188
188
|
//endregion
|
|
189
189
|
function Common$className$lambda(it) {
|
|
190
|
-
return Companion_getInstance().
|
|
190
|
+
return Companion_getInstance().a21(it);
|
|
191
191
|
}
|
|
192
192
|
function Common() {
|
|
193
193
|
Common_instance = this;
|
|
194
194
|
}
|
|
195
|
-
protoOf(Common).
|
|
195
|
+
protoOf(Common).q2b = function (arg) {
|
|
196
196
|
// Inline function 'kotlin.collections.flatMap' call
|
|
197
197
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
198
198
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
while (tmp0_iterator.w()) {
|
|
224
224
|
var element = tmp0_iterator.y();
|
|
225
225
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
226
|
-
if (element.
|
|
226
|
+
if (element.c28_1.equals(method)) {
|
|
227
227
|
tmp0_filterTo.s(element);
|
|
228
228
|
}
|
|
229
229
|
}
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
function emit_0(_this__u8e3s4, $this) {
|
|
243
243
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
244
244
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
245
|
-
var tmp0_mapNotNull = _this__u8e3s4.
|
|
245
|
+
var tmp0_mapNotNull = _this__u8e3s4.h28_1;
|
|
246
246
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
247
247
|
var tmp0_mapNotNullTo = ArrayList_init_$Create$();
|
|
248
248
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -251,8 +251,8 @@
|
|
|
251
251
|
var element = tmp0_iterator.y();
|
|
252
252
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
253
253
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
254
|
-
var tmp0_safe_receiver = element.
|
|
255
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
254
|
+
var tmp0_safe_receiver = element.t27_1;
|
|
255
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x27_1;
|
|
256
256
|
if (tmp0_safe_receiver_0 == null)
|
|
257
257
|
null;
|
|
258
258
|
else {
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
var tmp_0 = tmp;
|
|
273
273
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
274
274
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
275
|
-
var tmp2_mapNotNull = _this__u8e3s4.
|
|
275
|
+
var tmp2_mapNotNull = _this__u8e3s4.i28_1;
|
|
276
276
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
277
277
|
var tmp0_mapNotNullTo_0 = ArrayList_init_$Create$();
|
|
278
278
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -281,8 +281,8 @@
|
|
|
281
281
|
var element_0 = tmp0_iterator_0.y();
|
|
282
282
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
283
283
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
284
|
-
var tmp0_safe_receiver_1 = element_0.
|
|
285
|
-
var tmp0_safe_receiver_2 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.
|
|
284
|
+
var tmp0_safe_receiver_1 = element_0.w27_1;
|
|
285
|
+
var tmp0_safe_receiver_2 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.x27_1;
|
|
286
286
|
if (tmp0_safe_receiver_2 == null)
|
|
287
287
|
null;
|
|
288
288
|
else {
|
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
var tmp_2 = tmp_1;
|
|
303
303
|
// Inline function 'kotlin.collections.map' call
|
|
304
304
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
305
|
-
var tmp4_mapNotNull = _this__u8e3s4.
|
|
305
|
+
var tmp4_mapNotNull = _this__u8e3s4.h28_1;
|
|
306
306
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
307
307
|
var tmp0_mapNotNullTo_1 = ArrayList_init_$Create$();
|
|
308
308
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -311,7 +311,7 @@
|
|
|
311
311
|
var element_1 = tmp0_iterator_1.y();
|
|
312
312
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
313
313
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
314
|
-
var tmp0_safe_receiver_3 = element_1.
|
|
314
|
+
var tmp0_safe_receiver_3 = element_1.t27_1;
|
|
315
315
|
if (tmp0_safe_receiver_3 == null)
|
|
316
316
|
null;
|
|
317
317
|
else {
|
|
@@ -329,14 +329,14 @@
|
|
|
329
329
|
var tmp$ret$16;
|
|
330
330
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
331
331
|
var tmp0_in = ParameterLocation_BODY_getInstance();
|
|
332
|
-
var tmp1_schema = $this.
|
|
333
|
-
var tmp2_required = !item.
|
|
332
|
+
var tmp1_schema = $this.c27(item.y27_1);
|
|
333
|
+
var tmp2_required = !item.z27_1;
|
|
334
334
|
tmp$ret$16 = new ParameterObject('RequestBody', tmp0_in, VOID, tmp2_required, tmp1_schema);
|
|
335
335
|
tmp0_mapTo.s(tmp$ret$16);
|
|
336
336
|
}
|
|
337
337
|
var tmp_3 = tmp0_mapTo;
|
|
338
338
|
// Inline function 'kotlin.collections.map' call
|
|
339
|
-
var tmp6_map = _this__u8e3s4.
|
|
339
|
+
var tmp6_map = _this__u8e3s4.e28_1;
|
|
340
340
|
// Inline function 'kotlin.collections.mapTo' call
|
|
341
341
|
var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp6_map, 10));
|
|
342
342
|
var tmp0_iterator_3 = tmp6_map.v();
|
|
@@ -349,7 +349,7 @@
|
|
|
349
349
|
}
|
|
350
350
|
var tmp_4 = plus(tmp_3, tmp0_mapTo_0);
|
|
351
351
|
// Inline function 'kotlin.collections.map' call
|
|
352
|
-
var tmp7_map = _this__u8e3s4.
|
|
352
|
+
var tmp7_map = _this__u8e3s4.f28_1;
|
|
353
353
|
// Inline function 'kotlin.collections.mapTo' call
|
|
354
354
|
var tmp0_mapTo_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp7_map, 10));
|
|
355
355
|
var tmp0_iterator_4 = tmp7_map.v();
|
|
@@ -362,7 +362,7 @@
|
|
|
362
362
|
}
|
|
363
363
|
var tmp_5 = plus(tmp_4, tmp0_mapTo_1);
|
|
364
364
|
// Inline function 'kotlin.collections.associate' call
|
|
365
|
-
var tmp8_associate = _this__u8e3s4.
|
|
365
|
+
var tmp8_associate = _this__u8e3s4.i28_1;
|
|
366
366
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(tmp8_associate, 10)), 16);
|
|
367
367
|
// Inline function 'kotlin.collections.associateTo' call
|
|
368
368
|
var tmp0_associateTo = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -371,9 +371,9 @@
|
|
|
371
371
|
var element_2 = tmp0_iterator_5.y();
|
|
372
372
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
373
373
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
374
|
-
var tmp_6 = new StatusCode(_StatusCode___init__impl__t1yi9q(element_2.
|
|
375
|
-
var tmp_7 = '' + _this__u8e3s4.
|
|
376
|
-
var tmp0_safe_receiver_4 = element_2.
|
|
374
|
+
var tmp_6 = new StatusCode(_StatusCode___init__impl__t1yi9q(element_2.u27_1));
|
|
375
|
+
var tmp_7 = '' + _this__u8e3s4.b28_1 + ' ' + element_2.u27_1 + ' response';
|
|
376
|
+
var tmp0_safe_receiver_4 = element_2.w27_1;
|
|
377
377
|
var tmp_8;
|
|
378
378
|
if (tmp0_safe_receiver_4 == null) {
|
|
379
379
|
tmp_8 = null;
|
|
@@ -382,7 +382,7 @@
|
|
|
382
382
|
// Inline function 'kotlin.contracts.contract' call
|
|
383
383
|
var tmp_9;
|
|
384
384
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
385
|
-
var tmp_10 = tmp0_safe_receiver_4.
|
|
385
|
+
var tmp_10 = tmp0_safe_receiver_4.y27_1;
|
|
386
386
|
if (!(tmp_10 instanceof Unit)) {
|
|
387
387
|
tmp_9 = tmp0_safe_receiver_4;
|
|
388
388
|
} else {
|
|
@@ -399,12 +399,12 @@
|
|
|
399
399
|
// Inline function 'kotlin.contracts.contract' call
|
|
400
400
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
401
401
|
var tmp_12;
|
|
402
|
-
switch (tmp1_safe_receiver.
|
|
402
|
+
switch (tmp1_safe_receiver.y27_1.t20()) {
|
|
403
403
|
case false:
|
|
404
|
-
tmp_12 = $this.
|
|
404
|
+
tmp_12 = $this.c27(tmp1_safe_receiver.y27_1);
|
|
405
405
|
break;
|
|
406
406
|
case true:
|
|
407
|
-
tmp_12 = 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(), $this.
|
|
407
|
+
tmp_12 = 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(), $this.c27(tmp1_safe_receiver.y27_1));
|
|
408
408
|
break;
|
|
409
409
|
default:
|
|
410
410
|
noWhenBranchMatchedException();
|
|
@@ -415,19 +415,19 @@
|
|
|
415
415
|
var tmp0_plusAssign = to(tmp_6, new ResponseObject(tmp_7, tmp_11));
|
|
416
416
|
tmp0_associateTo.l2(tmp0_plusAssign.sd_1, tmp0_plusAssign.td_1);
|
|
417
417
|
}
|
|
418
|
-
var operationObject = new OperationObject(VOID, VOID, VOID, VOID, _this__u8e3s4.
|
|
418
|
+
var operationObject = new OperationObject(VOID, VOID, VOID, VOID, _this__u8e3s4.b28_1.d27_1, tmp_0, tmp_2, tmp_5, tmp0_associateTo);
|
|
419
419
|
return operationObject;
|
|
420
420
|
}
|
|
421
421
|
function emitSegment(_this__u8e3s4, $this) {
|
|
422
422
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenApiV2Emitter$emitSegment$lambda);
|
|
423
423
|
}
|
|
424
424
|
function emitParameter(_this__u8e3s4, $this, location) {
|
|
425
|
-
var tmp1_name = _this__u8e3s4.
|
|
426
|
-
var tmp2_type = emitType_0(_this__u8e3s4.
|
|
425
|
+
var tmp1_name = _this__u8e3s4.z26_1.d27_1;
|
|
426
|
+
var tmp2_type = emitType_0(_this__u8e3s4.a27_1, $this);
|
|
427
427
|
var tmp;
|
|
428
|
-
switch (_this__u8e3s4.
|
|
428
|
+
switch (_this__u8e3s4.a27_1.t20()) {
|
|
429
429
|
case true:
|
|
430
|
-
var emit = $this.
|
|
430
|
+
var emit = $this.c27(_this__u8e3s4.a27_1);
|
|
431
431
|
var tmp_0;
|
|
432
432
|
if (emit instanceof ReferenceObject) {
|
|
433
433
|
tmp_0 = emit;
|
|
@@ -449,7 +449,7 @@
|
|
|
449
449
|
break;
|
|
450
450
|
}
|
|
451
451
|
var tmp3_items = tmp;
|
|
452
|
-
var tmp4_required = !_this__u8e3s4.
|
|
452
|
+
var tmp4_required = !_this__u8e3s4.b27_1;
|
|
453
453
|
return new ParameterObject(tmp1_name, location, VOID, tmp4_required, VOID, tmp2_type, tmp3_items);
|
|
454
454
|
}
|
|
455
455
|
function emitType(_this__u8e3s4, $this) {
|
|
@@ -475,12 +475,12 @@
|
|
|
475
475
|
}
|
|
476
476
|
function emitType_0(_this__u8e3s4, $this) {
|
|
477
477
|
var tmp;
|
|
478
|
-
if (_this__u8e3s4.
|
|
478
|
+
if (_this__u8e3s4.t20()) {
|
|
479
479
|
tmp = Type_ARRAY_getInstance();
|
|
480
480
|
} else {
|
|
481
481
|
var tmp_0;
|
|
482
482
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
483
|
-
tmp_0 = emitType(_this__u8e3s4.
|
|
483
|
+
tmp_0 = emitType(_this__u8e3s4.e27_1, $this);
|
|
484
484
|
} else {
|
|
485
485
|
if (_this__u8e3s4 instanceof Custom) {
|
|
486
486
|
tmp_0 = Type_OBJECT_getInstance();
|
|
@@ -503,10 +503,10 @@
|
|
|
503
503
|
function OpenApiV2Emitter$emitSegment$lambda(it) {
|
|
504
504
|
var tmp;
|
|
505
505
|
if (it instanceof Param) {
|
|
506
|
-
tmp = '{' + it.
|
|
506
|
+
tmp = '{' + it.n27_1.d27_1 + '}';
|
|
507
507
|
} else {
|
|
508
508
|
if (it instanceof Literal) {
|
|
509
|
-
tmp = it.
|
|
509
|
+
tmp = it.s27_1;
|
|
510
510
|
} else {
|
|
511
511
|
noWhenBranchMatchedException();
|
|
512
512
|
}
|
|
@@ -537,7 +537,7 @@
|
|
|
537
537
|
while (tmp0_iterator_0.w()) {
|
|
538
538
|
var element_0 = tmp0_iterator_0.y();
|
|
539
539
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
540
|
-
var key = element_0.
|
|
540
|
+
var key = element_0.d28_1;
|
|
541
541
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
542
542
|
var value = tmp0_groupByTo.u2(key);
|
|
543
543
|
var tmp_2;
|
|
@@ -584,8 +584,8 @@
|
|
|
584
584
|
var tmp$ret$12;
|
|
585
585
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
586
586
|
var tmp0_in = ParameterLocation_PATH_getInstance();
|
|
587
|
-
var tmp1_name = item_0.
|
|
588
|
-
var tmp2_type = emitType_0(item_0.
|
|
587
|
+
var tmp1_name = item_0.n27_1.d27_1;
|
|
588
|
+
var tmp2_type = emitType_0(item_0.o27_1, this);
|
|
589
589
|
tmp$ret$12 = new ParameterObject(tmp1_name, tmp0_in, VOID, VOID, VOID, tmp2_type);
|
|
590
590
|
tmp0_mapTo_0.s(tmp$ret$12);
|
|
591
591
|
}
|
|
@@ -621,8 +621,8 @@
|
|
|
621
621
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
622
622
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
623
623
|
var tmp0_type = Type_STRING_getInstance();
|
|
624
|
-
var tmp1_pattern = element_3.
|
|
625
|
-
var tmp0_plusAssign = to(element_3.
|
|
624
|
+
var tmp1_pattern = element_3.k27_1.m27_1;
|
|
625
|
+
var tmp0_plusAssign = to(element_3.j27_1.d27_1, 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));
|
|
626
626
|
tmp0_associateTo.l2(tmp0_plusAssign.sd_1, tmp0_plusAssign.td_1);
|
|
627
627
|
}
|
|
628
628
|
var tmp_5 = tmp0_associateTo;
|
|
@@ -646,7 +646,7 @@
|
|
|
646
646
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
647
647
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
648
648
|
// Inline function 'kotlin.collections.associate' call
|
|
649
|
-
var tmp0_associate = element_5.
|
|
649
|
+
var tmp0_associate = element_5.w26_1.y26_1;
|
|
650
650
|
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(tmp0_associate, 10)), 16);
|
|
651
651
|
// Inline function 'kotlin.collections.associateTo' call
|
|
652
652
|
var tmp0_associateTo_1 = LinkedHashMap_init_$Create$(capacity_1);
|
|
@@ -655,20 +655,20 @@
|
|
|
655
655
|
var element_6 = tmp0_iterator_8.y();
|
|
656
656
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
657
657
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
658
|
-
var tmp0_plusAssign_0 = this.
|
|
658
|
+
var tmp0_plusAssign_0 = this.q26(element_6);
|
|
659
659
|
tmp0_associateTo_1.l2(tmp0_plusAssign_0.sd_1, tmp0_plusAssign_0.td_1);
|
|
660
660
|
}
|
|
661
661
|
// Inline function 'kotlin.takeIf' call
|
|
662
662
|
// Inline function 'kotlin.collections.map' call
|
|
663
663
|
// Inline function 'kotlin.collections.filter' call
|
|
664
|
-
var tmp1_filter = element_5.
|
|
664
|
+
var tmp1_filter = element_5.w26_1.y26_1;
|
|
665
665
|
// Inline function 'kotlin.collections.filterTo' call
|
|
666
666
|
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
667
667
|
var tmp0_iterator_9 = tmp1_filter.v();
|
|
668
668
|
while (tmp0_iterator_9.w()) {
|
|
669
669
|
var element_7 = tmp0_iterator_9.y();
|
|
670
670
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
671
|
-
if (!element_7.
|
|
671
|
+
if (!element_7.b27_1) {
|
|
672
672
|
tmp0_filterTo.s(element_7);
|
|
673
673
|
}
|
|
674
674
|
}
|
|
@@ -679,7 +679,7 @@
|
|
|
679
679
|
var item_1 = tmp0_iterator_10.y();
|
|
680
680
|
var tmp$ret$31;
|
|
681
681
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
682
|
-
tmp$ret$31 = item_1.
|
|
682
|
+
tmp$ret$31 = item_1.z26_1.d27_1;
|
|
683
683
|
tmp0_mapTo_1.s(tmp$ret$31);
|
|
684
684
|
}
|
|
685
685
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -692,7 +692,7 @@
|
|
|
692
692
|
tmp_6 = null;
|
|
693
693
|
}
|
|
694
694
|
var tmp1_required = tmp_6;
|
|
695
|
-
var tmp0_plusAssign_1 = to(element_5.
|
|
695
|
+
var tmp0_plusAssign_1 = to(element_5.v26_1.d27_1, new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_required, VOID, VOID, VOID, VOID, tmp0_associateTo_1));
|
|
696
696
|
tmp0_associateTo_0.l2(tmp0_plusAssign_1.sd_1, tmp0_plusAssign_1.td_1);
|
|
697
697
|
}
|
|
698
698
|
var tmp_7 = plus_0(tmp_5, tmp0_associateTo_0);
|
|
@@ -717,7 +717,7 @@
|
|
|
717
717
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
718
718
|
var tmp0_type_0 = Type_STRING_getInstance();
|
|
719
719
|
// Inline function 'kotlin.collections.map' call
|
|
720
|
-
var tmp0_map = element_9.
|
|
720
|
+
var tmp0_map = element_9.t26_1;
|
|
721
721
|
// Inline function 'kotlin.collections.mapTo' call
|
|
722
722
|
var tmp0_mapTo_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
723
723
|
var tmp0_iterator_13 = tmp0_map.v();
|
|
@@ -728,21 +728,21 @@
|
|
|
728
728
|
tmp$ret$42 = JsonPrimitive(item_2);
|
|
729
729
|
tmp0_mapTo_2.s(tmp$ret$42);
|
|
730
730
|
}
|
|
731
|
-
var tmp0_plusAssign_2 = to(element_9.
|
|
731
|
+
var tmp0_plusAssign_2 = to(element_9.s26_1.d27_1, 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, tmp0_mapTo_2, tmp0_type_0));
|
|
732
732
|
tmp0_associateTo_2.l2(tmp0_plusAssign_2.sd_1, tmp0_plusAssign_2.td_1);
|
|
733
733
|
}
|
|
734
734
|
return new SwaggerObject('2.0', tmp, VOID, VOID, VOID, tmp_0, tmp_1, tmp_4, plus_0(tmp_7, tmp0_associateTo_2));
|
|
735
735
|
};
|
|
736
|
-
protoOf(OpenApiV2Emitter).
|
|
737
|
-
return to(_this__u8e3s4.
|
|
736
|
+
protoOf(OpenApiV2Emitter).q26 = function (_this__u8e3s4) {
|
|
737
|
+
return to(_this__u8e3s4.z26_1.d27_1, this.c27(_this__u8e3s4.a27_1));
|
|
738
738
|
};
|
|
739
|
-
protoOf(OpenApiV2Emitter).
|
|
739
|
+
protoOf(OpenApiV2Emitter).c27 = function (_this__u8e3s4) {
|
|
740
740
|
var tmp;
|
|
741
741
|
if (_this__u8e3s4 instanceof Custom) {
|
|
742
742
|
tmp = new ReferenceObject(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.p2()));
|
|
743
743
|
} else {
|
|
744
744
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
745
|
-
tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType(_this__u8e3s4.
|
|
745
|
+
tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType(_this__u8e3s4.e27_1, this));
|
|
746
746
|
} else {
|
|
747
747
|
if (_this__u8e3s4 instanceof Any) {
|
|
748
748
|
throw IllegalStateException_init_$Create$('Cannot map Any');
|
|
@@ -757,7 +757,7 @@
|
|
|
757
757
|
}
|
|
758
758
|
var ref = tmp;
|
|
759
759
|
var tmp_0;
|
|
760
|
-
if (_this__u8e3s4.
|
|
760
|
+
if (_this__u8e3s4.t20()) {
|
|
761
761
|
tmp_0 = 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(), ref);
|
|
762
762
|
} else {
|
|
763
763
|
tmp_0 = ref;
|
|
@@ -774,16 +774,16 @@
|
|
|
774
774
|
function Companion() {
|
|
775
775
|
Companion_instance = this;
|
|
776
776
|
}
|
|
777
|
-
protoOf(Companion).
|
|
777
|
+
protoOf(Companion).r2b = function (json, ignoreUnknown) {
|
|
778
778
|
// Inline function 'kotlin.let' call
|
|
779
779
|
var tmp0_let = (new OpenAPI(Json(VOID, OpenApiV2Parser$Companion$parse$lambda(ignoreUnknown)))).x1c(json);
|
|
780
780
|
// Inline function 'kotlin.contracts.contract' call
|
|
781
781
|
// Inline function 'community.flock.wirespec.openapi.v2.Companion.parse.<anonymous>' call
|
|
782
|
-
return (new OpenApiV2Parser(tmp0_let)).
|
|
782
|
+
return (new OpenApiV2Parser(tmp0_let)).t2b();
|
|
783
783
|
};
|
|
784
|
-
protoOf(Companion).
|
|
784
|
+
protoOf(Companion).u2b = function (json, ignoreUnknown, $super) {
|
|
785
785
|
ignoreUnknown = ignoreUnknown === VOID ? false : ignoreUnknown;
|
|
786
|
-
return $super === VOID ? this.
|
|
786
|
+
return $super === VOID ? this.r2b(json, ignoreUnknown) : $super.r2b.call(this, json, ignoreUnknown);
|
|
787
787
|
};
|
|
788
788
|
var Companion_instance;
|
|
789
789
|
function Companion_getInstance_1() {
|
|
@@ -793,7 +793,7 @@
|
|
|
793
793
|
}
|
|
794
794
|
function parseEndpoints($this) {
|
|
795
795
|
// Inline function 'kotlin.collections.flatMap' call
|
|
796
|
-
var tmp0_flatMap = $this.
|
|
796
|
+
var tmp0_flatMap = $this.s2b_1.i1d_1;
|
|
797
797
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
798
798
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
799
799
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -890,7 +890,7 @@
|
|
|
890
890
|
// Inline function 'kotlin.collections.map' call
|
|
891
891
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
892
892
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
893
|
-
var tmp0_elvis_lhs_0 = $this.
|
|
893
|
+
var tmp0_elvis_lhs_0 = $this.s2b_1.g1d_1;
|
|
894
894
|
var tmp = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
895
895
|
var tmp$ret$22;
|
|
896
896
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -918,7 +918,7 @@
|
|
|
918
918
|
tmp_1 = toReference(schema, $this);
|
|
919
919
|
} else {
|
|
920
920
|
if (schema instanceof SchemaObject) {
|
|
921
|
-
tmp_1 = toReference_0(schema, $this, Common_getInstance().
|
|
921
|
+
tmp_1 = toReference_0(schema, $this, Common_getInstance().q2b([name, 'RequestBody']));
|
|
922
922
|
} else {
|
|
923
923
|
if (schema == null) {
|
|
924
924
|
throw new NotImplementedError('An operation is not implemented: Not yet implemented');
|
|
@@ -962,7 +962,7 @@
|
|
|
962
962
|
// Inline function 'kotlin.collections.map' call
|
|
963
963
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
964
964
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
965
|
-
var tmp0_elvis_lhs_4 = $this.
|
|
965
|
+
var tmp0_elvis_lhs_4 = $this.s2b_1.h1d_1;
|
|
966
966
|
var tmp_4 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
967
967
|
var tmp$ret$38;
|
|
968
968
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -999,7 +999,7 @@
|
|
|
999
999
|
tmp_9 = toReference(tmp0_safe_receiver, $this);
|
|
1000
1000
|
} else {
|
|
1001
1001
|
if (tmp0_safe_receiver instanceof SchemaObject) {
|
|
1002
|
-
tmp_9 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().
|
|
1002
|
+
tmp_9 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().q2b([name, _StatusCode___get_value__impl__we50mu(status), item_2, 'ResponseBody']));
|
|
1003
1003
|
} else {
|
|
1004
1004
|
noWhenBranchMatchedException();
|
|
1005
1005
|
}
|
|
@@ -1018,13 +1018,13 @@
|
|
|
1018
1018
|
while (tmp0_iterator_10.w()) {
|
|
1019
1019
|
var e = tmp0_iterator_10.y();
|
|
1020
1020
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
1021
|
-
var key = to(e.
|
|
1021
|
+
var key = to(e.u27_1, e.w27_1);
|
|
1022
1022
|
if (set.s(key)) {
|
|
1023
1023
|
list_1.s(e);
|
|
1024
1024
|
}
|
|
1025
1025
|
}
|
|
1026
1026
|
var responses = list_1;
|
|
1027
|
-
var list_2 = listOf(new Endpoint(null, Companion_getInstance_0().
|
|
1027
|
+
var list_2 = listOf(new Endpoint(null, Companion_getInstance_0().j28(name), method, segments, query, headers, emptyList(), requests, responses));
|
|
1028
1028
|
addAll(tmp0_flatMapTo_0, list_2);
|
|
1029
1029
|
}
|
|
1030
1030
|
var list_3 = tmp0_flatMapTo_0;
|
|
@@ -1033,20 +1033,20 @@
|
|
|
1033
1033
|
return tmp0_flatMapTo;
|
|
1034
1034
|
}
|
|
1035
1035
|
function parseParameters($this) {
|
|
1036
|
-
return flatMapRequests($this.
|
|
1036
|
+
return flatMapRequests($this.s2b_1, $this, OpenApiV2Parser$parseParameters$lambda($this));
|
|
1037
1037
|
}
|
|
1038
1038
|
function parseRequestBody($this) {
|
|
1039
|
-
return flatMapRequests($this.
|
|
1039
|
+
return flatMapRequests($this.s2b_1, $this, OpenApiV2Parser$parseRequestBody$lambda($this));
|
|
1040
1040
|
}
|
|
1041
1041
|
function parseResponseBody($this) {
|
|
1042
|
-
return flatMapResponses($this.
|
|
1042
|
+
return flatMapResponses($this.s2b_1, $this, OpenApiV2Parser$parseResponseBody$lambda($this));
|
|
1043
1043
|
}
|
|
1044
1044
|
function parseDefinitions($this) {
|
|
1045
1045
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1046
1046
|
// Inline function 'kotlin.collections.filter' call
|
|
1047
1047
|
// Inline function 'arrow.core.filterIsInstance' call
|
|
1048
1048
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1049
|
-
var tmp0_elvis_lhs = $this.
|
|
1049
|
+
var tmp0_elvis_lhs = $this.s2b_1.j1d_1;
|
|
1050
1050
|
var tmp1_filterIsInstance = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1051
1051
|
// Inline function 'kotlin.collections.filterValues' call
|
|
1052
1052
|
var result = LinkedHashMap_init_$Create$_0();
|
|
@@ -1079,7 +1079,7 @@
|
|
|
1079
1079
|
while (tmp0_iterator_1.w()) {
|
|
1080
1080
|
var element_0 = tmp0_iterator_1.y();
|
|
1081
1081
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseDefinitions.<anonymous>' call
|
|
1082
|
-
var list = flatten(element_0.p2(), $this, Common_getInstance().
|
|
1082
|
+
var list = flatten(element_0.p2(), $this, Common_getInstance().q2b([element_0.o2()]));
|
|
1083
1083
|
addAll(tmp0_flatMapTo, list);
|
|
1084
1084
|
}
|
|
1085
1085
|
return tmp0_flatMapTo;
|
|
@@ -1139,7 +1139,7 @@
|
|
|
1139
1139
|
return tmp0_mapTo;
|
|
1140
1140
|
}
|
|
1141
1141
|
function resolveParameterObject(_this__u8e3s4, $this) {
|
|
1142
|
-
var tmp0_safe_receiver = $this.
|
|
1142
|
+
var tmp0_safe_receiver = $this.s2b_1.k1d_1;
|
|
1143
1143
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u2(getReference(_this__u8e3s4, $this));
|
|
1144
1144
|
var tmp;
|
|
1145
1145
|
if (tmp1_elvis_lhs == null) {
|
|
@@ -1151,7 +1151,7 @@
|
|
|
1151
1151
|
return tmp;
|
|
1152
1152
|
}
|
|
1153
1153
|
function resolveResponseObject(_this__u8e3s4, $this) {
|
|
1154
|
-
var tmp0_safe_receiver = $this.
|
|
1154
|
+
var tmp0_safe_receiver = $this.s2b_1.l1d_1;
|
|
1155
1155
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u2(getReference(_this__u8e3s4, $this));
|
|
1156
1156
|
var tmp;
|
|
1157
1157
|
if (tmp1_elvis_lhs == null) {
|
|
@@ -1163,7 +1163,7 @@
|
|
|
1163
1163
|
return tmp;
|
|
1164
1164
|
}
|
|
1165
1165
|
function resolveSchemaObject(_this__u8e3s4, $this) {
|
|
1166
|
-
var tmp0_safe_receiver = $this.
|
|
1166
|
+
var tmp0_safe_receiver = $this.s2b_1.j1d_1;
|
|
1167
1167
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u2(getReference(_this__u8e3s4, $this));
|
|
1168
1168
|
var tmp;
|
|
1169
1169
|
if (tmp1_elvis_lhs == null) {
|
|
@@ -1260,7 +1260,7 @@
|
|
|
1260
1260
|
}
|
|
1261
1261
|
tmp = tmp_0;
|
|
1262
1262
|
} else if (!(_this__u8e3s4.v1j_1 == null)) {
|
|
1263
|
-
var tmp_3 = Companion_getInstance_0().
|
|
1263
|
+
var tmp_3 = Companion_getInstance_0().j28(name);
|
|
1264
1264
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
1265
1265
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1266
1266
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -1291,7 +1291,7 @@
|
|
|
1291
1291
|
while (tmp0_iterator_0.w()) {
|
|
1292
1292
|
var e = tmp0_iterator_0.y();
|
|
1293
1293
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
|
|
1294
|
-
var key = e.
|
|
1294
|
+
var key = e.z26_1;
|
|
1295
1295
|
if (set.s(key)) {
|
|
1296
1296
|
list_0.s(e);
|
|
1297
1297
|
}
|
|
@@ -1330,7 +1330,7 @@
|
|
|
1330
1330
|
tmp_7 = emptyList();
|
|
1331
1331
|
} else {
|
|
1332
1332
|
if (value instanceof SchemaObject) {
|
|
1333
|
-
tmp_7 = flatten(value, $this, Common_getInstance().
|
|
1333
|
+
tmp_7 = flatten(value, $this, Common_getInstance().q2b([name, key_0]));
|
|
1334
1334
|
} else {
|
|
1335
1335
|
noWhenBranchMatchedException();
|
|
1336
1336
|
}
|
|
@@ -1364,7 +1364,7 @@
|
|
|
1364
1364
|
var tmp5_let = toSet(tmp0_mapTo);
|
|
1365
1365
|
// Inline function 'kotlin.contracts.contract' call
|
|
1366
1366
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
|
|
1367
|
-
tmp = listOf(new Enum(null, Companion_getInstance_0().
|
|
1367
|
+
tmp = listOf(new Enum(null, Companion_getInstance_0().j28(name), tmp5_let));
|
|
1368
1368
|
} else {
|
|
1369
1369
|
var tmp5_subject = _this__u8e3s4.t1j_1;
|
|
1370
1370
|
var tmp_8;
|
|
@@ -1390,12 +1390,12 @@
|
|
|
1390
1390
|
var key_1 = element_2.o2();
|
|
1391
1391
|
// Inline function 'kotlin.collections.component2' call
|
|
1392
1392
|
var value_0 = element_2.p2();
|
|
1393
|
-
var list_3 = flatten_0(value_0, $this, Common_getInstance().
|
|
1393
|
+
var list_3 = flatten_0(value_0, $this, Common_getInstance().q2b([name, key_1]));
|
|
1394
1394
|
addAll(tmp0_flatMapTo_2, list_3);
|
|
1395
1395
|
}
|
|
1396
1396
|
|
|
1397
1397
|
var fields = tmp0_flatMapTo_2;
|
|
1398
|
-
var schema = listOf(new Type(null, Companion_getInstance_0().
|
|
1398
|
+
var schema = listOf(new Type(null, Companion_getInstance_0().j28(name), new Shape(toField(_this__u8e3s4, $this, name))));
|
|
1399
1399
|
tmp_8 = plus(schema, fields);
|
|
1400
1400
|
break;
|
|
1401
1401
|
case 4:
|
|
@@ -1405,7 +1405,7 @@
|
|
|
1405
1405
|
tmp_9 = emptyList();
|
|
1406
1406
|
} else {
|
|
1407
1407
|
if (it instanceof SchemaObject) {
|
|
1408
|
-
tmp_9 = flatten(it, $this, Common_getInstance().
|
|
1408
|
+
tmp_9 = flatten(it, $this, Common_getInstance().q2b([name, 'Array']));
|
|
1409
1409
|
} else {
|
|
1410
1410
|
if (it == null) {
|
|
1411
1411
|
tmp_9 = emptyList();
|
|
@@ -1463,7 +1463,7 @@
|
|
|
1463
1463
|
}
|
|
1464
1464
|
tmp = tmp_0;
|
|
1465
1465
|
} else if (!(schema.s1j_1 == null)) {
|
|
1466
|
-
tmp = new Custom(Common_getInstance().
|
|
1466
|
+
tmp = new Custom(Common_getInstance().q2b([getReference(_this__u8e3s4, $this)]), false, false);
|
|
1467
1467
|
} else if (isPrimitive(schema.t1j_1)) {
|
|
1468
1468
|
tmp = new Primitive(toPrimitive(ensureNotNull(schema.t1j_1), $this), false, false);
|
|
1469
1469
|
} else {
|
|
@@ -1473,10 +1473,10 @@
|
|
|
1473
1473
|
var items = schema.u1j_1;
|
|
1474
1474
|
var tmp_2;
|
|
1475
1475
|
if (items instanceof ReferenceObject) {
|
|
1476
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
1476
|
+
tmp_2 = new Custom(Common_getInstance().q2b([getReference(items, $this)]), true);
|
|
1477
1477
|
} else {
|
|
1478
1478
|
if (items instanceof SchemaObject) {
|
|
1479
|
-
tmp_2 = toIterable(toReference_0(items, $this, Common_getInstance().
|
|
1479
|
+
tmp_2 = toIterable(toReference_0(items, $this, Common_getInstance().q2b([getReference(_this__u8e3s4, $this), 'Array'])));
|
|
1480
1480
|
} else {
|
|
1481
1481
|
if (items == null) {
|
|
1482
1482
|
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.c1k_1);
|
|
@@ -1490,10 +1490,10 @@
|
|
|
1490
1490
|
} else {
|
|
1491
1491
|
var tmp_3;
|
|
1492
1492
|
if (tmp0_let instanceof SchemaObject) {
|
|
1493
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
1493
|
+
tmp_3 = new Custom(Common_getInstance().q2b([getReference(_this__u8e3s4, $this)]), false);
|
|
1494
1494
|
} else {
|
|
1495
1495
|
if (tmp0_let instanceof ReferenceObject) {
|
|
1496
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
1496
|
+
tmp_3 = new Custom(Common_getInstance().q2b([getReference(tmp0_let, $this)]), false);
|
|
1497
1497
|
} else {
|
|
1498
1498
|
noWhenBranchMatchedException();
|
|
1499
1499
|
}
|
|
@@ -1684,14 +1684,14 @@
|
|
|
1684
1684
|
var value = item.p2();
|
|
1685
1685
|
var tmp;
|
|
1686
1686
|
if (value instanceof SchemaObject) {
|
|
1687
|
-
var tmp_0 = Companion_getInstance_0().
|
|
1688
|
-
var tmp_1 = !(value.s1j_1 == null) ? toReference_0(value, $this, Common_getInstance().
|
|
1687
|
+
var tmp_0 = Companion_getInstance_0().j28(key);
|
|
1688
|
+
var tmp_1 = !(value.s1j_1 == null) ? toReference_0(value, $this, Common_getInstance().q2b([name, key])) : equals(value.t1j_1, Type_ARRAY_getInstance()) ? toReference_0(value, $this, Common_getInstance().q2b([name, key, 'Array'])) : toReference_0(value, $this, Common_getInstance().q2b([name, key]));
|
|
1689
1689
|
var tmp1_safe_receiver = _this__u8e3s4.r1j_1;
|
|
1690
1690
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r(key);
|
|
1691
1691
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
1692
1692
|
} else {
|
|
1693
1693
|
if (value instanceof ReferenceObject) {
|
|
1694
|
-
var tmp_2 = Companion_getInstance_0().
|
|
1694
|
+
var tmp_2 = Companion_getInstance_0().j28(key);
|
|
1695
1695
|
var tmp_3 = toReference(value, $this);
|
|
1696
1696
|
var tmp3_safe_receiver = _this__u8e3s4.r1j_1;
|
|
1697
1697
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.r(key);
|
|
@@ -1713,7 +1713,7 @@
|
|
|
1713
1713
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>' call
|
|
1714
1714
|
var tmp;
|
|
1715
1715
|
if (!(_this__u8e3s4.u1f_1 == null)) {
|
|
1716
|
-
tmp = new Custom(Common_getInstance().
|
|
1716
|
+
tmp = new Custom(Common_getInstance().q2b([name, 'Parameter', tmp0_let.z1e_1]), false);
|
|
1717
1717
|
} else {
|
|
1718
1718
|
var type = tmp0_let.e1f_1;
|
|
1719
1719
|
var tmp_0;
|
|
@@ -1771,7 +1771,7 @@
|
|
|
1771
1771
|
var tmp1_let = tmp;
|
|
1772
1772
|
// Inline function 'kotlin.contracts.contract' call
|
|
1773
1773
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>' call
|
|
1774
|
-
var tmp_3 = Companion_getInstance_0().
|
|
1774
|
+
var tmp_3 = Companion_getInstance_0().j28(_this__u8e3s4.z1e_1);
|
|
1775
1775
|
var tmp0_elvis_lhs = _this__u8e3s4.c1f_1;
|
|
1776
1776
|
return new Field(tmp_3, tmp1_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
1777
1777
|
}
|
|
@@ -1839,7 +1839,7 @@
|
|
|
1839
1839
|
// Inline function 'kotlin.let' call
|
|
1840
1840
|
// Inline function 'kotlin.contracts.contract' call
|
|
1841
1841
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toSegments.<anonymous>.<anonymous>' call
|
|
1842
|
-
tmp_3 = new Param(Companion_getInstance_0().
|
|
1842
|
+
tmp_3 = new Param(Companion_getInstance_0().j28(param), new Primitive(tmp1_safe_receiver, false));
|
|
1843
1843
|
}
|
|
1844
1844
|
var tmp2_elvis_lhs = tmp_3;
|
|
1845
1845
|
var tmp_4;
|
|
@@ -1870,7 +1870,7 @@
|
|
|
1870
1870
|
// Inline function 'kotlin.let' call
|
|
1871
1871
|
// Inline function 'kotlin.contracts.contract' call
|
|
1872
1872
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toName.<anonymous>' call
|
|
1873
|
-
tmp = Common_getInstance().
|
|
1873
|
+
tmp = Common_getInstance().q2b([tmp0_safe_receiver]);
|
|
1874
1874
|
}
|
|
1875
1875
|
return tmp;
|
|
1876
1876
|
}
|
|
@@ -1892,21 +1892,21 @@
|
|
|
1892
1892
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenApiV2Parser$toName$lambda($this));
|
|
1893
1893
|
}
|
|
1894
1894
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
1895
|
-
this.
|
|
1896
|
-
this.
|
|
1897
|
-
this.
|
|
1898
|
-
this.
|
|
1899
|
-
this.
|
|
1895
|
+
this.v2b_1 = path;
|
|
1896
|
+
this.w2b_1 = pathItem;
|
|
1897
|
+
this.x2b_1 = method;
|
|
1898
|
+
this.y2b_1 = operation;
|
|
1899
|
+
this.z2b_1 = type;
|
|
1900
1900
|
}
|
|
1901
1901
|
protoOf(FlattenRequest).toString = function () {
|
|
1902
|
-
return 'FlattenRequest(path=' + new Path(this.
|
|
1902
|
+
return 'FlattenRequest(path=' + new Path(this.v2b_1) + ', pathItem=' + this.w2b_1 + ', method=' + this.x2b_1 + ', operation=' + this.y2b_1 + ', type=' + this.z2b_1 + ')';
|
|
1903
1903
|
};
|
|
1904
1904
|
protoOf(FlattenRequest).hashCode = function () {
|
|
1905
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1906
|
-
result = imul(result, 31) + this.
|
|
1907
|
-
result = imul(result, 31) + this.
|
|
1908
|
-
result = imul(result, 31) + this.
|
|
1909
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1905
|
+
var result = Path__hashCode_impl_go73kd(this.v2b_1);
|
|
1906
|
+
result = imul(result, 31) + this.w2b_1.hashCode() | 0;
|
|
1907
|
+
result = imul(result, 31) + this.x2b_1.hashCode() | 0;
|
|
1908
|
+
result = imul(result, 31) + this.y2b_1.hashCode() | 0;
|
|
1909
|
+
result = imul(result, 31) + getStringHashCode(this.z2b_1) | 0;
|
|
1910
1910
|
return result;
|
|
1911
1911
|
};
|
|
1912
1912
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -1915,15 +1915,15 @@
|
|
|
1915
1915
|
if (!(other instanceof FlattenRequest))
|
|
1916
1916
|
return false;
|
|
1917
1917
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
1918
|
-
if (!(this.
|
|
1918
|
+
if (!(this.v2b_1 === tmp0_other_with_cast.v2b_1))
|
|
1919
1919
|
return false;
|
|
1920
|
-
if (!this.
|
|
1920
|
+
if (!this.w2b_1.equals(tmp0_other_with_cast.w2b_1))
|
|
1921
1921
|
return false;
|
|
1922
|
-
if (!this.
|
|
1922
|
+
if (!this.x2b_1.equals(tmp0_other_with_cast.x2b_1))
|
|
1923
1923
|
return false;
|
|
1924
|
-
if (!this.
|
|
1924
|
+
if (!this.y2b_1.equals(tmp0_other_with_cast.y2b_1))
|
|
1925
1925
|
return false;
|
|
1926
|
-
if (!(this.
|
|
1926
|
+
if (!(this.z2b_1 === tmp0_other_with_cast.z2b_1))
|
|
1927
1927
|
return false;
|
|
1928
1928
|
return true;
|
|
1929
1929
|
};
|
|
@@ -1956,7 +1956,7 @@
|
|
|
1956
1956
|
// Inline function 'kotlin.collections.component2' call
|
|
1957
1957
|
var operation = element_0.p2();
|
|
1958
1958
|
// Inline function 'kotlin.collections.map' call
|
|
1959
|
-
var tmp0_elvis_lhs = $this.
|
|
1959
|
+
var tmp0_elvis_lhs = $this.s2b_1.g1d_1;
|
|
1960
1960
|
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? operation.u1h_1 : tmp0_elvis_lhs;
|
|
1961
1961
|
var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
1962
1962
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1987,25 +1987,25 @@
|
|
|
1987
1987
|
return tmp0_flatMapTo_1;
|
|
1988
1988
|
}
|
|
1989
1989
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
1990
|
-
this.
|
|
1991
|
-
this.
|
|
1992
|
-
this.
|
|
1993
|
-
this.
|
|
1994
|
-
this.
|
|
1995
|
-
this.
|
|
1996
|
-
this.
|
|
1990
|
+
this.a2c_1 = path;
|
|
1991
|
+
this.b2c_1 = pathItem;
|
|
1992
|
+
this.c2c_1 = method;
|
|
1993
|
+
this.d2c_1 = operation;
|
|
1994
|
+
this.e2c_1 = statusCode;
|
|
1995
|
+
this.f2c_1 = response;
|
|
1996
|
+
this.g2c_1 = type;
|
|
1997
1997
|
}
|
|
1998
1998
|
protoOf(FlattenResponse).toString = function () {
|
|
1999
|
-
return 'FlattenResponse(path=' + new Path(this.
|
|
1999
|
+
return 'FlattenResponse(path=' + new Path(this.a2c_1) + ', pathItem=' + this.b2c_1 + ', method=' + this.c2c_1 + ', operation=' + this.d2c_1 + ', statusCode=' + new StatusCode(this.e2c_1) + ', response=' + this.f2c_1 + ', type=' + this.g2c_1 + ')';
|
|
2000
2000
|
};
|
|
2001
2001
|
protoOf(FlattenResponse).hashCode = function () {
|
|
2002
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2003
|
-
result = imul(result, 31) + this.
|
|
2004
|
-
result = imul(result, 31) + this.
|
|
2005
|
-
result = imul(result, 31) + this.
|
|
2006
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
2007
|
-
result = imul(result, 31) + hashCode(this.
|
|
2008
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2002
|
+
var result = Path__hashCode_impl_go73kd(this.a2c_1);
|
|
2003
|
+
result = imul(result, 31) + this.b2c_1.hashCode() | 0;
|
|
2004
|
+
result = imul(result, 31) + this.c2c_1.hashCode() | 0;
|
|
2005
|
+
result = imul(result, 31) + this.d2c_1.hashCode() | 0;
|
|
2006
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.e2c_1) | 0;
|
|
2007
|
+
result = imul(result, 31) + hashCode(this.f2c_1) | 0;
|
|
2008
|
+
result = imul(result, 31) + getStringHashCode(this.g2c_1) | 0;
|
|
2009
2009
|
return result;
|
|
2010
2010
|
};
|
|
2011
2011
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -2014,19 +2014,19 @@
|
|
|
2014
2014
|
if (!(other instanceof FlattenResponse))
|
|
2015
2015
|
return false;
|
|
2016
2016
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
2017
|
-
if (!(this.
|
|
2017
|
+
if (!(this.a2c_1 === tmp0_other_with_cast.a2c_1))
|
|
2018
2018
|
return false;
|
|
2019
|
-
if (!this.
|
|
2019
|
+
if (!this.b2c_1.equals(tmp0_other_with_cast.b2c_1))
|
|
2020
2020
|
return false;
|
|
2021
|
-
if (!this.
|
|
2021
|
+
if (!this.c2c_1.equals(tmp0_other_with_cast.c2c_1))
|
|
2022
2022
|
return false;
|
|
2023
|
-
if (!this.
|
|
2023
|
+
if (!this.d2c_1.equals(tmp0_other_with_cast.d2c_1))
|
|
2024
2024
|
return false;
|
|
2025
|
-
if (!(this.
|
|
2025
|
+
if (!(this.e2c_1 === tmp0_other_with_cast.e2c_1))
|
|
2026
2026
|
return false;
|
|
2027
|
-
if (!equals(this.
|
|
2027
|
+
if (!equals(this.f2c_1, tmp0_other_with_cast.f2c_1))
|
|
2028
2028
|
return false;
|
|
2029
|
-
if (!(this.
|
|
2029
|
+
if (!(this.g2c_1 === tmp0_other_with_cast.g2c_1))
|
|
2030
2030
|
return false;
|
|
2031
2031
|
return true;
|
|
2032
2032
|
};
|
|
@@ -2109,9 +2109,9 @@
|
|
|
2109
2109
|
}
|
|
2110
2110
|
function OpenApiV2Parser$parseParameters$lambda(this$0) {
|
|
2111
2111
|
return function (req) {
|
|
2112
|
-
var parameters = plus(resolveParameters_0(req.
|
|
2113
|
-
var tmp0_elvis_lhs = toName(req.
|
|
2114
|
-
var name = tmp0_elvis_lhs == null ? toName_0(req.
|
|
2112
|
+
var parameters = plus(resolveParameters_0(req.w2b_1, this$0), resolveParameters(req.y2b_1, this$0));
|
|
2113
|
+
var tmp0_elvis_lhs = toName(req.y2b_1, this$0);
|
|
2114
|
+
var name = tmp0_elvis_lhs == null ? toName_0(req.v2b_1, this$0) + req.x2b_1.c9_1 : tmp0_elvis_lhs;
|
|
2115
2115
|
var tmp$ret$5;
|
|
2116
2116
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2117
2117
|
var tmp$ret$2;
|
|
@@ -2141,7 +2141,7 @@
|
|
|
2141
2141
|
var tmp$ret$3;
|
|
2142
2142
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseParameters.<anonymous>.<anonymous>' call
|
|
2143
2143
|
var tmp0_safe_receiver = element_0.d1f_1;
|
|
2144
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_0(tmp0_safe_receiver, this$0, Common_getInstance().
|
|
2144
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_0(tmp0_safe_receiver, this$0, Common_getInstance().q2b([name, 'Parameter', element_0.z1e_1]));
|
|
2145
2145
|
tmp$ret$3 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2146
2146
|
var list = tmp$ret$3;
|
|
2147
2147
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -2153,9 +2153,9 @@
|
|
|
2153
2153
|
}
|
|
2154
2154
|
function OpenApiV2Parser$parseRequestBody$lambda(this$0) {
|
|
2155
2155
|
return function (req) {
|
|
2156
|
-
var parameters = plus(resolveParameters_0(req.
|
|
2157
|
-
var tmp0_elvis_lhs = toName(req.
|
|
2158
|
-
var name = tmp0_elvis_lhs == null ? toName_0(req.
|
|
2156
|
+
var parameters = plus(resolveParameters_0(req.w2b_1, this$0), resolveParameters(req.y2b_1, this$0));
|
|
2157
|
+
var tmp0_elvis_lhs = toName(req.y2b_1, this$0);
|
|
2158
|
+
var name = tmp0_elvis_lhs == null ? toName_0(req.v2b_1, this$0) + req.x2b_1.c9_1 : tmp0_elvis_lhs;
|
|
2159
2159
|
var tmp$ret$5;
|
|
2160
2160
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2161
2161
|
var tmp$ret$4;
|
|
@@ -2168,7 +2168,7 @@
|
|
|
2168
2168
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
2169
2169
|
var tmp;
|
|
2170
2170
|
if (!(element.u1f_1 == null)) {
|
|
2171
|
-
var tmp_0 = Companion_getInstance_0().
|
|
2171
|
+
var tmp_0 = Companion_getInstance_0().j28(Common_getInstance().q2b([name, 'Parameter', element.z1e_1]));
|
|
2172
2172
|
var tmp$ret$2;
|
|
2173
2173
|
// Inline function 'kotlin.collections.map' call
|
|
2174
2174
|
var tmp0_map = ensureNotNull(element.u1f_1);
|
|
@@ -2196,7 +2196,7 @@
|
|
|
2196
2196
|
tmp$ret$4 = tmp0_flatMapTo;
|
|
2197
2197
|
tmp$ret$5 = tmp$ret$4;
|
|
2198
2198
|
var enums = tmp$ret$5;
|
|
2199
|
-
var tmp1_safe_receiver = req.
|
|
2199
|
+
var tmp1_safe_receiver = req.y2b_1.w1h_1;
|
|
2200
2200
|
var tmp_1;
|
|
2201
2201
|
if (tmp1_safe_receiver == null) {
|
|
2202
2202
|
tmp_1 = null;
|
|
@@ -2266,13 +2266,13 @@
|
|
|
2266
2266
|
switch (tmp0) {
|
|
2267
2267
|
case -1:
|
|
2268
2268
|
case 5:
|
|
2269
|
-
tmp_5 = flatten(schema, this$0, Common_getInstance().
|
|
2269
|
+
tmp_5 = flatten(schema, this$0, Common_getInstance().q2b([name, 'RequestBody']));
|
|
2270
2270
|
break;
|
|
2271
2271
|
case 4:
|
|
2272
2272
|
var tmp$ret$12;
|
|
2273
2273
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2274
2274
|
var tmp1_safe_receiver_0 = schema.u1j_1;
|
|
2275
|
-
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
2275
|
+
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().q2b([name, 'RequestBody']));
|
|
2276
2276
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
2277
2277
|
tmp$ret$12 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
2278
2278
|
|
|
@@ -2301,9 +2301,9 @@
|
|
|
2301
2301
|
}
|
|
2302
2302
|
function OpenApiV2Parser$parseResponseBody$lambda(this$0) {
|
|
2303
2303
|
return function (res) {
|
|
2304
|
-
var response = resolve_1(res.
|
|
2305
|
-
var tmp0_elvis_lhs = toName(res.
|
|
2306
|
-
var name = tmp0_elvis_lhs == null ? toName_0(res.
|
|
2304
|
+
var response = resolve_1(res.f2c_1, this$0);
|
|
2305
|
+
var tmp0_elvis_lhs = toName(res.d2c_1, this$0);
|
|
2306
|
+
var name = tmp0_elvis_lhs == null ? toName_0(res.a2c_1, this$0) + res.c2c_1.c9_1 : tmp0_elvis_lhs;
|
|
2307
2307
|
var schema = response.b1g_1;
|
|
2308
2308
|
var tmp;
|
|
2309
2309
|
if (schema instanceof SchemaObject) {
|
|
@@ -2313,13 +2313,13 @@
|
|
|
2313
2313
|
switch (tmp0) {
|
|
2314
2314
|
case -1:
|
|
2315
2315
|
case 5:
|
|
2316
|
-
tmp_0 = flatten(schema, this$0, Common_getInstance().
|
|
2316
|
+
tmp_0 = flatten(schema, this$0, Common_getInstance().q2b([name, _StatusCode___get_value__impl__we50mu(res.e2c_1), res.g2c_1, 'ResponseBody']));
|
|
2317
2317
|
break;
|
|
2318
2318
|
case 4:
|
|
2319
2319
|
var tmp$ret$0;
|
|
2320
2320
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2321
2321
|
var tmp2_safe_receiver = schema.u1j_1;
|
|
2322
|
-
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : flatten_0(tmp2_safe_receiver, this$0, Common_getInstance().
|
|
2322
|
+
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : flatten_0(tmp2_safe_receiver, this$0, Common_getInstance().q2b([name, _StatusCode___get_value__impl__we50mu(res.e2c_1), res.g2c_1, 'ResponseBody']));
|
|
2323
2323
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
2324
2324
|
tmp$ret$0 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
2325
2325
|
|
|
@@ -2351,10 +2351,10 @@
|
|
|
2351
2351
|
tmp$ret$0 = it;
|
|
2352
2352
|
tmp$ret$1 = tmp$ret$0.substring(1, tmp0_substring);
|
|
2353
2353
|
|
|
2354
|
-
tmp = tmp_0.
|
|
2354
|
+
tmp = tmp_0.q2b([tmp$ret$1]);
|
|
2355
2355
|
break;
|
|
2356
2356
|
case false:
|
|
2357
|
-
tmp = Common_getInstance().
|
|
2357
|
+
tmp = Common_getInstance().q2b([it]);
|
|
2358
2358
|
break;
|
|
2359
2359
|
default:
|
|
2360
2360
|
noWhenBranchMatchedException();
|
|
@@ -2365,24 +2365,24 @@
|
|
|
2365
2365
|
}
|
|
2366
2366
|
function OpenApiV2Parser(openApi) {
|
|
2367
2367
|
Companion_getInstance_1();
|
|
2368
|
-
this.
|
|
2368
|
+
this.s2b_1 = openApi;
|
|
2369
2369
|
}
|
|
2370
|
-
protoOf(OpenApiV2Parser).
|
|
2370
|
+
protoOf(OpenApiV2Parser).t2b = function () {
|
|
2371
2371
|
return plus(plus(plus(plus(parseEndpoints(this), parseParameters(this)), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
|
|
2372
2372
|
};
|
|
2373
2373
|
function toMap_0(_this__u8e3s4) {
|
|
2374
2374
|
var tmp;
|
|
2375
2375
|
if (_this__u8e3s4 instanceof Custom) {
|
|
2376
|
-
tmp = _this__u8e3s4.
|
|
2376
|
+
tmp = _this__u8e3s4.g2a(VOID, VOID, true);
|
|
2377
2377
|
} else {
|
|
2378
2378
|
if (_this__u8e3s4 instanceof Any) {
|
|
2379
|
-
tmp = _this__u8e3s4.
|
|
2379
|
+
tmp = _this__u8e3s4.x29(VOID, true);
|
|
2380
2380
|
} else {
|
|
2381
2381
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
2382
|
-
tmp = _this__u8e3s4.
|
|
2382
|
+
tmp = _this__u8e3s4.i2a(VOID, VOID, true);
|
|
2383
2383
|
} else {
|
|
2384
2384
|
if (_this__u8e3s4 instanceof Unit) {
|
|
2385
|
-
tmp = _this__u8e3s4.
|
|
2385
|
+
tmp = _this__u8e3s4.b2a(VOID, true);
|
|
2386
2386
|
} else {
|
|
2387
2387
|
noWhenBranchMatchedException();
|
|
2388
2388
|
}
|
|
@@ -2427,16 +2427,16 @@
|
|
|
2427
2427
|
function toIterable(_this__u8e3s4) {
|
|
2428
2428
|
var tmp;
|
|
2429
2429
|
if (_this__u8e3s4 instanceof Custom) {
|
|
2430
|
-
tmp = _this__u8e3s4.
|
|
2430
|
+
tmp = _this__u8e3s4.g2a(VOID, true);
|
|
2431
2431
|
} else {
|
|
2432
2432
|
if (_this__u8e3s4 instanceof Any) {
|
|
2433
|
-
tmp = _this__u8e3s4.
|
|
2433
|
+
tmp = _this__u8e3s4.x29(true);
|
|
2434
2434
|
} else {
|
|
2435
2435
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
2436
|
-
tmp = _this__u8e3s4.
|
|
2436
|
+
tmp = _this__u8e3s4.i2a(VOID, true);
|
|
2437
2437
|
} else {
|
|
2438
2438
|
if (_this__u8e3s4 instanceof Unit) {
|
|
2439
|
-
tmp = _this__u8e3s4.
|
|
2439
|
+
tmp = _this__u8e3s4.b2a(true);
|
|
2440
2440
|
} else {
|
|
2441
2441
|
noWhenBranchMatchedException();
|
|
2442
2442
|
}
|
|
@@ -2512,7 +2512,7 @@
|
|
|
2512
2512
|
var element_1 = tmp0_iterator_1.y();
|
|
2513
2513
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2514
2514
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitComponents.<anonymous>' call
|
|
2515
|
-
var tmp = element_1.
|
|
2515
|
+
var tmp = element_1.n21().d27_1;
|
|
2516
2516
|
var tmp_0;
|
|
2517
2517
|
if (element_1 instanceof Enum) {
|
|
2518
2518
|
tmp_0 = emit_3(element_1, $this);
|
|
@@ -2561,7 +2561,7 @@
|
|
|
2561
2561
|
while (tmp0_iterator_0.w()) {
|
|
2562
2562
|
var element_0 = tmp0_iterator_0.y();
|
|
2563
2563
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitPaths.<anonymous>' call
|
|
2564
|
-
var key = element_0.
|
|
2564
|
+
var key = element_0.d28_1;
|
|
2565
2565
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
2566
2566
|
var value = tmp0_groupByTo.u2(key);
|
|
2567
2567
|
var tmp;
|
|
@@ -2633,11 +2633,11 @@
|
|
|
2633
2633
|
return toMap(tmp0_mapTo);
|
|
2634
2634
|
}
|
|
2635
2635
|
function emit_1(_this__u8e3s4, $this) {
|
|
2636
|
-
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.
|
|
2636
|
+
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.k27_1.m27_1);
|
|
2637
2637
|
}
|
|
2638
2638
|
function emit_2(_this__u8e3s4, $this) {
|
|
2639
2639
|
// Inline function 'kotlin.collections.associate' call
|
|
2640
|
-
var tmp0_associate = _this__u8e3s4.
|
|
2640
|
+
var tmp0_associate = _this__u8e3s4.w26_1.y26_1;
|
|
2641
2641
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(tmp0_associate, 10)), 16);
|
|
2642
2642
|
// Inline function 'kotlin.collections.associateTo' call
|
|
2643
2643
|
var tmp0_associateTo = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -2654,14 +2654,14 @@
|
|
|
2654
2654
|
// Inline function 'kotlin.takeIf' call
|
|
2655
2655
|
// Inline function 'kotlin.collections.map' call
|
|
2656
2656
|
// Inline function 'kotlin.collections.filter' call
|
|
2657
|
-
var tmp1_filter = _this__u8e3s4.
|
|
2657
|
+
var tmp1_filter = _this__u8e3s4.w26_1.y26_1;
|
|
2658
2658
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2659
2659
|
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
2660
2660
|
var tmp0_iterator_0 = tmp1_filter.v();
|
|
2661
2661
|
while (tmp0_iterator_0.w()) {
|
|
2662
2662
|
var element_0 = tmp0_iterator_0.y();
|
|
2663
2663
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2664
|
-
if (!element_0.
|
|
2664
|
+
if (!element_0.b27_1) {
|
|
2665
2665
|
tmp0_filterTo.s(element_0);
|
|
2666
2666
|
}
|
|
2667
2667
|
}
|
|
@@ -2672,7 +2672,7 @@
|
|
|
2672
2672
|
var item = tmp0_iterator_1.y();
|
|
2673
2673
|
var tmp$ret$6;
|
|
2674
2674
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2675
|
-
tmp$ret$6 = item.
|
|
2675
|
+
tmp$ret$6 = item.z26_1.d27_1;
|
|
2676
2676
|
tmp0_mapTo.s(tmp$ret$6);
|
|
2677
2677
|
}
|
|
2678
2678
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -2690,7 +2690,7 @@
|
|
|
2690
2690
|
function emit_3(_this__u8e3s4, $this) {
|
|
2691
2691
|
var tmp = Type_STRING_getInstance_0();
|
|
2692
2692
|
// Inline function 'kotlin.collections.map' call
|
|
2693
|
-
var tmp0_map = _this__u8e3s4.
|
|
2693
|
+
var tmp0_map = _this__u8e3s4.t26_1;
|
|
2694
2694
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2695
2695
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
2696
2696
|
var tmp0_iterator = tmp0_map.v();
|
|
@@ -2706,7 +2706,7 @@
|
|
|
2706
2706
|
function emit_4(_this__u8e3s4, $this) {
|
|
2707
2707
|
var tmp = Type_STRING_getInstance_0();
|
|
2708
2708
|
// Inline function 'kotlin.collections.map' call
|
|
2709
|
-
var tmp0_map = _this__u8e3s4.
|
|
2709
|
+
var tmp0_map = _this__u8e3s4.o28_1;
|
|
2710
2710
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2711
2711
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
2712
2712
|
var tmp0_iterator = tmp0_map.v();
|
|
@@ -2728,7 +2728,7 @@
|
|
|
2728
2728
|
while (tmp0_iterator.w()) {
|
|
2729
2729
|
var element = tmp0_iterator.y();
|
|
2730
2730
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2731
|
-
if (element.
|
|
2731
|
+
if (element.c28_1.equals(method)) {
|
|
2732
2732
|
tmp0_filterTo.s(element);
|
|
2733
2733
|
}
|
|
2734
2734
|
}
|
|
@@ -2747,7 +2747,7 @@
|
|
|
2747
2747
|
function emit_6(_this__u8e3s4, $this) {
|
|
2748
2748
|
// Inline function 'kotlin.collections.map' call
|
|
2749
2749
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
2750
|
-
var tmp0_filterIsInstance = _this__u8e3s4.
|
|
2750
|
+
var tmp0_filterIsInstance = _this__u8e3s4.d28_1;
|
|
2751
2751
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
2752
2752
|
var tmp0_filterIsInstanceTo = ArrayList_init_$Create$();
|
|
2753
2753
|
var tmp0_iterator = tmp0_filterIsInstance.v();
|
|
@@ -2769,7 +2769,7 @@
|
|
|
2769
2769
|
}
|
|
2770
2770
|
var tmp = tmp0_mapTo;
|
|
2771
2771
|
// Inline function 'kotlin.collections.map' call
|
|
2772
|
-
var tmp2_map = _this__u8e3s4.
|
|
2772
|
+
var tmp2_map = _this__u8e3s4.e28_1;
|
|
2773
2773
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2774
2774
|
var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_map, 10));
|
|
2775
2775
|
var tmp0_iterator_1 = tmp2_map.v();
|
|
@@ -2782,7 +2782,7 @@
|
|
|
2782
2782
|
}
|
|
2783
2783
|
var tmp_0 = plus(tmp, tmp0_mapTo_0);
|
|
2784
2784
|
// Inline function 'kotlin.collections.map' call
|
|
2785
|
-
var tmp3_map = _this__u8e3s4.
|
|
2785
|
+
var tmp3_map = _this__u8e3s4.f28_1;
|
|
2786
2786
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2787
2787
|
var tmp0_mapTo_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp3_map, 10));
|
|
2788
2788
|
var tmp0_iterator_2 = tmp3_map.v();
|
|
@@ -2796,7 +2796,7 @@
|
|
|
2796
2796
|
var tmp_1 = plus(tmp_0, tmp0_mapTo_1);
|
|
2797
2797
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
2798
2798
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2799
|
-
var tmp4_mapNotNull = _this__u8e3s4.
|
|
2799
|
+
var tmp4_mapNotNull = _this__u8e3s4.h28_1;
|
|
2800
2800
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2801
2801
|
var tmp0_mapNotNullTo = ArrayList_init_$Create$();
|
|
2802
2802
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -2805,7 +2805,7 @@
|
|
|
2805
2805
|
var element_0 = tmp0_iterator_3.y();
|
|
2806
2806
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2807
2807
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2808
|
-
var tmp0_safe_receiver = element_0.
|
|
2808
|
+
var tmp0_safe_receiver = element_0.t27_1;
|
|
2809
2809
|
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : emit_7(tmp0_safe_receiver, $this);
|
|
2810
2810
|
if (tmp0_safe_receiver_0 == null)
|
|
2811
2811
|
null;
|
|
@@ -2827,7 +2827,7 @@
|
|
|
2827
2827
|
var tmp$ret$17;
|
|
2828
2828
|
$l$block_0: {
|
|
2829
2829
|
// Inline function 'kotlin.collections.any' call
|
|
2830
|
-
var tmp6_any = _this__u8e3s4.
|
|
2830
|
+
var tmp6_any = _this__u8e3s4.h28_1;
|
|
2831
2831
|
var tmp_4;
|
|
2832
2832
|
if (isInterface(tmp6_any, Collection)) {
|
|
2833
2833
|
tmp_4 = tmp6_any.c1();
|
|
@@ -2842,8 +2842,8 @@
|
|
|
2842
2842
|
while (tmp0_iterator_4.w()) {
|
|
2843
2843
|
var element_1 = tmp0_iterator_4.y();
|
|
2844
2844
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2845
|
-
var tmp0_safe_receiver_1 = element_1.
|
|
2846
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.
|
|
2845
|
+
var tmp0_safe_receiver_1 = element_1.t27_1;
|
|
2846
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.z27_1;
|
|
2847
2847
|
if (tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs) {
|
|
2848
2848
|
tmp$ret$17 = true;
|
|
2849
2849
|
break $l$block_0;
|
|
@@ -2854,14 +2854,14 @@
|
|
|
2854
2854
|
var tmp_5 = new RequestBodyObject(VOID, tmp_3, !tmp$ret$17);
|
|
2855
2855
|
// Inline function 'kotlin.collections.map' call
|
|
2856
2856
|
// Inline function 'kotlin.collections.groupBy' call
|
|
2857
|
-
var tmp7_groupBy = _this__u8e3s4.
|
|
2857
|
+
var tmp7_groupBy = _this__u8e3s4.i28_1;
|
|
2858
2858
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
2859
2859
|
var tmp0_groupByTo = LinkedHashMap_init_$Create$_0();
|
|
2860
2860
|
var tmp0_iterator_5 = tmp7_groupBy.v();
|
|
2861
2861
|
while (tmp0_iterator_5.w()) {
|
|
2862
2862
|
var element_2 = tmp0_iterator_5.y();
|
|
2863
2863
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2864
|
-
var key = element_2.
|
|
2864
|
+
var key = element_2.u27_1;
|
|
2865
2865
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
2866
2866
|
var value = tmp0_groupByTo.u2(key);
|
|
2867
2867
|
var tmp_6;
|
|
@@ -2897,7 +2897,7 @@
|
|
|
2897
2897
|
while (tmp0_iterator_7.w()) {
|
|
2898
2898
|
var element_3 = tmp0_iterator_7.y();
|
|
2899
2899
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
2900
|
-
var list_0 = element_3.
|
|
2900
|
+
var list_0 = element_3.v27_1;
|
|
2901
2901
|
addAll(tmp0_flatMapTo, list_0);
|
|
2902
2902
|
}
|
|
2903
2903
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(tmp0_flatMapTo, 10)), 16);
|
|
@@ -2911,7 +2911,7 @@
|
|
|
2911
2911
|
var tmp0_plusAssign = emitHeader(element_4, $this);
|
|
2912
2912
|
tmp0_associateTo.l2(tmp0_plusAssign.sd_1, tmp0_plusAssign.td_1);
|
|
2913
2913
|
}
|
|
2914
|
-
var tmp1_description = '' + _this__u8e3s4.
|
|
2914
|
+
var tmp1_description = '' + _this__u8e3s4.b28_1 + ' ' + statusCode + ' response';
|
|
2915
2915
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
2916
2916
|
// Inline function 'kotlin.collections.associate' call
|
|
2917
2917
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -2923,7 +2923,7 @@
|
|
|
2923
2923
|
var element_5 = tmp0_iterator_9.y();
|
|
2924
2924
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2925
2925
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
2926
|
-
var tmp0_safe_receiver_2 = element_5.
|
|
2926
|
+
var tmp0_safe_receiver_2 = element_5.w27_1;
|
|
2927
2927
|
if (tmp0_safe_receiver_2 == null)
|
|
2928
2928
|
null;
|
|
2929
2929
|
else {
|
|
@@ -2954,27 +2954,27 @@
|
|
|
2954
2954
|
tmp$ret$42 = to(tmp_7, new ResponseObject_0(tmp1_description, tmp0_associateTo, tmp2_content));
|
|
2955
2955
|
tmp0_mapTo_2.s(tmp$ret$42);
|
|
2956
2956
|
}
|
|
2957
|
-
return new OperationObject_0(VOID, VOID, VOID, VOID, _this__u8e3s4.
|
|
2957
|
+
return new OperationObject_0(VOID, VOID, VOID, VOID, _this__u8e3s4.b28_1.d27_1, tmp_1, tmp_5, toMap(tmp0_mapTo_2));
|
|
2958
2958
|
}
|
|
2959
2959
|
function emitSegment_0(_this__u8e3s4, $this) {
|
|
2960
2960
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenApiV3Emitter$emitSegment$lambda);
|
|
2961
2961
|
}
|
|
2962
2962
|
function emitParameter_0(_this__u8e3s4, $this, location) {
|
|
2963
|
-
var tmp0_name = _this__u8e3s4.
|
|
2964
|
-
var tmp1_schema = emitSchema_0(_this__u8e3s4.
|
|
2963
|
+
var tmp0_name = _this__u8e3s4.z26_1.d27_1;
|
|
2964
|
+
var tmp1_schema = emitSchema_0(_this__u8e3s4.a27_1, $this);
|
|
2965
2965
|
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_schema, VOID, VOID, VOID, tmp0_name, location);
|
|
2966
2966
|
}
|
|
2967
2967
|
function emitParameter_1(_this__u8e3s4, $this) {
|
|
2968
2968
|
var tmp0_in = ParameterLocation_PATH_getInstance_0();
|
|
2969
|
-
var tmp1_name = _this__u8e3s4.
|
|
2970
|
-
var tmp2_schema = emitSchema_0(_this__u8e3s4.
|
|
2969
|
+
var tmp1_name = _this__u8e3s4.n27_1.d27_1;
|
|
2970
|
+
var tmp2_schema = emitSchema_0(_this__u8e3s4.o27_1, $this);
|
|
2971
2971
|
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_schema, VOID, VOID, VOID, tmp1_name, tmp0_in);
|
|
2972
2972
|
}
|
|
2973
2973
|
function emitHeader(_this__u8e3s4, $this) {
|
|
2974
|
-
return to(_this__u8e3s4.
|
|
2974
|
+
return to(_this__u8e3s4.z26_1.d27_1, emitHeader_0(_this__u8e3s4.a27_1, $this));
|
|
2975
2975
|
}
|
|
2976
2976
|
function emitSchema(_this__u8e3s4, $this) {
|
|
2977
|
-
return to(_this__u8e3s4.
|
|
2977
|
+
return to(_this__u8e3s4.z26_1.d27_1, emitSchema_0(_this__u8e3s4.a27_1, $this));
|
|
2978
2978
|
}
|
|
2979
2979
|
function emitHeader_0(_this__u8e3s4, $this) {
|
|
2980
2980
|
var tmp;
|
|
@@ -3003,7 +3003,7 @@
|
|
|
3003
3003
|
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/schemas/' + _this__u8e3s4.p2()));
|
|
3004
3004
|
} else {
|
|
3005
3005
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3006
|
-
tmp = new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType_1(_this__u8e3s4.
|
|
3006
|
+
tmp = new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType_1(_this__u8e3s4.e27_1, $this));
|
|
3007
3007
|
} else {
|
|
3008
3008
|
if (_this__u8e3s4 instanceof Any) {
|
|
3009
3009
|
throw IllegalStateException_init_$Create$('Cannot map Any');
|
|
@@ -3017,10 +3017,10 @@
|
|
|
3017
3017
|
}
|
|
3018
3018
|
}
|
|
3019
3019
|
var ref = tmp;
|
|
3020
|
-
if (_this__u8e3s4.
|
|
3020
|
+
if (_this__u8e3s4.l28()) {
|
|
3021
3021
|
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_OBJECT_getInstance_0(), VOID, VOID, VOID, VOID, VOID, VOID, ref);
|
|
3022
3022
|
}
|
|
3023
|
-
if (_this__u8e3s4.
|
|
3023
|
+
if (_this__u8e3s4.t20()) {
|
|
3024
3024
|
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance_0(), VOID, VOID, VOID, VOID, ref);
|
|
3025
3025
|
}
|
|
3026
3026
|
return ref;
|
|
@@ -3047,15 +3047,15 @@
|
|
|
3047
3047
|
return tmp;
|
|
3048
3048
|
}
|
|
3049
3049
|
function emit_7(_this__u8e3s4, $this) {
|
|
3050
|
-
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.
|
|
3050
|
+
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.x27_1)), new MediaTypeObject(emitSchema_0(_this__u8e3s4.y27_1, $this)));
|
|
3051
3051
|
}
|
|
3052
3052
|
function OpenApiV3Emitter$emitSegment$lambda(it) {
|
|
3053
3053
|
var tmp;
|
|
3054
3054
|
if (it instanceof Param) {
|
|
3055
|
-
tmp = '{' + it.
|
|
3055
|
+
tmp = '{' + it.n27_1.d27_1 + '}';
|
|
3056
3056
|
} else {
|
|
3057
3057
|
if (it instanceof Literal) {
|
|
3058
|
-
tmp = it.
|
|
3058
|
+
tmp = it.s27_1;
|
|
3059
3059
|
} else {
|
|
3060
3060
|
noWhenBranchMatchedException();
|
|
3061
3061
|
}
|
|
@@ -3064,15 +3064,15 @@
|
|
|
3064
3064
|
}
|
|
3065
3065
|
function OpenApiV3Emitter() {
|
|
3066
3066
|
}
|
|
3067
|
-
protoOf(OpenApiV3Emitter).
|
|
3068
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
3067
|
+
protoOf(OpenApiV3Emitter).h2c = function (ast, options) {
|
|
3068
|
+
var tmp1_elvis_lhs = options == null ? null : options.i2c_1;
|
|
3069
3069
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
3070
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
3070
|
+
var tmp3_elvis_lhs = options == null ? null : options.j2c_1;
|
|
3071
3071
|
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(ast, this), emitComponents(ast, this));
|
|
3072
3072
|
};
|
|
3073
|
-
protoOf(OpenApiV3Emitter).
|
|
3073
|
+
protoOf(OpenApiV3Emitter).k2c = function (ast, options, $super) {
|
|
3074
3074
|
options = options === VOID ? null : options;
|
|
3075
|
-
return $super === VOID ? this.
|
|
3075
|
+
return $super === VOID ? this.h2c(ast, options) : $super.h2c.call(this, ast, options);
|
|
3076
3076
|
};
|
|
3077
3077
|
function OpenApiV3Parser$Companion$parse$lambda($strict) {
|
|
3078
3078
|
return function ($this$Json) {
|
|
@@ -3084,16 +3084,16 @@
|
|
|
3084
3084
|
function Companion_0() {
|
|
3085
3085
|
Companion_instance_0 = this;
|
|
3086
3086
|
}
|
|
3087
|
-
protoOf(Companion_0).
|
|
3087
|
+
protoOf(Companion_0).r2b = function (json, strict) {
|
|
3088
3088
|
// Inline function 'kotlin.let' call
|
|
3089
3089
|
var tmp0_let = (new OpenAPI_0(Json(VOID, OpenApiV3Parser$Companion$parse$lambda(strict)))).x1c(json);
|
|
3090
3090
|
// Inline function 'kotlin.contracts.contract' call
|
|
3091
3091
|
// Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
|
|
3092
3092
|
return parse(new OpenApiV3Parser(tmp0_let));
|
|
3093
3093
|
};
|
|
3094
|
-
protoOf(Companion_0).
|
|
3094
|
+
protoOf(Companion_0).l2c = function (json, strict, $super) {
|
|
3095
3095
|
strict = strict === VOID ? false : strict;
|
|
3096
|
-
return $super === VOID ? this.
|
|
3096
|
+
return $super === VOID ? this.r2b(json, strict) : $super.r2b.call(this, json, strict);
|
|
3097
3097
|
};
|
|
3098
3098
|
var Companion_instance_0;
|
|
3099
3099
|
function Companion_getInstance_2() {
|
|
@@ -3106,7 +3106,7 @@
|
|
|
3106
3106
|
}
|
|
3107
3107
|
function parseEndpoint($this) {
|
|
3108
3108
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3109
|
-
var tmp0_flatMap = $this.
|
|
3109
|
+
var tmp0_flatMap = $this.m2c_1.e1n_1;
|
|
3110
3110
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3111
3111
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
3112
3112
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -3155,7 +3155,7 @@
|
|
|
3155
3155
|
var item_0 = tmp0_iterator_2.y();
|
|
3156
3156
|
var tmp$ret$9;
|
|
3157
3157
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3158
|
-
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().
|
|
3158
|
+
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().q2b([name, 'Parameter', item_0.l1s_1]));
|
|
3159
3159
|
tmp0_mapTo_0.s(tmp$ret$9);
|
|
3160
3160
|
}
|
|
3161
3161
|
var query = tmp0_mapTo_0;
|
|
@@ -3178,7 +3178,7 @@
|
|
|
3178
3178
|
var item_1 = tmp0_iterator_4.y();
|
|
3179
3179
|
var tmp$ret$15;
|
|
3180
3180
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3181
|
-
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().
|
|
3181
|
+
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().q2b([name, 'Parameter', item_1.l1s_1]));
|
|
3182
3182
|
tmp0_mapTo_1.s(tmp$ret$15);
|
|
3183
3183
|
}
|
|
3184
3184
|
var headers = tmp0_mapTo_1;
|
|
@@ -3201,7 +3201,7 @@
|
|
|
3201
3201
|
var item_2 = tmp0_iterator_6.y();
|
|
3202
3202
|
var tmp$ret$21;
|
|
3203
3203
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3204
|
-
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().
|
|
3204
|
+
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().q2b([name, 'Parameter', item_2.l1s_1]));
|
|
3205
3205
|
tmp0_mapTo_2.s(tmp$ret$21);
|
|
3206
3206
|
}
|
|
3207
3207
|
var cookies = tmp0_mapTo_2;
|
|
@@ -3239,7 +3239,7 @@
|
|
|
3239
3239
|
tmp_2 = toReference_1(schema, $this);
|
|
3240
3240
|
} else {
|
|
3241
3241
|
if (schema instanceof SchemaObject_0) {
|
|
3242
|
-
tmp_2 = toReference_2(schema, $this, Common_getInstance().
|
|
3242
|
+
tmp_2 = toReference_2(schema, $this, Common_getInstance().q2b([name, 'RequestBody']));
|
|
3243
3243
|
} else {
|
|
3244
3244
|
if (schema == null) {
|
|
3245
3245
|
throw new NotImplementedError('An operation is not implemented: Not yet implemented');
|
|
@@ -3312,7 +3312,7 @@
|
|
|
3312
3312
|
var item_5 = tmp0_iterator_10.y();
|
|
3313
3313
|
var tmp$ret$40;
|
|
3314
3314
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3315
|
-
tmp$ret$40 = toField_3(resolve_4(item_5.p2(), $this), $this, item_5.o2(), Common_getInstance().
|
|
3315
|
+
tmp$ret$40 = toField_3(resolve_4(item_5.p2(), $this), $this, item_5.o2(), Common_getInstance().q2b([name, 'ResponseHeader']));
|
|
3316
3316
|
tmp0_mapTo_5.s(tmp$ret$40);
|
|
3317
3317
|
}
|
|
3318
3318
|
tmp_6 = tmp0_mapTo_5;
|
|
@@ -3326,7 +3326,7 @@
|
|
|
3326
3326
|
tmp_9 = toReference_1(schema_0, $this);
|
|
3327
3327
|
} else {
|
|
3328
3328
|
if (schema_0 instanceof SchemaObject_0) {
|
|
3329
|
-
tmp_9 = toReference_2(schema_0, $this, Common_getInstance().
|
|
3329
|
+
tmp_9 = toReference_2(schema_0, $this, Common_getInstance().q2b([name, _StatusCode___get_value__impl__we50mu_0(status), _MediaType___get_value__impl__wy58mp(contentType), 'ResponseBody']));
|
|
3330
3330
|
} else {
|
|
3331
3331
|
if (schema_0 == null) {
|
|
3332
3332
|
tmp_9 = new Any(false);
|
|
@@ -3349,7 +3349,7 @@
|
|
|
3349
3349
|
addAll(tmp0_flatMapTo_0, list);
|
|
3350
3350
|
}
|
|
3351
3351
|
var responses = tmp0_flatMapTo_0;
|
|
3352
|
-
tmp$ret$52 = new Endpoint(null, Companion_getInstance_0().
|
|
3352
|
+
tmp$ret$52 = new Endpoint(null, Companion_getInstance_0().j28(name), method, segments, query, headers, cookies, requests, responses);
|
|
3353
3353
|
tmp0_mapTo.s(tmp$ret$52);
|
|
3354
3354
|
}
|
|
3355
3355
|
var list_0 = tmp0_mapTo;
|
|
@@ -3358,19 +3358,19 @@
|
|
|
3358
3358
|
return tmp0_flatMapTo;
|
|
3359
3359
|
}
|
|
3360
3360
|
function parseParameters_0($this) {
|
|
3361
|
-
return flatMapRequests_0($this.
|
|
3361
|
+
return flatMapRequests_0($this.m2c_1, $this, OpenApiV3Parser$parseParameters$lambda($this));
|
|
3362
3362
|
}
|
|
3363
3363
|
function parseRequestBody_0($this) {
|
|
3364
|
-
return flatMapRequests_0($this.
|
|
3364
|
+
return flatMapRequests_0($this.m2c_1, $this, OpenApiV3Parser$parseRequestBody$lambda($this));
|
|
3365
3365
|
}
|
|
3366
3366
|
function parseResponseBody_0($this) {
|
|
3367
|
-
return flatMapResponses_0($this.
|
|
3367
|
+
return flatMapResponses_0($this.m2c_1, $this, OpenApiV3Parser$parseResponseBody$lambda($this));
|
|
3368
3368
|
}
|
|
3369
3369
|
function parseComponents($this) {
|
|
3370
3370
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3371
3371
|
// Inline function 'kotlin.collections.filter' call
|
|
3372
3372
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3373
|
-
var tmp0_safe_receiver = $this.
|
|
3373
|
+
var tmp0_safe_receiver = $this.m2c_1.f1n_1;
|
|
3374
3374
|
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y1o_1;
|
|
3375
3375
|
var tmp1_filter = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3376
3376
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -3398,7 +3398,7 @@
|
|
|
3398
3398
|
while (tmp0_iterator_0.w()) {
|
|
3399
3399
|
var element_0 = tmp0_iterator_0.y();
|
|
3400
3400
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseComponents.<anonymous>' call
|
|
3401
|
-
var list = flatten_2(element_0.p2(), $this, Common_getInstance().
|
|
3401
|
+
var list = flatten_2(element_0.p2(), $this, Common_getInstance().q2b([element_0.o2()]));
|
|
3402
3402
|
addAll(tmp0_flatMapTo, list);
|
|
3403
3403
|
}
|
|
3404
3404
|
return tmp0_flatMapTo;
|
|
@@ -3415,7 +3415,7 @@
|
|
|
3415
3415
|
// Inline function 'kotlin.let' call
|
|
3416
3416
|
// Inline function 'kotlin.contracts.contract' call
|
|
3417
3417
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toName.<anonymous>' call
|
|
3418
|
-
tmp = Common_getInstance().
|
|
3418
|
+
tmp = Common_getInstance().q2b([tmp0_safe_receiver]);
|
|
3419
3419
|
}
|
|
3420
3420
|
return tmp;
|
|
3421
3421
|
}
|
|
@@ -3488,7 +3488,7 @@
|
|
|
3488
3488
|
var tmp1_safe_receiver = tmp$ret$7;
|
|
3489
3489
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h1s_1;
|
|
3490
3490
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : resolve_3(tmp2_safe_receiver, $this);
|
|
3491
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : toReference_2(tmp3_safe_receiver, $this, Common_getInstance().
|
|
3491
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : toReference_2(tmp3_safe_receiver, $this, Common_getInstance().q2b([name, 'Parameter', param]));
|
|
3492
3492
|
var tmp_0;
|
|
3493
3493
|
if (tmp4_safe_receiver == null) {
|
|
3494
3494
|
tmp_0 = null;
|
|
@@ -3496,7 +3496,7 @@
|
|
|
3496
3496
|
// Inline function 'kotlin.let' call
|
|
3497
3497
|
// Inline function 'kotlin.contracts.contract' call
|
|
3498
3498
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toSegments.<anonymous>.<anonymous>' call
|
|
3499
|
-
tmp_0 = new Param(Companion_getInstance_0().
|
|
3499
|
+
tmp_0 = new Param(Companion_getInstance_0().j28(param), tmp4_safe_receiver);
|
|
3500
3500
|
}
|
|
3501
3501
|
|
|
3502
3502
|
var tmp5_elvis_lhs = tmp_0;
|
|
@@ -3601,7 +3601,7 @@
|
|
|
3601
3601
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
3602
3602
|
}
|
|
3603
3603
|
function resolveParameterObject_0(_this__u8e3s4, $this) {
|
|
3604
|
-
var tmp0_safe_receiver = $this.
|
|
3604
|
+
var tmp0_safe_receiver = $this.m2c_1.f1n_1;
|
|
3605
3605
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1p_1;
|
|
3606
3606
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
|
|
3607
3607
|
var tmp;
|
|
@@ -3626,7 +3626,7 @@
|
|
|
3626
3626
|
return tmp;
|
|
3627
3627
|
}
|
|
3628
3628
|
function resolveSchemaObject_0(_this__u8e3s4, $this) {
|
|
3629
|
-
var tmp0_safe_receiver = $this.
|
|
3629
|
+
var tmp0_safe_receiver = $this.m2c_1.f1n_1;
|
|
3630
3630
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y1o_1;
|
|
3631
3631
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
|
|
3632
3632
|
var tmp;
|
|
@@ -3659,7 +3659,7 @@
|
|
|
3659
3659
|
return tmp_1;
|
|
3660
3660
|
}
|
|
3661
3661
|
function resolveHeaderObject(_this__u8e3s4, $this) {
|
|
3662
|
-
var tmp0_safe_receiver = $this.
|
|
3662
|
+
var tmp0_safe_receiver = $this.m2c_1.f1n_1;
|
|
3663
3663
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d1p_1;
|
|
3664
3664
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
|
|
3665
3665
|
var tmp;
|
|
@@ -3692,7 +3692,7 @@
|
|
|
3692
3692
|
return tmp_1;
|
|
3693
3693
|
}
|
|
3694
3694
|
function resolveRequestBodyObject(_this__u8e3s4, $this) {
|
|
3695
|
-
var tmp0_safe_receiver = $this.
|
|
3695
|
+
var tmp0_safe_receiver = $this.m2c_1.f1n_1;
|
|
3696
3696
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c1p_1;
|
|
3697
3697
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
|
|
3698
3698
|
var tmp;
|
|
@@ -3725,7 +3725,7 @@
|
|
|
3725
3725
|
return tmp_1;
|
|
3726
3726
|
}
|
|
3727
3727
|
function resolveResponseObject_0(_this__u8e3s4, $this) {
|
|
3728
|
-
var tmp0_safe_receiver = $this.
|
|
3728
|
+
var tmp0_safe_receiver = $this.m2c_1.f1n_1;
|
|
3729
3729
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z1o_1;
|
|
3730
3730
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
|
|
3731
3731
|
var tmp;
|
|
@@ -3856,7 +3856,7 @@
|
|
|
3856
3856
|
}
|
|
3857
3857
|
tmp = tmp_0;
|
|
3858
3858
|
} else if (!(_this__u8e3s4.f1t_1 == null) ? true : !(_this__u8e3s4.g1t_1 == null)) {
|
|
3859
|
-
var tmp_3 = Companion_getInstance_0().
|
|
3859
|
+
var tmp_3 = Companion_getInstance_0().j28(name);
|
|
3860
3860
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
3861
3861
|
var tmp0_mapIndexed = ensureNotNull(_this__u8e3s4.f1t_1);
|
|
3862
3862
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
@@ -3875,7 +3875,7 @@
|
|
|
3875
3875
|
tmp_4 = toReference_1(item, $this);
|
|
3876
3876
|
} else {
|
|
3877
3877
|
if (item instanceof SchemaObject_0) {
|
|
3878
|
-
tmp_4 = toReference_2(item, $this, Common_getInstance().
|
|
3878
|
+
tmp_4 = toReference_2(item, $this, Common_getInstance().q2b([name, tmp1_anonymous.toString()]));
|
|
3879
3879
|
} else {
|
|
3880
3880
|
noWhenBranchMatchedException();
|
|
3881
3881
|
}
|
|
@@ -3901,7 +3901,7 @@
|
|
|
3901
3901
|
tmp_6 = emptyList();
|
|
3902
3902
|
} else {
|
|
3903
3903
|
if (element instanceof SchemaObject_0) {
|
|
3904
|
-
tmp_6 = flatten_1(element, $this, Common_getInstance().
|
|
3904
|
+
tmp_6 = flatten_1(element, $this, Common_getInstance().q2b([name, tmp3_anonymous.toString()]));
|
|
3905
3905
|
} else {
|
|
3906
3906
|
noWhenBranchMatchedException();
|
|
3907
3907
|
}
|
|
@@ -3911,7 +3911,7 @@
|
|
|
3911
3911
|
}
|
|
3912
3912
|
tmp = plus(tmp_5, tmp0_flatMapIndexedTo);
|
|
3913
3913
|
} else if (!(_this__u8e3s4.e1t_1 == null)) {
|
|
3914
|
-
var tmp_7 = Companion_getInstance_0().
|
|
3914
|
+
var tmp_7 = Companion_getInstance_0().j28(name);
|
|
3915
3915
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
3916
3916
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3917
3917
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -3932,7 +3932,7 @@
|
|
|
3932
3932
|
while (tmp0_iterator_2.w()) {
|
|
3933
3933
|
var e = tmp0_iterator_2.y();
|
|
3934
3934
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
|
|
3935
|
-
var key = e.
|
|
3935
|
+
var key = e.z26_1;
|
|
3936
3936
|
if (set.s(key)) {
|
|
3937
3937
|
list_1.s(e);
|
|
3938
3938
|
}
|
|
@@ -3973,7 +3973,7 @@
|
|
|
3973
3973
|
var key_0 = element_2.o2();
|
|
3974
3974
|
// Inline function 'kotlin.collections.component2' call
|
|
3975
3975
|
var value = element_2.p2();
|
|
3976
|
-
var list_2 = flatten_2(value, $this, Common_getInstance().
|
|
3976
|
+
var list_2 = flatten_2(value, $this, Common_getInstance().q2b([name, key_0]));
|
|
3977
3977
|
addAll(tmp0_flatMapTo_1, list_2);
|
|
3978
3978
|
}
|
|
3979
3979
|
var list_3 = tmp0_flatMapTo_1;
|
|
@@ -3997,7 +3997,7 @@
|
|
|
3997
3997
|
var tmp9_let = toSet(tmp0_mapTo);
|
|
3998
3998
|
// Inline function 'kotlin.contracts.contract' call
|
|
3999
3999
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
|
|
4000
|
-
tmp = listOf(new Enum(null, Companion_getInstance_0().
|
|
4000
|
+
tmp = listOf(new Enum(null, Companion_getInstance_0().j28(name), tmp9_let));
|
|
4001
4001
|
} else {
|
|
4002
4002
|
var tmp5_subject = _this__u8e3s4.d1t_1;
|
|
4003
4003
|
var tmp_10;
|
|
@@ -4023,12 +4023,12 @@
|
|
|
4023
4023
|
var key_1 = element_3.o2();
|
|
4024
4024
|
// Inline function 'kotlin.collections.component2' call
|
|
4025
4025
|
var value_0 = element_3.p2();
|
|
4026
|
-
var list_4 = flatten_2(value_0, $this, Common_getInstance().
|
|
4026
|
+
var list_4 = flatten_2(value_0, $this, Common_getInstance().q2b([name, key_1]));
|
|
4027
4027
|
addAll(tmp0_flatMapTo_2, list_4);
|
|
4028
4028
|
}
|
|
4029
4029
|
|
|
4030
4030
|
var fields = tmp0_flatMapTo_2;
|
|
4031
|
-
var schema = listOf(new Type(null, Companion_getInstance_0().
|
|
4031
|
+
var schema = listOf(new Type(null, Companion_getInstance_0().j28(name), new Shape(toField_1(_this__u8e3s4, $this, name))));
|
|
4032
4032
|
tmp_10 = plus(schema, fields);
|
|
4033
4033
|
break;
|
|
4034
4034
|
case 4:
|
|
@@ -4045,7 +4045,7 @@
|
|
|
4045
4045
|
tmp_12 = emptyList();
|
|
4046
4046
|
} else {
|
|
4047
4047
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
4048
|
-
tmp_12 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().
|
|
4048
|
+
tmp_12 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().q2b([name, 'array']));
|
|
4049
4049
|
} else {
|
|
4050
4050
|
noWhenBranchMatchedException();
|
|
4051
4051
|
}
|
|
@@ -4103,7 +4103,7 @@
|
|
|
4103
4103
|
}
|
|
4104
4104
|
tmp = tmp_0;
|
|
4105
4105
|
} else if (!(schema.d1u_1 == null)) {
|
|
4106
|
-
tmp = new Custom(Common_getInstance().
|
|
4106
|
+
tmp = new Custom(Common_getInstance().q2b([getReference_0(referencingObject, $this)]), false, false);
|
|
4107
4107
|
} else if (isPrimitive_0(schema.d1t_1)) {
|
|
4108
4108
|
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.d1t_1), $this), false, false);
|
|
4109
4109
|
} else {
|
|
@@ -4113,10 +4113,10 @@
|
|
|
4113
4113
|
var items = schema.i1t_1;
|
|
4114
4114
|
var tmp_2;
|
|
4115
4115
|
if (items instanceof ReferenceObject_0) {
|
|
4116
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
4116
|
+
tmp_2 = new Custom(Common_getInstance().q2b([getReference_0(items, $this)]), true);
|
|
4117
4117
|
} else {
|
|
4118
4118
|
if (items instanceof SchemaObject_0) {
|
|
4119
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
4119
|
+
tmp_2 = new Custom(Common_getInstance().q2b([getReference_0(referencingObject, $this), 'Array']), true);
|
|
4120
4120
|
} else {
|
|
4121
4121
|
if (items == null) {
|
|
4122
4122
|
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.r1s_1);
|
|
@@ -4128,7 +4128,7 @@
|
|
|
4128
4128
|
}
|
|
4129
4129
|
tmp_1 = tmp_2;
|
|
4130
4130
|
} else {
|
|
4131
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
4131
|
+
tmp_1 = new Custom(Common_getInstance().q2b([getReference_0(referencingObject, $this)]), false);
|
|
4132
4132
|
}
|
|
4133
4133
|
tmp = tmp_1;
|
|
4134
4134
|
}
|
|
@@ -4320,15 +4320,15 @@
|
|
|
4320
4320
|
var value = item.p2();
|
|
4321
4321
|
var tmp;
|
|
4322
4322
|
if (value instanceof SchemaObject_0) {
|
|
4323
|
-
var tmp_0 = Companion_getInstance_0().
|
|
4324
|
-
var tmp_1 = !(value.d1u_1 == null) ? toReference_2(value, $this, Common_getInstance().
|
|
4323
|
+
var tmp_0 = Companion_getInstance_0().j28(key);
|
|
4324
|
+
var tmp_1 = !(value.d1u_1 == null) ? toReference_2(value, $this, Common_getInstance().q2b([name, key])) : equals(value.d1t_1, Type_ARRAY_getInstance_0()) ? toReference_2(value, $this, Common_getInstance().q2b([name, key, 'Array'])) : toReference_2(value, $this, Common_getInstance().q2b([name, key]));
|
|
4325
4325
|
var tmp1_safe_receiver = _this__u8e3s4.c1u_1;
|
|
4326
4326
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r(key);
|
|
4327
4327
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
4328
4328
|
} else {
|
|
4329
4329
|
if (value instanceof ReferenceObject_0) {
|
|
4330
|
-
var tmp_2 = Companion_getInstance_0().
|
|
4331
|
-
var tmp_3 = new Custom(Common_getInstance().
|
|
4330
|
+
var tmp_2 = Companion_getInstance_0().j28(key);
|
|
4331
|
+
var tmp_3 = new Custom(Common_getInstance().q2b([getReference_0(value, $this)]), false);
|
|
4332
4332
|
var tmp3_safe_receiver = _this__u8e3s4.c1u_1;
|
|
4333
4333
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.r(key);
|
|
4334
4334
|
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
@@ -4361,7 +4361,7 @@
|
|
|
4361
4361
|
var tmp0_let = tmp;
|
|
4362
4362
|
// Inline function 'kotlin.contracts.contract' call
|
|
4363
4363
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toField.<anonymous>' call
|
|
4364
|
-
var tmp_0 = Companion_getInstance_0().
|
|
4364
|
+
var tmp_0 = Companion_getInstance_0().j28(_this__u8e3s4.l1s_1);
|
|
4365
4365
|
var tmp0_elvis_lhs = _this__u8e3s4.b1s_1;
|
|
4366
4366
|
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
4367
4367
|
}
|
|
@@ -4385,24 +4385,24 @@
|
|
|
4385
4385
|
var tmp0_let = tmp;
|
|
4386
4386
|
// Inline function 'kotlin.contracts.contract' call
|
|
4387
4387
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toField.<anonymous>' call
|
|
4388
|
-
var tmp_0 = Companion_getInstance_0().
|
|
4388
|
+
var tmp_0 = Companion_getInstance_0().j28(identifier);
|
|
4389
4389
|
var tmp0_elvis_lhs = _this__u8e3s4.b1v_1;
|
|
4390
4390
|
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
4391
4391
|
}
|
|
4392
4392
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
4393
|
-
this.
|
|
4394
|
-
this.
|
|
4395
|
-
this.
|
|
4396
|
-
this.
|
|
4393
|
+
this.n2c_1 = path;
|
|
4394
|
+
this.o2c_1 = pathItem;
|
|
4395
|
+
this.p2c_1 = method;
|
|
4396
|
+
this.q2c_1 = operation;
|
|
4397
4397
|
}
|
|
4398
4398
|
protoOf(FlattenRequest_0).toString = function () {
|
|
4399
|
-
return 'FlattenRequest(path=' + new Path_0(this.
|
|
4399
|
+
return 'FlattenRequest(path=' + new Path_0(this.n2c_1) + ', pathItem=' + this.o2c_1 + ', method=' + this.p2c_1 + ', operation=' + this.q2c_1 + ')';
|
|
4400
4400
|
};
|
|
4401
4401
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
4402
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
4403
|
-
result = imul(result, 31) + this.
|
|
4404
|
-
result = imul(result, 31) + this.
|
|
4405
|
-
result = imul(result, 31) + this.
|
|
4402
|
+
var result = Path__hashCode_impl_go73kd_0(this.n2c_1);
|
|
4403
|
+
result = imul(result, 31) + this.o2c_1.hashCode() | 0;
|
|
4404
|
+
result = imul(result, 31) + this.p2c_1.hashCode() | 0;
|
|
4405
|
+
result = imul(result, 31) + this.q2c_1.hashCode() | 0;
|
|
4406
4406
|
return result;
|
|
4407
4407
|
};
|
|
4408
4408
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -4411,13 +4411,13 @@
|
|
|
4411
4411
|
if (!(other instanceof FlattenRequest_0))
|
|
4412
4412
|
return false;
|
|
4413
4413
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
4414
|
-
if (!(this.
|
|
4414
|
+
if (!(this.n2c_1 === tmp0_other_with_cast.n2c_1))
|
|
4415
4415
|
return false;
|
|
4416
|
-
if (!this.
|
|
4416
|
+
if (!this.o2c_1.equals(tmp0_other_with_cast.o2c_1))
|
|
4417
4417
|
return false;
|
|
4418
|
-
if (!this.
|
|
4418
|
+
if (!this.p2c_1.equals(tmp0_other_with_cast.p2c_1))
|
|
4419
4419
|
return false;
|
|
4420
|
-
if (!this.
|
|
4420
|
+
if (!this.q2c_1.equals(tmp0_other_with_cast.q2c_1))
|
|
4421
4421
|
return false;
|
|
4422
4422
|
return true;
|
|
4423
4423
|
};
|
|
@@ -4468,23 +4468,23 @@
|
|
|
4468
4468
|
return tmp0_flatMapTo_0;
|
|
4469
4469
|
}
|
|
4470
4470
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
4471
|
-
this.
|
|
4472
|
-
this.
|
|
4473
|
-
this.
|
|
4474
|
-
this.
|
|
4475
|
-
this.
|
|
4476
|
-
this.
|
|
4471
|
+
this.r2c_1 = path;
|
|
4472
|
+
this.s2c_1 = pathItem;
|
|
4473
|
+
this.t2c_1 = method;
|
|
4474
|
+
this.u2c_1 = operation;
|
|
4475
|
+
this.v2c_1 = statusCode;
|
|
4476
|
+
this.w2c_1 = response;
|
|
4477
4477
|
}
|
|
4478
4478
|
protoOf(FlattenResponse_0).toString = function () {
|
|
4479
|
-
return 'FlattenResponse(path=' + new Path_0(this.
|
|
4479
|
+
return 'FlattenResponse(path=' + new Path_0(this.r2c_1) + ', pathItem=' + this.s2c_1 + ', method=' + this.t2c_1 + ', operation=' + this.u2c_1 + ', statusCode=' + new StatusCode_0(this.v2c_1) + ', response=' + this.w2c_1 + ')';
|
|
4480
4480
|
};
|
|
4481
4481
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
4482
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
4483
|
-
result = imul(result, 31) + this.
|
|
4484
|
-
result = imul(result, 31) + this.
|
|
4485
|
-
result = imul(result, 31) + this.
|
|
4486
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.
|
|
4487
|
-
result = imul(result, 31) + hashCode(this.
|
|
4482
|
+
var result = Path__hashCode_impl_go73kd_0(this.r2c_1);
|
|
4483
|
+
result = imul(result, 31) + this.s2c_1.hashCode() | 0;
|
|
4484
|
+
result = imul(result, 31) + this.t2c_1.hashCode() | 0;
|
|
4485
|
+
result = imul(result, 31) + this.u2c_1.hashCode() | 0;
|
|
4486
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.v2c_1) | 0;
|
|
4487
|
+
result = imul(result, 31) + hashCode(this.w2c_1) | 0;
|
|
4488
4488
|
return result;
|
|
4489
4489
|
};
|
|
4490
4490
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -4493,17 +4493,17 @@
|
|
|
4493
4493
|
if (!(other instanceof FlattenResponse_0))
|
|
4494
4494
|
return false;
|
|
4495
4495
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
4496
|
-
if (!(this.
|
|
4496
|
+
if (!(this.r2c_1 === tmp0_other_with_cast.r2c_1))
|
|
4497
4497
|
return false;
|
|
4498
|
-
if (!this.
|
|
4498
|
+
if (!this.s2c_1.equals(tmp0_other_with_cast.s2c_1))
|
|
4499
4499
|
return false;
|
|
4500
|
-
if (!this.
|
|
4500
|
+
if (!this.t2c_1.equals(tmp0_other_with_cast.t2c_1))
|
|
4501
4501
|
return false;
|
|
4502
|
-
if (!this.
|
|
4502
|
+
if (!this.u2c_1.equals(tmp0_other_with_cast.u2c_1))
|
|
4503
4503
|
return false;
|
|
4504
|
-
if (!(this.
|
|
4504
|
+
if (!(this.v2c_1 === tmp0_other_with_cast.v2c_1))
|
|
4505
4505
|
return false;
|
|
4506
|
-
if (!equals(this.
|
|
4506
|
+
if (!equals(this.w2c_1, tmp0_other_with_cast.w2c_1))
|
|
4507
4507
|
return false;
|
|
4508
4508
|
return true;
|
|
4509
4509
|
};
|
|
@@ -4579,9 +4579,9 @@
|
|
|
4579
4579
|
}
|
|
4580
4580
|
function OpenApiV3Parser$parseParameters$lambda(this$0) {
|
|
4581
4581
|
return function (req) {
|
|
4582
|
-
var parameters = plus(resolveParameters_2(req.
|
|
4583
|
-
var tmp0_elvis_lhs = toName_1(req.
|
|
4584
|
-
var name = tmp0_elvis_lhs == null ? toName_2(req.
|
|
4582
|
+
var parameters = plus(resolveParameters_2(req.o2c_1, this$0), resolveParameters_1(req.q2c_1, this$0));
|
|
4583
|
+
var tmp0_elvis_lhs = toName_1(req.q2c_1, this$0);
|
|
4584
|
+
var name = tmp0_elvis_lhs == null ? toName_2(req.n2c_1, this$0) + req.p2c_1.c9_1 : tmp0_elvis_lhs;
|
|
4585
4585
|
var tmp$ret$2;
|
|
4586
4586
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4587
4587
|
var tmp$ret$1;
|
|
@@ -4593,7 +4593,7 @@
|
|
|
4593
4593
|
var tmp$ret$0;
|
|
4594
4594
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseParameters.<anonymous>.<anonymous>' call
|
|
4595
4595
|
var tmp0_safe_receiver = element.h1s_1;
|
|
4596
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().
|
|
4596
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().q2b([name, 'Parameter', element.l1s_1]));
|
|
4597
4597
|
tmp$ret$0 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
4598
4598
|
var list = tmp$ret$0;
|
|
4599
4599
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -4605,13 +4605,13 @@
|
|
|
4605
4605
|
}
|
|
4606
4606
|
function OpenApiV3Parser$parseRequestBody$lambda(this$0) {
|
|
4607
4607
|
return function (req) {
|
|
4608
|
-
var tmp0_elvis_lhs = toName_1(req.
|
|
4609
|
-
var name = tmp0_elvis_lhs == null ? toName_2(req.
|
|
4608
|
+
var tmp0_elvis_lhs = toName_1(req.q2c_1, this$0);
|
|
4609
|
+
var name = tmp0_elvis_lhs == null ? toName_2(req.n2c_1, this$0) + req.p2c_1.c9_1 : tmp0_elvis_lhs;
|
|
4610
4610
|
var tmp$ret$6;
|
|
4611
4611
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4612
4612
|
var tmp$ret$0;
|
|
4613
4613
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4614
|
-
var tmp1_safe_receiver = req.
|
|
4614
|
+
var tmp1_safe_receiver = req.q2c_1.o1q_1;
|
|
4615
4615
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_6(tmp1_safe_receiver, this$0);
|
|
4616
4616
|
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.v1u_1;
|
|
4617
4617
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
@@ -4641,13 +4641,13 @@
|
|
|
4641
4641
|
switch (tmp0) {
|
|
4642
4642
|
case -1:
|
|
4643
4643
|
case 5:
|
|
4644
|
-
tmp_0 = flatten_1(schema, this$0, Common_getInstance().
|
|
4644
|
+
tmp_0 = flatten_1(schema, this$0, Common_getInstance().q2b([name, 'RequestBody']));
|
|
4645
4645
|
break;
|
|
4646
4646
|
case 4:
|
|
4647
4647
|
var tmp$ret$3;
|
|
4648
4648
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4649
4649
|
var tmp1_safe_receiver_0 = schema.i1t_1;
|
|
4650
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
4650
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().q2b([name, 'RequestBody']));
|
|
4651
4651
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
4652
4652
|
tmp$ret$3 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
4653
4653
|
|
|
@@ -4680,9 +4680,9 @@
|
|
|
4680
4680
|
}
|
|
4681
4681
|
function OpenApiV3Parser$parseResponseBody$lambda(this$0) {
|
|
4682
4682
|
return function (res) {
|
|
4683
|
-
var tmp0_elvis_lhs = toName_1(res.
|
|
4684
|
-
var name = tmp0_elvis_lhs == null ? toName_2(res.
|
|
4685
|
-
var response = res.
|
|
4683
|
+
var tmp0_elvis_lhs = toName_1(res.u2c_1, this$0);
|
|
4684
|
+
var name = tmp0_elvis_lhs == null ? toName_2(res.r2c_1, this$0) + res.t2c_1.c9_1 : tmp0_elvis_lhs;
|
|
4685
|
+
var response = res.w2c_1;
|
|
4686
4686
|
var tmp;
|
|
4687
4687
|
if (response instanceof ResponseObject_0) {
|
|
4688
4688
|
var tmp$ret$7;
|
|
@@ -4721,13 +4721,13 @@
|
|
|
4721
4721
|
switch (tmp0) {
|
|
4722
4722
|
case -1:
|
|
4723
4723
|
case 5:
|
|
4724
|
-
tmp_1 = flatten_1(schema, this$0, Common_getInstance().
|
|
4724
|
+
tmp_1 = flatten_1(schema, this$0, Common_getInstance().q2b([name, _StatusCode___get_value__impl__we50mu_0(res.v2c_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
4725
4725
|
break;
|
|
4726
4726
|
case 4:
|
|
4727
4727
|
var tmp$ret$4;
|
|
4728
4728
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4729
4729
|
var tmp1_safe_receiver = schema.i1t_1;
|
|
4730
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().
|
|
4730
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().q2b([name, _StatusCode___get_value__impl__we50mu_0(res.v2c_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
4731
4731
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
4732
4732
|
tmp$ret$4 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
4733
4733
|
|
|
@@ -4773,10 +4773,10 @@
|
|
|
4773
4773
|
tmp$ret$0 = it;
|
|
4774
4774
|
tmp$ret$1 = tmp$ret$0.substring(1, tmp0_substring);
|
|
4775
4775
|
|
|
4776
|
-
tmp = tmp_0.
|
|
4776
|
+
tmp = tmp_0.q2b([tmp$ret$1]);
|
|
4777
4777
|
break;
|
|
4778
4778
|
case false:
|
|
4779
|
-
tmp = Common_getInstance().
|
|
4779
|
+
tmp = Common_getInstance().q2b([it]);
|
|
4780
4780
|
break;
|
|
4781
4781
|
default:
|
|
4782
4782
|
noWhenBranchMatchedException();
|
|
@@ -4787,21 +4787,21 @@
|
|
|
4787
4787
|
}
|
|
4788
4788
|
function OpenApiV3Parser(openApi) {
|
|
4789
4789
|
Companion_getInstance_2();
|
|
4790
|
-
this.
|
|
4790
|
+
this.m2c_1 = openApi;
|
|
4791
4791
|
}
|
|
4792
4792
|
function toMap_1(_this__u8e3s4) {
|
|
4793
4793
|
var tmp;
|
|
4794
4794
|
if (_this__u8e3s4 instanceof Custom) {
|
|
4795
|
-
tmp = _this__u8e3s4.
|
|
4795
|
+
tmp = _this__u8e3s4.g2a(VOID, VOID, true);
|
|
4796
4796
|
} else {
|
|
4797
4797
|
if (_this__u8e3s4 instanceof Any) {
|
|
4798
|
-
tmp = _this__u8e3s4.
|
|
4798
|
+
tmp = _this__u8e3s4.x29(VOID, true);
|
|
4799
4799
|
} else {
|
|
4800
4800
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
4801
|
-
tmp = _this__u8e3s4.
|
|
4801
|
+
tmp = _this__u8e3s4.i2a(VOID, VOID, true);
|
|
4802
4802
|
} else {
|
|
4803
4803
|
if (_this__u8e3s4 instanceof Unit) {
|
|
4804
|
-
tmp = _this__u8e3s4.
|
|
4804
|
+
tmp = _this__u8e3s4.b2a(VOID, true);
|
|
4805
4805
|
} else {
|
|
4806
4806
|
noWhenBranchMatchedException();
|
|
4807
4807
|
}
|
|
@@ -4843,16 +4843,16 @@
|
|
|
4843
4843
|
function toIterable_0(_this__u8e3s4) {
|
|
4844
4844
|
var tmp;
|
|
4845
4845
|
if (_this__u8e3s4 instanceof Custom) {
|
|
4846
|
-
tmp = _this__u8e3s4.
|
|
4846
|
+
tmp = _this__u8e3s4.g2a(VOID, true);
|
|
4847
4847
|
} else {
|
|
4848
4848
|
if (_this__u8e3s4 instanceof Any) {
|
|
4849
|
-
tmp = _this__u8e3s4.
|
|
4849
|
+
tmp = _this__u8e3s4.x29(true);
|
|
4850
4850
|
} else {
|
|
4851
4851
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
4852
|
-
tmp = _this__u8e3s4.
|
|
4852
|
+
tmp = _this__u8e3s4.i2a(VOID, true);
|
|
4853
4853
|
} else {
|
|
4854
4854
|
if (_this__u8e3s4 instanceof Unit) {
|
|
4855
|
-
tmp = _this__u8e3s4.
|
|
4855
|
+
tmp = _this__u8e3s4.b2a(true);
|
|
4856
4856
|
} else {
|
|
4857
4857
|
noWhenBranchMatchedException();
|
|
4858
4858
|
}
|