@flock/wirespec 0.12.3 → 0.12.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arrow-arrow-atomic.mjs.map +1 -1
- package/arrow-arrow-core.mjs.map +1 -1
- package/clikt-clikt.mjs +1167 -1167
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +425 -425
- package/colormath-root-colormath.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +71 -56
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1767 -1767
- package/kotlin-rgxgen.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +380 -380
- package/markdown.mjs +1884 -1884
- package/mordant-mordant.mjs +1640 -1640
- package/mordant-mordant.mjs.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1721 -1459
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +586 -467
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +355 -322
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +419 -357
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +1031 -393
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +396 -963
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-npm.d.ts +41 -17
- package/wirespec-src-plugin-npm.mjs +171 -173
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +35 -30
- package/wirespec-src-tools-generator.mjs.map +1 -1
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
Literal32wmkquj6qapn as Literal,
|
|
17
17
|
Param33sus5zaarsk0 as Param,
|
|
18
18
|
Emitter1jsaltl7ktuoe as Emitter,
|
|
19
|
+
FileExtension_JSON_getInstance3s3hcc6ynarq8 as FileExtension_JSON_getInstance,
|
|
19
20
|
Emitted3cm6ez40hij29 as Emitted,
|
|
20
21
|
Endpoint1dn4dd2eg1gxz as Endpoint,
|
|
21
22
|
Method_GET_getInstancexhpxyx4m3gd3 as Method_GET_getInstance,
|
|
@@ -41,7 +42,8 @@ import {
|
|
|
41
42
|
get_entries1humhm1eqjpcg as get_entries,
|
|
42
43
|
FieldIdentifier2fnn30qixmpf as FieldIdentifier,
|
|
43
44
|
Field3769gf85dkeaq as Field,
|
|
44
|
-
|
|
45
|
+
Module1hus0d150u4qt as Module,
|
|
46
|
+
ASTjmzmwcb0kkkg as AST,
|
|
45
47
|
Channel2rnyzzgwpojjq as Channel,
|
|
46
48
|
Union171cmlm23mwcq as Union,
|
|
47
49
|
} from './wirespec-src-compiler-core.mjs';
|
|
@@ -94,8 +96,13 @@ import {
|
|
|
94
96
|
hashCodeq5arwsb9dgti as hashCode,
|
|
95
97
|
listOf1jh22dvmctj1r as listOf_0,
|
|
96
98
|
UnsupportedOperationException_init_$Create$1usmxm8d6ijjz as UnsupportedOperationException_init_$Create$,
|
|
97
|
-
Collection1k04j3hzsbod0 as Collection,
|
|
98
99
|
checkIndexOverflow3frtmheghr0th as checkIndexOverflow,
|
|
100
|
+
asSequence3lsvgkvyzox0q as asSequence,
|
|
101
|
+
filter184huxd00uyfg as filter,
|
|
102
|
+
joinToStringooja5rkatz3u as joinToString_0,
|
|
103
|
+
isLetterOrDigit2kuxd9e198haf as isLetterOrDigit,
|
|
104
|
+
Char19o2r8palgjof as Char,
|
|
105
|
+
Collection1k04j3hzsbod0 as Collection,
|
|
99
106
|
getOrNull1go7ef9ldk0df as getOrNull,
|
|
100
107
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
101
108
|
import {
|
|
@@ -202,7 +209,7 @@ initMetadataForClass(FlattenResponse_0, 'FlattenResponse');
|
|
|
202
209
|
initMetadataForObject(OpenAPIV3Parser, 'OpenAPIV3Parser');
|
|
203
210
|
//endregion
|
|
204
211
|
function Common$className$lambda(it) {
|
|
205
|
-
return Companion_getInstance().
|
|
212
|
+
return Companion_getInstance().l25(it);
|
|
206
213
|
}
|
|
207
214
|
function Common$json$lambda($this$Json) {
|
|
208
215
|
$this$Json.r16_1 = true;
|
|
@@ -211,9 +218,9 @@ function Common$json$lambda($this$Json) {
|
|
|
211
218
|
function Common() {
|
|
212
219
|
Common_instance = this;
|
|
213
220
|
var tmp = this;
|
|
214
|
-
tmp.
|
|
221
|
+
tmp.d2e_1 = Json(VOID, Common$json$lambda);
|
|
215
222
|
}
|
|
216
|
-
protoOf(Common).
|
|
223
|
+
protoOf(Common).e2e = function (arg) {
|
|
217
224
|
// Inline function 'kotlin.collections.flatMap' call
|
|
218
225
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
219
226
|
var destination = ArrayList_init_$Create$();
|
|
@@ -229,7 +236,7 @@ protoOf(Common).x2a = function (arg) {
|
|
|
229
236
|
var tmp = destination;
|
|
230
237
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, Common$className$lambda);
|
|
231
238
|
};
|
|
232
|
-
protoOf(Common).
|
|
239
|
+
protoOf(Common).f2e = function (_this__u8e3s4) {
|
|
233
240
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
234
241
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
235
242
|
var destination = ArrayList_init_$Create$();
|
|
@@ -270,7 +277,7 @@ function Common_getInstance() {
|
|
|
270
277
|
return Common_instance;
|
|
271
278
|
}
|
|
272
279
|
function toProperties(_this__u8e3s4, $this) {
|
|
273
|
-
return to(_this__u8e3s4.
|
|
280
|
+
return to(_this__u8e3s4.n25_1.b1(), toSchemaOrReference(_this__u8e3s4.o25_1, $this));
|
|
274
281
|
}
|
|
275
282
|
function emit(_this__u8e3s4, $this, method) {
|
|
276
283
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -280,7 +287,7 @@ function emit(_this__u8e3s4, $this, method) {
|
|
|
280
287
|
while (_iterator__ex2g4s.h()) {
|
|
281
288
|
var element = _iterator__ex2g4s.i();
|
|
282
289
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
283
|
-
if (element.
|
|
290
|
+
if (element.t24_1.equals(method)) {
|
|
284
291
|
destination.e(element);
|
|
285
292
|
}
|
|
286
293
|
}
|
|
@@ -297,8 +304,8 @@ function emit(_this__u8e3s4, $this, method) {
|
|
|
297
304
|
return firstOrNull(destination_0);
|
|
298
305
|
}
|
|
299
306
|
function emit_0(_this__u8e3s4, $this) {
|
|
300
|
-
var tmp1_operationId = _this__u8e3s4.
|
|
301
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
307
|
+
var tmp1_operationId = _this__u8e3s4.s24_1.b1();
|
|
308
|
+
var tmp0_safe_receiver = _this__u8e3s4.r24_1;
|
|
302
309
|
var tmp;
|
|
303
310
|
var tmp_0 = tmp0_safe_receiver;
|
|
304
311
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -308,7 +315,7 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
308
315
|
}
|
|
309
316
|
var tmp2_description = tmp;
|
|
310
317
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
311
|
-
var tmp0 = _this__u8e3s4.
|
|
318
|
+
var tmp0 = _this__u8e3s4.y24_1;
|
|
312
319
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
313
320
|
var destination = ArrayList_init_$Create$();
|
|
314
321
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -317,8 +324,8 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
317
324
|
var element = _iterator__ex2g4s.i();
|
|
318
325
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
319
326
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
320
|
-
var tmp0_safe_receiver_0 = element.
|
|
321
|
-
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.
|
|
327
|
+
var tmp0_safe_receiver_0 = element.f25_1;
|
|
328
|
+
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.g25_1;
|
|
322
329
|
if (tmp0_safe_receiver_1 == null)
|
|
323
330
|
null;
|
|
324
331
|
else {
|
|
@@ -338,7 +345,7 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
338
345
|
}
|
|
339
346
|
var tmp3_consumes = tmp_1;
|
|
340
347
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
341
|
-
var tmp0_0 = _this__u8e3s4.
|
|
348
|
+
var tmp0_0 = _this__u8e3s4.z24_1;
|
|
342
349
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
343
350
|
var destination_0 = ArrayList_init_$Create$();
|
|
344
351
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -347,8 +354,8 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
347
354
|
var element_0 = _iterator__ex2g4s_0.i();
|
|
348
355
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
349
356
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
350
|
-
var tmp0_safe_receiver_2 = element_0.
|
|
351
|
-
var tmp0_safe_receiver_3 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.
|
|
357
|
+
var tmp0_safe_receiver_2 = element_0.c25_1;
|
|
358
|
+
var tmp0_safe_receiver_3 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.g25_1;
|
|
352
359
|
if (tmp0_safe_receiver_3 == null)
|
|
353
360
|
null;
|
|
354
361
|
else {
|
|
@@ -368,7 +375,7 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
368
375
|
}
|
|
369
376
|
var tmp4_produces = tmp_2;
|
|
370
377
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
371
|
-
var tmp0_1 = _this__u8e3s4.
|
|
378
|
+
var tmp0_1 = _this__u8e3s4.y24_1;
|
|
372
379
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
373
380
|
var destination_1 = ArrayList_init_$Create$();
|
|
374
381
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -377,7 +384,7 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
377
384
|
var element_1 = _iterator__ex2g4s_1.i();
|
|
378
385
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
379
386
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
380
|
-
var tmp0_safe_receiver_4 = element_1.
|
|
387
|
+
var tmp0_safe_receiver_4 = element_1.f25_1;
|
|
381
388
|
if (tmp0_safe_receiver_4 == null)
|
|
382
389
|
null;
|
|
383
390
|
else {
|
|
@@ -395,14 +402,14 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
395
402
|
var item = _iterator__ex2g4s_2.i();
|
|
396
403
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
397
404
|
var tmp0_in = ParameterLocation_BODY_getInstance();
|
|
398
|
-
var tmp1_schema = toSchemaOrReference(item.
|
|
399
|
-
var tmp2_required = !item.
|
|
405
|
+
var tmp1_schema = toSchemaOrReference(item.h25_1, OpenAPIV2Emitter_getInstance());
|
|
406
|
+
var tmp2_required = !item.h25_1.sm();
|
|
400
407
|
var tmp$ret$16 = new ParameterObject('RequestBody', tmp0_in, VOID, tmp2_required, tmp1_schema);
|
|
401
408
|
destination_2.e(tmp$ret$16);
|
|
402
409
|
}
|
|
403
410
|
var tmp_3 = destination_2;
|
|
404
411
|
// Inline function 'kotlin.collections.map' call
|
|
405
|
-
var this_3 = _this__u8e3s4.
|
|
412
|
+
var this_3 = _this__u8e3s4.v24_1;
|
|
406
413
|
// Inline function 'kotlin.collections.mapTo' call
|
|
407
414
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_3, 10));
|
|
408
415
|
var _iterator__ex2g4s_3 = this_3.g();
|
|
@@ -414,7 +421,7 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
414
421
|
}
|
|
415
422
|
var tmp_4 = plus(tmp_3, destination_3);
|
|
416
423
|
// Inline function 'kotlin.collections.map' call
|
|
417
|
-
var this_4 = _this__u8e3s4.
|
|
424
|
+
var this_4 = _this__u8e3s4.w24_1;
|
|
418
425
|
// Inline function 'kotlin.collections.mapTo' call
|
|
419
426
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_4, 10));
|
|
420
427
|
var _iterator__ex2g4s_4 = this_4.g();
|
|
@@ -426,7 +433,7 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
426
433
|
}
|
|
427
434
|
var tmp5_parameters = plus(tmp_4, destination_4);
|
|
428
435
|
// Inline function 'kotlin.collections.associate' call
|
|
429
|
-
var this_5 = _this__u8e3s4.
|
|
436
|
+
var this_5 = _this__u8e3s4.z24_1;
|
|
430
437
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_5, 10)), 16);
|
|
431
438
|
// Inline function 'kotlin.collections.associateTo' call
|
|
432
439
|
var destination_5 = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -434,8 +441,8 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
434
441
|
while (_iterator__ex2g4s_5.h()) {
|
|
435
442
|
var element_2 = _iterator__ex2g4s_5.i();
|
|
436
443
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
437
|
-
var tmp_5 = _StatusCode___init__impl__t1yi9q(element_2.
|
|
438
|
-
var tmp0_safe_receiver_5 = _this__u8e3s4.
|
|
444
|
+
var tmp_5 = _StatusCode___init__impl__t1yi9q(element_2.a25_1);
|
|
445
|
+
var tmp0_safe_receiver_5 = _this__u8e3s4.r24_1;
|
|
439
446
|
var tmp_6;
|
|
440
447
|
var tmp_7 = tmp0_safe_receiver_5;
|
|
441
448
|
if ((tmp_7 == null ? null : new Comment(tmp_7)) == null) {
|
|
@@ -444,9 +451,9 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
444
451
|
tmp_6 = _Comment___get_value__impl__8r3pla(tmp0_safe_receiver_5);
|
|
445
452
|
}
|
|
446
453
|
var tmp1_elvis_lhs = tmp_6;
|
|
447
|
-
var tmp4_description = tmp1_elvis_lhs == null ? _this__u8e3s4.
|
|
454
|
+
var tmp4_description = tmp1_elvis_lhs == null ? _this__u8e3s4.s24_1.b1() + ' ' + element_2.a25_1 + ' response' : tmp1_elvis_lhs;
|
|
448
455
|
// Inline function 'kotlin.collections.associate' call
|
|
449
|
-
var this_6 = element_2.
|
|
456
|
+
var this_6 = element_2.b25_1;
|
|
450
457
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_6, 10)), 16);
|
|
451
458
|
// Inline function 'kotlin.collections.associateTo' call
|
|
452
459
|
var destination_6 = LinkedHashMap_init_$Create$(capacity_0);
|
|
@@ -454,17 +461,17 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
454
461
|
while (_iterator__ex2g4s_6.h()) {
|
|
455
462
|
var element_3 = _iterator__ex2g4s_6.i();
|
|
456
463
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
457
|
-
var tmp_8 = element_3.
|
|
458
|
-
var tmp_9 = emitType_0(element_3.
|
|
459
|
-
var tmp_10 = emitFormat(element_3.
|
|
460
|
-
var tmp_11 = element_3.
|
|
464
|
+
var tmp_8 = element_3.n25_1.b1();
|
|
465
|
+
var tmp_9 = emitType_0(element_3.o25_1, OpenAPIV2Emitter_getInstance()).o2_1;
|
|
466
|
+
var tmp_10 = emitFormat(element_3.o25_1, OpenAPIV2Emitter_getInstance());
|
|
467
|
+
var tmp_11 = element_3.o25_1;
|
|
461
468
|
var tmp0_safe_receiver_6 = tmp_11 instanceof Iterable ? tmp_11 : null;
|
|
462
|
-
var tmp1_safe_receiver = tmp0_safe_receiver_6 == null ? null : tmp0_safe_receiver_6.
|
|
469
|
+
var tmp1_safe_receiver = tmp0_safe_receiver_6 == null ? null : tmp0_safe_receiver_6.x23_1;
|
|
463
470
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
464
471
|
var pair = to(tmp_8, new HeaderObject(VOID, tmp_9, tmp_10, tmp1_safe_receiver == null ? null : toSchemaOrReference(tmp1_safe_receiver, OpenAPIV2Emitter_getInstance())));
|
|
465
472
|
destination_6.l2(pair.ke_1, pair.le_1);
|
|
466
473
|
}
|
|
467
|
-
var tmp2_safe_receiver = element_2.
|
|
474
|
+
var tmp2_safe_receiver = element_2.c25_1;
|
|
468
475
|
var tmp_12;
|
|
469
476
|
if (tmp2_safe_receiver == null) {
|
|
470
477
|
tmp_12 = null;
|
|
@@ -472,7 +479,7 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
472
479
|
// Inline function 'kotlin.takeIf' call
|
|
473
480
|
var tmp_13;
|
|
474
481
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
475
|
-
var tmp_14 = tmp2_safe_receiver.
|
|
482
|
+
var tmp_14 = tmp2_safe_receiver.h25_1;
|
|
476
483
|
if (!(tmp_14 instanceof Unit)) {
|
|
477
484
|
tmp_13 = tmp2_safe_receiver;
|
|
478
485
|
} else {
|
|
@@ -487,10 +494,10 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
487
494
|
} else {
|
|
488
495
|
// Inline function 'kotlin.let' call
|
|
489
496
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
490
|
-
var ref = tmp3_safe_receiver.
|
|
497
|
+
var ref = tmp3_safe_receiver.h25_1;
|
|
491
498
|
var tmp_16;
|
|
492
499
|
if (ref instanceof Iterable) {
|
|
493
|
-
tmp_16 = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), toSchemaOrReference(ref.
|
|
500
|
+
tmp_16 = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), toSchemaOrReference(ref.x23_1, OpenAPIV2Emitter_getInstance()));
|
|
494
501
|
} else {
|
|
495
502
|
tmp_16 = toSchemaOrReference(ref, OpenAPIV2Emitter_getInstance());
|
|
496
503
|
}
|
|
@@ -507,10 +514,10 @@ function emitSegment(_this__u8e3s4, $this) {
|
|
|
507
514
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenAPIV2Emitter$emitSegment$lambda);
|
|
508
515
|
}
|
|
509
516
|
function emitParameter(_this__u8e3s4, $this, location) {
|
|
510
|
-
var tmp0_name = _this__u8e3s4.
|
|
511
|
-
var tmp1_type = emitType_0(_this__u8e3s4.
|
|
512
|
-
var tmp2_format = emitFormat(_this__u8e3s4.
|
|
513
|
-
var ref = _this__u8e3s4.
|
|
517
|
+
var tmp0_name = _this__u8e3s4.n25_1.b1();
|
|
518
|
+
var tmp1_type = emitType_0(_this__u8e3s4.o25_1, $this);
|
|
519
|
+
var tmp2_format = emitFormat(_this__u8e3s4.o25_1, $this);
|
|
520
|
+
var ref = _this__u8e3s4.o25_1;
|
|
514
521
|
var tmp;
|
|
515
522
|
if (ref instanceof Iterable) {
|
|
516
523
|
var emit = toSchemaOrReference(ref, $this);
|
|
@@ -529,22 +536,22 @@ function emitParameter(_this__u8e3s4, $this, location) {
|
|
|
529
536
|
tmp = null;
|
|
530
537
|
}
|
|
531
538
|
var tmp3_items = tmp;
|
|
532
|
-
var tmp4_required = !_this__u8e3s4.
|
|
539
|
+
var tmp4_required = !_this__u8e3s4.o25_1.sm();
|
|
533
540
|
return new ParameterObject(tmp0_name, location, VOID, tmp4_required, VOID, tmp1_type, tmp3_items, tmp2_format);
|
|
534
541
|
}
|
|
535
542
|
function toSchemaOrReference(_this__u8e3s4, $this) {
|
|
536
543
|
var tmp;
|
|
537
544
|
if (_this__u8e3s4 instanceof Dict) {
|
|
538
|
-
tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_OBJECT_getInstance(), toSchemaOrReference(_this__u8e3s4.
|
|
545
|
+
tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_OBJECT_getInstance(), toSchemaOrReference(_this__u8e3s4.h24_1, $this));
|
|
539
546
|
} else {
|
|
540
547
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
541
|
-
tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), toSchemaOrReference(_this__u8e3s4.
|
|
548
|
+
tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), toSchemaOrReference(_this__u8e3s4.x23_1, $this));
|
|
542
549
|
} else {
|
|
543
550
|
if (_this__u8e3s4 instanceof Custom) {
|
|
544
551
|
tmp = new ReferenceObject(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.v23_1));
|
|
545
552
|
} else {
|
|
546
553
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
547
|
-
var tmp1_type = emitType(_this__u8e3s4.
|
|
554
|
+
var tmp1_type = emitType(_this__u8e3s4.k24_1, $this);
|
|
548
555
|
var tmp2_format = emitFormat(_this__u8e3s4, $this);
|
|
549
556
|
tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, tmp2_format, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_type);
|
|
550
557
|
} else {
|
|
@@ -599,7 +606,7 @@ function emitType_0(_this__u8e3s4, $this) {
|
|
|
599
606
|
tmp = Type_ARRAY_getInstance();
|
|
600
607
|
} else {
|
|
601
608
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
602
|
-
tmp = emitType(_this__u8e3s4.
|
|
609
|
+
tmp = emitType(_this__u8e3s4.k24_1, $this);
|
|
603
610
|
} else {
|
|
604
611
|
if (_this__u8e3s4 instanceof Custom) {
|
|
605
612
|
tmp = Type_OBJECT_getInstance();
|
|
@@ -622,11 +629,11 @@ function emitType_0(_this__u8e3s4, $this) {
|
|
|
622
629
|
function emitFormat(_this__u8e3s4, $this) {
|
|
623
630
|
var tmp;
|
|
624
631
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
625
|
-
var t = _this__u8e3s4.
|
|
632
|
+
var t = _this__u8e3s4.k24_1;
|
|
626
633
|
var tmp_0;
|
|
627
634
|
if (t instanceof Number_0) {
|
|
628
635
|
var tmp_1;
|
|
629
|
-
switch (t.
|
|
636
|
+
switch (t.n24_1.p2_1) {
|
|
630
637
|
case 0:
|
|
631
638
|
tmp_1 = 'float';
|
|
632
639
|
break;
|
|
@@ -641,7 +648,7 @@ function emitFormat(_this__u8e3s4, $this) {
|
|
|
641
648
|
} else {
|
|
642
649
|
if (t instanceof Integer) {
|
|
643
650
|
var tmp_2;
|
|
644
|
-
switch (t.
|
|
651
|
+
switch (t.p24_1.p2_1) {
|
|
645
652
|
case 0:
|
|
646
653
|
tmp_2 = 'int32';
|
|
647
654
|
break;
|
|
@@ -670,10 +677,10 @@ function emitFormat(_this__u8e3s4, $this) {
|
|
|
670
677
|
function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
671
678
|
var tmp;
|
|
672
679
|
if (it instanceof Param) {
|
|
673
|
-
tmp = '{' + it.
|
|
680
|
+
tmp = '{' + it.s25_1.b1() + '}';
|
|
674
681
|
} else {
|
|
675
682
|
if (it instanceof Literal) {
|
|
676
|
-
tmp = it.
|
|
683
|
+
tmp = it.b26_1;
|
|
677
684
|
} else {
|
|
678
685
|
noWhenBranchMatchedException();
|
|
679
686
|
}
|
|
@@ -683,15 +690,23 @@ function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
|
683
690
|
function OpenAPIV2Emitter() {
|
|
684
691
|
OpenAPIV2Emitter_instance = this;
|
|
685
692
|
Emitter.call(this);
|
|
686
|
-
this.
|
|
693
|
+
this.h2e_1 = FileExtension_JSON_getInstance();
|
|
694
|
+
this.i2e_1 = null;
|
|
695
|
+
this.j2e_1 = '';
|
|
687
696
|
}
|
|
688
|
-
protoOf(OpenAPIV2Emitter).
|
|
689
|
-
return this.
|
|
697
|
+
protoOf(OpenAPIV2Emitter).d26 = function () {
|
|
698
|
+
return this.h2e_1;
|
|
699
|
+
};
|
|
700
|
+
protoOf(OpenAPIV2Emitter).e26 = function () {
|
|
701
|
+
return this.i2e_1;
|
|
702
|
+
};
|
|
703
|
+
protoOf(OpenAPIV2Emitter).w26 = function () {
|
|
704
|
+
return this.j2e_1;
|
|
690
705
|
};
|
|
691
|
-
protoOf(OpenAPIV2Emitter).
|
|
692
|
-
var tmp0 = Common_getInstance().
|
|
706
|
+
protoOf(OpenAPIV2Emitter).x26 = function (module_0, logger) {
|
|
707
|
+
var tmp0 = Common_getInstance().d2e_1;
|
|
693
708
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
694
|
-
var value = this.
|
|
709
|
+
var value = this.k2e(module_0);
|
|
695
710
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
696
711
|
var this_0 = tmp0.ip();
|
|
697
712
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -700,32 +715,33 @@ protoOf(OpenAPIV2Emitter).k23 = function (ast, logger) {
|
|
|
700
715
|
var tmp$ret$2 = tmp0.v15(tmp$ret$1, value);
|
|
701
716
|
return nonEmptyListOf(new Emitted('SwaggerObject', tmp$ret$2), []);
|
|
702
717
|
};
|
|
703
|
-
protoOf(OpenAPIV2Emitter).
|
|
704
|
-
return this.
|
|
718
|
+
protoOf(OpenAPIV2Emitter).b27 = function (type, module_0) {
|
|
719
|
+
return this.u27();
|
|
705
720
|
};
|
|
706
|
-
protoOf(OpenAPIV2Emitter).
|
|
707
|
-
return this.
|
|
721
|
+
protoOf(OpenAPIV2Emitter).l27 = function (enum_0, module_0) {
|
|
722
|
+
return this.u27();
|
|
708
723
|
};
|
|
709
|
-
protoOf(OpenAPIV2Emitter).
|
|
710
|
-
return this.
|
|
724
|
+
protoOf(OpenAPIV2Emitter).h27 = function (refined) {
|
|
725
|
+
return this.u27();
|
|
711
726
|
};
|
|
712
|
-
protoOf(OpenAPIV2Emitter).
|
|
713
|
-
return this.
|
|
727
|
+
protoOf(OpenAPIV2Emitter).p27 = function (endpoint) {
|
|
728
|
+
return this.u27();
|
|
714
729
|
};
|
|
715
|
-
protoOf(OpenAPIV2Emitter).
|
|
716
|
-
return this.
|
|
730
|
+
protoOf(OpenAPIV2Emitter).n27 = function (union) {
|
|
731
|
+
return this.u27();
|
|
717
732
|
};
|
|
718
|
-
protoOf(OpenAPIV2Emitter).
|
|
719
|
-
return this.
|
|
733
|
+
protoOf(OpenAPIV2Emitter).o27 = function (channel) {
|
|
734
|
+
return this.u27();
|
|
720
735
|
};
|
|
721
|
-
protoOf(OpenAPIV2Emitter).
|
|
736
|
+
protoOf(OpenAPIV2Emitter).k2e = function (module_0) {
|
|
722
737
|
var tmp = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, '0.0.0');
|
|
723
738
|
var tmp_0 = listOf('application/json');
|
|
724
739
|
var tmp_1 = listOf('application/json');
|
|
725
740
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
741
|
+
var tmp0 = module_0.f27_1;
|
|
726
742
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
727
743
|
var destination = ArrayList_init_$Create$();
|
|
728
|
-
var _iterator__ex2g4s =
|
|
744
|
+
var _iterator__ex2g4s = tmp0.g();
|
|
729
745
|
while (_iterator__ex2g4s.h()) {
|
|
730
746
|
var element = _iterator__ex2g4s.i();
|
|
731
747
|
if (element instanceof Endpoint) {
|
|
@@ -739,7 +755,7 @@ protoOf(OpenAPIV2Emitter).b2b = function (ast) {
|
|
|
739
755
|
while (_iterator__ex2g4s_0.h()) {
|
|
740
756
|
var element_0 = _iterator__ex2g4s_0.i();
|
|
741
757
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
742
|
-
var key = element_0.
|
|
758
|
+
var key = element_0.u24_1;
|
|
743
759
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
744
760
|
var value = destination_0.e2(key);
|
|
745
761
|
var tmp_2;
|
|
@@ -785,9 +801,9 @@ protoOf(OpenAPIV2Emitter).b2b = function (ast) {
|
|
|
785
801
|
var item_0 = _iterator__ex2g4s_3.i();
|
|
786
802
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
787
803
|
var tmp0_in = ParameterLocation_PATH_getInstance();
|
|
788
|
-
var tmp1_name = item_0.
|
|
789
|
-
var tmp2_type = emitType_0(item_0.
|
|
790
|
-
var tmp3_format = emitFormat(item_0.
|
|
804
|
+
var tmp1_name = item_0.s25_1.b1();
|
|
805
|
+
var tmp2_type = emitType_0(item_0.t25_1, OpenAPIV2Emitter_getInstance());
|
|
806
|
+
var tmp3_format = emitFormat(item_0.t25_1, OpenAPIV2Emitter_getInstance());
|
|
791
807
|
var tmp$ret$12 = new ParameterObject(tmp1_name, tmp0_in, VOID, VOID, VOID, tmp2_type, VOID, tmp3_format);
|
|
792
808
|
destination_3.e(tmp$ret$12);
|
|
793
809
|
}
|
|
@@ -804,9 +820,10 @@ protoOf(OpenAPIV2Emitter).b2b = function (ast) {
|
|
|
804
820
|
}
|
|
805
821
|
var tmp_4 = toMap(destination_1);
|
|
806
822
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
823
|
+
var tmp0_0 = module_0.f27_1;
|
|
807
824
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
808
825
|
var destination_4 = ArrayList_init_$Create$();
|
|
809
|
-
var _iterator__ex2g4s_4 =
|
|
826
|
+
var _iterator__ex2g4s_4 = tmp0_0.g();
|
|
810
827
|
while (_iterator__ex2g4s_4.h()) {
|
|
811
828
|
var element_2 = _iterator__ex2g4s_4.i();
|
|
812
829
|
if (element_2 instanceof Refined) {
|
|
@@ -821,18 +838,19 @@ protoOf(OpenAPIV2Emitter).b2b = function (ast) {
|
|
|
821
838
|
while (_iterator__ex2g4s_5.h()) {
|
|
822
839
|
var element_3 = _iterator__ex2g4s_5.i();
|
|
823
840
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
824
|
-
var tmp_5 = element_3.
|
|
841
|
+
var tmp_5 = element_3.o26_1.b1();
|
|
825
842
|
var tmp0_type = Type_STRING_getInstance();
|
|
826
|
-
var tmp1_pattern = element_3.
|
|
843
|
+
var tmp1_pattern = element_3.p26_1.j27_1;
|
|
827
844
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
828
845
|
var pair = to(tmp_5, new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_pattern, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_type));
|
|
829
846
|
destination_5.l2(pair.ke_1, pair.le_1);
|
|
830
847
|
}
|
|
831
848
|
var tmp_6 = destination_5;
|
|
832
849
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
850
|
+
var tmp0_1 = module_0.f27_1;
|
|
833
851
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
834
852
|
var destination_6 = ArrayList_init_$Create$();
|
|
835
|
-
var _iterator__ex2g4s_6 =
|
|
853
|
+
var _iterator__ex2g4s_6 = tmp0_1.g();
|
|
836
854
|
while (_iterator__ex2g4s_6.h()) {
|
|
837
855
|
var element_4 = _iterator__ex2g4s_6.i();
|
|
838
856
|
if (element_4 instanceof Type) {
|
|
@@ -847,9 +865,9 @@ protoOf(OpenAPIV2Emitter).b2b = function (ast) {
|
|
|
847
865
|
while (_iterator__ex2g4s_7.h()) {
|
|
848
866
|
var element_5 = _iterator__ex2g4s_7.i();
|
|
849
867
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
850
|
-
var tmp_7 = element_5.
|
|
868
|
+
var tmp_7 = element_5.k26_1.b1();
|
|
851
869
|
// Inline function 'kotlin.collections.associate' call
|
|
852
|
-
var this_0 = element_5.
|
|
870
|
+
var this_0 = element_5.l26_1.g27_1;
|
|
853
871
|
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
854
872
|
// Inline function 'kotlin.collections.associateTo' call
|
|
855
873
|
var destination_8 = LinkedHashMap_init_$Create$(capacity_1);
|
|
@@ -862,14 +880,14 @@ protoOf(OpenAPIV2Emitter).b2b = function (ast) {
|
|
|
862
880
|
destination_8.l2(pair_0.ke_1, pair_0.le_1);
|
|
863
881
|
}
|
|
864
882
|
// Inline function 'kotlin.collections.filter' call
|
|
865
|
-
var
|
|
883
|
+
var tmp0_2 = element_5.l26_1.g27_1;
|
|
866
884
|
// Inline function 'kotlin.collections.filterTo' call
|
|
867
885
|
var destination_9 = ArrayList_init_$Create$();
|
|
868
|
-
var _iterator__ex2g4s_9 =
|
|
886
|
+
var _iterator__ex2g4s_9 = tmp0_2.g();
|
|
869
887
|
while (_iterator__ex2g4s_9.h()) {
|
|
870
888
|
var element_7 = _iterator__ex2g4s_9.i();
|
|
871
889
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
872
|
-
if (!element_7.
|
|
890
|
+
if (!element_7.o25_1.sm()) {
|
|
873
891
|
destination_9.e(element_7);
|
|
874
892
|
}
|
|
875
893
|
}
|
|
@@ -880,7 +898,7 @@ protoOf(OpenAPIV2Emitter).b2b = function (ast) {
|
|
|
880
898
|
while (_iterator__ex2g4s_10.h()) {
|
|
881
899
|
var item_1 = _iterator__ex2g4s_10.i();
|
|
882
900
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
883
|
-
var tmp$ret$31 = item_1.
|
|
901
|
+
var tmp$ret$31 = item_1.n25_1.b1();
|
|
884
902
|
destination_10.e(tmp$ret$31);
|
|
885
903
|
}
|
|
886
904
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -899,9 +917,10 @@ protoOf(OpenAPIV2Emitter).b2b = function (ast) {
|
|
|
899
917
|
}
|
|
900
918
|
var tmp_9 = plus_0(tmp_6, destination_7);
|
|
901
919
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
920
|
+
var tmp0_3 = module_0.f27_1;
|
|
902
921
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
903
922
|
var destination_11 = ArrayList_init_$Create$();
|
|
904
|
-
var _iterator__ex2g4s_11 =
|
|
923
|
+
var _iterator__ex2g4s_11 = tmp0_3.g();
|
|
905
924
|
while (_iterator__ex2g4s_11.h()) {
|
|
906
925
|
var element_8 = _iterator__ex2g4s_11.i();
|
|
907
926
|
if (element_8 instanceof Enum) {
|
|
@@ -916,10 +935,10 @@ protoOf(OpenAPIV2Emitter).b2b = function (ast) {
|
|
|
916
935
|
while (_iterator__ex2g4s_12.h()) {
|
|
917
936
|
var element_9 = _iterator__ex2g4s_12.i();
|
|
918
937
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
919
|
-
var tmp_10 = element_9.
|
|
938
|
+
var tmp_10 = element_9.r26_1.b1();
|
|
920
939
|
var tmp0_type_0 = Type_STRING_getInstance();
|
|
921
940
|
// Inline function 'kotlin.collections.map' call
|
|
922
|
-
var this_1 = element_9.
|
|
941
|
+
var this_1 = element_9.s26_1;
|
|
923
942
|
// Inline function 'kotlin.collections.mapTo' call
|
|
924
943
|
var destination_13 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
925
944
|
var _iterator__ex2g4s_13 = this_1.g();
|
|
@@ -1064,7 +1083,7 @@ function parseEndpoints(_this__u8e3s4, $this) {
|
|
|
1064
1083
|
tmp_1 = toReference(_this__u8e3s4, OpenAPIV2Parser_instance, schema, isNullable);
|
|
1065
1084
|
} else {
|
|
1066
1085
|
if (schema instanceof SchemaObject) {
|
|
1067
|
-
tmp_1 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, schema, Common_getInstance().
|
|
1086
|
+
tmp_1 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, schema, Common_getInstance().e2e([name, 'RequestBody']), isNullable);
|
|
1068
1087
|
} else {
|
|
1069
1088
|
if (schema == null) {
|
|
1070
1089
|
var reason = 'Not yet implemented';
|
|
@@ -1178,7 +1197,7 @@ function parseEndpoints(_this__u8e3s4, $this) {
|
|
|
1178
1197
|
tmp_10 = toReference(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver, false);
|
|
1179
1198
|
} else {
|
|
1180
1199
|
if (tmp1_safe_receiver instanceof SchemaObject) {
|
|
1181
|
-
tmp_10 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
1200
|
+
tmp_10 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver, Common_getInstance().e2e([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']), false);
|
|
1182
1201
|
} else {
|
|
1183
1202
|
noWhenBranchMatchedException();
|
|
1184
1203
|
}
|
|
@@ -1198,13 +1217,13 @@ function parseEndpoints(_this__u8e3s4, $this) {
|
|
|
1198
1217
|
while (_iterator__ex2g4s_12.h()) {
|
|
1199
1218
|
var e = _iterator__ex2g4s_12.i();
|
|
1200
1219
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
1201
|
-
var key = to(e.
|
|
1220
|
+
var key = to(e.a25_1, e.c25_1);
|
|
1202
1221
|
if (set.e(key)) {
|
|
1203
1222
|
list_1.e(e);
|
|
1204
1223
|
}
|
|
1205
1224
|
}
|
|
1206
1225
|
var responses = list_1;
|
|
1207
|
-
var list_2 = listOf(new Endpoint(null, new DefinitionIdentifier(name), method, segments, query, headers, emptyList(), requests, responses));
|
|
1226
|
+
var list_2 = listOf(new Endpoint(null, new DefinitionIdentifier(sanitize(name)), method, segments, query, headers, emptyList(), requests, responses));
|
|
1208
1227
|
addAll(destination_0, list_2);
|
|
1209
1228
|
}
|
|
1210
1229
|
var list_3 = destination_0;
|
|
@@ -1259,7 +1278,7 @@ function parseDefinitions(_this__u8e3s4, $this) {
|
|
|
1259
1278
|
while (_iterator__ex2g4s_1.h()) {
|
|
1260
1279
|
var element_0 = _iterator__ex2g4s_1.i();
|
|
1261
1280
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseDefinitions.<anonymous>' call
|
|
1262
|
-
var list = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, element_0.b1(), Common_getInstance().
|
|
1281
|
+
var list = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, element_0.b1(), Common_getInstance().e2e([element_0.a1()]));
|
|
1263
1282
|
addAll(destination_0, list);
|
|
1264
1283
|
}
|
|
1265
1284
|
return destination_0;
|
|
@@ -1507,7 +1526,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1507
1526
|
}
|
|
1508
1527
|
tmp = tmp_0;
|
|
1509
1528
|
} else if (!(schemaObject.a1o_1 == null)) {
|
|
1510
|
-
var tmp_5 = new DefinitionIdentifier(name);
|
|
1529
|
+
var tmp_5 = new DefinitionIdentifier(sanitize(name));
|
|
1511
1530
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1512
1531
|
var tmp0_elvis_lhs = schemaObject.a1o_1;
|
|
1513
1532
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1538,7 +1557,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1538
1557
|
while (_iterator__ex2g4s_0.h()) {
|
|
1539
1558
|
var e = _iterator__ex2g4s_0.i();
|
|
1540
1559
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.flatten.<anonymous>' call
|
|
1541
|
-
var key = e.
|
|
1560
|
+
var key = e.n25_1;
|
|
1542
1561
|
if (set.e(key)) {
|
|
1543
1562
|
list_0.e(e);
|
|
1544
1563
|
}
|
|
@@ -1577,7 +1596,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1577
1596
|
tmp_9 = emptyList();
|
|
1578
1597
|
} else {
|
|
1579
1598
|
if (value instanceof SchemaObject) {
|
|
1580
|
-
tmp_9 = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().
|
|
1599
|
+
tmp_9 = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().e2e([name, key_0]));
|
|
1581
1600
|
} else {
|
|
1582
1601
|
noWhenBranchMatchedException();
|
|
1583
1602
|
}
|
|
@@ -1609,7 +1628,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1609
1628
|
// Inline function 'kotlin.let' call
|
|
1610
1629
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.flatten.<anonymous>' call
|
|
1611
1630
|
var it = toSet(destination_2);
|
|
1612
|
-
tmp = listOf(new Enum(null, new DefinitionIdentifier(name), it));
|
|
1631
|
+
tmp = listOf(new Enum(null, new DefinitionIdentifier(sanitize(name)), it));
|
|
1613
1632
|
} else {
|
|
1614
1633
|
var tmp5_subject = schemaObject.y1n_1;
|
|
1615
1634
|
var tmp_10;
|
|
@@ -1635,12 +1654,12 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1635
1654
|
var key_1 = element_2.a1();
|
|
1636
1655
|
// Inline function 'kotlin.collections.component2' call
|
|
1637
1656
|
var value_0 = element_2.b1();
|
|
1638
|
-
var list_3 = flatten_0(_this__u8e3s4, OpenAPIV2Parser_instance, value_0, Common_getInstance().
|
|
1657
|
+
var list_3 = flatten_0(_this__u8e3s4, OpenAPIV2Parser_instance, value_0, Common_getInstance().e2e([name, key_1]));
|
|
1639
1658
|
addAll(destination_3, list_3);
|
|
1640
1659
|
}
|
|
1641
1660
|
|
|
1642
1661
|
var fields = destination_3;
|
|
1643
|
-
var schema = listOf(new Type(null, new DefinitionIdentifier(name), new Shape(toField_0(_this__u8e3s4, $this, schemaObject, name)), emptyList()));
|
|
1662
|
+
var schema = listOf(new Type(null, new DefinitionIdentifier(sanitize(name)), new Shape(toField_0(_this__u8e3s4, $this, schemaObject, name)), emptyList()));
|
|
1644
1663
|
tmp_10 = plus(schema, fields);
|
|
1645
1664
|
break;
|
|
1646
1665
|
case 4:
|
|
@@ -1650,7 +1669,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1650
1669
|
tmp_11 = emptyList();
|
|
1651
1670
|
} else {
|
|
1652
1671
|
if (it_0 instanceof SchemaObject) {
|
|
1653
|
-
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().
|
|
1672
|
+
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().e2e([name, 'Array']));
|
|
1654
1673
|
} else {
|
|
1655
1674
|
if (it_0 == null) {
|
|
1656
1675
|
tmp_11 = emptyList();
|
|
@@ -1707,7 +1726,7 @@ function toReference(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
1707
1726
|
}
|
|
1708
1727
|
tmp = tmp_0;
|
|
1709
1728
|
} else if (!(schema.x1n_1 == null)) {
|
|
1710
|
-
tmp = new Custom(Common_getInstance().
|
|
1729
|
+
tmp = new Custom(sanitize(Common_getInstance().e2e([getReference(reference, OpenAPIV2Parser_instance)])), isNullable);
|
|
1711
1730
|
} else if (isPrimitive(schema.y1n_1)) {
|
|
1712
1731
|
tmp = new Primitive(toPrimitive(ensureNotNull(schema.y1n_1), OpenAPIV2Parser_instance, schema.f1n_1), isNullable);
|
|
1713
1732
|
} else {
|
|
@@ -1720,7 +1739,7 @@ function toReference(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
1720
1739
|
tmp_2 = toIterable(toReference(_this__u8e3s4, OpenAPIV2Parser_instance, items, false), isNullable);
|
|
1721
1740
|
} else {
|
|
1722
1741
|
if (items instanceof SchemaObject) {
|
|
1723
|
-
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, items, Common_getInstance().
|
|
1742
|
+
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, items, Common_getInstance().e2e([getReference(reference, OpenAPIV2Parser_instance), 'Array']), isNullable), isNullable);
|
|
1724
1743
|
} else {
|
|
1725
1744
|
if (items == null) {
|
|
1726
1745
|
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.h1o_1);
|
|
@@ -1734,10 +1753,10 @@ function toReference(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
1734
1753
|
} else {
|
|
1735
1754
|
var tmp_3;
|
|
1736
1755
|
if (refOrSchema instanceof SchemaObject) {
|
|
1737
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
1756
|
+
tmp_3 = new Custom(sanitize(Common_getInstance().e2e([getReference(reference, OpenAPIV2Parser_instance)])), isNullable);
|
|
1738
1757
|
} else {
|
|
1739
1758
|
if (refOrSchema instanceof ReferenceObject) {
|
|
1740
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
1759
|
+
tmp_3 = new Custom(sanitize(Common_getInstance().e2e([getReference(refOrSchema, OpenAPIV2Parser_instance)])), isNullable);
|
|
1741
1760
|
} else {
|
|
1742
1761
|
noWhenBranchMatchedException();
|
|
1743
1762
|
}
|
|
@@ -1788,9 +1807,9 @@ function toReference_0(_this__u8e3s4, $this, schema, name, isNullable) {
|
|
|
1788
1807
|
} else if (!(schema.x1n_1 == null)) {
|
|
1789
1808
|
var tmp_3;
|
|
1790
1809
|
if (!(schema.c1o_1 == null)) {
|
|
1791
|
-
tmp_3 = new Dict(new Custom(name, false), isNullable);
|
|
1810
|
+
tmp_3 = new Dict(new Custom(sanitize(name), false), isNullable);
|
|
1792
1811
|
} else {
|
|
1793
|
-
tmp_3 = new Custom(name, isNullable);
|
|
1812
|
+
tmp_3 = new Custom(sanitize(name), isNullable);
|
|
1794
1813
|
}
|
|
1795
1814
|
tmp = tmp_3;
|
|
1796
1815
|
} else {
|
|
@@ -1824,9 +1843,9 @@ function toReference_0(_this__u8e3s4, $this, schema, name, isNullable) {
|
|
|
1824
1843
|
tmp_6 = tmp_8;
|
|
1825
1844
|
} else {
|
|
1826
1845
|
if (!(schema.c1o_1 == null)) {
|
|
1827
|
-
new Dict(new Custom(name, isNullable), false);
|
|
1846
|
+
new Dict(new Custom(sanitize(name), isNullable), false);
|
|
1828
1847
|
}
|
|
1829
|
-
tmp_6 = new Custom(name, isNullable);
|
|
1848
|
+
tmp_6 = new Custom(sanitize(name), isNullable);
|
|
1830
1849
|
}
|
|
1831
1850
|
|
|
1832
1851
|
tmp_4 = tmp_6;
|
|
@@ -1905,7 +1924,7 @@ function toOperationList(_this__u8e3s4, $this) {
|
|
|
1905
1924
|
var tmp$ret$0 = tmp_0;
|
|
1906
1925
|
result.l2(element, tmp$ret$0);
|
|
1907
1926
|
}
|
|
1908
|
-
return tmp.
|
|
1927
|
+
return tmp.f2e(result);
|
|
1909
1928
|
}
|
|
1910
1929
|
function getReference(_this__u8e3s4, $this) {
|
|
1911
1930
|
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.h1o_1), ['/']).k(2);
|
|
@@ -1988,7 +2007,7 @@ function toField_0(_this__u8e3s4, $this, schema, name) {
|
|
|
1988
2007
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
1989
2008
|
var tmp;
|
|
1990
2009
|
if (value instanceof SchemaObject) {
|
|
1991
|
-
tmp = new Field(new FieldIdentifier(key), !(value.x1n_1 == null) ? toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().
|
|
2010
|
+
tmp = new Field(new FieldIdentifier(key), !(value.x1n_1 == null) ? toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().e2e([name, key]), isNullable) : equals(value.y1n_1, Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().e2e([name, key, 'Array']), isNullable) : toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().e2e([name, key]), isNullable));
|
|
1992
2011
|
} else {
|
|
1993
2012
|
if (value instanceof ReferenceObject) {
|
|
1994
2013
|
tmp = new Field(new FieldIdentifier(key), toReference(_this__u8e3s4, OpenAPIV2Parser_instance, value, isNullable));
|
|
@@ -2009,7 +2028,7 @@ function toField_1(_this__u8e3s4, $this, parameter, name) {
|
|
|
2009
2028
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
2010
2029
|
var tmp;
|
|
2011
2030
|
if (!(parameter.z1j_1 == null)) {
|
|
2012
|
-
tmp = new Custom(Common_getInstance().
|
|
2031
|
+
tmp = new Custom(sanitize(Common_getInstance().e2e([name, 'Parameter', it.e1j_1])), isNullable);
|
|
2013
2032
|
} else {
|
|
2014
2033
|
var type = it.j1j_1;
|
|
2015
2034
|
var tmp_0;
|
|
@@ -2054,7 +2073,7 @@ function toField_1(_this__u8e3s4, $this, parameter, name) {
|
|
|
2054
2073
|
} else {
|
|
2055
2074
|
// Inline function 'kotlin.let' call
|
|
2056
2075
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.toField.<anonymous>.<anonymous>' call
|
|
2057
|
-
tmp_3 = new Primitive(tmp3_safe_receiver, isNullable);
|
|
2076
|
+
tmp_3 = new Iterable(new Primitive(tmp3_safe_receiver, false), isNullable);
|
|
2058
2077
|
}
|
|
2059
2078
|
|
|
2060
2079
|
var tmp4_elvis_lhs = tmp_3;
|
|
@@ -2179,7 +2198,7 @@ function toName(_this__u8e3s4, $this) {
|
|
|
2179
2198
|
} else {
|
|
2180
2199
|
// Inline function 'kotlin.let' call
|
|
2181
2200
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.toName.<anonymous>' call
|
|
2182
|
-
tmp = Common_getInstance().
|
|
2201
|
+
tmp = Common_getInstance().e2e([tmp0_safe_receiver]);
|
|
2183
2202
|
}
|
|
2184
2203
|
return tmp;
|
|
2185
2204
|
}
|
|
@@ -2201,21 +2220,21 @@ function toName_0(_this__u8e3s4, $this) {
|
|
|
2201
2220
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenAPIV2Parser$toName$lambda);
|
|
2202
2221
|
}
|
|
2203
2222
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
2204
|
-
this.
|
|
2205
|
-
this.
|
|
2206
|
-
this.
|
|
2207
|
-
this.
|
|
2208
|
-
this.
|
|
2223
|
+
this.l2e_1 = path;
|
|
2224
|
+
this.m2e_1 = pathItem;
|
|
2225
|
+
this.n2e_1 = method;
|
|
2226
|
+
this.o2e_1 = operation;
|
|
2227
|
+
this.p2e_1 = type;
|
|
2209
2228
|
}
|
|
2210
2229
|
protoOf(FlattenRequest).toString = function () {
|
|
2211
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
2230
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.l2e_1) + ', pathItem=' + this.m2e_1.toString() + ', method=' + this.n2e_1.toString() + ', operation=' + this.o2e_1.toString() + ', type=' + this.p2e_1 + ')';
|
|
2212
2231
|
};
|
|
2213
2232
|
protoOf(FlattenRequest).hashCode = function () {
|
|
2214
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2215
|
-
result = imul(result, 31) + this.
|
|
2216
|
-
result = imul(result, 31) + this.
|
|
2217
|
-
result = imul(result, 31) + this.
|
|
2218
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2233
|
+
var result = Path__hashCode_impl_go73kd(this.l2e_1);
|
|
2234
|
+
result = imul(result, 31) + this.m2e_1.hashCode() | 0;
|
|
2235
|
+
result = imul(result, 31) + this.n2e_1.hashCode() | 0;
|
|
2236
|
+
result = imul(result, 31) + this.o2e_1.hashCode() | 0;
|
|
2237
|
+
result = imul(result, 31) + getStringHashCode(this.p2e_1) | 0;
|
|
2219
2238
|
return result;
|
|
2220
2239
|
};
|
|
2221
2240
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -2224,15 +2243,15 @@ protoOf(FlattenRequest).equals = function (other) {
|
|
|
2224
2243
|
if (!(other instanceof FlattenRequest))
|
|
2225
2244
|
return false;
|
|
2226
2245
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
2227
|
-
if (!(this.
|
|
2246
|
+
if (!(this.l2e_1 === tmp0_other_with_cast.l2e_1))
|
|
2228
2247
|
return false;
|
|
2229
|
-
if (!this.
|
|
2248
|
+
if (!this.m2e_1.equals(tmp0_other_with_cast.m2e_1))
|
|
2230
2249
|
return false;
|
|
2231
|
-
if (!this.
|
|
2250
|
+
if (!this.n2e_1.equals(tmp0_other_with_cast.n2e_1))
|
|
2232
2251
|
return false;
|
|
2233
|
-
if (!this.
|
|
2252
|
+
if (!this.o2e_1.equals(tmp0_other_with_cast.o2e_1))
|
|
2234
2253
|
return false;
|
|
2235
|
-
if (!(this.
|
|
2254
|
+
if (!(this.p2e_1 === tmp0_other_with_cast.p2e_1))
|
|
2236
2255
|
return false;
|
|
2237
2256
|
return true;
|
|
2238
2257
|
};
|
|
@@ -2294,25 +2313,25 @@ function flatMapRequests(_this__u8e3s4, $this, f) {
|
|
|
2294
2313
|
return destination_2;
|
|
2295
2314
|
}
|
|
2296
2315
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
2297
|
-
this.
|
|
2298
|
-
this.
|
|
2299
|
-
this.
|
|
2300
|
-
this.
|
|
2301
|
-
this.
|
|
2302
|
-
this.
|
|
2303
|
-
this.
|
|
2316
|
+
this.q2e_1 = path;
|
|
2317
|
+
this.r2e_1 = pathItem;
|
|
2318
|
+
this.s2e_1 = method;
|
|
2319
|
+
this.t2e_1 = operation;
|
|
2320
|
+
this.u2e_1 = statusCode;
|
|
2321
|
+
this.v2e_1 = response;
|
|
2322
|
+
this.w2e_1 = type;
|
|
2304
2323
|
}
|
|
2305
2324
|
protoOf(FlattenResponse).toString = function () {
|
|
2306
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
2325
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.q2e_1) + ', pathItem=' + this.r2e_1.toString() + ', method=' + this.s2e_1.toString() + ', operation=' + this.t2e_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy(this.u2e_1) + ', response=' + toString(this.v2e_1) + ', type=' + this.w2e_1 + ')';
|
|
2307
2326
|
};
|
|
2308
2327
|
protoOf(FlattenResponse).hashCode = function () {
|
|
2309
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2310
|
-
result = imul(result, 31) + this.
|
|
2311
|
-
result = imul(result, 31) + this.
|
|
2312
|
-
result = imul(result, 31) + this.
|
|
2313
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
2314
|
-
result = imul(result, 31) + hashCode(this.
|
|
2315
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2328
|
+
var result = Path__hashCode_impl_go73kd(this.q2e_1);
|
|
2329
|
+
result = imul(result, 31) + this.r2e_1.hashCode() | 0;
|
|
2330
|
+
result = imul(result, 31) + this.s2e_1.hashCode() | 0;
|
|
2331
|
+
result = imul(result, 31) + this.t2e_1.hashCode() | 0;
|
|
2332
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.u2e_1) | 0;
|
|
2333
|
+
result = imul(result, 31) + hashCode(this.v2e_1) | 0;
|
|
2334
|
+
result = imul(result, 31) + getStringHashCode(this.w2e_1) | 0;
|
|
2316
2335
|
return result;
|
|
2317
2336
|
};
|
|
2318
2337
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -2321,19 +2340,19 @@ protoOf(FlattenResponse).equals = function (other) {
|
|
|
2321
2340
|
if (!(other instanceof FlattenResponse))
|
|
2322
2341
|
return false;
|
|
2323
2342
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
2324
|
-
if (!(this.
|
|
2343
|
+
if (!(this.q2e_1 === tmp0_other_with_cast.q2e_1))
|
|
2325
2344
|
return false;
|
|
2326
|
-
if (!this.
|
|
2345
|
+
if (!this.r2e_1.equals(tmp0_other_with_cast.r2e_1))
|
|
2327
2346
|
return false;
|
|
2328
|
-
if (!this.
|
|
2347
|
+
if (!this.s2e_1.equals(tmp0_other_with_cast.s2e_1))
|
|
2329
2348
|
return false;
|
|
2330
|
-
if (!this.
|
|
2349
|
+
if (!this.t2e_1.equals(tmp0_other_with_cast.t2e_1))
|
|
2331
2350
|
return false;
|
|
2332
|
-
if (!(this.
|
|
2351
|
+
if (!(this.u2e_1 === tmp0_other_with_cast.u2e_1))
|
|
2333
2352
|
return false;
|
|
2334
|
-
if (!equals(this.
|
|
2353
|
+
if (!equals(this.v2e_1, tmp0_other_with_cast.v2e_1))
|
|
2335
2354
|
return false;
|
|
2336
|
-
if (!(this.
|
|
2355
|
+
if (!(this.w2e_1 === tmp0_other_with_cast.w2e_1))
|
|
2337
2356
|
return false;
|
|
2338
2357
|
return true;
|
|
2339
2358
|
};
|
|
@@ -2421,9 +2440,9 @@ function OpenAPIV2Parser$parse$lambda($strict) {
|
|
|
2421
2440
|
}
|
|
2422
2441
|
function OpenAPIV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
2423
2442
|
return function ($this$flatMapRequests) {
|
|
2424
|
-
var parameters = plus(resolveParameters_0($this_parseParameters, OpenAPIV2Parser_instance, $this$flatMapRequests.
|
|
2425
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2426
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2443
|
+
var parameters = plus(resolveParameters_0($this_parseParameters, OpenAPIV2Parser_instance, $this$flatMapRequests.m2e_1), resolveParameters($this_parseParameters, OpenAPIV2Parser_instance, $this$flatMapRequests.o2e_1));
|
|
2444
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.o2e_1, OpenAPIV2Parser_instance);
|
|
2445
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.l2e_1, OpenAPIV2Parser_instance) + $this$flatMapRequests.n2e_1.o2_1 : tmp0_elvis_lhs;
|
|
2427
2446
|
// Inline function 'kotlin.collections.filter' call
|
|
2428
2447
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2429
2448
|
var destination = ArrayList_init_$Create$();
|
|
@@ -2449,7 +2468,7 @@ function OpenAPIV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
2449
2468
|
} else {
|
|
2450
2469
|
// Inline function 'kotlin.let' call
|
|
2451
2470
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
2452
|
-
tmp = flatten_0($this_parseParameters, OpenAPIV2Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
2471
|
+
tmp = flatten_0($this_parseParameters, OpenAPIV2Parser_instance, tmp0_safe_receiver, Common_getInstance().e2e([name, 'Parameter', element_0.e1j_1]));
|
|
2453
2472
|
}
|
|
2454
2473
|
var tmp1_elvis_lhs = tmp;
|
|
2455
2474
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -2460,9 +2479,9 @@ function OpenAPIV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
2460
2479
|
}
|
|
2461
2480
|
function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
2462
2481
|
return function ($this$flatMapRequests) {
|
|
2463
|
-
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenAPIV2Parser_instance, $this$flatMapRequests.
|
|
2464
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2465
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2482
|
+
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenAPIV2Parser_instance, $this$flatMapRequests.m2e_1), resolveParameters($this_parseRequestBody, OpenAPIV2Parser_instance, $this$flatMapRequests.o2e_1));
|
|
2483
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.o2e_1, OpenAPIV2Parser_instance);
|
|
2484
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.l2e_1, OpenAPIV2Parser_instance) + $this$flatMapRequests.n2e_1.o2_1 : tmp0_elvis_lhs;
|
|
2466
2485
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2467
2486
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2468
2487
|
var destination = ArrayList_init_$Create$();
|
|
@@ -2472,7 +2491,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2472
2491
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
2473
2492
|
var tmp;
|
|
2474
2493
|
if (!(element.z1j_1 == null)) {
|
|
2475
|
-
var tmp_0 = new DefinitionIdentifier(Common_getInstance().
|
|
2494
|
+
var tmp_0 = new DefinitionIdentifier(sanitize(Common_getInstance().e2e([name, 'Parameter', element.e1j_1])));
|
|
2476
2495
|
// Inline function 'kotlin.collections.map' call
|
|
2477
2496
|
var this_0 = ensureNotNull(element.z1j_1);
|
|
2478
2497
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2492,7 +2511,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2492
2511
|
addAll(destination, list);
|
|
2493
2512
|
}
|
|
2494
2513
|
var enums = destination;
|
|
2495
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
2514
|
+
var tmp1_safe_receiver = $this$flatMapRequests.o2e_1.b1m_1;
|
|
2496
2515
|
var tmp_1;
|
|
2497
2516
|
if (tmp1_safe_receiver == null) {
|
|
2498
2517
|
tmp_1 = null;
|
|
@@ -2547,7 +2566,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2547
2566
|
switch (tmp0_subject == null ? -1 : tmp0_subject.p2_1) {
|
|
2548
2567
|
case -1:
|
|
2549
2568
|
case 5:
|
|
2550
|
-
tmp_5 = flatten($this_parseRequestBody, OpenAPIV2Parser_instance, schema, Common_getInstance().
|
|
2569
|
+
tmp_5 = flatten($this_parseRequestBody, OpenAPIV2Parser_instance, schema, Common_getInstance().e2e([name, 'RequestBody']));
|
|
2551
2570
|
break;
|
|
2552
2571
|
case 4:
|
|
2553
2572
|
var tmp1_safe_receiver_0 = schema.z1n_1;
|
|
@@ -2557,7 +2576,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2557
2576
|
} else {
|
|
2558
2577
|
// Inline function 'kotlin.let' call
|
|
2559
2578
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
2560
|
-
tmp_6 = flatten_0($this_parseRequestBody, OpenAPIV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
2579
|
+
tmp_6 = flatten_0($this_parseRequestBody, OpenAPIV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().e2e([name, 'RequestBody']));
|
|
2561
2580
|
}
|
|
2562
2581
|
|
|
2563
2582
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2585,9 +2604,9 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2585
2604
|
}
|
|
2586
2605
|
function OpenAPIV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
2587
2606
|
return function ($this$flatMapResponses) {
|
|
2588
|
-
var schema = resolve_1($this_parseResponseBody, OpenAPIV2Parser_instance, $this$flatMapResponses.
|
|
2589
|
-
var tmp0_elvis_lhs = toName($this$flatMapResponses.
|
|
2590
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
2607
|
+
var schema = resolve_1($this_parseResponseBody, OpenAPIV2Parser_instance, $this$flatMapResponses.v2e_1).g1k_1;
|
|
2608
|
+
var tmp0_elvis_lhs = toName($this$flatMapResponses.t2e_1, OpenAPIV2Parser_instance);
|
|
2609
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.q2e_1, OpenAPIV2Parser_instance) + $this$flatMapResponses.s2e_1.o2_1 : tmp0_elvis_lhs;
|
|
2591
2610
|
var tmp;
|
|
2592
2611
|
if (schema instanceof SchemaObject) {
|
|
2593
2612
|
var tmp2_subject = schema.y1n_1;
|
|
@@ -2595,7 +2614,7 @@ function OpenAPIV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
2595
2614
|
switch (tmp2_subject == null ? -1 : tmp2_subject.p2_1) {
|
|
2596
2615
|
case -1:
|
|
2597
2616
|
case 5:
|
|
2598
|
-
tmp_0 = flatten($this_parseResponseBody, OpenAPIV2Parser_instance, schema, Common_getInstance().
|
|
2617
|
+
tmp_0 = flatten($this_parseResponseBody, OpenAPIV2Parser_instance, schema, Common_getInstance().e2e([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.u2e_1), 'ResponseBody']));
|
|
2599
2618
|
break;
|
|
2600
2619
|
case 4:
|
|
2601
2620
|
var tmp3_safe_receiver = schema.z1n_1;
|
|
@@ -2605,7 +2624,7 @@ function OpenAPIV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
2605
2624
|
} else {
|
|
2606
2625
|
// Inline function 'kotlin.let' call
|
|
2607
2626
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
2608
|
-
tmp_1 = flatten_0($this_parseResponseBody, OpenAPIV2Parser_instance, tmp3_safe_receiver, Common_getInstance().
|
|
2627
|
+
tmp_1 = flatten_0($this_parseResponseBody, OpenAPIV2Parser_instance, tmp3_safe_receiver, Common_getInstance().e2e([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.u2e_1), 'ResponseBody']));
|
|
2609
2628
|
}
|
|
2610
2629
|
|
|
2611
2630
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2635,10 +2654,10 @@ function OpenAPIV2Parser$toName$lambda(it) {
|
|
|
2635
2654
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2636
2655
|
|
|
2637
2656
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
2638
|
-
tmp = tmp_0.
|
|
2657
|
+
tmp = tmp_0.e2e([tmp$ret$1]);
|
|
2639
2658
|
break;
|
|
2640
2659
|
case false:
|
|
2641
|
-
tmp = Common_getInstance().
|
|
2660
|
+
tmp = Common_getInstance().e2e([it]);
|
|
2642
2661
|
break;
|
|
2643
2662
|
default:
|
|
2644
2663
|
noWhenBranchMatchedException();
|
|
@@ -2648,8 +2667,8 @@ function OpenAPIV2Parser$toName$lambda(it) {
|
|
|
2648
2667
|
}
|
|
2649
2668
|
function OpenAPIV2Parser() {
|
|
2650
2669
|
}
|
|
2651
|
-
protoOf(OpenAPIV2Parser).
|
|
2652
|
-
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.
|
|
2670
|
+
protoOf(OpenAPIV2Parser).b2e = function (json, strict) {
|
|
2671
|
+
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.x2e((new OpenAPI(Json(VOID, OpenAPIV2Parser$parse$lambda(strict)))).c1h(json)));
|
|
2653
2672
|
var tmp;
|
|
2654
2673
|
if (tmp0_elvis_lhs == null) {
|
|
2655
2674
|
var message = 'Cannot yield non empty AST for OpenAPI v2';
|
|
@@ -2657,13 +2676,13 @@ protoOf(OpenAPIV2Parser).o2b = function (json, strict) {
|
|
|
2657
2676
|
} else {
|
|
2658
2677
|
tmp = tmp0_elvis_lhs;
|
|
2659
2678
|
}
|
|
2660
|
-
return tmp;
|
|
2679
|
+
return new AST(nonEmptyListOf(new Module('', tmp), []));
|
|
2661
2680
|
};
|
|
2662
|
-
protoOf(OpenAPIV2Parser).
|
|
2681
|
+
protoOf(OpenAPIV2Parser).y2e = function (json, strict, $super) {
|
|
2663
2682
|
strict = strict === VOID ? true : strict;
|
|
2664
|
-
return $super === VOID ? this.
|
|
2683
|
+
return $super === VOID ? this.b2e(json, strict) : $super.b2e.call(this, json, strict);
|
|
2665
2684
|
};
|
|
2666
|
-
protoOf(OpenAPIV2Parser).
|
|
2685
|
+
protoOf(OpenAPIV2Parser).x2e = function (_this__u8e3s4) {
|
|
2667
2686
|
// Inline function 'kotlin.collections.reduce' call
|
|
2668
2687
|
var iterator = listOf_0([parseEndpoints(_this__u8e3s4, this), parseParameters(_this__u8e3s4, this), parseRequestBody(_this__u8e3s4, this), parseResponseBody(_this__u8e3s4, this), parseDefinitions(_this__u8e3s4, this)]).g();
|
|
2669
2688
|
if (!iterator.h())
|
|
@@ -2681,6 +2700,24 @@ var OpenAPIV2Parser_instance;
|
|
|
2681
2700
|
function OpenAPIV2Parser_getInstance() {
|
|
2682
2701
|
return OpenAPIV2Parser_instance;
|
|
2683
2702
|
}
|
|
2703
|
+
function sanitize(_this__u8e3s4) {
|
|
2704
|
+
// Inline function 'kotlin.collections.mapIndexed' call
|
|
2705
|
+
var this_0 = split(_this__u8e3s4, ['.', ' ', '-']);
|
|
2706
|
+
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
2707
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2708
|
+
var index = 0;
|
|
2709
|
+
var _iterator__ex2g4s = this_0.g();
|
|
2710
|
+
while (_iterator__ex2g4s.h()) {
|
|
2711
|
+
var item = _iterator__ex2g4s.i();
|
|
2712
|
+
var _unary__edvuaz = index;
|
|
2713
|
+
index = _unary__edvuaz + 1 | 0;
|
|
2714
|
+
// Inline function 'community.flock.wirespec.openapi.v2.sanitize.<anonymous>' call
|
|
2715
|
+
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_getInstance().l25(item) : item;
|
|
2716
|
+
destination.e(tmp$ret$0);
|
|
2717
|
+
}
|
|
2718
|
+
var tmp = asSequence(joinToString(destination, ''));
|
|
2719
|
+
return joinToString_0(filter(tmp, sanitize$lambda), '');
|
|
2720
|
+
}
|
|
2684
2721
|
function toDict(_this__u8e3s4, isNullable) {
|
|
2685
2722
|
return new Dict(_this__u8e3s4, isNullable);
|
|
2686
2723
|
}
|
|
@@ -2720,55 +2757,49 @@ function isPrimitive(_this__u8e3s4) {
|
|
|
2720
2757
|
function toIterable(_this__u8e3s4, isNullable) {
|
|
2721
2758
|
return new Iterable(_this__u8e3s4, isNullable);
|
|
2722
2759
|
}
|
|
2760
|
+
function sanitize$lambda(it) {
|
|
2761
|
+
return isLetterOrDigit(it.x_1) || listOf(new Char(_Char___init__impl__6a9atx(95))).o1(it);
|
|
2762
|
+
}
|
|
2723
2763
|
function emitComponents(_this__u8e3s4, $this) {
|
|
2724
|
-
// Inline function 'kotlin.collections.
|
|
2725
|
-
|
|
2764
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2765
|
+
var tmp0 = _this__u8e3s4.f27_1.yk();
|
|
2766
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2726
2767
|
var destination = ArrayList_init_$Create$();
|
|
2727
|
-
var _iterator__ex2g4s =
|
|
2768
|
+
var _iterator__ex2g4s = tmp0.g();
|
|
2728
2769
|
while (_iterator__ex2g4s.h()) {
|
|
2729
2770
|
var element = _iterator__ex2g4s.i();
|
|
2730
|
-
|
|
2771
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emitComponents.<anonymous>' call
|
|
2772
|
+
if (!(element instanceof Endpoint)) {
|
|
2731
2773
|
destination.e(element);
|
|
2732
2774
|
}
|
|
2733
2775
|
}
|
|
2734
|
-
// Inline function 'kotlin.collections.
|
|
2735
|
-
|
|
2736
|
-
|
|
2776
|
+
// Inline function 'kotlin.collections.associate' call
|
|
2777
|
+
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination, 10)), 16);
|
|
2778
|
+
// Inline function 'kotlin.collections.associateTo' call
|
|
2779
|
+
var destination_0 = LinkedHashMap_init_$Create$(capacity);
|
|
2737
2780
|
var _iterator__ex2g4s_0 = destination.g();
|
|
2738
2781
|
while (_iterator__ex2g4s_0.h()) {
|
|
2739
2782
|
var element_0 = _iterator__ex2g4s_0.i();
|
|
2740
2783
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emitComponents.<anonymous>' call
|
|
2741
|
-
|
|
2742
|
-
destination_0.e(element_0);
|
|
2743
|
-
}
|
|
2744
|
-
}
|
|
2745
|
-
// Inline function 'kotlin.collections.associate' call
|
|
2746
|
-
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_0, 10)), 16);
|
|
2747
|
-
// Inline function 'kotlin.collections.associateTo' call
|
|
2748
|
-
var destination_1 = LinkedHashMap_init_$Create$(capacity);
|
|
2749
|
-
var _iterator__ex2g4s_1 = destination_0.g();
|
|
2750
|
-
while (_iterator__ex2g4s_1.h()) {
|
|
2751
|
-
var element_1 = _iterator__ex2g4s_1.i();
|
|
2752
|
-
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emitComponents.<anonymous>' call
|
|
2753
|
-
var tmp = element_1.o29().b1();
|
|
2784
|
+
var tmp = element_0.k2a().b1();
|
|
2754
2785
|
var tmp_0;
|
|
2755
|
-
if (
|
|
2756
|
-
tmp_0 = emit_3(
|
|
2786
|
+
if (element_0 instanceof Enum) {
|
|
2787
|
+
tmp_0 = emit_3(element_0, OpenAPIV3Emitter_getInstance());
|
|
2757
2788
|
} else {
|
|
2758
|
-
if (
|
|
2759
|
-
tmp_0 = emit_1(
|
|
2789
|
+
if (element_0 instanceof Refined) {
|
|
2790
|
+
tmp_0 = emit_1(element_0, OpenAPIV3Emitter_getInstance());
|
|
2760
2791
|
} else {
|
|
2761
|
-
if (
|
|
2762
|
-
tmp_0 = emit_2(
|
|
2792
|
+
if (element_0 instanceof Type) {
|
|
2793
|
+
tmp_0 = emit_2(element_0, OpenAPIV3Emitter_getInstance());
|
|
2763
2794
|
} else {
|
|
2764
|
-
if (
|
|
2765
|
-
tmp_0 = emit_4(
|
|
2795
|
+
if (element_0 instanceof Union) {
|
|
2796
|
+
tmp_0 = emit_4(element_0, OpenAPIV3Emitter_getInstance());
|
|
2766
2797
|
} else {
|
|
2767
|
-
if (
|
|
2798
|
+
if (element_0 instanceof Endpoint) {
|
|
2768
2799
|
var message = 'Cannot emit endpoint';
|
|
2769
2800
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2770
2801
|
} else {
|
|
2771
|
-
if (
|
|
2802
|
+
if (element_0 instanceof Channel) {
|
|
2772
2803
|
var message_0 = 'Cannot emit channel';
|
|
2773
2804
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
2774
2805
|
} else {
|
|
@@ -2781,17 +2812,18 @@ function emitComponents(_this__u8e3s4, $this) {
|
|
|
2781
2812
|
}
|
|
2782
2813
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2783
2814
|
var pair = to(tmp, tmp_0);
|
|
2784
|
-
|
|
2815
|
+
destination_0.l2(pair.ke_1, pair.le_1);
|
|
2785
2816
|
}
|
|
2786
2817
|
// Inline function 'kotlin.let' call
|
|
2787
2818
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emitComponents.<anonymous>' call
|
|
2788
|
-
return new ComponentsObject(
|
|
2819
|
+
return new ComponentsObject(destination_0);
|
|
2789
2820
|
}
|
|
2790
2821
|
function emitPaths(_this__u8e3s4, $this) {
|
|
2791
2822
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
2823
|
+
var tmp0 = _this__u8e3s4.f27_1;
|
|
2792
2824
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
2793
2825
|
var destination = ArrayList_init_$Create$();
|
|
2794
|
-
var _iterator__ex2g4s =
|
|
2826
|
+
var _iterator__ex2g4s = tmp0.g();
|
|
2795
2827
|
while (_iterator__ex2g4s.h()) {
|
|
2796
2828
|
var element = _iterator__ex2g4s.i();
|
|
2797
2829
|
if (element instanceof Endpoint) {
|
|
@@ -2805,7 +2837,7 @@ function emitPaths(_this__u8e3s4, $this) {
|
|
|
2805
2837
|
while (_iterator__ex2g4s_0.h()) {
|
|
2806
2838
|
var element_0 = _iterator__ex2g4s_0.i();
|
|
2807
2839
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emitPaths.<anonymous>' call
|
|
2808
|
-
var key = element_0.
|
|
2840
|
+
var key = element_0.u24_1;
|
|
2809
2841
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
2810
2842
|
var value = destination_0.e2(key);
|
|
2811
2843
|
var tmp;
|
|
@@ -2876,10 +2908,10 @@ function emitPaths(_this__u8e3s4, $this) {
|
|
|
2876
2908
|
return toMap(destination_1);
|
|
2877
2909
|
}
|
|
2878
2910
|
function emit_1(_this__u8e3s4, $this) {
|
|
2879
|
-
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.
|
|
2911
|
+
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_STRING_getInstance_0(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, _this__u8e3s4.p26_1.j27_1);
|
|
2880
2912
|
}
|
|
2881
2913
|
function emit_2(_this__u8e3s4, $this) {
|
|
2882
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2914
|
+
var tmp0_safe_receiver = _this__u8e3s4.j26_1;
|
|
2883
2915
|
var tmp;
|
|
2884
2916
|
var tmp_0 = tmp0_safe_receiver;
|
|
2885
2917
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -2889,7 +2921,7 @@ function emit_2(_this__u8e3s4, $this) {
|
|
|
2889
2921
|
}
|
|
2890
2922
|
var tmp1_description = tmp;
|
|
2891
2923
|
// Inline function 'kotlin.collections.associate' call
|
|
2892
|
-
var this_0 = _this__u8e3s4.
|
|
2924
|
+
var this_0 = _this__u8e3s4.l26_1.g27_1;
|
|
2893
2925
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2894
2926
|
// Inline function 'kotlin.collections.associateTo' call
|
|
2895
2927
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -2902,14 +2934,14 @@ function emit_2(_this__u8e3s4, $this) {
|
|
|
2902
2934
|
destination.l2(pair.ke_1, pair.le_1);
|
|
2903
2935
|
}
|
|
2904
2936
|
// Inline function 'kotlin.collections.filter' call
|
|
2905
|
-
var tmp0 = _this__u8e3s4.
|
|
2937
|
+
var tmp0 = _this__u8e3s4.l26_1.g27_1;
|
|
2906
2938
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2907
2939
|
var destination_0 = ArrayList_init_$Create$();
|
|
2908
2940
|
var _iterator__ex2g4s_0 = tmp0.g();
|
|
2909
2941
|
while (_iterator__ex2g4s_0.h()) {
|
|
2910
2942
|
var element_0 = _iterator__ex2g4s_0.i();
|
|
2911
2943
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
2912
|
-
if (!element_0.
|
|
2944
|
+
if (!element_0.o25_1.sm()) {
|
|
2913
2945
|
destination_0.e(element_0);
|
|
2914
2946
|
}
|
|
2915
2947
|
}
|
|
@@ -2920,7 +2952,7 @@ function emit_2(_this__u8e3s4, $this) {
|
|
|
2920
2952
|
while (_iterator__ex2g4s_1.h()) {
|
|
2921
2953
|
var item = _iterator__ex2g4s_1.i();
|
|
2922
2954
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
2923
|
-
var tmp$ret$6 = item.
|
|
2955
|
+
var tmp$ret$6 = item.n25_1.b1();
|
|
2924
2956
|
destination_1.e(tmp$ret$6);
|
|
2925
2957
|
}
|
|
2926
2958
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -2936,7 +2968,7 @@ function emit_2(_this__u8e3s4, $this) {
|
|
|
2936
2968
|
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, destination, VOID, tmp1_description, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_required);
|
|
2937
2969
|
}
|
|
2938
2970
|
function emit_3(_this__u8e3s4, $this) {
|
|
2939
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2971
|
+
var tmp0_safe_receiver = _this__u8e3s4.q26_1;
|
|
2940
2972
|
var tmp;
|
|
2941
2973
|
var tmp_0 = tmp0_safe_receiver;
|
|
2942
2974
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -2947,7 +2979,7 @@ function emit_3(_this__u8e3s4, $this) {
|
|
|
2947
2979
|
var tmp1_description = tmp;
|
|
2948
2980
|
var tmp2_type = Type_STRING_getInstance_0();
|
|
2949
2981
|
// Inline function 'kotlin.collections.map' call
|
|
2950
|
-
var this_0 = _this__u8e3s4.
|
|
2982
|
+
var this_0 = _this__u8e3s4.s26_1;
|
|
2951
2983
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2952
2984
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2953
2985
|
var _iterator__ex2g4s = this_0.g();
|
|
@@ -2960,7 +2992,7 @@ function emit_3(_this__u8e3s4, $this) {
|
|
|
2960
2992
|
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_type, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_description, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, destination);
|
|
2961
2993
|
}
|
|
2962
2994
|
function emit_4(_this__u8e3s4, $this) {
|
|
2963
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2995
|
+
var tmp0_safe_receiver = _this__u8e3s4.g26_1;
|
|
2964
2996
|
var tmp;
|
|
2965
2997
|
var tmp_0 = tmp0_safe_receiver;
|
|
2966
2998
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -2971,7 +3003,7 @@ function emit_4(_this__u8e3s4, $this) {
|
|
|
2971
3003
|
var tmp1_description = tmp;
|
|
2972
3004
|
var tmp2_type = Type_STRING_getInstance_0();
|
|
2973
3005
|
// Inline function 'kotlin.collections.map' call
|
|
2974
|
-
var this_0 = _this__u8e3s4.
|
|
3006
|
+
var this_0 = _this__u8e3s4.i26_1;
|
|
2975
3007
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2976
3008
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2977
3009
|
var _iterator__ex2g4s = this_0.g();
|
|
@@ -2991,7 +3023,7 @@ function emit_5(_this__u8e3s4, $this, method) {
|
|
|
2991
3023
|
while (_iterator__ex2g4s.h()) {
|
|
2992
3024
|
var element = _iterator__ex2g4s.i();
|
|
2993
3025
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
2994
|
-
if (element.
|
|
3026
|
+
if (element.t24_1.equals(method)) {
|
|
2995
3027
|
destination.e(element);
|
|
2996
3028
|
}
|
|
2997
3029
|
}
|
|
@@ -3008,8 +3040,8 @@ function emit_5(_this__u8e3s4, $this, method) {
|
|
|
3008
3040
|
return firstOrNull(destination_0);
|
|
3009
3041
|
}
|
|
3010
3042
|
function emit_6(_this__u8e3s4, $this) {
|
|
3011
|
-
var tmp2_operationId = _this__u8e3s4.
|
|
3012
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3043
|
+
var tmp2_operationId = _this__u8e3s4.s24_1.b1();
|
|
3044
|
+
var tmp0_safe_receiver = _this__u8e3s4.r24_1;
|
|
3013
3045
|
var tmp;
|
|
3014
3046
|
var tmp_0 = tmp0_safe_receiver;
|
|
3015
3047
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -3019,7 +3051,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3019
3051
|
}
|
|
3020
3052
|
var tmp3_description = tmp;
|
|
3021
3053
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3022
|
-
var tmp0 = _this__u8e3s4.
|
|
3054
|
+
var tmp0 = _this__u8e3s4.u24_1;
|
|
3023
3055
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
3024
3056
|
var destination = ArrayList_init_$Create$();
|
|
3025
3057
|
var _iterator__ex2g4s = tmp0.g();
|
|
@@ -3041,7 +3073,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3041
3073
|
}
|
|
3042
3074
|
var tmp_1 = destination_0;
|
|
3043
3075
|
// Inline function 'kotlin.collections.map' call
|
|
3044
|
-
var this_0 = _this__u8e3s4.
|
|
3076
|
+
var this_0 = _this__u8e3s4.v24_1;
|
|
3045
3077
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3046
3078
|
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3047
3079
|
var _iterator__ex2g4s_1 = this_0.g();
|
|
@@ -3053,7 +3085,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3053
3085
|
}
|
|
3054
3086
|
var tmp_2 = plus(tmp_1, destination_1);
|
|
3055
3087
|
// Inline function 'kotlin.collections.map' call
|
|
3056
|
-
var this_1 = _this__u8e3s4.
|
|
3088
|
+
var this_1 = _this__u8e3s4.w24_1;
|
|
3057
3089
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3058
3090
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
3059
3091
|
var _iterator__ex2g4s_2 = this_1.g();
|
|
@@ -3065,7 +3097,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3065
3097
|
}
|
|
3066
3098
|
var tmp4_parameters = plus(tmp_2, destination_2);
|
|
3067
3099
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3068
|
-
var tmp0_0 = _this__u8e3s4.
|
|
3100
|
+
var tmp0_0 = _this__u8e3s4.y24_1;
|
|
3069
3101
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3070
3102
|
var destination_3 = ArrayList_init_$Create$();
|
|
3071
3103
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -3074,7 +3106,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3074
3106
|
var element_0 = _iterator__ex2g4s_3.i();
|
|
3075
3107
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3076
3108
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
3077
|
-
var tmp0_safe_receiver_0 = element_0.
|
|
3109
|
+
var tmp0_safe_receiver_0 = element_0.f25_1;
|
|
3078
3110
|
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : emit_7(tmp0_safe_receiver_0, OpenAPIV3Emitter_getInstance());
|
|
3079
3111
|
if (tmp0_safe_receiver_1 == null)
|
|
3080
3112
|
null;
|
|
@@ -3101,7 +3133,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3101
3133
|
} else {
|
|
3102
3134
|
// Inline function 'kotlin.let' call
|
|
3103
3135
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
3104
|
-
var tmp0_1 = _this__u8e3s4.
|
|
3136
|
+
var tmp0_1 = _this__u8e3s4.y24_1;
|
|
3105
3137
|
var tmp$ret$18;
|
|
3106
3138
|
$l$block_0: {
|
|
3107
3139
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -3119,8 +3151,8 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3119
3151
|
while (_iterator__ex2g4s_4.h()) {
|
|
3120
3152
|
var element_1 = _iterator__ex2g4s_4.i();
|
|
3121
3153
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3122
|
-
var tmp0_safe_receiver_2 = element_1.
|
|
3123
|
-
var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.
|
|
3154
|
+
var tmp0_safe_receiver_2 = element_1.f25_1;
|
|
3155
|
+
var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.h25_1;
|
|
3124
3156
|
if ((tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.sm()) === true) {
|
|
3125
3157
|
tmp$ret$18 = true;
|
|
3126
3158
|
break $l$block_0;
|
|
@@ -3132,14 +3164,14 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3132
3164
|
}
|
|
3133
3165
|
var tmp5_requestBody = tmp_4;
|
|
3134
3166
|
// Inline function 'kotlin.collections.groupBy' call
|
|
3135
|
-
var tmp0_2 = _this__u8e3s4.
|
|
3167
|
+
var tmp0_2 = _this__u8e3s4.z24_1;
|
|
3136
3168
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
3137
3169
|
var destination_4 = LinkedHashMap_init_$Create$_0();
|
|
3138
3170
|
var _iterator__ex2g4s_5 = tmp0_2.g();
|
|
3139
3171
|
while (_iterator__ex2g4s_5.h()) {
|
|
3140
3172
|
var element_2 = _iterator__ex2g4s_5.i();
|
|
3141
3173
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
3142
|
-
var key = element_2.
|
|
3174
|
+
var key = element_2.a25_1;
|
|
3143
3175
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
3144
3176
|
var value = destination_4.e2(key);
|
|
3145
3177
|
var tmp_6;
|
|
@@ -3174,7 +3206,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3174
3206
|
while (_iterator__ex2g4s_7.h()) {
|
|
3175
3207
|
var element_3 = _iterator__ex2g4s_7.i();
|
|
3176
3208
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3177
|
-
var list_0 = element_3.
|
|
3209
|
+
var list_0 = element_3.b25_1;
|
|
3178
3210
|
addAll(destination_6, list_0);
|
|
3179
3211
|
}
|
|
3180
3212
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -3189,7 +3221,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3189
3221
|
var pair = emitHeader(element_4, OpenAPIV3Emitter_getInstance());
|
|
3190
3222
|
destination_7.l2(pair.ke_1, pair.le_1);
|
|
3191
3223
|
}
|
|
3192
|
-
var tmp1_description = _this__u8e3s4.
|
|
3224
|
+
var tmp1_description = _this__u8e3s4.s24_1.b1() + ' ' + statusCode + ' response';
|
|
3193
3225
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3194
3226
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3195
3227
|
var destination_8 = ArrayList_init_$Create$();
|
|
@@ -3199,7 +3231,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3199
3231
|
var element_5 = _iterator__ex2g4s_9.i();
|
|
3200
3232
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3201
3233
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3202
|
-
var tmp0_safe_receiver_3 = element_5.
|
|
3234
|
+
var tmp0_safe_receiver_3 = element_5.c25_1;
|
|
3203
3235
|
if (tmp0_safe_receiver_3 == null)
|
|
3204
3236
|
null;
|
|
3205
3237
|
else {
|
|
@@ -3239,29 +3271,29 @@ function emitSegment_0(_this__u8e3s4, $this) {
|
|
|
3239
3271
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenAPIV3Emitter$emitSegment$lambda);
|
|
3240
3272
|
}
|
|
3241
3273
|
function emitParameter_0(_this__u8e3s4, $this, location) {
|
|
3242
|
-
var tmp0_name = _this__u8e3s4.
|
|
3243
|
-
var tmp1_schema = emitSchema_0(_this__u8e3s4.
|
|
3274
|
+
var tmp0_name = _this__u8e3s4.n25_1.b1();
|
|
3275
|
+
var tmp1_schema = emitSchema_0(_this__u8e3s4.o25_1, $this);
|
|
3244
3276
|
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_schema, VOID, VOID, VOID, tmp0_name, location);
|
|
3245
3277
|
}
|
|
3246
3278
|
function emitParameter_1(_this__u8e3s4, $this) {
|
|
3247
3279
|
var tmp0_in = ParameterLocation_PATH_getInstance_0();
|
|
3248
|
-
var tmp1_name = _this__u8e3s4.
|
|
3249
|
-
var tmp2_schema = emitSchema_0(_this__u8e3s4.
|
|
3280
|
+
var tmp1_name = _this__u8e3s4.s25_1.b1();
|
|
3281
|
+
var tmp2_schema = emitSchema_0(_this__u8e3s4.t25_1, $this);
|
|
3250
3282
|
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_schema, VOID, VOID, VOID, tmp1_name, tmp0_in);
|
|
3251
3283
|
}
|
|
3252
3284
|
function emitHeader(_this__u8e3s4, $this) {
|
|
3253
|
-
return to(_this__u8e3s4.
|
|
3285
|
+
return to(_this__u8e3s4.n25_1.b1(), emitHeader_0(_this__u8e3s4.o25_1, $this));
|
|
3254
3286
|
}
|
|
3255
3287
|
function emitSchema(_this__u8e3s4, $this) {
|
|
3256
|
-
return to(_this__u8e3s4.
|
|
3288
|
+
return to(_this__u8e3s4.n25_1.b1(), emitSchema_0(_this__u8e3s4.o25_1, $this));
|
|
3257
3289
|
}
|
|
3258
3290
|
function emitHeader_0(_this__u8e3s4, $this) {
|
|
3259
3291
|
var tmp;
|
|
3260
3292
|
if (_this__u8e3s4 instanceof Dict) {
|
|
3261
|
-
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.
|
|
3293
|
+
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.j24_1));
|
|
3262
3294
|
} else {
|
|
3263
3295
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
3264
|
-
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.
|
|
3296
|
+
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.z23_1));
|
|
3265
3297
|
} else {
|
|
3266
3298
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3267
3299
|
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.v23_1));
|
|
@@ -3289,19 +3321,19 @@ function emitHeader_0(_this__u8e3s4, $this) {
|
|
|
3289
3321
|
function emitSchema_0(_this__u8e3s4, $this) {
|
|
3290
3322
|
var tmp;
|
|
3291
3323
|
if (_this__u8e3s4 instanceof Dict) {
|
|
3292
|
-
var tmp_0 = _this__u8e3s4.
|
|
3324
|
+
var tmp_0 = _this__u8e3s4.h24_1.sm();
|
|
3293
3325
|
var tmp_1 = Type_OBJECT_getInstance_0();
|
|
3294
|
-
var tmp_2 = emitSchema_0(_this__u8e3s4.
|
|
3326
|
+
var tmp_2 = emitSchema_0(_this__u8e3s4.h24_1, $this);
|
|
3295
3327
|
tmp = new SchemaObject_0(tmp_0, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_1, VOID, VOID, VOID, VOID, VOID, VOID, isInterface(tmp_2, SchemaOrReferenceOrBooleanObject) ? tmp_2 : THROW_CCE());
|
|
3296
3328
|
} else {
|
|
3297
3329
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
3298
|
-
tmp = new SchemaObject_0(_this__u8e3s4.
|
|
3330
|
+
tmp = new SchemaObject_0(_this__u8e3s4.x23_1.sm(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance_0(), VOID, VOID, VOID, VOID, emitSchema_0(_this__u8e3s4.x23_1, $this));
|
|
3299
3331
|
} else {
|
|
3300
3332
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3301
3333
|
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/schemas/' + _this__u8e3s4.v23_1));
|
|
3302
3334
|
} else {
|
|
3303
3335
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3304
|
-
tmp = new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType_1(_this__u8e3s4.
|
|
3336
|
+
tmp = new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType_1(_this__u8e3s4.k24_1, $this), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitFormat_0(_this__u8e3s4, $this));
|
|
3305
3337
|
} else {
|
|
3306
3338
|
if (_this__u8e3s4 instanceof Any) {
|
|
3307
3339
|
var message = 'Cannot map Any';
|
|
@@ -3346,16 +3378,16 @@ function emitType_1(_this__u8e3s4, $this) {
|
|
|
3346
3378
|
return tmp;
|
|
3347
3379
|
}
|
|
3348
3380
|
function emit_7(_this__u8e3s4, $this) {
|
|
3349
|
-
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.
|
|
3381
|
+
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.g25_1)), new MediaTypeObject(emitSchema_0(_this__u8e3s4.h25_1, $this)));
|
|
3350
3382
|
}
|
|
3351
3383
|
function emitFormat_0(_this__u8e3s4, $this) {
|
|
3352
3384
|
var tmp;
|
|
3353
3385
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3354
|
-
var t = _this__u8e3s4.
|
|
3386
|
+
var t = _this__u8e3s4.k24_1;
|
|
3355
3387
|
var tmp_0;
|
|
3356
3388
|
if (t instanceof Number_0) {
|
|
3357
3389
|
var tmp_1;
|
|
3358
|
-
switch (t.
|
|
3390
|
+
switch (t.n24_1.p2_1) {
|
|
3359
3391
|
case 0:
|
|
3360
3392
|
tmp_1 = 'float';
|
|
3361
3393
|
break;
|
|
@@ -3370,7 +3402,7 @@ function emitFormat_0(_this__u8e3s4, $this) {
|
|
|
3370
3402
|
} else {
|
|
3371
3403
|
if (t instanceof Integer) {
|
|
3372
3404
|
var tmp_2;
|
|
3373
|
-
switch (t.
|
|
3405
|
+
switch (t.p24_1.p2_1) {
|
|
3374
3406
|
case 0:
|
|
3375
3407
|
tmp_2 = 'int32';
|
|
3376
3408
|
break;
|
|
@@ -3399,10 +3431,10 @@ function emitFormat_0(_this__u8e3s4, $this) {
|
|
|
3399
3431
|
function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
3400
3432
|
var tmp;
|
|
3401
3433
|
if (it instanceof Param) {
|
|
3402
|
-
tmp = '{' + it.
|
|
3434
|
+
tmp = '{' + it.s25_1.b1() + '}';
|
|
3403
3435
|
} else {
|
|
3404
3436
|
if (it instanceof Literal) {
|
|
3405
|
-
tmp = it.
|
|
3437
|
+
tmp = it.b26_1;
|
|
3406
3438
|
} else {
|
|
3407
3439
|
noWhenBranchMatchedException();
|
|
3408
3440
|
}
|
|
@@ -3412,15 +3444,23 @@ function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
|
3412
3444
|
function OpenAPIV3Emitter() {
|
|
3413
3445
|
OpenAPIV3Emitter_instance = this;
|
|
3414
3446
|
Emitter.call(this);
|
|
3415
|
-
this.
|
|
3447
|
+
this.a2f_1 = FileExtension_JSON_getInstance();
|
|
3448
|
+
this.b2f_1 = null;
|
|
3449
|
+
this.c2f_1 = '';
|
|
3416
3450
|
}
|
|
3417
|
-
protoOf(OpenAPIV3Emitter).
|
|
3418
|
-
return this.
|
|
3451
|
+
protoOf(OpenAPIV3Emitter).d26 = function () {
|
|
3452
|
+
return this.a2f_1;
|
|
3453
|
+
};
|
|
3454
|
+
protoOf(OpenAPIV3Emitter).e26 = function () {
|
|
3455
|
+
return this.b2f_1;
|
|
3456
|
+
};
|
|
3457
|
+
protoOf(OpenAPIV3Emitter).w26 = function () {
|
|
3458
|
+
return this.c2f_1;
|
|
3419
3459
|
};
|
|
3420
|
-
protoOf(OpenAPIV3Emitter).
|
|
3421
|
-
var tmp0 = Common_getInstance().
|
|
3460
|
+
protoOf(OpenAPIV3Emitter).x26 = function (module_0, logger) {
|
|
3461
|
+
var tmp0 = Common_getInstance().d2e_1;
|
|
3422
3462
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
3423
|
-
var value = this.
|
|
3463
|
+
var value = this.d2f(module_0, null);
|
|
3424
3464
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3425
3465
|
var this_0 = tmp0.ip();
|
|
3426
3466
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -3429,29 +3469,29 @@ protoOf(OpenAPIV3Emitter).k23 = function (ast, logger) {
|
|
|
3429
3469
|
var tmp$ret$2 = tmp0.v15(tmp$ret$1, value);
|
|
3430
3470
|
return nonEmptyListOf(new Emitted('OpenAPIObject', tmp$ret$2), []);
|
|
3431
3471
|
};
|
|
3432
|
-
protoOf(OpenAPIV3Emitter).
|
|
3433
|
-
return this.
|
|
3472
|
+
protoOf(OpenAPIV3Emitter).b27 = function (type, module_0) {
|
|
3473
|
+
return this.u27();
|
|
3434
3474
|
};
|
|
3435
|
-
protoOf(OpenAPIV3Emitter).
|
|
3436
|
-
return this.
|
|
3475
|
+
protoOf(OpenAPIV3Emitter).l27 = function (enum_0, module_0) {
|
|
3476
|
+
return this.u27();
|
|
3437
3477
|
};
|
|
3438
|
-
protoOf(OpenAPIV3Emitter).
|
|
3439
|
-
return this.
|
|
3478
|
+
protoOf(OpenAPIV3Emitter).h27 = function (refined) {
|
|
3479
|
+
return this.u27();
|
|
3440
3480
|
};
|
|
3441
|
-
protoOf(OpenAPIV3Emitter).
|
|
3442
|
-
return this.
|
|
3481
|
+
protoOf(OpenAPIV3Emitter).p27 = function (endpoint) {
|
|
3482
|
+
return this.u27();
|
|
3443
3483
|
};
|
|
3444
|
-
protoOf(OpenAPIV3Emitter).
|
|
3445
|
-
return this.
|
|
3484
|
+
protoOf(OpenAPIV3Emitter).n27 = function (union) {
|
|
3485
|
+
return this.u27();
|
|
3446
3486
|
};
|
|
3447
|
-
protoOf(OpenAPIV3Emitter).
|
|
3448
|
-
return this.
|
|
3487
|
+
protoOf(OpenAPIV3Emitter).o27 = function (channel) {
|
|
3488
|
+
return this.u27();
|
|
3449
3489
|
};
|
|
3450
|
-
protoOf(OpenAPIV3Emitter).
|
|
3451
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
3490
|
+
protoOf(OpenAPIV3Emitter).d2f = function (module_0, options) {
|
|
3491
|
+
var tmp1_elvis_lhs = options == null ? null : options.e2f_1;
|
|
3452
3492
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
3453
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
3454
|
-
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(
|
|
3493
|
+
var tmp3_elvis_lhs = options == null ? null : options.f2f_1;
|
|
3494
|
+
return new OpenAPIObject('3.0.0', new InfoObject_0(tmp, VOID, VOID, VOID, VOID, tmp3_elvis_lhs == null ? '0.0.0' : tmp3_elvis_lhs), VOID, emitPaths(module_0, this), emitComponents(module_0, this));
|
|
3455
3495
|
};
|
|
3456
3496
|
var OpenAPIV3Emitter_instance;
|
|
3457
3497
|
function OpenAPIV3Emitter_getInstance() {
|
|
@@ -3508,7 +3548,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3508
3548
|
while (_iterator__ex2g4s_2.h()) {
|
|
3509
3549
|
var item_0 = _iterator__ex2g4s_2.i();
|
|
3510
3550
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3511
|
-
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_0, Common_getInstance().
|
|
3551
|
+
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_0, Common_getInstance().e2e([name, 'Parameter', item_0.q1w_1]));
|
|
3512
3552
|
destination_2.e(tmp$ret$9);
|
|
3513
3553
|
}
|
|
3514
3554
|
var query = destination_2;
|
|
@@ -3530,7 +3570,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3530
3570
|
while (_iterator__ex2g4s_4.h()) {
|
|
3531
3571
|
var item_1 = _iterator__ex2g4s_4.i();
|
|
3532
3572
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3533
|
-
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_1, Common_getInstance().
|
|
3573
|
+
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_1, Common_getInstance().e2e([name, 'Parameter', item_1.q1w_1]));
|
|
3534
3574
|
destination_4.e(tmp$ret$15);
|
|
3535
3575
|
}
|
|
3536
3576
|
var headers = destination_4;
|
|
@@ -3552,7 +3592,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3552
3592
|
while (_iterator__ex2g4s_6.h()) {
|
|
3553
3593
|
var item_2 = _iterator__ex2g4s_6.i();
|
|
3554
3594
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3555
|
-
var tmp$ret$21 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_2, Common_getInstance().
|
|
3595
|
+
var tmp$ret$21 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_2, Common_getInstance().e2e([name, 'Parameter', item_2.q1w_1]));
|
|
3556
3596
|
destination_6.e(tmp$ret$21);
|
|
3557
3597
|
}
|
|
3558
3598
|
var cookies = destination_6;
|
|
@@ -3596,7 +3636,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3596
3636
|
tmp_2 = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema, isNullable);
|
|
3597
3637
|
} else {
|
|
3598
3638
|
if (schema instanceof SchemaObject_0) {
|
|
3599
|
-
tmp_2 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema, isNullable, Common_getInstance().
|
|
3639
|
+
tmp_2 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema, isNullable, Common_getInstance().e2e([name, 'RequestBody']));
|
|
3600
3640
|
} else {
|
|
3601
3641
|
if (schema == null) {
|
|
3602
3642
|
tmp_2 = null;
|
|
@@ -3685,7 +3725,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3685
3725
|
while (_iterator__ex2g4s_10.h()) {
|
|
3686
3726
|
var item_5 = _iterator__ex2g4s_10.i();
|
|
3687
3727
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3688
|
-
var tmp$ret$46 = toField_4(_this__u8e3s4, OpenAPIV3Parser_instance, resolve_5(_this__u8e3s4, OpenAPIV3Parser_instance, item_5.b1()), item_5.a1(), Common_getInstance().
|
|
3728
|
+
var tmp$ret$46 = toField_4(_this__u8e3s4, OpenAPIV3Parser_instance, resolve_5(_this__u8e3s4, OpenAPIV3Parser_instance, item_5.b1()), item_5.a1(), Common_getInstance().e2e([name, 'ResponseHeader']));
|
|
3689
3729
|
destination_10.e(tmp$ret$46);
|
|
3690
3730
|
}
|
|
3691
3731
|
tmp_7 = destination_10;
|
|
@@ -3700,7 +3740,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3700
3740
|
tmp_10 = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema_0, isNullable_0);
|
|
3701
3741
|
} else {
|
|
3702
3742
|
if (schema_0 instanceof SchemaObject_0) {
|
|
3703
|
-
tmp_10 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema_0, isNullable_0, Common_getInstance().
|
|
3743
|
+
tmp_10 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema_0, isNullable_0, Common_getInstance().e2e([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
3704
3744
|
} else {
|
|
3705
3745
|
if (schema_0 == null) {
|
|
3706
3746
|
tmp_10 = new Any(isNullable_0);
|
|
@@ -3755,7 +3795,7 @@ function flatMapResponse(_this__u8e3s4, $this, response, name, statusCode) {
|
|
|
3755
3795
|
switch (tmp0_subject == null ? -1 : tmp0_subject.p2_1) {
|
|
3756
3796
|
case -1:
|
|
3757
3797
|
case 5:
|
|
3758
|
-
tmp_0 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema, Common_getInstance().
|
|
3798
|
+
tmp_0 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema, Common_getInstance().e2e([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
3759
3799
|
break;
|
|
3760
3800
|
case 4:
|
|
3761
3801
|
var tmp1_safe_receiver = schema.n1x_1;
|
|
@@ -3765,7 +3805,7 @@ function flatMapResponse(_this__u8e3s4, $this, response, name, statusCode) {
|
|
|
3765
3805
|
} else {
|
|
3766
3806
|
// Inline function 'kotlin.let' call
|
|
3767
3807
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.flatMapResponse.<anonymous>.<anonymous>' call
|
|
3768
|
-
tmp_1 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
3808
|
+
tmp_1 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp1_safe_receiver, Common_getInstance().e2e([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
3769
3809
|
}
|
|
3770
3810
|
|
|
3771
3811
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -3821,7 +3861,7 @@ function parseComponents(_this__u8e3s4, $this) {
|
|
|
3821
3861
|
while (_iterator__ex2g4s_0.h()) {
|
|
3822
3862
|
var element_0 = _iterator__ex2g4s_0.i();
|
|
3823
3863
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseComponents.<anonymous>' call
|
|
3824
|
-
var list = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, element_0.b1(), Common_getInstance().
|
|
3864
|
+
var list = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, element_0.b1(), Common_getInstance().e2e([element_0.a1()]));
|
|
3825
3865
|
addAll(destination_0, list);
|
|
3826
3866
|
}
|
|
3827
3867
|
return destination_0;
|
|
@@ -3837,7 +3877,7 @@ function toName_1(_this__u8e3s4, $this) {
|
|
|
3837
3877
|
} else {
|
|
3838
3878
|
// Inline function 'kotlin.let' call
|
|
3839
3879
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.toName.<anonymous>' call
|
|
3840
|
-
tmp = Common_getInstance().
|
|
3880
|
+
tmp = Common_getInstance().e2e([tmp0_safe_receiver]);
|
|
3841
3881
|
}
|
|
3842
3882
|
return tmp;
|
|
3843
3883
|
}
|
|
@@ -3925,7 +3965,7 @@ function toSegments_0(_this__u8e3s4, $this, path, parameters, operation, method)
|
|
|
3925
3965
|
} else {
|
|
3926
3966
|
// Inline function 'kotlin.let' call
|
|
3927
3967
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.toSegments.<anonymous>.<anonymous>' call
|
|
3928
|
-
tmp_1 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp4_safe_receiver, false, Common_getInstance().
|
|
3968
|
+
tmp_1 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp4_safe_receiver, false, Common_getInstance().e2e([name, 'Parameter', param]));
|
|
3929
3969
|
}
|
|
3930
3970
|
|
|
3931
3971
|
var tmp5_safe_receiver = tmp_1;
|
|
@@ -4306,7 +4346,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4306
4346
|
}
|
|
4307
4347
|
tmp = tmp_0;
|
|
4308
4348
|
} else if (!(schemaObject.k1x_1 == null) || !(schemaObject.l1x_1 == null)) {
|
|
4309
|
-
var tmp_5 = new DefinitionIdentifier(name);
|
|
4349
|
+
var tmp_5 = new DefinitionIdentifier(sanitize_0(name));
|
|
4310
4350
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4311
4351
|
var tmp0_elvis_lhs = schemaObject.k1x_1;
|
|
4312
4352
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
@@ -4326,7 +4366,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4326
4366
|
tmp_6 = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, item, false);
|
|
4327
4367
|
} else {
|
|
4328
4368
|
if (item instanceof SchemaObject_0) {
|
|
4329
|
-
tmp_6 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, item, false, Common_getInstance().
|
|
4369
|
+
tmp_6 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, item, false, Common_getInstance().e2e([name, index_0.toString()]));
|
|
4330
4370
|
} else {
|
|
4331
4371
|
noWhenBranchMatchedException();
|
|
4332
4372
|
}
|
|
@@ -4354,7 +4394,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4354
4394
|
tmp_8 = emptyList();
|
|
4355
4395
|
} else {
|
|
4356
4396
|
if (element instanceof SchemaObject_0) {
|
|
4357
|
-
tmp_8 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, element, Common_getInstance().
|
|
4397
|
+
tmp_8 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, element, Common_getInstance().e2e([name, index_2.toString()]));
|
|
4358
4398
|
} else {
|
|
4359
4399
|
noWhenBranchMatchedException();
|
|
4360
4400
|
}
|
|
@@ -4364,7 +4404,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4364
4404
|
}
|
|
4365
4405
|
tmp = plus(tmp_7, destination_0);
|
|
4366
4406
|
} else if (!(schemaObject.j1x_1 == null)) {
|
|
4367
|
-
var tmp_9 = new DefinitionIdentifier(name);
|
|
4407
|
+
var tmp_9 = new DefinitionIdentifier(sanitize_0(name));
|
|
4368
4408
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4369
4409
|
var tmp0_elvis_lhs_1 = schemaObject.j1x_1;
|
|
4370
4410
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -4385,7 +4425,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4385
4425
|
while (_iterator__ex2g4s_2.h()) {
|
|
4386
4426
|
var e = _iterator__ex2g4s_2.i();
|
|
4387
4427
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.flatten.<anonymous>' call
|
|
4388
|
-
var key = e.
|
|
4428
|
+
var key = e.n25_1;
|
|
4389
4429
|
if (set.e(key)) {
|
|
4390
4430
|
list_1.e(e);
|
|
4391
4431
|
}
|
|
@@ -4426,7 +4466,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4426
4466
|
var key_0 = element_2.a1();
|
|
4427
4467
|
// Inline function 'kotlin.collections.component2' call
|
|
4428
4468
|
var value = element_2.b1();
|
|
4429
|
-
var list_2 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, Common_getInstance().
|
|
4469
|
+
var list_2 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, Common_getInstance().e2e([name, key_0]));
|
|
4430
4470
|
addAll(destination_3, list_2);
|
|
4431
4471
|
}
|
|
4432
4472
|
var list_3 = destination_3;
|
|
@@ -4474,7 +4514,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4474
4514
|
var key_1 = element_3.a1();
|
|
4475
4515
|
// Inline function 'kotlin.collections.component2' call
|
|
4476
4516
|
var value_0 = element_3.b1();
|
|
4477
|
-
var list_4 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value_0, Common_getInstance().
|
|
4517
|
+
var list_4 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value_0, Common_getInstance().e2e([name, key_1]));
|
|
4478
4518
|
addAll(destination_5, list_4);
|
|
4479
4519
|
}
|
|
4480
4520
|
|
|
@@ -4495,7 +4535,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4495
4535
|
tmp_14 = emptyList();
|
|
4496
4536
|
} else {
|
|
4497
4537
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
4498
|
-
tmp_14 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, tmp6_safe_receiver, Common_getInstance().
|
|
4538
|
+
tmp_14 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, tmp6_safe_receiver, Common_getInstance().e2e([name, 'array']));
|
|
4499
4539
|
} else {
|
|
4500
4540
|
noWhenBranchMatchedException();
|
|
4501
4541
|
}
|
|
@@ -4556,7 +4596,7 @@ function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
4556
4596
|
}
|
|
4557
4597
|
tmp = tmp_0;
|
|
4558
4598
|
} else if (!(schema.i1y_1 == null)) {
|
|
4559
|
-
tmp = new Custom(Common_getInstance().
|
|
4599
|
+
tmp = new Custom(sanitize_0(Common_getInstance().e2e([getReference_0(referencingObject, OpenAPIV3Parser_instance)])), isNullable);
|
|
4560
4600
|
} else if (isPrimitive_0(schema.i1x_1)) {
|
|
4561
4601
|
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.i1x_1), OpenAPIV3Parser_instance, schema.r1x_1), isNullable);
|
|
4562
4602
|
} else if (equals(schema.i1x_1, Type_ARRAY_getInstance_0())) {
|
|
@@ -4568,7 +4608,7 @@ function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
4568
4608
|
tmp_3 = toIterable_0(toReference_1(_this__u8e3s4, tmp_4, items, tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs), isNullable);
|
|
4569
4609
|
} else {
|
|
4570
4610
|
if (items instanceof SchemaObject_0) {
|
|
4571
|
-
var tmp_5 = Common_getInstance().
|
|
4611
|
+
var tmp_5 = sanitize_0(Common_getInstance().e2e([getReference_0(referencingObject, OpenAPIV3Parser_instance), 'Array']));
|
|
4572
4612
|
var tmp3_elvis_lhs = schema.z1w_1;
|
|
4573
4613
|
tmp_3 = toIterable_0(new Custom(tmp_5, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs), isNullable);
|
|
4574
4614
|
} else {
|
|
@@ -4582,7 +4622,7 @@ function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
4582
4622
|
}
|
|
4583
4623
|
tmp = tmp_3;
|
|
4584
4624
|
} else {
|
|
4585
|
-
tmp = new Custom(Common_getInstance().
|
|
4625
|
+
tmp = new Custom(sanitize_0(Common_getInstance().e2e([getReference_0(referencingObject, OpenAPIV3Parser_instance)])), isNullable);
|
|
4586
4626
|
}
|
|
4587
4627
|
return tmp;
|
|
4588
4628
|
}
|
|
@@ -4600,7 +4640,8 @@ function toReference_2(_this__u8e3s4, $this, schema, isNullable, name) {
|
|
|
4600
4640
|
tmp_0 = toIterable_0(toReference_2(_this__u8e3s4, $this, items, tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs, name), isNullable);
|
|
4601
4641
|
} else {
|
|
4602
4642
|
if (items == null) {
|
|
4603
|
-
|
|
4643
|
+
var message = "property 'items' of '" + name + "' cannot be null when 'type' is array: " + schema.toString() + ' ';
|
|
4644
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
4604
4645
|
} else {
|
|
4605
4646
|
noWhenBranchMatchedException();
|
|
4606
4647
|
}
|
|
@@ -4656,7 +4697,7 @@ function toReference_2(_this__u8e3s4, $this, schema, isNullable, name) {
|
|
|
4656
4697
|
} else if (!(schema.i1y_1 == null)) {
|
|
4657
4698
|
// Inline function 'kotlin.let' call
|
|
4658
4699
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.toReference.<anonymous>' call
|
|
4659
|
-
var it = new Custom(name, isNullable);
|
|
4700
|
+
var it = new Custom(sanitize_0(name), isNullable);
|
|
4660
4701
|
tmp = !(schema.p1x_1 == null) ? new Dict(it, false) : it;
|
|
4661
4702
|
} else {
|
|
4662
4703
|
var type = schema.i1x_1;
|
|
@@ -4685,7 +4726,7 @@ function toReference_2(_this__u8e3s4, $this, schema, isNullable, name) {
|
|
|
4685
4726
|
} else {
|
|
4686
4727
|
// Inline function 'kotlin.let' call
|
|
4687
4728
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.toReference.<anonymous>' call
|
|
4688
|
-
var it_2 = new Custom(name, isNullable);
|
|
4729
|
+
var it_2 = new Custom(sanitize_0(name), isNullable);
|
|
4689
4730
|
tmp_7 = !(schema.p1x_1 == null) ? new Dict(it_2, false) : it_2;
|
|
4690
4731
|
}
|
|
4691
4732
|
|
|
@@ -4703,8 +4744,8 @@ function toReference_2(_this__u8e3s4, $this, schema, isNullable, name) {
|
|
|
4703
4744
|
tmp_9 = toIterable_0(toReference_2(_this__u8e3s4, $this, it_3, tmp8_elvis_lhs == null ? false : tmp8_elvis_lhs, name), isNullable);
|
|
4704
4745
|
} else {
|
|
4705
4746
|
if (it_3 == null) {
|
|
4706
|
-
var
|
|
4707
|
-
throw IllegalStateException_init_$Create$(toString(
|
|
4747
|
+
var message_0 = 'When schema is of type array items cannot be null for name: ' + name;
|
|
4748
|
+
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
4708
4749
|
} else {
|
|
4709
4750
|
noWhenBranchMatchedException();
|
|
4710
4751
|
}
|
|
@@ -4764,7 +4805,7 @@ function toOperationList_0(_this__u8e3s4, $this) {
|
|
|
4764
4805
|
var tmp$ret$0 = tmp_0;
|
|
4765
4806
|
result.l2(element, tmp$ret$0);
|
|
4766
4807
|
}
|
|
4767
|
-
return tmp.
|
|
4808
|
+
return tmp.f2e(result);
|
|
4768
4809
|
}
|
|
4769
4810
|
function getReference_0(_this__u8e3s4, $this) {
|
|
4770
4811
|
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.w1w_1), ['/']), 3);
|
|
@@ -4819,7 +4860,7 @@ function toField_2(_this__u8e3s4, $this, schema, name) {
|
|
|
4819
4860
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
4820
4861
|
var tmp;
|
|
4821
4862
|
if (value instanceof SchemaObject_0) {
|
|
4822
|
-
tmp = new Field(new FieldIdentifier(key), !(value.i1y_1 == null) ? toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().
|
|
4863
|
+
tmp = new Field(new FieldIdentifier(key), !(value.i1y_1 == null) ? toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().e2e([name, key])) : equals(value.i1x_1, Type_ARRAY_getInstance_0()) ? toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().e2e([name, key, 'Array'])) : toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().e2e([name, key])));
|
|
4823
4864
|
} else {
|
|
4824
4865
|
if (value instanceof ReferenceObject_0) {
|
|
4825
4866
|
tmp = new Field(new FieldIdentifier(key), toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable));
|
|
@@ -4879,19 +4920,19 @@ function toField_4(_this__u8e3s4, $this, header, identifier, name) {
|
|
|
4879
4920
|
return new Field(new FieldIdentifier(identifier), it);
|
|
4880
4921
|
}
|
|
4881
4922
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
4882
|
-
this.
|
|
4883
|
-
this.
|
|
4884
|
-
this.
|
|
4885
|
-
this.
|
|
4923
|
+
this.g2f_1 = path;
|
|
4924
|
+
this.h2f_1 = pathItem;
|
|
4925
|
+
this.i2f_1 = method;
|
|
4926
|
+
this.j2f_1 = operation;
|
|
4886
4927
|
}
|
|
4887
4928
|
protoOf(FlattenRequest_0).toString = function () {
|
|
4888
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
4929
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.g2f_1) + ', pathItem=' + this.h2f_1.toString() + ', method=' + this.i2f_1.toString() + ', operation=' + this.j2f_1.toString() + ')';
|
|
4889
4930
|
};
|
|
4890
4931
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
4891
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
4892
|
-
result = imul(result, 31) + this.
|
|
4893
|
-
result = imul(result, 31) + this.
|
|
4894
|
-
result = imul(result, 31) + this.
|
|
4932
|
+
var result = Path__hashCode_impl_go73kd_0(this.g2f_1);
|
|
4933
|
+
result = imul(result, 31) + this.h2f_1.hashCode() | 0;
|
|
4934
|
+
result = imul(result, 31) + this.i2f_1.hashCode() | 0;
|
|
4935
|
+
result = imul(result, 31) + this.j2f_1.hashCode() | 0;
|
|
4895
4936
|
return result;
|
|
4896
4937
|
};
|
|
4897
4938
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -4900,13 +4941,13 @@ protoOf(FlattenRequest_0).equals = function (other) {
|
|
|
4900
4941
|
if (!(other instanceof FlattenRequest_0))
|
|
4901
4942
|
return false;
|
|
4902
4943
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
4903
|
-
if (!(this.
|
|
4944
|
+
if (!(this.g2f_1 === tmp0_other_with_cast.g2f_1))
|
|
4904
4945
|
return false;
|
|
4905
|
-
if (!this.
|
|
4946
|
+
if (!this.h2f_1.equals(tmp0_other_with_cast.h2f_1))
|
|
4906
4947
|
return false;
|
|
4907
|
-
if (!this.
|
|
4948
|
+
if (!this.i2f_1.equals(tmp0_other_with_cast.i2f_1))
|
|
4908
4949
|
return false;
|
|
4909
|
-
if (!this.
|
|
4950
|
+
if (!this.j2f_1.equals(tmp0_other_with_cast.j2f_1))
|
|
4910
4951
|
return false;
|
|
4911
4952
|
return true;
|
|
4912
4953
|
};
|
|
@@ -4955,23 +4996,23 @@ function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
|
4955
4996
|
return destination_1;
|
|
4956
4997
|
}
|
|
4957
4998
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
4958
|
-
this.
|
|
4959
|
-
this.
|
|
4960
|
-
this.
|
|
4961
|
-
this.
|
|
4962
|
-
this.
|
|
4963
|
-
this.
|
|
4999
|
+
this.k2f_1 = path;
|
|
5000
|
+
this.l2f_1 = pathItem;
|
|
5001
|
+
this.m2f_1 = method;
|
|
5002
|
+
this.n2f_1 = operation;
|
|
5003
|
+
this.o2f_1 = statusCode;
|
|
5004
|
+
this.p2f_1 = response;
|
|
4964
5005
|
}
|
|
4965
5006
|
protoOf(FlattenResponse_0).toString = function () {
|
|
4966
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
5007
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.k2f_1) + ', pathItem=' + this.l2f_1.toString() + ', method=' + this.m2f_1.toString() + ', operation=' + this.n2f_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy_0(this.o2f_1) + ', response=' + toString(this.p2f_1) + ')';
|
|
4967
5008
|
};
|
|
4968
5009
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
4969
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
4970
|
-
result = imul(result, 31) + this.
|
|
4971
|
-
result = imul(result, 31) + this.
|
|
4972
|
-
result = imul(result, 31) + this.
|
|
4973
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.
|
|
4974
|
-
result = imul(result, 31) + hashCode(this.
|
|
5010
|
+
var result = Path__hashCode_impl_go73kd_0(this.k2f_1);
|
|
5011
|
+
result = imul(result, 31) + this.l2f_1.hashCode() | 0;
|
|
5012
|
+
result = imul(result, 31) + this.m2f_1.hashCode() | 0;
|
|
5013
|
+
result = imul(result, 31) + this.n2f_1.hashCode() | 0;
|
|
5014
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.o2f_1) | 0;
|
|
5015
|
+
result = imul(result, 31) + hashCode(this.p2f_1) | 0;
|
|
4975
5016
|
return result;
|
|
4976
5017
|
};
|
|
4977
5018
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -4980,17 +5021,17 @@ protoOf(FlattenResponse_0).equals = function (other) {
|
|
|
4980
5021
|
if (!(other instanceof FlattenResponse_0))
|
|
4981
5022
|
return false;
|
|
4982
5023
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
4983
|
-
if (!(this.
|
|
5024
|
+
if (!(this.k2f_1 === tmp0_other_with_cast.k2f_1))
|
|
4984
5025
|
return false;
|
|
4985
|
-
if (!this.
|
|
5026
|
+
if (!this.l2f_1.equals(tmp0_other_with_cast.l2f_1))
|
|
4986
5027
|
return false;
|
|
4987
|
-
if (!this.
|
|
5028
|
+
if (!this.m2f_1.equals(tmp0_other_with_cast.m2f_1))
|
|
4988
5029
|
return false;
|
|
4989
|
-
if (!this.
|
|
5030
|
+
if (!this.n2f_1.equals(tmp0_other_with_cast.n2f_1))
|
|
4990
5031
|
return false;
|
|
4991
|
-
if (!(this.
|
|
5032
|
+
if (!(this.o2f_1 === tmp0_other_with_cast.o2f_1))
|
|
4992
5033
|
return false;
|
|
4993
|
-
if (!equals(this.
|
|
5034
|
+
if (!equals(this.p2f_1, tmp0_other_with_cast.p2f_1))
|
|
4994
5035
|
return false;
|
|
4995
5036
|
return true;
|
|
4996
5037
|
};
|
|
@@ -5071,9 +5112,9 @@ function OpenAPIV3Parser$parse$lambda($strict) {
|
|
|
5071
5112
|
}
|
|
5072
5113
|
function OpenAPIV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
5073
5114
|
return function ($this$flatMapRequests) {
|
|
5074
|
-
var parameters = plus(resolveParameters_2($this_parseParameters, OpenAPIV3Parser_instance, $this$flatMapRequests.
|
|
5075
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5076
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5115
|
+
var parameters = plus(resolveParameters_2($this_parseParameters, OpenAPIV3Parser_instance, $this$flatMapRequests.h2f_1), resolveParameters_1($this_parseParameters, OpenAPIV3Parser_instance, $this$flatMapRequests.j2f_1));
|
|
5116
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.j2f_1, OpenAPIV3Parser_instance);
|
|
5117
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.g2f_1, OpenAPIV3Parser_instance) + $this$flatMapRequests.i2f_1.o2_1 : tmp0_elvis_lhs;
|
|
5077
5118
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5078
5119
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5079
5120
|
var destination = ArrayList_init_$Create$();
|
|
@@ -5088,7 +5129,7 @@ function OpenAPIV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
5088
5129
|
} else {
|
|
5089
5130
|
// Inline function 'kotlin.let' call
|
|
5090
5131
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
5091
|
-
tmp = flatten_2($this_parseParameters, OpenAPIV3Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
5132
|
+
tmp = flatten_2($this_parseParameters, OpenAPIV3Parser_instance, tmp0_safe_receiver, Common_getInstance().e2e([name, 'Parameter', element.q1w_1]));
|
|
5092
5133
|
}
|
|
5093
5134
|
var tmp1_elvis_lhs = tmp;
|
|
5094
5135
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -5099,9 +5140,9 @@ function OpenAPIV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
5099
5140
|
}
|
|
5100
5141
|
function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
5101
5142
|
return function ($this$flatMapRequests) {
|
|
5102
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5103
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5104
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
5143
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.j2f_1, OpenAPIV3Parser_instance);
|
|
5144
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.g2f_1, OpenAPIV3Parser_instance) + $this$flatMapRequests.i2f_1.o2_1 : tmp0_elvis_lhs;
|
|
5145
|
+
var tmp1_safe_receiver = $this$flatMapRequests.j2f_1.t1u_1;
|
|
5105
5146
|
var tmp;
|
|
5106
5147
|
if (tmp1_safe_receiver == null) {
|
|
5107
5148
|
tmp = null;
|
|
@@ -5132,7 +5173,7 @@ function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
5132
5173
|
switch (tmp0_subject == null ? -1 : tmp0_subject.p2_1) {
|
|
5133
5174
|
case -1:
|
|
5134
5175
|
case 5:
|
|
5135
|
-
tmp_1 = flatten_1($this_parseRequestBody, OpenAPIV3Parser_instance, schema, Common_getInstance().
|
|
5176
|
+
tmp_1 = flatten_1($this_parseRequestBody, OpenAPIV3Parser_instance, schema, Common_getInstance().e2e([name, 'RequestBody']));
|
|
5136
5177
|
break;
|
|
5137
5178
|
case 4:
|
|
5138
5179
|
var tmp1_safe_receiver_0 = schema.n1x_1;
|
|
@@ -5142,7 +5183,7 @@ function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
5142
5183
|
} else {
|
|
5143
5184
|
// Inline function 'kotlin.let' call
|
|
5144
5185
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
5145
|
-
tmp_2 = flatten_2($this_parseRequestBody, OpenAPIV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
5186
|
+
tmp_2 = flatten_2($this_parseRequestBody, OpenAPIV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().e2e([name, 'RequestBody']));
|
|
5146
5187
|
}
|
|
5147
5188
|
|
|
5148
5189
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -5176,15 +5217,15 @@ function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
5176
5217
|
}
|
|
5177
5218
|
function OpenAPIV3Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
5178
5219
|
return function ($this$flatMapResponses) {
|
|
5179
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.
|
|
5180
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.
|
|
5181
|
-
var response = $this$flatMapResponses.
|
|
5220
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.n2f_1, OpenAPIV3Parser_instance);
|
|
5221
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.k2f_1, OpenAPIV3Parser_instance) + $this$flatMapResponses.m2f_1.o2_1 : tmp0_elvis_lhs;
|
|
5222
|
+
var response = $this$flatMapResponses.p2f_1;
|
|
5182
5223
|
var tmp;
|
|
5183
5224
|
if (response instanceof ResponseObject_0) {
|
|
5184
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, response, name, $this$flatMapResponses.
|
|
5225
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, response, name, $this$flatMapResponses.o2f_1);
|
|
5185
5226
|
} else {
|
|
5186
5227
|
if (response instanceof ReferenceObject_0) {
|
|
5187
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenAPIV3Parser_instance, response).le_1, name, $this$flatMapResponses.
|
|
5228
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenAPIV3Parser_instance, response).le_1, name, $this$flatMapResponses.o2f_1);
|
|
5188
5229
|
} else {
|
|
5189
5230
|
noWhenBranchMatchedException();
|
|
5190
5231
|
}
|
|
@@ -5203,10 +5244,10 @@ function OpenAPIV3Parser$toName$lambda(it) {
|
|
|
5203
5244
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5204
5245
|
|
|
5205
5246
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
5206
|
-
tmp = tmp_0.
|
|
5247
|
+
tmp = tmp_0.e2e([tmp$ret$1]);
|
|
5207
5248
|
break;
|
|
5208
5249
|
case false:
|
|
5209
|
-
tmp = Common_getInstance().
|
|
5250
|
+
tmp = Common_getInstance().e2e([it]);
|
|
5210
5251
|
break;
|
|
5211
5252
|
default:
|
|
5212
5253
|
noWhenBranchMatchedException();
|
|
@@ -5216,8 +5257,8 @@ function OpenAPIV3Parser$toName$lambda(it) {
|
|
|
5216
5257
|
}
|
|
5217
5258
|
function OpenAPIV3Parser() {
|
|
5218
5259
|
}
|
|
5219
|
-
protoOf(OpenAPIV3Parser).
|
|
5220
|
-
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.
|
|
5260
|
+
protoOf(OpenAPIV3Parser).b2e = function (json, strict) {
|
|
5261
|
+
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.q2f((new OpenAPI_0(Json(VOID, OpenAPIV3Parser$parse$lambda(strict)))).c1h(json)));
|
|
5221
5262
|
var tmp;
|
|
5222
5263
|
if (tmp0_elvis_lhs == null) {
|
|
5223
5264
|
var message = 'Cannot yield non empty List<Node> for OpenAPI v3';
|
|
@@ -5225,13 +5266,13 @@ protoOf(OpenAPIV3Parser).o2b = function (json, strict) {
|
|
|
5225
5266
|
} else {
|
|
5226
5267
|
tmp = tmp0_elvis_lhs;
|
|
5227
5268
|
}
|
|
5228
|
-
return tmp;
|
|
5269
|
+
return new AST(nonEmptyListOf(new Module('', tmp), []));
|
|
5229
5270
|
};
|
|
5230
|
-
protoOf(OpenAPIV3Parser).
|
|
5271
|
+
protoOf(OpenAPIV3Parser).r2f = function (json, strict, $super) {
|
|
5231
5272
|
strict = strict === VOID ? false : strict;
|
|
5232
|
-
return $super === VOID ? this.
|
|
5273
|
+
return $super === VOID ? this.b2e(json, strict) : $super.b2e.call(this, json, strict);
|
|
5233
5274
|
};
|
|
5234
|
-
protoOf(OpenAPIV3Parser).
|
|
5275
|
+
protoOf(OpenAPIV3Parser).q2f = function (_this__u8e3s4) {
|
|
5235
5276
|
// Inline function 'kotlin.collections.reduce' call
|
|
5236
5277
|
var iterator = listOf_0([parseEndpoint(_this__u8e3s4, this), parseParameters_0(_this__u8e3s4, this), parseRequestBody_0(_this__u8e3s4, this), parseResponseBody_0(_this__u8e3s4, this), parseComponents(_this__u8e3s4, this)]).g();
|
|
5237
5278
|
if (!iterator.h())
|
|
@@ -5249,6 +5290,24 @@ var OpenAPIV3Parser_instance;
|
|
|
5249
5290
|
function OpenAPIV3Parser_getInstance() {
|
|
5250
5291
|
return OpenAPIV3Parser_instance;
|
|
5251
5292
|
}
|
|
5293
|
+
function sanitize_0(_this__u8e3s4) {
|
|
5294
|
+
// Inline function 'kotlin.collections.mapIndexed' call
|
|
5295
|
+
var this_0 = split(_this__u8e3s4, ['.', ' ', '-']);
|
|
5296
|
+
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
5297
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
5298
|
+
var index = 0;
|
|
5299
|
+
var _iterator__ex2g4s = this_0.g();
|
|
5300
|
+
while (_iterator__ex2g4s.h()) {
|
|
5301
|
+
var item = _iterator__ex2g4s.i();
|
|
5302
|
+
var _unary__edvuaz = index;
|
|
5303
|
+
index = _unary__edvuaz + 1 | 0;
|
|
5304
|
+
// Inline function 'community.flock.wirespec.openapi.v3.sanitize.<anonymous>' call
|
|
5305
|
+
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_getInstance().l25(item) : item;
|
|
5306
|
+
destination.e(tmp$ret$0);
|
|
5307
|
+
}
|
|
5308
|
+
var tmp = asSequence(joinToString(destination, ''));
|
|
5309
|
+
return joinToString_0(filter(tmp, sanitize$lambda_0), '');
|
|
5310
|
+
}
|
|
5252
5311
|
function toDict_0(_this__u8e3s4, isNullable) {
|
|
5253
5312
|
return new Dict(_this__u8e3s4, isNullable);
|
|
5254
5313
|
}
|
|
@@ -5285,6 +5344,9 @@ function isPrimitive_0(_this__u8e3s4) {
|
|
|
5285
5344
|
function toIterable_0(_this__u8e3s4, isNullable) {
|
|
5286
5345
|
return new Iterable(_this__u8e3s4, isNullable);
|
|
5287
5346
|
}
|
|
5347
|
+
function sanitize$lambda_0(it) {
|
|
5348
|
+
return isLetterOrDigit(it.x_1) || listOf(new Char(_Char___init__impl__6a9atx(95))).o1(it);
|
|
5349
|
+
}
|
|
5288
5350
|
//region block: init
|
|
5289
5351
|
OpenAPIV2Parser_instance = new OpenAPIV2Parser();
|
|
5290
5352
|
OpenAPIV3Parser_instance = new OpenAPIV3Parser();
|