@flock/wirespec 0.16.13 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clikt-clikt.mjs +1166 -1166
- package/colormath-root-colormath.mjs +425 -425
- package/kotlin-kotlin-stdlib.mjs +6 -2
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1767 -1767
- package/kotlinx-io-kotlinx-io-core.mjs +380 -380
- package/markdown.mjs +1864 -1864
- package/mordant-mordant.mjs +1638 -1638
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +3947 -3030
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +245 -245
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +181 -181
- package/wirespec-src-compiler-emitters-python.mjs +244 -244
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +227 -227
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +72 -72
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +411 -397
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +295 -290
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +525 -497
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +136 -136
- package/wirespec-src-plugin-cli.mjs +75 -75
- package/wirespec-src-plugin-npm.d.ts +1 -1
- package/wirespec-src-plugin-npm.mjs +314 -195
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +24 -24
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Companion_instance2piryw1e8zn12 as Companion_instance,
|
|
3
|
-
Emitted12h24rpo4uifw as Emitted,
|
|
4
3
|
_Comment___get_value__impl__8r3pla12d959au1m11p as _Comment___get_value__impl__8r3pla,
|
|
5
4
|
Comment3h0atpoyd2ga8 as Comment,
|
|
6
5
|
Iterablerto606wd057m as Iterable,
|
|
@@ -19,6 +18,7 @@ import {
|
|
|
19
18
|
Literal32wmkquj6qapn as Literal,
|
|
20
19
|
Param33sus5zaarsk0 as Param,
|
|
21
20
|
FileExtension_JSON_getInstance17az9ircs0qds as FileExtension_JSON_getInstance,
|
|
21
|
+
Emitted12h24rpo4uifw as Emitted,
|
|
22
22
|
Endpoint1dn4dd2eg1gxz as Endpoint,
|
|
23
23
|
Method_GET_getInstance8splzmy83d3a as Method_GET_getInstance,
|
|
24
24
|
Method_POST_getInstance1o71cgxp73yf as Method_POST_getInstance,
|
|
@@ -60,11 +60,6 @@ import {
|
|
|
60
60
|
to2cs3ny02qtbcb as to,
|
|
61
61
|
toMap1vec9topfei08 as toMap,
|
|
62
62
|
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
63
|
-
getKClass1s3j9wy1cofik as getKClass,
|
|
64
|
-
arrayOf1akklvh2at202 as arrayOf,
|
|
65
|
-
createKType1lgox3mzhchp5 as createKType,
|
|
66
|
-
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
67
|
-
isInterface3d6p8outrmvmk as isInterface,
|
|
68
63
|
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
69
64
|
ArrayList_init_$Create$3m1kyiqequwm5 as ArrayList_init_$Create$_0,
|
|
70
65
|
firstOrNull1982767dljvdy as firstOrNull,
|
|
@@ -78,6 +73,11 @@ import {
|
|
|
78
73
|
toString1pkumu07cwy4m as toString,
|
|
79
74
|
IllegalStateException_init_$Create$1nm9y6jd3c9iy as IllegalStateException_init_$Create$,
|
|
80
75
|
toDouble1kn912gjoizjp as toDouble,
|
|
76
|
+
getKClass1s3j9wy1cofik as getKClass,
|
|
77
|
+
arrayOf1akklvh2at202 as arrayOf,
|
|
78
|
+
createKType1lgox3mzhchp5 as createKType,
|
|
79
|
+
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
80
|
+
isInterface3d6p8outrmvmk as isInterface,
|
|
81
81
|
listOfvhqybd2zx248 as listOf,
|
|
82
82
|
LinkedHashMap_init_$Create$2gfxg59gogbfz as LinkedHashMap_init_$Create$_0,
|
|
83
83
|
equals2au1ep9vhcato as equals,
|
|
@@ -113,7 +113,6 @@ import {
|
|
|
113
113
|
JsonPrimitiveolttw629wj53 as JsonPrimitive,
|
|
114
114
|
} from './kotlinx-serialization-kotlinx-serialization-json.mjs';
|
|
115
115
|
import {
|
|
116
|
-
SwaggerObject73dmk90m4fhk as SwaggerObject,
|
|
117
116
|
ParameterLocation_BODY_getInstance1v1gwd1t5o37m as ParameterLocation_BODY_getInstance,
|
|
118
117
|
ParameterObject3fho1jm5gzhuf as ParameterObject,
|
|
119
118
|
ParameterLocation_QUERY_getInstance3sz6z5qtxm79h as ParameterLocation_QUERY_getInstance,
|
|
@@ -132,12 +131,14 @@ import {
|
|
|
132
131
|
Type_BOOLEAN_getInstance33754pi8pf4h9 as Type_BOOLEAN_getInstance,
|
|
133
132
|
Type_NUMBER_getInstanceiwtkqu4ibanp as Type_NUMBER_getInstance,
|
|
134
133
|
Type_INTEGER_getInstancekt6ppwleiyxh as Type_INTEGER_getInstance,
|
|
134
|
+
OpenAPIObjectd8pbkdbpfozt as OpenAPIObject,
|
|
135
135
|
InfoObject129o03rtxiq8o as InfoObject,
|
|
136
136
|
_Path___init__impl__6uf4pwof1fowr3mxro as _Path___init__impl__6uf4pw,
|
|
137
137
|
ParameterLocation_PATH_getInstance22z7lj47orp2m as ParameterLocation_PATH_getInstance,
|
|
138
138
|
Path3lxd25tp7xomc as Path,
|
|
139
139
|
PathItemObject2heob9sihqr7e as PathItemObject,
|
|
140
140
|
Type_FILE_getInstance1x9mn7f7740hm as Type_FILE_getInstance,
|
|
141
|
+
SwaggerObject73dmk90m4fhk as SwaggerObject,
|
|
141
142
|
_StatusCode___get_value__impl__we50mu1nlm6j3i7juxr as _StatusCode___get_value__impl__we50mu,
|
|
142
143
|
Ref__toString_impl_irb7zi1p04b3j4s59ye as Ref__toString_impl_irb7zi,
|
|
143
144
|
BooleanObjecttjn04podz7ry as BooleanObject,
|
|
@@ -148,7 +149,6 @@ import {
|
|
|
148
149
|
StatusCode__toString_impl_6caewyjpl6zw0zuh68 as StatusCode__toString_impl_6caewy,
|
|
149
150
|
StatusCode__hashCode_impl_fevhvx12qd6fylv5kfj as StatusCode__hashCode_impl_fevhvx,
|
|
150
151
|
OpenAPI3nelu5jea1vb2 as OpenAPI,
|
|
151
|
-
OpenAPIObjectd8pbkdbpfozt as OpenAPIObject,
|
|
152
152
|
ComponentsObjectykgr87pc5z6j as ComponentsObject,
|
|
153
153
|
_Path___init__impl__6uf4pw3bh64wx1cqifl as _Path___init__impl__6uf4pw_0,
|
|
154
154
|
Path2hub61jm3fqpv as Path_0,
|
|
@@ -212,7 +212,7 @@ initMetadataForClass(FlattenResponse_0, 'FlattenResponse');
|
|
|
212
212
|
initMetadataForObject(OpenAPIV3Parser, 'OpenAPIV3Parser');
|
|
213
213
|
//endregion
|
|
214
214
|
function Common$className$lambda(it) {
|
|
215
|
-
return Companion_instance.
|
|
215
|
+
return Companion_instance.f26(it);
|
|
216
216
|
}
|
|
217
217
|
function Common$json$lambda($this$Json) {
|
|
218
218
|
$this$Json.i16_1 = true;
|
|
@@ -221,9 +221,9 @@ function Common$json$lambda($this$Json) {
|
|
|
221
221
|
function Common() {
|
|
222
222
|
Common_instance = this;
|
|
223
223
|
var tmp = this;
|
|
224
|
-
tmp.
|
|
224
|
+
tmp.h2f_1 = Json(VOID, Common$json$lambda);
|
|
225
225
|
}
|
|
226
|
-
protoOf(Common).
|
|
226
|
+
protoOf(Common).i2f = function (arg) {
|
|
227
227
|
// Inline function 'kotlin.collections.flatMap' call
|
|
228
228
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
229
229
|
var destination = ArrayList_init_$Create$();
|
|
@@ -239,7 +239,7 @@ protoOf(Common).t2e = function (arg) {
|
|
|
239
239
|
var tmp = destination;
|
|
240
240
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, Common$className$lambda);
|
|
241
241
|
};
|
|
242
|
-
protoOf(Common).
|
|
242
|
+
protoOf(Common).j2f = function (_this__u8e3s4) {
|
|
243
243
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
244
244
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
245
245
|
var destination = ArrayList_init_$Create$();
|
|
@@ -280,23 +280,10 @@ function Common_getInstance() {
|
|
|
280
280
|
new Common();
|
|
281
281
|
return Common_instance;
|
|
282
282
|
}
|
|
283
|
-
function emit($this, module_0) {
|
|
284
|
-
var tmp = 'Swagger.' + OpenAPIV3Emitter_getInstance().v2e_1.z25_1;
|
|
285
|
-
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
286
|
-
var this_0 = Common_getInstance().s2e_1;
|
|
287
|
-
var value = $this.x2e(module_0);
|
|
288
|
-
// Inline function 'kotlinx.serialization.serializer' call
|
|
289
|
-
var this_1 = this_0.zo();
|
|
290
|
-
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
291
|
-
var this_2 = serializer(this_1, createKType(getKClass(SwaggerObject), arrayOf([]), false));
|
|
292
|
-
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
293
|
-
var tmp$ret$2 = this_0.m15(tmp$ret$1, value);
|
|
294
|
-
return nonEmptyListOf(new Emitted(tmp, tmp$ret$2), []);
|
|
295
|
-
}
|
|
296
283
|
function toProperties(_this__u8e3s4, $this) {
|
|
297
|
-
return to(_this__u8e3s4.
|
|
284
|
+
return to(_this__u8e3s4.r24_1.b1(), toSchemaOrReference(_this__u8e3s4.s24_1, $this));
|
|
298
285
|
}
|
|
299
|
-
function
|
|
286
|
+
function emit(_this__u8e3s4, $this, method) {
|
|
300
287
|
// Inline function 'kotlin.collections.map' call
|
|
301
288
|
// Inline function 'kotlin.collections.filter' call
|
|
302
289
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -305,7 +292,7 @@ function emit_0(_this__u8e3s4, $this, method) {
|
|
|
305
292
|
while (tmp0_iterator.h()) {
|
|
306
293
|
var element = tmp0_iterator.i();
|
|
307
294
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
308
|
-
if (element.
|
|
295
|
+
if (element.x24_1.equals(method)) {
|
|
309
296
|
destination.e(element);
|
|
310
297
|
}
|
|
311
298
|
}
|
|
@@ -315,14 +302,14 @@ function emit_0(_this__u8e3s4, $this, method) {
|
|
|
315
302
|
while (tmp0_iterator_0.h()) {
|
|
316
303
|
var item = tmp0_iterator_0.i();
|
|
317
304
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
318
|
-
var tmp$ret$3 =
|
|
305
|
+
var tmp$ret$3 = emit_0(item, OpenAPIV2Emitter_getInstance());
|
|
319
306
|
destination_0.e(tmp$ret$3);
|
|
320
307
|
}
|
|
321
308
|
return firstOrNull(destination_0);
|
|
322
309
|
}
|
|
323
|
-
function
|
|
324
|
-
var tmp1_operationId = _this__u8e3s4.
|
|
325
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
310
|
+
function emit_0(_this__u8e3s4, $this) {
|
|
311
|
+
var tmp1_operationId = _this__u8e3s4.w24_1.b1();
|
|
312
|
+
var tmp0_safe_receiver = _this__u8e3s4.u24_1;
|
|
326
313
|
var tmp;
|
|
327
314
|
var tmp_0 = tmp0_safe_receiver;
|
|
328
315
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -334,7 +321,7 @@ function emit_1(_this__u8e3s4, $this) {
|
|
|
334
321
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
335
322
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
336
323
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
337
|
-
var this_0 = _this__u8e3s4.
|
|
324
|
+
var this_0 = _this__u8e3s4.b25_1;
|
|
338
325
|
var destination = ArrayList_init_$Create$();
|
|
339
326
|
// Inline function 'kotlin.collections.forEach' call
|
|
340
327
|
var tmp0_iterator = this_0.g();
|
|
@@ -342,8 +329,8 @@ function emit_1(_this__u8e3s4, $this) {
|
|
|
342
329
|
var element = tmp0_iterator.i();
|
|
343
330
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
344
331
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
345
|
-
var tmp0_safe_receiver_0 = element.
|
|
346
|
-
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.
|
|
332
|
+
var tmp0_safe_receiver_0 = element.f25_1;
|
|
333
|
+
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.g25_1;
|
|
347
334
|
if (tmp0_safe_receiver_1 == null)
|
|
348
335
|
null;
|
|
349
336
|
else {
|
|
@@ -365,7 +352,7 @@ function emit_1(_this__u8e3s4, $this) {
|
|
|
365
352
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
366
353
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
367
354
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
368
|
-
var this_2 = _this__u8e3s4.
|
|
355
|
+
var this_2 = _this__u8e3s4.c25_1;
|
|
369
356
|
var destination_0 = ArrayList_init_$Create$();
|
|
370
357
|
// Inline function 'kotlin.collections.forEach' call
|
|
371
358
|
var tmp0_iterator_0 = this_2.g();
|
|
@@ -373,8 +360,8 @@ function emit_1(_this__u8e3s4, $this) {
|
|
|
373
360
|
var element_0 = tmp0_iterator_0.i();
|
|
374
361
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
375
362
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
376
|
-
var tmp0_safe_receiver_2 = element_0.
|
|
377
|
-
var tmp0_safe_receiver_3 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.
|
|
363
|
+
var tmp0_safe_receiver_2 = element_0.k25_1;
|
|
364
|
+
var tmp0_safe_receiver_3 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.g25_1;
|
|
378
365
|
if (tmp0_safe_receiver_3 == null)
|
|
379
366
|
null;
|
|
380
367
|
else {
|
|
@@ -396,7 +383,7 @@ function emit_1(_this__u8e3s4, $this) {
|
|
|
396
383
|
// Inline function 'kotlin.collections.map' call
|
|
397
384
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
398
385
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
399
|
-
var this_4 = _this__u8e3s4.
|
|
386
|
+
var this_4 = _this__u8e3s4.b25_1;
|
|
400
387
|
var destination_1 = ArrayList_init_$Create$();
|
|
401
388
|
// Inline function 'kotlin.collections.forEach' call
|
|
402
389
|
var tmp0_iterator_1 = this_4.g();
|
|
@@ -404,7 +391,7 @@ function emit_1(_this__u8e3s4, $this) {
|
|
|
404
391
|
var element_1 = tmp0_iterator_1.i();
|
|
405
392
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
406
393
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
407
|
-
var tmp0_safe_receiver_4 = element_1.
|
|
394
|
+
var tmp0_safe_receiver_4 = element_1.f25_1;
|
|
408
395
|
if (tmp0_safe_receiver_4 == null)
|
|
409
396
|
null;
|
|
410
397
|
else {
|
|
@@ -421,14 +408,14 @@ function emit_1(_this__u8e3s4, $this) {
|
|
|
421
408
|
var item = tmp0_iterator_2.i();
|
|
422
409
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
423
410
|
var tmp0_in = ParameterLocation_BODY_getInstance();
|
|
424
|
-
var tmp1_schema = toSchemaOrReference(item.
|
|
425
|
-
var tmp2_required = !item.
|
|
411
|
+
var tmp1_schema = toSchemaOrReference(item.h25_1, OpenAPIV2Emitter_getInstance());
|
|
412
|
+
var tmp2_required = !item.h25_1.jm();
|
|
426
413
|
var tmp$ret$16 = new ParameterObject('RequestBody', tmp0_in, VOID, tmp2_required, tmp1_schema);
|
|
427
414
|
destination_2.e(tmp$ret$16);
|
|
428
415
|
}
|
|
429
416
|
var tmp_3 = destination_2;
|
|
430
417
|
// Inline function 'kotlin.collections.map' call
|
|
431
|
-
var this_6 = _this__u8e3s4.
|
|
418
|
+
var this_6 = _this__u8e3s4.z24_1;
|
|
432
419
|
// Inline function 'kotlin.collections.mapTo' call
|
|
433
420
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_6, 10));
|
|
434
421
|
var tmp0_iterator_3 = this_6.g();
|
|
@@ -440,7 +427,7 @@ function emit_1(_this__u8e3s4, $this) {
|
|
|
440
427
|
}
|
|
441
428
|
var tmp_4 = plus(tmp_3, destination_3);
|
|
442
429
|
// Inline function 'kotlin.collections.map' call
|
|
443
|
-
var this_7 = _this__u8e3s4.
|
|
430
|
+
var this_7 = _this__u8e3s4.a25_1;
|
|
444
431
|
// Inline function 'kotlin.collections.mapTo' call
|
|
445
432
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_7, 10));
|
|
446
433
|
var tmp0_iterator_4 = this_7.g();
|
|
@@ -452,7 +439,7 @@ function emit_1(_this__u8e3s4, $this) {
|
|
|
452
439
|
}
|
|
453
440
|
var tmp5_parameters = plus(tmp_4, destination_4);
|
|
454
441
|
// Inline function 'kotlin.collections.associate' call
|
|
455
|
-
var this_8 = _this__u8e3s4.
|
|
442
|
+
var this_8 = _this__u8e3s4.c25_1;
|
|
456
443
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_8, 10)), 16);
|
|
457
444
|
// Inline function 'kotlin.collections.associateTo' call
|
|
458
445
|
var destination_5 = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -461,8 +448,8 @@ function emit_1(_this__u8e3s4, $this) {
|
|
|
461
448
|
var element_2 = tmp0_iterator_5.i();
|
|
462
449
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
463
450
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
464
|
-
var tmp_5 = _StatusCode___init__impl__t1yi9q(element_2.
|
|
465
|
-
var tmp0_safe_receiver_5 = _this__u8e3s4.
|
|
451
|
+
var tmp_5 = _StatusCode___init__impl__t1yi9q(element_2.i25_1);
|
|
452
|
+
var tmp0_safe_receiver_5 = _this__u8e3s4.u24_1;
|
|
466
453
|
var tmp_6;
|
|
467
454
|
var tmp_7 = tmp0_safe_receiver_5;
|
|
468
455
|
if ((tmp_7 == null ? null : new Comment(tmp_7)) == null) {
|
|
@@ -471,9 +458,9 @@ function emit_1(_this__u8e3s4, $this) {
|
|
|
471
458
|
tmp_6 = _Comment___get_value__impl__8r3pla(tmp0_safe_receiver_5);
|
|
472
459
|
}
|
|
473
460
|
var tmp1_elvis_lhs = tmp_6;
|
|
474
|
-
var tmp4_description = tmp1_elvis_lhs == null ? _this__u8e3s4.
|
|
461
|
+
var tmp4_description = tmp1_elvis_lhs == null ? _this__u8e3s4.w24_1.b1() + ' ' + element_2.i25_1 + ' response' : tmp1_elvis_lhs;
|
|
475
462
|
// Inline function 'kotlin.collections.associate' call
|
|
476
|
-
var this_9 = element_2.
|
|
463
|
+
var this_9 = element_2.j25_1;
|
|
477
464
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_9, 10)), 16);
|
|
478
465
|
// Inline function 'kotlin.collections.associateTo' call
|
|
479
466
|
var destination_6 = LinkedHashMap_init_$Create$(capacity_0);
|
|
@@ -482,18 +469,18 @@ function emit_1(_this__u8e3s4, $this) {
|
|
|
482
469
|
var element_3 = tmp0_iterator_6.i();
|
|
483
470
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
484
471
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
485
|
-
var tmp_8 = element_3.
|
|
486
|
-
var tmp2_type = emitType_0(element_3.
|
|
487
|
-
var tmp3_format = emitFormat(element_3.
|
|
488
|
-
var tmp4_pattern = emitPattern(element_3.
|
|
489
|
-
var tmp_9 = element_3.
|
|
472
|
+
var tmp_8 = element_3.r24_1.b1();
|
|
473
|
+
var tmp2_type = emitType_0(element_3.s24_1, OpenAPIV2Emitter_getInstance());
|
|
474
|
+
var tmp3_format = emitFormat(element_3.s24_1, OpenAPIV2Emitter_getInstance());
|
|
475
|
+
var tmp4_pattern = emitPattern(element_3.s24_1, OpenAPIV2Emitter_getInstance());
|
|
476
|
+
var tmp_9 = element_3.s24_1;
|
|
490
477
|
var tmp0_safe_receiver_6 = tmp_9 instanceof Iterable ? tmp_9 : null;
|
|
491
478
|
var tmp1_safe_receiver = tmp0_safe_receiver_6 == null ? null : tmp0_safe_receiver_6.r23_1;
|
|
492
479
|
var tmp5_items = tmp1_safe_receiver == null ? null : toSchemaOrReference(tmp1_safe_receiver, OpenAPIV2Emitter_getInstance());
|
|
493
480
|
var pair = to(tmp_8, new HeaderObject(VOID, tmp2_type, tmp3_format, tmp5_items, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp4_pattern));
|
|
494
481
|
destination_6.n2(pair.ee_1, pair.fe_1);
|
|
495
482
|
}
|
|
496
|
-
var tmp2_safe_receiver = element_2.
|
|
483
|
+
var tmp2_safe_receiver = element_2.k25_1;
|
|
497
484
|
var tmp_10;
|
|
498
485
|
if (tmp2_safe_receiver == null) {
|
|
499
486
|
tmp_10 = null;
|
|
@@ -502,7 +489,7 @@ function emit_1(_this__u8e3s4, $this) {
|
|
|
502
489
|
// Inline function 'kotlin.contracts.contract' call
|
|
503
490
|
var tmp_11;
|
|
504
491
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
505
|
-
var tmp_12 = tmp2_safe_receiver.
|
|
492
|
+
var tmp_12 = tmp2_safe_receiver.h25_1;
|
|
506
493
|
if (!(tmp_12 instanceof Unit)) {
|
|
507
494
|
tmp_11 = tmp2_safe_receiver;
|
|
508
495
|
} else {
|
|
@@ -518,7 +505,7 @@ function emit_1(_this__u8e3s4, $this) {
|
|
|
518
505
|
// Inline function 'kotlin.let' call
|
|
519
506
|
// Inline function 'kotlin.contracts.contract' call
|
|
520
507
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
521
|
-
var ref = tmp3_safe_receiver.
|
|
508
|
+
var ref = tmp3_safe_receiver.h25_1;
|
|
522
509
|
var tmp_14;
|
|
523
510
|
if (ref instanceof Iterable) {
|
|
524
511
|
tmp_14 = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), toSchemaOrReference(ref.r23_1, OpenAPIV2Emitter_getInstance()));
|
|
@@ -537,11 +524,11 @@ function emitSegment(_this__u8e3s4, $this) {
|
|
|
537
524
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenAPIV2Emitter$emitSegment$lambda);
|
|
538
525
|
}
|
|
539
526
|
function emitParameter(_this__u8e3s4, $this, location) {
|
|
540
|
-
var tmp0_name = _this__u8e3s4.
|
|
541
|
-
var tmp1_type = emitType_0(_this__u8e3s4.
|
|
542
|
-
var tmp2_format = emitFormat(_this__u8e3s4.
|
|
543
|
-
var tmp3_pattern = emitPattern(_this__u8e3s4.
|
|
544
|
-
var ref = _this__u8e3s4.
|
|
527
|
+
var tmp0_name = _this__u8e3s4.r24_1.b1();
|
|
528
|
+
var tmp1_type = emitType_0(_this__u8e3s4.s24_1, $this);
|
|
529
|
+
var tmp2_format = emitFormat(_this__u8e3s4.s24_1, $this);
|
|
530
|
+
var tmp3_pattern = emitPattern(_this__u8e3s4.s24_1, $this);
|
|
531
|
+
var ref = _this__u8e3s4.s24_1;
|
|
545
532
|
var tmp;
|
|
546
533
|
if (ref instanceof Iterable) {
|
|
547
534
|
var emit = toSchemaOrReference(ref, $this);
|
|
@@ -560,7 +547,7 @@ function emitParameter(_this__u8e3s4, $this, location) {
|
|
|
560
547
|
tmp = null;
|
|
561
548
|
}
|
|
562
549
|
var tmp4_items = tmp;
|
|
563
|
-
var tmp5_required = !_this__u8e3s4.
|
|
550
|
+
var tmp5_required = !_this__u8e3s4.s24_1.jm();
|
|
564
551
|
return new ParameterObject(tmp0_name, location, VOID, tmp5_required, VOID, tmp1_type, tmp4_items, tmp2_format, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_pattern);
|
|
565
552
|
}
|
|
566
553
|
function toSchemaOrReference(_this__u8e3s4, $this) {
|
|
@@ -572,10 +559,10 @@ function toSchemaOrReference(_this__u8e3s4, $this) {
|
|
|
572
559
|
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.r23_1, $this));
|
|
573
560
|
} else {
|
|
574
561
|
if (_this__u8e3s4 instanceof Custom) {
|
|
575
|
-
tmp = new ReferenceObject(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.
|
|
562
|
+
tmp = new ReferenceObject(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.r29_1));
|
|
576
563
|
} else {
|
|
577
564
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
578
|
-
var tmp1_type = emitType(_this__u8e3s4.
|
|
565
|
+
var tmp1_type = emitType(_this__u8e3s4.v29_1, $this);
|
|
579
566
|
var tmp2_format = emitFormat(_this__u8e3s4, $this);
|
|
580
567
|
var tmp3_pattern = emitPattern(_this__u8e3s4, $this);
|
|
581
568
|
tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, tmp2_format, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_pattern, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_type);
|
|
@@ -631,7 +618,7 @@ function emitType_0(_this__u8e3s4, $this) {
|
|
|
631
618
|
tmp = Type_ARRAY_getInstance();
|
|
632
619
|
} else {
|
|
633
620
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
634
|
-
tmp = emitType(_this__u8e3s4.
|
|
621
|
+
tmp = emitType(_this__u8e3s4.v29_1, $this);
|
|
635
622
|
} else {
|
|
636
623
|
if (_this__u8e3s4 instanceof Custom) {
|
|
637
624
|
tmp = Type_OBJECT_getInstance();
|
|
@@ -654,11 +641,11 @@ function emitType_0(_this__u8e3s4, $this) {
|
|
|
654
641
|
function emitFormat(_this__u8e3s4, $this) {
|
|
655
642
|
var tmp;
|
|
656
643
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
657
|
-
var t = _this__u8e3s4.
|
|
644
|
+
var t = _this__u8e3s4.v29_1;
|
|
658
645
|
var tmp_0;
|
|
659
646
|
if (t instanceof Number_0) {
|
|
660
647
|
var tmp_1;
|
|
661
|
-
switch (t.
|
|
648
|
+
switch (t.d29_1.r2_1) {
|
|
662
649
|
case 0:
|
|
663
650
|
tmp_1 = 'float';
|
|
664
651
|
break;
|
|
@@ -673,7 +660,7 @@ function emitFormat(_this__u8e3s4, $this) {
|
|
|
673
660
|
} else {
|
|
674
661
|
if (t instanceof Integer) {
|
|
675
662
|
var tmp_2;
|
|
676
|
-
switch (t.
|
|
663
|
+
switch (t.a29_1.r2_1) {
|
|
677
664
|
case 0:
|
|
678
665
|
tmp_2 = 'int32';
|
|
679
666
|
break;
|
|
@@ -702,10 +689,10 @@ function emitFormat(_this__u8e3s4, $this) {
|
|
|
702
689
|
function emitPattern(_this__u8e3s4, $this) {
|
|
703
690
|
var tmp;
|
|
704
691
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
705
|
-
var t = _this__u8e3s4.
|
|
692
|
+
var t = _this__u8e3s4.v29_1;
|
|
706
693
|
var tmp_0;
|
|
707
694
|
if (t instanceof String_0) {
|
|
708
|
-
var p = t.
|
|
695
|
+
var p = t.y28_1;
|
|
709
696
|
var tmp_1;
|
|
710
697
|
var tmp_2 = p;
|
|
711
698
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2))instanceof RegExp_0) {
|
|
@@ -726,16 +713,16 @@ function emitPattern(_this__u8e3s4, $this) {
|
|
|
726
713
|
function emitMinimum(_this__u8e3s4, $this) {
|
|
727
714
|
var tmp;
|
|
728
715
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
729
|
-
var t = _this__u8e3s4.
|
|
716
|
+
var t = _this__u8e3s4.v29_1;
|
|
730
717
|
var tmp_0;
|
|
731
718
|
if (t instanceof Number_0) {
|
|
732
|
-
var tmp1_safe_receiver = t.
|
|
733
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
719
|
+
var tmp1_safe_receiver = t.e29_1;
|
|
720
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.w28_1;
|
|
734
721
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
735
722
|
} else {
|
|
736
723
|
if (t instanceof Integer) {
|
|
737
|
-
var tmp3_safe_receiver = t.
|
|
738
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
724
|
+
var tmp3_safe_receiver = t.b29_1;
|
|
725
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.w28_1;
|
|
739
726
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
740
727
|
} else {
|
|
741
728
|
tmp_0 = null;
|
|
@@ -750,10 +737,10 @@ function emitMinimum(_this__u8e3s4, $this) {
|
|
|
750
737
|
function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
751
738
|
var tmp;
|
|
752
739
|
if (it instanceof Param) {
|
|
753
|
-
tmp = '{' + it.
|
|
740
|
+
tmp = '{' + it.d25_1.b1() + '}';
|
|
754
741
|
} else {
|
|
755
742
|
if (it instanceof Literal) {
|
|
756
|
-
tmp = it.
|
|
743
|
+
tmp = it.y25_1;
|
|
757
744
|
} else {
|
|
758
745
|
noWhenBranchMatchedException();
|
|
759
746
|
}
|
|
@@ -762,14 +749,15 @@ function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
|
762
749
|
}
|
|
763
750
|
function OpenAPIV2Emitter() {
|
|
764
751
|
OpenAPIV2Emitter_instance = this;
|
|
765
|
-
this.
|
|
752
|
+
this.k2f_1 = FileExtension_JSON_getInstance();
|
|
766
753
|
}
|
|
767
754
|
protoOf(OpenAPIV2Emitter).g23 = function (ast, logger) {
|
|
755
|
+
// Inline function 'kotlin.let' call
|
|
756
|
+
// Inline function 'kotlin.let' call
|
|
768
757
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
769
|
-
var this_0 = ast.
|
|
758
|
+
var this_0 = ast.s25_1;
|
|
770
759
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
771
|
-
var
|
|
772
|
-
var tmp = emit(OpenAPIV2Emitter_getInstance(), it).nk();
|
|
760
|
+
var tmp = this_0.pk_1.u25_1.nk();
|
|
773
761
|
// Inline function 'kotlin.collections.flatMap' call
|
|
774
762
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
775
763
|
var this_1 = this_0.qk_1;
|
|
@@ -778,12 +766,28 @@ protoOf(OpenAPIV2Emitter).g23 = function (ast, logger) {
|
|
|
778
766
|
while (tmp0_iterator.h()) {
|
|
779
767
|
var element = tmp0_iterator.i();
|
|
780
768
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
781
|
-
var list =
|
|
769
|
+
var list = element.u25_1;
|
|
782
770
|
addAll(destination, list);
|
|
783
771
|
}
|
|
784
|
-
|
|
772
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
773
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
774
|
+
var it = tmp.uk(destination);
|
|
775
|
+
var tmp_0 = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().l2f_1.e26_1;
|
|
776
|
+
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
777
|
+
var this_2 = Common_getInstance().h2f_1;
|
|
778
|
+
var value = OpenAPIV3Emitter_getInstance().m2f(it, null);
|
|
779
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
780
|
+
var this_3 = this_2.zo();
|
|
781
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
782
|
+
var this_4 = serializer(this_3, createKType(getKClass(OpenAPIObject), arrayOf([]), false));
|
|
783
|
+
var tmp$ret$6 = isInterface(this_4, KSerializer) ? this_4 : THROW_CCE();
|
|
784
|
+
var tmp$ret$7 = this_2.m15(tmp$ret$6, value);
|
|
785
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
786
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
787
|
+
var it_0 = new Emitted(tmp_0, tmp$ret$7);
|
|
788
|
+
return nonEmptyListOf(it_0, []);
|
|
785
789
|
};
|
|
786
|
-
protoOf(OpenAPIV2Emitter).
|
|
790
|
+
protoOf(OpenAPIV2Emitter).n2f = function (statements) {
|
|
787
791
|
var tmp = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, '0.0.0');
|
|
788
792
|
var tmp_0 = listOf('application/json');
|
|
789
793
|
var tmp_1 = listOf('application/json');
|
|
@@ -791,9 +795,8 @@ protoOf(OpenAPIV2Emitter).x2e = function (module_0) {
|
|
|
791
795
|
// Inline function 'kotlin.collections.groupBy' call
|
|
792
796
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
793
797
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
794
|
-
var this_0 = module_0.p25_1;
|
|
795
798
|
var destination = ArrayList_init_$Create$();
|
|
796
|
-
var tmp0_iterator =
|
|
799
|
+
var tmp0_iterator = statements.g();
|
|
797
800
|
while (tmp0_iterator.h()) {
|
|
798
801
|
var element = tmp0_iterator.i();
|
|
799
802
|
if (element instanceof Endpoint) {
|
|
@@ -806,7 +809,7 @@ protoOf(OpenAPIV2Emitter).x2e = function (module_0) {
|
|
|
806
809
|
while (tmp0_iterator_0.h()) {
|
|
807
810
|
var element_0 = tmp0_iterator_0.i();
|
|
808
811
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
809
|
-
var key = element_0.
|
|
812
|
+
var key = element_0.y24_1;
|
|
810
813
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
811
814
|
var value = destination_0.g2(key);
|
|
812
815
|
var tmp_2;
|
|
@@ -851,22 +854,22 @@ protoOf(OpenAPIV2Emitter).x2e = function (module_0) {
|
|
|
851
854
|
var item_0 = tmp0_iterator_3.i();
|
|
852
855
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
853
856
|
var tmp0_in = ParameterLocation_PATH_getInstance();
|
|
854
|
-
var tmp1_name = item_0.
|
|
855
|
-
var tmp2_type = emitType_0(item_0.
|
|
856
|
-
var tmp3_format = emitFormat(item_0.
|
|
857
|
-
var tmp4_pattern = emitPattern(item_0.
|
|
858
|
-
var tmp5_minimum = emitMinimum(item_0.
|
|
857
|
+
var tmp1_name = item_0.d25_1.b1();
|
|
858
|
+
var tmp2_type = emitType_0(item_0.e25_1, OpenAPIV2Emitter_getInstance());
|
|
859
|
+
var tmp3_format = emitFormat(item_0.e25_1, OpenAPIV2Emitter_getInstance());
|
|
860
|
+
var tmp4_pattern = emitPattern(item_0.e25_1, OpenAPIV2Emitter_getInstance());
|
|
861
|
+
var tmp5_minimum = emitMinimum(item_0.e25_1, OpenAPIV2Emitter_getInstance());
|
|
859
862
|
var tmp$ret$12 = new ParameterObject(tmp1_name, tmp0_in, VOID, VOID, VOID, tmp2_type, VOID, tmp3_format, VOID, VOID, VOID, VOID, VOID, tmp5_minimum, VOID, VOID, VOID, tmp4_pattern);
|
|
860
863
|
destination_3.e(tmp$ret$12);
|
|
861
864
|
}
|
|
862
|
-
var tmp1_get =
|
|
863
|
-
var tmp2_post =
|
|
864
|
-
var tmp3_put =
|
|
865
|
-
var tmp4_delete =
|
|
866
|
-
var tmp5_patch =
|
|
867
|
-
var tmp6_options =
|
|
868
|
-
var tmp7_trace =
|
|
869
|
-
var tmp8_head =
|
|
865
|
+
var tmp1_get = emit(endpoints, OpenAPIV2Emitter_getInstance(), Method_GET_getInstance());
|
|
866
|
+
var tmp2_post = emit(endpoints, OpenAPIV2Emitter_getInstance(), Method_POST_getInstance());
|
|
867
|
+
var tmp3_put = emit(endpoints, OpenAPIV2Emitter_getInstance(), Method_PUT_getInstance());
|
|
868
|
+
var tmp4_delete = emit(endpoints, OpenAPIV2Emitter_getInstance(), Method_DELETE_getInstance());
|
|
869
|
+
var tmp5_patch = emit(endpoints, OpenAPIV2Emitter_getInstance(), Method_PATCH_getInstance());
|
|
870
|
+
var tmp6_options = emit(endpoints, OpenAPIV2Emitter_getInstance(), Method_OPTIONS_getInstance());
|
|
871
|
+
var tmp7_trace = emit(endpoints, OpenAPIV2Emitter_getInstance(), Method_TRACE_getInstance());
|
|
872
|
+
var tmp8_head = emit(endpoints, OpenAPIV2Emitter_getInstance(), Method_HEAD_getInstance());
|
|
870
873
|
var tmp$ret$15 = to(new Path(tmp_3), new PathItemObject(VOID, VOID, VOID, tmp1_get, tmp3_put, tmp2_post, tmp4_delete, tmp6_options, tmp8_head, tmp5_patch, tmp7_trace, VOID, destination_3));
|
|
871
874
|
destination_1.e(tmp$ret$15);
|
|
872
875
|
}
|
|
@@ -874,9 +877,8 @@ protoOf(OpenAPIV2Emitter).x2e = function (module_0) {
|
|
|
874
877
|
// Inline function 'kotlin.collections.associate' call
|
|
875
878
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
876
879
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
877
|
-
var this_1 = module_0.p25_1;
|
|
878
880
|
var destination_4 = ArrayList_init_$Create$();
|
|
879
|
-
var tmp0_iterator_4 =
|
|
881
|
+
var tmp0_iterator_4 = statements.g();
|
|
880
882
|
while (tmp0_iterator_4.h()) {
|
|
881
883
|
var element_2 = tmp0_iterator_4.i();
|
|
882
884
|
if (element_2 instanceof Refined) {
|
|
@@ -891,39 +893,39 @@ protoOf(OpenAPIV2Emitter).x2e = function (module_0) {
|
|
|
891
893
|
var element_3 = tmp0_iterator_5.i();
|
|
892
894
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
893
895
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
894
|
-
var type = element_3.
|
|
896
|
+
var type = element_3.t26_1.v29_1;
|
|
895
897
|
var tmp_5;
|
|
896
898
|
if (equals(type, Boolean_instance)) {
|
|
897
|
-
tmp_5 = to(element_3.
|
|
899
|
+
tmp_5 = to(element_3.s26_1.b1(), new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_BOOLEAN_getInstance()));
|
|
898
900
|
} else {
|
|
899
901
|
if (equals(type, Bytes_instance)) {
|
|
900
|
-
tmp_5 = to(element_3.
|
|
902
|
+
tmp_5 = to(element_3.s26_1.b1(), new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_FILE_getInstance()));
|
|
901
903
|
} else {
|
|
902
904
|
if (type instanceof Integer) {
|
|
903
|
-
var tmp_6 = element_3.
|
|
905
|
+
var tmp_6 = element_3.s26_1.b1();
|
|
904
906
|
var tmp4_type = Type_INTEGER_getInstance();
|
|
905
|
-
var tmp0_safe_receiver = type.
|
|
906
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
907
|
+
var tmp0_safe_receiver = type.b29_1;
|
|
908
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w28_1;
|
|
907
909
|
var tmp5_minimum_0 = tmp1_safe_receiver == null ? null : toDouble(tmp1_safe_receiver);
|
|
908
|
-
var tmp2_safe_receiver = type.
|
|
909
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
910
|
+
var tmp2_safe_receiver = type.b29_1;
|
|
911
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.w28_1;
|
|
910
912
|
var tmp6_maximum = tmp3_safe_receiver == null ? null : toDouble(tmp3_safe_receiver);
|
|
911
913
|
tmp_5 = to(tmp_6, new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp6_maximum, VOID, tmp5_minimum_0, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp4_type));
|
|
912
914
|
} else {
|
|
913
915
|
if (type instanceof Number_0) {
|
|
914
|
-
var tmp_7 = element_3.
|
|
916
|
+
var tmp_7 = element_3.s26_1.b1();
|
|
915
917
|
var tmp11_type = Type_NUMBER_getInstance();
|
|
916
|
-
var tmp7_safe_receiver = type.
|
|
917
|
-
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.
|
|
918
|
+
var tmp7_safe_receiver = type.e29_1;
|
|
919
|
+
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.w28_1;
|
|
918
920
|
var tmp12_minimum = tmp8_safe_receiver == null ? null : toDouble(tmp8_safe_receiver);
|
|
919
|
-
var tmp9_safe_receiver = type.
|
|
920
|
-
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.
|
|
921
|
+
var tmp9_safe_receiver = type.e29_1;
|
|
922
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.w28_1;
|
|
921
923
|
var tmp13_maximum = tmp10_safe_receiver == null ? null : toDouble(tmp10_safe_receiver);
|
|
922
924
|
tmp_5 = to(tmp_7, new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp13_maximum, VOID, tmp12_minimum, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp11_type));
|
|
923
925
|
} else {
|
|
924
926
|
if (type instanceof String_0) {
|
|
925
|
-
var tmp_8 = element_3.
|
|
926
|
-
var pattern = type.
|
|
927
|
+
var tmp_8 = element_3.s26_1.b1();
|
|
928
|
+
var pattern = type.y28_1;
|
|
927
929
|
var tmp_9;
|
|
928
930
|
var tmp_10 = pattern;
|
|
929
931
|
if ((tmp_10 == null ? null : new RegExp_0(tmp_10))instanceof RegExp_0) {
|
|
@@ -953,9 +955,8 @@ protoOf(OpenAPIV2Emitter).x2e = function (module_0) {
|
|
|
953
955
|
// Inline function 'kotlin.collections.associate' call
|
|
954
956
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
955
957
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
956
|
-
var this_2 = module_0.p25_1;
|
|
957
958
|
var destination_6 = ArrayList_init_$Create$();
|
|
958
|
-
var tmp0_iterator_6 =
|
|
959
|
+
var tmp0_iterator_6 = statements.g();
|
|
959
960
|
while (tmp0_iterator_6.h()) {
|
|
960
961
|
var element_4 = tmp0_iterator_6.i();
|
|
961
962
|
if (element_4 instanceof Type) {
|
|
@@ -970,13 +971,13 @@ protoOf(OpenAPIV2Emitter).x2e = function (module_0) {
|
|
|
970
971
|
var element_5 = tmp0_iterator_7.i();
|
|
971
972
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
972
973
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
973
|
-
var tmp_13 = element_5.
|
|
974
|
+
var tmp_13 = element_5.n24_1.b1();
|
|
974
975
|
// Inline function 'kotlin.collections.associate' call
|
|
975
|
-
var
|
|
976
|
-
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(
|
|
976
|
+
var this_0 = element_5.o24_1.k24_1;
|
|
977
|
+
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
977
978
|
// Inline function 'kotlin.collections.associateTo' call
|
|
978
979
|
var destination_8 = LinkedHashMap_init_$Create$(capacity_1);
|
|
979
|
-
var tmp0_iterator_8 =
|
|
980
|
+
var tmp0_iterator_8 = this_0.g();
|
|
980
981
|
while (tmp0_iterator_8.h()) {
|
|
981
982
|
var element_6 = tmp0_iterator_8.i();
|
|
982
983
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
@@ -988,13 +989,13 @@ protoOf(OpenAPIV2Emitter).x2e = function (module_0) {
|
|
|
988
989
|
// Inline function 'kotlin.collections.map' call
|
|
989
990
|
// Inline function 'kotlin.collections.filter' call
|
|
990
991
|
// Inline function 'kotlin.collections.filterTo' call
|
|
991
|
-
var
|
|
992
|
+
var this_1 = element_5.o24_1.k24_1;
|
|
992
993
|
var destination_9 = ArrayList_init_$Create$();
|
|
993
|
-
var tmp0_iterator_9 =
|
|
994
|
+
var tmp0_iterator_9 = this_1.g();
|
|
994
995
|
while (tmp0_iterator_9.h()) {
|
|
995
996
|
var element_7 = tmp0_iterator_9.i();
|
|
996
997
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
997
|
-
if (!element_7.
|
|
998
|
+
if (!element_7.s24_1.jm()) {
|
|
998
999
|
destination_9.e(element_7);
|
|
999
1000
|
}
|
|
1000
1001
|
}
|
|
@@ -1004,7 +1005,7 @@ protoOf(OpenAPIV2Emitter).x2e = function (module_0) {
|
|
|
1004
1005
|
while (tmp0_iterator_10.h()) {
|
|
1005
1006
|
var item_1 = tmp0_iterator_10.i();
|
|
1006
1007
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
1007
|
-
var tmp$ret$31 = item_1.
|
|
1008
|
+
var tmp$ret$31 = item_1.r24_1.b1();
|
|
1008
1009
|
destination_10.e(tmp$ret$31);
|
|
1009
1010
|
}
|
|
1010
1011
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -1024,9 +1025,8 @@ protoOf(OpenAPIV2Emitter).x2e = function (module_0) {
|
|
|
1024
1025
|
// Inline function 'kotlin.collections.associate' call
|
|
1025
1026
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1026
1027
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
1027
|
-
var this_5 = module_0.p25_1;
|
|
1028
1028
|
var destination_11 = ArrayList_init_$Create$();
|
|
1029
|
-
var tmp0_iterator_11 =
|
|
1029
|
+
var tmp0_iterator_11 = statements.g();
|
|
1030
1030
|
while (tmp0_iterator_11.h()) {
|
|
1031
1031
|
var element_8 = tmp0_iterator_11.i();
|
|
1032
1032
|
if (element_8 instanceof Enum) {
|
|
@@ -1041,13 +1041,13 @@ protoOf(OpenAPIV2Emitter).x2e = function (module_0) {
|
|
|
1041
1041
|
var element_9 = tmp0_iterator_12.i();
|
|
1042
1042
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1043
1043
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
1044
|
-
var tmp_16 = element_9.
|
|
1044
|
+
var tmp_16 = element_9.x26_1.b1();
|
|
1045
1045
|
var tmp0_type = Type_STRING_getInstance();
|
|
1046
1046
|
// Inline function 'kotlin.collections.map' call
|
|
1047
|
-
var
|
|
1047
|
+
var this_2 = element_9.y26_1;
|
|
1048
1048
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1049
|
-
var destination_13 = ArrayList_init_$Create$_0(collectionSizeOrDefault(
|
|
1050
|
-
var tmp0_iterator_13 =
|
|
1049
|
+
var destination_13 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
|
|
1050
|
+
var tmp0_iterator_13 = this_2.g();
|
|
1051
1051
|
while (tmp0_iterator_13.h()) {
|
|
1052
1052
|
var item_2 = tmp0_iterator_13.i();
|
|
1053
1053
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
@@ -1190,7 +1190,7 @@ function parseEndpoints(_this__u8e3s4, $this) {
|
|
|
1190
1190
|
tmp_1 = toReference(_this__u8e3s4, OpenAPIV2Parser_instance, schema, isNullable);
|
|
1191
1191
|
} else {
|
|
1192
1192
|
if (schema instanceof SchemaObject) {
|
|
1193
|
-
tmp_1 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, schema, Common_getInstance().
|
|
1193
|
+
tmp_1 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, schema, Common_getInstance().i2f([name, 'RequestBody']), isNullable);
|
|
1194
1194
|
} else {
|
|
1195
1195
|
if (schema == null) {
|
|
1196
1196
|
var reason = 'Not yet implemented';
|
|
@@ -1307,7 +1307,7 @@ function parseEndpoints(_this__u8e3s4, $this) {
|
|
|
1307
1307
|
tmp_10 = toReference(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver, false);
|
|
1308
1308
|
} else {
|
|
1309
1309
|
if (tmp1_safe_receiver instanceof SchemaObject) {
|
|
1310
|
-
tmp_10 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
1310
|
+
tmp_10 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver, Common_getInstance().i2f([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']), false);
|
|
1311
1311
|
} else {
|
|
1312
1312
|
noWhenBranchMatchedException();
|
|
1313
1313
|
}
|
|
@@ -1326,13 +1326,13 @@ function parseEndpoints(_this__u8e3s4, $this) {
|
|
|
1326
1326
|
while (tmp0_iterator_12.h()) {
|
|
1327
1327
|
var e = tmp0_iterator_12.i();
|
|
1328
1328
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
1329
|
-
var key = to(e.
|
|
1329
|
+
var key = to(e.i25_1, e.k25_1);
|
|
1330
1330
|
if (set.e(key)) {
|
|
1331
1331
|
list_1.e(e);
|
|
1332
1332
|
}
|
|
1333
1333
|
}
|
|
1334
1334
|
var responses = list_1;
|
|
1335
|
-
var list_2 = listOf(new Endpoint(null, new DefinitionIdentifier(sanitize(name)), method, segments, query, headers, requests, responses));
|
|
1335
|
+
var list_2 = listOf(new Endpoint(null, emptyList(), new DefinitionIdentifier(sanitize(name)), method, segments, query, headers, requests, responses));
|
|
1336
1336
|
addAll(destination_0, list_2);
|
|
1337
1337
|
}
|
|
1338
1338
|
var list_3 = destination_0;
|
|
@@ -1387,7 +1387,7 @@ function parseDefinitions(_this__u8e3s4, $this) {
|
|
|
1387
1387
|
while (tmp0_iterator_1.h()) {
|
|
1388
1388
|
var element_0 = tmp0_iterator_1.i();
|
|
1389
1389
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseDefinitions.<anonymous>' call
|
|
1390
|
-
var list = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, element_0.b1(), Common_getInstance().
|
|
1390
|
+
var list = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, element_0.b1(), Common_getInstance().i2f([element_0.a1()]));
|
|
1391
1391
|
addAll(destination_0, list);
|
|
1392
1392
|
}
|
|
1393
1393
|
return destination_0;
|
|
@@ -1614,7 +1614,8 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1614
1614
|
}
|
|
1615
1615
|
tmp = tmp_0;
|
|
1616
1616
|
} else if (!(schemaObject.x1n_1 == null)) {
|
|
1617
|
-
var tmp_5 =
|
|
1617
|
+
var tmp_5 = emptyList();
|
|
1618
|
+
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
1618
1619
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
1619
1620
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1620
1621
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -1626,17 +1627,17 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1626
1627
|
while (tmp0_iterator.h()) {
|
|
1627
1628
|
var element = tmp0_iterator.i();
|
|
1628
1629
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.flatten.<anonymous>' call
|
|
1629
|
-
var
|
|
1630
|
+
var tmp_7;
|
|
1630
1631
|
if (element instanceof SchemaObject) {
|
|
1631
|
-
|
|
1632
|
+
tmp_7 = toField_0(_this__u8e3s4, OpenAPIV2Parser_instance, element, name);
|
|
1632
1633
|
} else {
|
|
1633
1634
|
if (element instanceof ReferenceObject) {
|
|
1634
|
-
|
|
1635
|
+
tmp_7 = toField_0(_this__u8e3s4, OpenAPIV2Parser_instance, resolve(_this__u8e3s4, OpenAPIV2Parser_instance, resolveSchemaObject(_this__u8e3s4, OpenAPIV2Parser_instance, element)), getReference(element, OpenAPIV2Parser_instance));
|
|
1635
1636
|
} else {
|
|
1636
1637
|
noWhenBranchMatchedException();
|
|
1637
1638
|
}
|
|
1638
1639
|
}
|
|
1639
|
-
var list =
|
|
1640
|
+
var list = tmp_7;
|
|
1640
1641
|
addAll(destination, list);
|
|
1641
1642
|
}
|
|
1642
1643
|
var set = HashSet_init_$Create$();
|
|
@@ -1645,12 +1646,12 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1645
1646
|
while (tmp0_iterator_0.h()) {
|
|
1646
1647
|
var e = tmp0_iterator_0.i();
|
|
1647
1648
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.flatten.<anonymous>' call
|
|
1648
|
-
var key = e.
|
|
1649
|
+
var key = e.r24_1;
|
|
1649
1650
|
if (set.e(key)) {
|
|
1650
1651
|
list_0.e(e);
|
|
1651
1652
|
}
|
|
1652
1653
|
}
|
|
1653
|
-
var
|
|
1654
|
+
var tmp_8 = listOf(new Type(null, tmp_5, tmp_6, new Shape(list_0), emptyList()));
|
|
1654
1655
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1655
1656
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1656
1657
|
var this_1 = ensureNotNull(schemaObject.x1n_1);
|
|
@@ -1659,9 +1660,9 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1659
1660
|
while (tmp0_iterator_1.h()) {
|
|
1660
1661
|
var element_0 = tmp0_iterator_1.i();
|
|
1661
1662
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.flatten.<anonymous>' call
|
|
1662
|
-
var
|
|
1663
|
+
var tmp_9;
|
|
1663
1664
|
if (element_0 instanceof ReferenceObject) {
|
|
1664
|
-
|
|
1665
|
+
tmp_9 = emptyList();
|
|
1665
1666
|
} else {
|
|
1666
1667
|
if (element_0 instanceof SchemaObject) {
|
|
1667
1668
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1679,28 +1680,28 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1679
1680
|
var key_0 = element_1.a1();
|
|
1680
1681
|
// Inline function 'kotlin.collections.component2' call
|
|
1681
1682
|
var value = element_1.b1();
|
|
1682
|
-
var
|
|
1683
|
+
var tmp_10;
|
|
1683
1684
|
if (value instanceof ReferenceObject) {
|
|
1684
|
-
|
|
1685
|
+
tmp_10 = emptyList();
|
|
1685
1686
|
} else {
|
|
1686
1687
|
if (value instanceof SchemaObject) {
|
|
1687
|
-
|
|
1688
|
+
tmp_10 = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().i2f([name, key_0]));
|
|
1688
1689
|
} else {
|
|
1689
1690
|
noWhenBranchMatchedException();
|
|
1690
1691
|
}
|
|
1691
1692
|
}
|
|
1692
|
-
var list_1 =
|
|
1693
|
+
var list_1 = tmp_10;
|
|
1693
1694
|
addAll(destination_1, list_1);
|
|
1694
1695
|
}
|
|
1695
|
-
|
|
1696
|
+
tmp_9 = destination_1;
|
|
1696
1697
|
} else {
|
|
1697
1698
|
noWhenBranchMatchedException();
|
|
1698
1699
|
}
|
|
1699
1700
|
}
|
|
1700
|
-
var list_2 =
|
|
1701
|
+
var list_2 = tmp_9;
|
|
1701
1702
|
addAll(destination_0, list_2);
|
|
1702
1703
|
}
|
|
1703
|
-
tmp = plus(
|
|
1704
|
+
tmp = plus(tmp_8, destination_0);
|
|
1704
1705
|
} else if (!(schemaObject.u1n_1 == null)) {
|
|
1705
1706
|
// Inline function 'kotlin.let' call
|
|
1706
1707
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1717,10 +1718,10 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1717
1718
|
// Inline function 'kotlin.contracts.contract' call
|
|
1718
1719
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.flatten.<anonymous>' call
|
|
1719
1720
|
var it = toSet(destination_2);
|
|
1720
|
-
tmp = listOf(new Enum(null, new DefinitionIdentifier(sanitize(name)), it));
|
|
1721
|
+
tmp = listOf(new Enum(null, emptyList(), new DefinitionIdentifier(sanitize(name)), it));
|
|
1721
1722
|
} else {
|
|
1722
1723
|
var tmp5_subject = schemaObject.v1n_1;
|
|
1723
|
-
var
|
|
1724
|
+
var tmp_11;
|
|
1724
1725
|
switch (tmp5_subject == null ? -1 : tmp5_subject.r2_1) {
|
|
1725
1726
|
case -1:
|
|
1726
1727
|
case 5:
|
|
@@ -1743,38 +1744,38 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1743
1744
|
var key_1 = element_2.a1();
|
|
1744
1745
|
// Inline function 'kotlin.collections.component2' call
|
|
1745
1746
|
var value_0 = element_2.b1();
|
|
1746
|
-
var list_3 = flatten_0(_this__u8e3s4, OpenAPIV2Parser_instance, value_0, Common_getInstance().
|
|
1747
|
+
var list_3 = flatten_0(_this__u8e3s4, OpenAPIV2Parser_instance, value_0, Common_getInstance().i2f([name, key_1]));
|
|
1747
1748
|
addAll(destination_3, list_3);
|
|
1748
1749
|
}
|
|
1749
1750
|
|
|
1750
1751
|
var fields = destination_3;
|
|
1751
|
-
var schema = listOf(new Type(null, new DefinitionIdentifier(sanitize(name)), new Shape(toField_0(_this__u8e3s4, $this, schemaObject, name)), emptyList()));
|
|
1752
|
-
|
|
1752
|
+
var schema = listOf(new Type(null, emptyList(), new DefinitionIdentifier(sanitize(name)), new Shape(toField_0(_this__u8e3s4, $this, schemaObject, name)), emptyList()));
|
|
1753
|
+
tmp_11 = plus(schema, fields);
|
|
1753
1754
|
break;
|
|
1754
1755
|
case 4:
|
|
1755
1756
|
var it_0 = schemaObject.w1n_1;
|
|
1756
|
-
var
|
|
1757
|
+
var tmp_12;
|
|
1757
1758
|
if (it_0 instanceof ReferenceObject) {
|
|
1758
|
-
|
|
1759
|
+
tmp_12 = emptyList();
|
|
1759
1760
|
} else {
|
|
1760
1761
|
if (it_0 instanceof SchemaObject) {
|
|
1761
|
-
|
|
1762
|
+
tmp_12 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().i2f([name, 'Array']));
|
|
1762
1763
|
} else {
|
|
1763
1764
|
if (it_0 == null) {
|
|
1764
|
-
|
|
1765
|
+
tmp_12 = emptyList();
|
|
1765
1766
|
} else {
|
|
1766
1767
|
noWhenBranchMatchedException();
|
|
1767
1768
|
}
|
|
1768
1769
|
}
|
|
1769
1770
|
}
|
|
1770
1771
|
|
|
1771
|
-
|
|
1772
|
+
tmp_11 = tmp_12;
|
|
1772
1773
|
break;
|
|
1773
1774
|
default:
|
|
1774
|
-
|
|
1775
|
+
tmp_11 = emptyList();
|
|
1775
1776
|
break;
|
|
1776
1777
|
}
|
|
1777
|
-
tmp =
|
|
1778
|
+
tmp = tmp_11;
|
|
1778
1779
|
}
|
|
1779
1780
|
return tmp;
|
|
1780
1781
|
}
|
|
@@ -1816,7 +1817,7 @@ function toReference(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
1816
1817
|
}
|
|
1817
1818
|
tmp = tmp_0;
|
|
1818
1819
|
} else if (!(schema.u1n_1 == null)) {
|
|
1819
|
-
tmp = new Custom(sanitize(Common_getInstance().
|
|
1820
|
+
tmp = new Custom(sanitize(Common_getInstance().i2f([getReference(reference, OpenAPIV2Parser_instance)])), isNullable);
|
|
1820
1821
|
} else if (isPrimitive(schema.v1n_1)) {
|
|
1821
1822
|
tmp = new Primitive(toPrimitive(schema, OpenAPIV2Parser_instance), isNullable);
|
|
1822
1823
|
} else {
|
|
@@ -1829,7 +1830,7 @@ function toReference(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
1829
1830
|
tmp_2 = toIterable(toReference(_this__u8e3s4, OpenAPIV2Parser_instance, items, false), isNullable);
|
|
1830
1831
|
} else {
|
|
1831
1832
|
if (items instanceof SchemaObject) {
|
|
1832
|
-
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, items, Common_getInstance().
|
|
1833
|
+
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, items, Common_getInstance().i2f([getReference(reference, OpenAPIV2Parser_instance), 'Array']), isNullable), isNullable);
|
|
1833
1834
|
} else {
|
|
1834
1835
|
if (items == null) {
|
|
1835
1836
|
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.e1o_1);
|
|
@@ -1843,10 +1844,10 @@ function toReference(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
1843
1844
|
} else {
|
|
1844
1845
|
var tmp_3;
|
|
1845
1846
|
if (refOrSchema instanceof SchemaObject) {
|
|
1846
|
-
tmp_3 = new Custom(sanitize(Common_getInstance().
|
|
1847
|
+
tmp_3 = new Custom(sanitize(Common_getInstance().i2f([getReference(reference, OpenAPIV2Parser_instance)])), isNullable);
|
|
1847
1848
|
} else {
|
|
1848
1849
|
if (refOrSchema instanceof ReferenceObject) {
|
|
1849
|
-
tmp_3 = new Custom(sanitize(Common_getInstance().
|
|
1850
|
+
tmp_3 = new Custom(sanitize(Common_getInstance().i2f([getReference(refOrSchema, OpenAPIV2Parser_instance)])), isNullable);
|
|
1850
1851
|
} else {
|
|
1851
1852
|
noWhenBranchMatchedException();
|
|
1852
1853
|
}
|
|
@@ -2016,7 +2017,7 @@ function toOperationList(_this__u8e3s4, $this) {
|
|
|
2016
2017
|
var tmp$ret$0 = tmp_0;
|
|
2017
2018
|
result.n2(element, tmp$ret$0);
|
|
2018
2019
|
}
|
|
2019
|
-
return tmp.
|
|
2020
|
+
return tmp.j2f(result);
|
|
2020
2021
|
}
|
|
2021
2022
|
function getReference(_this__u8e3s4, $this) {
|
|
2022
2023
|
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.e1o_1), ['/']).k(2);
|
|
@@ -2044,42 +2045,44 @@ function toPrimitive(_this__u8e3s4, $this) {
|
|
|
2044
2045
|
return tmp;
|
|
2045
2046
|
}
|
|
2046
2047
|
function toField(_this__u8e3s4, $this, header, identifier) {
|
|
2047
|
-
var
|
|
2048
|
-
var
|
|
2048
|
+
var tmp4_identifier = new FieldIdentifier(identifier);
|
|
2049
|
+
var tmp5_annotations = emptyList();
|
|
2050
|
+
var tmp;
|
|
2049
2051
|
if (header.x1o_1.r2_1 === 4) {
|
|
2050
2052
|
var tmp1_safe_receiver = header.z1o_1;
|
|
2051
|
-
var
|
|
2053
|
+
var tmp_0;
|
|
2052
2054
|
if (tmp1_safe_receiver == null) {
|
|
2053
|
-
|
|
2055
|
+
tmp_0 = null;
|
|
2054
2056
|
} else {
|
|
2055
2057
|
// Inline function 'kotlin.let' call
|
|
2056
2058
|
// Inline function 'kotlin.contracts.contract' call
|
|
2057
2059
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.toField.<anonymous>' call
|
|
2058
|
-
|
|
2060
|
+
tmp_0 = resolve(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver);
|
|
2059
2061
|
}
|
|
2060
|
-
var tmp2_safe_receiver =
|
|
2061
|
-
var
|
|
2062
|
+
var tmp2_safe_receiver = tmp_0;
|
|
2063
|
+
var tmp_1;
|
|
2062
2064
|
if (tmp2_safe_receiver == null) {
|
|
2063
|
-
|
|
2065
|
+
tmp_1 = null;
|
|
2064
2066
|
} else {
|
|
2065
2067
|
// Inline function 'kotlin.let' call
|
|
2066
2068
|
// Inline function 'kotlin.contracts.contract' call
|
|
2067
2069
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.toField.<anonymous>' call
|
|
2068
|
-
|
|
2070
|
+
tmp_1 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, tmp2_safe_receiver, identifier, false);
|
|
2069
2071
|
}
|
|
2070
|
-
var tmp3_elvis_lhs =
|
|
2071
|
-
var
|
|
2072
|
+
var tmp3_elvis_lhs = tmp_1;
|
|
2073
|
+
var tmp_2;
|
|
2072
2074
|
if (tmp3_elvis_lhs == null) {
|
|
2073
2075
|
var message = 'Item cannot be null';
|
|
2074
2076
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2075
2077
|
} else {
|
|
2076
|
-
|
|
2078
|
+
tmp_2 = tmp3_elvis_lhs;
|
|
2077
2079
|
}
|
|
2078
|
-
|
|
2080
|
+
tmp = tmp_2;
|
|
2079
2081
|
} else {
|
|
2080
|
-
|
|
2082
|
+
tmp = new Primitive(toPrimitive(header, $this), false);
|
|
2081
2083
|
}
|
|
2082
|
-
|
|
2084
|
+
var tmp6_reference = tmp;
|
|
2085
|
+
return new Field(tmp4_identifier, tmp6_reference, tmp5_annotations);
|
|
2083
2086
|
}
|
|
2084
2087
|
function toField_0(_this__u8e3s4, $this, schema, name) {
|
|
2085
2088
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2102,10 +2105,16 @@ function toField_0(_this__u8e3s4, $this, schema, name) {
|
|
|
2102
2105
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
2103
2106
|
var tmp;
|
|
2104
2107
|
if (value instanceof SchemaObject) {
|
|
2105
|
-
|
|
2108
|
+
var tmp3_identifier = new FieldIdentifier(key);
|
|
2109
|
+
var tmp4_annotations = emptyList();
|
|
2110
|
+
var tmp5_reference = !(value.u1n_1 == null) ? toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().i2f([name, key]), isNullable) : equals(value.v1n_1, Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().i2f([name, key, 'Array']), isNullable) : toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().i2f([name, key]), isNullable);
|
|
2111
|
+
tmp = new Field(tmp3_identifier, tmp5_reference, tmp4_annotations);
|
|
2106
2112
|
} else {
|
|
2107
2113
|
if (value instanceof ReferenceObject) {
|
|
2108
|
-
|
|
2114
|
+
var tmp6_identifier = new FieldIdentifier(key);
|
|
2115
|
+
var tmp7_annotations = emptyList();
|
|
2116
|
+
var tmp8_reference = toReference(_this__u8e3s4, OpenAPIV2Parser_instance, value, isNullable);
|
|
2117
|
+
tmp = new Field(tmp6_identifier, tmp8_reference, tmp7_annotations);
|
|
2109
2118
|
} else {
|
|
2110
2119
|
noWhenBranchMatchedException();
|
|
2111
2120
|
}
|
|
@@ -2125,7 +2134,7 @@ function toField_1(_this__u8e3s4, $this, parameter, name) {
|
|
|
2125
2134
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
2126
2135
|
var tmp;
|
|
2127
2136
|
if (!(parameter.s1j_1 == null)) {
|
|
2128
|
-
tmp = new Custom(sanitize(Common_getInstance().
|
|
2137
|
+
tmp = new Custom(sanitize(Common_getInstance().i2f([name, 'Parameter', schema.x1i_1])), isNullable);
|
|
2129
2138
|
} else {
|
|
2130
2139
|
var tmp1_subject = schema.c1j_1;
|
|
2131
2140
|
var tmp_0;
|
|
@@ -2196,7 +2205,9 @@ function toField_1(_this__u8e3s4, $this, parameter, name) {
|
|
|
2196
2205
|
// Inline function 'kotlin.contracts.contract' call
|
|
2197
2206
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.toField.<anonymous>' call
|
|
2198
2207
|
var it = tmp;
|
|
2199
|
-
|
|
2208
|
+
var tmp0_identifier = new FieldIdentifier(parameter.x1i_1);
|
|
2209
|
+
var tmp1_annotations = emptyList();
|
|
2210
|
+
return new Field(tmp0_identifier, it, tmp1_annotations);
|
|
2200
2211
|
}
|
|
2201
2212
|
function toSegments(_this__u8e3s4, $this, parameters) {
|
|
2202
2213
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2282,7 +2293,7 @@ function toName(_this__u8e3s4, $this) {
|
|
|
2282
2293
|
// Inline function 'kotlin.let' call
|
|
2283
2294
|
// Inline function 'kotlin.contracts.contract' call
|
|
2284
2295
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.toName.<anonymous>' call
|
|
2285
|
-
tmp = Common_getInstance().
|
|
2296
|
+
tmp = Common_getInstance().i2f([tmp0_safe_receiver]);
|
|
2286
2297
|
}
|
|
2287
2298
|
return tmp;
|
|
2288
2299
|
}
|
|
@@ -2304,21 +2315,21 @@ function toName_0(_this__u8e3s4, $this) {
|
|
|
2304
2315
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenAPIV2Parser$toName$lambda);
|
|
2305
2316
|
}
|
|
2306
2317
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
2307
|
-
this.
|
|
2308
|
-
this.
|
|
2309
|
-
this.
|
|
2310
|
-
this.
|
|
2311
|
-
this.
|
|
2318
|
+
this.o2f_1 = path;
|
|
2319
|
+
this.p2f_1 = pathItem;
|
|
2320
|
+
this.q2f_1 = method;
|
|
2321
|
+
this.r2f_1 = operation;
|
|
2322
|
+
this.s2f_1 = type;
|
|
2312
2323
|
}
|
|
2313
2324
|
protoOf(FlattenRequest).toString = function () {
|
|
2314
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
2325
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.o2f_1) + ', pathItem=' + this.p2f_1.toString() + ', method=' + this.q2f_1.toString() + ', operation=' + this.r2f_1.toString() + ', type=' + this.s2f_1 + ')';
|
|
2315
2326
|
};
|
|
2316
2327
|
protoOf(FlattenRequest).hashCode = function () {
|
|
2317
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2318
|
-
result = imul(result, 31) + this.
|
|
2319
|
-
result = imul(result, 31) + this.
|
|
2320
|
-
result = imul(result, 31) + this.
|
|
2321
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2328
|
+
var result = Path__hashCode_impl_go73kd(this.o2f_1);
|
|
2329
|
+
result = imul(result, 31) + this.p2f_1.hashCode() | 0;
|
|
2330
|
+
result = imul(result, 31) + this.q2f_1.hashCode() | 0;
|
|
2331
|
+
result = imul(result, 31) + this.r2f_1.hashCode() | 0;
|
|
2332
|
+
result = imul(result, 31) + getStringHashCode(this.s2f_1) | 0;
|
|
2322
2333
|
return result;
|
|
2323
2334
|
};
|
|
2324
2335
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -2327,15 +2338,15 @@ protoOf(FlattenRequest).equals = function (other) {
|
|
|
2327
2338
|
if (!(other instanceof FlattenRequest))
|
|
2328
2339
|
return false;
|
|
2329
2340
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
2330
|
-
if (!(this.
|
|
2341
|
+
if (!(this.o2f_1 === tmp0_other_with_cast.o2f_1))
|
|
2331
2342
|
return false;
|
|
2332
|
-
if (!this.
|
|
2343
|
+
if (!this.p2f_1.equals(tmp0_other_with_cast.p2f_1))
|
|
2333
2344
|
return false;
|
|
2334
|
-
if (!this.
|
|
2345
|
+
if (!this.q2f_1.equals(tmp0_other_with_cast.q2f_1))
|
|
2335
2346
|
return false;
|
|
2336
|
-
if (!this.
|
|
2347
|
+
if (!this.r2f_1.equals(tmp0_other_with_cast.r2f_1))
|
|
2337
2348
|
return false;
|
|
2338
|
-
if (!(this.
|
|
2349
|
+
if (!(this.s2f_1 === tmp0_other_with_cast.s2f_1))
|
|
2339
2350
|
return false;
|
|
2340
2351
|
return true;
|
|
2341
2352
|
};
|
|
@@ -2397,25 +2408,25 @@ function flatMapRequests(_this__u8e3s4, $this, f) {
|
|
|
2397
2408
|
return destination_2;
|
|
2398
2409
|
}
|
|
2399
2410
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
2400
|
-
this.
|
|
2401
|
-
this.
|
|
2402
|
-
this.
|
|
2403
|
-
this.
|
|
2404
|
-
this.
|
|
2405
|
-
this.
|
|
2406
|
-
this.
|
|
2411
|
+
this.t2f_1 = path;
|
|
2412
|
+
this.u2f_1 = pathItem;
|
|
2413
|
+
this.v2f_1 = method;
|
|
2414
|
+
this.w2f_1 = operation;
|
|
2415
|
+
this.x2f_1 = statusCode;
|
|
2416
|
+
this.y2f_1 = response;
|
|
2417
|
+
this.z2f_1 = type;
|
|
2407
2418
|
}
|
|
2408
2419
|
protoOf(FlattenResponse).toString = function () {
|
|
2409
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
2420
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.t2f_1) + ', pathItem=' + this.u2f_1.toString() + ', method=' + this.v2f_1.toString() + ', operation=' + this.w2f_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy(this.x2f_1) + ', response=' + toString(this.y2f_1) + ', type=' + this.z2f_1 + ')';
|
|
2410
2421
|
};
|
|
2411
2422
|
protoOf(FlattenResponse).hashCode = function () {
|
|
2412
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2413
|
-
result = imul(result, 31) + this.
|
|
2414
|
-
result = imul(result, 31) + this.
|
|
2415
|
-
result = imul(result, 31) + this.
|
|
2416
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
2417
|
-
result = imul(result, 31) + hashCode(this.
|
|
2418
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2423
|
+
var result = Path__hashCode_impl_go73kd(this.t2f_1);
|
|
2424
|
+
result = imul(result, 31) + this.u2f_1.hashCode() | 0;
|
|
2425
|
+
result = imul(result, 31) + this.v2f_1.hashCode() | 0;
|
|
2426
|
+
result = imul(result, 31) + this.w2f_1.hashCode() | 0;
|
|
2427
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.x2f_1) | 0;
|
|
2428
|
+
result = imul(result, 31) + hashCode(this.y2f_1) | 0;
|
|
2429
|
+
result = imul(result, 31) + getStringHashCode(this.z2f_1) | 0;
|
|
2419
2430
|
return result;
|
|
2420
2431
|
};
|
|
2421
2432
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -2424,19 +2435,19 @@ protoOf(FlattenResponse).equals = function (other) {
|
|
|
2424
2435
|
if (!(other instanceof FlattenResponse))
|
|
2425
2436
|
return false;
|
|
2426
2437
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
2427
|
-
if (!(this.
|
|
2438
|
+
if (!(this.t2f_1 === tmp0_other_with_cast.t2f_1))
|
|
2428
2439
|
return false;
|
|
2429
|
-
if (!this.
|
|
2440
|
+
if (!this.u2f_1.equals(tmp0_other_with_cast.u2f_1))
|
|
2430
2441
|
return false;
|
|
2431
|
-
if (!this.
|
|
2442
|
+
if (!this.v2f_1.equals(tmp0_other_with_cast.v2f_1))
|
|
2432
2443
|
return false;
|
|
2433
|
-
if (!this.
|
|
2444
|
+
if (!this.w2f_1.equals(tmp0_other_with_cast.w2f_1))
|
|
2434
2445
|
return false;
|
|
2435
|
-
if (!(this.
|
|
2446
|
+
if (!(this.x2f_1 === tmp0_other_with_cast.x2f_1))
|
|
2436
2447
|
return false;
|
|
2437
|
-
if (!equals(this.
|
|
2448
|
+
if (!equals(this.y2f_1, tmp0_other_with_cast.y2f_1))
|
|
2438
2449
|
return false;
|
|
2439
|
-
if (!(this.
|
|
2450
|
+
if (!(this.z2f_1 === tmp0_other_with_cast.z2f_1))
|
|
2440
2451
|
return false;
|
|
2441
2452
|
return true;
|
|
2442
2453
|
};
|
|
@@ -2524,9 +2535,9 @@ function OpenAPIV2Parser$parse$lambda($strict) {
|
|
|
2524
2535
|
}
|
|
2525
2536
|
function OpenAPIV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
2526
2537
|
return function ($this$flatMapRequests) {
|
|
2527
|
-
var parameters = plus(resolveParameters_0($this_parseParameters, OpenAPIV2Parser_instance, $this$flatMapRequests.
|
|
2528
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2529
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2538
|
+
var parameters = plus(resolveParameters_0($this_parseParameters, OpenAPIV2Parser_instance, $this$flatMapRequests.p2f_1), resolveParameters($this_parseParameters, OpenAPIV2Parser_instance, $this$flatMapRequests.r2f_1));
|
|
2539
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.r2f_1, OpenAPIV2Parser_instance);
|
|
2540
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.o2f_1, OpenAPIV2Parser_instance) + $this$flatMapRequests.q2f_1.q2_1 : tmp0_elvis_lhs;
|
|
2530
2541
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2531
2542
|
// Inline function 'kotlin.collections.filter' call
|
|
2532
2543
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -2553,7 +2564,7 @@ function OpenAPIV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
2553
2564
|
// Inline function 'kotlin.let' call
|
|
2554
2565
|
// Inline function 'kotlin.contracts.contract' call
|
|
2555
2566
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
2556
|
-
tmp = flatten_0($this_parseParameters, OpenAPIV2Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
2567
|
+
tmp = flatten_0($this_parseParameters, OpenAPIV2Parser_instance, tmp0_safe_receiver, Common_getInstance().i2f([name, 'Parameter', element_0.x1i_1]));
|
|
2557
2568
|
}
|
|
2558
2569
|
var tmp1_elvis_lhs = tmp;
|
|
2559
2570
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -2564,9 +2575,9 @@ function OpenAPIV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
2564
2575
|
}
|
|
2565
2576
|
function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
2566
2577
|
return function ($this$flatMapRequests) {
|
|
2567
|
-
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenAPIV2Parser_instance, $this$flatMapRequests.
|
|
2568
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2569
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2578
|
+
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenAPIV2Parser_instance, $this$flatMapRequests.p2f_1), resolveParameters($this_parseRequestBody, OpenAPIV2Parser_instance, $this$flatMapRequests.r2f_1));
|
|
2579
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.r2f_1, OpenAPIV2Parser_instance);
|
|
2580
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.o2f_1, OpenAPIV2Parser_instance) + $this$flatMapRequests.q2f_1.q2_1 : tmp0_elvis_lhs;
|
|
2570
2581
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2571
2582
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2572
2583
|
var destination = ArrayList_init_$Create$();
|
|
@@ -2576,7 +2587,8 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2576
2587
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
2577
2588
|
var tmp;
|
|
2578
2589
|
if (!(element.s1j_1 == null)) {
|
|
2579
|
-
var tmp_0 =
|
|
2590
|
+
var tmp_0 = emptyList();
|
|
2591
|
+
var tmp_1 = new DefinitionIdentifier(sanitize(Common_getInstance().i2f([name, 'Parameter', element.x1i_1])));
|
|
2580
2592
|
// Inline function 'kotlin.collections.map' call
|
|
2581
2593
|
var this_0 = ensureNotNull(element.s1j_1);
|
|
2582
2594
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2588,7 +2600,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2588
2600
|
var tmp$ret$0 = item.q17();
|
|
2589
2601
|
destination_0.e(tmp$ret$0);
|
|
2590
2602
|
}
|
|
2591
|
-
tmp = listOf(new Enum(null, tmp_0, toSet(destination_0)));
|
|
2603
|
+
tmp = listOf(new Enum(null, tmp_0, tmp_1, toSet(destination_0)));
|
|
2592
2604
|
} else {
|
|
2593
2605
|
tmp = emptyList();
|
|
2594
2606
|
}
|
|
@@ -2596,10 +2608,10 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2596
2608
|
addAll(destination, list);
|
|
2597
2609
|
}
|
|
2598
2610
|
var enums = destination;
|
|
2599
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
2600
|
-
var
|
|
2611
|
+
var tmp1_safe_receiver = $this$flatMapRequests.r2f_1.y1l_1;
|
|
2612
|
+
var tmp_2;
|
|
2601
2613
|
if (tmp1_safe_receiver == null) {
|
|
2602
|
-
|
|
2614
|
+
tmp_2 = null;
|
|
2603
2615
|
} else {
|
|
2604
2616
|
// Inline function 'kotlin.collections.map' call
|
|
2605
2617
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2611,12 +2623,12 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2611
2623
|
var tmp$ret$6 = resolve_3($this_parseRequestBody, OpenAPIV2Parser_instance, item_0);
|
|
2612
2624
|
destination_1.e(tmp$ret$6);
|
|
2613
2625
|
}
|
|
2614
|
-
|
|
2626
|
+
tmp_2 = destination_1;
|
|
2615
2627
|
}
|
|
2616
|
-
var tmp2_safe_receiver =
|
|
2617
|
-
var
|
|
2628
|
+
var tmp2_safe_receiver = tmp_2;
|
|
2629
|
+
var tmp_3;
|
|
2618
2630
|
if (tmp2_safe_receiver == null) {
|
|
2619
|
-
|
|
2631
|
+
tmp_3 = null;
|
|
2620
2632
|
} else {
|
|
2621
2633
|
// Inline function 'kotlin.collections.filter' call
|
|
2622
2634
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -2629,12 +2641,12 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2629
2641
|
destination_2.e(element_0);
|
|
2630
2642
|
}
|
|
2631
2643
|
}
|
|
2632
|
-
|
|
2644
|
+
tmp_3 = destination_2;
|
|
2633
2645
|
}
|
|
2634
|
-
var tmp3_safe_receiver =
|
|
2635
|
-
var
|
|
2646
|
+
var tmp3_safe_receiver = tmp_3;
|
|
2647
|
+
var tmp_4;
|
|
2636
2648
|
if (tmp3_safe_receiver == null) {
|
|
2637
|
-
|
|
2649
|
+
tmp_4 = null;
|
|
2638
2650
|
} else {
|
|
2639
2651
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2640
2652
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2644,55 +2656,55 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2644
2656
|
var element_1 = tmp0_iterator_3.i();
|
|
2645
2657
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
2646
2658
|
var schema = element_1.b1j_1;
|
|
2647
|
-
var
|
|
2659
|
+
var tmp_5;
|
|
2648
2660
|
if (schema instanceof SchemaObject) {
|
|
2649
2661
|
var tmp0_subject = schema.v1n_1;
|
|
2650
|
-
var
|
|
2662
|
+
var tmp_6;
|
|
2651
2663
|
switch (tmp0_subject == null ? -1 : tmp0_subject.r2_1) {
|
|
2652
2664
|
case -1:
|
|
2653
2665
|
case 5:
|
|
2654
|
-
|
|
2666
|
+
tmp_6 = flatten($this_parseRequestBody, OpenAPIV2Parser_instance, schema, Common_getInstance().i2f([name, 'RequestBody']));
|
|
2655
2667
|
break;
|
|
2656
2668
|
case 4:
|
|
2657
2669
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2658
2670
|
|
|
2659
2671
|
var tmp1_safe_receiver_0 = schema.w1n_1;
|
|
2660
|
-
var
|
|
2672
|
+
var tmp_7;
|
|
2661
2673
|
if (tmp1_safe_receiver_0 == null) {
|
|
2662
|
-
|
|
2674
|
+
tmp_7 = null;
|
|
2663
2675
|
} else {
|
|
2664
2676
|
// Inline function 'kotlin.let' call
|
|
2665
2677
|
// Inline function 'kotlin.contracts.contract' call
|
|
2666
2678
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
2667
|
-
|
|
2679
|
+
tmp_7 = flatten_0($this_parseRequestBody, OpenAPIV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().i2f([name, 'RequestBody']));
|
|
2668
2680
|
}
|
|
2669
2681
|
|
|
2670
|
-
var tmp0_elvis_lhs_0 =
|
|
2671
|
-
|
|
2682
|
+
var tmp0_elvis_lhs_0 = tmp_7;
|
|
2683
|
+
tmp_6 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
2672
2684
|
break;
|
|
2673
2685
|
default:
|
|
2674
|
-
|
|
2686
|
+
tmp_6 = emptyList();
|
|
2675
2687
|
break;
|
|
2676
2688
|
}
|
|
2677
|
-
|
|
2689
|
+
tmp_5 = tmp_6;
|
|
2678
2690
|
} else {
|
|
2679
|
-
|
|
2691
|
+
tmp_5 = emptyList();
|
|
2680
2692
|
}
|
|
2681
|
-
var list_0 =
|
|
2693
|
+
var list_0 = tmp_5;
|
|
2682
2694
|
addAll(destination_3, list_0);
|
|
2683
2695
|
}
|
|
2684
|
-
|
|
2696
|
+
tmp_4 = destination_3;
|
|
2685
2697
|
}
|
|
2686
|
-
var tmp4_elvis_lhs =
|
|
2698
|
+
var tmp4_elvis_lhs = tmp_4;
|
|
2687
2699
|
var types = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
2688
2700
|
return plus(enums, types);
|
|
2689
2701
|
};
|
|
2690
2702
|
}
|
|
2691
2703
|
function OpenAPIV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
2692
2704
|
return function ($this$flatMapResponses) {
|
|
2693
|
-
var schema = resolve_1($this_parseResponseBody, OpenAPIV2Parser_instance, $this$flatMapResponses.
|
|
2694
|
-
var tmp0_elvis_lhs = toName($this$flatMapResponses.
|
|
2695
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
2705
|
+
var schema = resolve_1($this_parseResponseBody, OpenAPIV2Parser_instance, $this$flatMapResponses.y2f_1).c1k_1;
|
|
2706
|
+
var tmp0_elvis_lhs = toName($this$flatMapResponses.w2f_1, OpenAPIV2Parser_instance);
|
|
2707
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.t2f_1, OpenAPIV2Parser_instance) + $this$flatMapResponses.v2f_1.q2_1 : tmp0_elvis_lhs;
|
|
2696
2708
|
var tmp;
|
|
2697
2709
|
if (schema instanceof SchemaObject) {
|
|
2698
2710
|
var tmp2_subject = schema.v1n_1;
|
|
@@ -2700,7 +2712,7 @@ function OpenAPIV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
2700
2712
|
switch (tmp2_subject == null ? -1 : tmp2_subject.r2_1) {
|
|
2701
2713
|
case -1:
|
|
2702
2714
|
case 5:
|
|
2703
|
-
tmp_0 = flatten($this_parseResponseBody, OpenAPIV2Parser_instance, schema, Common_getInstance().
|
|
2715
|
+
tmp_0 = flatten($this_parseResponseBody, OpenAPIV2Parser_instance, schema, Common_getInstance().i2f([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.x2f_1), 'ResponseBody']));
|
|
2704
2716
|
break;
|
|
2705
2717
|
case 4:
|
|
2706
2718
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2713,7 +2725,7 @@ function OpenAPIV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
2713
2725
|
// Inline function 'kotlin.let' call
|
|
2714
2726
|
// Inline function 'kotlin.contracts.contract' call
|
|
2715
2727
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
2716
|
-
tmp_1 = flatten_0($this_parseResponseBody, OpenAPIV2Parser_instance, tmp3_safe_receiver, Common_getInstance().
|
|
2728
|
+
tmp_1 = flatten_0($this_parseResponseBody, OpenAPIV2Parser_instance, tmp3_safe_receiver, Common_getInstance().i2f([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.x2f_1), 'ResponseBody']));
|
|
2717
2729
|
}
|
|
2718
2730
|
|
|
2719
2731
|
var tmp0_elvis_lhs_0 = tmp_1;
|
|
@@ -2741,10 +2753,10 @@ function OpenAPIV2Parser$toName$lambda(it) {
|
|
|
2741
2753
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2742
2754
|
|
|
2743
2755
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
2744
|
-
tmp = tmp_0.
|
|
2756
|
+
tmp = tmp_0.i2f([tmp$ret$1]);
|
|
2745
2757
|
break;
|
|
2746
2758
|
case false:
|
|
2747
|
-
tmp = Common_getInstance().
|
|
2759
|
+
tmp = Common_getInstance().i2f([it]);
|
|
2748
2760
|
break;
|
|
2749
2761
|
default:
|
|
2750
2762
|
noWhenBranchMatchedException();
|
|
@@ -2754,8 +2766,8 @@ function OpenAPIV2Parser$toName$lambda(it) {
|
|
|
2754
2766
|
}
|
|
2755
2767
|
function OpenAPIV2Parser() {
|
|
2756
2768
|
}
|
|
2757
|
-
protoOf(OpenAPIV2Parser).
|
|
2758
|
-
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.
|
|
2769
|
+
protoOf(OpenAPIV2Parser).g2f = function (moduleContent, strict) {
|
|
2770
|
+
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.a2g((new OpenAPI(Json(VOID, OpenAPIV2Parser$parse$lambda(strict)))).t1g(moduleContent.q22_1)));
|
|
2759
2771
|
var tmp;
|
|
2760
2772
|
if (tmp0_elvis_lhs == null) {
|
|
2761
2773
|
var message = 'Cannot yield non empty AST for OpenAPI v2';
|
|
@@ -2765,7 +2777,7 @@ protoOf(OpenAPIV2Parser).r2e = function (moduleContent, strict) {
|
|
|
2765
2777
|
}
|
|
2766
2778
|
return new AST(nonEmptyListOf(new Module(moduleContent.p22_1, tmp), []));
|
|
2767
2779
|
};
|
|
2768
|
-
protoOf(OpenAPIV2Parser).
|
|
2780
|
+
protoOf(OpenAPIV2Parser).a2g = function (_this__u8e3s4) {
|
|
2769
2781
|
// Inline function 'kotlin.collections.reduce' call
|
|
2770
2782
|
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();
|
|
2771
2783
|
if (!iterator.h())
|
|
@@ -2794,7 +2806,7 @@ function sanitize(_this__u8e3s4) {
|
|
|
2794
2806
|
// Inline function 'community.flock.wirespec.openapi.v2.sanitize.<anonymous>' call
|
|
2795
2807
|
var tmp1 = index;
|
|
2796
2808
|
index = tmp1 + 1 | 0;
|
|
2797
|
-
var tmp$ret$0 = checkIndexOverflow(tmp1) > 0 ? Companion_instance.
|
|
2809
|
+
var tmp$ret$0 = checkIndexOverflow(tmp1) > 0 ? Companion_instance.f26(item) : item;
|
|
2798
2810
|
destination.e(tmp$ret$0);
|
|
2799
2811
|
}
|
|
2800
2812
|
var tmp = asSequence(joinToString(destination, ''));
|
|
@@ -2842,27 +2854,13 @@ function toIterable(_this__u8e3s4, isNullable) {
|
|
|
2842
2854
|
function sanitize$lambda(it) {
|
|
2843
2855
|
return isLetterOrDigit(it.x_1) || listOf(new Char(_Char___init__impl__6a9atx(95))).o1(it);
|
|
2844
2856
|
}
|
|
2845
|
-
function emit_2($this, module_0) {
|
|
2846
|
-
var tmp = 'OpenAPI.' + $this.v2e_1.z25_1;
|
|
2847
|
-
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
2848
|
-
var this_0 = Common_getInstance().s2e_1;
|
|
2849
|
-
var value = $this.l2f(module_0, null);
|
|
2850
|
-
// Inline function 'kotlinx.serialization.serializer' call
|
|
2851
|
-
var this_1 = this_0.zo();
|
|
2852
|
-
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
2853
|
-
var this_2 = serializer(this_1, createKType(getKClass(OpenAPIObject), arrayOf([]), false));
|
|
2854
|
-
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
2855
|
-
var tmp$ret$2 = this_0.m15(tmp$ret$1, value);
|
|
2856
|
-
return nonEmptyListOf(new Emitted(tmp, tmp$ret$2), []);
|
|
2857
|
-
}
|
|
2858
2857
|
function emitComponents(_this__u8e3s4, $this) {
|
|
2859
2858
|
// Inline function 'kotlin.let' call
|
|
2860
2859
|
// Inline function 'kotlin.collections.associate' call
|
|
2861
2860
|
// Inline function 'kotlin.collections.filter' call
|
|
2862
2861
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2863
|
-
var this_0 = _this__u8e3s4.p25_1.tk();
|
|
2864
2862
|
var destination = ArrayList_init_$Create$();
|
|
2865
|
-
var tmp0_iterator =
|
|
2863
|
+
var tmp0_iterator = _this__u8e3s4.g();
|
|
2866
2864
|
while (tmp0_iterator.h()) {
|
|
2867
2865
|
var element = tmp0_iterator.i();
|
|
2868
2866
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emitComponents.<anonymous>' call
|
|
@@ -2878,19 +2876,19 @@ function emitComponents(_this__u8e3s4, $this) {
|
|
|
2878
2876
|
var element_0 = tmp0_iterator_0.i();
|
|
2879
2877
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2880
2878
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emitComponents.<anonymous>' call
|
|
2881
|
-
var tmp = element_0.
|
|
2879
|
+
var tmp = element_0.l26().b1();
|
|
2882
2880
|
var tmp_0;
|
|
2883
2881
|
if (element_0 instanceof Enum) {
|
|
2884
|
-
tmp_0 =
|
|
2882
|
+
tmp_0 = emit_3(element_0, OpenAPIV3Emitter_getInstance());
|
|
2885
2883
|
} else {
|
|
2886
2884
|
if (element_0 instanceof Refined) {
|
|
2887
|
-
tmp_0 =
|
|
2885
|
+
tmp_0 = emit_1(element_0, OpenAPIV3Emitter_getInstance());
|
|
2888
2886
|
} else {
|
|
2889
2887
|
if (element_0 instanceof Type) {
|
|
2890
|
-
tmp_0 =
|
|
2888
|
+
tmp_0 = emit_2(element_0, OpenAPIV3Emitter_getInstance());
|
|
2891
2889
|
} else {
|
|
2892
2890
|
if (element_0 instanceof Union) {
|
|
2893
|
-
tmp_0 =
|
|
2891
|
+
tmp_0 = emit_4(element_0, OpenAPIV3Emitter_getInstance());
|
|
2894
2892
|
} else {
|
|
2895
2893
|
if (element_0 instanceof Endpoint) {
|
|
2896
2894
|
var message = 'Cannot emit endpoint';
|
|
@@ -2919,9 +2917,8 @@ function emitPaths(_this__u8e3s4, $this) {
|
|
|
2919
2917
|
// Inline function 'kotlin.collections.groupBy' call
|
|
2920
2918
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
2921
2919
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
2922
|
-
var this_0 = _this__u8e3s4.p25_1;
|
|
2923
2920
|
var destination = ArrayList_init_$Create$();
|
|
2924
|
-
var tmp0_iterator =
|
|
2921
|
+
var tmp0_iterator = _this__u8e3s4.g();
|
|
2925
2922
|
while (tmp0_iterator.h()) {
|
|
2926
2923
|
var element = tmp0_iterator.i();
|
|
2927
2924
|
if (element instanceof Endpoint) {
|
|
@@ -2934,7 +2931,7 @@ function emitPaths(_this__u8e3s4, $this) {
|
|
|
2934
2931
|
while (tmp0_iterator_0.h()) {
|
|
2935
2932
|
var element_0 = tmp0_iterator_0.i();
|
|
2936
2933
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emitPaths.<anonymous>' call
|
|
2937
|
-
var key = element_0.
|
|
2934
|
+
var key = element_0.y24_1;
|
|
2938
2935
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
2939
2936
|
var value = destination_0.g2(key);
|
|
2940
2937
|
var tmp;
|
|
@@ -2991,44 +2988,44 @@ function emitPaths(_this__u8e3s4, $this) {
|
|
|
2991
2988
|
tmp_1 = destination_3;
|
|
2992
2989
|
}
|
|
2993
2990
|
var tmp0_parameters = tmp_1;
|
|
2994
|
-
var tmp1_get =
|
|
2995
|
-
var tmp2_post =
|
|
2996
|
-
var tmp3_put =
|
|
2997
|
-
var tmp4_delete =
|
|
2998
|
-
var tmp5_patch =
|
|
2999
|
-
var tmp6_options =
|
|
3000
|
-
var tmp7_trace =
|
|
3001
|
-
var tmp8_head =
|
|
2991
|
+
var tmp1_get = emit_5(endpoints, OpenAPIV3Emitter_getInstance(), Method_GET_getInstance());
|
|
2992
|
+
var tmp2_post = emit_5(endpoints, OpenAPIV3Emitter_getInstance(), Method_POST_getInstance());
|
|
2993
|
+
var tmp3_put = emit_5(endpoints, OpenAPIV3Emitter_getInstance(), Method_PUT_getInstance());
|
|
2994
|
+
var tmp4_delete = emit_5(endpoints, OpenAPIV3Emitter_getInstance(), Method_DELETE_getInstance());
|
|
2995
|
+
var tmp5_patch = emit_5(endpoints, OpenAPIV3Emitter_getInstance(), Method_PATCH_getInstance());
|
|
2996
|
+
var tmp6_options = emit_5(endpoints, OpenAPIV3Emitter_getInstance(), Method_OPTIONS_getInstance());
|
|
2997
|
+
var tmp7_trace = emit_5(endpoints, OpenAPIV3Emitter_getInstance(), Method_TRACE_getInstance());
|
|
2998
|
+
var tmp8_head = emit_5(endpoints, OpenAPIV3Emitter_getInstance(), Method_HEAD_getInstance());
|
|
3002
2999
|
var tmp$ret$17 = to(new Path_0(tmp_0), new PathItemObject_0(VOID, VOID, VOID, tmp1_get, tmp3_put, tmp2_post, tmp4_delete, tmp6_options, tmp8_head, tmp5_patch, tmp7_trace, VOID, tmp0_parameters));
|
|
3003
3000
|
destination_1.e(tmp$ret$17);
|
|
3004
3001
|
}
|
|
3005
3002
|
return toMap(destination_1);
|
|
3006
3003
|
}
|
|
3007
|
-
function
|
|
3008
|
-
var type = _this__u8e3s4.
|
|
3004
|
+
function emit_1(_this__u8e3s4, $this) {
|
|
3005
|
+
var type = _this__u8e3s4.t26_1.v29_1;
|
|
3009
3006
|
var tmp;
|
|
3010
3007
|
if (type instanceof Integer) {
|
|
3011
3008
|
var tmp4_type = Type_STRING_getInstance_0();
|
|
3012
|
-
var tmp0_safe_receiver = type.
|
|
3013
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3009
|
+
var tmp0_safe_receiver = type.b29_1;
|
|
3010
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w28_1;
|
|
3014
3011
|
var tmp5_minimum = tmp1_safe_receiver == null ? null : toDouble(tmp1_safe_receiver);
|
|
3015
|
-
var tmp2_safe_receiver = type.
|
|
3016
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
3012
|
+
var tmp2_safe_receiver = type.b29_1;
|
|
3013
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.x28_1;
|
|
3017
3014
|
var tmp6_maximum = tmp3_safe_receiver == null ? null : toDouble(tmp3_safe_receiver);
|
|
3018
3015
|
tmp = new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp4_type, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp6_maximum, VOID, tmp5_minimum);
|
|
3019
3016
|
} else {
|
|
3020
3017
|
if (type instanceof Number_0) {
|
|
3021
3018
|
var tmp11_type = Type_STRING_getInstance_0();
|
|
3022
|
-
var tmp7_safe_receiver = type.
|
|
3023
|
-
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.
|
|
3019
|
+
var tmp7_safe_receiver = type.e29_1;
|
|
3020
|
+
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.w28_1;
|
|
3024
3021
|
var tmp12_minimum = tmp8_safe_receiver == null ? null : toDouble(tmp8_safe_receiver);
|
|
3025
|
-
var tmp9_safe_receiver = type.
|
|
3026
|
-
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.
|
|
3022
|
+
var tmp9_safe_receiver = type.e29_1;
|
|
3023
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.x28_1;
|
|
3027
3024
|
var tmp13_maximum = tmp10_safe_receiver == null ? null : toDouble(tmp10_safe_receiver);
|
|
3028
3025
|
tmp = new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp11_type, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp13_maximum, VOID, tmp12_minimum);
|
|
3029
3026
|
} else {
|
|
3030
3027
|
if (type instanceof String_0) {
|
|
3031
|
-
var pattern = type.
|
|
3028
|
+
var pattern = type.y28_1;
|
|
3032
3029
|
var tmp_0;
|
|
3033
3030
|
var tmp_1 = pattern;
|
|
3034
3031
|
if ((tmp_1 == null ? null : new RegExp_0(tmp_1))instanceof RegExp_0) {
|
|
@@ -3057,8 +3054,8 @@ function emit_3(_this__u8e3s4, $this) {
|
|
|
3057
3054
|
}
|
|
3058
3055
|
return tmp;
|
|
3059
3056
|
}
|
|
3060
|
-
function
|
|
3061
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3057
|
+
function emit_2(_this__u8e3s4, $this) {
|
|
3058
|
+
var tmp0_safe_receiver = _this__u8e3s4.l24_1;
|
|
3062
3059
|
var tmp;
|
|
3063
3060
|
var tmp_0 = tmp0_safe_receiver;
|
|
3064
3061
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -3068,7 +3065,7 @@ function emit_4(_this__u8e3s4, $this) {
|
|
|
3068
3065
|
}
|
|
3069
3066
|
var tmp1_description = tmp;
|
|
3070
3067
|
// Inline function 'kotlin.collections.associate' call
|
|
3071
|
-
var this_0 = _this__u8e3s4.
|
|
3068
|
+
var this_0 = _this__u8e3s4.o24_1.k24_1;
|
|
3072
3069
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
3073
3070
|
// Inline function 'kotlin.collections.associateTo' call
|
|
3074
3071
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -3084,13 +3081,13 @@ function emit_4(_this__u8e3s4, $this) {
|
|
|
3084
3081
|
// Inline function 'kotlin.collections.map' call
|
|
3085
3082
|
// Inline function 'kotlin.collections.filter' call
|
|
3086
3083
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3087
|
-
var this_1 = _this__u8e3s4.
|
|
3084
|
+
var this_1 = _this__u8e3s4.o24_1.k24_1;
|
|
3088
3085
|
var destination_0 = ArrayList_init_$Create$();
|
|
3089
3086
|
var tmp0_iterator_0 = this_1.g();
|
|
3090
3087
|
while (tmp0_iterator_0.h()) {
|
|
3091
3088
|
var element_0 = tmp0_iterator_0.i();
|
|
3092
3089
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
3093
|
-
if (!element_0.
|
|
3090
|
+
if (!element_0.s24_1.jm()) {
|
|
3094
3091
|
destination_0.e(element_0);
|
|
3095
3092
|
}
|
|
3096
3093
|
}
|
|
@@ -3100,7 +3097,7 @@ function emit_4(_this__u8e3s4, $this) {
|
|
|
3100
3097
|
while (tmp0_iterator_1.h()) {
|
|
3101
3098
|
var item = tmp0_iterator_1.i();
|
|
3102
3099
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
3103
|
-
var tmp$ret$6 = item.
|
|
3100
|
+
var tmp$ret$6 = item.r24_1.b1();
|
|
3104
3101
|
destination_1.e(tmp$ret$6);
|
|
3105
3102
|
}
|
|
3106
3103
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -3115,8 +3112,8 @@ function emit_4(_this__u8e3s4, $this) {
|
|
|
3115
3112
|
var tmp3_required = tmp_1;
|
|
3116
3113
|
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);
|
|
3117
3114
|
}
|
|
3118
|
-
function
|
|
3119
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3115
|
+
function emit_3(_this__u8e3s4, $this) {
|
|
3116
|
+
var tmp0_safe_receiver = _this__u8e3s4.v26_1;
|
|
3120
3117
|
var tmp;
|
|
3121
3118
|
var tmp_0 = tmp0_safe_receiver;
|
|
3122
3119
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -3127,7 +3124,7 @@ function emit_5(_this__u8e3s4, $this) {
|
|
|
3127
3124
|
var tmp1_description = tmp;
|
|
3128
3125
|
var tmp2_type = Type_STRING_getInstance_0();
|
|
3129
3126
|
// Inline function 'kotlin.collections.map' call
|
|
3130
|
-
var this_0 = _this__u8e3s4.
|
|
3127
|
+
var this_0 = _this__u8e3s4.y26_1;
|
|
3131
3128
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3132
3129
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3133
3130
|
var tmp0_iterator = this_0.g();
|
|
@@ -3139,8 +3136,8 @@ function emit_5(_this__u8e3s4, $this) {
|
|
|
3139
3136
|
}
|
|
3140
3137
|
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);
|
|
3141
3138
|
}
|
|
3142
|
-
function
|
|
3143
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3139
|
+
function emit_4(_this__u8e3s4, $this) {
|
|
3140
|
+
var tmp0_safe_receiver = _this__u8e3s4.g24_1;
|
|
3144
3141
|
var tmp;
|
|
3145
3142
|
var tmp_0 = tmp0_safe_receiver;
|
|
3146
3143
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -3151,7 +3148,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3151
3148
|
var tmp1_description = tmp;
|
|
3152
3149
|
var tmp2_type = Type_STRING_getInstance_0();
|
|
3153
3150
|
// Inline function 'kotlin.collections.map' call
|
|
3154
|
-
var this_0 = _this__u8e3s4.
|
|
3151
|
+
var this_0 = _this__u8e3s4.j24_1;
|
|
3155
3152
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3156
3153
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3157
3154
|
var tmp0_iterator = this_0.g();
|
|
@@ -3163,7 +3160,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3163
3160
|
}
|
|
3164
3161
|
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_type, VOID, destination, VOID, VOID, VOID, VOID, VOID, tmp1_description);
|
|
3165
3162
|
}
|
|
3166
|
-
function
|
|
3163
|
+
function emit_5(_this__u8e3s4, $this, method) {
|
|
3167
3164
|
// Inline function 'kotlin.collections.map' call
|
|
3168
3165
|
// Inline function 'kotlin.collections.filter' call
|
|
3169
3166
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -3172,7 +3169,7 @@ function emit_7(_this__u8e3s4, $this, method) {
|
|
|
3172
3169
|
while (tmp0_iterator.h()) {
|
|
3173
3170
|
var element = tmp0_iterator.i();
|
|
3174
3171
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
3175
|
-
if (element.
|
|
3172
|
+
if (element.x24_1.equals(method)) {
|
|
3176
3173
|
destination.e(element);
|
|
3177
3174
|
}
|
|
3178
3175
|
}
|
|
@@ -3182,14 +3179,14 @@ function emit_7(_this__u8e3s4, $this, method) {
|
|
|
3182
3179
|
while (tmp0_iterator_0.h()) {
|
|
3183
3180
|
var item = tmp0_iterator_0.i();
|
|
3184
3181
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
3185
|
-
var tmp$ret$3 =
|
|
3182
|
+
var tmp$ret$3 = emit_6(item, OpenAPIV3Emitter_getInstance());
|
|
3186
3183
|
destination_0.e(tmp$ret$3);
|
|
3187
3184
|
}
|
|
3188
3185
|
return firstOrNull(destination_0);
|
|
3189
3186
|
}
|
|
3190
|
-
function
|
|
3191
|
-
var tmp2_operationId = _this__u8e3s4.
|
|
3192
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3187
|
+
function emit_6(_this__u8e3s4, $this) {
|
|
3188
|
+
var tmp2_operationId = _this__u8e3s4.w24_1.b1();
|
|
3189
|
+
var tmp0_safe_receiver = _this__u8e3s4.u24_1;
|
|
3193
3190
|
var tmp;
|
|
3194
3191
|
var tmp_0 = tmp0_safe_receiver;
|
|
3195
3192
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -3201,7 +3198,7 @@ function emit_8(_this__u8e3s4, $this) {
|
|
|
3201
3198
|
// Inline function 'kotlin.collections.map' call
|
|
3202
3199
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3203
3200
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
3204
|
-
var this_0 = _this__u8e3s4.
|
|
3201
|
+
var this_0 = _this__u8e3s4.y24_1;
|
|
3205
3202
|
var destination = ArrayList_init_$Create$();
|
|
3206
3203
|
var tmp0_iterator = this_0.g();
|
|
3207
3204
|
while (tmp0_iterator.h()) {
|
|
@@ -3221,7 +3218,7 @@ function emit_8(_this__u8e3s4, $this) {
|
|
|
3221
3218
|
}
|
|
3222
3219
|
var tmp_1 = destination_0;
|
|
3223
3220
|
// Inline function 'kotlin.collections.map' call
|
|
3224
|
-
var this_1 = _this__u8e3s4.
|
|
3221
|
+
var this_1 = _this__u8e3s4.z24_1;
|
|
3225
3222
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3226
3223
|
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
3227
3224
|
var tmp0_iterator_1 = this_1.g();
|
|
@@ -3233,7 +3230,7 @@ function emit_8(_this__u8e3s4, $this) {
|
|
|
3233
3230
|
}
|
|
3234
3231
|
var tmp_2 = plus(tmp_1, destination_1);
|
|
3235
3232
|
// Inline function 'kotlin.collections.map' call
|
|
3236
|
-
var this_2 = _this__u8e3s4.
|
|
3233
|
+
var this_2 = _this__u8e3s4.a25_1;
|
|
3237
3234
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3238
3235
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
|
|
3239
3236
|
var tmp0_iterator_2 = this_2.g();
|
|
@@ -3247,7 +3244,7 @@ function emit_8(_this__u8e3s4, $this) {
|
|
|
3247
3244
|
// Inline function 'kotlin.takeIf' call
|
|
3248
3245
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3249
3246
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3250
|
-
var this_3 = _this__u8e3s4.
|
|
3247
|
+
var this_3 = _this__u8e3s4.b25_1;
|
|
3251
3248
|
var destination_3 = ArrayList_init_$Create$();
|
|
3252
3249
|
// Inline function 'kotlin.collections.forEach' call
|
|
3253
3250
|
var tmp0_iterator_3 = this_3.g();
|
|
@@ -3255,8 +3252,8 @@ function emit_8(_this__u8e3s4, $this) {
|
|
|
3255
3252
|
var element_0 = tmp0_iterator_3.i();
|
|
3256
3253
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3257
3254
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
3258
|
-
var tmp0_safe_receiver_0 = element_0.
|
|
3259
|
-
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null :
|
|
3255
|
+
var tmp0_safe_receiver_0 = element_0.f25_1;
|
|
3256
|
+
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : emit_7(tmp0_safe_receiver_0, OpenAPIV3Emitter_getInstance());
|
|
3260
3257
|
if (tmp0_safe_receiver_1 == null)
|
|
3261
3258
|
null;
|
|
3262
3259
|
else {
|
|
@@ -3286,7 +3283,7 @@ function emit_8(_this__u8e3s4, $this) {
|
|
|
3286
3283
|
var tmp$ret$18;
|
|
3287
3284
|
$l$block_0: {
|
|
3288
3285
|
// Inline function 'kotlin.collections.any' call
|
|
3289
|
-
var this_5 = _this__u8e3s4.
|
|
3286
|
+
var this_5 = _this__u8e3s4.b25_1;
|
|
3290
3287
|
var tmp_5;
|
|
3291
3288
|
if (isInterface(this_5, Collection)) {
|
|
3292
3289
|
tmp_5 = this_5.l();
|
|
@@ -3301,8 +3298,8 @@ function emit_8(_this__u8e3s4, $this) {
|
|
|
3301
3298
|
while (tmp0_iterator_4.h()) {
|
|
3302
3299
|
var element_1 = tmp0_iterator_4.i();
|
|
3303
3300
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3304
|
-
var tmp0_safe_receiver_2 = element_1.
|
|
3305
|
-
var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.
|
|
3301
|
+
var tmp0_safe_receiver_2 = element_1.f25_1;
|
|
3302
|
+
var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.h25_1;
|
|
3306
3303
|
if ((tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.jm()) === true) {
|
|
3307
3304
|
tmp$ret$18 = true;
|
|
3308
3305
|
break $l$block_0;
|
|
@@ -3316,13 +3313,13 @@ function emit_8(_this__u8e3s4, $this) {
|
|
|
3316
3313
|
// Inline function 'kotlin.collections.map' call
|
|
3317
3314
|
// Inline function 'kotlin.collections.groupBy' call
|
|
3318
3315
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
3319
|
-
var this_6 = _this__u8e3s4.
|
|
3316
|
+
var this_6 = _this__u8e3s4.c25_1;
|
|
3320
3317
|
var destination_4 = LinkedHashMap_init_$Create$_0();
|
|
3321
3318
|
var tmp0_iterator_5 = this_6.g();
|
|
3322
3319
|
while (tmp0_iterator_5.h()) {
|
|
3323
3320
|
var element_2 = tmp0_iterator_5.i();
|
|
3324
3321
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
3325
|
-
var key = element_2.
|
|
3322
|
+
var key = element_2.i25_1;
|
|
3326
3323
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
3327
3324
|
var value = destination_4.g2(key);
|
|
3328
3325
|
var tmp_6;
|
|
@@ -3357,7 +3354,7 @@ function emit_8(_this__u8e3s4, $this) {
|
|
|
3357
3354
|
while (tmp0_iterator_7.h()) {
|
|
3358
3355
|
var element_3 = tmp0_iterator_7.i();
|
|
3359
3356
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3360
|
-
var list_0 = element_3.
|
|
3357
|
+
var list_0 = element_3.j25_1;
|
|
3361
3358
|
addAll(destination_6, list_0);
|
|
3362
3359
|
}
|
|
3363
3360
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_6, 10)), 16);
|
|
@@ -3371,7 +3368,7 @@ function emit_8(_this__u8e3s4, $this) {
|
|
|
3371
3368
|
var pair = emitHeader(element_4, OpenAPIV3Emitter_getInstance());
|
|
3372
3369
|
destination_7.n2(pair.ee_1, pair.fe_1);
|
|
3373
3370
|
}
|
|
3374
|
-
var tmp1_description = _this__u8e3s4.
|
|
3371
|
+
var tmp1_description = _this__u8e3s4.w24_1.b1() + ' ' + statusCode + ' response';
|
|
3375
3372
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
3376
3373
|
// Inline function 'kotlin.collections.associate' call
|
|
3377
3374
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -3383,7 +3380,7 @@ function emit_8(_this__u8e3s4, $this) {
|
|
|
3383
3380
|
var element_5 = tmp0_iterator_9.i();
|
|
3384
3381
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3385
3382
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3386
|
-
var tmp0_safe_receiver_3 = element_5.
|
|
3383
|
+
var tmp0_safe_receiver_3 = element_5.k25_1;
|
|
3387
3384
|
if (tmp0_safe_receiver_3 == null)
|
|
3388
3385
|
null;
|
|
3389
3386
|
else {
|
|
@@ -3400,7 +3397,7 @@ function emit_8(_this__u8e3s4, $this) {
|
|
|
3400
3397
|
var element_6 = tmp0_iterator_10.i();
|
|
3401
3398
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3402
3399
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3403
|
-
var pair_0 =
|
|
3400
|
+
var pair_0 = emit_7(element_6, OpenAPIV3Emitter_getInstance());
|
|
3404
3401
|
destination_9.n2(pair_0.ee_1, pair_0.fe_1);
|
|
3405
3402
|
}
|
|
3406
3403
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -3422,21 +3419,23 @@ function emitSegment_0(_this__u8e3s4, $this) {
|
|
|
3422
3419
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenAPIV3Emitter$emitSegment$lambda);
|
|
3423
3420
|
}
|
|
3424
3421
|
function emitParameter_0(_this__u8e3s4, $this, location) {
|
|
3425
|
-
var tmp0_name = _this__u8e3s4.
|
|
3426
|
-
var tmp1_schema = emitSchema_0(_this__u8e3s4.
|
|
3427
|
-
|
|
3422
|
+
var tmp0_name = _this__u8e3s4.r24_1.b1();
|
|
3423
|
+
var tmp1_schema = emitSchema_0(_this__u8e3s4.s24_1, $this);
|
|
3424
|
+
var tmp2_required = !_this__u8e3s4.s24_1.jm();
|
|
3425
|
+
return new ParameterObject_0(VOID, tmp2_required, VOID, VOID, VOID, VOID, VOID, tmp1_schema, VOID, VOID, VOID, tmp0_name, location);
|
|
3428
3426
|
}
|
|
3429
3427
|
function emitParameter_1(_this__u8e3s4, $this) {
|
|
3430
3428
|
var tmp0_in = ParameterLocation_PATH_getInstance_0();
|
|
3431
|
-
var tmp1_name = _this__u8e3s4.
|
|
3432
|
-
var tmp2_schema = emitSchema_0(_this__u8e3s4.
|
|
3433
|
-
|
|
3429
|
+
var tmp1_name = _this__u8e3s4.d25_1.b1();
|
|
3430
|
+
var tmp2_schema = emitSchema_0(_this__u8e3s4.e25_1, $this);
|
|
3431
|
+
var tmp3_required = !_this__u8e3s4.e25_1.jm();
|
|
3432
|
+
return new ParameterObject_0(VOID, tmp3_required, VOID, VOID, VOID, VOID, VOID, tmp2_schema, VOID, VOID, VOID, tmp1_name, tmp0_in);
|
|
3434
3433
|
}
|
|
3435
3434
|
function emitHeader(_this__u8e3s4, $this) {
|
|
3436
|
-
return to(_this__u8e3s4.
|
|
3435
|
+
return to(_this__u8e3s4.r24_1.b1(), emitHeader_0(_this__u8e3s4.s24_1, $this));
|
|
3437
3436
|
}
|
|
3438
3437
|
function emitSchema(_this__u8e3s4, $this) {
|
|
3439
|
-
return to(_this__u8e3s4.
|
|
3438
|
+
return to(_this__u8e3s4.r24_1.b1(), emitSchema_0(_this__u8e3s4.s24_1, $this));
|
|
3440
3439
|
}
|
|
3441
3440
|
function emitHeader_0(_this__u8e3s4, $this) {
|
|
3442
3441
|
var tmp;
|
|
@@ -3447,7 +3446,7 @@ function emitHeader_0(_this__u8e3s4, $this) {
|
|
|
3447
3446
|
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.t23_1));
|
|
3448
3447
|
} else {
|
|
3449
3448
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3450
|
-
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.
|
|
3449
|
+
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.r29_1));
|
|
3451
3450
|
} else {
|
|
3452
3451
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3453
3452
|
tmp = new HeaderObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitSchema_0(_this__u8e3s4, $this));
|
|
@@ -3481,10 +3480,10 @@ function emitSchema_0(_this__u8e3s4, $this) {
|
|
|
3481
3480
|
tmp = new SchemaObject_0(_this__u8e3s4.r23_1.jm(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance_0(), VOID, VOID, VOID, VOID, emitSchema_0(_this__u8e3s4.r23_1, $this));
|
|
3482
3481
|
} else {
|
|
3483
3482
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3484
|
-
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/schemas/' + _this__u8e3s4.
|
|
3483
|
+
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/schemas/' + _this__u8e3s4.r29_1));
|
|
3485
3484
|
} else {
|
|
3486
3485
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3487
|
-
var tmp1_type = emitType_1(_this__u8e3s4.
|
|
3486
|
+
var tmp1_type = emitType_1(_this__u8e3s4.v29_1, $this);
|
|
3488
3487
|
var tmp2_format = emitFormat_0(_this__u8e3s4, $this);
|
|
3489
3488
|
var tmp3_pattern = emitPattern_0(_this__u8e3s4, $this);
|
|
3490
3489
|
var tmp4_minimum = emitMinimum_0(_this__u8e3s4, $this);
|
|
@@ -3533,17 +3532,17 @@ function emitType_1(_this__u8e3s4, $this) {
|
|
|
3533
3532
|
}
|
|
3534
3533
|
return tmp;
|
|
3535
3534
|
}
|
|
3536
|
-
function
|
|
3537
|
-
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.
|
|
3535
|
+
function emit_7(_this__u8e3s4, $this) {
|
|
3536
|
+
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.g25_1)), new MediaTypeObject(emitSchema_0(_this__u8e3s4.h25_1, $this)));
|
|
3538
3537
|
}
|
|
3539
3538
|
function emitFormat_0(_this__u8e3s4, $this) {
|
|
3540
3539
|
var tmp;
|
|
3541
3540
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3542
|
-
var t = _this__u8e3s4.
|
|
3541
|
+
var t = _this__u8e3s4.v29_1;
|
|
3543
3542
|
var tmp_0;
|
|
3544
3543
|
if (t instanceof Number_0) {
|
|
3545
3544
|
var tmp_1;
|
|
3546
|
-
switch (t.
|
|
3545
|
+
switch (t.d29_1.r2_1) {
|
|
3547
3546
|
case 0:
|
|
3548
3547
|
tmp_1 = 'float';
|
|
3549
3548
|
break;
|
|
@@ -3558,7 +3557,7 @@ function emitFormat_0(_this__u8e3s4, $this) {
|
|
|
3558
3557
|
} else {
|
|
3559
3558
|
if (t instanceof Integer) {
|
|
3560
3559
|
var tmp_2;
|
|
3561
|
-
switch (t.
|
|
3560
|
+
switch (t.a29_1.r2_1) {
|
|
3562
3561
|
case 0:
|
|
3563
3562
|
tmp_2 = 'int32';
|
|
3564
3563
|
break;
|
|
@@ -3587,10 +3586,10 @@ function emitFormat_0(_this__u8e3s4, $this) {
|
|
|
3587
3586
|
function emitPattern_0(_this__u8e3s4, $this) {
|
|
3588
3587
|
var tmp;
|
|
3589
3588
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3590
|
-
var t = _this__u8e3s4.
|
|
3589
|
+
var t = _this__u8e3s4.v29_1;
|
|
3591
3590
|
var tmp_0;
|
|
3592
3591
|
if (t instanceof String_0) {
|
|
3593
|
-
var p = t.
|
|
3592
|
+
var p = t.y28_1;
|
|
3594
3593
|
var tmp_1;
|
|
3595
3594
|
var tmp_2 = p;
|
|
3596
3595
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2))instanceof RegExp_0) {
|
|
@@ -3611,16 +3610,16 @@ function emitPattern_0(_this__u8e3s4, $this) {
|
|
|
3611
3610
|
function emitMinimum_0(_this__u8e3s4, $this) {
|
|
3612
3611
|
var tmp;
|
|
3613
3612
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3614
|
-
var t = _this__u8e3s4.
|
|
3613
|
+
var t = _this__u8e3s4.v29_1;
|
|
3615
3614
|
var tmp_0;
|
|
3616
3615
|
if (t instanceof Number_0) {
|
|
3617
|
-
var tmp1_safe_receiver = t.
|
|
3618
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3616
|
+
var tmp1_safe_receiver = t.e29_1;
|
|
3617
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.w28_1;
|
|
3619
3618
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
3620
3619
|
} else {
|
|
3621
3620
|
if (t instanceof Integer) {
|
|
3622
|
-
var tmp3_safe_receiver = t.
|
|
3623
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
3621
|
+
var tmp3_safe_receiver = t.b29_1;
|
|
3622
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.w28_1;
|
|
3624
3623
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
3625
3624
|
} else {
|
|
3626
3625
|
tmp_0 = null;
|
|
@@ -3635,16 +3634,16 @@ function emitMinimum_0(_this__u8e3s4, $this) {
|
|
|
3635
3634
|
function emitMaximum(_this__u8e3s4, $this) {
|
|
3636
3635
|
var tmp;
|
|
3637
3636
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3638
|
-
var t = _this__u8e3s4.
|
|
3637
|
+
var t = _this__u8e3s4.v29_1;
|
|
3639
3638
|
var tmp_0;
|
|
3640
3639
|
if (t instanceof Number_0) {
|
|
3641
|
-
var tmp1_safe_receiver = t.
|
|
3642
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3640
|
+
var tmp1_safe_receiver = t.e29_1;
|
|
3641
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.x28_1;
|
|
3643
3642
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
3644
3643
|
} else {
|
|
3645
3644
|
if (t instanceof Integer) {
|
|
3646
|
-
var tmp3_safe_receiver = t.
|
|
3647
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
3645
|
+
var tmp3_safe_receiver = t.b29_1;
|
|
3646
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.x28_1;
|
|
3648
3647
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
3649
3648
|
} else {
|
|
3650
3649
|
tmp_0 = null;
|
|
@@ -3659,10 +3658,10 @@ function emitMaximum(_this__u8e3s4, $this) {
|
|
|
3659
3658
|
function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
3660
3659
|
var tmp;
|
|
3661
3660
|
if (it instanceof Param) {
|
|
3662
|
-
tmp = '{' + it.
|
|
3661
|
+
tmp = '{' + it.d25_1.b1() + '}';
|
|
3663
3662
|
} else {
|
|
3664
3663
|
if (it instanceof Literal) {
|
|
3665
|
-
tmp = it.
|
|
3664
|
+
tmp = it.y25_1;
|
|
3666
3665
|
} else {
|
|
3667
3666
|
noWhenBranchMatchedException();
|
|
3668
3667
|
}
|
|
@@ -3671,14 +3670,15 @@ function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
|
3671
3670
|
}
|
|
3672
3671
|
function OpenAPIV3Emitter() {
|
|
3673
3672
|
OpenAPIV3Emitter_instance = this;
|
|
3674
|
-
this.
|
|
3673
|
+
this.l2f_1 = FileExtension_JSON_getInstance();
|
|
3675
3674
|
}
|
|
3676
3675
|
protoOf(OpenAPIV3Emitter).g23 = function (ast, logger) {
|
|
3676
|
+
// Inline function 'kotlin.let' call
|
|
3677
|
+
// Inline function 'kotlin.let' call
|
|
3677
3678
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
3678
|
-
var this_0 = ast.
|
|
3679
|
+
var this_0 = ast.s25_1;
|
|
3679
3680
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
3680
|
-
var
|
|
3681
|
-
var tmp = emit_2(OpenAPIV3Emitter_getInstance(), it).nk();
|
|
3681
|
+
var tmp = this_0.pk_1.u25_1.nk();
|
|
3682
3682
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3683
3683
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3684
3684
|
var this_1 = this_0.qk_1;
|
|
@@ -3687,16 +3687,32 @@ protoOf(OpenAPIV3Emitter).g23 = function (ast, logger) {
|
|
|
3687
3687
|
while (tmp0_iterator.h()) {
|
|
3688
3688
|
var element = tmp0_iterator.i();
|
|
3689
3689
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
3690
|
-
var list =
|
|
3690
|
+
var list = element.u25_1;
|
|
3691
3691
|
addAll(destination, list);
|
|
3692
3692
|
}
|
|
3693
|
-
|
|
3693
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
3694
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
3695
|
+
var it = tmp.uk(destination);
|
|
3696
|
+
var tmp_0 = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().l2f_1.e26_1;
|
|
3697
|
+
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
3698
|
+
var this_2 = Common_getInstance().h2f_1;
|
|
3699
|
+
var value = OpenAPIV3Emitter_getInstance().m2f(it, null);
|
|
3700
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
3701
|
+
var this_3 = this_2.zo();
|
|
3702
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
3703
|
+
var this_4 = serializer(this_3, createKType(getKClass(OpenAPIObject), arrayOf([]), false));
|
|
3704
|
+
var tmp$ret$6 = isInterface(this_4, KSerializer) ? this_4 : THROW_CCE();
|
|
3705
|
+
var tmp$ret$7 = this_2.m15(tmp$ret$6, value);
|
|
3706
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
3707
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
3708
|
+
var it_0 = new Emitted(tmp_0, tmp$ret$7);
|
|
3709
|
+
return nonEmptyListOf(it_0, []);
|
|
3694
3710
|
};
|
|
3695
|
-
protoOf(OpenAPIV3Emitter).
|
|
3696
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
3711
|
+
protoOf(OpenAPIV3Emitter).m2f = function (statements, options) {
|
|
3712
|
+
var tmp1_elvis_lhs = options == null ? null : options.b2g_1;
|
|
3697
3713
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
3698
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
3699
|
-
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(
|
|
3714
|
+
var tmp3_elvis_lhs = options == null ? null : options.c2g_1;
|
|
3715
|
+
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(statements, this), emitComponents(statements, this));
|
|
3700
3716
|
};
|
|
3701
3717
|
var OpenAPIV3Emitter_instance;
|
|
3702
3718
|
function OpenAPIV3Emitter_getInstance() {
|
|
@@ -3753,7 +3769,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3753
3769
|
while (tmp0_iterator_2.h()) {
|
|
3754
3770
|
var item_0 = tmp0_iterator_2.i();
|
|
3755
3771
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3756
|
-
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_0, Common_getInstance().
|
|
3772
|
+
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_0, Common_getInstance().i2f([name, 'Parameter', item_0.k1w_1]));
|
|
3757
3773
|
destination_2.e(tmp$ret$9);
|
|
3758
3774
|
}
|
|
3759
3775
|
var query = destination_2;
|
|
@@ -3775,7 +3791,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3775
3791
|
while (tmp0_iterator_4.h()) {
|
|
3776
3792
|
var item_1 = tmp0_iterator_4.i();
|
|
3777
3793
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3778
|
-
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_1, Common_getInstance().
|
|
3794
|
+
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_1, Common_getInstance().i2f([name, 'Parameter', item_1.k1w_1]));
|
|
3779
3795
|
destination_4.e(tmp$ret$15);
|
|
3780
3796
|
}
|
|
3781
3797
|
var headers = destination_4;
|
|
@@ -3821,7 +3837,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3821
3837
|
tmp_2 = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema, isNullable);
|
|
3822
3838
|
} else {
|
|
3823
3839
|
if (schema instanceof SchemaObject_0) {
|
|
3824
|
-
tmp_2 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema, isNullable, Common_getInstance().
|
|
3840
|
+
tmp_2 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema, isNullable, Common_getInstance().i2f([name, 'RequestBody']));
|
|
3825
3841
|
} else {
|
|
3826
3842
|
if (schema == null) {
|
|
3827
3843
|
tmp_2 = null;
|
|
@@ -3889,7 +3905,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3889
3905
|
while (tmp0_iterator_7.h()) {
|
|
3890
3906
|
var item_3 = tmp0_iterator_7.i();
|
|
3891
3907
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3892
|
-
var tmp$ret$36 = toField_4(_this__u8e3s4, OpenAPIV3Parser_instance, resolve_5(_this__u8e3s4, OpenAPIV3Parser_instance, item_3.b1()), item_3.a1(), Common_getInstance().
|
|
3908
|
+
var tmp$ret$36 = toField_4(_this__u8e3s4, OpenAPIV3Parser_instance, resolve_5(_this__u8e3s4, OpenAPIV3Parser_instance, item_3.b1()), item_3.a1(), Common_getInstance().i2f([name, 'ResponseHeader']));
|
|
3893
3909
|
destination_7.e(tmp$ret$36);
|
|
3894
3910
|
}
|
|
3895
3911
|
tmp_6 = destination_7;
|
|
@@ -3943,7 +3959,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3943
3959
|
while (tmp0_iterator_9.h()) {
|
|
3944
3960
|
var item_5 = tmp0_iterator_9.i();
|
|
3945
3961
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3946
|
-
var tmp$ret$46 = toField_4(_this__u8e3s4, OpenAPIV3Parser_instance, resolve_5(_this__u8e3s4, OpenAPIV3Parser_instance, item_5.b1()), item_5.a1(), Common_getInstance().
|
|
3962
|
+
var tmp$ret$46 = toField_4(_this__u8e3s4, OpenAPIV3Parser_instance, resolve_5(_this__u8e3s4, OpenAPIV3Parser_instance, item_5.b1()), item_5.a1(), Common_getInstance().i2f([name, 'ResponseHeader']));
|
|
3947
3963
|
destination_9.e(tmp$ret$46);
|
|
3948
3964
|
}
|
|
3949
3965
|
tmp_10 = destination_9;
|
|
@@ -3957,7 +3973,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3957
3973
|
tmp_13 = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema_0, isNullable_0);
|
|
3958
3974
|
} else {
|
|
3959
3975
|
if (schema_0 instanceof SchemaObject_0) {
|
|
3960
|
-
tmp_13 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema_0, isNullable_0, Common_getInstance().
|
|
3976
|
+
tmp_13 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema_0, isNullable_0, Common_getInstance().i2f([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
3961
3977
|
} else {
|
|
3962
3978
|
if (schema_0 == null) {
|
|
3963
3979
|
tmp_13 = new Any(isNullable_0);
|
|
@@ -3978,7 +3994,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3978
3994
|
addAll(destination_6, list);
|
|
3979
3995
|
}
|
|
3980
3996
|
var responses = destination_6;
|
|
3981
|
-
var tmp$ret$58 = new Endpoint(null, new DefinitionIdentifier(name), method, segments, query, headers, requests, responses);
|
|
3997
|
+
var tmp$ret$58 = new Endpoint(null, emptyList(), new DefinitionIdentifier(name), method, segments, query, headers, requests, responses);
|
|
3982
3998
|
destination_0.e(tmp$ret$58);
|
|
3983
3999
|
}
|
|
3984
4000
|
var list_0 = destination_0;
|
|
@@ -4014,7 +4030,7 @@ function flatMapResponse(_this__u8e3s4, $this, response, name, statusCode) {
|
|
|
4014
4030
|
switch (tmp0_subject == null ? -1 : tmp0_subject.r2_1) {
|
|
4015
4031
|
case -1:
|
|
4016
4032
|
case 5:
|
|
4017
|
-
tmp_0 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema, Common_getInstance().
|
|
4033
|
+
tmp_0 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema, Common_getInstance().i2f([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
4018
4034
|
break;
|
|
4019
4035
|
case 4:
|
|
4020
4036
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -4027,7 +4043,7 @@ function flatMapResponse(_this__u8e3s4, $this, response, name, statusCode) {
|
|
|
4027
4043
|
// Inline function 'kotlin.let' call
|
|
4028
4044
|
// Inline function 'kotlin.contracts.contract' call
|
|
4029
4045
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.flatMapResponse.<anonymous>.<anonymous>' call
|
|
4030
|
-
tmp_1 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
4046
|
+
tmp_1 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp1_safe_receiver, Common_getInstance().i2f([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
4031
4047
|
}
|
|
4032
4048
|
|
|
4033
4049
|
var tmp0_elvis_lhs_0 = tmp_1;
|
|
@@ -4081,7 +4097,7 @@ function parseComponents(_this__u8e3s4, $this) {
|
|
|
4081
4097
|
while (tmp0_iterator_0.h()) {
|
|
4082
4098
|
var element_0 = tmp0_iterator_0.i();
|
|
4083
4099
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseComponents.<anonymous>' call
|
|
4084
|
-
var list = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, element_0.b1(), Common_getInstance().
|
|
4100
|
+
var list = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, element_0.b1(), Common_getInstance().i2f([element_0.a1()]));
|
|
4085
4101
|
addAll(destination_0, list);
|
|
4086
4102
|
}
|
|
4087
4103
|
return destination_0;
|
|
@@ -4098,7 +4114,7 @@ function toName_1(_this__u8e3s4, $this) {
|
|
|
4098
4114
|
// Inline function 'kotlin.let' call
|
|
4099
4115
|
// Inline function 'kotlin.contracts.contract' call
|
|
4100
4116
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.toName.<anonymous>' call
|
|
4101
|
-
tmp = Common_getInstance().
|
|
4117
|
+
tmp = Common_getInstance().i2f([tmp0_safe_receiver]);
|
|
4102
4118
|
}
|
|
4103
4119
|
return tmp;
|
|
4104
4120
|
}
|
|
@@ -4188,7 +4204,7 @@ function toSegments_0(_this__u8e3s4, $this, path, parameters, operation, method)
|
|
|
4188
4204
|
// Inline function 'kotlin.let' call
|
|
4189
4205
|
// Inline function 'kotlin.contracts.contract' call
|
|
4190
4206
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.toSegments.<anonymous>.<anonymous>' call
|
|
4191
|
-
tmp_1 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp4_safe_receiver, false, Common_getInstance().
|
|
4207
|
+
tmp_1 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp4_safe_receiver, false, Common_getInstance().i2f([name, 'Parameter', param]));
|
|
4192
4208
|
}
|
|
4193
4209
|
|
|
4194
4210
|
var tmp5_safe_receiver = tmp_1;
|
|
@@ -4578,7 +4594,8 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4578
4594
|
}
|
|
4579
4595
|
tmp = tmp_0;
|
|
4580
4596
|
} else if (!(schemaObject.f1x_1 == null) || !(schemaObject.g1x_1 == null)) {
|
|
4581
|
-
var tmp_5 =
|
|
4597
|
+
var tmp_5 = emptyList();
|
|
4598
|
+
var tmp_6 = new DefinitionIdentifier(sanitize_0(name));
|
|
4582
4599
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
4583
4600
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4584
4601
|
var tmp0_elvis_lhs = schemaObject.f1x_1;
|
|
@@ -4593,20 +4610,20 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4593
4610
|
var tmp1 = index;
|
|
4594
4611
|
index = tmp1 + 1 | 0;
|
|
4595
4612
|
var index_0 = checkIndexOverflow(tmp1);
|
|
4596
|
-
var
|
|
4613
|
+
var tmp_7;
|
|
4597
4614
|
if (item instanceof ReferenceObject_0) {
|
|
4598
|
-
|
|
4615
|
+
tmp_7 = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, item, false);
|
|
4599
4616
|
} else {
|
|
4600
4617
|
if (item instanceof SchemaObject_0) {
|
|
4601
|
-
|
|
4618
|
+
tmp_7 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, item, false, Common_getInstance().i2f([name, index_0.toString()]));
|
|
4602
4619
|
} else {
|
|
4603
4620
|
noWhenBranchMatchedException();
|
|
4604
4621
|
}
|
|
4605
4622
|
}
|
|
4606
|
-
var tmp$ret$7 =
|
|
4623
|
+
var tmp$ret$7 = tmp_7;
|
|
4607
4624
|
destination.e(tmp$ret$7);
|
|
4608
4625
|
}
|
|
4609
|
-
var
|
|
4626
|
+
var tmp_8 = listOf(new Union(null, tmp_5, tmp_6, toSet(destination)));
|
|
4610
4627
|
// Inline function 'kotlin.collections.flatMapIndexed' call
|
|
4611
4628
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4612
4629
|
var tmp0_elvis_lhs_0 = schemaObject.f1x_1;
|
|
@@ -4621,22 +4638,23 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4621
4638
|
var tmp1_0 = index_1;
|
|
4622
4639
|
index_1 = tmp1_0 + 1 | 0;
|
|
4623
4640
|
var index_2 = checkIndexOverflow(tmp1_0);
|
|
4624
|
-
var
|
|
4641
|
+
var tmp_9;
|
|
4625
4642
|
if (element instanceof ReferenceObject_0) {
|
|
4626
|
-
|
|
4643
|
+
tmp_9 = emptyList();
|
|
4627
4644
|
} else {
|
|
4628
4645
|
if (element instanceof SchemaObject_0) {
|
|
4629
|
-
|
|
4646
|
+
tmp_9 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, element, Common_getInstance().i2f([name, index_2.toString()]));
|
|
4630
4647
|
} else {
|
|
4631
4648
|
noWhenBranchMatchedException();
|
|
4632
4649
|
}
|
|
4633
4650
|
}
|
|
4634
|
-
var list =
|
|
4651
|
+
var list = tmp_9;
|
|
4635
4652
|
addAll(destination_0, list);
|
|
4636
4653
|
}
|
|
4637
|
-
tmp = plus(
|
|
4654
|
+
tmp = plus(tmp_8, destination_0);
|
|
4638
4655
|
} else if (!(schemaObject.e1x_1 == null)) {
|
|
4639
|
-
var
|
|
4656
|
+
var tmp_10 = emptyList();
|
|
4657
|
+
var tmp_11 = new DefinitionIdentifier(sanitize_0(name));
|
|
4640
4658
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
4641
4659
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4642
4660
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -4657,12 +4675,12 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4657
4675
|
while (tmp0_iterator_2.h()) {
|
|
4658
4676
|
var e = tmp0_iterator_2.i();
|
|
4659
4677
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.flatten.<anonymous>' call
|
|
4660
|
-
var key = e.
|
|
4678
|
+
var key = e.r24_1;
|
|
4661
4679
|
if (set.e(key)) {
|
|
4662
4680
|
list_1.e(e);
|
|
4663
4681
|
}
|
|
4664
4682
|
}
|
|
4665
|
-
var
|
|
4683
|
+
var tmp_12 = listOf(new Type(null, tmp_10, tmp_11, new Shape(list_1), emptyList()));
|
|
4666
4684
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4667
4685
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4668
4686
|
var this_3 = ensureNotNull(schemaObject.e1x_1);
|
|
@@ -4672,22 +4690,22 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4672
4690
|
var element_1 = tmp0_iterator_3.i();
|
|
4673
4691
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.flatten.<anonymous>' call
|
|
4674
4692
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4675
|
-
var
|
|
4693
|
+
var tmp_13;
|
|
4676
4694
|
if (element_1 instanceof ReferenceObject_0) {
|
|
4677
4695
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4678
4696
|
var tmp0_elvis_lhs_2 = resolveSchemaObject_0(_this__u8e3s4, OpenAPIV3Parser_instance, element_1).fe_1.j1x_1;
|
|
4679
|
-
|
|
4697
|
+
tmp_13 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
4680
4698
|
} else {
|
|
4681
4699
|
if (element_1 instanceof SchemaObject_0) {
|
|
4682
4700
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4683
4701
|
var tmp0_elvis_lhs_3 = element_1.j1x_1;
|
|
4684
|
-
|
|
4702
|
+
tmp_13 = tmp0_elvis_lhs_3 == null ? emptyMap() : tmp0_elvis_lhs_3;
|
|
4685
4703
|
} else {
|
|
4686
4704
|
noWhenBranchMatchedException();
|
|
4687
4705
|
}
|
|
4688
4706
|
}
|
|
4689
4707
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4690
|
-
var this_4 =
|
|
4708
|
+
var this_4 = tmp_13;
|
|
4691
4709
|
var destination_3 = ArrayList_init_$Create$();
|
|
4692
4710
|
// Inline function 'kotlin.collections.iterator' call
|
|
4693
4711
|
var tmp0_iterator_4 = this_4.z().g();
|
|
@@ -4698,13 +4716,13 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4698
4716
|
var key_0 = element_2.a1();
|
|
4699
4717
|
// Inline function 'kotlin.collections.component2' call
|
|
4700
4718
|
var value = element_2.b1();
|
|
4701
|
-
var list_2 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, Common_getInstance().
|
|
4719
|
+
var list_2 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, Common_getInstance().i2f([name, key_0]));
|
|
4702
4720
|
addAll(destination_3, list_2);
|
|
4703
4721
|
}
|
|
4704
4722
|
var list_3 = destination_3;
|
|
4705
4723
|
addAll(destination_2, list_3);
|
|
4706
4724
|
}
|
|
4707
|
-
tmp = plus(
|
|
4725
|
+
tmp = plus(tmp_12, destination_2);
|
|
4708
4726
|
} else if (!(schemaObject.d1y_1 == null)) {
|
|
4709
4727
|
// Inline function 'kotlin.let' call
|
|
4710
4728
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -4721,10 +4739,10 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4721
4739
|
// Inline function 'kotlin.contracts.contract' call
|
|
4722
4740
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.flatten.<anonymous>' call
|
|
4723
4741
|
var it = toSet(destination_4);
|
|
4724
|
-
tmp = listOf(new Enum(null, new DefinitionIdentifier(name), it));
|
|
4742
|
+
tmp = listOf(new Enum(null, emptyList(), new DefinitionIdentifier(name), it));
|
|
4725
4743
|
} else {
|
|
4726
4744
|
var tmp5_subject = schemaObject.d1x_1;
|
|
4727
|
-
var
|
|
4745
|
+
var tmp_14;
|
|
4728
4746
|
switch (tmp5_subject == null ? -1 : tmp5_subject.r2_1) {
|
|
4729
4747
|
case -1:
|
|
4730
4748
|
case 5:
|
|
@@ -4747,44 +4765,44 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4747
4765
|
var key_1 = element_3.a1();
|
|
4748
4766
|
// Inline function 'kotlin.collections.component2' call
|
|
4749
4767
|
var value_0 = element_3.b1();
|
|
4750
|
-
var list_4 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value_0, Common_getInstance().
|
|
4768
|
+
var list_4 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value_0, Common_getInstance().i2f([name, key_1]));
|
|
4751
4769
|
addAll(destination_5, list_4);
|
|
4752
4770
|
}
|
|
4753
4771
|
|
|
4754
4772
|
var fields = destination_5;
|
|
4755
|
-
var schema = listOf(new Type(null, new DefinitionIdentifier(name), new Shape(toField_2(_this__u8e3s4, $this, schemaObject, name)), emptyList()));
|
|
4756
|
-
|
|
4773
|
+
var schema = listOf(new Type(null, emptyList(), new DefinitionIdentifier(name), new Shape(toField_2(_this__u8e3s4, $this, schemaObject, name)), emptyList()));
|
|
4774
|
+
tmp_14 = plus(schema, fields);
|
|
4757
4775
|
break;
|
|
4758
4776
|
case 4:
|
|
4759
4777
|
var tmp6_safe_receiver = schemaObject.i1x_1;
|
|
4760
|
-
var
|
|
4778
|
+
var tmp_15;
|
|
4761
4779
|
if (tmp6_safe_receiver == null) {
|
|
4762
|
-
|
|
4780
|
+
tmp_15 = null;
|
|
4763
4781
|
} else {
|
|
4764
4782
|
// Inline function 'kotlin.let' call
|
|
4765
4783
|
// Inline function 'kotlin.contracts.contract' call
|
|
4766
4784
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.flatten.<anonymous>' call
|
|
4767
|
-
var
|
|
4785
|
+
var tmp_16;
|
|
4768
4786
|
if (tmp6_safe_receiver instanceof ReferenceObject_0) {
|
|
4769
|
-
|
|
4787
|
+
tmp_16 = emptyList();
|
|
4770
4788
|
} else {
|
|
4771
4789
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
4772
|
-
|
|
4790
|
+
tmp_16 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, tmp6_safe_receiver, Common_getInstance().i2f([name, 'array']));
|
|
4773
4791
|
} else {
|
|
4774
4792
|
noWhenBranchMatchedException();
|
|
4775
4793
|
}
|
|
4776
4794
|
}
|
|
4777
|
-
|
|
4795
|
+
tmp_15 = tmp_16;
|
|
4778
4796
|
}
|
|
4779
4797
|
|
|
4780
|
-
var tmp7_elvis_lhs =
|
|
4781
|
-
|
|
4798
|
+
var tmp7_elvis_lhs = tmp_15;
|
|
4799
|
+
tmp_14 = tmp7_elvis_lhs == null ? emptyList() : tmp7_elvis_lhs;
|
|
4782
4800
|
break;
|
|
4783
4801
|
default:
|
|
4784
|
-
|
|
4802
|
+
tmp_14 = emptyList();
|
|
4785
4803
|
break;
|
|
4786
4804
|
}
|
|
4787
|
-
tmp =
|
|
4805
|
+
tmp = tmp_14;
|
|
4788
4806
|
}
|
|
4789
4807
|
return tmp;
|
|
4790
4808
|
}
|
|
@@ -4831,7 +4849,7 @@ function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
4831
4849
|
}
|
|
4832
4850
|
tmp = tmp_0;
|
|
4833
4851
|
} else if (!(schema.d1y_1 == null)) {
|
|
4834
|
-
tmp = new Custom(sanitize_0(Common_getInstance().
|
|
4852
|
+
tmp = new Custom(sanitize_0(Common_getInstance().i2f([getReference_0(referencingObject, OpenAPIV3Parser_instance)])), isNullable);
|
|
4835
4853
|
} else if (isPrimitive_0(schema.d1x_1)) {
|
|
4836
4854
|
tmp = new Primitive(toPrimitive_0(schema, OpenAPIV3Parser_instance), isNullable);
|
|
4837
4855
|
} else if (equals(schema.d1x_1, Type_ARRAY_getInstance_0())) {
|
|
@@ -4843,7 +4861,7 @@ function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
4843
4861
|
tmp_3 = toIterable_0(toReference_1(_this__u8e3s4, tmp_4, items, tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs), isNullable);
|
|
4844
4862
|
} else {
|
|
4845
4863
|
if (items instanceof SchemaObject_0) {
|
|
4846
|
-
var tmp_5 = sanitize_0(Common_getInstance().
|
|
4864
|
+
var tmp_5 = sanitize_0(Common_getInstance().i2f([getReference_0(referencingObject, OpenAPIV3Parser_instance), 'Array']));
|
|
4847
4865
|
var tmp3_elvis_lhs = schema.u1w_1;
|
|
4848
4866
|
tmp_3 = toIterable_0(new Custom(tmp_5, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs), isNullable);
|
|
4849
4867
|
} else {
|
|
@@ -4857,7 +4875,7 @@ function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
4857
4875
|
}
|
|
4858
4876
|
tmp = tmp_3;
|
|
4859
4877
|
} else {
|
|
4860
|
-
tmp = new Custom(sanitize_0(Common_getInstance().
|
|
4878
|
+
tmp = new Custom(sanitize_0(Common_getInstance().i2f([getReference_0(referencingObject, OpenAPIV3Parser_instance)])), isNullable);
|
|
4861
4879
|
}
|
|
4862
4880
|
return tmp;
|
|
4863
4881
|
}
|
|
@@ -5047,7 +5065,7 @@ function toOperationList_0(_this__u8e3s4, $this) {
|
|
|
5047
5065
|
var tmp$ret$0 = tmp_0;
|
|
5048
5066
|
result.n2(element, tmp$ret$0);
|
|
5049
5067
|
}
|
|
5050
|
-
return tmp.
|
|
5068
|
+
return tmp.j2f(result);
|
|
5051
5069
|
}
|
|
5052
5070
|
function getReference_0(_this__u8e3s4, $this) {
|
|
5053
5071
|
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.q1w_1), ['/']), 3);
|
|
@@ -5103,10 +5121,16 @@ function toField_2(_this__u8e3s4, $this, schema, name) {
|
|
|
5103
5121
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
5104
5122
|
var tmp;
|
|
5105
5123
|
if (value instanceof SchemaObject_0) {
|
|
5106
|
-
|
|
5124
|
+
var tmp3_identifier = new FieldIdentifier(key);
|
|
5125
|
+
var tmp4_annotations = emptyList();
|
|
5126
|
+
var tmp5_reference = !(value.d1y_1 == null) ? toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().i2f([name, key])) : equals(value.d1x_1, Type_ARRAY_getInstance_0()) ? toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().i2f([name, key, 'Array'])) : toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().i2f([name, key]));
|
|
5127
|
+
tmp = new Field(tmp3_identifier, tmp5_reference, tmp4_annotations);
|
|
5107
5128
|
} else {
|
|
5108
5129
|
if (value instanceof ReferenceObject_0) {
|
|
5109
|
-
|
|
5130
|
+
var tmp6_identifier = new FieldIdentifier(key);
|
|
5131
|
+
var tmp7_annotations = emptyList();
|
|
5132
|
+
var tmp8_reference = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable);
|
|
5133
|
+
tmp = new Field(tmp6_identifier, tmp8_reference, tmp7_annotations);
|
|
5110
5134
|
} else {
|
|
5111
5135
|
noWhenBranchMatchedException();
|
|
5112
5136
|
}
|
|
@@ -5138,7 +5162,9 @@ function toField_3(_this__u8e3s4, $this, parameter, name) {
|
|
|
5138
5162
|
// Inline function 'kotlin.contracts.contract' call
|
|
5139
5163
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.toField.<anonymous>' call
|
|
5140
5164
|
var it = tmp;
|
|
5141
|
-
|
|
5165
|
+
var tmp0_identifier = new FieldIdentifier(parameter.k1w_1);
|
|
5166
|
+
var tmp1_annotations = emptyList();
|
|
5167
|
+
return new Field(tmp0_identifier, it, tmp1_annotations);
|
|
5142
5168
|
}
|
|
5143
5169
|
function toField_4(_this__u8e3s4, $this, header, identifier, name) {
|
|
5144
5170
|
var tmp0_elvis_lhs = header.b1z_1;
|
|
@@ -5162,22 +5188,24 @@ function toField_4(_this__u8e3s4, $this, header, identifier, name) {
|
|
|
5162
5188
|
// Inline function 'kotlin.contracts.contract' call
|
|
5163
5189
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.toField.<anonymous>' call
|
|
5164
5190
|
var it = tmp;
|
|
5165
|
-
|
|
5191
|
+
var tmp0_identifier = new FieldIdentifier(identifier);
|
|
5192
|
+
var tmp1_annotations = emptyList();
|
|
5193
|
+
return new Field(tmp0_identifier, it, tmp1_annotations);
|
|
5166
5194
|
}
|
|
5167
5195
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
5168
|
-
this.
|
|
5169
|
-
this.
|
|
5170
|
-
this.
|
|
5171
|
-
this.
|
|
5196
|
+
this.d2g_1 = path;
|
|
5197
|
+
this.e2g_1 = pathItem;
|
|
5198
|
+
this.f2g_1 = method;
|
|
5199
|
+
this.g2g_1 = operation;
|
|
5172
5200
|
}
|
|
5173
5201
|
protoOf(FlattenRequest_0).toString = function () {
|
|
5174
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
5202
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.d2g_1) + ', pathItem=' + this.e2g_1.toString() + ', method=' + this.f2g_1.toString() + ', operation=' + this.g2g_1.toString() + ')';
|
|
5175
5203
|
};
|
|
5176
5204
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
5177
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
5178
|
-
result = imul(result, 31) + this.
|
|
5179
|
-
result = imul(result, 31) + this.
|
|
5180
|
-
result = imul(result, 31) + this.
|
|
5205
|
+
var result = Path__hashCode_impl_go73kd_0(this.d2g_1);
|
|
5206
|
+
result = imul(result, 31) + this.e2g_1.hashCode() | 0;
|
|
5207
|
+
result = imul(result, 31) + this.f2g_1.hashCode() | 0;
|
|
5208
|
+
result = imul(result, 31) + this.g2g_1.hashCode() | 0;
|
|
5181
5209
|
return result;
|
|
5182
5210
|
};
|
|
5183
5211
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -5186,13 +5214,13 @@ protoOf(FlattenRequest_0).equals = function (other) {
|
|
|
5186
5214
|
if (!(other instanceof FlattenRequest_0))
|
|
5187
5215
|
return false;
|
|
5188
5216
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
5189
|
-
if (!(this.
|
|
5217
|
+
if (!(this.d2g_1 === tmp0_other_with_cast.d2g_1))
|
|
5190
5218
|
return false;
|
|
5191
|
-
if (!this.
|
|
5219
|
+
if (!this.e2g_1.equals(tmp0_other_with_cast.e2g_1))
|
|
5192
5220
|
return false;
|
|
5193
|
-
if (!this.
|
|
5221
|
+
if (!this.f2g_1.equals(tmp0_other_with_cast.f2g_1))
|
|
5194
5222
|
return false;
|
|
5195
|
-
if (!this.
|
|
5223
|
+
if (!this.g2g_1.equals(tmp0_other_with_cast.g2g_1))
|
|
5196
5224
|
return false;
|
|
5197
5225
|
return true;
|
|
5198
5226
|
};
|
|
@@ -5241,23 +5269,23 @@ function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
|
5241
5269
|
return destination_1;
|
|
5242
5270
|
}
|
|
5243
5271
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
5244
|
-
this.
|
|
5245
|
-
this.
|
|
5246
|
-
this.
|
|
5247
|
-
this.
|
|
5248
|
-
this.
|
|
5249
|
-
this.
|
|
5272
|
+
this.h2g_1 = path;
|
|
5273
|
+
this.i2g_1 = pathItem;
|
|
5274
|
+
this.j2g_1 = method;
|
|
5275
|
+
this.k2g_1 = operation;
|
|
5276
|
+
this.l2g_1 = statusCode;
|
|
5277
|
+
this.m2g_1 = response;
|
|
5250
5278
|
}
|
|
5251
5279
|
protoOf(FlattenResponse_0).toString = function () {
|
|
5252
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
5280
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.h2g_1) + ', pathItem=' + this.i2g_1.toString() + ', method=' + this.j2g_1.toString() + ', operation=' + this.k2g_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy_0(this.l2g_1) + ', response=' + toString(this.m2g_1) + ')';
|
|
5253
5281
|
};
|
|
5254
5282
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
5255
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
5256
|
-
result = imul(result, 31) + this.
|
|
5257
|
-
result = imul(result, 31) + this.
|
|
5258
|
-
result = imul(result, 31) + this.
|
|
5259
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.
|
|
5260
|
-
result = imul(result, 31) + hashCode(this.
|
|
5283
|
+
var result = Path__hashCode_impl_go73kd_0(this.h2g_1);
|
|
5284
|
+
result = imul(result, 31) + this.i2g_1.hashCode() | 0;
|
|
5285
|
+
result = imul(result, 31) + this.j2g_1.hashCode() | 0;
|
|
5286
|
+
result = imul(result, 31) + this.k2g_1.hashCode() | 0;
|
|
5287
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.l2g_1) | 0;
|
|
5288
|
+
result = imul(result, 31) + hashCode(this.m2g_1) | 0;
|
|
5261
5289
|
return result;
|
|
5262
5290
|
};
|
|
5263
5291
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -5266,17 +5294,17 @@ protoOf(FlattenResponse_0).equals = function (other) {
|
|
|
5266
5294
|
if (!(other instanceof FlattenResponse_0))
|
|
5267
5295
|
return false;
|
|
5268
5296
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
5269
|
-
if (!(this.
|
|
5297
|
+
if (!(this.h2g_1 === tmp0_other_with_cast.h2g_1))
|
|
5270
5298
|
return false;
|
|
5271
|
-
if (!this.
|
|
5299
|
+
if (!this.i2g_1.equals(tmp0_other_with_cast.i2g_1))
|
|
5272
5300
|
return false;
|
|
5273
|
-
if (!this.
|
|
5301
|
+
if (!this.j2g_1.equals(tmp0_other_with_cast.j2g_1))
|
|
5274
5302
|
return false;
|
|
5275
|
-
if (!this.
|
|
5303
|
+
if (!this.k2g_1.equals(tmp0_other_with_cast.k2g_1))
|
|
5276
5304
|
return false;
|
|
5277
|
-
if (!(this.
|
|
5305
|
+
if (!(this.l2g_1 === tmp0_other_with_cast.l2g_1))
|
|
5278
5306
|
return false;
|
|
5279
|
-
if (!equals(this.
|
|
5307
|
+
if (!equals(this.m2g_1, tmp0_other_with_cast.m2g_1))
|
|
5280
5308
|
return false;
|
|
5281
5309
|
return true;
|
|
5282
5310
|
};
|
|
@@ -5357,9 +5385,9 @@ function OpenAPIV3Parser$parse$lambda($strict) {
|
|
|
5357
5385
|
}
|
|
5358
5386
|
function OpenAPIV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
5359
5387
|
return function ($this$flatMapRequests) {
|
|
5360
|
-
var parameters = plus(resolveParameters_2($this_parseParameters, OpenAPIV3Parser_instance, $this$flatMapRequests.
|
|
5361
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5362
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5388
|
+
var parameters = plus(resolveParameters_2($this_parseParameters, OpenAPIV3Parser_instance, $this$flatMapRequests.e2g_1), resolveParameters_1($this_parseParameters, OpenAPIV3Parser_instance, $this$flatMapRequests.g2g_1));
|
|
5389
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.g2g_1, OpenAPIV3Parser_instance);
|
|
5390
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.d2g_1, OpenAPIV3Parser_instance) + $this$flatMapRequests.f2g_1.q2_1 : tmp0_elvis_lhs;
|
|
5363
5391
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5364
5392
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5365
5393
|
var destination = ArrayList_init_$Create$();
|
|
@@ -5375,7 +5403,7 @@ function OpenAPIV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
5375
5403
|
// Inline function 'kotlin.let' call
|
|
5376
5404
|
// Inline function 'kotlin.contracts.contract' call
|
|
5377
5405
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
5378
|
-
tmp = flatten_2($this_parseParameters, OpenAPIV3Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
5406
|
+
tmp = flatten_2($this_parseParameters, OpenAPIV3Parser_instance, tmp0_safe_receiver, Common_getInstance().i2f([name, 'Parameter', element.k1w_1]));
|
|
5379
5407
|
}
|
|
5380
5408
|
var tmp1_elvis_lhs = tmp;
|
|
5381
5409
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -5386,11 +5414,11 @@ function OpenAPIV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
5386
5414
|
}
|
|
5387
5415
|
function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
5388
5416
|
return function ($this$flatMapRequests) {
|
|
5389
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5390
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5417
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.g2g_1, OpenAPIV3Parser_instance);
|
|
5418
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.d2g_1, OpenAPIV3Parser_instance) + $this$flatMapRequests.f2g_1.q2_1 : tmp0_elvis_lhs;
|
|
5391
5419
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5392
5420
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5393
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
5421
|
+
var tmp1_safe_receiver = $this$flatMapRequests.g2g_1.l1u_1;
|
|
5394
5422
|
var tmp;
|
|
5395
5423
|
if (tmp1_safe_receiver == null) {
|
|
5396
5424
|
tmp = null;
|
|
@@ -5420,7 +5448,7 @@ function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
5420
5448
|
switch (tmp0_subject == null ? -1 : tmp0_subject.r2_1) {
|
|
5421
5449
|
case -1:
|
|
5422
5450
|
case 5:
|
|
5423
|
-
tmp_1 = flatten_1($this_parseRequestBody, OpenAPIV3Parser_instance, schema, Common_getInstance().
|
|
5451
|
+
tmp_1 = flatten_1($this_parseRequestBody, OpenAPIV3Parser_instance, schema, Common_getInstance().i2f([name, 'RequestBody']));
|
|
5424
5452
|
break;
|
|
5425
5453
|
case 4:
|
|
5426
5454
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -5433,7 +5461,7 @@ function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
5433
5461
|
// Inline function 'kotlin.let' call
|
|
5434
5462
|
// Inline function 'kotlin.contracts.contract' call
|
|
5435
5463
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
5436
|
-
tmp_2 = flatten_2($this_parseRequestBody, OpenAPIV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
5464
|
+
tmp_2 = flatten_2($this_parseRequestBody, OpenAPIV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().i2f([name, 'RequestBody']));
|
|
5437
5465
|
}
|
|
5438
5466
|
|
|
5439
5467
|
var tmp0_elvis_lhs_1 = tmp_2;
|
|
@@ -5465,15 +5493,15 @@ function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
5465
5493
|
}
|
|
5466
5494
|
function OpenAPIV3Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
5467
5495
|
return function ($this$flatMapResponses) {
|
|
5468
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.
|
|
5469
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.
|
|
5470
|
-
var response = $this$flatMapResponses.
|
|
5496
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.k2g_1, OpenAPIV3Parser_instance);
|
|
5497
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.h2g_1, OpenAPIV3Parser_instance) + $this$flatMapResponses.j2g_1.q2_1 : tmp0_elvis_lhs;
|
|
5498
|
+
var response = $this$flatMapResponses.m2g_1;
|
|
5471
5499
|
var tmp;
|
|
5472
5500
|
if (response instanceof ResponseObject_0) {
|
|
5473
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, response, name, $this$flatMapResponses.
|
|
5501
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, response, name, $this$flatMapResponses.l2g_1);
|
|
5474
5502
|
} else {
|
|
5475
5503
|
if (response instanceof ReferenceObject_0) {
|
|
5476
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenAPIV3Parser_instance, response).fe_1, name, $this$flatMapResponses.
|
|
5504
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenAPIV3Parser_instance, response).fe_1, name, $this$flatMapResponses.l2g_1);
|
|
5477
5505
|
} else {
|
|
5478
5506
|
noWhenBranchMatchedException();
|
|
5479
5507
|
}
|
|
@@ -5492,10 +5520,10 @@ function OpenAPIV3Parser$toName$lambda(it) {
|
|
|
5492
5520
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5493
5521
|
|
|
5494
5522
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
5495
|
-
tmp = tmp_0.
|
|
5523
|
+
tmp = tmp_0.i2f([tmp$ret$1]);
|
|
5496
5524
|
break;
|
|
5497
5525
|
case false:
|
|
5498
|
-
tmp = Common_getInstance().
|
|
5526
|
+
tmp = Common_getInstance().i2f([it]);
|
|
5499
5527
|
break;
|
|
5500
5528
|
default:
|
|
5501
5529
|
noWhenBranchMatchedException();
|
|
@@ -5505,8 +5533,8 @@ function OpenAPIV3Parser$toName$lambda(it) {
|
|
|
5505
5533
|
}
|
|
5506
5534
|
function OpenAPIV3Parser() {
|
|
5507
5535
|
}
|
|
5508
|
-
protoOf(OpenAPIV3Parser).
|
|
5509
|
-
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.
|
|
5536
|
+
protoOf(OpenAPIV3Parser).g2f = function (moduleContent, strict) {
|
|
5537
|
+
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.n2g((new OpenAPI_0(Json(VOID, OpenAPIV3Parser$parse$lambda(strict)))).t1g(moduleContent.q22_1)));
|
|
5510
5538
|
var tmp;
|
|
5511
5539
|
if (tmp0_elvis_lhs == null) {
|
|
5512
5540
|
var message = 'Cannot yield non empty List<Node> for OpenAPI v3';
|
|
@@ -5516,7 +5544,7 @@ protoOf(OpenAPIV3Parser).r2e = function (moduleContent, strict) {
|
|
|
5516
5544
|
}
|
|
5517
5545
|
return new AST(nonEmptyListOf(new Module(moduleContent.p22_1, tmp), []));
|
|
5518
5546
|
};
|
|
5519
|
-
protoOf(OpenAPIV3Parser).
|
|
5547
|
+
protoOf(OpenAPIV3Parser).n2g = function (_this__u8e3s4) {
|
|
5520
5548
|
// Inline function 'kotlin.collections.reduce' call
|
|
5521
5549
|
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();
|
|
5522
5550
|
if (!iterator.h())
|
|
@@ -5545,7 +5573,7 @@ function sanitize_0(_this__u8e3s4) {
|
|
|
5545
5573
|
// Inline function 'community.flock.wirespec.openapi.v3.sanitize.<anonymous>' call
|
|
5546
5574
|
var tmp1 = index;
|
|
5547
5575
|
index = tmp1 + 1 | 0;
|
|
5548
|
-
var tmp$ret$0 = checkIndexOverflow(tmp1) > 0 ? Companion_instance.
|
|
5576
|
+
var tmp$ret$0 = checkIndexOverflow(tmp1) > 0 ? Companion_instance.f26(item) : item;
|
|
5549
5577
|
destination.e(tmp$ret$0);
|
|
5550
5578
|
}
|
|
5551
5579
|
var tmp = asSequence(joinToString(destination, ''));
|