@flock/wirespec 0.19.0-RC.2 → 0.19.0-RC.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arrow-arrow-atomic.mjs +12 -12
- package/arrow-arrow-core.mjs +163 -163
- package/clikt-clikt-mordant.mjs +80 -80
- package/clikt-clikt.mjs +1570 -1570
- package/colormath-root-colormath.mjs +444 -444
- package/kotest-kotest-property.mjs +605 -1435
- package/kotest-kotest-property.mjs.map +1 -1
- package/kotest-property-arbs.mjs +0 -478
- package/kotest-property-arbs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +2478 -2738
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +4926 -4926
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1819 -1819
- package/kotlinx-io-kotlinx-io-core.mjs +440 -440
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1792 -1792
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1395 -1395
- package/mordant-mordant.mjs +1362 -1362
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1541 -1541
- package/wirespec-src-compiler-emitters-java.mjs +387 -387
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +341 -341
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +371 -371
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +416 -416
- package/wirespec-src-compiler-emitters-scala.mjs +168 -168
- package/wirespec-src-compiler-emitters-typescript.mjs +471 -471
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +87 -87
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +3672 -3672
- package/wirespec-src-compiler-lib.mjs +418 -418
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +512 -512
- package/wirespec-src-converter-openapi.mjs +772 -772
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-integration-kotest.mjs +490 -572
- package/wirespec-src-integration-kotest.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +185 -185
- package/wirespec-src-plugin-cli.mjs +106 -106
- package/wirespec-src-plugin-npm.d.mts +1 -1
- package/wirespec-src-plugin-npm.mjs +40 -40
- package/wirespec-src-tools-generator.mjs +35 -35
|
@@ -219,11 +219,11 @@ initMetadataForObject(OpenAPIV3Parser, 'OpenAPIV3Parser');
|
|
|
219
219
|
function emitFormat(_this__u8e3s4) {
|
|
220
220
|
var tmp;
|
|
221
221
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
222
|
-
var t = _this__u8e3s4.
|
|
222
|
+
var t = _this__u8e3s4.my_1;
|
|
223
223
|
var tmp_0;
|
|
224
224
|
if (t instanceof Number_0) {
|
|
225
225
|
var tmp_1;
|
|
226
|
-
switch (t.
|
|
226
|
+
switch (t.tx_1.c3_1) {
|
|
227
227
|
case 0:
|
|
228
228
|
tmp_1 = 'float';
|
|
229
229
|
break;
|
|
@@ -238,7 +238,7 @@ function emitFormat(_this__u8e3s4) {
|
|
|
238
238
|
} else {
|
|
239
239
|
if (t instanceof Integer) {
|
|
240
240
|
var tmp_2;
|
|
241
|
-
switch (t.
|
|
241
|
+
switch (t.qx_1.c3_1) {
|
|
242
242
|
case 0:
|
|
243
243
|
tmp_2 = 'int32';
|
|
244
244
|
break;
|
|
@@ -265,7 +265,7 @@ function emitFormat(_this__u8e3s4) {
|
|
|
265
265
|
return tmp;
|
|
266
266
|
}
|
|
267
267
|
function parseOpenApi(moduleContent, openApiParser) {
|
|
268
|
-
return new Root(nonEmptyListOf(new Module(moduleContent.
|
|
268
|
+
return new Root(nonEmptyListOf(new Module(moduleContent.vq_1, openApiParser(moduleContent.wq_1).wp_1), []));
|
|
269
269
|
}
|
|
270
270
|
function jsonDefault(strict) {
|
|
271
271
|
return Json(VOID, jsonDefault$lambda(strict));
|
|
@@ -279,42 +279,42 @@ function toOperationList(_this__u8e3s4) {
|
|
|
279
279
|
while (_iterator__ex2g4s.u()) {
|
|
280
280
|
var element = _iterator__ex2g4s.v();
|
|
281
281
|
var tmp;
|
|
282
|
-
switch (element.
|
|
282
|
+
switch (element.c3_1) {
|
|
283
283
|
case 0:
|
|
284
|
-
tmp = _this__u8e3s4.
|
|
284
|
+
tmp = _this__u8e3s4.r33();
|
|
285
285
|
break;
|
|
286
286
|
case 1:
|
|
287
|
-
tmp = _this__u8e3s4.
|
|
287
|
+
tmp = _this__u8e3s4.t33();
|
|
288
288
|
break;
|
|
289
289
|
case 2:
|
|
290
|
-
tmp = _this__u8e3s4.
|
|
290
|
+
tmp = _this__u8e3s4.s33();
|
|
291
291
|
break;
|
|
292
292
|
case 3:
|
|
293
|
-
tmp = _this__u8e3s4.
|
|
293
|
+
tmp = _this__u8e3s4.u33();
|
|
294
294
|
break;
|
|
295
295
|
case 4:
|
|
296
|
-
tmp = _this__u8e3s4.
|
|
296
|
+
tmp = _this__u8e3s4.v33();
|
|
297
297
|
break;
|
|
298
298
|
case 5:
|
|
299
|
-
tmp = _this__u8e3s4.
|
|
299
|
+
tmp = _this__u8e3s4.w33();
|
|
300
300
|
break;
|
|
301
301
|
case 6:
|
|
302
|
-
tmp = _this__u8e3s4.
|
|
302
|
+
tmp = _this__u8e3s4.x33();
|
|
303
303
|
break;
|
|
304
304
|
case 7:
|
|
305
|
-
tmp = _this__u8e3s4.
|
|
305
|
+
tmp = _this__u8e3s4.y33();
|
|
306
306
|
break;
|
|
307
307
|
default:
|
|
308
308
|
noWhenBranchMatchedException();
|
|
309
309
|
break;
|
|
310
310
|
}
|
|
311
311
|
var tmp$ret$0 = tmp;
|
|
312
|
-
result.
|
|
312
|
+
result.y2(element, tmp$ret$0);
|
|
313
313
|
}
|
|
314
314
|
return filterNotNullValues(result);
|
|
315
315
|
}
|
|
316
316
|
function toName(_this__u8e3s4) {
|
|
317
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
317
|
+
var tmp0_safe_receiver = _this__u8e3s4.f37();
|
|
318
318
|
var tmp;
|
|
319
319
|
if (tmp0_safe_receiver == null) {
|
|
320
320
|
tmp = null;
|
|
@@ -351,7 +351,7 @@ function sanitize(_this__u8e3s4) {
|
|
|
351
351
|
var item = _iterator__ex2g4s.v();
|
|
352
352
|
var _unary__edvuaz = index;
|
|
353
353
|
index = _unary__edvuaz + 1 | 0;
|
|
354
|
-
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.
|
|
354
|
+
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.mu(item) : item;
|
|
355
355
|
destination.x(tmp$ret$0);
|
|
356
356
|
}
|
|
357
357
|
var tmp = asSequence(joinToString(destination, ''));
|
|
@@ -359,29 +359,29 @@ function sanitize(_this__u8e3s4) {
|
|
|
359
359
|
}
|
|
360
360
|
function flatMapRequests(_this__u8e3s4, f) {
|
|
361
361
|
// Inline function 'kotlin.collections.flatMap' call
|
|
362
|
-
var tmp0 = _this__u8e3s4.
|
|
362
|
+
var tmp0 = _this__u8e3s4.z32();
|
|
363
363
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
364
364
|
var destination = ArrayList_init_$Create$();
|
|
365
365
|
// Inline function 'kotlin.collections.iterator' call
|
|
366
|
-
var _iterator__ex2g4s = tmp0.
|
|
366
|
+
var _iterator__ex2g4s = tmp0.k1().t();
|
|
367
367
|
while (_iterator__ex2g4s.u()) {
|
|
368
368
|
var element = _iterator__ex2g4s.v();
|
|
369
369
|
// Inline function 'kotlin.collections.component1' call
|
|
370
|
-
var path = element.
|
|
370
|
+
var path = element.l1().f30_1;
|
|
371
371
|
// Inline function 'kotlin.collections.component2' call
|
|
372
|
-
var pathItem = element.
|
|
372
|
+
var pathItem = element.m1();
|
|
373
373
|
// Inline function 'kotlin.collections.map' call
|
|
374
374
|
var this_0 = toOperationList(pathItem);
|
|
375
375
|
// Inline function 'kotlin.collections.mapTo' call
|
|
376
|
-
var destination_0 = ArrayList_init_$Create$_0(this_0.
|
|
376
|
+
var destination_0 = ArrayList_init_$Create$_0(this_0.a1());
|
|
377
377
|
// Inline function 'kotlin.collections.iterator' call
|
|
378
|
-
var _iterator__ex2g4s_0 = this_0.
|
|
378
|
+
var _iterator__ex2g4s_0 = this_0.k1().t();
|
|
379
379
|
while (_iterator__ex2g4s_0.u()) {
|
|
380
380
|
var item = _iterator__ex2g4s_0.v();
|
|
381
381
|
// Inline function 'kotlin.collections.component1' call
|
|
382
|
-
var method = item.
|
|
382
|
+
var method = item.l1();
|
|
383
383
|
// Inline function 'kotlin.collections.component2' call
|
|
384
|
-
var operation = item.
|
|
384
|
+
var operation = item.m1();
|
|
385
385
|
var tmp$ret$6 = new FlattenRequest(path, pathItem, method, operation);
|
|
386
386
|
destination_0.x(tmp$ret$6);
|
|
387
387
|
}
|
|
@@ -400,19 +400,19 @@ function flatMapRequests(_this__u8e3s4, f) {
|
|
|
400
400
|
return destination_1;
|
|
401
401
|
}
|
|
402
402
|
function FlattenRequest(path, pathItem, method, operation) {
|
|
403
|
-
this.
|
|
404
|
-
this.
|
|
405
|
-
this.
|
|
406
|
-
this.
|
|
403
|
+
this.x3k_1 = path;
|
|
404
|
+
this.y3k_1 = pathItem;
|
|
405
|
+
this.z3k_1 = method;
|
|
406
|
+
this.a3l_1 = operation;
|
|
407
407
|
}
|
|
408
408
|
protoOf(FlattenRequest).toString = function () {
|
|
409
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
409
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.x3k_1) + ', pathItem=' + toString(this.y3k_1) + ', method=' + this.z3k_1.toString() + ', operation=' + toString(this.a3l_1) + ')';
|
|
410
410
|
};
|
|
411
411
|
protoOf(FlattenRequest).hashCode = function () {
|
|
412
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
413
|
-
result = imul(result, 31) + hashCode(this.
|
|
414
|
-
result = imul(result, 31) + this.
|
|
415
|
-
result = imul(result, 31) + hashCode(this.
|
|
412
|
+
var result = Path__hashCode_impl_go73kd(this.x3k_1);
|
|
413
|
+
result = imul(result, 31) + hashCode(this.y3k_1) | 0;
|
|
414
|
+
result = imul(result, 31) + this.z3k_1.hashCode() | 0;
|
|
415
|
+
result = imul(result, 31) + hashCode(this.a3l_1) | 0;
|
|
416
416
|
return result;
|
|
417
417
|
};
|
|
418
418
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -420,55 +420,55 @@ protoOf(FlattenRequest).equals = function (other) {
|
|
|
420
420
|
return true;
|
|
421
421
|
if (!(other instanceof FlattenRequest))
|
|
422
422
|
return false;
|
|
423
|
-
if (!(this.
|
|
423
|
+
if (!(this.x3k_1 === other.x3k_1))
|
|
424
424
|
return false;
|
|
425
|
-
if (!equals(this.
|
|
425
|
+
if (!equals(this.y3k_1, other.y3k_1))
|
|
426
426
|
return false;
|
|
427
|
-
if (!this.
|
|
427
|
+
if (!this.z3k_1.equals(other.z3k_1))
|
|
428
428
|
return false;
|
|
429
|
-
if (!equals(this.
|
|
429
|
+
if (!equals(this.a3l_1, other.a3l_1))
|
|
430
430
|
return false;
|
|
431
431
|
return true;
|
|
432
432
|
};
|
|
433
433
|
function flatMapResponses(_this__u8e3s4, f) {
|
|
434
434
|
// Inline function 'kotlin.collections.flatMap' call
|
|
435
|
-
var tmp0 = _this__u8e3s4.
|
|
435
|
+
var tmp0 = _this__u8e3s4.z32();
|
|
436
436
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
437
437
|
var destination = ArrayList_init_$Create$();
|
|
438
438
|
// Inline function 'kotlin.collections.iterator' call
|
|
439
|
-
var _iterator__ex2g4s = tmp0.
|
|
439
|
+
var _iterator__ex2g4s = tmp0.k1().t();
|
|
440
440
|
while (_iterator__ex2g4s.u()) {
|
|
441
441
|
var element = _iterator__ex2g4s.v();
|
|
442
442
|
// Inline function 'kotlin.collections.component1' call
|
|
443
|
-
var path = element.
|
|
443
|
+
var path = element.l1().f30_1;
|
|
444
444
|
// Inline function 'kotlin.collections.component2' call
|
|
445
|
-
var pathItem = element.
|
|
445
|
+
var pathItem = element.m1();
|
|
446
446
|
// Inline function 'kotlin.collections.flatMap' call
|
|
447
447
|
var tmp0_0 = toOperationList(pathItem);
|
|
448
448
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
449
449
|
var destination_0 = ArrayList_init_$Create$();
|
|
450
450
|
// Inline function 'kotlin.collections.iterator' call
|
|
451
|
-
var _iterator__ex2g4s_0 = tmp0_0.
|
|
451
|
+
var _iterator__ex2g4s_0 = tmp0_0.k1().t();
|
|
452
452
|
while (_iterator__ex2g4s_0.u()) {
|
|
453
453
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
454
454
|
// Inline function 'kotlin.collections.component1' call
|
|
455
|
-
var method = element_0.
|
|
455
|
+
var method = element_0.l1();
|
|
456
456
|
// Inline function 'kotlin.collections.component2' call
|
|
457
|
-
var operation = element_0.
|
|
457
|
+
var operation = element_0.m1();
|
|
458
458
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
459
|
-
var tmp0_elvis_lhs = operation.
|
|
459
|
+
var tmp0_elvis_lhs = operation.xz();
|
|
460
460
|
// Inline function 'kotlin.collections.map' call
|
|
461
461
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
462
462
|
// Inline function 'kotlin.collections.mapTo' call
|
|
463
|
-
var destination_1 = ArrayList_init_$Create$_0(this_0.
|
|
463
|
+
var destination_1 = ArrayList_init_$Create$_0(this_0.a1());
|
|
464
464
|
// Inline function 'kotlin.collections.iterator' call
|
|
465
|
-
var _iterator__ex2g4s_1 = this_0.
|
|
465
|
+
var _iterator__ex2g4s_1 = this_0.k1().t();
|
|
466
466
|
while (_iterator__ex2g4s_1.u()) {
|
|
467
467
|
var item = _iterator__ex2g4s_1.v();
|
|
468
468
|
// Inline function 'kotlin.collections.component1' call
|
|
469
|
-
var statusCode = item.
|
|
469
|
+
var statusCode = item.l1().j30_1;
|
|
470
470
|
// Inline function 'kotlin.collections.component2' call
|
|
471
|
-
var response = item.
|
|
471
|
+
var response = item.m1();
|
|
472
472
|
var tmp$ret$10 = new FlattenResponse(path, pathItem, method, operation, statusCode, response);
|
|
473
473
|
destination_1.x(tmp$ret$10);
|
|
474
474
|
}
|
|
@@ -490,23 +490,23 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
490
490
|
return destination_2;
|
|
491
491
|
}
|
|
492
492
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response) {
|
|
493
|
-
this.
|
|
494
|
-
this.
|
|
495
|
-
this.
|
|
496
|
-
this.
|
|
497
|
-
this.
|
|
498
|
-
this.
|
|
493
|
+
this.b3l_1 = path;
|
|
494
|
+
this.c3l_1 = pathItem;
|
|
495
|
+
this.d3l_1 = method;
|
|
496
|
+
this.e3l_1 = operation;
|
|
497
|
+
this.f3l_1 = statusCode;
|
|
498
|
+
this.g3l_1 = response;
|
|
499
499
|
}
|
|
500
500
|
protoOf(FlattenResponse).toString = function () {
|
|
501
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
501
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.b3l_1) + ', pathItem=' + toString(this.c3l_1) + ', method=' + this.d3l_1.toString() + ', operation=' + toString(this.e3l_1) + ', statusCode=' + StatusCode__toString_impl_6caewy(this.f3l_1) + ', response=' + toString(this.g3l_1) + ')';
|
|
502
502
|
};
|
|
503
503
|
protoOf(FlattenResponse).hashCode = function () {
|
|
504
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
505
|
-
result = imul(result, 31) + hashCode(this.
|
|
506
|
-
result = imul(result, 31) + this.
|
|
507
|
-
result = imul(result, 31) + hashCode(this.
|
|
508
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
509
|
-
result = imul(result, 31) + hashCode(this.
|
|
504
|
+
var result = Path__hashCode_impl_go73kd(this.b3l_1);
|
|
505
|
+
result = imul(result, 31) + hashCode(this.c3l_1) | 0;
|
|
506
|
+
result = imul(result, 31) + this.d3l_1.hashCode() | 0;
|
|
507
|
+
result = imul(result, 31) + hashCode(this.e3l_1) | 0;
|
|
508
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.f3l_1) | 0;
|
|
509
|
+
result = imul(result, 31) + hashCode(this.g3l_1) | 0;
|
|
510
510
|
return result;
|
|
511
511
|
};
|
|
512
512
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -514,17 +514,17 @@ protoOf(FlattenResponse).equals = function (other) {
|
|
|
514
514
|
return true;
|
|
515
515
|
if (!(other instanceof FlattenResponse))
|
|
516
516
|
return false;
|
|
517
|
-
if (!(this.
|
|
517
|
+
if (!(this.b3l_1 === other.b3l_1))
|
|
518
518
|
return false;
|
|
519
|
-
if (!equals(this.
|
|
519
|
+
if (!equals(this.c3l_1, other.c3l_1))
|
|
520
520
|
return false;
|
|
521
|
-
if (!this.
|
|
521
|
+
if (!this.d3l_1.equals(other.d3l_1))
|
|
522
522
|
return false;
|
|
523
|
-
if (!equals(this.
|
|
523
|
+
if (!equals(this.e3l_1, other.e3l_1))
|
|
524
524
|
return false;
|
|
525
|
-
if (!(this.
|
|
525
|
+
if (!(this.f3l_1 === other.f3l_1))
|
|
526
526
|
return false;
|
|
527
|
-
if (!equals(this.
|
|
527
|
+
if (!equals(this.g3l_1, other.g3l_1))
|
|
528
528
|
return false;
|
|
529
529
|
return true;
|
|
530
530
|
};
|
|
@@ -533,7 +533,7 @@ function toDict(_this__u8e3s4, isNullable) {
|
|
|
533
533
|
}
|
|
534
534
|
function getReference(_this__u8e3s4) {
|
|
535
535
|
// Inline function 'kotlin.let' call
|
|
536
|
-
var it = split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
536
|
+
var it = split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.k37()), ['/']);
|
|
537
537
|
var tmp;
|
|
538
538
|
if (_this__u8e3s4 instanceof OpenAPIV2Reference) {
|
|
539
539
|
tmp = getOrNull(it, 2);
|
|
@@ -547,7 +547,7 @@ function getReference(_this__u8e3s4) {
|
|
|
547
547
|
var tmp0_elvis_lhs = tmp;
|
|
548
548
|
var tmp_0;
|
|
549
549
|
if (tmp0_elvis_lhs == null) {
|
|
550
|
-
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
550
|
+
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe(_this__u8e3s4.k37());
|
|
551
551
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
552
552
|
} else {
|
|
553
553
|
tmp_0 = tmp0_elvis_lhs;
|
|
@@ -562,8 +562,8 @@ function isParam(_this__u8e3s4) {
|
|
|
562
562
|
}
|
|
563
563
|
function jsonDefault$lambda($strict) {
|
|
564
564
|
return function ($this$Json) {
|
|
565
|
-
$this$Json.
|
|
566
|
-
$this$Json.
|
|
565
|
+
$this$Json.l2p_1 = true;
|
|
566
|
+
$this$Json.j2p_1 = !$strict;
|
|
567
567
|
return Unit_instance;
|
|
568
568
|
};
|
|
569
569
|
}
|
|
@@ -583,7 +583,7 @@ function toName$lambda(it) {
|
|
|
583
583
|
return tmp;
|
|
584
584
|
}
|
|
585
585
|
function sanitize$lambda(it) {
|
|
586
|
-
return isLetterOrDigit(it.
|
|
586
|
+
return isLetterOrDigit(it.h1_1) || listOf(new Char(_Char___init__impl__6a9atx(95))).v1(it);
|
|
587
587
|
}
|
|
588
588
|
function get_json() {
|
|
589
589
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -599,7 +599,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
599
599
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
600
600
|
while (_iterator__ex2g4s.u()) {
|
|
601
601
|
var element = _iterator__ex2g4s.v();
|
|
602
|
-
if (element.
|
|
602
|
+
if (element.kx_1 === 'Description') {
|
|
603
603
|
tmp$ret$1 = element;
|
|
604
604
|
break $l$block;
|
|
605
605
|
}
|
|
@@ -607,7 +607,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
607
607
|
tmp$ret$1 = null;
|
|
608
608
|
}
|
|
609
609
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
610
|
-
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.lx_1;
|
|
611
611
|
var tmp;
|
|
612
612
|
if (tmp1_safe_receiver == null) {
|
|
613
613
|
tmp = null;
|
|
@@ -619,7 +619,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
619
619
|
var _iterator__ex2g4s_0 = tmp1_safe_receiver.t();
|
|
620
620
|
while (_iterator__ex2g4s_0.u()) {
|
|
621
621
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
622
|
-
if (element_0.
|
|
622
|
+
if (element_0.ix_1 === 'default') {
|
|
623
623
|
tmp$ret$4 = element_0;
|
|
624
624
|
break $l$block_0;
|
|
625
625
|
}
|
|
@@ -629,7 +629,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
629
629
|
tmp = tmp$ret$4;
|
|
630
630
|
}
|
|
631
631
|
var tmp2_safe_receiver = tmp;
|
|
632
|
-
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.jx_1;
|
|
633
633
|
var tmp_0;
|
|
634
634
|
if (tmp3_safe_receiver == null) {
|
|
635
635
|
tmp_0 = null;
|
|
@@ -638,7 +638,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
638
638
|
tmp_0 = tmp3_safe_receiver instanceof Single ? tmp3_safe_receiver : null;
|
|
639
639
|
}
|
|
640
640
|
var tmp4_safe_receiver = tmp_0;
|
|
641
|
-
return tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
641
|
+
return tmp4_safe_receiver == null ? null : tmp4_safe_receiver.fx_1;
|
|
642
642
|
}
|
|
643
643
|
function resolveEndpointNameCollisions(_this__u8e3s4) {
|
|
644
644
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -658,7 +658,7 @@ function resolveEndpointNameCollisions(_this__u8e3s4) {
|
|
|
658
658
|
var _iterator__ex2g4s_0 = destination.t();
|
|
659
659
|
while (_iterator__ex2g4s_0.u()) {
|
|
660
660
|
var item = _iterator__ex2g4s_0.v();
|
|
661
|
-
var tmp$ret$3 = item.
|
|
661
|
+
var tmp$ret$3 = item.tu().m1();
|
|
662
662
|
destination_0.x(tmp$ret$3);
|
|
663
663
|
}
|
|
664
664
|
var nonEndpointNames = toSet(destination_0);
|
|
@@ -671,12 +671,12 @@ function resolveEndpointNameCollisions(_this__u8e3s4) {
|
|
|
671
671
|
var tmp;
|
|
672
672
|
var tmp_0;
|
|
673
673
|
if (item_0 instanceof Endpoint) {
|
|
674
|
-
tmp_0 = nonEndpointNames.
|
|
674
|
+
tmp_0 = nonEndpointNames.v1(item_0.ct_1.m1());
|
|
675
675
|
} else {
|
|
676
676
|
tmp_0 = false;
|
|
677
677
|
}
|
|
678
678
|
if (tmp_0) {
|
|
679
|
-
tmp = item_0.
|
|
679
|
+
tmp = item_0.ax(VOID, VOID, new DefinitionIdentifier(item_0.ct_1.m1() + 'Endpoint'));
|
|
680
680
|
} else {
|
|
681
681
|
tmp = item_0;
|
|
682
682
|
}
|
|
@@ -723,25 +723,25 @@ function toDescriptionAnnotationList(_this__u8e3s4) {
|
|
|
723
723
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
724
724
|
}
|
|
725
725
|
function LinkInfo(name, operationId, operationRef, parameters, requestBody, description, serverUrl) {
|
|
726
|
-
this.
|
|
727
|
-
this.
|
|
728
|
-
this.
|
|
729
|
-
this.
|
|
730
|
-
this.
|
|
731
|
-
this.
|
|
732
|
-
this.
|
|
726
|
+
this.h3l_1 = name;
|
|
727
|
+
this.i3l_1 = operationId;
|
|
728
|
+
this.j3l_1 = operationRef;
|
|
729
|
+
this.k3l_1 = parameters;
|
|
730
|
+
this.l3l_1 = requestBody;
|
|
731
|
+
this.m3l_1 = description;
|
|
732
|
+
this.n3l_1 = serverUrl;
|
|
733
733
|
}
|
|
734
734
|
protoOf(LinkInfo).toString = function () {
|
|
735
|
-
return 'LinkInfo(name=' + this.
|
|
735
|
+
return 'LinkInfo(name=' + this.h3l_1 + ', operationId=' + this.i3l_1 + ', operationRef=' + this.j3l_1 + ', parameters=' + toString(this.k3l_1) + ', requestBody=' + this.l3l_1 + ', description=' + this.m3l_1 + ', serverUrl=' + this.n3l_1 + ')';
|
|
736
736
|
};
|
|
737
737
|
protoOf(LinkInfo).hashCode = function () {
|
|
738
|
-
var result = getStringHashCode(this.
|
|
739
|
-
result = imul(result, 31) + (this.
|
|
740
|
-
result = imul(result, 31) + (this.
|
|
741
|
-
result = imul(result, 31) + hashCode(this.
|
|
742
|
-
result = imul(result, 31) + (this.
|
|
743
|
-
result = imul(result, 31) + (this.
|
|
744
|
-
result = imul(result, 31) + (this.
|
|
738
|
+
var result = getStringHashCode(this.h3l_1);
|
|
739
|
+
result = imul(result, 31) + (this.i3l_1 == null ? 0 : getStringHashCode(this.i3l_1)) | 0;
|
|
740
|
+
result = imul(result, 31) + (this.j3l_1 == null ? 0 : getStringHashCode(this.j3l_1)) | 0;
|
|
741
|
+
result = imul(result, 31) + hashCode(this.k3l_1) | 0;
|
|
742
|
+
result = imul(result, 31) + (this.l3l_1 == null ? 0 : getStringHashCode(this.l3l_1)) | 0;
|
|
743
|
+
result = imul(result, 31) + (this.m3l_1 == null ? 0 : getStringHashCode(this.m3l_1)) | 0;
|
|
744
|
+
result = imul(result, 31) + (this.n3l_1 == null ? 0 : getStringHashCode(this.n3l_1)) | 0;
|
|
745
745
|
return result;
|
|
746
746
|
};
|
|
747
747
|
protoOf(LinkInfo).equals = function (other) {
|
|
@@ -749,19 +749,19 @@ protoOf(LinkInfo).equals = function (other) {
|
|
|
749
749
|
return true;
|
|
750
750
|
if (!(other instanceof LinkInfo))
|
|
751
751
|
return false;
|
|
752
|
-
if (!(this.
|
|
752
|
+
if (!(this.h3l_1 === other.h3l_1))
|
|
753
753
|
return false;
|
|
754
|
-
if (!(this.
|
|
754
|
+
if (!(this.i3l_1 == other.i3l_1))
|
|
755
755
|
return false;
|
|
756
|
-
if (!(this.
|
|
756
|
+
if (!(this.j3l_1 == other.j3l_1))
|
|
757
757
|
return false;
|
|
758
|
-
if (!equals(this.
|
|
758
|
+
if (!equals(this.k3l_1, other.k3l_1))
|
|
759
759
|
return false;
|
|
760
|
-
if (!(this.
|
|
760
|
+
if (!(this.l3l_1 == other.l3l_1))
|
|
761
761
|
return false;
|
|
762
|
-
if (!(this.
|
|
762
|
+
if (!(this.m3l_1 == other.m3l_1))
|
|
763
763
|
return false;
|
|
764
|
-
if (!(this.
|
|
764
|
+
if (!(this.n3l_1 == other.n3l_1))
|
|
765
765
|
return false;
|
|
766
766
|
return true;
|
|
767
767
|
};
|
|
@@ -773,7 +773,7 @@ function findLinks(_this__u8e3s4) {
|
|
|
773
773
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
774
774
|
while (_iterator__ex2g4s.u()) {
|
|
775
775
|
var element = _iterator__ex2g4s.v();
|
|
776
|
-
if (element.
|
|
776
|
+
if (element.kx_1 === 'Link') {
|
|
777
777
|
destination.x(element);
|
|
778
778
|
}
|
|
779
779
|
}
|
|
@@ -796,8 +796,8 @@ function findLinks(_this__u8e3s4) {
|
|
|
796
796
|
}
|
|
797
797
|
function toAnnotation(_this__u8e3s4) {
|
|
798
798
|
_init_properties_Utils_kt__jo07cx();
|
|
799
|
-
var params = mutableListOf([new Parameter('default', new Single(_this__u8e3s4.
|
|
800
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
799
|
+
var params = mutableListOf([new Parameter('default', new Single(_this__u8e3s4.h3l_1))]);
|
|
800
|
+
var tmp0_safe_receiver = _this__u8e3s4.i3l_1;
|
|
801
801
|
if (tmp0_safe_receiver == null)
|
|
802
802
|
null;
|
|
803
803
|
else {
|
|
@@ -806,7 +806,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
806
806
|
var element = new Parameter('operationId', new Single(tmp0_safe_receiver));
|
|
807
807
|
params.x(element);
|
|
808
808
|
}
|
|
809
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
809
|
+
var tmp1_safe_receiver = _this__u8e3s4.j3l_1;
|
|
810
810
|
if (tmp1_safe_receiver == null)
|
|
811
811
|
null;
|
|
812
812
|
else {
|
|
@@ -816,19 +816,19 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
816
816
|
params.x(element_0);
|
|
817
817
|
}
|
|
818
818
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
819
|
-
if (!_this__u8e3s4.
|
|
819
|
+
if (!_this__u8e3s4.k3l_1.r()) {
|
|
820
820
|
// Inline function 'kotlin.collections.map' call
|
|
821
|
-
var this_0 = _this__u8e3s4.
|
|
821
|
+
var this_0 = _this__u8e3s4.k3l_1;
|
|
822
822
|
// Inline function 'kotlin.collections.mapTo' call
|
|
823
|
-
var destination = ArrayList_init_$Create$_0(this_0.
|
|
823
|
+
var destination = ArrayList_init_$Create$_0(this_0.a1());
|
|
824
824
|
// Inline function 'kotlin.collections.iterator' call
|
|
825
|
-
var _iterator__ex2g4s = this_0.
|
|
825
|
+
var _iterator__ex2g4s = this_0.k1().t();
|
|
826
826
|
while (_iterator__ex2g4s.u()) {
|
|
827
827
|
var item = _iterator__ex2g4s.v();
|
|
828
828
|
// Inline function 'kotlin.collections.component1' call
|
|
829
|
-
var k = item.
|
|
829
|
+
var k = item.l1();
|
|
830
830
|
// Inline function 'kotlin.collections.component2' call
|
|
831
|
-
var v = item.
|
|
831
|
+
var v = item.m1();
|
|
832
832
|
var tmp$ret$10 = new Parameter(k, new Single(v));
|
|
833
833
|
destination.x(tmp$ret$10);
|
|
834
834
|
}
|
|
@@ -836,7 +836,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
836
836
|
var element_1 = new Parameter('parameters', new Dict_0(destination));
|
|
837
837
|
params.x(element_1);
|
|
838
838
|
}
|
|
839
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
839
|
+
var tmp2_safe_receiver = _this__u8e3s4.l3l_1;
|
|
840
840
|
if (tmp2_safe_receiver == null)
|
|
841
841
|
null;
|
|
842
842
|
else {
|
|
@@ -845,7 +845,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
845
845
|
var element_2 = new Parameter('requestBody', new Single(tmp2_safe_receiver));
|
|
846
846
|
params.x(element_2);
|
|
847
847
|
}
|
|
848
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
848
|
+
var tmp3_safe_receiver = _this__u8e3s4.m3l_1;
|
|
849
849
|
if (tmp3_safe_receiver == null)
|
|
850
850
|
null;
|
|
851
851
|
else {
|
|
@@ -854,7 +854,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
854
854
|
var element_3 = new Parameter('description', new Single(tmp3_safe_receiver));
|
|
855
855
|
params.x(element_3);
|
|
856
856
|
}
|
|
857
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
857
|
+
var tmp4_safe_receiver = _this__u8e3s4.n3l_1;
|
|
858
858
|
if (tmp4_safe_receiver == null)
|
|
859
859
|
null;
|
|
860
860
|
else {
|
|
@@ -874,7 +874,7 @@ function toDescriptionAnnotation(description) {
|
|
|
874
874
|
}
|
|
875
875
|
function toLinkInfo(_this__u8e3s4) {
|
|
876
876
|
_init_properties_Utils_kt__jo07cx();
|
|
877
|
-
var tmp0_elvis_lhs = singleParam(_this__u8e3s4.
|
|
877
|
+
var tmp0_elvis_lhs = singleParam(_this__u8e3s4.lx_1, 'default');
|
|
878
878
|
var tmp;
|
|
879
879
|
if (tmp0_elvis_lhs == null) {
|
|
880
880
|
return null;
|
|
@@ -882,7 +882,7 @@ function toLinkInfo(_this__u8e3s4) {
|
|
|
882
882
|
tmp = tmp0_elvis_lhs;
|
|
883
883
|
}
|
|
884
884
|
var name = tmp;
|
|
885
|
-
return new LinkInfo(name, singleParam(_this__u8e3s4.
|
|
885
|
+
return new LinkInfo(name, singleParam(_this__u8e3s4.lx_1, 'operationId'), singleParam(_this__u8e3s4.lx_1, 'operationRef'), dictParam(_this__u8e3s4.lx_1, 'parameters'), singleParam(_this__u8e3s4.lx_1, 'requestBody'), singleParam(_this__u8e3s4.lx_1, 'description'), singleParam(_this__u8e3s4.lx_1, 'server'));
|
|
886
886
|
}
|
|
887
887
|
function singleParam(_this__u8e3s4, name) {
|
|
888
888
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -893,7 +893,7 @@ function singleParam(_this__u8e3s4, name) {
|
|
|
893
893
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
894
894
|
while (_iterator__ex2g4s.u()) {
|
|
895
895
|
var element = _iterator__ex2g4s.v();
|
|
896
|
-
if (element.
|
|
896
|
+
if (element.ix_1 === name) {
|
|
897
897
|
tmp$ret$1 = element;
|
|
898
898
|
break $l$block;
|
|
899
899
|
}
|
|
@@ -901,7 +901,7 @@ function singleParam(_this__u8e3s4, name) {
|
|
|
901
901
|
tmp$ret$1 = null;
|
|
902
902
|
}
|
|
903
903
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
904
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
904
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jx_1;
|
|
905
905
|
var tmp;
|
|
906
906
|
if (tmp1_safe_receiver == null) {
|
|
907
907
|
tmp = null;
|
|
@@ -910,7 +910,7 @@ function singleParam(_this__u8e3s4, name) {
|
|
|
910
910
|
tmp = tmp1_safe_receiver instanceof Single ? tmp1_safe_receiver : null;
|
|
911
911
|
}
|
|
912
912
|
var tmp2_safe_receiver = tmp;
|
|
913
|
-
return tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
913
|
+
return tmp2_safe_receiver == null ? null : tmp2_safe_receiver.fx_1;
|
|
914
914
|
}
|
|
915
915
|
function dictParam(_this__u8e3s4, name) {
|
|
916
916
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -921,7 +921,7 @@ function dictParam(_this__u8e3s4, name) {
|
|
|
921
921
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
922
922
|
while (_iterator__ex2g4s.u()) {
|
|
923
923
|
var element = _iterator__ex2g4s.v();
|
|
924
|
-
if (element.
|
|
924
|
+
if (element.ix_1 === name) {
|
|
925
925
|
tmp$ret$1 = element;
|
|
926
926
|
break $l$block;
|
|
927
927
|
}
|
|
@@ -929,7 +929,7 @@ function dictParam(_this__u8e3s4, name) {
|
|
|
929
929
|
tmp$ret$1 = null;
|
|
930
930
|
}
|
|
931
931
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
932
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
932
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jx_1;
|
|
933
933
|
var tmp;
|
|
934
934
|
if (tmp1_safe_receiver == null) {
|
|
935
935
|
tmp = null;
|
|
@@ -938,7 +938,7 @@ function dictParam(_this__u8e3s4, name) {
|
|
|
938
938
|
tmp = tmp1_safe_receiver instanceof Dict_0 ? tmp1_safe_receiver : null;
|
|
939
939
|
}
|
|
940
940
|
var tmp2_safe_receiver = tmp;
|
|
941
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
941
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.hx_1;
|
|
942
942
|
var tmp_0;
|
|
943
943
|
if (tmp3_safe_receiver == null) {
|
|
944
944
|
tmp_0 = null;
|
|
@@ -950,14 +950,14 @@ function dictParam(_this__u8e3s4, name) {
|
|
|
950
950
|
var _iterator__ex2g4s_0 = tmp3_safe_receiver.t();
|
|
951
951
|
while (_iterator__ex2g4s_0.u()) {
|
|
952
952
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
953
|
-
var tmp_1 = element_0.
|
|
953
|
+
var tmp_1 = element_0.jx_1;
|
|
954
954
|
var tmp0_safe_receiver_0 = tmp_1 instanceof Single ? tmp_1 : null;
|
|
955
955
|
var tmp_2;
|
|
956
956
|
if (tmp0_safe_receiver_0 == null) {
|
|
957
957
|
tmp_2 = null;
|
|
958
958
|
} else {
|
|
959
959
|
// Inline function 'kotlin.let' call
|
|
960
|
-
tmp_2 = to(element_0.
|
|
960
|
+
tmp_2 = to(element_0.ix_1, tmp0_safe_receiver_0.fx_1);
|
|
961
961
|
}
|
|
962
962
|
var tmp0_safe_receiver_1 = tmp_2;
|
|
963
963
|
if (tmp0_safe_receiver_1 == null)
|
|
@@ -981,13 +981,13 @@ function filterNotNullValues(_this__u8e3s4) {
|
|
|
981
981
|
var destination = ArrayList_init_$Create$();
|
|
982
982
|
// Inline function 'kotlin.collections.forEach' call
|
|
983
983
|
// Inline function 'kotlin.collections.iterator' call
|
|
984
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
984
|
+
var _iterator__ex2g4s = _this__u8e3s4.k1().t();
|
|
985
985
|
while (_iterator__ex2g4s.u()) {
|
|
986
986
|
var element = _iterator__ex2g4s.v();
|
|
987
987
|
// Inline function 'kotlin.collections.component1' call
|
|
988
|
-
var key = element.
|
|
988
|
+
var key = element.l1();
|
|
989
989
|
// Inline function 'kotlin.collections.component2' call
|
|
990
|
-
var value = element.
|
|
990
|
+
var value = element.m1();
|
|
991
991
|
var tmp;
|
|
992
992
|
if (value == null) {
|
|
993
993
|
tmp = null;
|
|
@@ -1007,12 +1007,12 @@ function filterNotNullValues(_this__u8e3s4) {
|
|
|
1007
1007
|
}
|
|
1008
1008
|
function json$lambda($this$Json) {
|
|
1009
1009
|
_init_properties_Utils_kt__jo07cx();
|
|
1010
|
-
$this$Json.
|
|
1010
|
+
$this$Json.l2p_1 = true;
|
|
1011
1011
|
return Unit_instance;
|
|
1012
1012
|
}
|
|
1013
1013
|
function className$lambda(it) {
|
|
1014
1014
|
_init_properties_Utils_kt__jo07cx();
|
|
1015
|
-
return Companion_instance.
|
|
1015
|
+
return Companion_instance.mu(it);
|
|
1016
1016
|
}
|
|
1017
1017
|
var properties_initialized_Utils_kt_xvi83j;
|
|
1018
1018
|
function _init_properties_Utils_kt__jo07cx() {
|
|
@@ -1040,39 +1040,39 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1040
1040
|
var _iterator__ex2g4s_0 = destination.t();
|
|
1041
1041
|
while (_iterator__ex2g4s_0.u()) {
|
|
1042
1042
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1043
|
-
var type = element_0.
|
|
1043
|
+
var type = element_0.av_1.my_1;
|
|
1044
1044
|
var tmp;
|
|
1045
1045
|
if (equals(type, Boolean_instance)) {
|
|
1046
|
-
tmp = to(element_0.
|
|
1046
|
+
tmp = to(element_0.zu_1.m1(), new OpenAPIV2Schema(VOID, OpenAPIV2Type_BOOLEAN_getInstance()));
|
|
1047
1047
|
} else {
|
|
1048
1048
|
if (equals(type, Bytes_instance)) {
|
|
1049
|
-
tmp = to(element_0.
|
|
1049
|
+
tmp = to(element_0.zu_1.m1(), new OpenAPIV2Schema(VOID, OpenAPIV2Type_FILE_getInstance()));
|
|
1050
1050
|
} else {
|
|
1051
1051
|
if (type instanceof Integer) {
|
|
1052
|
-
var tmp_0 = element_0.
|
|
1052
|
+
var tmp_0 = element_0.zu_1.m1();
|
|
1053
1053
|
var tmp4_type = OpenAPIV2Type_INTEGER_getInstance();
|
|
1054
|
-
var tmp0_safe_receiver = type.
|
|
1055
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1054
|
+
var tmp0_safe_receiver = type.rx_1;
|
|
1055
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.mx_1;
|
|
1056
1056
|
var tmp5_minimum = tmp1_safe_receiver == null ? null : toDouble(tmp1_safe_receiver);
|
|
1057
|
-
var tmp2_safe_receiver = type.
|
|
1058
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
1057
|
+
var tmp2_safe_receiver = type.rx_1;
|
|
1058
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.nx_1;
|
|
1059
1059
|
var tmp6_maximum = tmp3_safe_receiver == null ? null : toDouble(tmp3_safe_receiver);
|
|
1060
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));
|
|
1061
1061
|
} else {
|
|
1062
1062
|
if (type instanceof Number_0) {
|
|
1063
|
-
var tmp_1 = element_0.
|
|
1063
|
+
var tmp_1 = element_0.zu_1.m1();
|
|
1064
1064
|
var tmp11_type = OpenAPIV2Type_NUMBER_getInstance();
|
|
1065
|
-
var tmp7_safe_receiver = type.
|
|
1066
|
-
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.
|
|
1065
|
+
var tmp7_safe_receiver = type.ux_1;
|
|
1066
|
+
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.mx_1;
|
|
1067
1067
|
var tmp12_minimum = tmp8_safe_receiver == null ? null : toDouble(tmp8_safe_receiver);
|
|
1068
|
-
var tmp9_safe_receiver = type.
|
|
1069
|
-
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.
|
|
1068
|
+
var tmp9_safe_receiver = type.ux_1;
|
|
1069
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.nx_1;
|
|
1070
1070
|
var tmp13_maximum = tmp10_safe_receiver == null ? null : toDouble(tmp10_safe_receiver);
|
|
1071
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));
|
|
1072
1072
|
} else {
|
|
1073
1073
|
if (type instanceof String_0) {
|
|
1074
|
-
var tmp_2 = element_0.
|
|
1075
|
-
var pattern = type.
|
|
1074
|
+
var tmp_2 = element_0.zu_1.m1();
|
|
1075
|
+
var pattern = type.ox_1;
|
|
1076
1076
|
var tmp_3;
|
|
1077
1077
|
var tmp_4 = pattern;
|
|
1078
1078
|
if ((tmp_4 == null ? null : new RegExp_0(tmp_4))instanceof RegExp_0) {
|
|
@@ -1095,9 +1095,9 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1095
1095
|
}
|
|
1096
1096
|
// Inline function 'kotlin.also' call
|
|
1097
1097
|
var this_0 = tmp;
|
|
1098
|
-
logger.
|
|
1098
|
+
logger.qu('Emitting Refined ' + element_0.zu_1.m1());
|
|
1099
1099
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1100
|
-
destination_0.
|
|
1100
|
+
destination_0.y2(this_0.tf_1, this_0.uf_1);
|
|
1101
1101
|
}
|
|
1102
1102
|
var refined = destination_0;
|
|
1103
1103
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
@@ -1118,11 +1118,11 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1118
1118
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
1119
1119
|
while (_iterator__ex2g4s_2.u()) {
|
|
1120
1120
|
var element_2 = _iterator__ex2g4s_2.v();
|
|
1121
|
-
var tmp_6 = element_2.
|
|
1122
|
-
var tmp0_elvis_lhs = findDescription(element_2.
|
|
1121
|
+
var tmp_6 = element_2.ts_1.m1();
|
|
1122
|
+
var tmp0_elvis_lhs = findDescription(element_2.ss_1);
|
|
1123
1123
|
var tmp_7;
|
|
1124
1124
|
if (tmp0_elvis_lhs == null) {
|
|
1125
|
-
var tmp1_safe_receiver_0 = element_2.
|
|
1125
|
+
var tmp1_safe_receiver_0 = element_2.rs_1;
|
|
1126
1126
|
var tmp_8;
|
|
1127
1127
|
var tmp_9 = tmp1_safe_receiver_0;
|
|
1128
1128
|
if ((tmp_9 == null ? null : new Comment(tmp_9)) == null) {
|
|
@@ -1136,7 +1136,7 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1136
1136
|
}
|
|
1137
1137
|
var tmp2_description = tmp_7;
|
|
1138
1138
|
// Inline function 'kotlin.collections.associate' call
|
|
1139
|
-
var this_1 = element_2.
|
|
1139
|
+
var this_1 = element_2.us_1.qs_1;
|
|
1140
1140
|
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_1, 10)), 16);
|
|
1141
1141
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1142
1142
|
var destination_3 = LinkedHashMap_init_$Create$(capacity_1);
|
|
@@ -1145,16 +1145,16 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1145
1145
|
var element_3 = _iterator__ex2g4s_3.v();
|
|
1146
1146
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1147
1147
|
var pair = toProperties(OpenAPIV2Emitter_getInstance(), element_3);
|
|
1148
|
-
destination_3.
|
|
1148
|
+
destination_3.y2(pair.tf_1, pair.uf_1);
|
|
1149
1149
|
}
|
|
1150
1150
|
// Inline function 'kotlin.collections.filter' call
|
|
1151
|
-
var tmp0_1 = element_2.
|
|
1151
|
+
var tmp0_1 = element_2.us_1.qs_1;
|
|
1152
1152
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1153
1153
|
var destination_4 = ArrayList_init_$Create$();
|
|
1154
1154
|
var _iterator__ex2g4s_4 = tmp0_1.t();
|
|
1155
1155
|
while (_iterator__ex2g4s_4.u()) {
|
|
1156
1156
|
var element_4 = _iterator__ex2g4s_4.v();
|
|
1157
|
-
if (!element_4.
|
|
1157
|
+
if (!element_4.zs_1.ay()) {
|
|
1158
1158
|
destination_4.x(element_4);
|
|
1159
1159
|
}
|
|
1160
1160
|
}
|
|
@@ -1164,7 +1164,7 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1164
1164
|
var _iterator__ex2g4s_5 = destination_4.t();
|
|
1165
1165
|
while (_iterator__ex2g4s_5.u()) {
|
|
1166
1166
|
var item = _iterator__ex2g4s_5.v();
|
|
1167
|
-
var tmp$ret$17 = item.
|
|
1167
|
+
var tmp$ret$17 = item.ys_1.m1();
|
|
1168
1168
|
destination_5.x(tmp$ret$17);
|
|
1169
1169
|
}
|
|
1170
1170
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -1178,10 +1178,10 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1178
1178
|
var tmp4_required = tmp_10;
|
|
1179
1179
|
// Inline function 'kotlin.also' call
|
|
1180
1180
|
var this_2 = new OpenAPIV2Schema(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_description, VOID, VOID, VOID, VOID, VOID, tmp4_required, VOID, VOID, VOID, destination_3);
|
|
1181
|
-
logger.
|
|
1181
|
+
logger.qu('Emitting Type ' + element_2.ts_1.m1());
|
|
1182
1182
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1183
1183
|
var pair_0 = to(tmp_6, this_2);
|
|
1184
|
-
destination_2.
|
|
1184
|
+
destination_2.y2(pair_0.tf_1, pair_0.uf_1);
|
|
1185
1185
|
}
|
|
1186
1186
|
var types = destination_2;
|
|
1187
1187
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
@@ -1202,10 +1202,10 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1202
1202
|
var _iterator__ex2g4s_7 = destination_6.t();
|
|
1203
1203
|
while (_iterator__ex2g4s_7.u()) {
|
|
1204
1204
|
var element_6 = _iterator__ex2g4s_7.v();
|
|
1205
|
-
var tmp_11 = element_6.
|
|
1205
|
+
var tmp_11 = element_6.ev_1.m1();
|
|
1206
1206
|
var tmp0_type = OpenAPIV2Type_STRING_getInstance();
|
|
1207
1207
|
// Inline function 'kotlin.collections.map' call
|
|
1208
|
-
var this_3 = element_6.
|
|
1208
|
+
var this_3 = element_6.fv_1;
|
|
1209
1209
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1210
1210
|
var destination_8 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_3, 10));
|
|
1211
1211
|
var _iterator__ex2g4s_8 = this_3.t();
|
|
@@ -1214,13 +1214,13 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1214
1214
|
var tmp$ret$31 = JsonPrimitive(item_0);
|
|
1215
1215
|
destination_8.x(tmp$ret$31);
|
|
1216
1216
|
}
|
|
1217
|
-
var tmp2_description_0 = findDescription(element_6.
|
|
1217
|
+
var tmp2_description_0 = findDescription(element_6.dv_1);
|
|
1218
1218
|
// Inline function 'kotlin.also' call
|
|
1219
1219
|
var this_4 = new OpenAPIV2Schema(VOID, tmp0_type, VOID, VOID, VOID, VOID, VOID, tmp2_description_0, VOID, VOID, VOID, VOID, VOID, VOID, destination_8);
|
|
1220
|
-
logger.
|
|
1220
|
+
logger.qu('Emitting Enum ' + element_6.ev_1.m1());
|
|
1221
1221
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1222
1222
|
var pair_1 = to(tmp_11, this_4);
|
|
1223
|
-
destination_7.
|
|
1223
|
+
destination_7.y2(pair_1.tf_1, pair_1.uf_1);
|
|
1224
1224
|
}
|
|
1225
1225
|
var enums = destination_7;
|
|
1226
1226
|
return plus(plus(refined, types), enums);
|
|
@@ -1243,13 +1243,13 @@ function emitPaths($this, _this__u8e3s4, logger) {
|
|
|
1243
1243
|
var _iterator__ex2g4s_0 = destination.t();
|
|
1244
1244
|
while (_iterator__ex2g4s_0.u()) {
|
|
1245
1245
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1246
|
-
var key = element_0.
|
|
1246
|
+
var key = element_0.et_1;
|
|
1247
1247
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1248
|
-
var value = destination_0.
|
|
1248
|
+
var value = destination_0.q2(key);
|
|
1249
1249
|
var tmp;
|
|
1250
1250
|
if (value == null) {
|
|
1251
1251
|
var answer = ArrayList_init_$Create$();
|
|
1252
|
-
destination_0.
|
|
1252
|
+
destination_0.y2(key, answer);
|
|
1253
1253
|
tmp = answer;
|
|
1254
1254
|
} else {
|
|
1255
1255
|
tmp = value;
|
|
@@ -1259,16 +1259,16 @@ function emitPaths($this, _this__u8e3s4, logger) {
|
|
|
1259
1259
|
}
|
|
1260
1260
|
// Inline function 'kotlin.collections.map' call
|
|
1261
1261
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1262
|
-
var destination_1 = ArrayList_init_$Create$_0(destination_0.
|
|
1262
|
+
var destination_1 = ArrayList_init_$Create$_0(destination_0.a1());
|
|
1263
1263
|
// Inline function 'kotlin.collections.iterator' call
|
|
1264
|
-
var _iterator__ex2g4s_1 = destination_0.
|
|
1264
|
+
var _iterator__ex2g4s_1 = destination_0.k1().t();
|
|
1265
1265
|
while (_iterator__ex2g4s_1.u()) {
|
|
1266
1266
|
var item = _iterator__ex2g4s_1.v();
|
|
1267
1267
|
// Inline function 'kotlin.collections.component1' call
|
|
1268
|
-
var path = item.
|
|
1268
|
+
var path = item.l1();
|
|
1269
1269
|
// Inline function 'kotlin.collections.component2' call
|
|
1270
|
-
var endpoints = item.
|
|
1271
|
-
logger.
|
|
1270
|
+
var endpoints = item.m1();
|
|
1271
|
+
logger.qu('Emitting endpoints for path ' + emitSegment(OpenAPIV2Emitter_getInstance(), path));
|
|
1272
1272
|
var tmp_0 = _Path___init__impl__6uf4pw(emitSegment(OpenAPIV2Emitter_getInstance(), path));
|
|
1273
1273
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1274
1274
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
@@ -1287,12 +1287,12 @@ function emitPaths($this, _this__u8e3s4, logger) {
|
|
|
1287
1287
|
while (_iterator__ex2g4s_3.u()) {
|
|
1288
1288
|
var item_0 = _iterator__ex2g4s_3.v();
|
|
1289
1289
|
var tmp0_in = OpenAPIV2ParameterLocation_PATH_getInstance();
|
|
1290
|
-
var tmp1_name = item_0.
|
|
1291
|
-
var tmp2_type = emitType_0(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1292
|
-
var tmp3_format = emitFormat(item_0.
|
|
1293
|
-
var tmp4_pattern = emitPattern(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1294
|
-
var tmp5_minimum = emitMinimum(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1295
|
-
var tmp6_maximum = emitMaximum(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1290
|
+
var tmp1_name = item_0.jt_1.m1();
|
|
1291
|
+
var tmp2_type = emitType_0(OpenAPIV2Emitter_getInstance(), item_0.kt_1);
|
|
1292
|
+
var tmp3_format = emitFormat(item_0.kt_1);
|
|
1293
|
+
var tmp4_pattern = emitPattern(OpenAPIV2Emitter_getInstance(), item_0.kt_1);
|
|
1294
|
+
var tmp5_minimum = emitMinimum(OpenAPIV2Emitter_getInstance(), item_0.kt_1);
|
|
1295
|
+
var tmp6_maximum = emitMaximum(OpenAPIV2Emitter_getInstance(), item_0.kt_1);
|
|
1296
1296
|
var tmp$ret$12 = new OpenAPIV2Parameter(VOID, VOID, tmp2_type, VOID, tmp3_format, VOID, VOID, VOID, tmp6_maximum, VOID, tmp5_minimum, VOID, VOID, VOID, tmp4_pattern, VOID, VOID, VOID, VOID, VOID, tmp0_in, VOID, tmp1_name);
|
|
1297
1297
|
destination_3.x(tmp$ret$12);
|
|
1298
1298
|
}
|
|
@@ -1310,12 +1310,12 @@ function emitPaths($this, _this__u8e3s4, logger) {
|
|
|
1310
1310
|
return toMap(destination_1);
|
|
1311
1311
|
}
|
|
1312
1312
|
function toProperties($this, _this__u8e3s4) {
|
|
1313
|
-
var tmp = _this__u8e3s4.
|
|
1313
|
+
var tmp = _this__u8e3s4.ys_1.m1();
|
|
1314
1314
|
// Inline function 'kotlin.let' call
|
|
1315
|
-
var it = toSchemaOrReference($this, _this__u8e3s4.
|
|
1315
|
+
var it = toSchemaOrReference($this, _this__u8e3s4.zs_1);
|
|
1316
1316
|
var tmp_0;
|
|
1317
1317
|
if (it instanceof OpenAPIV2Schema) {
|
|
1318
|
-
tmp_0 = it.
|
|
1318
|
+
tmp_0 = it.k35(VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription(_this__u8e3s4.xs_1));
|
|
1319
1319
|
} else {
|
|
1320
1320
|
if (it instanceof OpenAPIV2Reference) {
|
|
1321
1321
|
tmp_0 = it;
|
|
@@ -1333,7 +1333,7 @@ function emit($this, _this__u8e3s4, method) {
|
|
|
1333
1333
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
1334
1334
|
while (_iterator__ex2g4s.u()) {
|
|
1335
1335
|
var element = _iterator__ex2g4s.v();
|
|
1336
|
-
if (element.
|
|
1336
|
+
if (element.dt_1.equals(method)) {
|
|
1337
1337
|
destination.x(element);
|
|
1338
1338
|
}
|
|
1339
1339
|
}
|
|
@@ -1349,11 +1349,11 @@ function emit($this, _this__u8e3s4, method) {
|
|
|
1349
1349
|
return firstOrNull(destination_0);
|
|
1350
1350
|
}
|
|
1351
1351
|
function emit_0($this, _this__u8e3s4) {
|
|
1352
|
-
var tmp2_operationId = _this__u8e3s4.
|
|
1353
|
-
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.
|
|
1352
|
+
var tmp2_operationId = _this__u8e3s4.ct_1.m1();
|
|
1353
|
+
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.bt_1);
|
|
1354
1354
|
var tmp;
|
|
1355
1355
|
if (tmp0_elvis_lhs == null) {
|
|
1356
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
1356
|
+
var tmp1_safe_receiver = _this__u8e3s4.at_1;
|
|
1357
1357
|
var tmp_0;
|
|
1358
1358
|
var tmp_1 = tmp1_safe_receiver;
|
|
1359
1359
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -1367,15 +1367,15 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1367
1367
|
}
|
|
1368
1368
|
var tmp3_description = tmp;
|
|
1369
1369
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1370
|
-
var tmp0 = _this__u8e3s4.
|
|
1370
|
+
var tmp0 = _this__u8e3s4.ht_1;
|
|
1371
1371
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1372
1372
|
var destination = ArrayList_init_$Create$();
|
|
1373
1373
|
// Inline function 'kotlin.collections.forEach' call
|
|
1374
1374
|
var _iterator__ex2g4s = tmp0.t();
|
|
1375
1375
|
while (_iterator__ex2g4s.u()) {
|
|
1376
1376
|
var element = _iterator__ex2g4s.v();
|
|
1377
|
-
var tmp0_safe_receiver = element.
|
|
1378
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1377
|
+
var tmp0_safe_receiver = element.lt_1;
|
|
1378
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.mt_1;
|
|
1379
1379
|
if (tmp0_safe_receiver_0 == null)
|
|
1380
1380
|
null;
|
|
1381
1381
|
else {
|
|
@@ -1393,15 +1393,15 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1393
1393
|
}
|
|
1394
1394
|
var tmp4_consumes = tmp_2;
|
|
1395
1395
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1396
|
-
var tmp0_0 = _this__u8e3s4.
|
|
1396
|
+
var tmp0_0 = _this__u8e3s4.it_1;
|
|
1397
1397
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1398
1398
|
var destination_0 = ArrayList_init_$Create$();
|
|
1399
1399
|
// Inline function 'kotlin.collections.forEach' call
|
|
1400
1400
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
1401
1401
|
while (_iterator__ex2g4s_0.u()) {
|
|
1402
1402
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1403
|
-
var tmp0_safe_receiver_1 = element_0.
|
|
1404
|
-
var tmp0_safe_receiver_2 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.
|
|
1403
|
+
var tmp0_safe_receiver_1 = element_0.qt_1;
|
|
1404
|
+
var tmp0_safe_receiver_2 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.mt_1;
|
|
1405
1405
|
if (tmp0_safe_receiver_2 == null)
|
|
1406
1406
|
null;
|
|
1407
1407
|
else {
|
|
@@ -1419,14 +1419,14 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1419
1419
|
}
|
|
1420
1420
|
var tmp5_produces = tmp_3;
|
|
1421
1421
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1422
|
-
var tmp0_1 = _this__u8e3s4.
|
|
1422
|
+
var tmp0_1 = _this__u8e3s4.ht_1;
|
|
1423
1423
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1424
1424
|
var destination_1 = ArrayList_init_$Create$();
|
|
1425
1425
|
// Inline function 'kotlin.collections.forEach' call
|
|
1426
1426
|
var _iterator__ex2g4s_1 = tmp0_1.t();
|
|
1427
1427
|
while (_iterator__ex2g4s_1.u()) {
|
|
1428
1428
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
1429
|
-
var tmp0_safe_receiver_3 = element_1.
|
|
1429
|
+
var tmp0_safe_receiver_3 = element_1.lt_1;
|
|
1430
1430
|
if (tmp0_safe_receiver_3 == null)
|
|
1431
1431
|
null;
|
|
1432
1432
|
else {
|
|
@@ -1442,14 +1442,14 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1442
1442
|
while (_iterator__ex2g4s_2.u()) {
|
|
1443
1443
|
var item = _iterator__ex2g4s_2.v();
|
|
1444
1444
|
var tmp0_in = OpenAPIV2ParameterLocation_BODY_getInstance();
|
|
1445
|
-
var tmp1_schema = toSchemaOrReference(OpenAPIV2Emitter_getInstance(), item.
|
|
1446
|
-
var tmp2_required = !item.
|
|
1445
|
+
var tmp1_schema = toSchemaOrReference(OpenAPIV2Emitter_getInstance(), item.nt_1);
|
|
1446
|
+
var tmp2_required = !item.nt_1.ay();
|
|
1447
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');
|
|
1448
1448
|
destination_2.x(tmp$ret$25);
|
|
1449
1449
|
}
|
|
1450
1450
|
var tmp_4 = destination_2;
|
|
1451
1451
|
// Inline function 'kotlin.collections.map' call
|
|
1452
|
-
var this_3 = _this__u8e3s4.
|
|
1452
|
+
var this_3 = _this__u8e3s4.ft_1;
|
|
1453
1453
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1454
1454
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_3, 10));
|
|
1455
1455
|
var _iterator__ex2g4s_3 = this_3.t();
|
|
@@ -1460,7 +1460,7 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1460
1460
|
}
|
|
1461
1461
|
var tmp_5 = plus_0(tmp_4, destination_3);
|
|
1462
1462
|
// Inline function 'kotlin.collections.map' call
|
|
1463
|
-
var this_4 = _this__u8e3s4.
|
|
1463
|
+
var this_4 = _this__u8e3s4.gt_1;
|
|
1464
1464
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1465
1465
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_4, 10));
|
|
1466
1466
|
var _iterator__ex2g4s_4 = this_4.t();
|
|
@@ -1471,45 +1471,45 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1471
1471
|
}
|
|
1472
1472
|
var tmp6_parameters = plus_0(tmp_5, destination_4);
|
|
1473
1473
|
// Inline function 'kotlin.collections.associate' call
|
|
1474
|
-
var this_5 = _this__u8e3s4.
|
|
1474
|
+
var this_5 = _this__u8e3s4.it_1;
|
|
1475
1475
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_5, 10)), 16);
|
|
1476
1476
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1477
1477
|
var destination_5 = LinkedHashMap_init_$Create$(capacity);
|
|
1478
1478
|
var _iterator__ex2g4s_5 = this_5.t();
|
|
1479
1479
|
while (_iterator__ex2g4s_5.u()) {
|
|
1480
1480
|
var element_2 = _iterator__ex2g4s_5.v();
|
|
1481
|
-
var tmp_6 = _StatusCode___init__impl__t1yi9q(element_2.
|
|
1482
|
-
var tmp0_elvis_lhs_0 = findDescription(element_2.
|
|
1483
|
-
var tmp3_description_0 = tmp0_elvis_lhs_0 == null ? _this__u8e3s4.
|
|
1481
|
+
var tmp_6 = _StatusCode___init__impl__t1yi9q(element_2.ot_1);
|
|
1482
|
+
var tmp0_elvis_lhs_0 = findDescription(element_2.rt_1);
|
|
1483
|
+
var tmp3_description_0 = tmp0_elvis_lhs_0 == null ? _this__u8e3s4.ct_1.m1() + ' ' + element_2.ot_1 + ' response' : tmp0_elvis_lhs_0;
|
|
1484
1484
|
// Inline function 'kotlin.collections.associate' call
|
|
1485
|
-
var this_6 = element_2.
|
|
1485
|
+
var this_6 = element_2.pt_1;
|
|
1486
1486
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_6, 10)), 16);
|
|
1487
1487
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1488
1488
|
var destination_6 = LinkedHashMap_init_$Create$(capacity_0);
|
|
1489
1489
|
var _iterator__ex2g4s_6 = this_6.t();
|
|
1490
1490
|
while (_iterator__ex2g4s_6.u()) {
|
|
1491
1491
|
var element_3 = _iterator__ex2g4s_6.v();
|
|
1492
|
-
var tmp_7 = element_3.
|
|
1493
|
-
var tmp2_description = findDescription(element_3.
|
|
1494
|
-
var tmp3_type = emitType_0(OpenAPIV2Emitter_getInstance(), element_3.
|
|
1495
|
-
var tmp4_format = emitFormat(element_3.
|
|
1496
|
-
var tmp5_pattern = emitPattern(OpenAPIV2Emitter_getInstance(), element_3.
|
|
1497
|
-
var tmp_8 = element_3.
|
|
1492
|
+
var tmp_7 = element_3.ys_1.m1();
|
|
1493
|
+
var tmp2_description = findDescription(element_3.xs_1);
|
|
1494
|
+
var tmp3_type = emitType_0(OpenAPIV2Emitter_getInstance(), element_3.zs_1);
|
|
1495
|
+
var tmp4_format = emitFormat(element_3.zs_1);
|
|
1496
|
+
var tmp5_pattern = emitPattern(OpenAPIV2Emitter_getInstance(), element_3.zs_1);
|
|
1497
|
+
var tmp_8 = element_3.zs_1;
|
|
1498
1498
|
var tmp0_safe_receiver_4 = tmp_8 instanceof Iterable ? tmp_8 : null;
|
|
1499
|
-
var tmp1_safe_receiver_0 = tmp0_safe_receiver_4 == null ? null : tmp0_safe_receiver_4.
|
|
1499
|
+
var tmp1_safe_receiver_0 = tmp0_safe_receiver_4 == null ? null : tmp0_safe_receiver_4.xr_1;
|
|
1500
1500
|
var tmp6_items = tmp1_safe_receiver_0 == null ? null : toSchemaOrReference(OpenAPIV2Emitter_getInstance(), tmp1_safe_receiver_0);
|
|
1501
1501
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1502
1502
|
var pair = to(tmp_7, new OpenAPIV2Header(tmp2_description, tmp3_type, tmp4_format, tmp6_items, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp5_pattern));
|
|
1503
|
-
destination_6.
|
|
1503
|
+
destination_6.y2(pair.tf_1, pair.uf_1);
|
|
1504
1504
|
}
|
|
1505
|
-
var tmp1_safe_receiver_1 = element_2.
|
|
1505
|
+
var tmp1_safe_receiver_1 = element_2.qt_1;
|
|
1506
1506
|
var tmp_9;
|
|
1507
1507
|
if (tmp1_safe_receiver_1 == null) {
|
|
1508
1508
|
tmp_9 = null;
|
|
1509
1509
|
} else {
|
|
1510
1510
|
// Inline function 'kotlin.takeIf' call
|
|
1511
1511
|
var tmp_10;
|
|
1512
|
-
var tmp_11 = tmp1_safe_receiver_1.
|
|
1512
|
+
var tmp_11 = tmp1_safe_receiver_1.nt_1;
|
|
1513
1513
|
if (!(tmp_11 instanceof Unit)) {
|
|
1514
1514
|
tmp_10 = tmp1_safe_receiver_1;
|
|
1515
1515
|
} else {
|
|
@@ -1523,10 +1523,10 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1523
1523
|
tmp_12 = null;
|
|
1524
1524
|
} else {
|
|
1525
1525
|
// Inline function 'kotlin.let' call
|
|
1526
|
-
var ref = tmp2_safe_receiver.
|
|
1526
|
+
var ref = tmp2_safe_receiver.nt_1;
|
|
1527
1527
|
var tmp_13;
|
|
1528
1528
|
if (ref instanceof Iterable) {
|
|
1529
|
-
tmp_13 = new OpenAPIV2Schema(VOID, OpenAPIV2Type_ARRAY_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference(OpenAPIV2Emitter_getInstance(), ref.
|
|
1529
|
+
tmp_13 = new OpenAPIV2Schema(VOID, OpenAPIV2Type_ARRAY_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference(OpenAPIV2Emitter_getInstance(), ref.xr_1));
|
|
1530
1530
|
} else {
|
|
1531
1531
|
tmp_13 = toSchemaOrReference(OpenAPIV2Emitter_getInstance(), ref);
|
|
1532
1532
|
}
|
|
@@ -1535,7 +1535,7 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1535
1535
|
var tmp5_schema = tmp_12;
|
|
1536
1536
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1537
1537
|
var pair_0 = to(new StatusCode(tmp_6), new OpenAPIV2Response(tmp5_schema, VOID, tmp3_description_0, destination_6));
|
|
1538
|
-
destination_5.
|
|
1538
|
+
destination_5.y2(pair_0.tf_1, pair_0.uf_1);
|
|
1539
1539
|
}
|
|
1540
1540
|
return new OpenAPIV2Operation(tmp4_consumes, tmp5_produces, tmp6_parameters, VOID, destination_5, VOID, VOID, VOID, tmp3_description, VOID, tmp2_operationId);
|
|
1541
1541
|
}
|
|
@@ -1543,11 +1543,11 @@ function emitSegment($this, _this__u8e3s4) {
|
|
|
1543
1543
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenAPIV2Emitter$emitSegment$lambda);
|
|
1544
1544
|
}
|
|
1545
1545
|
function emitParameter($this, _this__u8e3s4, location) {
|
|
1546
|
-
var tmp0_name = _this__u8e3s4.
|
|
1547
|
-
var tmp1_type = emitType_0($this, _this__u8e3s4.
|
|
1548
|
-
var tmp2_format = emitFormat(_this__u8e3s4.
|
|
1549
|
-
var tmp3_pattern = emitPattern($this, _this__u8e3s4.
|
|
1550
|
-
var ref = _this__u8e3s4.
|
|
1546
|
+
var tmp0_name = _this__u8e3s4.ys_1.m1();
|
|
1547
|
+
var tmp1_type = emitType_0($this, _this__u8e3s4.zs_1);
|
|
1548
|
+
var tmp2_format = emitFormat(_this__u8e3s4.zs_1);
|
|
1549
|
+
var tmp3_pattern = emitPattern($this, _this__u8e3s4.zs_1);
|
|
1550
|
+
var ref = _this__u8e3s4.zs_1;
|
|
1551
1551
|
var tmp;
|
|
1552
1552
|
if (ref instanceof Iterable) {
|
|
1553
1553
|
var emit = toSchemaOrReference($this, ref);
|
|
@@ -1556,7 +1556,7 @@ function emitParameter($this, _this__u8e3s4, location) {
|
|
|
1556
1556
|
tmp_0 = emit;
|
|
1557
1557
|
} else {
|
|
1558
1558
|
if (emit instanceof OpenAPIV2Schema) {
|
|
1559
|
-
tmp_0 = emit.
|
|
1559
|
+
tmp_0 = emit.s34_1;
|
|
1560
1560
|
} else {
|
|
1561
1561
|
noWhenBranchMatchedException();
|
|
1562
1562
|
}
|
|
@@ -1566,23 +1566,23 @@ function emitParameter($this, _this__u8e3s4, location) {
|
|
|
1566
1566
|
tmp = null;
|
|
1567
1567
|
}
|
|
1568
1568
|
var tmp4_items = tmp;
|
|
1569
|
-
var tmp5_required = !_this__u8e3s4.
|
|
1570
|
-
var tmp6_description = findDescription(_this__u8e3s4.
|
|
1569
|
+
var tmp5_required = !_this__u8e3s4.zs_1.ay();
|
|
1570
|
+
var tmp6_description = findDescription(_this__u8e3s4.xs_1);
|
|
1571
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);
|
|
1572
1572
|
}
|
|
1573
1573
|
function toSchemaOrReference($this, _this__u8e3s4) {
|
|
1574
1574
|
var tmp;
|
|
1575
1575
|
if (_this__u8e3s4 instanceof Dict) {
|
|
1576
|
-
tmp = new OpenAPIV2Schema(VOID, OpenAPIV2Type_OBJECT_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference($this, _this__u8e3s4.
|
|
1576
|
+
tmp = new OpenAPIV2Schema(VOID, OpenAPIV2Type_OBJECT_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference($this, _this__u8e3s4.as_1));
|
|
1577
1577
|
} else {
|
|
1578
1578
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
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.
|
|
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.xr_1));
|
|
1580
1580
|
} else {
|
|
1581
1581
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1582
|
-
tmp = new OpenAPIV2Reference(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.
|
|
1582
|
+
tmp = new OpenAPIV2Reference(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.iy_1));
|
|
1583
1583
|
} else {
|
|
1584
1584
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1585
|
-
tmp = new OpenAPIV2Schema(VOID, emitType($this, _this__u8e3s4.
|
|
1585
|
+
tmp = new OpenAPIV2Schema(VOID, emitType($this, _this__u8e3s4.my_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));
|
|
1586
1586
|
} else {
|
|
1587
1587
|
if (_this__u8e3s4 instanceof Any) {
|
|
1588
1588
|
var message = 'Cannot map Any';
|
|
@@ -1635,7 +1635,7 @@ function emitType_0($this, _this__u8e3s4) {
|
|
|
1635
1635
|
tmp = OpenAPIV2Type_ARRAY_getInstance();
|
|
1636
1636
|
} else {
|
|
1637
1637
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1638
|
-
tmp = emitType($this, _this__u8e3s4.
|
|
1638
|
+
tmp = emitType($this, _this__u8e3s4.my_1);
|
|
1639
1639
|
} else {
|
|
1640
1640
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1641
1641
|
tmp = OpenAPIV2Type_OBJECT_getInstance();
|
|
@@ -1658,10 +1658,10 @@ function emitType_0($this, _this__u8e3s4) {
|
|
|
1658
1658
|
function emitPattern($this, _this__u8e3s4) {
|
|
1659
1659
|
var tmp;
|
|
1660
1660
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1661
|
-
var t = _this__u8e3s4.
|
|
1661
|
+
var t = _this__u8e3s4.my_1;
|
|
1662
1662
|
var tmp_0;
|
|
1663
1663
|
if (t instanceof String_0) {
|
|
1664
|
-
var p = t.
|
|
1664
|
+
var p = t.ox_1;
|
|
1665
1665
|
var tmp_1;
|
|
1666
1666
|
var tmp_2 = p;
|
|
1667
1667
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2))instanceof RegExp_0) {
|
|
@@ -1682,16 +1682,16 @@ function emitPattern($this, _this__u8e3s4) {
|
|
|
1682
1682
|
function emitMinimum($this, _this__u8e3s4) {
|
|
1683
1683
|
var tmp;
|
|
1684
1684
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1685
|
-
var t = _this__u8e3s4.
|
|
1685
|
+
var t = _this__u8e3s4.my_1;
|
|
1686
1686
|
var tmp_0;
|
|
1687
1687
|
if (t instanceof Number_0) {
|
|
1688
|
-
var tmp1_safe_receiver = t.
|
|
1689
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1688
|
+
var tmp1_safe_receiver = t.ux_1;
|
|
1689
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.mx_1;
|
|
1690
1690
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
1691
1691
|
} else {
|
|
1692
1692
|
if (t instanceof Integer) {
|
|
1693
|
-
var tmp3_safe_receiver = t.
|
|
1694
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
1693
|
+
var tmp3_safe_receiver = t.rx_1;
|
|
1694
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.mx_1;
|
|
1695
1695
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
1696
1696
|
} else {
|
|
1697
1697
|
tmp_0 = null;
|
|
@@ -1706,16 +1706,16 @@ function emitMinimum($this, _this__u8e3s4) {
|
|
|
1706
1706
|
function emitMaximum($this, _this__u8e3s4) {
|
|
1707
1707
|
var tmp;
|
|
1708
1708
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1709
|
-
var t = _this__u8e3s4.
|
|
1709
|
+
var t = _this__u8e3s4.my_1;
|
|
1710
1710
|
var tmp_0;
|
|
1711
1711
|
if (t instanceof Number_0) {
|
|
1712
|
-
var tmp1_safe_receiver = t.
|
|
1713
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1712
|
+
var tmp1_safe_receiver = t.ux_1;
|
|
1713
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.nx_1;
|
|
1714
1714
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
1715
1715
|
} else {
|
|
1716
1716
|
if (t instanceof Integer) {
|
|
1717
|
-
var tmp3_safe_receiver = t.
|
|
1718
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
1717
|
+
var tmp3_safe_receiver = t.rx_1;
|
|
1718
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.nx_1;
|
|
1719
1719
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
1720
1720
|
} else {
|
|
1721
1721
|
tmp_0 = null;
|
|
@@ -1730,10 +1730,10 @@ function emitMaximum($this, _this__u8e3s4) {
|
|
|
1730
1730
|
function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
1731
1731
|
var tmp;
|
|
1732
1732
|
if (it instanceof Param) {
|
|
1733
|
-
tmp = '{' + it.
|
|
1733
|
+
tmp = '{' + it.jt_1.m1() + '}';
|
|
1734
1734
|
} else {
|
|
1735
1735
|
if (it instanceof Literal) {
|
|
1736
|
-
tmp = it.
|
|
1736
|
+
tmp = it.fu_1;
|
|
1737
1737
|
} else {
|
|
1738
1738
|
noWhenBranchMatchedException();
|
|
1739
1739
|
}
|
|
@@ -1742,14 +1742,14 @@ function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
|
1742
1742
|
}
|
|
1743
1743
|
function OpenAPIV2Emitter() {
|
|
1744
1744
|
OpenAPIV2Emitter_instance = this;
|
|
1745
|
-
this.
|
|
1745
|
+
this.o3l_1 = FileExtension_JSON_getInstance();
|
|
1746
1746
|
}
|
|
1747
|
-
protoOf(OpenAPIV2Emitter).
|
|
1748
|
-
return this.
|
|
1747
|
+
protoOf(OpenAPIV2Emitter).cu = function () {
|
|
1748
|
+
return this.o3l_1;
|
|
1749
1749
|
};
|
|
1750
|
-
protoOf(OpenAPIV2Emitter).
|
|
1750
|
+
protoOf(OpenAPIV2Emitter).mr = function (ast, logger) {
|
|
1751
1751
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
1752
|
-
var this_0 = ast.
|
|
1752
|
+
var this_0 = ast.zt_1;
|
|
1753
1753
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1754
1754
|
var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
1755
1755
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -1757,27 +1757,27 @@ protoOf(OpenAPIV2Emitter).es = function (ast, logger) {
|
|
|
1757
1757
|
var _iterator__ex2g4s = tmp0.t();
|
|
1758
1758
|
while (_iterator__ex2g4s.u()) {
|
|
1759
1759
|
var element = _iterator__ex2g4s.v();
|
|
1760
|
-
logger.
|
|
1761
|
-
var list = new NonEmptyList(element.
|
|
1760
|
+
logger.qu('Combining Nodes from ' + element.au_1.br_1 + ' ');
|
|
1761
|
+
var list = new NonEmptyList(element.bu_1);
|
|
1762
1762
|
addAll(destination, list);
|
|
1763
1763
|
}
|
|
1764
1764
|
// Inline function 'kotlin.let' call
|
|
1765
1765
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
1766
|
-
var tmp = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().
|
|
1766
|
+
var tmp = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().o3l_1.lu_1;
|
|
1767
1767
|
var tmp0_0 = get_json();
|
|
1768
1768
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
1769
|
-
var value = OpenAPIV2Emitter_getInstance().
|
|
1769
|
+
var value = OpenAPIV2Emitter_getInstance().p3l(it, logger);
|
|
1770
1770
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
1771
|
-
var this_1 = tmp0_0.
|
|
1771
|
+
var this_1 = tmp0_0.y27();
|
|
1772
1772
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1773
1773
|
var this_2 = serializer(this_1, createKType(getKClass(OpenAPIV2Model), arrayOf([]), false));
|
|
1774
1774
|
var tmp$ret$5 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
1775
|
-
var tmp$ret$6 = tmp0_0.
|
|
1775
|
+
var tmp$ret$6 = tmp0_0.p2o(tmp$ret$5, value);
|
|
1776
1776
|
// Inline function 'kotlin.let' call
|
|
1777
1777
|
var it_0 = new Emitted(tmp, tmp$ret$6);
|
|
1778
1778
|
return nonEmptyListOf(it_0, []);
|
|
1779
1779
|
};
|
|
1780
|
-
protoOf(OpenAPIV2Emitter).
|
|
1780
|
+
protoOf(OpenAPIV2Emitter).p3l = function (statements, logger) {
|
|
1781
1781
|
var tmp0_info = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, '0.0.0');
|
|
1782
1782
|
var tmp1_consumes = listOf('application/json');
|
|
1783
1783
|
var tmp2_produces = listOf('application/json');
|
|
@@ -1793,15 +1793,15 @@ function OpenAPIV2Emitter_getInstance() {
|
|
|
1793
1793
|
}
|
|
1794
1794
|
function OpenAPIV2Parser$parse$lambda($strict) {
|
|
1795
1795
|
return function (it) {
|
|
1796
|
-
return new NonEmptyList(OpenAPIV2Parser_instance.
|
|
1796
|
+
return new NonEmptyList(OpenAPIV2Parser_instance.q3l((new OpenAPIV2(jsonDefault($strict))).f32(it)));
|
|
1797
1797
|
};
|
|
1798
1798
|
}
|
|
1799
1799
|
function OpenAPIV2Parser() {
|
|
1800
1800
|
}
|
|
1801
|
-
protoOf(OpenAPIV2Parser).
|
|
1801
|
+
protoOf(OpenAPIV2Parser).r3l = function (moduleContent, strict) {
|
|
1802
1802
|
return parseOpenApi(moduleContent, OpenAPIV2Parser$parse$lambda(strict));
|
|
1803
1803
|
};
|
|
1804
|
-
protoOf(OpenAPIV2Parser).
|
|
1804
|
+
protoOf(OpenAPIV2Parser).q3l = function (_this__u8e3s4) {
|
|
1805
1805
|
// Inline function 'kotlin.collections.reduce' call
|
|
1806
1806
|
var iterator = listOf_0([parseEndpoints(_this__u8e3s4), parseParameters(_this__u8e3s4), parseRequestBody(_this__u8e3s4), parseResponseBody(_this__u8e3s4), parseDefinitions(_this__u8e3s4)]).t();
|
|
1807
1807
|
if (!iterator.u())
|
|
@@ -1816,7 +1816,7 @@ protoOf(OpenAPIV2Parser).i3m = function (_this__u8e3s4) {
|
|
|
1816
1816
|
var tmp = toNonEmptyListOrNull(resolveEndpointNameCollisions(tmp$ret$1));
|
|
1817
1817
|
// Inline function 'kotlin.let' call
|
|
1818
1818
|
var tmp_0 = tmp == null ? null : new NonEmptyList(tmp);
|
|
1819
|
-
var tmp_1 = tmp_0 == null ? null : tmp_0.
|
|
1819
|
+
var tmp_1 = tmp_0 == null ? null : tmp_0.wp_1;
|
|
1820
1820
|
var tmp0_0 = tmp_1 == null ? null : new NonEmptyList(tmp_1);
|
|
1821
1821
|
var tmp$ret$3;
|
|
1822
1822
|
$l$block: {
|
|
@@ -1825,7 +1825,7 @@ protoOf(OpenAPIV2Parser).i3m = function (_this__u8e3s4) {
|
|
|
1825
1825
|
var message = 'Cannot yield empty AST for OpenAPI v2';
|
|
1826
1826
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1827
1827
|
} else {
|
|
1828
|
-
tmp$ret$3 = tmp0_0.
|
|
1828
|
+
tmp$ret$3 = tmp0_0.wp_1;
|
|
1829
1829
|
break $l$block;
|
|
1830
1830
|
}
|
|
1831
1831
|
}
|
|
@@ -1837,29 +1837,29 @@ function OpenAPIV2Parser_getInstance() {
|
|
|
1837
1837
|
}
|
|
1838
1838
|
function parseEndpoints(_this__u8e3s4) {
|
|
1839
1839
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1840
|
-
var tmp0 = _this__u8e3s4.
|
|
1840
|
+
var tmp0 = _this__u8e3s4.u32_1;
|
|
1841
1841
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1842
1842
|
var destination = ArrayList_init_$Create$();
|
|
1843
1843
|
// Inline function 'kotlin.collections.iterator' call
|
|
1844
|
-
var _iterator__ex2g4s = tmp0.
|
|
1844
|
+
var _iterator__ex2g4s = tmp0.k1().t();
|
|
1845
1845
|
while (_iterator__ex2g4s.u()) {
|
|
1846
1846
|
var element = _iterator__ex2g4s.v();
|
|
1847
1847
|
// Inline function 'kotlin.collections.component1' call
|
|
1848
|
-
var path = element.
|
|
1848
|
+
var path = element.l1().f30_1;
|
|
1849
1849
|
// Inline function 'kotlin.collections.component2' call
|
|
1850
|
-
var pathItem = element.
|
|
1850
|
+
var pathItem = element.m1();
|
|
1851
1851
|
// Inline function 'kotlin.collections.map' call
|
|
1852
1852
|
var this_0 = toOperationList(pathItem);
|
|
1853
1853
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1854
|
-
var destination_0 = ArrayList_init_$Create$_0(this_0.
|
|
1854
|
+
var destination_0 = ArrayList_init_$Create$_0(this_0.a1());
|
|
1855
1855
|
// Inline function 'kotlin.collections.iterator' call
|
|
1856
|
-
var _iterator__ex2g4s_0 = this_0.
|
|
1856
|
+
var _iterator__ex2g4s_0 = this_0.k1().t();
|
|
1857
1857
|
while (_iterator__ex2g4s_0.u()) {
|
|
1858
1858
|
var item = _iterator__ex2g4s_0.v();
|
|
1859
1859
|
// Inline function 'kotlin.collections.component1' call
|
|
1860
|
-
var method = item.
|
|
1860
|
+
var method = item.l1();
|
|
1861
1861
|
// Inline function 'kotlin.collections.component2' call
|
|
1862
|
-
var operation = item.
|
|
1862
|
+
var operation = item.m1();
|
|
1863
1863
|
var tmp$ret$6 = to(method, operation instanceof OpenAPIV2Operation ? operation : THROW_CCE());
|
|
1864
1864
|
destination_0.x(tmp$ret$6);
|
|
1865
1865
|
}
|
|
@@ -1869,19 +1869,19 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1869
1869
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
1870
1870
|
while (_iterator__ex2g4s_1.u()) {
|
|
1871
1871
|
var element_0 = _iterator__ex2g4s_1.v();
|
|
1872
|
-
var method_0 = element_0.
|
|
1873
|
-
var operation_0 = element_0.
|
|
1874
|
-
var parameters = plus_0(resolveParameters(_this__u8e3s4, pathItem.
|
|
1872
|
+
var method_0 = element_0.kf();
|
|
1873
|
+
var operation_0 = element_0.lf();
|
|
1874
|
+
var parameters = plus_0(resolveParameters(_this__u8e3s4, pathItem.d33_1), resolveParameters(_this__u8e3s4, operation_0.s36_1));
|
|
1875
1875
|
var segments = toSegments(path, parameters);
|
|
1876
1876
|
var tmp0_elvis_lhs = toName(operation_0);
|
|
1877
|
-
var name = tmp0_elvis_lhs == null ? toName_0(path) + method_0.
|
|
1877
|
+
var name = tmp0_elvis_lhs == null ? toName_0(path) + method_0.b3_1 : tmp0_elvis_lhs;
|
|
1878
1878
|
// Inline function 'kotlin.collections.filter' call
|
|
1879
1879
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1880
1880
|
var destination_2 = ArrayList_init_$Create$();
|
|
1881
1881
|
var _iterator__ex2g4s_2 = parameters.t();
|
|
1882
1882
|
while (_iterator__ex2g4s_2.u()) {
|
|
1883
1883
|
var element_1 = _iterator__ex2g4s_2.v();
|
|
1884
|
-
if (element_1.
|
|
1884
|
+
if (element_1.j36_1.equals(OpenAPIV2ParameterLocation_QUERY_getInstance())) {
|
|
1885
1885
|
destination_2.x(element_1);
|
|
1886
1886
|
}
|
|
1887
1887
|
}
|
|
@@ -1901,7 +1901,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1901
1901
|
var _iterator__ex2g4s_4 = parameters.t();
|
|
1902
1902
|
while (_iterator__ex2g4s_4.u()) {
|
|
1903
1903
|
var element_2 = _iterator__ex2g4s_4.v();
|
|
1904
|
-
if (element_2.
|
|
1904
|
+
if (element_2.j36_1.equals(OpenAPIV2ParameterLocation_HEADER_getInstance())) {
|
|
1905
1905
|
destination_4.x(element_2);
|
|
1906
1906
|
}
|
|
1907
1907
|
}
|
|
@@ -1921,7 +1921,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1921
1921
|
var _iterator__ex2g4s_6 = parameters.t();
|
|
1922
1922
|
while (_iterator__ex2g4s_6.u()) {
|
|
1923
1923
|
var element_3 = _iterator__ex2g4s_6.v();
|
|
1924
|
-
if (element_3.
|
|
1924
|
+
if (element_3.j36_1.equals(OpenAPIV2ParameterLocation_BODY_getInstance())) {
|
|
1925
1925
|
destination_6.x(element_3);
|
|
1926
1926
|
}
|
|
1927
1927
|
}
|
|
@@ -1932,10 +1932,10 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1932
1932
|
while (_iterator__ex2g4s_7.u()) {
|
|
1933
1933
|
var element_4 = _iterator__ex2g4s_7.v();
|
|
1934
1934
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1935
|
-
var tmp0_elvis_lhs_0 = _this__u8e3s4.
|
|
1935
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.n32_1;
|
|
1936
1936
|
var tmp = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1937
1937
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1938
|
-
var tmp0_elvis_lhs_1 = operation_0.
|
|
1938
|
+
var tmp0_elvis_lhs_1 = operation_0.q36_1;
|
|
1939
1939
|
var tmp$ret$25 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1940
1940
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
1941
1941
|
var this_1 = distinct(plus_0(tmp, tmp$ret$25));
|
|
@@ -1953,7 +1953,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1953
1953
|
while (_iterator__ex2g4s_8.u()) {
|
|
1954
1954
|
var item_2 = _iterator__ex2g4s_8.v();
|
|
1955
1955
|
var isNullable = false;
|
|
1956
|
-
var schema = element_4.
|
|
1956
|
+
var schema = element_4.k36_1;
|
|
1957
1957
|
var tmp_1;
|
|
1958
1958
|
if (schema instanceof OpenAPIV2Reference) {
|
|
1959
1959
|
tmp_1 = toReference(_this__u8e3s4, schema, isNullable);
|
|
@@ -1984,35 +1984,35 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1984
1984
|
}
|
|
1985
1985
|
var requests = tmp_2;
|
|
1986
1986
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1987
|
-
var tmp0_elvis_lhs_2 = operation_0.
|
|
1987
|
+
var tmp0_elvis_lhs_2 = operation_0.u36_1;
|
|
1988
1988
|
// Inline function 'kotlin.collections.mapValues' call
|
|
1989
1989
|
var this_3 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
1990
1990
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
1991
|
-
var destination_9 = LinkedHashMap_init_$Create$(mapCapacity(this_3.
|
|
1991
|
+
var destination_9 = LinkedHashMap_init_$Create$(mapCapacity(this_3.a1()));
|
|
1992
1992
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
1993
|
-
var _iterator__ex2g4s_9 = this_3.
|
|
1993
|
+
var _iterator__ex2g4s_9 = this_3.k1().t();
|
|
1994
1994
|
while (_iterator__ex2g4s_9.u()) {
|
|
1995
1995
|
var element_5 = _iterator__ex2g4s_9.v();
|
|
1996
|
-
var tmp_3 = element_5.
|
|
1997
|
-
var tmp$ret$38 = resolve(_this__u8e3s4, element_5.
|
|
1998
|
-
destination_9.
|
|
1996
|
+
var tmp_3 = element_5.l1();
|
|
1997
|
+
var tmp$ret$38 = resolve(_this__u8e3s4, element_5.m1());
|
|
1998
|
+
destination_9.y2(tmp_3, tmp$ret$38);
|
|
1999
1999
|
}
|
|
2000
2000
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2001
2001
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2002
2002
|
var destination_10 = ArrayList_init_$Create$();
|
|
2003
2003
|
// Inline function 'kotlin.collections.iterator' call
|
|
2004
|
-
var _iterator__ex2g4s_10 = destination_9.
|
|
2004
|
+
var _iterator__ex2g4s_10 = destination_9.k1().t();
|
|
2005
2005
|
while (_iterator__ex2g4s_10.u()) {
|
|
2006
2006
|
var element_6 = _iterator__ex2g4s_10.v();
|
|
2007
2007
|
// Inline function 'kotlin.collections.component1' call
|
|
2008
|
-
var status = element_6.
|
|
2008
|
+
var status = element_6.l1().j30_1;
|
|
2009
2009
|
// Inline function 'kotlin.collections.component2' call
|
|
2010
|
-
var res = element_6.
|
|
2010
|
+
var res = element_6.m1();
|
|
2011
2011
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2012
|
-
var tmp0_elvis_lhs_3 = _this__u8e3s4.
|
|
2012
|
+
var tmp0_elvis_lhs_3 = _this__u8e3s4.o32_1;
|
|
2013
2013
|
var tmp_4 = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
|
|
2014
2014
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2015
|
-
var tmp0_elvis_lhs_4 = operation_0.
|
|
2015
|
+
var tmp0_elvis_lhs_4 = operation_0.r36_1;
|
|
2016
2016
|
var tmp$ret$46 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
2017
2017
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
2018
2018
|
var this_4 = distinct(plus_0(tmp_4, tmp$ret$46));
|
|
@@ -2029,24 +2029,24 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2029
2029
|
var _iterator__ex2g4s_11 = this_5.t();
|
|
2030
2030
|
while (_iterator__ex2g4s_11.u()) {
|
|
2031
2031
|
var item_3 = _iterator__ex2g4s_11.v();
|
|
2032
|
-
var tmp2_annotations = toDescriptionAnnotationList(res.
|
|
2032
|
+
var tmp2_annotations = toDescriptionAnnotationList(res.q37_1);
|
|
2033
2033
|
var tmp3_status = _StatusCode___get_value__impl__we50mu(status);
|
|
2034
|
-
var tmp0_safe_receiver = res.
|
|
2034
|
+
var tmp0_safe_receiver = res.r37_1;
|
|
2035
2035
|
var tmp_6;
|
|
2036
2036
|
if (tmp0_safe_receiver == null) {
|
|
2037
2037
|
tmp_6 = null;
|
|
2038
2038
|
} else {
|
|
2039
2039
|
// Inline function 'kotlin.collections.map' call
|
|
2040
2040
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2041
|
-
var destination_12 = ArrayList_init_$Create$_0(tmp0_safe_receiver.
|
|
2041
|
+
var destination_12 = ArrayList_init_$Create$_0(tmp0_safe_receiver.a1());
|
|
2042
2042
|
// Inline function 'kotlin.collections.iterator' call
|
|
2043
|
-
var _iterator__ex2g4s_12 = tmp0_safe_receiver.
|
|
2043
|
+
var _iterator__ex2g4s_12 = tmp0_safe_receiver.k1().t();
|
|
2044
2044
|
while (_iterator__ex2g4s_12.u()) {
|
|
2045
2045
|
var item_4 = _iterator__ex2g4s_12.v();
|
|
2046
2046
|
// Inline function 'kotlin.collections.component1' call
|
|
2047
|
-
var identifier = item_4.
|
|
2047
|
+
var identifier = item_4.l1();
|
|
2048
2048
|
// Inline function 'kotlin.collections.component2' call
|
|
2049
|
-
var header = item_4.
|
|
2049
|
+
var header = item_4.m1();
|
|
2050
2050
|
var tmp$ret$52 = toField_0(_this__u8e3s4, resolve_0(header), identifier);
|
|
2051
2051
|
destination_12.x(tmp$ret$52);
|
|
2052
2052
|
}
|
|
@@ -2055,7 +2055,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2055
2055
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2056
2056
|
var tmp0_elvis_lhs_5 = tmp_6;
|
|
2057
2057
|
var tmp4_headers = tmp0_elvis_lhs_5 == null ? emptyList() : tmp0_elvis_lhs_5;
|
|
2058
|
-
var tmp1_safe_receiver = res.
|
|
2058
|
+
var tmp1_safe_receiver = res.o37_1;
|
|
2059
2059
|
var tmp_7;
|
|
2060
2060
|
if (tmp1_safe_receiver == null) {
|
|
2061
2061
|
tmp_7 = null;
|
|
@@ -2086,13 +2086,13 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2086
2086
|
var _iterator__ex2g4s_13 = destination_10.t();
|
|
2087
2087
|
while (_iterator__ex2g4s_13.u()) {
|
|
2088
2088
|
var e = _iterator__ex2g4s_13.v();
|
|
2089
|
-
var key = to(e.
|
|
2089
|
+
var key = to(e.ot_1, e.qt_1);
|
|
2090
2090
|
if (set.x(key)) {
|
|
2091
2091
|
list_1.x(e);
|
|
2092
2092
|
}
|
|
2093
2093
|
}
|
|
2094
2094
|
var responses = list_1;
|
|
2095
|
-
var list_2 = listOf(new Endpoint(null, toDescriptionAnnotationList(operation_0.
|
|
2095
|
+
var list_2 = listOf(new Endpoint(null, toDescriptionAnnotationList(operation_0.y36_1), new DefinitionIdentifier(sanitize(name)), method_0, segments, query, headers, requests, responses));
|
|
2096
2096
|
addAll(destination_1, list_2);
|
|
2097
2097
|
}
|
|
2098
2098
|
var list_3 = destination_1;
|
|
@@ -2111,17 +2111,17 @@ function parseResponseBody(_this__u8e3s4) {
|
|
|
2111
2111
|
}
|
|
2112
2112
|
function parseDefinitions(_this__u8e3s4) {
|
|
2113
2113
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2114
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2114
|
+
var tmp0_elvis_lhs = _this__u8e3s4.p32_1;
|
|
2115
2115
|
// Inline function 'arrow.core.filterIsInstance' call
|
|
2116
2116
|
// Inline function 'kotlin.collections.filterValues' call
|
|
2117
2117
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2118
2118
|
var result = LinkedHashMap_init_$Create$_0();
|
|
2119
2119
|
// Inline function 'kotlin.collections.iterator' call
|
|
2120
|
-
var _iterator__ex2g4s = this_0.
|
|
2120
|
+
var _iterator__ex2g4s = this_0.k1().t();
|
|
2121
2121
|
while (_iterator__ex2g4s.u()) {
|
|
2122
2122
|
var entry = _iterator__ex2g4s.v();
|
|
2123
|
-
if (entry.
|
|
2124
|
-
result.
|
|
2123
|
+
if (entry.m1() instanceof OpenAPIV2Schema) {
|
|
2124
|
+
result.y2(entry.l1(), entry.m1());
|
|
2125
2125
|
}
|
|
2126
2126
|
}
|
|
2127
2127
|
var tmp = result;
|
|
@@ -2130,10 +2130,10 @@ function parseDefinitions(_this__u8e3s4) {
|
|
|
2130
2130
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2131
2131
|
var destination = LinkedHashMap_init_$Create$_0();
|
|
2132
2132
|
// Inline function 'kotlin.collections.iterator' call
|
|
2133
|
-
var _iterator__ex2g4s_0 = tmp0.
|
|
2133
|
+
var _iterator__ex2g4s_0 = tmp0.k1().t();
|
|
2134
2134
|
while (_iterator__ex2g4s_0.u()) {
|
|
2135
2135
|
var element = _iterator__ex2g4s_0.v();
|
|
2136
|
-
var tmp0_subject = element.
|
|
2136
|
+
var tmp0_subject = element.m1().v34_1;
|
|
2137
2137
|
var tmp_0;
|
|
2138
2138
|
if (tmp0_subject instanceof OpenAPIV2Boolean) {
|
|
2139
2139
|
tmp_0 = true;
|
|
@@ -2153,17 +2153,17 @@ function parseDefinitions(_this__u8e3s4) {
|
|
|
2153
2153
|
}
|
|
2154
2154
|
}
|
|
2155
2155
|
if (tmp_0) {
|
|
2156
|
-
destination.
|
|
2156
|
+
destination.y2(element.l1(), element.m1());
|
|
2157
2157
|
}
|
|
2158
2158
|
}
|
|
2159
2159
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2160
2160
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2161
2161
|
var destination_0 = ArrayList_init_$Create$();
|
|
2162
2162
|
// Inline function 'kotlin.collections.iterator' call
|
|
2163
|
-
var _iterator__ex2g4s_1 = destination.
|
|
2163
|
+
var _iterator__ex2g4s_1 = destination.k1().t();
|
|
2164
2164
|
while (_iterator__ex2g4s_1.u()) {
|
|
2165
2165
|
var element_0 = _iterator__ex2g4s_1.v();
|
|
2166
|
-
var list = flatten_0(_this__u8e3s4, element_0.
|
|
2166
|
+
var list = flatten_0(_this__u8e3s4, element_0.m1(), className([element_0.l1()]));
|
|
2167
2167
|
addAll(destination_0, list);
|
|
2168
2168
|
}
|
|
2169
2169
|
return destination_0;
|
|
@@ -2226,7 +2226,7 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
2226
2226
|
var _iterator__ex2g4s_0 = parameters.t();
|
|
2227
2227
|
while (_iterator__ex2g4s_0.u()) {
|
|
2228
2228
|
var element = _iterator__ex2g4s_0.v();
|
|
2229
|
-
if (element.
|
|
2229
|
+
if (element.l36_1 === param) {
|
|
2230
2230
|
tmp$ret$2 = element;
|
|
2231
2231
|
break $l$block;
|
|
2232
2232
|
}
|
|
@@ -2270,15 +2270,15 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
2270
2270
|
function toField(_this__u8e3s4, parameter, name) {
|
|
2271
2271
|
// Inline function 'kotlin.let' call
|
|
2272
2272
|
var schema = resolve_1(_this__u8e3s4, parameter);
|
|
2273
|
-
var tmp0_elvis_lhs = parameter.
|
|
2273
|
+
var tmp0_elvis_lhs = parameter.q35_1;
|
|
2274
2274
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
2275
2275
|
var tmp;
|
|
2276
|
-
if (!(parameter.
|
|
2277
|
-
tmp = new Custom(sanitize(className([name, 'Parameter', schema.
|
|
2276
|
+
if (!(parameter.h36_1 == null)) {
|
|
2277
|
+
tmp = new Custom(sanitize(className([name, 'Parameter', schema.l36_1])), isNullable);
|
|
2278
2278
|
} else {
|
|
2279
|
-
var tmp1_subject = schema.
|
|
2279
|
+
var tmp1_subject = schema.r35_1;
|
|
2280
2280
|
var tmp_0;
|
|
2281
|
-
switch (tmp1_subject == null ? -1 : tmp1_subject.
|
|
2281
|
+
switch (tmp1_subject == null ? -1 : tmp1_subject.c3_1) {
|
|
2282
2282
|
case 0:
|
|
2283
2283
|
case 1:
|
|
2284
2284
|
case 2:
|
|
@@ -2289,7 +2289,7 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2289
2289
|
tmp_0 = new Primitive(primitive, isNullable);
|
|
2290
2290
|
break;
|
|
2291
2291
|
case 4:
|
|
2292
|
-
var tmp2_safe_receiver = schema.
|
|
2292
|
+
var tmp2_safe_receiver = schema.s35_1;
|
|
2293
2293
|
var tmp_1;
|
|
2294
2294
|
if (tmp2_safe_receiver == null) {
|
|
2295
2295
|
tmp_1 = null;
|
|
@@ -2336,8 +2336,8 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2336
2336
|
}
|
|
2337
2337
|
// Inline function 'kotlin.let' call
|
|
2338
2338
|
var it = tmp;
|
|
2339
|
-
var tmp0_identifier = new FieldIdentifier(parameter.
|
|
2340
|
-
var tmp1_annotations = toDescriptionAnnotationList(parameter.
|
|
2339
|
+
var tmp0_identifier = new FieldIdentifier(parameter.l36_1);
|
|
2340
|
+
var tmp1_annotations = toDescriptionAnnotationList(parameter.p35_1);
|
|
2341
2341
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
2342
2342
|
}
|
|
2343
2343
|
function toReference(_this__u8e3s4, reference, isNullable) {
|
|
@@ -2345,8 +2345,8 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2345
2345
|
var refOrSchema = resolveOpenAPIV2Schema(_this__u8e3s4, reference);
|
|
2346
2346
|
var schema = resolve_2(_this__u8e3s4, refOrSchema);
|
|
2347
2347
|
var tmp;
|
|
2348
|
-
if (exists(schema.
|
|
2349
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2348
|
+
if (exists(schema.v34_1)) {
|
|
2349
|
+
var additionalProperties = ensureNotNull(schema.v34_1);
|
|
2350
2350
|
var tmp_0;
|
|
2351
2351
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
2352
2352
|
tmp_0 = new Dict(new Any(false), isNullable);
|
|
@@ -2362,15 +2362,15 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2362
2362
|
}
|
|
2363
2363
|
}
|
|
2364
2364
|
tmp = tmp_0;
|
|
2365
|
-
} else if (!(schema.
|
|
2365
|
+
} else if (!(schema.r34_1 == null)) {
|
|
2366
2366
|
tmp = new Custom(sanitize(className([getReference(reference)])), isNullable);
|
|
2367
|
-
} else if (isPrimitive(schema.
|
|
2367
|
+
} else if (isPrimitive(schema.e34_1)) {
|
|
2368
2368
|
tmp = new Primitive(toPrimitive(schema), isNullable);
|
|
2369
2369
|
} else {
|
|
2370
|
-
var tmp0_subject = schema.
|
|
2370
|
+
var tmp0_subject = schema.e34_1;
|
|
2371
2371
|
var tmp_1;
|
|
2372
|
-
if ((tmp0_subject == null ? -1 : tmp0_subject.
|
|
2373
|
-
var items = schema.
|
|
2372
|
+
if ((tmp0_subject == null ? -1 : tmp0_subject.c3_1) === 4) {
|
|
2373
|
+
var items = schema.s34_1;
|
|
2374
2374
|
var tmp_2;
|
|
2375
2375
|
if (items instanceof OpenAPIV2Reference) {
|
|
2376
2376
|
tmp_2 = toIterable(toReference(_this__u8e3s4, items, false), isNullable);
|
|
@@ -2379,7 +2379,7 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2379
2379
|
tmp_2 = toIterable(toReference_0(_this__u8e3s4, items, className([getReference(reference), 'Array']), isNullable), isNullable);
|
|
2380
2380
|
} else {
|
|
2381
2381
|
if (items == null) {
|
|
2382
|
-
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.i37_1);
|
|
2383
2383
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2384
2384
|
} else {
|
|
2385
2385
|
noWhenBranchMatchedException();
|
|
@@ -2412,44 +2412,44 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2412
2412
|
var tmp_3;
|
|
2413
2413
|
var tmp_4;
|
|
2414
2414
|
var tmp_5;
|
|
2415
|
-
var tmp0_safe_receiver = schema.
|
|
2416
|
-
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2417
|
-
var tmp_6 = first(ensureNotNull(schema.
|
|
2415
|
+
var tmp0_safe_receiver = schema.t34_1;
|
|
2416
|
+
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1()) === 1) {
|
|
2417
|
+
var tmp_6 = first(ensureNotNull(schema.t34_1));
|
|
2418
2418
|
tmp_5 = tmp_6 instanceof OpenAPIV2Reference;
|
|
2419
2419
|
} else {
|
|
2420
2420
|
tmp_5 = false;
|
|
2421
2421
|
}
|
|
2422
2422
|
if (tmp_5) {
|
|
2423
|
-
tmp_4 = schema.
|
|
2423
|
+
tmp_4 = schema.u34_1 == null;
|
|
2424
2424
|
} else {
|
|
2425
2425
|
tmp_4 = false;
|
|
2426
2426
|
}
|
|
2427
2427
|
if (tmp_4) {
|
|
2428
|
-
tmp_3 = schema.
|
|
2428
|
+
tmp_3 = schema.r34_1 == null;
|
|
2429
2429
|
} else {
|
|
2430
2430
|
tmp_3 = false;
|
|
2431
2431
|
}
|
|
2432
2432
|
if (tmp_3) {
|
|
2433
|
-
tmp_2 = schema.
|
|
2433
|
+
tmp_2 = schema.e34_1 == null;
|
|
2434
2434
|
} else {
|
|
2435
2435
|
tmp_2 = false;
|
|
2436
2436
|
}
|
|
2437
2437
|
if (tmp_2) {
|
|
2438
|
-
tmp_1 = schema.
|
|
2438
|
+
tmp_1 = schema.s34_1 == null;
|
|
2439
2439
|
} else {
|
|
2440
2440
|
tmp_1 = false;
|
|
2441
2441
|
}
|
|
2442
2442
|
if (tmp_1) {
|
|
2443
|
-
tmp_0 = schema.
|
|
2443
|
+
tmp_0 = schema.v34_1 == null;
|
|
2444
2444
|
} else {
|
|
2445
2445
|
tmp_0 = false;
|
|
2446
2446
|
}
|
|
2447
2447
|
if (tmp_0) {
|
|
2448
|
-
var tmp_7 = first(ensureNotNull(schema.
|
|
2448
|
+
var tmp_7 = first(ensureNotNull(schema.t34_1));
|
|
2449
2449
|
tmp = toReference(_this__u8e3s4, tmp_7 instanceof OpenAPIV2Reference ? tmp_7 : THROW_CCE(), isNullable);
|
|
2450
2450
|
} else {
|
|
2451
|
-
if (!(schema.
|
|
2452
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2451
|
+
if (!(schema.v34_1 == null)) {
|
|
2452
|
+
var additionalProperties = ensureNotNull(schema.v34_1);
|
|
2453
2453
|
var tmp_8;
|
|
2454
2454
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
2455
2455
|
tmp_8 = new Dict(new Any(false), isNullable);
|
|
@@ -2460,7 +2460,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2460
2460
|
if (additionalProperties instanceof OpenAPIV2Schema) {
|
|
2461
2461
|
// Inline function 'kotlin.takeIf' call
|
|
2462
2462
|
var tmp_9;
|
|
2463
|
-
if (isPrimitive(additionalProperties.
|
|
2463
|
+
if (isPrimitive(additionalProperties.e34_1) || !(additionalProperties.u34_1 == null)) {
|
|
2464
2464
|
tmp_9 = additionalProperties;
|
|
2465
2465
|
} else {
|
|
2466
2466
|
tmp_9 = null;
|
|
@@ -2482,24 +2482,24 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2482
2482
|
}
|
|
2483
2483
|
tmp = tmp_8;
|
|
2484
2484
|
} else {
|
|
2485
|
-
if (!(schema.
|
|
2485
|
+
if (!(schema.r34_1 == null)) {
|
|
2486
2486
|
var tmp_11;
|
|
2487
|
-
if (!(schema.
|
|
2487
|
+
if (!(schema.v34_1 == null)) {
|
|
2488
2488
|
tmp_11 = new Dict(new Custom(sanitize(name), false), isNullable);
|
|
2489
2489
|
} else {
|
|
2490
2490
|
tmp_11 = new Custom(sanitize(name), isNullable);
|
|
2491
2491
|
}
|
|
2492
2492
|
tmp = tmp_11;
|
|
2493
2493
|
} else {
|
|
2494
|
-
var tmp3_subject = schema.
|
|
2494
|
+
var tmp3_subject = schema.e34_1;
|
|
2495
2495
|
var tmp_12;
|
|
2496
|
-
switch (tmp3_subject == null ? -1 : tmp3_subject.
|
|
2496
|
+
switch (tmp3_subject == null ? -1 : tmp3_subject.c3_1) {
|
|
2497
2497
|
case 0:
|
|
2498
2498
|
case 2:
|
|
2499
2499
|
case 1:
|
|
2500
2500
|
case 3:
|
|
2501
2501
|
var tmp_13;
|
|
2502
|
-
if (!(schema.
|
|
2502
|
+
if (!(schema.v34_1 == null)) {
|
|
2503
2503
|
tmp_13 = new Dict(new Primitive(toPrimitive(schema), false), isNullable);
|
|
2504
2504
|
} else {
|
|
2505
2505
|
tmp_13 = new Primitive(toPrimitive(schema), isNullable);
|
|
@@ -2510,17 +2510,17 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2510
2510
|
case -1:
|
|
2511
2511
|
case 5:
|
|
2512
2512
|
var tmp_14;
|
|
2513
|
-
var tmp_15 = schema.
|
|
2513
|
+
var tmp_15 = schema.v34_1;
|
|
2514
2514
|
if (!(tmp_15 == null) ? isInterface(tmp_15, BooleanValue) : false) {
|
|
2515
2515
|
var tmp_16;
|
|
2516
|
-
if (!(schema.
|
|
2516
|
+
if (!(schema.v34_1 == null)) {
|
|
2517
2517
|
tmp_16 = new Dict(new Any(isNullable), false);
|
|
2518
2518
|
} else {
|
|
2519
2519
|
tmp_16 = new Any(isNullable);
|
|
2520
2520
|
}
|
|
2521
2521
|
tmp_14 = tmp_16;
|
|
2522
2522
|
} else {
|
|
2523
|
-
if (!(schema.
|
|
2523
|
+
if (!(schema.v34_1 == null)) {
|
|
2524
2524
|
new Dict(new Custom(sanitize(name), isNullable), false);
|
|
2525
2525
|
}
|
|
2526
2526
|
tmp_14 = new Custom(sanitize(name), isNullable);
|
|
@@ -2529,7 +2529,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2529
2529
|
tmp_12 = tmp_14;
|
|
2530
2530
|
break;
|
|
2531
2531
|
case 4:
|
|
2532
|
-
var items = schema.
|
|
2532
|
+
var items = schema.s34_1;
|
|
2533
2533
|
var tmp_17;
|
|
2534
2534
|
if (items instanceof OpenAPIV2Reference) {
|
|
2535
2535
|
tmp_17 = toIterable(toReference(_this__u8e3s4, items, false), isNullable);
|
|
@@ -2576,10 +2576,10 @@ function resolve(_this__u8e3s4, responseOrReference) {
|
|
|
2576
2576
|
}
|
|
2577
2577
|
function toField_0(_this__u8e3s4, header, identifier) {
|
|
2578
2578
|
var tmp4_identifier = new FieldIdentifier(identifier);
|
|
2579
|
-
var tmp5_annotations = toDescriptionAnnotationList(header.
|
|
2579
|
+
var tmp5_annotations = toDescriptionAnnotationList(header.x37_1);
|
|
2580
2580
|
var tmp;
|
|
2581
|
-
if (header.
|
|
2582
|
-
var tmp1_safe_receiver = header.
|
|
2581
|
+
if (header.y37_1.c3_1 === 4) {
|
|
2582
|
+
var tmp1_safe_receiver = header.a38_1;
|
|
2583
2583
|
var tmp_0;
|
|
2584
2584
|
if (tmp1_safe_receiver == null) {
|
|
2585
2585
|
tmp_0 = null;
|
|
@@ -2652,13 +2652,13 @@ function resolve_1(_this__u8e3s4, parameterOrReference) {
|
|
|
2652
2652
|
}
|
|
2653
2653
|
function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
2654
2654
|
var tmp;
|
|
2655
|
-
if (exists(schemaObject.
|
|
2656
|
-
var tmp0_subject = schemaObject.
|
|
2655
|
+
if (exists(schemaObject.v34_1)) {
|
|
2656
|
+
var tmp0_subject = schemaObject.v34_1;
|
|
2657
2657
|
var tmp_0;
|
|
2658
2658
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
2659
2659
|
tmp_0 = emptyList();
|
|
2660
2660
|
} else {
|
|
2661
|
-
var tmp1_safe_receiver = schemaObject.
|
|
2661
|
+
var tmp1_safe_receiver = schemaObject.v34_1;
|
|
2662
2662
|
var tmp_1;
|
|
2663
2663
|
if (tmp1_safe_receiver == null) {
|
|
2664
2664
|
tmp_1 = null;
|
|
@@ -2673,7 +2673,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2673
2673
|
} else {
|
|
2674
2674
|
// Inline function 'kotlin.takeIf' call
|
|
2675
2675
|
var tmp_3;
|
|
2676
|
-
if (!(tmp2_safe_receiver.
|
|
2676
|
+
if (!(tmp2_safe_receiver.u34_1 == null)) {
|
|
2677
2677
|
tmp_3 = tmp2_safe_receiver;
|
|
2678
2678
|
} else {
|
|
2679
2679
|
tmp_3 = null;
|
|
@@ -2692,11 +2692,11 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2692
2692
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
2693
2693
|
}
|
|
2694
2694
|
tmp = tmp_0;
|
|
2695
|
-
} else if (!(schemaObject.
|
|
2696
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
2695
|
+
} else if (!(schemaObject.t34_1 == null)) {
|
|
2696
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.k34_1);
|
|
2697
2697
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
2698
2698
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2699
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
2699
|
+
var tmp0_elvis_lhs = schemaObject.t34_1;
|
|
2700
2700
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2701
2701
|
var tmp0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2702
2702
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2723,14 +2723,14 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2723
2723
|
var _iterator__ex2g4s_0 = destination.t();
|
|
2724
2724
|
while (_iterator__ex2g4s_0.u()) {
|
|
2725
2725
|
var e = _iterator__ex2g4s_0.v();
|
|
2726
|
-
var key = e.
|
|
2726
|
+
var key = e.ys_1;
|
|
2727
2727
|
if (set.x(key)) {
|
|
2728
2728
|
list_0.x(e);
|
|
2729
2729
|
}
|
|
2730
2730
|
}
|
|
2731
2731
|
var tmp_8 = listOf(new Type(null, tmp_5, tmp_6, new Shape(list_0), emptyList()));
|
|
2732
2732
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2733
|
-
var tmp0_0 = ensureNotNull(schemaObject.
|
|
2733
|
+
var tmp0_0 = ensureNotNull(schemaObject.t34_1);
|
|
2734
2734
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2735
2735
|
var destination_0 = ArrayList_init_$Create$();
|
|
2736
2736
|
var _iterator__ex2g4s_1 = tmp0_0.t();
|
|
@@ -2742,19 +2742,19 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2742
2742
|
} else {
|
|
2743
2743
|
if (element_0 instanceof OpenAPIV2Schema) {
|
|
2744
2744
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2745
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
2745
|
+
var tmp0_elvis_lhs_0 = element_0.u34_1;
|
|
2746
2746
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2747
2747
|
var tmp0_1 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2748
2748
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2749
2749
|
var destination_1 = ArrayList_init_$Create$();
|
|
2750
2750
|
// Inline function 'kotlin.collections.iterator' call
|
|
2751
|
-
var _iterator__ex2g4s_2 = tmp0_1.
|
|
2751
|
+
var _iterator__ex2g4s_2 = tmp0_1.k1().t();
|
|
2752
2752
|
while (_iterator__ex2g4s_2.u()) {
|
|
2753
2753
|
var element_1 = _iterator__ex2g4s_2.v();
|
|
2754
2754
|
// Inline function 'kotlin.collections.component1' call
|
|
2755
|
-
var key_0 = element_1.
|
|
2755
|
+
var key_0 = element_1.l1();
|
|
2756
2756
|
// Inline function 'kotlin.collections.component2' call
|
|
2757
|
-
var value = element_1.
|
|
2757
|
+
var value = element_1.m1();
|
|
2758
2758
|
var tmp_10;
|
|
2759
2759
|
if (value instanceof OpenAPIV2Reference) {
|
|
2760
2760
|
tmp_10 = emptyList();
|
|
@@ -2777,29 +2777,29 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2777
2777
|
addAll(destination_0, list_2);
|
|
2778
2778
|
}
|
|
2779
2779
|
tmp = plus_0(tmp_8, destination_0);
|
|
2780
|
-
} else if (!(schemaObject.
|
|
2780
|
+
} else if (!(schemaObject.r34_1 == null)) {
|
|
2781
2781
|
// Inline function 'kotlin.collections.map' call
|
|
2782
|
-
var this_0 = ensureNotNull(schemaObject.
|
|
2782
|
+
var this_0 = ensureNotNull(schemaObject.r34_1);
|
|
2783
2783
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2784
2784
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2785
2785
|
var _iterator__ex2g4s_3 = this_0.t();
|
|
2786
2786
|
while (_iterator__ex2g4s_3.u()) {
|
|
2787
2787
|
var item = _iterator__ex2g4s_3.v();
|
|
2788
|
-
var tmp$ret$22 = item.
|
|
2788
|
+
var tmp$ret$22 = item.f11();
|
|
2789
2789
|
destination_2.x(tmp$ret$22);
|
|
2790
2790
|
}
|
|
2791
2791
|
// Inline function 'kotlin.let' call
|
|
2792
2792
|
var it = toSet(destination_2);
|
|
2793
|
-
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.
|
|
2793
|
+
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.k34_1), new DefinitionIdentifier(sanitize(name)), it));
|
|
2794
2794
|
} else {
|
|
2795
|
-
var tmp5_subject = schemaObject.
|
|
2795
|
+
var tmp5_subject = schemaObject.e34_1;
|
|
2796
2796
|
var tmp_11;
|
|
2797
|
-
switch (tmp5_subject == null ? -1 : tmp5_subject.
|
|
2797
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.c3_1) {
|
|
2798
2798
|
case -1:
|
|
2799
2799
|
case 5:
|
|
2800
2800
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2801
2801
|
|
|
2802
|
-
var tmp0_elvis_lhs_1 = schemaObject.
|
|
2802
|
+
var tmp0_elvis_lhs_1 = schemaObject.u34_1;
|
|
2803
2803
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2804
2804
|
|
|
2805
2805
|
var tmp0_2 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
@@ -2808,23 +2808,23 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2808
2808
|
var destination_3 = ArrayList_init_$Create$();
|
|
2809
2809
|
// Inline function 'kotlin.collections.iterator' call
|
|
2810
2810
|
|
|
2811
|
-
var _iterator__ex2g4s_4 = tmp0_2.
|
|
2811
|
+
var _iterator__ex2g4s_4 = tmp0_2.k1().t();
|
|
2812
2812
|
while (_iterator__ex2g4s_4.u()) {
|
|
2813
2813
|
var element_2 = _iterator__ex2g4s_4.v();
|
|
2814
2814
|
// Inline function 'kotlin.collections.component1' call
|
|
2815
|
-
var key_1 = element_2.
|
|
2815
|
+
var key_1 = element_2.l1();
|
|
2816
2816
|
// Inline function 'kotlin.collections.component2' call
|
|
2817
|
-
var value_0 = element_2.
|
|
2817
|
+
var value_0 = element_2.m1();
|
|
2818
2818
|
var list_3 = flatten(_this__u8e3s4, value_0, className([name, key_1]));
|
|
2819
2819
|
addAll(destination_3, list_3);
|
|
2820
2820
|
}
|
|
2821
2821
|
|
|
2822
2822
|
var fields = destination_3;
|
|
2823
|
-
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.
|
|
2823
|
+
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.k34_1), new DefinitionIdentifier(sanitize(name)), new Shape(toField_1(_this__u8e3s4, schemaObject, name)), emptyList()));
|
|
2824
2824
|
tmp_11 = plus_0(schema, fields);
|
|
2825
2825
|
break;
|
|
2826
2826
|
case 4:
|
|
2827
|
-
var it_0 = schemaObject.
|
|
2827
|
+
var it_0 = schemaObject.s34_1;
|
|
2828
2828
|
var tmp_12;
|
|
2829
2829
|
if (it_0 instanceof OpenAPIV2Reference) {
|
|
2830
2830
|
tmp_12 = emptyList();
|
|
@@ -2851,11 +2851,11 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2851
2851
|
return tmp;
|
|
2852
2852
|
}
|
|
2853
2853
|
function resolveParameterObject(_this__u8e3s4, reference) {
|
|
2854
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2855
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2854
|
+
var tmp0_safe_receiver = _this__u8e3s4.q32_1;
|
|
2855
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q2(getReference(reference));
|
|
2856
2856
|
var tmp;
|
|
2857
2857
|
if (tmp1_elvis_lhs == null) {
|
|
2858
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
2858
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.i37_1);
|
|
2859
2859
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2860
2860
|
} else {
|
|
2861
2861
|
tmp = tmp1_elvis_lhs;
|
|
@@ -2863,17 +2863,17 @@ function resolveParameterObject(_this__u8e3s4, reference) {
|
|
|
2863
2863
|
return tmp;
|
|
2864
2864
|
}
|
|
2865
2865
|
function toPrimitive(_this__u8e3s4) {
|
|
2866
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2866
|
+
var tmp0_subject = _this__u8e3s4.b11();
|
|
2867
2867
|
var tmp;
|
|
2868
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
2868
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.c3_1) {
|
|
2869
2869
|
case 0:
|
|
2870
|
-
tmp = !(_this__u8e3s4.
|
|
2870
|
+
tmp = !(_this__u8e3s4.i35() == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.i35()))) : _this__u8e3s4.h35() === 'binary' ? Bytes_instance : new String_0(null);
|
|
2871
2871
|
break;
|
|
2872
2872
|
case 2:
|
|
2873
|
-
tmp = new Integer(_this__u8e3s4.
|
|
2873
|
+
tmp = new Integer(_this__u8e3s4.h35() === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
2874
2874
|
break;
|
|
2875
2875
|
case 1:
|
|
2876
|
-
tmp = new Number_0(_this__u8e3s4.
|
|
2876
|
+
tmp = new Number_0(_this__u8e3s4.h35() === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
2877
2877
|
break;
|
|
2878
2878
|
case 3:
|
|
2879
2879
|
tmp = Boolean_instance;
|
|
@@ -2911,11 +2911,11 @@ function resolve_2(_this__u8e3s4, schemaOrReference) {
|
|
|
2911
2911
|
while (true);
|
|
2912
2912
|
}
|
|
2913
2913
|
function resolveOpenAPIV2Schema(_this__u8e3s4, reference) {
|
|
2914
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2915
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2914
|
+
var tmp0_safe_receiver = _this__u8e3s4.p32_1;
|
|
2915
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q2(getReference(reference));
|
|
2916
2916
|
var tmp;
|
|
2917
2917
|
if (tmp1_elvis_lhs == null) {
|
|
2918
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
2918
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.i37_1);
|
|
2919
2919
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2920
2920
|
} else {
|
|
2921
2921
|
tmp = tmp1_elvis_lhs;
|
|
@@ -2928,7 +2928,7 @@ function exists(_this__u8e3s4) {
|
|
|
2928
2928
|
tmp = true;
|
|
2929
2929
|
} else {
|
|
2930
2930
|
if (!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, BooleanValue) : false) {
|
|
2931
|
-
tmp = _this__u8e3s4.
|
|
2931
|
+
tmp = _this__u8e3s4.m1();
|
|
2932
2932
|
} else {
|
|
2933
2933
|
if (_this__u8e3s4 instanceof OpenAPIV2Reference) {
|
|
2934
2934
|
tmp = true;
|
|
@@ -2941,7 +2941,7 @@ function exists(_this__u8e3s4) {
|
|
|
2941
2941
|
}
|
|
2942
2942
|
function isPrimitive(_this__u8e3s4) {
|
|
2943
2943
|
var tmp;
|
|
2944
|
-
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.
|
|
2944
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.c3_1) {
|
|
2945
2945
|
case 0:
|
|
2946
2946
|
tmp = true;
|
|
2947
2947
|
break;
|
|
@@ -2973,11 +2973,11 @@ function isPrimitive(_this__u8e3s4) {
|
|
|
2973
2973
|
return tmp;
|
|
2974
2974
|
}
|
|
2975
2975
|
function resolveResponseObject(_this__u8e3s4, reference) {
|
|
2976
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2977
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2976
|
+
var tmp0_safe_receiver = _this__u8e3s4.r32_1;
|
|
2977
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q2(getReference(reference));
|
|
2978
2978
|
var tmp;
|
|
2979
2979
|
if (tmp1_elvis_lhs == null) {
|
|
2980
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
2980
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.i37_1);
|
|
2981
2981
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2982
2982
|
} else {
|
|
2983
2983
|
tmp = tmp1_elvis_lhs;
|
|
@@ -3004,27 +3004,27 @@ function resolve_3(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
3004
3004
|
}
|
|
3005
3005
|
function toField_1(_this__u8e3s4, schema, name) {
|
|
3006
3006
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3007
|
-
var tmp0_elvis_lhs = schema.
|
|
3007
|
+
var tmp0_elvis_lhs = schema.u34_1;
|
|
3008
3008
|
// Inline function 'kotlin.collections.map' call
|
|
3009
3009
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3010
3010
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3011
|
-
var destination = ArrayList_init_$Create$_0(this_0.
|
|
3011
|
+
var destination = ArrayList_init_$Create$_0(this_0.a1());
|
|
3012
3012
|
// Inline function 'kotlin.collections.iterator' call
|
|
3013
|
-
var _iterator__ex2g4s = this_0.
|
|
3013
|
+
var _iterator__ex2g4s = this_0.k1().t();
|
|
3014
3014
|
while (_iterator__ex2g4s.u()) {
|
|
3015
3015
|
var item = _iterator__ex2g4s.v();
|
|
3016
3016
|
// Inline function 'kotlin.collections.component1' call
|
|
3017
|
-
var key = item.
|
|
3017
|
+
var key = item.l1();
|
|
3018
3018
|
// Inline function 'kotlin.collections.component2' call
|
|
3019
|
-
var value = item.
|
|
3020
|
-
var tmp0_safe_receiver = schema.
|
|
3021
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3019
|
+
var value = item.m1();
|
|
3020
|
+
var tmp0_safe_receiver = schema.q34_1;
|
|
3021
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v1(key);
|
|
3022
3022
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
3023
3023
|
var tmp;
|
|
3024
3024
|
if (value instanceof OpenAPIV2Schema) {
|
|
3025
3025
|
var tmp3_identifier = new FieldIdentifier(key);
|
|
3026
3026
|
var tmp4_annotations = emptyList();
|
|
3027
|
-
var tmp5_reference = !(value.
|
|
3027
|
+
var tmp5_reference = !(value.r34_1 == null) ? toReference_0(_this__u8e3s4, value, className([name, key]), isNullable) : equals(value.e34_1, OpenAPIV2Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, value, className([name, key, 'Array']), isNullable) : toReference_0(_this__u8e3s4, value, className([name, key]), isNullable);
|
|
3028
3028
|
tmp = new Field(tmp4_annotations, tmp3_identifier, tmp5_reference);
|
|
3029
3029
|
} else {
|
|
3030
3030
|
if (value instanceof OpenAPIV2Reference) {
|
|
@@ -3043,19 +3043,19 @@ function toField_1(_this__u8e3s4, schema, name) {
|
|
|
3043
3043
|
}
|
|
3044
3044
|
function parseParameters$lambda($this_parseParameters) {
|
|
3045
3045
|
return function ($this$flatMapRequests) {
|
|
3046
|
-
var tmp = $this$flatMapRequests.
|
|
3047
|
-
var tmp_0 = resolveParameters($this_parseParameters, (tmp instanceof OpenAPIV2PathItem ? tmp : THROW_CCE()).
|
|
3048
|
-
var tmp_1 = $this$flatMapRequests.
|
|
3049
|
-
var parameters = plus_0(tmp_0, resolveParameters($this_parseParameters, (tmp_1 instanceof OpenAPIV2Operation ? tmp_1 : THROW_CCE()).
|
|
3050
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
3051
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
3046
|
+
var tmp = $this$flatMapRequests.y3k_1;
|
|
3047
|
+
var tmp_0 = resolveParameters($this_parseParameters, (tmp instanceof OpenAPIV2PathItem ? tmp : THROW_CCE()).d33_1);
|
|
3048
|
+
var tmp_1 = $this$flatMapRequests.a3l_1;
|
|
3049
|
+
var parameters = plus_0(tmp_0, resolveParameters($this_parseParameters, (tmp_1 instanceof OpenAPIV2Operation ? tmp_1 : THROW_CCE()).s36_1));
|
|
3050
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.a3l_1);
|
|
3051
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.x3k_1) + $this$flatMapRequests.z3k_1.b3_1 : tmp0_elvis_lhs;
|
|
3052
3052
|
// Inline function 'kotlin.collections.filter' call
|
|
3053
3053
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3054
3054
|
var destination = ArrayList_init_$Create$();
|
|
3055
3055
|
var _iterator__ex2g4s = parameters.t();
|
|
3056
3056
|
while (_iterator__ex2g4s.u()) {
|
|
3057
3057
|
var element = _iterator__ex2g4s.v();
|
|
3058
|
-
if (!element.
|
|
3058
|
+
if (!element.j36_1.equals(OpenAPIV2ParameterLocation_BODY_getInstance())) {
|
|
3059
3059
|
destination.x(element);
|
|
3060
3060
|
}
|
|
3061
3061
|
}
|
|
@@ -3065,13 +3065,13 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
3065
3065
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3066
3066
|
while (_iterator__ex2g4s_0.u()) {
|
|
3067
3067
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3068
|
-
var tmp0_safe_receiver = element_0.
|
|
3068
|
+
var tmp0_safe_receiver = element_0.k36_1;
|
|
3069
3069
|
var tmp_2;
|
|
3070
3070
|
if (tmp0_safe_receiver == null) {
|
|
3071
3071
|
tmp_2 = null;
|
|
3072
3072
|
} else {
|
|
3073
3073
|
// Inline function 'kotlin.let' call
|
|
3074
|
-
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.l36_1]));
|
|
3075
3075
|
}
|
|
3076
3076
|
var tmp1_elvis_lhs = tmp_2;
|
|
3077
3077
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -3082,12 +3082,12 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
3082
3082
|
}
|
|
3083
3083
|
function parseRequestBody$lambda($this_parseRequestBody) {
|
|
3084
3084
|
return function ($this$flatMapRequests) {
|
|
3085
|
-
var tmp = $this$flatMapRequests.
|
|
3086
|
-
var tmp_0 = resolveParameters($this_parseRequestBody, (tmp instanceof OpenAPIV2PathItem ? tmp : THROW_CCE()).
|
|
3087
|
-
var tmp_1 = $this$flatMapRequests.
|
|
3088
|
-
var parameters = plus_0(tmp_0, resolveParameters($this_parseRequestBody, (tmp_1 instanceof OpenAPIV2Operation ? tmp_1 : THROW_CCE()).
|
|
3089
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
3090
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
3085
|
+
var tmp = $this$flatMapRequests.y3k_1;
|
|
3086
|
+
var tmp_0 = resolveParameters($this_parseRequestBody, (tmp instanceof OpenAPIV2PathItem ? tmp : THROW_CCE()).d33_1);
|
|
3087
|
+
var tmp_1 = $this$flatMapRequests.a3l_1;
|
|
3088
|
+
var parameters = plus_0(tmp_0, resolveParameters($this_parseRequestBody, (tmp_1 instanceof OpenAPIV2Operation ? tmp_1 : THROW_CCE()).s36_1));
|
|
3089
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.a3l_1);
|
|
3090
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.x3k_1) + $this$flatMapRequests.z3k_1.b3_1 : tmp0_elvis_lhs;
|
|
3091
3091
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3092
3092
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3093
3093
|
var destination = ArrayList_init_$Create$();
|
|
@@ -3095,17 +3095,17 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3095
3095
|
while (_iterator__ex2g4s.u()) {
|
|
3096
3096
|
var element = _iterator__ex2g4s.v();
|
|
3097
3097
|
var tmp_2;
|
|
3098
|
-
if (!(element.
|
|
3099
|
-
var tmp_3 = toDescriptionAnnotationList(element.
|
|
3100
|
-
var tmp_4 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.
|
|
3098
|
+
if (!(element.h36_1 == null)) {
|
|
3099
|
+
var tmp_3 = toDescriptionAnnotationList(element.p35_1);
|
|
3100
|
+
var tmp_4 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.l36_1])));
|
|
3101
3101
|
// Inline function 'kotlin.collections.map' call
|
|
3102
|
-
var this_0 = ensureNotNull(element.
|
|
3102
|
+
var this_0 = ensureNotNull(element.h36_1);
|
|
3103
3103
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3104
3104
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3105
3105
|
var _iterator__ex2g4s_0 = this_0.t();
|
|
3106
3106
|
while (_iterator__ex2g4s_0.u()) {
|
|
3107
3107
|
var item = _iterator__ex2g4s_0.v();
|
|
3108
|
-
var tmp$ret$0 = item.
|
|
3108
|
+
var tmp$ret$0 = item.f11();
|
|
3109
3109
|
destination_0.x(tmp$ret$0);
|
|
3110
3110
|
}
|
|
3111
3111
|
tmp_2 = listOf(new Enum(null, tmp_3, tmp_4, toSet(destination_0)));
|
|
@@ -3116,7 +3116,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3116
3116
|
addAll(destination, list);
|
|
3117
3117
|
}
|
|
3118
3118
|
var enums = destination;
|
|
3119
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
3119
|
+
var tmp1_safe_receiver = $this$flatMapRequests.a3l_1.s36_1;
|
|
3120
3120
|
var tmp_5;
|
|
3121
3121
|
if (tmp1_safe_receiver == null) {
|
|
3122
3122
|
tmp_5 = null;
|
|
@@ -3143,7 +3143,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3143
3143
|
var _iterator__ex2g4s_2 = tmp2_safe_receiver.t();
|
|
3144
3144
|
while (_iterator__ex2g4s_2.u()) {
|
|
3145
3145
|
var element_0 = _iterator__ex2g4s_2.v();
|
|
3146
|
-
if (element_0.
|
|
3146
|
+
if (element_0.j36_1.equals(OpenAPIV2ParameterLocation_BODY_getInstance())) {
|
|
3147
3147
|
destination_2.x(element_0);
|
|
3148
3148
|
}
|
|
3149
3149
|
}
|
|
@@ -3160,18 +3160,18 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3160
3160
|
var _iterator__ex2g4s_3 = tmp3_safe_receiver.t();
|
|
3161
3161
|
while (_iterator__ex2g4s_3.u()) {
|
|
3162
3162
|
var element_1 = _iterator__ex2g4s_3.v();
|
|
3163
|
-
var schema = element_1.
|
|
3163
|
+
var schema = element_1.k36_1;
|
|
3164
3164
|
var tmp_8;
|
|
3165
3165
|
if (schema instanceof OpenAPIV2Schema) {
|
|
3166
|
-
var tmp0_subject = schema.
|
|
3166
|
+
var tmp0_subject = schema.e34_1;
|
|
3167
3167
|
var tmp_9;
|
|
3168
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
3168
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.c3_1) {
|
|
3169
3169
|
case -1:
|
|
3170
3170
|
case 5:
|
|
3171
3171
|
tmp_9 = flatten_0($this_parseRequestBody, schema, className([name, 'RequestBody']));
|
|
3172
3172
|
break;
|
|
3173
3173
|
case 4:
|
|
3174
|
-
var tmp1_safe_receiver_0 = schema.
|
|
3174
|
+
var tmp1_safe_receiver_0 = schema.s34_1;
|
|
3175
3175
|
var tmp_10;
|
|
3176
3176
|
if (tmp1_safe_receiver_0 == null) {
|
|
3177
3177
|
tmp_10 = null;
|
|
@@ -3205,28 +3205,28 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3205
3205
|
}
|
|
3206
3206
|
function parseResponseBody$lambda($this_parseResponseBody) {
|
|
3207
3207
|
return function ($this$flatMapResponses) {
|
|
3208
|
-
var tmp = $this$flatMapResponses.
|
|
3209
|
-
var schema = resolve($this_parseResponseBody, isInterface(tmp, OpenAPIV2ResponseOrReference) ? tmp : THROW_CCE()).
|
|
3210
|
-
var tmp_0 = $this$flatMapResponses.
|
|
3208
|
+
var tmp = $this$flatMapResponses.g3l_1;
|
|
3209
|
+
var schema = resolve($this_parseResponseBody, isInterface(tmp, OpenAPIV2ResponseOrReference) ? tmp : THROW_CCE()).o37_1;
|
|
3210
|
+
var tmp_0 = $this$flatMapResponses.e3l_1;
|
|
3211
3211
|
var tmp0_elvis_lhs = toName(tmp_0 instanceof OpenAPIV2Operation ? tmp_0 : THROW_CCE());
|
|
3212
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
3212
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.b3l_1) + $this$flatMapResponses.d3l_1.b3_1 : tmp0_elvis_lhs;
|
|
3213
3213
|
var tmp_1;
|
|
3214
3214
|
if (schema instanceof OpenAPIV2Schema) {
|
|
3215
|
-
var tmp2_subject = schema.
|
|
3215
|
+
var tmp2_subject = schema.e34_1;
|
|
3216
3216
|
var tmp_2;
|
|
3217
|
-
switch (tmp2_subject == null ? -1 : tmp2_subject.
|
|
3217
|
+
switch (tmp2_subject == null ? -1 : tmp2_subject.c3_1) {
|
|
3218
3218
|
case -1:
|
|
3219
3219
|
case 5:
|
|
3220
|
-
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.f3l_1), 'ResponseBody']));
|
|
3221
3221
|
break;
|
|
3222
3222
|
case 4:
|
|
3223
|
-
var tmp3_safe_receiver = schema.
|
|
3223
|
+
var tmp3_safe_receiver = schema.s34_1;
|
|
3224
3224
|
var tmp_3;
|
|
3225
3225
|
if (tmp3_safe_receiver == null) {
|
|
3226
3226
|
tmp_3 = null;
|
|
3227
3227
|
} else {
|
|
3228
3228
|
// Inline function 'kotlin.let' call
|
|
3229
|
-
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.f3l_1), 'ResponseBody']));
|
|
3230
3230
|
}
|
|
3231
3231
|
|
|
3232
3232
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -3270,7 +3270,7 @@ function emitComponents($this, _this__u8e3s4, logger) {
|
|
|
3270
3270
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3271
3271
|
while (_iterator__ex2g4s_0.u()) {
|
|
3272
3272
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3273
|
-
var tmp_0 = element_0.
|
|
3273
|
+
var tmp_0 = element_0.tu().m1();
|
|
3274
3274
|
var tmp_1;
|
|
3275
3275
|
if (element_0 instanceof Enum) {
|
|
3276
3276
|
tmp_1 = emit_3(OpenAPIV3Emitter_getInstance(), element_0);
|
|
@@ -3301,10 +3301,10 @@ function emitComponents($this, _this__u8e3s4, logger) {
|
|
|
3301
3301
|
}
|
|
3302
3302
|
// Inline function 'kotlin.also' call
|
|
3303
3303
|
var this_0 = tmp_1;
|
|
3304
|
-
logger.
|
|
3304
|
+
logger.qu('Emitting ' + getKClassFromExpression(element_0).o() + ' ' + element_0.tu().m1());
|
|
3305
3305
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3306
3306
|
var pair = to(tmp_0, this_0);
|
|
3307
|
-
destination_0.
|
|
3307
|
+
destination_0.y2(pair.tf_1, pair.uf_1);
|
|
3308
3308
|
}
|
|
3309
3309
|
// Inline function 'kotlin.let' call
|
|
3310
3310
|
return new OpenAPIV3Components(destination_0);
|
|
@@ -3327,13 +3327,13 @@ function emitPaths_0($this, _this__u8e3s4, logger) {
|
|
|
3327
3327
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3328
3328
|
while (_iterator__ex2g4s_0.u()) {
|
|
3329
3329
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3330
|
-
var key = element_0.
|
|
3330
|
+
var key = element_0.et_1;
|
|
3331
3331
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
3332
|
-
var value = destination_0.
|
|
3332
|
+
var value = destination_0.q2(key);
|
|
3333
3333
|
var tmp;
|
|
3334
3334
|
if (value == null) {
|
|
3335
3335
|
var answer = ArrayList_init_$Create$();
|
|
3336
|
-
destination_0.
|
|
3336
|
+
destination_0.y2(key, answer);
|
|
3337
3337
|
tmp = answer;
|
|
3338
3338
|
} else {
|
|
3339
3339
|
tmp = value;
|
|
@@ -3343,16 +3343,16 @@ function emitPaths_0($this, _this__u8e3s4, logger) {
|
|
|
3343
3343
|
}
|
|
3344
3344
|
// Inline function 'kotlin.collections.map' call
|
|
3345
3345
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3346
|
-
var destination_1 = ArrayList_init_$Create$_0(destination_0.
|
|
3346
|
+
var destination_1 = ArrayList_init_$Create$_0(destination_0.a1());
|
|
3347
3347
|
// Inline function 'kotlin.collections.iterator' call
|
|
3348
|
-
var _iterator__ex2g4s_1 = destination_0.
|
|
3348
|
+
var _iterator__ex2g4s_1 = destination_0.k1().t();
|
|
3349
3349
|
while (_iterator__ex2g4s_1.u()) {
|
|
3350
3350
|
var item = _iterator__ex2g4s_1.v();
|
|
3351
3351
|
// Inline function 'kotlin.collections.component1' call
|
|
3352
|
-
var path = item.
|
|
3352
|
+
var path = item.l1();
|
|
3353
3353
|
// Inline function 'kotlin.collections.component2' call
|
|
3354
|
-
var endpoints = item.
|
|
3355
|
-
logger.
|
|
3354
|
+
var endpoints = item.m1();
|
|
3355
|
+
logger.qu('Emitting endpoints for path ' + emitSegment_0(OpenAPIV3Emitter_getInstance(), path));
|
|
3356
3356
|
var tmp_0 = _Path___init__impl__6uf4pw(emitSegment_0(OpenAPIV3Emitter_getInstance(), path));
|
|
3357
3357
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3358
3358
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
@@ -3395,31 +3395,31 @@ function emitPaths_0($this, _this__u8e3s4, logger) {
|
|
|
3395
3395
|
return toMap(destination_1);
|
|
3396
3396
|
}
|
|
3397
3397
|
function emit_1($this, _this__u8e3s4) {
|
|
3398
|
-
var type = _this__u8e3s4.
|
|
3398
|
+
var type = _this__u8e3s4.av_1.my_1;
|
|
3399
3399
|
var tmp;
|
|
3400
3400
|
if (type instanceof Integer) {
|
|
3401
3401
|
var tmp4_type = OpenAPIV3Type_INTEGER_getInstance();
|
|
3402
|
-
var tmp0_safe_receiver = type.
|
|
3403
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3402
|
+
var tmp0_safe_receiver = type.rx_1;
|
|
3403
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.mx_1;
|
|
3404
3404
|
var tmp5_minimum = tmp1_safe_receiver == null ? null : toDouble(tmp1_safe_receiver);
|
|
3405
|
-
var tmp2_safe_receiver = type.
|
|
3406
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
3405
|
+
var tmp2_safe_receiver = type.rx_1;
|
|
3406
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.nx_1;
|
|
3407
3407
|
var tmp6_maximum = tmp3_safe_receiver == null ? null : toDouble(tmp3_safe_receiver);
|
|
3408
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);
|
|
3409
3409
|
} else {
|
|
3410
3410
|
if (type instanceof Number_0) {
|
|
3411
3411
|
var tmp11_type = OpenAPIV3Type_NUMBER_getInstance();
|
|
3412
|
-
var tmp7_safe_receiver = type.
|
|
3413
|
-
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.
|
|
3412
|
+
var tmp7_safe_receiver = type.ux_1;
|
|
3413
|
+
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.mx_1;
|
|
3414
3414
|
var tmp12_minimum = tmp8_safe_receiver == null ? null : toDouble(tmp8_safe_receiver);
|
|
3415
|
-
var tmp9_safe_receiver = type.
|
|
3416
|
-
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.
|
|
3415
|
+
var tmp9_safe_receiver = type.ux_1;
|
|
3416
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.nx_1;
|
|
3417
3417
|
var tmp13_maximum = tmp10_safe_receiver == null ? null : toDouble(tmp10_safe_receiver);
|
|
3418
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);
|
|
3419
3419
|
} else {
|
|
3420
3420
|
if (type instanceof String_0) {
|
|
3421
3421
|
var tmp_0 = OpenAPIV3Type_STRING_getInstance();
|
|
3422
|
-
var tmp14_safe_receiver = type.
|
|
3422
|
+
var tmp14_safe_receiver = type.ox_1;
|
|
3423
3423
|
var tmp_1;
|
|
3424
3424
|
var tmp_2 = tmp14_safe_receiver;
|
|
3425
3425
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2)) == null) {
|
|
@@ -3444,10 +3444,10 @@ function emit_1($this, _this__u8e3s4) {
|
|
|
3444
3444
|
return tmp;
|
|
3445
3445
|
}
|
|
3446
3446
|
function emit_2($this, _this__u8e3s4) {
|
|
3447
|
-
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.
|
|
3447
|
+
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.ss_1);
|
|
3448
3448
|
var tmp;
|
|
3449
3449
|
if (tmp0_elvis_lhs == null) {
|
|
3450
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
3450
|
+
var tmp1_safe_receiver = _this__u8e3s4.rs_1;
|
|
3451
3451
|
var tmp_0;
|
|
3452
3452
|
var tmp_1 = tmp1_safe_receiver;
|
|
3453
3453
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3461,7 +3461,7 @@ function emit_2($this, _this__u8e3s4) {
|
|
|
3461
3461
|
}
|
|
3462
3462
|
var tmp2_description = tmp;
|
|
3463
3463
|
// Inline function 'kotlin.collections.associate' call
|
|
3464
|
-
var this_0 = _this__u8e3s4.
|
|
3464
|
+
var this_0 = _this__u8e3s4.us_1.qs_1;
|
|
3465
3465
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
3466
3466
|
// Inline function 'kotlin.collections.associateTo' call
|
|
3467
3467
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -3470,16 +3470,16 @@ function emit_2($this, _this__u8e3s4) {
|
|
|
3470
3470
|
var element = _iterator__ex2g4s.v();
|
|
3471
3471
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3472
3472
|
var pair = emitSchema(OpenAPIV3Emitter_getInstance(), element);
|
|
3473
|
-
destination.
|
|
3473
|
+
destination.y2(pair.tf_1, pair.uf_1);
|
|
3474
3474
|
}
|
|
3475
3475
|
// Inline function 'kotlin.collections.filter' call
|
|
3476
|
-
var tmp0 = _this__u8e3s4.
|
|
3476
|
+
var tmp0 = _this__u8e3s4.us_1.qs_1;
|
|
3477
3477
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3478
3478
|
var destination_0 = ArrayList_init_$Create$();
|
|
3479
3479
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
3480
3480
|
while (_iterator__ex2g4s_0.u()) {
|
|
3481
3481
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3482
|
-
if (!element_0.
|
|
3482
|
+
if (!element_0.zs_1.ay()) {
|
|
3483
3483
|
destination_0.x(element_0);
|
|
3484
3484
|
}
|
|
3485
3485
|
}
|
|
@@ -3489,7 +3489,7 @@ function emit_2($this, _this__u8e3s4) {
|
|
|
3489
3489
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
3490
3490
|
while (_iterator__ex2g4s_1.u()) {
|
|
3491
3491
|
var item = _iterator__ex2g4s_1.v();
|
|
3492
|
-
var tmp$ret$7 = item.
|
|
3492
|
+
var tmp$ret$7 = item.ys_1.m1();
|
|
3493
3493
|
destination_1.x(tmp$ret$7);
|
|
3494
3494
|
}
|
|
3495
3495
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -3504,10 +3504,10 @@ function emit_2($this, _this__u8e3s4) {
|
|
|
3504
3504
|
return new OpenAPIV3Schema(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_description, VOID, VOID, VOID, VOID, VOID, tmp4_required, VOID, VOID, VOID, destination);
|
|
3505
3505
|
}
|
|
3506
3506
|
function emit_3($this, _this__u8e3s4) {
|
|
3507
|
-
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.
|
|
3507
|
+
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.dv_1);
|
|
3508
3508
|
var tmp;
|
|
3509
3509
|
if (tmp0_elvis_lhs == null) {
|
|
3510
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
3510
|
+
var tmp1_safe_receiver = _this__u8e3s4.cv_1;
|
|
3511
3511
|
var tmp_0;
|
|
3512
3512
|
var tmp_1 = tmp1_safe_receiver;
|
|
3513
3513
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3522,7 +3522,7 @@ function emit_3($this, _this__u8e3s4) {
|
|
|
3522
3522
|
var tmp2_description = tmp;
|
|
3523
3523
|
var tmp3_type = OpenAPIV3Type_STRING_getInstance();
|
|
3524
3524
|
// Inline function 'kotlin.collections.map' call
|
|
3525
|
-
var this_0 = _this__u8e3s4.
|
|
3525
|
+
var this_0 = _this__u8e3s4.fv_1;
|
|
3526
3526
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3527
3527
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3528
3528
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -3534,10 +3534,10 @@ function emit_3($this, _this__u8e3s4) {
|
|
|
3534
3534
|
return new OpenAPIV3Schema(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_type, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_description, VOID, VOID, VOID, VOID, VOID, VOID, destination);
|
|
3535
3535
|
}
|
|
3536
3536
|
function emit_4($this, _this__u8e3s4) {
|
|
3537
|
-
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.
|
|
3537
|
+
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.ns_1);
|
|
3538
3538
|
var tmp;
|
|
3539
3539
|
if (tmp0_elvis_lhs == null) {
|
|
3540
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
3540
|
+
var tmp1_safe_receiver = _this__u8e3s4.ms_1;
|
|
3541
3541
|
var tmp_0;
|
|
3542
3542
|
var tmp_1 = tmp1_safe_receiver;
|
|
3543
3543
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3552,7 +3552,7 @@ function emit_4($this, _this__u8e3s4) {
|
|
|
3552
3552
|
var tmp2_description = tmp;
|
|
3553
3553
|
var tmp3_type = OpenAPIV3Type_STRING_getInstance();
|
|
3554
3554
|
// Inline function 'kotlin.collections.map' call
|
|
3555
|
-
var this_0 = _this__u8e3s4.
|
|
3555
|
+
var this_0 = _this__u8e3s4.ps_1;
|
|
3556
3556
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3557
3557
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3558
3558
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -3570,7 +3570,7 @@ function emit_5($this, _this__u8e3s4, method) {
|
|
|
3570
3570
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
3571
3571
|
while (_iterator__ex2g4s.u()) {
|
|
3572
3572
|
var element = _iterator__ex2g4s.v();
|
|
3573
|
-
if (element.
|
|
3573
|
+
if (element.dt_1.equals(method)) {
|
|
3574
3574
|
destination.x(element);
|
|
3575
3575
|
}
|
|
3576
3576
|
}
|
|
@@ -3586,11 +3586,11 @@ function emit_5($this, _this__u8e3s4, method) {
|
|
|
3586
3586
|
return firstOrNull(destination_0);
|
|
3587
3587
|
}
|
|
3588
3588
|
function emit_6($this, _this__u8e3s4) {
|
|
3589
|
-
var tmp3_operationId = _this__u8e3s4.
|
|
3590
|
-
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.
|
|
3589
|
+
var tmp3_operationId = _this__u8e3s4.ct_1.m1();
|
|
3590
|
+
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.bt_1);
|
|
3591
3591
|
var tmp;
|
|
3592
3592
|
if (tmp0_elvis_lhs == null) {
|
|
3593
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
3593
|
+
var tmp1_safe_receiver = _this__u8e3s4.at_1;
|
|
3594
3594
|
var tmp_0;
|
|
3595
3595
|
var tmp_1 = tmp1_safe_receiver;
|
|
3596
3596
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3604,7 +3604,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3604
3604
|
}
|
|
3605
3605
|
var tmp4_description = tmp;
|
|
3606
3606
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3607
|
-
var tmp0 = _this__u8e3s4.
|
|
3607
|
+
var tmp0 = _this__u8e3s4.et_1;
|
|
3608
3608
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
3609
3609
|
var destination = ArrayList_init_$Create$();
|
|
3610
3610
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -3625,7 +3625,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3625
3625
|
}
|
|
3626
3626
|
var tmp_2 = destination_0;
|
|
3627
3627
|
// Inline function 'kotlin.collections.map' call
|
|
3628
|
-
var this_0 = _this__u8e3s4.
|
|
3628
|
+
var this_0 = _this__u8e3s4.ft_1;
|
|
3629
3629
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3630
3630
|
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3631
3631
|
var _iterator__ex2g4s_1 = this_0.t();
|
|
@@ -3636,7 +3636,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3636
3636
|
}
|
|
3637
3637
|
var tmp_3 = plus_0(tmp_2, destination_1);
|
|
3638
3638
|
// Inline function 'kotlin.collections.map' call
|
|
3639
|
-
var this_1 = _this__u8e3s4.
|
|
3639
|
+
var this_1 = _this__u8e3s4.gt_1;
|
|
3640
3640
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3641
3641
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
3642
3642
|
var _iterator__ex2g4s_2 = this_1.t();
|
|
@@ -3647,14 +3647,14 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3647
3647
|
}
|
|
3648
3648
|
var tmp5_parameters = plus_0(tmp_3, destination_2);
|
|
3649
3649
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3650
|
-
var tmp0_0 = _this__u8e3s4.
|
|
3650
|
+
var tmp0_0 = _this__u8e3s4.ht_1;
|
|
3651
3651
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3652
3652
|
var destination_3 = ArrayList_init_$Create$();
|
|
3653
3653
|
// Inline function 'kotlin.collections.forEach' call
|
|
3654
3654
|
var _iterator__ex2g4s_3 = tmp0_0.t();
|
|
3655
3655
|
while (_iterator__ex2g4s_3.u()) {
|
|
3656
3656
|
var element_0 = _iterator__ex2g4s_3.v();
|
|
3657
|
-
var tmp0_safe_receiver = element_0.
|
|
3657
|
+
var tmp0_safe_receiver = element_0.lt_1;
|
|
3658
3658
|
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : emit_7(OpenAPIV3Emitter_getInstance(), tmp0_safe_receiver);
|
|
3659
3659
|
if (tmp0_safe_receiver_0 == null)
|
|
3660
3660
|
null;
|
|
@@ -3678,7 +3678,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3678
3678
|
tmp_5 = null;
|
|
3679
3679
|
} else {
|
|
3680
3680
|
// Inline function 'kotlin.let' call
|
|
3681
|
-
var tmp0_1 = _this__u8e3s4.
|
|
3681
|
+
var tmp0_1 = _this__u8e3s4.ht_1;
|
|
3682
3682
|
var tmp$ret$21;
|
|
3683
3683
|
$l$block_0: {
|
|
3684
3684
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -3695,9 +3695,9 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3695
3695
|
var _iterator__ex2g4s_4 = tmp0_1.t();
|
|
3696
3696
|
while (_iterator__ex2g4s_4.u()) {
|
|
3697
3697
|
var element_1 = _iterator__ex2g4s_4.v();
|
|
3698
|
-
var tmp0_safe_receiver_1 = element_1.
|
|
3699
|
-
var tmp1_safe_receiver_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.
|
|
3700
|
-
if ((tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
3698
|
+
var tmp0_safe_receiver_1 = element_1.lt_1;
|
|
3699
|
+
var tmp1_safe_receiver_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.nt_1;
|
|
3700
|
+
if ((tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.ay()) === true) {
|
|
3701
3701
|
tmp$ret$21 = true;
|
|
3702
3702
|
break $l$block_0;
|
|
3703
3703
|
}
|
|
@@ -3708,19 +3708,19 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3708
3708
|
}
|
|
3709
3709
|
var tmp6_requestBody = tmp_5;
|
|
3710
3710
|
// Inline function 'kotlin.collections.groupBy' call
|
|
3711
|
-
var tmp0_2 = _this__u8e3s4.
|
|
3711
|
+
var tmp0_2 = _this__u8e3s4.it_1;
|
|
3712
3712
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
3713
3713
|
var destination_4 = LinkedHashMap_init_$Create$_0();
|
|
3714
3714
|
var _iterator__ex2g4s_5 = tmp0_2.t();
|
|
3715
3715
|
while (_iterator__ex2g4s_5.u()) {
|
|
3716
3716
|
var element_2 = _iterator__ex2g4s_5.v();
|
|
3717
|
-
var key = element_2.
|
|
3717
|
+
var key = element_2.ot_1;
|
|
3718
3718
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
3719
|
-
var value = destination_4.
|
|
3719
|
+
var value = destination_4.q2(key);
|
|
3720
3720
|
var tmp_7;
|
|
3721
3721
|
if (value == null) {
|
|
3722
3722
|
var answer = ArrayList_init_$Create$();
|
|
3723
|
-
destination_4.
|
|
3723
|
+
destination_4.y2(key, answer);
|
|
3724
3724
|
tmp_7 = answer;
|
|
3725
3725
|
} else {
|
|
3726
3726
|
tmp_7 = value;
|
|
@@ -3730,15 +3730,15 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3730
3730
|
}
|
|
3731
3731
|
// Inline function 'kotlin.collections.map' call
|
|
3732
3732
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3733
|
-
var destination_5 = ArrayList_init_$Create$_0(destination_4.
|
|
3733
|
+
var destination_5 = ArrayList_init_$Create$_0(destination_4.a1());
|
|
3734
3734
|
// Inline function 'kotlin.collections.iterator' call
|
|
3735
|
-
var _iterator__ex2g4s_6 = destination_4.
|
|
3735
|
+
var _iterator__ex2g4s_6 = destination_4.k1().t();
|
|
3736
3736
|
while (_iterator__ex2g4s_6.u()) {
|
|
3737
3737
|
var item_2 = _iterator__ex2g4s_6.v();
|
|
3738
3738
|
// Inline function 'kotlin.collections.component1' call
|
|
3739
|
-
var statusCode = item_2.
|
|
3739
|
+
var statusCode = item_2.l1();
|
|
3740
3740
|
// Inline function 'kotlin.collections.component2' call
|
|
3741
|
-
var res = item_2.
|
|
3741
|
+
var res = item_2.m1();
|
|
3742
3742
|
var tmp_8 = _StatusCode___init__impl__t1yi9q(statusCode);
|
|
3743
3743
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3744
3744
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -3746,7 +3746,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3746
3746
|
var _iterator__ex2g4s_7 = res.t();
|
|
3747
3747
|
while (_iterator__ex2g4s_7.u()) {
|
|
3748
3748
|
var element_3 = _iterator__ex2g4s_7.v();
|
|
3749
|
-
var list_0 = element_3.
|
|
3749
|
+
var list_0 = element_3.pt_1;
|
|
3750
3750
|
addAll(destination_6, list_0);
|
|
3751
3751
|
}
|
|
3752
3752
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -3758,10 +3758,10 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3758
3758
|
var element_4 = _iterator__ex2g4s_8.v();
|
|
3759
3759
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3760
3760
|
var pair = emitHeader(OpenAPIV3Emitter_getInstance(), element_4);
|
|
3761
|
-
destination_7.
|
|
3761
|
+
destination_7.y2(pair.tf_1, pair.uf_1);
|
|
3762
3762
|
}
|
|
3763
|
-
var tmp0_elvis_lhs_0 = findDescription(first(res).
|
|
3764
|
-
var tmp2_description = tmp0_elvis_lhs_0 == null ? _this__u8e3s4.
|
|
3763
|
+
var tmp0_elvis_lhs_0 = findDescription(first(res).rt_1);
|
|
3764
|
+
var tmp2_description = tmp0_elvis_lhs_0 == null ? _this__u8e3s4.ct_1.m1() + ' ' + statusCode + ' response' : tmp0_elvis_lhs_0;
|
|
3765
3765
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3766
3766
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3767
3767
|
var destination_8 = ArrayList_init_$Create$();
|
|
@@ -3769,7 +3769,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3769
3769
|
var _iterator__ex2g4s_9 = res.t();
|
|
3770
3770
|
while (_iterator__ex2g4s_9.u()) {
|
|
3771
3771
|
var element_5 = _iterator__ex2g4s_9.v();
|
|
3772
|
-
var tmp0_safe_receiver_2 = element_5.
|
|
3772
|
+
var tmp0_safe_receiver_2 = element_5.qt_1;
|
|
3773
3773
|
if (tmp0_safe_receiver_2 == null)
|
|
3774
3774
|
null;
|
|
3775
3775
|
else {
|
|
@@ -3786,7 +3786,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3786
3786
|
var element_6 = _iterator__ex2g4s_10.v();
|
|
3787
3787
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3788
3788
|
var pair_0 = emit_7(OpenAPIV3Emitter_getInstance(), element_6);
|
|
3789
|
-
destination_9.
|
|
3789
|
+
destination_9.y2(pair_0.tf_1, pair_0.uf_1);
|
|
3790
3790
|
}
|
|
3791
3791
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
3792
3792
|
var tmp_9;
|
|
@@ -3803,7 +3803,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3803
3803
|
var _iterator__ex2g4s_11 = res.t();
|
|
3804
3804
|
while (_iterator__ex2g4s_11.u()) {
|
|
3805
3805
|
var element_7 = _iterator__ex2g4s_11.v();
|
|
3806
|
-
var list_1 = findLinks(element_7.
|
|
3806
|
+
var list_1 = findLinks(element_7.rt_1);
|
|
3807
3807
|
addAll(destination_10, list_1);
|
|
3808
3808
|
}
|
|
3809
3809
|
var tmp4_links = toOpenAPIV3Links(tmp_10, destination_10);
|
|
@@ -3821,18 +3821,18 @@ function toOpenAPIV3Links($this, _this__u8e3s4) {
|
|
|
3821
3821
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
3822
3822
|
while (_iterator__ex2g4s.u()) {
|
|
3823
3823
|
var element = _iterator__ex2g4s.v();
|
|
3824
|
-
var tmp2 = element.
|
|
3824
|
+
var tmp2 = element.h3l_1;
|
|
3825
3825
|
// Inline function 'kotlin.collections.mapValues' call
|
|
3826
|
-
var this_0 = element.
|
|
3826
|
+
var this_0 = element.k3l_1;
|
|
3827
3827
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
3828
|
-
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.
|
|
3828
|
+
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.a1()));
|
|
3829
3829
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3830
|
-
var _iterator__ex2g4s_0 = this_0.
|
|
3830
|
+
var _iterator__ex2g4s_0 = this_0.k1().t();
|
|
3831
3831
|
while (_iterator__ex2g4s_0.u()) {
|
|
3832
3832
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3833
|
-
var tmp = element_0.
|
|
3834
|
-
var tmp$ret$1 = JsonPrimitive(element_0.
|
|
3835
|
-
destination.
|
|
3833
|
+
var tmp = element_0.l1();
|
|
3834
|
+
var tmp$ret$1 = JsonPrimitive(element_0.m1());
|
|
3835
|
+
destination.y2(tmp, tmp$ret$1);
|
|
3836
3836
|
}
|
|
3837
3837
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
3838
3838
|
var tmp_0;
|
|
@@ -3842,7 +3842,7 @@ function toOpenAPIV3Links($this, _this__u8e3s4) {
|
|
|
3842
3842
|
tmp_0 = destination;
|
|
3843
3843
|
}
|
|
3844
3844
|
var tmp_1 = tmp_0;
|
|
3845
|
-
var tmp0_safe_receiver = element.
|
|
3845
|
+
var tmp0_safe_receiver = element.l3l_1;
|
|
3846
3846
|
var tmp_2;
|
|
3847
3847
|
if (tmp0_safe_receiver == null) {
|
|
3848
3848
|
tmp_2 = null;
|
|
@@ -3851,38 +3851,38 @@ function toOpenAPIV3Links($this, _this__u8e3s4) {
|
|
|
3851
3851
|
tmp_2 = JsonPrimitive(tmp0_safe_receiver);
|
|
3852
3852
|
}
|
|
3853
3853
|
// Inline function 'kotlin.collections.set' call
|
|
3854
|
-
var value = new OpenAPIV3Link(element.
|
|
3855
|
-
byName.
|
|
3854
|
+
var value = new OpenAPIV3Link(element.j3l_1, element.i3l_1, tmp_1, tmp_2, element.m3l_1);
|
|
3855
|
+
byName.y2(tmp2, value);
|
|
3856
3856
|
}
|
|
3857
|
-
return new OpenAPIV3Links(toSet(byName.
|
|
3857
|
+
return new OpenAPIV3Links(toSet(byName.k1()));
|
|
3858
3858
|
}
|
|
3859
3859
|
function emitSegment_0($this, _this__u8e3s4) {
|
|
3860
3860
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenAPIV3Emitter$emitSegment$lambda);
|
|
3861
3861
|
}
|
|
3862
3862
|
function emitParameter_0($this, _this__u8e3s4, location) {
|
|
3863
|
-
var tmp0_name = _this__u8e3s4.
|
|
3864
|
-
var tmp1_schema = emitSchema_0($this, _this__u8e3s4.
|
|
3865
|
-
var tmp2_description = findDescription(_this__u8e3s4.
|
|
3866
|
-
var tmp3_required = !_this__u8e3s4.
|
|
3863
|
+
var tmp0_name = _this__u8e3s4.ys_1.m1();
|
|
3864
|
+
var tmp1_schema = emitSchema_0($this, _this__u8e3s4.zs_1);
|
|
3865
|
+
var tmp2_description = findDescription(_this__u8e3s4.xs_1);
|
|
3866
|
+
var tmp3_required = !_this__u8e3s4.zs_1.ay();
|
|
3867
3867
|
return new OpenAPIV3Parameter(tmp2_description, tmp3_required, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, location, tmp1_schema, tmp0_name);
|
|
3868
3868
|
}
|
|
3869
3869
|
function emitParameter_1($this, _this__u8e3s4) {
|
|
3870
3870
|
var tmp0_in = OpenAPIV3ParameterLocation_PATH_getInstance();
|
|
3871
|
-
var tmp1_name = _this__u8e3s4.
|
|
3872
|
-
var tmp2_schema = emitSchema_0($this, _this__u8e3s4.
|
|
3873
|
-
var tmp3_required = !_this__u8e3s4.
|
|
3871
|
+
var tmp1_name = _this__u8e3s4.jt_1.m1();
|
|
3872
|
+
var tmp2_schema = emitSchema_0($this, _this__u8e3s4.kt_1);
|
|
3873
|
+
var tmp3_required = !_this__u8e3s4.kt_1.ay();
|
|
3874
3874
|
return new OpenAPIV3Parameter(VOID, tmp3_required, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_in, tmp2_schema, tmp1_name);
|
|
3875
3875
|
}
|
|
3876
3876
|
function emitHeader($this, _this__u8e3s4) {
|
|
3877
|
-
return to(_this__u8e3s4.
|
|
3877
|
+
return to(_this__u8e3s4.ys_1.m1(), emitHeader_0($this, _this__u8e3s4.zs_1, findDescription(_this__u8e3s4.xs_1)));
|
|
3878
3878
|
}
|
|
3879
3879
|
function emitSchema($this, _this__u8e3s4) {
|
|
3880
|
-
var tmp = _this__u8e3s4.
|
|
3880
|
+
var tmp = _this__u8e3s4.ys_1.m1();
|
|
3881
3881
|
// Inline function 'kotlin.let' call
|
|
3882
|
-
var it = emitSchema_0($this, _this__u8e3s4.
|
|
3882
|
+
var it = emitSchema_0($this, _this__u8e3s4.zs_1);
|
|
3883
3883
|
var tmp_0;
|
|
3884
3884
|
if (it instanceof OpenAPIV3Schema) {
|
|
3885
|
-
tmp_0 = it.
|
|
3885
|
+
tmp_0 = it.q3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription(_this__u8e3s4.xs_1));
|
|
3886
3886
|
} else {
|
|
3887
3887
|
if (it instanceof OpenAPIV3Reference) {
|
|
3888
3888
|
tmp_0 = it;
|
|
@@ -3896,13 +3896,13 @@ function emitSchema($this, _this__u8e3s4) {
|
|
|
3896
3896
|
function emitHeader_0($this, _this__u8e3s4, description) {
|
|
3897
3897
|
var tmp;
|
|
3898
3898
|
if (_this__u8e3s4 instanceof Dict) {
|
|
3899
|
-
tmp = new OpenAPIV3Reference(_Ref___init__impl__7qfl46('#/components/headers/' + _this__u8e3s4.
|
|
3899
|
+
tmp = new OpenAPIV3Reference(_Ref___init__impl__7qfl46('#/components/headers/' + _this__u8e3s4.cs_1));
|
|
3900
3900
|
} else {
|
|
3901
3901
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
3902
|
-
tmp = new OpenAPIV3Reference(_Ref___init__impl__7qfl46('#/components/headers/' + _this__u8e3s4.
|
|
3902
|
+
tmp = new OpenAPIV3Reference(_Ref___init__impl__7qfl46('#/components/headers/' + _this__u8e3s4.zr_1));
|
|
3903
3903
|
} else {
|
|
3904
3904
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3905
|
-
tmp = new OpenAPIV3Reference(_Ref___init__impl__7qfl46('#/components/headers/' + _this__u8e3s4.
|
|
3905
|
+
tmp = new OpenAPIV3Reference(_Ref___init__impl__7qfl46('#/components/headers/' + _this__u8e3s4.iy_1));
|
|
3906
3906
|
} else {
|
|
3907
3907
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3908
3908
|
var tmp1_schema = emitSchema_0($this, _this__u8e3s4);
|
|
@@ -3928,19 +3928,19 @@ function emitHeader_0($this, _this__u8e3s4, description) {
|
|
|
3928
3928
|
function emitSchema_0($this, _this__u8e3s4) {
|
|
3929
3929
|
var tmp;
|
|
3930
3930
|
if (_this__u8e3s4 instanceof Dict) {
|
|
3931
|
-
var tmp_0 = _this__u8e3s4.
|
|
3931
|
+
var tmp_0 = _this__u8e3s4.as_1.ay();
|
|
3932
3932
|
var tmp_1 = OpenAPIV3Type_OBJECT_getInstance();
|
|
3933
|
-
var tmp_2 = emitSchema_0($this, _this__u8e3s4.
|
|
3933
|
+
var tmp_2 = emitSchema_0($this, _this__u8e3s4.as_1);
|
|
3934
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());
|
|
3935
3935
|
} else {
|
|
3936
3936
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
3937
|
-
tmp = new OpenAPIV3Schema(_this__u8e3s4.
|
|
3937
|
+
tmp = new OpenAPIV3Schema(_this__u8e3s4.xr_1.ay(), 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.xr_1));
|
|
3938
3938
|
} else {
|
|
3939
3939
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3940
|
-
tmp = new OpenAPIV3Reference(_Ref___init__impl__7qfl46('#/components/schemas/' + _this__u8e3s4.
|
|
3940
|
+
tmp = new OpenAPIV3Reference(_Ref___init__impl__7qfl46('#/components/schemas/' + _this__u8e3s4.iy_1));
|
|
3941
3941
|
} else {
|
|
3942
3942
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3943
|
-
var tmp1_type = emitType_1($this, _this__u8e3s4.
|
|
3943
|
+
var tmp1_type = emitType_1($this, _this__u8e3s4.my_1);
|
|
3944
3944
|
var tmp2_format = emitFormat(_this__u8e3s4);
|
|
3945
3945
|
var tmp3_pattern = emitPattern_0($this, _this__u8e3s4);
|
|
3946
3946
|
var tmp4_minimum = emitMinimum_0($this, _this__u8e3s4);
|
|
@@ -3990,15 +3990,15 @@ function emitType_1($this, _this__u8e3s4) {
|
|
|
3990
3990
|
return tmp;
|
|
3991
3991
|
}
|
|
3992
3992
|
function emit_7($this, _this__u8e3s4) {
|
|
3993
|
-
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.
|
|
3993
|
+
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.mt_1)), new OpenAPIV3MediaType(emitSchema_0($this, _this__u8e3s4.nt_1)));
|
|
3994
3994
|
}
|
|
3995
3995
|
function emitPattern_0($this, _this__u8e3s4) {
|
|
3996
3996
|
var tmp;
|
|
3997
3997
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3998
|
-
var t = _this__u8e3s4.
|
|
3998
|
+
var t = _this__u8e3s4.my_1;
|
|
3999
3999
|
var tmp_0;
|
|
4000
4000
|
if (t instanceof String_0) {
|
|
4001
|
-
var p = t.
|
|
4001
|
+
var p = t.ox_1;
|
|
4002
4002
|
var tmp_1;
|
|
4003
4003
|
var tmp_2 = p;
|
|
4004
4004
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2))instanceof RegExp_0) {
|
|
@@ -4019,16 +4019,16 @@ function emitPattern_0($this, _this__u8e3s4) {
|
|
|
4019
4019
|
function emitMinimum_0($this, _this__u8e3s4) {
|
|
4020
4020
|
var tmp;
|
|
4021
4021
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
4022
|
-
var t = _this__u8e3s4.
|
|
4022
|
+
var t = _this__u8e3s4.my_1;
|
|
4023
4023
|
var tmp_0;
|
|
4024
4024
|
if (t instanceof Number_0) {
|
|
4025
|
-
var tmp1_safe_receiver = t.
|
|
4026
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4025
|
+
var tmp1_safe_receiver = t.ux_1;
|
|
4026
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.mx_1;
|
|
4027
4027
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
4028
4028
|
} else {
|
|
4029
4029
|
if (t instanceof Integer) {
|
|
4030
|
-
var tmp3_safe_receiver = t.
|
|
4031
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
4030
|
+
var tmp3_safe_receiver = t.rx_1;
|
|
4031
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.mx_1;
|
|
4032
4032
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
4033
4033
|
} else {
|
|
4034
4034
|
tmp_0 = null;
|
|
@@ -4043,16 +4043,16 @@ function emitMinimum_0($this, _this__u8e3s4) {
|
|
|
4043
4043
|
function emitMaximum_0($this, _this__u8e3s4) {
|
|
4044
4044
|
var tmp;
|
|
4045
4045
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
4046
|
-
var t = _this__u8e3s4.
|
|
4046
|
+
var t = _this__u8e3s4.my_1;
|
|
4047
4047
|
var tmp_0;
|
|
4048
4048
|
if (t instanceof Number_0) {
|
|
4049
|
-
var tmp1_safe_receiver = t.
|
|
4050
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4049
|
+
var tmp1_safe_receiver = t.ux_1;
|
|
4050
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.nx_1;
|
|
4051
4051
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
4052
4052
|
} else {
|
|
4053
4053
|
if (t instanceof Integer) {
|
|
4054
|
-
var tmp3_safe_receiver = t.
|
|
4055
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
4054
|
+
var tmp3_safe_receiver = t.rx_1;
|
|
4055
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.nx_1;
|
|
4056
4056
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
4057
4057
|
} else {
|
|
4058
4058
|
tmp_0 = null;
|
|
@@ -4067,10 +4067,10 @@ function emitMaximum_0($this, _this__u8e3s4) {
|
|
|
4067
4067
|
function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
4068
4068
|
var tmp;
|
|
4069
4069
|
if (it instanceof Param) {
|
|
4070
|
-
tmp = '{' + it.
|
|
4070
|
+
tmp = '{' + it.jt_1.m1() + '}';
|
|
4071
4071
|
} else {
|
|
4072
4072
|
if (it instanceof Literal) {
|
|
4073
|
-
tmp = it.
|
|
4073
|
+
tmp = it.fu_1;
|
|
4074
4074
|
} else {
|
|
4075
4075
|
noWhenBranchMatchedException();
|
|
4076
4076
|
}
|
|
@@ -4079,14 +4079,14 @@ function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
|
4079
4079
|
}
|
|
4080
4080
|
function OpenAPIV3Emitter() {
|
|
4081
4081
|
OpenAPIV3Emitter_instance = this;
|
|
4082
|
-
this.
|
|
4082
|
+
this.s3l_1 = FileExtension_JSON_getInstance();
|
|
4083
4083
|
}
|
|
4084
|
-
protoOf(OpenAPIV3Emitter).
|
|
4085
|
-
return this.
|
|
4084
|
+
protoOf(OpenAPIV3Emitter).cu = function () {
|
|
4085
|
+
return this.s3l_1;
|
|
4086
4086
|
};
|
|
4087
|
-
protoOf(OpenAPIV3Emitter).
|
|
4087
|
+
protoOf(OpenAPIV3Emitter).mr = function (ast, logger) {
|
|
4088
4088
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
4089
|
-
var this_0 = ast.
|
|
4089
|
+
var this_0 = ast.zt_1;
|
|
4090
4090
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4091
4091
|
var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
4092
4092
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -4094,30 +4094,30 @@ protoOf(OpenAPIV3Emitter).es = function (ast, logger) {
|
|
|
4094
4094
|
var _iterator__ex2g4s = tmp0.t();
|
|
4095
4095
|
while (_iterator__ex2g4s.u()) {
|
|
4096
4096
|
var element = _iterator__ex2g4s.v();
|
|
4097
|
-
logger.
|
|
4098
|
-
var list = new NonEmptyList(element.
|
|
4097
|
+
logger.qu('Combining Nodes from ' + element.au_1.br_1 + ' ');
|
|
4098
|
+
var list = new NonEmptyList(element.bu_1);
|
|
4099
4099
|
addAll(destination, list);
|
|
4100
4100
|
}
|
|
4101
4101
|
// Inline function 'kotlin.let' call
|
|
4102
4102
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
4103
|
-
var tmp = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().
|
|
4103
|
+
var tmp = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().s3l_1.lu_1;
|
|
4104
4104
|
var tmp0_0 = get_json();
|
|
4105
4105
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
4106
|
-
var value = OpenAPIV3Emitter_getInstance().
|
|
4106
|
+
var value = OpenAPIV3Emitter_getInstance().t3l(it, null, logger);
|
|
4107
4107
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
4108
|
-
var this_1 = tmp0_0.
|
|
4108
|
+
var this_1 = tmp0_0.y27();
|
|
4109
4109
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
4110
4110
|
var this_2 = serializer(this_1, createKType(getKClass(OpenAPIV3Model), arrayOf([]), false));
|
|
4111
4111
|
var tmp$ret$5 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
4112
|
-
var tmp$ret$6 = tmp0_0.
|
|
4112
|
+
var tmp$ret$6 = tmp0_0.p2o(tmp$ret$5, value);
|
|
4113
4113
|
// Inline function 'kotlin.let' call
|
|
4114
4114
|
var it_0 = new Emitted(tmp, tmp$ret$6);
|
|
4115
4115
|
return nonEmptyListOf(it_0, []);
|
|
4116
4116
|
};
|
|
4117
|
-
protoOf(OpenAPIV3Emitter).
|
|
4118
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
4117
|
+
protoOf(OpenAPIV3Emitter).t3l = function (statements, options, logger) {
|
|
4118
|
+
var tmp1_elvis_lhs = options == null ? null : options.u3l_1;
|
|
4119
4119
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
4120
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
4120
|
+
var tmp3_elvis_lhs = options == null ? null : options.v3l_1;
|
|
4121
4121
|
var tmp4_info = new InfoObject(tmp, VOID, VOID, VOID, VOID, tmp3_elvis_lhs == null ? '0.0.0' : tmp3_elvis_lhs);
|
|
4122
4122
|
var tmp5_paths = emitPaths_0(this, statements, logger);
|
|
4123
4123
|
var tmp6_components = emitComponents(this, statements, logger);
|
|
@@ -4131,15 +4131,15 @@ function OpenAPIV3Emitter_getInstance() {
|
|
|
4131
4131
|
}
|
|
4132
4132
|
function OpenAPIV3Parser$parse$lambda($strict) {
|
|
4133
4133
|
return function (it) {
|
|
4134
|
-
return new NonEmptyList(OpenAPIV3Parser_instance.
|
|
4134
|
+
return new NonEmptyList(OpenAPIV3Parser_instance.w3l((new OpenAPIV3(jsonDefault($strict))).f32(it)));
|
|
4135
4135
|
};
|
|
4136
4136
|
}
|
|
4137
4137
|
function OpenAPIV3Parser() {
|
|
4138
4138
|
}
|
|
4139
|
-
protoOf(OpenAPIV3Parser).
|
|
4139
|
+
protoOf(OpenAPIV3Parser).r3l = function (moduleContent, strict) {
|
|
4140
4140
|
return parseOpenApi(moduleContent, OpenAPIV3Parser$parse$lambda(strict));
|
|
4141
4141
|
};
|
|
4142
|
-
protoOf(OpenAPIV3Parser).
|
|
4142
|
+
protoOf(OpenAPIV3Parser).w3l = function (_this__u8e3s4) {
|
|
4143
4143
|
// Inline function 'kotlin.collections.reduce' call
|
|
4144
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();
|
|
4145
4145
|
if (!iterator.u())
|
|
@@ -4154,7 +4154,7 @@ protoOf(OpenAPIV3Parser).o3m = function (_this__u8e3s4) {
|
|
|
4154
4154
|
var tmp = toNonEmptyListOrNull(resolveEndpointNameCollisions(tmp$ret$1));
|
|
4155
4155
|
// Inline function 'kotlin.let' call
|
|
4156
4156
|
var tmp_0 = tmp == null ? null : new NonEmptyList(tmp);
|
|
4157
|
-
var tmp_1 = tmp_0 == null ? null : tmp_0.
|
|
4157
|
+
var tmp_1 = tmp_0 == null ? null : tmp_0.wp_1;
|
|
4158
4158
|
var tmp0_0 = tmp_1 == null ? null : new NonEmptyList(tmp_1);
|
|
4159
4159
|
var tmp$ret$3;
|
|
4160
4160
|
$l$block: {
|
|
@@ -4163,7 +4163,7 @@ protoOf(OpenAPIV3Parser).o3m = function (_this__u8e3s4) {
|
|
|
4163
4163
|
var message = 'Cannot yield empty AST for OpenAPI v3';
|
|
4164
4164
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
4165
4165
|
} else {
|
|
4166
|
-
tmp$ret$3 = tmp0_0.
|
|
4166
|
+
tmp$ret$3 = tmp0_0.wp_1;
|
|
4167
4167
|
break $l$block;
|
|
4168
4168
|
}
|
|
4169
4169
|
}
|
|
@@ -4175,29 +4175,29 @@ function OpenAPIV3Parser_getInstance() {
|
|
|
4175
4175
|
}
|
|
4176
4176
|
function parseEndpoints_0(_this__u8e3s4) {
|
|
4177
4177
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4178
|
-
var tmp0 = _this__u8e3s4.
|
|
4178
|
+
var tmp0 = _this__u8e3s4.s3b_1;
|
|
4179
4179
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4180
4180
|
var destination = ArrayList_init_$Create$();
|
|
4181
4181
|
// Inline function 'kotlin.collections.iterator' call
|
|
4182
|
-
var _iterator__ex2g4s = tmp0.
|
|
4182
|
+
var _iterator__ex2g4s = tmp0.k1().t();
|
|
4183
4183
|
while (_iterator__ex2g4s.u()) {
|
|
4184
4184
|
var element = _iterator__ex2g4s.v();
|
|
4185
4185
|
// Inline function 'kotlin.collections.component1' call
|
|
4186
|
-
var path = element.
|
|
4186
|
+
var path = element.l1().f30_1;
|
|
4187
4187
|
// Inline function 'kotlin.collections.component2' call
|
|
4188
|
-
var pathItem = element.
|
|
4188
|
+
var pathItem = element.m1();
|
|
4189
4189
|
// Inline function 'kotlin.collections.map' call
|
|
4190
4190
|
var this_0 = toOperationList(pathItem);
|
|
4191
4191
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4192
|
-
var destination_0 = ArrayList_init_$Create$_0(this_0.
|
|
4192
|
+
var destination_0 = ArrayList_init_$Create$_0(this_0.a1());
|
|
4193
4193
|
// Inline function 'kotlin.collections.iterator' call
|
|
4194
|
-
var _iterator__ex2g4s_0 = this_0.
|
|
4194
|
+
var _iterator__ex2g4s_0 = this_0.k1().t();
|
|
4195
4195
|
while (_iterator__ex2g4s_0.u()) {
|
|
4196
4196
|
var item = _iterator__ex2g4s_0.v();
|
|
4197
4197
|
// Inline function 'kotlin.collections.component1' call
|
|
4198
|
-
var method = item.
|
|
4198
|
+
var method = item.l1();
|
|
4199
4199
|
// Inline function 'kotlin.collections.component2' call
|
|
4200
|
-
var operation = item.
|
|
4200
|
+
var operation = item.m1();
|
|
4201
4201
|
var tmp$ret$6 = to(method, operation instanceof OpenAPIV3Operation ? operation : THROW_CCE());
|
|
4202
4202
|
destination_0.x(tmp$ret$6);
|
|
4203
4203
|
}
|
|
@@ -4207,19 +4207,19 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4207
4207
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
4208
4208
|
while (_iterator__ex2g4s_1.u()) {
|
|
4209
4209
|
var item_0 = _iterator__ex2g4s_1.v();
|
|
4210
|
-
var method_0 = item_0.
|
|
4211
|
-
var operation_0 = item_0.
|
|
4212
|
-
var parameters = plus_0(resolveParameters_0(_this__u8e3s4, pathItem.
|
|
4210
|
+
var method_0 = item_0.kf();
|
|
4211
|
+
var operation_0 = item_0.lf();
|
|
4212
|
+
var parameters = plus_0(resolveParameters_0(_this__u8e3s4, pathItem.a3c_1), resolveParameters_0(_this__u8e3s4, operation_0.n3f_1));
|
|
4213
4213
|
var segments = toSegments_0(_this__u8e3s4, path, parameters, operation_0, method_0);
|
|
4214
4214
|
var tmp0_elvis_lhs = toName(operation_0);
|
|
4215
|
-
var name = tmp0_elvis_lhs == null ? toName_0(path) + method_0.
|
|
4215
|
+
var name = tmp0_elvis_lhs == null ? toName_0(path) + method_0.b3_1 : tmp0_elvis_lhs;
|
|
4216
4216
|
// Inline function 'kotlin.collections.filter' call
|
|
4217
4217
|
// Inline function 'kotlin.collections.filterTo' call
|
|
4218
4218
|
var destination_2 = ArrayList_init_$Create$();
|
|
4219
4219
|
var _iterator__ex2g4s_2 = parameters.t();
|
|
4220
4220
|
while (_iterator__ex2g4s_2.u()) {
|
|
4221
4221
|
var element_0 = _iterator__ex2g4s_2.v();
|
|
4222
|
-
if (element_0.
|
|
4222
|
+
if (element_0.g3f_1.equals(OpenAPIV3ParameterLocation_QUERY_getInstance())) {
|
|
4223
4223
|
destination_2.x(element_0);
|
|
4224
4224
|
}
|
|
4225
4225
|
}
|
|
@@ -4229,7 +4229,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4229
4229
|
var _iterator__ex2g4s_3 = destination_2.t();
|
|
4230
4230
|
while (_iterator__ex2g4s_3.u()) {
|
|
4231
4231
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
4232
|
-
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.i3f_1]));
|
|
4233
4233
|
destination_3.x(tmp$ret$12);
|
|
4234
4234
|
}
|
|
4235
4235
|
var query = destination_3;
|
|
@@ -4239,7 +4239,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4239
4239
|
var _iterator__ex2g4s_4 = parameters.t();
|
|
4240
4240
|
while (_iterator__ex2g4s_4.u()) {
|
|
4241
4241
|
var element_1 = _iterator__ex2g4s_4.v();
|
|
4242
|
-
if (element_1.
|
|
4242
|
+
if (element_1.g3f_1.equals(OpenAPIV3ParameterLocation_HEADER_getInstance())) {
|
|
4243
4243
|
destination_4.x(element_1);
|
|
4244
4244
|
}
|
|
4245
4245
|
}
|
|
@@ -4249,11 +4249,11 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4249
4249
|
var _iterator__ex2g4s_5 = destination_4.t();
|
|
4250
4250
|
while (_iterator__ex2g4s_5.u()) {
|
|
4251
4251
|
var item_2 = _iterator__ex2g4s_5.v();
|
|
4252
|
-
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.i3f_1]));
|
|
4253
4253
|
destination_5.x(tmp$ret$18);
|
|
4254
4254
|
}
|
|
4255
4255
|
var headers = destination_5;
|
|
4256
|
-
var tmp1_safe_receiver = operation_0.
|
|
4256
|
+
var tmp1_safe_receiver = operation_0.o3f_1;
|
|
4257
4257
|
var tmp;
|
|
4258
4258
|
if (tmp1_safe_receiver == null) {
|
|
4259
4259
|
tmp = null;
|
|
@@ -4268,23 +4268,23 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4268
4268
|
} else {
|
|
4269
4269
|
// Inline function 'kotlin.let' call
|
|
4270
4270
|
var isNullable = false;
|
|
4271
|
-
var tmp0_safe_receiver = tmp2_safe_receiver.
|
|
4271
|
+
var tmp0_safe_receiver = tmp2_safe_receiver.e3g_1;
|
|
4272
4272
|
var tmp_1;
|
|
4273
4273
|
if (tmp0_safe_receiver == null) {
|
|
4274
4274
|
tmp_1 = null;
|
|
4275
4275
|
} else {
|
|
4276
4276
|
// Inline function 'kotlin.collections.map' call
|
|
4277
4277
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4278
|
-
var destination_6 = ArrayList_init_$Create$_0(tmp0_safe_receiver.
|
|
4278
|
+
var destination_6 = ArrayList_init_$Create$_0(tmp0_safe_receiver.a1());
|
|
4279
4279
|
// Inline function 'kotlin.collections.iterator' call
|
|
4280
|
-
var _iterator__ex2g4s_6 = tmp0_safe_receiver.
|
|
4280
|
+
var _iterator__ex2g4s_6 = tmp0_safe_receiver.k1().t();
|
|
4281
4281
|
while (_iterator__ex2g4s_6.u()) {
|
|
4282
4282
|
var item_3 = _iterator__ex2g4s_6.v();
|
|
4283
4283
|
// Inline function 'kotlin.collections.component1' call
|
|
4284
|
-
var mediaType = item_3.
|
|
4284
|
+
var mediaType = item_3.l1().r30_1;
|
|
4285
4285
|
// Inline function 'kotlin.collections.component2' call
|
|
4286
|
-
var mediaObject = item_3.
|
|
4287
|
-
var schema = mediaObject.
|
|
4286
|
+
var mediaObject = item_3.m1();
|
|
4287
|
+
var schema = mediaObject.k3g_1;
|
|
4288
4288
|
var tmp_2;
|
|
4289
4289
|
if (schema instanceof OpenAPIV3Reference) {
|
|
4290
4290
|
tmp_2 = toReference_1(_this__u8e3s4, schema, isNullable);
|
|
@@ -4318,40 +4318,40 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4318
4318
|
var tmp3_elvis_lhs = tmp_0;
|
|
4319
4319
|
var requests = tmp3_elvis_lhs == null ? listOf(new Request(null)) : tmp3_elvis_lhs;
|
|
4320
4320
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4321
|
-
var tmp0_elvis_lhs_0 = operation_0.
|
|
4321
|
+
var tmp0_elvis_lhs_0 = operation_0.p3f_1;
|
|
4322
4322
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4323
4323
|
var tmp0_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
4324
4324
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4325
4325
|
var destination_7 = ArrayList_init_$Create$();
|
|
4326
4326
|
// Inline function 'kotlin.collections.iterator' call
|
|
4327
|
-
var _iterator__ex2g4s_7 = tmp0_0.
|
|
4327
|
+
var _iterator__ex2g4s_7 = tmp0_0.k1().t();
|
|
4328
4328
|
while (_iterator__ex2g4s_7.u()) {
|
|
4329
4329
|
var element_2 = _iterator__ex2g4s_7.v();
|
|
4330
4330
|
// Inline function 'kotlin.collections.component1' call
|
|
4331
|
-
var status = element_2.
|
|
4331
|
+
var status = element_2.l1().j30_1;
|
|
4332
4332
|
// Inline function 'kotlin.collections.component2' call
|
|
4333
|
-
var res = element_2.
|
|
4333
|
+
var res = element_2.m1();
|
|
4334
4334
|
// Inline function 'kotlin.let' call
|
|
4335
4335
|
var response = resolve_5(_this__u8e3s4, res);
|
|
4336
4336
|
var tmp_4;
|
|
4337
4337
|
// Inline function 'kotlin.collections.isNullOrEmpty' call
|
|
4338
|
-
var this_1 = response.
|
|
4338
|
+
var this_1 = response.r3g_1;
|
|
4339
4339
|
if (this_1 == null || this_1.r()) {
|
|
4340
|
-
var tmp1_annotations = plus_0(toDescriptionAnnotationList(response.
|
|
4340
|
+
var tmp1_annotations = plus_0(toDescriptionAnnotationList(response.s3g_1), toLinkAnnotationList(_this__u8e3s4, response.u3g_1));
|
|
4341
4341
|
var tmp2_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4342
|
-
var tmp0_safe_receiver_0 = response.
|
|
4342
|
+
var tmp0_safe_receiver_0 = response.t3g_1;
|
|
4343
4343
|
var tmp_5;
|
|
4344
4344
|
if (tmp0_safe_receiver_0 == null) {
|
|
4345
4345
|
tmp_5 = null;
|
|
4346
4346
|
} else {
|
|
4347
4347
|
// Inline function 'kotlin.collections.map' call
|
|
4348
4348
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4349
|
-
var destination_8 = ArrayList_init_$Create$_0(tmp0_safe_receiver_0.
|
|
4349
|
+
var destination_8 = ArrayList_init_$Create$_0(tmp0_safe_receiver_0.a1());
|
|
4350
4350
|
// Inline function 'kotlin.collections.iterator' call
|
|
4351
|
-
var _iterator__ex2g4s_8 = tmp0_safe_receiver_0.
|
|
4351
|
+
var _iterator__ex2g4s_8 = tmp0_safe_receiver_0.k1().t();
|
|
4352
4352
|
while (_iterator__ex2g4s_8.u()) {
|
|
4353
4353
|
var item_4 = _iterator__ex2g4s_8.v();
|
|
4354
|
-
var tmp$ret$39 = toField_3(_this__u8e3s4, resolve_6(_this__u8e3s4, item_4.
|
|
4354
|
+
var tmp$ret$39 = toField_3(_this__u8e3s4, resolve_6(_this__u8e3s4, item_4.m1()), item_4.l1(), className([name, 'ResponseHeader']));
|
|
4355
4355
|
destination_8.x(tmp$ret$39);
|
|
4356
4356
|
}
|
|
4357
4357
|
tmp_5 = destination_8;
|
|
@@ -4361,23 +4361,23 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4361
4361
|
var tmp3_headers = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
4362
4362
|
tmp_4 = listOf(new Response(tmp2_status, tmp3_headers, null, tmp1_annotations));
|
|
4363
4363
|
} else {
|
|
4364
|
-
var tmp4_safe_receiver = response.
|
|
4364
|
+
var tmp4_safe_receiver = response.r3g_1;
|
|
4365
4365
|
var tmp_6;
|
|
4366
4366
|
if (tmp4_safe_receiver == null) {
|
|
4367
4367
|
tmp_6 = null;
|
|
4368
4368
|
} else {
|
|
4369
4369
|
// Inline function 'kotlin.collections.map' call
|
|
4370
4370
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4371
|
-
var destination_9 = ArrayList_init_$Create$_0(tmp4_safe_receiver.
|
|
4371
|
+
var destination_9 = ArrayList_init_$Create$_0(tmp4_safe_receiver.a1());
|
|
4372
4372
|
// Inline function 'kotlin.collections.iterator' call
|
|
4373
|
-
var _iterator__ex2g4s_9 = tmp4_safe_receiver.
|
|
4373
|
+
var _iterator__ex2g4s_9 = tmp4_safe_receiver.k1().t();
|
|
4374
4374
|
while (_iterator__ex2g4s_9.u()) {
|
|
4375
4375
|
var item_5 = _iterator__ex2g4s_9.v();
|
|
4376
4376
|
// Inline function 'kotlin.collections.component1' call
|
|
4377
|
-
var contentType = item_5.
|
|
4377
|
+
var contentType = item_5.l1().r30_1;
|
|
4378
4378
|
// Inline function 'kotlin.collections.component2' call
|
|
4379
|
-
var media = item_5.
|
|
4380
|
-
var tmp0_safe_receiver_1 = media.
|
|
4379
|
+
var media = item_5.m1();
|
|
4380
|
+
var tmp0_safe_receiver_1 = media.k3g_1;
|
|
4381
4381
|
var tmp_7;
|
|
4382
4382
|
if (tmp0_safe_receiver_1 == null) {
|
|
4383
4383
|
tmp_7 = null;
|
|
@@ -4386,23 +4386,23 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4386
4386
|
tmp_7 = resolve_7(_this__u8e3s4, tmp0_safe_receiver_1);
|
|
4387
4387
|
}
|
|
4388
4388
|
var tmp1_safe_receiver_0 = tmp_7;
|
|
4389
|
-
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.e3d_1;
|
|
4390
4390
|
var isNullable_0 = tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs;
|
|
4391
|
-
var tmp4_annotations = plus_0(toDescriptionAnnotationList(response.
|
|
4391
|
+
var tmp4_annotations = plus_0(toDescriptionAnnotationList(response.s3g_1), toLinkAnnotationList(_this__u8e3s4, response.u3g_1));
|
|
4392
4392
|
var tmp5_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4393
|
-
var tmp3_safe_receiver = response.
|
|
4393
|
+
var tmp3_safe_receiver = response.t3g_1;
|
|
4394
4394
|
var tmp_8;
|
|
4395
4395
|
if (tmp3_safe_receiver == null) {
|
|
4396
4396
|
tmp_8 = null;
|
|
4397
4397
|
} else {
|
|
4398
4398
|
// Inline function 'kotlin.collections.map' call
|
|
4399
4399
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4400
|
-
var destination_10 = ArrayList_init_$Create$_0(tmp3_safe_receiver.
|
|
4400
|
+
var destination_10 = ArrayList_init_$Create$_0(tmp3_safe_receiver.a1());
|
|
4401
4401
|
// Inline function 'kotlin.collections.iterator' call
|
|
4402
|
-
var _iterator__ex2g4s_10 = tmp3_safe_receiver.
|
|
4402
|
+
var _iterator__ex2g4s_10 = tmp3_safe_receiver.k1().t();
|
|
4403
4403
|
while (_iterator__ex2g4s_10.u()) {
|
|
4404
4404
|
var item_6 = _iterator__ex2g4s_10.v();
|
|
4405
|
-
var tmp$ret$49 = toField_3(_this__u8e3s4, resolve_6(_this__u8e3s4, item_6.
|
|
4405
|
+
var tmp$ret$49 = toField_3(_this__u8e3s4, resolve_6(_this__u8e3s4, item_6.m1()), item_6.l1(), className([name, 'ResponseHeader']));
|
|
4406
4406
|
destination_10.x(tmp$ret$49);
|
|
4407
4407
|
}
|
|
4408
4408
|
tmp_8 = destination_10;
|
|
@@ -4411,7 +4411,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4411
4411
|
var tmp0_elvis_lhs_2 = tmp_8;
|
|
4412
4412
|
var tmp6_headers = tmp0_elvis_lhs_2 == null ? emptyList() : tmp0_elvis_lhs_2;
|
|
4413
4413
|
var tmp_9 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
4414
|
-
var schema_0 = media.
|
|
4414
|
+
var schema_0 = media.k3g_1;
|
|
4415
4415
|
var tmp_10;
|
|
4416
4416
|
if (schema_0 instanceof OpenAPIV3Reference) {
|
|
4417
4417
|
tmp_10 = toReference_1(_this__u8e3s4, schema_0, isNullable_0);
|
|
@@ -4439,7 +4439,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4439
4439
|
addAll(destination_7, list);
|
|
4440
4440
|
}
|
|
4441
4441
|
var responses = destination_7;
|
|
4442
|
-
var tmp$ret$61 = new Endpoint(null, toDescriptionAnnotationList(operation_0.
|
|
4442
|
+
var tmp$ret$61 = new Endpoint(null, toDescriptionAnnotationList(operation_0.t3f_1), new DefinitionIdentifier(name), method_0, segments, query, headers, requests, responses);
|
|
4443
4443
|
destination_1.x(tmp$ret$61);
|
|
4444
4444
|
}
|
|
4445
4445
|
var list_0 = destination_1;
|
|
@@ -4457,21 +4457,21 @@ function parseResponseBody_0(_this__u8e3s4) {
|
|
|
4457
4457
|
return flatMapResponses(_this__u8e3s4, parseResponseBody$lambda_0(_this__u8e3s4));
|
|
4458
4458
|
}
|
|
4459
4459
|
function parseDefinitions_0(_this__u8e3s4) {
|
|
4460
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
4460
|
+
var tmp0_safe_receiver = _this__u8e3s4.q3b_1;
|
|
4461
4461
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4462
|
-
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.r3c_1;
|
|
4463
4463
|
// Inline function 'kotlin.collections.filter' call
|
|
4464
4464
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4465
4465
|
// Inline function 'kotlin.collections.filterTo' call
|
|
4466
4466
|
var destination = LinkedHashMap_init_$Create$_0();
|
|
4467
4467
|
// Inline function 'kotlin.collections.iterator' call
|
|
4468
|
-
var _iterator__ex2g4s = tmp0.
|
|
4468
|
+
var _iterator__ex2g4s = tmp0.k1().t();
|
|
4469
4469
|
while (_iterator__ex2g4s.u()) {
|
|
4470
4470
|
var element = _iterator__ex2g4s.v();
|
|
4471
|
-
var s = element.
|
|
4471
|
+
var s = element.m1();
|
|
4472
4472
|
var tmp;
|
|
4473
4473
|
if (s instanceof OpenAPIV3Schema) {
|
|
4474
|
-
var tmp0_subject = s.
|
|
4474
|
+
var tmp0_subject = s.d3e_1;
|
|
4475
4475
|
var tmp_0;
|
|
4476
4476
|
if (tmp0_subject instanceof OpenAPIV3Boolean) {
|
|
4477
4477
|
tmp_0 = true;
|
|
@@ -4499,17 +4499,17 @@ function parseDefinitions_0(_this__u8e3s4) {
|
|
|
4499
4499
|
}
|
|
4500
4500
|
}
|
|
4501
4501
|
if (tmp) {
|
|
4502
|
-
destination.
|
|
4502
|
+
destination.y2(element.l1(), element.m1());
|
|
4503
4503
|
}
|
|
4504
4504
|
}
|
|
4505
4505
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4506
4506
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4507
4507
|
var destination_0 = ArrayList_init_$Create$();
|
|
4508
4508
|
// Inline function 'kotlin.collections.iterator' call
|
|
4509
|
-
var _iterator__ex2g4s_0 = destination.
|
|
4509
|
+
var _iterator__ex2g4s_0 = destination.k1().t();
|
|
4510
4510
|
while (_iterator__ex2g4s_0.u()) {
|
|
4511
4511
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
4512
|
-
var list = flatten_1(_this__u8e3s4, element_0.
|
|
4512
|
+
var list = flatten_1(_this__u8e3s4, element_0.m1(), className([element_0.l1()]));
|
|
4513
4513
|
addAll(destination_0, list);
|
|
4514
4514
|
}
|
|
4515
4515
|
return destination_0;
|
|
@@ -4568,7 +4568,7 @@ function toSegments_0(_this__u8e3s4, path, parameters, operation, method) {
|
|
|
4568
4568
|
case true:
|
|
4569
4569
|
var param = substring(item, 1, item.length - 1 | 0);
|
|
4570
4570
|
var tmp1_elvis_lhs = toName(operation);
|
|
4571
|
-
var name = tmp1_elvis_lhs == null ? toName_0(path) + method.
|
|
4571
|
+
var name = tmp1_elvis_lhs == null ? toName_0(path) + method.b3_1 : tmp1_elvis_lhs;
|
|
4572
4572
|
// Inline function 'kotlin.collections.find' call
|
|
4573
4573
|
|
|
4574
4574
|
var tmp$ret$5;
|
|
@@ -4577,7 +4577,7 @@ function toSegments_0(_this__u8e3s4, path, parameters, operation, method) {
|
|
|
4577
4577
|
var _iterator__ex2g4s_1 = parameters.t();
|
|
4578
4578
|
while (_iterator__ex2g4s_1.u()) {
|
|
4579
4579
|
var element_0 = _iterator__ex2g4s_1.v();
|
|
4580
|
-
if (element_0.
|
|
4580
|
+
if (element_0.i3f_1 === param) {
|
|
4581
4581
|
tmp$ret$5 = element_0;
|
|
4582
4582
|
break $l$block;
|
|
4583
4583
|
}
|
|
@@ -4586,7 +4586,7 @@ function toSegments_0(_this__u8e3s4, path, parameters, operation, method) {
|
|
|
4586
4586
|
}
|
|
4587
4587
|
|
|
4588
4588
|
var tmp2_safe_receiver = tmp$ret$5;
|
|
4589
|
-
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.h3f_1;
|
|
4590
4590
|
var tmp_0;
|
|
4591
4591
|
if (tmp3_safe_receiver == null) {
|
|
4592
4592
|
tmp_0 = null;
|
|
@@ -4637,15 +4637,15 @@ function toSegments_0(_this__u8e3s4, path, parameters, operation, method) {
|
|
|
4637
4637
|
return destination_0;
|
|
4638
4638
|
}
|
|
4639
4639
|
function toField_2(_this__u8e3s4, parameter, name) {
|
|
4640
|
-
var tmp0_elvis_lhs = parameter.
|
|
4640
|
+
var tmp0_elvis_lhs = parameter.x3e_1;
|
|
4641
4641
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
4642
|
-
var s = parameter.
|
|
4642
|
+
var s = parameter.h3f_1;
|
|
4643
4643
|
var tmp;
|
|
4644
4644
|
if (s instanceof OpenAPIV3Reference) {
|
|
4645
4645
|
tmp = toReference_1(_this__u8e3s4, s, isNullable);
|
|
4646
4646
|
} else {
|
|
4647
4647
|
if (s instanceof OpenAPIV3Schema) {
|
|
4648
|
-
tmp = toReference_2(_this__u8e3s4, s, isNullable, name + (equals(s.
|
|
4648
|
+
tmp = toReference_2(_this__u8e3s4, s, isNullable, name + (equals(s.l3d_1, OpenAPIV3Type_ARRAY_getInstance()) ? 'Array' : ''));
|
|
4649
4649
|
} else {
|
|
4650
4650
|
if (s == null) {
|
|
4651
4651
|
tmp = new Primitive(new String_0(null), isNullable);
|
|
@@ -4656,8 +4656,8 @@ function toField_2(_this__u8e3s4, parameter, name) {
|
|
|
4656
4656
|
}
|
|
4657
4657
|
// Inline function 'kotlin.let' call
|
|
4658
4658
|
var it = tmp;
|
|
4659
|
-
var tmp0_identifier = new FieldIdentifier(parameter.
|
|
4660
|
-
var tmp1_annotations = toDescriptionAnnotationList(parameter.
|
|
4659
|
+
var tmp0_identifier = new FieldIdentifier(parameter.i3f_1);
|
|
4660
|
+
var tmp1_annotations = toDescriptionAnnotationList(parameter.w3e_1);
|
|
4661
4661
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
4662
4662
|
}
|
|
4663
4663
|
function resolve_4(_this__u8e3s4, requestBodyOrReference) {
|
|
@@ -4666,7 +4666,7 @@ function resolve_4(_this__u8e3s4, requestBodyOrReference) {
|
|
|
4666
4666
|
tmp = requestBodyOrReference;
|
|
4667
4667
|
} else {
|
|
4668
4668
|
if (requestBodyOrReference instanceof OpenAPIV3Reference) {
|
|
4669
|
-
tmp = resolveOpenAPIV3RequestBody(_this__u8e3s4, requestBodyOrReference).
|
|
4669
|
+
tmp = resolveOpenAPIV3RequestBody(_this__u8e3s4, requestBodyOrReference).uf_1;
|
|
4670
4670
|
} else {
|
|
4671
4671
|
noWhenBranchMatchedException();
|
|
4672
4672
|
}
|
|
@@ -4676,21 +4676,21 @@ function resolve_4(_this__u8e3s4, requestBodyOrReference) {
|
|
|
4676
4676
|
function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
4677
4677
|
// Inline function 'kotlin.let' call
|
|
4678
4678
|
var destruct = resolveOpenAPIV3Schema(_this__u8e3s4, reference);
|
|
4679
|
-
var referencingObject = destruct.
|
|
4680
|
-
var schema = destruct.
|
|
4679
|
+
var referencingObject = destruct.kf();
|
|
4680
|
+
var schema = destruct.lf();
|
|
4681
4681
|
var tmp;
|
|
4682
|
-
if (exists_0(schema.
|
|
4683
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4682
|
+
if (exists_0(schema.d3e_1)) {
|
|
4683
|
+
var additionalProperties = ensureNotNull(schema.d3e_1);
|
|
4684
4684
|
var tmp_0;
|
|
4685
4685
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
4686
4686
|
tmp_0 = new Dict(new Any(isNullable), false);
|
|
4687
4687
|
} else {
|
|
4688
4688
|
if (additionalProperties instanceof OpenAPIV3Reference) {
|
|
4689
|
-
var tmp0_elvis_lhs = schema.
|
|
4689
|
+
var tmp0_elvis_lhs = schema.e3d_1;
|
|
4690
4690
|
tmp_0 = toDict(toReference_1(_this__u8e3s4, additionalProperties, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs), isNullable);
|
|
4691
4691
|
} else {
|
|
4692
4692
|
if (additionalProperties instanceof OpenAPIV3Schema) {
|
|
4693
|
-
var tmp1_elvis_lhs = schema.
|
|
4693
|
+
var tmp1_elvis_lhs = schema.e3d_1;
|
|
4694
4694
|
tmp_0 = toDict(toReference_2(_this__u8e3s4, additionalProperties, tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs, getReference(reference)), false);
|
|
4695
4695
|
} else {
|
|
4696
4696
|
noWhenBranchMatchedException();
|
|
@@ -4698,24 +4698,24 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4698
4698
|
}
|
|
4699
4699
|
}
|
|
4700
4700
|
tmp = tmp_0;
|
|
4701
|
-
} else if (!(schema.
|
|
4701
|
+
} else if (!(schema.z3d_1 == null)) {
|
|
4702
4702
|
tmp = new Custom(sanitize(className([getReference(referencingObject)])), isNullable);
|
|
4703
|
-
} else if (isPrimitive_0(schema.
|
|
4703
|
+
} else if (isPrimitive_0(schema.l3d_1)) {
|
|
4704
4704
|
tmp = new Primitive(toPrimitive_0(schema), isNullable);
|
|
4705
|
-
} else if (equals(schema.
|
|
4706
|
-
var items = schema.
|
|
4705
|
+
} else if (equals(schema.l3d_1, OpenAPIV3Type_ARRAY_getInstance())) {
|
|
4706
|
+
var items = schema.a3e_1;
|
|
4707
4707
|
var tmp_1;
|
|
4708
4708
|
if (items instanceof OpenAPIV3Reference) {
|
|
4709
|
-
var tmp2_elvis_lhs = schema.
|
|
4709
|
+
var tmp2_elvis_lhs = schema.e3d_1;
|
|
4710
4710
|
tmp_1 = toIterable(toReference_1(_this__u8e3s4, items, tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs), isNullable);
|
|
4711
4711
|
} else {
|
|
4712
4712
|
if (items instanceof OpenAPIV3Schema) {
|
|
4713
4713
|
var tmp_2 = sanitize(className([getReference(referencingObject), 'Array']));
|
|
4714
|
-
var tmp3_elvis_lhs = schema.
|
|
4714
|
+
var tmp3_elvis_lhs = schema.e3d_1;
|
|
4715
4715
|
tmp_1 = toIterable(new Custom(tmp_2, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs), isNullable);
|
|
4716
4716
|
} else {
|
|
4717
4717
|
if (items == null) {
|
|
4718
|
-
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.k3h_1);
|
|
4719
4719
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4720
4720
|
} else {
|
|
4721
4721
|
noWhenBranchMatchedException();
|
|
@@ -4731,15 +4731,15 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4731
4731
|
function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
4732
4732
|
name = name === VOID ? '' : name;
|
|
4733
4733
|
var tmp;
|
|
4734
|
-
if (equals(schema.
|
|
4735
|
-
var items = schema.
|
|
4734
|
+
if (equals(schema.l3d_1, OpenAPIV3Type_ARRAY_getInstance())) {
|
|
4735
|
+
var items = schema.a3e_1;
|
|
4736
4736
|
var tmp_0;
|
|
4737
4737
|
if (items instanceof OpenAPIV3Reference) {
|
|
4738
|
-
var tmp0_elvis_lhs = schema.
|
|
4738
|
+
var tmp0_elvis_lhs = schema.e3d_1;
|
|
4739
4739
|
tmp_0 = toIterable(toReference_1(_this__u8e3s4, items, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs), isNullable);
|
|
4740
4740
|
} else {
|
|
4741
4741
|
if (items instanceof OpenAPIV3Schema) {
|
|
4742
|
-
var tmp1_elvis_lhs = schema.
|
|
4742
|
+
var tmp1_elvis_lhs = schema.e3d_1;
|
|
4743
4743
|
tmp_0 = toIterable(toReference_2(_this__u8e3s4, items, tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs, name), isNullable);
|
|
4744
4744
|
} else {
|
|
4745
4745
|
if (items == null) {
|
|
@@ -4751,21 +4751,21 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4751
4751
|
}
|
|
4752
4752
|
}
|
|
4753
4753
|
tmp = tmp_0;
|
|
4754
|
-
} else if (!(schema.
|
|
4755
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4754
|
+
} else if (!(schema.d3e_1 == null)) {
|
|
4755
|
+
var additionalProperties = ensureNotNull(schema.d3e_1);
|
|
4756
4756
|
var tmp_1;
|
|
4757
4757
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
4758
|
-
var tmp2_elvis_lhs = schema.
|
|
4758
|
+
var tmp2_elvis_lhs = schema.e3d_1;
|
|
4759
4759
|
tmp_1 = new Dict(new Any(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs), isNullable);
|
|
4760
4760
|
} else {
|
|
4761
4761
|
if (additionalProperties instanceof OpenAPIV3Reference) {
|
|
4762
|
-
var tmp3_elvis_lhs = schema.
|
|
4762
|
+
var tmp3_elvis_lhs = schema.e3d_1;
|
|
4763
4763
|
tmp_1 = toDict(toReference_1(_this__u8e3s4, additionalProperties, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs), isNullable);
|
|
4764
4764
|
} else {
|
|
4765
4765
|
if (additionalProperties instanceof OpenAPIV3Schema) {
|
|
4766
4766
|
// Inline function 'kotlin.takeIf' call
|
|
4767
4767
|
var tmp_2;
|
|
4768
|
-
if (isPrimitive_0(additionalProperties.
|
|
4768
|
+
if (isPrimitive_0(additionalProperties.l3d_1) || !(additionalProperties.c3e_1 == null)) {
|
|
4769
4769
|
tmp_2 = additionalProperties;
|
|
4770
4770
|
} else {
|
|
4771
4771
|
tmp_2 = null;
|
|
@@ -4776,13 +4776,13 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4776
4776
|
tmp_3 = null;
|
|
4777
4777
|
} else {
|
|
4778
4778
|
// Inline function 'kotlin.let' call
|
|
4779
|
-
var tmp0_elvis_lhs_0 = schema.
|
|
4779
|
+
var tmp0_elvis_lhs_0 = schema.e3d_1;
|
|
4780
4780
|
tmp_3 = toDict(toReference_2(_this__u8e3s4, tmp4_safe_receiver, tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0, name), isNullable);
|
|
4781
4781
|
}
|
|
4782
4782
|
var tmp5_elvis_lhs = tmp_3;
|
|
4783
4783
|
var tmp_4;
|
|
4784
4784
|
if (tmp5_elvis_lhs == null) {
|
|
4785
|
-
var tmp6_elvis_lhs = schema.
|
|
4785
|
+
var tmp6_elvis_lhs = schema.e3d_1;
|
|
4786
4786
|
tmp_4 = new Dict(new Any(tmp6_elvis_lhs == null ? false : tmp6_elvis_lhs), isNullable);
|
|
4787
4787
|
} else {
|
|
4788
4788
|
tmp_4 = tmp5_elvis_lhs;
|
|
@@ -4794,14 +4794,14 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4794
4794
|
}
|
|
4795
4795
|
}
|
|
4796
4796
|
tmp = tmp_1;
|
|
4797
|
-
} else if (!(schema.
|
|
4797
|
+
} else if (!(schema.z3d_1 == null)) {
|
|
4798
4798
|
// Inline function 'kotlin.let' call
|
|
4799
4799
|
var it = new Custom(sanitize(name), isNullable);
|
|
4800
|
-
tmp = !(schema.
|
|
4800
|
+
tmp = !(schema.d3e_1 == null) ? new Dict(it, false) : it;
|
|
4801
4801
|
} else {
|
|
4802
|
-
var tmp7_subject = schema.
|
|
4802
|
+
var tmp7_subject = schema.l3d_1;
|
|
4803
4803
|
var tmp_5;
|
|
4804
|
-
switch (tmp7_subject == null ? -1 : tmp7_subject.
|
|
4804
|
+
switch (tmp7_subject == null ? -1 : tmp7_subject.c3_1) {
|
|
4805
4805
|
case 0:
|
|
4806
4806
|
case 1:
|
|
4807
4807
|
case 2:
|
|
@@ -4809,33 +4809,33 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4809
4809
|
// Inline function 'kotlin.let' call
|
|
4810
4810
|
|
|
4811
4811
|
var it_0 = new Primitive(toPrimitive_0(schema), isNullable);
|
|
4812
|
-
tmp_5 = !(schema.
|
|
4812
|
+
tmp_5 = !(schema.d3e_1 == null) ? new Dict(it_0, false) : it_0;
|
|
4813
4813
|
break;
|
|
4814
4814
|
case -1:
|
|
4815
4815
|
case 5:
|
|
4816
4816
|
var tmp_6;
|
|
4817
|
-
var tmp_7 = schema.
|
|
4817
|
+
var tmp_7 = schema.d3e_1;
|
|
4818
4818
|
if (!(tmp_7 == null) ? isInterface(tmp_7, BooleanValue) : false) {
|
|
4819
4819
|
// Inline function 'kotlin.let' call
|
|
4820
4820
|
var it_1 = new Any(false);
|
|
4821
|
-
tmp_6 = !(schema.
|
|
4821
|
+
tmp_6 = !(schema.d3e_1 == null) ? new Dict(it_1, false) : it_1;
|
|
4822
4822
|
} else {
|
|
4823
4823
|
// Inline function 'kotlin.let' call
|
|
4824
4824
|
var it_2 = new Custom(sanitize(name), isNullable);
|
|
4825
|
-
tmp_6 = !(schema.
|
|
4825
|
+
tmp_6 = !(schema.d3e_1 == null) ? new Dict(it_2, false) : it_2;
|
|
4826
4826
|
}
|
|
4827
4827
|
|
|
4828
4828
|
tmp_5 = tmp_6;
|
|
4829
4829
|
break;
|
|
4830
4830
|
case 4:
|
|
4831
|
-
var it_3 = schema.
|
|
4831
|
+
var it_3 = schema.a3e_1;
|
|
4832
4832
|
var tmp_8;
|
|
4833
4833
|
if (it_3 instanceof OpenAPIV3Reference) {
|
|
4834
|
-
var tmp8_elvis_lhs = schema.
|
|
4834
|
+
var tmp8_elvis_lhs = schema.e3d_1;
|
|
4835
4835
|
tmp_8 = toIterable(toReference_1(_this__u8e3s4, it_3, tmp8_elvis_lhs == null ? false : tmp8_elvis_lhs), isNullable);
|
|
4836
4836
|
} else {
|
|
4837
4837
|
if (it_3 instanceof OpenAPIV3Schema) {
|
|
4838
|
-
var tmp9_elvis_lhs = schema.
|
|
4838
|
+
var tmp9_elvis_lhs = schema.e3d_1;
|
|
4839
4839
|
tmp_8 = toIterable(toReference_2(_this__u8e3s4, it_3, tmp9_elvis_lhs == null ? false : tmp9_elvis_lhs, name), isNullable);
|
|
4840
4840
|
} else {
|
|
4841
4841
|
if (it_3 == null) {
|
|
@@ -4863,7 +4863,7 @@ function resolve_5(_this__u8e3s4, responseOrOpenAPIV3Reference) {
|
|
|
4863
4863
|
tmp = responseOrOpenAPIV3Reference;
|
|
4864
4864
|
} else {
|
|
4865
4865
|
if (responseOrOpenAPIV3Reference instanceof OpenAPIV3Reference) {
|
|
4866
|
-
tmp = resolveOpenAPIV3Response(_this__u8e3s4, responseOrOpenAPIV3Reference).
|
|
4866
|
+
tmp = resolveOpenAPIV3Response(_this__u8e3s4, responseOrOpenAPIV3Reference).uf_1;
|
|
4867
4867
|
} else {
|
|
4868
4868
|
noWhenBranchMatchedException();
|
|
4869
4869
|
}
|
|
@@ -4871,7 +4871,7 @@ function resolve_5(_this__u8e3s4, responseOrOpenAPIV3Reference) {
|
|
|
4871
4871
|
return tmp;
|
|
4872
4872
|
}
|
|
4873
4873
|
function toLinkAnnotationList(_this__u8e3s4, links) {
|
|
4874
|
-
var tmp1_safe_receiver = links == null ? null : links.
|
|
4874
|
+
var tmp1_safe_receiver = links == null ? null : links.y3g_1;
|
|
4875
4875
|
var tmp;
|
|
4876
4876
|
if (tmp1_safe_receiver == null) {
|
|
4877
4877
|
tmp = null;
|
|
@@ -4882,7 +4882,7 @@ function toLinkAnnotationList(_this__u8e3s4, links) {
|
|
|
4882
4882
|
var _iterator__ex2g4s = tmp1_safe_receiver.t();
|
|
4883
4883
|
while (_iterator__ex2g4s.u()) {
|
|
4884
4884
|
var item = _iterator__ex2g4s.v();
|
|
4885
|
-
var tmp$ret$0 = toAnnotation(toLinkInfo_0(resolve_8(_this__u8e3s4, item.
|
|
4885
|
+
var tmp$ret$0 = toAnnotation(toLinkInfo_0(resolve_8(_this__u8e3s4, item.m1()), item.l1()));
|
|
4886
4886
|
destination.x(tmp$ret$0);
|
|
4887
4887
|
}
|
|
4888
4888
|
tmp = destination;
|
|
@@ -4892,9 +4892,9 @@ function toLinkAnnotationList(_this__u8e3s4, links) {
|
|
|
4892
4892
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
4893
4893
|
}
|
|
4894
4894
|
function toField_3(_this__u8e3s4, header, identifier, name) {
|
|
4895
|
-
var tmp0_elvis_lhs = header.
|
|
4895
|
+
var tmp0_elvis_lhs = header.p3h_1;
|
|
4896
4896
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
4897
|
-
var s = header.
|
|
4897
|
+
var s = header.v3h_1;
|
|
4898
4898
|
var tmp;
|
|
4899
4899
|
if (s instanceof OpenAPIV3Reference) {
|
|
4900
4900
|
tmp = toReference_1(_this__u8e3s4, s, isNullable);
|
|
@@ -4912,7 +4912,7 @@ function toField_3(_this__u8e3s4, header, identifier, name) {
|
|
|
4912
4912
|
// Inline function 'kotlin.let' call
|
|
4913
4913
|
var it = tmp;
|
|
4914
4914
|
var tmp0_identifier = new FieldIdentifier(identifier);
|
|
4915
|
-
var tmp1_annotations = toDescriptionAnnotationList(header.
|
|
4915
|
+
var tmp1_annotations = toDescriptionAnnotationList(header.o3h_1);
|
|
4916
4916
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
4917
4917
|
}
|
|
4918
4918
|
function resolve_6(_this__u8e3s4, headerOrReference) {
|
|
@@ -4921,7 +4921,7 @@ function resolve_6(_this__u8e3s4, headerOrReference) {
|
|
|
4921
4921
|
tmp = headerOrReference;
|
|
4922
4922
|
} else {
|
|
4923
4923
|
if (headerOrReference instanceof OpenAPIV3Reference) {
|
|
4924
|
-
tmp = resolveOpenAPIV3Header(_this__u8e3s4, headerOrReference).
|
|
4924
|
+
tmp = resolveOpenAPIV3Header(_this__u8e3s4, headerOrReference).uf_1;
|
|
4925
4925
|
} else {
|
|
4926
4926
|
noWhenBranchMatchedException();
|
|
4927
4927
|
}
|
|
@@ -4934,7 +4934,7 @@ function resolve_7(_this__u8e3s4, schemaOrReference) {
|
|
|
4934
4934
|
tmp = schemaOrReference;
|
|
4935
4935
|
} else {
|
|
4936
4936
|
if (schemaOrReference instanceof OpenAPIV3Reference) {
|
|
4937
|
-
tmp = resolveOpenAPIV3Schema(_this__u8e3s4, schemaOrReference).
|
|
4937
|
+
tmp = resolveOpenAPIV3Schema(_this__u8e3s4, schemaOrReference).uf_1;
|
|
4938
4938
|
} else {
|
|
4939
4939
|
noWhenBranchMatchedException();
|
|
4940
4940
|
}
|
|
@@ -4956,13 +4956,13 @@ function flatten_1(_this__u8e3s4, schemaOrReference, name) {
|
|
|
4956
4956
|
}
|
|
4957
4957
|
function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
4958
4958
|
var tmp;
|
|
4959
|
-
if (exists_0(schemaObject.
|
|
4960
|
-
var tmp0_subject = schemaObject.
|
|
4959
|
+
if (exists_0(schemaObject.d3e_1)) {
|
|
4960
|
+
var tmp0_subject = schemaObject.d3e_1;
|
|
4961
4961
|
var tmp_0;
|
|
4962
4962
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
4963
4963
|
tmp_0 = emptyList();
|
|
4964
4964
|
} else {
|
|
4965
|
-
var tmp1_safe_receiver = schemaObject.
|
|
4965
|
+
var tmp1_safe_receiver = schemaObject.d3e_1;
|
|
4966
4966
|
var tmp_1;
|
|
4967
4967
|
if (tmp1_safe_receiver == null) {
|
|
4968
4968
|
tmp_1 = null;
|
|
@@ -4977,7 +4977,7 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
4977
4977
|
} else {
|
|
4978
4978
|
// Inline function 'kotlin.takeIf' call
|
|
4979
4979
|
var tmp_3;
|
|
4980
|
-
if (!(tmp2_safe_receiver.
|
|
4980
|
+
if (!(tmp2_safe_receiver.c3e_1 == null)) {
|
|
4981
4981
|
tmp_3 = tmp2_safe_receiver;
|
|
4982
4982
|
} else {
|
|
4983
4983
|
tmp_3 = null;
|
|
@@ -4996,11 +4996,11 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
4996
4996
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
4997
4997
|
}
|
|
4998
4998
|
tmp = tmp_0;
|
|
4999
|
-
} else if (!(schemaObject.
|
|
5000
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
4999
|
+
} else if (!(schemaObject.h3d_1 == null) || !(schemaObject.i3d_1 == null)) {
|
|
5000
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.s3d_1);
|
|
5001
5001
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
5002
5002
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5003
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
5003
|
+
var tmp0_elvis_lhs = schemaObject.h3d_1;
|
|
5004
5004
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
5005
5005
|
var this_0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
5006
5006
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
@@ -5027,7 +5027,7 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
5027
5027
|
}
|
|
5028
5028
|
var tmp_8 = listOf(new Union(null, tmp_5, tmp_6, toSet(destination)));
|
|
5029
5029
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5030
|
-
var tmp0_elvis_lhs_0 = schemaObject.
|
|
5030
|
+
var tmp0_elvis_lhs_0 = schemaObject.h3d_1;
|
|
5031
5031
|
// Inline function 'kotlin.collections.flatMapIndexed' call
|
|
5032
5032
|
var tmp0 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
5033
5033
|
// Inline function 'kotlin.collections.flatMapIndexedTo' call
|
|
@@ -5053,11 +5053,11 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
5053
5053
|
addAll(destination_0, list);
|
|
5054
5054
|
}
|
|
5055
5055
|
tmp = plus_0(tmp_8, destination_0);
|
|
5056
|
-
} else if (!(schemaObject.
|
|
5057
|
-
var tmp_10 = toDescriptionAnnotationList(schemaObject.
|
|
5056
|
+
} else if (!(schemaObject.b3e_1 == null)) {
|
|
5057
|
+
var tmp_10 = toDescriptionAnnotationList(schemaObject.s3d_1);
|
|
5058
5058
|
var tmp_11 = new DefinitionIdentifier(sanitize(name));
|
|
5059
5059
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5060
|
-
var tmp0_elvis_lhs_1 = schemaObject.
|
|
5060
|
+
var tmp0_elvis_lhs_1 = schemaObject.b3e_1;
|
|
5061
5061
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5062
5062
|
var tmp0_0 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
5063
5063
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -5074,14 +5074,14 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
5074
5074
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
5075
5075
|
while (_iterator__ex2g4s_2.u()) {
|
|
5076
5076
|
var e = _iterator__ex2g4s_2.v();
|
|
5077
|
-
var key = e.
|
|
5077
|
+
var key = e.ys_1;
|
|
5078
5078
|
if (set.x(key)) {
|
|
5079
5079
|
list_1.x(e);
|
|
5080
5080
|
}
|
|
5081
5081
|
}
|
|
5082
5082
|
var tmp_12 = listOf(new Type(null, tmp_10, tmp_11, new Shape(list_1), emptyList()));
|
|
5083
5083
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5084
|
-
var tmp0_1 = ensureNotNull(schemaObject.
|
|
5084
|
+
var tmp0_1 = ensureNotNull(schemaObject.b3e_1);
|
|
5085
5085
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5086
5086
|
var destination_2 = ArrayList_init_$Create$();
|
|
5087
5087
|
var _iterator__ex2g4s_3 = tmp0_1.t();
|
|
@@ -5090,12 +5090,12 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
5090
5090
|
var tmp_13;
|
|
5091
5091
|
if (element_1 instanceof OpenAPIV3Reference) {
|
|
5092
5092
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5093
|
-
var tmp0_elvis_lhs_2 = resolveOpenAPIV3Schema(_this__u8e3s4, element_1).
|
|
5093
|
+
var tmp0_elvis_lhs_2 = resolveOpenAPIV3Schema(_this__u8e3s4, element_1).uf_1.c3e_1;
|
|
5094
5094
|
tmp_13 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
5095
5095
|
} else {
|
|
5096
5096
|
if (element_1 instanceof OpenAPIV3Schema) {
|
|
5097
5097
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5098
|
-
var tmp0_elvis_lhs_3 = element_1.
|
|
5098
|
+
var tmp0_elvis_lhs_3 = element_1.c3e_1;
|
|
5099
5099
|
tmp_13 = tmp0_elvis_lhs_3 == null ? emptyMap() : tmp0_elvis_lhs_3;
|
|
5100
5100
|
} else {
|
|
5101
5101
|
noWhenBranchMatchedException();
|
|
@@ -5106,13 +5106,13 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
5106
5106
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5107
5107
|
var destination_3 = ArrayList_init_$Create$();
|
|
5108
5108
|
// Inline function 'kotlin.collections.iterator' call
|
|
5109
|
-
var _iterator__ex2g4s_4 = tmp0_2.
|
|
5109
|
+
var _iterator__ex2g4s_4 = tmp0_2.k1().t();
|
|
5110
5110
|
while (_iterator__ex2g4s_4.u()) {
|
|
5111
5111
|
var element_2 = _iterator__ex2g4s_4.v();
|
|
5112
5112
|
// Inline function 'kotlin.collections.component1' call
|
|
5113
|
-
var key_0 = element_2.
|
|
5113
|
+
var key_0 = element_2.l1();
|
|
5114
5114
|
// Inline function 'kotlin.collections.component2' call
|
|
5115
|
-
var value = element_2.
|
|
5115
|
+
var value = element_2.m1();
|
|
5116
5116
|
var list_2 = flatten_1(_this__u8e3s4, value, className([name, key_0]));
|
|
5117
5117
|
addAll(destination_3, list_2);
|
|
5118
5118
|
}
|
|
@@ -5120,29 +5120,29 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
5120
5120
|
addAll(destination_2, list_3);
|
|
5121
5121
|
}
|
|
5122
5122
|
tmp = plus_0(tmp_12, destination_2);
|
|
5123
|
-
} else if (!(schemaObject.
|
|
5123
|
+
} else if (!(schemaObject.z3d_1 == null)) {
|
|
5124
5124
|
// Inline function 'kotlin.collections.map' call
|
|
5125
|
-
var this_1 = ensureNotNull(schemaObject.
|
|
5125
|
+
var this_1 = ensureNotNull(schemaObject.z3d_1);
|
|
5126
5126
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5127
5127
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
5128
5128
|
var _iterator__ex2g4s_5 = this_1.t();
|
|
5129
5129
|
while (_iterator__ex2g4s_5.u()) {
|
|
5130
5130
|
var item_0 = _iterator__ex2g4s_5.v();
|
|
5131
|
-
var tmp$ret$31 = item_0.
|
|
5131
|
+
var tmp$ret$31 = item_0.f11();
|
|
5132
5132
|
destination_4.x(tmp$ret$31);
|
|
5133
5133
|
}
|
|
5134
5134
|
// Inline function 'kotlin.let' call
|
|
5135
5135
|
var it = toSet(destination_4);
|
|
5136
|
-
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.
|
|
5136
|
+
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.s3d_1), new DefinitionIdentifier(name), it));
|
|
5137
5137
|
} else {
|
|
5138
|
-
var tmp5_subject = schemaObject.
|
|
5138
|
+
var tmp5_subject = schemaObject.l3d_1;
|
|
5139
5139
|
var tmp_14;
|
|
5140
|
-
switch (tmp5_subject == null ? -1 : tmp5_subject.
|
|
5140
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.c3_1) {
|
|
5141
5141
|
case -1:
|
|
5142
5142
|
case 5:
|
|
5143
5143
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5144
5144
|
|
|
5145
|
-
var tmp0_elvis_lhs_4 = schemaObject.
|
|
5145
|
+
var tmp0_elvis_lhs_4 = schemaObject.c3e_1;
|
|
5146
5146
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5147
5147
|
|
|
5148
5148
|
var tmp0_3 = tmp0_elvis_lhs_4 == null ? emptyMap() : tmp0_elvis_lhs_4;
|
|
@@ -5151,23 +5151,23 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
5151
5151
|
var destination_5 = ArrayList_init_$Create$();
|
|
5152
5152
|
// Inline function 'kotlin.collections.iterator' call
|
|
5153
5153
|
|
|
5154
|
-
var _iterator__ex2g4s_6 = tmp0_3.
|
|
5154
|
+
var _iterator__ex2g4s_6 = tmp0_3.k1().t();
|
|
5155
5155
|
while (_iterator__ex2g4s_6.u()) {
|
|
5156
5156
|
var element_3 = _iterator__ex2g4s_6.v();
|
|
5157
5157
|
// Inline function 'kotlin.collections.component1' call
|
|
5158
|
-
var key_1 = element_3.
|
|
5158
|
+
var key_1 = element_3.l1();
|
|
5159
5159
|
// Inline function 'kotlin.collections.component2' call
|
|
5160
|
-
var value_0 = element_3.
|
|
5160
|
+
var value_0 = element_3.m1();
|
|
5161
5161
|
var list_4 = flatten_1(_this__u8e3s4, value_0, className([name, key_1]));
|
|
5162
5162
|
addAll(destination_5, list_4);
|
|
5163
5163
|
}
|
|
5164
5164
|
|
|
5165
5165
|
var fields = destination_5;
|
|
5166
|
-
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.
|
|
5166
|
+
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.s3d_1), new DefinitionIdentifier(name), new Shape(toField_4(_this__u8e3s4, schemaObject, name)), emptyList()));
|
|
5167
5167
|
tmp_14 = plus_0(schema, fields);
|
|
5168
5168
|
break;
|
|
5169
5169
|
case 4:
|
|
5170
|
-
var tmp6_safe_receiver = schemaObject.
|
|
5170
|
+
var tmp6_safe_receiver = schemaObject.a3e_1;
|
|
5171
5171
|
var tmp_15;
|
|
5172
5172
|
if (tmp6_safe_receiver == null) {
|
|
5173
5173
|
tmp_15 = null;
|
|
@@ -5199,29 +5199,29 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
5199
5199
|
}
|
|
5200
5200
|
function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
5201
5201
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5202
|
-
var tmp0_elvis_lhs = response.
|
|
5202
|
+
var tmp0_elvis_lhs = response.r3g_1;
|
|
5203
5203
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5204
5204
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
5205
5205
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5206
5206
|
var destination = ArrayList_init_$Create$();
|
|
5207
5207
|
// Inline function 'kotlin.collections.iterator' call
|
|
5208
|
-
var _iterator__ex2g4s = tmp0.
|
|
5208
|
+
var _iterator__ex2g4s = tmp0.k1().t();
|
|
5209
5209
|
while (_iterator__ex2g4s.u()) {
|
|
5210
5210
|
var element = _iterator__ex2g4s.v();
|
|
5211
5211
|
// Inline function 'kotlin.collections.component2' call
|
|
5212
|
-
var mediaObject = element.
|
|
5213
|
-
var schema = mediaObject.
|
|
5212
|
+
var mediaObject = element.m1();
|
|
5213
|
+
var schema = mediaObject.k3g_1;
|
|
5214
5214
|
var tmp;
|
|
5215
5215
|
if (schema instanceof OpenAPIV3Schema) {
|
|
5216
|
-
var tmp0_subject = schema.
|
|
5216
|
+
var tmp0_subject = schema.l3d_1;
|
|
5217
5217
|
var tmp_0;
|
|
5218
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
5218
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.c3_1) {
|
|
5219
5219
|
case -1:
|
|
5220
5220
|
case 5:
|
|
5221
5221
|
tmp_0 = flatten_2(_this__u8e3s4, schema, className([name, _StatusCode___get_value__impl__we50mu(statusCode), 'ResponseBody']));
|
|
5222
5222
|
break;
|
|
5223
5223
|
case 4:
|
|
5224
|
-
var tmp1_safe_receiver = schema.
|
|
5224
|
+
var tmp1_safe_receiver = schema.a3e_1;
|
|
5225
5225
|
var tmp_1;
|
|
5226
5226
|
if (tmp1_safe_receiver == null) {
|
|
5227
5227
|
tmp_1 = null;
|
|
@@ -5249,9 +5249,9 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5249
5249
|
return destination;
|
|
5250
5250
|
}
|
|
5251
5251
|
function resolveOpenAPIV3Response(_this__u8e3s4, reference) {
|
|
5252
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5253
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5254
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5252
|
+
var tmp0_safe_receiver = _this__u8e3s4.q3b_1;
|
|
5253
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s3c_1;
|
|
5254
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference(reference));
|
|
5255
5255
|
var tmp;
|
|
5256
5256
|
if (tmp2_safe_receiver == null) {
|
|
5257
5257
|
tmp = null;
|
|
@@ -5272,7 +5272,7 @@ function resolveOpenAPIV3Response(_this__u8e3s4, reference) {
|
|
|
5272
5272
|
var tmp3_elvis_lhs = tmp;
|
|
5273
5273
|
var tmp_1;
|
|
5274
5274
|
if (tmp3_elvis_lhs == null) {
|
|
5275
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5275
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.k3h_1);
|
|
5276
5276
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5277
5277
|
} else {
|
|
5278
5278
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5280,9 +5280,9 @@ function resolveOpenAPIV3Response(_this__u8e3s4, reference) {
|
|
|
5280
5280
|
return tmp_1;
|
|
5281
5281
|
}
|
|
5282
5282
|
function resolveOpenAPIV3Parameter(_this__u8e3s4, reference) {
|
|
5283
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5284
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5285
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5283
|
+
var tmp0_safe_receiver = _this__u8e3s4.q3b_1;
|
|
5284
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t3c_1;
|
|
5285
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference(reference));
|
|
5286
5286
|
var tmp;
|
|
5287
5287
|
if (tmp2_safe_receiver == null) {
|
|
5288
5288
|
tmp = null;
|
|
@@ -5303,9 +5303,9 @@ function resolveOpenAPIV3Parameter(_this__u8e3s4, reference) {
|
|
|
5303
5303
|
return tmp;
|
|
5304
5304
|
}
|
|
5305
5305
|
function resolveOpenAPIV3RequestBody(_this__u8e3s4, reference) {
|
|
5306
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5307
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5308
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5306
|
+
var tmp0_safe_receiver = _this__u8e3s4.q3b_1;
|
|
5307
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v3c_1;
|
|
5308
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference(reference));
|
|
5309
5309
|
var tmp;
|
|
5310
5310
|
if (tmp2_safe_receiver == null) {
|
|
5311
5311
|
tmp = null;
|
|
@@ -5326,7 +5326,7 @@ function resolveOpenAPIV3RequestBody(_this__u8e3s4, reference) {
|
|
|
5326
5326
|
var tmp3_elvis_lhs = tmp;
|
|
5327
5327
|
var tmp_1;
|
|
5328
5328
|
if (tmp3_elvis_lhs == null) {
|
|
5329
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5329
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.k3h_1);
|
|
5330
5330
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5331
5331
|
} else {
|
|
5332
5332
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5334,9 +5334,9 @@ function resolveOpenAPIV3RequestBody(_this__u8e3s4, reference) {
|
|
|
5334
5334
|
return tmp_1;
|
|
5335
5335
|
}
|
|
5336
5336
|
function resolveOpenAPIV3Schema(_this__u8e3s4, reference) {
|
|
5337
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5338
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5339
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5337
|
+
var tmp0_safe_receiver = _this__u8e3s4.q3b_1;
|
|
5338
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r3c_1;
|
|
5339
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference(reference));
|
|
5340
5340
|
var tmp;
|
|
5341
5341
|
if (tmp2_safe_receiver == null) {
|
|
5342
5342
|
tmp = null;
|
|
@@ -5357,7 +5357,7 @@ function resolveOpenAPIV3Schema(_this__u8e3s4, reference) {
|
|
|
5357
5357
|
var tmp3_elvis_lhs = tmp;
|
|
5358
5358
|
var tmp_1;
|
|
5359
5359
|
if (tmp3_elvis_lhs == null) {
|
|
5360
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5360
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.k3h_1);
|
|
5361
5361
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5362
5362
|
} else {
|
|
5363
5363
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5370,7 +5370,7 @@ function exists_0(_this__u8e3s4) {
|
|
|
5370
5370
|
tmp = true;
|
|
5371
5371
|
} else {
|
|
5372
5372
|
if (!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, BooleanValue) : false) {
|
|
5373
|
-
tmp = _this__u8e3s4.
|
|
5373
|
+
tmp = _this__u8e3s4.m1();
|
|
5374
5374
|
} else {
|
|
5375
5375
|
if (_this__u8e3s4 instanceof OpenAPIV3Reference) {
|
|
5376
5376
|
tmp = true;
|
|
@@ -5383,7 +5383,7 @@ function exists_0(_this__u8e3s4) {
|
|
|
5383
5383
|
}
|
|
5384
5384
|
function isPrimitive_0(_this__u8e3s4) {
|
|
5385
5385
|
var tmp;
|
|
5386
|
-
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.
|
|
5386
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.c3_1) {
|
|
5387
5387
|
case 0:
|
|
5388
5388
|
tmp = true;
|
|
5389
5389
|
break;
|
|
@@ -5412,17 +5412,17 @@ function isPrimitive_0(_this__u8e3s4) {
|
|
|
5412
5412
|
return tmp;
|
|
5413
5413
|
}
|
|
5414
5414
|
function toPrimitive_0(_this__u8e3s4) {
|
|
5415
|
-
var tmp0_subject = _this__u8e3s4.
|
|
5415
|
+
var tmp0_subject = _this__u8e3s4.l3d_1;
|
|
5416
5416
|
var tmp;
|
|
5417
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
5417
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.c3_1) {
|
|
5418
5418
|
case 0:
|
|
5419
|
-
tmp = !(_this__u8e3s4.
|
|
5419
|
+
tmp = !(_this__u8e3s4.m3e_1 == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.m3e_1))) : _this__u8e3s4.f3e_1 === 'binary' ? Bytes_instance : new String_0(null);
|
|
5420
5420
|
break;
|
|
5421
5421
|
case 2:
|
|
5422
|
-
tmp = new Integer(_this__u8e3s4.
|
|
5422
|
+
tmp = new Integer(_this__u8e3s4.f3e_1 === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5423
5423
|
break;
|
|
5424
5424
|
case 1:
|
|
5425
|
-
tmp = new Number_0(_this__u8e3s4.
|
|
5425
|
+
tmp = new Number_0(_this__u8e3s4.f3e_1 === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5426
5426
|
break;
|
|
5427
5427
|
case 3:
|
|
5428
5428
|
tmp = Boolean_instance;
|
|
@@ -5435,24 +5435,24 @@ function toPrimitive_0(_this__u8e3s4) {
|
|
|
5435
5435
|
}
|
|
5436
5436
|
function toLinkInfo_0(_this__u8e3s4, name) {
|
|
5437
5437
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5438
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
5438
|
+
var tmp0_elvis_lhs = _this__u8e3s4.e3h_1;
|
|
5439
5439
|
// Inline function 'kotlin.collections.mapValues' call
|
|
5440
5440
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
5441
5441
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
5442
|
-
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.
|
|
5442
|
+
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.a1()));
|
|
5443
5443
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
5444
|
-
var _iterator__ex2g4s = this_0.
|
|
5444
|
+
var _iterator__ex2g4s = this_0.k1().t();
|
|
5445
5445
|
while (_iterator__ex2g4s.u()) {
|
|
5446
5446
|
var element = _iterator__ex2g4s.v();
|
|
5447
|
-
var tmp = element.
|
|
5448
|
-
var tmp$ret$2 = asLinkExpression(element.
|
|
5449
|
-
destination.
|
|
5447
|
+
var tmp = element.l1();
|
|
5448
|
+
var tmp$ret$2 = asLinkExpression(element.m1());
|
|
5449
|
+
destination.y2(tmp, tmp$ret$2);
|
|
5450
5450
|
}
|
|
5451
5451
|
var tmp_0 = destination;
|
|
5452
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5452
|
+
var tmp0_safe_receiver = _this__u8e3s4.f3h_1;
|
|
5453
5453
|
var tmp_1 = tmp0_safe_receiver == null ? null : asLinkExpression(tmp0_safe_receiver);
|
|
5454
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
5455
|
-
return new LinkInfo(name, _this__u8e3s4.
|
|
5454
|
+
var tmp1_safe_receiver = _this__u8e3s4.h3h_1;
|
|
5455
|
+
return new LinkInfo(name, _this__u8e3s4.d3h_1, _this__u8e3s4.c3h_1, tmp_0, tmp_1, _this__u8e3s4.g3h_1, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.v30_1);
|
|
5456
5456
|
}
|
|
5457
5457
|
function resolve_8(_this__u8e3s4, linkOrReference) {
|
|
5458
5458
|
var tmp;
|
|
@@ -5468,9 +5468,9 @@ function resolve_8(_this__u8e3s4, linkOrReference) {
|
|
|
5468
5468
|
return tmp;
|
|
5469
5469
|
}
|
|
5470
5470
|
function resolveOpenAPIV3Header(_this__u8e3s4, reference) {
|
|
5471
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5472
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5473
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5471
|
+
var tmp0_safe_receiver = _this__u8e3s4.q3b_1;
|
|
5472
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w3c_1;
|
|
5473
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference(reference));
|
|
5474
5474
|
var tmp;
|
|
5475
5475
|
if (tmp2_safe_receiver == null) {
|
|
5476
5476
|
tmp = null;
|
|
@@ -5491,7 +5491,7 @@ function resolveOpenAPIV3Header(_this__u8e3s4, reference) {
|
|
|
5491
5491
|
var tmp3_elvis_lhs = tmp;
|
|
5492
5492
|
var tmp_1;
|
|
5493
5493
|
if (tmp3_elvis_lhs == null) {
|
|
5494
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5494
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.k3h_1);
|
|
5495
5495
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5496
5496
|
} else {
|
|
5497
5497
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5504,7 +5504,7 @@ function resolve_9(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
5504
5504
|
tmp = schemaOrReferenceOrBoolean;
|
|
5505
5505
|
} else {
|
|
5506
5506
|
if (schemaOrReferenceOrBoolean instanceof OpenAPIV3Reference) {
|
|
5507
|
-
tmp = resolveOpenAPIV3Schema(_this__u8e3s4, schemaOrReferenceOrBoolean).
|
|
5507
|
+
tmp = resolveOpenAPIV3Schema(_this__u8e3s4, schemaOrReferenceOrBoolean).uf_1;
|
|
5508
5508
|
} else {
|
|
5509
5509
|
if (isInterface(schemaOrReferenceOrBoolean, BooleanValue)) {
|
|
5510
5510
|
var reason = 'Not yet implemented';
|
|
@@ -5518,27 +5518,27 @@ function resolve_9(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
5518
5518
|
}
|
|
5519
5519
|
function toField_4(_this__u8e3s4, schema, name) {
|
|
5520
5520
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5521
|
-
var tmp0_elvis_lhs = schema.
|
|
5521
|
+
var tmp0_elvis_lhs = schema.c3e_1;
|
|
5522
5522
|
// Inline function 'kotlin.collections.map' call
|
|
5523
5523
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
5524
5524
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5525
|
-
var destination = ArrayList_init_$Create$_0(this_0.
|
|
5525
|
+
var destination = ArrayList_init_$Create$_0(this_0.a1());
|
|
5526
5526
|
// Inline function 'kotlin.collections.iterator' call
|
|
5527
|
-
var _iterator__ex2g4s = this_0.
|
|
5527
|
+
var _iterator__ex2g4s = this_0.k1().t();
|
|
5528
5528
|
while (_iterator__ex2g4s.u()) {
|
|
5529
5529
|
var item = _iterator__ex2g4s.v();
|
|
5530
5530
|
// Inline function 'kotlin.collections.component1' call
|
|
5531
|
-
var key = item.
|
|
5531
|
+
var key = item.l1();
|
|
5532
5532
|
// Inline function 'kotlin.collections.component2' call
|
|
5533
|
-
var value = item.
|
|
5534
|
-
var tmp0_safe_receiver = schema.
|
|
5535
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5533
|
+
var value = item.m1();
|
|
5534
|
+
var tmp0_safe_receiver = schema.y3d_1;
|
|
5535
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v1(key);
|
|
5536
5536
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
5537
5537
|
var tmp;
|
|
5538
5538
|
if (value instanceof OpenAPIV3Schema) {
|
|
5539
5539
|
var tmp3_identifier = new FieldIdentifier(key);
|
|
5540
|
-
var tmp4_annotations = toDescriptionAnnotationList(value.
|
|
5541
|
-
var tmp5_reference = !(value.
|
|
5540
|
+
var tmp4_annotations = toDescriptionAnnotationList(value.s3d_1);
|
|
5541
|
+
var tmp5_reference = !(value.z3d_1 == null) ? toReference_2(_this__u8e3s4, value, isNullable, className([name, key])) : equals(value.l3d_1, OpenAPIV3Type_ARRAY_getInstance()) ? toReference_2(_this__u8e3s4, value, isNullable, className([name, key, 'Array'])) : toReference_2(_this__u8e3s4, value, isNullable, className([name, key]));
|
|
5542
5542
|
tmp = new Field(tmp4_annotations, tmp3_identifier, tmp5_reference);
|
|
5543
5543
|
} else {
|
|
5544
5544
|
if (value instanceof OpenAPIV3Reference) {
|
|
@@ -5561,9 +5561,9 @@ function asLinkExpression(_this__u8e3s4) {
|
|
|
5561
5561
|
return tmp1_elvis_lhs == null ? toString(_this__u8e3s4) : tmp1_elvis_lhs;
|
|
5562
5562
|
}
|
|
5563
5563
|
function resolveOpenAPIV3Link(_this__u8e3s4, reference) {
|
|
5564
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5565
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5566
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5564
|
+
var tmp0_safe_receiver = _this__u8e3s4.q3b_1;
|
|
5565
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y3c_1;
|
|
5566
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference(reference));
|
|
5567
5567
|
var tmp;
|
|
5568
5568
|
if (tmp2_safe_receiver == null) {
|
|
5569
5569
|
tmp = null;
|
|
@@ -5584,7 +5584,7 @@ function resolveOpenAPIV3Link(_this__u8e3s4, reference) {
|
|
|
5584
5584
|
var tmp3_elvis_lhs = tmp;
|
|
5585
5585
|
var tmp_1;
|
|
5586
5586
|
if (tmp3_elvis_lhs == null) {
|
|
5587
|
-
var message = 'Cannot resolve link ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5587
|
+
var message = 'Cannot resolve link ref: ' + Ref__toString_impl_irb7zi(reference.k3h_1);
|
|
5588
5588
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5589
5589
|
} else {
|
|
5590
5590
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5593,25 +5593,25 @@ function resolveOpenAPIV3Link(_this__u8e3s4, reference) {
|
|
|
5593
5593
|
}
|
|
5594
5594
|
function parseParameters$lambda_0($this_parseParameters) {
|
|
5595
5595
|
return function ($this$flatMapRequests) {
|
|
5596
|
-
var tmp = $this$flatMapRequests.
|
|
5597
|
-
var tmp_0 = resolveParameters_0($this_parseParameters, (tmp instanceof OpenAPIV3PathItem ? tmp : THROW_CCE()).
|
|
5598
|
-
var tmp_1 = $this$flatMapRequests.
|
|
5599
|
-
var parameters = plus_0(tmp_0, resolveParameters_0($this_parseParameters, (tmp_1 instanceof OpenAPIV3Operation ? tmp_1 : THROW_CCE()).
|
|
5600
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
5601
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
5596
|
+
var tmp = $this$flatMapRequests.y3k_1;
|
|
5597
|
+
var tmp_0 = resolveParameters_0($this_parseParameters, (tmp instanceof OpenAPIV3PathItem ? tmp : THROW_CCE()).a3c_1);
|
|
5598
|
+
var tmp_1 = $this$flatMapRequests.a3l_1;
|
|
5599
|
+
var parameters = plus_0(tmp_0, resolveParameters_0($this_parseParameters, (tmp_1 instanceof OpenAPIV3Operation ? tmp_1 : THROW_CCE()).n3f_1));
|
|
5600
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.a3l_1);
|
|
5601
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.x3k_1) + $this$flatMapRequests.z3k_1.b3_1 : tmp0_elvis_lhs;
|
|
5602
5602
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5603
5603
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5604
5604
|
var destination = ArrayList_init_$Create$();
|
|
5605
5605
|
var _iterator__ex2g4s = parameters.t();
|
|
5606
5606
|
while (_iterator__ex2g4s.u()) {
|
|
5607
5607
|
var element = _iterator__ex2g4s.v();
|
|
5608
|
-
var tmp0_safe_receiver = element.
|
|
5608
|
+
var tmp0_safe_receiver = element.h3f_1;
|
|
5609
5609
|
var tmp_2;
|
|
5610
5610
|
if (tmp0_safe_receiver == null) {
|
|
5611
5611
|
tmp_2 = null;
|
|
5612
5612
|
} else {
|
|
5613
5613
|
// Inline function 'kotlin.let' call
|
|
5614
|
-
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.i3f_1]));
|
|
5615
5615
|
}
|
|
5616
5616
|
var tmp1_elvis_lhs = tmp_2;
|
|
5617
5617
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -5622,10 +5622,10 @@ function parseParameters$lambda_0($this_parseParameters) {
|
|
|
5622
5622
|
}
|
|
5623
5623
|
function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
5624
5624
|
return function ($this$flatMapRequests) {
|
|
5625
|
-
var tmp = $this$flatMapRequests.
|
|
5625
|
+
var tmp = $this$flatMapRequests.a3l_1;
|
|
5626
5626
|
var tmp0_elvis_lhs = toName(tmp instanceof OpenAPIV3Operation ? tmp : THROW_CCE());
|
|
5627
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
5628
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
5627
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.x3k_1) + $this$flatMapRequests.z3k_1.b3_1 : tmp0_elvis_lhs;
|
|
5628
|
+
var tmp1_safe_receiver = $this$flatMapRequests.a3l_1.o3f_1;
|
|
5629
5629
|
var tmp_0;
|
|
5630
5630
|
if (tmp1_safe_receiver == null) {
|
|
5631
5631
|
tmp_0 = null;
|
|
@@ -5635,29 +5635,29 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
5635
5635
|
}
|
|
5636
5636
|
var tmp2_safe_receiver = tmp_0;
|
|
5637
5637
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5638
|
-
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.e3g_1;
|
|
5639
5639
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5640
5640
|
var tmp0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
5641
5641
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5642
5642
|
var destination = ArrayList_init_$Create$();
|
|
5643
5643
|
// Inline function 'kotlin.collections.iterator' call
|
|
5644
|
-
var _iterator__ex2g4s = tmp0.
|
|
5644
|
+
var _iterator__ex2g4s = tmp0.k1().t();
|
|
5645
5645
|
while (_iterator__ex2g4s.u()) {
|
|
5646
5646
|
var element = _iterator__ex2g4s.v();
|
|
5647
5647
|
// Inline function 'kotlin.collections.component2' call
|
|
5648
|
-
var mediaObject = element.
|
|
5649
|
-
var schema = mediaObject.
|
|
5648
|
+
var mediaObject = element.m1();
|
|
5649
|
+
var schema = mediaObject.k3g_1;
|
|
5650
5650
|
var tmp_1;
|
|
5651
5651
|
if (schema instanceof OpenAPIV3Schema) {
|
|
5652
|
-
var tmp0_subject = schema.
|
|
5652
|
+
var tmp0_subject = schema.l3d_1;
|
|
5653
5653
|
var tmp_2;
|
|
5654
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
5654
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.c3_1) {
|
|
5655
5655
|
case -1:
|
|
5656
5656
|
case 5:
|
|
5657
5657
|
tmp_2 = flatten_2($this_parseRequestBody, schema, className([name, 'RequestBody']));
|
|
5658
5658
|
break;
|
|
5659
5659
|
case 4:
|
|
5660
|
-
var tmp1_safe_receiver_0 = schema.
|
|
5660
|
+
var tmp1_safe_receiver_0 = schema.a3e_1;
|
|
5661
5661
|
var tmp_3;
|
|
5662
5662
|
if (tmp1_safe_receiver_0 == null) {
|
|
5663
5663
|
tmp_3 = null;
|
|
@@ -5697,17 +5697,17 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
5697
5697
|
}
|
|
5698
5698
|
function parseResponseBody$lambda_0($this_parseResponseBody) {
|
|
5699
5699
|
return function ($this$flatMapResponses) {
|
|
5700
|
-
var tmp = $this$flatMapResponses.
|
|
5700
|
+
var tmp = $this$flatMapResponses.e3l_1;
|
|
5701
5701
|
var tmp0_elvis_lhs = toName(tmp instanceof OpenAPIV3Operation ? tmp : THROW_CCE());
|
|
5702
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
5703
|
-
var tmp_0 = $this$flatMapResponses.
|
|
5702
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.b3l_1) + $this$flatMapResponses.d3l_1.b3_1 : tmp0_elvis_lhs;
|
|
5703
|
+
var tmp_0 = $this$flatMapResponses.g3l_1;
|
|
5704
5704
|
var response = isInterface(tmp_0, OpenAPIV3ResponseOrReference) ? tmp_0 : THROW_CCE();
|
|
5705
5705
|
var tmp_1;
|
|
5706
5706
|
if (response instanceof OpenAPIV3Response) {
|
|
5707
|
-
tmp_1 = flatMapResponse($this_parseResponseBody, response, name, $this$flatMapResponses.
|
|
5707
|
+
tmp_1 = flatMapResponse($this_parseResponseBody, response, name, $this$flatMapResponses.f3l_1);
|
|
5708
5708
|
} else {
|
|
5709
5709
|
if (response instanceof OpenAPIV3Reference) {
|
|
5710
|
-
tmp_1 = flatMapResponse($this_parseResponseBody, resolveOpenAPIV3Response($this_parseResponseBody, response).
|
|
5710
|
+
tmp_1 = flatMapResponse($this_parseResponseBody, resolveOpenAPIV3Response($this_parseResponseBody, response).uf_1, name, $this$flatMapResponses.f3l_1);
|
|
5711
5711
|
} else {
|
|
5712
5712
|
noWhenBranchMatchedException();
|
|
5713
5713
|
}
|