@flock/wirespec 0.18.1-RC.3 → 0.18.4
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-mordant.mjs +79 -79
- package/clikt-clikt.mjs +1265 -1265
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +433 -433
- package/kotlin-kotlin-stdlib.mjs +34 -28
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +5407 -5405
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1760 -1760
- package/kotlinx-io-kotlinx-io-core.mjs +404 -404
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1701 -1701
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1320 -1319
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1198 -1198
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +192 -205
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +711 -777
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +311 -418
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +640 -769
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +1582 -1708
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +680 -635
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +579 -562
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +20 -20
- package/wirespec-src-compiler-ir.mjs +5428 -6057
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +279 -279
- package/wirespec-src-converter-avro.mjs +559 -559
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +802 -404
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +144 -144
- package/wirespec-src-plugin-cli.mjs +87 -87
- package/wirespec-src-plugin-npm.mjs +44 -25
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +13 -13
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
Endpoint1jsq06yr3xdhp as Endpoint,
|
|
14
14
|
DefinitionIdentifiervfasqdb33qef as DefinitionIdentifier,
|
|
15
15
|
Parameter2v8p72ovcf2np as Parameter,
|
|
16
|
+
Dict1p2r7i6z7n6zc as Dict_0,
|
|
16
17
|
Annotation2u6gjfpokxaky as Annotation,
|
|
17
18
|
Refined1lkzc0dg6wey7 as Refined,
|
|
18
19
|
RegExpiyof7szm5zfu as RegExp_0,
|
|
@@ -87,6 +88,8 @@ import {
|
|
|
87
88
|
listOfvhqybd2zx248 as listOf,
|
|
88
89
|
toSet2orjxp16sotqu as toSet,
|
|
89
90
|
emptyList1g2z5xcrvp2zy as emptyList,
|
|
91
|
+
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
92
|
+
mutableListOf6oorvk2mtdmp as mutableListOf,
|
|
90
93
|
to2cs3ny02qtbcb as to,
|
|
91
94
|
toMap1vec9topfei08 as toMap,
|
|
92
95
|
toDouble1kn912gjoizjp as toDouble,
|
|
@@ -124,6 +127,8 @@ import {
|
|
|
124
127
|
import {
|
|
125
128
|
Jsonsmkyu9xjl7fv as Json,
|
|
126
129
|
JsonPrimitiveolttw629wj53 as JsonPrimitive,
|
|
130
|
+
JsonPrimitive3ttzjh2ft5dnx as JsonPrimitive_0,
|
|
131
|
+
get_contentOrNull35s97cgi8z9eo as get_contentOrNull,
|
|
127
132
|
} from './kotlinx-serialization-kotlinx-serialization-json.mjs';
|
|
128
133
|
import {
|
|
129
134
|
_Path___get_value__impl__thmflc1h9du97711cd8 as _Path___get_value__impl__thmflc,
|
|
@@ -177,6 +182,8 @@ import {
|
|
|
177
182
|
OpenAPIV3RequestBody2vgyl9644bcht as OpenAPIV3RequestBody,
|
|
178
183
|
OpenAPIV3Response3b2ocl29zbu62 as OpenAPIV3Response,
|
|
179
184
|
OpenAPIV3Operation1ckss7g1jgu4t as OpenAPIV3Operation,
|
|
185
|
+
OpenAPIV3Linkotqnavc7r3ij as OpenAPIV3Link,
|
|
186
|
+
OpenAPIV3Links1d8wsb9rnwm3t as OpenAPIV3Links,
|
|
180
187
|
OpenAPIV3Parameter1agf6fepubkma as OpenAPIV3Parameter,
|
|
181
188
|
OpenAPIV3ParameterLocation_PATH_getInstance29pilxtihib3n as OpenAPIV3ParameterLocation_PATH_getInstance,
|
|
182
189
|
OpenAPIV3Header2udarw2707zd4 as OpenAPIV3Header,
|
|
@@ -203,6 +210,7 @@ var imul = Math.imul;
|
|
|
203
210
|
//region block: pre-declaration
|
|
204
211
|
initMetadataForClass(FlattenRequest, 'FlattenRequest');
|
|
205
212
|
initMetadataForClass(FlattenResponse, 'FlattenResponse');
|
|
213
|
+
initMetadataForClass(LinkInfo, 'LinkInfo');
|
|
206
214
|
initMetadataForObject(OpenAPIV2Emitter, 'OpenAPIV2Emitter');
|
|
207
215
|
initMetadataForObject(OpenAPIV2Parser, 'OpenAPIV2Parser');
|
|
208
216
|
initMetadataForObject(OpenAPIV3Emitter, 'OpenAPIV3Emitter');
|
|
@@ -211,11 +219,11 @@ initMetadataForObject(OpenAPIV3Parser, 'OpenAPIV3Parser');
|
|
|
211
219
|
function emitFormat(_this__u8e3s4) {
|
|
212
220
|
var tmp;
|
|
213
221
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
214
|
-
var t = _this__u8e3s4.
|
|
222
|
+
var t = _this__u8e3s4.ou_1;
|
|
215
223
|
var tmp_0;
|
|
216
224
|
if (t instanceof Number_0) {
|
|
217
225
|
var tmp_1;
|
|
218
|
-
switch (t.
|
|
226
|
+
switch (t.vt_1.b3_1) {
|
|
219
227
|
case 0:
|
|
220
228
|
tmp_1 = 'float';
|
|
221
229
|
break;
|
|
@@ -230,7 +238,7 @@ function emitFormat(_this__u8e3s4) {
|
|
|
230
238
|
} else {
|
|
231
239
|
if (t instanceof Integer) {
|
|
232
240
|
var tmp_2;
|
|
233
|
-
switch (t.
|
|
241
|
+
switch (t.st_1.b3_1) {
|
|
234
242
|
case 0:
|
|
235
243
|
tmp_2 = 'int32';
|
|
236
244
|
break;
|
|
@@ -273,28 +281,28 @@ function toOperationList(_this__u8e3s4) {
|
|
|
273
281
|
var tmp;
|
|
274
282
|
switch (element.b3_1) {
|
|
275
283
|
case 0:
|
|
276
|
-
tmp = _this__u8e3s4.
|
|
284
|
+
tmp = _this__u8e3s4.s2y();
|
|
277
285
|
break;
|
|
278
286
|
case 1:
|
|
279
|
-
tmp = _this__u8e3s4.
|
|
287
|
+
tmp = _this__u8e3s4.u2y();
|
|
280
288
|
break;
|
|
281
289
|
case 2:
|
|
282
|
-
tmp = _this__u8e3s4.
|
|
290
|
+
tmp = _this__u8e3s4.t2y();
|
|
283
291
|
break;
|
|
284
292
|
case 3:
|
|
285
|
-
tmp = _this__u8e3s4.
|
|
293
|
+
tmp = _this__u8e3s4.v2y();
|
|
286
294
|
break;
|
|
287
295
|
case 4:
|
|
288
|
-
tmp = _this__u8e3s4.
|
|
296
|
+
tmp = _this__u8e3s4.w2y();
|
|
289
297
|
break;
|
|
290
298
|
case 5:
|
|
291
|
-
tmp = _this__u8e3s4.
|
|
299
|
+
tmp = _this__u8e3s4.x2y();
|
|
292
300
|
break;
|
|
293
301
|
case 6:
|
|
294
|
-
tmp = _this__u8e3s4.
|
|
302
|
+
tmp = _this__u8e3s4.y2y();
|
|
295
303
|
break;
|
|
296
304
|
case 7:
|
|
297
|
-
tmp = _this__u8e3s4.
|
|
305
|
+
tmp = _this__u8e3s4.z2y();
|
|
298
306
|
break;
|
|
299
307
|
default:
|
|
300
308
|
noWhenBranchMatchedException();
|
|
@@ -306,7 +314,7 @@ function toOperationList(_this__u8e3s4) {
|
|
|
306
314
|
return filterNotNullValues(result);
|
|
307
315
|
}
|
|
308
316
|
function toName(_this__u8e3s4) {
|
|
309
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
317
|
+
var tmp0_safe_receiver = _this__u8e3s4.g32();
|
|
310
318
|
var tmp;
|
|
311
319
|
if (tmp0_safe_receiver == null) {
|
|
312
320
|
tmp = null;
|
|
@@ -351,7 +359,7 @@ function sanitize(_this__u8e3s4) {
|
|
|
351
359
|
}
|
|
352
360
|
function flatMapRequests(_this__u8e3s4, f) {
|
|
353
361
|
// Inline function 'kotlin.collections.flatMap' call
|
|
354
|
-
var tmp0 = _this__u8e3s4.
|
|
362
|
+
var tmp0 = _this__u8e3s4.a2y();
|
|
355
363
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
356
364
|
var destination = ArrayList_init_$Create$();
|
|
357
365
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -359,7 +367,7 @@ function flatMapRequests(_this__u8e3s4, f) {
|
|
|
359
367
|
while (_iterator__ex2g4s.u()) {
|
|
360
368
|
var element = _iterator__ex2g4s.v();
|
|
361
369
|
// Inline function 'kotlin.collections.component1' call
|
|
362
|
-
var path = element.k1().
|
|
370
|
+
var path = element.k1().g2v_1;
|
|
363
371
|
// Inline function 'kotlin.collections.component2' call
|
|
364
372
|
var pathItem = element.l1();
|
|
365
373
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -392,19 +400,19 @@ function flatMapRequests(_this__u8e3s4, f) {
|
|
|
392
400
|
return destination_1;
|
|
393
401
|
}
|
|
394
402
|
function FlattenRequest(path, pathItem, method, operation) {
|
|
395
|
-
this.
|
|
396
|
-
this.
|
|
397
|
-
this.
|
|
398
|
-
this.
|
|
403
|
+
this.y3f_1 = path;
|
|
404
|
+
this.z3f_1 = pathItem;
|
|
405
|
+
this.a3g_1 = method;
|
|
406
|
+
this.b3g_1 = operation;
|
|
399
407
|
}
|
|
400
408
|
protoOf(FlattenRequest).toString = function () {
|
|
401
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
409
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.y3f_1) + ', pathItem=' + toString(this.z3f_1) + ', method=' + this.a3g_1.toString() + ', operation=' + toString(this.b3g_1) + ')';
|
|
402
410
|
};
|
|
403
411
|
protoOf(FlattenRequest).hashCode = function () {
|
|
404
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
405
|
-
result = imul(result, 31) + hashCode(this.
|
|
406
|
-
result = imul(result, 31) + this.
|
|
407
|
-
result = imul(result, 31) + hashCode(this.
|
|
412
|
+
var result = Path__hashCode_impl_go73kd(this.y3f_1);
|
|
413
|
+
result = imul(result, 31) + hashCode(this.z3f_1) | 0;
|
|
414
|
+
result = imul(result, 31) + this.a3g_1.hashCode() | 0;
|
|
415
|
+
result = imul(result, 31) + hashCode(this.b3g_1) | 0;
|
|
408
416
|
return result;
|
|
409
417
|
};
|
|
410
418
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -412,19 +420,19 @@ protoOf(FlattenRequest).equals = function (other) {
|
|
|
412
420
|
return true;
|
|
413
421
|
if (!(other instanceof FlattenRequest))
|
|
414
422
|
return false;
|
|
415
|
-
if (!(this.
|
|
423
|
+
if (!(this.y3f_1 === other.y3f_1))
|
|
416
424
|
return false;
|
|
417
|
-
if (!equals(this.
|
|
425
|
+
if (!equals(this.z3f_1, other.z3f_1))
|
|
418
426
|
return false;
|
|
419
|
-
if (!this.
|
|
427
|
+
if (!this.a3g_1.equals(other.a3g_1))
|
|
420
428
|
return false;
|
|
421
|
-
if (!equals(this.
|
|
429
|
+
if (!equals(this.b3g_1, other.b3g_1))
|
|
422
430
|
return false;
|
|
423
431
|
return true;
|
|
424
432
|
};
|
|
425
433
|
function flatMapResponses(_this__u8e3s4, f) {
|
|
426
434
|
// Inline function 'kotlin.collections.flatMap' call
|
|
427
|
-
var tmp0 = _this__u8e3s4.
|
|
435
|
+
var tmp0 = _this__u8e3s4.a2y();
|
|
428
436
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
429
437
|
var destination = ArrayList_init_$Create$();
|
|
430
438
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -432,7 +440,7 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
432
440
|
while (_iterator__ex2g4s.u()) {
|
|
433
441
|
var element = _iterator__ex2g4s.v();
|
|
434
442
|
// Inline function 'kotlin.collections.component1' call
|
|
435
|
-
var path = element.k1().
|
|
443
|
+
var path = element.k1().g2v_1;
|
|
436
444
|
// Inline function 'kotlin.collections.component2' call
|
|
437
445
|
var pathItem = element.l1();
|
|
438
446
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -448,7 +456,7 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
448
456
|
// Inline function 'kotlin.collections.component2' call
|
|
449
457
|
var operation = element_0.l1();
|
|
450
458
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
451
|
-
var tmp0_elvis_lhs = operation.
|
|
459
|
+
var tmp0_elvis_lhs = operation.zv();
|
|
452
460
|
// Inline function 'kotlin.collections.map' call
|
|
453
461
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
454
462
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -458,7 +466,7 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
458
466
|
while (_iterator__ex2g4s_1.u()) {
|
|
459
467
|
var item = _iterator__ex2g4s_1.v();
|
|
460
468
|
// Inline function 'kotlin.collections.component1' call
|
|
461
|
-
var statusCode = item.k1().
|
|
469
|
+
var statusCode = item.k1().k2v_1;
|
|
462
470
|
// Inline function 'kotlin.collections.component2' call
|
|
463
471
|
var response = item.l1();
|
|
464
472
|
var tmp$ret$10 = new FlattenResponse(path, pathItem, method, operation, statusCode, response);
|
|
@@ -482,23 +490,23 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
482
490
|
return destination_2;
|
|
483
491
|
}
|
|
484
492
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response) {
|
|
485
|
-
this.
|
|
486
|
-
this.
|
|
487
|
-
this.
|
|
488
|
-
this.
|
|
489
|
-
this.
|
|
490
|
-
this.
|
|
493
|
+
this.c3g_1 = path;
|
|
494
|
+
this.d3g_1 = pathItem;
|
|
495
|
+
this.e3g_1 = method;
|
|
496
|
+
this.f3g_1 = operation;
|
|
497
|
+
this.g3g_1 = statusCode;
|
|
498
|
+
this.h3g_1 = response;
|
|
491
499
|
}
|
|
492
500
|
protoOf(FlattenResponse).toString = function () {
|
|
493
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
501
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.c3g_1) + ', pathItem=' + toString(this.d3g_1) + ', method=' + this.e3g_1.toString() + ', operation=' + toString(this.f3g_1) + ', statusCode=' + StatusCode__toString_impl_6caewy(this.g3g_1) + ', response=' + toString(this.h3g_1) + ')';
|
|
494
502
|
};
|
|
495
503
|
protoOf(FlattenResponse).hashCode = function () {
|
|
496
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
497
|
-
result = imul(result, 31) + hashCode(this.
|
|
498
|
-
result = imul(result, 31) + this.
|
|
499
|
-
result = imul(result, 31) + hashCode(this.
|
|
500
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
501
|
-
result = imul(result, 31) + hashCode(this.
|
|
504
|
+
var result = Path__hashCode_impl_go73kd(this.c3g_1);
|
|
505
|
+
result = imul(result, 31) + hashCode(this.d3g_1) | 0;
|
|
506
|
+
result = imul(result, 31) + this.e3g_1.hashCode() | 0;
|
|
507
|
+
result = imul(result, 31) + hashCode(this.f3g_1) | 0;
|
|
508
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.g3g_1) | 0;
|
|
509
|
+
result = imul(result, 31) + hashCode(this.h3g_1) | 0;
|
|
502
510
|
return result;
|
|
503
511
|
};
|
|
504
512
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -506,17 +514,17 @@ protoOf(FlattenResponse).equals = function (other) {
|
|
|
506
514
|
return true;
|
|
507
515
|
if (!(other instanceof FlattenResponse))
|
|
508
516
|
return false;
|
|
509
|
-
if (!(this.
|
|
517
|
+
if (!(this.c3g_1 === other.c3g_1))
|
|
510
518
|
return false;
|
|
511
|
-
if (!equals(this.
|
|
519
|
+
if (!equals(this.d3g_1, other.d3g_1))
|
|
512
520
|
return false;
|
|
513
|
-
if (!this.
|
|
521
|
+
if (!this.e3g_1.equals(other.e3g_1))
|
|
514
522
|
return false;
|
|
515
|
-
if (!equals(this.
|
|
523
|
+
if (!equals(this.f3g_1, other.f3g_1))
|
|
516
524
|
return false;
|
|
517
|
-
if (!(this.
|
|
525
|
+
if (!(this.g3g_1 === other.g3g_1))
|
|
518
526
|
return false;
|
|
519
|
-
if (!equals(this.
|
|
527
|
+
if (!equals(this.h3g_1, other.h3g_1))
|
|
520
528
|
return false;
|
|
521
529
|
return true;
|
|
522
530
|
};
|
|
@@ -525,7 +533,7 @@ function toDict(_this__u8e3s4, isNullable) {
|
|
|
525
533
|
}
|
|
526
534
|
function getReference(_this__u8e3s4) {
|
|
527
535
|
// Inline function 'kotlin.let' call
|
|
528
|
-
var it = split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
536
|
+
var it = split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.l32()), ['/']);
|
|
529
537
|
var tmp;
|
|
530
538
|
if (_this__u8e3s4 instanceof OpenAPIV2Reference) {
|
|
531
539
|
tmp = getOrNull(it, 2);
|
|
@@ -539,7 +547,7 @@ function getReference(_this__u8e3s4) {
|
|
|
539
547
|
var tmp0_elvis_lhs = tmp;
|
|
540
548
|
var tmp_0;
|
|
541
549
|
if (tmp0_elvis_lhs == null) {
|
|
542
|
-
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
550
|
+
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe(_this__u8e3s4.l32());
|
|
543
551
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
544
552
|
} else {
|
|
545
553
|
tmp_0 = tmp0_elvis_lhs;
|
|
@@ -554,8 +562,8 @@ function isParam(_this__u8e3s4) {
|
|
|
554
562
|
}
|
|
555
563
|
function jsonDefault$lambda($strict) {
|
|
556
564
|
return function ($this$Json) {
|
|
557
|
-
$this$Json.
|
|
558
|
-
$this$Json.
|
|
565
|
+
$this$Json.m2k_1 = true;
|
|
566
|
+
$this$Json.k2k_1 = !$strict;
|
|
559
567
|
return Unit_instance;
|
|
560
568
|
};
|
|
561
569
|
}
|
|
@@ -591,7 +599,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
591
599
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
592
600
|
while (_iterator__ex2g4s.u()) {
|
|
593
601
|
var element = _iterator__ex2g4s.v();
|
|
594
|
-
if (element.
|
|
602
|
+
if (element.mt_1 === 'Description') {
|
|
595
603
|
tmp$ret$1 = element;
|
|
596
604
|
break $l$block;
|
|
597
605
|
}
|
|
@@ -599,7 +607,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
599
607
|
tmp$ret$1 = null;
|
|
600
608
|
}
|
|
601
609
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
602
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
610
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.nt_1;
|
|
603
611
|
var tmp;
|
|
604
612
|
if (tmp1_safe_receiver == null) {
|
|
605
613
|
tmp = null;
|
|
@@ -611,7 +619,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
611
619
|
var _iterator__ex2g4s_0 = tmp1_safe_receiver.t();
|
|
612
620
|
while (_iterator__ex2g4s_0.u()) {
|
|
613
621
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
614
|
-
if (element_0.
|
|
622
|
+
if (element_0.kt_1 === 'default') {
|
|
615
623
|
tmp$ret$4 = element_0;
|
|
616
624
|
break $l$block_0;
|
|
617
625
|
}
|
|
@@ -621,7 +629,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
621
629
|
tmp = tmp$ret$4;
|
|
622
630
|
}
|
|
623
631
|
var tmp2_safe_receiver = tmp;
|
|
624
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
632
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.lt_1;
|
|
625
633
|
var tmp_0;
|
|
626
634
|
if (tmp3_safe_receiver == null) {
|
|
627
635
|
tmp_0 = null;
|
|
@@ -630,7 +638,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
630
638
|
tmp_0 = tmp3_safe_receiver instanceof Single ? tmp3_safe_receiver : null;
|
|
631
639
|
}
|
|
632
640
|
var tmp4_safe_receiver = tmp_0;
|
|
633
|
-
return tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
641
|
+
return tmp4_safe_receiver == null ? null : tmp4_safe_receiver.ht_1;
|
|
634
642
|
}
|
|
635
643
|
function resolveEndpointNameCollisions(_this__u8e3s4) {
|
|
636
644
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -714,6 +722,149 @@ function toDescriptionAnnotationList(_this__u8e3s4) {
|
|
|
714
722
|
var tmp0_elvis_lhs = tmp_0;
|
|
715
723
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
716
724
|
}
|
|
725
|
+
function LinkInfo(name, operationId, operationRef, parameters, requestBody, description, serverUrl) {
|
|
726
|
+
this.i3g_1 = name;
|
|
727
|
+
this.j3g_1 = operationId;
|
|
728
|
+
this.k3g_1 = operationRef;
|
|
729
|
+
this.l3g_1 = parameters;
|
|
730
|
+
this.m3g_1 = requestBody;
|
|
731
|
+
this.n3g_1 = description;
|
|
732
|
+
this.o3g_1 = serverUrl;
|
|
733
|
+
}
|
|
734
|
+
protoOf(LinkInfo).toString = function () {
|
|
735
|
+
return 'LinkInfo(name=' + this.i3g_1 + ', operationId=' + this.j3g_1 + ', operationRef=' + this.k3g_1 + ', parameters=' + toString(this.l3g_1) + ', requestBody=' + this.m3g_1 + ', description=' + this.n3g_1 + ', serverUrl=' + this.o3g_1 + ')';
|
|
736
|
+
};
|
|
737
|
+
protoOf(LinkInfo).hashCode = function () {
|
|
738
|
+
var result = getStringHashCode(this.i3g_1);
|
|
739
|
+
result = imul(result, 31) + (this.j3g_1 == null ? 0 : getStringHashCode(this.j3g_1)) | 0;
|
|
740
|
+
result = imul(result, 31) + (this.k3g_1 == null ? 0 : getStringHashCode(this.k3g_1)) | 0;
|
|
741
|
+
result = imul(result, 31) + hashCode(this.l3g_1) | 0;
|
|
742
|
+
result = imul(result, 31) + (this.m3g_1 == null ? 0 : getStringHashCode(this.m3g_1)) | 0;
|
|
743
|
+
result = imul(result, 31) + (this.n3g_1 == null ? 0 : getStringHashCode(this.n3g_1)) | 0;
|
|
744
|
+
result = imul(result, 31) + (this.o3g_1 == null ? 0 : getStringHashCode(this.o3g_1)) | 0;
|
|
745
|
+
return result;
|
|
746
|
+
};
|
|
747
|
+
protoOf(LinkInfo).equals = function (other) {
|
|
748
|
+
if (this === other)
|
|
749
|
+
return true;
|
|
750
|
+
if (!(other instanceof LinkInfo))
|
|
751
|
+
return false;
|
|
752
|
+
if (!(this.i3g_1 === other.i3g_1))
|
|
753
|
+
return false;
|
|
754
|
+
if (!(this.j3g_1 == other.j3g_1))
|
|
755
|
+
return false;
|
|
756
|
+
if (!(this.k3g_1 == other.k3g_1))
|
|
757
|
+
return false;
|
|
758
|
+
if (!equals(this.l3g_1, other.l3g_1))
|
|
759
|
+
return false;
|
|
760
|
+
if (!(this.m3g_1 == other.m3g_1))
|
|
761
|
+
return false;
|
|
762
|
+
if (!(this.n3g_1 == other.n3g_1))
|
|
763
|
+
return false;
|
|
764
|
+
if (!(this.o3g_1 == other.o3g_1))
|
|
765
|
+
return false;
|
|
766
|
+
return true;
|
|
767
|
+
};
|
|
768
|
+
function findLinks(_this__u8e3s4) {
|
|
769
|
+
_init_properties_Utils_kt__jo07cx();
|
|
770
|
+
// Inline function 'kotlin.collections.filter' call
|
|
771
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
772
|
+
var destination = ArrayList_init_$Create$();
|
|
773
|
+
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
774
|
+
while (_iterator__ex2g4s.u()) {
|
|
775
|
+
var element = _iterator__ex2g4s.v();
|
|
776
|
+
if (element.mt_1 === 'Link') {
|
|
777
|
+
destination.x(element);
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
// Inline function 'kotlin.collections.mapNotNull' call
|
|
781
|
+
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
782
|
+
var destination_0 = ArrayList_init_$Create$();
|
|
783
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
784
|
+
var _iterator__ex2g4s_0 = destination.t();
|
|
785
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
786
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
787
|
+
var tmp0_safe_receiver = toLinkInfo(element_0);
|
|
788
|
+
if (tmp0_safe_receiver == null)
|
|
789
|
+
null;
|
|
790
|
+
else {
|
|
791
|
+
// Inline function 'kotlin.let' call
|
|
792
|
+
destination_0.x(tmp0_safe_receiver);
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
return destination_0;
|
|
796
|
+
}
|
|
797
|
+
function toAnnotation(_this__u8e3s4) {
|
|
798
|
+
_init_properties_Utils_kt__jo07cx();
|
|
799
|
+
var params = mutableListOf([new Parameter('default', new Single(_this__u8e3s4.i3g_1))]);
|
|
800
|
+
var tmp0_safe_receiver = _this__u8e3s4.j3g_1;
|
|
801
|
+
if (tmp0_safe_receiver == null)
|
|
802
|
+
null;
|
|
803
|
+
else {
|
|
804
|
+
// Inline function 'kotlin.let' call
|
|
805
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
806
|
+
var element = new Parameter('operationId', new Single(tmp0_safe_receiver));
|
|
807
|
+
params.x(element);
|
|
808
|
+
}
|
|
809
|
+
var tmp1_safe_receiver = _this__u8e3s4.k3g_1;
|
|
810
|
+
if (tmp1_safe_receiver == null)
|
|
811
|
+
null;
|
|
812
|
+
else {
|
|
813
|
+
// Inline function 'kotlin.let' call
|
|
814
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
815
|
+
var element_0 = new Parameter('operationRef', new Single(tmp1_safe_receiver));
|
|
816
|
+
params.x(element_0);
|
|
817
|
+
}
|
|
818
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
819
|
+
if (!_this__u8e3s4.l3g_1.r()) {
|
|
820
|
+
// Inline function 'kotlin.collections.map' call
|
|
821
|
+
var this_0 = _this__u8e3s4.l3g_1;
|
|
822
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
823
|
+
var destination = ArrayList_init_$Create$_0(this_0.a1());
|
|
824
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
825
|
+
var _iterator__ex2g4s = this_0.j1().t();
|
|
826
|
+
while (_iterator__ex2g4s.u()) {
|
|
827
|
+
var item = _iterator__ex2g4s.v();
|
|
828
|
+
// Inline function 'kotlin.collections.component1' call
|
|
829
|
+
var k = item.k1();
|
|
830
|
+
// Inline function 'kotlin.collections.component2' call
|
|
831
|
+
var v = item.l1();
|
|
832
|
+
var tmp$ret$10 = new Parameter(k, new Single(v));
|
|
833
|
+
destination.x(tmp$ret$10);
|
|
834
|
+
}
|
|
835
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
836
|
+
var element_1 = new Parameter('parameters', new Dict_0(destination));
|
|
837
|
+
params.x(element_1);
|
|
838
|
+
}
|
|
839
|
+
var tmp2_safe_receiver = _this__u8e3s4.m3g_1;
|
|
840
|
+
if (tmp2_safe_receiver == null)
|
|
841
|
+
null;
|
|
842
|
+
else {
|
|
843
|
+
// Inline function 'kotlin.let' call
|
|
844
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
845
|
+
var element_2 = new Parameter('requestBody', new Single(tmp2_safe_receiver));
|
|
846
|
+
params.x(element_2);
|
|
847
|
+
}
|
|
848
|
+
var tmp3_safe_receiver = _this__u8e3s4.n3g_1;
|
|
849
|
+
if (tmp3_safe_receiver == null)
|
|
850
|
+
null;
|
|
851
|
+
else {
|
|
852
|
+
// Inline function 'kotlin.let' call
|
|
853
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
854
|
+
var element_3 = new Parameter('description', new Single(tmp3_safe_receiver));
|
|
855
|
+
params.x(element_3);
|
|
856
|
+
}
|
|
857
|
+
var tmp4_safe_receiver = _this__u8e3s4.o3g_1;
|
|
858
|
+
if (tmp4_safe_receiver == null)
|
|
859
|
+
null;
|
|
860
|
+
else {
|
|
861
|
+
// Inline function 'kotlin.let' call
|
|
862
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
863
|
+
var element_4 = new Parameter('server', new Single(tmp4_safe_receiver));
|
|
864
|
+
params.x(element_4);
|
|
865
|
+
}
|
|
866
|
+
return new Annotation('Link', params);
|
|
867
|
+
}
|
|
717
868
|
function toDescriptionAnnotation(description) {
|
|
718
869
|
_init_properties_Utils_kt__jo07cx();
|
|
719
870
|
// Inline function 'kotlin.let' call
|
|
@@ -721,6 +872,108 @@ function toDescriptionAnnotation(description) {
|
|
|
721
872
|
var tmp$ret$1 = listOf(p0);
|
|
722
873
|
return new Annotation('Description', tmp$ret$1);
|
|
723
874
|
}
|
|
875
|
+
function toLinkInfo(_this__u8e3s4) {
|
|
876
|
+
_init_properties_Utils_kt__jo07cx();
|
|
877
|
+
var tmp0_elvis_lhs = singleParam(_this__u8e3s4.nt_1, 'default');
|
|
878
|
+
var tmp;
|
|
879
|
+
if (tmp0_elvis_lhs == null) {
|
|
880
|
+
return null;
|
|
881
|
+
} else {
|
|
882
|
+
tmp = tmp0_elvis_lhs;
|
|
883
|
+
}
|
|
884
|
+
var name = tmp;
|
|
885
|
+
return new LinkInfo(name, singleParam(_this__u8e3s4.nt_1, 'operationId'), singleParam(_this__u8e3s4.nt_1, 'operationRef'), dictParam(_this__u8e3s4.nt_1, 'parameters'), singleParam(_this__u8e3s4.nt_1, 'requestBody'), singleParam(_this__u8e3s4.nt_1, 'description'), singleParam(_this__u8e3s4.nt_1, 'server'));
|
|
886
|
+
}
|
|
887
|
+
function singleParam(_this__u8e3s4, name) {
|
|
888
|
+
_init_properties_Utils_kt__jo07cx();
|
|
889
|
+
// Inline function 'kotlin.collections.find' call
|
|
890
|
+
var tmp$ret$1;
|
|
891
|
+
$l$block: {
|
|
892
|
+
// Inline function 'kotlin.collections.firstOrNull' call
|
|
893
|
+
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
894
|
+
while (_iterator__ex2g4s.u()) {
|
|
895
|
+
var element = _iterator__ex2g4s.v();
|
|
896
|
+
if (element.kt_1 === name) {
|
|
897
|
+
tmp$ret$1 = element;
|
|
898
|
+
break $l$block;
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
tmp$ret$1 = null;
|
|
902
|
+
}
|
|
903
|
+
var tmp0_safe_receiver = tmp$ret$1;
|
|
904
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.lt_1;
|
|
905
|
+
var tmp;
|
|
906
|
+
if (tmp1_safe_receiver == null) {
|
|
907
|
+
tmp = null;
|
|
908
|
+
} else {
|
|
909
|
+
// Inline function 'kotlin.let' call
|
|
910
|
+
tmp = tmp1_safe_receiver instanceof Single ? tmp1_safe_receiver : null;
|
|
911
|
+
}
|
|
912
|
+
var tmp2_safe_receiver = tmp;
|
|
913
|
+
return tmp2_safe_receiver == null ? null : tmp2_safe_receiver.ht_1;
|
|
914
|
+
}
|
|
915
|
+
function dictParam(_this__u8e3s4, name) {
|
|
916
|
+
_init_properties_Utils_kt__jo07cx();
|
|
917
|
+
// Inline function 'kotlin.collections.find' call
|
|
918
|
+
var tmp$ret$1;
|
|
919
|
+
$l$block: {
|
|
920
|
+
// Inline function 'kotlin.collections.firstOrNull' call
|
|
921
|
+
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
922
|
+
while (_iterator__ex2g4s.u()) {
|
|
923
|
+
var element = _iterator__ex2g4s.v();
|
|
924
|
+
if (element.kt_1 === name) {
|
|
925
|
+
tmp$ret$1 = element;
|
|
926
|
+
break $l$block;
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
tmp$ret$1 = null;
|
|
930
|
+
}
|
|
931
|
+
var tmp0_safe_receiver = tmp$ret$1;
|
|
932
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.lt_1;
|
|
933
|
+
var tmp;
|
|
934
|
+
if (tmp1_safe_receiver == null) {
|
|
935
|
+
tmp = null;
|
|
936
|
+
} else {
|
|
937
|
+
// Inline function 'kotlin.let' call
|
|
938
|
+
tmp = tmp1_safe_receiver instanceof Dict_0 ? tmp1_safe_receiver : null;
|
|
939
|
+
}
|
|
940
|
+
var tmp2_safe_receiver = tmp;
|
|
941
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.jt_1;
|
|
942
|
+
var tmp_0;
|
|
943
|
+
if (tmp3_safe_receiver == null) {
|
|
944
|
+
tmp_0 = null;
|
|
945
|
+
} else {
|
|
946
|
+
// Inline function 'kotlin.collections.mapNotNull' call
|
|
947
|
+
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
948
|
+
var destination = ArrayList_init_$Create$();
|
|
949
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
950
|
+
var _iterator__ex2g4s_0 = tmp3_safe_receiver.t();
|
|
951
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
952
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
953
|
+
var tmp_1 = element_0.lt_1;
|
|
954
|
+
var tmp0_safe_receiver_0 = tmp_1 instanceof Single ? tmp_1 : null;
|
|
955
|
+
var tmp_2;
|
|
956
|
+
if (tmp0_safe_receiver_0 == null) {
|
|
957
|
+
tmp_2 = null;
|
|
958
|
+
} else {
|
|
959
|
+
// Inline function 'kotlin.let' call
|
|
960
|
+
tmp_2 = to(element_0.kt_1, tmp0_safe_receiver_0.ht_1);
|
|
961
|
+
}
|
|
962
|
+
var tmp0_safe_receiver_1 = tmp_2;
|
|
963
|
+
if (tmp0_safe_receiver_1 == null)
|
|
964
|
+
null;
|
|
965
|
+
else {
|
|
966
|
+
// Inline function 'kotlin.let' call
|
|
967
|
+
destination.x(tmp0_safe_receiver_1);
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
tmp_0 = destination;
|
|
971
|
+
}
|
|
972
|
+
var tmp4_safe_receiver = tmp_0;
|
|
973
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
974
|
+
var tmp0_elvis_lhs = tmp4_safe_receiver == null ? null : toMap(tmp4_safe_receiver);
|
|
975
|
+
return tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
976
|
+
}
|
|
724
977
|
function filterNotNullValues(_this__u8e3s4) {
|
|
725
978
|
_init_properties_Utils_kt__jo07cx();
|
|
726
979
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -754,7 +1007,7 @@ function filterNotNullValues(_this__u8e3s4) {
|
|
|
754
1007
|
}
|
|
755
1008
|
function json$lambda($this$Json) {
|
|
756
1009
|
_init_properties_Utils_kt__jo07cx();
|
|
757
|
-
$this$Json.
|
|
1010
|
+
$this$Json.m2k_1 = true;
|
|
758
1011
|
return Unit_instance;
|
|
759
1012
|
}
|
|
760
1013
|
function className$lambda(it) {
|
|
@@ -787,7 +1040,7 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
787
1040
|
var _iterator__ex2g4s_0 = destination.t();
|
|
788
1041
|
while (_iterator__ex2g4s_0.u()) {
|
|
789
1042
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
790
|
-
var type = element_0.cr_1.
|
|
1043
|
+
var type = element_0.cr_1.ou_1;
|
|
791
1044
|
var tmp;
|
|
792
1045
|
if (equals(type, Boolean_instance)) {
|
|
793
1046
|
tmp = to(element_0.br_1.l1(), new OpenAPIV2Schema(VOID, OpenAPIV2Type_BOOLEAN_getInstance()));
|
|
@@ -798,28 +1051,28 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
798
1051
|
if (type instanceof Integer) {
|
|
799
1052
|
var tmp_0 = element_0.br_1.l1();
|
|
800
1053
|
var tmp4_type = OpenAPIV2Type_INTEGER_getInstance();
|
|
801
|
-
var tmp0_safe_receiver = type.
|
|
802
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1054
|
+
var tmp0_safe_receiver = type.tt_1;
|
|
1055
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ot_1;
|
|
803
1056
|
var tmp5_minimum = tmp1_safe_receiver == null ? null : toDouble(tmp1_safe_receiver);
|
|
804
|
-
var tmp2_safe_receiver = type.
|
|
805
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
1057
|
+
var tmp2_safe_receiver = type.tt_1;
|
|
1058
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.pt_1;
|
|
806
1059
|
var tmp6_maximum = tmp3_safe_receiver == null ? null : toDouble(tmp3_safe_receiver);
|
|
807
1060
|
tmp = to(tmp_0, new OpenAPIV2Schema(VOID, tmp4_type, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 'int32', tmp6_maximum, VOID, tmp5_minimum));
|
|
808
1061
|
} else {
|
|
809
1062
|
if (type instanceof Number_0) {
|
|
810
1063
|
var tmp_1 = element_0.br_1.l1();
|
|
811
1064
|
var tmp11_type = OpenAPIV2Type_NUMBER_getInstance();
|
|
812
|
-
var tmp7_safe_receiver = type.
|
|
813
|
-
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.
|
|
1065
|
+
var tmp7_safe_receiver = type.wt_1;
|
|
1066
|
+
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.ot_1;
|
|
814
1067
|
var tmp12_minimum = tmp8_safe_receiver == null ? null : toDouble(tmp8_safe_receiver);
|
|
815
|
-
var tmp9_safe_receiver = type.
|
|
816
|
-
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.
|
|
1068
|
+
var tmp9_safe_receiver = type.wt_1;
|
|
1069
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.pt_1;
|
|
817
1070
|
var tmp13_maximum = tmp10_safe_receiver == null ? null : toDouble(tmp10_safe_receiver);
|
|
818
1071
|
tmp = to(tmp_1, new OpenAPIV2Schema(VOID, tmp11_type, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 'float', tmp13_maximum, VOID, tmp12_minimum));
|
|
819
1072
|
} else {
|
|
820
1073
|
if (type instanceof String_0) {
|
|
821
1074
|
var tmp_2 = element_0.br_1.l1();
|
|
822
|
-
var pattern = type.
|
|
1075
|
+
var pattern = type.qt_1;
|
|
823
1076
|
var tmp_3;
|
|
824
1077
|
var tmp_4 = pattern;
|
|
825
1078
|
if ((tmp_4 == null ? null : new RegExp_0(tmp_4))instanceof RegExp_0) {
|
|
@@ -901,7 +1154,7 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
901
1154
|
var _iterator__ex2g4s_4 = tmp0_1.t();
|
|
902
1155
|
while (_iterator__ex2g4s_4.u()) {
|
|
903
1156
|
var element_4 = _iterator__ex2g4s_4.v();
|
|
904
|
-
if (!element_4.bp_1.
|
|
1157
|
+
if (!element_4.bp_1.cu()) {
|
|
905
1158
|
destination_4.x(element_4);
|
|
906
1159
|
}
|
|
907
1160
|
}
|
|
@@ -1062,7 +1315,7 @@ function toProperties($this, _this__u8e3s4) {
|
|
|
1062
1315
|
var it = toSchemaOrReference($this, _this__u8e3s4.bp_1);
|
|
1063
1316
|
var tmp_0;
|
|
1064
1317
|
if (it instanceof OpenAPIV2Schema) {
|
|
1065
|
-
tmp_0 = it.
|
|
1318
|
+
tmp_0 = it.l30(VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription(_this__u8e3s4.zo_1));
|
|
1066
1319
|
} else {
|
|
1067
1320
|
if (it instanceof OpenAPIV2Reference) {
|
|
1068
1321
|
tmp_0 = it;
|
|
@@ -1190,7 +1443,7 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1190
1443
|
var item = _iterator__ex2g4s_2.v();
|
|
1191
1444
|
var tmp0_in = OpenAPIV2ParameterLocation_BODY_getInstance();
|
|
1192
1445
|
var tmp1_schema = toSchemaOrReference(OpenAPIV2Emitter_getInstance(), item.pp_1);
|
|
1193
|
-
var tmp2_required = !item.pp_1.
|
|
1446
|
+
var tmp2_required = !item.pp_1.cu();
|
|
1194
1447
|
var tmp$ret$25 = new OpenAPIV2Parameter(VOID, tmp2_required, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_in, tmp1_schema, 'RequestBody');
|
|
1195
1448
|
destination_2.x(tmp$ret$25);
|
|
1196
1449
|
}
|
|
@@ -1303,7 +1556,7 @@ function emitParameter($this, _this__u8e3s4, location) {
|
|
|
1303
1556
|
tmp_0 = emit;
|
|
1304
1557
|
} else {
|
|
1305
1558
|
if (emit instanceof OpenAPIV2Schema) {
|
|
1306
|
-
tmp_0 = emit.
|
|
1559
|
+
tmp_0 = emit.t2z_1;
|
|
1307
1560
|
} else {
|
|
1308
1561
|
noWhenBranchMatchedException();
|
|
1309
1562
|
}
|
|
@@ -1313,7 +1566,7 @@ function emitParameter($this, _this__u8e3s4, location) {
|
|
|
1313
1566
|
tmp = null;
|
|
1314
1567
|
}
|
|
1315
1568
|
var tmp4_items = tmp;
|
|
1316
|
-
var tmp5_required = !_this__u8e3s4.bp_1.
|
|
1569
|
+
var tmp5_required = !_this__u8e3s4.bp_1.cu();
|
|
1317
1570
|
var tmp6_description = findDescription(_this__u8e3s4.zo_1);
|
|
1318
1571
|
return new OpenAPIV2Parameter(tmp6_description, tmp5_required, tmp1_type, tmp4_items, tmp2_format, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_pattern, VOID, VOID, VOID, VOID, VOID, location, VOID, tmp0_name);
|
|
1319
1572
|
}
|
|
@@ -1326,10 +1579,10 @@ function toSchemaOrReference($this, _this__u8e3s4) {
|
|
|
1326
1579
|
tmp = new OpenAPIV2Schema(VOID, OpenAPIV2Type_ARRAY_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference($this, _this__u8e3s4.zn_1));
|
|
1327
1580
|
} else {
|
|
1328
1581
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1329
|
-
tmp = new OpenAPIV2Reference(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.
|
|
1582
|
+
tmp = new OpenAPIV2Reference(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.ku_1));
|
|
1330
1583
|
} else {
|
|
1331
1584
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1332
|
-
tmp = new OpenAPIV2Schema(VOID, emitType($this, _this__u8e3s4.
|
|
1585
|
+
tmp = new OpenAPIV2Schema(VOID, emitType($this, _this__u8e3s4.ou_1), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitFormat(_this__u8e3s4), VOID, VOID, VOID, VOID, VOID, VOID, emitPattern($this, _this__u8e3s4));
|
|
1333
1586
|
} else {
|
|
1334
1587
|
if (_this__u8e3s4 instanceof Any) {
|
|
1335
1588
|
var message = 'Cannot map Any';
|
|
@@ -1382,7 +1635,7 @@ function emitType_0($this, _this__u8e3s4) {
|
|
|
1382
1635
|
tmp = OpenAPIV2Type_ARRAY_getInstance();
|
|
1383
1636
|
} else {
|
|
1384
1637
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1385
|
-
tmp = emitType($this, _this__u8e3s4.
|
|
1638
|
+
tmp = emitType($this, _this__u8e3s4.ou_1);
|
|
1386
1639
|
} else {
|
|
1387
1640
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1388
1641
|
tmp = OpenAPIV2Type_OBJECT_getInstance();
|
|
@@ -1405,10 +1658,10 @@ function emitType_0($this, _this__u8e3s4) {
|
|
|
1405
1658
|
function emitPattern($this, _this__u8e3s4) {
|
|
1406
1659
|
var tmp;
|
|
1407
1660
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1408
|
-
var t = _this__u8e3s4.
|
|
1661
|
+
var t = _this__u8e3s4.ou_1;
|
|
1409
1662
|
var tmp_0;
|
|
1410
1663
|
if (t instanceof String_0) {
|
|
1411
|
-
var p = t.
|
|
1664
|
+
var p = t.qt_1;
|
|
1412
1665
|
var tmp_1;
|
|
1413
1666
|
var tmp_2 = p;
|
|
1414
1667
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2))instanceof RegExp_0) {
|
|
@@ -1429,16 +1682,16 @@ function emitPattern($this, _this__u8e3s4) {
|
|
|
1429
1682
|
function emitMinimum($this, _this__u8e3s4) {
|
|
1430
1683
|
var tmp;
|
|
1431
1684
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1432
|
-
var t = _this__u8e3s4.
|
|
1685
|
+
var t = _this__u8e3s4.ou_1;
|
|
1433
1686
|
var tmp_0;
|
|
1434
1687
|
if (t instanceof Number_0) {
|
|
1435
|
-
var tmp1_safe_receiver = t.
|
|
1436
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1688
|
+
var tmp1_safe_receiver = t.wt_1;
|
|
1689
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ot_1;
|
|
1437
1690
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
1438
1691
|
} else {
|
|
1439
1692
|
if (t instanceof Integer) {
|
|
1440
|
-
var tmp3_safe_receiver = t.
|
|
1441
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
1693
|
+
var tmp3_safe_receiver = t.tt_1;
|
|
1694
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.ot_1;
|
|
1442
1695
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
1443
1696
|
} else {
|
|
1444
1697
|
tmp_0 = null;
|
|
@@ -1453,16 +1706,16 @@ function emitMinimum($this, _this__u8e3s4) {
|
|
|
1453
1706
|
function emitMaximum($this, _this__u8e3s4) {
|
|
1454
1707
|
var tmp;
|
|
1455
1708
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1456
|
-
var t = _this__u8e3s4.
|
|
1709
|
+
var t = _this__u8e3s4.ou_1;
|
|
1457
1710
|
var tmp_0;
|
|
1458
1711
|
if (t instanceof Number_0) {
|
|
1459
|
-
var tmp1_safe_receiver = t.
|
|
1460
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1712
|
+
var tmp1_safe_receiver = t.wt_1;
|
|
1713
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.pt_1;
|
|
1461
1714
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
1462
1715
|
} else {
|
|
1463
1716
|
if (t instanceof Integer) {
|
|
1464
|
-
var tmp3_safe_receiver = t.
|
|
1465
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
1717
|
+
var tmp3_safe_receiver = t.tt_1;
|
|
1718
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.pt_1;
|
|
1466
1719
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
1467
1720
|
} else {
|
|
1468
1721
|
tmp_0 = null;
|
|
@@ -1489,10 +1742,10 @@ function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
|
1489
1742
|
}
|
|
1490
1743
|
function OpenAPIV2Emitter() {
|
|
1491
1744
|
OpenAPIV2Emitter_instance = this;
|
|
1492
|
-
this.
|
|
1745
|
+
this.p3g_1 = FileExtension_JSON_getInstance();
|
|
1493
1746
|
}
|
|
1494
1747
|
protoOf(OpenAPIV2Emitter).eq = function () {
|
|
1495
|
-
return this.
|
|
1748
|
+
return this.p3g_1;
|
|
1496
1749
|
};
|
|
1497
1750
|
protoOf(OpenAPIV2Emitter).on = function (ast, logger) {
|
|
1498
1751
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
@@ -1510,21 +1763,21 @@ protoOf(OpenAPIV2Emitter).on = function (ast, logger) {
|
|
|
1510
1763
|
}
|
|
1511
1764
|
// Inline function 'kotlin.let' call
|
|
1512
1765
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
1513
|
-
var tmp = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().
|
|
1766
|
+
var tmp = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().p3g_1.nq_1;
|
|
1514
1767
|
var tmp0_0 = get_json();
|
|
1515
1768
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
1516
|
-
var value = OpenAPIV2Emitter_getInstance().
|
|
1769
|
+
var value = OpenAPIV2Emitter_getInstance().q3g(it, logger);
|
|
1517
1770
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
1518
|
-
var this_1 = tmp0_0.
|
|
1771
|
+
var this_1 = tmp0_0.d23();
|
|
1519
1772
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1520
1773
|
var this_2 = serializer(this_1, createKType(getKClass(OpenAPIV2Model), arrayOf([]), false));
|
|
1521
1774
|
var tmp$ret$5 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
1522
|
-
var tmp$ret$6 = tmp0_0.
|
|
1775
|
+
var tmp$ret$6 = tmp0_0.q2j(tmp$ret$5, value);
|
|
1523
1776
|
// Inline function 'kotlin.let' call
|
|
1524
1777
|
var it_0 = new Emitted(tmp, tmp$ret$6);
|
|
1525
1778
|
return nonEmptyListOf(it_0, []);
|
|
1526
1779
|
};
|
|
1527
|
-
protoOf(OpenAPIV2Emitter).
|
|
1780
|
+
protoOf(OpenAPIV2Emitter).q3g = function (statements, logger) {
|
|
1528
1781
|
var tmp0_info = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, '0.0.0');
|
|
1529
1782
|
var tmp1_consumes = listOf('application/json');
|
|
1530
1783
|
var tmp2_produces = listOf('application/json');
|
|
@@ -1540,15 +1793,15 @@ function OpenAPIV2Emitter_getInstance() {
|
|
|
1540
1793
|
}
|
|
1541
1794
|
function OpenAPIV2Parser$parse$lambda($strict) {
|
|
1542
1795
|
return function (it) {
|
|
1543
|
-
return new NonEmptyList(OpenAPIV2Parser_instance.
|
|
1796
|
+
return new NonEmptyList(OpenAPIV2Parser_instance.r3g((new OpenAPIV2(jsonDefault($strict))).g2x(it)));
|
|
1544
1797
|
};
|
|
1545
1798
|
}
|
|
1546
1799
|
function OpenAPIV2Parser() {
|
|
1547
1800
|
}
|
|
1548
|
-
protoOf(OpenAPIV2Parser).
|
|
1801
|
+
protoOf(OpenAPIV2Parser).s3g = function (moduleContent, strict) {
|
|
1549
1802
|
return parseOpenApi(moduleContent, OpenAPIV2Parser$parse$lambda(strict));
|
|
1550
1803
|
};
|
|
1551
|
-
protoOf(OpenAPIV2Parser).
|
|
1804
|
+
protoOf(OpenAPIV2Parser).r3g = function (_this__u8e3s4) {
|
|
1552
1805
|
// Inline function 'kotlin.collections.reduce' call
|
|
1553
1806
|
var iterator = listOf_0([parseEndpoints(_this__u8e3s4), parseParameters(_this__u8e3s4), parseRequestBody(_this__u8e3s4), parseResponseBody(_this__u8e3s4), parseDefinitions(_this__u8e3s4)]).t();
|
|
1554
1807
|
if (!iterator.u())
|
|
@@ -1584,7 +1837,7 @@ function OpenAPIV2Parser_getInstance() {
|
|
|
1584
1837
|
}
|
|
1585
1838
|
function parseEndpoints(_this__u8e3s4) {
|
|
1586
1839
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1587
|
-
var tmp0 = _this__u8e3s4.
|
|
1840
|
+
var tmp0 = _this__u8e3s4.v2x_1;
|
|
1588
1841
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1589
1842
|
var destination = ArrayList_init_$Create$();
|
|
1590
1843
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1592,7 +1845,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1592
1845
|
while (_iterator__ex2g4s.u()) {
|
|
1593
1846
|
var element = _iterator__ex2g4s.v();
|
|
1594
1847
|
// Inline function 'kotlin.collections.component1' call
|
|
1595
|
-
var path = element.k1().
|
|
1848
|
+
var path = element.k1().g2v_1;
|
|
1596
1849
|
// Inline function 'kotlin.collections.component2' call
|
|
1597
1850
|
var pathItem = element.l1();
|
|
1598
1851
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1618,7 +1871,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1618
1871
|
var element_0 = _iterator__ex2g4s_1.v();
|
|
1619
1872
|
var method_0 = element_0.ne();
|
|
1620
1873
|
var operation_0 = element_0.oe();
|
|
1621
|
-
var parameters = plus_0(resolveParameters(_this__u8e3s4, pathItem.
|
|
1874
|
+
var parameters = plus_0(resolveParameters(_this__u8e3s4, pathItem.e2y_1), resolveParameters(_this__u8e3s4, operation_0.t31_1));
|
|
1622
1875
|
var segments = toSegments(path, parameters);
|
|
1623
1876
|
var tmp0_elvis_lhs = toName(operation_0);
|
|
1624
1877
|
var name = tmp0_elvis_lhs == null ? toName_0(path) + method_0.a3_1 : tmp0_elvis_lhs;
|
|
@@ -1628,7 +1881,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1628
1881
|
var _iterator__ex2g4s_2 = parameters.t();
|
|
1629
1882
|
while (_iterator__ex2g4s_2.u()) {
|
|
1630
1883
|
var element_1 = _iterator__ex2g4s_2.v();
|
|
1631
|
-
if (element_1.
|
|
1884
|
+
if (element_1.k31_1.equals(OpenAPIV2ParameterLocation_QUERY_getInstance())) {
|
|
1632
1885
|
destination_2.x(element_1);
|
|
1633
1886
|
}
|
|
1634
1887
|
}
|
|
@@ -1648,7 +1901,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1648
1901
|
var _iterator__ex2g4s_4 = parameters.t();
|
|
1649
1902
|
while (_iterator__ex2g4s_4.u()) {
|
|
1650
1903
|
var element_2 = _iterator__ex2g4s_4.v();
|
|
1651
|
-
if (element_2.
|
|
1904
|
+
if (element_2.k31_1.equals(OpenAPIV2ParameterLocation_HEADER_getInstance())) {
|
|
1652
1905
|
destination_4.x(element_2);
|
|
1653
1906
|
}
|
|
1654
1907
|
}
|
|
@@ -1668,7 +1921,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1668
1921
|
var _iterator__ex2g4s_6 = parameters.t();
|
|
1669
1922
|
while (_iterator__ex2g4s_6.u()) {
|
|
1670
1923
|
var element_3 = _iterator__ex2g4s_6.v();
|
|
1671
|
-
if (element_3.
|
|
1924
|
+
if (element_3.k31_1.equals(OpenAPIV2ParameterLocation_BODY_getInstance())) {
|
|
1672
1925
|
destination_6.x(element_3);
|
|
1673
1926
|
}
|
|
1674
1927
|
}
|
|
@@ -1679,10 +1932,10 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1679
1932
|
while (_iterator__ex2g4s_7.u()) {
|
|
1680
1933
|
var element_4 = _iterator__ex2g4s_7.v();
|
|
1681
1934
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1682
|
-
var tmp0_elvis_lhs_0 = _this__u8e3s4.
|
|
1935
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.o2x_1;
|
|
1683
1936
|
var tmp = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1684
1937
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1685
|
-
var tmp0_elvis_lhs_1 = operation_0.
|
|
1938
|
+
var tmp0_elvis_lhs_1 = operation_0.r31_1;
|
|
1686
1939
|
var tmp$ret$25 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1687
1940
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
1688
1941
|
var this_1 = distinct(plus_0(tmp, tmp$ret$25));
|
|
@@ -1700,7 +1953,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1700
1953
|
while (_iterator__ex2g4s_8.u()) {
|
|
1701
1954
|
var item_2 = _iterator__ex2g4s_8.v();
|
|
1702
1955
|
var isNullable = false;
|
|
1703
|
-
var schema = element_4.
|
|
1956
|
+
var schema = element_4.l31_1;
|
|
1704
1957
|
var tmp_1;
|
|
1705
1958
|
if (schema instanceof OpenAPIV2Reference) {
|
|
1706
1959
|
tmp_1 = toReference(_this__u8e3s4, schema, isNullable);
|
|
@@ -1731,7 +1984,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1731
1984
|
}
|
|
1732
1985
|
var requests = tmp_2;
|
|
1733
1986
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1734
|
-
var tmp0_elvis_lhs_2 = operation_0.
|
|
1987
|
+
var tmp0_elvis_lhs_2 = operation_0.v31_1;
|
|
1735
1988
|
// Inline function 'kotlin.collections.mapValues' call
|
|
1736
1989
|
var this_3 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
1737
1990
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
@@ -1752,14 +2005,14 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1752
2005
|
while (_iterator__ex2g4s_10.u()) {
|
|
1753
2006
|
var element_6 = _iterator__ex2g4s_10.v();
|
|
1754
2007
|
// Inline function 'kotlin.collections.component1' call
|
|
1755
|
-
var status = element_6.k1().
|
|
2008
|
+
var status = element_6.k1().k2v_1;
|
|
1756
2009
|
// Inline function 'kotlin.collections.component2' call
|
|
1757
2010
|
var res = element_6.l1();
|
|
1758
2011
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1759
|
-
var tmp0_elvis_lhs_3 = _this__u8e3s4.
|
|
2012
|
+
var tmp0_elvis_lhs_3 = _this__u8e3s4.p2x_1;
|
|
1760
2013
|
var tmp_4 = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
|
|
1761
2014
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1762
|
-
var tmp0_elvis_lhs_4 = operation_0.
|
|
2015
|
+
var tmp0_elvis_lhs_4 = operation_0.s31_1;
|
|
1763
2016
|
var tmp$ret$46 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
1764
2017
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
1765
2018
|
var this_4 = distinct(plus_0(tmp_4, tmp$ret$46));
|
|
@@ -1776,9 +2029,9 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1776
2029
|
var _iterator__ex2g4s_11 = this_5.t();
|
|
1777
2030
|
while (_iterator__ex2g4s_11.u()) {
|
|
1778
2031
|
var item_3 = _iterator__ex2g4s_11.v();
|
|
1779
|
-
var tmp2_annotations = toDescriptionAnnotationList(res.
|
|
2032
|
+
var tmp2_annotations = toDescriptionAnnotationList(res.r32_1);
|
|
1780
2033
|
var tmp3_status = _StatusCode___get_value__impl__we50mu(status);
|
|
1781
|
-
var tmp0_safe_receiver = res.
|
|
2034
|
+
var tmp0_safe_receiver = res.s32_1;
|
|
1782
2035
|
var tmp_6;
|
|
1783
2036
|
if (tmp0_safe_receiver == null) {
|
|
1784
2037
|
tmp_6 = null;
|
|
@@ -1802,7 +2055,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1802
2055
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1803
2056
|
var tmp0_elvis_lhs_5 = tmp_6;
|
|
1804
2057
|
var tmp4_headers = tmp0_elvis_lhs_5 == null ? emptyList() : tmp0_elvis_lhs_5;
|
|
1805
|
-
var tmp1_safe_receiver = res.
|
|
2058
|
+
var tmp1_safe_receiver = res.p32_1;
|
|
1806
2059
|
var tmp_7;
|
|
1807
2060
|
if (tmp1_safe_receiver == null) {
|
|
1808
2061
|
tmp_7 = null;
|
|
@@ -1839,7 +2092,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1839
2092
|
}
|
|
1840
2093
|
}
|
|
1841
2094
|
var responses = list_1;
|
|
1842
|
-
var list_2 = listOf(new Endpoint(null, toDescriptionAnnotationList(operation_0.
|
|
2095
|
+
var list_2 = listOf(new Endpoint(null, toDescriptionAnnotationList(operation_0.z31_1), new DefinitionIdentifier(sanitize(name)), method_0, segments, query, headers, requests, responses));
|
|
1843
2096
|
addAll(destination_1, list_2);
|
|
1844
2097
|
}
|
|
1845
2098
|
var list_3 = destination_1;
|
|
@@ -1858,7 +2111,7 @@ function parseResponseBody(_this__u8e3s4) {
|
|
|
1858
2111
|
}
|
|
1859
2112
|
function parseDefinitions(_this__u8e3s4) {
|
|
1860
2113
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1861
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2114
|
+
var tmp0_elvis_lhs = _this__u8e3s4.q2x_1;
|
|
1862
2115
|
// Inline function 'arrow.core.filterIsInstance' call
|
|
1863
2116
|
// Inline function 'kotlin.collections.filterValues' call
|
|
1864
2117
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
@@ -1880,7 +2133,7 @@ function parseDefinitions(_this__u8e3s4) {
|
|
|
1880
2133
|
var _iterator__ex2g4s_0 = tmp0.j1().t();
|
|
1881
2134
|
while (_iterator__ex2g4s_0.u()) {
|
|
1882
2135
|
var element = _iterator__ex2g4s_0.v();
|
|
1883
|
-
var tmp0_subject = element.l1().
|
|
2136
|
+
var tmp0_subject = element.l1().w2z_1;
|
|
1884
2137
|
var tmp_0;
|
|
1885
2138
|
if (tmp0_subject instanceof OpenAPIV2Boolean) {
|
|
1886
2139
|
tmp_0 = true;
|
|
@@ -1973,7 +2226,7 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
1973
2226
|
var _iterator__ex2g4s_0 = parameters.t();
|
|
1974
2227
|
while (_iterator__ex2g4s_0.u()) {
|
|
1975
2228
|
var element = _iterator__ex2g4s_0.v();
|
|
1976
|
-
if (element.
|
|
2229
|
+
if (element.m31_1 === param) {
|
|
1977
2230
|
tmp$ret$2 = element;
|
|
1978
2231
|
break $l$block;
|
|
1979
2232
|
}
|
|
@@ -2017,13 +2270,13 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
2017
2270
|
function toField(_this__u8e3s4, parameter, name) {
|
|
2018
2271
|
// Inline function 'kotlin.let' call
|
|
2019
2272
|
var schema = resolve_1(_this__u8e3s4, parameter);
|
|
2020
|
-
var tmp0_elvis_lhs = parameter.
|
|
2273
|
+
var tmp0_elvis_lhs = parameter.r30_1;
|
|
2021
2274
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
2022
2275
|
var tmp;
|
|
2023
|
-
if (!(parameter.
|
|
2024
|
-
tmp = new Custom(sanitize(className([name, 'Parameter', schema.
|
|
2276
|
+
if (!(parameter.i31_1 == null)) {
|
|
2277
|
+
tmp = new Custom(sanitize(className([name, 'Parameter', schema.m31_1])), isNullable);
|
|
2025
2278
|
} else {
|
|
2026
|
-
var tmp1_subject = schema.
|
|
2279
|
+
var tmp1_subject = schema.s30_1;
|
|
2027
2280
|
var tmp_0;
|
|
2028
2281
|
switch (tmp1_subject == null ? -1 : tmp1_subject.b3_1) {
|
|
2029
2282
|
case 0:
|
|
@@ -2036,7 +2289,7 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2036
2289
|
tmp_0 = new Primitive(primitive, isNullable);
|
|
2037
2290
|
break;
|
|
2038
2291
|
case 4:
|
|
2039
|
-
var tmp2_safe_receiver = schema.
|
|
2292
|
+
var tmp2_safe_receiver = schema.t30_1;
|
|
2040
2293
|
var tmp_1;
|
|
2041
2294
|
if (tmp2_safe_receiver == null) {
|
|
2042
2295
|
tmp_1 = null;
|
|
@@ -2083,8 +2336,8 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2083
2336
|
}
|
|
2084
2337
|
// Inline function 'kotlin.let' call
|
|
2085
2338
|
var it = tmp;
|
|
2086
|
-
var tmp0_identifier = new FieldIdentifier(parameter.
|
|
2087
|
-
var tmp1_annotations = toDescriptionAnnotationList(parameter.
|
|
2339
|
+
var tmp0_identifier = new FieldIdentifier(parameter.m31_1);
|
|
2340
|
+
var tmp1_annotations = toDescriptionAnnotationList(parameter.q30_1);
|
|
2088
2341
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
2089
2342
|
}
|
|
2090
2343
|
function toReference(_this__u8e3s4, reference, isNullable) {
|
|
@@ -2092,8 +2345,8 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2092
2345
|
var refOrSchema = resolveOpenAPIV2Schema(_this__u8e3s4, reference);
|
|
2093
2346
|
var schema = resolve_2(_this__u8e3s4, refOrSchema);
|
|
2094
2347
|
var tmp;
|
|
2095
|
-
if (exists(schema.
|
|
2096
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2348
|
+
if (exists(schema.w2z_1)) {
|
|
2349
|
+
var additionalProperties = ensureNotNull(schema.w2z_1);
|
|
2097
2350
|
var tmp_0;
|
|
2098
2351
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
2099
2352
|
tmp_0 = new Dict(new Any(false), isNullable);
|
|
@@ -2109,15 +2362,15 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2109
2362
|
}
|
|
2110
2363
|
}
|
|
2111
2364
|
tmp = tmp_0;
|
|
2112
|
-
} else if (!(schema.
|
|
2365
|
+
} else if (!(schema.s2z_1 == null)) {
|
|
2113
2366
|
tmp = new Custom(sanitize(className([getReference(reference)])), isNullable);
|
|
2114
|
-
} else if (isPrimitive(schema.
|
|
2367
|
+
} else if (isPrimitive(schema.f2z_1)) {
|
|
2115
2368
|
tmp = new Primitive(toPrimitive(schema), isNullable);
|
|
2116
2369
|
} else {
|
|
2117
|
-
var tmp0_subject = schema.
|
|
2370
|
+
var tmp0_subject = schema.f2z_1;
|
|
2118
2371
|
var tmp_1;
|
|
2119
2372
|
if ((tmp0_subject == null ? -1 : tmp0_subject.b3_1) === 4) {
|
|
2120
|
-
var items = schema.
|
|
2373
|
+
var items = schema.t2z_1;
|
|
2121
2374
|
var tmp_2;
|
|
2122
2375
|
if (items instanceof OpenAPIV2Reference) {
|
|
2123
2376
|
tmp_2 = toIterable(toReference(_this__u8e3s4, items, false), isNullable);
|
|
@@ -2126,7 +2379,7 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2126
2379
|
tmp_2 = toIterable(toReference_0(_this__u8e3s4, items, className([getReference(reference), 'Array']), isNullable), isNullable);
|
|
2127
2380
|
} else {
|
|
2128
2381
|
if (items == null) {
|
|
2129
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.
|
|
2382
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.j32_1);
|
|
2130
2383
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2131
2384
|
} else {
|
|
2132
2385
|
noWhenBranchMatchedException();
|
|
@@ -2159,44 +2412,44 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2159
2412
|
var tmp_3;
|
|
2160
2413
|
var tmp_4;
|
|
2161
2414
|
var tmp_5;
|
|
2162
|
-
var tmp0_safe_receiver = schema.
|
|
2415
|
+
var tmp0_safe_receiver = schema.u2z_1;
|
|
2163
2416
|
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1()) === 1) {
|
|
2164
|
-
var tmp_6 = first(ensureNotNull(schema.
|
|
2417
|
+
var tmp_6 = first(ensureNotNull(schema.u2z_1));
|
|
2165
2418
|
tmp_5 = tmp_6 instanceof OpenAPIV2Reference;
|
|
2166
2419
|
} else {
|
|
2167
2420
|
tmp_5 = false;
|
|
2168
2421
|
}
|
|
2169
2422
|
if (tmp_5) {
|
|
2170
|
-
tmp_4 = schema.
|
|
2423
|
+
tmp_4 = schema.v2z_1 == null;
|
|
2171
2424
|
} else {
|
|
2172
2425
|
tmp_4 = false;
|
|
2173
2426
|
}
|
|
2174
2427
|
if (tmp_4) {
|
|
2175
|
-
tmp_3 = schema.
|
|
2428
|
+
tmp_3 = schema.s2z_1 == null;
|
|
2176
2429
|
} else {
|
|
2177
2430
|
tmp_3 = false;
|
|
2178
2431
|
}
|
|
2179
2432
|
if (tmp_3) {
|
|
2180
|
-
tmp_2 = schema.
|
|
2433
|
+
tmp_2 = schema.f2z_1 == null;
|
|
2181
2434
|
} else {
|
|
2182
2435
|
tmp_2 = false;
|
|
2183
2436
|
}
|
|
2184
2437
|
if (tmp_2) {
|
|
2185
|
-
tmp_1 = schema.
|
|
2438
|
+
tmp_1 = schema.t2z_1 == null;
|
|
2186
2439
|
} else {
|
|
2187
2440
|
tmp_1 = false;
|
|
2188
2441
|
}
|
|
2189
2442
|
if (tmp_1) {
|
|
2190
|
-
tmp_0 = schema.
|
|
2443
|
+
tmp_0 = schema.w2z_1 == null;
|
|
2191
2444
|
} else {
|
|
2192
2445
|
tmp_0 = false;
|
|
2193
2446
|
}
|
|
2194
2447
|
if (tmp_0) {
|
|
2195
|
-
var tmp_7 = first(ensureNotNull(schema.
|
|
2448
|
+
var tmp_7 = first(ensureNotNull(schema.u2z_1));
|
|
2196
2449
|
tmp = toReference(_this__u8e3s4, tmp_7 instanceof OpenAPIV2Reference ? tmp_7 : THROW_CCE(), isNullable);
|
|
2197
2450
|
} else {
|
|
2198
|
-
if (!(schema.
|
|
2199
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2451
|
+
if (!(schema.w2z_1 == null)) {
|
|
2452
|
+
var additionalProperties = ensureNotNull(schema.w2z_1);
|
|
2200
2453
|
var tmp_8;
|
|
2201
2454
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
2202
2455
|
tmp_8 = new Dict(new Any(false), isNullable);
|
|
@@ -2207,7 +2460,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2207
2460
|
if (additionalProperties instanceof OpenAPIV2Schema) {
|
|
2208
2461
|
// Inline function 'kotlin.takeIf' call
|
|
2209
2462
|
var tmp_9;
|
|
2210
|
-
if (isPrimitive(additionalProperties.
|
|
2463
|
+
if (isPrimitive(additionalProperties.f2z_1) || !(additionalProperties.v2z_1 == null)) {
|
|
2211
2464
|
tmp_9 = additionalProperties;
|
|
2212
2465
|
} else {
|
|
2213
2466
|
tmp_9 = null;
|
|
@@ -2229,16 +2482,16 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2229
2482
|
}
|
|
2230
2483
|
tmp = tmp_8;
|
|
2231
2484
|
} else {
|
|
2232
|
-
if (!(schema.
|
|
2485
|
+
if (!(schema.s2z_1 == null)) {
|
|
2233
2486
|
var tmp_11;
|
|
2234
|
-
if (!(schema.
|
|
2487
|
+
if (!(schema.w2z_1 == null)) {
|
|
2235
2488
|
tmp_11 = new Dict(new Custom(sanitize(name), false), isNullable);
|
|
2236
2489
|
} else {
|
|
2237
2490
|
tmp_11 = new Custom(sanitize(name), isNullable);
|
|
2238
2491
|
}
|
|
2239
2492
|
tmp = tmp_11;
|
|
2240
2493
|
} else {
|
|
2241
|
-
var tmp3_subject = schema.
|
|
2494
|
+
var tmp3_subject = schema.f2z_1;
|
|
2242
2495
|
var tmp_12;
|
|
2243
2496
|
switch (tmp3_subject == null ? -1 : tmp3_subject.b3_1) {
|
|
2244
2497
|
case 0:
|
|
@@ -2246,7 +2499,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2246
2499
|
case 1:
|
|
2247
2500
|
case 3:
|
|
2248
2501
|
var tmp_13;
|
|
2249
|
-
if (!(schema.
|
|
2502
|
+
if (!(schema.w2z_1 == null)) {
|
|
2250
2503
|
tmp_13 = new Dict(new Primitive(toPrimitive(schema), false), isNullable);
|
|
2251
2504
|
} else {
|
|
2252
2505
|
tmp_13 = new Primitive(toPrimitive(schema), isNullable);
|
|
@@ -2257,17 +2510,17 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2257
2510
|
case -1:
|
|
2258
2511
|
case 5:
|
|
2259
2512
|
var tmp_14;
|
|
2260
|
-
var tmp_15 = schema.
|
|
2513
|
+
var tmp_15 = schema.w2z_1;
|
|
2261
2514
|
if (!(tmp_15 == null) ? isInterface(tmp_15, BooleanValue) : false) {
|
|
2262
2515
|
var tmp_16;
|
|
2263
|
-
if (!(schema.
|
|
2516
|
+
if (!(schema.w2z_1 == null)) {
|
|
2264
2517
|
tmp_16 = new Dict(new Any(isNullable), false);
|
|
2265
2518
|
} else {
|
|
2266
2519
|
tmp_16 = new Any(isNullable);
|
|
2267
2520
|
}
|
|
2268
2521
|
tmp_14 = tmp_16;
|
|
2269
2522
|
} else {
|
|
2270
|
-
if (!(schema.
|
|
2523
|
+
if (!(schema.w2z_1 == null)) {
|
|
2271
2524
|
new Dict(new Custom(sanitize(name), isNullable), false);
|
|
2272
2525
|
}
|
|
2273
2526
|
tmp_14 = new Custom(sanitize(name), isNullable);
|
|
@@ -2276,7 +2529,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2276
2529
|
tmp_12 = tmp_14;
|
|
2277
2530
|
break;
|
|
2278
2531
|
case 4:
|
|
2279
|
-
var items = schema.
|
|
2532
|
+
var items = schema.t2z_1;
|
|
2280
2533
|
var tmp_17;
|
|
2281
2534
|
if (items instanceof OpenAPIV2Reference) {
|
|
2282
2535
|
tmp_17 = toIterable(toReference(_this__u8e3s4, items, false), isNullable);
|
|
@@ -2323,10 +2576,10 @@ function resolve(_this__u8e3s4, responseOrReference) {
|
|
|
2323
2576
|
}
|
|
2324
2577
|
function toField_0(_this__u8e3s4, header, identifier) {
|
|
2325
2578
|
var tmp4_identifier = new FieldIdentifier(identifier);
|
|
2326
|
-
var tmp5_annotations = toDescriptionAnnotationList(header.
|
|
2579
|
+
var tmp5_annotations = toDescriptionAnnotationList(header.y32_1);
|
|
2327
2580
|
var tmp;
|
|
2328
|
-
if (header.
|
|
2329
|
-
var tmp1_safe_receiver = header.
|
|
2581
|
+
if (header.z32_1.b3_1 === 4) {
|
|
2582
|
+
var tmp1_safe_receiver = header.b33_1;
|
|
2330
2583
|
var tmp_0;
|
|
2331
2584
|
if (tmp1_safe_receiver == null) {
|
|
2332
2585
|
tmp_0 = null;
|
|
@@ -2399,13 +2652,13 @@ function resolve_1(_this__u8e3s4, parameterOrReference) {
|
|
|
2399
2652
|
}
|
|
2400
2653
|
function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
2401
2654
|
var tmp;
|
|
2402
|
-
if (exists(schemaObject.
|
|
2403
|
-
var tmp0_subject = schemaObject.
|
|
2655
|
+
if (exists(schemaObject.w2z_1)) {
|
|
2656
|
+
var tmp0_subject = schemaObject.w2z_1;
|
|
2404
2657
|
var tmp_0;
|
|
2405
2658
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
2406
2659
|
tmp_0 = emptyList();
|
|
2407
2660
|
} else {
|
|
2408
|
-
var tmp1_safe_receiver = schemaObject.
|
|
2661
|
+
var tmp1_safe_receiver = schemaObject.w2z_1;
|
|
2409
2662
|
var tmp_1;
|
|
2410
2663
|
if (tmp1_safe_receiver == null) {
|
|
2411
2664
|
tmp_1 = null;
|
|
@@ -2420,7 +2673,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2420
2673
|
} else {
|
|
2421
2674
|
// Inline function 'kotlin.takeIf' call
|
|
2422
2675
|
var tmp_3;
|
|
2423
|
-
if (!(tmp2_safe_receiver.
|
|
2676
|
+
if (!(tmp2_safe_receiver.v2z_1 == null)) {
|
|
2424
2677
|
tmp_3 = tmp2_safe_receiver;
|
|
2425
2678
|
} else {
|
|
2426
2679
|
tmp_3 = null;
|
|
@@ -2439,11 +2692,11 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2439
2692
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
2440
2693
|
}
|
|
2441
2694
|
tmp = tmp_0;
|
|
2442
|
-
} else if (!(schemaObject.
|
|
2443
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
2695
|
+
} else if (!(schemaObject.u2z_1 == null)) {
|
|
2696
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.l2z_1);
|
|
2444
2697
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
2445
2698
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2446
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
2699
|
+
var tmp0_elvis_lhs = schemaObject.u2z_1;
|
|
2447
2700
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2448
2701
|
var tmp0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2449
2702
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2477,7 +2730,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2477
2730
|
}
|
|
2478
2731
|
var tmp_8 = listOf(new Type(null, tmp_5, tmp_6, new Shape(list_0), emptyList()));
|
|
2479
2732
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2480
|
-
var tmp0_0 = ensureNotNull(schemaObject.
|
|
2733
|
+
var tmp0_0 = ensureNotNull(schemaObject.u2z_1);
|
|
2481
2734
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2482
2735
|
var destination_0 = ArrayList_init_$Create$();
|
|
2483
2736
|
var _iterator__ex2g4s_1 = tmp0_0.t();
|
|
@@ -2489,7 +2742,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2489
2742
|
} else {
|
|
2490
2743
|
if (element_0 instanceof OpenAPIV2Schema) {
|
|
2491
2744
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2492
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
2745
|
+
var tmp0_elvis_lhs_0 = element_0.v2z_1;
|
|
2493
2746
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2494
2747
|
var tmp0_1 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2495
2748
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2524,29 +2777,29 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2524
2777
|
addAll(destination_0, list_2);
|
|
2525
2778
|
}
|
|
2526
2779
|
tmp = plus_0(tmp_8, destination_0);
|
|
2527
|
-
} else if (!(schemaObject.
|
|
2780
|
+
} else if (!(schemaObject.s2z_1 == null)) {
|
|
2528
2781
|
// Inline function 'kotlin.collections.map' call
|
|
2529
|
-
var this_0 = ensureNotNull(schemaObject.
|
|
2782
|
+
var this_0 = ensureNotNull(schemaObject.s2z_1);
|
|
2530
2783
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2531
2784
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2532
2785
|
var _iterator__ex2g4s_3 = this_0.t();
|
|
2533
2786
|
while (_iterator__ex2g4s_3.u()) {
|
|
2534
2787
|
var item = _iterator__ex2g4s_3.v();
|
|
2535
|
-
var tmp$ret$22 = item.
|
|
2788
|
+
var tmp$ret$22 = item.hx();
|
|
2536
2789
|
destination_2.x(tmp$ret$22);
|
|
2537
2790
|
}
|
|
2538
2791
|
// Inline function 'kotlin.let' call
|
|
2539
2792
|
var it = toSet(destination_2);
|
|
2540
|
-
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.
|
|
2793
|
+
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.l2z_1), new DefinitionIdentifier(sanitize(name)), it));
|
|
2541
2794
|
} else {
|
|
2542
|
-
var tmp5_subject = schemaObject.
|
|
2795
|
+
var tmp5_subject = schemaObject.f2z_1;
|
|
2543
2796
|
var tmp_11;
|
|
2544
2797
|
switch (tmp5_subject == null ? -1 : tmp5_subject.b3_1) {
|
|
2545
2798
|
case -1:
|
|
2546
2799
|
case 5:
|
|
2547
2800
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2548
2801
|
|
|
2549
|
-
var tmp0_elvis_lhs_1 = schemaObject.
|
|
2802
|
+
var tmp0_elvis_lhs_1 = schemaObject.v2z_1;
|
|
2550
2803
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2551
2804
|
|
|
2552
2805
|
var tmp0_2 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
@@ -2567,11 +2820,11 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2567
2820
|
}
|
|
2568
2821
|
|
|
2569
2822
|
var fields = destination_3;
|
|
2570
|
-
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.
|
|
2823
|
+
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.l2z_1), new DefinitionIdentifier(sanitize(name)), new Shape(toField_1(_this__u8e3s4, schemaObject, name)), emptyList()));
|
|
2571
2824
|
tmp_11 = plus_0(schema, fields);
|
|
2572
2825
|
break;
|
|
2573
2826
|
case 4:
|
|
2574
|
-
var it_0 = schemaObject.
|
|
2827
|
+
var it_0 = schemaObject.t2z_1;
|
|
2575
2828
|
var tmp_12;
|
|
2576
2829
|
if (it_0 instanceof OpenAPIV2Reference) {
|
|
2577
2830
|
tmp_12 = emptyList();
|
|
@@ -2598,11 +2851,11 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2598
2851
|
return tmp;
|
|
2599
2852
|
}
|
|
2600
2853
|
function resolveParameterObject(_this__u8e3s4, reference) {
|
|
2601
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2854
|
+
var tmp0_safe_receiver = _this__u8e3s4.r2x_1;
|
|
2602
2855
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p2(getReference(reference));
|
|
2603
2856
|
var tmp;
|
|
2604
2857
|
if (tmp1_elvis_lhs == null) {
|
|
2605
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
2858
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.j32_1);
|
|
2606
2859
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2607
2860
|
} else {
|
|
2608
2861
|
tmp = tmp1_elvis_lhs;
|
|
@@ -2610,17 +2863,17 @@ function resolveParameterObject(_this__u8e3s4, reference) {
|
|
|
2610
2863
|
return tmp;
|
|
2611
2864
|
}
|
|
2612
2865
|
function toPrimitive(_this__u8e3s4) {
|
|
2613
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2866
|
+
var tmp0_subject = _this__u8e3s4.dx();
|
|
2614
2867
|
var tmp;
|
|
2615
2868
|
switch (tmp0_subject == null ? -1 : tmp0_subject.b3_1) {
|
|
2616
2869
|
case 0:
|
|
2617
|
-
tmp = !(_this__u8e3s4.
|
|
2870
|
+
tmp = !(_this__u8e3s4.j30() == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.j30()))) : _this__u8e3s4.i30() === 'binary' ? Bytes_instance : new String_0(null);
|
|
2618
2871
|
break;
|
|
2619
2872
|
case 2:
|
|
2620
|
-
tmp = new Integer(_this__u8e3s4.
|
|
2873
|
+
tmp = new Integer(_this__u8e3s4.i30() === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
2621
2874
|
break;
|
|
2622
2875
|
case 1:
|
|
2623
|
-
tmp = new Number_0(_this__u8e3s4.
|
|
2876
|
+
tmp = new Number_0(_this__u8e3s4.i30() === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
2624
2877
|
break;
|
|
2625
2878
|
case 3:
|
|
2626
2879
|
tmp = Boolean_instance;
|
|
@@ -2658,11 +2911,11 @@ function resolve_2(_this__u8e3s4, schemaOrReference) {
|
|
|
2658
2911
|
while (true);
|
|
2659
2912
|
}
|
|
2660
2913
|
function resolveOpenAPIV2Schema(_this__u8e3s4, reference) {
|
|
2661
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2914
|
+
var tmp0_safe_receiver = _this__u8e3s4.q2x_1;
|
|
2662
2915
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p2(getReference(reference));
|
|
2663
2916
|
var tmp;
|
|
2664
2917
|
if (tmp1_elvis_lhs == null) {
|
|
2665
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
2918
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.j32_1);
|
|
2666
2919
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2667
2920
|
} else {
|
|
2668
2921
|
tmp = tmp1_elvis_lhs;
|
|
@@ -2720,11 +2973,11 @@ function isPrimitive(_this__u8e3s4) {
|
|
|
2720
2973
|
return tmp;
|
|
2721
2974
|
}
|
|
2722
2975
|
function resolveResponseObject(_this__u8e3s4, reference) {
|
|
2723
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2976
|
+
var tmp0_safe_receiver = _this__u8e3s4.s2x_1;
|
|
2724
2977
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p2(getReference(reference));
|
|
2725
2978
|
var tmp;
|
|
2726
2979
|
if (tmp1_elvis_lhs == null) {
|
|
2727
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
2980
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.j32_1);
|
|
2728
2981
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2729
2982
|
} else {
|
|
2730
2983
|
tmp = tmp1_elvis_lhs;
|
|
@@ -2751,7 +3004,7 @@ function resolve_3(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
2751
3004
|
}
|
|
2752
3005
|
function toField_1(_this__u8e3s4, schema, name) {
|
|
2753
3006
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2754
|
-
var tmp0_elvis_lhs = schema.
|
|
3007
|
+
var tmp0_elvis_lhs = schema.v2z_1;
|
|
2755
3008
|
// Inline function 'kotlin.collections.map' call
|
|
2756
3009
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2757
3010
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2764,14 +3017,14 @@ function toField_1(_this__u8e3s4, schema, name) {
|
|
|
2764
3017
|
var key = item.k1();
|
|
2765
3018
|
// Inline function 'kotlin.collections.component2' call
|
|
2766
3019
|
var value = item.l1();
|
|
2767
|
-
var tmp0_safe_receiver = schema.
|
|
3020
|
+
var tmp0_safe_receiver = schema.r2z_1;
|
|
2768
3021
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u1(key);
|
|
2769
3022
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
2770
3023
|
var tmp;
|
|
2771
3024
|
if (value instanceof OpenAPIV2Schema) {
|
|
2772
3025
|
var tmp3_identifier = new FieldIdentifier(key);
|
|
2773
3026
|
var tmp4_annotations = emptyList();
|
|
2774
|
-
var tmp5_reference = !(value.
|
|
3027
|
+
var tmp5_reference = !(value.s2z_1 == null) ? toReference_0(_this__u8e3s4, value, className([name, key]), isNullable) : equals(value.f2z_1, OpenAPIV2Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, value, className([name, key, 'Array']), isNullable) : toReference_0(_this__u8e3s4, value, className([name, key]), isNullable);
|
|
2775
3028
|
tmp = new Field(tmp4_annotations, tmp3_identifier, tmp5_reference);
|
|
2776
3029
|
} else {
|
|
2777
3030
|
if (value instanceof OpenAPIV2Reference) {
|
|
@@ -2790,19 +3043,19 @@ function toField_1(_this__u8e3s4, schema, name) {
|
|
|
2790
3043
|
}
|
|
2791
3044
|
function parseParameters$lambda($this_parseParameters) {
|
|
2792
3045
|
return function ($this$flatMapRequests) {
|
|
2793
|
-
var tmp = $this$flatMapRequests.
|
|
2794
|
-
var tmp_0 = resolveParameters($this_parseParameters, (tmp instanceof OpenAPIV2PathItem ? tmp : THROW_CCE()).
|
|
2795
|
-
var tmp_1 = $this$flatMapRequests.
|
|
2796
|
-
var parameters = plus_0(tmp_0, resolveParameters($this_parseParameters, (tmp_1 instanceof OpenAPIV2Operation ? tmp_1 : THROW_CCE()).
|
|
2797
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2798
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
3046
|
+
var tmp = $this$flatMapRequests.z3f_1;
|
|
3047
|
+
var tmp_0 = resolveParameters($this_parseParameters, (tmp instanceof OpenAPIV2PathItem ? tmp : THROW_CCE()).e2y_1);
|
|
3048
|
+
var tmp_1 = $this$flatMapRequests.b3g_1;
|
|
3049
|
+
var parameters = plus_0(tmp_0, resolveParameters($this_parseParameters, (tmp_1 instanceof OpenAPIV2Operation ? tmp_1 : THROW_CCE()).t31_1));
|
|
3050
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.b3g_1);
|
|
3051
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.y3f_1) + $this$flatMapRequests.a3g_1.a3_1 : tmp0_elvis_lhs;
|
|
2799
3052
|
// Inline function 'kotlin.collections.filter' call
|
|
2800
3053
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2801
3054
|
var destination = ArrayList_init_$Create$();
|
|
2802
3055
|
var _iterator__ex2g4s = parameters.t();
|
|
2803
3056
|
while (_iterator__ex2g4s.u()) {
|
|
2804
3057
|
var element = _iterator__ex2g4s.v();
|
|
2805
|
-
if (!element.
|
|
3058
|
+
if (!element.k31_1.equals(OpenAPIV2ParameterLocation_BODY_getInstance())) {
|
|
2806
3059
|
destination.x(element);
|
|
2807
3060
|
}
|
|
2808
3061
|
}
|
|
@@ -2812,13 +3065,13 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
2812
3065
|
var _iterator__ex2g4s_0 = destination.t();
|
|
2813
3066
|
while (_iterator__ex2g4s_0.u()) {
|
|
2814
3067
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
2815
|
-
var tmp0_safe_receiver = element_0.
|
|
3068
|
+
var tmp0_safe_receiver = element_0.l31_1;
|
|
2816
3069
|
var tmp_2;
|
|
2817
3070
|
if (tmp0_safe_receiver == null) {
|
|
2818
3071
|
tmp_2 = null;
|
|
2819
3072
|
} else {
|
|
2820
3073
|
// Inline function 'kotlin.let' call
|
|
2821
|
-
tmp_2 = flatten($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element_0.
|
|
3074
|
+
tmp_2 = flatten($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element_0.m31_1]));
|
|
2822
3075
|
}
|
|
2823
3076
|
var tmp1_elvis_lhs = tmp_2;
|
|
2824
3077
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -2829,12 +3082,12 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
2829
3082
|
}
|
|
2830
3083
|
function parseRequestBody$lambda($this_parseRequestBody) {
|
|
2831
3084
|
return function ($this$flatMapRequests) {
|
|
2832
|
-
var tmp = $this$flatMapRequests.
|
|
2833
|
-
var tmp_0 = resolveParameters($this_parseRequestBody, (tmp instanceof OpenAPIV2PathItem ? tmp : THROW_CCE()).
|
|
2834
|
-
var tmp_1 = $this$flatMapRequests.
|
|
2835
|
-
var parameters = plus_0(tmp_0, resolveParameters($this_parseRequestBody, (tmp_1 instanceof OpenAPIV2Operation ? tmp_1 : THROW_CCE()).
|
|
2836
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2837
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
3085
|
+
var tmp = $this$flatMapRequests.z3f_1;
|
|
3086
|
+
var tmp_0 = resolveParameters($this_parseRequestBody, (tmp instanceof OpenAPIV2PathItem ? tmp : THROW_CCE()).e2y_1);
|
|
3087
|
+
var tmp_1 = $this$flatMapRequests.b3g_1;
|
|
3088
|
+
var parameters = plus_0(tmp_0, resolveParameters($this_parseRequestBody, (tmp_1 instanceof OpenAPIV2Operation ? tmp_1 : THROW_CCE()).t31_1));
|
|
3089
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.b3g_1);
|
|
3090
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.y3f_1) + $this$flatMapRequests.a3g_1.a3_1 : tmp0_elvis_lhs;
|
|
2838
3091
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2839
3092
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2840
3093
|
var destination = ArrayList_init_$Create$();
|
|
@@ -2842,17 +3095,17 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2842
3095
|
while (_iterator__ex2g4s.u()) {
|
|
2843
3096
|
var element = _iterator__ex2g4s.v();
|
|
2844
3097
|
var tmp_2;
|
|
2845
|
-
if (!(element.
|
|
2846
|
-
var tmp_3 = toDescriptionAnnotationList(element.
|
|
2847
|
-
var tmp_4 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.
|
|
3098
|
+
if (!(element.i31_1 == null)) {
|
|
3099
|
+
var tmp_3 = toDescriptionAnnotationList(element.q30_1);
|
|
3100
|
+
var tmp_4 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.m31_1])));
|
|
2848
3101
|
// Inline function 'kotlin.collections.map' call
|
|
2849
|
-
var this_0 = ensureNotNull(element.
|
|
3102
|
+
var this_0 = ensureNotNull(element.i31_1);
|
|
2850
3103
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2851
3104
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2852
3105
|
var _iterator__ex2g4s_0 = this_0.t();
|
|
2853
3106
|
while (_iterator__ex2g4s_0.u()) {
|
|
2854
3107
|
var item = _iterator__ex2g4s_0.v();
|
|
2855
|
-
var tmp$ret$0 = item.
|
|
3108
|
+
var tmp$ret$0 = item.hx();
|
|
2856
3109
|
destination_0.x(tmp$ret$0);
|
|
2857
3110
|
}
|
|
2858
3111
|
tmp_2 = listOf(new Enum(null, tmp_3, tmp_4, toSet(destination_0)));
|
|
@@ -2863,7 +3116,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2863
3116
|
addAll(destination, list);
|
|
2864
3117
|
}
|
|
2865
3118
|
var enums = destination;
|
|
2866
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
3119
|
+
var tmp1_safe_receiver = $this$flatMapRequests.b3g_1.t31_1;
|
|
2867
3120
|
var tmp_5;
|
|
2868
3121
|
if (tmp1_safe_receiver == null) {
|
|
2869
3122
|
tmp_5 = null;
|
|
@@ -2890,7 +3143,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2890
3143
|
var _iterator__ex2g4s_2 = tmp2_safe_receiver.t();
|
|
2891
3144
|
while (_iterator__ex2g4s_2.u()) {
|
|
2892
3145
|
var element_0 = _iterator__ex2g4s_2.v();
|
|
2893
|
-
if (element_0.
|
|
3146
|
+
if (element_0.k31_1.equals(OpenAPIV2ParameterLocation_BODY_getInstance())) {
|
|
2894
3147
|
destination_2.x(element_0);
|
|
2895
3148
|
}
|
|
2896
3149
|
}
|
|
@@ -2907,10 +3160,10 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2907
3160
|
var _iterator__ex2g4s_3 = tmp3_safe_receiver.t();
|
|
2908
3161
|
while (_iterator__ex2g4s_3.u()) {
|
|
2909
3162
|
var element_1 = _iterator__ex2g4s_3.v();
|
|
2910
|
-
var schema = element_1.
|
|
3163
|
+
var schema = element_1.l31_1;
|
|
2911
3164
|
var tmp_8;
|
|
2912
3165
|
if (schema instanceof OpenAPIV2Schema) {
|
|
2913
|
-
var tmp0_subject = schema.
|
|
3166
|
+
var tmp0_subject = schema.f2z_1;
|
|
2914
3167
|
var tmp_9;
|
|
2915
3168
|
switch (tmp0_subject == null ? -1 : tmp0_subject.b3_1) {
|
|
2916
3169
|
case -1:
|
|
@@ -2918,7 +3171,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2918
3171
|
tmp_9 = flatten_0($this_parseRequestBody, schema, className([name, 'RequestBody']));
|
|
2919
3172
|
break;
|
|
2920
3173
|
case 4:
|
|
2921
|
-
var tmp1_safe_receiver_0 = schema.
|
|
3174
|
+
var tmp1_safe_receiver_0 = schema.t2z_1;
|
|
2922
3175
|
var tmp_10;
|
|
2923
3176
|
if (tmp1_safe_receiver_0 == null) {
|
|
2924
3177
|
tmp_10 = null;
|
|
@@ -2952,28 +3205,28 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2952
3205
|
}
|
|
2953
3206
|
function parseResponseBody$lambda($this_parseResponseBody) {
|
|
2954
3207
|
return function ($this$flatMapResponses) {
|
|
2955
|
-
var tmp = $this$flatMapResponses.
|
|
2956
|
-
var schema = resolve($this_parseResponseBody, isInterface(tmp, OpenAPIV2ResponseOrReference) ? tmp : THROW_CCE()).
|
|
2957
|
-
var tmp_0 = $this$flatMapResponses.
|
|
3208
|
+
var tmp = $this$flatMapResponses.h3g_1;
|
|
3209
|
+
var schema = resolve($this_parseResponseBody, isInterface(tmp, OpenAPIV2ResponseOrReference) ? tmp : THROW_CCE()).p32_1;
|
|
3210
|
+
var tmp_0 = $this$flatMapResponses.f3g_1;
|
|
2958
3211
|
var tmp0_elvis_lhs = toName(tmp_0 instanceof OpenAPIV2Operation ? tmp_0 : THROW_CCE());
|
|
2959
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
3212
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.c3g_1) + $this$flatMapResponses.e3g_1.a3_1 : tmp0_elvis_lhs;
|
|
2960
3213
|
var tmp_1;
|
|
2961
3214
|
if (schema instanceof OpenAPIV2Schema) {
|
|
2962
|
-
var tmp2_subject = schema.
|
|
3215
|
+
var tmp2_subject = schema.f2z_1;
|
|
2963
3216
|
var tmp_2;
|
|
2964
3217
|
switch (tmp2_subject == null ? -1 : tmp2_subject.b3_1) {
|
|
2965
3218
|
case -1:
|
|
2966
3219
|
case 5:
|
|
2967
|
-
tmp_2 = flatten_0($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
3220
|
+
tmp_2 = flatten_0($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.g3g_1), 'ResponseBody']));
|
|
2968
3221
|
break;
|
|
2969
3222
|
case 4:
|
|
2970
|
-
var tmp3_safe_receiver = schema.
|
|
3223
|
+
var tmp3_safe_receiver = schema.t2z_1;
|
|
2971
3224
|
var tmp_3;
|
|
2972
3225
|
if (tmp3_safe_receiver == null) {
|
|
2973
3226
|
tmp_3 = null;
|
|
2974
3227
|
} else {
|
|
2975
3228
|
// Inline function 'kotlin.let' call
|
|
2976
|
-
tmp_3 = flatten($this_parseResponseBody, tmp3_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
3229
|
+
tmp_3 = flatten($this_parseResponseBody, tmp3_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.g3g_1), 'ResponseBody']));
|
|
2977
3230
|
}
|
|
2978
3231
|
|
|
2979
3232
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -3142,31 +3395,31 @@ function emitPaths_0($this, _this__u8e3s4, logger) {
|
|
|
3142
3395
|
return toMap(destination_1);
|
|
3143
3396
|
}
|
|
3144
3397
|
function emit_1($this, _this__u8e3s4) {
|
|
3145
|
-
var type = _this__u8e3s4.cr_1.
|
|
3398
|
+
var type = _this__u8e3s4.cr_1.ou_1;
|
|
3146
3399
|
var tmp;
|
|
3147
3400
|
if (type instanceof Integer) {
|
|
3148
3401
|
var tmp4_type = OpenAPIV3Type_INTEGER_getInstance();
|
|
3149
|
-
var tmp0_safe_receiver = type.
|
|
3150
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3402
|
+
var tmp0_safe_receiver = type.tt_1;
|
|
3403
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ot_1;
|
|
3151
3404
|
var tmp5_minimum = tmp1_safe_receiver == null ? null : toDouble(tmp1_safe_receiver);
|
|
3152
|
-
var tmp2_safe_receiver = type.
|
|
3153
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
3405
|
+
var tmp2_safe_receiver = type.tt_1;
|
|
3406
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.pt_1;
|
|
3154
3407
|
var tmp6_maximum = tmp3_safe_receiver == null ? null : toDouble(tmp3_safe_receiver);
|
|
3155
3408
|
tmp = new OpenAPIV3Schema(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp4_type, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 'int32', tmp6_maximum, VOID, tmp5_minimum);
|
|
3156
3409
|
} else {
|
|
3157
3410
|
if (type instanceof Number_0) {
|
|
3158
3411
|
var tmp11_type = OpenAPIV3Type_NUMBER_getInstance();
|
|
3159
|
-
var tmp7_safe_receiver = type.
|
|
3160
|
-
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.
|
|
3412
|
+
var tmp7_safe_receiver = type.wt_1;
|
|
3413
|
+
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.ot_1;
|
|
3161
3414
|
var tmp12_minimum = tmp8_safe_receiver == null ? null : toDouble(tmp8_safe_receiver);
|
|
3162
|
-
var tmp9_safe_receiver = type.
|
|
3163
|
-
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.
|
|
3415
|
+
var tmp9_safe_receiver = type.wt_1;
|
|
3416
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.pt_1;
|
|
3164
3417
|
var tmp13_maximum = tmp10_safe_receiver == null ? null : toDouble(tmp10_safe_receiver);
|
|
3165
3418
|
tmp = new OpenAPIV3Schema(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp11_type, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 'float', tmp13_maximum, VOID, tmp12_minimum);
|
|
3166
3419
|
} else {
|
|
3167
3420
|
if (type instanceof String_0) {
|
|
3168
3421
|
var tmp_0 = OpenAPIV3Type_STRING_getInstance();
|
|
3169
|
-
var tmp14_safe_receiver = type.
|
|
3422
|
+
var tmp14_safe_receiver = type.qt_1;
|
|
3170
3423
|
var tmp_1;
|
|
3171
3424
|
var tmp_2 = tmp14_safe_receiver;
|
|
3172
3425
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2)) == null) {
|
|
@@ -3226,7 +3479,7 @@ function emit_2($this, _this__u8e3s4) {
|
|
|
3226
3479
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
3227
3480
|
while (_iterator__ex2g4s_0.u()) {
|
|
3228
3481
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3229
|
-
if (!element_0.bp_1.
|
|
3482
|
+
if (!element_0.bp_1.cu()) {
|
|
3230
3483
|
destination_0.x(element_0);
|
|
3231
3484
|
}
|
|
3232
3485
|
}
|
|
@@ -3444,7 +3697,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3444
3697
|
var element_1 = _iterator__ex2g4s_4.v();
|
|
3445
3698
|
var tmp0_safe_receiver_1 = element_1.np_1;
|
|
3446
3699
|
var tmp1_safe_receiver_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.pp_1;
|
|
3447
|
-
if ((tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
3700
|
+
if ((tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.cu()) === true) {
|
|
3448
3701
|
tmp$ret$21 = true;
|
|
3449
3702
|
break $l$block_0;
|
|
3450
3703
|
}
|
|
@@ -3543,12 +3796,66 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3543
3796
|
tmp_9 = destination_9;
|
|
3544
3797
|
}
|
|
3545
3798
|
var tmp3_content = tmp_9;
|
|
3546
|
-
var
|
|
3547
|
-
|
|
3799
|
+
var tmp_10 = OpenAPIV3Emitter_getInstance();
|
|
3800
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
3801
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3802
|
+
var destination_10 = ArrayList_init_$Create$();
|
|
3803
|
+
var _iterator__ex2g4s_11 = res.t();
|
|
3804
|
+
while (_iterator__ex2g4s_11.u()) {
|
|
3805
|
+
var element_7 = _iterator__ex2g4s_11.v();
|
|
3806
|
+
var list_1 = findLinks(element_7.tp_1);
|
|
3807
|
+
addAll(destination_10, list_1);
|
|
3808
|
+
}
|
|
3809
|
+
var tmp4_links = toOpenAPIV3Links(tmp_10, destination_10);
|
|
3810
|
+
var tmp$ret$56 = to(new StatusCode(tmp_8), new OpenAPIV3Response(tmp3_content, tmp2_description, destination_7, tmp4_links));
|
|
3811
|
+
destination_5.x(tmp$ret$56);
|
|
3548
3812
|
}
|
|
3549
3813
|
var tmp7_responses = toMap(destination_5);
|
|
3550
3814
|
return new OpenAPIV3Operation(tmp5_parameters, tmp6_requestBody, tmp7_responses, VOID, VOID, VOID, tmp4_description, VOID, tmp3_operationId);
|
|
3551
3815
|
}
|
|
3816
|
+
function toOpenAPIV3Links($this, _this__u8e3s4) {
|
|
3817
|
+
if (_this__u8e3s4.r())
|
|
3818
|
+
return null;
|
|
3819
|
+
var byName = LinkedHashMap_init_$Create$_0();
|
|
3820
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
3821
|
+
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
3822
|
+
while (_iterator__ex2g4s.u()) {
|
|
3823
|
+
var element = _iterator__ex2g4s.v();
|
|
3824
|
+
var tmp2 = element.i3g_1;
|
|
3825
|
+
// Inline function 'kotlin.collections.mapValues' call
|
|
3826
|
+
var this_0 = element.l3g_1;
|
|
3827
|
+
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
3828
|
+
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.a1()));
|
|
3829
|
+
// Inline function 'kotlin.collections.associateByTo' call
|
|
3830
|
+
var _iterator__ex2g4s_0 = this_0.j1().t();
|
|
3831
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
3832
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
3833
|
+
var tmp = element_0.k1();
|
|
3834
|
+
var tmp$ret$1 = JsonPrimitive(element_0.l1());
|
|
3835
|
+
destination.w2(tmp, tmp$ret$1);
|
|
3836
|
+
}
|
|
3837
|
+
// Inline function 'kotlin.collections.ifEmpty' call
|
|
3838
|
+
var tmp_0;
|
|
3839
|
+
if (destination.r()) {
|
|
3840
|
+
tmp_0 = null;
|
|
3841
|
+
} else {
|
|
3842
|
+
tmp_0 = destination;
|
|
3843
|
+
}
|
|
3844
|
+
var tmp_1 = tmp_0;
|
|
3845
|
+
var tmp0_safe_receiver = element.m3g_1;
|
|
3846
|
+
var tmp_2;
|
|
3847
|
+
if (tmp0_safe_receiver == null) {
|
|
3848
|
+
tmp_2 = null;
|
|
3849
|
+
} else {
|
|
3850
|
+
// Inline function 'kotlin.let' call
|
|
3851
|
+
tmp_2 = JsonPrimitive(tmp0_safe_receiver);
|
|
3852
|
+
}
|
|
3853
|
+
// Inline function 'kotlin.collections.set' call
|
|
3854
|
+
var value = new OpenAPIV3Link(element.k3g_1, element.j3g_1, tmp_1, tmp_2, element.n3g_1);
|
|
3855
|
+
byName.w2(tmp2, value);
|
|
3856
|
+
}
|
|
3857
|
+
return new OpenAPIV3Links(toSet(byName.j1()));
|
|
3858
|
+
}
|
|
3552
3859
|
function emitSegment_0($this, _this__u8e3s4) {
|
|
3553
3860
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenAPIV3Emitter$emitSegment$lambda);
|
|
3554
3861
|
}
|
|
@@ -3556,14 +3863,14 @@ function emitParameter_0($this, _this__u8e3s4, location) {
|
|
|
3556
3863
|
var tmp0_name = _this__u8e3s4.ap_1.l1();
|
|
3557
3864
|
var tmp1_schema = emitSchema_0($this, _this__u8e3s4.bp_1);
|
|
3558
3865
|
var tmp2_description = findDescription(_this__u8e3s4.zo_1);
|
|
3559
|
-
var tmp3_required = !_this__u8e3s4.bp_1.
|
|
3866
|
+
var tmp3_required = !_this__u8e3s4.bp_1.cu();
|
|
3560
3867
|
return new OpenAPIV3Parameter(tmp2_description, tmp3_required, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, location, tmp1_schema, tmp0_name);
|
|
3561
3868
|
}
|
|
3562
3869
|
function emitParameter_1($this, _this__u8e3s4) {
|
|
3563
3870
|
var tmp0_in = OpenAPIV3ParameterLocation_PATH_getInstance();
|
|
3564
3871
|
var tmp1_name = _this__u8e3s4.lp_1.l1();
|
|
3565
3872
|
var tmp2_schema = emitSchema_0($this, _this__u8e3s4.mp_1);
|
|
3566
|
-
var tmp3_required = !_this__u8e3s4.mp_1.
|
|
3873
|
+
var tmp3_required = !_this__u8e3s4.mp_1.cu();
|
|
3567
3874
|
return new OpenAPIV3Parameter(VOID, tmp3_required, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_in, tmp2_schema, tmp1_name);
|
|
3568
3875
|
}
|
|
3569
3876
|
function emitHeader($this, _this__u8e3s4) {
|
|
@@ -3575,7 +3882,7 @@ function emitSchema($this, _this__u8e3s4) {
|
|
|
3575
3882
|
var it = emitSchema_0($this, _this__u8e3s4.bp_1);
|
|
3576
3883
|
var tmp_0;
|
|
3577
3884
|
if (it instanceof OpenAPIV3Schema) {
|
|
3578
|
-
tmp_0 = it.
|
|
3885
|
+
tmp_0 = it.r39(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription(_this__u8e3s4.zo_1));
|
|
3579
3886
|
} else {
|
|
3580
3887
|
if (it instanceof OpenAPIV3Reference) {
|
|
3581
3888
|
tmp_0 = it;
|
|
@@ -3595,7 +3902,7 @@ function emitHeader_0($this, _this__u8e3s4, description) {
|
|
|
3595
3902
|
tmp = new OpenAPIV3Reference(_Ref___init__impl__7qfl46('#/components/headers/' + _this__u8e3s4.bo_1));
|
|
3596
3903
|
} else {
|
|
3597
3904
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3598
|
-
tmp = new OpenAPIV3Reference(_Ref___init__impl__7qfl46('#/components/headers/' + _this__u8e3s4.
|
|
3905
|
+
tmp = new OpenAPIV3Reference(_Ref___init__impl__7qfl46('#/components/headers/' + _this__u8e3s4.ku_1));
|
|
3599
3906
|
} else {
|
|
3600
3907
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3601
3908
|
var tmp1_schema = emitSchema_0($this, _this__u8e3s4);
|
|
@@ -3621,19 +3928,19 @@ function emitHeader_0($this, _this__u8e3s4, description) {
|
|
|
3621
3928
|
function emitSchema_0($this, _this__u8e3s4) {
|
|
3622
3929
|
var tmp;
|
|
3623
3930
|
if (_this__u8e3s4 instanceof Dict) {
|
|
3624
|
-
var tmp_0 = _this__u8e3s4.co_1.
|
|
3931
|
+
var tmp_0 = _this__u8e3s4.co_1.cu();
|
|
3625
3932
|
var tmp_1 = OpenAPIV3Type_OBJECT_getInstance();
|
|
3626
3933
|
var tmp_2 = emitSchema_0($this, _this__u8e3s4.co_1);
|
|
3627
3934
|
tmp = new OpenAPIV3Schema(tmp_0, VOID, VOID, VOID, VOID, VOID, VOID, tmp_1, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, isInterface(tmp_2, OpenAPIV3SchemaOrReferenceOrBoolean) ? tmp_2 : THROW_CCE());
|
|
3628
3935
|
} else {
|
|
3629
3936
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
3630
|
-
tmp = new OpenAPIV3Schema(_this__u8e3s4.zn_1.
|
|
3937
|
+
tmp = new OpenAPIV3Schema(_this__u8e3s4.zn_1.cu(), VOID, VOID, VOID, VOID, VOID, VOID, OpenAPIV3Type_ARRAY_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitSchema_0($this, _this__u8e3s4.zn_1));
|
|
3631
3938
|
} else {
|
|
3632
3939
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3633
|
-
tmp = new OpenAPIV3Reference(_Ref___init__impl__7qfl46('#/components/schemas/' + _this__u8e3s4.
|
|
3940
|
+
tmp = new OpenAPIV3Reference(_Ref___init__impl__7qfl46('#/components/schemas/' + _this__u8e3s4.ku_1));
|
|
3634
3941
|
} else {
|
|
3635
3942
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3636
|
-
var tmp1_type = emitType_1($this, _this__u8e3s4.
|
|
3943
|
+
var tmp1_type = emitType_1($this, _this__u8e3s4.ou_1);
|
|
3637
3944
|
var tmp2_format = emitFormat(_this__u8e3s4);
|
|
3638
3945
|
var tmp3_pattern = emitPattern_0($this, _this__u8e3s4);
|
|
3639
3946
|
var tmp4_minimum = emitMinimum_0($this, _this__u8e3s4);
|
|
@@ -3688,10 +3995,10 @@ function emit_7($this, _this__u8e3s4) {
|
|
|
3688
3995
|
function emitPattern_0($this, _this__u8e3s4) {
|
|
3689
3996
|
var tmp;
|
|
3690
3997
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3691
|
-
var t = _this__u8e3s4.
|
|
3998
|
+
var t = _this__u8e3s4.ou_1;
|
|
3692
3999
|
var tmp_0;
|
|
3693
4000
|
if (t instanceof String_0) {
|
|
3694
|
-
var p = t.
|
|
4001
|
+
var p = t.qt_1;
|
|
3695
4002
|
var tmp_1;
|
|
3696
4003
|
var tmp_2 = p;
|
|
3697
4004
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2))instanceof RegExp_0) {
|
|
@@ -3712,16 +4019,16 @@ function emitPattern_0($this, _this__u8e3s4) {
|
|
|
3712
4019
|
function emitMinimum_0($this, _this__u8e3s4) {
|
|
3713
4020
|
var tmp;
|
|
3714
4021
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3715
|
-
var t = _this__u8e3s4.
|
|
4022
|
+
var t = _this__u8e3s4.ou_1;
|
|
3716
4023
|
var tmp_0;
|
|
3717
4024
|
if (t instanceof Number_0) {
|
|
3718
|
-
var tmp1_safe_receiver = t.
|
|
3719
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4025
|
+
var tmp1_safe_receiver = t.wt_1;
|
|
4026
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ot_1;
|
|
3720
4027
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
3721
4028
|
} else {
|
|
3722
4029
|
if (t instanceof Integer) {
|
|
3723
|
-
var tmp3_safe_receiver = t.
|
|
3724
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
4030
|
+
var tmp3_safe_receiver = t.tt_1;
|
|
4031
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.ot_1;
|
|
3725
4032
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
3726
4033
|
} else {
|
|
3727
4034
|
tmp_0 = null;
|
|
@@ -3736,16 +4043,16 @@ function emitMinimum_0($this, _this__u8e3s4) {
|
|
|
3736
4043
|
function emitMaximum_0($this, _this__u8e3s4) {
|
|
3737
4044
|
var tmp;
|
|
3738
4045
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3739
|
-
var t = _this__u8e3s4.
|
|
4046
|
+
var t = _this__u8e3s4.ou_1;
|
|
3740
4047
|
var tmp_0;
|
|
3741
4048
|
if (t instanceof Number_0) {
|
|
3742
|
-
var tmp1_safe_receiver = t.
|
|
3743
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4049
|
+
var tmp1_safe_receiver = t.wt_1;
|
|
4050
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.pt_1;
|
|
3744
4051
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
3745
4052
|
} else {
|
|
3746
4053
|
if (t instanceof Integer) {
|
|
3747
|
-
var tmp3_safe_receiver = t.
|
|
3748
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
4054
|
+
var tmp3_safe_receiver = t.tt_1;
|
|
4055
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.pt_1;
|
|
3749
4056
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
3750
4057
|
} else {
|
|
3751
4058
|
tmp_0 = null;
|
|
@@ -3772,10 +4079,10 @@ function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
|
3772
4079
|
}
|
|
3773
4080
|
function OpenAPIV3Emitter() {
|
|
3774
4081
|
OpenAPIV3Emitter_instance = this;
|
|
3775
|
-
this.
|
|
4082
|
+
this.t3g_1 = FileExtension_JSON_getInstance();
|
|
3776
4083
|
}
|
|
3777
4084
|
protoOf(OpenAPIV3Emitter).eq = function () {
|
|
3778
|
-
return this.
|
|
4085
|
+
return this.t3g_1;
|
|
3779
4086
|
};
|
|
3780
4087
|
protoOf(OpenAPIV3Emitter).on = function (ast, logger) {
|
|
3781
4088
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
@@ -3793,24 +4100,24 @@ protoOf(OpenAPIV3Emitter).on = function (ast, logger) {
|
|
|
3793
4100
|
}
|
|
3794
4101
|
// Inline function 'kotlin.let' call
|
|
3795
4102
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
3796
|
-
var tmp = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().
|
|
4103
|
+
var tmp = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().t3g_1.nq_1;
|
|
3797
4104
|
var tmp0_0 = get_json();
|
|
3798
4105
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
3799
|
-
var value = OpenAPIV3Emitter_getInstance().
|
|
4106
|
+
var value = OpenAPIV3Emitter_getInstance().u3g(it, null, logger);
|
|
3800
4107
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3801
|
-
var this_1 = tmp0_0.
|
|
4108
|
+
var this_1 = tmp0_0.d23();
|
|
3802
4109
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
3803
4110
|
var this_2 = serializer(this_1, createKType(getKClass(OpenAPIV3Model), arrayOf([]), false));
|
|
3804
4111
|
var tmp$ret$5 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
3805
|
-
var tmp$ret$6 = tmp0_0.
|
|
4112
|
+
var tmp$ret$6 = tmp0_0.q2j(tmp$ret$5, value);
|
|
3806
4113
|
// Inline function 'kotlin.let' call
|
|
3807
4114
|
var it_0 = new Emitted(tmp, tmp$ret$6);
|
|
3808
4115
|
return nonEmptyListOf(it_0, []);
|
|
3809
4116
|
};
|
|
3810
|
-
protoOf(OpenAPIV3Emitter).
|
|
3811
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
4117
|
+
protoOf(OpenAPIV3Emitter).u3g = function (statements, options, logger) {
|
|
4118
|
+
var tmp1_elvis_lhs = options == null ? null : options.v3g_1;
|
|
3812
4119
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
3813
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
4120
|
+
var tmp3_elvis_lhs = options == null ? null : options.w3g_1;
|
|
3814
4121
|
var tmp4_info = new InfoObject(tmp, VOID, VOID, VOID, VOID, tmp3_elvis_lhs == null ? '0.0.0' : tmp3_elvis_lhs);
|
|
3815
4122
|
var tmp5_paths = emitPaths_0(this, statements, logger);
|
|
3816
4123
|
var tmp6_components = emitComponents(this, statements, logger);
|
|
@@ -3824,15 +4131,15 @@ function OpenAPIV3Emitter_getInstance() {
|
|
|
3824
4131
|
}
|
|
3825
4132
|
function OpenAPIV3Parser$parse$lambda($strict) {
|
|
3826
4133
|
return function (it) {
|
|
3827
|
-
return new NonEmptyList(OpenAPIV3Parser_instance.
|
|
4134
|
+
return new NonEmptyList(OpenAPIV3Parser_instance.x3g((new OpenAPIV3(jsonDefault($strict))).g2x(it)));
|
|
3828
4135
|
};
|
|
3829
4136
|
}
|
|
3830
4137
|
function OpenAPIV3Parser() {
|
|
3831
4138
|
}
|
|
3832
|
-
protoOf(OpenAPIV3Parser).
|
|
4139
|
+
protoOf(OpenAPIV3Parser).s3g = function (moduleContent, strict) {
|
|
3833
4140
|
return parseOpenApi(moduleContent, OpenAPIV3Parser$parse$lambda(strict));
|
|
3834
4141
|
};
|
|
3835
|
-
protoOf(OpenAPIV3Parser).
|
|
4142
|
+
protoOf(OpenAPIV3Parser).x3g = function (_this__u8e3s4) {
|
|
3836
4143
|
// Inline function 'kotlin.collections.reduce' call
|
|
3837
4144
|
var iterator = listOf_0([parseEndpoints_0(_this__u8e3s4), parseParameters_0(_this__u8e3s4), parseRequestBody_0(_this__u8e3s4), parseResponseBody_0(_this__u8e3s4), parseDefinitions_0(_this__u8e3s4)]).t();
|
|
3838
4145
|
if (!iterator.u())
|
|
@@ -3868,7 +4175,7 @@ function OpenAPIV3Parser_getInstance() {
|
|
|
3868
4175
|
}
|
|
3869
4176
|
function parseEndpoints_0(_this__u8e3s4) {
|
|
3870
4177
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3871
|
-
var tmp0 = _this__u8e3s4.
|
|
4178
|
+
var tmp0 = _this__u8e3s4.t36_1;
|
|
3872
4179
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3873
4180
|
var destination = ArrayList_init_$Create$();
|
|
3874
4181
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -3876,7 +4183,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
3876
4183
|
while (_iterator__ex2g4s.u()) {
|
|
3877
4184
|
var element = _iterator__ex2g4s.v();
|
|
3878
4185
|
// Inline function 'kotlin.collections.component1' call
|
|
3879
|
-
var path = element.k1().
|
|
4186
|
+
var path = element.k1().g2v_1;
|
|
3880
4187
|
// Inline function 'kotlin.collections.component2' call
|
|
3881
4188
|
var pathItem = element.l1();
|
|
3882
4189
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3902,7 +4209,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
3902
4209
|
var item_0 = _iterator__ex2g4s_1.v();
|
|
3903
4210
|
var method_0 = item_0.ne();
|
|
3904
4211
|
var operation_0 = item_0.oe();
|
|
3905
|
-
var parameters = plus_0(resolveParameters_0(_this__u8e3s4, pathItem.
|
|
4212
|
+
var parameters = plus_0(resolveParameters_0(_this__u8e3s4, pathItem.b37_1), resolveParameters_0(_this__u8e3s4, operation_0.o3a_1));
|
|
3906
4213
|
var segments = toSegments_0(_this__u8e3s4, path, parameters, operation_0, method_0);
|
|
3907
4214
|
var tmp0_elvis_lhs = toName(operation_0);
|
|
3908
4215
|
var name = tmp0_elvis_lhs == null ? toName_0(path) + method_0.a3_1 : tmp0_elvis_lhs;
|
|
@@ -3912,7 +4219,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
3912
4219
|
var _iterator__ex2g4s_2 = parameters.t();
|
|
3913
4220
|
while (_iterator__ex2g4s_2.u()) {
|
|
3914
4221
|
var element_0 = _iterator__ex2g4s_2.v();
|
|
3915
|
-
if (element_0.
|
|
4222
|
+
if (element_0.h3a_1.equals(OpenAPIV3ParameterLocation_QUERY_getInstance())) {
|
|
3916
4223
|
destination_2.x(element_0);
|
|
3917
4224
|
}
|
|
3918
4225
|
}
|
|
@@ -3922,7 +4229,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
3922
4229
|
var _iterator__ex2g4s_3 = destination_2.t();
|
|
3923
4230
|
while (_iterator__ex2g4s_3.u()) {
|
|
3924
4231
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
3925
|
-
var tmp$ret$12 = toField_2(_this__u8e3s4, item_1, className([name, 'Parameter', item_1.
|
|
4232
|
+
var tmp$ret$12 = toField_2(_this__u8e3s4, item_1, className([name, 'Parameter', item_1.j3a_1]));
|
|
3926
4233
|
destination_3.x(tmp$ret$12);
|
|
3927
4234
|
}
|
|
3928
4235
|
var query = destination_3;
|
|
@@ -3932,7 +4239,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
3932
4239
|
var _iterator__ex2g4s_4 = parameters.t();
|
|
3933
4240
|
while (_iterator__ex2g4s_4.u()) {
|
|
3934
4241
|
var element_1 = _iterator__ex2g4s_4.v();
|
|
3935
|
-
if (element_1.
|
|
4242
|
+
if (element_1.h3a_1.equals(OpenAPIV3ParameterLocation_HEADER_getInstance())) {
|
|
3936
4243
|
destination_4.x(element_1);
|
|
3937
4244
|
}
|
|
3938
4245
|
}
|
|
@@ -3942,11 +4249,11 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
3942
4249
|
var _iterator__ex2g4s_5 = destination_4.t();
|
|
3943
4250
|
while (_iterator__ex2g4s_5.u()) {
|
|
3944
4251
|
var item_2 = _iterator__ex2g4s_5.v();
|
|
3945
|
-
var tmp$ret$18 = toField_2(_this__u8e3s4, item_2, className([name, 'Parameter', item_2.
|
|
4252
|
+
var tmp$ret$18 = toField_2(_this__u8e3s4, item_2, className([name, 'Parameter', item_2.j3a_1]));
|
|
3946
4253
|
destination_5.x(tmp$ret$18);
|
|
3947
4254
|
}
|
|
3948
4255
|
var headers = destination_5;
|
|
3949
|
-
var tmp1_safe_receiver = operation_0.
|
|
4256
|
+
var tmp1_safe_receiver = operation_0.p3a_1;
|
|
3950
4257
|
var tmp;
|
|
3951
4258
|
if (tmp1_safe_receiver == null) {
|
|
3952
4259
|
tmp = null;
|
|
@@ -3961,7 +4268,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
3961
4268
|
} else {
|
|
3962
4269
|
// Inline function 'kotlin.let' call
|
|
3963
4270
|
var isNullable = false;
|
|
3964
|
-
var tmp0_safe_receiver = tmp2_safe_receiver.
|
|
4271
|
+
var tmp0_safe_receiver = tmp2_safe_receiver.f3b_1;
|
|
3965
4272
|
var tmp_1;
|
|
3966
4273
|
if (tmp0_safe_receiver == null) {
|
|
3967
4274
|
tmp_1 = null;
|
|
@@ -3974,10 +4281,10 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
3974
4281
|
while (_iterator__ex2g4s_6.u()) {
|
|
3975
4282
|
var item_3 = _iterator__ex2g4s_6.v();
|
|
3976
4283
|
// Inline function 'kotlin.collections.component1' call
|
|
3977
|
-
var mediaType = item_3.k1().
|
|
4284
|
+
var mediaType = item_3.k1().s2v_1;
|
|
3978
4285
|
// Inline function 'kotlin.collections.component2' call
|
|
3979
4286
|
var mediaObject = item_3.l1();
|
|
3980
|
-
var schema = mediaObject.
|
|
4287
|
+
var schema = mediaObject.l3b_1;
|
|
3981
4288
|
var tmp_2;
|
|
3982
4289
|
if (schema instanceof OpenAPIV3Reference) {
|
|
3983
4290
|
tmp_2 = toReference_1(_this__u8e3s4, schema, isNullable);
|
|
@@ -4011,7 +4318,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4011
4318
|
var tmp3_elvis_lhs = tmp_0;
|
|
4012
4319
|
var requests = tmp3_elvis_lhs == null ? listOf(new Request(null)) : tmp3_elvis_lhs;
|
|
4013
4320
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4014
|
-
var tmp0_elvis_lhs_0 = operation_0.
|
|
4321
|
+
var tmp0_elvis_lhs_0 = operation_0.q3a_1;
|
|
4015
4322
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4016
4323
|
var tmp0_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
4017
4324
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -4021,18 +4328,18 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4021
4328
|
while (_iterator__ex2g4s_7.u()) {
|
|
4022
4329
|
var element_2 = _iterator__ex2g4s_7.v();
|
|
4023
4330
|
// Inline function 'kotlin.collections.component1' call
|
|
4024
|
-
var status = element_2.k1().
|
|
4331
|
+
var status = element_2.k1().k2v_1;
|
|
4025
4332
|
// Inline function 'kotlin.collections.component2' call
|
|
4026
4333
|
var res = element_2.l1();
|
|
4027
4334
|
// Inline function 'kotlin.let' call
|
|
4028
4335
|
var response = resolve_5(_this__u8e3s4, res);
|
|
4029
4336
|
var tmp_4;
|
|
4030
4337
|
// Inline function 'kotlin.collections.isNullOrEmpty' call
|
|
4031
|
-
var this_1 = response.
|
|
4338
|
+
var this_1 = response.s3b_1;
|
|
4032
4339
|
if (this_1 == null || this_1.r()) {
|
|
4033
|
-
var tmp1_annotations = toDescriptionAnnotationList(response.
|
|
4340
|
+
var tmp1_annotations = plus_0(toDescriptionAnnotationList(response.t3b_1), toLinkAnnotationList(_this__u8e3s4, response.v3b_1));
|
|
4034
4341
|
var tmp2_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4035
|
-
var tmp0_safe_receiver_0 = response.
|
|
4342
|
+
var tmp0_safe_receiver_0 = response.u3b_1;
|
|
4036
4343
|
var tmp_5;
|
|
4037
4344
|
if (tmp0_safe_receiver_0 == null) {
|
|
4038
4345
|
tmp_5 = null;
|
|
@@ -4054,7 +4361,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4054
4361
|
var tmp3_headers = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
4055
4362
|
tmp_4 = listOf(new Response(tmp2_status, tmp3_headers, null, tmp1_annotations));
|
|
4056
4363
|
} else {
|
|
4057
|
-
var tmp4_safe_receiver = response.
|
|
4364
|
+
var tmp4_safe_receiver = response.s3b_1;
|
|
4058
4365
|
var tmp_6;
|
|
4059
4366
|
if (tmp4_safe_receiver == null) {
|
|
4060
4367
|
tmp_6 = null;
|
|
@@ -4067,10 +4374,10 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4067
4374
|
while (_iterator__ex2g4s_9.u()) {
|
|
4068
4375
|
var item_5 = _iterator__ex2g4s_9.v();
|
|
4069
4376
|
// Inline function 'kotlin.collections.component1' call
|
|
4070
|
-
var contentType = item_5.k1().
|
|
4377
|
+
var contentType = item_5.k1().s2v_1;
|
|
4071
4378
|
// Inline function 'kotlin.collections.component2' call
|
|
4072
4379
|
var media = item_5.l1();
|
|
4073
|
-
var tmp0_safe_receiver_1 = media.
|
|
4380
|
+
var tmp0_safe_receiver_1 = media.l3b_1;
|
|
4074
4381
|
var tmp_7;
|
|
4075
4382
|
if (tmp0_safe_receiver_1 == null) {
|
|
4076
4383
|
tmp_7 = null;
|
|
@@ -4079,11 +4386,11 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4079
4386
|
tmp_7 = resolve_7(_this__u8e3s4, tmp0_safe_receiver_1);
|
|
4080
4387
|
}
|
|
4081
4388
|
var tmp1_safe_receiver_0 = tmp_7;
|
|
4082
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
4389
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.f38_1;
|
|
4083
4390
|
var isNullable_0 = tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs;
|
|
4084
|
-
var tmp4_annotations = toDescriptionAnnotationList(response.
|
|
4391
|
+
var tmp4_annotations = plus_0(toDescriptionAnnotationList(response.t3b_1), toLinkAnnotationList(_this__u8e3s4, response.v3b_1));
|
|
4085
4392
|
var tmp5_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4086
|
-
var tmp3_safe_receiver = response.
|
|
4393
|
+
var tmp3_safe_receiver = response.u3b_1;
|
|
4087
4394
|
var tmp_8;
|
|
4088
4395
|
if (tmp3_safe_receiver == null) {
|
|
4089
4396
|
tmp_8 = null;
|
|
@@ -4104,7 +4411,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4104
4411
|
var tmp0_elvis_lhs_2 = tmp_8;
|
|
4105
4412
|
var tmp6_headers = tmp0_elvis_lhs_2 == null ? emptyList() : tmp0_elvis_lhs_2;
|
|
4106
4413
|
var tmp_9 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
4107
|
-
var schema_0 = media.
|
|
4414
|
+
var schema_0 = media.l3b_1;
|
|
4108
4415
|
var tmp_10;
|
|
4109
4416
|
if (schema_0 instanceof OpenAPIV3Reference) {
|
|
4110
4417
|
tmp_10 = toReference_1(_this__u8e3s4, schema_0, isNullable_0);
|
|
@@ -4132,7 +4439,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4132
4439
|
addAll(destination_7, list);
|
|
4133
4440
|
}
|
|
4134
4441
|
var responses = destination_7;
|
|
4135
|
-
var tmp$ret$61 = new Endpoint(null, toDescriptionAnnotationList(operation_0.
|
|
4442
|
+
var tmp$ret$61 = new Endpoint(null, toDescriptionAnnotationList(operation_0.u3a_1), new DefinitionIdentifier(name), method_0, segments, query, headers, requests, responses);
|
|
4136
4443
|
destination_1.x(tmp$ret$61);
|
|
4137
4444
|
}
|
|
4138
4445
|
var list_0 = destination_1;
|
|
@@ -4150,9 +4457,9 @@ function parseResponseBody_0(_this__u8e3s4) {
|
|
|
4150
4457
|
return flatMapResponses(_this__u8e3s4, parseResponseBody$lambda_0(_this__u8e3s4));
|
|
4151
4458
|
}
|
|
4152
4459
|
function parseDefinitions_0(_this__u8e3s4) {
|
|
4153
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
4460
|
+
var tmp0_safe_receiver = _this__u8e3s4.r36_1;
|
|
4154
4461
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4155
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4462
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s37_1;
|
|
4156
4463
|
// Inline function 'kotlin.collections.filter' call
|
|
4157
4464
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4158
4465
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -4164,7 +4471,7 @@ function parseDefinitions_0(_this__u8e3s4) {
|
|
|
4164
4471
|
var s = element.l1();
|
|
4165
4472
|
var tmp;
|
|
4166
4473
|
if (s instanceof OpenAPIV3Schema) {
|
|
4167
|
-
var tmp0_subject = s.
|
|
4474
|
+
var tmp0_subject = s.e39_1;
|
|
4168
4475
|
var tmp_0;
|
|
4169
4476
|
if (tmp0_subject instanceof OpenAPIV3Boolean) {
|
|
4170
4477
|
tmp_0 = true;
|
|
@@ -4270,7 +4577,7 @@ function toSegments_0(_this__u8e3s4, path, parameters, operation, method) {
|
|
|
4270
4577
|
var _iterator__ex2g4s_1 = parameters.t();
|
|
4271
4578
|
while (_iterator__ex2g4s_1.u()) {
|
|
4272
4579
|
var element_0 = _iterator__ex2g4s_1.v();
|
|
4273
|
-
if (element_0.
|
|
4580
|
+
if (element_0.j3a_1 === param) {
|
|
4274
4581
|
tmp$ret$5 = element_0;
|
|
4275
4582
|
break $l$block;
|
|
4276
4583
|
}
|
|
@@ -4279,7 +4586,7 @@ function toSegments_0(_this__u8e3s4, path, parameters, operation, method) {
|
|
|
4279
4586
|
}
|
|
4280
4587
|
|
|
4281
4588
|
var tmp2_safe_receiver = tmp$ret$5;
|
|
4282
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
4589
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.i3a_1;
|
|
4283
4590
|
var tmp_0;
|
|
4284
4591
|
if (tmp3_safe_receiver == null) {
|
|
4285
4592
|
tmp_0 = null;
|
|
@@ -4330,15 +4637,15 @@ function toSegments_0(_this__u8e3s4, path, parameters, operation, method) {
|
|
|
4330
4637
|
return destination_0;
|
|
4331
4638
|
}
|
|
4332
4639
|
function toField_2(_this__u8e3s4, parameter, name) {
|
|
4333
|
-
var tmp0_elvis_lhs = parameter.
|
|
4640
|
+
var tmp0_elvis_lhs = parameter.y39_1;
|
|
4334
4641
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
4335
|
-
var s = parameter.
|
|
4642
|
+
var s = parameter.i3a_1;
|
|
4336
4643
|
var tmp;
|
|
4337
4644
|
if (s instanceof OpenAPIV3Reference) {
|
|
4338
4645
|
tmp = toReference_1(_this__u8e3s4, s, isNullable);
|
|
4339
4646
|
} else {
|
|
4340
4647
|
if (s instanceof OpenAPIV3Schema) {
|
|
4341
|
-
tmp = toReference_2(_this__u8e3s4, s, isNullable, name + (equals(s.
|
|
4648
|
+
tmp = toReference_2(_this__u8e3s4, s, isNullable, name + (equals(s.m38_1, OpenAPIV3Type_ARRAY_getInstance()) ? 'Array' : ''));
|
|
4342
4649
|
} else {
|
|
4343
4650
|
if (s == null) {
|
|
4344
4651
|
tmp = new Primitive(new String_0(null), isNullable);
|
|
@@ -4349,8 +4656,8 @@ function toField_2(_this__u8e3s4, parameter, name) {
|
|
|
4349
4656
|
}
|
|
4350
4657
|
// Inline function 'kotlin.let' call
|
|
4351
4658
|
var it = tmp;
|
|
4352
|
-
var tmp0_identifier = new FieldIdentifier(parameter.
|
|
4353
|
-
var tmp1_annotations = toDescriptionAnnotationList(parameter.
|
|
4659
|
+
var tmp0_identifier = new FieldIdentifier(parameter.j3a_1);
|
|
4660
|
+
var tmp1_annotations = toDescriptionAnnotationList(parameter.x39_1);
|
|
4354
4661
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
4355
4662
|
}
|
|
4356
4663
|
function resolve_4(_this__u8e3s4, requestBodyOrReference) {
|
|
@@ -4372,18 +4679,18 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4372
4679
|
var referencingObject = destruct.ne();
|
|
4373
4680
|
var schema = destruct.oe();
|
|
4374
4681
|
var tmp;
|
|
4375
|
-
if (exists_0(schema.
|
|
4376
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4682
|
+
if (exists_0(schema.e39_1)) {
|
|
4683
|
+
var additionalProperties = ensureNotNull(schema.e39_1);
|
|
4377
4684
|
var tmp_0;
|
|
4378
4685
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
4379
4686
|
tmp_0 = new Dict(new Any(isNullable), false);
|
|
4380
4687
|
} else {
|
|
4381
4688
|
if (additionalProperties instanceof OpenAPIV3Reference) {
|
|
4382
|
-
var tmp0_elvis_lhs = schema.
|
|
4689
|
+
var tmp0_elvis_lhs = schema.f38_1;
|
|
4383
4690
|
tmp_0 = toDict(toReference_1(_this__u8e3s4, additionalProperties, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs), isNullable);
|
|
4384
4691
|
} else {
|
|
4385
4692
|
if (additionalProperties instanceof OpenAPIV3Schema) {
|
|
4386
|
-
var tmp1_elvis_lhs = schema.
|
|
4693
|
+
var tmp1_elvis_lhs = schema.f38_1;
|
|
4387
4694
|
tmp_0 = toDict(toReference_2(_this__u8e3s4, additionalProperties, tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs, getReference(reference)), false);
|
|
4388
4695
|
} else {
|
|
4389
4696
|
noWhenBranchMatchedException();
|
|
@@ -4391,24 +4698,24 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4391
4698
|
}
|
|
4392
4699
|
}
|
|
4393
4700
|
tmp = tmp_0;
|
|
4394
|
-
} else if (!(schema.
|
|
4701
|
+
} else if (!(schema.a39_1 == null)) {
|
|
4395
4702
|
tmp = new Custom(sanitize(className([getReference(referencingObject)])), isNullable);
|
|
4396
|
-
} else if (isPrimitive_0(schema.
|
|
4703
|
+
} else if (isPrimitive_0(schema.m38_1)) {
|
|
4397
4704
|
tmp = new Primitive(toPrimitive_0(schema), isNullable);
|
|
4398
|
-
} else if (equals(schema.
|
|
4399
|
-
var items = schema.
|
|
4705
|
+
} else if (equals(schema.m38_1, OpenAPIV3Type_ARRAY_getInstance())) {
|
|
4706
|
+
var items = schema.b39_1;
|
|
4400
4707
|
var tmp_1;
|
|
4401
4708
|
if (items instanceof OpenAPIV3Reference) {
|
|
4402
|
-
var tmp2_elvis_lhs = schema.
|
|
4709
|
+
var tmp2_elvis_lhs = schema.f38_1;
|
|
4403
4710
|
tmp_1 = toIterable(toReference_1(_this__u8e3s4, items, tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs), isNullable);
|
|
4404
4711
|
} else {
|
|
4405
4712
|
if (items instanceof OpenAPIV3Schema) {
|
|
4406
4713
|
var tmp_2 = sanitize(className([getReference(referencingObject), 'Array']));
|
|
4407
|
-
var tmp3_elvis_lhs = schema.
|
|
4714
|
+
var tmp3_elvis_lhs = schema.f38_1;
|
|
4408
4715
|
tmp_1 = toIterable(new Custom(tmp_2, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs), isNullable);
|
|
4409
4716
|
} else {
|
|
4410
4717
|
if (items == null) {
|
|
4411
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.
|
|
4718
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.l3c_1);
|
|
4412
4719
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4413
4720
|
} else {
|
|
4414
4721
|
noWhenBranchMatchedException();
|
|
@@ -4424,15 +4731,15 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4424
4731
|
function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
4425
4732
|
name = name === VOID ? '' : name;
|
|
4426
4733
|
var tmp;
|
|
4427
|
-
if (equals(schema.
|
|
4428
|
-
var items = schema.
|
|
4734
|
+
if (equals(schema.m38_1, OpenAPIV3Type_ARRAY_getInstance())) {
|
|
4735
|
+
var items = schema.b39_1;
|
|
4429
4736
|
var tmp_0;
|
|
4430
4737
|
if (items instanceof OpenAPIV3Reference) {
|
|
4431
|
-
var tmp0_elvis_lhs = schema.
|
|
4738
|
+
var tmp0_elvis_lhs = schema.f38_1;
|
|
4432
4739
|
tmp_0 = toIterable(toReference_1(_this__u8e3s4, items, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs), isNullable);
|
|
4433
4740
|
} else {
|
|
4434
4741
|
if (items instanceof OpenAPIV3Schema) {
|
|
4435
|
-
var tmp1_elvis_lhs = schema.
|
|
4742
|
+
var tmp1_elvis_lhs = schema.f38_1;
|
|
4436
4743
|
tmp_0 = toIterable(toReference_2(_this__u8e3s4, items, tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs, name), isNullable);
|
|
4437
4744
|
} else {
|
|
4438
4745
|
if (items == null) {
|
|
@@ -4444,21 +4751,21 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4444
4751
|
}
|
|
4445
4752
|
}
|
|
4446
4753
|
tmp = tmp_0;
|
|
4447
|
-
} else if (!(schema.
|
|
4448
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4754
|
+
} else if (!(schema.e39_1 == null)) {
|
|
4755
|
+
var additionalProperties = ensureNotNull(schema.e39_1);
|
|
4449
4756
|
var tmp_1;
|
|
4450
4757
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
4451
|
-
var tmp2_elvis_lhs = schema.
|
|
4758
|
+
var tmp2_elvis_lhs = schema.f38_1;
|
|
4452
4759
|
tmp_1 = new Dict(new Any(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs), isNullable);
|
|
4453
4760
|
} else {
|
|
4454
4761
|
if (additionalProperties instanceof OpenAPIV3Reference) {
|
|
4455
|
-
var tmp3_elvis_lhs = schema.
|
|
4762
|
+
var tmp3_elvis_lhs = schema.f38_1;
|
|
4456
4763
|
tmp_1 = toDict(toReference_1(_this__u8e3s4, additionalProperties, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs), isNullable);
|
|
4457
4764
|
} else {
|
|
4458
4765
|
if (additionalProperties instanceof OpenAPIV3Schema) {
|
|
4459
4766
|
// Inline function 'kotlin.takeIf' call
|
|
4460
4767
|
var tmp_2;
|
|
4461
|
-
if (isPrimitive_0(additionalProperties.
|
|
4768
|
+
if (isPrimitive_0(additionalProperties.m38_1) || !(additionalProperties.d39_1 == null)) {
|
|
4462
4769
|
tmp_2 = additionalProperties;
|
|
4463
4770
|
} else {
|
|
4464
4771
|
tmp_2 = null;
|
|
@@ -4469,13 +4776,13 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4469
4776
|
tmp_3 = null;
|
|
4470
4777
|
} else {
|
|
4471
4778
|
// Inline function 'kotlin.let' call
|
|
4472
|
-
var tmp0_elvis_lhs_0 = schema.
|
|
4779
|
+
var tmp0_elvis_lhs_0 = schema.f38_1;
|
|
4473
4780
|
tmp_3 = toDict(toReference_2(_this__u8e3s4, tmp4_safe_receiver, tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0, name), isNullable);
|
|
4474
4781
|
}
|
|
4475
4782
|
var tmp5_elvis_lhs = tmp_3;
|
|
4476
4783
|
var tmp_4;
|
|
4477
4784
|
if (tmp5_elvis_lhs == null) {
|
|
4478
|
-
var tmp6_elvis_lhs = schema.
|
|
4785
|
+
var tmp6_elvis_lhs = schema.f38_1;
|
|
4479
4786
|
tmp_4 = new Dict(new Any(tmp6_elvis_lhs == null ? false : tmp6_elvis_lhs), isNullable);
|
|
4480
4787
|
} else {
|
|
4481
4788
|
tmp_4 = tmp5_elvis_lhs;
|
|
@@ -4487,12 +4794,12 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4487
4794
|
}
|
|
4488
4795
|
}
|
|
4489
4796
|
tmp = tmp_1;
|
|
4490
|
-
} else if (!(schema.
|
|
4797
|
+
} else if (!(schema.a39_1 == null)) {
|
|
4491
4798
|
// Inline function 'kotlin.let' call
|
|
4492
4799
|
var it = new Custom(sanitize(name), isNullable);
|
|
4493
|
-
tmp = !(schema.
|
|
4800
|
+
tmp = !(schema.e39_1 == null) ? new Dict(it, false) : it;
|
|
4494
4801
|
} else {
|
|
4495
|
-
var tmp7_subject = schema.
|
|
4802
|
+
var tmp7_subject = schema.m38_1;
|
|
4496
4803
|
var tmp_5;
|
|
4497
4804
|
switch (tmp7_subject == null ? -1 : tmp7_subject.b3_1) {
|
|
4498
4805
|
case 0:
|
|
@@ -4502,33 +4809,33 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4502
4809
|
// Inline function 'kotlin.let' call
|
|
4503
4810
|
|
|
4504
4811
|
var it_0 = new Primitive(toPrimitive_0(schema), isNullable);
|
|
4505
|
-
tmp_5 = !(schema.
|
|
4812
|
+
tmp_5 = !(schema.e39_1 == null) ? new Dict(it_0, false) : it_0;
|
|
4506
4813
|
break;
|
|
4507
4814
|
case -1:
|
|
4508
4815
|
case 5:
|
|
4509
4816
|
var tmp_6;
|
|
4510
|
-
var tmp_7 = schema.
|
|
4817
|
+
var tmp_7 = schema.e39_1;
|
|
4511
4818
|
if (!(tmp_7 == null) ? isInterface(tmp_7, BooleanValue) : false) {
|
|
4512
4819
|
// Inline function 'kotlin.let' call
|
|
4513
4820
|
var it_1 = new Any(false);
|
|
4514
|
-
tmp_6 = !(schema.
|
|
4821
|
+
tmp_6 = !(schema.e39_1 == null) ? new Dict(it_1, false) : it_1;
|
|
4515
4822
|
} else {
|
|
4516
4823
|
// Inline function 'kotlin.let' call
|
|
4517
4824
|
var it_2 = new Custom(sanitize(name), isNullable);
|
|
4518
|
-
tmp_6 = !(schema.
|
|
4825
|
+
tmp_6 = !(schema.e39_1 == null) ? new Dict(it_2, false) : it_2;
|
|
4519
4826
|
}
|
|
4520
4827
|
|
|
4521
4828
|
tmp_5 = tmp_6;
|
|
4522
4829
|
break;
|
|
4523
4830
|
case 4:
|
|
4524
|
-
var it_3 = schema.
|
|
4831
|
+
var it_3 = schema.b39_1;
|
|
4525
4832
|
var tmp_8;
|
|
4526
4833
|
if (it_3 instanceof OpenAPIV3Reference) {
|
|
4527
|
-
var tmp8_elvis_lhs = schema.
|
|
4834
|
+
var tmp8_elvis_lhs = schema.f38_1;
|
|
4528
4835
|
tmp_8 = toIterable(toReference_1(_this__u8e3s4, it_3, tmp8_elvis_lhs == null ? false : tmp8_elvis_lhs), isNullable);
|
|
4529
4836
|
} else {
|
|
4530
4837
|
if (it_3 instanceof OpenAPIV3Schema) {
|
|
4531
|
-
var tmp9_elvis_lhs = schema.
|
|
4838
|
+
var tmp9_elvis_lhs = schema.f38_1;
|
|
4532
4839
|
tmp_8 = toIterable(toReference_2(_this__u8e3s4, it_3, tmp9_elvis_lhs == null ? false : tmp9_elvis_lhs, name), isNullable);
|
|
4533
4840
|
} else {
|
|
4534
4841
|
if (it_3 == null) {
|
|
@@ -4563,10 +4870,31 @@ function resolve_5(_this__u8e3s4, responseOrOpenAPIV3Reference) {
|
|
|
4563
4870
|
}
|
|
4564
4871
|
return tmp;
|
|
4565
4872
|
}
|
|
4873
|
+
function toLinkAnnotationList(_this__u8e3s4, links) {
|
|
4874
|
+
var tmp1_safe_receiver = links == null ? null : links.z3b_1;
|
|
4875
|
+
var tmp;
|
|
4876
|
+
if (tmp1_safe_receiver == null) {
|
|
4877
|
+
tmp = null;
|
|
4878
|
+
} else {
|
|
4879
|
+
// Inline function 'kotlin.collections.map' call
|
|
4880
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
4881
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_safe_receiver, 10));
|
|
4882
|
+
var _iterator__ex2g4s = tmp1_safe_receiver.t();
|
|
4883
|
+
while (_iterator__ex2g4s.u()) {
|
|
4884
|
+
var item = _iterator__ex2g4s.v();
|
|
4885
|
+
var tmp$ret$0 = toAnnotation(toLinkInfo_0(resolve_8(_this__u8e3s4, item.l1()), item.k1()));
|
|
4886
|
+
destination.x(tmp$ret$0);
|
|
4887
|
+
}
|
|
4888
|
+
tmp = destination;
|
|
4889
|
+
}
|
|
4890
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
4891
|
+
var tmp0_elvis_lhs = tmp;
|
|
4892
|
+
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
4893
|
+
}
|
|
4566
4894
|
function toField_3(_this__u8e3s4, header, identifier, name) {
|
|
4567
|
-
var tmp0_elvis_lhs = header.
|
|
4895
|
+
var tmp0_elvis_lhs = header.q3c_1;
|
|
4568
4896
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
4569
|
-
var s = header.
|
|
4897
|
+
var s = header.w3c_1;
|
|
4570
4898
|
var tmp;
|
|
4571
4899
|
if (s instanceof OpenAPIV3Reference) {
|
|
4572
4900
|
tmp = toReference_1(_this__u8e3s4, s, isNullable);
|
|
@@ -4584,7 +4912,7 @@ function toField_3(_this__u8e3s4, header, identifier, name) {
|
|
|
4584
4912
|
// Inline function 'kotlin.let' call
|
|
4585
4913
|
var it = tmp;
|
|
4586
4914
|
var tmp0_identifier = new FieldIdentifier(identifier);
|
|
4587
|
-
var tmp1_annotations = toDescriptionAnnotationList(header.
|
|
4915
|
+
var tmp1_annotations = toDescriptionAnnotationList(header.p3c_1);
|
|
4588
4916
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
4589
4917
|
}
|
|
4590
4918
|
function resolve_6(_this__u8e3s4, headerOrReference) {
|
|
@@ -4628,19 +4956,19 @@ function flatten_1(_this__u8e3s4, schemaOrReference, name) {
|
|
|
4628
4956
|
}
|
|
4629
4957
|
function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
4630
4958
|
var tmp;
|
|
4631
|
-
if (exists_0(schemaObject.
|
|
4632
|
-
var tmp0_subject = schemaObject.
|
|
4959
|
+
if (exists_0(schemaObject.e39_1)) {
|
|
4960
|
+
var tmp0_subject = schemaObject.e39_1;
|
|
4633
4961
|
var tmp_0;
|
|
4634
4962
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
4635
4963
|
tmp_0 = emptyList();
|
|
4636
4964
|
} else {
|
|
4637
|
-
var tmp1_safe_receiver = schemaObject.
|
|
4965
|
+
var tmp1_safe_receiver = schemaObject.e39_1;
|
|
4638
4966
|
var tmp_1;
|
|
4639
4967
|
if (tmp1_safe_receiver == null) {
|
|
4640
4968
|
tmp_1 = null;
|
|
4641
4969
|
} else {
|
|
4642
4970
|
// Inline function 'kotlin.let' call
|
|
4643
|
-
tmp_1 =
|
|
4971
|
+
tmp_1 = resolve_9(_this__u8e3s4, tmp1_safe_receiver);
|
|
4644
4972
|
}
|
|
4645
4973
|
var tmp2_safe_receiver = tmp_1;
|
|
4646
4974
|
var tmp_2;
|
|
@@ -4649,7 +4977,7 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
4649
4977
|
} else {
|
|
4650
4978
|
// Inline function 'kotlin.takeIf' call
|
|
4651
4979
|
var tmp_3;
|
|
4652
|
-
if (!(tmp2_safe_receiver.
|
|
4980
|
+
if (!(tmp2_safe_receiver.d39_1 == null)) {
|
|
4653
4981
|
tmp_3 = tmp2_safe_receiver;
|
|
4654
4982
|
} else {
|
|
4655
4983
|
tmp_3 = null;
|
|
@@ -4668,11 +4996,11 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
4668
4996
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
4669
4997
|
}
|
|
4670
4998
|
tmp = tmp_0;
|
|
4671
|
-
} else if (!(schemaObject.
|
|
4672
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
4999
|
+
} else if (!(schemaObject.i38_1 == null) || !(schemaObject.j38_1 == null)) {
|
|
5000
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.t38_1);
|
|
4673
5001
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
4674
5002
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4675
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
5003
|
+
var tmp0_elvis_lhs = schemaObject.i38_1;
|
|
4676
5004
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
4677
5005
|
var this_0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
4678
5006
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
@@ -4699,7 +5027,7 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
4699
5027
|
}
|
|
4700
5028
|
var tmp_8 = listOf(new Union(null, tmp_5, tmp_6, toSet(destination)));
|
|
4701
5029
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4702
|
-
var tmp0_elvis_lhs_0 = schemaObject.
|
|
5030
|
+
var tmp0_elvis_lhs_0 = schemaObject.i38_1;
|
|
4703
5031
|
// Inline function 'kotlin.collections.flatMapIndexed' call
|
|
4704
5032
|
var tmp0 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
4705
5033
|
// Inline function 'kotlin.collections.flatMapIndexedTo' call
|
|
@@ -4725,11 +5053,11 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
4725
5053
|
addAll(destination_0, list);
|
|
4726
5054
|
}
|
|
4727
5055
|
tmp = plus_0(tmp_8, destination_0);
|
|
4728
|
-
} else if (!(schemaObject.
|
|
4729
|
-
var tmp_10 = toDescriptionAnnotationList(schemaObject.
|
|
5056
|
+
} else if (!(schemaObject.c39_1 == null)) {
|
|
5057
|
+
var tmp_10 = toDescriptionAnnotationList(schemaObject.t38_1);
|
|
4730
5058
|
var tmp_11 = new DefinitionIdentifier(sanitize(name));
|
|
4731
5059
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4732
|
-
var tmp0_elvis_lhs_1 = schemaObject.
|
|
5060
|
+
var tmp0_elvis_lhs_1 = schemaObject.c39_1;
|
|
4733
5061
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4734
5062
|
var tmp0_0 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
4735
5063
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -4753,7 +5081,7 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
4753
5081
|
}
|
|
4754
5082
|
var tmp_12 = listOf(new Type(null, tmp_10, tmp_11, new Shape(list_1), emptyList()));
|
|
4755
5083
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4756
|
-
var tmp0_1 = ensureNotNull(schemaObject.
|
|
5084
|
+
var tmp0_1 = ensureNotNull(schemaObject.c39_1);
|
|
4757
5085
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4758
5086
|
var destination_2 = ArrayList_init_$Create$();
|
|
4759
5087
|
var _iterator__ex2g4s_3 = tmp0_1.t();
|
|
@@ -4762,12 +5090,12 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
4762
5090
|
var tmp_13;
|
|
4763
5091
|
if (element_1 instanceof OpenAPIV3Reference) {
|
|
4764
5092
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4765
|
-
var tmp0_elvis_lhs_2 = resolveOpenAPIV3Schema(_this__u8e3s4, element_1).xe_1.
|
|
5093
|
+
var tmp0_elvis_lhs_2 = resolveOpenAPIV3Schema(_this__u8e3s4, element_1).xe_1.d39_1;
|
|
4766
5094
|
tmp_13 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
4767
5095
|
} else {
|
|
4768
5096
|
if (element_1 instanceof OpenAPIV3Schema) {
|
|
4769
5097
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4770
|
-
var tmp0_elvis_lhs_3 = element_1.
|
|
5098
|
+
var tmp0_elvis_lhs_3 = element_1.d39_1;
|
|
4771
5099
|
tmp_13 = tmp0_elvis_lhs_3 == null ? emptyMap() : tmp0_elvis_lhs_3;
|
|
4772
5100
|
} else {
|
|
4773
5101
|
noWhenBranchMatchedException();
|
|
@@ -4792,29 +5120,29 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
4792
5120
|
addAll(destination_2, list_3);
|
|
4793
5121
|
}
|
|
4794
5122
|
tmp = plus_0(tmp_12, destination_2);
|
|
4795
|
-
} else if (!(schemaObject.
|
|
5123
|
+
} else if (!(schemaObject.a39_1 == null)) {
|
|
4796
5124
|
// Inline function 'kotlin.collections.map' call
|
|
4797
|
-
var this_1 = ensureNotNull(schemaObject.
|
|
5125
|
+
var this_1 = ensureNotNull(schemaObject.a39_1);
|
|
4798
5126
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4799
5127
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
4800
5128
|
var _iterator__ex2g4s_5 = this_1.t();
|
|
4801
5129
|
while (_iterator__ex2g4s_5.u()) {
|
|
4802
5130
|
var item_0 = _iterator__ex2g4s_5.v();
|
|
4803
|
-
var tmp$ret$31 = item_0.
|
|
5131
|
+
var tmp$ret$31 = item_0.hx();
|
|
4804
5132
|
destination_4.x(tmp$ret$31);
|
|
4805
5133
|
}
|
|
4806
5134
|
// Inline function 'kotlin.let' call
|
|
4807
5135
|
var it = toSet(destination_4);
|
|
4808
|
-
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.
|
|
5136
|
+
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.t38_1), new DefinitionIdentifier(name), it));
|
|
4809
5137
|
} else {
|
|
4810
|
-
var tmp5_subject = schemaObject.
|
|
5138
|
+
var tmp5_subject = schemaObject.m38_1;
|
|
4811
5139
|
var tmp_14;
|
|
4812
5140
|
switch (tmp5_subject == null ? -1 : tmp5_subject.b3_1) {
|
|
4813
5141
|
case -1:
|
|
4814
5142
|
case 5:
|
|
4815
5143
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4816
5144
|
|
|
4817
|
-
var tmp0_elvis_lhs_4 = schemaObject.
|
|
5145
|
+
var tmp0_elvis_lhs_4 = schemaObject.d39_1;
|
|
4818
5146
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4819
5147
|
|
|
4820
5148
|
var tmp0_3 = tmp0_elvis_lhs_4 == null ? emptyMap() : tmp0_elvis_lhs_4;
|
|
@@ -4835,11 +5163,11 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
4835
5163
|
}
|
|
4836
5164
|
|
|
4837
5165
|
var fields = destination_5;
|
|
4838
|
-
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.
|
|
5166
|
+
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.t38_1), new DefinitionIdentifier(name), new Shape(toField_4(_this__u8e3s4, schemaObject, name)), emptyList()));
|
|
4839
5167
|
tmp_14 = plus_0(schema, fields);
|
|
4840
5168
|
break;
|
|
4841
5169
|
case 4:
|
|
4842
|
-
var tmp6_safe_receiver = schemaObject.
|
|
5170
|
+
var tmp6_safe_receiver = schemaObject.b39_1;
|
|
4843
5171
|
var tmp_15;
|
|
4844
5172
|
if (tmp6_safe_receiver == null) {
|
|
4845
5173
|
tmp_15 = null;
|
|
@@ -4871,7 +5199,7 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
4871
5199
|
}
|
|
4872
5200
|
function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
4873
5201
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4874
|
-
var tmp0_elvis_lhs = response.
|
|
5202
|
+
var tmp0_elvis_lhs = response.s3b_1;
|
|
4875
5203
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4876
5204
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4877
5205
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -4882,10 +5210,10 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
4882
5210
|
var element = _iterator__ex2g4s.v();
|
|
4883
5211
|
// Inline function 'kotlin.collections.component2' call
|
|
4884
5212
|
var mediaObject = element.l1();
|
|
4885
|
-
var schema = mediaObject.
|
|
5213
|
+
var schema = mediaObject.l3b_1;
|
|
4886
5214
|
var tmp;
|
|
4887
5215
|
if (schema instanceof OpenAPIV3Schema) {
|
|
4888
|
-
var tmp0_subject = schema.
|
|
5216
|
+
var tmp0_subject = schema.m38_1;
|
|
4889
5217
|
var tmp_0;
|
|
4890
5218
|
switch (tmp0_subject == null ? -1 : tmp0_subject.b3_1) {
|
|
4891
5219
|
case -1:
|
|
@@ -4893,7 +5221,7 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
4893
5221
|
tmp_0 = flatten_2(_this__u8e3s4, schema, className([name, _StatusCode___get_value__impl__we50mu(statusCode), 'ResponseBody']));
|
|
4894
5222
|
break;
|
|
4895
5223
|
case 4:
|
|
4896
|
-
var tmp1_safe_receiver = schema.
|
|
5224
|
+
var tmp1_safe_receiver = schema.b39_1;
|
|
4897
5225
|
var tmp_1;
|
|
4898
5226
|
if (tmp1_safe_receiver == null) {
|
|
4899
5227
|
tmp_1 = null;
|
|
@@ -4921,8 +5249,8 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
4921
5249
|
return destination;
|
|
4922
5250
|
}
|
|
4923
5251
|
function resolveOpenAPIV3Response(_this__u8e3s4, reference) {
|
|
4924
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
4925
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5252
|
+
var tmp0_safe_receiver = _this__u8e3s4.r36_1;
|
|
5253
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t37_1;
|
|
4926
5254
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
4927
5255
|
var tmp;
|
|
4928
5256
|
if (tmp2_safe_receiver == null) {
|
|
@@ -4944,7 +5272,7 @@ function resolveOpenAPIV3Response(_this__u8e3s4, reference) {
|
|
|
4944
5272
|
var tmp3_elvis_lhs = tmp;
|
|
4945
5273
|
var tmp_1;
|
|
4946
5274
|
if (tmp3_elvis_lhs == null) {
|
|
4947
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5275
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.l3c_1);
|
|
4948
5276
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4949
5277
|
} else {
|
|
4950
5278
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -4952,8 +5280,8 @@ function resolveOpenAPIV3Response(_this__u8e3s4, reference) {
|
|
|
4952
5280
|
return tmp_1;
|
|
4953
5281
|
}
|
|
4954
5282
|
function resolveOpenAPIV3Parameter(_this__u8e3s4, reference) {
|
|
4955
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
4956
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5283
|
+
var tmp0_safe_receiver = _this__u8e3s4.r36_1;
|
|
5284
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u37_1;
|
|
4957
5285
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
4958
5286
|
var tmp;
|
|
4959
5287
|
if (tmp2_safe_receiver == null) {
|
|
@@ -4975,8 +5303,8 @@ function resolveOpenAPIV3Parameter(_this__u8e3s4, reference) {
|
|
|
4975
5303
|
return tmp;
|
|
4976
5304
|
}
|
|
4977
5305
|
function resolveOpenAPIV3RequestBody(_this__u8e3s4, reference) {
|
|
4978
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
4979
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5306
|
+
var tmp0_safe_receiver = _this__u8e3s4.r36_1;
|
|
5307
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w37_1;
|
|
4980
5308
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
4981
5309
|
var tmp;
|
|
4982
5310
|
if (tmp2_safe_receiver == null) {
|
|
@@ -4998,7 +5326,7 @@ function resolveOpenAPIV3RequestBody(_this__u8e3s4, reference) {
|
|
|
4998
5326
|
var tmp3_elvis_lhs = tmp;
|
|
4999
5327
|
var tmp_1;
|
|
5000
5328
|
if (tmp3_elvis_lhs == null) {
|
|
5001
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5329
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.l3c_1);
|
|
5002
5330
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5003
5331
|
} else {
|
|
5004
5332
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5006,8 +5334,8 @@ function resolveOpenAPIV3RequestBody(_this__u8e3s4, reference) {
|
|
|
5006
5334
|
return tmp_1;
|
|
5007
5335
|
}
|
|
5008
5336
|
function resolveOpenAPIV3Schema(_this__u8e3s4, reference) {
|
|
5009
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5010
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5337
|
+
var tmp0_safe_receiver = _this__u8e3s4.r36_1;
|
|
5338
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s37_1;
|
|
5011
5339
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5012
5340
|
var tmp;
|
|
5013
5341
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5029,7 +5357,7 @@ function resolveOpenAPIV3Schema(_this__u8e3s4, reference) {
|
|
|
5029
5357
|
var tmp3_elvis_lhs = tmp;
|
|
5030
5358
|
var tmp_1;
|
|
5031
5359
|
if (tmp3_elvis_lhs == null) {
|
|
5032
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5360
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.l3c_1);
|
|
5033
5361
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5034
5362
|
} else {
|
|
5035
5363
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5084,17 +5412,17 @@ function isPrimitive_0(_this__u8e3s4) {
|
|
|
5084
5412
|
return tmp;
|
|
5085
5413
|
}
|
|
5086
5414
|
function toPrimitive_0(_this__u8e3s4) {
|
|
5087
|
-
var tmp0_subject = _this__u8e3s4.
|
|
5415
|
+
var tmp0_subject = _this__u8e3s4.m38_1;
|
|
5088
5416
|
var tmp;
|
|
5089
5417
|
switch (tmp0_subject == null ? -1 : tmp0_subject.b3_1) {
|
|
5090
5418
|
case 0:
|
|
5091
|
-
tmp = !(_this__u8e3s4.
|
|
5419
|
+
tmp = !(_this__u8e3s4.n39_1 == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.n39_1))) : _this__u8e3s4.g39_1 === 'binary' ? Bytes_instance : new String_0(null);
|
|
5092
5420
|
break;
|
|
5093
5421
|
case 2:
|
|
5094
|
-
tmp = new Integer(_this__u8e3s4.
|
|
5422
|
+
tmp = new Integer(_this__u8e3s4.g39_1 === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5095
5423
|
break;
|
|
5096
5424
|
case 1:
|
|
5097
|
-
tmp = new Number_0(_this__u8e3s4.
|
|
5425
|
+
tmp = new Number_0(_this__u8e3s4.g39_1 === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5098
5426
|
break;
|
|
5099
5427
|
case 3:
|
|
5100
5428
|
tmp = Boolean_instance;
|
|
@@ -5105,9 +5433,43 @@ function toPrimitive_0(_this__u8e3s4) {
|
|
|
5105
5433
|
}
|
|
5106
5434
|
return tmp;
|
|
5107
5435
|
}
|
|
5436
|
+
function toLinkInfo_0(_this__u8e3s4, name) {
|
|
5437
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
5438
|
+
var tmp0_elvis_lhs = _this__u8e3s4.f3c_1;
|
|
5439
|
+
// Inline function 'kotlin.collections.mapValues' call
|
|
5440
|
+
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
5441
|
+
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
5442
|
+
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.a1()));
|
|
5443
|
+
// Inline function 'kotlin.collections.associateByTo' call
|
|
5444
|
+
var _iterator__ex2g4s = this_0.j1().t();
|
|
5445
|
+
while (_iterator__ex2g4s.u()) {
|
|
5446
|
+
var element = _iterator__ex2g4s.v();
|
|
5447
|
+
var tmp = element.k1();
|
|
5448
|
+
var tmp$ret$2 = asLinkExpression(element.l1());
|
|
5449
|
+
destination.w2(tmp, tmp$ret$2);
|
|
5450
|
+
}
|
|
5451
|
+
var tmp_0 = destination;
|
|
5452
|
+
var tmp0_safe_receiver = _this__u8e3s4.g3c_1;
|
|
5453
|
+
var tmp_1 = tmp0_safe_receiver == null ? null : asLinkExpression(tmp0_safe_receiver);
|
|
5454
|
+
var tmp1_safe_receiver = _this__u8e3s4.i3c_1;
|
|
5455
|
+
return new LinkInfo(name, _this__u8e3s4.e3c_1, _this__u8e3s4.d3c_1, tmp_0, tmp_1, _this__u8e3s4.h3c_1, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.w2v_1);
|
|
5456
|
+
}
|
|
5457
|
+
function resolve_8(_this__u8e3s4, linkOrReference) {
|
|
5458
|
+
var tmp;
|
|
5459
|
+
if (linkOrReference instanceof OpenAPIV3Link) {
|
|
5460
|
+
tmp = linkOrReference;
|
|
5461
|
+
} else {
|
|
5462
|
+
if (linkOrReference instanceof OpenAPIV3Reference) {
|
|
5463
|
+
tmp = resolveOpenAPIV3Link(_this__u8e3s4, linkOrReference);
|
|
5464
|
+
} else {
|
|
5465
|
+
noWhenBranchMatchedException();
|
|
5466
|
+
}
|
|
5467
|
+
}
|
|
5468
|
+
return tmp;
|
|
5469
|
+
}
|
|
5108
5470
|
function resolveOpenAPIV3Header(_this__u8e3s4, reference) {
|
|
5109
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5110
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5471
|
+
var tmp0_safe_receiver = _this__u8e3s4.r36_1;
|
|
5472
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x37_1;
|
|
5111
5473
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5112
5474
|
var tmp;
|
|
5113
5475
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5129,14 +5491,14 @@ function resolveOpenAPIV3Header(_this__u8e3s4, reference) {
|
|
|
5129
5491
|
var tmp3_elvis_lhs = tmp;
|
|
5130
5492
|
var tmp_1;
|
|
5131
5493
|
if (tmp3_elvis_lhs == null) {
|
|
5132
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5494
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.l3c_1);
|
|
5133
5495
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5134
5496
|
} else {
|
|
5135
5497
|
tmp_1 = tmp3_elvis_lhs;
|
|
5136
5498
|
}
|
|
5137
5499
|
return tmp_1;
|
|
5138
5500
|
}
|
|
5139
|
-
function
|
|
5501
|
+
function resolve_9(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
5140
5502
|
var tmp;
|
|
5141
5503
|
if (schemaOrReferenceOrBoolean instanceof OpenAPIV3Schema) {
|
|
5142
5504
|
tmp = schemaOrReferenceOrBoolean;
|
|
@@ -5156,7 +5518,7 @@ function resolve_8(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
5156
5518
|
}
|
|
5157
5519
|
function toField_4(_this__u8e3s4, schema, name) {
|
|
5158
5520
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5159
|
-
var tmp0_elvis_lhs = schema.
|
|
5521
|
+
var tmp0_elvis_lhs = schema.d39_1;
|
|
5160
5522
|
// Inline function 'kotlin.collections.map' call
|
|
5161
5523
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
5162
5524
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -5169,14 +5531,14 @@ function toField_4(_this__u8e3s4, schema, name) {
|
|
|
5169
5531
|
var key = item.k1();
|
|
5170
5532
|
// Inline function 'kotlin.collections.component2' call
|
|
5171
5533
|
var value = item.l1();
|
|
5172
|
-
var tmp0_safe_receiver = schema.
|
|
5534
|
+
var tmp0_safe_receiver = schema.z38_1;
|
|
5173
5535
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u1(key);
|
|
5174
5536
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
5175
5537
|
var tmp;
|
|
5176
5538
|
if (value instanceof OpenAPIV3Schema) {
|
|
5177
5539
|
var tmp3_identifier = new FieldIdentifier(key);
|
|
5178
|
-
var tmp4_annotations = toDescriptionAnnotationList(value.
|
|
5179
|
-
var tmp5_reference = !(value.
|
|
5540
|
+
var tmp4_annotations = toDescriptionAnnotationList(value.t38_1);
|
|
5541
|
+
var tmp5_reference = !(value.a39_1 == null) ? toReference_2(_this__u8e3s4, value, isNullable, className([name, key])) : equals(value.m38_1, OpenAPIV3Type_ARRAY_getInstance()) ? toReference_2(_this__u8e3s4, value, isNullable, className([name, key, 'Array'])) : toReference_2(_this__u8e3s4, value, isNullable, className([name, key]));
|
|
5180
5542
|
tmp = new Field(tmp4_annotations, tmp3_identifier, tmp5_reference);
|
|
5181
5543
|
} else {
|
|
5182
5544
|
if (value instanceof OpenAPIV3Reference) {
|
|
@@ -5193,27 +5555,63 @@ function toField_4(_this__u8e3s4, schema, name) {
|
|
|
5193
5555
|
}
|
|
5194
5556
|
return destination;
|
|
5195
5557
|
}
|
|
5558
|
+
function asLinkExpression(_this__u8e3s4) {
|
|
5559
|
+
var tmp0_safe_receiver = _this__u8e3s4 instanceof JsonPrimitive_0 ? _this__u8e3s4 : null;
|
|
5560
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_contentOrNull(tmp0_safe_receiver);
|
|
5561
|
+
return tmp1_elvis_lhs == null ? toString(_this__u8e3s4) : tmp1_elvis_lhs;
|
|
5562
|
+
}
|
|
5563
|
+
function resolveOpenAPIV3Link(_this__u8e3s4, reference) {
|
|
5564
|
+
var tmp0_safe_receiver = _this__u8e3s4.r36_1;
|
|
5565
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z37_1;
|
|
5566
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5567
|
+
var tmp;
|
|
5568
|
+
if (tmp2_safe_receiver == null) {
|
|
5569
|
+
tmp = null;
|
|
5570
|
+
} else {
|
|
5571
|
+
// Inline function 'kotlin.let' call
|
|
5572
|
+
var tmp_0;
|
|
5573
|
+
if (tmp2_safe_receiver instanceof OpenAPIV3Link) {
|
|
5574
|
+
tmp_0 = tmp2_safe_receiver;
|
|
5575
|
+
} else {
|
|
5576
|
+
if (tmp2_safe_receiver instanceof OpenAPIV3Reference) {
|
|
5577
|
+
tmp_0 = resolveOpenAPIV3Link(_this__u8e3s4, tmp2_safe_receiver);
|
|
5578
|
+
} else {
|
|
5579
|
+
noWhenBranchMatchedException();
|
|
5580
|
+
}
|
|
5581
|
+
}
|
|
5582
|
+
tmp = tmp_0;
|
|
5583
|
+
}
|
|
5584
|
+
var tmp3_elvis_lhs = tmp;
|
|
5585
|
+
var tmp_1;
|
|
5586
|
+
if (tmp3_elvis_lhs == null) {
|
|
5587
|
+
var message = 'Cannot resolve link ref: ' + Ref__toString_impl_irb7zi(reference.l3c_1);
|
|
5588
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
5589
|
+
} else {
|
|
5590
|
+
tmp_1 = tmp3_elvis_lhs;
|
|
5591
|
+
}
|
|
5592
|
+
return tmp_1;
|
|
5593
|
+
}
|
|
5196
5594
|
function parseParameters$lambda_0($this_parseParameters) {
|
|
5197
5595
|
return function ($this$flatMapRequests) {
|
|
5198
|
-
var tmp = $this$flatMapRequests.
|
|
5199
|
-
var tmp_0 = resolveParameters_0($this_parseParameters, (tmp instanceof OpenAPIV3PathItem ? tmp : THROW_CCE()).
|
|
5200
|
-
var tmp_1 = $this$flatMapRequests.
|
|
5201
|
-
var parameters = plus_0(tmp_0, resolveParameters_0($this_parseParameters, (tmp_1 instanceof OpenAPIV3Operation ? tmp_1 : THROW_CCE()).
|
|
5202
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
5203
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
5596
|
+
var tmp = $this$flatMapRequests.z3f_1;
|
|
5597
|
+
var tmp_0 = resolveParameters_0($this_parseParameters, (tmp instanceof OpenAPIV3PathItem ? tmp : THROW_CCE()).b37_1);
|
|
5598
|
+
var tmp_1 = $this$flatMapRequests.b3g_1;
|
|
5599
|
+
var parameters = plus_0(tmp_0, resolveParameters_0($this_parseParameters, (tmp_1 instanceof OpenAPIV3Operation ? tmp_1 : THROW_CCE()).o3a_1));
|
|
5600
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.b3g_1);
|
|
5601
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.y3f_1) + $this$flatMapRequests.a3g_1.a3_1 : tmp0_elvis_lhs;
|
|
5204
5602
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5205
5603
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5206
5604
|
var destination = ArrayList_init_$Create$();
|
|
5207
5605
|
var _iterator__ex2g4s = parameters.t();
|
|
5208
5606
|
while (_iterator__ex2g4s.u()) {
|
|
5209
5607
|
var element = _iterator__ex2g4s.v();
|
|
5210
|
-
var tmp0_safe_receiver = element.
|
|
5608
|
+
var tmp0_safe_receiver = element.i3a_1;
|
|
5211
5609
|
var tmp_2;
|
|
5212
5610
|
if (tmp0_safe_receiver == null) {
|
|
5213
5611
|
tmp_2 = null;
|
|
5214
5612
|
} else {
|
|
5215
5613
|
// Inline function 'kotlin.let' call
|
|
5216
|
-
tmp_2 = flatten_1($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element.
|
|
5614
|
+
tmp_2 = flatten_1($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element.j3a_1]));
|
|
5217
5615
|
}
|
|
5218
5616
|
var tmp1_elvis_lhs = tmp_2;
|
|
5219
5617
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -5224,10 +5622,10 @@ function parseParameters$lambda_0($this_parseParameters) {
|
|
|
5224
5622
|
}
|
|
5225
5623
|
function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
5226
5624
|
return function ($this$flatMapRequests) {
|
|
5227
|
-
var tmp = $this$flatMapRequests.
|
|
5625
|
+
var tmp = $this$flatMapRequests.b3g_1;
|
|
5228
5626
|
var tmp0_elvis_lhs = toName(tmp instanceof OpenAPIV3Operation ? tmp : THROW_CCE());
|
|
5229
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
5230
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
5627
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.y3f_1) + $this$flatMapRequests.a3g_1.a3_1 : tmp0_elvis_lhs;
|
|
5628
|
+
var tmp1_safe_receiver = $this$flatMapRequests.b3g_1.p3a_1;
|
|
5231
5629
|
var tmp_0;
|
|
5232
5630
|
if (tmp1_safe_receiver == null) {
|
|
5233
5631
|
tmp_0 = null;
|
|
@@ -5237,7 +5635,7 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
5237
5635
|
}
|
|
5238
5636
|
var tmp2_safe_receiver = tmp_0;
|
|
5239
5637
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5240
|
-
var tmp0_elvis_lhs_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
5638
|
+
var tmp0_elvis_lhs_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.f3b_1;
|
|
5241
5639
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5242
5640
|
var tmp0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
5243
5641
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -5248,10 +5646,10 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
5248
5646
|
var element = _iterator__ex2g4s.v();
|
|
5249
5647
|
// Inline function 'kotlin.collections.component2' call
|
|
5250
5648
|
var mediaObject = element.l1();
|
|
5251
|
-
var schema = mediaObject.
|
|
5649
|
+
var schema = mediaObject.l3b_1;
|
|
5252
5650
|
var tmp_1;
|
|
5253
5651
|
if (schema instanceof OpenAPIV3Schema) {
|
|
5254
|
-
var tmp0_subject = schema.
|
|
5652
|
+
var tmp0_subject = schema.m38_1;
|
|
5255
5653
|
var tmp_2;
|
|
5256
5654
|
switch (tmp0_subject == null ? -1 : tmp0_subject.b3_1) {
|
|
5257
5655
|
case -1:
|
|
@@ -5259,7 +5657,7 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
5259
5657
|
tmp_2 = flatten_2($this_parseRequestBody, schema, className([name, 'RequestBody']));
|
|
5260
5658
|
break;
|
|
5261
5659
|
case 4:
|
|
5262
|
-
var tmp1_safe_receiver_0 = schema.
|
|
5660
|
+
var tmp1_safe_receiver_0 = schema.b39_1;
|
|
5263
5661
|
var tmp_3;
|
|
5264
5662
|
if (tmp1_safe_receiver_0 == null) {
|
|
5265
5663
|
tmp_3 = null;
|
|
@@ -5299,17 +5697,17 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
5299
5697
|
}
|
|
5300
5698
|
function parseResponseBody$lambda_0($this_parseResponseBody) {
|
|
5301
5699
|
return function ($this$flatMapResponses) {
|
|
5302
|
-
var tmp = $this$flatMapResponses.
|
|
5700
|
+
var tmp = $this$flatMapResponses.f3g_1;
|
|
5303
5701
|
var tmp0_elvis_lhs = toName(tmp instanceof OpenAPIV3Operation ? tmp : THROW_CCE());
|
|
5304
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
5305
|
-
var tmp_0 = $this$flatMapResponses.
|
|
5702
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.c3g_1) + $this$flatMapResponses.e3g_1.a3_1 : tmp0_elvis_lhs;
|
|
5703
|
+
var tmp_0 = $this$flatMapResponses.h3g_1;
|
|
5306
5704
|
var response = isInterface(tmp_0, OpenAPIV3ResponseOrReference) ? tmp_0 : THROW_CCE();
|
|
5307
5705
|
var tmp_1;
|
|
5308
5706
|
if (response instanceof OpenAPIV3Response) {
|
|
5309
|
-
tmp_1 = flatMapResponse($this_parseResponseBody, response, name, $this$flatMapResponses.
|
|
5707
|
+
tmp_1 = flatMapResponse($this_parseResponseBody, response, name, $this$flatMapResponses.g3g_1);
|
|
5310
5708
|
} else {
|
|
5311
5709
|
if (response instanceof OpenAPIV3Reference) {
|
|
5312
|
-
tmp_1 = flatMapResponse($this_parseResponseBody, resolveOpenAPIV3Response($this_parseResponseBody, response).xe_1, name, $this$flatMapResponses.
|
|
5710
|
+
tmp_1 = flatMapResponse($this_parseResponseBody, resolveOpenAPIV3Response($this_parseResponseBody, response).xe_1, name, $this$flatMapResponses.g3g_1);
|
|
5313
5711
|
} else {
|
|
5314
5712
|
noWhenBranchMatchedException();
|
|
5315
5713
|
}
|