@flock/wirespec 0.19.5 → 0.20.0-RC.1
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 +167 -167
- package/clikt-clikt-mordant.mjs +81 -81
- package/clikt-clikt-mordant.mjs.map +1 -1
- package/clikt-clikt.mjs +1636 -1636
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +448 -448
- package/kotest-kotest-assertions-kotest-assertions-core.mjs +4 -0
- package/kotest-kotest-assertions-kotest-assertions-core.mjs.map +1 -0
- package/kotest-kotest-assertions-kotest-assertions-shared.mjs +4 -0
- package/kotest-kotest-assertions-kotest-assertions-shared.mjs.map +1 -0
- package/kotest-kotest-common.mjs +56 -0
- package/kotest-kotest-common.mjs.map +1 -0
- package/kotest-kotest-framework-kotest-framework-engine.mjs +4 -0
- package/kotest-kotest-framework-kotest-framework-engine.mjs.map +1 -0
- package/kotest-kotest-property.mjs +2501 -0
- package/kotest-kotest-property.mjs.map +1 -0
- package/kotlin-kotlin-stdlib.mjs +5263 -2481
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10243 -10243
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1846 -1846
- package/kotlin-rgxgen.mjs.map +1 -1
- package/kotlinx-coroutines-test.mjs +4 -0
- package/kotlinx-coroutines-test.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core.mjs +455 -455
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2135 -2101
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1579 -1579
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1435 -1435
- package/package.json +5 -1
- package/wirespec-generator.d.ts +51 -0
- package/wirespec-generator.mjs +9 -0
- package/wirespec-src-compiler-core.mjs +1598 -1598
- package/wirespec-src-compiler-emitters-java.mjs +445 -445
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +343 -343
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +429 -429
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +482 -482
- package/wirespec-src-compiler-emitters-scala.mjs +194 -194
- package/wirespec-src-compiler-emitters-typescript.mjs +530 -530
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +87 -87
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +3887 -3863
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +457 -457
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +521 -521
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +859 -859
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-ide-lsp.mjs +1387 -1387
- package/wirespec-src-ide-lsp.mjs.map +1 -1
- package/wirespec-src-integration-kotest.mjs +1647 -0
- package/wirespec-src-integration-kotest.mjs.map +1 -0
- package/wirespec-src-plugin-arguments.mjs +192 -192
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +109 -109
- package/wirespec-src-plugin-npm.d.mts +21 -0
- package/wirespec-src-plugin-npm.mjs +43 -43
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +35 -35
- package/wirespec-src-tools-generator.mjs.map +1 -1
- package/xmlutil-core.mjs +4 -0
- package/xmlutil-core.mjs.map +1 -0
- package/xmlutil-serialization.mjs +4 -0
- package/xmlutil-serialization.mjs.map +1 -0
|
@@ -241,11 +241,11 @@ initMetadataForObject(OpenAPIV3Parser, 'OpenAPIV3Parser');
|
|
|
241
241
|
function emitFormat(_this__u8e3s4) {
|
|
242
242
|
var tmp;
|
|
243
243
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
244
|
-
var t = _this__u8e3s4.
|
|
244
|
+
var t = _this__u8e3s4.qy_1;
|
|
245
245
|
var tmp_0;
|
|
246
246
|
if (t instanceof Number_0) {
|
|
247
247
|
var tmp_1;
|
|
248
|
-
switch (t.
|
|
248
|
+
switch (t.xx_1.c3_1) {
|
|
249
249
|
case 0:
|
|
250
250
|
tmp_1 = 'float';
|
|
251
251
|
break;
|
|
@@ -260,7 +260,7 @@ function emitFormat(_this__u8e3s4) {
|
|
|
260
260
|
} else {
|
|
261
261
|
if (t instanceof Integer) {
|
|
262
262
|
var tmp_2;
|
|
263
|
-
switch (t.
|
|
263
|
+
switch (t.ux_1.c3_1) {
|
|
264
264
|
case 0:
|
|
265
265
|
tmp_2 = 'int32';
|
|
266
266
|
break;
|
|
@@ -287,7 +287,7 @@ function emitFormat(_this__u8e3s4) {
|
|
|
287
287
|
return tmp;
|
|
288
288
|
}
|
|
289
289
|
function parseOpenApi(moduleContent, openApiParser) {
|
|
290
|
-
return new Root(nonEmptyListOf(new Module(moduleContent.
|
|
290
|
+
return new Root(nonEmptyListOf(new Module(moduleContent.yq_1, openApiParser(moduleContent.zq_1).zp_1), []));
|
|
291
291
|
}
|
|
292
292
|
function jsonDefault(strict) {
|
|
293
293
|
return Json(VOID, jsonDefault$lambda(strict));
|
|
@@ -301,42 +301,42 @@ function toOperationList(_this__u8e3s4) {
|
|
|
301
301
|
while (_iterator__ex2g4s.u()) {
|
|
302
302
|
var element = _iterator__ex2g4s.v();
|
|
303
303
|
var tmp;
|
|
304
|
-
switch (element.
|
|
304
|
+
switch (element.c3_1) {
|
|
305
305
|
case 0:
|
|
306
|
-
tmp = _this__u8e3s4.
|
|
306
|
+
tmp = _this__u8e3s4.p38();
|
|
307
307
|
break;
|
|
308
308
|
case 1:
|
|
309
|
-
tmp = _this__u8e3s4.
|
|
309
|
+
tmp = _this__u8e3s4.r38();
|
|
310
310
|
break;
|
|
311
311
|
case 2:
|
|
312
|
-
tmp = _this__u8e3s4.
|
|
312
|
+
tmp = _this__u8e3s4.q38();
|
|
313
313
|
break;
|
|
314
314
|
case 3:
|
|
315
|
-
tmp = _this__u8e3s4.
|
|
315
|
+
tmp = _this__u8e3s4.s38();
|
|
316
316
|
break;
|
|
317
317
|
case 4:
|
|
318
|
-
tmp = _this__u8e3s4.
|
|
318
|
+
tmp = _this__u8e3s4.t38();
|
|
319
319
|
break;
|
|
320
320
|
case 5:
|
|
321
|
-
tmp = _this__u8e3s4.
|
|
321
|
+
tmp = _this__u8e3s4.u38();
|
|
322
322
|
break;
|
|
323
323
|
case 6:
|
|
324
|
-
tmp = _this__u8e3s4.
|
|
324
|
+
tmp = _this__u8e3s4.v38();
|
|
325
325
|
break;
|
|
326
326
|
case 7:
|
|
327
|
-
tmp = _this__u8e3s4.
|
|
327
|
+
tmp = _this__u8e3s4.w38();
|
|
328
328
|
break;
|
|
329
329
|
default:
|
|
330
330
|
noWhenBranchMatchedException();
|
|
331
331
|
break;
|
|
332
332
|
}
|
|
333
333
|
var tmp$ret$0 = tmp;
|
|
334
|
-
result.
|
|
334
|
+
result.t2(element, tmp$ret$0);
|
|
335
335
|
}
|
|
336
336
|
return filterNotNullValues(result);
|
|
337
337
|
}
|
|
338
338
|
function toName(_this__u8e3s4) {
|
|
339
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
339
|
+
var tmp0_safe_receiver = _this__u8e3s4.t34();
|
|
340
340
|
var tmp;
|
|
341
341
|
if (tmp0_safe_receiver == null) {
|
|
342
342
|
tmp = null;
|
|
@@ -356,7 +356,7 @@ function toName_0(_this__u8e3s4) {
|
|
|
356
356
|
var element = _iterator__ex2g4s.v();
|
|
357
357
|
// Inline function 'kotlin.text.isNotBlank' call
|
|
358
358
|
if (!isBlank(element)) {
|
|
359
|
-
destination.
|
|
359
|
+
destination.y(element);
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
var tmp = destination;
|
|
@@ -373,41 +373,41 @@ function sanitize(_this__u8e3s4) {
|
|
|
373
373
|
var item = _iterator__ex2g4s.v();
|
|
374
374
|
var _unary__edvuaz = index;
|
|
375
375
|
index = _unary__edvuaz + 1 | 0;
|
|
376
|
-
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.
|
|
377
|
-
destination.
|
|
376
|
+
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.pu(item) : item;
|
|
377
|
+
destination.y(tmp$ret$0);
|
|
378
378
|
}
|
|
379
379
|
var tmp = asSequence(joinToString(destination, ''));
|
|
380
380
|
return joinToString_0(filter(tmp, sanitize$lambda), '');
|
|
381
381
|
}
|
|
382
382
|
function flatMapRequests(_this__u8e3s4, f) {
|
|
383
383
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
384
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
384
|
+
var tmp0_elvis_lhs = _this__u8e3s4.u36();
|
|
385
385
|
// Inline function 'kotlin.collections.flatMap' call
|
|
386
386
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
387
387
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
388
388
|
var destination = ArrayList_init_$Create$();
|
|
389
389
|
// Inline function 'kotlin.collections.iterator' call
|
|
390
|
-
var _iterator__ex2g4s = tmp0.
|
|
390
|
+
var _iterator__ex2g4s = tmp0.k1().t();
|
|
391
391
|
while (_iterator__ex2g4s.u()) {
|
|
392
392
|
var element = _iterator__ex2g4s.v();
|
|
393
393
|
// Inline function 'kotlin.collections.component1' call
|
|
394
|
-
var path = element.
|
|
394
|
+
var path = element.l1().u33_1;
|
|
395
395
|
// Inline function 'kotlin.collections.component2' call
|
|
396
|
-
var pathItem = element.
|
|
396
|
+
var pathItem = element.m1();
|
|
397
397
|
// Inline function 'kotlin.collections.map' call
|
|
398
398
|
var this_0 = toOperationList(pathItem);
|
|
399
399
|
// Inline function 'kotlin.collections.mapTo' call
|
|
400
|
-
var destination_0 = ArrayList_init_$Create$_0(this_0.
|
|
400
|
+
var destination_0 = ArrayList_init_$Create$_0(this_0.b1());
|
|
401
401
|
// Inline function 'kotlin.collections.iterator' call
|
|
402
|
-
var _iterator__ex2g4s_0 = this_0.
|
|
402
|
+
var _iterator__ex2g4s_0 = this_0.k1().t();
|
|
403
403
|
while (_iterator__ex2g4s_0.u()) {
|
|
404
404
|
var item = _iterator__ex2g4s_0.v();
|
|
405
405
|
// Inline function 'kotlin.collections.component1' call
|
|
406
|
-
var method = item.
|
|
406
|
+
var method = item.l1();
|
|
407
407
|
// Inline function 'kotlin.collections.component2' call
|
|
408
|
-
var operation = item.
|
|
408
|
+
var operation = item.m1();
|
|
409
409
|
var tmp$ret$7 = new FlattenRequest(path, pathItem, method, operation);
|
|
410
|
-
destination_0.
|
|
410
|
+
destination_0.y(tmp$ret$7);
|
|
411
411
|
}
|
|
412
412
|
var list = destination_0;
|
|
413
413
|
addAll(destination, list);
|
|
@@ -424,19 +424,19 @@ function flatMapRequests(_this__u8e3s4, f) {
|
|
|
424
424
|
return destination_1;
|
|
425
425
|
}
|
|
426
426
|
function FlattenRequest(path, pathItem, method, operation) {
|
|
427
|
-
this.
|
|
428
|
-
this.
|
|
429
|
-
this.
|
|
430
|
-
this.
|
|
427
|
+
this.l4a_1 = path;
|
|
428
|
+
this.m4a_1 = pathItem;
|
|
429
|
+
this.n4a_1 = method;
|
|
430
|
+
this.o4a_1 = operation;
|
|
431
431
|
}
|
|
432
432
|
protoOf(FlattenRequest).toString = function () {
|
|
433
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
433
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.l4a_1) + ', pathItem=' + toString(this.m4a_1) + ', method=' + this.n4a_1.toString() + ', operation=' + toString(this.o4a_1) + ')';
|
|
434
434
|
};
|
|
435
435
|
protoOf(FlattenRequest).hashCode = function () {
|
|
436
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
437
|
-
result = imul(result, 31) + hashCode(this.
|
|
438
|
-
result = imul(result, 31) + this.
|
|
439
|
-
result = imul(result, 31) + hashCode(this.
|
|
436
|
+
var result = Path__hashCode_impl_go73kd(this.l4a_1);
|
|
437
|
+
result = imul(result, 31) + hashCode(this.m4a_1) | 0;
|
|
438
|
+
result = imul(result, 31) + this.n4a_1.hashCode() | 0;
|
|
439
|
+
result = imul(result, 31) + hashCode(this.o4a_1) | 0;
|
|
440
440
|
return result;
|
|
441
441
|
};
|
|
442
442
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -444,59 +444,59 @@ protoOf(FlattenRequest).equals = function (other) {
|
|
|
444
444
|
return true;
|
|
445
445
|
if (!(other instanceof FlattenRequest))
|
|
446
446
|
return false;
|
|
447
|
-
if (!(this.
|
|
447
|
+
if (!(this.l4a_1 === other.l4a_1))
|
|
448
448
|
return false;
|
|
449
|
-
if (!equals(this.
|
|
449
|
+
if (!equals(this.m4a_1, other.m4a_1))
|
|
450
450
|
return false;
|
|
451
|
-
if (!this.
|
|
451
|
+
if (!this.n4a_1.equals(other.n4a_1))
|
|
452
452
|
return false;
|
|
453
|
-
if (!equals(this.
|
|
453
|
+
if (!equals(this.o4a_1, other.o4a_1))
|
|
454
454
|
return false;
|
|
455
455
|
return true;
|
|
456
456
|
};
|
|
457
457
|
function flatMapResponses(_this__u8e3s4, f) {
|
|
458
458
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
459
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
459
|
+
var tmp0_elvis_lhs = _this__u8e3s4.u36();
|
|
460
460
|
// Inline function 'kotlin.collections.flatMap' call
|
|
461
461
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
462
462
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
463
463
|
var destination = ArrayList_init_$Create$();
|
|
464
464
|
// Inline function 'kotlin.collections.iterator' call
|
|
465
|
-
var _iterator__ex2g4s = tmp0.
|
|
465
|
+
var _iterator__ex2g4s = tmp0.k1().t();
|
|
466
466
|
while (_iterator__ex2g4s.u()) {
|
|
467
467
|
var element = _iterator__ex2g4s.v();
|
|
468
468
|
// Inline function 'kotlin.collections.component1' call
|
|
469
|
-
var path = element.
|
|
469
|
+
var path = element.l1().u33_1;
|
|
470
470
|
// Inline function 'kotlin.collections.component2' call
|
|
471
|
-
var pathItem = element.
|
|
471
|
+
var pathItem = element.m1();
|
|
472
472
|
// Inline function 'kotlin.collections.flatMap' call
|
|
473
473
|
var tmp0_0 = toOperationList(pathItem);
|
|
474
474
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
475
475
|
var destination_0 = ArrayList_init_$Create$();
|
|
476
476
|
// Inline function 'kotlin.collections.iterator' call
|
|
477
|
-
var _iterator__ex2g4s_0 = tmp0_0.
|
|
477
|
+
var _iterator__ex2g4s_0 = tmp0_0.k1().t();
|
|
478
478
|
while (_iterator__ex2g4s_0.u()) {
|
|
479
479
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
480
480
|
// Inline function 'kotlin.collections.component1' call
|
|
481
|
-
var method = element_0.
|
|
481
|
+
var method = element_0.l1();
|
|
482
482
|
// Inline function 'kotlin.collections.component2' call
|
|
483
|
-
var operation = element_0.
|
|
483
|
+
var operation = element_0.m1();
|
|
484
484
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
485
|
-
var tmp0_elvis_lhs_0 = operation.
|
|
485
|
+
var tmp0_elvis_lhs_0 = operation.b10();
|
|
486
486
|
// Inline function 'kotlin.collections.map' call
|
|
487
487
|
var this_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
488
488
|
// Inline function 'kotlin.collections.mapTo' call
|
|
489
|
-
var destination_1 = ArrayList_init_$Create$_0(this_0.
|
|
489
|
+
var destination_1 = ArrayList_init_$Create$_0(this_0.b1());
|
|
490
490
|
// Inline function 'kotlin.collections.iterator' call
|
|
491
|
-
var _iterator__ex2g4s_1 = this_0.
|
|
491
|
+
var _iterator__ex2g4s_1 = this_0.k1().t();
|
|
492
492
|
while (_iterator__ex2g4s_1.u()) {
|
|
493
493
|
var item = _iterator__ex2g4s_1.v();
|
|
494
494
|
// Inline function 'kotlin.collections.component1' call
|
|
495
|
-
var statusCode = item.
|
|
495
|
+
var statusCode = item.l1().y33_1;
|
|
496
496
|
// Inline function 'kotlin.collections.component2' call
|
|
497
|
-
var response = item.
|
|
497
|
+
var response = item.m1();
|
|
498
498
|
var tmp$ret$11 = new FlattenResponse(path, pathItem, method, operation, statusCode, response);
|
|
499
|
-
destination_1.
|
|
499
|
+
destination_1.y(tmp$ret$11);
|
|
500
500
|
}
|
|
501
501
|
var list = destination_1;
|
|
502
502
|
addAll(destination_0, list);
|
|
@@ -516,23 +516,23 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
516
516
|
return destination_2;
|
|
517
517
|
}
|
|
518
518
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response) {
|
|
519
|
-
this.
|
|
520
|
-
this.
|
|
521
|
-
this.
|
|
522
|
-
this.
|
|
523
|
-
this.
|
|
524
|
-
this.
|
|
519
|
+
this.p4a_1 = path;
|
|
520
|
+
this.q4a_1 = pathItem;
|
|
521
|
+
this.r4a_1 = method;
|
|
522
|
+
this.s4a_1 = operation;
|
|
523
|
+
this.t4a_1 = statusCode;
|
|
524
|
+
this.u4a_1 = response;
|
|
525
525
|
}
|
|
526
526
|
protoOf(FlattenResponse).toString = function () {
|
|
527
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
527
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.p4a_1) + ', pathItem=' + toString(this.q4a_1) + ', method=' + this.r4a_1.toString() + ', operation=' + toString(this.s4a_1) + ', statusCode=' + StatusCode__toString_impl_6caewy(this.t4a_1) + ', response=' + toString(this.u4a_1) + ')';
|
|
528
528
|
};
|
|
529
529
|
protoOf(FlattenResponse).hashCode = function () {
|
|
530
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
531
|
-
result = imul(result, 31) + hashCode(this.
|
|
532
|
-
result = imul(result, 31) + this.
|
|
533
|
-
result = imul(result, 31) + hashCode(this.
|
|
534
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
535
|
-
result = imul(result, 31) + hashCode(this.
|
|
530
|
+
var result = Path__hashCode_impl_go73kd(this.p4a_1);
|
|
531
|
+
result = imul(result, 31) + hashCode(this.q4a_1) | 0;
|
|
532
|
+
result = imul(result, 31) + this.r4a_1.hashCode() | 0;
|
|
533
|
+
result = imul(result, 31) + hashCode(this.s4a_1) | 0;
|
|
534
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.t4a_1) | 0;
|
|
535
|
+
result = imul(result, 31) + hashCode(this.u4a_1) | 0;
|
|
536
536
|
return result;
|
|
537
537
|
};
|
|
538
538
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -540,17 +540,17 @@ protoOf(FlattenResponse).equals = function (other) {
|
|
|
540
540
|
return true;
|
|
541
541
|
if (!(other instanceof FlattenResponse))
|
|
542
542
|
return false;
|
|
543
|
-
if (!(this.
|
|
543
|
+
if (!(this.p4a_1 === other.p4a_1))
|
|
544
544
|
return false;
|
|
545
|
-
if (!equals(this.
|
|
545
|
+
if (!equals(this.q4a_1, other.q4a_1))
|
|
546
546
|
return false;
|
|
547
|
-
if (!this.
|
|
547
|
+
if (!this.r4a_1.equals(other.r4a_1))
|
|
548
548
|
return false;
|
|
549
|
-
if (!equals(this.
|
|
549
|
+
if (!equals(this.s4a_1, other.s4a_1))
|
|
550
550
|
return false;
|
|
551
|
-
if (!(this.
|
|
551
|
+
if (!(this.t4a_1 === other.t4a_1))
|
|
552
552
|
return false;
|
|
553
|
-
if (!equals(this.
|
|
553
|
+
if (!equals(this.u4a_1, other.u4a_1))
|
|
554
554
|
return false;
|
|
555
555
|
return true;
|
|
556
556
|
};
|
|
@@ -559,7 +559,7 @@ function toDict(_this__u8e3s4, isNullable) {
|
|
|
559
559
|
}
|
|
560
560
|
function getReference(_this__u8e3s4) {
|
|
561
561
|
// Inline function 'kotlin.let' call
|
|
562
|
-
var it = split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
562
|
+
var it = split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.d34()), ['/']);
|
|
563
563
|
var tmp;
|
|
564
564
|
if (_this__u8e3s4 instanceof OpenAPIV20Reference) {
|
|
565
565
|
tmp = getOrNull(it, 2);
|
|
@@ -569,7 +569,7 @@ function getReference(_this__u8e3s4) {
|
|
|
569
569
|
var tmp0_elvis_lhs = tmp;
|
|
570
570
|
var tmp_0;
|
|
571
571
|
if (tmp0_elvis_lhs == null) {
|
|
572
|
-
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
572
|
+
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe(_this__u8e3s4.d34());
|
|
573
573
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
574
574
|
} else {
|
|
575
575
|
tmp_0 = tmp0_elvis_lhs;
|
|
@@ -584,8 +584,8 @@ function isParam(_this__u8e3s4) {
|
|
|
584
584
|
}
|
|
585
585
|
function jsonDefault$lambda($strict) {
|
|
586
586
|
return function ($this$Json) {
|
|
587
|
-
$this$Json.
|
|
588
|
-
$this$Json.
|
|
587
|
+
$this$Json.u2q_1 = true;
|
|
588
|
+
$this$Json.s2q_1 = !$strict;
|
|
589
589
|
return Unit_instance;
|
|
590
590
|
};
|
|
591
591
|
}
|
|
@@ -605,7 +605,7 @@ function toName$lambda(it) {
|
|
|
605
605
|
return tmp;
|
|
606
606
|
}
|
|
607
607
|
function sanitize$lambda(it) {
|
|
608
|
-
return isLetterOrDigit(it.
|
|
608
|
+
return isLetterOrDigit(it.i1_1) || listOf(new Char(_Char___init__impl__6a9atx(95))).v1(it);
|
|
609
609
|
}
|
|
610
610
|
function get_json() {
|
|
611
611
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -621,7 +621,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
621
621
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
622
622
|
while (_iterator__ex2g4s.u()) {
|
|
623
623
|
var element = _iterator__ex2g4s.v();
|
|
624
|
-
if (element.
|
|
624
|
+
if (element.ox_1 === 'Description') {
|
|
625
625
|
tmp$ret$1 = element;
|
|
626
626
|
break $l$block;
|
|
627
627
|
}
|
|
@@ -629,7 +629,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
629
629
|
tmp$ret$1 = null;
|
|
630
630
|
}
|
|
631
631
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
632
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
632
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.px_1;
|
|
633
633
|
var tmp;
|
|
634
634
|
if (tmp1_safe_receiver == null) {
|
|
635
635
|
tmp = null;
|
|
@@ -641,7 +641,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
641
641
|
var _iterator__ex2g4s_0 = tmp1_safe_receiver.t();
|
|
642
642
|
while (_iterator__ex2g4s_0.u()) {
|
|
643
643
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
644
|
-
if (element_0.
|
|
644
|
+
if (element_0.mx_1 === 'default') {
|
|
645
645
|
tmp$ret$4 = element_0;
|
|
646
646
|
break $l$block_0;
|
|
647
647
|
}
|
|
@@ -651,7 +651,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
651
651
|
tmp = tmp$ret$4;
|
|
652
652
|
}
|
|
653
653
|
var tmp2_safe_receiver = tmp;
|
|
654
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
654
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.nx_1;
|
|
655
655
|
var tmp_0;
|
|
656
656
|
if (tmp3_safe_receiver == null) {
|
|
657
657
|
tmp_0 = null;
|
|
@@ -660,7 +660,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
660
660
|
tmp_0 = tmp3_safe_receiver instanceof Single ? tmp3_safe_receiver : null;
|
|
661
661
|
}
|
|
662
662
|
var tmp4_safe_receiver = tmp_0;
|
|
663
|
-
return tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
663
|
+
return tmp4_safe_receiver == null ? null : tmp4_safe_receiver.jx_1;
|
|
664
664
|
}
|
|
665
665
|
function resolveEndpointNameCollisions(_this__u8e3s4) {
|
|
666
666
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -671,7 +671,7 @@ function resolveEndpointNameCollisions(_this__u8e3s4) {
|
|
|
671
671
|
while (_iterator__ex2g4s.u()) {
|
|
672
672
|
var element = _iterator__ex2g4s.v();
|
|
673
673
|
if (!(element instanceof Endpoint)) {
|
|
674
|
-
destination.
|
|
674
|
+
destination.y(element);
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
677
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -680,8 +680,8 @@ function resolveEndpointNameCollisions(_this__u8e3s4) {
|
|
|
680
680
|
var _iterator__ex2g4s_0 = destination.t();
|
|
681
681
|
while (_iterator__ex2g4s_0.u()) {
|
|
682
682
|
var item = _iterator__ex2g4s_0.v();
|
|
683
|
-
var tmp$ret$3 = item.
|
|
684
|
-
destination_0.
|
|
683
|
+
var tmp$ret$3 = item.xu().m1();
|
|
684
|
+
destination_0.y(tmp$ret$3);
|
|
685
685
|
}
|
|
686
686
|
var nonEndpointNames = toSet(destination_0);
|
|
687
687
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -693,17 +693,17 @@ function resolveEndpointNameCollisions(_this__u8e3s4) {
|
|
|
693
693
|
var tmp;
|
|
694
694
|
var tmp_0;
|
|
695
695
|
if (item_0 instanceof Endpoint) {
|
|
696
|
-
tmp_0 = nonEndpointNames.
|
|
696
|
+
tmp_0 = nonEndpointNames.v1(item_0.ft_1.m1());
|
|
697
697
|
} else {
|
|
698
698
|
tmp_0 = false;
|
|
699
699
|
}
|
|
700
700
|
if (tmp_0) {
|
|
701
|
-
tmp = item_0.
|
|
701
|
+
tmp = item_0.ex(VOID, VOID, new DefinitionIdentifier(item_0.ft_1.m1() + 'Endpoint'));
|
|
702
702
|
} else {
|
|
703
703
|
tmp = item_0;
|
|
704
704
|
}
|
|
705
705
|
var tmp$ret$6 = tmp;
|
|
706
|
-
destination_1.
|
|
706
|
+
destination_1.y(tmp$ret$6);
|
|
707
707
|
}
|
|
708
708
|
return destination_1;
|
|
709
709
|
}
|
|
@@ -745,25 +745,25 @@ function toDescriptionAnnotationList(_this__u8e3s4) {
|
|
|
745
745
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
746
746
|
}
|
|
747
747
|
function LinkInfo(name, operationId, operationRef, parameters, requestBody, description, serverUrl) {
|
|
748
|
-
this.
|
|
749
|
-
this.
|
|
750
|
-
this.
|
|
751
|
-
this.
|
|
752
|
-
this.
|
|
753
|
-
this.
|
|
754
|
-
this.
|
|
748
|
+
this.v4a_1 = name;
|
|
749
|
+
this.w4a_1 = operationId;
|
|
750
|
+
this.x4a_1 = operationRef;
|
|
751
|
+
this.y4a_1 = parameters;
|
|
752
|
+
this.z4a_1 = requestBody;
|
|
753
|
+
this.a4b_1 = description;
|
|
754
|
+
this.b4b_1 = serverUrl;
|
|
755
755
|
}
|
|
756
756
|
protoOf(LinkInfo).toString = function () {
|
|
757
|
-
return 'LinkInfo(name=' + this.
|
|
757
|
+
return 'LinkInfo(name=' + this.v4a_1 + ', operationId=' + this.w4a_1 + ', operationRef=' + this.x4a_1 + ', parameters=' + toString(this.y4a_1) + ', requestBody=' + this.z4a_1 + ', description=' + this.a4b_1 + ', serverUrl=' + this.b4b_1 + ')';
|
|
758
758
|
};
|
|
759
759
|
protoOf(LinkInfo).hashCode = function () {
|
|
760
|
-
var result = getStringHashCode(this.
|
|
761
|
-
result = imul(result, 31) + (this.
|
|
762
|
-
result = imul(result, 31) + (this.
|
|
763
|
-
result = imul(result, 31) + hashCode(this.
|
|
764
|
-
result = imul(result, 31) + (this.
|
|
765
|
-
result = imul(result, 31) + (this.
|
|
766
|
-
result = imul(result, 31) + (this.
|
|
760
|
+
var result = getStringHashCode(this.v4a_1);
|
|
761
|
+
result = imul(result, 31) + (this.w4a_1 == null ? 0 : getStringHashCode(this.w4a_1)) | 0;
|
|
762
|
+
result = imul(result, 31) + (this.x4a_1 == null ? 0 : getStringHashCode(this.x4a_1)) | 0;
|
|
763
|
+
result = imul(result, 31) + hashCode(this.y4a_1) | 0;
|
|
764
|
+
result = imul(result, 31) + (this.z4a_1 == null ? 0 : getStringHashCode(this.z4a_1)) | 0;
|
|
765
|
+
result = imul(result, 31) + (this.a4b_1 == null ? 0 : getStringHashCode(this.a4b_1)) | 0;
|
|
766
|
+
result = imul(result, 31) + (this.b4b_1 == null ? 0 : getStringHashCode(this.b4b_1)) | 0;
|
|
767
767
|
return result;
|
|
768
768
|
};
|
|
769
769
|
protoOf(LinkInfo).equals = function (other) {
|
|
@@ -771,19 +771,19 @@ protoOf(LinkInfo).equals = function (other) {
|
|
|
771
771
|
return true;
|
|
772
772
|
if (!(other instanceof LinkInfo))
|
|
773
773
|
return false;
|
|
774
|
-
if (!(this.
|
|
774
|
+
if (!(this.v4a_1 === other.v4a_1))
|
|
775
775
|
return false;
|
|
776
|
-
if (!(this.
|
|
776
|
+
if (!(this.w4a_1 == other.w4a_1))
|
|
777
777
|
return false;
|
|
778
|
-
if (!(this.
|
|
778
|
+
if (!(this.x4a_1 == other.x4a_1))
|
|
779
779
|
return false;
|
|
780
|
-
if (!equals(this.
|
|
780
|
+
if (!equals(this.y4a_1, other.y4a_1))
|
|
781
781
|
return false;
|
|
782
|
-
if (!(this.
|
|
782
|
+
if (!(this.z4a_1 == other.z4a_1))
|
|
783
783
|
return false;
|
|
784
|
-
if (!(this.
|
|
784
|
+
if (!(this.a4b_1 == other.a4b_1))
|
|
785
785
|
return false;
|
|
786
|
-
if (!(this.
|
|
786
|
+
if (!(this.b4b_1 == other.b4b_1))
|
|
787
787
|
return false;
|
|
788
788
|
return true;
|
|
789
789
|
};
|
|
@@ -795,8 +795,8 @@ function findLinks(_this__u8e3s4) {
|
|
|
795
795
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
796
796
|
while (_iterator__ex2g4s.u()) {
|
|
797
797
|
var element = _iterator__ex2g4s.v();
|
|
798
|
-
if (element.
|
|
799
|
-
destination.
|
|
798
|
+
if (element.ox_1 === 'Link') {
|
|
799
|
+
destination.y(element);
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
802
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -811,79 +811,79 @@ function findLinks(_this__u8e3s4) {
|
|
|
811
811
|
null;
|
|
812
812
|
else {
|
|
813
813
|
// Inline function 'kotlin.let' call
|
|
814
|
-
destination_0.
|
|
814
|
+
destination_0.y(tmp0_safe_receiver);
|
|
815
815
|
}
|
|
816
816
|
}
|
|
817
817
|
return destination_0;
|
|
818
818
|
}
|
|
819
819
|
function toAnnotation(_this__u8e3s4) {
|
|
820
820
|
_init_properties_Utils_kt__jo07cx();
|
|
821
|
-
var params = mutableListOf([new Parameter('default', new Single(_this__u8e3s4.
|
|
822
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
821
|
+
var params = mutableListOf([new Parameter('default', new Single(_this__u8e3s4.v4a_1))]);
|
|
822
|
+
var tmp0_safe_receiver = _this__u8e3s4.w4a_1;
|
|
823
823
|
if (tmp0_safe_receiver == null)
|
|
824
824
|
null;
|
|
825
825
|
else {
|
|
826
826
|
// Inline function 'kotlin.let' call
|
|
827
827
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
828
828
|
var element = new Parameter('operationId', new Single(tmp0_safe_receiver));
|
|
829
|
-
params.
|
|
829
|
+
params.y(element);
|
|
830
830
|
}
|
|
831
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
831
|
+
var tmp1_safe_receiver = _this__u8e3s4.x4a_1;
|
|
832
832
|
if (tmp1_safe_receiver == null)
|
|
833
833
|
null;
|
|
834
834
|
else {
|
|
835
835
|
// Inline function 'kotlin.let' call
|
|
836
836
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
837
837
|
var element_0 = new Parameter('operationRef', new Single(tmp1_safe_receiver));
|
|
838
|
-
params.
|
|
838
|
+
params.y(element_0);
|
|
839
839
|
}
|
|
840
840
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
841
|
-
if (!_this__u8e3s4.
|
|
841
|
+
if (!_this__u8e3s4.y4a_1.r()) {
|
|
842
842
|
// Inline function 'kotlin.collections.map' call
|
|
843
|
-
var this_0 = _this__u8e3s4.
|
|
843
|
+
var this_0 = _this__u8e3s4.y4a_1;
|
|
844
844
|
// Inline function 'kotlin.collections.mapTo' call
|
|
845
|
-
var destination = ArrayList_init_$Create$_0(this_0.
|
|
845
|
+
var destination = ArrayList_init_$Create$_0(this_0.b1());
|
|
846
846
|
// Inline function 'kotlin.collections.iterator' call
|
|
847
|
-
var _iterator__ex2g4s = this_0.
|
|
847
|
+
var _iterator__ex2g4s = this_0.k1().t();
|
|
848
848
|
while (_iterator__ex2g4s.u()) {
|
|
849
849
|
var item = _iterator__ex2g4s.v();
|
|
850
850
|
// Inline function 'kotlin.collections.component1' call
|
|
851
|
-
var k = item.
|
|
851
|
+
var k = item.l1();
|
|
852
852
|
// Inline function 'kotlin.collections.component2' call
|
|
853
|
-
var v = item.
|
|
853
|
+
var v = item.m1();
|
|
854
854
|
var tmp$ret$10 = new Parameter(k, new Single(v));
|
|
855
|
-
destination.
|
|
855
|
+
destination.y(tmp$ret$10);
|
|
856
856
|
}
|
|
857
857
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
858
858
|
var element_1 = new Parameter('parameters', new Dict_0(destination));
|
|
859
|
-
params.
|
|
859
|
+
params.y(element_1);
|
|
860
860
|
}
|
|
861
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
861
|
+
var tmp2_safe_receiver = _this__u8e3s4.z4a_1;
|
|
862
862
|
if (tmp2_safe_receiver == null)
|
|
863
863
|
null;
|
|
864
864
|
else {
|
|
865
865
|
// Inline function 'kotlin.let' call
|
|
866
866
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
867
867
|
var element_2 = new Parameter('requestBody', new Single(tmp2_safe_receiver));
|
|
868
|
-
params.
|
|
868
|
+
params.y(element_2);
|
|
869
869
|
}
|
|
870
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
870
|
+
var tmp3_safe_receiver = _this__u8e3s4.a4b_1;
|
|
871
871
|
if (tmp3_safe_receiver == null)
|
|
872
872
|
null;
|
|
873
873
|
else {
|
|
874
874
|
// Inline function 'kotlin.let' call
|
|
875
875
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
876
876
|
var element_3 = new Parameter('description', new Single(tmp3_safe_receiver));
|
|
877
|
-
params.
|
|
877
|
+
params.y(element_3);
|
|
878
878
|
}
|
|
879
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
879
|
+
var tmp4_safe_receiver = _this__u8e3s4.b4b_1;
|
|
880
880
|
if (tmp4_safe_receiver == null)
|
|
881
881
|
null;
|
|
882
882
|
else {
|
|
883
883
|
// Inline function 'kotlin.let' call
|
|
884
884
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
885
885
|
var element_4 = new Parameter('server', new Single(tmp4_safe_receiver));
|
|
886
|
-
params.
|
|
886
|
+
params.y(element_4);
|
|
887
887
|
}
|
|
888
888
|
return new Annotation('Link', params);
|
|
889
889
|
}
|
|
@@ -896,7 +896,7 @@ function toDescriptionAnnotation(description) {
|
|
|
896
896
|
}
|
|
897
897
|
function toLinkInfo(_this__u8e3s4) {
|
|
898
898
|
_init_properties_Utils_kt__jo07cx();
|
|
899
|
-
var tmp0_elvis_lhs = singleParam(_this__u8e3s4.
|
|
899
|
+
var tmp0_elvis_lhs = singleParam(_this__u8e3s4.px_1, 'default');
|
|
900
900
|
var tmp;
|
|
901
901
|
if (tmp0_elvis_lhs == null) {
|
|
902
902
|
return null;
|
|
@@ -904,7 +904,7 @@ function toLinkInfo(_this__u8e3s4) {
|
|
|
904
904
|
tmp = tmp0_elvis_lhs;
|
|
905
905
|
}
|
|
906
906
|
var name = tmp;
|
|
907
|
-
return new LinkInfo(name, singleParam(_this__u8e3s4.
|
|
907
|
+
return new LinkInfo(name, singleParam(_this__u8e3s4.px_1, 'operationId'), singleParam(_this__u8e3s4.px_1, 'operationRef'), dictParam(_this__u8e3s4.px_1, 'parameters'), singleParam(_this__u8e3s4.px_1, 'requestBody'), singleParam(_this__u8e3s4.px_1, 'description'), singleParam(_this__u8e3s4.px_1, 'server'));
|
|
908
908
|
}
|
|
909
909
|
function singleParam(_this__u8e3s4, name) {
|
|
910
910
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -915,7 +915,7 @@ function singleParam(_this__u8e3s4, name) {
|
|
|
915
915
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
916
916
|
while (_iterator__ex2g4s.u()) {
|
|
917
917
|
var element = _iterator__ex2g4s.v();
|
|
918
|
-
if (element.
|
|
918
|
+
if (element.mx_1 === name) {
|
|
919
919
|
tmp$ret$1 = element;
|
|
920
920
|
break $l$block;
|
|
921
921
|
}
|
|
@@ -923,7 +923,7 @@ function singleParam(_this__u8e3s4, name) {
|
|
|
923
923
|
tmp$ret$1 = null;
|
|
924
924
|
}
|
|
925
925
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
926
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
926
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.nx_1;
|
|
927
927
|
var tmp;
|
|
928
928
|
if (tmp1_safe_receiver == null) {
|
|
929
929
|
tmp = null;
|
|
@@ -932,7 +932,7 @@ function singleParam(_this__u8e3s4, name) {
|
|
|
932
932
|
tmp = tmp1_safe_receiver instanceof Single ? tmp1_safe_receiver : null;
|
|
933
933
|
}
|
|
934
934
|
var tmp2_safe_receiver = tmp;
|
|
935
|
-
return tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
935
|
+
return tmp2_safe_receiver == null ? null : tmp2_safe_receiver.jx_1;
|
|
936
936
|
}
|
|
937
937
|
function dictParam(_this__u8e3s4, name) {
|
|
938
938
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -943,7 +943,7 @@ function dictParam(_this__u8e3s4, name) {
|
|
|
943
943
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
944
944
|
while (_iterator__ex2g4s.u()) {
|
|
945
945
|
var element = _iterator__ex2g4s.v();
|
|
946
|
-
if (element.
|
|
946
|
+
if (element.mx_1 === name) {
|
|
947
947
|
tmp$ret$1 = element;
|
|
948
948
|
break $l$block;
|
|
949
949
|
}
|
|
@@ -951,7 +951,7 @@ function dictParam(_this__u8e3s4, name) {
|
|
|
951
951
|
tmp$ret$1 = null;
|
|
952
952
|
}
|
|
953
953
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
954
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
954
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.nx_1;
|
|
955
955
|
var tmp;
|
|
956
956
|
if (tmp1_safe_receiver == null) {
|
|
957
957
|
tmp = null;
|
|
@@ -960,7 +960,7 @@ function dictParam(_this__u8e3s4, name) {
|
|
|
960
960
|
tmp = tmp1_safe_receiver instanceof Dict_0 ? tmp1_safe_receiver : null;
|
|
961
961
|
}
|
|
962
962
|
var tmp2_safe_receiver = tmp;
|
|
963
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
963
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.lx_1;
|
|
964
964
|
var tmp_0;
|
|
965
965
|
if (tmp3_safe_receiver == null) {
|
|
966
966
|
tmp_0 = null;
|
|
@@ -972,21 +972,21 @@ function dictParam(_this__u8e3s4, name) {
|
|
|
972
972
|
var _iterator__ex2g4s_0 = tmp3_safe_receiver.t();
|
|
973
973
|
while (_iterator__ex2g4s_0.u()) {
|
|
974
974
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
975
|
-
var tmp_1 = element_0.
|
|
975
|
+
var tmp_1 = element_0.nx_1;
|
|
976
976
|
var tmp0_safe_receiver_0 = tmp_1 instanceof Single ? tmp_1 : null;
|
|
977
977
|
var tmp_2;
|
|
978
978
|
if (tmp0_safe_receiver_0 == null) {
|
|
979
979
|
tmp_2 = null;
|
|
980
980
|
} else {
|
|
981
981
|
// Inline function 'kotlin.let' call
|
|
982
|
-
tmp_2 = to(element_0.
|
|
982
|
+
tmp_2 = to(element_0.mx_1, tmp0_safe_receiver_0.jx_1);
|
|
983
983
|
}
|
|
984
984
|
var tmp0_safe_receiver_1 = tmp_2;
|
|
985
985
|
if (tmp0_safe_receiver_1 == null)
|
|
986
986
|
null;
|
|
987
987
|
else {
|
|
988
988
|
// Inline function 'kotlin.let' call
|
|
989
|
-
destination.
|
|
989
|
+
destination.y(tmp0_safe_receiver_1);
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
992
|
tmp_0 = destination;
|
|
@@ -1003,13 +1003,13 @@ function filterNotNullValues(_this__u8e3s4) {
|
|
|
1003
1003
|
var destination = ArrayList_init_$Create$();
|
|
1004
1004
|
// Inline function 'kotlin.collections.forEach' call
|
|
1005
1005
|
// Inline function 'kotlin.collections.iterator' call
|
|
1006
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
1006
|
+
var _iterator__ex2g4s = _this__u8e3s4.k1().t();
|
|
1007
1007
|
while (_iterator__ex2g4s.u()) {
|
|
1008
1008
|
var element = _iterator__ex2g4s.v();
|
|
1009
1009
|
// Inline function 'kotlin.collections.component1' call
|
|
1010
|
-
var key = element.
|
|
1010
|
+
var key = element.l1();
|
|
1011
1011
|
// Inline function 'kotlin.collections.component2' call
|
|
1012
|
-
var value = element.
|
|
1012
|
+
var value = element.m1();
|
|
1013
1013
|
var tmp;
|
|
1014
1014
|
if (value == null) {
|
|
1015
1015
|
tmp = null;
|
|
@@ -1022,19 +1022,19 @@ function filterNotNullValues(_this__u8e3s4) {
|
|
|
1022
1022
|
null;
|
|
1023
1023
|
else {
|
|
1024
1024
|
// Inline function 'kotlin.let' call
|
|
1025
|
-
destination.
|
|
1025
|
+
destination.y(tmp0_safe_receiver);
|
|
1026
1026
|
}
|
|
1027
1027
|
}
|
|
1028
1028
|
return toMap(destination);
|
|
1029
1029
|
}
|
|
1030
1030
|
function json$lambda($this$Json) {
|
|
1031
1031
|
_init_properties_Utils_kt__jo07cx();
|
|
1032
|
-
$this$Json.
|
|
1032
|
+
$this$Json.u2q_1 = true;
|
|
1033
1033
|
return Unit_instance;
|
|
1034
1034
|
}
|
|
1035
1035
|
function className$lambda(it) {
|
|
1036
1036
|
_init_properties_Utils_kt__jo07cx();
|
|
1037
|
-
return Companion_instance.
|
|
1037
|
+
return Companion_instance.pu(it);
|
|
1038
1038
|
}
|
|
1039
1039
|
var properties_initialized_Utils_kt_xvi83j;
|
|
1040
1040
|
function _init_properties_Utils_kt__jo07cx() {
|
|
@@ -1052,7 +1052,7 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1052
1052
|
while (_iterator__ex2g4s.u()) {
|
|
1053
1053
|
var element = _iterator__ex2g4s.v();
|
|
1054
1054
|
if (element instanceof Refined) {
|
|
1055
|
-
destination.
|
|
1055
|
+
destination.y(element);
|
|
1056
1056
|
}
|
|
1057
1057
|
}
|
|
1058
1058
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -1062,39 +1062,39 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1062
1062
|
var _iterator__ex2g4s_0 = destination.t();
|
|
1063
1063
|
while (_iterator__ex2g4s_0.u()) {
|
|
1064
1064
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1065
|
-
var type = element_0.
|
|
1065
|
+
var type = element_0.ev_1.qy_1;
|
|
1066
1066
|
var tmp;
|
|
1067
1067
|
if (equals(type, Boolean_instance)) {
|
|
1068
|
-
tmp = to(element_0.
|
|
1068
|
+
tmp = to(element_0.dv_1.m1(), new OpenAPIV20Schema(VOID, OpenAPIV20Type_BOOLEAN_getInstance()));
|
|
1069
1069
|
} else {
|
|
1070
1070
|
if (equals(type, Bytes_instance)) {
|
|
1071
|
-
tmp = to(element_0.
|
|
1071
|
+
tmp = to(element_0.dv_1.m1(), new OpenAPIV20Schema(VOID, OpenAPIV20Type_FILE_getInstance()));
|
|
1072
1072
|
} else {
|
|
1073
1073
|
if (type instanceof Integer) {
|
|
1074
|
-
var tmp_0 = element_0.
|
|
1074
|
+
var tmp_0 = element_0.dv_1.m1();
|
|
1075
1075
|
var tmp4_type = OpenAPIV20Type_INTEGER_getInstance();
|
|
1076
|
-
var tmp0_safe_receiver = type.
|
|
1077
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1076
|
+
var tmp0_safe_receiver = type.vx_1;
|
|
1077
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qx_1;
|
|
1078
1078
|
var tmp5_minimum = tmp1_safe_receiver == null ? null : toDouble(tmp1_safe_receiver);
|
|
1079
|
-
var tmp2_safe_receiver = type.
|
|
1080
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
1079
|
+
var tmp2_safe_receiver = type.vx_1;
|
|
1080
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.rx_1;
|
|
1081
1081
|
var tmp6_maximum = tmp3_safe_receiver == null ? null : toDouble(tmp3_safe_receiver);
|
|
1082
1082
|
tmp = to(tmp_0, new OpenAPIV20Schema(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));
|
|
1083
1083
|
} else {
|
|
1084
1084
|
if (type instanceof Number_0) {
|
|
1085
|
-
var tmp_1 = element_0.
|
|
1085
|
+
var tmp_1 = element_0.dv_1.m1();
|
|
1086
1086
|
var tmp11_type = OpenAPIV20Type_NUMBER_getInstance();
|
|
1087
|
-
var tmp7_safe_receiver = type.
|
|
1088
|
-
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.
|
|
1087
|
+
var tmp7_safe_receiver = type.yx_1;
|
|
1088
|
+
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.qx_1;
|
|
1089
1089
|
var tmp12_minimum = tmp8_safe_receiver == null ? null : toDouble(tmp8_safe_receiver);
|
|
1090
|
-
var tmp9_safe_receiver = type.
|
|
1091
|
-
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.
|
|
1090
|
+
var tmp9_safe_receiver = type.yx_1;
|
|
1091
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.rx_1;
|
|
1092
1092
|
var tmp13_maximum = tmp10_safe_receiver == null ? null : toDouble(tmp10_safe_receiver);
|
|
1093
1093
|
tmp = to(tmp_1, new OpenAPIV20Schema(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));
|
|
1094
1094
|
} else {
|
|
1095
1095
|
if (type instanceof String_0) {
|
|
1096
|
-
var tmp_2 = element_0.
|
|
1097
|
-
var pattern = type.
|
|
1096
|
+
var tmp_2 = element_0.dv_1.m1();
|
|
1097
|
+
var pattern = type.sx_1;
|
|
1098
1098
|
var tmp_3;
|
|
1099
1099
|
var tmp_4 = pattern;
|
|
1100
1100
|
if ((tmp_4 == null ? null : new RegExp_0(tmp_4))instanceof RegExp_0) {
|
|
@@ -1117,9 +1117,9 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1117
1117
|
}
|
|
1118
1118
|
// Inline function 'kotlin.also' call
|
|
1119
1119
|
var this_0 = tmp;
|
|
1120
|
-
logger.
|
|
1120
|
+
logger.uu('Emitting Refined ' + element_0.dv_1.m1());
|
|
1121
1121
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1122
|
-
destination_0.
|
|
1122
|
+
destination_0.t2(this_0.vf_1, this_0.wf_1);
|
|
1123
1123
|
}
|
|
1124
1124
|
var refined = destination_0;
|
|
1125
1125
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
@@ -1130,7 +1130,7 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1130
1130
|
while (_iterator__ex2g4s_1.u()) {
|
|
1131
1131
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
1132
1132
|
if (element_1 instanceof Type) {
|
|
1133
|
-
destination_1.
|
|
1133
|
+
destination_1.y(element_1);
|
|
1134
1134
|
}
|
|
1135
1135
|
}
|
|
1136
1136
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -1140,11 +1140,11 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1140
1140
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
1141
1141
|
while (_iterator__ex2g4s_2.u()) {
|
|
1142
1142
|
var element_2 = _iterator__ex2g4s_2.v();
|
|
1143
|
-
var tmp_6 = element_2.
|
|
1144
|
-
var tmp0_elvis_lhs = findDescription(element_2.
|
|
1143
|
+
var tmp_6 = element_2.ws_1.m1();
|
|
1144
|
+
var tmp0_elvis_lhs = findDescription(element_2.vs_1);
|
|
1145
1145
|
var tmp_7;
|
|
1146
1146
|
if (tmp0_elvis_lhs == null) {
|
|
1147
|
-
var tmp1_safe_receiver_0 = element_2.
|
|
1147
|
+
var tmp1_safe_receiver_0 = element_2.us_1;
|
|
1148
1148
|
var tmp_8;
|
|
1149
1149
|
var tmp_9 = tmp1_safe_receiver_0;
|
|
1150
1150
|
if ((tmp_9 == null ? null : new Comment(tmp_9)) == null) {
|
|
@@ -1158,7 +1158,7 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1158
1158
|
}
|
|
1159
1159
|
var tmp2_description = tmp_7;
|
|
1160
1160
|
// Inline function 'kotlin.collections.associate' call
|
|
1161
|
-
var this_1 = element_2.
|
|
1161
|
+
var this_1 = element_2.xs_1.ts_1;
|
|
1162
1162
|
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_1, 10)), 16);
|
|
1163
1163
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1164
1164
|
var destination_3 = LinkedHashMap_init_$Create$(capacity_1);
|
|
@@ -1167,17 +1167,17 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1167
1167
|
var element_3 = _iterator__ex2g4s_3.v();
|
|
1168
1168
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1169
1169
|
var pair = toProperties(OpenAPIV2Emitter_getInstance(), element_3);
|
|
1170
|
-
destination_3.
|
|
1170
|
+
destination_3.t2(pair.vf_1, pair.wf_1);
|
|
1171
1171
|
}
|
|
1172
1172
|
// Inline function 'kotlin.collections.filter' call
|
|
1173
|
-
var tmp0_1 = element_2.
|
|
1173
|
+
var tmp0_1 = element_2.xs_1.ts_1;
|
|
1174
1174
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1175
1175
|
var destination_4 = ArrayList_init_$Create$();
|
|
1176
1176
|
var _iterator__ex2g4s_4 = tmp0_1.t();
|
|
1177
1177
|
while (_iterator__ex2g4s_4.u()) {
|
|
1178
1178
|
var element_4 = _iterator__ex2g4s_4.v();
|
|
1179
|
-
if (!element_4.
|
|
1180
|
-
destination_4.
|
|
1179
|
+
if (!element_4.ct_1.ey()) {
|
|
1180
|
+
destination_4.y(element_4);
|
|
1181
1181
|
}
|
|
1182
1182
|
}
|
|
1183
1183
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1186,8 +1186,8 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1186
1186
|
var _iterator__ex2g4s_5 = destination_4.t();
|
|
1187
1187
|
while (_iterator__ex2g4s_5.u()) {
|
|
1188
1188
|
var item = _iterator__ex2g4s_5.v();
|
|
1189
|
-
var tmp$ret$17 = item.
|
|
1190
|
-
destination_5.
|
|
1189
|
+
var tmp$ret$17 = item.bt_1.m1();
|
|
1190
|
+
destination_5.y(tmp$ret$17);
|
|
1191
1191
|
}
|
|
1192
1192
|
// Inline function 'kotlin.takeIf' call
|
|
1193
1193
|
var tmp_10;
|
|
@@ -1200,10 +1200,10 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1200
1200
|
var tmp4_required = tmp_10;
|
|
1201
1201
|
// Inline function 'kotlin.also' call
|
|
1202
1202
|
var this_2 = new OpenAPIV20Schema(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_description, VOID, VOID, VOID, VOID, VOID, tmp4_required, VOID, VOID, VOID, destination_3);
|
|
1203
|
-
logger.
|
|
1203
|
+
logger.uu('Emitting Type ' + element_2.ws_1.m1());
|
|
1204
1204
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1205
1205
|
var pair_0 = to(tmp_6, this_2);
|
|
1206
|
-
destination_2.
|
|
1206
|
+
destination_2.t2(pair_0.vf_1, pair_0.wf_1);
|
|
1207
1207
|
}
|
|
1208
1208
|
var types = destination_2;
|
|
1209
1209
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
@@ -1214,7 +1214,7 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1214
1214
|
while (_iterator__ex2g4s_6.u()) {
|
|
1215
1215
|
var element_5 = _iterator__ex2g4s_6.v();
|
|
1216
1216
|
if (element_5 instanceof Enum) {
|
|
1217
|
-
destination_6.
|
|
1217
|
+
destination_6.y(element_5);
|
|
1218
1218
|
}
|
|
1219
1219
|
}
|
|
1220
1220
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -1224,25 +1224,25 @@ function emitDefinitions($this, _this__u8e3s4, logger) {
|
|
|
1224
1224
|
var _iterator__ex2g4s_7 = destination_6.t();
|
|
1225
1225
|
while (_iterator__ex2g4s_7.u()) {
|
|
1226
1226
|
var element_6 = _iterator__ex2g4s_7.v();
|
|
1227
|
-
var tmp_11 = element_6.
|
|
1227
|
+
var tmp_11 = element_6.iv_1.m1();
|
|
1228
1228
|
var tmp0_type = OpenAPIV20Type_STRING_getInstance();
|
|
1229
1229
|
// Inline function 'kotlin.collections.map' call
|
|
1230
|
-
var this_3 = element_6.
|
|
1230
|
+
var this_3 = element_6.jv_1;
|
|
1231
1231
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1232
1232
|
var destination_8 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_3, 10));
|
|
1233
1233
|
var _iterator__ex2g4s_8 = this_3.t();
|
|
1234
1234
|
while (_iterator__ex2g4s_8.u()) {
|
|
1235
1235
|
var item_0 = _iterator__ex2g4s_8.v();
|
|
1236
1236
|
var tmp$ret$31 = JsonPrimitive(item_0);
|
|
1237
|
-
destination_8.
|
|
1237
|
+
destination_8.y(tmp$ret$31);
|
|
1238
1238
|
}
|
|
1239
|
-
var tmp2_description_0 = findDescription(element_6.
|
|
1239
|
+
var tmp2_description_0 = findDescription(element_6.hv_1);
|
|
1240
1240
|
// Inline function 'kotlin.also' call
|
|
1241
1241
|
var this_4 = new OpenAPIV20Schema(VOID, tmp0_type, VOID, VOID, VOID, VOID, VOID, tmp2_description_0, VOID, VOID, VOID, VOID, VOID, VOID, destination_8);
|
|
1242
|
-
logger.
|
|
1242
|
+
logger.uu('Emitting Enum ' + element_6.iv_1.m1());
|
|
1243
1243
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1244
1244
|
var pair_1 = to(tmp_11, this_4);
|
|
1245
|
-
destination_7.
|
|
1245
|
+
destination_7.t2(pair_1.vf_1, pair_1.wf_1);
|
|
1246
1246
|
}
|
|
1247
1247
|
var enums = destination_7;
|
|
1248
1248
|
return plus(plus(refined, types), enums);
|
|
@@ -1256,7 +1256,7 @@ function emitPaths($this, _this__u8e3s4, logger) {
|
|
|
1256
1256
|
while (_iterator__ex2g4s.u()) {
|
|
1257
1257
|
var element = _iterator__ex2g4s.v();
|
|
1258
1258
|
if (element instanceof Endpoint) {
|
|
1259
|
-
destination.
|
|
1259
|
+
destination.y(element);
|
|
1260
1260
|
}
|
|
1261
1261
|
}
|
|
1262
1262
|
// Inline function 'kotlin.collections.groupBy' call
|
|
@@ -1265,32 +1265,32 @@ function emitPaths($this, _this__u8e3s4, logger) {
|
|
|
1265
1265
|
var _iterator__ex2g4s_0 = destination.t();
|
|
1266
1266
|
while (_iterator__ex2g4s_0.u()) {
|
|
1267
1267
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1268
|
-
var key = element_0.
|
|
1268
|
+
var key = element_0.ht_1;
|
|
1269
1269
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1270
|
-
var value = destination_0.
|
|
1270
|
+
var value = destination_0.q2(key);
|
|
1271
1271
|
var tmp;
|
|
1272
1272
|
if (value == null) {
|
|
1273
1273
|
var answer = ArrayList_init_$Create$();
|
|
1274
|
-
destination_0.
|
|
1274
|
+
destination_0.t2(key, answer);
|
|
1275
1275
|
tmp = answer;
|
|
1276
1276
|
} else {
|
|
1277
1277
|
tmp = value;
|
|
1278
1278
|
}
|
|
1279
1279
|
var list = tmp;
|
|
1280
|
-
list.
|
|
1280
|
+
list.y(element_0);
|
|
1281
1281
|
}
|
|
1282
1282
|
// Inline function 'kotlin.collections.map' call
|
|
1283
1283
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1284
|
-
var destination_1 = ArrayList_init_$Create$_0(destination_0.
|
|
1284
|
+
var destination_1 = ArrayList_init_$Create$_0(destination_0.b1());
|
|
1285
1285
|
// Inline function 'kotlin.collections.iterator' call
|
|
1286
|
-
var _iterator__ex2g4s_1 = destination_0.
|
|
1286
|
+
var _iterator__ex2g4s_1 = destination_0.k1().t();
|
|
1287
1287
|
while (_iterator__ex2g4s_1.u()) {
|
|
1288
1288
|
var item = _iterator__ex2g4s_1.v();
|
|
1289
1289
|
// Inline function 'kotlin.collections.component1' call
|
|
1290
|
-
var path = item.
|
|
1290
|
+
var path = item.l1();
|
|
1291
1291
|
// Inline function 'kotlin.collections.component2' call
|
|
1292
|
-
var endpoints = item.
|
|
1293
|
-
logger.
|
|
1292
|
+
var endpoints = item.m1();
|
|
1293
|
+
logger.uu('Emitting endpoints for path ' + emitSegment(OpenAPIV2Emitter_getInstance(), path));
|
|
1294
1294
|
var tmp_0 = _Path___init__impl__6uf4pw(emitSegment(OpenAPIV2Emitter_getInstance(), path));
|
|
1295
1295
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1296
1296
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
@@ -1299,7 +1299,7 @@ function emitPaths($this, _this__u8e3s4, logger) {
|
|
|
1299
1299
|
while (_iterator__ex2g4s_2.u()) {
|
|
1300
1300
|
var element_1 = _iterator__ex2g4s_2.v();
|
|
1301
1301
|
if (element_1 instanceof Param) {
|
|
1302
|
-
destination_2.
|
|
1302
|
+
destination_2.y(element_1);
|
|
1303
1303
|
}
|
|
1304
1304
|
}
|
|
1305
1305
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1309,14 +1309,14 @@ function emitPaths($this, _this__u8e3s4, logger) {
|
|
|
1309
1309
|
while (_iterator__ex2g4s_3.u()) {
|
|
1310
1310
|
var item_0 = _iterator__ex2g4s_3.v();
|
|
1311
1311
|
var tmp0_in = OpenAPIV20ParameterLocation_PATH_getInstance();
|
|
1312
|
-
var tmp1_name = item_0.
|
|
1313
|
-
var tmp2_type = emitType_0(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1314
|
-
var tmp3_format = emitFormat(item_0.
|
|
1315
|
-
var tmp4_pattern = emitPattern(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1316
|
-
var tmp5_minimum = emitMinimum(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1317
|
-
var tmp6_maximum = emitMaximum(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1312
|
+
var tmp1_name = item_0.mt_1.m1();
|
|
1313
|
+
var tmp2_type = emitType_0(OpenAPIV2Emitter_getInstance(), item_0.nt_1);
|
|
1314
|
+
var tmp3_format = emitFormat(item_0.nt_1);
|
|
1315
|
+
var tmp4_pattern = emitPattern(OpenAPIV2Emitter_getInstance(), item_0.nt_1);
|
|
1316
|
+
var tmp5_minimum = emitMinimum(OpenAPIV2Emitter_getInstance(), item_0.nt_1);
|
|
1317
|
+
var tmp6_maximum = emitMaximum(OpenAPIV2Emitter_getInstance(), item_0.nt_1);
|
|
1318
1318
|
var tmp$ret$12 = new OpenAPIV20Parameter(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);
|
|
1319
|
-
destination_3.
|
|
1319
|
+
destination_3.y(tmp$ret$12);
|
|
1320
1320
|
}
|
|
1321
1321
|
var tmp1_get = emit(OpenAPIV2Emitter_getInstance(), endpoints, Method_GET_getInstance());
|
|
1322
1322
|
var tmp2_post = emit(OpenAPIV2Emitter_getInstance(), endpoints, Method_POST_getInstance());
|
|
@@ -1327,17 +1327,17 @@ function emitPaths($this, _this__u8e3s4, logger) {
|
|
|
1327
1327
|
var tmp7_trace = emit(OpenAPIV2Emitter_getInstance(), endpoints, Method_TRACE_getInstance());
|
|
1328
1328
|
var tmp8_head = emit(OpenAPIV2Emitter_getInstance(), endpoints, Method_HEAD_getInstance());
|
|
1329
1329
|
var tmp$ret$15 = to(new Path(tmp_0), new OpenAPIV20PathItem(destination_3, VOID, VOID, VOID, tmp1_get, tmp3_put, tmp2_post, tmp4_delete, tmp6_options, tmp8_head, tmp5_patch, tmp7_trace));
|
|
1330
|
-
destination_1.
|
|
1330
|
+
destination_1.y(tmp$ret$15);
|
|
1331
1331
|
}
|
|
1332
1332
|
return toMap(destination_1);
|
|
1333
1333
|
}
|
|
1334
1334
|
function toProperties($this, _this__u8e3s4) {
|
|
1335
|
-
var tmp = _this__u8e3s4.
|
|
1335
|
+
var tmp = _this__u8e3s4.bt_1.m1();
|
|
1336
1336
|
// Inline function 'kotlin.let' call
|
|
1337
|
-
var it = toSchemaOrReference($this, _this__u8e3s4.
|
|
1337
|
+
var it = toSchemaOrReference($this, _this__u8e3s4.ct_1);
|
|
1338
1338
|
var tmp_0;
|
|
1339
1339
|
if (it instanceof OpenAPIV20Schema) {
|
|
1340
|
-
tmp_0 = it.
|
|
1340
|
+
tmp_0 = it.g3a(VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription(_this__u8e3s4.at_1));
|
|
1341
1341
|
} else {
|
|
1342
1342
|
if (it instanceof OpenAPIV20Reference) {
|
|
1343
1343
|
tmp_0 = it;
|
|
@@ -1355,8 +1355,8 @@ function emit($this, _this__u8e3s4, method) {
|
|
|
1355
1355
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
1356
1356
|
while (_iterator__ex2g4s.u()) {
|
|
1357
1357
|
var element = _iterator__ex2g4s.v();
|
|
1358
|
-
if (element.
|
|
1359
|
-
destination.
|
|
1358
|
+
if (element.gt_1.equals(method)) {
|
|
1359
|
+
destination.y(element);
|
|
1360
1360
|
}
|
|
1361
1361
|
}
|
|
1362
1362
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1366,16 +1366,16 @@ function emit($this, _this__u8e3s4, method) {
|
|
|
1366
1366
|
while (_iterator__ex2g4s_0.u()) {
|
|
1367
1367
|
var item = _iterator__ex2g4s_0.v();
|
|
1368
1368
|
var tmp$ret$3 = emit_0(OpenAPIV2Emitter_getInstance(), item);
|
|
1369
|
-
destination_0.
|
|
1369
|
+
destination_0.y(tmp$ret$3);
|
|
1370
1370
|
}
|
|
1371
1371
|
return firstOrNull(destination_0);
|
|
1372
1372
|
}
|
|
1373
1373
|
function emit_0($this, _this__u8e3s4) {
|
|
1374
|
-
var tmp2_operationId = _this__u8e3s4.
|
|
1375
|
-
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.
|
|
1374
|
+
var tmp2_operationId = _this__u8e3s4.ft_1.m1();
|
|
1375
|
+
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.et_1);
|
|
1376
1376
|
var tmp;
|
|
1377
1377
|
if (tmp0_elvis_lhs == null) {
|
|
1378
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
1378
|
+
var tmp1_safe_receiver = _this__u8e3s4.dt_1;
|
|
1379
1379
|
var tmp_0;
|
|
1380
1380
|
var tmp_1 = tmp1_safe_receiver;
|
|
1381
1381
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -1389,20 +1389,20 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1389
1389
|
}
|
|
1390
1390
|
var tmp3_description = tmp;
|
|
1391
1391
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1392
|
-
var tmp0 = _this__u8e3s4.
|
|
1392
|
+
var tmp0 = _this__u8e3s4.kt_1;
|
|
1393
1393
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1394
1394
|
var destination = ArrayList_init_$Create$();
|
|
1395
1395
|
// Inline function 'kotlin.collections.forEach' call
|
|
1396
1396
|
var _iterator__ex2g4s = tmp0.t();
|
|
1397
1397
|
while (_iterator__ex2g4s.u()) {
|
|
1398
1398
|
var element = _iterator__ex2g4s.v();
|
|
1399
|
-
var tmp0_safe_receiver = element.
|
|
1400
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1399
|
+
var tmp0_safe_receiver = element.ot_1;
|
|
1400
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pt_1;
|
|
1401
1401
|
if (tmp0_safe_receiver_0 == null)
|
|
1402
1402
|
null;
|
|
1403
1403
|
else {
|
|
1404
1404
|
// Inline function 'kotlin.let' call
|
|
1405
|
-
destination.
|
|
1405
|
+
destination.y(tmp0_safe_receiver_0);
|
|
1406
1406
|
}
|
|
1407
1407
|
}
|
|
1408
1408
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
@@ -1415,20 +1415,20 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1415
1415
|
}
|
|
1416
1416
|
var tmp4_consumes = tmp_2;
|
|
1417
1417
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1418
|
-
var tmp0_0 = _this__u8e3s4.
|
|
1418
|
+
var tmp0_0 = _this__u8e3s4.lt_1;
|
|
1419
1419
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1420
1420
|
var destination_0 = ArrayList_init_$Create$();
|
|
1421
1421
|
// Inline function 'kotlin.collections.forEach' call
|
|
1422
1422
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
1423
1423
|
while (_iterator__ex2g4s_0.u()) {
|
|
1424
1424
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1425
|
-
var tmp0_safe_receiver_1 = element_0.
|
|
1426
|
-
var tmp0_safe_receiver_2 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.
|
|
1425
|
+
var tmp0_safe_receiver_1 = element_0.tt_1;
|
|
1426
|
+
var tmp0_safe_receiver_2 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.pt_1;
|
|
1427
1427
|
if (tmp0_safe_receiver_2 == null)
|
|
1428
1428
|
null;
|
|
1429
1429
|
else {
|
|
1430
1430
|
// Inline function 'kotlin.let' call
|
|
1431
|
-
destination_0.
|
|
1431
|
+
destination_0.y(tmp0_safe_receiver_2);
|
|
1432
1432
|
}
|
|
1433
1433
|
}
|
|
1434
1434
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
@@ -1441,19 +1441,19 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1441
1441
|
}
|
|
1442
1442
|
var tmp5_produces = tmp_3;
|
|
1443
1443
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1444
|
-
var tmp0_1 = _this__u8e3s4.
|
|
1444
|
+
var tmp0_1 = _this__u8e3s4.kt_1;
|
|
1445
1445
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1446
1446
|
var destination_1 = ArrayList_init_$Create$();
|
|
1447
1447
|
// Inline function 'kotlin.collections.forEach' call
|
|
1448
1448
|
var _iterator__ex2g4s_1 = tmp0_1.t();
|
|
1449
1449
|
while (_iterator__ex2g4s_1.u()) {
|
|
1450
1450
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
1451
|
-
var tmp0_safe_receiver_3 = element_1.
|
|
1451
|
+
var tmp0_safe_receiver_3 = element_1.ot_1;
|
|
1452
1452
|
if (tmp0_safe_receiver_3 == null)
|
|
1453
1453
|
null;
|
|
1454
1454
|
else {
|
|
1455
1455
|
// Inline function 'kotlin.let' call
|
|
1456
|
-
destination_1.
|
|
1456
|
+
destination_1.y(tmp0_safe_receiver_3);
|
|
1457
1457
|
}
|
|
1458
1458
|
}
|
|
1459
1459
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1464,74 +1464,74 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1464
1464
|
while (_iterator__ex2g4s_2.u()) {
|
|
1465
1465
|
var item = _iterator__ex2g4s_2.v();
|
|
1466
1466
|
var tmp0_in = OpenAPIV20ParameterLocation_BODY_getInstance();
|
|
1467
|
-
var tmp1_schema = toSchemaOrReference(OpenAPIV2Emitter_getInstance(), item.
|
|
1468
|
-
var tmp2_required = !item.
|
|
1467
|
+
var tmp1_schema = toSchemaOrReference(OpenAPIV2Emitter_getInstance(), item.qt_1);
|
|
1468
|
+
var tmp2_required = !item.qt_1.ey();
|
|
1469
1469
|
var tmp$ret$25 = new OpenAPIV20Parameter(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');
|
|
1470
|
-
destination_2.
|
|
1470
|
+
destination_2.y(tmp$ret$25);
|
|
1471
1471
|
}
|
|
1472
1472
|
var tmp_4 = destination_2;
|
|
1473
1473
|
// Inline function 'kotlin.collections.map' call
|
|
1474
|
-
var this_3 = _this__u8e3s4.
|
|
1474
|
+
var this_3 = _this__u8e3s4.it_1;
|
|
1475
1475
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1476
1476
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_3, 10));
|
|
1477
1477
|
var _iterator__ex2g4s_3 = this_3.t();
|
|
1478
1478
|
while (_iterator__ex2g4s_3.u()) {
|
|
1479
1479
|
var item_0 = _iterator__ex2g4s_3.v();
|
|
1480
1480
|
var tmp$ret$28 = emitParameter(OpenAPIV2Emitter_getInstance(), item_0, OpenAPIV20ParameterLocation_QUERY_getInstance());
|
|
1481
|
-
destination_3.
|
|
1481
|
+
destination_3.y(tmp$ret$28);
|
|
1482
1482
|
}
|
|
1483
1483
|
var tmp_5 = plus_0(tmp_4, destination_3);
|
|
1484
1484
|
// Inline function 'kotlin.collections.map' call
|
|
1485
|
-
var this_4 = _this__u8e3s4.
|
|
1485
|
+
var this_4 = _this__u8e3s4.jt_1;
|
|
1486
1486
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1487
1487
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_4, 10));
|
|
1488
1488
|
var _iterator__ex2g4s_4 = this_4.t();
|
|
1489
1489
|
while (_iterator__ex2g4s_4.u()) {
|
|
1490
1490
|
var item_1 = _iterator__ex2g4s_4.v();
|
|
1491
1491
|
var tmp$ret$31 = emitParameter(OpenAPIV2Emitter_getInstance(), item_1, OpenAPIV20ParameterLocation_HEADER_getInstance());
|
|
1492
|
-
destination_4.
|
|
1492
|
+
destination_4.y(tmp$ret$31);
|
|
1493
1493
|
}
|
|
1494
1494
|
var tmp6_parameters = plus_0(tmp_5, destination_4);
|
|
1495
1495
|
// Inline function 'kotlin.collections.associate' call
|
|
1496
|
-
var this_5 = _this__u8e3s4.
|
|
1496
|
+
var this_5 = _this__u8e3s4.lt_1;
|
|
1497
1497
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_5, 10)), 16);
|
|
1498
1498
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1499
1499
|
var destination_5 = LinkedHashMap_init_$Create$(capacity);
|
|
1500
1500
|
var _iterator__ex2g4s_5 = this_5.t();
|
|
1501
1501
|
while (_iterator__ex2g4s_5.u()) {
|
|
1502
1502
|
var element_2 = _iterator__ex2g4s_5.v();
|
|
1503
|
-
var tmp_6 = _StatusCode___init__impl__t1yi9q(element_2.
|
|
1504
|
-
var tmp0_elvis_lhs_0 = findDescription(element_2.
|
|
1505
|
-
var tmp3_description_0 = tmp0_elvis_lhs_0 == null ? _this__u8e3s4.
|
|
1503
|
+
var tmp_6 = _StatusCode___init__impl__t1yi9q(element_2.rt_1);
|
|
1504
|
+
var tmp0_elvis_lhs_0 = findDescription(element_2.ut_1);
|
|
1505
|
+
var tmp3_description_0 = tmp0_elvis_lhs_0 == null ? _this__u8e3s4.ft_1.m1() + ' ' + element_2.rt_1 + ' response' : tmp0_elvis_lhs_0;
|
|
1506
1506
|
// Inline function 'kotlin.collections.associate' call
|
|
1507
|
-
var this_6 = element_2.
|
|
1507
|
+
var this_6 = element_2.st_1;
|
|
1508
1508
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_6, 10)), 16);
|
|
1509
1509
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1510
1510
|
var destination_6 = LinkedHashMap_init_$Create$(capacity_0);
|
|
1511
1511
|
var _iterator__ex2g4s_6 = this_6.t();
|
|
1512
1512
|
while (_iterator__ex2g4s_6.u()) {
|
|
1513
1513
|
var element_3 = _iterator__ex2g4s_6.v();
|
|
1514
|
-
var tmp_7 = element_3.
|
|
1515
|
-
var tmp2_description = findDescription(element_3.
|
|
1516
|
-
var tmp3_type = emitType_0(OpenAPIV2Emitter_getInstance(), element_3.
|
|
1517
|
-
var tmp4_format = emitFormat(element_3.
|
|
1518
|
-
var tmp5_pattern = emitPattern(OpenAPIV2Emitter_getInstance(), element_3.
|
|
1519
|
-
var tmp_8 = element_3.
|
|
1514
|
+
var tmp_7 = element_3.bt_1.m1();
|
|
1515
|
+
var tmp2_description = findDescription(element_3.at_1);
|
|
1516
|
+
var tmp3_type = emitType_0(OpenAPIV2Emitter_getInstance(), element_3.ct_1);
|
|
1517
|
+
var tmp4_format = emitFormat(element_3.ct_1);
|
|
1518
|
+
var tmp5_pattern = emitPattern(OpenAPIV2Emitter_getInstance(), element_3.ct_1);
|
|
1519
|
+
var tmp_8 = element_3.ct_1;
|
|
1520
1520
|
var tmp0_safe_receiver_4 = tmp_8 instanceof Iterable ? tmp_8 : null;
|
|
1521
|
-
var tmp1_safe_receiver_0 = tmp0_safe_receiver_4 == null ? null : tmp0_safe_receiver_4.
|
|
1521
|
+
var tmp1_safe_receiver_0 = tmp0_safe_receiver_4 == null ? null : tmp0_safe_receiver_4.as_1;
|
|
1522
1522
|
var tmp6_items = tmp1_safe_receiver_0 == null ? null : toSchemaOrReference(OpenAPIV2Emitter_getInstance(), tmp1_safe_receiver_0);
|
|
1523
1523
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1524
1524
|
var pair = to(tmp_7, new OpenAPIV20Header(tmp2_description, tmp3_type, tmp4_format, tmp6_items, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp5_pattern));
|
|
1525
|
-
destination_6.
|
|
1525
|
+
destination_6.t2(pair.vf_1, pair.wf_1);
|
|
1526
1526
|
}
|
|
1527
|
-
var tmp1_safe_receiver_1 = element_2.
|
|
1527
|
+
var tmp1_safe_receiver_1 = element_2.tt_1;
|
|
1528
1528
|
var tmp_9;
|
|
1529
1529
|
if (tmp1_safe_receiver_1 == null) {
|
|
1530
1530
|
tmp_9 = null;
|
|
1531
1531
|
} else {
|
|
1532
1532
|
// Inline function 'kotlin.takeIf' call
|
|
1533
1533
|
var tmp_10;
|
|
1534
|
-
var tmp_11 = tmp1_safe_receiver_1.
|
|
1534
|
+
var tmp_11 = tmp1_safe_receiver_1.qt_1;
|
|
1535
1535
|
if (!(tmp_11 instanceof Unit)) {
|
|
1536
1536
|
tmp_10 = tmp1_safe_receiver_1;
|
|
1537
1537
|
} else {
|
|
@@ -1545,10 +1545,10 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1545
1545
|
tmp_12 = null;
|
|
1546
1546
|
} else {
|
|
1547
1547
|
// Inline function 'kotlin.let' call
|
|
1548
|
-
var ref = tmp2_safe_receiver.
|
|
1548
|
+
var ref = tmp2_safe_receiver.qt_1;
|
|
1549
1549
|
var tmp_13;
|
|
1550
1550
|
if (ref instanceof Iterable) {
|
|
1551
|
-
tmp_13 = new OpenAPIV20Schema(VOID, OpenAPIV20Type_ARRAY_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference(OpenAPIV2Emitter_getInstance(), ref.
|
|
1551
|
+
tmp_13 = new OpenAPIV20Schema(VOID, OpenAPIV20Type_ARRAY_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference(OpenAPIV2Emitter_getInstance(), ref.as_1));
|
|
1552
1552
|
} else {
|
|
1553
1553
|
tmp_13 = toSchemaOrReference(OpenAPIV2Emitter_getInstance(), ref);
|
|
1554
1554
|
}
|
|
@@ -1557,7 +1557,7 @@ function emit_0($this, _this__u8e3s4) {
|
|
|
1557
1557
|
var tmp5_schema = tmp_12;
|
|
1558
1558
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1559
1559
|
var pair_0 = to(new StatusCode(tmp_6), new OpenAPIV20Response(tmp5_schema, VOID, tmp3_description_0, destination_6));
|
|
1560
|
-
destination_5.
|
|
1560
|
+
destination_5.t2(pair_0.vf_1, pair_0.wf_1);
|
|
1561
1561
|
}
|
|
1562
1562
|
return new OpenAPIV20Operation(tmp4_consumes, tmp5_produces, tmp6_parameters, VOID, destination_5, VOID, VOID, VOID, tmp3_description, VOID, tmp2_operationId);
|
|
1563
1563
|
}
|
|
@@ -1565,11 +1565,11 @@ function emitSegment($this, _this__u8e3s4) {
|
|
|
1565
1565
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenAPIV2Emitter$emitSegment$lambda);
|
|
1566
1566
|
}
|
|
1567
1567
|
function emitParameter($this, _this__u8e3s4, location) {
|
|
1568
|
-
var tmp0_name = _this__u8e3s4.
|
|
1569
|
-
var tmp1_type = emitType_0($this, _this__u8e3s4.
|
|
1570
|
-
var tmp2_format = emitFormat(_this__u8e3s4.
|
|
1571
|
-
var tmp3_pattern = emitPattern($this, _this__u8e3s4.
|
|
1572
|
-
var ref = _this__u8e3s4.
|
|
1568
|
+
var tmp0_name = _this__u8e3s4.bt_1.m1();
|
|
1569
|
+
var tmp1_type = emitType_0($this, _this__u8e3s4.ct_1);
|
|
1570
|
+
var tmp2_format = emitFormat(_this__u8e3s4.ct_1);
|
|
1571
|
+
var tmp3_pattern = emitPattern($this, _this__u8e3s4.ct_1);
|
|
1572
|
+
var ref = _this__u8e3s4.ct_1;
|
|
1573
1573
|
var tmp;
|
|
1574
1574
|
if (ref instanceof Iterable) {
|
|
1575
1575
|
var emit = toSchemaOrReference($this, ref);
|
|
@@ -1578,7 +1578,7 @@ function emitParameter($this, _this__u8e3s4, location) {
|
|
|
1578
1578
|
tmp_0 = emit;
|
|
1579
1579
|
} else {
|
|
1580
1580
|
if (emit instanceof OpenAPIV20Schema) {
|
|
1581
|
-
tmp_0 = emit.
|
|
1581
|
+
tmp_0 = emit.q39_1;
|
|
1582
1582
|
} else {
|
|
1583
1583
|
noWhenBranchMatchedException();
|
|
1584
1584
|
}
|
|
@@ -1588,23 +1588,23 @@ function emitParameter($this, _this__u8e3s4, location) {
|
|
|
1588
1588
|
tmp = null;
|
|
1589
1589
|
}
|
|
1590
1590
|
var tmp4_items = tmp;
|
|
1591
|
-
var tmp5_required = !_this__u8e3s4.
|
|
1592
|
-
var tmp6_description = findDescription(_this__u8e3s4.
|
|
1591
|
+
var tmp5_required = !_this__u8e3s4.ct_1.ey();
|
|
1592
|
+
var tmp6_description = findDescription(_this__u8e3s4.at_1);
|
|
1593
1593
|
return new OpenAPIV20Parameter(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);
|
|
1594
1594
|
}
|
|
1595
1595
|
function toSchemaOrReference($this, _this__u8e3s4) {
|
|
1596
1596
|
var tmp;
|
|
1597
1597
|
if (_this__u8e3s4 instanceof Dict) {
|
|
1598
|
-
tmp = new OpenAPIV20Schema(VOID, OpenAPIV20Type_OBJECT_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference($this, _this__u8e3s4.
|
|
1598
|
+
tmp = new OpenAPIV20Schema(VOID, OpenAPIV20Type_OBJECT_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference($this, _this__u8e3s4.ds_1));
|
|
1599
1599
|
} else {
|
|
1600
1600
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
1601
|
-
tmp = new OpenAPIV20Schema(VOID, OpenAPIV20Type_ARRAY_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference($this, _this__u8e3s4.
|
|
1601
|
+
tmp = new OpenAPIV20Schema(VOID, OpenAPIV20Type_ARRAY_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference($this, _this__u8e3s4.as_1));
|
|
1602
1602
|
} else {
|
|
1603
1603
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1604
|
-
tmp = new OpenAPIV20Reference(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.
|
|
1604
|
+
tmp = new OpenAPIV20Reference(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.my_1));
|
|
1605
1605
|
} else {
|
|
1606
1606
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1607
|
-
tmp = new OpenAPIV20Schema(VOID, emitType($this, _this__u8e3s4.
|
|
1607
|
+
tmp = new OpenAPIV20Schema(VOID, emitType($this, _this__u8e3s4.qy_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));
|
|
1608
1608
|
} else {
|
|
1609
1609
|
if (_this__u8e3s4 instanceof Any) {
|
|
1610
1610
|
var message = 'Cannot map Any';
|
|
@@ -1657,7 +1657,7 @@ function emitType_0($this, _this__u8e3s4) {
|
|
|
1657
1657
|
tmp = OpenAPIV20Type_ARRAY_getInstance();
|
|
1658
1658
|
} else {
|
|
1659
1659
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1660
|
-
tmp = emitType($this, _this__u8e3s4.
|
|
1660
|
+
tmp = emitType($this, _this__u8e3s4.qy_1);
|
|
1661
1661
|
} else {
|
|
1662
1662
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1663
1663
|
tmp = OpenAPIV20Type_OBJECT_getInstance();
|
|
@@ -1680,10 +1680,10 @@ function emitType_0($this, _this__u8e3s4) {
|
|
|
1680
1680
|
function emitPattern($this, _this__u8e3s4) {
|
|
1681
1681
|
var tmp;
|
|
1682
1682
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1683
|
-
var t = _this__u8e3s4.
|
|
1683
|
+
var t = _this__u8e3s4.qy_1;
|
|
1684
1684
|
var tmp_0;
|
|
1685
1685
|
if (t instanceof String_0) {
|
|
1686
|
-
var p = t.
|
|
1686
|
+
var p = t.sx_1;
|
|
1687
1687
|
var tmp_1;
|
|
1688
1688
|
var tmp_2 = p;
|
|
1689
1689
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2))instanceof RegExp_0) {
|
|
@@ -1704,16 +1704,16 @@ function emitPattern($this, _this__u8e3s4) {
|
|
|
1704
1704
|
function emitMinimum($this, _this__u8e3s4) {
|
|
1705
1705
|
var tmp;
|
|
1706
1706
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1707
|
-
var t = _this__u8e3s4.
|
|
1707
|
+
var t = _this__u8e3s4.qy_1;
|
|
1708
1708
|
var tmp_0;
|
|
1709
1709
|
if (t instanceof Number_0) {
|
|
1710
|
-
var tmp1_safe_receiver = t.
|
|
1711
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1710
|
+
var tmp1_safe_receiver = t.yx_1;
|
|
1711
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.qx_1;
|
|
1712
1712
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
1713
1713
|
} else {
|
|
1714
1714
|
if (t instanceof Integer) {
|
|
1715
|
-
var tmp3_safe_receiver = t.
|
|
1716
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
1715
|
+
var tmp3_safe_receiver = t.vx_1;
|
|
1716
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.qx_1;
|
|
1717
1717
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
1718
1718
|
} else {
|
|
1719
1719
|
tmp_0 = null;
|
|
@@ -1728,16 +1728,16 @@ function emitMinimum($this, _this__u8e3s4) {
|
|
|
1728
1728
|
function emitMaximum($this, _this__u8e3s4) {
|
|
1729
1729
|
var tmp;
|
|
1730
1730
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1731
|
-
var t = _this__u8e3s4.
|
|
1731
|
+
var t = _this__u8e3s4.qy_1;
|
|
1732
1732
|
var tmp_0;
|
|
1733
1733
|
if (t instanceof Number_0) {
|
|
1734
|
-
var tmp1_safe_receiver = t.
|
|
1735
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1734
|
+
var tmp1_safe_receiver = t.yx_1;
|
|
1735
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.rx_1;
|
|
1736
1736
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
1737
1737
|
} else {
|
|
1738
1738
|
if (t instanceof Integer) {
|
|
1739
|
-
var tmp3_safe_receiver = t.
|
|
1740
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
1739
|
+
var tmp3_safe_receiver = t.vx_1;
|
|
1740
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.rx_1;
|
|
1741
1741
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
1742
1742
|
} else {
|
|
1743
1743
|
tmp_0 = null;
|
|
@@ -1752,10 +1752,10 @@ function emitMaximum($this, _this__u8e3s4) {
|
|
|
1752
1752
|
function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
1753
1753
|
var tmp;
|
|
1754
1754
|
if (it instanceof Param) {
|
|
1755
|
-
tmp = '{' + it.
|
|
1755
|
+
tmp = '{' + it.mt_1.m1() + '}';
|
|
1756
1756
|
} else {
|
|
1757
1757
|
if (it instanceof Literal) {
|
|
1758
|
-
tmp = it.
|
|
1758
|
+
tmp = it.iu_1;
|
|
1759
1759
|
} else {
|
|
1760
1760
|
noWhenBranchMatchedException();
|
|
1761
1761
|
}
|
|
@@ -1764,14 +1764,14 @@ function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
|
1764
1764
|
}
|
|
1765
1765
|
function OpenAPIV2Emitter() {
|
|
1766
1766
|
OpenAPIV2Emitter_instance = this;
|
|
1767
|
-
this.
|
|
1767
|
+
this.c4b_1 = FileExtension_JSON_getInstance();
|
|
1768
1768
|
}
|
|
1769
|
-
protoOf(OpenAPIV2Emitter).
|
|
1770
|
-
return this.
|
|
1769
|
+
protoOf(OpenAPIV2Emitter).fu = function () {
|
|
1770
|
+
return this.c4b_1;
|
|
1771
1771
|
};
|
|
1772
|
-
protoOf(OpenAPIV2Emitter).
|
|
1772
|
+
protoOf(OpenAPIV2Emitter).pr = function (ast, logger) {
|
|
1773
1773
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
1774
|
-
var this_0 = ast.
|
|
1774
|
+
var this_0 = ast.cu_1;
|
|
1775
1775
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1776
1776
|
var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
1777
1777
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -1779,27 +1779,27 @@ protoOf(OpenAPIV2Emitter).eo = function (ast, logger) {
|
|
|
1779
1779
|
var _iterator__ex2g4s = tmp0.t();
|
|
1780
1780
|
while (_iterator__ex2g4s.u()) {
|
|
1781
1781
|
var element = _iterator__ex2g4s.v();
|
|
1782
|
-
logger.
|
|
1783
|
-
var list = new NonEmptyList(element.
|
|
1782
|
+
logger.uu('Combining Nodes from ' + element.du_1.er_1 + ' ');
|
|
1783
|
+
var list = new NonEmptyList(element.eu_1);
|
|
1784
1784
|
addAll(destination, list);
|
|
1785
1785
|
}
|
|
1786
1786
|
// Inline function 'kotlin.let' call
|
|
1787
1787
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
1788
|
-
var tmp = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().
|
|
1788
|
+
var tmp = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().c4b_1.ou_1;
|
|
1789
1789
|
var tmp0_0 = get_json();
|
|
1790
1790
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
1791
|
-
var value = OpenAPIV2Emitter_getInstance().
|
|
1791
|
+
var value = OpenAPIV2Emitter_getInstance().d4b(it, logger);
|
|
1792
1792
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
1793
|
-
var this_1 = tmp0_0.
|
|
1793
|
+
var this_1 = tmp0_0.o28();
|
|
1794
1794
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1795
1795
|
var this_2 = serializer(this_1, createKType(getKClass(OpenAPIV2Model), arrayOf([]), false));
|
|
1796
1796
|
var tmp$ret$5 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
1797
|
-
var tmp$ret$6 = tmp0_0.
|
|
1797
|
+
var tmp$ret$6 = tmp0_0.x2p(tmp$ret$5, value);
|
|
1798
1798
|
// Inline function 'kotlin.let' call
|
|
1799
1799
|
var it_0 = new Emitted(tmp, tmp$ret$6);
|
|
1800
1800
|
return nonEmptyListOf(it_0, []);
|
|
1801
1801
|
};
|
|
1802
|
-
protoOf(OpenAPIV2Emitter).
|
|
1802
|
+
protoOf(OpenAPIV2Emitter).d4b = function (statements, logger) {
|
|
1803
1803
|
var tmp0_info = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, VOID, '0.0.0');
|
|
1804
1804
|
var tmp1_consumes = listOf('application/json');
|
|
1805
1805
|
var tmp2_produces = listOf('application/json');
|
|
@@ -1815,15 +1815,15 @@ function OpenAPIV2Emitter_getInstance() {
|
|
|
1815
1815
|
}
|
|
1816
1816
|
function OpenAPIV2Parser$parse$lambda($strict) {
|
|
1817
1817
|
return function (it) {
|
|
1818
|
-
return new NonEmptyList(OpenAPIV2Parser_instance.
|
|
1818
|
+
return new NonEmptyList(OpenAPIV2Parser_instance.e4b((new OpenAPIV2(jsonDefault($strict))).o36(it)));
|
|
1819
1819
|
};
|
|
1820
1820
|
}
|
|
1821
1821
|
function OpenAPIV2Parser() {
|
|
1822
1822
|
}
|
|
1823
|
-
protoOf(OpenAPIV2Parser).
|
|
1823
|
+
protoOf(OpenAPIV2Parser).f4b = function (moduleContent, strict) {
|
|
1824
1824
|
return parseOpenApi(moduleContent, OpenAPIV2Parser$parse$lambda(strict));
|
|
1825
1825
|
};
|
|
1826
|
-
protoOf(OpenAPIV2Parser).
|
|
1826
|
+
protoOf(OpenAPIV2Parser).e4b = function (_this__u8e3s4) {
|
|
1827
1827
|
// Inline function 'kotlin.collections.reduce' call
|
|
1828
1828
|
var iterator = listOf_0([parseEndpoints(_this__u8e3s4), parseParameters(_this__u8e3s4), parseRequestBody(_this__u8e3s4), parseResponseBody(_this__u8e3s4), parseDefinitions(_this__u8e3s4)]).t();
|
|
1829
1829
|
if (!iterator.u())
|
|
@@ -1838,7 +1838,7 @@ protoOf(OpenAPIV2Parser).p47 = function (_this__u8e3s4) {
|
|
|
1838
1838
|
var tmp = toNonEmptyListOrNull(resolveEndpointNameCollisions(tmp$ret$1));
|
|
1839
1839
|
// Inline function 'kotlin.let' call
|
|
1840
1840
|
var tmp_0 = tmp == null ? null : new NonEmptyList(tmp);
|
|
1841
|
-
var tmp_1 = tmp_0 == null ? null : tmp_0.
|
|
1841
|
+
var tmp_1 = tmp_0 == null ? null : tmp_0.zp_1;
|
|
1842
1842
|
var tmp0_0 = tmp_1 == null ? null : new NonEmptyList(tmp_1);
|
|
1843
1843
|
var tmp$ret$3;
|
|
1844
1844
|
$l$block: {
|
|
@@ -1847,7 +1847,7 @@ protoOf(OpenAPIV2Parser).p47 = function (_this__u8e3s4) {
|
|
|
1847
1847
|
var message = 'Cannot yield empty AST for OpenAPI v2';
|
|
1848
1848
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1849
1849
|
} else {
|
|
1850
|
-
tmp$ret$3 = tmp0_0.
|
|
1850
|
+
tmp$ret$3 = tmp0_0.zp_1;
|
|
1851
1851
|
break $l$block;
|
|
1852
1852
|
}
|
|
1853
1853
|
}
|
|
@@ -1859,35 +1859,35 @@ function OpenAPIV2Parser_getInstance() {
|
|
|
1859
1859
|
}
|
|
1860
1860
|
function parseEndpoints(_this__u8e3s4) {
|
|
1861
1861
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1862
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1862
|
+
var tmp0_elvis_lhs = _this__u8e3s4.u36();
|
|
1863
1863
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1864
1864
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1865
1865
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1866
1866
|
var destination = ArrayList_init_$Create$();
|
|
1867
1867
|
// Inline function 'kotlin.collections.iterator' call
|
|
1868
|
-
var _iterator__ex2g4s = tmp0.
|
|
1868
|
+
var _iterator__ex2g4s = tmp0.k1().t();
|
|
1869
1869
|
while (_iterator__ex2g4s.u()) {
|
|
1870
1870
|
var element = _iterator__ex2g4s.v();
|
|
1871
1871
|
// Inline function 'kotlin.collections.component1' call
|
|
1872
|
-
var path = element.
|
|
1872
|
+
var path = element.l1().u33_1;
|
|
1873
1873
|
// Inline function 'kotlin.collections.component2' call
|
|
1874
|
-
var pathItem = element.
|
|
1874
|
+
var pathItem = element.m1();
|
|
1875
1875
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1876
1876
|
var tmp0_0 = toOperationList(pathItem);
|
|
1877
1877
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1878
1878
|
var destination_0 = ArrayList_init_$Create$();
|
|
1879
1879
|
// Inline function 'kotlin.collections.iterator' call
|
|
1880
|
-
var _iterator__ex2g4s_0 = tmp0_0.
|
|
1880
|
+
var _iterator__ex2g4s_0 = tmp0_0.k1().t();
|
|
1881
1881
|
while (_iterator__ex2g4s_0.u()) {
|
|
1882
1882
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1883
1883
|
// Inline function 'kotlin.collections.component1' call
|
|
1884
|
-
var method = element_0.
|
|
1884
|
+
var method = element_0.l1();
|
|
1885
1885
|
// Inline function 'kotlin.collections.component2' call
|
|
1886
|
-
var operation = element_0.
|
|
1887
|
-
var parameters = plus_0(resolveParameters(_this__u8e3s4, pathItem.
|
|
1886
|
+
var operation = element_0.m1();
|
|
1887
|
+
var parameters = plus_0(resolveParameters(_this__u8e3s4, pathItem.u34()), resolveParameters(_this__u8e3s4, operation.u34()));
|
|
1888
1888
|
var segments = toSegments(path, parameters);
|
|
1889
1889
|
var tmp0_elvis_lhs_0 = toName(operation);
|
|
1890
|
-
var name = tmp0_elvis_lhs_0 == null ? toName_0(path) + method.
|
|
1890
|
+
var name = tmp0_elvis_lhs_0 == null ? toName_0(path) + method.b3_1 : tmp0_elvis_lhs_0;
|
|
1891
1891
|
// Inline function 'kotlin.collections.filter' call
|
|
1892
1892
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1893
1893
|
var destination_1 = ArrayList_init_$Create$();
|
|
@@ -1895,7 +1895,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1895
1895
|
while (_iterator__ex2g4s_1.u()) {
|
|
1896
1896
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
1897
1897
|
if (get_location(element_1).equals(OpenAPIV20ParameterLocation_QUERY_getInstance())) {
|
|
1898
|
-
destination_1.
|
|
1898
|
+
destination_1.y(element_1);
|
|
1899
1899
|
}
|
|
1900
1900
|
}
|
|
1901
1901
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1905,7 +1905,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1905
1905
|
while (_iterator__ex2g4s_2.u()) {
|
|
1906
1906
|
var item = _iterator__ex2g4s_2.v();
|
|
1907
1907
|
var tmp$ret$10 = toField(_this__u8e3s4, item, name);
|
|
1908
|
-
destination_2.
|
|
1908
|
+
destination_2.y(tmp$ret$10);
|
|
1909
1909
|
}
|
|
1910
1910
|
var query = destination_2;
|
|
1911
1911
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -1915,7 +1915,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1915
1915
|
while (_iterator__ex2g4s_3.u()) {
|
|
1916
1916
|
var element_2 = _iterator__ex2g4s_3.v();
|
|
1917
1917
|
if (get_location(element_2).equals(OpenAPIV20ParameterLocation_HEADER_getInstance())) {
|
|
1918
|
-
destination_3.
|
|
1918
|
+
destination_3.y(element_2);
|
|
1919
1919
|
}
|
|
1920
1920
|
}
|
|
1921
1921
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1925,13 +1925,13 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1925
1925
|
while (_iterator__ex2g4s_4.u()) {
|
|
1926
1926
|
var item_0 = _iterator__ex2g4s_4.v();
|
|
1927
1927
|
var tmp$ret$16 = toField(_this__u8e3s4, item_0, name);
|
|
1928
|
-
destination_4.
|
|
1928
|
+
destination_4.y(tmp$ret$16);
|
|
1929
1929
|
}
|
|
1930
1930
|
var headers = destination_4;
|
|
1931
1931
|
var tmp1_safe_receiver = operation instanceof OpenAPIV20Operation ? operation : null;
|
|
1932
|
-
var operationConsumes = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1932
|
+
var operationConsumes = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m3b_1;
|
|
1933
1933
|
var tmp2_safe_receiver = operation instanceof OpenAPIV20Operation ? operation : null;
|
|
1934
|
-
var operationProduces = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
1934
|
+
var operationProduces = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.n3b_1;
|
|
1935
1935
|
// Inline function 'kotlin.collections.filter' call
|
|
1936
1936
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1937
1937
|
var destination_5 = ArrayList_init_$Create$();
|
|
@@ -1939,7 +1939,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1939
1939
|
while (_iterator__ex2g4s_5.u()) {
|
|
1940
1940
|
var element_3 = _iterator__ex2g4s_5.v();
|
|
1941
1941
|
if (get_location(element_3).equals(OpenAPIV20ParameterLocation_BODY_getInstance())) {
|
|
1942
|
-
destination_5.
|
|
1942
|
+
destination_5.y(element_3);
|
|
1943
1943
|
}
|
|
1944
1944
|
}
|
|
1945
1945
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1949,7 +1949,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1949
1949
|
while (_iterator__ex2g4s_6.u()) {
|
|
1950
1950
|
var element_4 = _iterator__ex2g4s_6.v();
|
|
1951
1951
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1952
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
1952
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.r36();
|
|
1953
1953
|
var tmp = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1954
1954
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1955
1955
|
var tmp$ret$23 = operationConsumes == null ? emptyList() : operationConsumes;
|
|
@@ -1969,7 +1969,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1969
1969
|
while (_iterator__ex2g4s_7.u()) {
|
|
1970
1970
|
var item_1 = _iterator__ex2g4s_7.v();
|
|
1971
1971
|
var isNullable = false;
|
|
1972
|
-
var schema = element_4.
|
|
1972
|
+
var schema = element_4.g3b_1;
|
|
1973
1973
|
var tmp_1;
|
|
1974
1974
|
if (!(schema == null) ? isInterface(schema, Reference) : false) {
|
|
1975
1975
|
tmp_1 = toReference(_this__u8e3s4, schema, isNullable);
|
|
@@ -1986,7 +1986,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1986
1986
|
}
|
|
1987
1987
|
}
|
|
1988
1988
|
var tmp$ret$26 = new Request(new Content(item_1, tmp_1));
|
|
1989
|
-
destination_7.
|
|
1989
|
+
destination_7.y(tmp$ret$26);
|
|
1990
1990
|
}
|
|
1991
1991
|
var list = destination_7;
|
|
1992
1992
|
addAll(destination_6, list);
|
|
@@ -2000,32 +2000,32 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2000
2000
|
}
|
|
2001
2001
|
var requests = tmp_2;
|
|
2002
2002
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2003
|
-
var tmp0_elvis_lhs_2 = operation.
|
|
2003
|
+
var tmp0_elvis_lhs_2 = operation.b10();
|
|
2004
2004
|
// Inline function 'kotlin.collections.mapValues' call
|
|
2005
2005
|
var this_2 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
2006
2006
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
2007
|
-
var destination_8 = LinkedHashMap_init_$Create$(mapCapacity(this_2.
|
|
2007
|
+
var destination_8 = LinkedHashMap_init_$Create$(mapCapacity(this_2.b1()));
|
|
2008
2008
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2009
|
-
var _iterator__ex2g4s_8 = this_2.
|
|
2009
|
+
var _iterator__ex2g4s_8 = this_2.k1().t();
|
|
2010
2010
|
while (_iterator__ex2g4s_8.u()) {
|
|
2011
2011
|
var element_5 = _iterator__ex2g4s_8.v();
|
|
2012
|
-
var tmp_3 = element_5.
|
|
2013
|
-
var tmp$ret$36 = resolveResponse(_this__u8e3s4, element_5.
|
|
2014
|
-
destination_8.
|
|
2012
|
+
var tmp_3 = element_5.l1();
|
|
2013
|
+
var tmp$ret$36 = resolveResponse(_this__u8e3s4, element_5.m1());
|
|
2014
|
+
destination_8.t2(tmp_3, tmp$ret$36);
|
|
2015
2015
|
}
|
|
2016
2016
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2017
2017
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2018
2018
|
var destination_9 = ArrayList_init_$Create$();
|
|
2019
2019
|
// Inline function 'kotlin.collections.iterator' call
|
|
2020
|
-
var _iterator__ex2g4s_9 = destination_8.
|
|
2020
|
+
var _iterator__ex2g4s_9 = destination_8.k1().t();
|
|
2021
2021
|
while (_iterator__ex2g4s_9.u()) {
|
|
2022
2022
|
var element_6 = _iterator__ex2g4s_9.v();
|
|
2023
2023
|
// Inline function 'kotlin.collections.component1' call
|
|
2024
|
-
var status = element_6.
|
|
2024
|
+
var status = element_6.l1().y33_1;
|
|
2025
2025
|
// Inline function 'kotlin.collections.component2' call
|
|
2026
|
-
var res = element_6.
|
|
2026
|
+
var res = element_6.m1();
|
|
2027
2027
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2028
|
-
var tmp0_elvis_lhs_3 = _this__u8e3s4.
|
|
2028
|
+
var tmp0_elvis_lhs_3 = _this__u8e3s4.s36();
|
|
2029
2029
|
var tmp_4 = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
|
|
2030
2030
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2031
2031
|
var tmp$ret$44 = operationProduces == null ? emptyList() : operationProduces;
|
|
@@ -2044,26 +2044,26 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2044
2044
|
var _iterator__ex2g4s_10 = this_4.t();
|
|
2045
2045
|
while (_iterator__ex2g4s_10.u()) {
|
|
2046
2046
|
var item_2 = _iterator__ex2g4s_10.v();
|
|
2047
|
-
var tmp3_annotations = toDescriptionAnnotationList(res.
|
|
2047
|
+
var tmp3_annotations = toDescriptionAnnotationList(res.e34());
|
|
2048
2048
|
var tmp4_status = _StatusCode___get_value__impl__we50mu(status);
|
|
2049
|
-
var tmp0_safe_receiver = res.
|
|
2049
|
+
var tmp0_safe_receiver = res.zz();
|
|
2050
2050
|
var tmp_6;
|
|
2051
2051
|
if (tmp0_safe_receiver == null) {
|
|
2052
2052
|
tmp_6 = null;
|
|
2053
2053
|
} else {
|
|
2054
2054
|
// Inline function 'kotlin.collections.map' call
|
|
2055
2055
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2056
|
-
var destination_11 = ArrayList_init_$Create$_0(tmp0_safe_receiver.
|
|
2056
|
+
var destination_11 = ArrayList_init_$Create$_0(tmp0_safe_receiver.b1());
|
|
2057
2057
|
// Inline function 'kotlin.collections.iterator' call
|
|
2058
|
-
var _iterator__ex2g4s_11 = tmp0_safe_receiver.
|
|
2058
|
+
var _iterator__ex2g4s_11 = tmp0_safe_receiver.k1().t();
|
|
2059
2059
|
while (_iterator__ex2g4s_11.u()) {
|
|
2060
2060
|
var item_3 = _iterator__ex2g4s_11.v();
|
|
2061
2061
|
// Inline function 'kotlin.collections.component1' call
|
|
2062
|
-
var identifier = item_3.
|
|
2062
|
+
var identifier = item_3.l1();
|
|
2063
2063
|
// Inline function 'kotlin.collections.component2' call
|
|
2064
|
-
var header = item_3.
|
|
2064
|
+
var header = item_3.m1();
|
|
2065
2065
|
var tmp$ret$50 = toField_0(_this__u8e3s4, resolveHeader(header), identifier);
|
|
2066
|
-
destination_11.
|
|
2066
|
+
destination_11.y(tmp$ret$50);
|
|
2067
2067
|
}
|
|
2068
2068
|
tmp_6 = destination_11;
|
|
2069
2069
|
}
|
|
@@ -2071,7 +2071,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2071
2071
|
var tmp0_elvis_lhs_4 = tmp_6;
|
|
2072
2072
|
var tmp5_headers = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
2073
2073
|
var tmp1_safe_receiver_0 = res instanceof OpenAPIV20Response ? res : null;
|
|
2074
|
-
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
2074
|
+
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.i3c_1;
|
|
2075
2075
|
var tmp_7;
|
|
2076
2076
|
if (tmp2_safe_receiver_0 == null) {
|
|
2077
2077
|
tmp_7 = null;
|
|
@@ -2091,7 +2091,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2091
2091
|
}
|
|
2092
2092
|
var tmp6_content = tmp_7;
|
|
2093
2093
|
var tmp$ret$56 = new Response(tmp4_status, tmp5_headers, tmp6_content, tmp3_annotations);
|
|
2094
|
-
destination_10.
|
|
2094
|
+
destination_10.y(tmp$ret$56);
|
|
2095
2095
|
}
|
|
2096
2096
|
var list_0 = destination_10;
|
|
2097
2097
|
addAll(destination_9, list_0);
|
|
@@ -2102,13 +2102,13 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2102
2102
|
var _iterator__ex2g4s_12 = destination_9.t();
|
|
2103
2103
|
while (_iterator__ex2g4s_12.u()) {
|
|
2104
2104
|
var e = _iterator__ex2g4s_12.v();
|
|
2105
|
-
var key = to(e.
|
|
2106
|
-
if (set.
|
|
2107
|
-
list_1.
|
|
2105
|
+
var key = to(e.rt_1, e.tt_1);
|
|
2106
|
+
if (set.y(key)) {
|
|
2107
|
+
list_1.y(e);
|
|
2108
2108
|
}
|
|
2109
2109
|
}
|
|
2110
2110
|
var responses = list_1;
|
|
2111
|
-
var list_2 = listOf(new Endpoint(null, toDescriptionAnnotationList(operation.
|
|
2111
|
+
var list_2 = listOf(new Endpoint(null, toDescriptionAnnotationList(operation.e34()), new DefinitionIdentifier(sanitize(name)), method, segments, query, headers, requests, responses));
|
|
2112
2112
|
addAll(destination_0, list_2);
|
|
2113
2113
|
}
|
|
2114
2114
|
var list_3 = destination_0;
|
|
@@ -2127,20 +2127,20 @@ function parseResponseBody(_this__u8e3s4) {
|
|
|
2127
2127
|
}
|
|
2128
2128
|
function parseDefinitions(_this__u8e3s4) {
|
|
2129
2129
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2130
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2130
|
+
var tmp0_elvis_lhs = _this__u8e3s4.t36();
|
|
2131
2131
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2132
2132
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2133
2133
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2134
2134
|
var destination = ArrayList_init_$Create$();
|
|
2135
2135
|
// Inline function 'kotlin.collections.forEach' call
|
|
2136
2136
|
// Inline function 'kotlin.collections.iterator' call
|
|
2137
|
-
var _iterator__ex2g4s = tmp0.
|
|
2137
|
+
var _iterator__ex2g4s = tmp0.k1().t();
|
|
2138
2138
|
while (_iterator__ex2g4s.u()) {
|
|
2139
2139
|
var element = _iterator__ex2g4s.v();
|
|
2140
2140
|
// Inline function 'kotlin.collections.component1' call
|
|
2141
|
-
var key = element.
|
|
2141
|
+
var key = element.l1();
|
|
2142
2142
|
// Inline function 'kotlin.collections.component2' call
|
|
2143
|
-
var value = element.
|
|
2143
|
+
var value = element.m1();
|
|
2144
2144
|
var tmp0_safe_receiver = isInterface(value, Schema) ? value : null;
|
|
2145
2145
|
var tmp;
|
|
2146
2146
|
if (tmp0_safe_receiver == null) {
|
|
@@ -2154,7 +2154,7 @@ function parseDefinitions(_this__u8e3s4) {
|
|
|
2154
2154
|
null;
|
|
2155
2155
|
else {
|
|
2156
2156
|
// Inline function 'kotlin.let' call
|
|
2157
|
-
destination.
|
|
2157
|
+
destination.y(tmp0_safe_receiver_0);
|
|
2158
2158
|
}
|
|
2159
2159
|
}
|
|
2160
2160
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -2163,7 +2163,7 @@ function parseDefinitions(_this__u8e3s4) {
|
|
|
2163
2163
|
var _iterator__ex2g4s_0 = destination.t();
|
|
2164
2164
|
while (_iterator__ex2g4s_0.u()) {
|
|
2165
2165
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
2166
|
-
var tmp0_subject = element_0.
|
|
2166
|
+
var tmp0_subject = element_0.wf_1.j34();
|
|
2167
2167
|
var tmp_0;
|
|
2168
2168
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
2169
2169
|
tmp_0 = true;
|
|
@@ -2183,7 +2183,7 @@ function parseDefinitions(_this__u8e3s4) {
|
|
|
2183
2183
|
}
|
|
2184
2184
|
}
|
|
2185
2185
|
if (tmp_0) {
|
|
2186
|
-
destination_0.
|
|
2186
|
+
destination_0.y(element_0);
|
|
2187
2187
|
}
|
|
2188
2188
|
}
|
|
2189
2189
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -2192,7 +2192,7 @@ function parseDefinitions(_this__u8e3s4) {
|
|
|
2192
2192
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
2193
2193
|
while (_iterator__ex2g4s_1.u()) {
|
|
2194
2194
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
2195
|
-
var list = flatten(_this__u8e3s4, element_1.
|
|
2195
|
+
var list = flatten(_this__u8e3s4, element_1.wf_1, className([element_1.vf_1]));
|
|
2196
2196
|
addAll(destination_1, list);
|
|
2197
2197
|
}
|
|
2198
2198
|
return destination_1;
|
|
@@ -2222,7 +2222,7 @@ function resolveParameters(_this__u8e3s4, parameters) {
|
|
|
2222
2222
|
null;
|
|
2223
2223
|
else {
|
|
2224
2224
|
// Inline function 'kotlin.let' call
|
|
2225
|
-
destination.
|
|
2225
|
+
destination.y(tmp0_safe_receiver);
|
|
2226
2226
|
}
|
|
2227
2227
|
}
|
|
2228
2228
|
return destination;
|
|
@@ -2261,7 +2261,7 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
2261
2261
|
var _iterator__ex2g4s_0 = parameters.t();
|
|
2262
2262
|
while (_iterator__ex2g4s_0.u()) {
|
|
2263
2263
|
var element = _iterator__ex2g4s_0.v();
|
|
2264
|
-
if (element.
|
|
2264
|
+
if (element.h3b_1 === param) {
|
|
2265
2265
|
tmp$ret$2 = element;
|
|
2266
2266
|
break $l$block;
|
|
2267
2267
|
}
|
|
@@ -2298,25 +2298,25 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
2298
2298
|
break;
|
|
2299
2299
|
}
|
|
2300
2300
|
var tmp$ret$6 = tmp_1;
|
|
2301
|
-
destination.
|
|
2301
|
+
destination.y(tmp$ret$6);
|
|
2302
2302
|
}
|
|
2303
2303
|
return destination;
|
|
2304
2304
|
}
|
|
2305
2305
|
function get_location(_this__u8e3s4) {
|
|
2306
|
-
return _this__u8e3s4.
|
|
2306
|
+
return _this__u8e3s4.f3b_1;
|
|
2307
2307
|
}
|
|
2308
2308
|
function toField(_this__u8e3s4, parameter, name) {
|
|
2309
2309
|
// Inline function 'kotlin.let' call
|
|
2310
2310
|
var schema = resolveParameter(_this__u8e3s4, parameter);
|
|
2311
|
-
var tmp0_elvis_lhs = parameter.
|
|
2311
|
+
var tmp0_elvis_lhs = parameter.m3a_1;
|
|
2312
2312
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
2313
2313
|
var tmp;
|
|
2314
|
-
if (!(parameter.
|
|
2315
|
-
tmp = new Custom(sanitize(className([name, 'Parameter', schema.
|
|
2314
|
+
if (!(parameter.d3b_1 == null)) {
|
|
2315
|
+
tmp = new Custom(sanitize(className([name, 'Parameter', schema.h3b_1])), isNullable);
|
|
2316
2316
|
} else {
|
|
2317
|
-
var tmp1_subject = schema.
|
|
2317
|
+
var tmp1_subject = schema.n3a_1;
|
|
2318
2318
|
var tmp_0;
|
|
2319
|
-
switch (tmp1_subject == null ? -1 : tmp1_subject.
|
|
2319
|
+
switch (tmp1_subject == null ? -1 : tmp1_subject.c3_1) {
|
|
2320
2320
|
case 0:
|
|
2321
2321
|
case 1:
|
|
2322
2322
|
case 2:
|
|
@@ -2327,7 +2327,7 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2327
2327
|
tmp_0 = new Primitive(primitive, isNullable);
|
|
2328
2328
|
break;
|
|
2329
2329
|
case 4:
|
|
2330
|
-
var tmp2_safe_receiver = schema.
|
|
2330
|
+
var tmp2_safe_receiver = schema.o3a_1;
|
|
2331
2331
|
var tmp_1;
|
|
2332
2332
|
if (tmp2_safe_receiver == null) {
|
|
2333
2333
|
tmp_1 = null;
|
|
@@ -2374,17 +2374,17 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2374
2374
|
}
|
|
2375
2375
|
// Inline function 'kotlin.let' call
|
|
2376
2376
|
var it = tmp;
|
|
2377
|
-
var tmp0_identifier = new FieldIdentifier(parameter.
|
|
2378
|
-
var tmp1_annotations = toDescriptionAnnotationList(parameter.
|
|
2377
|
+
var tmp0_identifier = new FieldIdentifier(parameter.h3b_1);
|
|
2378
|
+
var tmp1_annotations = toDescriptionAnnotationList(parameter.l3a_1);
|
|
2379
2379
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
2380
2380
|
}
|
|
2381
2381
|
function toReference(_this__u8e3s4, reference, isNullable) {
|
|
2382
2382
|
var _destruct__k2r9zo = resolveSchemaRef(_this__u8e3s4, reference);
|
|
2383
|
-
var referencingObject = _destruct__k2r9zo.
|
|
2384
|
-
var schema = _destruct__k2r9zo.
|
|
2383
|
+
var referencingObject = _destruct__k2r9zo.mf();
|
|
2384
|
+
var schema = _destruct__k2r9zo.nf();
|
|
2385
2385
|
var tmp;
|
|
2386
|
-
if (exists(schema.
|
|
2387
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2386
|
+
if (exists(schema.j34())) {
|
|
2387
|
+
var additionalProperties = ensureNotNull(schema.j34());
|
|
2388
2388
|
var tmp_0;
|
|
2389
2389
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
2390
2390
|
tmp_0 = new Dict(new Any(false), isNullable);
|
|
@@ -2400,15 +2400,15 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2400
2400
|
}
|
|
2401
2401
|
}
|
|
2402
2402
|
tmp = tmp_0;
|
|
2403
|
-
} else if (!(schema.
|
|
2403
|
+
} else if (!(schema.f34() == null)) {
|
|
2404
2404
|
tmp = new Custom(sanitize(className([getReference(referencingObject)])), isNullable);
|
|
2405
2405
|
} else if (isPrimitive(get_primitiveType(schema))) {
|
|
2406
2406
|
tmp = new Primitive(toPrimitive_0(schema), isNullable);
|
|
2407
2407
|
} else {
|
|
2408
2408
|
var tmp0_subject = get_primitiveType(schema);
|
|
2409
2409
|
var tmp_1;
|
|
2410
|
-
if ((tmp0_subject == null ? -1 : tmp0_subject.
|
|
2411
|
-
var items = schema.
|
|
2410
|
+
if ((tmp0_subject == null ? -1 : tmp0_subject.c3_1) === 4) {
|
|
2411
|
+
var items = schema.g34();
|
|
2412
2412
|
var tmp_2;
|
|
2413
2413
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
2414
2414
|
tmp_2 = toIterable(toReference(_this__u8e3s4, items, false), isNullable);
|
|
@@ -2417,7 +2417,7 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2417
2417
|
tmp_2 = toIterable(toReference_0(_this__u8e3s4, items, className([getReference(referencingObject), 'Array']), isNullable), isNullable);
|
|
2418
2418
|
} else {
|
|
2419
2419
|
if (items == null) {
|
|
2420
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.
|
|
2420
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.d34());
|
|
2421
2421
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2422
2422
|
} else {
|
|
2423
2423
|
noWhenBranchMatchedException();
|
|
@@ -2440,20 +2440,20 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2440
2440
|
var tmp_3;
|
|
2441
2441
|
var tmp_4;
|
|
2442
2442
|
var tmp_5;
|
|
2443
|
-
var tmp0_safe_receiver = schema.
|
|
2444
|
-
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2445
|
-
var tmp_6 = first(ensureNotNull(schema.
|
|
2443
|
+
var tmp0_safe_receiver = schema.h34();
|
|
2444
|
+
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b1()) === 1) {
|
|
2445
|
+
var tmp_6 = first(ensureNotNull(schema.h34()));
|
|
2446
2446
|
tmp_5 = isInterface(tmp_6, Reference);
|
|
2447
2447
|
} else {
|
|
2448
2448
|
tmp_5 = false;
|
|
2449
2449
|
}
|
|
2450
2450
|
if (tmp_5) {
|
|
2451
|
-
tmp_4 = schema.
|
|
2451
|
+
tmp_4 = schema.i34() == null;
|
|
2452
2452
|
} else {
|
|
2453
2453
|
tmp_4 = false;
|
|
2454
2454
|
}
|
|
2455
2455
|
if (tmp_4) {
|
|
2456
|
-
tmp_3 = schema.
|
|
2456
|
+
tmp_3 = schema.f34() == null;
|
|
2457
2457
|
} else {
|
|
2458
2458
|
tmp_3 = false;
|
|
2459
2459
|
}
|
|
@@ -2463,21 +2463,21 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2463
2463
|
tmp_2 = false;
|
|
2464
2464
|
}
|
|
2465
2465
|
if (tmp_2) {
|
|
2466
|
-
tmp_1 = schema.
|
|
2466
|
+
tmp_1 = schema.g34() == null;
|
|
2467
2467
|
} else {
|
|
2468
2468
|
tmp_1 = false;
|
|
2469
2469
|
}
|
|
2470
2470
|
if (tmp_1) {
|
|
2471
|
-
tmp_0 = schema.
|
|
2471
|
+
tmp_0 = schema.j34() == null;
|
|
2472
2472
|
} else {
|
|
2473
2473
|
tmp_0 = false;
|
|
2474
2474
|
}
|
|
2475
2475
|
if (tmp_0) {
|
|
2476
|
-
var tmp_7 = first(ensureNotNull(schema.
|
|
2476
|
+
var tmp_7 = first(ensureNotNull(schema.h34()));
|
|
2477
2477
|
tmp = toReference(_this__u8e3s4, isInterface(tmp_7, Reference) ? tmp_7 : THROW_CCE(), isNullable);
|
|
2478
2478
|
} else {
|
|
2479
|
-
if (!(schema.
|
|
2480
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2479
|
+
if (!(schema.j34() == null)) {
|
|
2480
|
+
var additionalProperties = ensureNotNull(schema.j34());
|
|
2481
2481
|
var tmp_8;
|
|
2482
2482
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
2483
2483
|
tmp_8 = new Dict(new Any(false), isNullable);
|
|
@@ -2488,7 +2488,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2488
2488
|
if (isInterface(additionalProperties, Schema)) {
|
|
2489
2489
|
// Inline function 'kotlin.takeIf' call
|
|
2490
2490
|
var tmp_9;
|
|
2491
|
-
if (isPrimitive(get_primitiveType(additionalProperties)) || !(additionalProperties.
|
|
2491
|
+
if (isPrimitive(get_primitiveType(additionalProperties)) || !(additionalProperties.i34() == null)) {
|
|
2492
2492
|
tmp_9 = additionalProperties;
|
|
2493
2493
|
} else {
|
|
2494
2494
|
tmp_9 = null;
|
|
@@ -2510,9 +2510,9 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2510
2510
|
}
|
|
2511
2511
|
tmp = tmp_8;
|
|
2512
2512
|
} else {
|
|
2513
|
-
if (!(schema.
|
|
2513
|
+
if (!(schema.f34() == null)) {
|
|
2514
2514
|
var tmp_11;
|
|
2515
|
-
if (!(schema.
|
|
2515
|
+
if (!(schema.j34() == null)) {
|
|
2516
2516
|
tmp_11 = new Dict(new Custom(sanitize(name), false), isNullable);
|
|
2517
2517
|
} else {
|
|
2518
2518
|
tmp_11 = new Custom(sanitize(name), isNullable);
|
|
@@ -2521,13 +2521,13 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2521
2521
|
} else {
|
|
2522
2522
|
var tmp3_subject = get_primitiveType(schema);
|
|
2523
2523
|
var tmp_12;
|
|
2524
|
-
switch (tmp3_subject == null ? -1 : tmp3_subject.
|
|
2524
|
+
switch (tmp3_subject == null ? -1 : tmp3_subject.c3_1) {
|
|
2525
2525
|
case 0:
|
|
2526
2526
|
case 2:
|
|
2527
2527
|
case 1:
|
|
2528
2528
|
case 3:
|
|
2529
2529
|
var tmp_13;
|
|
2530
|
-
if (!(schema.
|
|
2530
|
+
if (!(schema.j34() == null)) {
|
|
2531
2531
|
tmp_13 = new Dict(new Primitive(toPrimitive_0(schema), false), isNullable);
|
|
2532
2532
|
} else {
|
|
2533
2533
|
tmp_13 = new Primitive(toPrimitive_0(schema), isNullable);
|
|
@@ -2538,17 +2538,17 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2538
2538
|
case -1:
|
|
2539
2539
|
case 5:
|
|
2540
2540
|
var tmp_14;
|
|
2541
|
-
var tmp_15 = schema.
|
|
2541
|
+
var tmp_15 = schema.j34();
|
|
2542
2542
|
if (!(tmp_15 == null) ? isInterface(tmp_15, BooleanValue) : false) {
|
|
2543
2543
|
var tmp_16;
|
|
2544
|
-
if (!(schema.
|
|
2544
|
+
if (!(schema.j34() == null)) {
|
|
2545
2545
|
tmp_16 = new Dict(new Any(isNullable), false);
|
|
2546
2546
|
} else {
|
|
2547
2547
|
tmp_16 = new Any(isNullable);
|
|
2548
2548
|
}
|
|
2549
2549
|
tmp_14 = tmp_16;
|
|
2550
2550
|
} else {
|
|
2551
|
-
if (!(schema.
|
|
2551
|
+
if (!(schema.j34() == null)) {
|
|
2552
2552
|
new Dict(new Custom(sanitize(name), isNullable), false);
|
|
2553
2553
|
}
|
|
2554
2554
|
tmp_14 = new Custom(sanitize(name), isNullable);
|
|
@@ -2557,7 +2557,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2557
2557
|
tmp_12 = tmp_14;
|
|
2558
2558
|
break;
|
|
2559
2559
|
case 4:
|
|
2560
|
-
var items = schema.
|
|
2560
|
+
var items = schema.g34();
|
|
2561
2561
|
var tmp_17;
|
|
2562
2562
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
2563
2563
|
tmp_17 = toIterable(toReference(_this__u8e3s4, items, false), isNullable);
|
|
@@ -2613,10 +2613,10 @@ function toField_0(_this__u8e3s4, header, identifier) {
|
|
|
2613
2613
|
}
|
|
2614
2614
|
var v20 = tmp;
|
|
2615
2615
|
var tmp5_identifier = new FieldIdentifier(identifier);
|
|
2616
|
-
var tmp6_annotations = toDescriptionAnnotationList(header.
|
|
2616
|
+
var tmp6_annotations = toDescriptionAnnotationList(header.r3c_1);
|
|
2617
2617
|
var tmp_0;
|
|
2618
|
-
if (v20.
|
|
2619
|
-
var tmp2_safe_receiver = v20.
|
|
2618
|
+
if (v20.s3c_1.c3_1 === 4) {
|
|
2619
|
+
var tmp2_safe_receiver = v20.u3c_1;
|
|
2620
2620
|
var tmp_1;
|
|
2621
2621
|
if (tmp2_safe_receiver == null) {
|
|
2622
2622
|
tmp_1 = null;
|
|
@@ -2697,17 +2697,17 @@ function resolveParameter(_this__u8e3s4, parameterOrReference) {
|
|
|
2697
2697
|
}
|
|
2698
2698
|
function get_primitiveType(_this__u8e3s4) {
|
|
2699
2699
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof OpenAPIV20Schema ? _this__u8e3s4 : null;
|
|
2700
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2700
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c39_1;
|
|
2701
2701
|
}
|
|
2702
2702
|
function flatten(_this__u8e3s4, schemaObject, name) {
|
|
2703
2703
|
var tmp;
|
|
2704
|
-
if (exists(schemaObject.
|
|
2705
|
-
var tmp0_subject = schemaObject.
|
|
2704
|
+
if (exists(schemaObject.j34())) {
|
|
2705
|
+
var tmp0_subject = schemaObject.j34();
|
|
2706
2706
|
var tmp_0;
|
|
2707
2707
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
2708
2708
|
tmp_0 = emptyList();
|
|
2709
2709
|
} else {
|
|
2710
|
-
var tmp1_safe_receiver = schemaObject.
|
|
2710
|
+
var tmp1_safe_receiver = schemaObject.j34();
|
|
2711
2711
|
var tmp_1;
|
|
2712
2712
|
if (tmp1_safe_receiver == null) {
|
|
2713
2713
|
tmp_1 = null;
|
|
@@ -2722,7 +2722,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2722
2722
|
} else {
|
|
2723
2723
|
// Inline function 'kotlin.takeIf' call
|
|
2724
2724
|
var tmp_3;
|
|
2725
|
-
if (!(tmp2_safe_receiver.
|
|
2725
|
+
if (!(tmp2_safe_receiver.i34() == null)) {
|
|
2726
2726
|
tmp_3 = tmp2_safe_receiver;
|
|
2727
2727
|
} else {
|
|
2728
2728
|
tmp_3 = null;
|
|
@@ -2741,11 +2741,11 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2741
2741
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
2742
2742
|
}
|
|
2743
2743
|
tmp = tmp_0;
|
|
2744
|
-
} else if (!(schemaObject.
|
|
2745
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
2744
|
+
} else if (!(schemaObject.h34() == null)) {
|
|
2745
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.e34());
|
|
2746
2746
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
2747
2747
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2748
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
2748
|
+
var tmp0_elvis_lhs = schemaObject.h34();
|
|
2749
2749
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2750
2750
|
var tmp0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2751
2751
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2758,7 +2758,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2758
2758
|
tmp_7 = toField_1(_this__u8e3s4, element, name);
|
|
2759
2759
|
} else {
|
|
2760
2760
|
if (isInterface(element, Reference)) {
|
|
2761
|
-
tmp_7 = toField_1(_this__u8e3s4, resolveSchemaRef(_this__u8e3s4, element).
|
|
2761
|
+
tmp_7 = toField_1(_this__u8e3s4, resolveSchemaRef(_this__u8e3s4, element).wf_1, getReference(element));
|
|
2762
2762
|
} else {
|
|
2763
2763
|
noWhenBranchMatchedException();
|
|
2764
2764
|
}
|
|
@@ -2772,14 +2772,14 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2772
2772
|
var _iterator__ex2g4s_0 = destination.t();
|
|
2773
2773
|
while (_iterator__ex2g4s_0.u()) {
|
|
2774
2774
|
var e = _iterator__ex2g4s_0.v();
|
|
2775
|
-
var key = e.
|
|
2776
|
-
if (set.
|
|
2777
|
-
list_0.
|
|
2775
|
+
var key = e.bt_1;
|
|
2776
|
+
if (set.y(key)) {
|
|
2777
|
+
list_0.y(e);
|
|
2778
2778
|
}
|
|
2779
2779
|
}
|
|
2780
2780
|
var tmp_8 = listOf(new Type(null, tmp_5, tmp_6, new Shape(list_0), emptyList()));
|
|
2781
2781
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2782
|
-
var tmp0_0 = ensureNotNull(schemaObject.
|
|
2782
|
+
var tmp0_0 = ensureNotNull(schemaObject.h34());
|
|
2783
2783
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2784
2784
|
var destination_0 = ArrayList_init_$Create$();
|
|
2785
2785
|
var _iterator__ex2g4s_1 = tmp0_0.t();
|
|
@@ -2791,19 +2791,19 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2791
2791
|
} else {
|
|
2792
2792
|
if (isInterface(element_0, Schema)) {
|
|
2793
2793
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2794
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
2794
|
+
var tmp0_elvis_lhs_0 = element_0.i34();
|
|
2795
2795
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2796
2796
|
var tmp0_1 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2797
2797
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2798
2798
|
var destination_1 = ArrayList_init_$Create$();
|
|
2799
2799
|
// Inline function 'kotlin.collections.iterator' call
|
|
2800
|
-
var _iterator__ex2g4s_2 = tmp0_1.
|
|
2800
|
+
var _iterator__ex2g4s_2 = tmp0_1.k1().t();
|
|
2801
2801
|
while (_iterator__ex2g4s_2.u()) {
|
|
2802
2802
|
var element_1 = _iterator__ex2g4s_2.v();
|
|
2803
2803
|
// Inline function 'kotlin.collections.component1' call
|
|
2804
|
-
var key_0 = element_1.
|
|
2804
|
+
var key_0 = element_1.l1();
|
|
2805
2805
|
// Inline function 'kotlin.collections.component2' call
|
|
2806
|
-
var value = element_1.
|
|
2806
|
+
var value = element_1.m1();
|
|
2807
2807
|
var tmp_10;
|
|
2808
2808
|
if (isInterface(value, Reference)) {
|
|
2809
2809
|
tmp_10 = emptyList();
|
|
@@ -2826,29 +2826,29 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2826
2826
|
addAll(destination_0, list_2);
|
|
2827
2827
|
}
|
|
2828
2828
|
tmp = plus_0(tmp_8, destination_0);
|
|
2829
|
-
} else if (!(schemaObject.
|
|
2829
|
+
} else if (!(schemaObject.f34() == null)) {
|
|
2830
2830
|
// Inline function 'kotlin.collections.map' call
|
|
2831
|
-
var this_0 = ensureNotNull(schemaObject.
|
|
2831
|
+
var this_0 = ensureNotNull(schemaObject.f34());
|
|
2832
2832
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2833
2833
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2834
2834
|
var _iterator__ex2g4s_3 = this_0.t();
|
|
2835
2835
|
while (_iterator__ex2g4s_3.u()) {
|
|
2836
2836
|
var item = _iterator__ex2g4s_3.v();
|
|
2837
|
-
var tmp$ret$22 = item.
|
|
2838
|
-
destination_2.
|
|
2837
|
+
var tmp$ret$22 = item.n11();
|
|
2838
|
+
destination_2.y(tmp$ret$22);
|
|
2839
2839
|
}
|
|
2840
2840
|
// Inline function 'kotlin.let' call
|
|
2841
2841
|
var it = toSet(destination_2);
|
|
2842
|
-
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.
|
|
2842
|
+
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.e34()), new DefinitionIdentifier(sanitize(name)), it));
|
|
2843
2843
|
} else {
|
|
2844
2844
|
var tmp5_subject = get_primitiveType(schemaObject);
|
|
2845
2845
|
var tmp_11;
|
|
2846
|
-
switch (tmp5_subject == null ? -1 : tmp5_subject.
|
|
2846
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.c3_1) {
|
|
2847
2847
|
case -1:
|
|
2848
2848
|
case 5:
|
|
2849
2849
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2850
2850
|
|
|
2851
|
-
var tmp0_elvis_lhs_1 = schemaObject.
|
|
2851
|
+
var tmp0_elvis_lhs_1 = schemaObject.i34();
|
|
2852
2852
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2853
2853
|
|
|
2854
2854
|
var tmp0_2 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
@@ -2857,23 +2857,23 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2857
2857
|
var destination_3 = ArrayList_init_$Create$();
|
|
2858
2858
|
// Inline function 'kotlin.collections.iterator' call
|
|
2859
2859
|
|
|
2860
|
-
var _iterator__ex2g4s_4 = tmp0_2.
|
|
2860
|
+
var _iterator__ex2g4s_4 = tmp0_2.k1().t();
|
|
2861
2861
|
while (_iterator__ex2g4s_4.u()) {
|
|
2862
2862
|
var element_2 = _iterator__ex2g4s_4.v();
|
|
2863
2863
|
// Inline function 'kotlin.collections.component1' call
|
|
2864
|
-
var key_1 = element_2.
|
|
2864
|
+
var key_1 = element_2.l1();
|
|
2865
2865
|
// Inline function 'kotlin.collections.component2' call
|
|
2866
|
-
var value_0 = element_2.
|
|
2866
|
+
var value_0 = element_2.m1();
|
|
2867
2867
|
var list_3 = flattenSchemaOrRef(_this__u8e3s4, value_0, className([name, key_1]));
|
|
2868
2868
|
addAll(destination_3, list_3);
|
|
2869
2869
|
}
|
|
2870
2870
|
|
|
2871
2871
|
var fields = destination_3;
|
|
2872
|
-
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.
|
|
2872
|
+
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.e34()), new DefinitionIdentifier(sanitize(name)), new Shape(toField_1(_this__u8e3s4, schemaObject, name)), emptyList()));
|
|
2873
2873
|
tmp_11 = plus_0(schema, fields);
|
|
2874
2874
|
break;
|
|
2875
2875
|
case 4:
|
|
2876
|
-
var it_0 = schemaObject.
|
|
2876
|
+
var it_0 = schemaObject.g34();
|
|
2877
2877
|
var tmp_12;
|
|
2878
2878
|
if (!(it_0 == null) ? isInterface(it_0, Reference) : false) {
|
|
2879
2879
|
tmp_12 = emptyList();
|
|
@@ -2900,8 +2900,8 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2900
2900
|
return tmp;
|
|
2901
2901
|
}
|
|
2902
2902
|
function resolveParameterObject(_this__u8e3s4, reference) {
|
|
2903
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2904
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2903
|
+
var tmp0_safe_receiver = _this__u8e3s4.u34();
|
|
2904
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q2(getReference(reference));
|
|
2905
2905
|
var tmp;
|
|
2906
2906
|
if (tmp1_safe_receiver == null) {
|
|
2907
2907
|
tmp = null;
|
|
@@ -2912,7 +2912,7 @@ function resolveParameterObject(_this__u8e3s4, reference) {
|
|
|
2912
2912
|
var tmp2_elvis_lhs = tmp;
|
|
2913
2913
|
var tmp_0;
|
|
2914
2914
|
if (tmp2_elvis_lhs == null) {
|
|
2915
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
2915
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.d34());
|
|
2916
2916
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2917
2917
|
} else {
|
|
2918
2918
|
tmp_0 = tmp2_elvis_lhs;
|
|
@@ -2920,17 +2920,17 @@ function resolveParameterObject(_this__u8e3s4, reference) {
|
|
|
2920
2920
|
return tmp_0;
|
|
2921
2921
|
}
|
|
2922
2922
|
function toPrimitive(_this__u8e3s4) {
|
|
2923
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2923
|
+
var tmp0_subject = _this__u8e3s4.f11();
|
|
2924
2924
|
var tmp;
|
|
2925
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
2925
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.c3_1) {
|
|
2926
2926
|
case 0:
|
|
2927
|
-
tmp = !(_this__u8e3s4.
|
|
2927
|
+
tmp = !(_this__u8e3s4.l34() == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.l34()))) : _this__u8e3s4.k34() === 'binary' ? Bytes_instance : new String_0(null);
|
|
2928
2928
|
break;
|
|
2929
2929
|
case 2:
|
|
2930
|
-
tmp = new Integer(_this__u8e3s4.
|
|
2930
|
+
tmp = new Integer(_this__u8e3s4.k34() === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
2931
2931
|
break;
|
|
2932
2932
|
case 1:
|
|
2933
|
-
tmp = new Number_0(_this__u8e3s4.
|
|
2933
|
+
tmp = new Number_0(_this__u8e3s4.k34() === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
2934
2934
|
break;
|
|
2935
2935
|
case 3:
|
|
2936
2936
|
tmp = Boolean_instance;
|
|
@@ -2947,7 +2947,7 @@ function resolve(_this__u8e3s4, schemaOrReference) {
|
|
|
2947
2947
|
tmp = schemaOrReference;
|
|
2948
2948
|
} else {
|
|
2949
2949
|
if (isInterface(schemaOrReference, Reference)) {
|
|
2950
|
-
tmp = resolveSchemaRef(_this__u8e3s4, schemaOrReference).
|
|
2950
|
+
tmp = resolveSchemaRef(_this__u8e3s4, schemaOrReference).wf_1;
|
|
2951
2951
|
} else {
|
|
2952
2952
|
noWhenBranchMatchedException();
|
|
2953
2953
|
}
|
|
@@ -2958,11 +2958,11 @@ function toPrimitive_0(_this__u8e3s4) {
|
|
|
2958
2958
|
return toPrimitive(isInterface(_this__u8e3s4, OpenAPIV20Base) ? _this__u8e3s4 : THROW_CCE());
|
|
2959
2959
|
}
|
|
2960
2960
|
function resolveSchemaRef(_this__u8e3s4, reference) {
|
|
2961
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2962
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2961
|
+
var tmp0_safe_receiver = _this__u8e3s4.t36();
|
|
2962
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q2(getReference(reference));
|
|
2963
2963
|
var tmp;
|
|
2964
2964
|
if (tmp1_elvis_lhs == null) {
|
|
2965
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
2965
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.d34());
|
|
2966
2966
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2967
2967
|
} else {
|
|
2968
2968
|
tmp = tmp1_elvis_lhs;
|
|
@@ -2987,7 +2987,7 @@ function exists(_this__u8e3s4) {
|
|
|
2987
2987
|
tmp = true;
|
|
2988
2988
|
} else {
|
|
2989
2989
|
if (!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, BooleanValue) : false) {
|
|
2990
|
-
tmp = _this__u8e3s4.
|
|
2990
|
+
tmp = _this__u8e3s4.m1();
|
|
2991
2991
|
} else {
|
|
2992
2992
|
if (!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, Reference) : false) {
|
|
2993
2993
|
tmp = true;
|
|
@@ -3004,7 +3004,7 @@ function exists(_this__u8e3s4) {
|
|
|
3004
3004
|
}
|
|
3005
3005
|
function isPrimitive(_this__u8e3s4) {
|
|
3006
3006
|
var tmp;
|
|
3007
|
-
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.
|
|
3007
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.c3_1) {
|
|
3008
3008
|
case 0:
|
|
3009
3009
|
tmp = true;
|
|
3010
3010
|
break;
|
|
@@ -3036,11 +3036,11 @@ function isPrimitive(_this__u8e3s4) {
|
|
|
3036
3036
|
return tmp;
|
|
3037
3037
|
}
|
|
3038
3038
|
function resolveResponseObject(_this__u8e3s4, reference) {
|
|
3039
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3040
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3039
|
+
var tmp0_safe_receiver = _this__u8e3s4.b10();
|
|
3040
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q2(getReference(reference));
|
|
3041
3041
|
var tmp;
|
|
3042
3042
|
if (tmp1_elvis_lhs == null) {
|
|
3043
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
3043
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.d34());
|
|
3044
3044
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
3045
3045
|
} else {
|
|
3046
3046
|
tmp = tmp1_elvis_lhs;
|
|
@@ -3053,7 +3053,7 @@ function resolve_0(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
3053
3053
|
tmp = schemaOrReferenceOrBoolean;
|
|
3054
3054
|
} else {
|
|
3055
3055
|
if (isInterface(schemaOrReferenceOrBoolean, Reference)) {
|
|
3056
|
-
tmp = resolveSchemaRef(_this__u8e3s4, schemaOrReferenceOrBoolean).
|
|
3056
|
+
tmp = resolveSchemaRef(_this__u8e3s4, schemaOrReferenceOrBoolean).wf_1;
|
|
3057
3057
|
} else {
|
|
3058
3058
|
if (isInterface(schemaOrReferenceOrBoolean, BooleanValue)) {
|
|
3059
3059
|
var reason = 'Not yet implemented';
|
|
@@ -3067,27 +3067,27 @@ function resolve_0(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
3067
3067
|
}
|
|
3068
3068
|
function toField_1(_this__u8e3s4, schema, name) {
|
|
3069
3069
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3070
|
-
var tmp0_elvis_lhs = schema.
|
|
3070
|
+
var tmp0_elvis_lhs = schema.i34();
|
|
3071
3071
|
// Inline function 'kotlin.collections.map' call
|
|
3072
3072
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3073
3073
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3074
|
-
var destination = ArrayList_init_$Create$_0(this_0.
|
|
3074
|
+
var destination = ArrayList_init_$Create$_0(this_0.b1());
|
|
3075
3075
|
// Inline function 'kotlin.collections.iterator' call
|
|
3076
|
-
var _iterator__ex2g4s = this_0.
|
|
3076
|
+
var _iterator__ex2g4s = this_0.k1().t();
|
|
3077
3077
|
while (_iterator__ex2g4s.u()) {
|
|
3078
3078
|
var item = _iterator__ex2g4s.v();
|
|
3079
3079
|
// Inline function 'kotlin.collections.component1' call
|
|
3080
|
-
var key = item.
|
|
3080
|
+
var key = item.l1();
|
|
3081
3081
|
// Inline function 'kotlin.collections.component2' call
|
|
3082
|
-
var value = item.
|
|
3083
|
-
var tmp0_safe_receiver = schema.
|
|
3084
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3082
|
+
var value = item.m1();
|
|
3083
|
+
var tmp0_safe_receiver = schema.h1f();
|
|
3084
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v1(key);
|
|
3085
3085
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
3086
3086
|
var tmp;
|
|
3087
3087
|
if (isInterface(value, Schema)) {
|
|
3088
3088
|
var tmp3_identifier = new FieldIdentifier(key);
|
|
3089
3089
|
var tmp4_annotations = emptyList();
|
|
3090
|
-
var tmp5_reference = !(value.
|
|
3090
|
+
var tmp5_reference = !(value.f34() == null) ? toReference_0(_this__u8e3s4, value, className([name, key]), isNullable) : equals(get_primitiveType(value), OpenAPIV20Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, value, className([name, key, 'Array']), isNullable) : toReference_0(_this__u8e3s4, value, className([name, key]), isNullable);
|
|
3091
3091
|
tmp = new Field(tmp4_annotations, tmp3_identifier, tmp5_reference);
|
|
3092
3092
|
} else {
|
|
3093
3093
|
if (isInterface(value, Reference)) {
|
|
@@ -3100,15 +3100,15 @@ function toField_1(_this__u8e3s4, schema, name) {
|
|
|
3100
3100
|
}
|
|
3101
3101
|
}
|
|
3102
3102
|
var tmp$ret$4 = tmp;
|
|
3103
|
-
destination.
|
|
3103
|
+
destination.y(tmp$ret$4);
|
|
3104
3104
|
}
|
|
3105
3105
|
return destination;
|
|
3106
3106
|
}
|
|
3107
3107
|
function parseParameters$lambda($this_parseParameters) {
|
|
3108
3108
|
return function ($this$flatMapRequests) {
|
|
3109
|
-
var parameters = plus_0(resolveParameters($this_parseParameters, $this$flatMapRequests.
|
|
3110
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
3111
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
3109
|
+
var parameters = plus_0(resolveParameters($this_parseParameters, $this$flatMapRequests.m4a_1.u34()), resolveParameters($this_parseParameters, $this$flatMapRequests.o4a_1.u34()));
|
|
3110
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.o4a_1);
|
|
3111
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.l4a_1) + $this$flatMapRequests.n4a_1.b3_1 : tmp0_elvis_lhs;
|
|
3112
3112
|
// Inline function 'kotlin.collections.filter' call
|
|
3113
3113
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3114
3114
|
var destination = ArrayList_init_$Create$();
|
|
@@ -3116,7 +3116,7 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
3116
3116
|
while (_iterator__ex2g4s.u()) {
|
|
3117
3117
|
var element = _iterator__ex2g4s.v();
|
|
3118
3118
|
if (!get_location(element).equals(OpenAPIV20ParameterLocation_BODY_getInstance())) {
|
|
3119
|
-
destination.
|
|
3119
|
+
destination.y(element);
|
|
3120
3120
|
}
|
|
3121
3121
|
}
|
|
3122
3122
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -3125,13 +3125,13 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
3125
3125
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3126
3126
|
while (_iterator__ex2g4s_0.u()) {
|
|
3127
3127
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3128
|
-
var tmp0_safe_receiver = element_0.
|
|
3128
|
+
var tmp0_safe_receiver = element_0.g3b_1;
|
|
3129
3129
|
var tmp;
|
|
3130
3130
|
if (tmp0_safe_receiver == null) {
|
|
3131
3131
|
tmp = null;
|
|
3132
3132
|
} else {
|
|
3133
3133
|
// Inline function 'kotlin.let' call
|
|
3134
|
-
tmp = flattenSchemaOrRef($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element_0.
|
|
3134
|
+
tmp = flattenSchemaOrRef($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element_0.h3b_1]));
|
|
3135
3135
|
}
|
|
3136
3136
|
var tmp1_elvis_lhs = tmp;
|
|
3137
3137
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -3142,9 +3142,9 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
3142
3142
|
}
|
|
3143
3143
|
function parseRequestBody$lambda($this_parseRequestBody) {
|
|
3144
3144
|
return function ($this$flatMapRequests) {
|
|
3145
|
-
var parameters = plus_0(resolveParameters($this_parseRequestBody, $this$flatMapRequests.
|
|
3146
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
3147
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
3145
|
+
var parameters = plus_0(resolveParameters($this_parseRequestBody, $this$flatMapRequests.m4a_1.u34()), resolveParameters($this_parseRequestBody, $this$flatMapRequests.o4a_1.u34()));
|
|
3146
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.o4a_1);
|
|
3147
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.l4a_1) + $this$flatMapRequests.n4a_1.b3_1 : tmp0_elvis_lhs;
|
|
3148
3148
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3149
3149
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3150
3150
|
var destination = ArrayList_init_$Create$();
|
|
@@ -3152,18 +3152,18 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3152
3152
|
while (_iterator__ex2g4s.u()) {
|
|
3153
3153
|
var element = _iterator__ex2g4s.v();
|
|
3154
3154
|
var tmp;
|
|
3155
|
-
if (!(element.
|
|
3156
|
-
var tmp_0 = toDescriptionAnnotationList(element.
|
|
3157
|
-
var tmp_1 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.
|
|
3155
|
+
if (!(element.d3b_1 == null)) {
|
|
3156
|
+
var tmp_0 = toDescriptionAnnotationList(element.l3a_1);
|
|
3157
|
+
var tmp_1 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.h3b_1])));
|
|
3158
3158
|
// Inline function 'kotlin.collections.map' call
|
|
3159
|
-
var this_0 = ensureNotNull(element.
|
|
3159
|
+
var this_0 = ensureNotNull(element.d3b_1);
|
|
3160
3160
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3161
3161
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3162
3162
|
var _iterator__ex2g4s_0 = this_0.t();
|
|
3163
3163
|
while (_iterator__ex2g4s_0.u()) {
|
|
3164
3164
|
var item = _iterator__ex2g4s_0.v();
|
|
3165
|
-
var tmp$ret$0 = item.
|
|
3166
|
-
destination_0.
|
|
3165
|
+
var tmp$ret$0 = item.n11();
|
|
3166
|
+
destination_0.y(tmp$ret$0);
|
|
3167
3167
|
}
|
|
3168
3168
|
tmp = listOf(new Enum(null, tmp_0, tmp_1, toSet(destination_0)));
|
|
3169
3169
|
} else {
|
|
@@ -3173,7 +3173,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3173
3173
|
addAll(destination, list);
|
|
3174
3174
|
}
|
|
3175
3175
|
var enums = destination;
|
|
3176
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
3176
|
+
var tmp1_safe_receiver = $this$flatMapRequests.o4a_1.u34();
|
|
3177
3177
|
var tmp_2;
|
|
3178
3178
|
if (tmp1_safe_receiver == null) {
|
|
3179
3179
|
tmp_2 = null;
|
|
@@ -3185,7 +3185,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3185
3185
|
while (_iterator__ex2g4s_1.u()) {
|
|
3186
3186
|
var item_0 = _iterator__ex2g4s_1.v();
|
|
3187
3187
|
var tmp$ret$6 = resolveParameter($this_parseRequestBody, item_0);
|
|
3188
|
-
destination_1.
|
|
3188
|
+
destination_1.y(tmp$ret$6);
|
|
3189
3189
|
}
|
|
3190
3190
|
tmp_2 = destination_1;
|
|
3191
3191
|
}
|
|
@@ -3201,7 +3201,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3201
3201
|
while (_iterator__ex2g4s_2.u()) {
|
|
3202
3202
|
var element_0 = _iterator__ex2g4s_2.v();
|
|
3203
3203
|
if (get_location(element_0).equals(OpenAPIV20ParameterLocation_BODY_getInstance())) {
|
|
3204
|
-
destination_2.
|
|
3204
|
+
destination_2.y(element_0);
|
|
3205
3205
|
}
|
|
3206
3206
|
}
|
|
3207
3207
|
tmp_3 = destination_2;
|
|
@@ -3217,18 +3217,18 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3217
3217
|
var _iterator__ex2g4s_3 = tmp3_safe_receiver.t();
|
|
3218
3218
|
while (_iterator__ex2g4s_3.u()) {
|
|
3219
3219
|
var element_1 = _iterator__ex2g4s_3.v();
|
|
3220
|
-
var schema = element_1.
|
|
3220
|
+
var schema = element_1.g3b_1;
|
|
3221
3221
|
var tmp_5;
|
|
3222
3222
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
3223
3223
|
var tmp0_subject = get_primitiveType(schema);
|
|
3224
3224
|
var tmp_6;
|
|
3225
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
3225
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.c3_1) {
|
|
3226
3226
|
case -1:
|
|
3227
3227
|
case 5:
|
|
3228
3228
|
tmp_6 = flatten($this_parseRequestBody, schema, className([name, 'RequestBody']));
|
|
3229
3229
|
break;
|
|
3230
3230
|
case 4:
|
|
3231
|
-
var tmp1_safe_receiver_0 = schema.
|
|
3231
|
+
var tmp1_safe_receiver_0 = schema.g34();
|
|
3232
3232
|
var tmp_7;
|
|
3233
3233
|
if (tmp1_safe_receiver_0 == null) {
|
|
3234
3234
|
tmp_7 = null;
|
|
@@ -3262,28 +3262,28 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3262
3262
|
}
|
|
3263
3263
|
function parseResponseBody$lambda($this_parseResponseBody) {
|
|
3264
3264
|
return function ($this$flatMapResponses) {
|
|
3265
|
-
var tmp = resolveResponse($this_parseResponseBody, $this$flatMapResponses.
|
|
3265
|
+
var tmp = resolveResponse($this_parseResponseBody, $this$flatMapResponses.u4a_1);
|
|
3266
3266
|
var tmp0_safe_receiver = tmp instanceof OpenAPIV20Response ? tmp : null;
|
|
3267
|
-
var schema = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3268
|
-
var tmp1_elvis_lhs = toName($this$flatMapResponses.
|
|
3269
|
-
var name = tmp1_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
3267
|
+
var schema = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i3c_1;
|
|
3268
|
+
var tmp1_elvis_lhs = toName($this$flatMapResponses.s4a_1);
|
|
3269
|
+
var name = tmp1_elvis_lhs == null ? toName_0($this$flatMapResponses.p4a_1) + $this$flatMapResponses.r4a_1.b3_1 : tmp1_elvis_lhs;
|
|
3270
3270
|
var tmp_0;
|
|
3271
3271
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
3272
3272
|
var tmp3_subject = get_primitiveType(schema);
|
|
3273
3273
|
var tmp_1;
|
|
3274
|
-
switch (tmp3_subject == null ? -1 : tmp3_subject.
|
|
3274
|
+
switch (tmp3_subject == null ? -1 : tmp3_subject.c3_1) {
|
|
3275
3275
|
case -1:
|
|
3276
3276
|
case 5:
|
|
3277
|
-
tmp_1 = flatten($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
3277
|
+
tmp_1 = flatten($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.t4a_1), 'ResponseBody']));
|
|
3278
3278
|
break;
|
|
3279
3279
|
case 4:
|
|
3280
|
-
var tmp4_safe_receiver = schema.
|
|
3280
|
+
var tmp4_safe_receiver = schema.g34();
|
|
3281
3281
|
var tmp_2;
|
|
3282
3282
|
if (tmp4_safe_receiver == null) {
|
|
3283
3283
|
tmp_2 = null;
|
|
3284
3284
|
} else {
|
|
3285
3285
|
// Inline function 'kotlin.let' call
|
|
3286
|
-
tmp_2 = flattenSchemaOrRef($this_parseResponseBody, tmp4_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
3286
|
+
tmp_2 = flattenSchemaOrRef($this_parseResponseBody, tmp4_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.t4a_1), 'ResponseBody']));
|
|
3287
3287
|
}
|
|
3288
3288
|
|
|
3289
3289
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -3317,7 +3317,7 @@ function emitComponents($this, _this__u8e3s4, logger) {
|
|
|
3317
3317
|
tmp = false;
|
|
3318
3318
|
}
|
|
3319
3319
|
if (tmp) {
|
|
3320
|
-
destination.
|
|
3320
|
+
destination.y(element);
|
|
3321
3321
|
}
|
|
3322
3322
|
}
|
|
3323
3323
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -3327,7 +3327,7 @@ function emitComponents($this, _this__u8e3s4, logger) {
|
|
|
3327
3327
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3328
3328
|
while (_iterator__ex2g4s_0.u()) {
|
|
3329
3329
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3330
|
-
var tmp_0 = element_0.
|
|
3330
|
+
var tmp_0 = element_0.xu().m1();
|
|
3331
3331
|
var tmp_1;
|
|
3332
3332
|
if (element_0 instanceof Enum) {
|
|
3333
3333
|
tmp_1 = emit_3(OpenAPIV3Emitter_getInstance(), element_0);
|
|
@@ -3358,10 +3358,10 @@ function emitComponents($this, _this__u8e3s4, logger) {
|
|
|
3358
3358
|
}
|
|
3359
3359
|
// Inline function 'kotlin.also' call
|
|
3360
3360
|
var this_0 = tmp_1;
|
|
3361
|
-
logger.
|
|
3361
|
+
logger.uu('Emitting ' + getKClassFromExpression(element_0).o() + ' ' + element_0.xu().m1());
|
|
3362
3362
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3363
3363
|
var pair = to(tmp_0, this_0);
|
|
3364
|
-
destination_0.
|
|
3364
|
+
destination_0.t2(pair.vf_1, pair.wf_1);
|
|
3365
3365
|
}
|
|
3366
3366
|
// Inline function 'kotlin.let' call
|
|
3367
3367
|
return new OpenAPIV30Components(destination_0);
|
|
@@ -3375,7 +3375,7 @@ function emitPaths_0($this, _this__u8e3s4, logger) {
|
|
|
3375
3375
|
while (_iterator__ex2g4s.u()) {
|
|
3376
3376
|
var element = _iterator__ex2g4s.v();
|
|
3377
3377
|
if (element instanceof Endpoint) {
|
|
3378
|
-
destination.
|
|
3378
|
+
destination.y(element);
|
|
3379
3379
|
}
|
|
3380
3380
|
}
|
|
3381
3381
|
// Inline function 'kotlin.collections.groupBy' call
|
|
@@ -3384,32 +3384,32 @@ function emitPaths_0($this, _this__u8e3s4, logger) {
|
|
|
3384
3384
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3385
3385
|
while (_iterator__ex2g4s_0.u()) {
|
|
3386
3386
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3387
|
-
var key = element_0.
|
|
3387
|
+
var key = element_0.ht_1;
|
|
3388
3388
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
3389
|
-
var value = destination_0.
|
|
3389
|
+
var value = destination_0.q2(key);
|
|
3390
3390
|
var tmp;
|
|
3391
3391
|
if (value == null) {
|
|
3392
3392
|
var answer = ArrayList_init_$Create$();
|
|
3393
|
-
destination_0.
|
|
3393
|
+
destination_0.t2(key, answer);
|
|
3394
3394
|
tmp = answer;
|
|
3395
3395
|
} else {
|
|
3396
3396
|
tmp = value;
|
|
3397
3397
|
}
|
|
3398
3398
|
var list = tmp;
|
|
3399
|
-
list.
|
|
3399
|
+
list.y(element_0);
|
|
3400
3400
|
}
|
|
3401
3401
|
// Inline function 'kotlin.collections.map' call
|
|
3402
3402
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3403
|
-
var destination_1 = ArrayList_init_$Create$_0(destination_0.
|
|
3403
|
+
var destination_1 = ArrayList_init_$Create$_0(destination_0.b1());
|
|
3404
3404
|
// Inline function 'kotlin.collections.iterator' call
|
|
3405
|
-
var _iterator__ex2g4s_1 = destination_0.
|
|
3405
|
+
var _iterator__ex2g4s_1 = destination_0.k1().t();
|
|
3406
3406
|
while (_iterator__ex2g4s_1.u()) {
|
|
3407
3407
|
var item = _iterator__ex2g4s_1.v();
|
|
3408
3408
|
// Inline function 'kotlin.collections.component1' call
|
|
3409
|
-
var path = item.
|
|
3409
|
+
var path = item.l1();
|
|
3410
3410
|
// Inline function 'kotlin.collections.component2' call
|
|
3411
|
-
var endpoints = item.
|
|
3412
|
-
logger.
|
|
3411
|
+
var endpoints = item.m1();
|
|
3412
|
+
logger.uu('Emitting endpoints for path ' + emitSegment_0(OpenAPIV3Emitter_getInstance(), path));
|
|
3413
3413
|
var tmp_0 = _Path___init__impl__6uf4pw(emitSegment_0(OpenAPIV3Emitter_getInstance(), path));
|
|
3414
3414
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3415
3415
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
@@ -3418,7 +3418,7 @@ function emitPaths_0($this, _this__u8e3s4, logger) {
|
|
|
3418
3418
|
while (_iterator__ex2g4s_2.u()) {
|
|
3419
3419
|
var element_1 = _iterator__ex2g4s_2.v();
|
|
3420
3420
|
if (element_1 instanceof Param) {
|
|
3421
|
-
destination_2.
|
|
3421
|
+
destination_2.y(element_1);
|
|
3422
3422
|
}
|
|
3423
3423
|
}
|
|
3424
3424
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3428,7 +3428,7 @@ function emitPaths_0($this, _this__u8e3s4, logger) {
|
|
|
3428
3428
|
while (_iterator__ex2g4s_3.u()) {
|
|
3429
3429
|
var item_0 = _iterator__ex2g4s_3.v();
|
|
3430
3430
|
var tmp$ret$12 = emitParameter_1(OpenAPIV3Emitter_getInstance(), item_0);
|
|
3431
|
-
destination_3.
|
|
3431
|
+
destination_3.y(tmp$ret$12);
|
|
3432
3432
|
}
|
|
3433
3433
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
3434
3434
|
var tmp_1;
|
|
@@ -3447,36 +3447,36 @@ function emitPaths_0($this, _this__u8e3s4, logger) {
|
|
|
3447
3447
|
var tmp7_trace = emit_5(OpenAPIV3Emitter_getInstance(), endpoints, Method_TRACE_getInstance());
|
|
3448
3448
|
var tmp8_head = emit_5(OpenAPIV3Emitter_getInstance(), endpoints, Method_HEAD_getInstance());
|
|
3449
3449
|
var tmp$ret$17 = to(new Path(tmp_0), new OpenAPIV30PathItem(tmp0_parameters, VOID, VOID, VOID, tmp1_get, tmp3_put, tmp2_post, tmp4_delete, tmp6_options, tmp8_head, tmp5_patch, tmp7_trace));
|
|
3450
|
-
destination_1.
|
|
3450
|
+
destination_1.y(tmp$ret$17);
|
|
3451
3451
|
}
|
|
3452
3452
|
return toMap(destination_1);
|
|
3453
3453
|
}
|
|
3454
3454
|
function emit_1($this, _this__u8e3s4) {
|
|
3455
|
-
var type = _this__u8e3s4.
|
|
3455
|
+
var type = _this__u8e3s4.ev_1.qy_1;
|
|
3456
3456
|
var tmp;
|
|
3457
3457
|
if (type instanceof Integer) {
|
|
3458
3458
|
var tmp4_type = asTypeDefinition($this, OpenAPIV30Type_INTEGER_getInstance());
|
|
3459
|
-
var tmp0_safe_receiver = type.
|
|
3460
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3459
|
+
var tmp0_safe_receiver = type.vx_1;
|
|
3460
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qx_1;
|
|
3461
3461
|
var tmp5_minimum = tmp1_safe_receiver == null ? null : toDouble(tmp1_safe_receiver);
|
|
3462
|
-
var tmp2_safe_receiver = type.
|
|
3463
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
3462
|
+
var tmp2_safe_receiver = type.vx_1;
|
|
3463
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.rx_1;
|
|
3464
3464
|
var tmp6_maximum = tmp3_safe_receiver == null ? null : toDouble(tmp3_safe_receiver);
|
|
3465
3465
|
tmp = new OpenAPIV30Schema(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, VOID, 'int32', tmp6_maximum, VOID, tmp5_minimum);
|
|
3466
3466
|
} else {
|
|
3467
3467
|
if (type instanceof Number_0) {
|
|
3468
3468
|
var tmp11_type = asTypeDefinition($this, OpenAPIV30Type_NUMBER_getInstance());
|
|
3469
|
-
var tmp7_safe_receiver = type.
|
|
3470
|
-
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.
|
|
3469
|
+
var tmp7_safe_receiver = type.yx_1;
|
|
3470
|
+
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.qx_1;
|
|
3471
3471
|
var tmp12_minimum = tmp8_safe_receiver == null ? null : toDouble(tmp8_safe_receiver);
|
|
3472
|
-
var tmp9_safe_receiver = type.
|
|
3473
|
-
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.
|
|
3472
|
+
var tmp9_safe_receiver = type.yx_1;
|
|
3473
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.rx_1;
|
|
3474
3474
|
var tmp13_maximum = tmp10_safe_receiver == null ? null : toDouble(tmp10_safe_receiver);
|
|
3475
3475
|
tmp = new OpenAPIV30Schema(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, VOID, 'float', tmp13_maximum, VOID, tmp12_minimum);
|
|
3476
3476
|
} else {
|
|
3477
3477
|
if (type instanceof String_0) {
|
|
3478
3478
|
var tmp_0 = asTypeDefinition($this, OpenAPIV30Type_STRING_getInstance());
|
|
3479
|
-
var tmp14_safe_receiver = type.
|
|
3479
|
+
var tmp14_safe_receiver = type.sx_1;
|
|
3480
3480
|
var tmp_1;
|
|
3481
3481
|
var tmp_2 = tmp14_safe_receiver;
|
|
3482
3482
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2)) == null) {
|
|
@@ -3504,10 +3504,10 @@ function asTypeDefinition($this, _this__u8e3s4) {
|
|
|
3504
3504
|
return new OpenAPIV30SingleType(_this__u8e3s4);
|
|
3505
3505
|
}
|
|
3506
3506
|
function emit_2($this, _this__u8e3s4) {
|
|
3507
|
-
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.
|
|
3507
|
+
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.vs_1);
|
|
3508
3508
|
var tmp;
|
|
3509
3509
|
if (tmp0_elvis_lhs == null) {
|
|
3510
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
3510
|
+
var tmp1_safe_receiver = _this__u8e3s4.us_1;
|
|
3511
3511
|
var tmp_0;
|
|
3512
3512
|
var tmp_1 = tmp1_safe_receiver;
|
|
3513
3513
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3521,7 +3521,7 @@ function emit_2($this, _this__u8e3s4) {
|
|
|
3521
3521
|
}
|
|
3522
3522
|
var tmp2_description = tmp;
|
|
3523
3523
|
// Inline function 'kotlin.collections.associate' call
|
|
3524
|
-
var this_0 = _this__u8e3s4.
|
|
3524
|
+
var this_0 = _this__u8e3s4.xs_1.ts_1;
|
|
3525
3525
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
3526
3526
|
// Inline function 'kotlin.collections.associateTo' call
|
|
3527
3527
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -3530,17 +3530,17 @@ function emit_2($this, _this__u8e3s4) {
|
|
|
3530
3530
|
var element = _iterator__ex2g4s.v();
|
|
3531
3531
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3532
3532
|
var pair = emitSchema(OpenAPIV3Emitter_getInstance(), element);
|
|
3533
|
-
destination.
|
|
3533
|
+
destination.t2(pair.vf_1, pair.wf_1);
|
|
3534
3534
|
}
|
|
3535
3535
|
// Inline function 'kotlin.collections.filter' call
|
|
3536
|
-
var tmp0 = _this__u8e3s4.
|
|
3536
|
+
var tmp0 = _this__u8e3s4.xs_1.ts_1;
|
|
3537
3537
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3538
3538
|
var destination_0 = ArrayList_init_$Create$();
|
|
3539
3539
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
3540
3540
|
while (_iterator__ex2g4s_0.u()) {
|
|
3541
3541
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3542
|
-
if (!element_0.
|
|
3543
|
-
destination_0.
|
|
3542
|
+
if (!element_0.ct_1.ey()) {
|
|
3543
|
+
destination_0.y(element_0);
|
|
3544
3544
|
}
|
|
3545
3545
|
}
|
|
3546
3546
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3549,8 +3549,8 @@ function emit_2($this, _this__u8e3s4) {
|
|
|
3549
3549
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
3550
3550
|
while (_iterator__ex2g4s_1.u()) {
|
|
3551
3551
|
var item = _iterator__ex2g4s_1.v();
|
|
3552
|
-
var tmp$ret$7 = item.
|
|
3553
|
-
destination_1.
|
|
3552
|
+
var tmp$ret$7 = item.bt_1.m1();
|
|
3553
|
+
destination_1.y(tmp$ret$7);
|
|
3554
3554
|
}
|
|
3555
3555
|
// Inline function 'kotlin.takeIf' call
|
|
3556
3556
|
var tmp_2;
|
|
@@ -3564,10 +3564,10 @@ function emit_2($this, _this__u8e3s4) {
|
|
|
3564
3564
|
return new OpenAPIV30Schema(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);
|
|
3565
3565
|
}
|
|
3566
3566
|
function emit_3($this, _this__u8e3s4) {
|
|
3567
|
-
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.
|
|
3567
|
+
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.hv_1);
|
|
3568
3568
|
var tmp;
|
|
3569
3569
|
if (tmp0_elvis_lhs == null) {
|
|
3570
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
3570
|
+
var tmp1_safe_receiver = _this__u8e3s4.gv_1;
|
|
3571
3571
|
var tmp_0;
|
|
3572
3572
|
var tmp_1 = tmp1_safe_receiver;
|
|
3573
3573
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3582,22 +3582,22 @@ function emit_3($this, _this__u8e3s4) {
|
|
|
3582
3582
|
var tmp2_description = tmp;
|
|
3583
3583
|
var tmp3_type = asTypeDefinition($this, OpenAPIV30Type_STRING_getInstance());
|
|
3584
3584
|
// Inline function 'kotlin.collections.map' call
|
|
3585
|
-
var this_0 = _this__u8e3s4.
|
|
3585
|
+
var this_0 = _this__u8e3s4.jv_1;
|
|
3586
3586
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3587
3587
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3588
3588
|
var _iterator__ex2g4s = this_0.t();
|
|
3589
3589
|
while (_iterator__ex2g4s.u()) {
|
|
3590
3590
|
var item = _iterator__ex2g4s.v();
|
|
3591
3591
|
var tmp$ret$0 = JsonPrimitive(item);
|
|
3592
|
-
destination.
|
|
3592
|
+
destination.y(tmp$ret$0);
|
|
3593
3593
|
}
|
|
3594
3594
|
return new OpenAPIV30Schema(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_type, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_description, VOID, VOID, VOID, VOID, VOID, VOID, destination);
|
|
3595
3595
|
}
|
|
3596
3596
|
function emit_4($this, _this__u8e3s4) {
|
|
3597
|
-
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.
|
|
3597
|
+
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.qs_1);
|
|
3598
3598
|
var tmp;
|
|
3599
3599
|
if (tmp0_elvis_lhs == null) {
|
|
3600
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
3600
|
+
var tmp1_safe_receiver = _this__u8e3s4.ps_1;
|
|
3601
3601
|
var tmp_0;
|
|
3602
3602
|
var tmp_1 = tmp1_safe_receiver;
|
|
3603
3603
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3612,14 +3612,14 @@ function emit_4($this, _this__u8e3s4) {
|
|
|
3612
3612
|
var tmp2_description = tmp;
|
|
3613
3613
|
var tmp3_type = asTypeDefinition($this, OpenAPIV30Type_STRING_getInstance());
|
|
3614
3614
|
// Inline function 'kotlin.collections.map' call
|
|
3615
|
-
var this_0 = _this__u8e3s4.
|
|
3615
|
+
var this_0 = _this__u8e3s4.ss_1;
|
|
3616
3616
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3617
3617
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3618
3618
|
var _iterator__ex2g4s = this_0.t();
|
|
3619
3619
|
while (_iterator__ex2g4s.u()) {
|
|
3620
3620
|
var item = _iterator__ex2g4s.v();
|
|
3621
3621
|
var tmp$ret$0 = emitSchema_0(OpenAPIV3Emitter_getInstance(), item);
|
|
3622
|
-
destination.
|
|
3622
|
+
destination.y(tmp$ret$0);
|
|
3623
3623
|
}
|
|
3624
3624
|
return new OpenAPIV30Schema(VOID, VOID, VOID, destination, VOID, VOID, VOID, tmp3_type, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_description);
|
|
3625
3625
|
}
|
|
@@ -3630,8 +3630,8 @@ function emit_5($this, _this__u8e3s4, method) {
|
|
|
3630
3630
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
3631
3631
|
while (_iterator__ex2g4s.u()) {
|
|
3632
3632
|
var element = _iterator__ex2g4s.v();
|
|
3633
|
-
if (element.
|
|
3634
|
-
destination.
|
|
3633
|
+
if (element.gt_1.equals(method)) {
|
|
3634
|
+
destination.y(element);
|
|
3635
3635
|
}
|
|
3636
3636
|
}
|
|
3637
3637
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3641,16 +3641,16 @@ function emit_5($this, _this__u8e3s4, method) {
|
|
|
3641
3641
|
while (_iterator__ex2g4s_0.u()) {
|
|
3642
3642
|
var item = _iterator__ex2g4s_0.v();
|
|
3643
3643
|
var tmp$ret$3 = emit_6(OpenAPIV3Emitter_getInstance(), item);
|
|
3644
|
-
destination_0.
|
|
3644
|
+
destination_0.y(tmp$ret$3);
|
|
3645
3645
|
}
|
|
3646
3646
|
return firstOrNull(destination_0);
|
|
3647
3647
|
}
|
|
3648
3648
|
function emit_6($this, _this__u8e3s4) {
|
|
3649
|
-
var tmp3_operationId = _this__u8e3s4.
|
|
3650
|
-
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.
|
|
3649
|
+
var tmp3_operationId = _this__u8e3s4.ft_1.m1();
|
|
3650
|
+
var tmp0_elvis_lhs = findDescription(_this__u8e3s4.et_1);
|
|
3651
3651
|
var tmp;
|
|
3652
3652
|
if (tmp0_elvis_lhs == null) {
|
|
3653
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
3653
|
+
var tmp1_safe_receiver = _this__u8e3s4.dt_1;
|
|
3654
3654
|
var tmp_0;
|
|
3655
3655
|
var tmp_1 = tmp1_safe_receiver;
|
|
3656
3656
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3664,14 +3664,14 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3664
3664
|
}
|
|
3665
3665
|
var tmp4_description = tmp;
|
|
3666
3666
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3667
|
-
var tmp0 = _this__u8e3s4.
|
|
3667
|
+
var tmp0 = _this__u8e3s4.ht_1;
|
|
3668
3668
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
3669
3669
|
var destination = ArrayList_init_$Create$();
|
|
3670
3670
|
var _iterator__ex2g4s = tmp0.t();
|
|
3671
3671
|
while (_iterator__ex2g4s.u()) {
|
|
3672
3672
|
var element = _iterator__ex2g4s.v();
|
|
3673
3673
|
if (element instanceof Param) {
|
|
3674
|
-
destination.
|
|
3674
|
+
destination.y(element);
|
|
3675
3675
|
}
|
|
3676
3676
|
}
|
|
3677
3677
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3681,46 +3681,46 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3681
3681
|
while (_iterator__ex2g4s_0.u()) {
|
|
3682
3682
|
var item = _iterator__ex2g4s_0.v();
|
|
3683
3683
|
var tmp$ret$2 = emitParameter_1(OpenAPIV3Emitter_getInstance(), item);
|
|
3684
|
-
destination_0.
|
|
3684
|
+
destination_0.y(tmp$ret$2);
|
|
3685
3685
|
}
|
|
3686
3686
|
var tmp_2 = destination_0;
|
|
3687
3687
|
// Inline function 'kotlin.collections.map' call
|
|
3688
|
-
var this_0 = _this__u8e3s4.
|
|
3688
|
+
var this_0 = _this__u8e3s4.it_1;
|
|
3689
3689
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3690
3690
|
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3691
3691
|
var _iterator__ex2g4s_1 = this_0.t();
|
|
3692
3692
|
while (_iterator__ex2g4s_1.u()) {
|
|
3693
3693
|
var item_0 = _iterator__ex2g4s_1.v();
|
|
3694
3694
|
var tmp$ret$5 = emitParameter_0(OpenAPIV3Emitter_getInstance(), item_0, OpenAPIV30ParameterLocation_QUERY_getInstance());
|
|
3695
|
-
destination_1.
|
|
3695
|
+
destination_1.y(tmp$ret$5);
|
|
3696
3696
|
}
|
|
3697
3697
|
var tmp_3 = plus_0(tmp_2, destination_1);
|
|
3698
3698
|
// Inline function 'kotlin.collections.map' call
|
|
3699
|
-
var this_1 = _this__u8e3s4.
|
|
3699
|
+
var this_1 = _this__u8e3s4.jt_1;
|
|
3700
3700
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3701
3701
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
3702
3702
|
var _iterator__ex2g4s_2 = this_1.t();
|
|
3703
3703
|
while (_iterator__ex2g4s_2.u()) {
|
|
3704
3704
|
var item_1 = _iterator__ex2g4s_2.v();
|
|
3705
3705
|
var tmp$ret$8 = emitParameter_0(OpenAPIV3Emitter_getInstance(), item_1, OpenAPIV30ParameterLocation_HEADER_getInstance());
|
|
3706
|
-
destination_2.
|
|
3706
|
+
destination_2.y(tmp$ret$8);
|
|
3707
3707
|
}
|
|
3708
3708
|
var tmp5_parameters = plus_0(tmp_3, destination_2);
|
|
3709
3709
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3710
|
-
var tmp0_0 = _this__u8e3s4.
|
|
3710
|
+
var tmp0_0 = _this__u8e3s4.kt_1;
|
|
3711
3711
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3712
3712
|
var destination_3 = ArrayList_init_$Create$();
|
|
3713
3713
|
// Inline function 'kotlin.collections.forEach' call
|
|
3714
3714
|
var _iterator__ex2g4s_3 = tmp0_0.t();
|
|
3715
3715
|
while (_iterator__ex2g4s_3.u()) {
|
|
3716
3716
|
var element_0 = _iterator__ex2g4s_3.v();
|
|
3717
|
-
var tmp0_safe_receiver = element_0.
|
|
3717
|
+
var tmp0_safe_receiver = element_0.ot_1;
|
|
3718
3718
|
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : emit_7(OpenAPIV3Emitter_getInstance(), tmp0_safe_receiver);
|
|
3719
3719
|
if (tmp0_safe_receiver_0 == null)
|
|
3720
3720
|
null;
|
|
3721
3721
|
else {
|
|
3722
3722
|
// Inline function 'kotlin.let' call
|
|
3723
|
-
destination_3.
|
|
3723
|
+
destination_3.y(tmp0_safe_receiver_0);
|
|
3724
3724
|
}
|
|
3725
3725
|
}
|
|
3726
3726
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -3738,7 +3738,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3738
3738
|
tmp_5 = null;
|
|
3739
3739
|
} else {
|
|
3740
3740
|
// Inline function 'kotlin.let' call
|
|
3741
|
-
var tmp0_1 = _this__u8e3s4.
|
|
3741
|
+
var tmp0_1 = _this__u8e3s4.kt_1;
|
|
3742
3742
|
var tmp$ret$21;
|
|
3743
3743
|
$l$block_0: {
|
|
3744
3744
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -3755,9 +3755,9 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3755
3755
|
var _iterator__ex2g4s_4 = tmp0_1.t();
|
|
3756
3756
|
while (_iterator__ex2g4s_4.u()) {
|
|
3757
3757
|
var element_1 = _iterator__ex2g4s_4.v();
|
|
3758
|
-
var tmp0_safe_receiver_1 = element_1.
|
|
3759
|
-
var tmp1_safe_receiver_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.
|
|
3760
|
-
if ((tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
3758
|
+
var tmp0_safe_receiver_1 = element_1.ot_1;
|
|
3759
|
+
var tmp1_safe_receiver_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.qt_1;
|
|
3760
|
+
if ((tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.ey()) === true) {
|
|
3761
3761
|
tmp$ret$21 = true;
|
|
3762
3762
|
break $l$block_0;
|
|
3763
3763
|
}
|
|
@@ -3768,37 +3768,37 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3768
3768
|
}
|
|
3769
3769
|
var tmp6_requestBody = tmp_5;
|
|
3770
3770
|
// Inline function 'kotlin.collections.groupBy' call
|
|
3771
|
-
var tmp0_2 = _this__u8e3s4.
|
|
3771
|
+
var tmp0_2 = _this__u8e3s4.lt_1;
|
|
3772
3772
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
3773
3773
|
var destination_4 = LinkedHashMap_init_$Create$_0();
|
|
3774
3774
|
var _iterator__ex2g4s_5 = tmp0_2.t();
|
|
3775
3775
|
while (_iterator__ex2g4s_5.u()) {
|
|
3776
3776
|
var element_2 = _iterator__ex2g4s_5.v();
|
|
3777
|
-
var key = element_2.
|
|
3777
|
+
var key = element_2.rt_1;
|
|
3778
3778
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
3779
|
-
var value = destination_4.
|
|
3779
|
+
var value = destination_4.q2(key);
|
|
3780
3780
|
var tmp_7;
|
|
3781
3781
|
if (value == null) {
|
|
3782
3782
|
var answer = ArrayList_init_$Create$();
|
|
3783
|
-
destination_4.
|
|
3783
|
+
destination_4.t2(key, answer);
|
|
3784
3784
|
tmp_7 = answer;
|
|
3785
3785
|
} else {
|
|
3786
3786
|
tmp_7 = value;
|
|
3787
3787
|
}
|
|
3788
3788
|
var list = tmp_7;
|
|
3789
|
-
list.
|
|
3789
|
+
list.y(element_2);
|
|
3790
3790
|
}
|
|
3791
3791
|
// Inline function 'kotlin.collections.map' call
|
|
3792
3792
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3793
|
-
var destination_5 = ArrayList_init_$Create$_0(destination_4.
|
|
3793
|
+
var destination_5 = ArrayList_init_$Create$_0(destination_4.b1());
|
|
3794
3794
|
// Inline function 'kotlin.collections.iterator' call
|
|
3795
|
-
var _iterator__ex2g4s_6 = destination_4.
|
|
3795
|
+
var _iterator__ex2g4s_6 = destination_4.k1().t();
|
|
3796
3796
|
while (_iterator__ex2g4s_6.u()) {
|
|
3797
3797
|
var item_2 = _iterator__ex2g4s_6.v();
|
|
3798
3798
|
// Inline function 'kotlin.collections.component1' call
|
|
3799
|
-
var statusCode = item_2.
|
|
3799
|
+
var statusCode = item_2.l1();
|
|
3800
3800
|
// Inline function 'kotlin.collections.component2' call
|
|
3801
|
-
var res = item_2.
|
|
3801
|
+
var res = item_2.m1();
|
|
3802
3802
|
var tmp_8 = _StatusCode___init__impl__t1yi9q(statusCode);
|
|
3803
3803
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3804
3804
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -3806,7 +3806,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3806
3806
|
var _iterator__ex2g4s_7 = res.t();
|
|
3807
3807
|
while (_iterator__ex2g4s_7.u()) {
|
|
3808
3808
|
var element_3 = _iterator__ex2g4s_7.v();
|
|
3809
|
-
var list_0 = element_3.
|
|
3809
|
+
var list_0 = element_3.st_1;
|
|
3810
3810
|
addAll(destination_6, list_0);
|
|
3811
3811
|
}
|
|
3812
3812
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -3818,10 +3818,10 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3818
3818
|
var element_4 = _iterator__ex2g4s_8.v();
|
|
3819
3819
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3820
3820
|
var pair = emitHeader(OpenAPIV3Emitter_getInstance(), element_4);
|
|
3821
|
-
destination_7.
|
|
3821
|
+
destination_7.t2(pair.vf_1, pair.wf_1);
|
|
3822
3822
|
}
|
|
3823
|
-
var tmp0_elvis_lhs_0 = findDescription(first(res).
|
|
3824
|
-
var tmp2_description = tmp0_elvis_lhs_0 == null ? _this__u8e3s4.
|
|
3823
|
+
var tmp0_elvis_lhs_0 = findDescription(first(res).ut_1);
|
|
3824
|
+
var tmp2_description = tmp0_elvis_lhs_0 == null ? _this__u8e3s4.ft_1.m1() + ' ' + statusCode + ' response' : tmp0_elvis_lhs_0;
|
|
3825
3825
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3826
3826
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3827
3827
|
var destination_8 = ArrayList_init_$Create$();
|
|
@@ -3829,12 +3829,12 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3829
3829
|
var _iterator__ex2g4s_9 = res.t();
|
|
3830
3830
|
while (_iterator__ex2g4s_9.u()) {
|
|
3831
3831
|
var element_5 = _iterator__ex2g4s_9.v();
|
|
3832
|
-
var tmp0_safe_receiver_2 = element_5.
|
|
3832
|
+
var tmp0_safe_receiver_2 = element_5.tt_1;
|
|
3833
3833
|
if (tmp0_safe_receiver_2 == null)
|
|
3834
3834
|
null;
|
|
3835
3835
|
else {
|
|
3836
3836
|
// Inline function 'kotlin.let' call
|
|
3837
|
-
destination_8.
|
|
3837
|
+
destination_8.y(tmp0_safe_receiver_2);
|
|
3838
3838
|
}
|
|
3839
3839
|
}
|
|
3840
3840
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -3846,7 +3846,7 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3846
3846
|
var element_6 = _iterator__ex2g4s_10.v();
|
|
3847
3847
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3848
3848
|
var pair_0 = emit_7(OpenAPIV3Emitter_getInstance(), element_6);
|
|
3849
|
-
destination_9.
|
|
3849
|
+
destination_9.t2(pair_0.vf_1, pair_0.wf_1);
|
|
3850
3850
|
}
|
|
3851
3851
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
3852
3852
|
var tmp_9;
|
|
@@ -3863,12 +3863,12 @@ function emit_6($this, _this__u8e3s4) {
|
|
|
3863
3863
|
var _iterator__ex2g4s_11 = res.t();
|
|
3864
3864
|
while (_iterator__ex2g4s_11.u()) {
|
|
3865
3865
|
var element_7 = _iterator__ex2g4s_11.v();
|
|
3866
|
-
var list_1 = findLinks(element_7.
|
|
3866
|
+
var list_1 = findLinks(element_7.ut_1);
|
|
3867
3867
|
addAll(destination_10, list_1);
|
|
3868
3868
|
}
|
|
3869
3869
|
var tmp4_links = toOpenAPIV30Links(tmp_10, destination_10);
|
|
3870
3870
|
var tmp$ret$56 = to(new StatusCode(tmp_8), new OpenAPIV30Response(tmp3_content, tmp2_description, destination_7, tmp4_links));
|
|
3871
|
-
destination_5.
|
|
3871
|
+
destination_5.y(tmp$ret$56);
|
|
3872
3872
|
}
|
|
3873
3873
|
var tmp7_responses = toMap(destination_5);
|
|
3874
3874
|
return new OpenAPIV30Operation(tmp5_parameters, tmp6_requestBody, tmp7_responses, VOID, VOID, VOID, tmp4_description, VOID, tmp3_operationId);
|
|
@@ -3881,18 +3881,18 @@ function toOpenAPIV30Links($this, _this__u8e3s4) {
|
|
|
3881
3881
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
3882
3882
|
while (_iterator__ex2g4s.u()) {
|
|
3883
3883
|
var element = _iterator__ex2g4s.v();
|
|
3884
|
-
var tmp2 = element.
|
|
3884
|
+
var tmp2 = element.v4a_1;
|
|
3885
3885
|
// Inline function 'kotlin.collections.mapValues' call
|
|
3886
|
-
var this_0 = element.
|
|
3886
|
+
var this_0 = element.y4a_1;
|
|
3887
3887
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
3888
|
-
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.
|
|
3888
|
+
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.b1()));
|
|
3889
3889
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3890
|
-
var _iterator__ex2g4s_0 = this_0.
|
|
3890
|
+
var _iterator__ex2g4s_0 = this_0.k1().t();
|
|
3891
3891
|
while (_iterator__ex2g4s_0.u()) {
|
|
3892
3892
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3893
|
-
var tmp = element_0.
|
|
3894
|
-
var tmp$ret$1 = JsonPrimitive(element_0.
|
|
3895
|
-
destination.
|
|
3893
|
+
var tmp = element_0.l1();
|
|
3894
|
+
var tmp$ret$1 = JsonPrimitive(element_0.m1());
|
|
3895
|
+
destination.t2(tmp, tmp$ret$1);
|
|
3896
3896
|
}
|
|
3897
3897
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
3898
3898
|
var tmp_0;
|
|
@@ -3902,7 +3902,7 @@ function toOpenAPIV30Links($this, _this__u8e3s4) {
|
|
|
3902
3902
|
tmp_0 = destination;
|
|
3903
3903
|
}
|
|
3904
3904
|
var tmp_1 = tmp_0;
|
|
3905
|
-
var tmp0_safe_receiver = element.
|
|
3905
|
+
var tmp0_safe_receiver = element.z4a_1;
|
|
3906
3906
|
var tmp_2;
|
|
3907
3907
|
if (tmp0_safe_receiver == null) {
|
|
3908
3908
|
tmp_2 = null;
|
|
@@ -3911,38 +3911,38 @@ function toOpenAPIV30Links($this, _this__u8e3s4) {
|
|
|
3911
3911
|
tmp_2 = JsonPrimitive(tmp0_safe_receiver);
|
|
3912
3912
|
}
|
|
3913
3913
|
// Inline function 'kotlin.collections.set' call
|
|
3914
|
-
var value = new OpenAPIV30Link(element.
|
|
3915
|
-
byName.
|
|
3914
|
+
var value = new OpenAPIV30Link(element.x4a_1, element.w4a_1, tmp_1, tmp_2, element.a4b_1);
|
|
3915
|
+
byName.t2(tmp2, value);
|
|
3916
3916
|
}
|
|
3917
|
-
return new OpenAPIV30Links(toSet(byName.
|
|
3917
|
+
return new OpenAPIV30Links(toSet(byName.k1()));
|
|
3918
3918
|
}
|
|
3919
3919
|
function emitSegment_0($this, _this__u8e3s4) {
|
|
3920
3920
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenAPIV3Emitter$emitSegment$lambda);
|
|
3921
3921
|
}
|
|
3922
3922
|
function emitParameter_0($this, _this__u8e3s4, location) {
|
|
3923
|
-
var tmp0_name = _this__u8e3s4.
|
|
3924
|
-
var tmp1_schema = emitSchema_0($this, _this__u8e3s4.
|
|
3925
|
-
var tmp2_description = findDescription(_this__u8e3s4.
|
|
3926
|
-
var tmp3_required = !_this__u8e3s4.
|
|
3923
|
+
var tmp0_name = _this__u8e3s4.bt_1.m1();
|
|
3924
|
+
var tmp1_schema = emitSchema_0($this, _this__u8e3s4.ct_1);
|
|
3925
|
+
var tmp2_description = findDescription(_this__u8e3s4.at_1);
|
|
3926
|
+
var tmp3_required = !_this__u8e3s4.ct_1.ey();
|
|
3927
3927
|
return new OpenAPIV30Parameter(tmp2_description, tmp3_required, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, location, tmp1_schema, tmp0_name);
|
|
3928
3928
|
}
|
|
3929
3929
|
function emitParameter_1($this, _this__u8e3s4) {
|
|
3930
3930
|
var tmp0_in = OpenAPIV30ParameterLocation_PATH_getInstance();
|
|
3931
|
-
var tmp1_name = _this__u8e3s4.
|
|
3932
|
-
var tmp2_schema = emitSchema_0($this, _this__u8e3s4.
|
|
3933
|
-
var tmp3_required = !_this__u8e3s4.
|
|
3931
|
+
var tmp1_name = _this__u8e3s4.mt_1.m1();
|
|
3932
|
+
var tmp2_schema = emitSchema_0($this, _this__u8e3s4.nt_1);
|
|
3933
|
+
var tmp3_required = !_this__u8e3s4.nt_1.ey();
|
|
3934
3934
|
return new OpenAPIV30Parameter(VOID, tmp3_required, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_in, tmp2_schema, tmp1_name);
|
|
3935
3935
|
}
|
|
3936
3936
|
function emitHeader($this, _this__u8e3s4) {
|
|
3937
|
-
return to(_this__u8e3s4.
|
|
3937
|
+
return to(_this__u8e3s4.bt_1.m1(), emitHeader_0($this, _this__u8e3s4.ct_1, findDescription(_this__u8e3s4.at_1)));
|
|
3938
3938
|
}
|
|
3939
3939
|
function emitSchema($this, _this__u8e3s4) {
|
|
3940
|
-
var tmp = _this__u8e3s4.
|
|
3940
|
+
var tmp = _this__u8e3s4.bt_1.m1();
|
|
3941
3941
|
// Inline function 'kotlin.let' call
|
|
3942
|
-
var it = emitSchema_0($this, _this__u8e3s4.
|
|
3942
|
+
var it = emitSchema_0($this, _this__u8e3s4.ct_1);
|
|
3943
3943
|
var tmp_0;
|
|
3944
3944
|
if (it instanceof OpenAPIV30Schema) {
|
|
3945
|
-
tmp_0 = it.
|
|
3945
|
+
tmp_0 = it.k3j(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription(_this__u8e3s4.at_1));
|
|
3946
3946
|
} else {
|
|
3947
3947
|
if (it instanceof OpenAPIV30Reference) {
|
|
3948
3948
|
tmp_0 = it;
|
|
@@ -3956,13 +3956,13 @@ function emitSchema($this, _this__u8e3s4) {
|
|
|
3956
3956
|
function emitHeader_0($this, _this__u8e3s4, description) {
|
|
3957
3957
|
var tmp;
|
|
3958
3958
|
if (_this__u8e3s4 instanceof Dict) {
|
|
3959
|
-
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + _this__u8e3s4.
|
|
3959
|
+
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + _this__u8e3s4.fs_1));
|
|
3960
3960
|
} else {
|
|
3961
3961
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
3962
|
-
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + _this__u8e3s4.
|
|
3962
|
+
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + _this__u8e3s4.cs_1));
|
|
3963
3963
|
} else {
|
|
3964
3964
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3965
|
-
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + _this__u8e3s4.
|
|
3965
|
+
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + _this__u8e3s4.my_1));
|
|
3966
3966
|
} else {
|
|
3967
3967
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3968
3968
|
var tmp1_schema = emitSchema_0($this, _this__u8e3s4);
|
|
@@ -3988,19 +3988,19 @@ function emitHeader_0($this, _this__u8e3s4, description) {
|
|
|
3988
3988
|
function emitSchema_0($this, _this__u8e3s4) {
|
|
3989
3989
|
var tmp;
|
|
3990
3990
|
if (_this__u8e3s4 instanceof Dict) {
|
|
3991
|
-
var tmp_0 = _this__u8e3s4.
|
|
3991
|
+
var tmp_0 = _this__u8e3s4.ds_1.ey();
|
|
3992
3992
|
var tmp_1 = asTypeDefinition($this, OpenAPIV30Type_OBJECT_getInstance());
|
|
3993
|
-
var tmp_2 = emitSchema_0($this, _this__u8e3s4.
|
|
3993
|
+
var tmp_2 = emitSchema_0($this, _this__u8e3s4.ds_1);
|
|
3994
3994
|
tmp = new OpenAPIV30Schema(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, OpenAPIV30SchemaOrReferenceOrBoolean) ? tmp_2 : THROW_CCE());
|
|
3995
3995
|
} else {
|
|
3996
3996
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
3997
|
-
tmp = new OpenAPIV30Schema(_this__u8e3s4.
|
|
3997
|
+
tmp = new OpenAPIV30Schema(_this__u8e3s4.as_1.ey(), VOID, VOID, VOID, VOID, VOID, VOID, asTypeDefinition($this, OpenAPIV30Type_ARRAY_getInstance()), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitSchema_0($this, _this__u8e3s4.as_1));
|
|
3998
3998
|
} else {
|
|
3999
3999
|
if (_this__u8e3s4 instanceof Custom) {
|
|
4000
|
-
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/schemas/' + _this__u8e3s4.
|
|
4000
|
+
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/schemas/' + _this__u8e3s4.my_1));
|
|
4001
4001
|
} else {
|
|
4002
4002
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
4003
|
-
var tmp1_type = asTypeDefinition($this, emitType_1($this, _this__u8e3s4.
|
|
4003
|
+
var tmp1_type = asTypeDefinition($this, emitType_1($this, _this__u8e3s4.qy_1));
|
|
4004
4004
|
var tmp2_format = emitFormat(_this__u8e3s4);
|
|
4005
4005
|
var tmp3_pattern = emitPattern_0($this, _this__u8e3s4);
|
|
4006
4006
|
var tmp4_minimum = emitMinimum_0($this, _this__u8e3s4);
|
|
@@ -4050,15 +4050,15 @@ function emitType_1($this, _this__u8e3s4) {
|
|
|
4050
4050
|
return tmp;
|
|
4051
4051
|
}
|
|
4052
4052
|
function emit_7($this, _this__u8e3s4) {
|
|
4053
|
-
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.
|
|
4053
|
+
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.pt_1)), new OpenAPIV30MediaType(emitSchema_0($this, _this__u8e3s4.qt_1)));
|
|
4054
4054
|
}
|
|
4055
4055
|
function emitPattern_0($this, _this__u8e3s4) {
|
|
4056
4056
|
var tmp;
|
|
4057
4057
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
4058
|
-
var t = _this__u8e3s4.
|
|
4058
|
+
var t = _this__u8e3s4.qy_1;
|
|
4059
4059
|
var tmp_0;
|
|
4060
4060
|
if (t instanceof String_0) {
|
|
4061
|
-
var p = t.
|
|
4061
|
+
var p = t.sx_1;
|
|
4062
4062
|
var tmp_1;
|
|
4063
4063
|
var tmp_2 = p;
|
|
4064
4064
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2))instanceof RegExp_0) {
|
|
@@ -4079,16 +4079,16 @@ function emitPattern_0($this, _this__u8e3s4) {
|
|
|
4079
4079
|
function emitMinimum_0($this, _this__u8e3s4) {
|
|
4080
4080
|
var tmp;
|
|
4081
4081
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
4082
|
-
var t = _this__u8e3s4.
|
|
4082
|
+
var t = _this__u8e3s4.qy_1;
|
|
4083
4083
|
var tmp_0;
|
|
4084
4084
|
if (t instanceof Number_0) {
|
|
4085
|
-
var tmp1_safe_receiver = t.
|
|
4086
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4085
|
+
var tmp1_safe_receiver = t.yx_1;
|
|
4086
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.qx_1;
|
|
4087
4087
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
4088
4088
|
} else {
|
|
4089
4089
|
if (t instanceof Integer) {
|
|
4090
|
-
var tmp3_safe_receiver = t.
|
|
4091
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
4090
|
+
var tmp3_safe_receiver = t.vx_1;
|
|
4091
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.qx_1;
|
|
4092
4092
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
4093
4093
|
} else {
|
|
4094
4094
|
tmp_0 = null;
|
|
@@ -4103,16 +4103,16 @@ function emitMinimum_0($this, _this__u8e3s4) {
|
|
|
4103
4103
|
function emitMaximum_0($this, _this__u8e3s4) {
|
|
4104
4104
|
var tmp;
|
|
4105
4105
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
4106
|
-
var t = _this__u8e3s4.
|
|
4106
|
+
var t = _this__u8e3s4.qy_1;
|
|
4107
4107
|
var tmp_0;
|
|
4108
4108
|
if (t instanceof Number_0) {
|
|
4109
|
-
var tmp1_safe_receiver = t.
|
|
4110
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4109
|
+
var tmp1_safe_receiver = t.yx_1;
|
|
4110
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.rx_1;
|
|
4111
4111
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
4112
4112
|
} else {
|
|
4113
4113
|
if (t instanceof Integer) {
|
|
4114
|
-
var tmp3_safe_receiver = t.
|
|
4115
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
4114
|
+
var tmp3_safe_receiver = t.vx_1;
|
|
4115
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.rx_1;
|
|
4116
4116
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
4117
4117
|
} else {
|
|
4118
4118
|
tmp_0 = null;
|
|
@@ -4127,10 +4127,10 @@ function emitMaximum_0($this, _this__u8e3s4) {
|
|
|
4127
4127
|
function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
4128
4128
|
var tmp;
|
|
4129
4129
|
if (it instanceof Param) {
|
|
4130
|
-
tmp = '{' + it.
|
|
4130
|
+
tmp = '{' + it.mt_1.m1() + '}';
|
|
4131
4131
|
} else {
|
|
4132
4132
|
if (it instanceof Literal) {
|
|
4133
|
-
tmp = it.
|
|
4133
|
+
tmp = it.iu_1;
|
|
4134
4134
|
} else {
|
|
4135
4135
|
noWhenBranchMatchedException();
|
|
4136
4136
|
}
|
|
@@ -4139,14 +4139,14 @@ function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
|
4139
4139
|
}
|
|
4140
4140
|
function OpenAPIV3Emitter() {
|
|
4141
4141
|
OpenAPIV3Emitter_instance = this;
|
|
4142
|
-
this.
|
|
4142
|
+
this.g4b_1 = FileExtension_JSON_getInstance();
|
|
4143
4143
|
}
|
|
4144
|
-
protoOf(OpenAPIV3Emitter).
|
|
4145
|
-
return this.
|
|
4144
|
+
protoOf(OpenAPIV3Emitter).fu = function () {
|
|
4145
|
+
return this.g4b_1;
|
|
4146
4146
|
};
|
|
4147
|
-
protoOf(OpenAPIV3Emitter).
|
|
4147
|
+
protoOf(OpenAPIV3Emitter).pr = function (ast, logger) {
|
|
4148
4148
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
4149
|
-
var this_0 = ast.
|
|
4149
|
+
var this_0 = ast.cu_1;
|
|
4150
4150
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4151
4151
|
var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
4152
4152
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -4154,30 +4154,30 @@ protoOf(OpenAPIV3Emitter).eo = function (ast, logger) {
|
|
|
4154
4154
|
var _iterator__ex2g4s = tmp0.t();
|
|
4155
4155
|
while (_iterator__ex2g4s.u()) {
|
|
4156
4156
|
var element = _iterator__ex2g4s.v();
|
|
4157
|
-
logger.
|
|
4158
|
-
var list = new NonEmptyList(element.
|
|
4157
|
+
logger.uu('Combining Nodes from ' + element.du_1.er_1 + ' ');
|
|
4158
|
+
var list = new NonEmptyList(element.eu_1);
|
|
4159
4159
|
addAll(destination, list);
|
|
4160
4160
|
}
|
|
4161
4161
|
// Inline function 'kotlin.let' call
|
|
4162
4162
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
4163
|
-
var tmp = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().
|
|
4163
|
+
var tmp = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().g4b_1.ou_1;
|
|
4164
4164
|
var tmp0_0 = get_json();
|
|
4165
4165
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
4166
|
-
var value = OpenAPIV3Emitter_getInstance().
|
|
4166
|
+
var value = OpenAPIV3Emitter_getInstance().h4b(it, null, logger);
|
|
4167
4167
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
4168
|
-
var this_1 = tmp0_0.
|
|
4168
|
+
var this_1 = tmp0_0.o28();
|
|
4169
4169
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
4170
4170
|
var this_2 = serializer(this_1, createKType(getKClass(OpenAPIV3Model), arrayOf([]), false));
|
|
4171
4171
|
var tmp$ret$5 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
4172
|
-
var tmp$ret$6 = tmp0_0.
|
|
4172
|
+
var tmp$ret$6 = tmp0_0.x2p(tmp$ret$5, value);
|
|
4173
4173
|
// Inline function 'kotlin.let' call
|
|
4174
4174
|
var it_0 = new Emitted(tmp, tmp$ret$6);
|
|
4175
4175
|
return nonEmptyListOf(it_0, []);
|
|
4176
4176
|
};
|
|
4177
|
-
protoOf(OpenAPIV3Emitter).
|
|
4178
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
4177
|
+
protoOf(OpenAPIV3Emitter).h4b = function (statements, options, logger) {
|
|
4178
|
+
var tmp1_elvis_lhs = options == null ? null : options.i4b_1;
|
|
4179
4179
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
4180
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
4180
|
+
var tmp3_elvis_lhs = options == null ? null : options.j4b_1;
|
|
4181
4181
|
var tmp4_info = new InfoObject(tmp, VOID, VOID, VOID, VOID, VOID, tmp3_elvis_lhs == null ? '0.0.0' : tmp3_elvis_lhs);
|
|
4182
4182
|
var tmp5_paths = emitPaths_0(this, statements, logger);
|
|
4183
4183
|
var tmp6_components = emitComponents(this, statements, logger);
|
|
@@ -4191,15 +4191,15 @@ function OpenAPIV3Emitter_getInstance() {
|
|
|
4191
4191
|
}
|
|
4192
4192
|
function OpenAPIV3Parser$parse$lambda($strict) {
|
|
4193
4193
|
return function (it) {
|
|
4194
|
-
return new NonEmptyList(OpenAPIV3Parser_instance.
|
|
4194
|
+
return new NonEmptyList(OpenAPIV3Parser_instance.k4b((new OpenAPIV3(jsonDefault($strict))).o36(it)));
|
|
4195
4195
|
};
|
|
4196
4196
|
}
|
|
4197
4197
|
function OpenAPIV3Parser() {
|
|
4198
4198
|
}
|
|
4199
|
-
protoOf(OpenAPIV3Parser).
|
|
4199
|
+
protoOf(OpenAPIV3Parser).f4b = function (moduleContent, strict) {
|
|
4200
4200
|
return parseOpenApi(moduleContent, OpenAPIV3Parser$parse$lambda(strict));
|
|
4201
4201
|
};
|
|
4202
|
-
protoOf(OpenAPIV3Parser).
|
|
4202
|
+
protoOf(OpenAPIV3Parser).k4b = function (_this__u8e3s4) {
|
|
4203
4203
|
// Inline function 'kotlin.collections.reduce' call
|
|
4204
4204
|
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();
|
|
4205
4205
|
if (!iterator.u())
|
|
@@ -4214,7 +4214,7 @@ protoOf(OpenAPIV3Parser).v47 = function (_this__u8e3s4) {
|
|
|
4214
4214
|
var tmp = toNonEmptyListOrNull(resolveEndpointNameCollisions(tmp$ret$1));
|
|
4215
4215
|
// Inline function 'kotlin.let' call
|
|
4216
4216
|
var tmp_0 = tmp == null ? null : new NonEmptyList(tmp);
|
|
4217
|
-
var tmp_1 = tmp_0 == null ? null : tmp_0.
|
|
4217
|
+
var tmp_1 = tmp_0 == null ? null : tmp_0.zp_1;
|
|
4218
4218
|
var tmp0_0 = tmp_1 == null ? null : new NonEmptyList(tmp_1);
|
|
4219
4219
|
var tmp$ret$3;
|
|
4220
4220
|
$l$block: {
|
|
@@ -4223,7 +4223,7 @@ protoOf(OpenAPIV3Parser).v47 = function (_this__u8e3s4) {
|
|
|
4223
4223
|
var message = 'Cannot yield empty AST for OpenAPI v3';
|
|
4224
4224
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
4225
4225
|
} else {
|
|
4226
|
-
tmp$ret$3 = tmp0_0.
|
|
4226
|
+
tmp$ret$3 = tmp0_0.zp_1;
|
|
4227
4227
|
break $l$block;
|
|
4228
4228
|
}
|
|
4229
4229
|
}
|
|
@@ -4235,36 +4235,36 @@ function OpenAPIV3Parser_getInstance() {
|
|
|
4235
4235
|
}
|
|
4236
4236
|
function parseEndpoints_0(_this__u8e3s4) {
|
|
4237
4237
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4238
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
4238
|
+
var tmp0_elvis_lhs = _this__u8e3s4.u36();
|
|
4239
4239
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4240
4240
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4241
4241
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4242
4242
|
var destination = ArrayList_init_$Create$();
|
|
4243
4243
|
// Inline function 'kotlin.collections.iterator' call
|
|
4244
|
-
var _iterator__ex2g4s = tmp0.
|
|
4244
|
+
var _iterator__ex2g4s = tmp0.k1().t();
|
|
4245
4245
|
while (_iterator__ex2g4s.u()) {
|
|
4246
4246
|
var element = _iterator__ex2g4s.v();
|
|
4247
4247
|
// Inline function 'kotlin.collections.component1' call
|
|
4248
|
-
var path = element.
|
|
4248
|
+
var path = element.l1().u33_1;
|
|
4249
4249
|
// Inline function 'kotlin.collections.component2' call
|
|
4250
|
-
var pathItem = element.
|
|
4250
|
+
var pathItem = element.m1();
|
|
4251
4251
|
// Inline function 'kotlin.collections.map' call
|
|
4252
4252
|
var this_0 = toOperationList(pathItem);
|
|
4253
4253
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4254
|
-
var destination_0 = ArrayList_init_$Create$_0(this_0.
|
|
4254
|
+
var destination_0 = ArrayList_init_$Create$_0(this_0.b1());
|
|
4255
4255
|
// Inline function 'kotlin.collections.iterator' call
|
|
4256
|
-
var _iterator__ex2g4s_0 = this_0.
|
|
4256
|
+
var _iterator__ex2g4s_0 = this_0.k1().t();
|
|
4257
4257
|
while (_iterator__ex2g4s_0.u()) {
|
|
4258
4258
|
var item = _iterator__ex2g4s_0.v();
|
|
4259
4259
|
// Inline function 'kotlin.collections.component1' call
|
|
4260
|
-
var method = item.
|
|
4260
|
+
var method = item.l1();
|
|
4261
4261
|
// Inline function 'kotlin.collections.component2' call
|
|
4262
|
-
var operation = item.
|
|
4263
|
-
var parameters = plus_0(resolveParameters_0(_this__u8e3s4, pathItem.
|
|
4262
|
+
var operation = item.m1();
|
|
4263
|
+
var parameters = plus_0(resolveParameters_0(_this__u8e3s4, pathItem.u34()), resolveParameters_0(_this__u8e3s4, operation.u34()));
|
|
4264
4264
|
var tmp0_elvis_lhs_0 = toName(operation);
|
|
4265
|
-
var segments = toSegments_0(_this__u8e3s4, path, parameters, tmp0_elvis_lhs_0 == null ? toName_0(path) + method.
|
|
4265
|
+
var segments = toSegments_0(_this__u8e3s4, path, parameters, tmp0_elvis_lhs_0 == null ? toName_0(path) + method.b3_1 : tmp0_elvis_lhs_0);
|
|
4266
4266
|
var tmp1_elvis_lhs = toName(operation);
|
|
4267
|
-
var name = tmp1_elvis_lhs == null ? toName_0(path) + method.
|
|
4267
|
+
var name = tmp1_elvis_lhs == null ? toName_0(path) + method.b3_1 : tmp1_elvis_lhs;
|
|
4268
4268
|
// Inline function 'kotlin.collections.filter' call
|
|
4269
4269
|
// Inline function 'kotlin.collections.filterTo' call
|
|
4270
4270
|
var destination_1 = ArrayList_init_$Create$();
|
|
@@ -4272,7 +4272,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4272
4272
|
while (_iterator__ex2g4s_1.u()) {
|
|
4273
4273
|
var element_0 = _iterator__ex2g4s_1.v();
|
|
4274
4274
|
if (get_location_0(element_0).equals(OpenAPIV30ParameterLocation_QUERY_getInstance())) {
|
|
4275
|
-
destination_1.
|
|
4275
|
+
destination_1.y(element_0);
|
|
4276
4276
|
}
|
|
4277
4277
|
}
|
|
4278
4278
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -4282,7 +4282,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4282
4282
|
while (_iterator__ex2g4s_2.u()) {
|
|
4283
4283
|
var item_0 = _iterator__ex2g4s_2.v();
|
|
4284
4284
|
var tmp$ret$10 = toField_2(_this__u8e3s4, item_0, className([name, 'Parameter', item_0.m()]));
|
|
4285
|
-
destination_2.
|
|
4285
|
+
destination_2.y(tmp$ret$10);
|
|
4286
4286
|
}
|
|
4287
4287
|
var query = destination_2;
|
|
4288
4288
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -4292,7 +4292,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4292
4292
|
while (_iterator__ex2g4s_3.u()) {
|
|
4293
4293
|
var element_1 = _iterator__ex2g4s_3.v();
|
|
4294
4294
|
if (get_location_0(element_1).equals(OpenAPIV30ParameterLocation_HEADER_getInstance())) {
|
|
4295
|
-
destination_3.
|
|
4295
|
+
destination_3.y(element_1);
|
|
4296
4296
|
}
|
|
4297
4297
|
}
|
|
4298
4298
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -4302,10 +4302,10 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4302
4302
|
while (_iterator__ex2g4s_4.u()) {
|
|
4303
4303
|
var item_1 = _iterator__ex2g4s_4.v();
|
|
4304
4304
|
var tmp$ret$16 = toField_2(_this__u8e3s4, item_1, className([name, 'Parameter', item_1.m()]));
|
|
4305
|
-
destination_4.
|
|
4305
|
+
destination_4.y(tmp$ret$16);
|
|
4306
4306
|
}
|
|
4307
4307
|
var headers = destination_4;
|
|
4308
|
-
var tmp2_safe_receiver = operation.
|
|
4308
|
+
var tmp2_safe_receiver = operation.v34();
|
|
4309
4309
|
var tmp;
|
|
4310
4310
|
if (tmp2_safe_receiver == null) {
|
|
4311
4311
|
tmp = null;
|
|
@@ -4320,23 +4320,23 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4320
4320
|
} else {
|
|
4321
4321
|
// Inline function 'kotlin.let' call
|
|
4322
4322
|
var isNullable = false;
|
|
4323
|
-
var tmp0_safe_receiver = tmp3_safe_receiver.
|
|
4323
|
+
var tmp0_safe_receiver = tmp3_safe_receiver.n11();
|
|
4324
4324
|
var tmp_1;
|
|
4325
4325
|
if (tmp0_safe_receiver == null) {
|
|
4326
4326
|
tmp_1 = null;
|
|
4327
4327
|
} else {
|
|
4328
4328
|
// Inline function 'kotlin.collections.map' call
|
|
4329
4329
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4330
|
-
var destination_5 = ArrayList_init_$Create$_0(tmp0_safe_receiver.
|
|
4330
|
+
var destination_5 = ArrayList_init_$Create$_0(tmp0_safe_receiver.b1());
|
|
4331
4331
|
// Inline function 'kotlin.collections.iterator' call
|
|
4332
|
-
var _iterator__ex2g4s_5 = tmp0_safe_receiver.
|
|
4332
|
+
var _iterator__ex2g4s_5 = tmp0_safe_receiver.k1().t();
|
|
4333
4333
|
while (_iterator__ex2g4s_5.u()) {
|
|
4334
4334
|
var item_2 = _iterator__ex2g4s_5.v();
|
|
4335
4335
|
// Inline function 'kotlin.collections.component1' call
|
|
4336
|
-
var mediaType = item_2.
|
|
4336
|
+
var mediaType = item_2.l1().r34_1;
|
|
4337
4337
|
// Inline function 'kotlin.collections.component2' call
|
|
4338
|
-
var mediaObject = item_2.
|
|
4339
|
-
var schema = mediaObject.
|
|
4338
|
+
var mediaObject = item_2.m1();
|
|
4339
|
+
var schema = mediaObject.n34();
|
|
4340
4340
|
var tmp_2;
|
|
4341
4341
|
if (!(schema == null) ? isInterface(schema, Reference) : false) {
|
|
4342
4342
|
tmp_2 = toReference_1(_this__u8e3s4, schema, isNullable);
|
|
@@ -4361,7 +4361,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4361
4361
|
}
|
|
4362
4362
|
var tmp1_elvis_lhs_0 = tmp_3;
|
|
4363
4363
|
var tmp$ret$26 = tmp1_elvis_lhs_0 == null ? new Request(null) : tmp1_elvis_lhs_0;
|
|
4364
|
-
destination_5.
|
|
4364
|
+
destination_5.y(tmp$ret$26);
|
|
4365
4365
|
}
|
|
4366
4366
|
tmp_1 = destination_5;
|
|
4367
4367
|
}
|
|
@@ -4370,41 +4370,41 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4370
4370
|
var tmp4_elvis_lhs = tmp_0;
|
|
4371
4371
|
var requests = tmp4_elvis_lhs == null ? listOf(new Request(null)) : tmp4_elvis_lhs;
|
|
4372
4372
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4373
|
-
var tmp0_elvis_lhs_1 = operation.
|
|
4373
|
+
var tmp0_elvis_lhs_1 = operation.b10();
|
|
4374
4374
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4375
4375
|
var tmp0_0 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
4376
4376
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4377
4377
|
var destination_6 = ArrayList_init_$Create$();
|
|
4378
4378
|
// Inline function 'kotlin.collections.iterator' call
|
|
4379
|
-
var _iterator__ex2g4s_6 = tmp0_0.
|
|
4379
|
+
var _iterator__ex2g4s_6 = tmp0_0.k1().t();
|
|
4380
4380
|
while (_iterator__ex2g4s_6.u()) {
|
|
4381
4381
|
var element_2 = _iterator__ex2g4s_6.v();
|
|
4382
4382
|
// Inline function 'kotlin.collections.component1' call
|
|
4383
|
-
var status = element_2.
|
|
4383
|
+
var status = element_2.l1().y33_1;
|
|
4384
4384
|
// Inline function 'kotlin.collections.component2' call
|
|
4385
|
-
var res = element_2.
|
|
4385
|
+
var res = element_2.m1();
|
|
4386
4386
|
// Inline function 'kotlin.let' call
|
|
4387
4387
|
var response = resolve_2(_this__u8e3s4, res);
|
|
4388
4388
|
var content = get_content(response);
|
|
4389
4389
|
var tmp_4;
|
|
4390
4390
|
// Inline function 'kotlin.collections.isNullOrEmpty' call
|
|
4391
4391
|
if (content == null || content.r()) {
|
|
4392
|
-
var tmp1_annotations = plus_0(toDescriptionAnnotationList(response.
|
|
4392
|
+
var tmp1_annotations = plus_0(toDescriptionAnnotationList(response.e34()), toLinkAnnotationList(_this__u8e3s4, response.m34()));
|
|
4393
4393
|
var tmp2_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4394
|
-
var tmp0_safe_receiver_0 = response.
|
|
4394
|
+
var tmp0_safe_receiver_0 = response.zz();
|
|
4395
4395
|
var tmp_5;
|
|
4396
4396
|
if (tmp0_safe_receiver_0 == null) {
|
|
4397
4397
|
tmp_5 = null;
|
|
4398
4398
|
} else {
|
|
4399
4399
|
// Inline function 'kotlin.collections.map' call
|
|
4400
4400
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4401
|
-
var destination_7 = ArrayList_init_$Create$_0(tmp0_safe_receiver_0.
|
|
4401
|
+
var destination_7 = ArrayList_init_$Create$_0(tmp0_safe_receiver_0.b1());
|
|
4402
4402
|
// Inline function 'kotlin.collections.iterator' call
|
|
4403
|
-
var _iterator__ex2g4s_7 = tmp0_safe_receiver_0.
|
|
4403
|
+
var _iterator__ex2g4s_7 = tmp0_safe_receiver_0.k1().t();
|
|
4404
4404
|
while (_iterator__ex2g4s_7.u()) {
|
|
4405
4405
|
var item_3 = _iterator__ex2g4s_7.v();
|
|
4406
|
-
var tmp$ret$37 = toField_3(_this__u8e3s4, resolve_3(_this__u8e3s4, item_3.
|
|
4407
|
-
destination_7.
|
|
4406
|
+
var tmp$ret$37 = toField_3(_this__u8e3s4, resolve_3(_this__u8e3s4, item_3.m1()), item_3.l1(), className([name, 'ResponseHeader']));
|
|
4407
|
+
destination_7.y(tmp$ret$37);
|
|
4408
4408
|
}
|
|
4409
4409
|
tmp_5 = destination_7;
|
|
4410
4410
|
}
|
|
@@ -4415,16 +4415,16 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4415
4415
|
} else {
|
|
4416
4416
|
// Inline function 'kotlin.collections.map' call
|
|
4417
4417
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4418
|
-
var destination_8 = ArrayList_init_$Create$_0(content.
|
|
4418
|
+
var destination_8 = ArrayList_init_$Create$_0(content.b1());
|
|
4419
4419
|
// Inline function 'kotlin.collections.iterator' call
|
|
4420
|
-
var _iterator__ex2g4s_8 = content.
|
|
4420
|
+
var _iterator__ex2g4s_8 = content.k1().t();
|
|
4421
4421
|
while (_iterator__ex2g4s_8.u()) {
|
|
4422
4422
|
var item_4 = _iterator__ex2g4s_8.v();
|
|
4423
4423
|
// Inline function 'kotlin.collections.component1' call
|
|
4424
|
-
var contentType = item_4.
|
|
4424
|
+
var contentType = item_4.l1().r34_1;
|
|
4425
4425
|
// Inline function 'kotlin.collections.component2' call
|
|
4426
|
-
var media = item_4.
|
|
4427
|
-
var tmp0_safe_receiver_1 = media.
|
|
4426
|
+
var media = item_4.m1();
|
|
4427
|
+
var tmp0_safe_receiver_1 = media.n34();
|
|
4428
4428
|
var tmp_6;
|
|
4429
4429
|
if (tmp0_safe_receiver_1 == null) {
|
|
4430
4430
|
tmp_6 = null;
|
|
@@ -4435,22 +4435,22 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4435
4435
|
var tmp1_safe_receiver = tmp_6;
|
|
4436
4436
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : get_isNullable(tmp1_safe_receiver);
|
|
4437
4437
|
var isNullable_0 = tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs;
|
|
4438
|
-
var tmp4_annotations = plus_0(toDescriptionAnnotationList(response.
|
|
4438
|
+
var tmp4_annotations = plus_0(toDescriptionAnnotationList(response.e34()), toLinkAnnotationList(_this__u8e3s4, response.m34()));
|
|
4439
4439
|
var tmp5_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4440
|
-
var tmp3_safe_receiver_0 = response.
|
|
4440
|
+
var tmp3_safe_receiver_0 = response.zz();
|
|
4441
4441
|
var tmp_7;
|
|
4442
4442
|
if (tmp3_safe_receiver_0 == null) {
|
|
4443
4443
|
tmp_7 = null;
|
|
4444
4444
|
} else {
|
|
4445
4445
|
// Inline function 'kotlin.collections.map' call
|
|
4446
4446
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4447
|
-
var destination_9 = ArrayList_init_$Create$_0(tmp3_safe_receiver_0.
|
|
4447
|
+
var destination_9 = ArrayList_init_$Create$_0(tmp3_safe_receiver_0.b1());
|
|
4448
4448
|
// Inline function 'kotlin.collections.iterator' call
|
|
4449
|
-
var _iterator__ex2g4s_9 = tmp3_safe_receiver_0.
|
|
4449
|
+
var _iterator__ex2g4s_9 = tmp3_safe_receiver_0.k1().t();
|
|
4450
4450
|
while (_iterator__ex2g4s_9.u()) {
|
|
4451
4451
|
var item_5 = _iterator__ex2g4s_9.v();
|
|
4452
|
-
var tmp$ret$47 = toField_3(_this__u8e3s4, resolve_3(_this__u8e3s4, item_5.
|
|
4453
|
-
destination_9.
|
|
4452
|
+
var tmp$ret$47 = toField_3(_this__u8e3s4, resolve_3(_this__u8e3s4, item_5.m1()), item_5.l1(), className([name, 'ResponseHeader']));
|
|
4453
|
+
destination_9.y(tmp$ret$47);
|
|
4454
4454
|
}
|
|
4455
4455
|
tmp_7 = destination_9;
|
|
4456
4456
|
}
|
|
@@ -4458,7 +4458,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4458
4458
|
var tmp0_elvis_lhs_3 = tmp_7;
|
|
4459
4459
|
var tmp6_headers = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
|
|
4460
4460
|
var tmp_8 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
4461
|
-
var schema_0 = media.
|
|
4461
|
+
var schema_0 = media.n34();
|
|
4462
4462
|
var tmp_9;
|
|
4463
4463
|
if (!(schema_0 == null) ? isInterface(schema_0, Reference) : false) {
|
|
4464
4464
|
tmp_9 = toReference_1(_this__u8e3s4, schema_0, isNullable_0);
|
|
@@ -4475,7 +4475,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4475
4475
|
}
|
|
4476
4476
|
var tmp7_content = new Content(tmp_8, tmp_9);
|
|
4477
4477
|
var tmp$ret$51 = new Response(tmp5_status, tmp6_headers, tmp7_content, tmp4_annotations);
|
|
4478
|
-
destination_8.
|
|
4478
|
+
destination_8.y(tmp$ret$51);
|
|
4479
4479
|
}
|
|
4480
4480
|
tmp_4 = destination_8;
|
|
4481
4481
|
}
|
|
@@ -4483,8 +4483,8 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4483
4483
|
addAll(destination_6, list);
|
|
4484
4484
|
}
|
|
4485
4485
|
var responses = destination_6;
|
|
4486
|
-
var tmp$ret$59 = new Endpoint(null, toDescriptionAnnotationList(operation.
|
|
4487
|
-
destination_0.
|
|
4486
|
+
var tmp$ret$59 = new Endpoint(null, toDescriptionAnnotationList(operation.e34()), new DefinitionIdentifier(name), method, segments, query, headers, requests, responses);
|
|
4487
|
+
destination_0.y(tmp$ret$59);
|
|
4488
4488
|
}
|
|
4489
4489
|
var list_0 = destination_0;
|
|
4490
4490
|
addAll(destination, list_0);
|
|
@@ -4501,21 +4501,21 @@ function parseResponseBody_0(_this__u8e3s4) {
|
|
|
4501
4501
|
return flatMapResponses(_this__u8e3s4, parseResponseBody$lambda_0(_this__u8e3s4));
|
|
4502
4502
|
}
|
|
4503
4503
|
function parseDefinitions_0(_this__u8e3s4) {
|
|
4504
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
4504
|
+
var tmp0_safe_receiver = _this__u8e3s4.a37();
|
|
4505
4505
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4506
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4506
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s3h();
|
|
4507
4507
|
// Inline function 'kotlin.collections.filter' call
|
|
4508
4508
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4509
4509
|
// Inline function 'kotlin.collections.filterTo' call
|
|
4510
4510
|
var destination = LinkedHashMap_init_$Create$_0();
|
|
4511
4511
|
// Inline function 'kotlin.collections.iterator' call
|
|
4512
|
-
var _iterator__ex2g4s = tmp0.
|
|
4512
|
+
var _iterator__ex2g4s = tmp0.k1().t();
|
|
4513
4513
|
while (_iterator__ex2g4s.u()) {
|
|
4514
4514
|
var element = _iterator__ex2g4s.v();
|
|
4515
|
-
var s = element.
|
|
4515
|
+
var s = element.m1();
|
|
4516
4516
|
var tmp;
|
|
4517
4517
|
if (isInterface(s, Schema)) {
|
|
4518
|
-
var tmp0_subject = s.
|
|
4518
|
+
var tmp0_subject = s.j34();
|
|
4519
4519
|
var tmp_0;
|
|
4520
4520
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
4521
4521
|
tmp_0 = true;
|
|
@@ -4543,17 +4543,17 @@ function parseDefinitions_0(_this__u8e3s4) {
|
|
|
4543
4543
|
}
|
|
4544
4544
|
}
|
|
4545
4545
|
if (tmp) {
|
|
4546
|
-
destination.
|
|
4546
|
+
destination.t2(element.l1(), element.m1());
|
|
4547
4547
|
}
|
|
4548
4548
|
}
|
|
4549
4549
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4550
4550
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4551
4551
|
var destination_0 = ArrayList_init_$Create$();
|
|
4552
4552
|
// Inline function 'kotlin.collections.iterator' call
|
|
4553
|
-
var _iterator__ex2g4s_0 = destination.
|
|
4553
|
+
var _iterator__ex2g4s_0 = destination.k1().t();
|
|
4554
4554
|
while (_iterator__ex2g4s_0.u()) {
|
|
4555
4555
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
4556
|
-
var list = flattenSchemaOrRef_0(_this__u8e3s4, element_0.
|
|
4556
|
+
var list = flattenSchemaOrRef_0(_this__u8e3s4, element_0.m1(), className([element_0.l1()]));
|
|
4557
4557
|
addAll(destination_0, list);
|
|
4558
4558
|
}
|
|
4559
4559
|
return destination_0;
|
|
@@ -4583,7 +4583,7 @@ function resolveParameters_0(_this__u8e3s4, parameters) {
|
|
|
4583
4583
|
null;
|
|
4584
4584
|
else {
|
|
4585
4585
|
// Inline function 'kotlin.let' call
|
|
4586
|
-
destination.
|
|
4586
|
+
destination.y(tmp0_safe_receiver);
|
|
4587
4587
|
}
|
|
4588
4588
|
}
|
|
4589
4589
|
return destination;
|
|
@@ -4598,7 +4598,7 @@ function toSegments_0(_this__u8e3s4, path, parameters, name) {
|
|
|
4598
4598
|
var element = _iterator__ex2g4s.v();
|
|
4599
4599
|
// Inline function 'kotlin.text.isNotBlank' call
|
|
4600
4600
|
if (!isBlank(element)) {
|
|
4601
|
-
destination.
|
|
4601
|
+
destination.y(element);
|
|
4602
4602
|
}
|
|
4603
4603
|
}
|
|
4604
4604
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -4628,7 +4628,7 @@ function toSegments_0(_this__u8e3s4, path, parameters, name) {
|
|
|
4628
4628
|
}
|
|
4629
4629
|
|
|
4630
4630
|
var tmp1_safe_receiver = tmp$ret$5;
|
|
4631
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4631
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n34();
|
|
4632
4632
|
var tmp_0;
|
|
4633
4633
|
if (tmp2_safe_receiver == null) {
|
|
4634
4634
|
tmp_0 = null;
|
|
@@ -4674,20 +4674,20 @@ function toSegments_0(_this__u8e3s4, path, parameters, name) {
|
|
|
4674
4674
|
break;
|
|
4675
4675
|
}
|
|
4676
4676
|
var tmp$ret$13 = tmp;
|
|
4677
|
-
destination_0.
|
|
4677
|
+
destination_0.y(tmp$ret$13);
|
|
4678
4678
|
}
|
|
4679
4679
|
return destination_0;
|
|
4680
4680
|
}
|
|
4681
4681
|
function get_location_0(_this__u8e3s4) {
|
|
4682
4682
|
var tmp;
|
|
4683
4683
|
if (_this__u8e3s4 instanceof OpenAPIV30Parameter) {
|
|
4684
|
-
tmp = _this__u8e3s4.
|
|
4684
|
+
tmp = _this__u8e3s4.a3k_1;
|
|
4685
4685
|
} else {
|
|
4686
4686
|
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
4687
|
-
tmp = valueOf(_this__u8e3s4.
|
|
4687
|
+
tmp = valueOf(_this__u8e3s4.o3q_1.b3_1);
|
|
4688
4688
|
} else {
|
|
4689
4689
|
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
4690
|
-
tmp = valueOf(_this__u8e3s4.
|
|
4690
|
+
tmp = valueOf(_this__u8e3s4.t40_1.b3_1);
|
|
4691
4691
|
} else {
|
|
4692
4692
|
var message = 'Unsupported parameter type: ' + toString(_this__u8e3s4);
|
|
4693
4693
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -4699,7 +4699,7 @@ function get_location_0(_this__u8e3s4) {
|
|
|
4699
4699
|
function toField_2(_this__u8e3s4, parameter, name) {
|
|
4700
4700
|
var tmp0_elvis_lhs = get_required(parameter);
|
|
4701
4701
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
4702
|
-
var s = parameter.
|
|
4702
|
+
var s = parameter.n34();
|
|
4703
4703
|
var tmp;
|
|
4704
4704
|
if (!(s == null) ? isInterface(s, Reference) : false) {
|
|
4705
4705
|
tmp = toReference_1(_this__u8e3s4, s, isNullable);
|
|
@@ -4726,7 +4726,7 @@ function resolve_1(_this__u8e3s4, requestBodyOrReference) {
|
|
|
4726
4726
|
tmp = requestBodyOrReference;
|
|
4727
4727
|
} else {
|
|
4728
4728
|
if (isInterface(requestBodyOrReference, Reference)) {
|
|
4729
|
-
tmp = resolveRequestBody(_this__u8e3s4, requestBodyOrReference).
|
|
4729
|
+
tmp = resolveRequestBody(_this__u8e3s4, requestBodyOrReference).wf_1;
|
|
4730
4730
|
} else {
|
|
4731
4731
|
noWhenBranchMatchedException();
|
|
4732
4732
|
}
|
|
@@ -4736,12 +4736,12 @@ function resolve_1(_this__u8e3s4, requestBodyOrReference) {
|
|
|
4736
4736
|
function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
4737
4737
|
// Inline function 'kotlin.let' call
|
|
4738
4738
|
var destruct = resolveSchemaRef_0(_this__u8e3s4, reference);
|
|
4739
|
-
var referencingObject = destruct.
|
|
4740
|
-
var schema = destruct.
|
|
4739
|
+
var referencingObject = destruct.mf();
|
|
4740
|
+
var schema = destruct.nf();
|
|
4741
4741
|
var nullable = get_isNullable(schema);
|
|
4742
4742
|
var tmp;
|
|
4743
|
-
if (exists_0(schema.
|
|
4744
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4743
|
+
if (exists_0(schema.j34())) {
|
|
4744
|
+
var additionalProperties = ensureNotNull(schema.j34());
|
|
4745
4745
|
var tmp_0;
|
|
4746
4746
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
4747
4747
|
tmp_0 = new Dict(new Any(isNullable), false);
|
|
@@ -4757,12 +4757,12 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4757
4757
|
}
|
|
4758
4758
|
}
|
|
4759
4759
|
tmp = tmp_0;
|
|
4760
|
-
} else if (!(schema.
|
|
4760
|
+
} else if (!(schema.f34() == null)) {
|
|
4761
4761
|
tmp = new Custom(sanitize(className([getReference(referencingObject)])), isNullable);
|
|
4762
4762
|
} else if (isPrimitive_0(get_primitiveType_0(schema))) {
|
|
4763
4763
|
tmp = new Primitive(toPrimitive_1(schema), isNullable);
|
|
4764
4764
|
} else if (equals(get_primitiveType_0(schema), OpenAPIV30Type_ARRAY_getInstance())) {
|
|
4765
|
-
var items = schema.
|
|
4765
|
+
var items = schema.g34();
|
|
4766
4766
|
var tmp_1;
|
|
4767
4767
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
4768
4768
|
tmp_1 = toIterable(toReference_1(_this__u8e3s4, items, nullable), isNullable);
|
|
@@ -4771,7 +4771,7 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4771
4771
|
tmp_1 = toIterable(new Custom(sanitize(className([getReference(referencingObject), 'Array'])), nullable), isNullable);
|
|
4772
4772
|
} else {
|
|
4773
4773
|
if (items == null) {
|
|
4774
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.
|
|
4774
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.d34());
|
|
4775
4775
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4776
4776
|
} else {
|
|
4777
4777
|
noWhenBranchMatchedException();
|
|
@@ -4789,7 +4789,7 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4789
4789
|
var nullable = get_isNullable(schema);
|
|
4790
4790
|
var tmp;
|
|
4791
4791
|
if (equals(get_primitiveType_0(schema), OpenAPIV30Type_ARRAY_getInstance())) {
|
|
4792
|
-
var items = schema.
|
|
4792
|
+
var items = schema.g34();
|
|
4793
4793
|
var tmp_0;
|
|
4794
4794
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
4795
4795
|
tmp_0 = toIterable(toReference_1(_this__u8e3s4, items, nullable), isNullable);
|
|
@@ -4806,8 +4806,8 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4806
4806
|
}
|
|
4807
4807
|
}
|
|
4808
4808
|
tmp = tmp_0;
|
|
4809
|
-
} else if (!(schema.
|
|
4810
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4809
|
+
} else if (!(schema.j34() == null)) {
|
|
4810
|
+
var additionalProperties = ensureNotNull(schema.j34());
|
|
4811
4811
|
var tmp_1;
|
|
4812
4812
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
4813
4813
|
tmp_1 = new Dict(new Any(nullable), isNullable);
|
|
@@ -4818,7 +4818,7 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4818
4818
|
if (isInterface(additionalProperties, Schema)) {
|
|
4819
4819
|
// Inline function 'kotlin.takeIf' call
|
|
4820
4820
|
var tmp_2;
|
|
4821
|
-
if (isPrimitive_0(get_primitiveType_0(additionalProperties)) || !(additionalProperties.
|
|
4821
|
+
if (isPrimitive_0(get_primitiveType_0(additionalProperties)) || !(additionalProperties.i34() == null)) {
|
|
4822
4822
|
tmp_2 = additionalProperties;
|
|
4823
4823
|
} else {
|
|
4824
4824
|
tmp_2 = null;
|
|
@@ -4839,14 +4839,14 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4839
4839
|
}
|
|
4840
4840
|
}
|
|
4841
4841
|
tmp = tmp_1;
|
|
4842
|
-
} else if (!(schema.
|
|
4842
|
+
} else if (!(schema.f34() == null)) {
|
|
4843
4843
|
// Inline function 'kotlin.let' call
|
|
4844
4844
|
var it = new Custom(sanitize(name), isNullable);
|
|
4845
|
-
tmp = !(schema.
|
|
4845
|
+
tmp = !(schema.j34() == null) ? new Dict(it, false) : it;
|
|
4846
4846
|
} else {
|
|
4847
4847
|
var tmp2_subject = get_primitiveType_0(schema);
|
|
4848
4848
|
var tmp_4;
|
|
4849
|
-
switch (tmp2_subject == null ? -1 : tmp2_subject.
|
|
4849
|
+
switch (tmp2_subject == null ? -1 : tmp2_subject.c3_1) {
|
|
4850
4850
|
case 0:
|
|
4851
4851
|
case 1:
|
|
4852
4852
|
case 2:
|
|
@@ -4854,26 +4854,26 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4854
4854
|
// Inline function 'kotlin.let' call
|
|
4855
4855
|
|
|
4856
4856
|
var it_0 = new Primitive(toPrimitive_1(schema), isNullable);
|
|
4857
|
-
tmp_4 = !(schema.
|
|
4857
|
+
tmp_4 = !(schema.j34() == null) ? new Dict(it_0, false) : it_0;
|
|
4858
4858
|
break;
|
|
4859
4859
|
case -1:
|
|
4860
4860
|
case 5:
|
|
4861
4861
|
var tmp_5;
|
|
4862
|
-
var tmp_6 = schema.
|
|
4862
|
+
var tmp_6 = schema.j34();
|
|
4863
4863
|
if (!(tmp_6 == null) ? isInterface(tmp_6, BooleanValue) : false) {
|
|
4864
4864
|
// Inline function 'kotlin.let' call
|
|
4865
4865
|
var it_1 = new Any(false);
|
|
4866
|
-
tmp_5 = !(schema.
|
|
4866
|
+
tmp_5 = !(schema.j34() == null) ? new Dict(it_1, false) : it_1;
|
|
4867
4867
|
} else {
|
|
4868
4868
|
// Inline function 'kotlin.let' call
|
|
4869
4869
|
var it_2 = new Custom(sanitize(name), isNullable);
|
|
4870
|
-
tmp_5 = !(schema.
|
|
4870
|
+
tmp_5 = !(schema.j34() == null) ? new Dict(it_2, false) : it_2;
|
|
4871
4871
|
}
|
|
4872
4872
|
|
|
4873
4873
|
tmp_4 = tmp_5;
|
|
4874
4874
|
break;
|
|
4875
4875
|
case 4:
|
|
4876
|
-
var it_3 = schema.
|
|
4876
|
+
var it_3 = schema.g34();
|
|
4877
4877
|
var tmp_7;
|
|
4878
4878
|
if (!(it_3 == null) ? isInterface(it_3, Reference) : false) {
|
|
4879
4879
|
tmp_7 = toIterable(toReference_1(_this__u8e3s4, it_3, nullable), isNullable);
|
|
@@ -4909,7 +4909,7 @@ function resolve_2(_this__u8e3s4, responseOrReference) {
|
|
|
4909
4909
|
tmp = responseOrReference;
|
|
4910
4910
|
} else {
|
|
4911
4911
|
if (isInterface(responseOrReference, Reference)) {
|
|
4912
|
-
tmp = resolveResponse_0(_this__u8e3s4, responseOrReference).
|
|
4912
|
+
tmp = resolveResponse_0(_this__u8e3s4, responseOrReference).wf_1;
|
|
4913
4913
|
} else {
|
|
4914
4914
|
noWhenBranchMatchedException();
|
|
4915
4915
|
}
|
|
@@ -4919,13 +4919,13 @@ function resolve_2(_this__u8e3s4, responseOrReference) {
|
|
|
4919
4919
|
function get_content(_this__u8e3s4) {
|
|
4920
4920
|
var tmp;
|
|
4921
4921
|
if (_this__u8e3s4 instanceof OpenAPIV30Response) {
|
|
4922
|
-
tmp = _this__u8e3s4.
|
|
4922
|
+
tmp = _this__u8e3s4.n3l_1;
|
|
4923
4923
|
} else {
|
|
4924
4924
|
if (_this__u8e3s4 instanceof OpenAPIV31Response) {
|
|
4925
|
-
tmp = _this__u8e3s4.
|
|
4925
|
+
tmp = _this__u8e3s4.v3q_1;
|
|
4926
4926
|
} else {
|
|
4927
4927
|
if (_this__u8e3s4 instanceof OpenAPIV32Response) {
|
|
4928
|
-
tmp = _this__u8e3s4.
|
|
4928
|
+
tmp = _this__u8e3s4.a41_1;
|
|
4929
4929
|
} else {
|
|
4930
4930
|
tmp = null;
|
|
4931
4931
|
}
|
|
@@ -4934,7 +4934,7 @@ function get_content(_this__u8e3s4) {
|
|
|
4934
4934
|
return tmp;
|
|
4935
4935
|
}
|
|
4936
4936
|
function toLinkAnnotationList(_this__u8e3s4, links) {
|
|
4937
|
-
var tmp1_safe_receiver = links == null ? null : links.
|
|
4937
|
+
var tmp1_safe_receiver = links == null ? null : links.k1();
|
|
4938
4938
|
var tmp;
|
|
4939
4939
|
if (tmp1_safe_receiver == null) {
|
|
4940
4940
|
tmp = null;
|
|
@@ -4945,8 +4945,8 @@ function toLinkAnnotationList(_this__u8e3s4, links) {
|
|
|
4945
4945
|
var _iterator__ex2g4s = tmp1_safe_receiver.t();
|
|
4946
4946
|
while (_iterator__ex2g4s.u()) {
|
|
4947
4947
|
var item = _iterator__ex2g4s.v();
|
|
4948
|
-
var tmp$ret$0 = toAnnotation(toLinkInfo_0(resolve_5(_this__u8e3s4, item.
|
|
4949
|
-
destination.
|
|
4948
|
+
var tmp$ret$0 = toAnnotation(toLinkInfo_0(resolve_5(_this__u8e3s4, item.m1()), item.l1()));
|
|
4949
|
+
destination.y(tmp$ret$0);
|
|
4950
4950
|
}
|
|
4951
4951
|
tmp = destination;
|
|
4952
4952
|
}
|
|
@@ -4975,7 +4975,7 @@ function toField_3(_this__u8e3s4, header, identifier, name) {
|
|
|
4975
4975
|
// Inline function 'kotlin.let' call
|
|
4976
4976
|
var it = tmp;
|
|
4977
4977
|
var tmp0_identifier = new FieldIdentifier(identifier);
|
|
4978
|
-
var tmp1_annotations = toDescriptionAnnotationList(header.
|
|
4978
|
+
var tmp1_annotations = toDescriptionAnnotationList(header.e34());
|
|
4979
4979
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
4980
4980
|
}
|
|
4981
4981
|
function resolve_3(_this__u8e3s4, headerOrReference) {
|
|
@@ -4984,7 +4984,7 @@ function resolve_3(_this__u8e3s4, headerOrReference) {
|
|
|
4984
4984
|
tmp = headerOrReference;
|
|
4985
4985
|
} else {
|
|
4986
4986
|
if (isInterface(headerOrReference, Reference)) {
|
|
4987
|
-
tmp = resolveHeader_0(_this__u8e3s4, headerOrReference).
|
|
4987
|
+
tmp = resolveHeader_0(_this__u8e3s4, headerOrReference).wf_1;
|
|
4988
4988
|
} else {
|
|
4989
4989
|
noWhenBranchMatchedException();
|
|
4990
4990
|
}
|
|
@@ -4997,7 +4997,7 @@ function resolve_4(_this__u8e3s4, schemaOrReference) {
|
|
|
4997
4997
|
tmp = schemaOrReference;
|
|
4998
4998
|
} else {
|
|
4999
4999
|
if (isInterface(schemaOrReference, Reference)) {
|
|
5000
|
-
tmp = resolveSchemaRef_0(_this__u8e3s4, schemaOrReference).
|
|
5000
|
+
tmp = resolveSchemaRef_0(_this__u8e3s4, schemaOrReference).wf_1;
|
|
5001
5001
|
} else {
|
|
5002
5002
|
noWhenBranchMatchedException();
|
|
5003
5003
|
}
|
|
@@ -5007,21 +5007,21 @@ function resolve_4(_this__u8e3s4, schemaOrReference) {
|
|
|
5007
5007
|
function get_isNullable(_this__u8e3s4) {
|
|
5008
5008
|
var tmp;
|
|
5009
5009
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5010
|
-
var tmp1_elvis_lhs = _this__u8e3s4.
|
|
5010
|
+
var tmp1_elvis_lhs = _this__u8e3s4.x3h_1;
|
|
5011
5011
|
tmp = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
5012
5012
|
} else {
|
|
5013
5013
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5014
|
-
var tmp_0 = _this__u8e3s4.
|
|
5014
|
+
var tmp_0 = _this__u8e3s4.q3r_1;
|
|
5015
5015
|
var tmp2_safe_receiver = tmp_0 instanceof OpenAPIV31TypeArray ? tmp_0 : null;
|
|
5016
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
5017
|
-
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
5016
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.g3t_1;
|
|
5017
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.v1(OpenAPIV31Type_NULL_getInstance());
|
|
5018
5018
|
tmp = tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs;
|
|
5019
5019
|
} else {
|
|
5020
5020
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5021
|
-
var tmp_1 = _this__u8e3s4.
|
|
5021
|
+
var tmp_1 = _this__u8e3s4.v41_1;
|
|
5022
5022
|
var tmp5_safe_receiver = tmp_1 instanceof OpenAPIV32TypeArray ? tmp_1 : null;
|
|
5023
|
-
var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.
|
|
5024
|
-
var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.
|
|
5023
|
+
var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.l43_1;
|
|
5024
|
+
var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.v1(OpenAPIV32Type_NULL_getInstance());
|
|
5025
5025
|
tmp = tmp7_elvis_lhs == null ? false : tmp7_elvis_lhs;
|
|
5026
5026
|
} else {
|
|
5027
5027
|
tmp = false;
|
|
@@ -5046,13 +5046,13 @@ function flattenSchemaOrRef_0(_this__u8e3s4, schemaOrReference, name) {
|
|
|
5046
5046
|
function get_primitiveType_0(_this__u8e3s4) {
|
|
5047
5047
|
var tmp;
|
|
5048
5048
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5049
|
-
var t = _this__u8e3s4.
|
|
5049
|
+
var t = _this__u8e3s4.e3i_1;
|
|
5050
5050
|
var tmp_0;
|
|
5051
5051
|
if (t instanceof OpenAPIV30SingleType) {
|
|
5052
|
-
tmp_0 = t.
|
|
5052
|
+
tmp_0 = t.v3k_1;
|
|
5053
5053
|
} else {
|
|
5054
5054
|
if (t instanceof OpenAPIV30TypeArray) {
|
|
5055
|
-
var tmp0 = t.
|
|
5055
|
+
var tmp0 = t.a3n_1;
|
|
5056
5056
|
var tmp$ret$1;
|
|
5057
5057
|
$l$block: {
|
|
5058
5058
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -5078,13 +5078,13 @@ function get_primitiveType_0(_this__u8e3s4) {
|
|
|
5078
5078
|
tmp = tmp_0;
|
|
5079
5079
|
} else {
|
|
5080
5080
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5081
|
-
var t_0 = _this__u8e3s4.
|
|
5081
|
+
var t_0 = _this__u8e3s4.q3r_1;
|
|
5082
5082
|
var tmp_1;
|
|
5083
5083
|
if (t_0 instanceof OpenAPIV31SingleType) {
|
|
5084
|
-
tmp_1 = toV30(t_0.
|
|
5084
|
+
tmp_1 = toV30(t_0.h3t_1);
|
|
5085
5085
|
} else {
|
|
5086
5086
|
if (t_0 instanceof OpenAPIV31TypeArray) {
|
|
5087
|
-
var tmp0_0 = t_0.
|
|
5087
|
+
var tmp0_0 = t_0.g3t_1;
|
|
5088
5088
|
var tmp$ret$3;
|
|
5089
5089
|
$l$block_0: {
|
|
5090
5090
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -5111,13 +5111,13 @@ function get_primitiveType_0(_this__u8e3s4) {
|
|
|
5111
5111
|
tmp = tmp_1;
|
|
5112
5112
|
} else {
|
|
5113
5113
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5114
|
-
var t_1 = _this__u8e3s4.
|
|
5114
|
+
var t_1 = _this__u8e3s4.v41_1;
|
|
5115
5115
|
var tmp_2;
|
|
5116
5116
|
if (t_1 instanceof OpenAPIV32SingleType) {
|
|
5117
|
-
tmp_2 = toV30_0(t_1.
|
|
5117
|
+
tmp_2 = toV30_0(t_1.m43_1);
|
|
5118
5118
|
} else {
|
|
5119
5119
|
if (t_1 instanceof OpenAPIV32TypeArray) {
|
|
5120
|
-
var tmp0_1 = t_1.
|
|
5120
|
+
var tmp0_1 = t_1.l43_1;
|
|
5121
5121
|
var tmp$ret$5;
|
|
5122
5122
|
$l$block_1: {
|
|
5123
5123
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -5153,13 +5153,13 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5153
5153
|
var oneOf = get_oneOf(schemaObject);
|
|
5154
5154
|
var anyOf = get_anyOf(schemaObject);
|
|
5155
5155
|
var tmp;
|
|
5156
|
-
if (exists_0(schemaObject.
|
|
5157
|
-
var tmp0_subject = schemaObject.
|
|
5156
|
+
if (exists_0(schemaObject.j34())) {
|
|
5157
|
+
var tmp0_subject = schemaObject.j34();
|
|
5158
5158
|
var tmp_0;
|
|
5159
5159
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
5160
5160
|
tmp_0 = emptyList();
|
|
5161
5161
|
} else {
|
|
5162
|
-
var tmp1_safe_receiver = schemaObject.
|
|
5162
|
+
var tmp1_safe_receiver = schemaObject.j34();
|
|
5163
5163
|
var tmp_1;
|
|
5164
5164
|
if (tmp1_safe_receiver == null) {
|
|
5165
5165
|
tmp_1 = null;
|
|
@@ -5174,7 +5174,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5174
5174
|
} else {
|
|
5175
5175
|
// Inline function 'kotlin.takeIf' call
|
|
5176
5176
|
var tmp_3;
|
|
5177
|
-
if (!(tmp2_safe_receiver.
|
|
5177
|
+
if (!(tmp2_safe_receiver.i34() == null)) {
|
|
5178
5178
|
tmp_3 = tmp2_safe_receiver;
|
|
5179
5179
|
} else {
|
|
5180
5180
|
tmp_3 = null;
|
|
@@ -5194,7 +5194,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5194
5194
|
}
|
|
5195
5195
|
tmp = tmp_0;
|
|
5196
5196
|
} else if (!(oneOf == null) || !(anyOf == null)) {
|
|
5197
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
5197
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.e34());
|
|
5198
5198
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
5199
5199
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5200
5200
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
@@ -5219,7 +5219,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5219
5219
|
}
|
|
5220
5220
|
}
|
|
5221
5221
|
var tmp$ret$7 = tmp_7;
|
|
5222
|
-
destination.
|
|
5222
|
+
destination.y(tmp$ret$7);
|
|
5223
5223
|
}
|
|
5224
5224
|
var tmp_8 = listOf(new Union(null, tmp_5, tmp_6, toSet(destination)));
|
|
5225
5225
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -5248,11 +5248,11 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5248
5248
|
addAll(destination_0, list);
|
|
5249
5249
|
}
|
|
5250
5250
|
tmp = plus_0(tmp_8, destination_0);
|
|
5251
|
-
} else if (!(schemaObject.
|
|
5252
|
-
var tmp_10 = toDescriptionAnnotationList(schemaObject.
|
|
5251
|
+
} else if (!(schemaObject.h34() == null)) {
|
|
5252
|
+
var tmp_10 = toDescriptionAnnotationList(schemaObject.e34());
|
|
5253
5253
|
var tmp_11 = new DefinitionIdentifier(sanitize(name));
|
|
5254
5254
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5255
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
5255
|
+
var tmp0_elvis_lhs = schemaObject.h34();
|
|
5256
5256
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5257
5257
|
var tmp0_0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
5258
5258
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -5269,14 +5269,14 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5269
5269
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
5270
5270
|
while (_iterator__ex2g4s_2.u()) {
|
|
5271
5271
|
var e = _iterator__ex2g4s_2.v();
|
|
5272
|
-
var key = e.
|
|
5273
|
-
if (set.
|
|
5274
|
-
list_1.
|
|
5272
|
+
var key = e.bt_1;
|
|
5273
|
+
if (set.y(key)) {
|
|
5274
|
+
list_1.y(e);
|
|
5275
5275
|
}
|
|
5276
5276
|
}
|
|
5277
5277
|
var tmp_12 = listOf(new Type(null, tmp_10, tmp_11, new Shape(list_1), emptyList()));
|
|
5278
5278
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5279
|
-
var tmp0_1 = ensureNotNull(schemaObject.
|
|
5279
|
+
var tmp0_1 = ensureNotNull(schemaObject.h34());
|
|
5280
5280
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5281
5281
|
var destination_2 = ArrayList_init_$Create$();
|
|
5282
5282
|
var _iterator__ex2g4s_3 = tmp0_1.t();
|
|
@@ -5285,12 +5285,12 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5285
5285
|
var tmp_13;
|
|
5286
5286
|
if (isInterface(element_1, Reference)) {
|
|
5287
5287
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5288
|
-
var tmp0_elvis_lhs_0 = resolveSchemaRef_0(_this__u8e3s4, element_1).
|
|
5288
|
+
var tmp0_elvis_lhs_0 = resolveSchemaRef_0(_this__u8e3s4, element_1).wf_1.i34();
|
|
5289
5289
|
tmp_13 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
5290
5290
|
} else {
|
|
5291
5291
|
if (isInterface(element_1, Schema)) {
|
|
5292
5292
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5293
|
-
var tmp0_elvis_lhs_1 = element_1.
|
|
5293
|
+
var tmp0_elvis_lhs_1 = element_1.i34();
|
|
5294
5294
|
tmp_13 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
5295
5295
|
} else {
|
|
5296
5296
|
noWhenBranchMatchedException();
|
|
@@ -5301,13 +5301,13 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5301
5301
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5302
5302
|
var destination_3 = ArrayList_init_$Create$();
|
|
5303
5303
|
// Inline function 'kotlin.collections.iterator' call
|
|
5304
|
-
var _iterator__ex2g4s_4 = tmp0_2.
|
|
5304
|
+
var _iterator__ex2g4s_4 = tmp0_2.k1().t();
|
|
5305
5305
|
while (_iterator__ex2g4s_4.u()) {
|
|
5306
5306
|
var element_2 = _iterator__ex2g4s_4.v();
|
|
5307
5307
|
// Inline function 'kotlin.collections.component1' call
|
|
5308
|
-
var key_0 = element_2.
|
|
5308
|
+
var key_0 = element_2.l1();
|
|
5309
5309
|
// Inline function 'kotlin.collections.component2' call
|
|
5310
|
-
var value = element_2.
|
|
5310
|
+
var value = element_2.m1();
|
|
5311
5311
|
var list_2 = flattenSchemaOrRef_0(_this__u8e3s4, value, className([name, key_0]));
|
|
5312
5312
|
addAll(destination_3, list_2);
|
|
5313
5313
|
}
|
|
@@ -5315,29 +5315,29 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5315
5315
|
addAll(destination_2, list_3);
|
|
5316
5316
|
}
|
|
5317
5317
|
tmp = plus_0(tmp_12, destination_2);
|
|
5318
|
-
} else if (!(schemaObject.
|
|
5318
|
+
} else if (!(schemaObject.f34() == null)) {
|
|
5319
5319
|
// Inline function 'kotlin.collections.map' call
|
|
5320
|
-
var this_1 = ensureNotNull(schemaObject.
|
|
5320
|
+
var this_1 = ensureNotNull(schemaObject.f34());
|
|
5321
5321
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5322
5322
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
5323
5323
|
var _iterator__ex2g4s_5 = this_1.t();
|
|
5324
5324
|
while (_iterator__ex2g4s_5.u()) {
|
|
5325
5325
|
var item_0 = _iterator__ex2g4s_5.v();
|
|
5326
|
-
var tmp$ret$31 = item_0.
|
|
5327
|
-
destination_4.
|
|
5326
|
+
var tmp$ret$31 = item_0.n11();
|
|
5327
|
+
destination_4.y(tmp$ret$31);
|
|
5328
5328
|
}
|
|
5329
5329
|
// Inline function 'kotlin.let' call
|
|
5330
5330
|
var it = toSet(destination_4);
|
|
5331
|
-
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.
|
|
5331
|
+
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.e34()), new DefinitionIdentifier(name), it));
|
|
5332
5332
|
} else {
|
|
5333
5333
|
var tmp5_subject = get_primitiveType_0(schemaObject);
|
|
5334
5334
|
var tmp_14;
|
|
5335
|
-
switch (tmp5_subject == null ? -1 : tmp5_subject.
|
|
5335
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.c3_1) {
|
|
5336
5336
|
case -1:
|
|
5337
5337
|
case 5:
|
|
5338
5338
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5339
5339
|
|
|
5340
|
-
var tmp0_elvis_lhs_2 = schemaObject.
|
|
5340
|
+
var tmp0_elvis_lhs_2 = schemaObject.i34();
|
|
5341
5341
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5342
5342
|
|
|
5343
5343
|
var tmp0_3 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
@@ -5346,23 +5346,23 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5346
5346
|
var destination_5 = ArrayList_init_$Create$();
|
|
5347
5347
|
// Inline function 'kotlin.collections.iterator' call
|
|
5348
5348
|
|
|
5349
|
-
var _iterator__ex2g4s_6 = tmp0_3.
|
|
5349
|
+
var _iterator__ex2g4s_6 = tmp0_3.k1().t();
|
|
5350
5350
|
while (_iterator__ex2g4s_6.u()) {
|
|
5351
5351
|
var element_3 = _iterator__ex2g4s_6.v();
|
|
5352
5352
|
// Inline function 'kotlin.collections.component1' call
|
|
5353
|
-
var key_1 = element_3.
|
|
5353
|
+
var key_1 = element_3.l1();
|
|
5354
5354
|
// Inline function 'kotlin.collections.component2' call
|
|
5355
|
-
var value_0 = element_3.
|
|
5355
|
+
var value_0 = element_3.m1();
|
|
5356
5356
|
var list_4 = flattenSchemaOrRef_0(_this__u8e3s4, value_0, className([name, key_1]));
|
|
5357
5357
|
addAll(destination_5, list_4);
|
|
5358
5358
|
}
|
|
5359
5359
|
|
|
5360
5360
|
var fields = destination_5;
|
|
5361
|
-
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.
|
|
5361
|
+
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.e34()), new DefinitionIdentifier(name), new Shape(toField_4(_this__u8e3s4, schemaObject, name)), emptyList()));
|
|
5362
5362
|
tmp_14 = plus_0(schema, fields);
|
|
5363
5363
|
break;
|
|
5364
5364
|
case 4:
|
|
5365
|
-
var tmp6_safe_receiver = schemaObject.
|
|
5365
|
+
var tmp6_safe_receiver = schemaObject.g34();
|
|
5366
5366
|
var tmp_15;
|
|
5367
5367
|
if (tmp6_safe_receiver == null) {
|
|
5368
5368
|
tmp_15 = null;
|
|
@@ -5400,23 +5400,23 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5400
5400
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5401
5401
|
var destination = ArrayList_init_$Create$();
|
|
5402
5402
|
// Inline function 'kotlin.collections.iterator' call
|
|
5403
|
-
var _iterator__ex2g4s = tmp0.
|
|
5403
|
+
var _iterator__ex2g4s = tmp0.k1().t();
|
|
5404
5404
|
while (_iterator__ex2g4s.u()) {
|
|
5405
5405
|
var element = _iterator__ex2g4s.v();
|
|
5406
5406
|
// Inline function 'kotlin.collections.component2' call
|
|
5407
|
-
var mediaObject = element.
|
|
5408
|
-
var schema = mediaObject.
|
|
5407
|
+
var mediaObject = element.m1();
|
|
5408
|
+
var schema = mediaObject.n34();
|
|
5409
5409
|
var tmp;
|
|
5410
5410
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
5411
5411
|
var tmp0_subject = get_primitiveType_0(schema);
|
|
5412
5412
|
var tmp_0;
|
|
5413
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
5413
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.c3_1) {
|
|
5414
5414
|
case -1:
|
|
5415
5415
|
case 5:
|
|
5416
5416
|
tmp_0 = flatten_0(_this__u8e3s4, schema, className([name, _StatusCode___get_value__impl__we50mu(statusCode), 'ResponseBody']));
|
|
5417
5417
|
break;
|
|
5418
5418
|
case 4:
|
|
5419
|
-
var tmp1_safe_receiver = schema.
|
|
5419
|
+
var tmp1_safe_receiver = schema.g34();
|
|
5420
5420
|
var tmp_1;
|
|
5421
5421
|
if (tmp1_safe_receiver == null) {
|
|
5422
5422
|
tmp_1 = null;
|
|
@@ -5444,9 +5444,9 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5444
5444
|
return destination;
|
|
5445
5445
|
}
|
|
5446
5446
|
function resolveResponse_0(_this__u8e3s4, reference) {
|
|
5447
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5448
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5449
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5447
|
+
var tmp0_safe_receiver = _this__u8e3s4.a37();
|
|
5448
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b10();
|
|
5449
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference(reference));
|
|
5450
5450
|
var tmp;
|
|
5451
5451
|
if (tmp2_safe_receiver == null) {
|
|
5452
5452
|
tmp = null;
|
|
@@ -5467,7 +5467,7 @@ function resolveResponse_0(_this__u8e3s4, reference) {
|
|
|
5467
5467
|
var tmp3_elvis_lhs = tmp;
|
|
5468
5468
|
var tmp_1;
|
|
5469
5469
|
if (tmp3_elvis_lhs == null) {
|
|
5470
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5470
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.d34());
|
|
5471
5471
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5472
5472
|
} else {
|
|
5473
5473
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5475,9 +5475,9 @@ function resolveResponse_0(_this__u8e3s4, reference) {
|
|
|
5475
5475
|
return tmp_1;
|
|
5476
5476
|
}
|
|
5477
5477
|
function resolveParameter_0(_this__u8e3s4, reference) {
|
|
5478
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5479
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5480
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5478
|
+
var tmp0_safe_receiver = _this__u8e3s4.a37();
|
|
5479
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u34();
|
|
5480
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference(reference));
|
|
5481
5481
|
var tmp;
|
|
5482
5482
|
if (tmp2_safe_receiver == null) {
|
|
5483
5483
|
tmp = null;
|
|
@@ -5500,13 +5500,13 @@ function resolveParameter_0(_this__u8e3s4, reference) {
|
|
|
5500
5500
|
function get_required(_this__u8e3s4) {
|
|
5501
5501
|
var tmp;
|
|
5502
5502
|
if (_this__u8e3s4 instanceof OpenAPIV30Parameter) {
|
|
5503
|
-
tmp = _this__u8e3s4.
|
|
5503
|
+
tmp = _this__u8e3s4.r3j_1;
|
|
5504
5504
|
} else {
|
|
5505
5505
|
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
5506
|
-
tmp = _this__u8e3s4.
|
|
5506
|
+
tmp = _this__u8e3s4.f3q_1;
|
|
5507
5507
|
} else {
|
|
5508
5508
|
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
5509
|
-
tmp = _this__u8e3s4.
|
|
5509
|
+
tmp = _this__u8e3s4.k40_1;
|
|
5510
5510
|
} else {
|
|
5511
5511
|
tmp = null;
|
|
5512
5512
|
}
|
|
@@ -5517,13 +5517,13 @@ function get_required(_this__u8e3s4) {
|
|
|
5517
5517
|
function get_description(_this__u8e3s4) {
|
|
5518
5518
|
var tmp;
|
|
5519
5519
|
if (_this__u8e3s4 instanceof OpenAPIV30Parameter) {
|
|
5520
|
-
tmp = _this__u8e3s4.
|
|
5520
|
+
tmp = _this__u8e3s4.q3j_1;
|
|
5521
5521
|
} else {
|
|
5522
5522
|
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
5523
|
-
tmp = _this__u8e3s4.
|
|
5523
|
+
tmp = _this__u8e3s4.e3q_1;
|
|
5524
5524
|
} else {
|
|
5525
5525
|
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
5526
|
-
tmp = _this__u8e3s4.
|
|
5526
|
+
tmp = _this__u8e3s4.j40_1;
|
|
5527
5527
|
} else {
|
|
5528
5528
|
tmp = null;
|
|
5529
5529
|
}
|
|
@@ -5532,9 +5532,9 @@ function get_description(_this__u8e3s4) {
|
|
|
5532
5532
|
return tmp;
|
|
5533
5533
|
}
|
|
5534
5534
|
function resolveRequestBody(_this__u8e3s4, reference) {
|
|
5535
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5536
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5537
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5535
|
+
var tmp0_safe_receiver = _this__u8e3s4.a37();
|
|
5536
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t3h();
|
|
5537
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference(reference));
|
|
5538
5538
|
var tmp;
|
|
5539
5539
|
if (tmp2_safe_receiver == null) {
|
|
5540
5540
|
tmp = null;
|
|
@@ -5555,7 +5555,7 @@ function resolveRequestBody(_this__u8e3s4, reference) {
|
|
|
5555
5555
|
var tmp3_elvis_lhs = tmp;
|
|
5556
5556
|
var tmp_1;
|
|
5557
5557
|
if (tmp3_elvis_lhs == null) {
|
|
5558
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5558
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.d34());
|
|
5559
5559
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5560
5560
|
} else {
|
|
5561
5561
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5563,9 +5563,9 @@ function resolveRequestBody(_this__u8e3s4, reference) {
|
|
|
5563
5563
|
return tmp_1;
|
|
5564
5564
|
}
|
|
5565
5565
|
function resolveSchemaRef_0(_this__u8e3s4, reference) {
|
|
5566
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5567
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5568
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5566
|
+
var tmp0_safe_receiver = _this__u8e3s4.a37();
|
|
5567
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s3h();
|
|
5568
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference(reference));
|
|
5569
5569
|
var tmp;
|
|
5570
5570
|
if (tmp2_safe_receiver == null) {
|
|
5571
5571
|
tmp = null;
|
|
@@ -5586,7 +5586,7 @@ function resolveSchemaRef_0(_this__u8e3s4, reference) {
|
|
|
5586
5586
|
var tmp3_elvis_lhs = tmp;
|
|
5587
5587
|
var tmp_1;
|
|
5588
5588
|
if (tmp3_elvis_lhs == null) {
|
|
5589
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5589
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.d34());
|
|
5590
5590
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5591
5591
|
} else {
|
|
5592
5592
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5599,7 +5599,7 @@ function exists_0(_this__u8e3s4) {
|
|
|
5599
5599
|
tmp = true;
|
|
5600
5600
|
} else {
|
|
5601
5601
|
if (!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, BooleanValue) : false) {
|
|
5602
|
-
tmp = _this__u8e3s4.
|
|
5602
|
+
tmp = _this__u8e3s4.m1();
|
|
5603
5603
|
} else {
|
|
5604
5604
|
if (!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, Reference) : false) {
|
|
5605
5605
|
tmp = true;
|
|
@@ -5616,7 +5616,7 @@ function exists_0(_this__u8e3s4) {
|
|
|
5616
5616
|
}
|
|
5617
5617
|
function isPrimitive_0(_this__u8e3s4) {
|
|
5618
5618
|
var tmp;
|
|
5619
|
-
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.
|
|
5619
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.c3_1) {
|
|
5620
5620
|
case 0:
|
|
5621
5621
|
tmp = true;
|
|
5622
5622
|
break;
|
|
@@ -5650,15 +5650,15 @@ function isPrimitive_0(_this__u8e3s4) {
|
|
|
5650
5650
|
function toPrimitive_1(_this__u8e3s4) {
|
|
5651
5651
|
var tmp0_subject = get_primitiveType_0(_this__u8e3s4);
|
|
5652
5652
|
var tmp;
|
|
5653
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
5653
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.c3_1) {
|
|
5654
5654
|
case 0:
|
|
5655
|
-
tmp = !(_this__u8e3s4.
|
|
5655
|
+
tmp = !(_this__u8e3s4.l34() == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.l34()))) : _this__u8e3s4.k34() === 'binary' ? Bytes_instance : new String_0(null);
|
|
5656
5656
|
break;
|
|
5657
5657
|
case 2:
|
|
5658
|
-
tmp = new Integer(_this__u8e3s4.
|
|
5658
|
+
tmp = new Integer(_this__u8e3s4.k34() === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5659
5659
|
break;
|
|
5660
5660
|
case 1:
|
|
5661
|
-
tmp = new Number_0(_this__u8e3s4.
|
|
5661
|
+
tmp = new Number_0(_this__u8e3s4.k34() === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5662
5662
|
break;
|
|
5663
5663
|
case 3:
|
|
5664
5664
|
tmp = Boolean_instance;
|
|
@@ -5670,28 +5670,28 @@ function toPrimitive_1(_this__u8e3s4) {
|
|
|
5670
5670
|
return tmp;
|
|
5671
5671
|
}
|
|
5672
5672
|
function toLinkInfo_0(_this__u8e3s4, name) {
|
|
5673
|
-
var tmp = _this__u8e3s4.
|
|
5674
|
-
var tmp_0 = _this__u8e3s4.
|
|
5673
|
+
var tmp = _this__u8e3s4.t34();
|
|
5674
|
+
var tmp_0 = _this__u8e3s4.s34();
|
|
5675
5675
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5676
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
5676
|
+
var tmp0_elvis_lhs = _this__u8e3s4.u34();
|
|
5677
5677
|
// Inline function 'kotlin.collections.mapValues' call
|
|
5678
5678
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
5679
5679
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
5680
|
-
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.
|
|
5680
|
+
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.b1()));
|
|
5681
5681
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
5682
|
-
var _iterator__ex2g4s = this_0.
|
|
5682
|
+
var _iterator__ex2g4s = this_0.k1().t();
|
|
5683
5683
|
while (_iterator__ex2g4s.u()) {
|
|
5684
5684
|
var element = _iterator__ex2g4s.v();
|
|
5685
|
-
var tmp_1 = element.
|
|
5686
|
-
var tmp$ret$2 = asLinkExpression(element.
|
|
5687
|
-
destination.
|
|
5685
|
+
var tmp_1 = element.l1();
|
|
5686
|
+
var tmp$ret$2 = asLinkExpression(element.m1());
|
|
5687
|
+
destination.t2(tmp_1, tmp$ret$2);
|
|
5688
5688
|
}
|
|
5689
5689
|
var tmp_2 = destination;
|
|
5690
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5690
|
+
var tmp0_safe_receiver = _this__u8e3s4.v34();
|
|
5691
5691
|
var tmp_3 = tmp0_safe_receiver == null ? null : asLinkExpression(tmp0_safe_receiver);
|
|
5692
|
-
var tmp_4 = _this__u8e3s4.
|
|
5693
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
5694
|
-
return new LinkInfo(name, tmp, tmp_0, tmp_2, tmp_3, tmp_4, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5692
|
+
var tmp_4 = _this__u8e3s4.e34();
|
|
5693
|
+
var tmp1_safe_receiver = _this__u8e3s4.w34();
|
|
5694
|
+
return new LinkInfo(name, tmp, tmp_0, tmp_2, tmp_3, tmp_4, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.a35_1);
|
|
5695
5695
|
}
|
|
5696
5696
|
function resolve_5(_this__u8e3s4, linkOrReference) {
|
|
5697
5697
|
var tmp;
|
|
@@ -5709,13 +5709,13 @@ function resolve_5(_this__u8e3s4, linkOrReference) {
|
|
|
5709
5709
|
function get_required_0(_this__u8e3s4) {
|
|
5710
5710
|
var tmp;
|
|
5711
5711
|
if (_this__u8e3s4 instanceof OpenAPIV30Header) {
|
|
5712
|
-
tmp = _this__u8e3s4.
|
|
5712
|
+
tmp = _this__u8e3s4.p3m_1;
|
|
5713
5713
|
} else {
|
|
5714
5714
|
if (_this__u8e3s4 instanceof OpenAPIV31Header) {
|
|
5715
|
-
tmp = _this__u8e3s4.
|
|
5715
|
+
tmp = _this__u8e3s4.m3t_1;
|
|
5716
5716
|
} else {
|
|
5717
5717
|
if (_this__u8e3s4 instanceof OpenAPIV32Header) {
|
|
5718
|
-
tmp = _this__u8e3s4.
|
|
5718
|
+
tmp = _this__u8e3s4.r43_1;
|
|
5719
5719
|
} else {
|
|
5720
5720
|
tmp = null;
|
|
5721
5721
|
}
|
|
@@ -5726,13 +5726,13 @@ function get_required_0(_this__u8e3s4) {
|
|
|
5726
5726
|
function get_schema(_this__u8e3s4) {
|
|
5727
5727
|
var tmp;
|
|
5728
5728
|
if (_this__u8e3s4 instanceof OpenAPIV30Header) {
|
|
5729
|
-
tmp = _this__u8e3s4.
|
|
5729
|
+
tmp = _this__u8e3s4.v3m_1;
|
|
5730
5730
|
} else {
|
|
5731
5731
|
if (_this__u8e3s4 instanceof OpenAPIV31Header) {
|
|
5732
|
-
tmp = _this__u8e3s4.
|
|
5732
|
+
tmp = _this__u8e3s4.s3t_1;
|
|
5733
5733
|
} else {
|
|
5734
5734
|
if (_this__u8e3s4 instanceof OpenAPIV32Header) {
|
|
5735
|
-
tmp = _this__u8e3s4.
|
|
5735
|
+
tmp = _this__u8e3s4.x43_1;
|
|
5736
5736
|
} else {
|
|
5737
5737
|
tmp = null;
|
|
5738
5738
|
}
|
|
@@ -5741,9 +5741,9 @@ function get_schema(_this__u8e3s4) {
|
|
|
5741
5741
|
return tmp;
|
|
5742
5742
|
}
|
|
5743
5743
|
function resolveHeader_0(_this__u8e3s4, reference) {
|
|
5744
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5745
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5746
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5744
|
+
var tmp0_safe_receiver = _this__u8e3s4.a37();
|
|
5745
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zz();
|
|
5746
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference(reference));
|
|
5747
5747
|
var tmp;
|
|
5748
5748
|
if (tmp2_safe_receiver == null) {
|
|
5749
5749
|
tmp = null;
|
|
@@ -5764,7 +5764,7 @@ function resolveHeader_0(_this__u8e3s4, reference) {
|
|
|
5764
5764
|
var tmp3_elvis_lhs = tmp;
|
|
5765
5765
|
var tmp_1;
|
|
5766
5766
|
if (tmp3_elvis_lhs == null) {
|
|
5767
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5767
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.d34());
|
|
5768
5768
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5769
5769
|
} else {
|
|
5770
5770
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5772,15 +5772,15 @@ function resolveHeader_0(_this__u8e3s4, reference) {
|
|
|
5772
5772
|
return tmp_1;
|
|
5773
5773
|
}
|
|
5774
5774
|
function toV30(_this__u8e3s4) {
|
|
5775
|
-
return valueOf_0(_this__u8e3s4.
|
|
5775
|
+
return valueOf_0(_this__u8e3s4.b3_1);
|
|
5776
5776
|
}
|
|
5777
5777
|
function toV30_0(_this__u8e3s4) {
|
|
5778
|
-
return valueOf_0(_this__u8e3s4.
|
|
5778
|
+
return valueOf_0(_this__u8e3s4.b3_1);
|
|
5779
5779
|
}
|
|
5780
5780
|
function get_oneOf(_this__u8e3s4) {
|
|
5781
5781
|
var tmp;
|
|
5782
5782
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5783
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
5783
|
+
var tmp1_safe_receiver = _this__u8e3s4.a3i_1;
|
|
5784
5784
|
var tmp_0;
|
|
5785
5785
|
if (tmp1_safe_receiver == null) {
|
|
5786
5786
|
tmp_0 = null;
|
|
@@ -5792,14 +5792,14 @@ function get_oneOf(_this__u8e3s4) {
|
|
|
5792
5792
|
while (_iterator__ex2g4s.u()) {
|
|
5793
5793
|
var item = _iterator__ex2g4s.v();
|
|
5794
5794
|
var tmp$ret$0 = toCommon(item);
|
|
5795
|
-
destination.
|
|
5795
|
+
destination.y(tmp$ret$0);
|
|
5796
5796
|
}
|
|
5797
5797
|
tmp_0 = destination;
|
|
5798
5798
|
}
|
|
5799
5799
|
tmp = tmp_0;
|
|
5800
5800
|
} else {
|
|
5801
5801
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5802
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
5802
|
+
var tmp2_safe_receiver = _this__u8e3s4.m3r_1;
|
|
5803
5803
|
var tmp_1;
|
|
5804
5804
|
if (tmp2_safe_receiver == null) {
|
|
5805
5805
|
tmp_1 = null;
|
|
@@ -5811,14 +5811,14 @@ function get_oneOf(_this__u8e3s4) {
|
|
|
5811
5811
|
while (_iterator__ex2g4s_0.u()) {
|
|
5812
5812
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
5813
5813
|
var tmp$ret$3 = toCommon_0(item_0);
|
|
5814
|
-
destination_0.
|
|
5814
|
+
destination_0.y(tmp$ret$3);
|
|
5815
5815
|
}
|
|
5816
5816
|
tmp_1 = destination_0;
|
|
5817
5817
|
}
|
|
5818
5818
|
tmp = tmp_1;
|
|
5819
5819
|
} else {
|
|
5820
5820
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5821
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
5821
|
+
var tmp3_safe_receiver = _this__u8e3s4.r41_1;
|
|
5822
5822
|
var tmp_2;
|
|
5823
5823
|
if (tmp3_safe_receiver == null) {
|
|
5824
5824
|
tmp_2 = null;
|
|
@@ -5830,7 +5830,7 @@ function get_oneOf(_this__u8e3s4) {
|
|
|
5830
5830
|
while (_iterator__ex2g4s_1.u()) {
|
|
5831
5831
|
var item_1 = _iterator__ex2g4s_1.v();
|
|
5832
5832
|
var tmp$ret$6 = toCommon_1(item_1);
|
|
5833
|
-
destination_1.
|
|
5833
|
+
destination_1.y(tmp$ret$6);
|
|
5834
5834
|
}
|
|
5835
5835
|
tmp_2 = destination_1;
|
|
5836
5836
|
}
|
|
@@ -5845,7 +5845,7 @@ function get_oneOf(_this__u8e3s4) {
|
|
|
5845
5845
|
function get_anyOf(_this__u8e3s4) {
|
|
5846
5846
|
var tmp;
|
|
5847
5847
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5848
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
5848
|
+
var tmp1_safe_receiver = _this__u8e3s4.b3i_1;
|
|
5849
5849
|
var tmp_0;
|
|
5850
5850
|
if (tmp1_safe_receiver == null) {
|
|
5851
5851
|
tmp_0 = null;
|
|
@@ -5857,14 +5857,14 @@ function get_anyOf(_this__u8e3s4) {
|
|
|
5857
5857
|
while (_iterator__ex2g4s.u()) {
|
|
5858
5858
|
var item = _iterator__ex2g4s.v();
|
|
5859
5859
|
var tmp$ret$0 = toCommon(item);
|
|
5860
|
-
destination.
|
|
5860
|
+
destination.y(tmp$ret$0);
|
|
5861
5861
|
}
|
|
5862
5862
|
tmp_0 = destination;
|
|
5863
5863
|
}
|
|
5864
5864
|
tmp = tmp_0;
|
|
5865
5865
|
} else {
|
|
5866
5866
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5867
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
5867
|
+
var tmp2_safe_receiver = _this__u8e3s4.n3r_1;
|
|
5868
5868
|
var tmp_1;
|
|
5869
5869
|
if (tmp2_safe_receiver == null) {
|
|
5870
5870
|
tmp_1 = null;
|
|
@@ -5876,14 +5876,14 @@ function get_anyOf(_this__u8e3s4) {
|
|
|
5876
5876
|
while (_iterator__ex2g4s_0.u()) {
|
|
5877
5877
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
5878
5878
|
var tmp$ret$3 = toCommon_0(item_0);
|
|
5879
|
-
destination_0.
|
|
5879
|
+
destination_0.y(tmp$ret$3);
|
|
5880
5880
|
}
|
|
5881
5881
|
tmp_1 = destination_0;
|
|
5882
5882
|
}
|
|
5883
5883
|
tmp = tmp_1;
|
|
5884
5884
|
} else {
|
|
5885
5885
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5886
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
5886
|
+
var tmp3_safe_receiver = _this__u8e3s4.s41_1;
|
|
5887
5887
|
var tmp_2;
|
|
5888
5888
|
if (tmp3_safe_receiver == null) {
|
|
5889
5889
|
tmp_2 = null;
|
|
@@ -5895,7 +5895,7 @@ function get_anyOf(_this__u8e3s4) {
|
|
|
5895
5895
|
while (_iterator__ex2g4s_1.u()) {
|
|
5896
5896
|
var item_1 = _iterator__ex2g4s_1.v();
|
|
5897
5897
|
var tmp$ret$6 = toCommon_1(item_1);
|
|
5898
|
-
destination_1.
|
|
5898
|
+
destination_1.y(tmp$ret$6);
|
|
5899
5899
|
}
|
|
5900
5900
|
tmp_2 = destination_1;
|
|
5901
5901
|
}
|
|
@@ -5913,7 +5913,7 @@ function resolve_6(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
5913
5913
|
tmp = schemaOrReferenceOrBoolean;
|
|
5914
5914
|
} else {
|
|
5915
5915
|
if (isInterface(schemaOrReferenceOrBoolean, Reference)) {
|
|
5916
|
-
tmp = resolveSchemaRef_0(_this__u8e3s4, schemaOrReferenceOrBoolean).
|
|
5916
|
+
tmp = resolveSchemaRef_0(_this__u8e3s4, schemaOrReferenceOrBoolean).wf_1;
|
|
5917
5917
|
} else {
|
|
5918
5918
|
if (isInterface(schemaOrReferenceOrBoolean, BooleanValue)) {
|
|
5919
5919
|
var reason = 'Not yet implemented';
|
|
@@ -5927,27 +5927,27 @@ function resolve_6(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
5927
5927
|
}
|
|
5928
5928
|
function toField_4(_this__u8e3s4, schema, name) {
|
|
5929
5929
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5930
|
-
var tmp0_elvis_lhs = schema.
|
|
5930
|
+
var tmp0_elvis_lhs = schema.i34();
|
|
5931
5931
|
// Inline function 'kotlin.collections.map' call
|
|
5932
5932
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
5933
5933
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5934
|
-
var destination = ArrayList_init_$Create$_0(this_0.
|
|
5934
|
+
var destination = ArrayList_init_$Create$_0(this_0.b1());
|
|
5935
5935
|
// Inline function 'kotlin.collections.iterator' call
|
|
5936
|
-
var _iterator__ex2g4s = this_0.
|
|
5936
|
+
var _iterator__ex2g4s = this_0.k1().t();
|
|
5937
5937
|
while (_iterator__ex2g4s.u()) {
|
|
5938
5938
|
var item = _iterator__ex2g4s.v();
|
|
5939
5939
|
// Inline function 'kotlin.collections.component1' call
|
|
5940
|
-
var key = item.
|
|
5940
|
+
var key = item.l1();
|
|
5941
5941
|
// Inline function 'kotlin.collections.component2' call
|
|
5942
|
-
var value = item.
|
|
5943
|
-
var tmp0_safe_receiver = schema.
|
|
5944
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5942
|
+
var value = item.m1();
|
|
5943
|
+
var tmp0_safe_receiver = schema.h1f();
|
|
5944
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v1(key);
|
|
5945
5945
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
5946
5946
|
var tmp;
|
|
5947
5947
|
if (isInterface(value, Schema)) {
|
|
5948
5948
|
var tmp3_identifier = new FieldIdentifier(key);
|
|
5949
|
-
var tmp4_annotations = toDescriptionAnnotationList(value.
|
|
5950
|
-
var tmp5_reference = !(value.
|
|
5949
|
+
var tmp4_annotations = toDescriptionAnnotationList(value.e34());
|
|
5950
|
+
var tmp5_reference = !(value.f34() == null) ? toReference_2(_this__u8e3s4, value, isNullable, className([name, key])) : equals(get_primitiveType_0(value), OpenAPIV30Type_ARRAY_getInstance()) ? toReference_2(_this__u8e3s4, value, isNullable, className([name, key, 'Array'])) : toReference_2(_this__u8e3s4, value, isNullable, className([name, key]));
|
|
5951
5951
|
tmp = new Field(tmp4_annotations, tmp3_identifier, tmp5_reference);
|
|
5952
5952
|
} else {
|
|
5953
5953
|
if (isInterface(value, Reference)) {
|
|
@@ -5960,7 +5960,7 @@ function toField_4(_this__u8e3s4, schema, name) {
|
|
|
5960
5960
|
}
|
|
5961
5961
|
}
|
|
5962
5962
|
var tmp$ret$4 = tmp;
|
|
5963
|
-
destination.
|
|
5963
|
+
destination.y(tmp$ret$4);
|
|
5964
5964
|
}
|
|
5965
5965
|
return destination;
|
|
5966
5966
|
}
|
|
@@ -5970,9 +5970,9 @@ function asLinkExpression(_this__u8e3s4) {
|
|
|
5970
5970
|
return tmp1_elvis_lhs == null ? toString(_this__u8e3s4) : tmp1_elvis_lhs;
|
|
5971
5971
|
}
|
|
5972
5972
|
function resolveLink(_this__u8e3s4, reference) {
|
|
5973
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5974
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5975
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5973
|
+
var tmp0_safe_receiver = _this__u8e3s4.a37();
|
|
5974
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m34();
|
|
5975
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference(reference));
|
|
5976
5976
|
var tmp;
|
|
5977
5977
|
if (tmp2_safe_receiver == null) {
|
|
5978
5978
|
tmp = null;
|
|
@@ -5993,7 +5993,7 @@ function resolveLink(_this__u8e3s4, reference) {
|
|
|
5993
5993
|
var tmp3_elvis_lhs = tmp;
|
|
5994
5994
|
var tmp_1;
|
|
5995
5995
|
if (tmp3_elvis_lhs == null) {
|
|
5996
|
-
var message = 'Cannot resolve link ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5996
|
+
var message = 'Cannot resolve link ref: ' + Ref__toString_impl_irb7zi(reference.d34());
|
|
5997
5997
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5998
5998
|
} else {
|
|
5999
5999
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -6041,16 +6041,16 @@ function toCommon_1(_this__u8e3s4) {
|
|
|
6041
6041
|
}
|
|
6042
6042
|
function parseParameters$lambda_0($this_parseParameters) {
|
|
6043
6043
|
return function ($this$flatMapRequests) {
|
|
6044
|
-
var parameters = plus_0(resolveParameters_0($this_parseParameters, $this$flatMapRequests.
|
|
6045
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
6046
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
6044
|
+
var parameters = plus_0(resolveParameters_0($this_parseParameters, $this$flatMapRequests.m4a_1.u34()), resolveParameters_0($this_parseParameters, $this$flatMapRequests.o4a_1.u34()));
|
|
6045
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.o4a_1);
|
|
6046
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.l4a_1) + $this$flatMapRequests.n4a_1.b3_1 : tmp0_elvis_lhs;
|
|
6047
6047
|
// Inline function 'kotlin.collections.flatMap' call
|
|
6048
6048
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
6049
6049
|
var destination = ArrayList_init_$Create$();
|
|
6050
6050
|
var _iterator__ex2g4s = parameters.t();
|
|
6051
6051
|
while (_iterator__ex2g4s.u()) {
|
|
6052
6052
|
var element = _iterator__ex2g4s.v();
|
|
6053
|
-
var tmp0_safe_receiver = element.
|
|
6053
|
+
var tmp0_safe_receiver = element.n34();
|
|
6054
6054
|
var tmp;
|
|
6055
6055
|
if (tmp0_safe_receiver == null) {
|
|
6056
6056
|
tmp = null;
|
|
@@ -6067,9 +6067,9 @@ function parseParameters$lambda_0($this_parseParameters) {
|
|
|
6067
6067
|
}
|
|
6068
6068
|
function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
6069
6069
|
return function ($this$flatMapRequests) {
|
|
6070
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
6071
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
6072
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
6070
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.o4a_1);
|
|
6071
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.l4a_1) + $this$flatMapRequests.n4a_1.b3_1 : tmp0_elvis_lhs;
|
|
6072
|
+
var tmp1_safe_receiver = $this$flatMapRequests.o4a_1.v34();
|
|
6073
6073
|
var tmp;
|
|
6074
6074
|
if (tmp1_safe_receiver == null) {
|
|
6075
6075
|
tmp = null;
|
|
@@ -6079,29 +6079,29 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
6079
6079
|
}
|
|
6080
6080
|
var tmp2_safe_receiver = tmp;
|
|
6081
6081
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
6082
|
-
var tmp0_elvis_lhs_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
6082
|
+
var tmp0_elvis_lhs_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.n11();
|
|
6083
6083
|
// Inline function 'kotlin.collections.flatMap' call
|
|
6084
6084
|
var tmp0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
6085
6085
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
6086
6086
|
var destination = ArrayList_init_$Create$();
|
|
6087
6087
|
// Inline function 'kotlin.collections.iterator' call
|
|
6088
|
-
var _iterator__ex2g4s = tmp0.
|
|
6088
|
+
var _iterator__ex2g4s = tmp0.k1().t();
|
|
6089
6089
|
while (_iterator__ex2g4s.u()) {
|
|
6090
6090
|
var element = _iterator__ex2g4s.v();
|
|
6091
6091
|
// Inline function 'kotlin.collections.component2' call
|
|
6092
|
-
var mediaObject = element.
|
|
6093
|
-
var schema = mediaObject.
|
|
6092
|
+
var mediaObject = element.m1();
|
|
6093
|
+
var schema = mediaObject.n34();
|
|
6094
6094
|
var tmp_0;
|
|
6095
6095
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
6096
6096
|
var tmp0_subject = get_primitiveType_0(schema);
|
|
6097
6097
|
var tmp_1;
|
|
6098
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
6098
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.c3_1) {
|
|
6099
6099
|
case -1:
|
|
6100
6100
|
case 5:
|
|
6101
6101
|
tmp_1 = flatten_0($this_parseRequestBody, schema, className([name, 'RequestBody']));
|
|
6102
6102
|
break;
|
|
6103
6103
|
case 4:
|
|
6104
|
-
var tmp1_safe_receiver_0 = schema.
|
|
6104
|
+
var tmp1_safe_receiver_0 = schema.g34();
|
|
6105
6105
|
var tmp_2;
|
|
6106
6106
|
if (tmp1_safe_receiver_0 == null) {
|
|
6107
6107
|
tmp_2 = null;
|
|
@@ -6141,15 +6141,15 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
6141
6141
|
}
|
|
6142
6142
|
function parseResponseBody$lambda_0($this_parseResponseBody) {
|
|
6143
6143
|
return function ($this$flatMapResponses) {
|
|
6144
|
-
var tmp0_elvis_lhs = toName($this$flatMapResponses.
|
|
6145
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
6146
|
-
var res = $this$flatMapResponses.
|
|
6144
|
+
var tmp0_elvis_lhs = toName($this$flatMapResponses.s4a_1);
|
|
6145
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.p4a_1) + $this$flatMapResponses.r4a_1.b3_1 : tmp0_elvis_lhs;
|
|
6146
|
+
var res = $this$flatMapResponses.u4a_1;
|
|
6147
6147
|
var tmp;
|
|
6148
6148
|
if (isInterface(res, Reference)) {
|
|
6149
|
-
tmp = flatMapResponse($this_parseResponseBody, resolveResponse_0($this_parseResponseBody, res).
|
|
6149
|
+
tmp = flatMapResponse($this_parseResponseBody, resolveResponse_0($this_parseResponseBody, res).wf_1, name, $this$flatMapResponses.t4a_1);
|
|
6150
6150
|
} else {
|
|
6151
6151
|
if (isInterface(res, Response_0)) {
|
|
6152
|
-
tmp = flatMapResponse($this_parseResponseBody, res, name, $this$flatMapResponses.
|
|
6152
|
+
tmp = flatMapResponse($this_parseResponseBody, res, name, $this$flatMapResponses.t4a_1);
|
|
6153
6153
|
} else {
|
|
6154
6154
|
noWhenBranchMatchedException();
|
|
6155
6155
|
}
|