@flock/wirespec 0.18.0-RC.1 → 0.18.1-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 +152 -158
- package/arrow-arrow-core.mjs.map +1 -1
- package/clikt-clikt-mordant.mjs +80 -80
- package/clikt-clikt.mjs +1442 -1442
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +439 -439
- package/kotlin-kotlin-stdlib.mjs +1072 -1136
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +4857 -4857
- package/kotlin-rgxgen.mjs +1793 -1793
- package/kotlinx-io-kotlinx-io-core.mjs +415 -415
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1752 -1752
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1348 -1356
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1303 -1311
- package/mordant-mordant.mjs.map +1 -1
- package/package.json +1 -1
- package/wirespec-fetch.mjs +13 -19
- package/wirespec-src-compiler-core.mjs +1526 -1526
- package/wirespec-src-compiler-emitters-java.mjs +477 -451
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +458 -453
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +419 -418
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +939 -725
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +225 -233
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +524 -555
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +81 -81
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +3738 -3708
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +418 -418
- package/wirespec-src-converter-avro.mjs +506 -506
- package/wirespec-src-converter-openapi.mjs +684 -684
- package/wirespec-src-plugin-arguments.mjs +181 -181
- package/wirespec-src-plugin-cli.mjs +106 -106
- package/wirespec-src-plugin-npm.mjs +36 -36
- package/wirespec-src-tools-generator.mjs +34 -34
|
@@ -211,11 +211,11 @@ initMetadataForObject(OpenAPIV3Parser, 'OpenAPIV3Parser');
|
|
|
211
211
|
function emitFormat(_this__u8e3s4) {
|
|
212
212
|
var tmp;
|
|
213
213
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
214
|
-
var t = _this__u8e3s4.
|
|
214
|
+
var t = _this__u8e3s4.pu_1;
|
|
215
215
|
var tmp_0;
|
|
216
216
|
if (t instanceof Number_0) {
|
|
217
217
|
var tmp_1;
|
|
218
|
-
switch (t.
|
|
218
|
+
switch (t.wt_1.b3_1) {
|
|
219
219
|
case 0:
|
|
220
220
|
tmp_1 = 'float';
|
|
221
221
|
break;
|
|
@@ -230,7 +230,7 @@ function emitFormat(_this__u8e3s4) {
|
|
|
230
230
|
} else {
|
|
231
231
|
if (t instanceof Integer) {
|
|
232
232
|
var tmp_2;
|
|
233
|
-
switch (t.
|
|
233
|
+
switch (t.tt_1.b3_1) {
|
|
234
234
|
case 0:
|
|
235
235
|
tmp_2 = 'int32';
|
|
236
236
|
break;
|
|
@@ -257,7 +257,7 @@ function emitFormat(_this__u8e3s4) {
|
|
|
257
257
|
return tmp;
|
|
258
258
|
}
|
|
259
259
|
function parseOpenApi(moduleContent, openApiParser) {
|
|
260
|
-
return new Root(nonEmptyListOf(new Module(moduleContent.
|
|
260
|
+
return new Root(nonEmptyListOf(new Module(moduleContent.xm_1, openApiParser(moduleContent.ym_1).yl_1), []));
|
|
261
261
|
}
|
|
262
262
|
function jsonDefault(strict) {
|
|
263
263
|
return Json(VOID, jsonDefault$lambda(strict));
|
|
@@ -271,42 +271,42 @@ function toOperationList(_this__u8e3s4) {
|
|
|
271
271
|
while (_iterator__ex2g4s.u()) {
|
|
272
272
|
var element = _iterator__ex2g4s.v();
|
|
273
273
|
var tmp;
|
|
274
|
-
switch (element.
|
|
274
|
+
switch (element.b3_1) {
|
|
275
275
|
case 0:
|
|
276
|
-
tmp = _this__u8e3s4.
|
|
276
|
+
tmp = _this__u8e3s4.m30();
|
|
277
277
|
break;
|
|
278
278
|
case 1:
|
|
279
|
-
tmp = _this__u8e3s4.
|
|
279
|
+
tmp = _this__u8e3s4.o30();
|
|
280
280
|
break;
|
|
281
281
|
case 2:
|
|
282
|
-
tmp = _this__u8e3s4.
|
|
282
|
+
tmp = _this__u8e3s4.n30();
|
|
283
283
|
break;
|
|
284
284
|
case 3:
|
|
285
|
-
tmp = _this__u8e3s4.
|
|
285
|
+
tmp = _this__u8e3s4.p30();
|
|
286
286
|
break;
|
|
287
287
|
case 4:
|
|
288
|
-
tmp = _this__u8e3s4.
|
|
288
|
+
tmp = _this__u8e3s4.q30();
|
|
289
289
|
break;
|
|
290
290
|
case 5:
|
|
291
|
-
tmp = _this__u8e3s4.
|
|
291
|
+
tmp = _this__u8e3s4.r30();
|
|
292
292
|
break;
|
|
293
293
|
case 6:
|
|
294
|
-
tmp = _this__u8e3s4.
|
|
294
|
+
tmp = _this__u8e3s4.s30();
|
|
295
295
|
break;
|
|
296
296
|
case 7:
|
|
297
|
-
tmp = _this__u8e3s4.
|
|
297
|
+
tmp = _this__u8e3s4.t30();
|
|
298
298
|
break;
|
|
299
299
|
default:
|
|
300
300
|
noWhenBranchMatchedException();
|
|
301
301
|
break;
|
|
302
302
|
}
|
|
303
303
|
var tmp$ret$0 = tmp;
|
|
304
|
-
result.
|
|
304
|
+
result.w2(element, tmp$ret$0);
|
|
305
305
|
}
|
|
306
306
|
return filterNotNullValues(result);
|
|
307
307
|
}
|
|
308
308
|
function toName(_this__u8e3s4) {
|
|
309
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
309
|
+
var tmp0_safe_receiver = _this__u8e3s4.a34();
|
|
310
310
|
var tmp;
|
|
311
311
|
if (tmp0_safe_receiver == null) {
|
|
312
312
|
tmp = null;
|
|
@@ -343,7 +343,7 @@ function sanitize(_this__u8e3s4) {
|
|
|
343
343
|
var item = _iterator__ex2g4s.v();
|
|
344
344
|
var _unary__edvuaz = index;
|
|
345
345
|
index = _unary__edvuaz + 1 | 0;
|
|
346
|
-
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.
|
|
346
|
+
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.oq(item) : item;
|
|
347
347
|
destination.x(tmp$ret$0);
|
|
348
348
|
}
|
|
349
349
|
var tmp = asSequence(joinToString(destination, ''));
|
|
@@ -351,29 +351,29 @@ function sanitize(_this__u8e3s4) {
|
|
|
351
351
|
}
|
|
352
352
|
function flatMapRequests(_this__u8e3s4, f) {
|
|
353
353
|
// Inline function 'kotlin.collections.flatMap' call
|
|
354
|
-
var tmp0 = _this__u8e3s4.
|
|
354
|
+
var tmp0 = _this__u8e3s4.u2z();
|
|
355
355
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
356
356
|
var destination = ArrayList_init_$Create$();
|
|
357
357
|
// Inline function 'kotlin.collections.iterator' call
|
|
358
|
-
var _iterator__ex2g4s = tmp0.
|
|
358
|
+
var _iterator__ex2g4s = tmp0.j1().t();
|
|
359
359
|
while (_iterator__ex2g4s.u()) {
|
|
360
360
|
var element = _iterator__ex2g4s.v();
|
|
361
361
|
// Inline function 'kotlin.collections.component1' call
|
|
362
|
-
var path = element.
|
|
362
|
+
var path = element.k1().a2x_1;
|
|
363
363
|
// Inline function 'kotlin.collections.component2' call
|
|
364
|
-
var pathItem = element.
|
|
364
|
+
var pathItem = element.l1();
|
|
365
365
|
// Inline function 'kotlin.collections.map' call
|
|
366
366
|
var this_0 = toOperationList(pathItem);
|
|
367
367
|
// Inline function 'kotlin.collections.mapTo' call
|
|
368
368
|
var destination_0 = ArrayList_init_$Create$_0(this_0.a1());
|
|
369
369
|
// Inline function 'kotlin.collections.iterator' call
|
|
370
|
-
var _iterator__ex2g4s_0 = this_0.
|
|
370
|
+
var _iterator__ex2g4s_0 = this_0.j1().t();
|
|
371
371
|
while (_iterator__ex2g4s_0.u()) {
|
|
372
372
|
var item = _iterator__ex2g4s_0.v();
|
|
373
373
|
// Inline function 'kotlin.collections.component1' call
|
|
374
|
-
var method = item.
|
|
374
|
+
var method = item.k1();
|
|
375
375
|
// Inline function 'kotlin.collections.component2' call
|
|
376
|
-
var operation = item.
|
|
376
|
+
var operation = item.l1();
|
|
377
377
|
var tmp$ret$6 = new FlattenRequest(path, pathItem, method, operation);
|
|
378
378
|
destination_0.x(tmp$ret$6);
|
|
379
379
|
}
|
|
@@ -392,19 +392,19 @@ function flatMapRequests(_this__u8e3s4, f) {
|
|
|
392
392
|
return destination_1;
|
|
393
393
|
}
|
|
394
394
|
function FlattenRequest(path, pathItem, method, operation) {
|
|
395
|
-
this.
|
|
396
|
-
this.
|
|
397
|
-
this.
|
|
398
|
-
this.
|
|
395
|
+
this.s3h_1 = path;
|
|
396
|
+
this.t3h_1 = pathItem;
|
|
397
|
+
this.u3h_1 = method;
|
|
398
|
+
this.v3h_1 = operation;
|
|
399
399
|
}
|
|
400
400
|
protoOf(FlattenRequest).toString = function () {
|
|
401
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
401
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.s3h_1) + ', pathItem=' + toString(this.t3h_1) + ', method=' + this.u3h_1.toString() + ', operation=' + toString(this.v3h_1) + ')';
|
|
402
402
|
};
|
|
403
403
|
protoOf(FlattenRequest).hashCode = function () {
|
|
404
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
405
|
-
result = imul(result, 31) + hashCode(this.
|
|
406
|
-
result = imul(result, 31) + this.
|
|
407
|
-
result = imul(result, 31) + hashCode(this.
|
|
404
|
+
var result = Path__hashCode_impl_go73kd(this.s3h_1);
|
|
405
|
+
result = imul(result, 31) + hashCode(this.t3h_1) | 0;
|
|
406
|
+
result = imul(result, 31) + this.u3h_1.hashCode() | 0;
|
|
407
|
+
result = imul(result, 31) + hashCode(this.v3h_1) | 0;
|
|
408
408
|
return result;
|
|
409
409
|
};
|
|
410
410
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -412,55 +412,55 @@ protoOf(FlattenRequest).equals = function (other) {
|
|
|
412
412
|
return true;
|
|
413
413
|
if (!(other instanceof FlattenRequest))
|
|
414
414
|
return false;
|
|
415
|
-
if (!(this.
|
|
415
|
+
if (!(this.s3h_1 === other.s3h_1))
|
|
416
416
|
return false;
|
|
417
|
-
if (!equals(this.
|
|
417
|
+
if (!equals(this.t3h_1, other.t3h_1))
|
|
418
418
|
return false;
|
|
419
|
-
if (!this.
|
|
419
|
+
if (!this.u3h_1.equals(other.u3h_1))
|
|
420
420
|
return false;
|
|
421
|
-
if (!equals(this.
|
|
421
|
+
if (!equals(this.v3h_1, other.v3h_1))
|
|
422
422
|
return false;
|
|
423
423
|
return true;
|
|
424
424
|
};
|
|
425
425
|
function flatMapResponses(_this__u8e3s4, f) {
|
|
426
426
|
// Inline function 'kotlin.collections.flatMap' call
|
|
427
|
-
var tmp0 = _this__u8e3s4.
|
|
427
|
+
var tmp0 = _this__u8e3s4.u2z();
|
|
428
428
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
429
429
|
var destination = ArrayList_init_$Create$();
|
|
430
430
|
// Inline function 'kotlin.collections.iterator' call
|
|
431
|
-
var _iterator__ex2g4s = tmp0.
|
|
431
|
+
var _iterator__ex2g4s = tmp0.j1().t();
|
|
432
432
|
while (_iterator__ex2g4s.u()) {
|
|
433
433
|
var element = _iterator__ex2g4s.v();
|
|
434
434
|
// Inline function 'kotlin.collections.component1' call
|
|
435
|
-
var path = element.
|
|
435
|
+
var path = element.k1().a2x_1;
|
|
436
436
|
// Inline function 'kotlin.collections.component2' call
|
|
437
|
-
var pathItem = element.
|
|
437
|
+
var pathItem = element.l1();
|
|
438
438
|
// Inline function 'kotlin.collections.flatMap' call
|
|
439
439
|
var tmp0_0 = toOperationList(pathItem);
|
|
440
440
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
441
441
|
var destination_0 = ArrayList_init_$Create$();
|
|
442
442
|
// Inline function 'kotlin.collections.iterator' call
|
|
443
|
-
var _iterator__ex2g4s_0 = tmp0_0.
|
|
443
|
+
var _iterator__ex2g4s_0 = tmp0_0.j1().t();
|
|
444
444
|
while (_iterator__ex2g4s_0.u()) {
|
|
445
445
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
446
446
|
// Inline function 'kotlin.collections.component1' call
|
|
447
|
-
var method = element_0.
|
|
447
|
+
var method = element_0.k1();
|
|
448
448
|
// Inline function 'kotlin.collections.component2' call
|
|
449
|
-
var operation = element_0.
|
|
449
|
+
var operation = element_0.l1();
|
|
450
450
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
451
|
-
var tmp0_elvis_lhs = operation.
|
|
451
|
+
var tmp0_elvis_lhs = operation.aw();
|
|
452
452
|
// Inline function 'kotlin.collections.map' call
|
|
453
453
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
454
454
|
// Inline function 'kotlin.collections.mapTo' call
|
|
455
455
|
var destination_1 = ArrayList_init_$Create$_0(this_0.a1());
|
|
456
456
|
// Inline function 'kotlin.collections.iterator' call
|
|
457
|
-
var _iterator__ex2g4s_1 = this_0.
|
|
457
|
+
var _iterator__ex2g4s_1 = this_0.j1().t();
|
|
458
458
|
while (_iterator__ex2g4s_1.u()) {
|
|
459
459
|
var item = _iterator__ex2g4s_1.v();
|
|
460
460
|
// Inline function 'kotlin.collections.component1' call
|
|
461
|
-
var statusCode = item.
|
|
461
|
+
var statusCode = item.k1().e2x_1;
|
|
462
462
|
// Inline function 'kotlin.collections.component2' call
|
|
463
|
-
var response = item.
|
|
463
|
+
var response = item.l1();
|
|
464
464
|
var tmp$ret$10 = new FlattenResponse(path, pathItem, method, operation, statusCode, response);
|
|
465
465
|
destination_1.x(tmp$ret$10);
|
|
466
466
|
}
|
|
@@ -482,23 +482,23 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
482
482
|
return destination_2;
|
|
483
483
|
}
|
|
484
484
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response) {
|
|
485
|
-
this.
|
|
486
|
-
this.
|
|
487
|
-
this.
|
|
488
|
-
this.
|
|
489
|
-
this.
|
|
490
|
-
this.
|
|
485
|
+
this.w3h_1 = path;
|
|
486
|
+
this.x3h_1 = pathItem;
|
|
487
|
+
this.y3h_1 = method;
|
|
488
|
+
this.z3h_1 = operation;
|
|
489
|
+
this.a3i_1 = statusCode;
|
|
490
|
+
this.b3i_1 = response;
|
|
491
491
|
}
|
|
492
492
|
protoOf(FlattenResponse).toString = function () {
|
|
493
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
493
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.w3h_1) + ', pathItem=' + toString(this.x3h_1) + ', method=' + this.y3h_1.toString() + ', operation=' + toString(this.z3h_1) + ', statusCode=' + StatusCode__toString_impl_6caewy(this.a3i_1) + ', response=' + toString(this.b3i_1) + ')';
|
|
494
494
|
};
|
|
495
495
|
protoOf(FlattenResponse).hashCode = function () {
|
|
496
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
497
|
-
result = imul(result, 31) + hashCode(this.
|
|
498
|
-
result = imul(result, 31) + this.
|
|
499
|
-
result = imul(result, 31) + hashCode(this.
|
|
500
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
501
|
-
result = imul(result, 31) + hashCode(this.
|
|
496
|
+
var result = Path__hashCode_impl_go73kd(this.w3h_1);
|
|
497
|
+
result = imul(result, 31) + hashCode(this.x3h_1) | 0;
|
|
498
|
+
result = imul(result, 31) + this.y3h_1.hashCode() | 0;
|
|
499
|
+
result = imul(result, 31) + hashCode(this.z3h_1) | 0;
|
|
500
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.a3i_1) | 0;
|
|
501
|
+
result = imul(result, 31) + hashCode(this.b3i_1) | 0;
|
|
502
502
|
return result;
|
|
503
503
|
};
|
|
504
504
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -506,17 +506,17 @@ protoOf(FlattenResponse).equals = function (other) {
|
|
|
506
506
|
return true;
|
|
507
507
|
if (!(other instanceof FlattenResponse))
|
|
508
508
|
return false;
|
|
509
|
-
if (!(this.
|
|
509
|
+
if (!(this.w3h_1 === other.w3h_1))
|
|
510
510
|
return false;
|
|
511
|
-
if (!equals(this.
|
|
511
|
+
if (!equals(this.x3h_1, other.x3h_1))
|
|
512
512
|
return false;
|
|
513
|
-
if (!this.
|
|
513
|
+
if (!this.y3h_1.equals(other.y3h_1))
|
|
514
514
|
return false;
|
|
515
|
-
if (!equals(this.
|
|
515
|
+
if (!equals(this.z3h_1, other.z3h_1))
|
|
516
516
|
return false;
|
|
517
|
-
if (!(this.
|
|
517
|
+
if (!(this.a3i_1 === other.a3i_1))
|
|
518
518
|
return false;
|
|
519
|
-
if (!equals(this.
|
|
519
|
+
if (!equals(this.b3i_1, other.b3i_1))
|
|
520
520
|
return false;
|
|
521
521
|
return true;
|
|
522
522
|
};
|
|
@@ -525,7 +525,7 @@ function toDict(_this__u8e3s4, isNullable) {
|
|
|
525
525
|
}
|
|
526
526
|
function getReference(_this__u8e3s4) {
|
|
527
527
|
// Inline function 'kotlin.let' call
|
|
528
|
-
var it = split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
528
|
+
var it = split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.f34()), ['/']);
|
|
529
529
|
var tmp;
|
|
530
530
|
if (_this__u8e3s4 instanceof OpenAPIV2Reference) {
|
|
531
531
|
tmp = getOrNull(it, 2);
|
|
@@ -539,7 +539,7 @@ function getReference(_this__u8e3s4) {
|
|
|
539
539
|
var tmp0_elvis_lhs = tmp;
|
|
540
540
|
var tmp_0;
|
|
541
541
|
if (tmp0_elvis_lhs == null) {
|
|
542
|
-
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
542
|
+
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe(_this__u8e3s4.f34());
|
|
543
543
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
544
544
|
} else {
|
|
545
545
|
tmp_0 = tmp0_elvis_lhs;
|
|
@@ -554,8 +554,8 @@ function isParam(_this__u8e3s4) {
|
|
|
554
554
|
}
|
|
555
555
|
function jsonDefault$lambda($strict) {
|
|
556
556
|
return function ($this$Json) {
|
|
557
|
-
$this$Json.
|
|
558
|
-
$this$Json.
|
|
557
|
+
$this$Json.h2m_1 = true;
|
|
558
|
+
$this$Json.f2m_1 = !$strict;
|
|
559
559
|
return Unit_instance;
|
|
560
560
|
};
|
|
561
561
|
}
|
|
@@ -575,7 +575,7 @@ function toName$lambda(it) {
|
|
|
575
575
|
return tmp;
|
|
576
576
|
}
|
|
577
577
|
function sanitize$lambda(it) {
|
|
578
|
-
return isLetterOrDigit(it.
|
|
578
|
+
return isLetterOrDigit(it.h1_1) || listOf(new Char(_Char___init__impl__6a9atx(95))).u1(it);
|
|
579
579
|
}
|
|
580
580
|
function get_json() {
|
|
581
581
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -591,7 +591,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
591
591
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
592
592
|
while (_iterator__ex2g4s.u()) {
|
|
593
593
|
var element = _iterator__ex2g4s.v();
|
|
594
|
-
if (element.
|
|
594
|
+
if (element.nt_1 === 'Description') {
|
|
595
595
|
tmp$ret$1 = element;
|
|
596
596
|
break $l$block;
|
|
597
597
|
}
|
|
@@ -599,7 +599,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
599
599
|
tmp$ret$1 = null;
|
|
600
600
|
}
|
|
601
601
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
602
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
602
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ot_1;
|
|
603
603
|
var tmp;
|
|
604
604
|
if (tmp1_safe_receiver == null) {
|
|
605
605
|
tmp = null;
|
|
@@ -611,7 +611,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
611
611
|
var _iterator__ex2g4s_0 = tmp1_safe_receiver.t();
|
|
612
612
|
while (_iterator__ex2g4s_0.u()) {
|
|
613
613
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
614
|
-
if (element_0.
|
|
614
|
+
if (element_0.lt_1 === 'default') {
|
|
615
615
|
tmp$ret$4 = element_0;
|
|
616
616
|
break $l$block_0;
|
|
617
617
|
}
|
|
@@ -621,7 +621,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
621
621
|
tmp = tmp$ret$4;
|
|
622
622
|
}
|
|
623
623
|
var tmp2_safe_receiver = tmp;
|
|
624
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
624
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.mt_1;
|
|
625
625
|
var tmp_0;
|
|
626
626
|
if (tmp3_safe_receiver == null) {
|
|
627
627
|
tmp_0 = null;
|
|
@@ -630,7 +630,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
630
630
|
tmp_0 = tmp3_safe_receiver instanceof Single ? tmp3_safe_receiver : null;
|
|
631
631
|
}
|
|
632
632
|
var tmp4_safe_receiver = tmp_0;
|
|
633
|
-
return tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
633
|
+
return tmp4_safe_receiver == null ? null : tmp4_safe_receiver.it_1;
|
|
634
634
|
}
|
|
635
635
|
function resolveEndpointNameCollisions(_this__u8e3s4) {
|
|
636
636
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -650,7 +650,7 @@ function resolveEndpointNameCollisions(_this__u8e3s4) {
|
|
|
650
650
|
var _iterator__ex2g4s_0 = destination.t();
|
|
651
651
|
while (_iterator__ex2g4s_0.u()) {
|
|
652
652
|
var item = _iterator__ex2g4s_0.v();
|
|
653
|
-
var tmp$ret$3 = item.
|
|
653
|
+
var tmp$ret$3 = item.vq().l1();
|
|
654
654
|
destination_0.x(tmp$ret$3);
|
|
655
655
|
}
|
|
656
656
|
var nonEndpointNames = toSet(destination_0);
|
|
@@ -663,12 +663,12 @@ function resolveEndpointNameCollisions(_this__u8e3s4) {
|
|
|
663
663
|
var tmp;
|
|
664
664
|
var tmp_0;
|
|
665
665
|
if (item_0 instanceof Endpoint) {
|
|
666
|
-
tmp_0 = nonEndpointNames.
|
|
666
|
+
tmp_0 = nonEndpointNames.u1(item_0.ep_1.l1());
|
|
667
667
|
} else {
|
|
668
668
|
tmp_0 = false;
|
|
669
669
|
}
|
|
670
670
|
if (tmp_0) {
|
|
671
|
-
tmp = item_0.
|
|
671
|
+
tmp = item_0.ct(VOID, VOID, new DefinitionIdentifier(item_0.ep_1.l1() + 'Endpoint'));
|
|
672
672
|
} else {
|
|
673
673
|
tmp = item_0;
|
|
674
674
|
}
|
|
@@ -728,13 +728,13 @@ function filterNotNullValues(_this__u8e3s4) {
|
|
|
728
728
|
var destination = ArrayList_init_$Create$();
|
|
729
729
|
// Inline function 'kotlin.collections.forEach' call
|
|
730
730
|
// Inline function 'kotlin.collections.iterator' call
|
|
731
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
731
|
+
var _iterator__ex2g4s = _this__u8e3s4.j1().t();
|
|
732
732
|
while (_iterator__ex2g4s.u()) {
|
|
733
733
|
var element = _iterator__ex2g4s.v();
|
|
734
734
|
// Inline function 'kotlin.collections.component1' call
|
|
735
|
-
var key = element.
|
|
735
|
+
var key = element.k1();
|
|
736
736
|
// Inline function 'kotlin.collections.component2' call
|
|
737
|
-
var value = element.
|
|
737
|
+
var value = element.l1();
|
|
738
738
|
var tmp;
|
|
739
739
|
if (value == null) {
|
|
740
740
|
tmp = null;
|
|
@@ -754,12 +754,12 @@ function filterNotNullValues(_this__u8e3s4) {
|
|
|
754
754
|
}
|
|
755
755
|
function json$lambda($this$Json) {
|
|
756
756
|
_init_properties_Utils_kt__jo07cx();
|
|
757
|
-
$this$Json.
|
|
757
|
+
$this$Json.h2m_1 = true;
|
|
758
758
|
return Unit_instance;
|
|
759
759
|
}
|
|
760
760
|
function className$lambda(it) {
|
|
761
761
|
_init_properties_Utils_kt__jo07cx();
|
|
762
|
-
return Companion_instance.
|
|
762
|
+
return Companion_instance.oq(it);
|
|
763
763
|
}
|
|
764
764
|
var properties_initialized_Utils_kt_xvi83j;
|
|
765
765
|
function _init_properties_Utils_kt__jo07cx() {
|
|
@@ -787,39 +787,39 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
787
787
|
var _iterator__ex2g4s_0 = destination.t();
|
|
788
788
|
while (_iterator__ex2g4s_0.u()) {
|
|
789
789
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
790
|
-
var type = element_0.
|
|
790
|
+
var type = element_0.cr_1.pu_1;
|
|
791
791
|
var tmp;
|
|
792
792
|
if (equals(type, Boolean_instance)) {
|
|
793
|
-
tmp = to(element_0.
|
|
793
|
+
tmp = to(element_0.br_1.l1(), new OpenAPIV2Schema(VOID, OpenAPIV2Type_BOOLEAN_getInstance()));
|
|
794
794
|
} else {
|
|
795
795
|
if (equals(type, Bytes_instance)) {
|
|
796
|
-
tmp = to(element_0.
|
|
796
|
+
tmp = to(element_0.br_1.l1(), new OpenAPIV2Schema(VOID, OpenAPIV2Type_FILE_getInstance()));
|
|
797
797
|
} else {
|
|
798
798
|
if (type instanceof Integer) {
|
|
799
|
-
var tmp_0 = element_0.
|
|
799
|
+
var tmp_0 = element_0.br_1.l1();
|
|
800
800
|
var tmp4_type = OpenAPIV2Type_INTEGER_getInstance();
|
|
801
|
-
var tmp0_safe_receiver = type.
|
|
802
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
801
|
+
var tmp0_safe_receiver = type.ut_1;
|
|
802
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pt_1;
|
|
803
803
|
var tmp5_minimum = tmp1_safe_receiver == null ? null : toDouble(tmp1_safe_receiver);
|
|
804
|
-
var tmp2_safe_receiver = type.
|
|
805
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
804
|
+
var tmp2_safe_receiver = type.ut_1;
|
|
805
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.qt_1;
|
|
806
806
|
var tmp6_maximum = tmp3_safe_receiver == null ? null : toDouble(tmp3_safe_receiver);
|
|
807
807
|
tmp = to(tmp_0, new OpenAPIV2Schema(VOID, tmp4_type, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 'int32', tmp6_maximum, VOID, tmp5_minimum));
|
|
808
808
|
} else {
|
|
809
809
|
if (type instanceof Number_0) {
|
|
810
|
-
var tmp_1 = element_0.
|
|
810
|
+
var tmp_1 = element_0.br_1.l1();
|
|
811
811
|
var tmp11_type = OpenAPIV2Type_NUMBER_getInstance();
|
|
812
|
-
var tmp7_safe_receiver = type.
|
|
813
|
-
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.
|
|
812
|
+
var tmp7_safe_receiver = type.xt_1;
|
|
813
|
+
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.pt_1;
|
|
814
814
|
var tmp12_minimum = tmp8_safe_receiver == null ? null : toDouble(tmp8_safe_receiver);
|
|
815
|
-
var tmp9_safe_receiver = type.
|
|
816
|
-
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.
|
|
815
|
+
var tmp9_safe_receiver = type.xt_1;
|
|
816
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.qt_1;
|
|
817
817
|
var tmp13_maximum = tmp10_safe_receiver == null ? null : toDouble(tmp10_safe_receiver);
|
|
818
818
|
tmp = to(tmp_1, new OpenAPIV2Schema(VOID, tmp11_type, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 'float', tmp13_maximum, VOID, tmp12_minimum));
|
|
819
819
|
} else {
|
|
820
820
|
if (type instanceof String_0) {
|
|
821
|
-
var tmp_2 = element_0.
|
|
822
|
-
var pattern = type.
|
|
821
|
+
var tmp_2 = element_0.br_1.l1();
|
|
822
|
+
var pattern = type.rt_1;
|
|
823
823
|
var tmp_3;
|
|
824
824
|
var tmp_4 = pattern;
|
|
825
825
|
if ((tmp_4 == null ? null : new RegExp_0(tmp_4))instanceof RegExp_0) {
|
|
@@ -842,9 +842,9 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
842
842
|
}
|
|
843
843
|
// Inline function 'kotlin.also' call
|
|
844
844
|
var this_0 = tmp;
|
|
845
|
-
logger.
|
|
845
|
+
logger.sq('Emitting Refined ' + element_0.br_1.l1());
|
|
846
846
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
847
|
-
destination_0.
|
|
847
|
+
destination_0.w2(this_0.we_1, this_0.xe_1);
|
|
848
848
|
}
|
|
849
849
|
var refined = destination_0;
|
|
850
850
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
@@ -865,11 +865,11 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
865
865
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
866
866
|
while (_iterator__ex2g4s_2.u()) {
|
|
867
867
|
var element_2 = _iterator__ex2g4s_2.v();
|
|
868
|
-
var tmp_6 = element_2.
|
|
869
|
-
var tmp0_elvis_lhs = findDescription(element_2.
|
|
868
|
+
var tmp_6 = element_2.vo_1.l1();
|
|
869
|
+
var tmp0_elvis_lhs = findDescription(element_2.uo_1);
|
|
870
870
|
var tmp_7;
|
|
871
871
|
if (tmp0_elvis_lhs == null) {
|
|
872
|
-
var tmp1_safe_receiver_0 = element_2.
|
|
872
|
+
var tmp1_safe_receiver_0 = element_2.to_1;
|
|
873
873
|
var tmp_8;
|
|
874
874
|
var tmp_9 = tmp1_safe_receiver_0;
|
|
875
875
|
if ((tmp_9 == null ? null : new Comment(tmp_9)) == null) {
|
|
@@ -883,7 +883,7 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
883
883
|
}
|
|
884
884
|
var tmp2_description = tmp_7;
|
|
885
885
|
// Inline function 'kotlin.collections.associate' call
|
|
886
|
-
var this_1 = element_2.
|
|
886
|
+
var this_1 = element_2.wo_1.so_1;
|
|
887
887
|
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_1, 10)), 16);
|
|
888
888
|
// Inline function 'kotlin.collections.associateTo' call
|
|
889
889
|
var destination_3 = LinkedHashMap_init_$Create$(capacity_1);
|
|
@@ -892,16 +892,16 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
892
892
|
var element_3 = _iterator__ex2g4s_3.v();
|
|
893
893
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
894
894
|
var pair = toProperties(OpenAPIV2Emitter_getInstance(), element_3);
|
|
895
|
-
destination_3.
|
|
895
|
+
destination_3.w2(pair.we_1, pair.xe_1);
|
|
896
896
|
}
|
|
897
897
|
// Inline function 'kotlin.collections.filter' call
|
|
898
|
-
var tmp0_1 = element_2.
|
|
898
|
+
var tmp0_1 = element_2.wo_1.so_1;
|
|
899
899
|
// Inline function 'kotlin.collections.filterTo' call
|
|
900
900
|
var destination_4 = ArrayList_init_$Create$();
|
|
901
901
|
var _iterator__ex2g4s_4 = tmp0_1.t();
|
|
902
902
|
while (_iterator__ex2g4s_4.u()) {
|
|
903
903
|
var element_4 = _iterator__ex2g4s_4.v();
|
|
904
|
-
if (!element_4.
|
|
904
|
+
if (!element_4.bp_1.du()) {
|
|
905
905
|
destination_4.x(element_4);
|
|
906
906
|
}
|
|
907
907
|
}
|
|
@@ -911,7 +911,7 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
911
911
|
var _iterator__ex2g4s_5 = destination_4.t();
|
|
912
912
|
while (_iterator__ex2g4s_5.u()) {
|
|
913
913
|
var item = _iterator__ex2g4s_5.v();
|
|
914
|
-
var tmp$ret$17 = item.
|
|
914
|
+
var tmp$ret$17 = item.ap_1.l1();
|
|
915
915
|
destination_5.x(tmp$ret$17);
|
|
916
916
|
}
|
|
917
917
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -925,10 +925,10 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
925
925
|
var tmp4_required = tmp_10;
|
|
926
926
|
// Inline function 'kotlin.also' call
|
|
927
927
|
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);
|
|
928
|
-
logger.
|
|
928
|
+
logger.sq('Emitting Type ' + element_2.vo_1.l1());
|
|
929
929
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
930
930
|
var pair_0 = to(tmp_6, this_2);
|
|
931
|
-
destination_2.
|
|
931
|
+
destination_2.w2(pair_0.we_1, pair_0.xe_1);
|
|
932
932
|
}
|
|
933
933
|
var types = destination_2;
|
|
934
934
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
@@ -949,10 +949,10 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
949
949
|
var _iterator__ex2g4s_7 = destination_6.t();
|
|
950
950
|
while (_iterator__ex2g4s_7.u()) {
|
|
951
951
|
var element_6 = _iterator__ex2g4s_7.v();
|
|
952
|
-
var tmp_11 = element_6.
|
|
952
|
+
var tmp_11 = element_6.gr_1.l1();
|
|
953
953
|
var tmp0_type = OpenAPIV2Type_STRING_getInstance();
|
|
954
954
|
// Inline function 'kotlin.collections.map' call
|
|
955
|
-
var this_3 = element_6.
|
|
955
|
+
var this_3 = element_6.hr_1;
|
|
956
956
|
// Inline function 'kotlin.collections.mapTo' call
|
|
957
957
|
var destination_8 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_3, 10));
|
|
958
958
|
var _iterator__ex2g4s_8 = this_3.t();
|
|
@@ -961,13 +961,13 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
961
961
|
var tmp$ret$31 = JsonPrimitive(item_0);
|
|
962
962
|
destination_8.x(tmp$ret$31);
|
|
963
963
|
}
|
|
964
|
-
var tmp2_description_0 = findDescription(element_6.
|
|
964
|
+
var tmp2_description_0 = findDescription(element_6.fr_1);
|
|
965
965
|
// Inline function 'kotlin.also' call
|
|
966
966
|
var this_4 = new OpenAPIV2Schema(VOID, tmp0_type, VOID, VOID, VOID, VOID, VOID, tmp2_description_0, VOID, VOID, VOID, VOID, VOID, VOID, destination_8);
|
|
967
|
-
logger.
|
|
967
|
+
logger.sq('Emitting Enum ' + element_6.gr_1.l1());
|
|
968
968
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
969
969
|
var pair_1 = to(tmp_11, this_4);
|
|
970
|
-
destination_7.
|
|
970
|
+
destination_7.w2(pair_1.we_1, pair_1.xe_1);
|
|
971
971
|
}
|
|
972
972
|
var enums = destination_7;
|
|
973
973
|
return plus(plus(refined, types), enums);
|
|
@@ -990,13 +990,13 @@ function emitPaths($this, _this__u8e3s4, logger) {
|
|
|
990
990
|
var _iterator__ex2g4s_0 = destination.t();
|
|
991
991
|
while (_iterator__ex2g4s_0.u()) {
|
|
992
992
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
993
|
-
var key = element_0.
|
|
993
|
+
var key = element_0.gp_1;
|
|
994
994
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
995
|
-
var value = destination_0.
|
|
995
|
+
var value = destination_0.p2(key);
|
|
996
996
|
var tmp;
|
|
997
997
|
if (value == null) {
|
|
998
998
|
var answer = ArrayList_init_$Create$();
|
|
999
|
-
destination_0.
|
|
999
|
+
destination_0.w2(key, answer);
|
|
1000
1000
|
tmp = answer;
|
|
1001
1001
|
} else {
|
|
1002
1002
|
tmp = value;
|
|
@@ -1008,14 +1008,14 @@ function emitPaths($this, _this__u8e3s4, logger) {
|
|
|
1008
1008
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1009
1009
|
var destination_1 = ArrayList_init_$Create$_0(destination_0.a1());
|
|
1010
1010
|
// Inline function 'kotlin.collections.iterator' call
|
|
1011
|
-
var _iterator__ex2g4s_1 = destination_0.
|
|
1011
|
+
var _iterator__ex2g4s_1 = destination_0.j1().t();
|
|
1012
1012
|
while (_iterator__ex2g4s_1.u()) {
|
|
1013
1013
|
var item = _iterator__ex2g4s_1.v();
|
|
1014
1014
|
// Inline function 'kotlin.collections.component1' call
|
|
1015
|
-
var path = item.
|
|
1015
|
+
var path = item.k1();
|
|
1016
1016
|
// Inline function 'kotlin.collections.component2' call
|
|
1017
|
-
var endpoints = item.
|
|
1018
|
-
logger.
|
|
1017
|
+
var endpoints = item.l1();
|
|
1018
|
+
logger.sq('Emitting endpoints for path ' + emitSegment(OpenAPIV2Emitter_getInstance(), path));
|
|
1019
1019
|
var tmp_0 = _Path___init__impl__6uf4pw(emitSegment(OpenAPIV2Emitter_getInstance(), path));
|
|
1020
1020
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1021
1021
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
@@ -1034,12 +1034,12 @@ function emitPaths($this, _this__u8e3s4, logger) {
|
|
|
1034
1034
|
while (_iterator__ex2g4s_3.u()) {
|
|
1035
1035
|
var item_0 = _iterator__ex2g4s_3.v();
|
|
1036
1036
|
var tmp0_in = OpenAPIV2ParameterLocation_PATH_getInstance();
|
|
1037
|
-
var tmp1_name = item_0.
|
|
1038
|
-
var tmp2_type = emitType_0(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1039
|
-
var tmp3_format = emitFormat(item_0.
|
|
1040
|
-
var tmp4_pattern = emitPattern(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1041
|
-
var tmp5_minimum = emitMinimum(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1042
|
-
var tmp6_maximum = emitMaximum(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1037
|
+
var tmp1_name = item_0.lp_1.l1();
|
|
1038
|
+
var tmp2_type = emitType_0(OpenAPIV2Emitter_getInstance(), item_0.mp_1);
|
|
1039
|
+
var tmp3_format = emitFormat(item_0.mp_1);
|
|
1040
|
+
var tmp4_pattern = emitPattern(OpenAPIV2Emitter_getInstance(), item_0.mp_1);
|
|
1041
|
+
var tmp5_minimum = emitMinimum(OpenAPIV2Emitter_getInstance(), item_0.mp_1);
|
|
1042
|
+
var tmp6_maximum = emitMaximum(OpenAPIV2Emitter_getInstance(), item_0.mp_1);
|
|
1043
1043
|
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);
|
|
1044
1044
|
destination_3.x(tmp$ret$12);
|
|
1045
1045
|
}
|
|
@@ -1057,12 +1057,12 @@ function emitPaths($this, _this__u8e3s4, logger) {
|
|
|
1057
1057
|
return toMap(destination_1);
|
|
1058
1058
|
}
|
|
1059
1059
|
function toProperties($this, _this__u8e3s4) {
|
|
1060
|
-
var tmp = _this__u8e3s4.
|
|
1060
|
+
var tmp = _this__u8e3s4.ap_1.l1();
|
|
1061
1061
|
// Inline function 'kotlin.let' call
|
|
1062
|
-
var it = toSchemaOrReference($this, _this__u8e3s4.
|
|
1062
|
+
var it = toSchemaOrReference($this, _this__u8e3s4.bp_1);
|
|
1063
1063
|
var tmp_0;
|
|
1064
1064
|
if (it instanceof OpenAPIV2Schema) {
|
|
1065
|
-
tmp_0 = it.
|
|
1065
|
+
tmp_0 = it.f32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription(_this__u8e3s4.zo_1));
|
|
1066
1066
|
} else {
|
|
1067
1067
|
if (it instanceof OpenAPIV2Reference) {
|
|
1068
1068
|
tmp_0 = it;
|
|
@@ -1080,7 +1080,7 @@ function emit($this, _this__u8e3s4, method) {
|
|
|
1080
1080
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
1081
1081
|
while (_iterator__ex2g4s.u()) {
|
|
1082
1082
|
var element = _iterator__ex2g4s.v();
|
|
1083
|
-
if (element.
|
|
1083
|
+
if (element.fp_1.equals(method)) {
|
|
1084
1084
|
destination.x(element);
|
|
1085
1085
|
}
|
|
1086
1086
|
}
|
|
@@ -1096,11 +1096,11 @@ function emit($this, _this__u8e3s4, method) {
|
|
|
1096
1096
|
return firstOrNull(destination_0);
|
|
1097
1097
|
}
|
|
1098
1098
|
function emit_0($this, _this__u8e3s4) {
|
|
1099
|
-
var tmp2_operationId = _this__u8e3s4.
|
|
1100
|
-
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.
|
|
1099
|
+
var tmp2_operationId = _this__u8e3s4.ep_1.l1();
|
|
1100
|
+
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.dp_1);
|
|
1101
1101
|
var tmp;
|
|
1102
1102
|
if (tmp0_elvis_lhs == null) {
|
|
1103
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
1103
|
+
var tmp1_safe_receiver = _this__u8e3s4.cp_1;
|
|
1104
1104
|
var tmp_0;
|
|
1105
1105
|
var tmp_1 = tmp1_safe_receiver;
|
|
1106
1106
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -1114,15 +1114,15 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1114
1114
|
}
|
|
1115
1115
|
var tmp3_description = tmp;
|
|
1116
1116
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1117
|
-
var tmp0 = _this__u8e3s4.
|
|
1117
|
+
var tmp0 = _this__u8e3s4.jp_1;
|
|
1118
1118
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1119
1119
|
var destination = ArrayList_init_$Create$();
|
|
1120
1120
|
// Inline function 'kotlin.collections.forEach' call
|
|
1121
1121
|
var _iterator__ex2g4s = tmp0.t();
|
|
1122
1122
|
while (_iterator__ex2g4s.u()) {
|
|
1123
1123
|
var element = _iterator__ex2g4s.v();
|
|
1124
|
-
var tmp0_safe_receiver = element.
|
|
1125
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1124
|
+
var tmp0_safe_receiver = element.np_1;
|
|
1125
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.op_1;
|
|
1126
1126
|
if (tmp0_safe_receiver_0 == null)
|
|
1127
1127
|
null;
|
|
1128
1128
|
else {
|
|
@@ -1140,15 +1140,15 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1140
1140
|
}
|
|
1141
1141
|
var tmp4_consumes = tmp_2;
|
|
1142
1142
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1143
|
-
var tmp0_0 = _this__u8e3s4.
|
|
1143
|
+
var tmp0_0 = _this__u8e3s4.kp_1;
|
|
1144
1144
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1145
1145
|
var destination_0 = ArrayList_init_$Create$();
|
|
1146
1146
|
// Inline function 'kotlin.collections.forEach' call
|
|
1147
1147
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
1148
1148
|
while (_iterator__ex2g4s_0.u()) {
|
|
1149
1149
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1150
|
-
var tmp0_safe_receiver_1 = element_0.
|
|
1151
|
-
var tmp0_safe_receiver_2 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.
|
|
1150
|
+
var tmp0_safe_receiver_1 = element_0.sp_1;
|
|
1151
|
+
var tmp0_safe_receiver_2 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.op_1;
|
|
1152
1152
|
if (tmp0_safe_receiver_2 == null)
|
|
1153
1153
|
null;
|
|
1154
1154
|
else {
|
|
@@ -1166,14 +1166,14 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1166
1166
|
}
|
|
1167
1167
|
var tmp5_produces = tmp_3;
|
|
1168
1168
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1169
|
-
var tmp0_1 = _this__u8e3s4.
|
|
1169
|
+
var tmp0_1 = _this__u8e3s4.jp_1;
|
|
1170
1170
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1171
1171
|
var destination_1 = ArrayList_init_$Create$();
|
|
1172
1172
|
// Inline function 'kotlin.collections.forEach' call
|
|
1173
1173
|
var _iterator__ex2g4s_1 = tmp0_1.t();
|
|
1174
1174
|
while (_iterator__ex2g4s_1.u()) {
|
|
1175
1175
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
1176
|
-
var tmp0_safe_receiver_3 = element_1.
|
|
1176
|
+
var tmp0_safe_receiver_3 = element_1.np_1;
|
|
1177
1177
|
if (tmp0_safe_receiver_3 == null)
|
|
1178
1178
|
null;
|
|
1179
1179
|
else {
|
|
@@ -1189,14 +1189,14 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1189
1189
|
while (_iterator__ex2g4s_2.u()) {
|
|
1190
1190
|
var item = _iterator__ex2g4s_2.v();
|
|
1191
1191
|
var tmp0_in = OpenAPIV2ParameterLocation_BODY_getInstance();
|
|
1192
|
-
var tmp1_schema = toSchemaOrReference(OpenAPIV2Emitter_getInstance(), item.
|
|
1193
|
-
var tmp2_required = !item.
|
|
1192
|
+
var tmp1_schema = toSchemaOrReference(OpenAPIV2Emitter_getInstance(), item.pp_1);
|
|
1193
|
+
var tmp2_required = !item.pp_1.du();
|
|
1194
1194
|
var tmp$ret$25 = new OpenAPIV2Parameter(VOID, tmp2_required, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_in, tmp1_schema, 'RequestBody');
|
|
1195
1195
|
destination_2.x(tmp$ret$25);
|
|
1196
1196
|
}
|
|
1197
1197
|
var tmp_4 = destination_2;
|
|
1198
1198
|
// Inline function 'kotlin.collections.map' call
|
|
1199
|
-
var this_3 = _this__u8e3s4.
|
|
1199
|
+
var this_3 = _this__u8e3s4.hp_1;
|
|
1200
1200
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1201
1201
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_3, 10));
|
|
1202
1202
|
var _iterator__ex2g4s_3 = this_3.t();
|
|
@@ -1207,7 +1207,7 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
var tmp_5 = plus_0(tmp_4, destination_3);
|
|
1209
1209
|
// Inline function 'kotlin.collections.map' call
|
|
1210
|
-
var this_4 = _this__u8e3s4.
|
|
1210
|
+
var this_4 = _this__u8e3s4.ip_1;
|
|
1211
1211
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1212
1212
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_4, 10));
|
|
1213
1213
|
var _iterator__ex2g4s_4 = this_4.t();
|
|
@@ -1218,45 +1218,45 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1218
1218
|
}
|
|
1219
1219
|
var tmp6_parameters = plus_0(tmp_5, destination_4);
|
|
1220
1220
|
// Inline function 'kotlin.collections.associate' call
|
|
1221
|
-
var this_5 = _this__u8e3s4.
|
|
1221
|
+
var this_5 = _this__u8e3s4.kp_1;
|
|
1222
1222
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_5, 10)), 16);
|
|
1223
1223
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1224
1224
|
var destination_5 = LinkedHashMap_init_$Create$(capacity);
|
|
1225
1225
|
var _iterator__ex2g4s_5 = this_5.t();
|
|
1226
1226
|
while (_iterator__ex2g4s_5.u()) {
|
|
1227
1227
|
var element_2 = _iterator__ex2g4s_5.v();
|
|
1228
|
-
var tmp_6 = _StatusCode___init__impl__t1yi9q(element_2.
|
|
1229
|
-
var tmp0_elvis_lhs_0 = findDescription(element_2.
|
|
1230
|
-
var tmp3_description_0 = tmp0_elvis_lhs_0 == null ? _this__u8e3s4.
|
|
1228
|
+
var tmp_6 = _StatusCode___init__impl__t1yi9q(element_2.qp_1);
|
|
1229
|
+
var tmp0_elvis_lhs_0 = findDescription(element_2.tp_1);
|
|
1230
|
+
var tmp3_description_0 = tmp0_elvis_lhs_0 == null ? _this__u8e3s4.ep_1.l1() + ' ' + element_2.qp_1 + ' response' : tmp0_elvis_lhs_0;
|
|
1231
1231
|
// Inline function 'kotlin.collections.associate' call
|
|
1232
|
-
var this_6 = element_2.
|
|
1232
|
+
var this_6 = element_2.rp_1;
|
|
1233
1233
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_6, 10)), 16);
|
|
1234
1234
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1235
1235
|
var destination_6 = LinkedHashMap_init_$Create$(capacity_0);
|
|
1236
1236
|
var _iterator__ex2g4s_6 = this_6.t();
|
|
1237
1237
|
while (_iterator__ex2g4s_6.u()) {
|
|
1238
1238
|
var element_3 = _iterator__ex2g4s_6.v();
|
|
1239
|
-
var tmp_7 = element_3.
|
|
1240
|
-
var tmp2_description = findDescription(element_3.
|
|
1241
|
-
var tmp3_type = emitType_0(OpenAPIV2Emitter_getInstance(), element_3.
|
|
1242
|
-
var tmp4_format = emitFormat(element_3.
|
|
1243
|
-
var tmp5_pattern = emitPattern(OpenAPIV2Emitter_getInstance(), element_3.
|
|
1244
|
-
var tmp_8 = element_3.
|
|
1239
|
+
var tmp_7 = element_3.ap_1.l1();
|
|
1240
|
+
var tmp2_description = findDescription(element_3.zo_1);
|
|
1241
|
+
var tmp3_type = emitType_0(OpenAPIV2Emitter_getInstance(), element_3.bp_1);
|
|
1242
|
+
var tmp4_format = emitFormat(element_3.bp_1);
|
|
1243
|
+
var tmp5_pattern = emitPattern(OpenAPIV2Emitter_getInstance(), element_3.bp_1);
|
|
1244
|
+
var tmp_8 = element_3.bp_1;
|
|
1245
1245
|
var tmp0_safe_receiver_4 = tmp_8 instanceof Iterable ? tmp_8 : null;
|
|
1246
|
-
var tmp1_safe_receiver_0 = tmp0_safe_receiver_4 == null ? null : tmp0_safe_receiver_4.
|
|
1246
|
+
var tmp1_safe_receiver_0 = tmp0_safe_receiver_4 == null ? null : tmp0_safe_receiver_4.zn_1;
|
|
1247
1247
|
var tmp6_items = tmp1_safe_receiver_0 == null ? null : toSchemaOrReference(OpenAPIV2Emitter_getInstance(), tmp1_safe_receiver_0);
|
|
1248
1248
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1249
1249
|
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));
|
|
1250
|
-
destination_6.
|
|
1250
|
+
destination_6.w2(pair.we_1, pair.xe_1);
|
|
1251
1251
|
}
|
|
1252
|
-
var tmp1_safe_receiver_1 = element_2.
|
|
1252
|
+
var tmp1_safe_receiver_1 = element_2.sp_1;
|
|
1253
1253
|
var tmp_9;
|
|
1254
1254
|
if (tmp1_safe_receiver_1 == null) {
|
|
1255
1255
|
tmp_9 = null;
|
|
1256
1256
|
} else {
|
|
1257
1257
|
// Inline function 'kotlin.takeIf' call
|
|
1258
1258
|
var tmp_10;
|
|
1259
|
-
var tmp_11 = tmp1_safe_receiver_1.
|
|
1259
|
+
var tmp_11 = tmp1_safe_receiver_1.pp_1;
|
|
1260
1260
|
if (!(tmp_11 instanceof Unit)) {
|
|
1261
1261
|
tmp_10 = tmp1_safe_receiver_1;
|
|
1262
1262
|
} else {
|
|
@@ -1270,10 +1270,10 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1270
1270
|
tmp_12 = null;
|
|
1271
1271
|
} else {
|
|
1272
1272
|
// Inline function 'kotlin.let' call
|
|
1273
|
-
var ref = tmp2_safe_receiver.
|
|
1273
|
+
var ref = tmp2_safe_receiver.pp_1;
|
|
1274
1274
|
var tmp_13;
|
|
1275
1275
|
if (ref instanceof Iterable) {
|
|
1276
|
-
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.
|
|
1276
|
+
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.zn_1));
|
|
1277
1277
|
} else {
|
|
1278
1278
|
tmp_13 = toSchemaOrReference(OpenAPIV2Emitter_getInstance(), ref);
|
|
1279
1279
|
}
|
|
@@ -1282,7 +1282,7 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1282
1282
|
var tmp5_schema = tmp_12;
|
|
1283
1283
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1284
1284
|
var pair_0 = to(new StatusCode(tmp_6), new OpenAPIV2Response(tmp5_schema, VOID, tmp3_description_0, destination_6));
|
|
1285
|
-
destination_5.
|
|
1285
|
+
destination_5.w2(pair_0.we_1, pair_0.xe_1);
|
|
1286
1286
|
}
|
|
1287
1287
|
return new OpenAPIV2Operation(tmp4_consumes, tmp5_produces, tmp6_parameters, VOID, destination_5, VOID, VOID, VOID, tmp3_description, VOID, tmp2_operationId);
|
|
1288
1288
|
}
|
|
@@ -1290,11 +1290,11 @@ function emitSegment($this, _this__u8e3s4) {
|
|
|
1290
1290
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenAPIV2Emitter$emitSegment$lambda);
|
|
1291
1291
|
}
|
|
1292
1292
|
function emitParameter($this, _this__u8e3s4, location) {
|
|
1293
|
-
var tmp0_name = _this__u8e3s4.
|
|
1294
|
-
var tmp1_type = emitType_0($this, _this__u8e3s4.
|
|
1295
|
-
var tmp2_format = emitFormat(_this__u8e3s4.
|
|
1296
|
-
var tmp3_pattern = emitPattern($this, _this__u8e3s4.
|
|
1297
|
-
var ref = _this__u8e3s4.
|
|
1293
|
+
var tmp0_name = _this__u8e3s4.ap_1.l1();
|
|
1294
|
+
var tmp1_type = emitType_0($this, _this__u8e3s4.bp_1);
|
|
1295
|
+
var tmp2_format = emitFormat(_this__u8e3s4.bp_1);
|
|
1296
|
+
var tmp3_pattern = emitPattern($this, _this__u8e3s4.bp_1);
|
|
1297
|
+
var ref = _this__u8e3s4.bp_1;
|
|
1298
1298
|
var tmp;
|
|
1299
1299
|
if (ref instanceof Iterable) {
|
|
1300
1300
|
var emit = toSchemaOrReference($this, ref);
|
|
@@ -1303,7 +1303,7 @@ function emitParameter($this, _this__u8e3s4, location) {
|
|
|
1303
1303
|
tmp_0 = emit;
|
|
1304
1304
|
} else {
|
|
1305
1305
|
if (emit instanceof OpenAPIV2Schema) {
|
|
1306
|
-
tmp_0 = emit.
|
|
1306
|
+
tmp_0 = emit.n31_1;
|
|
1307
1307
|
} else {
|
|
1308
1308
|
noWhenBranchMatchedException();
|
|
1309
1309
|
}
|
|
@@ -1313,23 +1313,23 @@ function emitParameter($this, _this__u8e3s4, location) {
|
|
|
1313
1313
|
tmp = null;
|
|
1314
1314
|
}
|
|
1315
1315
|
var tmp4_items = tmp;
|
|
1316
|
-
var tmp5_required = !_this__u8e3s4.
|
|
1317
|
-
var tmp6_description = findDescription(_this__u8e3s4.
|
|
1316
|
+
var tmp5_required = !_this__u8e3s4.bp_1.du();
|
|
1317
|
+
var tmp6_description = findDescription(_this__u8e3s4.zo_1);
|
|
1318
1318
|
return new OpenAPIV2Parameter(tmp6_description, tmp5_required, tmp1_type, tmp4_items, tmp2_format, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_pattern, VOID, VOID, VOID, VOID, VOID, location, VOID, tmp0_name);
|
|
1319
1319
|
}
|
|
1320
1320
|
function toSchemaOrReference($this, _this__u8e3s4) {
|
|
1321
1321
|
var tmp;
|
|
1322
1322
|
if (_this__u8e3s4 instanceof Dict) {
|
|
1323
|
-
tmp = new OpenAPIV2Schema(VOID, OpenAPIV2Type_OBJECT_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference($this, _this__u8e3s4.
|
|
1323
|
+
tmp = new OpenAPIV2Schema(VOID, OpenAPIV2Type_OBJECT_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference($this, _this__u8e3s4.co_1));
|
|
1324
1324
|
} else {
|
|
1325
1325
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
1326
|
-
tmp = new OpenAPIV2Schema(VOID, OpenAPIV2Type_ARRAY_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference($this, _this__u8e3s4.
|
|
1326
|
+
tmp = new OpenAPIV2Schema(VOID, OpenAPIV2Type_ARRAY_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference($this, _this__u8e3s4.zn_1));
|
|
1327
1327
|
} else {
|
|
1328
1328
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1329
|
-
tmp = new OpenAPIV2Reference(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.
|
|
1329
|
+
tmp = new OpenAPIV2Reference(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.lu_1));
|
|
1330
1330
|
} else {
|
|
1331
1331
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1332
|
-
tmp = new OpenAPIV2Schema(VOID, emitType($this, _this__u8e3s4.
|
|
1332
|
+
tmp = new OpenAPIV2Schema(VOID, emitType($this, _this__u8e3s4.pu_1), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitFormat(_this__u8e3s4), VOID, VOID, VOID, VOID, VOID, VOID, emitPattern($this, _this__u8e3s4));
|
|
1333
1333
|
} else {
|
|
1334
1334
|
if (_this__u8e3s4 instanceof Any) {
|
|
1335
1335
|
var message = 'Cannot map Any';
|
|
@@ -1382,7 +1382,7 @@ function emitType_0($this, _this__u8e3s4) {
|
|
|
1382
1382
|
tmp = OpenAPIV2Type_ARRAY_getInstance();
|
|
1383
1383
|
} else {
|
|
1384
1384
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1385
|
-
tmp = emitType($this, _this__u8e3s4.
|
|
1385
|
+
tmp = emitType($this, _this__u8e3s4.pu_1);
|
|
1386
1386
|
} else {
|
|
1387
1387
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1388
1388
|
tmp = OpenAPIV2Type_OBJECT_getInstance();
|
|
@@ -1405,10 +1405,10 @@ function emitType_0($this, _this__u8e3s4) {
|
|
|
1405
1405
|
function emitPattern($this, _this__u8e3s4) {
|
|
1406
1406
|
var tmp;
|
|
1407
1407
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1408
|
-
var t = _this__u8e3s4.
|
|
1408
|
+
var t = _this__u8e3s4.pu_1;
|
|
1409
1409
|
var tmp_0;
|
|
1410
1410
|
if (t instanceof String_0) {
|
|
1411
|
-
var p = t.
|
|
1411
|
+
var p = t.rt_1;
|
|
1412
1412
|
var tmp_1;
|
|
1413
1413
|
var tmp_2 = p;
|
|
1414
1414
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2))instanceof RegExp_0) {
|
|
@@ -1429,16 +1429,16 @@ function emitPattern($this, _this__u8e3s4) {
|
|
|
1429
1429
|
function emitMinimum($this, _this__u8e3s4) {
|
|
1430
1430
|
var tmp;
|
|
1431
1431
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1432
|
-
var t = _this__u8e3s4.
|
|
1432
|
+
var t = _this__u8e3s4.pu_1;
|
|
1433
1433
|
var tmp_0;
|
|
1434
1434
|
if (t instanceof Number_0) {
|
|
1435
|
-
var tmp1_safe_receiver = t.
|
|
1436
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1435
|
+
var tmp1_safe_receiver = t.xt_1;
|
|
1436
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.pt_1;
|
|
1437
1437
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
1438
1438
|
} else {
|
|
1439
1439
|
if (t instanceof Integer) {
|
|
1440
|
-
var tmp3_safe_receiver = t.
|
|
1441
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
1440
|
+
var tmp3_safe_receiver = t.ut_1;
|
|
1441
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.pt_1;
|
|
1442
1442
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
1443
1443
|
} else {
|
|
1444
1444
|
tmp_0 = null;
|
|
@@ -1453,16 +1453,16 @@ function emitMinimum($this, _this__u8e3s4) {
|
|
|
1453
1453
|
function emitMaximum($this, _this__u8e3s4) {
|
|
1454
1454
|
var tmp;
|
|
1455
1455
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1456
|
-
var t = _this__u8e3s4.
|
|
1456
|
+
var t = _this__u8e3s4.pu_1;
|
|
1457
1457
|
var tmp_0;
|
|
1458
1458
|
if (t instanceof Number_0) {
|
|
1459
|
-
var tmp1_safe_receiver = t.
|
|
1460
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1459
|
+
var tmp1_safe_receiver = t.xt_1;
|
|
1460
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.qt_1;
|
|
1461
1461
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
1462
1462
|
} else {
|
|
1463
1463
|
if (t instanceof Integer) {
|
|
1464
|
-
var tmp3_safe_receiver = t.
|
|
1465
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
1464
|
+
var tmp3_safe_receiver = t.ut_1;
|
|
1465
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.qt_1;
|
|
1466
1466
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
1467
1467
|
} else {
|
|
1468
1468
|
tmp_0 = null;
|
|
@@ -1477,10 +1477,10 @@ function emitMaximum($this, _this__u8e3s4) {
|
|
|
1477
1477
|
function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
1478
1478
|
var tmp;
|
|
1479
1479
|
if (it instanceof Param) {
|
|
1480
|
-
tmp = '{' + it.
|
|
1480
|
+
tmp = '{' + it.lp_1.l1() + '}';
|
|
1481
1481
|
} else {
|
|
1482
1482
|
if (it instanceof Literal) {
|
|
1483
|
-
tmp = it.
|
|
1483
|
+
tmp = it.hq_1;
|
|
1484
1484
|
} else {
|
|
1485
1485
|
noWhenBranchMatchedException();
|
|
1486
1486
|
}
|
|
@@ -1489,14 +1489,14 @@ function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
|
1489
1489
|
}
|
|
1490
1490
|
function OpenAPIV2Emitter() {
|
|
1491
1491
|
OpenAPIV2Emitter_instance = this;
|
|
1492
|
-
this.
|
|
1492
|
+
this.c3i_1 = FileExtension_JSON_getInstance();
|
|
1493
1493
|
}
|
|
1494
|
-
protoOf(OpenAPIV2Emitter).
|
|
1495
|
-
return this.
|
|
1494
|
+
protoOf(OpenAPIV2Emitter).eq = function () {
|
|
1495
|
+
return this.c3i_1;
|
|
1496
1496
|
};
|
|
1497
|
-
protoOf(OpenAPIV2Emitter).
|
|
1497
|
+
protoOf(OpenAPIV2Emitter).on = function (ast, logger) {
|
|
1498
1498
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
1499
|
-
var this_0 = ast.
|
|
1499
|
+
var this_0 = ast.bq_1;
|
|
1500
1500
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1501
1501
|
var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
1502
1502
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -1504,27 +1504,27 @@ protoOf(OpenAPIV2Emitter).qn = function (ast, logger) {
|
|
|
1504
1504
|
var _iterator__ex2g4s = tmp0.t();
|
|
1505
1505
|
while (_iterator__ex2g4s.u()) {
|
|
1506
1506
|
var element = _iterator__ex2g4s.v();
|
|
1507
|
-
logger.
|
|
1508
|
-
var list = new NonEmptyList(element.
|
|
1507
|
+
logger.sq('Combining Nodes from ' + element.cq_1.dn_1 + ' ');
|
|
1508
|
+
var list = new NonEmptyList(element.dq_1);
|
|
1509
1509
|
addAll(destination, list);
|
|
1510
1510
|
}
|
|
1511
1511
|
// Inline function 'kotlin.let' call
|
|
1512
1512
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
1513
|
-
var tmp = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().
|
|
1513
|
+
var tmp = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().c3i_1.nq_1;
|
|
1514
1514
|
var tmp0_0 = get_json();
|
|
1515
1515
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
1516
|
-
var value = OpenAPIV2Emitter_getInstance().
|
|
1516
|
+
var value = OpenAPIV2Emitter_getInstance().d3i(it, logger);
|
|
1517
1517
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
1518
|
-
var this_1 = tmp0_0.
|
|
1518
|
+
var this_1 = tmp0_0.y24();
|
|
1519
1519
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1520
1520
|
var this_2 = serializer(this_1, createKType(getKClass(OpenAPIV2Model), arrayOf([]), false));
|
|
1521
1521
|
var tmp$ret$5 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
1522
|
-
var tmp$ret$6 = tmp0_0.
|
|
1522
|
+
var tmp$ret$6 = tmp0_0.l2l(tmp$ret$5, value);
|
|
1523
1523
|
// Inline function 'kotlin.let' call
|
|
1524
1524
|
var it_0 = new Emitted(tmp, tmp$ret$6);
|
|
1525
1525
|
return nonEmptyListOf(it_0, []);
|
|
1526
1526
|
};
|
|
1527
|
-
protoOf(OpenAPIV2Emitter).
|
|
1527
|
+
protoOf(OpenAPIV2Emitter).d3i = function (statements, logger) {
|
|
1528
1528
|
var tmp0_info = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, '0.0.0');
|
|
1529
1529
|
var tmp1_consumes = listOf('application/json');
|
|
1530
1530
|
var tmp2_produces = listOf('application/json');
|
|
@@ -1540,15 +1540,15 @@ function OpenAPIV2Emitter_getInstance() {
|
|
|
1540
1540
|
}
|
|
1541
1541
|
function OpenAPIV2Parser$parse$lambda($strict) {
|
|
1542
1542
|
return function (it) {
|
|
1543
|
-
return new NonEmptyList(OpenAPIV2Parser_instance.
|
|
1543
|
+
return new NonEmptyList(OpenAPIV2Parser_instance.e3i((new OpenAPIV2(jsonDefault($strict))).a2z(it)));
|
|
1544
1544
|
};
|
|
1545
1545
|
}
|
|
1546
1546
|
function OpenAPIV2Parser() {
|
|
1547
1547
|
}
|
|
1548
|
-
protoOf(OpenAPIV2Parser).
|
|
1548
|
+
protoOf(OpenAPIV2Parser).f3i = function (moduleContent, strict) {
|
|
1549
1549
|
return parseOpenApi(moduleContent, OpenAPIV2Parser$parse$lambda(strict));
|
|
1550
1550
|
};
|
|
1551
|
-
protoOf(OpenAPIV2Parser).
|
|
1551
|
+
protoOf(OpenAPIV2Parser).e3i = function (_this__u8e3s4) {
|
|
1552
1552
|
// Inline function 'kotlin.collections.reduce' call
|
|
1553
1553
|
var iterator = listOf_0([parseEndpoints(_this__u8e3s4), parseParameters(_this__u8e3s4), parseRequestBody(_this__u8e3s4), parseResponseBody(_this__u8e3s4), parseDefinitions(_this__u8e3s4)]).t();
|
|
1554
1554
|
if (!iterator.u())
|
|
@@ -1563,7 +1563,7 @@ protoOf(OpenAPIV2Parser).z3h = function (_this__u8e3s4) {
|
|
|
1563
1563
|
var tmp = toNonEmptyListOrNull(resolveEndpointNameCollisions(tmp$ret$1));
|
|
1564
1564
|
// Inline function 'kotlin.let' call
|
|
1565
1565
|
var tmp_0 = tmp == null ? null : new NonEmptyList(tmp);
|
|
1566
|
-
var tmp_1 = tmp_0 == null ? null : tmp_0.
|
|
1566
|
+
var tmp_1 = tmp_0 == null ? null : tmp_0.yl_1;
|
|
1567
1567
|
var tmp0_0 = tmp_1 == null ? null : new NonEmptyList(tmp_1);
|
|
1568
1568
|
var tmp$ret$3;
|
|
1569
1569
|
$l$block: {
|
|
@@ -1572,7 +1572,7 @@ protoOf(OpenAPIV2Parser).z3h = function (_this__u8e3s4) {
|
|
|
1572
1572
|
var message = 'Cannot yield empty AST for OpenAPI v2';
|
|
1573
1573
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1574
1574
|
} else {
|
|
1575
|
-
tmp$ret$3 = tmp0_0.
|
|
1575
|
+
tmp$ret$3 = tmp0_0.yl_1;
|
|
1576
1576
|
break $l$block;
|
|
1577
1577
|
}
|
|
1578
1578
|
}
|
|
@@ -1584,29 +1584,29 @@ function OpenAPIV2Parser_getInstance() {
|
|
|
1584
1584
|
}
|
|
1585
1585
|
function parseEndpoints(_this__u8e3s4) {
|
|
1586
1586
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1587
|
-
var tmp0 = _this__u8e3s4.
|
|
1587
|
+
var tmp0 = _this__u8e3s4.p2z_1;
|
|
1588
1588
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1589
1589
|
var destination = ArrayList_init_$Create$();
|
|
1590
1590
|
// Inline function 'kotlin.collections.iterator' call
|
|
1591
|
-
var _iterator__ex2g4s = tmp0.
|
|
1591
|
+
var _iterator__ex2g4s = tmp0.j1().t();
|
|
1592
1592
|
while (_iterator__ex2g4s.u()) {
|
|
1593
1593
|
var element = _iterator__ex2g4s.v();
|
|
1594
1594
|
// Inline function 'kotlin.collections.component1' call
|
|
1595
|
-
var path = element.
|
|
1595
|
+
var path = element.k1().a2x_1;
|
|
1596
1596
|
// Inline function 'kotlin.collections.component2' call
|
|
1597
|
-
var pathItem = element.
|
|
1597
|
+
var pathItem = element.l1();
|
|
1598
1598
|
// Inline function 'kotlin.collections.map' call
|
|
1599
1599
|
var this_0 = toOperationList(pathItem);
|
|
1600
1600
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1601
1601
|
var destination_0 = ArrayList_init_$Create$_0(this_0.a1());
|
|
1602
1602
|
// Inline function 'kotlin.collections.iterator' call
|
|
1603
|
-
var _iterator__ex2g4s_0 = this_0.
|
|
1603
|
+
var _iterator__ex2g4s_0 = this_0.j1().t();
|
|
1604
1604
|
while (_iterator__ex2g4s_0.u()) {
|
|
1605
1605
|
var item = _iterator__ex2g4s_0.v();
|
|
1606
1606
|
// Inline function 'kotlin.collections.component1' call
|
|
1607
|
-
var method = item.
|
|
1607
|
+
var method = item.k1();
|
|
1608
1608
|
// Inline function 'kotlin.collections.component2' call
|
|
1609
|
-
var operation = item.
|
|
1609
|
+
var operation = item.l1();
|
|
1610
1610
|
var tmp$ret$6 = to(method, operation instanceof OpenAPIV2Operation ? operation : THROW_CCE());
|
|
1611
1611
|
destination_0.x(tmp$ret$6);
|
|
1612
1612
|
}
|
|
@@ -1616,19 +1616,19 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1616
1616
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
1617
1617
|
while (_iterator__ex2g4s_1.u()) {
|
|
1618
1618
|
var element_0 = _iterator__ex2g4s_1.v();
|
|
1619
|
-
var method_0 = element_0.
|
|
1620
|
-
var operation_0 = element_0.
|
|
1621
|
-
var parameters = plus_0(resolveParameters(_this__u8e3s4, pathItem.
|
|
1619
|
+
var method_0 = element_0.ne();
|
|
1620
|
+
var operation_0 = element_0.oe();
|
|
1621
|
+
var parameters = plus_0(resolveParameters(_this__u8e3s4, pathItem.y2z_1), resolveParameters(_this__u8e3s4, operation_0.n33_1));
|
|
1622
1622
|
var segments = toSegments(path, parameters);
|
|
1623
1623
|
var tmp0_elvis_lhs = toName(operation_0);
|
|
1624
|
-
var name = tmp0_elvis_lhs == null ? toName_0(path) + method_0.
|
|
1624
|
+
var name = tmp0_elvis_lhs == null ? toName_0(path) + method_0.a3_1 : tmp0_elvis_lhs;
|
|
1625
1625
|
// Inline function 'kotlin.collections.filter' call
|
|
1626
1626
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1627
1627
|
var destination_2 = ArrayList_init_$Create$();
|
|
1628
1628
|
var _iterator__ex2g4s_2 = parameters.t();
|
|
1629
1629
|
while (_iterator__ex2g4s_2.u()) {
|
|
1630
1630
|
var element_1 = _iterator__ex2g4s_2.v();
|
|
1631
|
-
if (element_1.
|
|
1631
|
+
if (element_1.e33_1.equals(OpenAPIV2ParameterLocation_QUERY_getInstance())) {
|
|
1632
1632
|
destination_2.x(element_1);
|
|
1633
1633
|
}
|
|
1634
1634
|
}
|
|
@@ -1648,7 +1648,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1648
1648
|
var _iterator__ex2g4s_4 = parameters.t();
|
|
1649
1649
|
while (_iterator__ex2g4s_4.u()) {
|
|
1650
1650
|
var element_2 = _iterator__ex2g4s_4.v();
|
|
1651
|
-
if (element_2.
|
|
1651
|
+
if (element_2.e33_1.equals(OpenAPIV2ParameterLocation_HEADER_getInstance())) {
|
|
1652
1652
|
destination_4.x(element_2);
|
|
1653
1653
|
}
|
|
1654
1654
|
}
|
|
@@ -1668,7 +1668,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1668
1668
|
var _iterator__ex2g4s_6 = parameters.t();
|
|
1669
1669
|
while (_iterator__ex2g4s_6.u()) {
|
|
1670
1670
|
var element_3 = _iterator__ex2g4s_6.v();
|
|
1671
|
-
if (element_3.
|
|
1671
|
+
if (element_3.e33_1.equals(OpenAPIV2ParameterLocation_BODY_getInstance())) {
|
|
1672
1672
|
destination_6.x(element_3);
|
|
1673
1673
|
}
|
|
1674
1674
|
}
|
|
@@ -1679,10 +1679,10 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1679
1679
|
while (_iterator__ex2g4s_7.u()) {
|
|
1680
1680
|
var element_4 = _iterator__ex2g4s_7.v();
|
|
1681
1681
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1682
|
-
var tmp0_elvis_lhs_0 = _this__u8e3s4.
|
|
1682
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.i2z_1;
|
|
1683
1683
|
var tmp = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1684
1684
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1685
|
-
var tmp0_elvis_lhs_1 = operation_0.
|
|
1685
|
+
var tmp0_elvis_lhs_1 = operation_0.l33_1;
|
|
1686
1686
|
var tmp$ret$25 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1687
1687
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
1688
1688
|
var this_1 = distinct(plus_0(tmp, tmp$ret$25));
|
|
@@ -1700,7 +1700,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1700
1700
|
while (_iterator__ex2g4s_8.u()) {
|
|
1701
1701
|
var item_2 = _iterator__ex2g4s_8.v();
|
|
1702
1702
|
var isNullable = false;
|
|
1703
|
-
var schema = element_4.
|
|
1703
|
+
var schema = element_4.f33_1;
|
|
1704
1704
|
var tmp_1;
|
|
1705
1705
|
if (schema instanceof OpenAPIV2Reference) {
|
|
1706
1706
|
tmp_1 = toReference(_this__u8e3s4, schema, isNullable);
|
|
@@ -1731,35 +1731,35 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1731
1731
|
}
|
|
1732
1732
|
var requests = tmp_2;
|
|
1733
1733
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1734
|
-
var tmp0_elvis_lhs_2 = operation_0.
|
|
1734
|
+
var tmp0_elvis_lhs_2 = operation_0.p33_1;
|
|
1735
1735
|
// Inline function 'kotlin.collections.mapValues' call
|
|
1736
1736
|
var this_3 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
1737
1737
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
1738
1738
|
var destination_9 = LinkedHashMap_init_$Create$(mapCapacity(this_3.a1()));
|
|
1739
1739
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
1740
|
-
var _iterator__ex2g4s_9 = this_3.
|
|
1740
|
+
var _iterator__ex2g4s_9 = this_3.j1().t();
|
|
1741
1741
|
while (_iterator__ex2g4s_9.u()) {
|
|
1742
1742
|
var element_5 = _iterator__ex2g4s_9.v();
|
|
1743
|
-
var tmp_3 = element_5.
|
|
1744
|
-
var tmp$ret$38 = resolve(_this__u8e3s4, element_5.
|
|
1745
|
-
destination_9.
|
|
1743
|
+
var tmp_3 = element_5.k1();
|
|
1744
|
+
var tmp$ret$38 = resolve(_this__u8e3s4, element_5.l1());
|
|
1745
|
+
destination_9.w2(tmp_3, tmp$ret$38);
|
|
1746
1746
|
}
|
|
1747
1747
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1748
1748
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1749
1749
|
var destination_10 = ArrayList_init_$Create$();
|
|
1750
1750
|
// Inline function 'kotlin.collections.iterator' call
|
|
1751
|
-
var _iterator__ex2g4s_10 = destination_9.
|
|
1751
|
+
var _iterator__ex2g4s_10 = destination_9.j1().t();
|
|
1752
1752
|
while (_iterator__ex2g4s_10.u()) {
|
|
1753
1753
|
var element_6 = _iterator__ex2g4s_10.v();
|
|
1754
1754
|
// Inline function 'kotlin.collections.component1' call
|
|
1755
|
-
var status = element_6.
|
|
1755
|
+
var status = element_6.k1().e2x_1;
|
|
1756
1756
|
// Inline function 'kotlin.collections.component2' call
|
|
1757
|
-
var res = element_6.
|
|
1757
|
+
var res = element_6.l1();
|
|
1758
1758
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1759
|
-
var tmp0_elvis_lhs_3 = _this__u8e3s4.
|
|
1759
|
+
var tmp0_elvis_lhs_3 = _this__u8e3s4.j2z_1;
|
|
1760
1760
|
var tmp_4 = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
|
|
1761
1761
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1762
|
-
var tmp0_elvis_lhs_4 = operation_0.
|
|
1762
|
+
var tmp0_elvis_lhs_4 = operation_0.m33_1;
|
|
1763
1763
|
var tmp$ret$46 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
1764
1764
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
1765
1765
|
var this_4 = distinct(plus_0(tmp_4, tmp$ret$46));
|
|
@@ -1776,9 +1776,9 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1776
1776
|
var _iterator__ex2g4s_11 = this_5.t();
|
|
1777
1777
|
while (_iterator__ex2g4s_11.u()) {
|
|
1778
1778
|
var item_3 = _iterator__ex2g4s_11.v();
|
|
1779
|
-
var tmp2_annotations = toDescriptionAnnotationList(res.
|
|
1779
|
+
var tmp2_annotations = toDescriptionAnnotationList(res.l34_1);
|
|
1780
1780
|
var tmp3_status = _StatusCode___get_value__impl__we50mu(status);
|
|
1781
|
-
var tmp0_safe_receiver = res.
|
|
1781
|
+
var tmp0_safe_receiver = res.m34_1;
|
|
1782
1782
|
var tmp_6;
|
|
1783
1783
|
if (tmp0_safe_receiver == null) {
|
|
1784
1784
|
tmp_6 = null;
|
|
@@ -1787,13 +1787,13 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1787
1787
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1788
1788
|
var destination_12 = ArrayList_init_$Create$_0(tmp0_safe_receiver.a1());
|
|
1789
1789
|
// Inline function 'kotlin.collections.iterator' call
|
|
1790
|
-
var _iterator__ex2g4s_12 = tmp0_safe_receiver.
|
|
1790
|
+
var _iterator__ex2g4s_12 = tmp0_safe_receiver.j1().t();
|
|
1791
1791
|
while (_iterator__ex2g4s_12.u()) {
|
|
1792
1792
|
var item_4 = _iterator__ex2g4s_12.v();
|
|
1793
1793
|
// Inline function 'kotlin.collections.component1' call
|
|
1794
|
-
var identifier = item_4.
|
|
1794
|
+
var identifier = item_4.k1();
|
|
1795
1795
|
// Inline function 'kotlin.collections.component2' call
|
|
1796
|
-
var header = item_4.
|
|
1796
|
+
var header = item_4.l1();
|
|
1797
1797
|
var tmp$ret$52 = toField_0(_this__u8e3s4, resolve_0(header), identifier);
|
|
1798
1798
|
destination_12.x(tmp$ret$52);
|
|
1799
1799
|
}
|
|
@@ -1802,7 +1802,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1802
1802
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1803
1803
|
var tmp0_elvis_lhs_5 = tmp_6;
|
|
1804
1804
|
var tmp4_headers = tmp0_elvis_lhs_5 == null ? emptyList() : tmp0_elvis_lhs_5;
|
|
1805
|
-
var tmp1_safe_receiver = res.
|
|
1805
|
+
var tmp1_safe_receiver = res.j34_1;
|
|
1806
1806
|
var tmp_7;
|
|
1807
1807
|
if (tmp1_safe_receiver == null) {
|
|
1808
1808
|
tmp_7 = null;
|
|
@@ -1833,13 +1833,13 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1833
1833
|
var _iterator__ex2g4s_13 = destination_10.t();
|
|
1834
1834
|
while (_iterator__ex2g4s_13.u()) {
|
|
1835
1835
|
var e = _iterator__ex2g4s_13.v();
|
|
1836
|
-
var key = to(e.
|
|
1836
|
+
var key = to(e.qp_1, e.sp_1);
|
|
1837
1837
|
if (set.x(key)) {
|
|
1838
1838
|
list_1.x(e);
|
|
1839
1839
|
}
|
|
1840
1840
|
}
|
|
1841
1841
|
var responses = list_1;
|
|
1842
|
-
var list_2 = listOf(new Endpoint(null, toDescriptionAnnotationList(operation_0.
|
|
1842
|
+
var list_2 = listOf(new Endpoint(null, toDescriptionAnnotationList(operation_0.t33_1), new DefinitionIdentifier(sanitize(name)), method_0, segments, query, headers, requests, responses));
|
|
1843
1843
|
addAll(destination_1, list_2);
|
|
1844
1844
|
}
|
|
1845
1845
|
var list_3 = destination_1;
|
|
@@ -1858,17 +1858,17 @@ function parseResponseBody(_this__u8e3s4) {
|
|
|
1858
1858
|
}
|
|
1859
1859
|
function parseDefinitions(_this__u8e3s4) {
|
|
1860
1860
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1861
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1861
|
+
var tmp0_elvis_lhs = _this__u8e3s4.k2z_1;
|
|
1862
1862
|
// Inline function 'arrow.core.filterIsInstance' call
|
|
1863
1863
|
// Inline function 'kotlin.collections.filterValues' call
|
|
1864
1864
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1865
1865
|
var result = LinkedHashMap_init_$Create$_0();
|
|
1866
1866
|
// Inline function 'kotlin.collections.iterator' call
|
|
1867
|
-
var _iterator__ex2g4s = this_0.
|
|
1867
|
+
var _iterator__ex2g4s = this_0.j1().t();
|
|
1868
1868
|
while (_iterator__ex2g4s.u()) {
|
|
1869
1869
|
var entry = _iterator__ex2g4s.v();
|
|
1870
|
-
if (entry.
|
|
1871
|
-
result.
|
|
1870
|
+
if (entry.l1() instanceof OpenAPIV2Schema) {
|
|
1871
|
+
result.w2(entry.k1(), entry.l1());
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
1874
|
var tmp = result;
|
|
@@ -1877,10 +1877,10 @@ function parseDefinitions(_this__u8e3s4) {
|
|
|
1877
1877
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1878
1878
|
var destination = LinkedHashMap_init_$Create$_0();
|
|
1879
1879
|
// Inline function 'kotlin.collections.iterator' call
|
|
1880
|
-
var _iterator__ex2g4s_0 = tmp0.
|
|
1880
|
+
var _iterator__ex2g4s_0 = tmp0.j1().t();
|
|
1881
1881
|
while (_iterator__ex2g4s_0.u()) {
|
|
1882
1882
|
var element = _iterator__ex2g4s_0.v();
|
|
1883
|
-
var tmp0_subject = element.
|
|
1883
|
+
var tmp0_subject = element.l1().q31_1;
|
|
1884
1884
|
var tmp_0;
|
|
1885
1885
|
if (tmp0_subject instanceof OpenAPIV2Boolean) {
|
|
1886
1886
|
tmp_0 = true;
|
|
@@ -1900,17 +1900,17 @@ function parseDefinitions(_this__u8e3s4) {
|
|
|
1900
1900
|
}
|
|
1901
1901
|
}
|
|
1902
1902
|
if (tmp_0) {
|
|
1903
|
-
destination.
|
|
1903
|
+
destination.w2(element.k1(), element.l1());
|
|
1904
1904
|
}
|
|
1905
1905
|
}
|
|
1906
1906
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1907
1907
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1908
1908
|
var destination_0 = ArrayList_init_$Create$();
|
|
1909
1909
|
// Inline function 'kotlin.collections.iterator' call
|
|
1910
|
-
var _iterator__ex2g4s_1 = destination.
|
|
1910
|
+
var _iterator__ex2g4s_1 = destination.j1().t();
|
|
1911
1911
|
while (_iterator__ex2g4s_1.u()) {
|
|
1912
1912
|
var element_0 = _iterator__ex2g4s_1.v();
|
|
1913
|
-
var list = flatten_0(_this__u8e3s4, element_0.
|
|
1913
|
+
var list = flatten_0(_this__u8e3s4, element_0.l1(), className([element_0.k1()]));
|
|
1914
1914
|
addAll(destination_0, list);
|
|
1915
1915
|
}
|
|
1916
1916
|
return destination_0;
|
|
@@ -1973,7 +1973,7 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
1973
1973
|
var _iterator__ex2g4s_0 = parameters.t();
|
|
1974
1974
|
while (_iterator__ex2g4s_0.u()) {
|
|
1975
1975
|
var element = _iterator__ex2g4s_0.v();
|
|
1976
|
-
if (element.
|
|
1976
|
+
if (element.g33_1 === param) {
|
|
1977
1977
|
tmp$ret$2 = element;
|
|
1978
1978
|
break $l$block;
|
|
1979
1979
|
}
|
|
@@ -2017,15 +2017,15 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
2017
2017
|
function toField(_this__u8e3s4, parameter, name) {
|
|
2018
2018
|
// Inline function 'kotlin.let' call
|
|
2019
2019
|
var schema = resolve_1(_this__u8e3s4, parameter);
|
|
2020
|
-
var tmp0_elvis_lhs = parameter.
|
|
2020
|
+
var tmp0_elvis_lhs = parameter.l32_1;
|
|
2021
2021
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
2022
2022
|
var tmp;
|
|
2023
|
-
if (!(parameter.
|
|
2024
|
-
tmp = new Custom(sanitize(className([name, 'Parameter', schema.
|
|
2023
|
+
if (!(parameter.c33_1 == null)) {
|
|
2024
|
+
tmp = new Custom(sanitize(className([name, 'Parameter', schema.g33_1])), isNullable);
|
|
2025
2025
|
} else {
|
|
2026
|
-
var tmp1_subject = schema.
|
|
2026
|
+
var tmp1_subject = schema.m32_1;
|
|
2027
2027
|
var tmp_0;
|
|
2028
|
-
switch (tmp1_subject == null ? -1 : tmp1_subject.
|
|
2028
|
+
switch (tmp1_subject == null ? -1 : tmp1_subject.b3_1) {
|
|
2029
2029
|
case 0:
|
|
2030
2030
|
case 1:
|
|
2031
2031
|
case 2:
|
|
@@ -2036,7 +2036,7 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2036
2036
|
tmp_0 = new Primitive(primitive, isNullable);
|
|
2037
2037
|
break;
|
|
2038
2038
|
case 4:
|
|
2039
|
-
var tmp2_safe_receiver = schema.
|
|
2039
|
+
var tmp2_safe_receiver = schema.n32_1;
|
|
2040
2040
|
var tmp_1;
|
|
2041
2041
|
if (tmp2_safe_receiver == null) {
|
|
2042
2042
|
tmp_1 = null;
|
|
@@ -2083,8 +2083,8 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2083
2083
|
}
|
|
2084
2084
|
// Inline function 'kotlin.let' call
|
|
2085
2085
|
var it = tmp;
|
|
2086
|
-
var tmp0_identifier = new FieldIdentifier(parameter.
|
|
2087
|
-
var tmp1_annotations = toDescriptionAnnotationList(parameter.
|
|
2086
|
+
var tmp0_identifier = new FieldIdentifier(parameter.g33_1);
|
|
2087
|
+
var tmp1_annotations = toDescriptionAnnotationList(parameter.k32_1);
|
|
2088
2088
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
2089
2089
|
}
|
|
2090
2090
|
function toReference(_this__u8e3s4, reference, isNullable) {
|
|
@@ -2092,8 +2092,8 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2092
2092
|
var refOrSchema = resolveOpenAPIV2Schema(_this__u8e3s4, reference);
|
|
2093
2093
|
var schema = resolve_2(_this__u8e3s4, refOrSchema);
|
|
2094
2094
|
var tmp;
|
|
2095
|
-
if (exists(schema.
|
|
2096
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2095
|
+
if (exists(schema.q31_1)) {
|
|
2096
|
+
var additionalProperties = ensureNotNull(schema.q31_1);
|
|
2097
2097
|
var tmp_0;
|
|
2098
2098
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
2099
2099
|
tmp_0 = new Dict(new Any(false), isNullable);
|
|
@@ -2109,15 +2109,15 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2109
2109
|
}
|
|
2110
2110
|
}
|
|
2111
2111
|
tmp = tmp_0;
|
|
2112
|
-
} else if (!(schema.
|
|
2112
|
+
} else if (!(schema.m31_1 == null)) {
|
|
2113
2113
|
tmp = new Custom(sanitize(className([getReference(reference)])), isNullable);
|
|
2114
|
-
} else if (isPrimitive(schema.
|
|
2114
|
+
} else if (isPrimitive(schema.z30_1)) {
|
|
2115
2115
|
tmp = new Primitive(toPrimitive(schema), isNullable);
|
|
2116
2116
|
} else {
|
|
2117
|
-
var tmp0_subject = schema.
|
|
2117
|
+
var tmp0_subject = schema.z30_1;
|
|
2118
2118
|
var tmp_1;
|
|
2119
|
-
if ((tmp0_subject == null ? -1 : tmp0_subject.
|
|
2120
|
-
var items = schema.
|
|
2119
|
+
if ((tmp0_subject == null ? -1 : tmp0_subject.b3_1) === 4) {
|
|
2120
|
+
var items = schema.n31_1;
|
|
2121
2121
|
var tmp_2;
|
|
2122
2122
|
if (items instanceof OpenAPIV2Reference) {
|
|
2123
2123
|
tmp_2 = toIterable(toReference(_this__u8e3s4, items, false), isNullable);
|
|
@@ -2126,7 +2126,7 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2126
2126
|
tmp_2 = toIterable(toReference_0(_this__u8e3s4, items, className([getReference(reference), 'Array']), isNullable), isNullable);
|
|
2127
2127
|
} else {
|
|
2128
2128
|
if (items == null) {
|
|
2129
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.
|
|
2129
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.d34_1);
|
|
2130
2130
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2131
2131
|
} else {
|
|
2132
2132
|
noWhenBranchMatchedException();
|
|
@@ -2159,44 +2159,44 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2159
2159
|
var tmp_3;
|
|
2160
2160
|
var tmp_4;
|
|
2161
2161
|
var tmp_5;
|
|
2162
|
-
var tmp0_safe_receiver = schema.
|
|
2162
|
+
var tmp0_safe_receiver = schema.o31_1;
|
|
2163
2163
|
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1()) === 1) {
|
|
2164
|
-
var tmp_6 = first(ensureNotNull(schema.
|
|
2164
|
+
var tmp_6 = first(ensureNotNull(schema.o31_1));
|
|
2165
2165
|
tmp_5 = tmp_6 instanceof OpenAPIV2Reference;
|
|
2166
2166
|
} else {
|
|
2167
2167
|
tmp_5 = false;
|
|
2168
2168
|
}
|
|
2169
2169
|
if (tmp_5) {
|
|
2170
|
-
tmp_4 = schema.
|
|
2170
|
+
tmp_4 = schema.p31_1 == null;
|
|
2171
2171
|
} else {
|
|
2172
2172
|
tmp_4 = false;
|
|
2173
2173
|
}
|
|
2174
2174
|
if (tmp_4) {
|
|
2175
|
-
tmp_3 = schema.
|
|
2175
|
+
tmp_3 = schema.m31_1 == null;
|
|
2176
2176
|
} else {
|
|
2177
2177
|
tmp_3 = false;
|
|
2178
2178
|
}
|
|
2179
2179
|
if (tmp_3) {
|
|
2180
|
-
tmp_2 = schema.
|
|
2180
|
+
tmp_2 = schema.z30_1 == null;
|
|
2181
2181
|
} else {
|
|
2182
2182
|
tmp_2 = false;
|
|
2183
2183
|
}
|
|
2184
2184
|
if (tmp_2) {
|
|
2185
|
-
tmp_1 = schema.
|
|
2185
|
+
tmp_1 = schema.n31_1 == null;
|
|
2186
2186
|
} else {
|
|
2187
2187
|
tmp_1 = false;
|
|
2188
2188
|
}
|
|
2189
2189
|
if (tmp_1) {
|
|
2190
|
-
tmp_0 = schema.
|
|
2190
|
+
tmp_0 = schema.q31_1 == null;
|
|
2191
2191
|
} else {
|
|
2192
2192
|
tmp_0 = false;
|
|
2193
2193
|
}
|
|
2194
2194
|
if (tmp_0) {
|
|
2195
|
-
var tmp_7 = first(ensureNotNull(schema.
|
|
2195
|
+
var tmp_7 = first(ensureNotNull(schema.o31_1));
|
|
2196
2196
|
tmp = toReference(_this__u8e3s4, tmp_7 instanceof OpenAPIV2Reference ? tmp_7 : THROW_CCE(), isNullable);
|
|
2197
2197
|
} else {
|
|
2198
|
-
if (!(schema.
|
|
2199
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2198
|
+
if (!(schema.q31_1 == null)) {
|
|
2199
|
+
var additionalProperties = ensureNotNull(schema.q31_1);
|
|
2200
2200
|
var tmp_8;
|
|
2201
2201
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
2202
2202
|
tmp_8 = new Dict(new Any(false), isNullable);
|
|
@@ -2207,7 +2207,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2207
2207
|
if (additionalProperties instanceof OpenAPIV2Schema) {
|
|
2208
2208
|
// Inline function 'kotlin.takeIf' call
|
|
2209
2209
|
var tmp_9;
|
|
2210
|
-
if (isPrimitive(additionalProperties.
|
|
2210
|
+
if (isPrimitive(additionalProperties.z30_1) || !(additionalProperties.p31_1 == null)) {
|
|
2211
2211
|
tmp_9 = additionalProperties;
|
|
2212
2212
|
} else {
|
|
2213
2213
|
tmp_9 = null;
|
|
@@ -2229,24 +2229,24 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2229
2229
|
}
|
|
2230
2230
|
tmp = tmp_8;
|
|
2231
2231
|
} else {
|
|
2232
|
-
if (!(schema.
|
|
2232
|
+
if (!(schema.m31_1 == null)) {
|
|
2233
2233
|
var tmp_11;
|
|
2234
|
-
if (!(schema.
|
|
2234
|
+
if (!(schema.q31_1 == null)) {
|
|
2235
2235
|
tmp_11 = new Dict(new Custom(sanitize(name), false), isNullable);
|
|
2236
2236
|
} else {
|
|
2237
2237
|
tmp_11 = new Custom(sanitize(name), isNullable);
|
|
2238
2238
|
}
|
|
2239
2239
|
tmp = tmp_11;
|
|
2240
2240
|
} else {
|
|
2241
|
-
var tmp3_subject = schema.
|
|
2241
|
+
var tmp3_subject = schema.z30_1;
|
|
2242
2242
|
var tmp_12;
|
|
2243
|
-
switch (tmp3_subject == null ? -1 : tmp3_subject.
|
|
2243
|
+
switch (tmp3_subject == null ? -1 : tmp3_subject.b3_1) {
|
|
2244
2244
|
case 0:
|
|
2245
2245
|
case 2:
|
|
2246
2246
|
case 1:
|
|
2247
2247
|
case 3:
|
|
2248
2248
|
var tmp_13;
|
|
2249
|
-
if (!(schema.
|
|
2249
|
+
if (!(schema.q31_1 == null)) {
|
|
2250
2250
|
tmp_13 = new Dict(new Primitive(toPrimitive(schema), false), isNullable);
|
|
2251
2251
|
} else {
|
|
2252
2252
|
tmp_13 = new Primitive(toPrimitive(schema), isNullable);
|
|
@@ -2257,17 +2257,17 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2257
2257
|
case -1:
|
|
2258
2258
|
case 5:
|
|
2259
2259
|
var tmp_14;
|
|
2260
|
-
var tmp_15 = schema.
|
|
2260
|
+
var tmp_15 = schema.q31_1;
|
|
2261
2261
|
if (!(tmp_15 == null) ? isInterface(tmp_15, BooleanValue) : false) {
|
|
2262
2262
|
var tmp_16;
|
|
2263
|
-
if (!(schema.
|
|
2263
|
+
if (!(schema.q31_1 == null)) {
|
|
2264
2264
|
tmp_16 = new Dict(new Any(isNullable), false);
|
|
2265
2265
|
} else {
|
|
2266
2266
|
tmp_16 = new Any(isNullable);
|
|
2267
2267
|
}
|
|
2268
2268
|
tmp_14 = tmp_16;
|
|
2269
2269
|
} else {
|
|
2270
|
-
if (!(schema.
|
|
2270
|
+
if (!(schema.q31_1 == null)) {
|
|
2271
2271
|
new Dict(new Custom(sanitize(name), isNullable), false);
|
|
2272
2272
|
}
|
|
2273
2273
|
tmp_14 = new Custom(sanitize(name), isNullable);
|
|
@@ -2276,7 +2276,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2276
2276
|
tmp_12 = tmp_14;
|
|
2277
2277
|
break;
|
|
2278
2278
|
case 4:
|
|
2279
|
-
var items = schema.
|
|
2279
|
+
var items = schema.n31_1;
|
|
2280
2280
|
var tmp_17;
|
|
2281
2281
|
if (items instanceof OpenAPIV2Reference) {
|
|
2282
2282
|
tmp_17 = toIterable(toReference(_this__u8e3s4, items, false), isNullable);
|
|
@@ -2323,10 +2323,10 @@ function resolve(_this__u8e3s4, responseOrReference) {
|
|
|
2323
2323
|
}
|
|
2324
2324
|
function toField_0(_this__u8e3s4, header, identifier) {
|
|
2325
2325
|
var tmp4_identifier = new FieldIdentifier(identifier);
|
|
2326
|
-
var tmp5_annotations = toDescriptionAnnotationList(header.
|
|
2326
|
+
var tmp5_annotations = toDescriptionAnnotationList(header.s34_1);
|
|
2327
2327
|
var tmp;
|
|
2328
|
-
if (header.
|
|
2329
|
-
var tmp1_safe_receiver = header.
|
|
2328
|
+
if (header.t34_1.b3_1 === 4) {
|
|
2329
|
+
var tmp1_safe_receiver = header.v34_1;
|
|
2330
2330
|
var tmp_0;
|
|
2331
2331
|
if (tmp1_safe_receiver == null) {
|
|
2332
2332
|
tmp_0 = null;
|
|
@@ -2399,13 +2399,13 @@ function resolve_1(_this__u8e3s4, parameterOrReference) {
|
|
|
2399
2399
|
}
|
|
2400
2400
|
function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
2401
2401
|
var tmp;
|
|
2402
|
-
if (exists(schemaObject.
|
|
2403
|
-
var tmp0_subject = schemaObject.
|
|
2402
|
+
if (exists(schemaObject.q31_1)) {
|
|
2403
|
+
var tmp0_subject = schemaObject.q31_1;
|
|
2404
2404
|
var tmp_0;
|
|
2405
2405
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
2406
2406
|
tmp_0 = emptyList();
|
|
2407
2407
|
} else {
|
|
2408
|
-
var tmp1_safe_receiver = schemaObject.
|
|
2408
|
+
var tmp1_safe_receiver = schemaObject.q31_1;
|
|
2409
2409
|
var tmp_1;
|
|
2410
2410
|
if (tmp1_safe_receiver == null) {
|
|
2411
2411
|
tmp_1 = null;
|
|
@@ -2420,7 +2420,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2420
2420
|
} else {
|
|
2421
2421
|
// Inline function 'kotlin.takeIf' call
|
|
2422
2422
|
var tmp_3;
|
|
2423
|
-
if (!(tmp2_safe_receiver.
|
|
2423
|
+
if (!(tmp2_safe_receiver.p31_1 == null)) {
|
|
2424
2424
|
tmp_3 = tmp2_safe_receiver;
|
|
2425
2425
|
} else {
|
|
2426
2426
|
tmp_3 = null;
|
|
@@ -2439,11 +2439,11 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2439
2439
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
2440
2440
|
}
|
|
2441
2441
|
tmp = tmp_0;
|
|
2442
|
-
} else if (!(schemaObject.
|
|
2443
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
2442
|
+
} else if (!(schemaObject.o31_1 == null)) {
|
|
2443
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.f31_1);
|
|
2444
2444
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
2445
2445
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2446
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
2446
|
+
var tmp0_elvis_lhs = schemaObject.o31_1;
|
|
2447
2447
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2448
2448
|
var tmp0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2449
2449
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2470,14 +2470,14 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2470
2470
|
var _iterator__ex2g4s_0 = destination.t();
|
|
2471
2471
|
while (_iterator__ex2g4s_0.u()) {
|
|
2472
2472
|
var e = _iterator__ex2g4s_0.v();
|
|
2473
|
-
var key = e.
|
|
2473
|
+
var key = e.ap_1;
|
|
2474
2474
|
if (set.x(key)) {
|
|
2475
2475
|
list_0.x(e);
|
|
2476
2476
|
}
|
|
2477
2477
|
}
|
|
2478
2478
|
var tmp_8 = listOf(new Type(null, tmp_5, tmp_6, new Shape(list_0), emptyList()));
|
|
2479
2479
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2480
|
-
var tmp0_0 = ensureNotNull(schemaObject.
|
|
2480
|
+
var tmp0_0 = ensureNotNull(schemaObject.o31_1);
|
|
2481
2481
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2482
2482
|
var destination_0 = ArrayList_init_$Create$();
|
|
2483
2483
|
var _iterator__ex2g4s_1 = tmp0_0.t();
|
|
@@ -2489,19 +2489,19 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2489
2489
|
} else {
|
|
2490
2490
|
if (element_0 instanceof OpenAPIV2Schema) {
|
|
2491
2491
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2492
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
2492
|
+
var tmp0_elvis_lhs_0 = element_0.p31_1;
|
|
2493
2493
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2494
2494
|
var tmp0_1 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2495
2495
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2496
2496
|
var destination_1 = ArrayList_init_$Create$();
|
|
2497
2497
|
// Inline function 'kotlin.collections.iterator' call
|
|
2498
|
-
var _iterator__ex2g4s_2 = tmp0_1.
|
|
2498
|
+
var _iterator__ex2g4s_2 = tmp0_1.j1().t();
|
|
2499
2499
|
while (_iterator__ex2g4s_2.u()) {
|
|
2500
2500
|
var element_1 = _iterator__ex2g4s_2.v();
|
|
2501
2501
|
// Inline function 'kotlin.collections.component1' call
|
|
2502
|
-
var key_0 = element_1.
|
|
2502
|
+
var key_0 = element_1.k1();
|
|
2503
2503
|
// Inline function 'kotlin.collections.component2' call
|
|
2504
|
-
var value = element_1.
|
|
2504
|
+
var value = element_1.l1();
|
|
2505
2505
|
var tmp_10;
|
|
2506
2506
|
if (value instanceof OpenAPIV2Reference) {
|
|
2507
2507
|
tmp_10 = emptyList();
|
|
@@ -2524,29 +2524,29 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2524
2524
|
addAll(destination_0, list_2);
|
|
2525
2525
|
}
|
|
2526
2526
|
tmp = plus_0(tmp_8, destination_0);
|
|
2527
|
-
} else if (!(schemaObject.
|
|
2527
|
+
} else if (!(schemaObject.m31_1 == null)) {
|
|
2528
2528
|
// Inline function 'kotlin.collections.map' call
|
|
2529
|
-
var this_0 = ensureNotNull(schemaObject.
|
|
2529
|
+
var this_0 = ensureNotNull(schemaObject.m31_1);
|
|
2530
2530
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2531
2531
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2532
2532
|
var _iterator__ex2g4s_3 = this_0.t();
|
|
2533
2533
|
while (_iterator__ex2g4s_3.u()) {
|
|
2534
2534
|
var item = _iterator__ex2g4s_3.v();
|
|
2535
|
-
var tmp$ret$22 = item.
|
|
2535
|
+
var tmp$ret$22 = item.ix();
|
|
2536
2536
|
destination_2.x(tmp$ret$22);
|
|
2537
2537
|
}
|
|
2538
2538
|
// Inline function 'kotlin.let' call
|
|
2539
2539
|
var it = toSet(destination_2);
|
|
2540
|
-
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.
|
|
2540
|
+
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.f31_1), new DefinitionIdentifier(sanitize(name)), it));
|
|
2541
2541
|
} else {
|
|
2542
|
-
var tmp5_subject = schemaObject.
|
|
2542
|
+
var tmp5_subject = schemaObject.z30_1;
|
|
2543
2543
|
var tmp_11;
|
|
2544
|
-
switch (tmp5_subject == null ? -1 : tmp5_subject.
|
|
2544
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.b3_1) {
|
|
2545
2545
|
case -1:
|
|
2546
2546
|
case 5:
|
|
2547
2547
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2548
2548
|
|
|
2549
|
-
var tmp0_elvis_lhs_1 = schemaObject.
|
|
2549
|
+
var tmp0_elvis_lhs_1 = schemaObject.p31_1;
|
|
2550
2550
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2551
2551
|
|
|
2552
2552
|
var tmp0_2 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
@@ -2555,23 +2555,23 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2555
2555
|
var destination_3 = ArrayList_init_$Create$();
|
|
2556
2556
|
// Inline function 'kotlin.collections.iterator' call
|
|
2557
2557
|
|
|
2558
|
-
var _iterator__ex2g4s_4 = tmp0_2.
|
|
2558
|
+
var _iterator__ex2g4s_4 = tmp0_2.j1().t();
|
|
2559
2559
|
while (_iterator__ex2g4s_4.u()) {
|
|
2560
2560
|
var element_2 = _iterator__ex2g4s_4.v();
|
|
2561
2561
|
// Inline function 'kotlin.collections.component1' call
|
|
2562
|
-
var key_1 = element_2.
|
|
2562
|
+
var key_1 = element_2.k1();
|
|
2563
2563
|
// Inline function 'kotlin.collections.component2' call
|
|
2564
|
-
var value_0 = element_2.
|
|
2564
|
+
var value_0 = element_2.l1();
|
|
2565
2565
|
var list_3 = flatten(_this__u8e3s4, value_0, className([name, key_1]));
|
|
2566
2566
|
addAll(destination_3, list_3);
|
|
2567
2567
|
}
|
|
2568
2568
|
|
|
2569
2569
|
var fields = destination_3;
|
|
2570
|
-
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.
|
|
2570
|
+
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.f31_1), new DefinitionIdentifier(sanitize(name)), new Shape(toField_1(_this__u8e3s4, schemaObject, name)), emptyList()));
|
|
2571
2571
|
tmp_11 = plus_0(schema, fields);
|
|
2572
2572
|
break;
|
|
2573
2573
|
case 4:
|
|
2574
|
-
var it_0 = schemaObject.
|
|
2574
|
+
var it_0 = schemaObject.n31_1;
|
|
2575
2575
|
var tmp_12;
|
|
2576
2576
|
if (it_0 instanceof OpenAPIV2Reference) {
|
|
2577
2577
|
tmp_12 = emptyList();
|
|
@@ -2598,11 +2598,11 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
2598
2598
|
return tmp;
|
|
2599
2599
|
}
|
|
2600
2600
|
function resolveParameterObject(_this__u8e3s4, reference) {
|
|
2601
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2602
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2601
|
+
var tmp0_safe_receiver = _this__u8e3s4.l2z_1;
|
|
2602
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p2(getReference(reference));
|
|
2603
2603
|
var tmp;
|
|
2604
2604
|
if (tmp1_elvis_lhs == null) {
|
|
2605
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
2605
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.d34_1);
|
|
2606
2606
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2607
2607
|
} else {
|
|
2608
2608
|
tmp = tmp1_elvis_lhs;
|
|
@@ -2610,17 +2610,17 @@ function resolveParameterObject(_this__u8e3s4, reference) {
|
|
|
2610
2610
|
return tmp;
|
|
2611
2611
|
}
|
|
2612
2612
|
function toPrimitive(_this__u8e3s4) {
|
|
2613
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2613
|
+
var tmp0_subject = _this__u8e3s4.ex();
|
|
2614
2614
|
var tmp;
|
|
2615
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
2615
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.b3_1) {
|
|
2616
2616
|
case 0:
|
|
2617
|
-
tmp = !(_this__u8e3s4.
|
|
2617
|
+
tmp = !(_this__u8e3s4.d32() == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.d32()))) : _this__u8e3s4.c32() === 'binary' ? Bytes_instance : new String_0(null);
|
|
2618
2618
|
break;
|
|
2619
2619
|
case 2:
|
|
2620
|
-
tmp = new Integer(_this__u8e3s4.
|
|
2620
|
+
tmp = new Integer(_this__u8e3s4.c32() === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
2621
2621
|
break;
|
|
2622
2622
|
case 1:
|
|
2623
|
-
tmp = new Number_0(_this__u8e3s4.
|
|
2623
|
+
tmp = new Number_0(_this__u8e3s4.c32() === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
2624
2624
|
break;
|
|
2625
2625
|
case 3:
|
|
2626
2626
|
tmp = Boolean_instance;
|
|
@@ -2658,11 +2658,11 @@ function resolve_2(_this__u8e3s4, schemaOrReference) {
|
|
|
2658
2658
|
while (true);
|
|
2659
2659
|
}
|
|
2660
2660
|
function resolveOpenAPIV2Schema(_this__u8e3s4, reference) {
|
|
2661
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2662
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2661
|
+
var tmp0_safe_receiver = _this__u8e3s4.k2z_1;
|
|
2662
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p2(getReference(reference));
|
|
2663
2663
|
var tmp;
|
|
2664
2664
|
if (tmp1_elvis_lhs == null) {
|
|
2665
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
2665
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.d34_1);
|
|
2666
2666
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2667
2667
|
} else {
|
|
2668
2668
|
tmp = tmp1_elvis_lhs;
|
|
@@ -2675,7 +2675,7 @@ function exists(_this__u8e3s4) {
|
|
|
2675
2675
|
tmp = true;
|
|
2676
2676
|
} else {
|
|
2677
2677
|
if (!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, BooleanValue) : false) {
|
|
2678
|
-
tmp = _this__u8e3s4.
|
|
2678
|
+
tmp = _this__u8e3s4.l1();
|
|
2679
2679
|
} else {
|
|
2680
2680
|
if (_this__u8e3s4 instanceof OpenAPIV2Reference) {
|
|
2681
2681
|
tmp = true;
|
|
@@ -2688,7 +2688,7 @@ function exists(_this__u8e3s4) {
|
|
|
2688
2688
|
}
|
|
2689
2689
|
function isPrimitive(_this__u8e3s4) {
|
|
2690
2690
|
var tmp;
|
|
2691
|
-
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.
|
|
2691
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.b3_1) {
|
|
2692
2692
|
case 0:
|
|
2693
2693
|
tmp = true;
|
|
2694
2694
|
break;
|
|
@@ -2720,11 +2720,11 @@ function isPrimitive(_this__u8e3s4) {
|
|
|
2720
2720
|
return tmp;
|
|
2721
2721
|
}
|
|
2722
2722
|
function resolveResponseObject(_this__u8e3s4, reference) {
|
|
2723
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2724
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2723
|
+
var tmp0_safe_receiver = _this__u8e3s4.m2z_1;
|
|
2724
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p2(getReference(reference));
|
|
2725
2725
|
var tmp;
|
|
2726
2726
|
if (tmp1_elvis_lhs == null) {
|
|
2727
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
2727
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.d34_1);
|
|
2728
2728
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2729
2729
|
} else {
|
|
2730
2730
|
tmp = tmp1_elvis_lhs;
|
|
@@ -2751,27 +2751,27 @@ function resolve_3(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
2751
2751
|
}
|
|
2752
2752
|
function toField_1(_this__u8e3s4, schema, name) {
|
|
2753
2753
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2754
|
-
var tmp0_elvis_lhs = schema.
|
|
2754
|
+
var tmp0_elvis_lhs = schema.p31_1;
|
|
2755
2755
|
// Inline function 'kotlin.collections.map' call
|
|
2756
2756
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2757
2757
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2758
2758
|
var destination = ArrayList_init_$Create$_0(this_0.a1());
|
|
2759
2759
|
// Inline function 'kotlin.collections.iterator' call
|
|
2760
|
-
var _iterator__ex2g4s = this_0.
|
|
2760
|
+
var _iterator__ex2g4s = this_0.j1().t();
|
|
2761
2761
|
while (_iterator__ex2g4s.u()) {
|
|
2762
2762
|
var item = _iterator__ex2g4s.v();
|
|
2763
2763
|
// Inline function 'kotlin.collections.component1' call
|
|
2764
|
-
var key = item.
|
|
2764
|
+
var key = item.k1();
|
|
2765
2765
|
// Inline function 'kotlin.collections.component2' call
|
|
2766
|
-
var value = item.
|
|
2767
|
-
var tmp0_safe_receiver = schema.
|
|
2768
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2766
|
+
var value = item.l1();
|
|
2767
|
+
var tmp0_safe_receiver = schema.l31_1;
|
|
2768
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u1(key);
|
|
2769
2769
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
2770
2770
|
var tmp;
|
|
2771
2771
|
if (value instanceof OpenAPIV2Schema) {
|
|
2772
2772
|
var tmp3_identifier = new FieldIdentifier(key);
|
|
2773
2773
|
var tmp4_annotations = emptyList();
|
|
2774
|
-
var tmp5_reference = !(value.
|
|
2774
|
+
var tmp5_reference = !(value.m31_1 == null) ? toReference_0(_this__u8e3s4, value, className([name, key]), isNullable) : equals(value.z30_1, OpenAPIV2Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, value, className([name, key, 'Array']), isNullable) : toReference_0(_this__u8e3s4, value, className([name, key]), isNullable);
|
|
2775
2775
|
tmp = new Field(tmp4_annotations, tmp3_identifier, tmp5_reference);
|
|
2776
2776
|
} else {
|
|
2777
2777
|
if (value instanceof OpenAPIV2Reference) {
|
|
@@ -2790,19 +2790,19 @@ function toField_1(_this__u8e3s4, schema, name) {
|
|
|
2790
2790
|
}
|
|
2791
2791
|
function parseParameters$lambda($this_parseParameters) {
|
|
2792
2792
|
return function ($this$flatMapRequests) {
|
|
2793
|
-
var tmp = $this$flatMapRequests.
|
|
2794
|
-
var tmp_0 = resolveParameters($this_parseParameters, (tmp instanceof OpenAPIV2PathItem ? tmp : THROW_CCE()).
|
|
2795
|
-
var tmp_1 = $this$flatMapRequests.
|
|
2796
|
-
var parameters = plus_0(tmp_0, resolveParameters($this_parseParameters, (tmp_1 instanceof OpenAPIV2Operation ? tmp_1 : THROW_CCE()).
|
|
2797
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2798
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2793
|
+
var tmp = $this$flatMapRequests.t3h_1;
|
|
2794
|
+
var tmp_0 = resolveParameters($this_parseParameters, (tmp instanceof OpenAPIV2PathItem ? tmp : THROW_CCE()).y2z_1);
|
|
2795
|
+
var tmp_1 = $this$flatMapRequests.v3h_1;
|
|
2796
|
+
var parameters = plus_0(tmp_0, resolveParameters($this_parseParameters, (tmp_1 instanceof OpenAPIV2Operation ? tmp_1 : THROW_CCE()).n33_1));
|
|
2797
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.v3h_1);
|
|
2798
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.s3h_1) + $this$flatMapRequests.u3h_1.a3_1 : tmp0_elvis_lhs;
|
|
2799
2799
|
// Inline function 'kotlin.collections.filter' call
|
|
2800
2800
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2801
2801
|
var destination = ArrayList_init_$Create$();
|
|
2802
2802
|
var _iterator__ex2g4s = parameters.t();
|
|
2803
2803
|
while (_iterator__ex2g4s.u()) {
|
|
2804
2804
|
var element = _iterator__ex2g4s.v();
|
|
2805
|
-
if (!element.
|
|
2805
|
+
if (!element.e33_1.equals(OpenAPIV2ParameterLocation_BODY_getInstance())) {
|
|
2806
2806
|
destination.x(element);
|
|
2807
2807
|
}
|
|
2808
2808
|
}
|
|
@@ -2812,13 +2812,13 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
2812
2812
|
var _iterator__ex2g4s_0 = destination.t();
|
|
2813
2813
|
while (_iterator__ex2g4s_0.u()) {
|
|
2814
2814
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
2815
|
-
var tmp0_safe_receiver = element_0.
|
|
2815
|
+
var tmp0_safe_receiver = element_0.f33_1;
|
|
2816
2816
|
var tmp_2;
|
|
2817
2817
|
if (tmp0_safe_receiver == null) {
|
|
2818
2818
|
tmp_2 = null;
|
|
2819
2819
|
} else {
|
|
2820
2820
|
// Inline function 'kotlin.let' call
|
|
2821
|
-
tmp_2 = flatten($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element_0.
|
|
2821
|
+
tmp_2 = flatten($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element_0.g33_1]));
|
|
2822
2822
|
}
|
|
2823
2823
|
var tmp1_elvis_lhs = tmp_2;
|
|
2824
2824
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -2829,12 +2829,12 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
2829
2829
|
}
|
|
2830
2830
|
function parseRequestBody$lambda($this_parseRequestBody) {
|
|
2831
2831
|
return function ($this$flatMapRequests) {
|
|
2832
|
-
var tmp = $this$flatMapRequests.
|
|
2833
|
-
var tmp_0 = resolveParameters($this_parseRequestBody, (tmp instanceof OpenAPIV2PathItem ? tmp : THROW_CCE()).
|
|
2834
|
-
var tmp_1 = $this$flatMapRequests.
|
|
2835
|
-
var parameters = plus_0(tmp_0, resolveParameters($this_parseRequestBody, (tmp_1 instanceof OpenAPIV2Operation ? tmp_1 : THROW_CCE()).
|
|
2836
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2837
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2832
|
+
var tmp = $this$flatMapRequests.t3h_1;
|
|
2833
|
+
var tmp_0 = resolveParameters($this_parseRequestBody, (tmp instanceof OpenAPIV2PathItem ? tmp : THROW_CCE()).y2z_1);
|
|
2834
|
+
var tmp_1 = $this$flatMapRequests.v3h_1;
|
|
2835
|
+
var parameters = plus_0(tmp_0, resolveParameters($this_parseRequestBody, (tmp_1 instanceof OpenAPIV2Operation ? tmp_1 : THROW_CCE()).n33_1));
|
|
2836
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.v3h_1);
|
|
2837
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.s3h_1) + $this$flatMapRequests.u3h_1.a3_1 : tmp0_elvis_lhs;
|
|
2838
2838
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2839
2839
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2840
2840
|
var destination = ArrayList_init_$Create$();
|
|
@@ -2842,17 +2842,17 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2842
2842
|
while (_iterator__ex2g4s.u()) {
|
|
2843
2843
|
var element = _iterator__ex2g4s.v();
|
|
2844
2844
|
var tmp_2;
|
|
2845
|
-
if (!(element.
|
|
2846
|
-
var tmp_3 = toDescriptionAnnotationList(element.
|
|
2847
|
-
var tmp_4 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.
|
|
2845
|
+
if (!(element.c33_1 == null)) {
|
|
2846
|
+
var tmp_3 = toDescriptionAnnotationList(element.k32_1);
|
|
2847
|
+
var tmp_4 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.g33_1])));
|
|
2848
2848
|
// Inline function 'kotlin.collections.map' call
|
|
2849
|
-
var this_0 = ensureNotNull(element.
|
|
2849
|
+
var this_0 = ensureNotNull(element.c33_1);
|
|
2850
2850
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2851
2851
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2852
2852
|
var _iterator__ex2g4s_0 = this_0.t();
|
|
2853
2853
|
while (_iterator__ex2g4s_0.u()) {
|
|
2854
2854
|
var item = _iterator__ex2g4s_0.v();
|
|
2855
|
-
var tmp$ret$0 = item.
|
|
2855
|
+
var tmp$ret$0 = item.ix();
|
|
2856
2856
|
destination_0.x(tmp$ret$0);
|
|
2857
2857
|
}
|
|
2858
2858
|
tmp_2 = listOf(new Enum(null, tmp_3, tmp_4, toSet(destination_0)));
|
|
@@ -2863,7 +2863,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2863
2863
|
addAll(destination, list);
|
|
2864
2864
|
}
|
|
2865
2865
|
var enums = destination;
|
|
2866
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
2866
|
+
var tmp1_safe_receiver = $this$flatMapRequests.v3h_1.n33_1;
|
|
2867
2867
|
var tmp_5;
|
|
2868
2868
|
if (tmp1_safe_receiver == null) {
|
|
2869
2869
|
tmp_5 = null;
|
|
@@ -2890,7 +2890,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2890
2890
|
var _iterator__ex2g4s_2 = tmp2_safe_receiver.t();
|
|
2891
2891
|
while (_iterator__ex2g4s_2.u()) {
|
|
2892
2892
|
var element_0 = _iterator__ex2g4s_2.v();
|
|
2893
|
-
if (element_0.
|
|
2893
|
+
if (element_0.e33_1.equals(OpenAPIV2ParameterLocation_BODY_getInstance())) {
|
|
2894
2894
|
destination_2.x(element_0);
|
|
2895
2895
|
}
|
|
2896
2896
|
}
|
|
@@ -2907,18 +2907,18 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2907
2907
|
var _iterator__ex2g4s_3 = tmp3_safe_receiver.t();
|
|
2908
2908
|
while (_iterator__ex2g4s_3.u()) {
|
|
2909
2909
|
var element_1 = _iterator__ex2g4s_3.v();
|
|
2910
|
-
var schema = element_1.
|
|
2910
|
+
var schema = element_1.f33_1;
|
|
2911
2911
|
var tmp_8;
|
|
2912
2912
|
if (schema instanceof OpenAPIV2Schema) {
|
|
2913
|
-
var tmp0_subject = schema.
|
|
2913
|
+
var tmp0_subject = schema.z30_1;
|
|
2914
2914
|
var tmp_9;
|
|
2915
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
2915
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.b3_1) {
|
|
2916
2916
|
case -1:
|
|
2917
2917
|
case 5:
|
|
2918
2918
|
tmp_9 = flatten_0($this_parseRequestBody, schema, className([name, 'RequestBody']));
|
|
2919
2919
|
break;
|
|
2920
2920
|
case 4:
|
|
2921
|
-
var tmp1_safe_receiver_0 = schema.
|
|
2921
|
+
var tmp1_safe_receiver_0 = schema.n31_1;
|
|
2922
2922
|
var tmp_10;
|
|
2923
2923
|
if (tmp1_safe_receiver_0 == null) {
|
|
2924
2924
|
tmp_10 = null;
|
|
@@ -2952,28 +2952,28 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2952
2952
|
}
|
|
2953
2953
|
function parseResponseBody$lambda($this_parseResponseBody) {
|
|
2954
2954
|
return function ($this$flatMapResponses) {
|
|
2955
|
-
var tmp = $this$flatMapResponses.
|
|
2956
|
-
var schema = resolve($this_parseResponseBody, isInterface(tmp, OpenAPIV2ResponseOrReference) ? tmp : THROW_CCE()).
|
|
2957
|
-
var tmp_0 = $this$flatMapResponses.
|
|
2955
|
+
var tmp = $this$flatMapResponses.b3i_1;
|
|
2956
|
+
var schema = resolve($this_parseResponseBody, isInterface(tmp, OpenAPIV2ResponseOrReference) ? tmp : THROW_CCE()).j34_1;
|
|
2957
|
+
var tmp_0 = $this$flatMapResponses.z3h_1;
|
|
2958
2958
|
var tmp0_elvis_lhs = toName(tmp_0 instanceof OpenAPIV2Operation ? tmp_0 : THROW_CCE());
|
|
2959
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
2959
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.w3h_1) + $this$flatMapResponses.y3h_1.a3_1 : tmp0_elvis_lhs;
|
|
2960
2960
|
var tmp_1;
|
|
2961
2961
|
if (schema instanceof OpenAPIV2Schema) {
|
|
2962
|
-
var tmp2_subject = schema.
|
|
2962
|
+
var tmp2_subject = schema.z30_1;
|
|
2963
2963
|
var tmp_2;
|
|
2964
|
-
switch (tmp2_subject == null ? -1 : tmp2_subject.
|
|
2964
|
+
switch (tmp2_subject == null ? -1 : tmp2_subject.b3_1) {
|
|
2965
2965
|
case -1:
|
|
2966
2966
|
case 5:
|
|
2967
|
-
tmp_2 = flatten_0($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
2967
|
+
tmp_2 = flatten_0($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.a3i_1), 'ResponseBody']));
|
|
2968
2968
|
break;
|
|
2969
2969
|
case 4:
|
|
2970
|
-
var tmp3_safe_receiver = schema.
|
|
2970
|
+
var tmp3_safe_receiver = schema.n31_1;
|
|
2971
2971
|
var tmp_3;
|
|
2972
2972
|
if (tmp3_safe_receiver == null) {
|
|
2973
2973
|
tmp_3 = null;
|
|
2974
2974
|
} else {
|
|
2975
2975
|
// Inline function 'kotlin.let' call
|
|
2976
|
-
tmp_3 = flatten($this_parseResponseBody, tmp3_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
2976
|
+
tmp_3 = flatten($this_parseResponseBody, tmp3_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.a3i_1), 'ResponseBody']));
|
|
2977
2977
|
}
|
|
2978
2978
|
|
|
2979
2979
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -3017,7 +3017,7 @@ function emitComponents($this, _this__u8e3s4, logger) {
|
|
|
3017
3017
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3018
3018
|
while (_iterator__ex2g4s_0.u()) {
|
|
3019
3019
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3020
|
-
var tmp_0 = element_0.
|
|
3020
|
+
var tmp_0 = element_0.vq().l1();
|
|
3021
3021
|
var tmp_1;
|
|
3022
3022
|
if (element_0 instanceof Enum) {
|
|
3023
3023
|
tmp_1 = emit_3(OpenAPIV3Emitter_getInstance(), element_0);
|
|
@@ -3048,10 +3048,10 @@ function emitComponents($this, _this__u8e3s4, logger) {
|
|
|
3048
3048
|
}
|
|
3049
3049
|
// Inline function 'kotlin.also' call
|
|
3050
3050
|
var this_0 = tmp_1;
|
|
3051
|
-
logger.
|
|
3051
|
+
logger.sq('Emitting ' + getKClassFromExpression(element_0).o() + ' ' + element_0.vq().l1());
|
|
3052
3052
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3053
3053
|
var pair = to(tmp_0, this_0);
|
|
3054
|
-
destination_0.
|
|
3054
|
+
destination_0.w2(pair.we_1, pair.xe_1);
|
|
3055
3055
|
}
|
|
3056
3056
|
// Inline function 'kotlin.let' call
|
|
3057
3057
|
return new OpenAPIV3Components(destination_0);
|
|
@@ -3074,13 +3074,13 @@ function emitPaths_0($this, _this__u8e3s4, logger) {
|
|
|
3074
3074
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3075
3075
|
while (_iterator__ex2g4s_0.u()) {
|
|
3076
3076
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3077
|
-
var key = element_0.
|
|
3077
|
+
var key = element_0.gp_1;
|
|
3078
3078
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
3079
|
-
var value = destination_0.
|
|
3079
|
+
var value = destination_0.p2(key);
|
|
3080
3080
|
var tmp;
|
|
3081
3081
|
if (value == null) {
|
|
3082
3082
|
var answer = ArrayList_init_$Create$();
|
|
3083
|
-
destination_0.
|
|
3083
|
+
destination_0.w2(key, answer);
|
|
3084
3084
|
tmp = answer;
|
|
3085
3085
|
} else {
|
|
3086
3086
|
tmp = value;
|
|
@@ -3092,14 +3092,14 @@ function emitPaths_0($this, _this__u8e3s4, logger) {
|
|
|
3092
3092
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3093
3093
|
var destination_1 = ArrayList_init_$Create$_0(destination_0.a1());
|
|
3094
3094
|
// Inline function 'kotlin.collections.iterator' call
|
|
3095
|
-
var _iterator__ex2g4s_1 = destination_0.
|
|
3095
|
+
var _iterator__ex2g4s_1 = destination_0.j1().t();
|
|
3096
3096
|
while (_iterator__ex2g4s_1.u()) {
|
|
3097
3097
|
var item = _iterator__ex2g4s_1.v();
|
|
3098
3098
|
// Inline function 'kotlin.collections.component1' call
|
|
3099
|
-
var path = item.
|
|
3099
|
+
var path = item.k1();
|
|
3100
3100
|
// Inline function 'kotlin.collections.component2' call
|
|
3101
|
-
var endpoints = item.
|
|
3102
|
-
logger.
|
|
3101
|
+
var endpoints = item.l1();
|
|
3102
|
+
logger.sq('Emitting endpoints for path ' + emitSegment_0(OpenAPIV3Emitter_getInstance(), path));
|
|
3103
3103
|
var tmp_0 = _Path___init__impl__6uf4pw(emitSegment_0(OpenAPIV3Emitter_getInstance(), path));
|
|
3104
3104
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3105
3105
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
@@ -3142,31 +3142,31 @@ function emitPaths_0($this, _this__u8e3s4, logger) {
|
|
|
3142
3142
|
return toMap(destination_1);
|
|
3143
3143
|
}
|
|
3144
3144
|
function emit_1($this, _this__u8e3s4) {
|
|
3145
|
-
var type = _this__u8e3s4.
|
|
3145
|
+
var type = _this__u8e3s4.cr_1.pu_1;
|
|
3146
3146
|
var tmp;
|
|
3147
3147
|
if (type instanceof Integer) {
|
|
3148
3148
|
var tmp4_type = OpenAPIV3Type_INTEGER_getInstance();
|
|
3149
|
-
var tmp0_safe_receiver = type.
|
|
3150
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3149
|
+
var tmp0_safe_receiver = type.ut_1;
|
|
3150
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pt_1;
|
|
3151
3151
|
var tmp5_minimum = tmp1_safe_receiver == null ? null : toDouble(tmp1_safe_receiver);
|
|
3152
|
-
var tmp2_safe_receiver = type.
|
|
3153
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
3152
|
+
var tmp2_safe_receiver = type.ut_1;
|
|
3153
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.qt_1;
|
|
3154
3154
|
var tmp6_maximum = tmp3_safe_receiver == null ? null : toDouble(tmp3_safe_receiver);
|
|
3155
3155
|
tmp = new OpenAPIV3Schema(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp4_type, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 'int32', tmp6_maximum, VOID, tmp5_minimum);
|
|
3156
3156
|
} else {
|
|
3157
3157
|
if (type instanceof Number_0) {
|
|
3158
3158
|
var tmp11_type = OpenAPIV3Type_NUMBER_getInstance();
|
|
3159
|
-
var tmp7_safe_receiver = type.
|
|
3160
|
-
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.
|
|
3159
|
+
var tmp7_safe_receiver = type.xt_1;
|
|
3160
|
+
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.pt_1;
|
|
3161
3161
|
var tmp12_minimum = tmp8_safe_receiver == null ? null : toDouble(tmp8_safe_receiver);
|
|
3162
|
-
var tmp9_safe_receiver = type.
|
|
3163
|
-
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.
|
|
3162
|
+
var tmp9_safe_receiver = type.xt_1;
|
|
3163
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.qt_1;
|
|
3164
3164
|
var tmp13_maximum = tmp10_safe_receiver == null ? null : toDouble(tmp10_safe_receiver);
|
|
3165
3165
|
tmp = new OpenAPIV3Schema(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp11_type, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 'float', tmp13_maximum, VOID, tmp12_minimum);
|
|
3166
3166
|
} else {
|
|
3167
3167
|
if (type instanceof String_0) {
|
|
3168
3168
|
var tmp_0 = OpenAPIV3Type_STRING_getInstance();
|
|
3169
|
-
var tmp14_safe_receiver = type.
|
|
3169
|
+
var tmp14_safe_receiver = type.rt_1;
|
|
3170
3170
|
var tmp_1;
|
|
3171
3171
|
var tmp_2 = tmp14_safe_receiver;
|
|
3172
3172
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2)) == null) {
|
|
@@ -3191,10 +3191,10 @@ function emit_1($this, _this__u8e3s4) {
|
|
|
3191
3191
|
return tmp;
|
|
3192
3192
|
}
|
|
3193
3193
|
function emit_2($this, _this__u8e3s4) {
|
|
3194
|
-
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.
|
|
3194
|
+
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.uo_1);
|
|
3195
3195
|
var tmp;
|
|
3196
3196
|
if (tmp0_elvis_lhs == null) {
|
|
3197
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
3197
|
+
var tmp1_safe_receiver = _this__u8e3s4.to_1;
|
|
3198
3198
|
var tmp_0;
|
|
3199
3199
|
var tmp_1 = tmp1_safe_receiver;
|
|
3200
3200
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3208,7 +3208,7 @@ function emit_2($this, _this__u8e3s4) {
|
|
|
3208
3208
|
}
|
|
3209
3209
|
var tmp2_description = tmp;
|
|
3210
3210
|
// Inline function 'kotlin.collections.associate' call
|
|
3211
|
-
var this_0 = _this__u8e3s4.
|
|
3211
|
+
var this_0 = _this__u8e3s4.wo_1.so_1;
|
|
3212
3212
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
3213
3213
|
// Inline function 'kotlin.collections.associateTo' call
|
|
3214
3214
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -3217,16 +3217,16 @@ function emit_2($this, _this__u8e3s4) {
|
|
|
3217
3217
|
var element = _iterator__ex2g4s.v();
|
|
3218
3218
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3219
3219
|
var pair = emitSchema(OpenAPIV3Emitter_getInstance(), element);
|
|
3220
|
-
destination.
|
|
3220
|
+
destination.w2(pair.we_1, pair.xe_1);
|
|
3221
3221
|
}
|
|
3222
3222
|
// Inline function 'kotlin.collections.filter' call
|
|
3223
|
-
var tmp0 = _this__u8e3s4.
|
|
3223
|
+
var tmp0 = _this__u8e3s4.wo_1.so_1;
|
|
3224
3224
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3225
3225
|
var destination_0 = ArrayList_init_$Create$();
|
|
3226
3226
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
3227
3227
|
while (_iterator__ex2g4s_0.u()) {
|
|
3228
3228
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3229
|
-
if (!element_0.
|
|
3229
|
+
if (!element_0.bp_1.du()) {
|
|
3230
3230
|
destination_0.x(element_0);
|
|
3231
3231
|
}
|
|
3232
3232
|
}
|
|
@@ -3236,7 +3236,7 @@ function emit_2($this, _this__u8e3s4) {
|
|
|
3236
3236
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
3237
3237
|
while (_iterator__ex2g4s_1.u()) {
|
|
3238
3238
|
var item = _iterator__ex2g4s_1.v();
|
|
3239
|
-
var tmp$ret$7 = item.
|
|
3239
|
+
var tmp$ret$7 = item.ap_1.l1();
|
|
3240
3240
|
destination_1.x(tmp$ret$7);
|
|
3241
3241
|
}
|
|
3242
3242
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -3251,10 +3251,10 @@ function emit_2($this, _this__u8e3s4) {
|
|
|
3251
3251
|
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);
|
|
3252
3252
|
}
|
|
3253
3253
|
function emit_3($this, _this__u8e3s4) {
|
|
3254
|
-
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.
|
|
3254
|
+
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.fr_1);
|
|
3255
3255
|
var tmp;
|
|
3256
3256
|
if (tmp0_elvis_lhs == null) {
|
|
3257
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
3257
|
+
var tmp1_safe_receiver = _this__u8e3s4.er_1;
|
|
3258
3258
|
var tmp_0;
|
|
3259
3259
|
var tmp_1 = tmp1_safe_receiver;
|
|
3260
3260
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3269,7 +3269,7 @@ function emit_3($this, _this__u8e3s4) {
|
|
|
3269
3269
|
var tmp2_description = tmp;
|
|
3270
3270
|
var tmp3_type = OpenAPIV3Type_STRING_getInstance();
|
|
3271
3271
|
// Inline function 'kotlin.collections.map' call
|
|
3272
|
-
var this_0 = _this__u8e3s4.
|
|
3272
|
+
var this_0 = _this__u8e3s4.hr_1;
|
|
3273
3273
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3274
3274
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3275
3275
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -3281,10 +3281,10 @@ function emit_3($this, _this__u8e3s4) {
|
|
|
3281
3281
|
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);
|
|
3282
3282
|
}
|
|
3283
3283
|
function emit_4($this, _this__u8e3s4) {
|
|
3284
|
-
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.
|
|
3284
|
+
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.po_1);
|
|
3285
3285
|
var tmp;
|
|
3286
3286
|
if (tmp0_elvis_lhs == null) {
|
|
3287
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
3287
|
+
var tmp1_safe_receiver = _this__u8e3s4.oo_1;
|
|
3288
3288
|
var tmp_0;
|
|
3289
3289
|
var tmp_1 = tmp1_safe_receiver;
|
|
3290
3290
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3299,7 +3299,7 @@ function emit_4($this, _this__u8e3s4) {
|
|
|
3299
3299
|
var tmp2_description = tmp;
|
|
3300
3300
|
var tmp3_type = OpenAPIV3Type_STRING_getInstance();
|
|
3301
3301
|
// Inline function 'kotlin.collections.map' call
|
|
3302
|
-
var this_0 = _this__u8e3s4.
|
|
3302
|
+
var this_0 = _this__u8e3s4.ro_1;
|
|
3303
3303
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3304
3304
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3305
3305
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -3317,7 +3317,7 @@ function emit_5($this, _this__u8e3s4, method) {
|
|
|
3317
3317
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
3318
3318
|
while (_iterator__ex2g4s.u()) {
|
|
3319
3319
|
var element = _iterator__ex2g4s.v();
|
|
3320
|
-
if (element.
|
|
3320
|
+
if (element.fp_1.equals(method)) {
|
|
3321
3321
|
destination.x(element);
|
|
3322
3322
|
}
|
|
3323
3323
|
}
|
|
@@ -3333,11 +3333,11 @@ function emit_5($this, _this__u8e3s4, method) {
|
|
|
3333
3333
|
return firstOrNull(destination_0);
|
|
3334
3334
|
}
|
|
3335
3335
|
function emit_6($this, _this__u8e3s4) {
|
|
3336
|
-
var tmp3_operationId = _this__u8e3s4.
|
|
3337
|
-
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.
|
|
3336
|
+
var tmp3_operationId = _this__u8e3s4.ep_1.l1();
|
|
3337
|
+
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.dp_1);
|
|
3338
3338
|
var tmp;
|
|
3339
3339
|
if (tmp0_elvis_lhs == null) {
|
|
3340
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
3340
|
+
var tmp1_safe_receiver = _this__u8e3s4.cp_1;
|
|
3341
3341
|
var tmp_0;
|
|
3342
3342
|
var tmp_1 = tmp1_safe_receiver;
|
|
3343
3343
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3351,7 +3351,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3351
3351
|
}
|
|
3352
3352
|
var tmp4_description = tmp;
|
|
3353
3353
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3354
|
-
var tmp0 = _this__u8e3s4.
|
|
3354
|
+
var tmp0 = _this__u8e3s4.gp_1;
|
|
3355
3355
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
3356
3356
|
var destination = ArrayList_init_$Create$();
|
|
3357
3357
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -3372,7 +3372,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3372
3372
|
}
|
|
3373
3373
|
var tmp_2 = destination_0;
|
|
3374
3374
|
// Inline function 'kotlin.collections.map' call
|
|
3375
|
-
var this_0 = _this__u8e3s4.
|
|
3375
|
+
var this_0 = _this__u8e3s4.hp_1;
|
|
3376
3376
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3377
3377
|
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3378
3378
|
var _iterator__ex2g4s_1 = this_0.t();
|
|
@@ -3383,7 +3383,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3383
3383
|
}
|
|
3384
3384
|
var tmp_3 = plus_0(tmp_2, destination_1);
|
|
3385
3385
|
// Inline function 'kotlin.collections.map' call
|
|
3386
|
-
var this_1 = _this__u8e3s4.
|
|
3386
|
+
var this_1 = _this__u8e3s4.ip_1;
|
|
3387
3387
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3388
3388
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
3389
3389
|
var _iterator__ex2g4s_2 = this_1.t();
|
|
@@ -3394,14 +3394,14 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3394
3394
|
}
|
|
3395
3395
|
var tmp5_parameters = plus_0(tmp_3, destination_2);
|
|
3396
3396
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3397
|
-
var tmp0_0 = _this__u8e3s4.
|
|
3397
|
+
var tmp0_0 = _this__u8e3s4.jp_1;
|
|
3398
3398
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3399
3399
|
var destination_3 = ArrayList_init_$Create$();
|
|
3400
3400
|
// Inline function 'kotlin.collections.forEach' call
|
|
3401
3401
|
var _iterator__ex2g4s_3 = tmp0_0.t();
|
|
3402
3402
|
while (_iterator__ex2g4s_3.u()) {
|
|
3403
3403
|
var element_0 = _iterator__ex2g4s_3.v();
|
|
3404
|
-
var tmp0_safe_receiver = element_0.
|
|
3404
|
+
var tmp0_safe_receiver = element_0.np_1;
|
|
3405
3405
|
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : emit_7(OpenAPIV3Emitter_getInstance(), tmp0_safe_receiver);
|
|
3406
3406
|
if (tmp0_safe_receiver_0 == null)
|
|
3407
3407
|
null;
|
|
@@ -3425,7 +3425,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3425
3425
|
tmp_5 = null;
|
|
3426
3426
|
} else {
|
|
3427
3427
|
// Inline function 'kotlin.let' call
|
|
3428
|
-
var tmp0_1 = _this__u8e3s4.
|
|
3428
|
+
var tmp0_1 = _this__u8e3s4.jp_1;
|
|
3429
3429
|
var tmp$ret$21;
|
|
3430
3430
|
$l$block_0: {
|
|
3431
3431
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -3442,9 +3442,9 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3442
3442
|
var _iterator__ex2g4s_4 = tmp0_1.t();
|
|
3443
3443
|
while (_iterator__ex2g4s_4.u()) {
|
|
3444
3444
|
var element_1 = _iterator__ex2g4s_4.v();
|
|
3445
|
-
var tmp0_safe_receiver_1 = element_1.
|
|
3446
|
-
var tmp1_safe_receiver_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.
|
|
3447
|
-
if ((tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
3445
|
+
var tmp0_safe_receiver_1 = element_1.np_1;
|
|
3446
|
+
var tmp1_safe_receiver_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.pp_1;
|
|
3447
|
+
if ((tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.du()) === true) {
|
|
3448
3448
|
tmp$ret$21 = true;
|
|
3449
3449
|
break $l$block_0;
|
|
3450
3450
|
}
|
|
@@ -3455,19 +3455,19 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3455
3455
|
}
|
|
3456
3456
|
var tmp6_requestBody = tmp_5;
|
|
3457
3457
|
// Inline function 'kotlin.collections.groupBy' call
|
|
3458
|
-
var tmp0_2 = _this__u8e3s4.
|
|
3458
|
+
var tmp0_2 = _this__u8e3s4.kp_1;
|
|
3459
3459
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
3460
3460
|
var destination_4 = LinkedHashMap_init_$Create$_0();
|
|
3461
3461
|
var _iterator__ex2g4s_5 = tmp0_2.t();
|
|
3462
3462
|
while (_iterator__ex2g4s_5.u()) {
|
|
3463
3463
|
var element_2 = _iterator__ex2g4s_5.v();
|
|
3464
|
-
var key = element_2.
|
|
3464
|
+
var key = element_2.qp_1;
|
|
3465
3465
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
3466
|
-
var value = destination_4.
|
|
3466
|
+
var value = destination_4.p2(key);
|
|
3467
3467
|
var tmp_7;
|
|
3468
3468
|
if (value == null) {
|
|
3469
3469
|
var answer = ArrayList_init_$Create$();
|
|
3470
|
-
destination_4.
|
|
3470
|
+
destination_4.w2(key, answer);
|
|
3471
3471
|
tmp_7 = answer;
|
|
3472
3472
|
} else {
|
|
3473
3473
|
tmp_7 = value;
|
|
@@ -3479,13 +3479,13 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3479
3479
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3480
3480
|
var destination_5 = ArrayList_init_$Create$_0(destination_4.a1());
|
|
3481
3481
|
// Inline function 'kotlin.collections.iterator' call
|
|
3482
|
-
var _iterator__ex2g4s_6 = destination_4.
|
|
3482
|
+
var _iterator__ex2g4s_6 = destination_4.j1().t();
|
|
3483
3483
|
while (_iterator__ex2g4s_6.u()) {
|
|
3484
3484
|
var item_2 = _iterator__ex2g4s_6.v();
|
|
3485
3485
|
// Inline function 'kotlin.collections.component1' call
|
|
3486
|
-
var statusCode = item_2.
|
|
3486
|
+
var statusCode = item_2.k1();
|
|
3487
3487
|
// Inline function 'kotlin.collections.component2' call
|
|
3488
|
-
var res = item_2.
|
|
3488
|
+
var res = item_2.l1();
|
|
3489
3489
|
var tmp_8 = _StatusCode___init__impl__t1yi9q(statusCode);
|
|
3490
3490
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3491
3491
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -3493,7 +3493,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3493
3493
|
var _iterator__ex2g4s_7 = res.t();
|
|
3494
3494
|
while (_iterator__ex2g4s_7.u()) {
|
|
3495
3495
|
var element_3 = _iterator__ex2g4s_7.v();
|
|
3496
|
-
var list_0 = element_3.
|
|
3496
|
+
var list_0 = element_3.rp_1;
|
|
3497
3497
|
addAll(destination_6, list_0);
|
|
3498
3498
|
}
|
|
3499
3499
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -3505,10 +3505,10 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3505
3505
|
var element_4 = _iterator__ex2g4s_8.v();
|
|
3506
3506
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3507
3507
|
var pair = emitHeader(OpenAPIV3Emitter_getInstance(), element_4);
|
|
3508
|
-
destination_7.
|
|
3508
|
+
destination_7.w2(pair.we_1, pair.xe_1);
|
|
3509
3509
|
}
|
|
3510
|
-
var tmp0_elvis_lhs_0 = findDescription(first(res).
|
|
3511
|
-
var tmp2_description = tmp0_elvis_lhs_0 == null ? _this__u8e3s4.
|
|
3510
|
+
var tmp0_elvis_lhs_0 = findDescription(first(res).tp_1);
|
|
3511
|
+
var tmp2_description = tmp0_elvis_lhs_0 == null ? _this__u8e3s4.ep_1.l1() + ' ' + statusCode + ' response' : tmp0_elvis_lhs_0;
|
|
3512
3512
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3513
3513
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3514
3514
|
var destination_8 = ArrayList_init_$Create$();
|
|
@@ -3516,7 +3516,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3516
3516
|
var _iterator__ex2g4s_9 = res.t();
|
|
3517
3517
|
while (_iterator__ex2g4s_9.u()) {
|
|
3518
3518
|
var element_5 = _iterator__ex2g4s_9.v();
|
|
3519
|
-
var tmp0_safe_receiver_2 = element_5.
|
|
3519
|
+
var tmp0_safe_receiver_2 = element_5.sp_1;
|
|
3520
3520
|
if (tmp0_safe_receiver_2 == null)
|
|
3521
3521
|
null;
|
|
3522
3522
|
else {
|
|
@@ -3533,7 +3533,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3533
3533
|
var element_6 = _iterator__ex2g4s_10.v();
|
|
3534
3534
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3535
3535
|
var pair_0 = emit_7(OpenAPIV3Emitter_getInstance(), element_6);
|
|
3536
|
-
destination_9.
|
|
3536
|
+
destination_9.w2(pair_0.we_1, pair_0.xe_1);
|
|
3537
3537
|
}
|
|
3538
3538
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
3539
3539
|
var tmp_9;
|
|
@@ -3553,29 +3553,29 @@ function emitSegment_0($this, _this__u8e3s4) {
|
|
|
3553
3553
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenAPIV3Emitter$emitSegment$lambda);
|
|
3554
3554
|
}
|
|
3555
3555
|
function emitParameter_0($this, _this__u8e3s4, location) {
|
|
3556
|
-
var tmp0_name = _this__u8e3s4.
|
|
3557
|
-
var tmp1_schema = emitSchema_0($this, _this__u8e3s4.
|
|
3558
|
-
var tmp2_description = findDescription(_this__u8e3s4.
|
|
3559
|
-
var tmp3_required = !_this__u8e3s4.
|
|
3556
|
+
var tmp0_name = _this__u8e3s4.ap_1.l1();
|
|
3557
|
+
var tmp1_schema = emitSchema_0($this, _this__u8e3s4.bp_1);
|
|
3558
|
+
var tmp2_description = findDescription(_this__u8e3s4.zo_1);
|
|
3559
|
+
var tmp3_required = !_this__u8e3s4.bp_1.du();
|
|
3560
3560
|
return new OpenAPIV3Parameter(tmp2_description, tmp3_required, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, location, tmp1_schema, tmp0_name);
|
|
3561
3561
|
}
|
|
3562
3562
|
function emitParameter_1($this, _this__u8e3s4) {
|
|
3563
3563
|
var tmp0_in = OpenAPIV3ParameterLocation_PATH_getInstance();
|
|
3564
|
-
var tmp1_name = _this__u8e3s4.
|
|
3565
|
-
var tmp2_schema = emitSchema_0($this, _this__u8e3s4.
|
|
3566
|
-
var tmp3_required = !_this__u8e3s4.
|
|
3564
|
+
var tmp1_name = _this__u8e3s4.lp_1.l1();
|
|
3565
|
+
var tmp2_schema = emitSchema_0($this, _this__u8e3s4.mp_1);
|
|
3566
|
+
var tmp3_required = !_this__u8e3s4.mp_1.du();
|
|
3567
3567
|
return new OpenAPIV3Parameter(VOID, tmp3_required, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_in, tmp2_schema, tmp1_name);
|
|
3568
3568
|
}
|
|
3569
3569
|
function emitHeader($this, _this__u8e3s4) {
|
|
3570
|
-
return to(_this__u8e3s4.
|
|
3570
|
+
return to(_this__u8e3s4.ap_1.l1(), emitHeader_0($this, _this__u8e3s4.bp_1, findDescription(_this__u8e3s4.zo_1)));
|
|
3571
3571
|
}
|
|
3572
3572
|
function emitSchema($this, _this__u8e3s4) {
|
|
3573
|
-
var tmp = _this__u8e3s4.
|
|
3573
|
+
var tmp = _this__u8e3s4.ap_1.l1();
|
|
3574
3574
|
// Inline function 'kotlin.let' call
|
|
3575
|
-
var it = emitSchema_0($this, _this__u8e3s4.
|
|
3575
|
+
var it = emitSchema_0($this, _this__u8e3s4.bp_1);
|
|
3576
3576
|
var tmp_0;
|
|
3577
3577
|
if (it instanceof OpenAPIV3Schema) {
|
|
3578
|
-
tmp_0 = it.
|
|
3578
|
+
tmp_0 = it.l3b(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription(_this__u8e3s4.zo_1));
|
|
3579
3579
|
} else {
|
|
3580
3580
|
if (it instanceof OpenAPIV3Reference) {
|
|
3581
3581
|
tmp_0 = it;
|
|
@@ -3589,13 +3589,13 @@ function emitSchema($this, _this__u8e3s4) {
|
|
|
3589
3589
|
function emitHeader_0($this, _this__u8e3s4, description) {
|
|
3590
3590
|
var tmp;
|
|
3591
3591
|
if (_this__u8e3s4 instanceof Dict) {
|
|
3592
|
-
tmp = new OpenAPIV3Reference(_Ref___init__impl__7qfl46('#/components/headers/' + _this__u8e3s4.
|
|
3592
|
+
tmp = new OpenAPIV3Reference(_Ref___init__impl__7qfl46('#/components/headers/' + _this__u8e3s4.eo_1));
|
|
3593
3593
|
} else {
|
|
3594
3594
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
3595
|
-
tmp = new OpenAPIV3Reference(_Ref___init__impl__7qfl46('#/components/headers/' + _this__u8e3s4.
|
|
3595
|
+
tmp = new OpenAPIV3Reference(_Ref___init__impl__7qfl46('#/components/headers/' + _this__u8e3s4.bo_1));
|
|
3596
3596
|
} else {
|
|
3597
3597
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3598
|
-
tmp = new OpenAPIV3Reference(_Ref___init__impl__7qfl46('#/components/headers/' + _this__u8e3s4.
|
|
3598
|
+
tmp = new OpenAPIV3Reference(_Ref___init__impl__7qfl46('#/components/headers/' + _this__u8e3s4.lu_1));
|
|
3599
3599
|
} else {
|
|
3600
3600
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3601
3601
|
var tmp1_schema = emitSchema_0($this, _this__u8e3s4);
|
|
@@ -3621,19 +3621,19 @@ function emitHeader_0($this, _this__u8e3s4, description) {
|
|
|
3621
3621
|
function emitSchema_0($this, _this__u8e3s4) {
|
|
3622
3622
|
var tmp;
|
|
3623
3623
|
if (_this__u8e3s4 instanceof Dict) {
|
|
3624
|
-
var tmp_0 = _this__u8e3s4.
|
|
3624
|
+
var tmp_0 = _this__u8e3s4.co_1.du();
|
|
3625
3625
|
var tmp_1 = OpenAPIV3Type_OBJECT_getInstance();
|
|
3626
|
-
var tmp_2 = emitSchema_0($this, _this__u8e3s4.
|
|
3626
|
+
var tmp_2 = emitSchema_0($this, _this__u8e3s4.co_1);
|
|
3627
3627
|
tmp = new OpenAPIV3Schema(tmp_0, VOID, VOID, VOID, VOID, VOID, VOID, tmp_1, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, isInterface(tmp_2, OpenAPIV3SchemaOrReferenceOrBoolean) ? tmp_2 : THROW_CCE());
|
|
3628
3628
|
} else {
|
|
3629
3629
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
3630
|
-
tmp = new OpenAPIV3Schema(_this__u8e3s4.
|
|
3630
|
+
tmp = new OpenAPIV3Schema(_this__u8e3s4.zn_1.du(), VOID, VOID, VOID, VOID, VOID, VOID, OpenAPIV3Type_ARRAY_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitSchema_0($this, _this__u8e3s4.zn_1));
|
|
3631
3631
|
} else {
|
|
3632
3632
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3633
|
-
tmp = new OpenAPIV3Reference(_Ref___init__impl__7qfl46('#/components/schemas/' + _this__u8e3s4.
|
|
3633
|
+
tmp = new OpenAPIV3Reference(_Ref___init__impl__7qfl46('#/components/schemas/' + _this__u8e3s4.lu_1));
|
|
3634
3634
|
} else {
|
|
3635
3635
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3636
|
-
var tmp1_type = emitType_1($this, _this__u8e3s4.
|
|
3636
|
+
var tmp1_type = emitType_1($this, _this__u8e3s4.pu_1);
|
|
3637
3637
|
var tmp2_format = emitFormat(_this__u8e3s4);
|
|
3638
3638
|
var tmp3_pattern = emitPattern_0($this, _this__u8e3s4);
|
|
3639
3639
|
var tmp4_minimum = emitMinimum_0($this, _this__u8e3s4);
|
|
@@ -3683,15 +3683,15 @@ function emitType_1($this, _this__u8e3s4) {
|
|
|
3683
3683
|
return tmp;
|
|
3684
3684
|
}
|
|
3685
3685
|
function emit_7($this, _this__u8e3s4) {
|
|
3686
|
-
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.
|
|
3686
|
+
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.op_1)), new OpenAPIV3MediaType(emitSchema_0($this, _this__u8e3s4.pp_1)));
|
|
3687
3687
|
}
|
|
3688
3688
|
function emitPattern_0($this, _this__u8e3s4) {
|
|
3689
3689
|
var tmp;
|
|
3690
3690
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3691
|
-
var t = _this__u8e3s4.
|
|
3691
|
+
var t = _this__u8e3s4.pu_1;
|
|
3692
3692
|
var tmp_0;
|
|
3693
3693
|
if (t instanceof String_0) {
|
|
3694
|
-
var p = t.
|
|
3694
|
+
var p = t.rt_1;
|
|
3695
3695
|
var tmp_1;
|
|
3696
3696
|
var tmp_2 = p;
|
|
3697
3697
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2))instanceof RegExp_0) {
|
|
@@ -3712,16 +3712,16 @@ function emitPattern_0($this, _this__u8e3s4) {
|
|
|
3712
3712
|
function emitMinimum_0($this, _this__u8e3s4) {
|
|
3713
3713
|
var tmp;
|
|
3714
3714
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3715
|
-
var t = _this__u8e3s4.
|
|
3715
|
+
var t = _this__u8e3s4.pu_1;
|
|
3716
3716
|
var tmp_0;
|
|
3717
3717
|
if (t instanceof Number_0) {
|
|
3718
|
-
var tmp1_safe_receiver = t.
|
|
3719
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3718
|
+
var tmp1_safe_receiver = t.xt_1;
|
|
3719
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.pt_1;
|
|
3720
3720
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
3721
3721
|
} else {
|
|
3722
3722
|
if (t instanceof Integer) {
|
|
3723
|
-
var tmp3_safe_receiver = t.
|
|
3724
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
3723
|
+
var tmp3_safe_receiver = t.ut_1;
|
|
3724
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.pt_1;
|
|
3725
3725
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
3726
3726
|
} else {
|
|
3727
3727
|
tmp_0 = null;
|
|
@@ -3736,16 +3736,16 @@ function emitMinimum_0($this, _this__u8e3s4) {
|
|
|
3736
3736
|
function emitMaximum_0($this, _this__u8e3s4) {
|
|
3737
3737
|
var tmp;
|
|
3738
3738
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3739
|
-
var t = _this__u8e3s4.
|
|
3739
|
+
var t = _this__u8e3s4.pu_1;
|
|
3740
3740
|
var tmp_0;
|
|
3741
3741
|
if (t instanceof Number_0) {
|
|
3742
|
-
var tmp1_safe_receiver = t.
|
|
3743
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3742
|
+
var tmp1_safe_receiver = t.xt_1;
|
|
3743
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.qt_1;
|
|
3744
3744
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
3745
3745
|
} else {
|
|
3746
3746
|
if (t instanceof Integer) {
|
|
3747
|
-
var tmp3_safe_receiver = t.
|
|
3748
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
3747
|
+
var tmp3_safe_receiver = t.ut_1;
|
|
3748
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.qt_1;
|
|
3749
3749
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
3750
3750
|
} else {
|
|
3751
3751
|
tmp_0 = null;
|
|
@@ -3760,10 +3760,10 @@ function emitMaximum_0($this, _this__u8e3s4) {
|
|
|
3760
3760
|
function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
3761
3761
|
var tmp;
|
|
3762
3762
|
if (it instanceof Param) {
|
|
3763
|
-
tmp = '{' + it.
|
|
3763
|
+
tmp = '{' + it.lp_1.l1() + '}';
|
|
3764
3764
|
} else {
|
|
3765
3765
|
if (it instanceof Literal) {
|
|
3766
|
-
tmp = it.
|
|
3766
|
+
tmp = it.hq_1;
|
|
3767
3767
|
} else {
|
|
3768
3768
|
noWhenBranchMatchedException();
|
|
3769
3769
|
}
|
|
@@ -3772,14 +3772,14 @@ function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
|
3772
3772
|
}
|
|
3773
3773
|
function OpenAPIV3Emitter() {
|
|
3774
3774
|
OpenAPIV3Emitter_instance = this;
|
|
3775
|
-
this.
|
|
3775
|
+
this.g3i_1 = FileExtension_JSON_getInstance();
|
|
3776
3776
|
}
|
|
3777
|
-
protoOf(OpenAPIV3Emitter).
|
|
3778
|
-
return this.
|
|
3777
|
+
protoOf(OpenAPIV3Emitter).eq = function () {
|
|
3778
|
+
return this.g3i_1;
|
|
3779
3779
|
};
|
|
3780
|
-
protoOf(OpenAPIV3Emitter).
|
|
3780
|
+
protoOf(OpenAPIV3Emitter).on = function (ast, logger) {
|
|
3781
3781
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
3782
|
-
var this_0 = ast.
|
|
3782
|
+
var this_0 = ast.bq_1;
|
|
3783
3783
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3784
3784
|
var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
3785
3785
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -3787,30 +3787,30 @@ protoOf(OpenAPIV3Emitter).qn = function (ast, logger) {
|
|
|
3787
3787
|
var _iterator__ex2g4s = tmp0.t();
|
|
3788
3788
|
while (_iterator__ex2g4s.u()) {
|
|
3789
3789
|
var element = _iterator__ex2g4s.v();
|
|
3790
|
-
logger.
|
|
3791
|
-
var list = new NonEmptyList(element.
|
|
3790
|
+
logger.sq('Combining Nodes from ' + element.cq_1.dn_1 + ' ');
|
|
3791
|
+
var list = new NonEmptyList(element.dq_1);
|
|
3792
3792
|
addAll(destination, list);
|
|
3793
3793
|
}
|
|
3794
3794
|
// Inline function 'kotlin.let' call
|
|
3795
3795
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
3796
|
-
var tmp = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().
|
|
3796
|
+
var tmp = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().g3i_1.nq_1;
|
|
3797
3797
|
var tmp0_0 = get_json();
|
|
3798
3798
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
3799
|
-
var value = OpenAPIV3Emitter_getInstance().
|
|
3799
|
+
var value = OpenAPIV3Emitter_getInstance().h3i(it, null, logger);
|
|
3800
3800
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3801
|
-
var this_1 = tmp0_0.
|
|
3801
|
+
var this_1 = tmp0_0.y24();
|
|
3802
3802
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
3803
3803
|
var this_2 = serializer(this_1, createKType(getKClass(OpenAPIV3Model), arrayOf([]), false));
|
|
3804
3804
|
var tmp$ret$5 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
3805
|
-
var tmp$ret$6 = tmp0_0.
|
|
3805
|
+
var tmp$ret$6 = tmp0_0.l2l(tmp$ret$5, value);
|
|
3806
3806
|
// Inline function 'kotlin.let' call
|
|
3807
3807
|
var it_0 = new Emitted(tmp, tmp$ret$6);
|
|
3808
3808
|
return nonEmptyListOf(it_0, []);
|
|
3809
3809
|
};
|
|
3810
|
-
protoOf(OpenAPIV3Emitter).
|
|
3811
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
3810
|
+
protoOf(OpenAPIV3Emitter).h3i = function (statements, options, logger) {
|
|
3811
|
+
var tmp1_elvis_lhs = options == null ? null : options.i3i_1;
|
|
3812
3812
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
3813
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
3813
|
+
var tmp3_elvis_lhs = options == null ? null : options.j3i_1;
|
|
3814
3814
|
var tmp4_info = new InfoObject(tmp, VOID, VOID, VOID, VOID, tmp3_elvis_lhs == null ? '0.0.0' : tmp3_elvis_lhs);
|
|
3815
3815
|
var tmp5_paths = emitPaths_0(this, statements, logger);
|
|
3816
3816
|
var tmp6_components = emitComponents(this, statements, logger);
|
|
@@ -3824,15 +3824,15 @@ function OpenAPIV3Emitter_getInstance() {
|
|
|
3824
3824
|
}
|
|
3825
3825
|
function OpenAPIV3Parser$parse$lambda($strict) {
|
|
3826
3826
|
return function (it) {
|
|
3827
|
-
return new NonEmptyList(OpenAPIV3Parser_instance.
|
|
3827
|
+
return new NonEmptyList(OpenAPIV3Parser_instance.k3i((new OpenAPIV3(jsonDefault($strict))).a2z(it)));
|
|
3828
3828
|
};
|
|
3829
3829
|
}
|
|
3830
3830
|
function OpenAPIV3Parser() {
|
|
3831
3831
|
}
|
|
3832
|
-
protoOf(OpenAPIV3Parser).
|
|
3832
|
+
protoOf(OpenAPIV3Parser).f3i = function (moduleContent, strict) {
|
|
3833
3833
|
return parseOpenApi(moduleContent, OpenAPIV3Parser$parse$lambda(strict));
|
|
3834
3834
|
};
|
|
3835
|
-
protoOf(OpenAPIV3Parser).
|
|
3835
|
+
protoOf(OpenAPIV3Parser).k3i = function (_this__u8e3s4) {
|
|
3836
3836
|
// Inline function 'kotlin.collections.reduce' call
|
|
3837
3837
|
var iterator = listOf_0([parseEndpoints_0(_this__u8e3s4), parseParameters_0(_this__u8e3s4), parseRequestBody_0(_this__u8e3s4), parseResponseBody_0(_this__u8e3s4), parseDefinitions_0(_this__u8e3s4)]).t();
|
|
3838
3838
|
if (!iterator.u())
|
|
@@ -3847,7 +3847,7 @@ protoOf(OpenAPIV3Parser).f3i = function (_this__u8e3s4) {
|
|
|
3847
3847
|
var tmp = toNonEmptyListOrNull(resolveEndpointNameCollisions(tmp$ret$1));
|
|
3848
3848
|
// Inline function 'kotlin.let' call
|
|
3849
3849
|
var tmp_0 = tmp == null ? null : new NonEmptyList(tmp);
|
|
3850
|
-
var tmp_1 = tmp_0 == null ? null : tmp_0.
|
|
3850
|
+
var tmp_1 = tmp_0 == null ? null : tmp_0.yl_1;
|
|
3851
3851
|
var tmp0_0 = tmp_1 == null ? null : new NonEmptyList(tmp_1);
|
|
3852
3852
|
var tmp$ret$3;
|
|
3853
3853
|
$l$block: {
|
|
@@ -3856,7 +3856,7 @@ protoOf(OpenAPIV3Parser).f3i = function (_this__u8e3s4) {
|
|
|
3856
3856
|
var message = 'Cannot yield empty AST for OpenAPI v3';
|
|
3857
3857
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3858
3858
|
} else {
|
|
3859
|
-
tmp$ret$3 = tmp0_0.
|
|
3859
|
+
tmp$ret$3 = tmp0_0.yl_1;
|
|
3860
3860
|
break $l$block;
|
|
3861
3861
|
}
|
|
3862
3862
|
}
|
|
@@ -3868,29 +3868,29 @@ function OpenAPIV3Parser_getInstance() {
|
|
|
3868
3868
|
}
|
|
3869
3869
|
function parseEndpoints_0(_this__u8e3s4) {
|
|
3870
3870
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3871
|
-
var tmp0 = _this__u8e3s4.
|
|
3871
|
+
var tmp0 = _this__u8e3s4.n38_1;
|
|
3872
3872
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3873
3873
|
var destination = ArrayList_init_$Create$();
|
|
3874
3874
|
// Inline function 'kotlin.collections.iterator' call
|
|
3875
|
-
var _iterator__ex2g4s = tmp0.
|
|
3875
|
+
var _iterator__ex2g4s = tmp0.j1().t();
|
|
3876
3876
|
while (_iterator__ex2g4s.u()) {
|
|
3877
3877
|
var element = _iterator__ex2g4s.v();
|
|
3878
3878
|
// Inline function 'kotlin.collections.component1' call
|
|
3879
|
-
var path = element.
|
|
3879
|
+
var path = element.k1().a2x_1;
|
|
3880
3880
|
// Inline function 'kotlin.collections.component2' call
|
|
3881
|
-
var pathItem = element.
|
|
3881
|
+
var pathItem = element.l1();
|
|
3882
3882
|
// Inline function 'kotlin.collections.map' call
|
|
3883
3883
|
var this_0 = toOperationList(pathItem);
|
|
3884
3884
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3885
3885
|
var destination_0 = ArrayList_init_$Create$_0(this_0.a1());
|
|
3886
3886
|
// Inline function 'kotlin.collections.iterator' call
|
|
3887
|
-
var _iterator__ex2g4s_0 = this_0.
|
|
3887
|
+
var _iterator__ex2g4s_0 = this_0.j1().t();
|
|
3888
3888
|
while (_iterator__ex2g4s_0.u()) {
|
|
3889
3889
|
var item = _iterator__ex2g4s_0.v();
|
|
3890
3890
|
// Inline function 'kotlin.collections.component1' call
|
|
3891
|
-
var method = item.
|
|
3891
|
+
var method = item.k1();
|
|
3892
3892
|
// Inline function 'kotlin.collections.component2' call
|
|
3893
|
-
var operation = item.
|
|
3893
|
+
var operation = item.l1();
|
|
3894
3894
|
var tmp$ret$6 = to(method, operation instanceof OpenAPIV3Operation ? operation : THROW_CCE());
|
|
3895
3895
|
destination_0.x(tmp$ret$6);
|
|
3896
3896
|
}
|
|
@@ -3900,19 +3900,19 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
3900
3900
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
3901
3901
|
while (_iterator__ex2g4s_1.u()) {
|
|
3902
3902
|
var item_0 = _iterator__ex2g4s_1.v();
|
|
3903
|
-
var method_0 = item_0.
|
|
3904
|
-
var operation_0 = item_0.
|
|
3905
|
-
var parameters = plus_0(resolveParameters_0(_this__u8e3s4, pathItem.
|
|
3903
|
+
var method_0 = item_0.ne();
|
|
3904
|
+
var operation_0 = item_0.oe();
|
|
3905
|
+
var parameters = plus_0(resolveParameters_0(_this__u8e3s4, pathItem.v38_1), resolveParameters_0(_this__u8e3s4, operation_0.i3c_1));
|
|
3906
3906
|
var segments = toSegments_0(_this__u8e3s4, path, parameters, operation_0, method_0);
|
|
3907
3907
|
var tmp0_elvis_lhs = toName(operation_0);
|
|
3908
|
-
var name = tmp0_elvis_lhs == null ? toName_0(path) + method_0.
|
|
3908
|
+
var name = tmp0_elvis_lhs == null ? toName_0(path) + method_0.a3_1 : tmp0_elvis_lhs;
|
|
3909
3909
|
// Inline function 'kotlin.collections.filter' call
|
|
3910
3910
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3911
3911
|
var destination_2 = ArrayList_init_$Create$();
|
|
3912
3912
|
var _iterator__ex2g4s_2 = parameters.t();
|
|
3913
3913
|
while (_iterator__ex2g4s_2.u()) {
|
|
3914
3914
|
var element_0 = _iterator__ex2g4s_2.v();
|
|
3915
|
-
if (element_0.
|
|
3915
|
+
if (element_0.b3c_1.equals(OpenAPIV3ParameterLocation_QUERY_getInstance())) {
|
|
3916
3916
|
destination_2.x(element_0);
|
|
3917
3917
|
}
|
|
3918
3918
|
}
|
|
@@ -3922,7 +3922,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
3922
3922
|
var _iterator__ex2g4s_3 = destination_2.t();
|
|
3923
3923
|
while (_iterator__ex2g4s_3.u()) {
|
|
3924
3924
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
3925
|
-
var tmp$ret$12 = toField_2(_this__u8e3s4, item_1, className([name, 'Parameter', item_1.
|
|
3925
|
+
var tmp$ret$12 = toField_2(_this__u8e3s4, item_1, className([name, 'Parameter', item_1.d3c_1]));
|
|
3926
3926
|
destination_3.x(tmp$ret$12);
|
|
3927
3927
|
}
|
|
3928
3928
|
var query = destination_3;
|
|
@@ -3932,7 +3932,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
3932
3932
|
var _iterator__ex2g4s_4 = parameters.t();
|
|
3933
3933
|
while (_iterator__ex2g4s_4.u()) {
|
|
3934
3934
|
var element_1 = _iterator__ex2g4s_4.v();
|
|
3935
|
-
if (element_1.
|
|
3935
|
+
if (element_1.b3c_1.equals(OpenAPIV3ParameterLocation_HEADER_getInstance())) {
|
|
3936
3936
|
destination_4.x(element_1);
|
|
3937
3937
|
}
|
|
3938
3938
|
}
|
|
@@ -3942,11 +3942,11 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
3942
3942
|
var _iterator__ex2g4s_5 = destination_4.t();
|
|
3943
3943
|
while (_iterator__ex2g4s_5.u()) {
|
|
3944
3944
|
var item_2 = _iterator__ex2g4s_5.v();
|
|
3945
|
-
var tmp$ret$18 = toField_2(_this__u8e3s4, item_2, className([name, 'Parameter', item_2.
|
|
3945
|
+
var tmp$ret$18 = toField_2(_this__u8e3s4, item_2, className([name, 'Parameter', item_2.d3c_1]));
|
|
3946
3946
|
destination_5.x(tmp$ret$18);
|
|
3947
3947
|
}
|
|
3948
3948
|
var headers = destination_5;
|
|
3949
|
-
var tmp1_safe_receiver = operation_0.
|
|
3949
|
+
var tmp1_safe_receiver = operation_0.j3c_1;
|
|
3950
3950
|
var tmp;
|
|
3951
3951
|
if (tmp1_safe_receiver == null) {
|
|
3952
3952
|
tmp = null;
|
|
@@ -3961,7 +3961,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
3961
3961
|
} else {
|
|
3962
3962
|
// Inline function 'kotlin.let' call
|
|
3963
3963
|
var isNullable = false;
|
|
3964
|
-
var tmp0_safe_receiver = tmp2_safe_receiver.
|
|
3964
|
+
var tmp0_safe_receiver = tmp2_safe_receiver.z3c_1;
|
|
3965
3965
|
var tmp_1;
|
|
3966
3966
|
if (tmp0_safe_receiver == null) {
|
|
3967
3967
|
tmp_1 = null;
|
|
@@ -3970,14 +3970,14 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
3970
3970
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3971
3971
|
var destination_6 = ArrayList_init_$Create$_0(tmp0_safe_receiver.a1());
|
|
3972
3972
|
// Inline function 'kotlin.collections.iterator' call
|
|
3973
|
-
var _iterator__ex2g4s_6 = tmp0_safe_receiver.
|
|
3973
|
+
var _iterator__ex2g4s_6 = tmp0_safe_receiver.j1().t();
|
|
3974
3974
|
while (_iterator__ex2g4s_6.u()) {
|
|
3975
3975
|
var item_3 = _iterator__ex2g4s_6.v();
|
|
3976
3976
|
// Inline function 'kotlin.collections.component1' call
|
|
3977
|
-
var mediaType = item_3.
|
|
3977
|
+
var mediaType = item_3.k1().m2x_1;
|
|
3978
3978
|
// Inline function 'kotlin.collections.component2' call
|
|
3979
|
-
var mediaObject = item_3.
|
|
3980
|
-
var schema = mediaObject.
|
|
3979
|
+
var mediaObject = item_3.l1();
|
|
3980
|
+
var schema = mediaObject.f3d_1;
|
|
3981
3981
|
var tmp_2;
|
|
3982
3982
|
if (schema instanceof OpenAPIV3Reference) {
|
|
3983
3983
|
tmp_2 = toReference_1(_this__u8e3s4, schema, isNullable);
|
|
@@ -4011,28 +4011,28 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4011
4011
|
var tmp3_elvis_lhs = tmp_0;
|
|
4012
4012
|
var requests = tmp3_elvis_lhs == null ? listOf(new Request(null)) : tmp3_elvis_lhs;
|
|
4013
4013
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4014
|
-
var tmp0_elvis_lhs_0 = operation_0.
|
|
4014
|
+
var tmp0_elvis_lhs_0 = operation_0.k3c_1;
|
|
4015
4015
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4016
4016
|
var tmp0_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
4017
4017
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4018
4018
|
var destination_7 = ArrayList_init_$Create$();
|
|
4019
4019
|
// Inline function 'kotlin.collections.iterator' call
|
|
4020
|
-
var _iterator__ex2g4s_7 = tmp0_0.
|
|
4020
|
+
var _iterator__ex2g4s_7 = tmp0_0.j1().t();
|
|
4021
4021
|
while (_iterator__ex2g4s_7.u()) {
|
|
4022
4022
|
var element_2 = _iterator__ex2g4s_7.v();
|
|
4023
4023
|
// Inline function 'kotlin.collections.component1' call
|
|
4024
|
-
var status = element_2.
|
|
4024
|
+
var status = element_2.k1().e2x_1;
|
|
4025
4025
|
// Inline function 'kotlin.collections.component2' call
|
|
4026
|
-
var res = element_2.
|
|
4026
|
+
var res = element_2.l1();
|
|
4027
4027
|
// Inline function 'kotlin.let' call
|
|
4028
4028
|
var response = resolve_5(_this__u8e3s4, res);
|
|
4029
4029
|
var tmp_4;
|
|
4030
4030
|
// Inline function 'kotlin.collections.isNullOrEmpty' call
|
|
4031
|
-
var this_1 = response.
|
|
4031
|
+
var this_1 = response.m3d_1;
|
|
4032
4032
|
if (this_1 == null || this_1.r()) {
|
|
4033
|
-
var tmp1_annotations = toDescriptionAnnotationList(response.
|
|
4033
|
+
var tmp1_annotations = toDescriptionAnnotationList(response.n3d_1);
|
|
4034
4034
|
var tmp2_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4035
|
-
var tmp0_safe_receiver_0 = response.
|
|
4035
|
+
var tmp0_safe_receiver_0 = response.o3d_1;
|
|
4036
4036
|
var tmp_5;
|
|
4037
4037
|
if (tmp0_safe_receiver_0 == null) {
|
|
4038
4038
|
tmp_5 = null;
|
|
@@ -4041,10 +4041,10 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4041
4041
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4042
4042
|
var destination_8 = ArrayList_init_$Create$_0(tmp0_safe_receiver_0.a1());
|
|
4043
4043
|
// Inline function 'kotlin.collections.iterator' call
|
|
4044
|
-
var _iterator__ex2g4s_8 = tmp0_safe_receiver_0.
|
|
4044
|
+
var _iterator__ex2g4s_8 = tmp0_safe_receiver_0.j1().t();
|
|
4045
4045
|
while (_iterator__ex2g4s_8.u()) {
|
|
4046
4046
|
var item_4 = _iterator__ex2g4s_8.v();
|
|
4047
|
-
var tmp$ret$39 = toField_3(_this__u8e3s4, resolve_6(_this__u8e3s4, item_4.
|
|
4047
|
+
var tmp$ret$39 = toField_3(_this__u8e3s4, resolve_6(_this__u8e3s4, item_4.l1()), item_4.k1(), className([name, 'ResponseHeader']));
|
|
4048
4048
|
destination_8.x(tmp$ret$39);
|
|
4049
4049
|
}
|
|
4050
4050
|
tmp_5 = destination_8;
|
|
@@ -4054,7 +4054,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4054
4054
|
var tmp3_headers = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
4055
4055
|
tmp_4 = listOf(new Response(tmp2_status, tmp3_headers, null, tmp1_annotations));
|
|
4056
4056
|
} else {
|
|
4057
|
-
var tmp4_safe_receiver = response.
|
|
4057
|
+
var tmp4_safe_receiver = response.m3d_1;
|
|
4058
4058
|
var tmp_6;
|
|
4059
4059
|
if (tmp4_safe_receiver == null) {
|
|
4060
4060
|
tmp_6 = null;
|
|
@@ -4063,14 +4063,14 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4063
4063
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4064
4064
|
var destination_9 = ArrayList_init_$Create$_0(tmp4_safe_receiver.a1());
|
|
4065
4065
|
// Inline function 'kotlin.collections.iterator' call
|
|
4066
|
-
var _iterator__ex2g4s_9 = tmp4_safe_receiver.
|
|
4066
|
+
var _iterator__ex2g4s_9 = tmp4_safe_receiver.j1().t();
|
|
4067
4067
|
while (_iterator__ex2g4s_9.u()) {
|
|
4068
4068
|
var item_5 = _iterator__ex2g4s_9.v();
|
|
4069
4069
|
// Inline function 'kotlin.collections.component1' call
|
|
4070
|
-
var contentType = item_5.
|
|
4070
|
+
var contentType = item_5.k1().m2x_1;
|
|
4071
4071
|
// Inline function 'kotlin.collections.component2' call
|
|
4072
|
-
var media = item_5.
|
|
4073
|
-
var tmp0_safe_receiver_1 = media.
|
|
4072
|
+
var media = item_5.l1();
|
|
4073
|
+
var tmp0_safe_receiver_1 = media.f3d_1;
|
|
4074
4074
|
var tmp_7;
|
|
4075
4075
|
if (tmp0_safe_receiver_1 == null) {
|
|
4076
4076
|
tmp_7 = null;
|
|
@@ -4079,11 +4079,11 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4079
4079
|
tmp_7 = resolve_7(_this__u8e3s4, tmp0_safe_receiver_1);
|
|
4080
4080
|
}
|
|
4081
4081
|
var tmp1_safe_receiver_0 = tmp_7;
|
|
4082
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
4082
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.z39_1;
|
|
4083
4083
|
var isNullable_0 = tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs;
|
|
4084
|
-
var tmp4_annotations = toDescriptionAnnotationList(response.
|
|
4084
|
+
var tmp4_annotations = toDescriptionAnnotationList(response.n3d_1);
|
|
4085
4085
|
var tmp5_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4086
|
-
var tmp3_safe_receiver = response.
|
|
4086
|
+
var tmp3_safe_receiver = response.o3d_1;
|
|
4087
4087
|
var tmp_8;
|
|
4088
4088
|
if (tmp3_safe_receiver == null) {
|
|
4089
4089
|
tmp_8 = null;
|
|
@@ -4092,10 +4092,10 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4092
4092
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4093
4093
|
var destination_10 = ArrayList_init_$Create$_0(tmp3_safe_receiver.a1());
|
|
4094
4094
|
// Inline function 'kotlin.collections.iterator' call
|
|
4095
|
-
var _iterator__ex2g4s_10 = tmp3_safe_receiver.
|
|
4095
|
+
var _iterator__ex2g4s_10 = tmp3_safe_receiver.j1().t();
|
|
4096
4096
|
while (_iterator__ex2g4s_10.u()) {
|
|
4097
4097
|
var item_6 = _iterator__ex2g4s_10.v();
|
|
4098
|
-
var tmp$ret$49 = toField_3(_this__u8e3s4, resolve_6(_this__u8e3s4, item_6.
|
|
4098
|
+
var tmp$ret$49 = toField_3(_this__u8e3s4, resolve_6(_this__u8e3s4, item_6.l1()), item_6.k1(), className([name, 'ResponseHeader']));
|
|
4099
4099
|
destination_10.x(tmp$ret$49);
|
|
4100
4100
|
}
|
|
4101
4101
|
tmp_8 = destination_10;
|
|
@@ -4104,7 +4104,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4104
4104
|
var tmp0_elvis_lhs_2 = tmp_8;
|
|
4105
4105
|
var tmp6_headers = tmp0_elvis_lhs_2 == null ? emptyList() : tmp0_elvis_lhs_2;
|
|
4106
4106
|
var tmp_9 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
4107
|
-
var schema_0 = media.
|
|
4107
|
+
var schema_0 = media.f3d_1;
|
|
4108
4108
|
var tmp_10;
|
|
4109
4109
|
if (schema_0 instanceof OpenAPIV3Reference) {
|
|
4110
4110
|
tmp_10 = toReference_1(_this__u8e3s4, schema_0, isNullable_0);
|
|
@@ -4132,7 +4132,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4132
4132
|
addAll(destination_7, list);
|
|
4133
4133
|
}
|
|
4134
4134
|
var responses = destination_7;
|
|
4135
|
-
var tmp$ret$61 = new Endpoint(null, toDescriptionAnnotationList(operation_0.
|
|
4135
|
+
var tmp$ret$61 = new Endpoint(null, toDescriptionAnnotationList(operation_0.o3c_1), new DefinitionIdentifier(name), method_0, segments, query, headers, requests, responses);
|
|
4136
4136
|
destination_1.x(tmp$ret$61);
|
|
4137
4137
|
}
|
|
4138
4138
|
var list_0 = destination_1;
|
|
@@ -4150,21 +4150,21 @@ function parseResponseBody_0(_this__u8e3s4) {
|
|
|
4150
4150
|
return flatMapResponses(_this__u8e3s4, parseResponseBody$lambda_0(_this__u8e3s4));
|
|
4151
4151
|
}
|
|
4152
4152
|
function parseDefinitions_0(_this__u8e3s4) {
|
|
4153
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
4153
|
+
var tmp0_safe_receiver = _this__u8e3s4.l38_1;
|
|
4154
4154
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4155
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4155
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m39_1;
|
|
4156
4156
|
// Inline function 'kotlin.collections.filter' call
|
|
4157
4157
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4158
4158
|
// Inline function 'kotlin.collections.filterTo' call
|
|
4159
4159
|
var destination = LinkedHashMap_init_$Create$_0();
|
|
4160
4160
|
// Inline function 'kotlin.collections.iterator' call
|
|
4161
|
-
var _iterator__ex2g4s = tmp0.
|
|
4161
|
+
var _iterator__ex2g4s = tmp0.j1().t();
|
|
4162
4162
|
while (_iterator__ex2g4s.u()) {
|
|
4163
4163
|
var element = _iterator__ex2g4s.v();
|
|
4164
|
-
var s = element.
|
|
4164
|
+
var s = element.l1();
|
|
4165
4165
|
var tmp;
|
|
4166
4166
|
if (s instanceof OpenAPIV3Schema) {
|
|
4167
|
-
var tmp0_subject = s.
|
|
4167
|
+
var tmp0_subject = s.y3a_1;
|
|
4168
4168
|
var tmp_0;
|
|
4169
4169
|
if (tmp0_subject instanceof OpenAPIV3Boolean) {
|
|
4170
4170
|
tmp_0 = true;
|
|
@@ -4192,17 +4192,17 @@ function parseDefinitions_0(_this__u8e3s4) {
|
|
|
4192
4192
|
}
|
|
4193
4193
|
}
|
|
4194
4194
|
if (tmp) {
|
|
4195
|
-
destination.
|
|
4195
|
+
destination.w2(element.k1(), element.l1());
|
|
4196
4196
|
}
|
|
4197
4197
|
}
|
|
4198
4198
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4199
4199
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4200
4200
|
var destination_0 = ArrayList_init_$Create$();
|
|
4201
4201
|
// Inline function 'kotlin.collections.iterator' call
|
|
4202
|
-
var _iterator__ex2g4s_0 = destination.
|
|
4202
|
+
var _iterator__ex2g4s_0 = destination.j1().t();
|
|
4203
4203
|
while (_iterator__ex2g4s_0.u()) {
|
|
4204
4204
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
4205
|
-
var list = flatten_1(_this__u8e3s4, element_0.
|
|
4205
|
+
var list = flatten_1(_this__u8e3s4, element_0.l1(), className([element_0.k1()]));
|
|
4206
4206
|
addAll(destination_0, list);
|
|
4207
4207
|
}
|
|
4208
4208
|
return destination_0;
|
|
@@ -4261,7 +4261,7 @@ function toSegments_0(_this__u8e3s4, path, parameters, operation, method) {
|
|
|
4261
4261
|
case true:
|
|
4262
4262
|
var param = substring(item, 1, item.length - 1 | 0);
|
|
4263
4263
|
var tmp1_elvis_lhs = toName(operation);
|
|
4264
|
-
var name = tmp1_elvis_lhs == null ? toName_0(path) + method.
|
|
4264
|
+
var name = tmp1_elvis_lhs == null ? toName_0(path) + method.a3_1 : tmp1_elvis_lhs;
|
|
4265
4265
|
// Inline function 'kotlin.collections.find' call
|
|
4266
4266
|
|
|
4267
4267
|
var tmp$ret$5;
|
|
@@ -4270,7 +4270,7 @@ function toSegments_0(_this__u8e3s4, path, parameters, operation, method) {
|
|
|
4270
4270
|
var _iterator__ex2g4s_1 = parameters.t();
|
|
4271
4271
|
while (_iterator__ex2g4s_1.u()) {
|
|
4272
4272
|
var element_0 = _iterator__ex2g4s_1.v();
|
|
4273
|
-
if (element_0.
|
|
4273
|
+
if (element_0.d3c_1 === param) {
|
|
4274
4274
|
tmp$ret$5 = element_0;
|
|
4275
4275
|
break $l$block;
|
|
4276
4276
|
}
|
|
@@ -4279,7 +4279,7 @@ function toSegments_0(_this__u8e3s4, path, parameters, operation, method) {
|
|
|
4279
4279
|
}
|
|
4280
4280
|
|
|
4281
4281
|
var tmp2_safe_receiver = tmp$ret$5;
|
|
4282
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
4282
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.c3c_1;
|
|
4283
4283
|
var tmp_0;
|
|
4284
4284
|
if (tmp3_safe_receiver == null) {
|
|
4285
4285
|
tmp_0 = null;
|
|
@@ -4330,15 +4330,15 @@ function toSegments_0(_this__u8e3s4, path, parameters, operation, method) {
|
|
|
4330
4330
|
return destination_0;
|
|
4331
4331
|
}
|
|
4332
4332
|
function toField_2(_this__u8e3s4, parameter, name) {
|
|
4333
|
-
var tmp0_elvis_lhs = parameter.
|
|
4333
|
+
var tmp0_elvis_lhs = parameter.s3b_1;
|
|
4334
4334
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
4335
|
-
var s = parameter.
|
|
4335
|
+
var s = parameter.c3c_1;
|
|
4336
4336
|
var tmp;
|
|
4337
4337
|
if (s instanceof OpenAPIV3Reference) {
|
|
4338
4338
|
tmp = toReference_1(_this__u8e3s4, s, isNullable);
|
|
4339
4339
|
} else {
|
|
4340
4340
|
if (s instanceof OpenAPIV3Schema) {
|
|
4341
|
-
tmp = toReference_2(_this__u8e3s4, s, isNullable, name + (equals(s.
|
|
4341
|
+
tmp = toReference_2(_this__u8e3s4, s, isNullable, name + (equals(s.g3a_1, OpenAPIV3Type_ARRAY_getInstance()) ? 'Array' : ''));
|
|
4342
4342
|
} else {
|
|
4343
4343
|
if (s == null) {
|
|
4344
4344
|
tmp = new Primitive(new String_0(null), isNullable);
|
|
@@ -4349,8 +4349,8 @@ function toField_2(_this__u8e3s4, parameter, name) {
|
|
|
4349
4349
|
}
|
|
4350
4350
|
// Inline function 'kotlin.let' call
|
|
4351
4351
|
var it = tmp;
|
|
4352
|
-
var tmp0_identifier = new FieldIdentifier(parameter.
|
|
4353
|
-
var tmp1_annotations = toDescriptionAnnotationList(parameter.
|
|
4352
|
+
var tmp0_identifier = new FieldIdentifier(parameter.d3c_1);
|
|
4353
|
+
var tmp1_annotations = toDescriptionAnnotationList(parameter.r3b_1);
|
|
4354
4354
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
4355
4355
|
}
|
|
4356
4356
|
function resolve_4(_this__u8e3s4, requestBodyOrReference) {
|
|
@@ -4359,7 +4359,7 @@ function resolve_4(_this__u8e3s4, requestBodyOrReference) {
|
|
|
4359
4359
|
tmp = requestBodyOrReference;
|
|
4360
4360
|
} else {
|
|
4361
4361
|
if (requestBodyOrReference instanceof OpenAPIV3Reference) {
|
|
4362
|
-
tmp = resolveOpenAPIV3RequestBody(_this__u8e3s4, requestBodyOrReference).
|
|
4362
|
+
tmp = resolveOpenAPIV3RequestBody(_this__u8e3s4, requestBodyOrReference).xe_1;
|
|
4363
4363
|
} else {
|
|
4364
4364
|
noWhenBranchMatchedException();
|
|
4365
4365
|
}
|
|
@@ -4369,21 +4369,21 @@ function resolve_4(_this__u8e3s4, requestBodyOrReference) {
|
|
|
4369
4369
|
function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
4370
4370
|
// Inline function 'kotlin.let' call
|
|
4371
4371
|
var destruct = resolveOpenAPIV3Schema(_this__u8e3s4, reference);
|
|
4372
|
-
var referencingObject = destruct.
|
|
4373
|
-
var schema = destruct.
|
|
4372
|
+
var referencingObject = destruct.ne();
|
|
4373
|
+
var schema = destruct.oe();
|
|
4374
4374
|
var tmp;
|
|
4375
|
-
if (exists_0(schema.
|
|
4376
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4375
|
+
if (exists_0(schema.y3a_1)) {
|
|
4376
|
+
var additionalProperties = ensureNotNull(schema.y3a_1);
|
|
4377
4377
|
var tmp_0;
|
|
4378
4378
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
4379
4379
|
tmp_0 = new Dict(new Any(isNullable), false);
|
|
4380
4380
|
} else {
|
|
4381
4381
|
if (additionalProperties instanceof OpenAPIV3Reference) {
|
|
4382
|
-
var tmp0_elvis_lhs = schema.
|
|
4382
|
+
var tmp0_elvis_lhs = schema.z39_1;
|
|
4383
4383
|
tmp_0 = toDict(toReference_1(_this__u8e3s4, additionalProperties, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs), isNullable);
|
|
4384
4384
|
} else {
|
|
4385
4385
|
if (additionalProperties instanceof OpenAPIV3Schema) {
|
|
4386
|
-
var tmp1_elvis_lhs = schema.
|
|
4386
|
+
var tmp1_elvis_lhs = schema.z39_1;
|
|
4387
4387
|
tmp_0 = toDict(toReference_2(_this__u8e3s4, additionalProperties, tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs, getReference(reference)), false);
|
|
4388
4388
|
} else {
|
|
4389
4389
|
noWhenBranchMatchedException();
|
|
@@ -4391,24 +4391,24 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4391
4391
|
}
|
|
4392
4392
|
}
|
|
4393
4393
|
tmp = tmp_0;
|
|
4394
|
-
} else if (!(schema.
|
|
4394
|
+
} else if (!(schema.u3a_1 == null)) {
|
|
4395
4395
|
tmp = new Custom(sanitize(className([getReference(referencingObject)])), isNullable);
|
|
4396
|
-
} else if (isPrimitive_0(schema.
|
|
4396
|
+
} else if (isPrimitive_0(schema.g3a_1)) {
|
|
4397
4397
|
tmp = new Primitive(toPrimitive_0(schema), isNullable);
|
|
4398
|
-
} else if (equals(schema.
|
|
4399
|
-
var items = schema.
|
|
4398
|
+
} else if (equals(schema.g3a_1, OpenAPIV3Type_ARRAY_getInstance())) {
|
|
4399
|
+
var items = schema.v3a_1;
|
|
4400
4400
|
var tmp_1;
|
|
4401
4401
|
if (items instanceof OpenAPIV3Reference) {
|
|
4402
|
-
var tmp2_elvis_lhs = schema.
|
|
4402
|
+
var tmp2_elvis_lhs = schema.z39_1;
|
|
4403
4403
|
tmp_1 = toIterable(toReference_1(_this__u8e3s4, items, tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs), isNullable);
|
|
4404
4404
|
} else {
|
|
4405
4405
|
if (items instanceof OpenAPIV3Schema) {
|
|
4406
4406
|
var tmp_2 = sanitize(className([getReference(referencingObject), 'Array']));
|
|
4407
|
-
var tmp3_elvis_lhs = schema.
|
|
4407
|
+
var tmp3_elvis_lhs = schema.z39_1;
|
|
4408
4408
|
tmp_1 = toIterable(new Custom(tmp_2, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs), isNullable);
|
|
4409
4409
|
} else {
|
|
4410
4410
|
if (items == null) {
|
|
4411
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.
|
|
4411
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.t3d_1);
|
|
4412
4412
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4413
4413
|
} else {
|
|
4414
4414
|
noWhenBranchMatchedException();
|
|
@@ -4424,15 +4424,15 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4424
4424
|
function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
4425
4425
|
name = name === VOID ? '' : name;
|
|
4426
4426
|
var tmp;
|
|
4427
|
-
if (equals(schema.
|
|
4428
|
-
var items = schema.
|
|
4427
|
+
if (equals(schema.g3a_1, OpenAPIV3Type_ARRAY_getInstance())) {
|
|
4428
|
+
var items = schema.v3a_1;
|
|
4429
4429
|
var tmp_0;
|
|
4430
4430
|
if (items instanceof OpenAPIV3Reference) {
|
|
4431
|
-
var tmp0_elvis_lhs = schema.
|
|
4431
|
+
var tmp0_elvis_lhs = schema.z39_1;
|
|
4432
4432
|
tmp_0 = toIterable(toReference_1(_this__u8e3s4, items, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs), isNullable);
|
|
4433
4433
|
} else {
|
|
4434
4434
|
if (items instanceof OpenAPIV3Schema) {
|
|
4435
|
-
var tmp1_elvis_lhs = schema.
|
|
4435
|
+
var tmp1_elvis_lhs = schema.z39_1;
|
|
4436
4436
|
tmp_0 = toIterable(toReference_2(_this__u8e3s4, items, tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs, name), isNullable);
|
|
4437
4437
|
} else {
|
|
4438
4438
|
if (items == null) {
|
|
@@ -4444,21 +4444,21 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4444
4444
|
}
|
|
4445
4445
|
}
|
|
4446
4446
|
tmp = tmp_0;
|
|
4447
|
-
} else if (!(schema.
|
|
4448
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4447
|
+
} else if (!(schema.y3a_1 == null)) {
|
|
4448
|
+
var additionalProperties = ensureNotNull(schema.y3a_1);
|
|
4449
4449
|
var tmp_1;
|
|
4450
4450
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
4451
|
-
var tmp2_elvis_lhs = schema.
|
|
4451
|
+
var tmp2_elvis_lhs = schema.z39_1;
|
|
4452
4452
|
tmp_1 = new Dict(new Any(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs), isNullable);
|
|
4453
4453
|
} else {
|
|
4454
4454
|
if (additionalProperties instanceof OpenAPIV3Reference) {
|
|
4455
|
-
var tmp3_elvis_lhs = schema.
|
|
4455
|
+
var tmp3_elvis_lhs = schema.z39_1;
|
|
4456
4456
|
tmp_1 = toDict(toReference_1(_this__u8e3s4, additionalProperties, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs), isNullable);
|
|
4457
4457
|
} else {
|
|
4458
4458
|
if (additionalProperties instanceof OpenAPIV3Schema) {
|
|
4459
4459
|
// Inline function 'kotlin.takeIf' call
|
|
4460
4460
|
var tmp_2;
|
|
4461
|
-
if (isPrimitive_0(additionalProperties.
|
|
4461
|
+
if (isPrimitive_0(additionalProperties.g3a_1) || !(additionalProperties.x3a_1 == null)) {
|
|
4462
4462
|
tmp_2 = additionalProperties;
|
|
4463
4463
|
} else {
|
|
4464
4464
|
tmp_2 = null;
|
|
@@ -4469,13 +4469,13 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4469
4469
|
tmp_3 = null;
|
|
4470
4470
|
} else {
|
|
4471
4471
|
// Inline function 'kotlin.let' call
|
|
4472
|
-
var tmp0_elvis_lhs_0 = schema.
|
|
4472
|
+
var tmp0_elvis_lhs_0 = schema.z39_1;
|
|
4473
4473
|
tmp_3 = toDict(toReference_2(_this__u8e3s4, tmp4_safe_receiver, tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0, name), isNullable);
|
|
4474
4474
|
}
|
|
4475
4475
|
var tmp5_elvis_lhs = tmp_3;
|
|
4476
4476
|
var tmp_4;
|
|
4477
4477
|
if (tmp5_elvis_lhs == null) {
|
|
4478
|
-
var tmp6_elvis_lhs = schema.
|
|
4478
|
+
var tmp6_elvis_lhs = schema.z39_1;
|
|
4479
4479
|
tmp_4 = new Dict(new Any(tmp6_elvis_lhs == null ? false : tmp6_elvis_lhs), isNullable);
|
|
4480
4480
|
} else {
|
|
4481
4481
|
tmp_4 = tmp5_elvis_lhs;
|
|
@@ -4487,14 +4487,14 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4487
4487
|
}
|
|
4488
4488
|
}
|
|
4489
4489
|
tmp = tmp_1;
|
|
4490
|
-
} else if (!(schema.
|
|
4490
|
+
} else if (!(schema.u3a_1 == null)) {
|
|
4491
4491
|
// Inline function 'kotlin.let' call
|
|
4492
4492
|
var it = new Custom(sanitize(name), isNullable);
|
|
4493
|
-
tmp = !(schema.
|
|
4493
|
+
tmp = !(schema.y3a_1 == null) ? new Dict(it, false) : it;
|
|
4494
4494
|
} else {
|
|
4495
|
-
var tmp7_subject = schema.
|
|
4495
|
+
var tmp7_subject = schema.g3a_1;
|
|
4496
4496
|
var tmp_5;
|
|
4497
|
-
switch (tmp7_subject == null ? -1 : tmp7_subject.
|
|
4497
|
+
switch (tmp7_subject == null ? -1 : tmp7_subject.b3_1) {
|
|
4498
4498
|
case 0:
|
|
4499
4499
|
case 1:
|
|
4500
4500
|
case 2:
|
|
@@ -4502,33 +4502,33 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4502
4502
|
// Inline function 'kotlin.let' call
|
|
4503
4503
|
|
|
4504
4504
|
var it_0 = new Primitive(toPrimitive_0(schema), isNullable);
|
|
4505
|
-
tmp_5 = !(schema.
|
|
4505
|
+
tmp_5 = !(schema.y3a_1 == null) ? new Dict(it_0, false) : it_0;
|
|
4506
4506
|
break;
|
|
4507
4507
|
case -1:
|
|
4508
4508
|
case 5:
|
|
4509
4509
|
var tmp_6;
|
|
4510
|
-
var tmp_7 = schema.
|
|
4510
|
+
var tmp_7 = schema.y3a_1;
|
|
4511
4511
|
if (!(tmp_7 == null) ? isInterface(tmp_7, BooleanValue) : false) {
|
|
4512
4512
|
// Inline function 'kotlin.let' call
|
|
4513
4513
|
var it_1 = new Any(false);
|
|
4514
|
-
tmp_6 = !(schema.
|
|
4514
|
+
tmp_6 = !(schema.y3a_1 == null) ? new Dict(it_1, false) : it_1;
|
|
4515
4515
|
} else {
|
|
4516
4516
|
// Inline function 'kotlin.let' call
|
|
4517
4517
|
var it_2 = new Custom(sanitize(name), isNullable);
|
|
4518
|
-
tmp_6 = !(schema.
|
|
4518
|
+
tmp_6 = !(schema.y3a_1 == null) ? new Dict(it_2, false) : it_2;
|
|
4519
4519
|
}
|
|
4520
4520
|
|
|
4521
4521
|
tmp_5 = tmp_6;
|
|
4522
4522
|
break;
|
|
4523
4523
|
case 4:
|
|
4524
|
-
var it_3 = schema.
|
|
4524
|
+
var it_3 = schema.v3a_1;
|
|
4525
4525
|
var tmp_8;
|
|
4526
4526
|
if (it_3 instanceof OpenAPIV3Reference) {
|
|
4527
|
-
var tmp8_elvis_lhs = schema.
|
|
4527
|
+
var tmp8_elvis_lhs = schema.z39_1;
|
|
4528
4528
|
tmp_8 = toIterable(toReference_1(_this__u8e3s4, it_3, tmp8_elvis_lhs == null ? false : tmp8_elvis_lhs), isNullable);
|
|
4529
4529
|
} else {
|
|
4530
4530
|
if (it_3 instanceof OpenAPIV3Schema) {
|
|
4531
|
-
var tmp9_elvis_lhs = schema.
|
|
4531
|
+
var tmp9_elvis_lhs = schema.z39_1;
|
|
4532
4532
|
tmp_8 = toIterable(toReference_2(_this__u8e3s4, it_3, tmp9_elvis_lhs == null ? false : tmp9_elvis_lhs, name), isNullable);
|
|
4533
4533
|
} else {
|
|
4534
4534
|
if (it_3 == null) {
|
|
@@ -4556,7 +4556,7 @@ function resolve_5(_this__u8e3s4, responseOrOpenAPIV3Reference) {
|
|
|
4556
4556
|
tmp = responseOrOpenAPIV3Reference;
|
|
4557
4557
|
} else {
|
|
4558
4558
|
if (responseOrOpenAPIV3Reference instanceof OpenAPIV3Reference) {
|
|
4559
|
-
tmp = resolveOpenAPIV3Response(_this__u8e3s4, responseOrOpenAPIV3Reference).
|
|
4559
|
+
tmp = resolveOpenAPIV3Response(_this__u8e3s4, responseOrOpenAPIV3Reference).xe_1;
|
|
4560
4560
|
} else {
|
|
4561
4561
|
noWhenBranchMatchedException();
|
|
4562
4562
|
}
|
|
@@ -4564,9 +4564,9 @@ function resolve_5(_this__u8e3s4, responseOrOpenAPIV3Reference) {
|
|
|
4564
4564
|
return tmp;
|
|
4565
4565
|
}
|
|
4566
4566
|
function toField_3(_this__u8e3s4, header, identifier, name) {
|
|
4567
|
-
var tmp0_elvis_lhs = header.
|
|
4567
|
+
var tmp0_elvis_lhs = header.y3d_1;
|
|
4568
4568
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
4569
|
-
var s = header.
|
|
4569
|
+
var s = header.e3e_1;
|
|
4570
4570
|
var tmp;
|
|
4571
4571
|
if (s instanceof OpenAPIV3Reference) {
|
|
4572
4572
|
tmp = toReference_1(_this__u8e3s4, s, isNullable);
|
|
@@ -4584,7 +4584,7 @@ function toField_3(_this__u8e3s4, header, identifier, name) {
|
|
|
4584
4584
|
// Inline function 'kotlin.let' call
|
|
4585
4585
|
var it = tmp;
|
|
4586
4586
|
var tmp0_identifier = new FieldIdentifier(identifier);
|
|
4587
|
-
var tmp1_annotations = toDescriptionAnnotationList(header.
|
|
4587
|
+
var tmp1_annotations = toDescriptionAnnotationList(header.x3d_1);
|
|
4588
4588
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
4589
4589
|
}
|
|
4590
4590
|
function resolve_6(_this__u8e3s4, headerOrReference) {
|
|
@@ -4593,7 +4593,7 @@ function resolve_6(_this__u8e3s4, headerOrReference) {
|
|
|
4593
4593
|
tmp = headerOrReference;
|
|
4594
4594
|
} else {
|
|
4595
4595
|
if (headerOrReference instanceof OpenAPIV3Reference) {
|
|
4596
|
-
tmp = resolveOpenAPIV3Header(_this__u8e3s4, headerOrReference).
|
|
4596
|
+
tmp = resolveOpenAPIV3Header(_this__u8e3s4, headerOrReference).xe_1;
|
|
4597
4597
|
} else {
|
|
4598
4598
|
noWhenBranchMatchedException();
|
|
4599
4599
|
}
|
|
@@ -4606,7 +4606,7 @@ function resolve_7(_this__u8e3s4, schemaOrReference) {
|
|
|
4606
4606
|
tmp = schemaOrReference;
|
|
4607
4607
|
} else {
|
|
4608
4608
|
if (schemaOrReference instanceof OpenAPIV3Reference) {
|
|
4609
|
-
tmp = resolveOpenAPIV3Schema(_this__u8e3s4, schemaOrReference).
|
|
4609
|
+
tmp = resolveOpenAPIV3Schema(_this__u8e3s4, schemaOrReference).xe_1;
|
|
4610
4610
|
} else {
|
|
4611
4611
|
noWhenBranchMatchedException();
|
|
4612
4612
|
}
|
|
@@ -4628,13 +4628,13 @@ function flatten_1(_this__u8e3s4, schemaOrReference, name) {
|
|
|
4628
4628
|
}
|
|
4629
4629
|
function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
4630
4630
|
var tmp;
|
|
4631
|
-
if (exists_0(schemaObject.
|
|
4632
|
-
var tmp0_subject = schemaObject.
|
|
4631
|
+
if (exists_0(schemaObject.y3a_1)) {
|
|
4632
|
+
var tmp0_subject = schemaObject.y3a_1;
|
|
4633
4633
|
var tmp_0;
|
|
4634
4634
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
4635
4635
|
tmp_0 = emptyList();
|
|
4636
4636
|
} else {
|
|
4637
|
-
var tmp1_safe_receiver = schemaObject.
|
|
4637
|
+
var tmp1_safe_receiver = schemaObject.y3a_1;
|
|
4638
4638
|
var tmp_1;
|
|
4639
4639
|
if (tmp1_safe_receiver == null) {
|
|
4640
4640
|
tmp_1 = null;
|
|
@@ -4649,7 +4649,7 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
4649
4649
|
} else {
|
|
4650
4650
|
// Inline function 'kotlin.takeIf' call
|
|
4651
4651
|
var tmp_3;
|
|
4652
|
-
if (!(tmp2_safe_receiver.
|
|
4652
|
+
if (!(tmp2_safe_receiver.x3a_1 == null)) {
|
|
4653
4653
|
tmp_3 = tmp2_safe_receiver;
|
|
4654
4654
|
} else {
|
|
4655
4655
|
tmp_3 = null;
|
|
@@ -4668,11 +4668,11 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
4668
4668
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
4669
4669
|
}
|
|
4670
4670
|
tmp = tmp_0;
|
|
4671
|
-
} else if (!(schemaObject.
|
|
4672
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
4671
|
+
} else if (!(schemaObject.c3a_1 == null) || !(schemaObject.d3a_1 == null)) {
|
|
4672
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.n3a_1);
|
|
4673
4673
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
4674
4674
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4675
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
4675
|
+
var tmp0_elvis_lhs = schemaObject.c3a_1;
|
|
4676
4676
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
4677
4677
|
var this_0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
4678
4678
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
@@ -4699,7 +4699,7 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
4699
4699
|
}
|
|
4700
4700
|
var tmp_8 = listOf(new Union(null, tmp_5, tmp_6, toSet(destination)));
|
|
4701
4701
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4702
|
-
var tmp0_elvis_lhs_0 = schemaObject.
|
|
4702
|
+
var tmp0_elvis_lhs_0 = schemaObject.c3a_1;
|
|
4703
4703
|
// Inline function 'kotlin.collections.flatMapIndexed' call
|
|
4704
4704
|
var tmp0 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
4705
4705
|
// Inline function 'kotlin.collections.flatMapIndexedTo' call
|
|
@@ -4725,11 +4725,11 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
4725
4725
|
addAll(destination_0, list);
|
|
4726
4726
|
}
|
|
4727
4727
|
tmp = plus_0(tmp_8, destination_0);
|
|
4728
|
-
} else if (!(schemaObject.
|
|
4729
|
-
var tmp_10 = toDescriptionAnnotationList(schemaObject.
|
|
4728
|
+
} else if (!(schemaObject.w3a_1 == null)) {
|
|
4729
|
+
var tmp_10 = toDescriptionAnnotationList(schemaObject.n3a_1);
|
|
4730
4730
|
var tmp_11 = new DefinitionIdentifier(sanitize(name));
|
|
4731
4731
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4732
|
-
var tmp0_elvis_lhs_1 = schemaObject.
|
|
4732
|
+
var tmp0_elvis_lhs_1 = schemaObject.w3a_1;
|
|
4733
4733
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4734
4734
|
var tmp0_0 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
4735
4735
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -4746,14 +4746,14 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
4746
4746
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
4747
4747
|
while (_iterator__ex2g4s_2.u()) {
|
|
4748
4748
|
var e = _iterator__ex2g4s_2.v();
|
|
4749
|
-
var key = e.
|
|
4749
|
+
var key = e.ap_1;
|
|
4750
4750
|
if (set.x(key)) {
|
|
4751
4751
|
list_1.x(e);
|
|
4752
4752
|
}
|
|
4753
4753
|
}
|
|
4754
4754
|
var tmp_12 = listOf(new Type(null, tmp_10, tmp_11, new Shape(list_1), emptyList()));
|
|
4755
4755
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4756
|
-
var tmp0_1 = ensureNotNull(schemaObject.
|
|
4756
|
+
var tmp0_1 = ensureNotNull(schemaObject.w3a_1);
|
|
4757
4757
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4758
4758
|
var destination_2 = ArrayList_init_$Create$();
|
|
4759
4759
|
var _iterator__ex2g4s_3 = tmp0_1.t();
|
|
@@ -4762,12 +4762,12 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
4762
4762
|
var tmp_13;
|
|
4763
4763
|
if (element_1 instanceof OpenAPIV3Reference) {
|
|
4764
4764
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4765
|
-
var tmp0_elvis_lhs_2 = resolveOpenAPIV3Schema(_this__u8e3s4, element_1).
|
|
4765
|
+
var tmp0_elvis_lhs_2 = resolveOpenAPIV3Schema(_this__u8e3s4, element_1).xe_1.x3a_1;
|
|
4766
4766
|
tmp_13 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
4767
4767
|
} else {
|
|
4768
4768
|
if (element_1 instanceof OpenAPIV3Schema) {
|
|
4769
4769
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4770
|
-
var tmp0_elvis_lhs_3 = element_1.
|
|
4770
|
+
var tmp0_elvis_lhs_3 = element_1.x3a_1;
|
|
4771
4771
|
tmp_13 = tmp0_elvis_lhs_3 == null ? emptyMap() : tmp0_elvis_lhs_3;
|
|
4772
4772
|
} else {
|
|
4773
4773
|
noWhenBranchMatchedException();
|
|
@@ -4778,13 +4778,13 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
4778
4778
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4779
4779
|
var destination_3 = ArrayList_init_$Create$();
|
|
4780
4780
|
// Inline function 'kotlin.collections.iterator' call
|
|
4781
|
-
var _iterator__ex2g4s_4 = tmp0_2.
|
|
4781
|
+
var _iterator__ex2g4s_4 = tmp0_2.j1().t();
|
|
4782
4782
|
while (_iterator__ex2g4s_4.u()) {
|
|
4783
4783
|
var element_2 = _iterator__ex2g4s_4.v();
|
|
4784
4784
|
// Inline function 'kotlin.collections.component1' call
|
|
4785
|
-
var key_0 = element_2.
|
|
4785
|
+
var key_0 = element_2.k1();
|
|
4786
4786
|
// Inline function 'kotlin.collections.component2' call
|
|
4787
|
-
var value = element_2.
|
|
4787
|
+
var value = element_2.l1();
|
|
4788
4788
|
var list_2 = flatten_1(_this__u8e3s4, value, className([name, key_0]));
|
|
4789
4789
|
addAll(destination_3, list_2);
|
|
4790
4790
|
}
|
|
@@ -4792,29 +4792,29 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
4792
4792
|
addAll(destination_2, list_3);
|
|
4793
4793
|
}
|
|
4794
4794
|
tmp = plus_0(tmp_12, destination_2);
|
|
4795
|
-
} else if (!(schemaObject.
|
|
4795
|
+
} else if (!(schemaObject.u3a_1 == null)) {
|
|
4796
4796
|
// Inline function 'kotlin.collections.map' call
|
|
4797
|
-
var this_1 = ensureNotNull(schemaObject.
|
|
4797
|
+
var this_1 = ensureNotNull(schemaObject.u3a_1);
|
|
4798
4798
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4799
4799
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
4800
4800
|
var _iterator__ex2g4s_5 = this_1.t();
|
|
4801
4801
|
while (_iterator__ex2g4s_5.u()) {
|
|
4802
4802
|
var item_0 = _iterator__ex2g4s_5.v();
|
|
4803
|
-
var tmp$ret$31 = item_0.
|
|
4803
|
+
var tmp$ret$31 = item_0.ix();
|
|
4804
4804
|
destination_4.x(tmp$ret$31);
|
|
4805
4805
|
}
|
|
4806
4806
|
// Inline function 'kotlin.let' call
|
|
4807
4807
|
var it = toSet(destination_4);
|
|
4808
|
-
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.
|
|
4808
|
+
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.n3a_1), new DefinitionIdentifier(name), it));
|
|
4809
4809
|
} else {
|
|
4810
|
-
var tmp5_subject = schemaObject.
|
|
4810
|
+
var tmp5_subject = schemaObject.g3a_1;
|
|
4811
4811
|
var tmp_14;
|
|
4812
|
-
switch (tmp5_subject == null ? -1 : tmp5_subject.
|
|
4812
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.b3_1) {
|
|
4813
4813
|
case -1:
|
|
4814
4814
|
case 5:
|
|
4815
4815
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4816
4816
|
|
|
4817
|
-
var tmp0_elvis_lhs_4 = schemaObject.
|
|
4817
|
+
var tmp0_elvis_lhs_4 = schemaObject.x3a_1;
|
|
4818
4818
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4819
4819
|
|
|
4820
4820
|
var tmp0_3 = tmp0_elvis_lhs_4 == null ? emptyMap() : tmp0_elvis_lhs_4;
|
|
@@ -4823,23 +4823,23 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
4823
4823
|
var destination_5 = ArrayList_init_$Create$();
|
|
4824
4824
|
// Inline function 'kotlin.collections.iterator' call
|
|
4825
4825
|
|
|
4826
|
-
var _iterator__ex2g4s_6 = tmp0_3.
|
|
4826
|
+
var _iterator__ex2g4s_6 = tmp0_3.j1().t();
|
|
4827
4827
|
while (_iterator__ex2g4s_6.u()) {
|
|
4828
4828
|
var element_3 = _iterator__ex2g4s_6.v();
|
|
4829
4829
|
// Inline function 'kotlin.collections.component1' call
|
|
4830
|
-
var key_1 = element_3.
|
|
4830
|
+
var key_1 = element_3.k1();
|
|
4831
4831
|
// Inline function 'kotlin.collections.component2' call
|
|
4832
|
-
var value_0 = element_3.
|
|
4832
|
+
var value_0 = element_3.l1();
|
|
4833
4833
|
var list_4 = flatten_1(_this__u8e3s4, value_0, className([name, key_1]));
|
|
4834
4834
|
addAll(destination_5, list_4);
|
|
4835
4835
|
}
|
|
4836
4836
|
|
|
4837
4837
|
var fields = destination_5;
|
|
4838
|
-
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.
|
|
4838
|
+
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.n3a_1), new DefinitionIdentifier(name), new Shape(toField_4(_this__u8e3s4, schemaObject, name)), emptyList()));
|
|
4839
4839
|
tmp_14 = plus_0(schema, fields);
|
|
4840
4840
|
break;
|
|
4841
4841
|
case 4:
|
|
4842
|
-
var tmp6_safe_receiver = schemaObject.
|
|
4842
|
+
var tmp6_safe_receiver = schemaObject.v3a_1;
|
|
4843
4843
|
var tmp_15;
|
|
4844
4844
|
if (tmp6_safe_receiver == null) {
|
|
4845
4845
|
tmp_15 = null;
|
|
@@ -4871,29 +4871,29 @@ function flatten_2(_this__u8e3s4, schemaObject, name) {
|
|
|
4871
4871
|
}
|
|
4872
4872
|
function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
4873
4873
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4874
|
-
var tmp0_elvis_lhs = response.
|
|
4874
|
+
var tmp0_elvis_lhs = response.m3d_1;
|
|
4875
4875
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4876
4876
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4877
4877
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4878
4878
|
var destination = ArrayList_init_$Create$();
|
|
4879
4879
|
// Inline function 'kotlin.collections.iterator' call
|
|
4880
|
-
var _iterator__ex2g4s = tmp0.
|
|
4880
|
+
var _iterator__ex2g4s = tmp0.j1().t();
|
|
4881
4881
|
while (_iterator__ex2g4s.u()) {
|
|
4882
4882
|
var element = _iterator__ex2g4s.v();
|
|
4883
4883
|
// Inline function 'kotlin.collections.component2' call
|
|
4884
|
-
var mediaObject = element.
|
|
4885
|
-
var schema = mediaObject.
|
|
4884
|
+
var mediaObject = element.l1();
|
|
4885
|
+
var schema = mediaObject.f3d_1;
|
|
4886
4886
|
var tmp;
|
|
4887
4887
|
if (schema instanceof OpenAPIV3Schema) {
|
|
4888
|
-
var tmp0_subject = schema.
|
|
4888
|
+
var tmp0_subject = schema.g3a_1;
|
|
4889
4889
|
var tmp_0;
|
|
4890
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
4890
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.b3_1) {
|
|
4891
4891
|
case -1:
|
|
4892
4892
|
case 5:
|
|
4893
4893
|
tmp_0 = flatten_2(_this__u8e3s4, schema, className([name, _StatusCode___get_value__impl__we50mu(statusCode), 'ResponseBody']));
|
|
4894
4894
|
break;
|
|
4895
4895
|
case 4:
|
|
4896
|
-
var tmp1_safe_receiver = schema.
|
|
4896
|
+
var tmp1_safe_receiver = schema.v3a_1;
|
|
4897
4897
|
var tmp_1;
|
|
4898
4898
|
if (tmp1_safe_receiver == null) {
|
|
4899
4899
|
tmp_1 = null;
|
|
@@ -4921,9 +4921,9 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
4921
4921
|
return destination;
|
|
4922
4922
|
}
|
|
4923
4923
|
function resolveOpenAPIV3Response(_this__u8e3s4, reference) {
|
|
4924
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
4925
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4926
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4924
|
+
var tmp0_safe_receiver = _this__u8e3s4.l38_1;
|
|
4925
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n39_1;
|
|
4926
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
4927
4927
|
var tmp;
|
|
4928
4928
|
if (tmp2_safe_receiver == null) {
|
|
4929
4929
|
tmp = null;
|
|
@@ -4944,7 +4944,7 @@ function resolveOpenAPIV3Response(_this__u8e3s4, reference) {
|
|
|
4944
4944
|
var tmp3_elvis_lhs = tmp;
|
|
4945
4945
|
var tmp_1;
|
|
4946
4946
|
if (tmp3_elvis_lhs == null) {
|
|
4947
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
4947
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.t3d_1);
|
|
4948
4948
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4949
4949
|
} else {
|
|
4950
4950
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -4952,9 +4952,9 @@ function resolveOpenAPIV3Response(_this__u8e3s4, reference) {
|
|
|
4952
4952
|
return tmp_1;
|
|
4953
4953
|
}
|
|
4954
4954
|
function resolveOpenAPIV3Parameter(_this__u8e3s4, reference) {
|
|
4955
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
4956
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4957
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4955
|
+
var tmp0_safe_receiver = _this__u8e3s4.l38_1;
|
|
4956
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o39_1;
|
|
4957
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
4958
4958
|
var tmp;
|
|
4959
4959
|
if (tmp2_safe_receiver == null) {
|
|
4960
4960
|
tmp = null;
|
|
@@ -4975,9 +4975,9 @@ function resolveOpenAPIV3Parameter(_this__u8e3s4, reference) {
|
|
|
4975
4975
|
return tmp;
|
|
4976
4976
|
}
|
|
4977
4977
|
function resolveOpenAPIV3RequestBody(_this__u8e3s4, reference) {
|
|
4978
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
4979
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4980
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4978
|
+
var tmp0_safe_receiver = _this__u8e3s4.l38_1;
|
|
4979
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q39_1;
|
|
4980
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
4981
4981
|
var tmp;
|
|
4982
4982
|
if (tmp2_safe_receiver == null) {
|
|
4983
4983
|
tmp = null;
|
|
@@ -4998,7 +4998,7 @@ function resolveOpenAPIV3RequestBody(_this__u8e3s4, reference) {
|
|
|
4998
4998
|
var tmp3_elvis_lhs = tmp;
|
|
4999
4999
|
var tmp_1;
|
|
5000
5000
|
if (tmp3_elvis_lhs == null) {
|
|
5001
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5001
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.t3d_1);
|
|
5002
5002
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5003
5003
|
} else {
|
|
5004
5004
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5006,9 +5006,9 @@ function resolveOpenAPIV3RequestBody(_this__u8e3s4, reference) {
|
|
|
5006
5006
|
return tmp_1;
|
|
5007
5007
|
}
|
|
5008
5008
|
function resolveOpenAPIV3Schema(_this__u8e3s4, reference) {
|
|
5009
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5010
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5011
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5009
|
+
var tmp0_safe_receiver = _this__u8e3s4.l38_1;
|
|
5010
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m39_1;
|
|
5011
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5012
5012
|
var tmp;
|
|
5013
5013
|
if (tmp2_safe_receiver == null) {
|
|
5014
5014
|
tmp = null;
|
|
@@ -5029,7 +5029,7 @@ function resolveOpenAPIV3Schema(_this__u8e3s4, reference) {
|
|
|
5029
5029
|
var tmp3_elvis_lhs = tmp;
|
|
5030
5030
|
var tmp_1;
|
|
5031
5031
|
if (tmp3_elvis_lhs == null) {
|
|
5032
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5032
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.t3d_1);
|
|
5033
5033
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5034
5034
|
} else {
|
|
5035
5035
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5042,7 +5042,7 @@ function exists_0(_this__u8e3s4) {
|
|
|
5042
5042
|
tmp = true;
|
|
5043
5043
|
} else {
|
|
5044
5044
|
if (!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, BooleanValue) : false) {
|
|
5045
|
-
tmp = _this__u8e3s4.
|
|
5045
|
+
tmp = _this__u8e3s4.l1();
|
|
5046
5046
|
} else {
|
|
5047
5047
|
if (_this__u8e3s4 instanceof OpenAPIV3Reference) {
|
|
5048
5048
|
tmp = true;
|
|
@@ -5055,7 +5055,7 @@ function exists_0(_this__u8e3s4) {
|
|
|
5055
5055
|
}
|
|
5056
5056
|
function isPrimitive_0(_this__u8e3s4) {
|
|
5057
5057
|
var tmp;
|
|
5058
|
-
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.
|
|
5058
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.b3_1) {
|
|
5059
5059
|
case 0:
|
|
5060
5060
|
tmp = true;
|
|
5061
5061
|
break;
|
|
@@ -5084,17 +5084,17 @@ function isPrimitive_0(_this__u8e3s4) {
|
|
|
5084
5084
|
return tmp;
|
|
5085
5085
|
}
|
|
5086
5086
|
function toPrimitive_0(_this__u8e3s4) {
|
|
5087
|
-
var tmp0_subject = _this__u8e3s4.
|
|
5087
|
+
var tmp0_subject = _this__u8e3s4.g3a_1;
|
|
5088
5088
|
var tmp;
|
|
5089
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
5089
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.b3_1) {
|
|
5090
5090
|
case 0:
|
|
5091
|
-
tmp = !(_this__u8e3s4.
|
|
5091
|
+
tmp = !(_this__u8e3s4.h3b_1 == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.h3b_1))) : _this__u8e3s4.a3b_1 === 'binary' ? Bytes_instance : new String_0(null);
|
|
5092
5092
|
break;
|
|
5093
5093
|
case 2:
|
|
5094
|
-
tmp = new Integer(_this__u8e3s4.
|
|
5094
|
+
tmp = new Integer(_this__u8e3s4.a3b_1 === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5095
5095
|
break;
|
|
5096
5096
|
case 1:
|
|
5097
|
-
tmp = new Number_0(_this__u8e3s4.
|
|
5097
|
+
tmp = new Number_0(_this__u8e3s4.a3b_1 === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5098
5098
|
break;
|
|
5099
5099
|
case 3:
|
|
5100
5100
|
tmp = Boolean_instance;
|
|
@@ -5106,9 +5106,9 @@ function toPrimitive_0(_this__u8e3s4) {
|
|
|
5106
5106
|
return tmp;
|
|
5107
5107
|
}
|
|
5108
5108
|
function resolveOpenAPIV3Header(_this__u8e3s4, reference) {
|
|
5109
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5110
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5111
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5109
|
+
var tmp0_safe_receiver = _this__u8e3s4.l38_1;
|
|
5110
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r39_1;
|
|
5111
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5112
5112
|
var tmp;
|
|
5113
5113
|
if (tmp2_safe_receiver == null) {
|
|
5114
5114
|
tmp = null;
|
|
@@ -5129,7 +5129,7 @@ function resolveOpenAPIV3Header(_this__u8e3s4, reference) {
|
|
|
5129
5129
|
var tmp3_elvis_lhs = tmp;
|
|
5130
5130
|
var tmp_1;
|
|
5131
5131
|
if (tmp3_elvis_lhs == null) {
|
|
5132
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5132
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.t3d_1);
|
|
5133
5133
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5134
5134
|
} else {
|
|
5135
5135
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5142,7 +5142,7 @@ function resolve_8(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
5142
5142
|
tmp = schemaOrReferenceOrBoolean;
|
|
5143
5143
|
} else {
|
|
5144
5144
|
if (schemaOrReferenceOrBoolean instanceof OpenAPIV3Reference) {
|
|
5145
|
-
tmp = resolveOpenAPIV3Schema(_this__u8e3s4, schemaOrReferenceOrBoolean).
|
|
5145
|
+
tmp = resolveOpenAPIV3Schema(_this__u8e3s4, schemaOrReferenceOrBoolean).xe_1;
|
|
5146
5146
|
} else {
|
|
5147
5147
|
if (isInterface(schemaOrReferenceOrBoolean, BooleanValue)) {
|
|
5148
5148
|
var reason = 'Not yet implemented';
|
|
@@ -5156,27 +5156,27 @@ function resolve_8(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
5156
5156
|
}
|
|
5157
5157
|
function toField_4(_this__u8e3s4, schema, name) {
|
|
5158
5158
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5159
|
-
var tmp0_elvis_lhs = schema.
|
|
5159
|
+
var tmp0_elvis_lhs = schema.x3a_1;
|
|
5160
5160
|
// Inline function 'kotlin.collections.map' call
|
|
5161
5161
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
5162
5162
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5163
5163
|
var destination = ArrayList_init_$Create$_0(this_0.a1());
|
|
5164
5164
|
// Inline function 'kotlin.collections.iterator' call
|
|
5165
|
-
var _iterator__ex2g4s = this_0.
|
|
5165
|
+
var _iterator__ex2g4s = this_0.j1().t();
|
|
5166
5166
|
while (_iterator__ex2g4s.u()) {
|
|
5167
5167
|
var item = _iterator__ex2g4s.v();
|
|
5168
5168
|
// Inline function 'kotlin.collections.component1' call
|
|
5169
|
-
var key = item.
|
|
5169
|
+
var key = item.k1();
|
|
5170
5170
|
// Inline function 'kotlin.collections.component2' call
|
|
5171
|
-
var value = item.
|
|
5172
|
-
var tmp0_safe_receiver = schema.
|
|
5173
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5171
|
+
var value = item.l1();
|
|
5172
|
+
var tmp0_safe_receiver = schema.t3a_1;
|
|
5173
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u1(key);
|
|
5174
5174
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
5175
5175
|
var tmp;
|
|
5176
5176
|
if (value instanceof OpenAPIV3Schema) {
|
|
5177
5177
|
var tmp3_identifier = new FieldIdentifier(key);
|
|
5178
|
-
var tmp4_annotations = toDescriptionAnnotationList(value.
|
|
5179
|
-
var tmp5_reference = !(value.
|
|
5178
|
+
var tmp4_annotations = toDescriptionAnnotationList(value.n3a_1);
|
|
5179
|
+
var tmp5_reference = !(value.u3a_1 == null) ? toReference_2(_this__u8e3s4, value, isNullable, className([name, key])) : equals(value.g3a_1, OpenAPIV3Type_ARRAY_getInstance()) ? toReference_2(_this__u8e3s4, value, isNullable, className([name, key, 'Array'])) : toReference_2(_this__u8e3s4, value, isNullable, className([name, key]));
|
|
5180
5180
|
tmp = new Field(tmp4_annotations, tmp3_identifier, tmp5_reference);
|
|
5181
5181
|
} else {
|
|
5182
5182
|
if (value instanceof OpenAPIV3Reference) {
|
|
@@ -5195,25 +5195,25 @@ function toField_4(_this__u8e3s4, schema, name) {
|
|
|
5195
5195
|
}
|
|
5196
5196
|
function parseParameters$lambda_0($this_parseParameters) {
|
|
5197
5197
|
return function ($this$flatMapRequests) {
|
|
5198
|
-
var tmp = $this$flatMapRequests.
|
|
5199
|
-
var tmp_0 = resolveParameters_0($this_parseParameters, (tmp instanceof OpenAPIV3PathItem ? tmp : THROW_CCE()).
|
|
5200
|
-
var tmp_1 = $this$flatMapRequests.
|
|
5201
|
-
var parameters = plus_0(tmp_0, resolveParameters_0($this_parseParameters, (tmp_1 instanceof OpenAPIV3Operation ? tmp_1 : THROW_CCE()).
|
|
5202
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
5203
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
5198
|
+
var tmp = $this$flatMapRequests.t3h_1;
|
|
5199
|
+
var tmp_0 = resolveParameters_0($this_parseParameters, (tmp instanceof OpenAPIV3PathItem ? tmp : THROW_CCE()).v38_1);
|
|
5200
|
+
var tmp_1 = $this$flatMapRequests.v3h_1;
|
|
5201
|
+
var parameters = plus_0(tmp_0, resolveParameters_0($this_parseParameters, (tmp_1 instanceof OpenAPIV3Operation ? tmp_1 : THROW_CCE()).i3c_1));
|
|
5202
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.v3h_1);
|
|
5203
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.s3h_1) + $this$flatMapRequests.u3h_1.a3_1 : tmp0_elvis_lhs;
|
|
5204
5204
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5205
5205
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5206
5206
|
var destination = ArrayList_init_$Create$();
|
|
5207
5207
|
var _iterator__ex2g4s = parameters.t();
|
|
5208
5208
|
while (_iterator__ex2g4s.u()) {
|
|
5209
5209
|
var element = _iterator__ex2g4s.v();
|
|
5210
|
-
var tmp0_safe_receiver = element.
|
|
5210
|
+
var tmp0_safe_receiver = element.c3c_1;
|
|
5211
5211
|
var tmp_2;
|
|
5212
5212
|
if (tmp0_safe_receiver == null) {
|
|
5213
5213
|
tmp_2 = null;
|
|
5214
5214
|
} else {
|
|
5215
5215
|
// Inline function 'kotlin.let' call
|
|
5216
|
-
tmp_2 = flatten_1($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element.
|
|
5216
|
+
tmp_2 = flatten_1($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element.d3c_1]));
|
|
5217
5217
|
}
|
|
5218
5218
|
var tmp1_elvis_lhs = tmp_2;
|
|
5219
5219
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -5224,10 +5224,10 @@ function parseParameters$lambda_0($this_parseParameters) {
|
|
|
5224
5224
|
}
|
|
5225
5225
|
function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
5226
5226
|
return function ($this$flatMapRequests) {
|
|
5227
|
-
var tmp = $this$flatMapRequests.
|
|
5227
|
+
var tmp = $this$flatMapRequests.v3h_1;
|
|
5228
5228
|
var tmp0_elvis_lhs = toName(tmp instanceof OpenAPIV3Operation ? tmp : THROW_CCE());
|
|
5229
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
5230
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
5229
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.s3h_1) + $this$flatMapRequests.u3h_1.a3_1 : tmp0_elvis_lhs;
|
|
5230
|
+
var tmp1_safe_receiver = $this$flatMapRequests.v3h_1.j3c_1;
|
|
5231
5231
|
var tmp_0;
|
|
5232
5232
|
if (tmp1_safe_receiver == null) {
|
|
5233
5233
|
tmp_0 = null;
|
|
@@ -5237,29 +5237,29 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
5237
5237
|
}
|
|
5238
5238
|
var tmp2_safe_receiver = tmp_0;
|
|
5239
5239
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5240
|
-
var tmp0_elvis_lhs_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
5240
|
+
var tmp0_elvis_lhs_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.z3c_1;
|
|
5241
5241
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5242
5242
|
var tmp0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
5243
5243
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5244
5244
|
var destination = ArrayList_init_$Create$();
|
|
5245
5245
|
// Inline function 'kotlin.collections.iterator' call
|
|
5246
|
-
var _iterator__ex2g4s = tmp0.
|
|
5246
|
+
var _iterator__ex2g4s = tmp0.j1().t();
|
|
5247
5247
|
while (_iterator__ex2g4s.u()) {
|
|
5248
5248
|
var element = _iterator__ex2g4s.v();
|
|
5249
5249
|
// Inline function 'kotlin.collections.component2' call
|
|
5250
|
-
var mediaObject = element.
|
|
5251
|
-
var schema = mediaObject.
|
|
5250
|
+
var mediaObject = element.l1();
|
|
5251
|
+
var schema = mediaObject.f3d_1;
|
|
5252
5252
|
var tmp_1;
|
|
5253
5253
|
if (schema instanceof OpenAPIV3Schema) {
|
|
5254
|
-
var tmp0_subject = schema.
|
|
5254
|
+
var tmp0_subject = schema.g3a_1;
|
|
5255
5255
|
var tmp_2;
|
|
5256
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
5256
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.b3_1) {
|
|
5257
5257
|
case -1:
|
|
5258
5258
|
case 5:
|
|
5259
5259
|
tmp_2 = flatten_2($this_parseRequestBody, schema, className([name, 'RequestBody']));
|
|
5260
5260
|
break;
|
|
5261
5261
|
case 4:
|
|
5262
|
-
var tmp1_safe_receiver_0 = schema.
|
|
5262
|
+
var tmp1_safe_receiver_0 = schema.v3a_1;
|
|
5263
5263
|
var tmp_3;
|
|
5264
5264
|
if (tmp1_safe_receiver_0 == null) {
|
|
5265
5265
|
tmp_3 = null;
|
|
@@ -5299,17 +5299,17 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
5299
5299
|
}
|
|
5300
5300
|
function parseResponseBody$lambda_0($this_parseResponseBody) {
|
|
5301
5301
|
return function ($this$flatMapResponses) {
|
|
5302
|
-
var tmp = $this$flatMapResponses.
|
|
5302
|
+
var tmp = $this$flatMapResponses.z3h_1;
|
|
5303
5303
|
var tmp0_elvis_lhs = toName(tmp instanceof OpenAPIV3Operation ? tmp : THROW_CCE());
|
|
5304
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
5305
|
-
var tmp_0 = $this$flatMapResponses.
|
|
5304
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.w3h_1) + $this$flatMapResponses.y3h_1.a3_1 : tmp0_elvis_lhs;
|
|
5305
|
+
var tmp_0 = $this$flatMapResponses.b3i_1;
|
|
5306
5306
|
var response = isInterface(tmp_0, OpenAPIV3ResponseOrReference) ? tmp_0 : THROW_CCE();
|
|
5307
5307
|
var tmp_1;
|
|
5308
5308
|
if (response instanceof OpenAPIV3Response) {
|
|
5309
|
-
tmp_1 = flatMapResponse($this_parseResponseBody, response, name, $this$flatMapResponses.
|
|
5309
|
+
tmp_1 = flatMapResponse($this_parseResponseBody, response, name, $this$flatMapResponses.a3i_1);
|
|
5310
5310
|
} else {
|
|
5311
5311
|
if (response instanceof OpenAPIV3Reference) {
|
|
5312
|
-
tmp_1 = flatMapResponse($this_parseResponseBody, resolveOpenAPIV3Response($this_parseResponseBody, response).
|
|
5312
|
+
tmp_1 = flatMapResponse($this_parseResponseBody, resolveOpenAPIV3Response($this_parseResponseBody, response).xe_1, name, $this$flatMapResponses.a3i_1);
|
|
5313
5313
|
} else {
|
|
5314
5314
|
noWhenBranchMatchedException();
|
|
5315
5315
|
}
|