@flock/wirespec 0.22.0 → 0.22.2
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 +166 -154
- package/arrow-arrow-core.mjs.map +1 -1
- package/clikt-clikt-mordant.mjs +80 -80
- package/clikt-clikt.mjs +1559 -1559
- package/colormath-root-colormath.mjs +441 -441
- package/kotlin-kotlin-stdlib.mjs +2239 -1951
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10246 -10246
- package/kotlin-rgxgen.mjs +1808 -1808
- package/kotlinx-io-kotlinx-io-core.mjs +419 -419
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1868 -1868
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1607 -1586
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1335 -1321
- package/mordant-mordant.mjs.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +6432 -6170
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +181 -181
- package/wirespec-src-compiler-emitters-kotlin.mjs +143 -143
- package/wirespec-src-compiler-emitters-python.mjs +179 -179
- package/wirespec-src-compiler-emitters-rust.mjs +423 -423
- package/wirespec-src-compiler-emitters-scala.mjs +176 -176
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +254 -255
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +361 -163
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +937 -405
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-asyncapi.mjs +5382 -0
- package/wirespec-src-converter-asyncapi.mjs.map +1 -0
- package/wirespec-src-converter-avro.mjs +1075 -508
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-common.mjs +20 -20
- package/wirespec-src-converter-common.mjs.map +1 -1
- package/wirespec-src-converter-graphql.mjs +6895 -0
- package/wirespec-src-converter-graphql.mjs.map +1 -0
- package/wirespec-src-converter-openapi.mjs +786 -777
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-ide-lsp.mjs +1395 -1395
- package/wirespec-src-plugin-arguments.mjs +204 -184
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +111 -108
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-npm.d.mts +219 -27
- package/wirespec-src-plugin-npm.mjs +144 -49
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +35 -35
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
Type12n1gx16iqtcu as Type,
|
|
26
26
|
_Comment___get_value__impl__8r3pla1b4ywrwtg22m7 as _Comment___get_value__impl__8r3pla,
|
|
27
27
|
Comment3jy4x02mtqi9b as Comment,
|
|
28
|
-
|
|
28
|
+
get_fields1vhfmr41isbcc as get_fields,
|
|
29
29
|
Enum3l2iuc342kle6 as Enum,
|
|
30
30
|
Paramvfwnys2w6aj1 as Param,
|
|
31
31
|
Method_GET_getInstance389ligq04yj7i as Method_GET_getInstance,
|
|
@@ -36,7 +36,6 @@ import {
|
|
|
36
36
|
Method_OPTIONS_getInstancef30cf3fboqw7 as Method_OPTIONS_getInstance,
|
|
37
37
|
Method_TRACE_getInstance28s98wa82amhv as Method_TRACE_getInstance,
|
|
38
38
|
Method_HEAD_getInstance1xjwg9862de50 as Method_HEAD_getInstance,
|
|
39
|
-
get_fields3eodgfvi2duub as get_fields_0,
|
|
40
39
|
Unit2z95clvxm08vr as Unit,
|
|
41
40
|
Anyv7qdq63z63rc as Any,
|
|
42
41
|
Custom1lu6o8txpimqz as Custom,
|
|
@@ -45,12 +44,12 @@ import {
|
|
|
45
44
|
FileExtension_JSON_getInstancel2q389n0axuc as FileExtension_JSON_getInstance,
|
|
46
45
|
Emitted12h24rpo4uifw as Emitted,
|
|
47
46
|
Emitterpslsvv25okcl as Emitter,
|
|
47
|
+
Shape2rkbve9uak0g8 as Shape,
|
|
48
48
|
Content2xr1z915qbr1k as Content,
|
|
49
49
|
Request3mgjik96a5s75 as Request,
|
|
50
50
|
Response3emykwjtzgs52 as Response,
|
|
51
51
|
FieldIdentifier34k7iphndcnl0 as FieldIdentifier,
|
|
52
52
|
Field2nwjpxu9j2svq as Field,
|
|
53
|
-
Shape6h3qnek4ao2r as Shape,
|
|
54
53
|
_RegExp___init__impl__p22noo351zrimyjm8l3 as _RegExp___init__impl__p22noo,
|
|
55
54
|
Precision_P64_getInstance1kka8j79p47e9 as Precision_P64_getInstance,
|
|
56
55
|
Precision_P32_getInstance1wn9hty3a2xeu as Precision_P32_getInstance,
|
|
@@ -250,11 +249,11 @@ initMetadataForObject(OpenAPIV3Parser, 'OpenAPIV3Parser');
|
|
|
250
249
|
function emitFormat(_this__u8e3s4) {
|
|
251
250
|
var tmp;
|
|
252
251
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
253
|
-
var t = _this__u8e3s4.
|
|
252
|
+
var t = _this__u8e3s4.t18_1;
|
|
254
253
|
var tmp_0;
|
|
255
254
|
if (t instanceof Number_0) {
|
|
256
255
|
var tmp_1;
|
|
257
|
-
switch (t.
|
|
256
|
+
switch (t.w18_1.e3_1) {
|
|
258
257
|
case 0:
|
|
259
258
|
tmp_1 = 'float';
|
|
260
259
|
break;
|
|
@@ -269,7 +268,7 @@ function emitFormat(_this__u8e3s4) {
|
|
|
269
268
|
} else {
|
|
270
269
|
if (t instanceof Integer) {
|
|
271
270
|
var tmp_2;
|
|
272
|
-
switch (t.
|
|
271
|
+
switch (t.b19_1.e3_1) {
|
|
273
272
|
case 0:
|
|
274
273
|
tmp_2 = 'int32';
|
|
275
274
|
break;
|
|
@@ -297,7 +296,7 @@ function emitFormat(_this__u8e3s4) {
|
|
|
297
296
|
}
|
|
298
297
|
function parseOpenApi(moduleContent, openApiParser) {
|
|
299
298
|
// Inline function 'kotlin.let' call
|
|
300
|
-
var statements = openApiParser(moduleContent.
|
|
299
|
+
var statements = openApiParser(moduleContent.do_1).dn_1;
|
|
301
300
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
302
301
|
// Inline function 'kotlin.collections.map' call
|
|
303
302
|
var this_0 = _NonEmptyList___get_all__impl__pmf509(statements);
|
|
@@ -310,7 +309,7 @@ function parseOpenApi(moduleContent, openApiParser) {
|
|
|
310
309
|
destination.x(tmp$ret$5);
|
|
311
310
|
}
|
|
312
311
|
var tmp$ret$0 = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
313
|
-
return new Root(nonEmptyListOf(new Module(moduleContent.
|
|
312
|
+
return new Root(nonEmptyListOf(new Module(moduleContent.co_1, tmp$ret$0), []));
|
|
314
313
|
}
|
|
315
314
|
function jsonDefault(strict) {
|
|
316
315
|
return Json(VOID, jsonDefault$lambda(strict));
|
|
@@ -324,42 +323,42 @@ function toOperationList(_this__u8e3s4) {
|
|
|
324
323
|
while (_iterator__ex2g4s.u()) {
|
|
325
324
|
var element = _iterator__ex2g4s.v();
|
|
326
325
|
var tmp;
|
|
327
|
-
switch (element.
|
|
326
|
+
switch (element.e3_1) {
|
|
328
327
|
case 0:
|
|
329
|
-
tmp = _this__u8e3s4.
|
|
328
|
+
tmp = _this__u8e3s4.f36();
|
|
330
329
|
break;
|
|
331
330
|
case 1:
|
|
332
|
-
tmp = _this__u8e3s4.
|
|
331
|
+
tmp = _this__u8e3s4.h36();
|
|
333
332
|
break;
|
|
334
333
|
case 2:
|
|
335
|
-
tmp = _this__u8e3s4.
|
|
334
|
+
tmp = _this__u8e3s4.g36();
|
|
336
335
|
break;
|
|
337
336
|
case 3:
|
|
338
|
-
tmp = _this__u8e3s4.
|
|
337
|
+
tmp = _this__u8e3s4.i36();
|
|
339
338
|
break;
|
|
340
339
|
case 4:
|
|
341
|
-
tmp = _this__u8e3s4.
|
|
340
|
+
tmp = _this__u8e3s4.j36();
|
|
342
341
|
break;
|
|
343
342
|
case 5:
|
|
344
|
-
tmp = _this__u8e3s4.
|
|
343
|
+
tmp = _this__u8e3s4.k36();
|
|
345
344
|
break;
|
|
346
345
|
case 6:
|
|
347
|
-
tmp = _this__u8e3s4.
|
|
346
|
+
tmp = _this__u8e3s4.l36();
|
|
348
347
|
break;
|
|
349
348
|
case 7:
|
|
350
|
-
tmp = _this__u8e3s4.
|
|
349
|
+
tmp = _this__u8e3s4.m36();
|
|
351
350
|
break;
|
|
352
351
|
default:
|
|
353
352
|
noWhenBranchMatchedException();
|
|
354
353
|
break;
|
|
355
354
|
}
|
|
356
355
|
var tmp$ret$2 = tmp;
|
|
357
|
-
result.
|
|
356
|
+
result.v2(element, tmp$ret$2);
|
|
358
357
|
}
|
|
359
358
|
return filterNotNullValues(result);
|
|
360
359
|
}
|
|
361
360
|
function toName(_this__u8e3s4) {
|
|
362
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
361
|
+
var tmp0_safe_receiver = _this__u8e3s4.k32();
|
|
363
362
|
var tmp;
|
|
364
363
|
if (tmp0_safe_receiver == null) {
|
|
365
364
|
tmp = null;
|
|
@@ -396,7 +395,7 @@ function sanitize(_this__u8e3s4) {
|
|
|
396
395
|
var item = _iterator__ex2g4s.v();
|
|
397
396
|
var _unary__edvuaz = index;
|
|
398
397
|
index = _unary__edvuaz + 1 | 0;
|
|
399
|
-
var tmp$ret$2 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.
|
|
398
|
+
var tmp$ret$2 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.yr(item) : item;
|
|
400
399
|
destination.x(tmp$ret$2);
|
|
401
400
|
}
|
|
402
401
|
var tmp = asSequence(joinToString(destination, ''));
|
|
@@ -404,31 +403,31 @@ function sanitize(_this__u8e3s4) {
|
|
|
404
403
|
}
|
|
405
404
|
function flatMapRequests(_this__u8e3s4, f) {
|
|
406
405
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
407
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
406
|
+
var tmp0_elvis_lhs = _this__u8e3s4.k34();
|
|
408
407
|
// Inline function 'kotlin.collections.flatMap' call
|
|
409
408
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
410
409
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
411
410
|
var destination = ArrayList_init_$Create$_0();
|
|
412
411
|
// Inline function 'kotlin.collections.iterator' call
|
|
413
|
-
var _iterator__ex2g4s = tmp0.
|
|
412
|
+
var _iterator__ex2g4s = tmp0.m1().t();
|
|
414
413
|
while (_iterator__ex2g4s.u()) {
|
|
415
414
|
var element = _iterator__ex2g4s.v();
|
|
416
415
|
// Inline function 'kotlin.collections.component1' call
|
|
417
|
-
var path = element.
|
|
416
|
+
var path = element.n1().k31_1;
|
|
418
417
|
// Inline function 'kotlin.collections.component2' call
|
|
419
|
-
var pathItem = element.
|
|
418
|
+
var pathItem = element.o1();
|
|
420
419
|
// Inline function 'kotlin.collections.map' call
|
|
421
420
|
var this_0 = toOperationList(pathItem);
|
|
422
421
|
// Inline function 'kotlin.collections.mapTo' call
|
|
423
422
|
var destination_0 = ArrayList_init_$Create$(this_0.b1());
|
|
424
423
|
// Inline function 'kotlin.collections.iterator' call
|
|
425
|
-
var _iterator__ex2g4s_0 = this_0.
|
|
424
|
+
var _iterator__ex2g4s_0 = this_0.m1().t();
|
|
426
425
|
while (_iterator__ex2g4s_0.u()) {
|
|
427
426
|
var item = _iterator__ex2g4s_0.v();
|
|
428
427
|
// Inline function 'kotlin.collections.component1' call
|
|
429
|
-
var method = item.
|
|
428
|
+
var method = item.n1();
|
|
430
429
|
// Inline function 'kotlin.collections.component2' call
|
|
431
|
-
var operation = item.
|
|
430
|
+
var operation = item.o1();
|
|
432
431
|
var tmp$ret$10 = new FlattenRequest(path, pathItem, method, operation);
|
|
433
432
|
destination_0.x(tmp$ret$10);
|
|
434
433
|
}
|
|
@@ -447,19 +446,19 @@ function flatMapRequests(_this__u8e3s4, f) {
|
|
|
447
446
|
return destination_1;
|
|
448
447
|
}
|
|
449
448
|
function FlattenRequest(path, pathItem, method, operation) {
|
|
450
|
-
this.
|
|
451
|
-
this.
|
|
452
|
-
this.
|
|
453
|
-
this.
|
|
449
|
+
this.b48_1 = path;
|
|
450
|
+
this.c48_1 = pathItem;
|
|
451
|
+
this.d48_1 = method;
|
|
452
|
+
this.e48_1 = operation;
|
|
454
453
|
}
|
|
455
454
|
protoOf(FlattenRequest).toString = function () {
|
|
456
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
455
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.b48_1) + ', pathItem=' + toString(this.c48_1) + ', method=' + this.d48_1.toString() + ', operation=' + toString(this.e48_1) + ')';
|
|
457
456
|
};
|
|
458
457
|
protoOf(FlattenRequest).hashCode = function () {
|
|
459
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
460
|
-
result = imul(result, 31) + hashCode(this.
|
|
461
|
-
result = imul(result, 31) + this.
|
|
462
|
-
result = imul(result, 31) + hashCode(this.
|
|
458
|
+
var result = Path__hashCode_impl_go73kd(this.b48_1);
|
|
459
|
+
result = imul(result, 31) + hashCode(this.c48_1) | 0;
|
|
460
|
+
result = imul(result, 31) + this.d48_1.hashCode() | 0;
|
|
461
|
+
result = imul(result, 31) + hashCode(this.e48_1) | 0;
|
|
463
462
|
return result;
|
|
464
463
|
};
|
|
465
464
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -467,57 +466,57 @@ protoOf(FlattenRequest).equals = function (other) {
|
|
|
467
466
|
return true;
|
|
468
467
|
if (!(other instanceof FlattenRequest))
|
|
469
468
|
return false;
|
|
470
|
-
if (!(this.
|
|
469
|
+
if (!(this.b48_1 === other.b48_1))
|
|
471
470
|
return false;
|
|
472
|
-
if (!equals(this.
|
|
471
|
+
if (!equals(this.c48_1, other.c48_1))
|
|
473
472
|
return false;
|
|
474
|
-
if (!this.
|
|
473
|
+
if (!this.d48_1.equals(other.d48_1))
|
|
475
474
|
return false;
|
|
476
|
-
if (!equals(this.
|
|
475
|
+
if (!equals(this.e48_1, other.e48_1))
|
|
477
476
|
return false;
|
|
478
477
|
return true;
|
|
479
478
|
};
|
|
480
479
|
function flatMapResponses(_this__u8e3s4, f) {
|
|
481
480
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
482
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
481
|
+
var tmp0_elvis_lhs = _this__u8e3s4.k34();
|
|
483
482
|
// Inline function 'kotlin.collections.flatMap' call
|
|
484
483
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
485
484
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
486
485
|
var destination = ArrayList_init_$Create$_0();
|
|
487
486
|
// Inline function 'kotlin.collections.iterator' call
|
|
488
|
-
var _iterator__ex2g4s = tmp0.
|
|
487
|
+
var _iterator__ex2g4s = tmp0.m1().t();
|
|
489
488
|
while (_iterator__ex2g4s.u()) {
|
|
490
489
|
var element = _iterator__ex2g4s.v();
|
|
491
490
|
// Inline function 'kotlin.collections.component1' call
|
|
492
|
-
var path = element.
|
|
491
|
+
var path = element.n1().k31_1;
|
|
493
492
|
// Inline function 'kotlin.collections.component2' call
|
|
494
|
-
var pathItem = element.
|
|
493
|
+
var pathItem = element.o1();
|
|
495
494
|
// Inline function 'kotlin.collections.flatMap' call
|
|
496
495
|
var tmp0_0 = toOperationList(pathItem);
|
|
497
496
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
498
497
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
499
498
|
// Inline function 'kotlin.collections.iterator' call
|
|
500
|
-
var _iterator__ex2g4s_0 = tmp0_0.
|
|
499
|
+
var _iterator__ex2g4s_0 = tmp0_0.m1().t();
|
|
501
500
|
while (_iterator__ex2g4s_0.u()) {
|
|
502
501
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
503
502
|
// Inline function 'kotlin.collections.component1' call
|
|
504
|
-
var method = element_0.
|
|
503
|
+
var method = element_0.n1();
|
|
505
504
|
// Inline function 'kotlin.collections.component2' call
|
|
506
|
-
var operation = element_0.
|
|
505
|
+
var operation = element_0.o1();
|
|
507
506
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
508
|
-
var tmp0_elvis_lhs_0 = operation.
|
|
507
|
+
var tmp0_elvis_lhs_0 = operation.h1f();
|
|
509
508
|
// Inline function 'kotlin.collections.map' call
|
|
510
509
|
var this_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
511
510
|
// Inline function 'kotlin.collections.mapTo' call
|
|
512
511
|
var destination_1 = ArrayList_init_$Create$(this_0.b1());
|
|
513
512
|
// Inline function 'kotlin.collections.iterator' call
|
|
514
|
-
var _iterator__ex2g4s_1 = this_0.
|
|
513
|
+
var _iterator__ex2g4s_1 = this_0.m1().t();
|
|
515
514
|
while (_iterator__ex2g4s_1.u()) {
|
|
516
515
|
var item = _iterator__ex2g4s_1.v();
|
|
517
516
|
// Inline function 'kotlin.collections.component1' call
|
|
518
|
-
var statusCode = item.
|
|
517
|
+
var statusCode = item.n1().o31_1;
|
|
519
518
|
// Inline function 'kotlin.collections.component2' call
|
|
520
|
-
var response = item.
|
|
519
|
+
var response = item.o1();
|
|
521
520
|
var tmp$ret$17 = new FlattenResponse(path, pathItem, method, operation, statusCode, response);
|
|
522
521
|
destination_1.x(tmp$ret$17);
|
|
523
522
|
}
|
|
@@ -539,23 +538,23 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
539
538
|
return destination_2;
|
|
540
539
|
}
|
|
541
540
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response) {
|
|
542
|
-
this.
|
|
543
|
-
this.
|
|
544
|
-
this.
|
|
545
|
-
this.
|
|
546
|
-
this.
|
|
547
|
-
this.
|
|
541
|
+
this.f48_1 = path;
|
|
542
|
+
this.g48_1 = pathItem;
|
|
543
|
+
this.h48_1 = method;
|
|
544
|
+
this.i48_1 = operation;
|
|
545
|
+
this.j48_1 = statusCode;
|
|
546
|
+
this.k48_1 = response;
|
|
548
547
|
}
|
|
549
548
|
protoOf(FlattenResponse).toString = function () {
|
|
550
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
549
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.f48_1) + ', pathItem=' + toString(this.g48_1) + ', method=' + this.h48_1.toString() + ', operation=' + toString(this.i48_1) + ', statusCode=' + StatusCode__toString_impl_6caewy(this.j48_1) + ', response=' + toString(this.k48_1) + ')';
|
|
551
550
|
};
|
|
552
551
|
protoOf(FlattenResponse).hashCode = function () {
|
|
553
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
554
|
-
result = imul(result, 31) + hashCode(this.
|
|
555
|
-
result = imul(result, 31) + this.
|
|
556
|
-
result = imul(result, 31) + hashCode(this.
|
|
557
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
558
|
-
result = imul(result, 31) + hashCode(this.
|
|
552
|
+
var result = Path__hashCode_impl_go73kd(this.f48_1);
|
|
553
|
+
result = imul(result, 31) + hashCode(this.g48_1) | 0;
|
|
554
|
+
result = imul(result, 31) + this.h48_1.hashCode() | 0;
|
|
555
|
+
result = imul(result, 31) + hashCode(this.i48_1) | 0;
|
|
556
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.j48_1) | 0;
|
|
557
|
+
result = imul(result, 31) + hashCode(this.k48_1) | 0;
|
|
559
558
|
return result;
|
|
560
559
|
};
|
|
561
560
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -563,17 +562,17 @@ protoOf(FlattenResponse).equals = function (other) {
|
|
|
563
562
|
return true;
|
|
564
563
|
if (!(other instanceof FlattenResponse))
|
|
565
564
|
return false;
|
|
566
|
-
if (!(this.
|
|
565
|
+
if (!(this.f48_1 === other.f48_1))
|
|
567
566
|
return false;
|
|
568
|
-
if (!equals(this.
|
|
567
|
+
if (!equals(this.g48_1, other.g48_1))
|
|
569
568
|
return false;
|
|
570
|
-
if (!this.
|
|
569
|
+
if (!this.h48_1.equals(other.h48_1))
|
|
571
570
|
return false;
|
|
572
|
-
if (!equals(this.
|
|
571
|
+
if (!equals(this.i48_1, other.i48_1))
|
|
573
572
|
return false;
|
|
574
|
-
if (!(this.
|
|
573
|
+
if (!(this.j48_1 === other.j48_1))
|
|
575
574
|
return false;
|
|
576
|
-
if (!equals(this.
|
|
575
|
+
if (!equals(this.k48_1, other.k48_1))
|
|
577
576
|
return false;
|
|
578
577
|
return true;
|
|
579
578
|
};
|
|
@@ -582,7 +581,7 @@ function toDict(_this__u8e3s4, isNullable) {
|
|
|
582
581
|
}
|
|
583
582
|
function getReference(_this__u8e3s4) {
|
|
584
583
|
// Inline function 'kotlin.let' call
|
|
585
|
-
var it = split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
584
|
+
var it = split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.t31()), ['/']);
|
|
586
585
|
var tmp;
|
|
587
586
|
if (_this__u8e3s4 instanceof OpenAPIV20Reference) {
|
|
588
587
|
tmp = getOrNull(it, 2);
|
|
@@ -593,7 +592,7 @@ function getReference(_this__u8e3s4) {
|
|
|
593
592
|
var tmp_0;
|
|
594
593
|
if (tmp0_elvis_lhs == null) {
|
|
595
594
|
// Inline function 'kotlin.error' call
|
|
596
|
-
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
595
|
+
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe(_this__u8e3s4.t31());
|
|
597
596
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
598
597
|
} else {
|
|
599
598
|
tmp_0 = tmp0_elvis_lhs;
|
|
@@ -608,8 +607,8 @@ function isParam(_this__u8e3s4) {
|
|
|
608
607
|
}
|
|
609
608
|
function jsonDefault$lambda($strict) {
|
|
610
609
|
return function ($this$Json) {
|
|
611
|
-
$this$Json.
|
|
612
|
-
$this$Json.
|
|
610
|
+
$this$Json.e2o_1 = true;
|
|
611
|
+
$this$Json.c2o_1 = !$strict;
|
|
613
612
|
return Unit_instance;
|
|
614
613
|
};
|
|
615
614
|
}
|
|
@@ -629,7 +628,7 @@ function toName$lambda(it) {
|
|
|
629
628
|
return tmp;
|
|
630
629
|
}
|
|
631
630
|
function sanitize$lambda(it) {
|
|
632
|
-
return isLetterOrDigit(it.
|
|
631
|
+
return isLetterOrDigit(it.k1_1) || listOf(new Char(_Char___init__impl__6a9atx(95))).i1(it);
|
|
633
632
|
}
|
|
634
633
|
function get_json() {
|
|
635
634
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -645,7 +644,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
645
644
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
646
645
|
while (_iterator__ex2g4s.u()) {
|
|
647
646
|
var element = _iterator__ex2g4s.v();
|
|
648
|
-
if (element.
|
|
647
|
+
if (element.g19_1 === 'Description') {
|
|
649
648
|
tmp$ret$1 = element;
|
|
650
649
|
break $l$block;
|
|
651
650
|
}
|
|
@@ -653,7 +652,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
653
652
|
tmp$ret$1 = null;
|
|
654
653
|
}
|
|
655
654
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
656
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
655
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h19_1;
|
|
657
656
|
var tmp;
|
|
658
657
|
if (tmp1_safe_receiver == null) {
|
|
659
658
|
tmp = null;
|
|
@@ -665,7 +664,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
665
664
|
var _iterator__ex2g4s_0 = tmp1_safe_receiver.t();
|
|
666
665
|
while (_iterator__ex2g4s_0.u()) {
|
|
667
666
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
668
|
-
if (element_0.
|
|
667
|
+
if (element_0.i19_1 === 'default') {
|
|
669
668
|
tmp$ret$4 = element_0;
|
|
670
669
|
break $l$block_0;
|
|
671
670
|
}
|
|
@@ -675,7 +674,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
675
674
|
tmp = tmp$ret$4;
|
|
676
675
|
}
|
|
677
676
|
var tmp2_safe_receiver = tmp;
|
|
678
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
677
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.j19_1;
|
|
679
678
|
var tmp_0;
|
|
680
679
|
if (tmp3_safe_receiver == null) {
|
|
681
680
|
tmp_0 = null;
|
|
@@ -684,7 +683,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
684
683
|
tmp_0 = tmp3_safe_receiver instanceof Single ? tmp3_safe_receiver : null;
|
|
685
684
|
}
|
|
686
685
|
var tmp4_safe_receiver = tmp_0;
|
|
687
|
-
return tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
686
|
+
return tmp4_safe_receiver == null ? null : tmp4_safe_receiver.m19_1;
|
|
688
687
|
}
|
|
689
688
|
function toSchemaDefault(_this__u8e3s4) {
|
|
690
689
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -722,7 +721,7 @@ function resolveEndpointNameCollisions(_this__u8e3s4) {
|
|
|
722
721
|
var _iterator__ex2g4s_0 = destination.t();
|
|
723
722
|
while (_iterator__ex2g4s_0.u()) {
|
|
724
723
|
var item = _iterator__ex2g4s_0.v();
|
|
725
|
-
var tmp$ret$5 = item.
|
|
724
|
+
var tmp$ret$5 = item.ds().o1();
|
|
726
725
|
destination_0.x(tmp$ret$5);
|
|
727
726
|
}
|
|
728
727
|
var nonEndpointNames = toSet(destination_0);
|
|
@@ -735,12 +734,12 @@ function resolveEndpointNameCollisions(_this__u8e3s4) {
|
|
|
735
734
|
var tmp;
|
|
736
735
|
var tmp_0;
|
|
737
736
|
if (item_0 instanceof Endpoint) {
|
|
738
|
-
tmp_0 = nonEndpointNames.
|
|
737
|
+
tmp_0 = nonEndpointNames.i1(item_0.fr_1.o1());
|
|
739
738
|
} else {
|
|
740
739
|
tmp_0 = false;
|
|
741
740
|
}
|
|
742
741
|
if (tmp_0) {
|
|
743
|
-
tmp = item_0.
|
|
742
|
+
tmp = item_0.p1c(VOID, VOID, new DefinitionIdentifier(item_0.fr_1.o1() + 'Endpoint'));
|
|
744
743
|
} else {
|
|
745
744
|
tmp = item_0;
|
|
746
745
|
}
|
|
@@ -787,25 +786,25 @@ function toDescriptionAnnotationList(_this__u8e3s4) {
|
|
|
787
786
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
788
787
|
}
|
|
789
788
|
function LinkInfo(name, operationId, operationRef, parameters, requestBody, description, serverUrl) {
|
|
790
|
-
this.
|
|
791
|
-
this.
|
|
792
|
-
this.
|
|
793
|
-
this.
|
|
794
|
-
this.
|
|
795
|
-
this.
|
|
796
|
-
this.
|
|
789
|
+
this.l48_1 = name;
|
|
790
|
+
this.m48_1 = operationId;
|
|
791
|
+
this.n48_1 = operationRef;
|
|
792
|
+
this.o48_1 = parameters;
|
|
793
|
+
this.p48_1 = requestBody;
|
|
794
|
+
this.q48_1 = description;
|
|
795
|
+
this.r48_1 = serverUrl;
|
|
797
796
|
}
|
|
798
797
|
protoOf(LinkInfo).toString = function () {
|
|
799
|
-
return 'LinkInfo(name=' + this.
|
|
798
|
+
return 'LinkInfo(name=' + this.l48_1 + ', operationId=' + this.m48_1 + ', operationRef=' + this.n48_1 + ', parameters=' + toString(this.o48_1) + ', requestBody=' + this.p48_1 + ', description=' + this.q48_1 + ', serverUrl=' + this.r48_1 + ')';
|
|
800
799
|
};
|
|
801
800
|
protoOf(LinkInfo).hashCode = function () {
|
|
802
|
-
var result = getStringHashCode(this.
|
|
803
|
-
result = imul(result, 31) + (this.
|
|
804
|
-
result = imul(result, 31) + (this.
|
|
805
|
-
result = imul(result, 31) + hashCode(this.
|
|
806
|
-
result = imul(result, 31) + (this.
|
|
807
|
-
result = imul(result, 31) + (this.
|
|
808
|
-
result = imul(result, 31) + (this.
|
|
801
|
+
var result = getStringHashCode(this.l48_1);
|
|
802
|
+
result = imul(result, 31) + (this.m48_1 == null ? 0 : getStringHashCode(this.m48_1)) | 0;
|
|
803
|
+
result = imul(result, 31) + (this.n48_1 == null ? 0 : getStringHashCode(this.n48_1)) | 0;
|
|
804
|
+
result = imul(result, 31) + hashCode(this.o48_1) | 0;
|
|
805
|
+
result = imul(result, 31) + (this.p48_1 == null ? 0 : getStringHashCode(this.p48_1)) | 0;
|
|
806
|
+
result = imul(result, 31) + (this.q48_1 == null ? 0 : getStringHashCode(this.q48_1)) | 0;
|
|
807
|
+
result = imul(result, 31) + (this.r48_1 == null ? 0 : getStringHashCode(this.r48_1)) | 0;
|
|
809
808
|
return result;
|
|
810
809
|
};
|
|
811
810
|
protoOf(LinkInfo).equals = function (other) {
|
|
@@ -813,19 +812,19 @@ protoOf(LinkInfo).equals = function (other) {
|
|
|
813
812
|
return true;
|
|
814
813
|
if (!(other instanceof LinkInfo))
|
|
815
814
|
return false;
|
|
816
|
-
if (!(this.
|
|
815
|
+
if (!(this.l48_1 === other.l48_1))
|
|
817
816
|
return false;
|
|
818
|
-
if (!(this.
|
|
817
|
+
if (!(this.m48_1 == other.m48_1))
|
|
819
818
|
return false;
|
|
820
|
-
if (!(this.
|
|
819
|
+
if (!(this.n48_1 == other.n48_1))
|
|
821
820
|
return false;
|
|
822
|
-
if (!equals(this.
|
|
821
|
+
if (!equals(this.o48_1, other.o48_1))
|
|
823
822
|
return false;
|
|
824
|
-
if (!(this.
|
|
823
|
+
if (!(this.p48_1 == other.p48_1))
|
|
825
824
|
return false;
|
|
826
|
-
if (!(this.
|
|
825
|
+
if (!(this.q48_1 == other.q48_1))
|
|
827
826
|
return false;
|
|
828
|
-
if (!(this.
|
|
827
|
+
if (!(this.r48_1 == other.r48_1))
|
|
829
828
|
return false;
|
|
830
829
|
return true;
|
|
831
830
|
};
|
|
@@ -837,7 +836,7 @@ function findLinks(_this__u8e3s4) {
|
|
|
837
836
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
838
837
|
while (_iterator__ex2g4s.u()) {
|
|
839
838
|
var element = _iterator__ex2g4s.v();
|
|
840
|
-
if (element.
|
|
839
|
+
if (element.g19_1 === 'Link') {
|
|
841
840
|
destination.x(element);
|
|
842
841
|
}
|
|
843
842
|
}
|
|
@@ -860,8 +859,8 @@ function findLinks(_this__u8e3s4) {
|
|
|
860
859
|
}
|
|
861
860
|
function toAnnotation(_this__u8e3s4) {
|
|
862
861
|
_init_properties_Utils_kt__jo07cx();
|
|
863
|
-
var params = mutableListOf([new Parameter('default', new Single(_this__u8e3s4.
|
|
864
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
862
|
+
var params = mutableListOf([new Parameter('default', new Single(_this__u8e3s4.l48_1))]);
|
|
863
|
+
var tmp0_safe_receiver = _this__u8e3s4.m48_1;
|
|
865
864
|
if (tmp0_safe_receiver == null)
|
|
866
865
|
null;
|
|
867
866
|
else {
|
|
@@ -870,7 +869,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
870
869
|
var element = new Parameter('operationId', new Single(tmp0_safe_receiver));
|
|
871
870
|
params.x(element);
|
|
872
871
|
}
|
|
873
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
872
|
+
var tmp1_safe_receiver = _this__u8e3s4.n48_1;
|
|
874
873
|
if (tmp1_safe_receiver == null)
|
|
875
874
|
null;
|
|
876
875
|
else {
|
|
@@ -880,19 +879,19 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
880
879
|
params.x(element_0);
|
|
881
880
|
}
|
|
882
881
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
883
|
-
if (!_this__u8e3s4.
|
|
882
|
+
if (!_this__u8e3s4.o48_1.r()) {
|
|
884
883
|
// Inline function 'kotlin.collections.map' call
|
|
885
|
-
var this_0 = _this__u8e3s4.
|
|
884
|
+
var this_0 = _this__u8e3s4.o48_1;
|
|
886
885
|
// Inline function 'kotlin.collections.mapTo' call
|
|
887
886
|
var destination = ArrayList_init_$Create$(this_0.b1());
|
|
888
887
|
// Inline function 'kotlin.collections.iterator' call
|
|
889
|
-
var _iterator__ex2g4s = this_0.
|
|
888
|
+
var _iterator__ex2g4s = this_0.m1().t();
|
|
890
889
|
while (_iterator__ex2g4s.u()) {
|
|
891
890
|
var item = _iterator__ex2g4s.v();
|
|
892
891
|
// Inline function 'kotlin.collections.component1' call
|
|
893
|
-
var k = item.
|
|
892
|
+
var k = item.n1();
|
|
894
893
|
// Inline function 'kotlin.collections.component2' call
|
|
895
|
-
var v = item.
|
|
894
|
+
var v = item.o1();
|
|
896
895
|
var tmp$ret$10 = new Parameter(k, new Single(v));
|
|
897
896
|
destination.x(tmp$ret$10);
|
|
898
897
|
}
|
|
@@ -900,7 +899,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
900
899
|
var element_1 = new Parameter('parameters', new Dict_0(destination));
|
|
901
900
|
params.x(element_1);
|
|
902
901
|
}
|
|
903
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
902
|
+
var tmp2_safe_receiver = _this__u8e3s4.p48_1;
|
|
904
903
|
if (tmp2_safe_receiver == null)
|
|
905
904
|
null;
|
|
906
905
|
else {
|
|
@@ -909,7 +908,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
909
908
|
var element_2 = new Parameter('requestBody', new Single(tmp2_safe_receiver));
|
|
910
909
|
params.x(element_2);
|
|
911
910
|
}
|
|
912
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
911
|
+
var tmp3_safe_receiver = _this__u8e3s4.q48_1;
|
|
913
912
|
if (tmp3_safe_receiver == null)
|
|
914
913
|
null;
|
|
915
914
|
else {
|
|
@@ -918,7 +917,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
918
917
|
var element_3 = new Parameter('description', new Single(tmp3_safe_receiver));
|
|
919
918
|
params.x(element_3);
|
|
920
919
|
}
|
|
921
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
920
|
+
var tmp4_safe_receiver = _this__u8e3s4.r48_1;
|
|
922
921
|
if (tmp4_safe_receiver == null)
|
|
923
922
|
null;
|
|
924
923
|
else {
|
|
@@ -938,7 +937,7 @@ function toDescriptionAnnotation(description) {
|
|
|
938
937
|
}
|
|
939
938
|
function toLinkInfo(_this__u8e3s4) {
|
|
940
939
|
_init_properties_Utils_kt__jo07cx();
|
|
941
|
-
var tmp0_elvis_lhs = singleParam(_this__u8e3s4.
|
|
940
|
+
var tmp0_elvis_lhs = singleParam(_this__u8e3s4.h19_1, 'default');
|
|
942
941
|
var tmp;
|
|
943
942
|
if (tmp0_elvis_lhs == null) {
|
|
944
943
|
return null;
|
|
@@ -946,7 +945,7 @@ function toLinkInfo(_this__u8e3s4) {
|
|
|
946
945
|
tmp = tmp0_elvis_lhs;
|
|
947
946
|
}
|
|
948
947
|
var name = tmp;
|
|
949
|
-
return new LinkInfo(name, singleParam(_this__u8e3s4.
|
|
948
|
+
return new LinkInfo(name, singleParam(_this__u8e3s4.h19_1, 'operationId'), singleParam(_this__u8e3s4.h19_1, 'operationRef'), dictParam(_this__u8e3s4.h19_1, 'parameters'), singleParam(_this__u8e3s4.h19_1, 'requestBody'), singleParam(_this__u8e3s4.h19_1, 'description'), singleParam(_this__u8e3s4.h19_1, 'server'));
|
|
950
949
|
}
|
|
951
950
|
function singleParam(_this__u8e3s4, name) {
|
|
952
951
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -957,7 +956,7 @@ function singleParam(_this__u8e3s4, name) {
|
|
|
957
956
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
958
957
|
while (_iterator__ex2g4s.u()) {
|
|
959
958
|
var element = _iterator__ex2g4s.v();
|
|
960
|
-
if (element.
|
|
959
|
+
if (element.i19_1 === name) {
|
|
961
960
|
tmp$ret$1 = element;
|
|
962
961
|
break $l$block;
|
|
963
962
|
}
|
|
@@ -965,7 +964,7 @@ function singleParam(_this__u8e3s4, name) {
|
|
|
965
964
|
tmp$ret$1 = null;
|
|
966
965
|
}
|
|
967
966
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
968
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
967
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j19_1;
|
|
969
968
|
var tmp;
|
|
970
969
|
if (tmp1_safe_receiver == null) {
|
|
971
970
|
tmp = null;
|
|
@@ -974,7 +973,7 @@ function singleParam(_this__u8e3s4, name) {
|
|
|
974
973
|
tmp = tmp1_safe_receiver instanceof Single ? tmp1_safe_receiver : null;
|
|
975
974
|
}
|
|
976
975
|
var tmp2_safe_receiver = tmp;
|
|
977
|
-
return tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
976
|
+
return tmp2_safe_receiver == null ? null : tmp2_safe_receiver.m19_1;
|
|
978
977
|
}
|
|
979
978
|
function dictParam(_this__u8e3s4, name) {
|
|
980
979
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -985,7 +984,7 @@ function dictParam(_this__u8e3s4, name) {
|
|
|
985
984
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
986
985
|
while (_iterator__ex2g4s.u()) {
|
|
987
986
|
var element = _iterator__ex2g4s.v();
|
|
988
|
-
if (element.
|
|
987
|
+
if (element.i19_1 === name) {
|
|
989
988
|
tmp$ret$1 = element;
|
|
990
989
|
break $l$block;
|
|
991
990
|
}
|
|
@@ -993,7 +992,7 @@ function dictParam(_this__u8e3s4, name) {
|
|
|
993
992
|
tmp$ret$1 = null;
|
|
994
993
|
}
|
|
995
994
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
996
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
995
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j19_1;
|
|
997
996
|
var tmp;
|
|
998
997
|
if (tmp1_safe_receiver == null) {
|
|
999
998
|
tmp = null;
|
|
@@ -1002,7 +1001,7 @@ function dictParam(_this__u8e3s4, name) {
|
|
|
1002
1001
|
tmp = tmp1_safe_receiver instanceof Dict_0 ? tmp1_safe_receiver : null;
|
|
1003
1002
|
}
|
|
1004
1003
|
var tmp2_safe_receiver = tmp;
|
|
1005
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
1004
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.k19_1;
|
|
1006
1005
|
var tmp_0;
|
|
1007
1006
|
if (tmp3_safe_receiver == null) {
|
|
1008
1007
|
tmp_0 = null;
|
|
@@ -1014,14 +1013,14 @@ function dictParam(_this__u8e3s4, name) {
|
|
|
1014
1013
|
var _iterator__ex2g4s_0 = tmp3_safe_receiver.t();
|
|
1015
1014
|
while (_iterator__ex2g4s_0.u()) {
|
|
1016
1015
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1017
|
-
var tmp_1 = element_0.
|
|
1016
|
+
var tmp_1 = element_0.j19_1;
|
|
1018
1017
|
var tmp0_safe_receiver_0 = tmp_1 instanceof Single ? tmp_1 : null;
|
|
1019
1018
|
var tmp_2;
|
|
1020
1019
|
if (tmp0_safe_receiver_0 == null) {
|
|
1021
1020
|
tmp_2 = null;
|
|
1022
1021
|
} else {
|
|
1023
1022
|
// Inline function 'kotlin.let' call
|
|
1024
|
-
tmp_2 = to(element_0.
|
|
1023
|
+
tmp_2 = to(element_0.i19_1, tmp0_safe_receiver_0.m19_1);
|
|
1025
1024
|
}
|
|
1026
1025
|
var tmp0_safe_receiver_1 = tmp_2;
|
|
1027
1026
|
if (tmp0_safe_receiver_1 == null)
|
|
@@ -1045,13 +1044,13 @@ function filterNotNullValues(_this__u8e3s4) {
|
|
|
1045
1044
|
var destination = ArrayList_init_$Create$_0();
|
|
1046
1045
|
// Inline function 'kotlin.collections.forEach' call
|
|
1047
1046
|
// Inline function 'kotlin.collections.iterator' call
|
|
1048
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
1047
|
+
var _iterator__ex2g4s = _this__u8e3s4.m1().t();
|
|
1049
1048
|
while (_iterator__ex2g4s.u()) {
|
|
1050
1049
|
var element = _iterator__ex2g4s.v();
|
|
1051
1050
|
// Inline function 'kotlin.collections.component1' call
|
|
1052
|
-
var key = element.
|
|
1051
|
+
var key = element.n1();
|
|
1053
1052
|
// Inline function 'kotlin.collections.component2' call
|
|
1054
|
-
var value = element.
|
|
1053
|
+
var value = element.o1();
|
|
1055
1054
|
var tmp;
|
|
1056
1055
|
if (value == null) {
|
|
1057
1056
|
tmp = null;
|
|
@@ -1071,12 +1070,12 @@ function filterNotNullValues(_this__u8e3s4) {
|
|
|
1071
1070
|
}
|
|
1072
1071
|
function json$lambda($this$Json) {
|
|
1073
1072
|
_init_properties_Utils_kt__jo07cx();
|
|
1074
|
-
$this$Json.
|
|
1073
|
+
$this$Json.e2o_1 = true;
|
|
1075
1074
|
return Unit_instance;
|
|
1076
1075
|
}
|
|
1077
1076
|
function className$lambda(it) {
|
|
1078
1077
|
_init_properties_Utils_kt__jo07cx();
|
|
1079
|
-
return Companion_instance.
|
|
1078
|
+
return Companion_instance.yr(it);
|
|
1080
1079
|
}
|
|
1081
1080
|
var properties_initialized_Utils_kt_xvi83j;
|
|
1082
1081
|
function _init_properties_Utils_kt__jo07cx() {
|
|
@@ -1104,39 +1103,39 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1104
1103
|
var _iterator__ex2g4s_0 = destination.t();
|
|
1105
1104
|
while (_iterator__ex2g4s_0.u()) {
|
|
1106
1105
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1107
|
-
var type = element_0.
|
|
1106
|
+
var type = element_0.ms_1.t18_1;
|
|
1108
1107
|
var tmp;
|
|
1109
1108
|
if (equals(type, Boolean_instance)) {
|
|
1110
|
-
tmp = to(element_0.
|
|
1109
|
+
tmp = to(element_0.ls_1.o1(), new OpenAPIV20Schema(VOID, OpenAPIV20Type_BOOLEAN_getInstance()));
|
|
1111
1110
|
} else {
|
|
1112
1111
|
if (equals(type, Bytes_instance)) {
|
|
1113
|
-
tmp = to(element_0.
|
|
1112
|
+
tmp = to(element_0.ls_1.o1(), new OpenAPIV20Schema(VOID, OpenAPIV20Type_FILE_getInstance()));
|
|
1114
1113
|
} else {
|
|
1115
1114
|
if (type instanceof Integer) {
|
|
1116
|
-
var tmp_0 = element_0.
|
|
1115
|
+
var tmp_0 = element_0.ls_1.o1();
|
|
1117
1116
|
var tmp4_type = OpenAPIV20Type_INTEGER_getInstance();
|
|
1118
|
-
var tmp0_safe_receiver = type.
|
|
1119
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1117
|
+
var tmp0_safe_receiver = type.c19_1;
|
|
1118
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z18_1;
|
|
1120
1119
|
var tmp5_minimum = tmp1_safe_receiver == null ? null : toDouble(tmp1_safe_receiver);
|
|
1121
|
-
var tmp2_safe_receiver = type.
|
|
1122
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
1120
|
+
var tmp2_safe_receiver = type.c19_1;
|
|
1121
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.a19_1;
|
|
1123
1122
|
var tmp6_maximum = tmp3_safe_receiver == null ? null : toDouble(tmp3_safe_receiver);
|
|
1124
1123
|
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));
|
|
1125
1124
|
} else {
|
|
1126
1125
|
if (type instanceof Number_0) {
|
|
1127
|
-
var tmp_1 = element_0.
|
|
1126
|
+
var tmp_1 = element_0.ls_1.o1();
|
|
1128
1127
|
var tmp11_type = OpenAPIV20Type_NUMBER_getInstance();
|
|
1129
|
-
var tmp7_safe_receiver = type.
|
|
1130
|
-
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.
|
|
1128
|
+
var tmp7_safe_receiver = type.x18_1;
|
|
1129
|
+
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.z18_1;
|
|
1131
1130
|
var tmp12_minimum = tmp8_safe_receiver == null ? null : toDouble(tmp8_safe_receiver);
|
|
1132
|
-
var tmp9_safe_receiver = type.
|
|
1133
|
-
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.
|
|
1131
|
+
var tmp9_safe_receiver = type.x18_1;
|
|
1132
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.a19_1;
|
|
1134
1133
|
var tmp13_maximum = tmp10_safe_receiver == null ? null : toDouble(tmp10_safe_receiver);
|
|
1135
1134
|
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));
|
|
1136
1135
|
} else {
|
|
1137
1136
|
if (type instanceof String_0) {
|
|
1138
|
-
var tmp_2 = element_0.
|
|
1139
|
-
var pattern = type.
|
|
1137
|
+
var tmp_2 = element_0.ls_1.o1();
|
|
1138
|
+
var pattern = type.e19_1;
|
|
1140
1139
|
var tmp_3;
|
|
1141
1140
|
var tmp_4 = pattern;
|
|
1142
1141
|
if ((tmp_4 == null ? null : new RegExp_0(tmp_4))instanceof RegExp_0) {
|
|
@@ -1159,9 +1158,9 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1159
1158
|
}
|
|
1160
1159
|
// Inline function 'kotlin.also' call
|
|
1161
1160
|
var this_0 = tmp;
|
|
1162
|
-
logger.
|
|
1161
|
+
logger.as('Emitting Refined ' + element_0.ls_1.o1());
|
|
1163
1162
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1164
|
-
destination_0.
|
|
1163
|
+
destination_0.v2(this_0.ff_1, this_0.gf_1);
|
|
1165
1164
|
}
|
|
1166
1165
|
var refined = destination_0;
|
|
1167
1166
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
@@ -1182,11 +1181,11 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1182
1181
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
1183
1182
|
while (_iterator__ex2g4s_2.u()) {
|
|
1184
1183
|
var element_2 = _iterator__ex2g4s_2.v();
|
|
1185
|
-
var tmp_6 = element_2.
|
|
1186
|
-
var tmp0_elvis_lhs = findDescription(element_2.
|
|
1184
|
+
var tmp_6 = element_2.kp_1.o1();
|
|
1185
|
+
var tmp0_elvis_lhs = findDescription(element_2.jp_1);
|
|
1187
1186
|
var tmp_7;
|
|
1188
1187
|
if (tmp0_elvis_lhs == null) {
|
|
1189
|
-
var tmp1_safe_receiver_0 = element_2.
|
|
1188
|
+
var tmp1_safe_receiver_0 = element_2.ip_1;
|
|
1190
1189
|
var tmp_8;
|
|
1191
1190
|
var tmp_9 = tmp1_safe_receiver_0;
|
|
1192
1191
|
if ((tmp_9 == null ? null : new Comment(tmp_9)) == null) {
|
|
@@ -1200,7 +1199,7 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1200
1199
|
}
|
|
1201
1200
|
var tmp2_description = tmp_7;
|
|
1202
1201
|
// Inline function 'kotlin.collections.associate' call
|
|
1203
|
-
var this_1 = get_fields(element_2.
|
|
1202
|
+
var this_1 = get_fields(element_2.lp_1);
|
|
1204
1203
|
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_1, 10)), 16);
|
|
1205
1204
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1206
1205
|
var destination_3 = LinkedHashMap_init_$Create$(capacity_1);
|
|
@@ -1209,16 +1208,16 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1209
1208
|
var element_3 = _iterator__ex2g4s_3.v();
|
|
1210
1209
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1211
1210
|
var pair = toProperties(OpenAPIV2Emitter_getInstance(), element_3);
|
|
1212
|
-
destination_3.
|
|
1211
|
+
destination_3.v2(pair.ff_1, pair.gf_1);
|
|
1213
1212
|
}
|
|
1214
1213
|
// Inline function 'kotlin.collections.filter' call
|
|
1215
|
-
var tmp0_1 = get_fields(element_2.
|
|
1214
|
+
var tmp0_1 = get_fields(element_2.lp_1);
|
|
1216
1215
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1217
1216
|
var destination_4 = ArrayList_init_$Create$_0();
|
|
1218
1217
|
var _iterator__ex2g4s_4 = tmp0_1.t();
|
|
1219
1218
|
while (_iterator__ex2g4s_4.u()) {
|
|
1220
1219
|
var element_4 = _iterator__ex2g4s_4.v();
|
|
1221
|
-
if (!element_4.
|
|
1220
|
+
if (!element_4.pp_1.ot()) {
|
|
1222
1221
|
destination_4.x(element_4);
|
|
1223
1222
|
}
|
|
1224
1223
|
}
|
|
@@ -1228,7 +1227,7 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1228
1227
|
var _iterator__ex2g4s_5 = destination_4.t();
|
|
1229
1228
|
while (_iterator__ex2g4s_5.u()) {
|
|
1230
1229
|
var item = _iterator__ex2g4s_5.v();
|
|
1231
|
-
var tmp$ret$22 = item.
|
|
1230
|
+
var tmp$ret$22 = item.op_1.o1();
|
|
1232
1231
|
destination_5.x(tmp$ret$22);
|
|
1233
1232
|
}
|
|
1234
1233
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -1242,10 +1241,10 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1242
1241
|
var tmp4_required = tmp_10;
|
|
1243
1242
|
// Inline function 'kotlin.also' call
|
|
1244
1243
|
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);
|
|
1245
|
-
logger.
|
|
1244
|
+
logger.as('Emitting Type ' + element_2.kp_1.o1());
|
|
1246
1245
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1247
1246
|
var pair_0 = to(tmp_6, this_2);
|
|
1248
|
-
destination_2.
|
|
1247
|
+
destination_2.v2(pair_0.ff_1, pair_0.gf_1);
|
|
1249
1248
|
}
|
|
1250
1249
|
var types = destination_2;
|
|
1251
1250
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
@@ -1266,10 +1265,10 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1266
1265
|
var _iterator__ex2g4s_7 = destination_6.t();
|
|
1267
1266
|
while (_iterator__ex2g4s_7.u()) {
|
|
1268
1267
|
var element_6 = _iterator__ex2g4s_7.v();
|
|
1269
|
-
var tmp_11 = element_6.
|
|
1268
|
+
var tmp_11 = element_6.qs_1.o1();
|
|
1270
1269
|
var tmp0_type = OpenAPIV20Type_STRING_getInstance();
|
|
1271
1270
|
// Inline function 'kotlin.collections.map' call
|
|
1272
|
-
var this_3 = element_6.
|
|
1271
|
+
var this_3 = element_6.rs_1;
|
|
1273
1272
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1274
1273
|
var destination_8 = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
1275
1274
|
var _iterator__ex2g4s_8 = this_3.t();
|
|
@@ -1278,13 +1277,13 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1278
1277
|
var tmp$ret$36 = JsonPrimitive(item_0);
|
|
1279
1278
|
destination_8.x(tmp$ret$36);
|
|
1280
1279
|
}
|
|
1281
|
-
var tmp2_description_0 = findDescription(element_6.
|
|
1280
|
+
var tmp2_description_0 = findDescription(element_6.ps_1);
|
|
1282
1281
|
// Inline function 'kotlin.also' call
|
|
1283
1282
|
var this_4 = new OpenAPIV20Schema(VOID, tmp0_type, VOID, VOID, VOID, VOID, VOID, tmp2_description_0, VOID, VOID, VOID, VOID, VOID, VOID, destination_8);
|
|
1284
|
-
logger.
|
|
1283
|
+
logger.as('Emitting Enum ' + element_6.qs_1.o1());
|
|
1285
1284
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1286
1285
|
var pair_1 = to(tmp_11, this_4);
|
|
1287
|
-
destination_7.
|
|
1286
|
+
destination_7.v2(pair_1.ff_1, pair_1.gf_1);
|
|
1288
1287
|
}
|
|
1289
1288
|
var enums = destination_7;
|
|
1290
1289
|
return plus(plus(refined, types), enums);
|
|
@@ -1307,13 +1306,13 @@ function emitPaths($this, $receiver, logger) {
|
|
|
1307
1306
|
var _iterator__ex2g4s_0 = destination.t();
|
|
1308
1307
|
while (_iterator__ex2g4s_0.u()) {
|
|
1309
1308
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1310
|
-
var key = element_0.
|
|
1309
|
+
var key = element_0.hr_1;
|
|
1311
1310
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1312
|
-
var value = destination_0.
|
|
1311
|
+
var value = destination_0.s2(key);
|
|
1313
1312
|
var tmp;
|
|
1314
1313
|
if (value == null) {
|
|
1315
1314
|
var answer = ArrayList_init_$Create$_0();
|
|
1316
|
-
destination_0.
|
|
1315
|
+
destination_0.v2(key, answer);
|
|
1317
1316
|
tmp = answer;
|
|
1318
1317
|
} else {
|
|
1319
1318
|
tmp = value;
|
|
@@ -1325,14 +1324,14 @@ function emitPaths($this, $receiver, logger) {
|
|
|
1325
1324
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1326
1325
|
var destination_1 = ArrayList_init_$Create$(destination_0.b1());
|
|
1327
1326
|
// Inline function 'kotlin.collections.iterator' call
|
|
1328
|
-
var _iterator__ex2g4s_1 = destination_0.
|
|
1327
|
+
var _iterator__ex2g4s_1 = destination_0.m1().t();
|
|
1329
1328
|
while (_iterator__ex2g4s_1.u()) {
|
|
1330
1329
|
var item = _iterator__ex2g4s_1.v();
|
|
1331
1330
|
// Inline function 'kotlin.collections.component1' call
|
|
1332
|
-
var path = item.
|
|
1331
|
+
var path = item.n1();
|
|
1333
1332
|
// Inline function 'kotlin.collections.component2' call
|
|
1334
|
-
var endpoints = item.
|
|
1335
|
-
logger.
|
|
1333
|
+
var endpoints = item.o1();
|
|
1334
|
+
logger.as('Emitting endpoints for path ' + emitSegment(OpenAPIV2Emitter_getInstance(), path));
|
|
1336
1335
|
var tmp_0 = _Path___init__impl__6uf4pw(emitSegment(OpenAPIV2Emitter_getInstance(), path));
|
|
1337
1336
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1338
1337
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
@@ -1351,12 +1350,12 @@ function emitPaths($this, $receiver, logger) {
|
|
|
1351
1350
|
while (_iterator__ex2g4s_3.u()) {
|
|
1352
1351
|
var item_0 = _iterator__ex2g4s_3.v();
|
|
1353
1352
|
var tmp0_in = OpenAPIV20ParameterLocation_PATH_getInstance();
|
|
1354
|
-
var tmp1_name = item_0.
|
|
1355
|
-
var tmp2_type = emitType_0(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1356
|
-
var tmp3_format = emitFormat(item_0.
|
|
1357
|
-
var tmp4_pattern = emitPattern(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1358
|
-
var tmp5_minimum = emitMinimum(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1359
|
-
var tmp6_maximum = emitMaximum(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1353
|
+
var tmp1_name = item_0.mr_1.o1();
|
|
1354
|
+
var tmp2_type = emitType_0(OpenAPIV2Emitter_getInstance(), item_0.nr_1);
|
|
1355
|
+
var tmp3_format = emitFormat(item_0.nr_1);
|
|
1356
|
+
var tmp4_pattern = emitPattern(OpenAPIV2Emitter_getInstance(), item_0.nr_1);
|
|
1357
|
+
var tmp5_minimum = emitMinimum(OpenAPIV2Emitter_getInstance(), item_0.nr_1);
|
|
1358
|
+
var tmp6_maximum = emitMaximum(OpenAPIV2Emitter_getInstance(), item_0.nr_1);
|
|
1360
1359
|
var tmp$ret$17 = 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);
|
|
1361
1360
|
destination_3.x(tmp$ret$17);
|
|
1362
1361
|
}
|
|
@@ -1374,12 +1373,12 @@ function emitPaths($this, $receiver, logger) {
|
|
|
1374
1373
|
return toMap(destination_1);
|
|
1375
1374
|
}
|
|
1376
1375
|
function toProperties($this, $receiver) {
|
|
1377
|
-
var tmp = $receiver.
|
|
1376
|
+
var tmp = $receiver.op_1.o1();
|
|
1378
1377
|
// Inline function 'kotlin.let' call
|
|
1379
|
-
var it = toSchemaOrReference($this, $receiver.
|
|
1378
|
+
var it = toSchemaOrReference($this, $receiver.pp_1);
|
|
1380
1379
|
var tmp_0;
|
|
1381
1380
|
if (it instanceof OpenAPIV20Schema) {
|
|
1382
|
-
tmp_0 = it.
|
|
1381
|
+
tmp_0 = it.w37(VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription($receiver.np_1), toSchemaDefault($receiver.qp_1));
|
|
1383
1382
|
} else {
|
|
1384
1383
|
if (it instanceof OpenAPIV20Reference) {
|
|
1385
1384
|
tmp_0 = it;
|
|
@@ -1397,7 +1396,7 @@ function emit($this, $receiver, method) {
|
|
|
1397
1396
|
var _iterator__ex2g4s = $receiver.t();
|
|
1398
1397
|
while (_iterator__ex2g4s.u()) {
|
|
1399
1398
|
var element = _iterator__ex2g4s.v();
|
|
1400
|
-
if (element.
|
|
1399
|
+
if (element.gr_1.equals(method)) {
|
|
1401
1400
|
destination.x(element);
|
|
1402
1401
|
}
|
|
1403
1402
|
}
|
|
@@ -1413,11 +1412,11 @@ function emit($this, $receiver, method) {
|
|
|
1413
1412
|
return firstOrNull(destination_0);
|
|
1414
1413
|
}
|
|
1415
1414
|
function emit_0($this, $receiver) {
|
|
1416
|
-
var tmp2_operationId = $receiver.
|
|
1417
|
-
var tmp0_elvis_lhs = findDescription($receiver.
|
|
1415
|
+
var tmp2_operationId = $receiver.fr_1.o1();
|
|
1416
|
+
var tmp0_elvis_lhs = findDescription($receiver.er_1);
|
|
1418
1417
|
var tmp;
|
|
1419
1418
|
if (tmp0_elvis_lhs == null) {
|
|
1420
|
-
var tmp1_safe_receiver = $receiver.
|
|
1419
|
+
var tmp1_safe_receiver = $receiver.dr_1;
|
|
1421
1420
|
var tmp_0;
|
|
1422
1421
|
var tmp_1 = tmp1_safe_receiver;
|
|
1423
1422
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -1431,15 +1430,15 @@ function emit_0($this, $receiver) {
|
|
|
1431
1430
|
}
|
|
1432
1431
|
var tmp3_description = tmp;
|
|
1433
1432
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1434
|
-
var tmp0 = $receiver.
|
|
1433
|
+
var tmp0 = $receiver.kr_1;
|
|
1435
1434
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1436
1435
|
var destination = ArrayList_init_$Create$_0();
|
|
1437
1436
|
// Inline function 'kotlin.collections.forEach' call
|
|
1438
1437
|
var _iterator__ex2g4s = tmp0.t();
|
|
1439
1438
|
while (_iterator__ex2g4s.u()) {
|
|
1440
1439
|
var element = _iterator__ex2g4s.v();
|
|
1441
|
-
var tmp0_safe_receiver = element.
|
|
1442
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1440
|
+
var tmp0_safe_receiver = element.or_1;
|
|
1441
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pr_1;
|
|
1443
1442
|
if (tmp0_safe_receiver_0 == null)
|
|
1444
1443
|
null;
|
|
1445
1444
|
else {
|
|
@@ -1457,15 +1456,15 @@ function emit_0($this, $receiver) {
|
|
|
1457
1456
|
}
|
|
1458
1457
|
var tmp4_consumes = tmp_2;
|
|
1459
1458
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1460
|
-
var tmp0_0 = $receiver.
|
|
1459
|
+
var tmp0_0 = $receiver.lr_1;
|
|
1461
1460
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1462
1461
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
1463
1462
|
// Inline function 'kotlin.collections.forEach' call
|
|
1464
1463
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
1465
1464
|
while (_iterator__ex2g4s_0.u()) {
|
|
1466
1465
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1467
|
-
var tmp0_safe_receiver_1 = element_0.
|
|
1468
|
-
var tmp0_safe_receiver_2 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.
|
|
1466
|
+
var tmp0_safe_receiver_1 = element_0.tr_1;
|
|
1467
|
+
var tmp0_safe_receiver_2 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.pr_1;
|
|
1469
1468
|
if (tmp0_safe_receiver_2 == null)
|
|
1470
1469
|
null;
|
|
1471
1470
|
else {
|
|
@@ -1483,14 +1482,14 @@ function emit_0($this, $receiver) {
|
|
|
1483
1482
|
}
|
|
1484
1483
|
var tmp5_produces = tmp_3;
|
|
1485
1484
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1486
|
-
var tmp0_1 = $receiver.
|
|
1485
|
+
var tmp0_1 = $receiver.kr_1;
|
|
1487
1486
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1488
1487
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
1489
1488
|
// Inline function 'kotlin.collections.forEach' call
|
|
1490
1489
|
var _iterator__ex2g4s_1 = tmp0_1.t();
|
|
1491
1490
|
while (_iterator__ex2g4s_1.u()) {
|
|
1492
1491
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
1493
|
-
var tmp0_safe_receiver_3 = element_1.
|
|
1492
|
+
var tmp0_safe_receiver_3 = element_1.or_1;
|
|
1494
1493
|
if (tmp0_safe_receiver_3 == null)
|
|
1495
1494
|
null;
|
|
1496
1495
|
else {
|
|
@@ -1506,14 +1505,14 @@ function emit_0($this, $receiver) {
|
|
|
1506
1505
|
while (_iterator__ex2g4s_2.u()) {
|
|
1507
1506
|
var item = _iterator__ex2g4s_2.v();
|
|
1508
1507
|
var tmp0_in = OpenAPIV20ParameterLocation_BODY_getInstance();
|
|
1509
|
-
var tmp1_schema = toSchemaOrReference(OpenAPIV2Emitter_getInstance(), item.
|
|
1510
|
-
var tmp2_required = !item.
|
|
1508
|
+
var tmp1_schema = toSchemaOrReference(OpenAPIV2Emitter_getInstance(), item.qr_1);
|
|
1509
|
+
var tmp2_required = !item.qr_1.ot();
|
|
1511
1510
|
var tmp$ret$27 = 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');
|
|
1512
1511
|
destination_2.x(tmp$ret$27);
|
|
1513
1512
|
}
|
|
1514
1513
|
var tmp_4 = destination_2;
|
|
1515
1514
|
// Inline function 'kotlin.collections.map' call
|
|
1516
|
-
var this_3 =
|
|
1515
|
+
var this_3 = get_fields($receiver.ir_1);
|
|
1517
1516
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1518
1517
|
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
1519
1518
|
var _iterator__ex2g4s_3 = this_3.t();
|
|
@@ -1524,7 +1523,7 @@ function emit_0($this, $receiver) {
|
|
|
1524
1523
|
}
|
|
1525
1524
|
var tmp_5 = plus_0(tmp_4, destination_3);
|
|
1526
1525
|
// Inline function 'kotlin.collections.map' call
|
|
1527
|
-
var this_4 =
|
|
1526
|
+
var this_4 = get_fields($receiver.jr_1);
|
|
1528
1527
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1529
1528
|
var destination_4 = ArrayList_init_$Create$(collectionSizeOrDefault(this_4, 10));
|
|
1530
1529
|
var _iterator__ex2g4s_4 = this_4.t();
|
|
@@ -1535,45 +1534,45 @@ function emit_0($this, $receiver) {
|
|
|
1535
1534
|
}
|
|
1536
1535
|
var tmp6_parameters = plus_0(tmp_5, destination_4);
|
|
1537
1536
|
// Inline function 'kotlin.collections.associate' call
|
|
1538
|
-
var this_5 = $receiver.
|
|
1537
|
+
var this_5 = $receiver.lr_1;
|
|
1539
1538
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_5, 10)), 16);
|
|
1540
1539
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1541
1540
|
var destination_5 = LinkedHashMap_init_$Create$(capacity);
|
|
1542
1541
|
var _iterator__ex2g4s_5 = this_5.t();
|
|
1543
1542
|
while (_iterator__ex2g4s_5.u()) {
|
|
1544
1543
|
var element_2 = _iterator__ex2g4s_5.v();
|
|
1545
|
-
var tmp_6 = _StatusCode___init__impl__t1yi9q(element_2.
|
|
1546
|
-
var tmp0_elvis_lhs_0 = findDescription(element_2.
|
|
1547
|
-
var tmp3_description_0 = tmp0_elvis_lhs_0 == null ? $receiver.
|
|
1544
|
+
var tmp_6 = _StatusCode___init__impl__t1yi9q(element_2.rr_1);
|
|
1545
|
+
var tmp0_elvis_lhs_0 = findDescription(element_2.ur_1);
|
|
1546
|
+
var tmp3_description_0 = tmp0_elvis_lhs_0 == null ? $receiver.fr_1.o1() + ' ' + element_2.rr_1 + ' response' : tmp0_elvis_lhs_0;
|
|
1548
1547
|
// Inline function 'kotlin.collections.associate' call
|
|
1549
|
-
var this_6 =
|
|
1548
|
+
var this_6 = get_fields(element_2.sr_1);
|
|
1550
1549
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_6, 10)), 16);
|
|
1551
1550
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1552
1551
|
var destination_6 = LinkedHashMap_init_$Create$(capacity_0);
|
|
1553
1552
|
var _iterator__ex2g4s_6 = this_6.t();
|
|
1554
1553
|
while (_iterator__ex2g4s_6.u()) {
|
|
1555
1554
|
var element_3 = _iterator__ex2g4s_6.v();
|
|
1556
|
-
var tmp_7 = element_3.
|
|
1557
|
-
var tmp2_description = findDescription(element_3.
|
|
1558
|
-
var tmp3_type = emitType_0(OpenAPIV2Emitter_getInstance(), element_3.
|
|
1559
|
-
var tmp4_format = emitFormat(element_3.
|
|
1560
|
-
var tmp5_pattern = emitPattern(OpenAPIV2Emitter_getInstance(), element_3.
|
|
1561
|
-
var tmp_8 = element_3.
|
|
1555
|
+
var tmp_7 = element_3.op_1.o1();
|
|
1556
|
+
var tmp2_description = findDescription(element_3.np_1);
|
|
1557
|
+
var tmp3_type = emitType_0(OpenAPIV2Emitter_getInstance(), element_3.pp_1);
|
|
1558
|
+
var tmp4_format = emitFormat(element_3.pp_1);
|
|
1559
|
+
var tmp5_pattern = emitPattern(OpenAPIV2Emitter_getInstance(), element_3.pp_1);
|
|
1560
|
+
var tmp_8 = element_3.pp_1;
|
|
1562
1561
|
var tmp0_safe_receiver_4 = tmp_8 instanceof Iterable ? tmp_8 : null;
|
|
1563
|
-
var tmp1_safe_receiver_0 = tmp0_safe_receiver_4 == null ? null : tmp0_safe_receiver_4.
|
|
1562
|
+
var tmp1_safe_receiver_0 = tmp0_safe_receiver_4 == null ? null : tmp0_safe_receiver_4.yp_1;
|
|
1564
1563
|
var tmp6_items = tmp1_safe_receiver_0 == null ? null : toSchemaOrReference(OpenAPIV2Emitter_getInstance(), tmp1_safe_receiver_0);
|
|
1565
1564
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1566
1565
|
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));
|
|
1567
|
-
destination_6.
|
|
1566
|
+
destination_6.v2(pair.ff_1, pair.gf_1);
|
|
1568
1567
|
}
|
|
1569
|
-
var tmp1_safe_receiver_1 = element_2.
|
|
1568
|
+
var tmp1_safe_receiver_1 = element_2.tr_1;
|
|
1570
1569
|
var tmp_9;
|
|
1571
1570
|
if (tmp1_safe_receiver_1 == null) {
|
|
1572
1571
|
tmp_9 = null;
|
|
1573
1572
|
} else {
|
|
1574
1573
|
// Inline function 'kotlin.takeIf' call
|
|
1575
1574
|
var tmp_10;
|
|
1576
|
-
var tmp_11 = tmp1_safe_receiver_1.
|
|
1575
|
+
var tmp_11 = tmp1_safe_receiver_1.qr_1;
|
|
1577
1576
|
if (!(tmp_11 instanceof Unit)) {
|
|
1578
1577
|
tmp_10 = tmp1_safe_receiver_1;
|
|
1579
1578
|
} else {
|
|
@@ -1587,10 +1586,10 @@ function emit_0($this, $receiver) {
|
|
|
1587
1586
|
tmp_12 = null;
|
|
1588
1587
|
} else {
|
|
1589
1588
|
// Inline function 'kotlin.let' call
|
|
1590
|
-
var ref = tmp2_safe_receiver.
|
|
1589
|
+
var ref = tmp2_safe_receiver.qr_1;
|
|
1591
1590
|
var tmp_13;
|
|
1592
1591
|
if (ref instanceof Iterable) {
|
|
1593
|
-
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.
|
|
1592
|
+
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.yp_1));
|
|
1594
1593
|
} else {
|
|
1595
1594
|
tmp_13 = toSchemaOrReference(OpenAPIV2Emitter_getInstance(), ref);
|
|
1596
1595
|
}
|
|
@@ -1599,7 +1598,7 @@ function emit_0($this, $receiver) {
|
|
|
1599
1598
|
var tmp5_schema = tmp_12;
|
|
1600
1599
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1601
1600
|
var pair_0 = to(new StatusCode(tmp_6), new OpenAPIV20Response(tmp5_schema, VOID, tmp3_description_0, destination_6));
|
|
1602
|
-
destination_5.
|
|
1601
|
+
destination_5.v2(pair_0.ff_1, pair_0.gf_1);
|
|
1603
1602
|
}
|
|
1604
1603
|
return new OpenAPIV20Operation(tmp4_consumes, tmp5_produces, tmp6_parameters, VOID, destination_5, VOID, VOID, VOID, tmp3_description, VOID, tmp2_operationId);
|
|
1605
1604
|
}
|
|
@@ -1607,11 +1606,11 @@ function emitSegment($this, $receiver) {
|
|
|
1607
1606
|
return '/' + joinToString($receiver, '/', VOID, VOID, VOID, VOID, OpenAPIV2Emitter$emitSegment$lambda);
|
|
1608
1607
|
}
|
|
1609
1608
|
function emitParameter($this, $receiver, location) {
|
|
1610
|
-
var tmp0_name = $receiver.
|
|
1611
|
-
var tmp1_type = emitType_0($this, $receiver.
|
|
1612
|
-
var tmp2_format = emitFormat($receiver.
|
|
1613
|
-
var tmp3_pattern = emitPattern($this, $receiver.
|
|
1614
|
-
var ref = $receiver.
|
|
1609
|
+
var tmp0_name = $receiver.op_1.o1();
|
|
1610
|
+
var tmp1_type = emitType_0($this, $receiver.pp_1);
|
|
1611
|
+
var tmp2_format = emitFormat($receiver.pp_1);
|
|
1612
|
+
var tmp3_pattern = emitPattern($this, $receiver.pp_1);
|
|
1613
|
+
var ref = $receiver.pp_1;
|
|
1615
1614
|
var tmp;
|
|
1616
1615
|
if (ref instanceof Iterable) {
|
|
1617
1616
|
var emit = toSchemaOrReference($this, ref);
|
|
@@ -1620,7 +1619,7 @@ function emitParameter($this, $receiver, location) {
|
|
|
1620
1619
|
tmp_0 = emit;
|
|
1621
1620
|
} else {
|
|
1622
1621
|
if (emit instanceof OpenAPIV20Schema) {
|
|
1623
|
-
tmp_0 = emit.
|
|
1622
|
+
tmp_0 = emit.g37_1;
|
|
1624
1623
|
} else {
|
|
1625
1624
|
noWhenBranchMatchedException();
|
|
1626
1625
|
}
|
|
@@ -1630,23 +1629,23 @@ function emitParameter($this, $receiver, location) {
|
|
|
1630
1629
|
tmp = null;
|
|
1631
1630
|
}
|
|
1632
1631
|
var tmp4_items = tmp;
|
|
1633
|
-
var tmp5_required = !$receiver.
|
|
1634
|
-
var tmp6_description = findDescription($receiver.
|
|
1632
|
+
var tmp5_required = !$receiver.pp_1.ot();
|
|
1633
|
+
var tmp6_description = findDescription($receiver.np_1);
|
|
1635
1634
|
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);
|
|
1636
1635
|
}
|
|
1637
1636
|
function toSchemaOrReference($this, $receiver) {
|
|
1638
1637
|
var tmp;
|
|
1639
1638
|
if ($receiver instanceof Dict) {
|
|
1640
|
-
tmp = new OpenAPIV20Schema(VOID, OpenAPIV20Type_OBJECT_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference($this, $receiver.
|
|
1639
|
+
tmp = new OpenAPIV20Schema(VOID, OpenAPIV20Type_OBJECT_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference($this, $receiver.bq_1));
|
|
1641
1640
|
} else {
|
|
1642
1641
|
if ($receiver instanceof Iterable) {
|
|
1643
|
-
tmp = new OpenAPIV20Schema(VOID, OpenAPIV20Type_ARRAY_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference($this, $receiver.
|
|
1642
|
+
tmp = new OpenAPIV20Schema(VOID, OpenAPIV20Type_ARRAY_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference($this, $receiver.yp_1));
|
|
1644
1643
|
} else {
|
|
1645
1644
|
if ($receiver instanceof Custom) {
|
|
1646
|
-
tmp = new OpenAPIV20Reference(_Ref___init__impl__7qfl46('#/definitions/' + $receiver.
|
|
1645
|
+
tmp = new OpenAPIV20Reference(_Ref___init__impl__7qfl46('#/definitions/' + $receiver.r18_1));
|
|
1647
1646
|
} else {
|
|
1648
1647
|
if ($receiver instanceof Primitive) {
|
|
1649
|
-
tmp = new OpenAPIV20Schema(VOID, emitType($this, $receiver.
|
|
1648
|
+
tmp = new OpenAPIV20Schema(VOID, emitType($this, $receiver.t18_1), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitFormat($receiver), VOID, VOID, VOID, VOID, VOID, VOID, emitPattern($this, $receiver));
|
|
1650
1649
|
} else {
|
|
1651
1650
|
if ($receiver instanceof Any) {
|
|
1652
1651
|
// Inline function 'kotlin.error' call
|
|
@@ -1701,7 +1700,7 @@ function emitType_0($this, $receiver) {
|
|
|
1701
1700
|
tmp = OpenAPIV20Type_ARRAY_getInstance();
|
|
1702
1701
|
} else {
|
|
1703
1702
|
if ($receiver instanceof Primitive) {
|
|
1704
|
-
tmp = emitType($this, $receiver.
|
|
1703
|
+
tmp = emitType($this, $receiver.t18_1);
|
|
1705
1704
|
} else {
|
|
1706
1705
|
if ($receiver instanceof Custom) {
|
|
1707
1706
|
tmp = OpenAPIV20Type_OBJECT_getInstance();
|
|
@@ -1724,10 +1723,10 @@ function emitType_0($this, $receiver) {
|
|
|
1724
1723
|
function emitPattern($this, $receiver) {
|
|
1725
1724
|
var tmp;
|
|
1726
1725
|
if ($receiver instanceof Primitive) {
|
|
1727
|
-
var t = $receiver.
|
|
1726
|
+
var t = $receiver.t18_1;
|
|
1728
1727
|
var tmp_0;
|
|
1729
1728
|
if (t instanceof String_0) {
|
|
1730
|
-
var p = t.
|
|
1729
|
+
var p = t.e19_1;
|
|
1731
1730
|
var tmp_1;
|
|
1732
1731
|
var tmp_2 = p;
|
|
1733
1732
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2))instanceof RegExp_0) {
|
|
@@ -1748,16 +1747,16 @@ function emitPattern($this, $receiver) {
|
|
|
1748
1747
|
function emitMinimum($this, $receiver) {
|
|
1749
1748
|
var tmp;
|
|
1750
1749
|
if ($receiver instanceof Primitive) {
|
|
1751
|
-
var t = $receiver.
|
|
1750
|
+
var t = $receiver.t18_1;
|
|
1752
1751
|
var tmp_0;
|
|
1753
1752
|
if (t instanceof Number_0) {
|
|
1754
|
-
var tmp1_safe_receiver = t.
|
|
1755
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1753
|
+
var tmp1_safe_receiver = t.x18_1;
|
|
1754
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.z18_1;
|
|
1756
1755
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
1757
1756
|
} else {
|
|
1758
1757
|
if (t instanceof Integer) {
|
|
1759
|
-
var tmp3_safe_receiver = t.
|
|
1760
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
1758
|
+
var tmp3_safe_receiver = t.c19_1;
|
|
1759
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.z18_1;
|
|
1761
1760
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
1762
1761
|
} else {
|
|
1763
1762
|
tmp_0 = null;
|
|
@@ -1772,16 +1771,16 @@ function emitMinimum($this, $receiver) {
|
|
|
1772
1771
|
function emitMaximum($this, $receiver) {
|
|
1773
1772
|
var tmp;
|
|
1774
1773
|
if ($receiver instanceof Primitive) {
|
|
1775
|
-
var t = $receiver.
|
|
1774
|
+
var t = $receiver.t18_1;
|
|
1776
1775
|
var tmp_0;
|
|
1777
1776
|
if (t instanceof Number_0) {
|
|
1778
|
-
var tmp1_safe_receiver = t.
|
|
1779
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1777
|
+
var tmp1_safe_receiver = t.x18_1;
|
|
1778
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.a19_1;
|
|
1780
1779
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
1781
1780
|
} else {
|
|
1782
1781
|
if (t instanceof Integer) {
|
|
1783
|
-
var tmp3_safe_receiver = t.
|
|
1784
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
1782
|
+
var tmp3_safe_receiver = t.c19_1;
|
|
1783
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.a19_1;
|
|
1785
1784
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
1786
1785
|
} else {
|
|
1787
1786
|
tmp_0 = null;
|
|
@@ -1796,10 +1795,10 @@ function emitMaximum($this, $receiver) {
|
|
|
1796
1795
|
function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
1797
1796
|
var tmp;
|
|
1798
1797
|
if (it instanceof Param) {
|
|
1799
|
-
tmp = '{' + it.
|
|
1798
|
+
tmp = '{' + it.mr_1.o1() + '}';
|
|
1800
1799
|
} else {
|
|
1801
1800
|
if (it instanceof Literal) {
|
|
1802
|
-
tmp = it.
|
|
1801
|
+
tmp = it.a1a_1;
|
|
1803
1802
|
} else {
|
|
1804
1803
|
noWhenBranchMatchedException();
|
|
1805
1804
|
}
|
|
@@ -1808,18 +1807,18 @@ function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
|
1808
1807
|
}
|
|
1809
1808
|
function OpenAPIV2Emitter() {
|
|
1810
1809
|
OpenAPIV2Emitter_instance = this;
|
|
1811
|
-
this.
|
|
1812
|
-
this.
|
|
1810
|
+
this.s48_1 = FileExtension_JSON_getInstance();
|
|
1811
|
+
this.t48_1 = true;
|
|
1813
1812
|
}
|
|
1814
|
-
protoOf(OpenAPIV2Emitter).
|
|
1815
|
-
return this.
|
|
1813
|
+
protoOf(OpenAPIV2Emitter).wp = function () {
|
|
1814
|
+
return this.s48_1;
|
|
1816
1815
|
};
|
|
1817
|
-
protoOf(OpenAPIV2Emitter).
|
|
1818
|
-
return this.
|
|
1816
|
+
protoOf(OpenAPIV2Emitter).vp = function () {
|
|
1817
|
+
return this.t48_1;
|
|
1819
1818
|
};
|
|
1820
|
-
protoOf(OpenAPIV2Emitter).
|
|
1819
|
+
protoOf(OpenAPIV2Emitter).to = function (ast, logger) {
|
|
1821
1820
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
1822
|
-
var this_0 = ast.
|
|
1821
|
+
var this_0 = ast.ep_1;
|
|
1823
1822
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1824
1823
|
var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
1825
1824
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -1827,27 +1826,27 @@ protoOf(OpenAPIV2Emitter).mo = function (ast, logger) {
|
|
|
1827
1826
|
var _iterator__ex2g4s = tmp0.t();
|
|
1828
1827
|
while (_iterator__ex2g4s.u()) {
|
|
1829
1828
|
var element = _iterator__ex2g4s.v();
|
|
1830
|
-
logger.
|
|
1831
|
-
var list = new NonEmptyList(element.
|
|
1829
|
+
logger.as('Combining Nodes from ' + element.fp_1.io_1 + ' ');
|
|
1830
|
+
var list = new NonEmptyList(element.gp_1);
|
|
1832
1831
|
addAll(destination, list);
|
|
1833
1832
|
}
|
|
1834
1833
|
// Inline function 'kotlin.let' call
|
|
1835
1834
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
1836
|
-
var tmp = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().
|
|
1835
|
+
var tmp = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().s48_1.xr_1;
|
|
1837
1836
|
var tmp0_0 = get_json();
|
|
1838
1837
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
1839
|
-
var value = OpenAPIV2Emitter_getInstance().
|
|
1838
|
+
var value = OpenAPIV2Emitter_getInstance().u48(it, logger);
|
|
1840
1839
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
1841
|
-
var this_1 = tmp0_0.
|
|
1840
|
+
var this_1 = tmp0_0.b26();
|
|
1842
1841
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1843
1842
|
var this_2 = serializer(this_1, createKType(getKClass(OpenAPIV2Model), arrayOf([]), false));
|
|
1844
1843
|
var tmp$ret$7 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
1845
|
-
var tmp$ret$6 = tmp0_0.
|
|
1844
|
+
var tmp$ret$6 = tmp0_0.g2n(tmp$ret$7, value);
|
|
1846
1845
|
// Inline function 'kotlin.let' call
|
|
1847
1846
|
var it_0 = new Emitted(tmp, tmp$ret$6);
|
|
1848
1847
|
return nonEmptyListOf(it_0, []);
|
|
1849
1848
|
};
|
|
1850
|
-
protoOf(OpenAPIV2Emitter).
|
|
1849
|
+
protoOf(OpenAPIV2Emitter).u48 = function (statements, logger) {
|
|
1851
1850
|
var tmp0_info = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, VOID, '0.0.0');
|
|
1852
1851
|
var tmp1_consumes = listOf('application/json');
|
|
1853
1852
|
var tmp2_produces = listOf('application/json');
|
|
@@ -1863,15 +1862,15 @@ function OpenAPIV2Emitter_getInstance() {
|
|
|
1863
1862
|
}
|
|
1864
1863
|
function OpenAPIV2Parser$parse$lambda($strict) {
|
|
1865
1864
|
return function (it) {
|
|
1866
|
-
return new NonEmptyList(OpenAPIV2Parser_instance.
|
|
1865
|
+
return new NonEmptyList(OpenAPIV2Parser_instance.v48((new OpenAPIV2(jsonDefault($strict))).e34(it)));
|
|
1867
1866
|
};
|
|
1868
1867
|
}
|
|
1869
1868
|
function OpenAPIV2Parser() {
|
|
1870
1869
|
}
|
|
1871
|
-
protoOf(OpenAPIV2Parser).
|
|
1870
|
+
protoOf(OpenAPIV2Parser).w48 = function (moduleContent, strict) {
|
|
1872
1871
|
return parseOpenApi(moduleContent, OpenAPIV2Parser$parse$lambda(strict));
|
|
1873
1872
|
};
|
|
1874
|
-
protoOf(OpenAPIV2Parser).
|
|
1873
|
+
protoOf(OpenAPIV2Parser).v48 = function (_this__u8e3s4) {
|
|
1875
1874
|
// Inline function 'kotlin.collections.reduce' call
|
|
1876
1875
|
var iterator = listOf_0([parseEndpoints(_this__u8e3s4), parseParameters(_this__u8e3s4), parseRequestBody(_this__u8e3s4), parseResponseBody(_this__u8e3s4), parseDefinitions(_this__u8e3s4)]).t();
|
|
1877
1876
|
if (!iterator.u())
|
|
@@ -1886,7 +1885,7 @@ protoOf(OpenAPIV2Parser).u47 = function (_this__u8e3s4) {
|
|
|
1886
1885
|
var tmp = toNonEmptyListOrNull(resolveEndpointNameCollisions(tmp$ret$0));
|
|
1887
1886
|
// Inline function 'kotlin.let' call
|
|
1888
1887
|
var tmp_0 = tmp == null ? null : new NonEmptyList(tmp);
|
|
1889
|
-
var tmp_1 = tmp_0 == null ? null : tmp_0.
|
|
1888
|
+
var tmp_1 = tmp_0 == null ? null : tmp_0.dn_1;
|
|
1890
1889
|
var tmp0_0 = tmp_1 == null ? null : new NonEmptyList(tmp_1);
|
|
1891
1890
|
var tmp$ret$4;
|
|
1892
1891
|
$l$block: {
|
|
@@ -1895,7 +1894,7 @@ protoOf(OpenAPIV2Parser).u47 = function (_this__u8e3s4) {
|
|
|
1895
1894
|
var message = 'Cannot yield empty AST for OpenAPI v2';
|
|
1896
1895
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1897
1896
|
} else {
|
|
1898
|
-
tmp$ret$4 = tmp0_0.
|
|
1897
|
+
tmp$ret$4 = tmp0_0.dn_1;
|
|
1899
1898
|
break $l$block;
|
|
1900
1899
|
}
|
|
1901
1900
|
}
|
|
@@ -1907,35 +1906,35 @@ function OpenAPIV2Parser_getInstance() {
|
|
|
1907
1906
|
}
|
|
1908
1907
|
function parseEndpoints(_this__u8e3s4) {
|
|
1909
1908
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1910
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1909
|
+
var tmp0_elvis_lhs = _this__u8e3s4.k34();
|
|
1911
1910
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1912
1911
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1913
1912
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1914
1913
|
var destination = ArrayList_init_$Create$_0();
|
|
1915
1914
|
// Inline function 'kotlin.collections.iterator' call
|
|
1916
|
-
var _iterator__ex2g4s = tmp0.
|
|
1915
|
+
var _iterator__ex2g4s = tmp0.m1().t();
|
|
1917
1916
|
while (_iterator__ex2g4s.u()) {
|
|
1918
1917
|
var element = _iterator__ex2g4s.v();
|
|
1919
1918
|
// Inline function 'kotlin.collections.component1' call
|
|
1920
|
-
var path = element.
|
|
1919
|
+
var path = element.n1().k31_1;
|
|
1921
1920
|
// Inline function 'kotlin.collections.component2' call
|
|
1922
|
-
var pathItem = element.
|
|
1921
|
+
var pathItem = element.o1();
|
|
1923
1922
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1924
1923
|
var tmp0_0 = toOperationList(pathItem);
|
|
1925
1924
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1926
1925
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
1927
1926
|
// Inline function 'kotlin.collections.iterator' call
|
|
1928
|
-
var _iterator__ex2g4s_0 = tmp0_0.
|
|
1927
|
+
var _iterator__ex2g4s_0 = tmp0_0.m1().t();
|
|
1929
1928
|
while (_iterator__ex2g4s_0.u()) {
|
|
1930
1929
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1931
1930
|
// Inline function 'kotlin.collections.component1' call
|
|
1932
|
-
var method = element_0.
|
|
1931
|
+
var method = element_0.n1();
|
|
1933
1932
|
// Inline function 'kotlin.collections.component2' call
|
|
1934
|
-
var operation = element_0.
|
|
1935
|
-
var parameters = plus_0(resolveParameters(_this__u8e3s4, pathItem.
|
|
1933
|
+
var operation = element_0.o1();
|
|
1934
|
+
var parameters = plus_0(resolveParameters(_this__u8e3s4, pathItem.l1g()), resolveParameters(_this__u8e3s4, operation.l1g()));
|
|
1936
1935
|
var segments = toSegments(path, parameters);
|
|
1937
1936
|
var tmp0_elvis_lhs_0 = toName(operation);
|
|
1938
|
-
var name = tmp0_elvis_lhs_0 == null ? toName_0(path) + method.
|
|
1937
|
+
var name = tmp0_elvis_lhs_0 == null ? toName_0(path) + method.d3_1 : tmp0_elvis_lhs_0;
|
|
1939
1938
|
// Inline function 'kotlin.collections.filter' call
|
|
1940
1939
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1941
1940
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
@@ -1955,7 +1954,8 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1955
1954
|
var tmp$ret$18 = toField(_this__u8e3s4, item, name);
|
|
1956
1955
|
destination_2.x(tmp$ret$18);
|
|
1957
1956
|
}
|
|
1958
|
-
|
|
1957
|
+
// Inline function 'kotlin.let' call
|
|
1958
|
+
var query = new Shape(destination_2);
|
|
1959
1959
|
// Inline function 'kotlin.collections.filter' call
|
|
1960
1960
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1961
1961
|
var destination_3 = ArrayList_init_$Create$_0();
|
|
@@ -1972,14 +1972,15 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1972
1972
|
var _iterator__ex2g4s_4 = destination_3.t();
|
|
1973
1973
|
while (_iterator__ex2g4s_4.u()) {
|
|
1974
1974
|
var item_0 = _iterator__ex2g4s_4.v();
|
|
1975
|
-
var tmp$ret$
|
|
1976
|
-
destination_4.x(tmp$ret$
|
|
1975
|
+
var tmp$ret$26 = toField(_this__u8e3s4, item_0, name);
|
|
1976
|
+
destination_4.x(tmp$ret$26);
|
|
1977
1977
|
}
|
|
1978
|
-
|
|
1978
|
+
// Inline function 'kotlin.let' call
|
|
1979
|
+
var headers = new Shape(destination_4);
|
|
1979
1980
|
var tmp1_safe_receiver = operation instanceof OpenAPIV20Operation ? operation : null;
|
|
1980
|
-
var operationConsumes = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1981
|
+
var operationConsumes = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.c39_1;
|
|
1981
1982
|
var tmp2_safe_receiver = operation instanceof OpenAPIV20Operation ? operation : null;
|
|
1982
|
-
var operationProduces = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
1983
|
+
var operationProduces = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.d39_1;
|
|
1983
1984
|
// Inline function 'kotlin.collections.filter' call
|
|
1984
1985
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1985
1986
|
var destination_5 = ArrayList_init_$Create$_0();
|
|
@@ -1997,12 +1998,12 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1997
1998
|
while (_iterator__ex2g4s_6.u()) {
|
|
1998
1999
|
var element_4 = _iterator__ex2g4s_6.v();
|
|
1999
2000
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2000
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
2001
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.h34();
|
|
2001
2002
|
var tmp = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
2002
2003
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2003
|
-
var tmp$ret$
|
|
2004
|
+
var tmp$ret$36 = operationConsumes == null ? emptyList() : operationConsumes;
|
|
2004
2005
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
2005
|
-
var this_0 = distinct(plus_0(tmp, tmp$ret$
|
|
2006
|
+
var this_0 = distinct(plus_0(tmp, tmp$ret$36));
|
|
2006
2007
|
var tmp_0;
|
|
2007
2008
|
if (this_0.r()) {
|
|
2008
2009
|
tmp_0 = listOf('application/json');
|
|
@@ -2017,7 +2018,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2017
2018
|
while (_iterator__ex2g4s_7.u()) {
|
|
2018
2019
|
var item_1 = _iterator__ex2g4s_7.v();
|
|
2019
2020
|
var isNullable = false;
|
|
2020
|
-
var schema = element_4.
|
|
2021
|
+
var schema = element_4.w38_1;
|
|
2021
2022
|
var tmp_1;
|
|
2022
2023
|
if (!(schema == null) ? isInterface(schema, Reference) : false) {
|
|
2023
2024
|
tmp_1 = toReference(_this__u8e3s4, schema, isNullable);
|
|
@@ -2034,8 +2035,8 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2034
2035
|
}
|
|
2035
2036
|
}
|
|
2036
2037
|
}
|
|
2037
|
-
var tmp$ret$
|
|
2038
|
-
destination_7.x(tmp$ret$
|
|
2038
|
+
var tmp$ret$41 = new Request(new Content(item_1, tmp_1));
|
|
2039
|
+
destination_7.x(tmp$ret$41);
|
|
2039
2040
|
}
|
|
2040
2041
|
var list = destination_7;
|
|
2041
2042
|
addAll(destination_6, list);
|
|
@@ -2049,37 +2050,37 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2049
2050
|
}
|
|
2050
2051
|
var requests = tmp_2;
|
|
2051
2052
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2052
|
-
var tmp0_elvis_lhs_2 = operation.
|
|
2053
|
+
var tmp0_elvis_lhs_2 = operation.h1f();
|
|
2053
2054
|
// Inline function 'kotlin.collections.mapValues' call
|
|
2054
2055
|
var this_2 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
2055
2056
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
2056
2057
|
var destination_8 = LinkedHashMap_init_$Create$(mapCapacity(this_2.b1()));
|
|
2057
2058
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2058
|
-
var _iterator__ex2g4s_8 = this_2.
|
|
2059
|
+
var _iterator__ex2g4s_8 = this_2.m1().t();
|
|
2059
2060
|
while (_iterator__ex2g4s_8.u()) {
|
|
2060
2061
|
var element_5 = _iterator__ex2g4s_8.v();
|
|
2061
|
-
var tmp_3 = element_5.
|
|
2062
|
-
var tmp$ret$
|
|
2063
|
-
destination_8.
|
|
2062
|
+
var tmp_3 = element_5.n1();
|
|
2063
|
+
var tmp$ret$50 = resolveResponse(_this__u8e3s4, element_5.o1());
|
|
2064
|
+
destination_8.v2(tmp_3, tmp$ret$50);
|
|
2064
2065
|
}
|
|
2065
2066
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2066
2067
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2067
2068
|
var destination_9 = ArrayList_init_$Create$_0();
|
|
2068
2069
|
// Inline function 'kotlin.collections.iterator' call
|
|
2069
|
-
var _iterator__ex2g4s_9 = destination_8.
|
|
2070
|
+
var _iterator__ex2g4s_9 = destination_8.m1().t();
|
|
2070
2071
|
while (_iterator__ex2g4s_9.u()) {
|
|
2071
2072
|
var element_6 = _iterator__ex2g4s_9.v();
|
|
2072
2073
|
// Inline function 'kotlin.collections.component1' call
|
|
2073
|
-
var status = element_6.
|
|
2074
|
+
var status = element_6.n1().o31_1;
|
|
2074
2075
|
// Inline function 'kotlin.collections.component2' call
|
|
2075
|
-
var res = element_6.
|
|
2076
|
+
var res = element_6.o1();
|
|
2076
2077
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2077
|
-
var tmp0_elvis_lhs_3 = _this__u8e3s4.
|
|
2078
|
+
var tmp0_elvis_lhs_3 = _this__u8e3s4.i34();
|
|
2078
2079
|
var tmp_4 = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
|
|
2079
2080
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2080
|
-
var tmp$ret$
|
|
2081
|
+
var tmp$ret$58 = operationProduces == null ? emptyList() : operationProduces;
|
|
2081
2082
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
2082
|
-
var this_3 = distinct(plus_0(tmp_4, tmp$ret$
|
|
2083
|
+
var this_3 = distinct(plus_0(tmp_4, tmp$ret$58));
|
|
2083
2084
|
var tmp_5;
|
|
2084
2085
|
if (this_3.r()) {
|
|
2085
2086
|
tmp_5 = listOf('application/json');
|
|
@@ -2093,9 +2094,9 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2093
2094
|
var _iterator__ex2g4s_10 = this_4.t();
|
|
2094
2095
|
while (_iterator__ex2g4s_10.u()) {
|
|
2095
2096
|
var item_2 = _iterator__ex2g4s_10.v();
|
|
2096
|
-
var tmp3_annotations = toDescriptionAnnotationList(res.
|
|
2097
|
+
var tmp3_annotations = toDescriptionAnnotationList(res.u31());
|
|
2097
2098
|
var tmp4_status = _StatusCode___get_value__impl__we50mu(status);
|
|
2098
|
-
var tmp0_safe_receiver = res.
|
|
2099
|
+
var tmp0_safe_receiver = res.f1f();
|
|
2099
2100
|
var tmp_6;
|
|
2100
2101
|
if (tmp0_safe_receiver == null) {
|
|
2101
2102
|
tmp_6 = null;
|
|
@@ -2104,23 +2105,25 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2104
2105
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2105
2106
|
var destination_11 = ArrayList_init_$Create$(tmp0_safe_receiver.b1());
|
|
2106
2107
|
// Inline function 'kotlin.collections.iterator' call
|
|
2107
|
-
var _iterator__ex2g4s_11 = tmp0_safe_receiver.
|
|
2108
|
+
var _iterator__ex2g4s_11 = tmp0_safe_receiver.m1().t();
|
|
2108
2109
|
while (_iterator__ex2g4s_11.u()) {
|
|
2109
2110
|
var item_3 = _iterator__ex2g4s_11.v();
|
|
2110
2111
|
// Inline function 'kotlin.collections.component1' call
|
|
2111
|
-
var identifier = item_3.
|
|
2112
|
+
var identifier = item_3.n1();
|
|
2112
2113
|
// Inline function 'kotlin.collections.component2' call
|
|
2113
|
-
var header = item_3.
|
|
2114
|
-
var tmp$ret$
|
|
2115
|
-
destination_11.x(tmp$ret$
|
|
2114
|
+
var header = item_3.o1();
|
|
2115
|
+
var tmp$ret$67 = toField_0(_this__u8e3s4, resolveHeader(header), identifier);
|
|
2116
|
+
destination_11.x(tmp$ret$67);
|
|
2116
2117
|
}
|
|
2117
2118
|
tmp_6 = destination_11;
|
|
2118
2119
|
}
|
|
2119
2120
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2120
2121
|
var tmp0_elvis_lhs_4 = tmp_6;
|
|
2121
|
-
|
|
2122
|
+
// Inline function 'kotlin.let' call
|
|
2123
|
+
var p0 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
2124
|
+
var tmp5_headers = new Shape(p0);
|
|
2122
2125
|
var tmp1_safe_receiver_0 = res instanceof OpenAPIV20Response ? res : null;
|
|
2123
|
-
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
2126
|
+
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.y39_1;
|
|
2124
2127
|
var tmp_7;
|
|
2125
2128
|
if (tmp2_safe_receiver_0 == null) {
|
|
2126
2129
|
tmp_7 = null;
|
|
@@ -2139,8 +2142,8 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2139
2142
|
tmp_7 = new Content(item_2, tmp_8);
|
|
2140
2143
|
}
|
|
2141
2144
|
var tmp6_content = tmp_7;
|
|
2142
|
-
var tmp$ret$
|
|
2143
|
-
destination_10.x(tmp$ret$
|
|
2145
|
+
var tmp$ret$63 = new Response(tmp4_status, tmp5_headers, tmp6_content, tmp3_annotations);
|
|
2146
|
+
destination_10.x(tmp$ret$63);
|
|
2144
2147
|
}
|
|
2145
2148
|
var list_0 = destination_10;
|
|
2146
2149
|
addAll(destination_9, list_0);
|
|
@@ -2151,13 +2154,13 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2151
2154
|
var _iterator__ex2g4s_12 = destination_9.t();
|
|
2152
2155
|
while (_iterator__ex2g4s_12.u()) {
|
|
2153
2156
|
var e = _iterator__ex2g4s_12.v();
|
|
2154
|
-
var key = to(e.
|
|
2157
|
+
var key = to(e.rr_1, e.tr_1);
|
|
2155
2158
|
if (set.x(key)) {
|
|
2156
2159
|
list_1.x(e);
|
|
2157
2160
|
}
|
|
2158
2161
|
}
|
|
2159
2162
|
var responses = list_1;
|
|
2160
|
-
var list_2 = listOf(new Endpoint(null, toDescriptionAnnotationList(operation.
|
|
2163
|
+
var list_2 = listOf(new Endpoint(null, toDescriptionAnnotationList(operation.u31()), new DefinitionIdentifier(sanitize(name)), method, segments, query, headers, requests, responses));
|
|
2161
2164
|
addAll(destination_0, list_2);
|
|
2162
2165
|
}
|
|
2163
2166
|
var list_3 = destination_0;
|
|
@@ -2176,20 +2179,20 @@ function parseResponseBody(_this__u8e3s4) {
|
|
|
2176
2179
|
}
|
|
2177
2180
|
function parseDefinitions(_this__u8e3s4) {
|
|
2178
2181
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2179
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2182
|
+
var tmp0_elvis_lhs = _this__u8e3s4.j34();
|
|
2180
2183
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2181
2184
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2182
2185
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2183
2186
|
var destination = ArrayList_init_$Create$_0();
|
|
2184
2187
|
// Inline function 'kotlin.collections.forEach' call
|
|
2185
2188
|
// Inline function 'kotlin.collections.iterator' call
|
|
2186
|
-
var _iterator__ex2g4s = tmp0.
|
|
2189
|
+
var _iterator__ex2g4s = tmp0.m1().t();
|
|
2187
2190
|
while (_iterator__ex2g4s.u()) {
|
|
2188
2191
|
var element = _iterator__ex2g4s.v();
|
|
2189
2192
|
// Inline function 'kotlin.collections.component1' call
|
|
2190
|
-
var key = element.
|
|
2193
|
+
var key = element.n1();
|
|
2191
2194
|
// Inline function 'kotlin.collections.component2' call
|
|
2192
|
-
var value = element.
|
|
2195
|
+
var value = element.o1();
|
|
2193
2196
|
var tmp0_safe_receiver = isInterface(value, Schema) ? value : null;
|
|
2194
2197
|
var tmp;
|
|
2195
2198
|
if (tmp0_safe_receiver == null) {
|
|
@@ -2212,7 +2215,7 @@ function parseDefinitions(_this__u8e3s4) {
|
|
|
2212
2215
|
var _iterator__ex2g4s_0 = destination.t();
|
|
2213
2216
|
while (_iterator__ex2g4s_0.u()) {
|
|
2214
2217
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
2215
|
-
var tmp0_subject = element_0.
|
|
2218
|
+
var tmp0_subject = element_0.gf_1.a32();
|
|
2216
2219
|
var tmp_0;
|
|
2217
2220
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
2218
2221
|
tmp_0 = true;
|
|
@@ -2241,7 +2244,7 @@ function parseDefinitions(_this__u8e3s4) {
|
|
|
2241
2244
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
2242
2245
|
while (_iterator__ex2g4s_1.u()) {
|
|
2243
2246
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
2244
|
-
var list = flatten(_this__u8e3s4, element_1.
|
|
2247
|
+
var list = flatten(_this__u8e3s4, element_1.gf_1, className([element_1.ff_1]));
|
|
2245
2248
|
addAll(destination_1, list);
|
|
2246
2249
|
}
|
|
2247
2250
|
return destination_1;
|
|
@@ -2310,7 +2313,7 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
2310
2313
|
var _iterator__ex2g4s_0 = parameters.t();
|
|
2311
2314
|
while (_iterator__ex2g4s_0.u()) {
|
|
2312
2315
|
var element = _iterator__ex2g4s_0.v();
|
|
2313
|
-
if (element.
|
|
2316
|
+
if (element.x38_1 === param) {
|
|
2314
2317
|
tmp$ret$5 = element;
|
|
2315
2318
|
break $l$block;
|
|
2316
2319
|
}
|
|
@@ -2353,20 +2356,20 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
2353
2356
|
return destination;
|
|
2354
2357
|
}
|
|
2355
2358
|
function get_location(_this__u8e3s4) {
|
|
2356
|
-
return _this__u8e3s4.
|
|
2359
|
+
return _this__u8e3s4.v38_1;
|
|
2357
2360
|
}
|
|
2358
2361
|
function toField(_this__u8e3s4, parameter, name) {
|
|
2359
2362
|
// Inline function 'kotlin.let' call
|
|
2360
2363
|
var schema = resolveParameter(_this__u8e3s4, parameter);
|
|
2361
|
-
var tmp0_elvis_lhs = parameter.
|
|
2364
|
+
var tmp0_elvis_lhs = parameter.c38_1;
|
|
2362
2365
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
2363
2366
|
var tmp;
|
|
2364
|
-
if (!(parameter.
|
|
2365
|
-
tmp = new Custom(sanitize(className([name, 'Parameter', schema.
|
|
2367
|
+
if (!(parameter.t38_1 == null)) {
|
|
2368
|
+
tmp = new Custom(sanitize(className([name, 'Parameter', schema.x38_1])), isNullable);
|
|
2366
2369
|
} else {
|
|
2367
|
-
var tmp1_subject = schema.
|
|
2370
|
+
var tmp1_subject = schema.d38_1;
|
|
2368
2371
|
var tmp_0;
|
|
2369
|
-
switch (tmp1_subject == null ? -1 : tmp1_subject.
|
|
2372
|
+
switch (tmp1_subject == null ? -1 : tmp1_subject.e3_1) {
|
|
2370
2373
|
case 0:
|
|
2371
2374
|
case 1:
|
|
2372
2375
|
case 2:
|
|
@@ -2377,7 +2380,7 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2377
2380
|
tmp_0 = new Primitive(primitive, isNullable);
|
|
2378
2381
|
break;
|
|
2379
2382
|
case 4:
|
|
2380
|
-
var tmp2_safe_receiver = schema.
|
|
2383
|
+
var tmp2_safe_receiver = schema.e38_1;
|
|
2381
2384
|
var tmp_1;
|
|
2382
2385
|
if (tmp2_safe_receiver == null) {
|
|
2383
2386
|
tmp_1 = null;
|
|
@@ -2431,17 +2434,17 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2431
2434
|
}
|
|
2432
2435
|
// Inline function 'kotlin.let' call
|
|
2433
2436
|
var it = tmp;
|
|
2434
|
-
var tmp0_identifier = new FieldIdentifier(parameter.
|
|
2435
|
-
var tmp1_annotations = toDescriptionAnnotationList(parameter.
|
|
2437
|
+
var tmp0_identifier = new FieldIdentifier(parameter.x38_1);
|
|
2438
|
+
var tmp1_annotations = toDescriptionAnnotationList(parameter.b38_1);
|
|
2436
2439
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
2437
2440
|
}
|
|
2438
2441
|
function toReference(_this__u8e3s4, reference, isNullable) {
|
|
2439
2442
|
var _destruct__k2r9zo = resolveSchemaRef(_this__u8e3s4, reference);
|
|
2440
|
-
var referencingObject = _destruct__k2r9zo.
|
|
2441
|
-
var schema = _destruct__k2r9zo.
|
|
2443
|
+
var referencingObject = _destruct__k2r9zo.ze();
|
|
2444
|
+
var schema = _destruct__k2r9zo.af();
|
|
2442
2445
|
var tmp;
|
|
2443
|
-
if (exists(schema.
|
|
2444
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2446
|
+
if (exists(schema.a32())) {
|
|
2447
|
+
var additionalProperties = ensureNotNull(schema.a32());
|
|
2445
2448
|
var tmp_0;
|
|
2446
2449
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
2447
2450
|
tmp_0 = new Dict(new Any(false), isNullable);
|
|
@@ -2457,15 +2460,15 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2457
2460
|
}
|
|
2458
2461
|
}
|
|
2459
2462
|
tmp = tmp_0;
|
|
2460
|
-
} else if (!(schema.
|
|
2463
|
+
} else if (!(schema.w31() == null)) {
|
|
2461
2464
|
tmp = new Custom(sanitize(className([getReference(referencingObject)])), isNullable);
|
|
2462
2465
|
} else if (isPrimitive(get_primitiveType(schema))) {
|
|
2463
2466
|
tmp = new Primitive(toPrimitive_0(schema), isNullable);
|
|
2464
2467
|
} else {
|
|
2465
2468
|
var tmp0_subject = get_primitiveType(schema);
|
|
2466
2469
|
var tmp_1;
|
|
2467
|
-
if ((tmp0_subject == null ? -1 : tmp0_subject.
|
|
2468
|
-
var items = schema.
|
|
2470
|
+
if ((tmp0_subject == null ? -1 : tmp0_subject.e3_1) === 4) {
|
|
2471
|
+
var items = schema.x31();
|
|
2469
2472
|
var tmp_2;
|
|
2470
2473
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
2471
2474
|
tmp_2 = toIterable(toReference(_this__u8e3s4, items, false), isNullable);
|
|
@@ -2475,7 +2478,7 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2475
2478
|
} else {
|
|
2476
2479
|
if (items == null) {
|
|
2477
2480
|
// Inline function 'kotlin.error' call
|
|
2478
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.
|
|
2481
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.t31());
|
|
2479
2482
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2480
2483
|
} else {
|
|
2481
2484
|
noWhenBranchMatchedException();
|
|
@@ -2498,20 +2501,20 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2498
2501
|
var tmp_3;
|
|
2499
2502
|
var tmp_4;
|
|
2500
2503
|
var tmp_5;
|
|
2501
|
-
var tmp0_safe_receiver = schema.
|
|
2504
|
+
var tmp0_safe_receiver = schema.y31();
|
|
2502
2505
|
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b1()) === 1) {
|
|
2503
|
-
var tmp_6 = first(ensureNotNull(schema.
|
|
2506
|
+
var tmp_6 = first(ensureNotNull(schema.y31()));
|
|
2504
2507
|
tmp_5 = isInterface(tmp_6, Reference);
|
|
2505
2508
|
} else {
|
|
2506
2509
|
tmp_5 = false;
|
|
2507
2510
|
}
|
|
2508
2511
|
if (tmp_5) {
|
|
2509
|
-
tmp_4 = schema.
|
|
2512
|
+
tmp_4 = schema.z31() == null;
|
|
2510
2513
|
} else {
|
|
2511
2514
|
tmp_4 = false;
|
|
2512
2515
|
}
|
|
2513
2516
|
if (tmp_4) {
|
|
2514
|
-
tmp_3 = schema.
|
|
2517
|
+
tmp_3 = schema.w31() == null;
|
|
2515
2518
|
} else {
|
|
2516
2519
|
tmp_3 = false;
|
|
2517
2520
|
}
|
|
@@ -2521,21 +2524,21 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2521
2524
|
tmp_2 = false;
|
|
2522
2525
|
}
|
|
2523
2526
|
if (tmp_2) {
|
|
2524
|
-
tmp_1 = schema.
|
|
2527
|
+
tmp_1 = schema.x31() == null;
|
|
2525
2528
|
} else {
|
|
2526
2529
|
tmp_1 = false;
|
|
2527
2530
|
}
|
|
2528
2531
|
if (tmp_1) {
|
|
2529
|
-
tmp_0 = schema.
|
|
2532
|
+
tmp_0 = schema.a32() == null;
|
|
2530
2533
|
} else {
|
|
2531
2534
|
tmp_0 = false;
|
|
2532
2535
|
}
|
|
2533
2536
|
if (tmp_0) {
|
|
2534
|
-
var tmp_7 = first(ensureNotNull(schema.
|
|
2537
|
+
var tmp_7 = first(ensureNotNull(schema.y31()));
|
|
2535
2538
|
tmp = toReference(_this__u8e3s4, isInterface(tmp_7, Reference) ? tmp_7 : THROW_CCE(), isNullable);
|
|
2536
2539
|
} else {
|
|
2537
|
-
if (!(schema.
|
|
2538
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2540
|
+
if (!(schema.a32() == null)) {
|
|
2541
|
+
var additionalProperties = ensureNotNull(schema.a32());
|
|
2539
2542
|
var tmp_8;
|
|
2540
2543
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
2541
2544
|
tmp_8 = new Dict(new Any(false), isNullable);
|
|
@@ -2546,7 +2549,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2546
2549
|
if (isInterface(additionalProperties, Schema)) {
|
|
2547
2550
|
// Inline function 'kotlin.takeIf' call
|
|
2548
2551
|
var tmp_9;
|
|
2549
|
-
if (isPrimitive(get_primitiveType(additionalProperties)) || !(additionalProperties.
|
|
2552
|
+
if (isPrimitive(get_primitiveType(additionalProperties)) || !(additionalProperties.z31() == null)) {
|
|
2550
2553
|
tmp_9 = additionalProperties;
|
|
2551
2554
|
} else {
|
|
2552
2555
|
tmp_9 = null;
|
|
@@ -2568,9 +2571,9 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2568
2571
|
}
|
|
2569
2572
|
tmp = tmp_8;
|
|
2570
2573
|
} else {
|
|
2571
|
-
if (!(schema.
|
|
2574
|
+
if (!(schema.w31() == null)) {
|
|
2572
2575
|
var tmp_11;
|
|
2573
|
-
if (!(schema.
|
|
2576
|
+
if (!(schema.a32() == null)) {
|
|
2574
2577
|
tmp_11 = new Dict(new Custom(sanitize(name), false), isNullable);
|
|
2575
2578
|
} else {
|
|
2576
2579
|
tmp_11 = new Custom(sanitize(name), isNullable);
|
|
@@ -2579,13 +2582,13 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2579
2582
|
} else {
|
|
2580
2583
|
var tmp3_subject = get_primitiveType(schema);
|
|
2581
2584
|
var tmp_12;
|
|
2582
|
-
switch (tmp3_subject == null ? -1 : tmp3_subject.
|
|
2585
|
+
switch (tmp3_subject == null ? -1 : tmp3_subject.e3_1) {
|
|
2583
2586
|
case 0:
|
|
2584
2587
|
case 2:
|
|
2585
2588
|
case 1:
|
|
2586
2589
|
case 3:
|
|
2587
2590
|
var tmp_13;
|
|
2588
|
-
if (!(schema.
|
|
2591
|
+
if (!(schema.a32() == null)) {
|
|
2589
2592
|
tmp_13 = new Dict(new Primitive(toPrimitive_0(schema), false), isNullable);
|
|
2590
2593
|
} else {
|
|
2591
2594
|
tmp_13 = new Primitive(toPrimitive_0(schema), isNullable);
|
|
@@ -2596,17 +2599,17 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2596
2599
|
case -1:
|
|
2597
2600
|
case 5:
|
|
2598
2601
|
var tmp_14;
|
|
2599
|
-
var tmp_15 = schema.
|
|
2602
|
+
var tmp_15 = schema.a32();
|
|
2600
2603
|
if (!(tmp_15 == null) ? isInterface(tmp_15, BooleanValue) : false) {
|
|
2601
2604
|
var tmp_16;
|
|
2602
|
-
if (!(schema.
|
|
2605
|
+
if (!(schema.a32() == null)) {
|
|
2603
2606
|
tmp_16 = new Dict(new Any(isNullable), false);
|
|
2604
2607
|
} else {
|
|
2605
2608
|
tmp_16 = new Any(isNullable);
|
|
2606
2609
|
}
|
|
2607
2610
|
tmp_14 = tmp_16;
|
|
2608
2611
|
} else {
|
|
2609
|
-
if (!(schema.
|
|
2612
|
+
if (!(schema.a32() == null)) {
|
|
2610
2613
|
new Dict(new Custom(sanitize(name), isNullable), false);
|
|
2611
2614
|
}
|
|
2612
2615
|
tmp_14 = new Custom(sanitize(name), isNullable);
|
|
@@ -2615,7 +2618,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2615
2618
|
tmp_12 = tmp_14;
|
|
2616
2619
|
break;
|
|
2617
2620
|
case 4:
|
|
2618
|
-
var items = schema.
|
|
2621
|
+
var items = schema.x31();
|
|
2619
2622
|
var tmp_17;
|
|
2620
2623
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
2621
2624
|
tmp_17 = toIterable(toReference(_this__u8e3s4, items, false), isNullable);
|
|
@@ -2675,10 +2678,10 @@ function toField_0(_this__u8e3s4, header, identifier) {
|
|
|
2675
2678
|
}
|
|
2676
2679
|
var v20 = tmp;
|
|
2677
2680
|
var tmp5_identifier = new FieldIdentifier(identifier);
|
|
2678
|
-
var tmp6_annotations = toDescriptionAnnotationList(header.
|
|
2681
|
+
var tmp6_annotations = toDescriptionAnnotationList(header.h3a_1);
|
|
2679
2682
|
var tmp_0;
|
|
2680
|
-
if (v20.
|
|
2681
|
-
var tmp2_safe_receiver = v20.
|
|
2683
|
+
if (v20.i3a_1.e3_1 === 4) {
|
|
2684
|
+
var tmp2_safe_receiver = v20.k3a_1;
|
|
2682
2685
|
var tmp_1;
|
|
2683
2686
|
if (tmp2_safe_receiver == null) {
|
|
2684
2687
|
tmp_1 = null;
|
|
@@ -2762,17 +2765,17 @@ function resolveParameter(_this__u8e3s4, parameterOrReference) {
|
|
|
2762
2765
|
}
|
|
2763
2766
|
function get_primitiveType(_this__u8e3s4) {
|
|
2764
2767
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof OpenAPIV20Schema ? _this__u8e3s4 : null;
|
|
2765
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2768
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s36_1;
|
|
2766
2769
|
}
|
|
2767
2770
|
function flatten(_this__u8e3s4, schemaObject, name) {
|
|
2768
2771
|
var tmp;
|
|
2769
|
-
if (exists(schemaObject.
|
|
2770
|
-
var tmp0_subject = schemaObject.
|
|
2772
|
+
if (exists(schemaObject.a32())) {
|
|
2773
|
+
var tmp0_subject = schemaObject.a32();
|
|
2771
2774
|
var tmp_0;
|
|
2772
2775
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
2773
2776
|
tmp_0 = emptyList();
|
|
2774
2777
|
} else {
|
|
2775
|
-
var tmp1_safe_receiver = schemaObject.
|
|
2778
|
+
var tmp1_safe_receiver = schemaObject.a32();
|
|
2776
2779
|
var tmp_1;
|
|
2777
2780
|
if (tmp1_safe_receiver == null) {
|
|
2778
2781
|
tmp_1 = null;
|
|
@@ -2787,7 +2790,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2787
2790
|
} else {
|
|
2788
2791
|
// Inline function 'kotlin.takeIf' call
|
|
2789
2792
|
var tmp_3;
|
|
2790
|
-
if (!(tmp2_safe_receiver.
|
|
2793
|
+
if (!(tmp2_safe_receiver.z31() == null)) {
|
|
2791
2794
|
tmp_3 = tmp2_safe_receiver;
|
|
2792
2795
|
} else {
|
|
2793
2796
|
tmp_3 = null;
|
|
@@ -2806,11 +2809,11 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2806
2809
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
2807
2810
|
}
|
|
2808
2811
|
tmp = tmp_0;
|
|
2809
|
-
} else if (!(schemaObject.
|
|
2810
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
2812
|
+
} else if (!(schemaObject.y31() == null)) {
|
|
2813
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.u31());
|
|
2811
2814
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
2812
2815
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2813
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
2816
|
+
var tmp0_elvis_lhs = schemaObject.y31();
|
|
2814
2817
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2815
2818
|
var tmp0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2816
2819
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2823,7 +2826,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2823
2826
|
tmp_7 = toField_1(_this__u8e3s4, element, name);
|
|
2824
2827
|
} else {
|
|
2825
2828
|
if (isInterface(element, Reference)) {
|
|
2826
|
-
tmp_7 = toField_1(_this__u8e3s4, resolveSchemaRef(_this__u8e3s4, element).
|
|
2829
|
+
tmp_7 = toField_1(_this__u8e3s4, resolveSchemaRef(_this__u8e3s4, element).gf_1, getReference(element));
|
|
2827
2830
|
} else {
|
|
2828
2831
|
noWhenBranchMatchedException();
|
|
2829
2832
|
}
|
|
@@ -2837,14 +2840,14 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2837
2840
|
var _iterator__ex2g4s_0 = destination.t();
|
|
2838
2841
|
while (_iterator__ex2g4s_0.u()) {
|
|
2839
2842
|
var e = _iterator__ex2g4s_0.v();
|
|
2840
|
-
var key = e.
|
|
2843
|
+
var key = e.op_1;
|
|
2841
2844
|
if (set.x(key)) {
|
|
2842
2845
|
list_0.x(e);
|
|
2843
2846
|
}
|
|
2844
2847
|
}
|
|
2845
2848
|
var tmp_8 = listOf(new Type(null, tmp_5, tmp_6, new Shape(list_0), emptyList()));
|
|
2846
2849
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2847
|
-
var tmp0_0 = ensureNotNull(schemaObject.
|
|
2850
|
+
var tmp0_0 = ensureNotNull(schemaObject.y31());
|
|
2848
2851
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2849
2852
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
2850
2853
|
var _iterator__ex2g4s_1 = tmp0_0.t();
|
|
@@ -2856,19 +2859,19 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2856
2859
|
} else {
|
|
2857
2860
|
if (isInterface(element_0, Schema)) {
|
|
2858
2861
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2859
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
2862
|
+
var tmp0_elvis_lhs_0 = element_0.z31();
|
|
2860
2863
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2861
2864
|
var tmp0_1 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2862
2865
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2863
2866
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
2864
2867
|
// Inline function 'kotlin.collections.iterator' call
|
|
2865
|
-
var _iterator__ex2g4s_2 = tmp0_1.
|
|
2868
|
+
var _iterator__ex2g4s_2 = tmp0_1.m1().t();
|
|
2866
2869
|
while (_iterator__ex2g4s_2.u()) {
|
|
2867
2870
|
var element_1 = _iterator__ex2g4s_2.v();
|
|
2868
2871
|
// Inline function 'kotlin.collections.component1' call
|
|
2869
|
-
var key_0 = element_1.
|
|
2872
|
+
var key_0 = element_1.n1();
|
|
2870
2873
|
// Inline function 'kotlin.collections.component2' call
|
|
2871
|
-
var value = element_1.
|
|
2874
|
+
var value = element_1.o1();
|
|
2872
2875
|
var tmp_10;
|
|
2873
2876
|
if (isInterface(value, Reference)) {
|
|
2874
2877
|
tmp_10 = emptyList();
|
|
@@ -2891,29 +2894,29 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2891
2894
|
addAll(destination_0, list_2);
|
|
2892
2895
|
}
|
|
2893
2896
|
tmp = plus_0(tmp_8, destination_0);
|
|
2894
|
-
} else if (!(schemaObject.
|
|
2897
|
+
} else if (!(schemaObject.w31() == null)) {
|
|
2895
2898
|
// Inline function 'kotlin.collections.map' call
|
|
2896
|
-
var this_0 = ensureNotNull(schemaObject.
|
|
2899
|
+
var this_0 = ensureNotNull(schemaObject.w31());
|
|
2897
2900
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2898
2901
|
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
2899
2902
|
var _iterator__ex2g4s_3 = this_0.t();
|
|
2900
2903
|
while (_iterator__ex2g4s_3.u()) {
|
|
2901
2904
|
var item = _iterator__ex2g4s_3.v();
|
|
2902
|
-
var tmp$ret$24 = item.
|
|
2905
|
+
var tmp$ret$24 = item.j1g();
|
|
2903
2906
|
destination_2.x(tmp$ret$24);
|
|
2904
2907
|
}
|
|
2905
2908
|
// Inline function 'kotlin.let' call
|
|
2906
2909
|
var it = toSet(destination_2);
|
|
2907
|
-
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.
|
|
2910
|
+
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.u31()), new DefinitionIdentifier(sanitize(name)), it));
|
|
2908
2911
|
} else {
|
|
2909
2912
|
var tmp5_subject = get_primitiveType(schemaObject);
|
|
2910
2913
|
var tmp_11;
|
|
2911
|
-
switch (tmp5_subject == null ? -1 : tmp5_subject.
|
|
2914
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.e3_1) {
|
|
2912
2915
|
case -1:
|
|
2913
2916
|
case 5:
|
|
2914
2917
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2915
2918
|
|
|
2916
|
-
var tmp0_elvis_lhs_1 = schemaObject.
|
|
2919
|
+
var tmp0_elvis_lhs_1 = schemaObject.z31();
|
|
2917
2920
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2918
2921
|
|
|
2919
2922
|
var tmp0_2 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
@@ -2922,23 +2925,23 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2922
2925
|
var destination_3 = ArrayList_init_$Create$_0();
|
|
2923
2926
|
// Inline function 'kotlin.collections.iterator' call
|
|
2924
2927
|
|
|
2925
|
-
var _iterator__ex2g4s_4 = tmp0_2.
|
|
2928
|
+
var _iterator__ex2g4s_4 = tmp0_2.m1().t();
|
|
2926
2929
|
while (_iterator__ex2g4s_4.u()) {
|
|
2927
2930
|
var element_2 = _iterator__ex2g4s_4.v();
|
|
2928
2931
|
// Inline function 'kotlin.collections.component1' call
|
|
2929
|
-
var key_1 = element_2.
|
|
2932
|
+
var key_1 = element_2.n1();
|
|
2930
2933
|
// Inline function 'kotlin.collections.component2' call
|
|
2931
|
-
var value_0 = element_2.
|
|
2934
|
+
var value_0 = element_2.o1();
|
|
2932
2935
|
var list_3 = flattenSchemaOrRef(_this__u8e3s4, value_0, className([name, key_1]));
|
|
2933
2936
|
addAll(destination_3, list_3);
|
|
2934
2937
|
}
|
|
2935
2938
|
|
|
2936
2939
|
var fields = destination_3;
|
|
2937
|
-
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.
|
|
2940
|
+
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.u31()), new DefinitionIdentifier(sanitize(name)), new Shape(toField_1(_this__u8e3s4, schemaObject, name)), emptyList()));
|
|
2938
2941
|
tmp_11 = plus_0(schema, fields);
|
|
2939
2942
|
break;
|
|
2940
2943
|
case 4:
|
|
2941
|
-
var it_0 = schemaObject.
|
|
2944
|
+
var it_0 = schemaObject.x31();
|
|
2942
2945
|
var tmp_12;
|
|
2943
2946
|
if (!(it_0 == null) ? isInterface(it_0, Reference) : false) {
|
|
2944
2947
|
tmp_12 = emptyList();
|
|
@@ -2965,8 +2968,8 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2965
2968
|
return tmp;
|
|
2966
2969
|
}
|
|
2967
2970
|
function resolveParameterObject(_this__u8e3s4, reference) {
|
|
2968
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2969
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2971
|
+
var tmp0_safe_receiver = _this__u8e3s4.l1g();
|
|
2972
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s2(getReference(reference));
|
|
2970
2973
|
var tmp;
|
|
2971
2974
|
if (tmp1_safe_receiver == null) {
|
|
2972
2975
|
tmp = null;
|
|
@@ -2978,7 +2981,7 @@ function resolveParameterObject(_this__u8e3s4, reference) {
|
|
|
2978
2981
|
var tmp_0;
|
|
2979
2982
|
if (tmp2_elvis_lhs == null) {
|
|
2980
2983
|
// Inline function 'kotlin.error' call
|
|
2981
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
2984
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.t31());
|
|
2982
2985
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2983
2986
|
} else {
|
|
2984
2987
|
tmp_0 = tmp2_elvis_lhs;
|
|
@@ -2986,17 +2989,17 @@ function resolveParameterObject(_this__u8e3s4, reference) {
|
|
|
2986
2989
|
return tmp_0;
|
|
2987
2990
|
}
|
|
2988
2991
|
function toPrimitive(_this__u8e3s4) {
|
|
2989
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2992
|
+
var tmp0_subject = _this__u8e3s4.d1g();
|
|
2990
2993
|
var tmp;
|
|
2991
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
2994
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.e3_1) {
|
|
2992
2995
|
case 0:
|
|
2993
|
-
tmp = !(_this__u8e3s4.
|
|
2996
|
+
tmp = !(_this__u8e3s4.c32() == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.c32()))) : _this__u8e3s4.b32() === 'binary' ? Bytes_instance : new String_0(null);
|
|
2994
2997
|
break;
|
|
2995
2998
|
case 2:
|
|
2996
|
-
tmp = new Integer(_this__u8e3s4.
|
|
2999
|
+
tmp = new Integer(_this__u8e3s4.b32() === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
2997
3000
|
break;
|
|
2998
3001
|
case 1:
|
|
2999
|
-
tmp = new Number_0(_this__u8e3s4.
|
|
3002
|
+
tmp = new Number_0(_this__u8e3s4.b32() === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
3000
3003
|
break;
|
|
3001
3004
|
case 3:
|
|
3002
3005
|
tmp = Boolean_instance;
|
|
@@ -3015,7 +3018,7 @@ function resolve(_this__u8e3s4, schemaOrReference) {
|
|
|
3015
3018
|
tmp = schemaOrReference;
|
|
3016
3019
|
} else {
|
|
3017
3020
|
if (isInterface(schemaOrReference, Reference)) {
|
|
3018
|
-
tmp = resolveSchemaRef(_this__u8e3s4, schemaOrReference).
|
|
3021
|
+
tmp = resolveSchemaRef(_this__u8e3s4, schemaOrReference).gf_1;
|
|
3019
3022
|
} else {
|
|
3020
3023
|
noWhenBranchMatchedException();
|
|
3021
3024
|
}
|
|
@@ -3026,12 +3029,12 @@ function toPrimitive_0(_this__u8e3s4) {
|
|
|
3026
3029
|
return toPrimitive(isInterface(_this__u8e3s4, OpenAPIV20Base) ? _this__u8e3s4 : THROW_CCE());
|
|
3027
3030
|
}
|
|
3028
3031
|
function resolveSchemaRef(_this__u8e3s4, reference) {
|
|
3029
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3030
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3032
|
+
var tmp0_safe_receiver = _this__u8e3s4.j34();
|
|
3033
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s2(getReference(reference));
|
|
3031
3034
|
var tmp;
|
|
3032
3035
|
if (tmp1_elvis_lhs == null) {
|
|
3033
3036
|
// Inline function 'kotlin.error' call
|
|
3034
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
3037
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.t31());
|
|
3035
3038
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
3036
3039
|
} else {
|
|
3037
3040
|
tmp = tmp1_elvis_lhs;
|
|
@@ -3056,7 +3059,7 @@ function exists(_this__u8e3s4) {
|
|
|
3056
3059
|
tmp = true;
|
|
3057
3060
|
} else {
|
|
3058
3061
|
if (!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, BooleanValue) : false) {
|
|
3059
|
-
tmp = _this__u8e3s4.
|
|
3062
|
+
tmp = _this__u8e3s4.o1();
|
|
3060
3063
|
} else {
|
|
3061
3064
|
if (!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, Reference) : false) {
|
|
3062
3065
|
tmp = true;
|
|
@@ -3073,7 +3076,7 @@ function exists(_this__u8e3s4) {
|
|
|
3073
3076
|
}
|
|
3074
3077
|
function isPrimitive(_this__u8e3s4) {
|
|
3075
3078
|
var tmp;
|
|
3076
|
-
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.
|
|
3079
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.e3_1) {
|
|
3077
3080
|
case 0:
|
|
3078
3081
|
tmp = true;
|
|
3079
3082
|
break;
|
|
@@ -3105,12 +3108,12 @@ function isPrimitive(_this__u8e3s4) {
|
|
|
3105
3108
|
return tmp;
|
|
3106
3109
|
}
|
|
3107
3110
|
function resolveResponseObject(_this__u8e3s4, reference) {
|
|
3108
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3109
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3111
|
+
var tmp0_safe_receiver = _this__u8e3s4.h1f();
|
|
3112
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s2(getReference(reference));
|
|
3110
3113
|
var tmp;
|
|
3111
3114
|
if (tmp1_elvis_lhs == null) {
|
|
3112
3115
|
// Inline function 'kotlin.error' call
|
|
3113
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
3116
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.t31());
|
|
3114
3117
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
3115
3118
|
} else {
|
|
3116
3119
|
tmp = tmp1_elvis_lhs;
|
|
@@ -3123,7 +3126,7 @@ function resolve_0(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
3123
3126
|
tmp = schemaOrReferenceOrBoolean;
|
|
3124
3127
|
} else {
|
|
3125
3128
|
if (isInterface(schemaOrReferenceOrBoolean, Reference)) {
|
|
3126
|
-
tmp = resolveSchemaRef(_this__u8e3s4, schemaOrReferenceOrBoolean).
|
|
3129
|
+
tmp = resolveSchemaRef(_this__u8e3s4, schemaOrReferenceOrBoolean).gf_1;
|
|
3127
3130
|
} else {
|
|
3128
3131
|
if (isInterface(schemaOrReferenceOrBoolean, BooleanValue)) {
|
|
3129
3132
|
// Inline function 'kotlin.TODO' call
|
|
@@ -3138,29 +3141,29 @@ function resolve_0(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
3138
3141
|
}
|
|
3139
3142
|
function toField_1(_this__u8e3s4, schema, name) {
|
|
3140
3143
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3141
|
-
var tmp0_elvis_lhs = schema.
|
|
3144
|
+
var tmp0_elvis_lhs = schema.z31();
|
|
3142
3145
|
// Inline function 'kotlin.collections.map' call
|
|
3143
3146
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3144
3147
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3145
3148
|
var destination = ArrayList_init_$Create$(this_0.b1());
|
|
3146
3149
|
// Inline function 'kotlin.collections.iterator' call
|
|
3147
|
-
var _iterator__ex2g4s = this_0.
|
|
3150
|
+
var _iterator__ex2g4s = this_0.m1().t();
|
|
3148
3151
|
while (_iterator__ex2g4s.u()) {
|
|
3149
3152
|
var item = _iterator__ex2g4s.v();
|
|
3150
3153
|
// Inline function 'kotlin.collections.component1' call
|
|
3151
|
-
var key = item.
|
|
3154
|
+
var key = item.n1();
|
|
3152
3155
|
// Inline function 'kotlin.collections.component2' call
|
|
3153
|
-
var value = item.
|
|
3154
|
-
var tmp0_safe_receiver = schema.
|
|
3155
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3156
|
+
var value = item.o1();
|
|
3157
|
+
var tmp0_safe_receiver = schema.b1u();
|
|
3158
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i1(key);
|
|
3156
3159
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
3157
3160
|
var tmp;
|
|
3158
3161
|
if (isInterface(value, Schema)) {
|
|
3159
3162
|
// Inline function 'kotlin.let' call
|
|
3160
|
-
var reference = !(value.
|
|
3163
|
+
var reference = !(value.w31() == 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);
|
|
3161
3164
|
var tmp1_identifier = new FieldIdentifier(key);
|
|
3162
3165
|
var tmp2_annotations = emptyList();
|
|
3163
|
-
var tmp0_safe_receiver_0 = value.
|
|
3166
|
+
var tmp0_safe_receiver_0 = value.v31();
|
|
3164
3167
|
var tmp3_defaultValue = tmp0_safe_receiver_0 == null ? null : toDefaultValue(tmp0_safe_receiver_0, reference);
|
|
3165
3168
|
tmp = new Field(tmp2_annotations, tmp1_identifier, reference, tmp3_defaultValue);
|
|
3166
3169
|
} else {
|
|
@@ -3180,9 +3183,9 @@ function toField_1(_this__u8e3s4, schema, name) {
|
|
|
3180
3183
|
}
|
|
3181
3184
|
function parseParameters$lambda($this_parseParameters) {
|
|
3182
3185
|
return function ($this$flatMapRequests) {
|
|
3183
|
-
var parameters = plus_0(resolveParameters($this_parseParameters, $this$flatMapRequests.
|
|
3184
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
3185
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
3186
|
+
var parameters = plus_0(resolveParameters($this_parseParameters, $this$flatMapRequests.c48_1.l1g()), resolveParameters($this_parseParameters, $this$flatMapRequests.e48_1.l1g()));
|
|
3187
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.e48_1);
|
|
3188
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.b48_1) + $this$flatMapRequests.d48_1.d3_1 : tmp0_elvis_lhs;
|
|
3186
3189
|
// Inline function 'kotlin.collections.filter' call
|
|
3187
3190
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3188
3191
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -3199,13 +3202,13 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
3199
3202
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3200
3203
|
while (_iterator__ex2g4s_0.u()) {
|
|
3201
3204
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3202
|
-
var tmp0_safe_receiver = element_0.
|
|
3205
|
+
var tmp0_safe_receiver = element_0.w38_1;
|
|
3203
3206
|
var tmp;
|
|
3204
3207
|
if (tmp0_safe_receiver == null) {
|
|
3205
3208
|
tmp = null;
|
|
3206
3209
|
} else {
|
|
3207
3210
|
// Inline function 'kotlin.let' call
|
|
3208
|
-
tmp = flattenSchemaOrRef($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element_0.
|
|
3211
|
+
tmp = flattenSchemaOrRef($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element_0.x38_1]));
|
|
3209
3212
|
}
|
|
3210
3213
|
var tmp1_elvis_lhs = tmp;
|
|
3211
3214
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -3216,9 +3219,9 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
3216
3219
|
}
|
|
3217
3220
|
function parseRequestBody$lambda($this_parseRequestBody) {
|
|
3218
3221
|
return function ($this$flatMapRequests) {
|
|
3219
|
-
var parameters = plus_0(resolveParameters($this_parseRequestBody, $this$flatMapRequests.
|
|
3220
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
3221
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
3222
|
+
var parameters = plus_0(resolveParameters($this_parseRequestBody, $this$flatMapRequests.c48_1.l1g()), resolveParameters($this_parseRequestBody, $this$flatMapRequests.e48_1.l1g()));
|
|
3223
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.e48_1);
|
|
3224
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.b48_1) + $this$flatMapRequests.d48_1.d3_1 : tmp0_elvis_lhs;
|
|
3222
3225
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3223
3226
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3224
3227
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -3226,17 +3229,17 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3226
3229
|
while (_iterator__ex2g4s.u()) {
|
|
3227
3230
|
var element = _iterator__ex2g4s.v();
|
|
3228
3231
|
var tmp;
|
|
3229
|
-
if (!(element.
|
|
3230
|
-
var tmp_0 = toDescriptionAnnotationList(element.
|
|
3231
|
-
var tmp_1 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.
|
|
3232
|
+
if (!(element.t38_1 == null)) {
|
|
3233
|
+
var tmp_0 = toDescriptionAnnotationList(element.b38_1);
|
|
3234
|
+
var tmp_1 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.x38_1])));
|
|
3232
3235
|
// Inline function 'kotlin.collections.map' call
|
|
3233
|
-
var this_0 = ensureNotNull(element.
|
|
3236
|
+
var this_0 = ensureNotNull(element.t38_1);
|
|
3234
3237
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3235
3238
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3236
3239
|
var _iterator__ex2g4s_0 = this_0.t();
|
|
3237
3240
|
while (_iterator__ex2g4s_0.u()) {
|
|
3238
3241
|
var item = _iterator__ex2g4s_0.v();
|
|
3239
|
-
var tmp$ret$5 = item.
|
|
3242
|
+
var tmp$ret$5 = item.j1g();
|
|
3240
3243
|
destination_0.x(tmp$ret$5);
|
|
3241
3244
|
}
|
|
3242
3245
|
tmp = listOf(new Enum(null, tmp_0, tmp_1, toSet(destination_0)));
|
|
@@ -3247,7 +3250,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3247
3250
|
addAll(destination, list);
|
|
3248
3251
|
}
|
|
3249
3252
|
var enums = destination;
|
|
3250
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
3253
|
+
var tmp1_safe_receiver = $this$flatMapRequests.e48_1.l1g();
|
|
3251
3254
|
var tmp_2;
|
|
3252
3255
|
if (tmp1_safe_receiver == null) {
|
|
3253
3256
|
tmp_2 = null;
|
|
@@ -3291,18 +3294,18 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3291
3294
|
var _iterator__ex2g4s_3 = tmp3_safe_receiver.t();
|
|
3292
3295
|
while (_iterator__ex2g4s_3.u()) {
|
|
3293
3296
|
var element_1 = _iterator__ex2g4s_3.v();
|
|
3294
|
-
var schema = element_1.
|
|
3297
|
+
var schema = element_1.w38_1;
|
|
3295
3298
|
var tmp_5;
|
|
3296
3299
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
3297
3300
|
var tmp0_subject = get_primitiveType(schema);
|
|
3298
3301
|
var tmp_6;
|
|
3299
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
3302
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.e3_1) {
|
|
3300
3303
|
case -1:
|
|
3301
3304
|
case 5:
|
|
3302
3305
|
tmp_6 = flatten($this_parseRequestBody, schema, className([name, 'RequestBody']));
|
|
3303
3306
|
break;
|
|
3304
3307
|
case 4:
|
|
3305
|
-
var tmp1_safe_receiver_0 = schema.
|
|
3308
|
+
var tmp1_safe_receiver_0 = schema.x31();
|
|
3306
3309
|
var tmp_7;
|
|
3307
3310
|
if (tmp1_safe_receiver_0 == null) {
|
|
3308
3311
|
tmp_7 = null;
|
|
@@ -3336,28 +3339,28 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3336
3339
|
}
|
|
3337
3340
|
function parseResponseBody$lambda($this_parseResponseBody) {
|
|
3338
3341
|
return function ($this$flatMapResponses) {
|
|
3339
|
-
var tmp = resolveResponse($this_parseResponseBody, $this$flatMapResponses.
|
|
3342
|
+
var tmp = resolveResponse($this_parseResponseBody, $this$flatMapResponses.k48_1);
|
|
3340
3343
|
var tmp0_safe_receiver = tmp instanceof OpenAPIV20Response ? tmp : null;
|
|
3341
|
-
var schema = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3342
|
-
var tmp1_elvis_lhs = toName($this$flatMapResponses.
|
|
3343
|
-
var name = tmp1_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
3344
|
+
var schema = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y39_1;
|
|
3345
|
+
var tmp1_elvis_lhs = toName($this$flatMapResponses.i48_1);
|
|
3346
|
+
var name = tmp1_elvis_lhs == null ? toName_0($this$flatMapResponses.f48_1) + $this$flatMapResponses.h48_1.d3_1 : tmp1_elvis_lhs;
|
|
3344
3347
|
var tmp_0;
|
|
3345
3348
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
3346
3349
|
var tmp3_subject = get_primitiveType(schema);
|
|
3347
3350
|
var tmp_1;
|
|
3348
|
-
switch (tmp3_subject == null ? -1 : tmp3_subject.
|
|
3351
|
+
switch (tmp3_subject == null ? -1 : tmp3_subject.e3_1) {
|
|
3349
3352
|
case -1:
|
|
3350
3353
|
case 5:
|
|
3351
|
-
tmp_1 = flatten($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
3354
|
+
tmp_1 = flatten($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.j48_1), 'ResponseBody']));
|
|
3352
3355
|
break;
|
|
3353
3356
|
case 4:
|
|
3354
|
-
var tmp4_safe_receiver = schema.
|
|
3357
|
+
var tmp4_safe_receiver = schema.x31();
|
|
3355
3358
|
var tmp_2;
|
|
3356
3359
|
if (tmp4_safe_receiver == null) {
|
|
3357
3360
|
tmp_2 = null;
|
|
3358
3361
|
} else {
|
|
3359
3362
|
// Inline function 'kotlin.let' call
|
|
3360
|
-
tmp_2 = flattenSchemaOrRef($this_parseResponseBody, tmp4_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
3363
|
+
tmp_2 = flattenSchemaOrRef($this_parseResponseBody, tmp4_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.j48_1), 'ResponseBody']));
|
|
3361
3364
|
}
|
|
3362
3365
|
|
|
3363
3366
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -3395,7 +3398,7 @@ function emitComponents($this, $receiver, logger) {
|
|
|
3395
3398
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3396
3399
|
while (_iterator__ex2g4s_0.u()) {
|
|
3397
3400
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3398
|
-
var tmp = element_0.
|
|
3401
|
+
var tmp = element_0.ds().o1();
|
|
3399
3402
|
var tmp_0;
|
|
3400
3403
|
if (element_0 instanceof Enum) {
|
|
3401
3404
|
tmp_0 = emit_3(OpenAPIV3Emitter_getInstance(), element_0);
|
|
@@ -3416,10 +3419,10 @@ function emitComponents($this, $receiver, logger) {
|
|
|
3416
3419
|
}
|
|
3417
3420
|
// Inline function 'kotlin.also' call
|
|
3418
3421
|
var this_0 = tmp_0;
|
|
3419
|
-
logger.
|
|
3422
|
+
logger.as('Emitting ' + getKClassFromExpression(element_0).o() + ' ' + element_0.ds().o1());
|
|
3420
3423
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3421
3424
|
var pair = to(tmp, this_0);
|
|
3422
|
-
destination_0.
|
|
3425
|
+
destination_0.v2(pair.ff_1, pair.gf_1);
|
|
3423
3426
|
}
|
|
3424
3427
|
// Inline function 'kotlin.let' call
|
|
3425
3428
|
return new OpenAPIV30Components(destination_0);
|
|
@@ -3442,13 +3445,13 @@ function emitPaths_0($this, $receiver, logger) {
|
|
|
3442
3445
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3443
3446
|
while (_iterator__ex2g4s_0.u()) {
|
|
3444
3447
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3445
|
-
var key = element_0.
|
|
3448
|
+
var key = element_0.hr_1;
|
|
3446
3449
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
3447
|
-
var value = destination_0.
|
|
3450
|
+
var value = destination_0.s2(key);
|
|
3448
3451
|
var tmp;
|
|
3449
3452
|
if (value == null) {
|
|
3450
3453
|
var answer = ArrayList_init_$Create$_0();
|
|
3451
|
-
destination_0.
|
|
3454
|
+
destination_0.v2(key, answer);
|
|
3452
3455
|
tmp = answer;
|
|
3453
3456
|
} else {
|
|
3454
3457
|
tmp = value;
|
|
@@ -3460,14 +3463,14 @@ function emitPaths_0($this, $receiver, logger) {
|
|
|
3460
3463
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3461
3464
|
var destination_1 = ArrayList_init_$Create$(destination_0.b1());
|
|
3462
3465
|
// Inline function 'kotlin.collections.iterator' call
|
|
3463
|
-
var _iterator__ex2g4s_1 = destination_0.
|
|
3466
|
+
var _iterator__ex2g4s_1 = destination_0.m1().t();
|
|
3464
3467
|
while (_iterator__ex2g4s_1.u()) {
|
|
3465
3468
|
var item = _iterator__ex2g4s_1.v();
|
|
3466
3469
|
// Inline function 'kotlin.collections.component1' call
|
|
3467
|
-
var path = item.
|
|
3470
|
+
var path = item.n1();
|
|
3468
3471
|
// Inline function 'kotlin.collections.component2' call
|
|
3469
|
-
var endpoints = item.
|
|
3470
|
-
logger.
|
|
3472
|
+
var endpoints = item.o1();
|
|
3473
|
+
logger.as('Emitting endpoints for path ' + emitSegment_0(OpenAPIV3Emitter_getInstance(), path));
|
|
3471
3474
|
var tmp_0 = _Path___init__impl__6uf4pw(emitSegment_0(OpenAPIV3Emitter_getInstance(), path));
|
|
3472
3475
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3473
3476
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
@@ -3510,31 +3513,31 @@ function emitPaths_0($this, $receiver, logger) {
|
|
|
3510
3513
|
return toMap(destination_1);
|
|
3511
3514
|
}
|
|
3512
3515
|
function emit_1($this, $receiver) {
|
|
3513
|
-
var type = $receiver.
|
|
3516
|
+
var type = $receiver.ms_1.t18_1;
|
|
3514
3517
|
var tmp;
|
|
3515
3518
|
if (type instanceof Integer) {
|
|
3516
3519
|
var tmp4_type = asTypeDefinition($this, OpenAPIV30Type_INTEGER_getInstance());
|
|
3517
|
-
var tmp0_safe_receiver = type.
|
|
3518
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3520
|
+
var tmp0_safe_receiver = type.c19_1;
|
|
3521
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z18_1;
|
|
3519
3522
|
var tmp5_minimum = tmp1_safe_receiver == null ? null : toDouble(tmp1_safe_receiver);
|
|
3520
|
-
var tmp2_safe_receiver = type.
|
|
3521
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
3523
|
+
var tmp2_safe_receiver = type.c19_1;
|
|
3524
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.a19_1;
|
|
3522
3525
|
var tmp6_maximum = tmp3_safe_receiver == null ? null : toDouble(tmp3_safe_receiver);
|
|
3523
3526
|
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);
|
|
3524
3527
|
} else {
|
|
3525
3528
|
if (type instanceof Number_0) {
|
|
3526
3529
|
var tmp11_type = asTypeDefinition($this, OpenAPIV30Type_NUMBER_getInstance());
|
|
3527
|
-
var tmp7_safe_receiver = type.
|
|
3528
|
-
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.
|
|
3530
|
+
var tmp7_safe_receiver = type.x18_1;
|
|
3531
|
+
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.z18_1;
|
|
3529
3532
|
var tmp12_minimum = tmp8_safe_receiver == null ? null : toDouble(tmp8_safe_receiver);
|
|
3530
|
-
var tmp9_safe_receiver = type.
|
|
3531
|
-
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.
|
|
3533
|
+
var tmp9_safe_receiver = type.x18_1;
|
|
3534
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.a19_1;
|
|
3532
3535
|
var tmp13_maximum = tmp10_safe_receiver == null ? null : toDouble(tmp10_safe_receiver);
|
|
3533
3536
|
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);
|
|
3534
3537
|
} else {
|
|
3535
3538
|
if (type instanceof String_0) {
|
|
3536
3539
|
var tmp_0 = asTypeDefinition($this, OpenAPIV30Type_STRING_getInstance());
|
|
3537
|
-
var tmp14_safe_receiver = type.
|
|
3540
|
+
var tmp14_safe_receiver = type.e19_1;
|
|
3538
3541
|
var tmp_1;
|
|
3539
3542
|
var tmp_2 = tmp14_safe_receiver;
|
|
3540
3543
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2)) == null) {
|
|
@@ -3562,10 +3565,10 @@ function asTypeDefinition($this, $receiver) {
|
|
|
3562
3565
|
return new OpenAPIV30SingleType($receiver);
|
|
3563
3566
|
}
|
|
3564
3567
|
function emit_2($this, $receiver) {
|
|
3565
|
-
var tmp0_elvis_lhs = findDescription($receiver.
|
|
3568
|
+
var tmp0_elvis_lhs = findDescription($receiver.jp_1);
|
|
3566
3569
|
var tmp;
|
|
3567
3570
|
if (tmp0_elvis_lhs == null) {
|
|
3568
|
-
var tmp1_safe_receiver = $receiver.
|
|
3571
|
+
var tmp1_safe_receiver = $receiver.ip_1;
|
|
3569
3572
|
var tmp_0;
|
|
3570
3573
|
var tmp_1 = tmp1_safe_receiver;
|
|
3571
3574
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3579,7 +3582,7 @@ function emit_2($this, $receiver) {
|
|
|
3579
3582
|
}
|
|
3580
3583
|
var tmp2_description = tmp;
|
|
3581
3584
|
// Inline function 'kotlin.collections.associate' call
|
|
3582
|
-
var this_0 = get_fields($receiver.
|
|
3585
|
+
var this_0 = get_fields($receiver.lp_1);
|
|
3583
3586
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
3584
3587
|
// Inline function 'kotlin.collections.associateTo' call
|
|
3585
3588
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -3588,16 +3591,16 @@ function emit_2($this, $receiver) {
|
|
|
3588
3591
|
var element = _iterator__ex2g4s.v();
|
|
3589
3592
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3590
3593
|
var pair = emitSchema(OpenAPIV3Emitter_getInstance(), element);
|
|
3591
|
-
destination.
|
|
3594
|
+
destination.v2(pair.ff_1, pair.gf_1);
|
|
3592
3595
|
}
|
|
3593
3596
|
// Inline function 'kotlin.collections.filter' call
|
|
3594
|
-
var tmp0 = get_fields($receiver.
|
|
3597
|
+
var tmp0 = get_fields($receiver.lp_1);
|
|
3595
3598
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3596
3599
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
3597
3600
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
3598
3601
|
while (_iterator__ex2g4s_0.u()) {
|
|
3599
3602
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3600
|
-
if (!element_0.
|
|
3603
|
+
if (!element_0.pp_1.ot()) {
|
|
3601
3604
|
destination_0.x(element_0);
|
|
3602
3605
|
}
|
|
3603
3606
|
}
|
|
@@ -3607,7 +3610,7 @@ function emit_2($this, $receiver) {
|
|
|
3607
3610
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
3608
3611
|
while (_iterator__ex2g4s_1.u()) {
|
|
3609
3612
|
var item = _iterator__ex2g4s_1.v();
|
|
3610
|
-
var tmp$ret$9 = item.
|
|
3613
|
+
var tmp$ret$9 = item.op_1.o1();
|
|
3611
3614
|
destination_1.x(tmp$ret$9);
|
|
3612
3615
|
}
|
|
3613
3616
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -3622,10 +3625,10 @@ function emit_2($this, $receiver) {
|
|
|
3622
3625
|
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);
|
|
3623
3626
|
}
|
|
3624
3627
|
function emit_3($this, $receiver) {
|
|
3625
|
-
var tmp0_elvis_lhs = findDescription($receiver.
|
|
3628
|
+
var tmp0_elvis_lhs = findDescription($receiver.ps_1);
|
|
3626
3629
|
var tmp;
|
|
3627
3630
|
if (tmp0_elvis_lhs == null) {
|
|
3628
|
-
var tmp1_safe_receiver = $receiver.
|
|
3631
|
+
var tmp1_safe_receiver = $receiver.os_1;
|
|
3629
3632
|
var tmp_0;
|
|
3630
3633
|
var tmp_1 = tmp1_safe_receiver;
|
|
3631
3634
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3640,7 +3643,7 @@ function emit_3($this, $receiver) {
|
|
|
3640
3643
|
var tmp2_description = tmp;
|
|
3641
3644
|
var tmp3_type = asTypeDefinition($this, OpenAPIV30Type_STRING_getInstance());
|
|
3642
3645
|
// Inline function 'kotlin.collections.map' call
|
|
3643
|
-
var this_0 = $receiver.
|
|
3646
|
+
var this_0 = $receiver.rs_1;
|
|
3644
3647
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3645
3648
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3646
3649
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -3652,10 +3655,10 @@ function emit_3($this, $receiver) {
|
|
|
3652
3655
|
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);
|
|
3653
3656
|
}
|
|
3654
3657
|
function emit_4($this, $receiver) {
|
|
3655
|
-
var tmp0_elvis_lhs = findDescription($receiver.
|
|
3658
|
+
var tmp0_elvis_lhs = findDescription($receiver.ar_1);
|
|
3656
3659
|
var tmp;
|
|
3657
3660
|
if (tmp0_elvis_lhs == null) {
|
|
3658
|
-
var tmp1_safe_receiver = $receiver.
|
|
3661
|
+
var tmp1_safe_receiver = $receiver.zq_1;
|
|
3659
3662
|
var tmp_0;
|
|
3660
3663
|
var tmp_1 = tmp1_safe_receiver;
|
|
3661
3664
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3670,7 +3673,7 @@ function emit_4($this, $receiver) {
|
|
|
3670
3673
|
var tmp2_description = tmp;
|
|
3671
3674
|
var tmp3_type = asTypeDefinition($this, OpenAPIV30Type_STRING_getInstance());
|
|
3672
3675
|
// Inline function 'kotlin.collections.map' call
|
|
3673
|
-
var this_0 = $receiver.
|
|
3676
|
+
var this_0 = $receiver.cr_1;
|
|
3674
3677
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3675
3678
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3676
3679
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -3688,7 +3691,7 @@ function emit_5($this, $receiver, method) {
|
|
|
3688
3691
|
var _iterator__ex2g4s = $receiver.t();
|
|
3689
3692
|
while (_iterator__ex2g4s.u()) {
|
|
3690
3693
|
var element = _iterator__ex2g4s.v();
|
|
3691
|
-
if (element.
|
|
3694
|
+
if (element.gr_1.equals(method)) {
|
|
3692
3695
|
destination.x(element);
|
|
3693
3696
|
}
|
|
3694
3697
|
}
|
|
@@ -3704,11 +3707,11 @@ function emit_5($this, $receiver, method) {
|
|
|
3704
3707
|
return firstOrNull(destination_0);
|
|
3705
3708
|
}
|
|
3706
3709
|
function emit_6($this, $receiver) {
|
|
3707
|
-
var tmp3_operationId = $receiver.
|
|
3708
|
-
var tmp0_elvis_lhs = findDescription($receiver.
|
|
3710
|
+
var tmp3_operationId = $receiver.fr_1.o1();
|
|
3711
|
+
var tmp0_elvis_lhs = findDescription($receiver.er_1);
|
|
3709
3712
|
var tmp;
|
|
3710
3713
|
if (tmp0_elvis_lhs == null) {
|
|
3711
|
-
var tmp1_safe_receiver = $receiver.
|
|
3714
|
+
var tmp1_safe_receiver = $receiver.dr_1;
|
|
3712
3715
|
var tmp_0;
|
|
3713
3716
|
var tmp_1 = tmp1_safe_receiver;
|
|
3714
3717
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3722,7 +3725,7 @@ function emit_6($this, $receiver) {
|
|
|
3722
3725
|
}
|
|
3723
3726
|
var tmp4_description = tmp;
|
|
3724
3727
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3725
|
-
var tmp0 = $receiver.
|
|
3728
|
+
var tmp0 = $receiver.hr_1;
|
|
3726
3729
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
3727
3730
|
var destination = ArrayList_init_$Create$_0();
|
|
3728
3731
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -3743,7 +3746,7 @@ function emit_6($this, $receiver) {
|
|
|
3743
3746
|
}
|
|
3744
3747
|
var tmp_2 = destination_0;
|
|
3745
3748
|
// Inline function 'kotlin.collections.map' call
|
|
3746
|
-
var this_0 =
|
|
3749
|
+
var this_0 = get_fields($receiver.ir_1);
|
|
3747
3750
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3748
3751
|
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3749
3752
|
var _iterator__ex2g4s_1 = this_0.t();
|
|
@@ -3754,7 +3757,7 @@ function emit_6($this, $receiver) {
|
|
|
3754
3757
|
}
|
|
3755
3758
|
var tmp_3 = plus_0(tmp_2, destination_1);
|
|
3756
3759
|
// Inline function 'kotlin.collections.map' call
|
|
3757
|
-
var this_1 =
|
|
3760
|
+
var this_1 = get_fields($receiver.jr_1);
|
|
3758
3761
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3759
3762
|
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
3760
3763
|
var _iterator__ex2g4s_2 = this_1.t();
|
|
@@ -3765,14 +3768,14 @@ function emit_6($this, $receiver) {
|
|
|
3765
3768
|
}
|
|
3766
3769
|
var tmp5_parameters = plus_0(tmp_3, destination_2);
|
|
3767
3770
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3768
|
-
var tmp0_0 = $receiver.
|
|
3771
|
+
var tmp0_0 = $receiver.kr_1;
|
|
3769
3772
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3770
3773
|
var destination_3 = ArrayList_init_$Create$_0();
|
|
3771
3774
|
// Inline function 'kotlin.collections.forEach' call
|
|
3772
3775
|
var _iterator__ex2g4s_3 = tmp0_0.t();
|
|
3773
3776
|
while (_iterator__ex2g4s_3.u()) {
|
|
3774
3777
|
var element_0 = _iterator__ex2g4s_3.v();
|
|
3775
|
-
var tmp0_safe_receiver = element_0.
|
|
3778
|
+
var tmp0_safe_receiver = element_0.or_1;
|
|
3776
3779
|
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : emit_7(OpenAPIV3Emitter_getInstance(), tmp0_safe_receiver);
|
|
3777
3780
|
if (tmp0_safe_receiver_0 == null)
|
|
3778
3781
|
null;
|
|
@@ -3796,7 +3799,7 @@ function emit_6($this, $receiver) {
|
|
|
3796
3799
|
tmp_5 = null;
|
|
3797
3800
|
} else {
|
|
3798
3801
|
// Inline function 'kotlin.let' call
|
|
3799
|
-
var tmp0_1 = $receiver.
|
|
3802
|
+
var tmp0_1 = $receiver.kr_1;
|
|
3800
3803
|
var tmp$ret$23;
|
|
3801
3804
|
$l$block_0: {
|
|
3802
3805
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -3813,9 +3816,9 @@ function emit_6($this, $receiver) {
|
|
|
3813
3816
|
var _iterator__ex2g4s_4 = tmp0_1.t();
|
|
3814
3817
|
while (_iterator__ex2g4s_4.u()) {
|
|
3815
3818
|
var element_1 = _iterator__ex2g4s_4.v();
|
|
3816
|
-
var tmp0_safe_receiver_1 = element_1.
|
|
3817
|
-
var tmp1_safe_receiver_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.
|
|
3818
|
-
if ((tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
3819
|
+
var tmp0_safe_receiver_1 = element_1.or_1;
|
|
3820
|
+
var tmp1_safe_receiver_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.qr_1;
|
|
3821
|
+
if ((tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.ot()) === true) {
|
|
3819
3822
|
tmp$ret$23 = true;
|
|
3820
3823
|
break $l$block_0;
|
|
3821
3824
|
}
|
|
@@ -3826,19 +3829,19 @@ function emit_6($this, $receiver) {
|
|
|
3826
3829
|
}
|
|
3827
3830
|
var tmp6_requestBody = tmp_5;
|
|
3828
3831
|
// Inline function 'kotlin.collections.groupBy' call
|
|
3829
|
-
var tmp0_2 = $receiver.
|
|
3832
|
+
var tmp0_2 = $receiver.lr_1;
|
|
3830
3833
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
3831
3834
|
var destination_4 = LinkedHashMap_init_$Create$_0();
|
|
3832
3835
|
var _iterator__ex2g4s_5 = tmp0_2.t();
|
|
3833
3836
|
while (_iterator__ex2g4s_5.u()) {
|
|
3834
3837
|
var element_2 = _iterator__ex2g4s_5.v();
|
|
3835
|
-
var key = element_2.
|
|
3838
|
+
var key = element_2.rr_1;
|
|
3836
3839
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
3837
|
-
var value = destination_4.
|
|
3840
|
+
var value = destination_4.s2(key);
|
|
3838
3841
|
var tmp_7;
|
|
3839
3842
|
if (value == null) {
|
|
3840
3843
|
var answer = ArrayList_init_$Create$_0();
|
|
3841
|
-
destination_4.
|
|
3844
|
+
destination_4.v2(key, answer);
|
|
3842
3845
|
tmp_7 = answer;
|
|
3843
3846
|
} else {
|
|
3844
3847
|
tmp_7 = value;
|
|
@@ -3850,13 +3853,13 @@ function emit_6($this, $receiver) {
|
|
|
3850
3853
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3851
3854
|
var destination_5 = ArrayList_init_$Create$(destination_4.b1());
|
|
3852
3855
|
// Inline function 'kotlin.collections.iterator' call
|
|
3853
|
-
var _iterator__ex2g4s_6 = destination_4.
|
|
3856
|
+
var _iterator__ex2g4s_6 = destination_4.m1().t();
|
|
3854
3857
|
while (_iterator__ex2g4s_6.u()) {
|
|
3855
3858
|
var item_2 = _iterator__ex2g4s_6.v();
|
|
3856
3859
|
// Inline function 'kotlin.collections.component1' call
|
|
3857
|
-
var statusCode = item_2.
|
|
3860
|
+
var statusCode = item_2.n1();
|
|
3858
3861
|
// Inline function 'kotlin.collections.component2' call
|
|
3859
|
-
var res = item_2.
|
|
3862
|
+
var res = item_2.o1();
|
|
3860
3863
|
var tmp_8 = _StatusCode___init__impl__t1yi9q(statusCode);
|
|
3861
3864
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3862
3865
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -3864,7 +3867,7 @@ function emit_6($this, $receiver) {
|
|
|
3864
3867
|
var _iterator__ex2g4s_7 = res.t();
|
|
3865
3868
|
while (_iterator__ex2g4s_7.u()) {
|
|
3866
3869
|
var element_3 = _iterator__ex2g4s_7.v();
|
|
3867
|
-
var list_0 =
|
|
3870
|
+
var list_0 = get_fields(element_3.sr_1);
|
|
3868
3871
|
addAll(destination_6, list_0);
|
|
3869
3872
|
}
|
|
3870
3873
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -3876,10 +3879,10 @@ function emit_6($this, $receiver) {
|
|
|
3876
3879
|
var element_4 = _iterator__ex2g4s_8.v();
|
|
3877
3880
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3878
3881
|
var pair = emitHeader(OpenAPIV3Emitter_getInstance(), element_4);
|
|
3879
|
-
destination_7.
|
|
3882
|
+
destination_7.v2(pair.ff_1, pair.gf_1);
|
|
3880
3883
|
}
|
|
3881
|
-
var tmp0_elvis_lhs_0 = findDescription(first(res).
|
|
3882
|
-
var tmp2_description = tmp0_elvis_lhs_0 == null ? $receiver.
|
|
3884
|
+
var tmp0_elvis_lhs_0 = findDescription(first(res).ur_1);
|
|
3885
|
+
var tmp2_description = tmp0_elvis_lhs_0 == null ? $receiver.fr_1.o1() + ' ' + statusCode + ' response' : tmp0_elvis_lhs_0;
|
|
3883
3886
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3884
3887
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3885
3888
|
var destination_8 = ArrayList_init_$Create$_0();
|
|
@@ -3887,7 +3890,7 @@ function emit_6($this, $receiver) {
|
|
|
3887
3890
|
var _iterator__ex2g4s_9 = res.t();
|
|
3888
3891
|
while (_iterator__ex2g4s_9.u()) {
|
|
3889
3892
|
var element_5 = _iterator__ex2g4s_9.v();
|
|
3890
|
-
var tmp0_safe_receiver_2 = element_5.
|
|
3893
|
+
var tmp0_safe_receiver_2 = element_5.tr_1;
|
|
3891
3894
|
if (tmp0_safe_receiver_2 == null)
|
|
3892
3895
|
null;
|
|
3893
3896
|
else {
|
|
@@ -3904,7 +3907,7 @@ function emit_6($this, $receiver) {
|
|
|
3904
3907
|
var element_6 = _iterator__ex2g4s_10.v();
|
|
3905
3908
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3906
3909
|
var pair_0 = emit_7(OpenAPIV3Emitter_getInstance(), element_6);
|
|
3907
|
-
destination_9.
|
|
3910
|
+
destination_9.v2(pair_0.ff_1, pair_0.gf_1);
|
|
3908
3911
|
}
|
|
3909
3912
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
3910
3913
|
var tmp_9;
|
|
@@ -3921,7 +3924,7 @@ function emit_6($this, $receiver) {
|
|
|
3921
3924
|
var _iterator__ex2g4s_11 = res.t();
|
|
3922
3925
|
while (_iterator__ex2g4s_11.u()) {
|
|
3923
3926
|
var element_7 = _iterator__ex2g4s_11.v();
|
|
3924
|
-
var list_1 = findLinks(element_7.
|
|
3927
|
+
var list_1 = findLinks(element_7.ur_1);
|
|
3925
3928
|
addAll(destination_10, list_1);
|
|
3926
3929
|
}
|
|
3927
3930
|
var tmp4_links = toOpenAPIV30Links(tmp_10, destination_10);
|
|
@@ -3939,18 +3942,18 @@ function toOpenAPIV30Links($this, $receiver) {
|
|
|
3939
3942
|
var _iterator__ex2g4s = $receiver.t();
|
|
3940
3943
|
while (_iterator__ex2g4s.u()) {
|
|
3941
3944
|
var element = _iterator__ex2g4s.v();
|
|
3942
|
-
var tmp2 = element.
|
|
3945
|
+
var tmp2 = element.l48_1;
|
|
3943
3946
|
// Inline function 'kotlin.collections.mapValues' call
|
|
3944
|
-
var this_0 = element.
|
|
3947
|
+
var this_0 = element.o48_1;
|
|
3945
3948
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
3946
3949
|
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.b1()));
|
|
3947
3950
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3948
|
-
var _iterator__ex2g4s_0 = this_0.
|
|
3951
|
+
var _iterator__ex2g4s_0 = this_0.m1().t();
|
|
3949
3952
|
while (_iterator__ex2g4s_0.u()) {
|
|
3950
3953
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3951
|
-
var tmp = element_0.
|
|
3952
|
-
var tmp$ret$6 = JsonPrimitive(element_0.
|
|
3953
|
-
destination.
|
|
3954
|
+
var tmp = element_0.n1();
|
|
3955
|
+
var tmp$ret$6 = JsonPrimitive(element_0.o1());
|
|
3956
|
+
destination.v2(tmp, tmp$ret$6);
|
|
3954
3957
|
}
|
|
3955
3958
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
3956
3959
|
var tmp_0;
|
|
@@ -3960,7 +3963,7 @@ function toOpenAPIV30Links($this, $receiver) {
|
|
|
3960
3963
|
tmp_0 = destination;
|
|
3961
3964
|
}
|
|
3962
3965
|
var tmp_1 = tmp_0;
|
|
3963
|
-
var tmp0_safe_receiver = element.
|
|
3966
|
+
var tmp0_safe_receiver = element.p48_1;
|
|
3964
3967
|
var tmp_2;
|
|
3965
3968
|
if (tmp0_safe_receiver == null) {
|
|
3966
3969
|
tmp_2 = null;
|
|
@@ -3969,38 +3972,38 @@ function toOpenAPIV30Links($this, $receiver) {
|
|
|
3969
3972
|
tmp_2 = JsonPrimitive(tmp0_safe_receiver);
|
|
3970
3973
|
}
|
|
3971
3974
|
// Inline function 'kotlin.collections.set' call
|
|
3972
|
-
var value = new OpenAPIV30Link(element.
|
|
3973
|
-
byName.
|
|
3975
|
+
var value = new OpenAPIV30Link(element.n48_1, element.m48_1, tmp_1, tmp_2, element.q48_1);
|
|
3976
|
+
byName.v2(tmp2, value);
|
|
3974
3977
|
}
|
|
3975
|
-
return new OpenAPIV30Links(toSet(byName.
|
|
3978
|
+
return new OpenAPIV30Links(toSet(byName.m1()));
|
|
3976
3979
|
}
|
|
3977
3980
|
function emitSegment_0($this, $receiver) {
|
|
3978
3981
|
return '/' + joinToString($receiver, '/', VOID, VOID, VOID, VOID, OpenAPIV3Emitter$emitSegment$lambda);
|
|
3979
3982
|
}
|
|
3980
3983
|
function emitParameter_0($this, $receiver, location) {
|
|
3981
|
-
var tmp0_name = $receiver.
|
|
3982
|
-
var tmp1_schema = emitSchema_0($this, $receiver.
|
|
3983
|
-
var tmp2_description = findDescription($receiver.
|
|
3984
|
-
var tmp3_required = !$receiver.
|
|
3984
|
+
var tmp0_name = $receiver.op_1.o1();
|
|
3985
|
+
var tmp1_schema = emitSchema_0($this, $receiver.pp_1);
|
|
3986
|
+
var tmp2_description = findDescription($receiver.np_1);
|
|
3987
|
+
var tmp3_required = !$receiver.pp_1.ot();
|
|
3985
3988
|
return new OpenAPIV30Parameter(tmp2_description, tmp3_required, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, location, tmp1_schema, tmp0_name);
|
|
3986
3989
|
}
|
|
3987
3990
|
function emitParameter_1($this, $receiver) {
|
|
3988
3991
|
var tmp0_in = OpenAPIV30ParameterLocation_PATH_getInstance();
|
|
3989
|
-
var tmp1_name = $receiver.
|
|
3990
|
-
var tmp2_schema = emitSchema_0($this, $receiver.
|
|
3991
|
-
var tmp3_required = !$receiver.
|
|
3992
|
+
var tmp1_name = $receiver.mr_1.o1();
|
|
3993
|
+
var tmp2_schema = emitSchema_0($this, $receiver.nr_1);
|
|
3994
|
+
var tmp3_required = !$receiver.nr_1.ot();
|
|
3992
3995
|
return new OpenAPIV30Parameter(VOID, tmp3_required, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_in, tmp2_schema, tmp1_name);
|
|
3993
3996
|
}
|
|
3994
3997
|
function emitHeader($this, $receiver) {
|
|
3995
|
-
return to($receiver.
|
|
3998
|
+
return to($receiver.op_1.o1(), emitHeader_0($this, $receiver.pp_1, findDescription($receiver.np_1)));
|
|
3996
3999
|
}
|
|
3997
4000
|
function emitSchema($this, $receiver) {
|
|
3998
|
-
var tmp = $receiver.
|
|
4001
|
+
var tmp = $receiver.op_1.o1();
|
|
3999
4002
|
// Inline function 'kotlin.let' call
|
|
4000
|
-
var it = emitSchema_0($this, $receiver.
|
|
4003
|
+
var it = emitSchema_0($this, $receiver.pp_1);
|
|
4001
4004
|
var tmp_0;
|
|
4002
4005
|
if (it instanceof OpenAPIV30Schema) {
|
|
4003
|
-
tmp_0 = it.
|
|
4006
|
+
tmp_0 = it.a3h(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription($receiver.np_1), toSchemaDefault($receiver.qp_1));
|
|
4004
4007
|
} else {
|
|
4005
4008
|
if (it instanceof OpenAPIV30Reference) {
|
|
4006
4009
|
tmp_0 = it;
|
|
@@ -4014,13 +4017,13 @@ function emitSchema($this, $receiver) {
|
|
|
4014
4017
|
function emitHeader_0($this, $receiver, description) {
|
|
4015
4018
|
var tmp;
|
|
4016
4019
|
if ($receiver instanceof Dict) {
|
|
4017
|
-
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + $receiver.
|
|
4020
|
+
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + $receiver.dq_1));
|
|
4018
4021
|
} else {
|
|
4019
4022
|
if ($receiver instanceof Iterable) {
|
|
4020
|
-
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + $receiver.
|
|
4023
|
+
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + $receiver.aq_1));
|
|
4021
4024
|
} else {
|
|
4022
4025
|
if ($receiver instanceof Custom) {
|
|
4023
|
-
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + $receiver.
|
|
4026
|
+
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + $receiver.r18_1));
|
|
4024
4027
|
} else {
|
|
4025
4028
|
if ($receiver instanceof Primitive) {
|
|
4026
4029
|
var tmp1_schema = emitSchema_0($this, $receiver);
|
|
@@ -4048,19 +4051,19 @@ function emitHeader_0($this, $receiver, description) {
|
|
|
4048
4051
|
function emitSchema_0($this, $receiver) {
|
|
4049
4052
|
var tmp;
|
|
4050
4053
|
if ($receiver instanceof Dict) {
|
|
4051
|
-
var tmp_0 = $receiver.
|
|
4054
|
+
var tmp_0 = $receiver.bq_1.ot();
|
|
4052
4055
|
var tmp_1 = asTypeDefinition($this, OpenAPIV30Type_OBJECT_getInstance());
|
|
4053
|
-
var tmp_2 = emitSchema_0($this, $receiver.
|
|
4056
|
+
var tmp_2 = emitSchema_0($this, $receiver.bq_1);
|
|
4054
4057
|
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());
|
|
4055
4058
|
} else {
|
|
4056
4059
|
if ($receiver instanceof Iterable) {
|
|
4057
|
-
tmp = new OpenAPIV30Schema($receiver.
|
|
4060
|
+
tmp = new OpenAPIV30Schema($receiver.yp_1.ot(), 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, $receiver.yp_1));
|
|
4058
4061
|
} else {
|
|
4059
4062
|
if ($receiver instanceof Custom) {
|
|
4060
|
-
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/schemas/' + $receiver.
|
|
4063
|
+
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/schemas/' + $receiver.r18_1));
|
|
4061
4064
|
} else {
|
|
4062
4065
|
if ($receiver instanceof Primitive) {
|
|
4063
|
-
var tmp1_type = asTypeDefinition($this, emitType_1($this, $receiver.
|
|
4066
|
+
var tmp1_type = asTypeDefinition($this, emitType_1($this, $receiver.t18_1));
|
|
4064
4067
|
var tmp2_format = emitFormat($receiver);
|
|
4065
4068
|
var tmp3_pattern = emitPattern_0($this, $receiver);
|
|
4066
4069
|
var tmp4_minimum = emitMinimum_0($this, $receiver);
|
|
@@ -4112,15 +4115,15 @@ function emitType_1($this, $receiver) {
|
|
|
4112
4115
|
return tmp;
|
|
4113
4116
|
}
|
|
4114
4117
|
function emit_7($this, $receiver) {
|
|
4115
|
-
return to(new MediaType(_MediaType___init__impl__i9gzb9($receiver.
|
|
4118
|
+
return to(new MediaType(_MediaType___init__impl__i9gzb9($receiver.pr_1)), new OpenAPIV30MediaType(emitSchema_0($this, $receiver.qr_1)));
|
|
4116
4119
|
}
|
|
4117
4120
|
function emitPattern_0($this, $receiver) {
|
|
4118
4121
|
var tmp;
|
|
4119
4122
|
if ($receiver instanceof Primitive) {
|
|
4120
|
-
var t = $receiver.
|
|
4123
|
+
var t = $receiver.t18_1;
|
|
4121
4124
|
var tmp_0;
|
|
4122
4125
|
if (t instanceof String_0) {
|
|
4123
|
-
var p = t.
|
|
4126
|
+
var p = t.e19_1;
|
|
4124
4127
|
var tmp_1;
|
|
4125
4128
|
var tmp_2 = p;
|
|
4126
4129
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2))instanceof RegExp_0) {
|
|
@@ -4141,16 +4144,16 @@ function emitPattern_0($this, $receiver) {
|
|
|
4141
4144
|
function emitMinimum_0($this, $receiver) {
|
|
4142
4145
|
var tmp;
|
|
4143
4146
|
if ($receiver instanceof Primitive) {
|
|
4144
|
-
var t = $receiver.
|
|
4147
|
+
var t = $receiver.t18_1;
|
|
4145
4148
|
var tmp_0;
|
|
4146
4149
|
if (t instanceof Number_0) {
|
|
4147
|
-
var tmp1_safe_receiver = t.
|
|
4148
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4150
|
+
var tmp1_safe_receiver = t.x18_1;
|
|
4151
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.z18_1;
|
|
4149
4152
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
4150
4153
|
} else {
|
|
4151
4154
|
if (t instanceof Integer) {
|
|
4152
|
-
var tmp3_safe_receiver = t.
|
|
4153
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
4155
|
+
var tmp3_safe_receiver = t.c19_1;
|
|
4156
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.z18_1;
|
|
4154
4157
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
4155
4158
|
} else {
|
|
4156
4159
|
tmp_0 = null;
|
|
@@ -4165,16 +4168,16 @@ function emitMinimum_0($this, $receiver) {
|
|
|
4165
4168
|
function emitMaximum_0($this, $receiver) {
|
|
4166
4169
|
var tmp;
|
|
4167
4170
|
if ($receiver instanceof Primitive) {
|
|
4168
|
-
var t = $receiver.
|
|
4171
|
+
var t = $receiver.t18_1;
|
|
4169
4172
|
var tmp_0;
|
|
4170
4173
|
if (t instanceof Number_0) {
|
|
4171
|
-
var tmp1_safe_receiver = t.
|
|
4172
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4174
|
+
var tmp1_safe_receiver = t.x18_1;
|
|
4175
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.a19_1;
|
|
4173
4176
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
4174
4177
|
} else {
|
|
4175
4178
|
if (t instanceof Integer) {
|
|
4176
|
-
var tmp3_safe_receiver = t.
|
|
4177
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
4179
|
+
var tmp3_safe_receiver = t.c19_1;
|
|
4180
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.a19_1;
|
|
4178
4181
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
4179
4182
|
} else {
|
|
4180
4183
|
tmp_0 = null;
|
|
@@ -4189,10 +4192,10 @@ function emitMaximum_0($this, $receiver) {
|
|
|
4189
4192
|
function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
4190
4193
|
var tmp;
|
|
4191
4194
|
if (it instanceof Param) {
|
|
4192
|
-
tmp = '{' + it.
|
|
4195
|
+
tmp = '{' + it.mr_1.o1() + '}';
|
|
4193
4196
|
} else {
|
|
4194
4197
|
if (it instanceof Literal) {
|
|
4195
|
-
tmp = it.
|
|
4198
|
+
tmp = it.a1a_1;
|
|
4196
4199
|
} else {
|
|
4197
4200
|
noWhenBranchMatchedException();
|
|
4198
4201
|
}
|
|
@@ -4201,18 +4204,18 @@ function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
|
4201
4204
|
}
|
|
4202
4205
|
function OpenAPIV3Emitter() {
|
|
4203
4206
|
OpenAPIV3Emitter_instance = this;
|
|
4204
|
-
this.
|
|
4205
|
-
this.
|
|
4207
|
+
this.x48_1 = FileExtension_JSON_getInstance();
|
|
4208
|
+
this.y48_1 = true;
|
|
4206
4209
|
}
|
|
4207
|
-
protoOf(OpenAPIV3Emitter).
|
|
4208
|
-
return this.
|
|
4210
|
+
protoOf(OpenAPIV3Emitter).wp = function () {
|
|
4211
|
+
return this.x48_1;
|
|
4209
4212
|
};
|
|
4210
|
-
protoOf(OpenAPIV3Emitter).
|
|
4211
|
-
return this.
|
|
4213
|
+
protoOf(OpenAPIV3Emitter).vp = function () {
|
|
4214
|
+
return this.y48_1;
|
|
4212
4215
|
};
|
|
4213
|
-
protoOf(OpenAPIV3Emitter).
|
|
4216
|
+
protoOf(OpenAPIV3Emitter).to = function (ast, logger) {
|
|
4214
4217
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
4215
|
-
var this_0 = ast.
|
|
4218
|
+
var this_0 = ast.ep_1;
|
|
4216
4219
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4217
4220
|
var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
4218
4221
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -4220,30 +4223,30 @@ protoOf(OpenAPIV3Emitter).mo = function (ast, logger) {
|
|
|
4220
4223
|
var _iterator__ex2g4s = tmp0.t();
|
|
4221
4224
|
while (_iterator__ex2g4s.u()) {
|
|
4222
4225
|
var element = _iterator__ex2g4s.v();
|
|
4223
|
-
logger.
|
|
4224
|
-
var list = new NonEmptyList(element.
|
|
4226
|
+
logger.as('Combining Nodes from ' + element.fp_1.io_1 + ' ');
|
|
4227
|
+
var list = new NonEmptyList(element.gp_1);
|
|
4225
4228
|
addAll(destination, list);
|
|
4226
4229
|
}
|
|
4227
4230
|
// Inline function 'kotlin.let' call
|
|
4228
4231
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
4229
|
-
var tmp = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().
|
|
4232
|
+
var tmp = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().x48_1.xr_1;
|
|
4230
4233
|
var tmp0_0 = get_json();
|
|
4231
4234
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
4232
|
-
var value = OpenAPIV3Emitter_getInstance().
|
|
4235
|
+
var value = OpenAPIV3Emitter_getInstance().z48(it, null, logger);
|
|
4233
4236
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
4234
|
-
var this_1 = tmp0_0.
|
|
4237
|
+
var this_1 = tmp0_0.b26();
|
|
4235
4238
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
4236
4239
|
var this_2 = serializer(this_1, createKType(getKClass(OpenAPIV3Model), arrayOf([]), false));
|
|
4237
4240
|
var tmp$ret$7 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
4238
|
-
var tmp$ret$6 = tmp0_0.
|
|
4241
|
+
var tmp$ret$6 = tmp0_0.g2n(tmp$ret$7, value);
|
|
4239
4242
|
// Inline function 'kotlin.let' call
|
|
4240
4243
|
var it_0 = new Emitted(tmp, tmp$ret$6);
|
|
4241
4244
|
return nonEmptyListOf(it_0, []);
|
|
4242
4245
|
};
|
|
4243
|
-
protoOf(OpenAPIV3Emitter).
|
|
4244
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
4246
|
+
protoOf(OpenAPIV3Emitter).z48 = function (statements, options, logger) {
|
|
4247
|
+
var tmp1_elvis_lhs = options == null ? null : options.a49_1;
|
|
4245
4248
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
4246
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
4249
|
+
var tmp3_elvis_lhs = options == null ? null : options.b49_1;
|
|
4247
4250
|
var tmp4_info = new InfoObject(tmp, VOID, VOID, VOID, VOID, VOID, tmp3_elvis_lhs == null ? '0.0.0' : tmp3_elvis_lhs);
|
|
4248
4251
|
var tmp5_paths = emitPaths_0(this, statements, logger);
|
|
4249
4252
|
var tmp6_components = emitComponents(this, statements, logger);
|
|
@@ -4257,15 +4260,15 @@ function OpenAPIV3Emitter_getInstance() {
|
|
|
4257
4260
|
}
|
|
4258
4261
|
function OpenAPIV3Parser$parse$lambda($strict) {
|
|
4259
4262
|
return function (it) {
|
|
4260
|
-
return new NonEmptyList(OpenAPIV3Parser_instance.
|
|
4263
|
+
return new NonEmptyList(OpenAPIV3Parser_instance.c49((new OpenAPIV3(jsonDefault($strict))).e34(it)));
|
|
4261
4264
|
};
|
|
4262
4265
|
}
|
|
4263
4266
|
function OpenAPIV3Parser() {
|
|
4264
4267
|
}
|
|
4265
|
-
protoOf(OpenAPIV3Parser).
|
|
4268
|
+
protoOf(OpenAPIV3Parser).w48 = function (moduleContent, strict) {
|
|
4266
4269
|
return parseOpenApi(moduleContent, OpenAPIV3Parser$parse$lambda(strict));
|
|
4267
4270
|
};
|
|
4268
|
-
protoOf(OpenAPIV3Parser).
|
|
4271
|
+
protoOf(OpenAPIV3Parser).c49 = function (_this__u8e3s4) {
|
|
4269
4272
|
// Inline function 'kotlin.collections.reduce' call
|
|
4270
4273
|
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();
|
|
4271
4274
|
if (!iterator.u())
|
|
@@ -4280,7 +4283,7 @@ protoOf(OpenAPIV3Parser).b48 = function (_this__u8e3s4) {
|
|
|
4280
4283
|
var tmp = toNonEmptyListOrNull(resolveEndpointNameCollisions(tmp$ret$0));
|
|
4281
4284
|
// Inline function 'kotlin.let' call
|
|
4282
4285
|
var tmp_0 = tmp == null ? null : new NonEmptyList(tmp);
|
|
4283
|
-
var tmp_1 = tmp_0 == null ? null : tmp_0.
|
|
4286
|
+
var tmp_1 = tmp_0 == null ? null : tmp_0.dn_1;
|
|
4284
4287
|
var tmp0_0 = tmp_1 == null ? null : new NonEmptyList(tmp_1);
|
|
4285
4288
|
var tmp$ret$4;
|
|
4286
4289
|
$l$block: {
|
|
@@ -4289,7 +4292,7 @@ protoOf(OpenAPIV3Parser).b48 = function (_this__u8e3s4) {
|
|
|
4289
4292
|
var message = 'Cannot yield empty AST for OpenAPI v3';
|
|
4290
4293
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
4291
4294
|
} else {
|
|
4292
|
-
tmp$ret$4 = tmp0_0.
|
|
4295
|
+
tmp$ret$4 = tmp0_0.dn_1;
|
|
4293
4296
|
break $l$block;
|
|
4294
4297
|
}
|
|
4295
4298
|
}
|
|
@@ -4301,36 +4304,36 @@ function OpenAPIV3Parser_getInstance() {
|
|
|
4301
4304
|
}
|
|
4302
4305
|
function parseEndpoints_0(_this__u8e3s4) {
|
|
4303
4306
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4304
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
4307
|
+
var tmp0_elvis_lhs = _this__u8e3s4.k34();
|
|
4305
4308
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4306
4309
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4307
4310
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4308
4311
|
var destination = ArrayList_init_$Create$_0();
|
|
4309
4312
|
// Inline function 'kotlin.collections.iterator' call
|
|
4310
|
-
var _iterator__ex2g4s = tmp0.
|
|
4313
|
+
var _iterator__ex2g4s = tmp0.m1().t();
|
|
4311
4314
|
while (_iterator__ex2g4s.u()) {
|
|
4312
4315
|
var element = _iterator__ex2g4s.v();
|
|
4313
4316
|
// Inline function 'kotlin.collections.component1' call
|
|
4314
|
-
var path = element.
|
|
4317
|
+
var path = element.n1().k31_1;
|
|
4315
4318
|
// Inline function 'kotlin.collections.component2' call
|
|
4316
|
-
var pathItem = element.
|
|
4319
|
+
var pathItem = element.o1();
|
|
4317
4320
|
// Inline function 'kotlin.collections.map' call
|
|
4318
4321
|
var this_0 = toOperationList(pathItem);
|
|
4319
4322
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4320
4323
|
var destination_0 = ArrayList_init_$Create$(this_0.b1());
|
|
4321
4324
|
// Inline function 'kotlin.collections.iterator' call
|
|
4322
|
-
var _iterator__ex2g4s_0 = this_0.
|
|
4325
|
+
var _iterator__ex2g4s_0 = this_0.m1().t();
|
|
4323
4326
|
while (_iterator__ex2g4s_0.u()) {
|
|
4324
4327
|
var item = _iterator__ex2g4s_0.v();
|
|
4325
4328
|
// Inline function 'kotlin.collections.component1' call
|
|
4326
|
-
var method = item.
|
|
4329
|
+
var method = item.n1();
|
|
4327
4330
|
// Inline function 'kotlin.collections.component2' call
|
|
4328
|
-
var operation = item.
|
|
4329
|
-
var parameters = plus_0(resolveParameters_0(_this__u8e3s4, pathItem.
|
|
4331
|
+
var operation = item.o1();
|
|
4332
|
+
var parameters = plus_0(resolveParameters_0(_this__u8e3s4, pathItem.l1g()), resolveParameters_0(_this__u8e3s4, operation.l1g()));
|
|
4330
4333
|
var tmp0_elvis_lhs_0 = toName(operation);
|
|
4331
|
-
var segments = toSegments_0(_this__u8e3s4, path, parameters, tmp0_elvis_lhs_0 == null ? toName_0(path) + method.
|
|
4334
|
+
var segments = toSegments_0(_this__u8e3s4, path, parameters, tmp0_elvis_lhs_0 == null ? toName_0(path) + method.d3_1 : tmp0_elvis_lhs_0);
|
|
4332
4335
|
var tmp1_elvis_lhs = toName(operation);
|
|
4333
|
-
var name = tmp1_elvis_lhs == null ? toName_0(path) + method.
|
|
4336
|
+
var name = tmp1_elvis_lhs == null ? toName_0(path) + method.d3_1 : tmp1_elvis_lhs;
|
|
4334
4337
|
// Inline function 'kotlin.collections.filter' call
|
|
4335
4338
|
// Inline function 'kotlin.collections.filterTo' call
|
|
4336
4339
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
@@ -4350,7 +4353,8 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4350
4353
|
var tmp$ret$18 = toField_2(_this__u8e3s4, item_0, className([name, 'Parameter', item_0.m()]));
|
|
4351
4354
|
destination_2.x(tmp$ret$18);
|
|
4352
4355
|
}
|
|
4353
|
-
|
|
4356
|
+
// Inline function 'kotlin.let' call
|
|
4357
|
+
var query = new Shape(destination_2);
|
|
4354
4358
|
// Inline function 'kotlin.collections.filter' call
|
|
4355
4359
|
// Inline function 'kotlin.collections.filterTo' call
|
|
4356
4360
|
var destination_3 = ArrayList_init_$Create$_0();
|
|
@@ -4367,11 +4371,12 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4367
4371
|
var _iterator__ex2g4s_4 = destination_3.t();
|
|
4368
4372
|
while (_iterator__ex2g4s_4.u()) {
|
|
4369
4373
|
var item_1 = _iterator__ex2g4s_4.v();
|
|
4370
|
-
var tmp$ret$
|
|
4371
|
-
destination_4.x(tmp$ret$
|
|
4374
|
+
var tmp$ret$26 = toField_2(_this__u8e3s4, item_1, className([name, 'Parameter', item_1.m()]));
|
|
4375
|
+
destination_4.x(tmp$ret$26);
|
|
4372
4376
|
}
|
|
4373
|
-
|
|
4374
|
-
var
|
|
4377
|
+
// Inline function 'kotlin.let' call
|
|
4378
|
+
var headers = new Shape(destination_4);
|
|
4379
|
+
var tmp2_safe_receiver = operation.l32();
|
|
4375
4380
|
var tmp;
|
|
4376
4381
|
if (tmp2_safe_receiver == null) {
|
|
4377
4382
|
tmp = null;
|
|
@@ -4386,7 +4391,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4386
4391
|
} else {
|
|
4387
4392
|
// Inline function 'kotlin.let' call
|
|
4388
4393
|
var isNullable = false;
|
|
4389
|
-
var tmp0_safe_receiver = tmp3_safe_receiver.
|
|
4394
|
+
var tmp0_safe_receiver = tmp3_safe_receiver.j1g();
|
|
4390
4395
|
var tmp_1;
|
|
4391
4396
|
if (tmp0_safe_receiver == null) {
|
|
4392
4397
|
tmp_1 = null;
|
|
@@ -4395,14 +4400,14 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4395
4400
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4396
4401
|
var destination_5 = ArrayList_init_$Create$(tmp0_safe_receiver.b1());
|
|
4397
4402
|
// Inline function 'kotlin.collections.iterator' call
|
|
4398
|
-
var _iterator__ex2g4s_5 = tmp0_safe_receiver.
|
|
4403
|
+
var _iterator__ex2g4s_5 = tmp0_safe_receiver.m1().t();
|
|
4399
4404
|
while (_iterator__ex2g4s_5.u()) {
|
|
4400
4405
|
var item_2 = _iterator__ex2g4s_5.v();
|
|
4401
4406
|
// Inline function 'kotlin.collections.component1' call
|
|
4402
|
-
var mediaType = item_2.
|
|
4407
|
+
var mediaType = item_2.n1().i32_1;
|
|
4403
4408
|
// Inline function 'kotlin.collections.component2' call
|
|
4404
|
-
var mediaObject = item_2.
|
|
4405
|
-
var schema = mediaObject.
|
|
4409
|
+
var mediaObject = item_2.o1();
|
|
4410
|
+
var schema = mediaObject.e32();
|
|
4406
4411
|
var tmp_2;
|
|
4407
4412
|
if (!(schema == null) ? isInterface(schema, Reference) : false) {
|
|
4408
4413
|
tmp_2 = toReference_1(_this__u8e3s4, schema, isNullable);
|
|
@@ -4426,8 +4431,8 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4426
4431
|
tmp_3 = new Request(new Content(_MediaType___get_value__impl__wy58mp(mediaType), reference));
|
|
4427
4432
|
}
|
|
4428
4433
|
var tmp1_elvis_lhs_0 = tmp_3;
|
|
4429
|
-
var tmp$ret$
|
|
4430
|
-
destination_5.x(tmp$ret$
|
|
4434
|
+
var tmp$ret$36 = tmp1_elvis_lhs_0 == null ? new Request(null) : tmp1_elvis_lhs_0;
|
|
4435
|
+
destination_5.x(tmp$ret$36);
|
|
4431
4436
|
}
|
|
4432
4437
|
tmp_1 = destination_5;
|
|
4433
4438
|
}
|
|
@@ -4436,28 +4441,28 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4436
4441
|
var tmp4_elvis_lhs = tmp_0;
|
|
4437
4442
|
var requests = tmp4_elvis_lhs == null ? listOf(new Request(null)) : tmp4_elvis_lhs;
|
|
4438
4443
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4439
|
-
var tmp0_elvis_lhs_1 = operation.
|
|
4444
|
+
var tmp0_elvis_lhs_1 = operation.h1f();
|
|
4440
4445
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4441
4446
|
var tmp0_0 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
4442
4447
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4443
4448
|
var destination_6 = ArrayList_init_$Create$_0();
|
|
4444
4449
|
// Inline function 'kotlin.collections.iterator' call
|
|
4445
|
-
var _iterator__ex2g4s_6 = tmp0_0.
|
|
4450
|
+
var _iterator__ex2g4s_6 = tmp0_0.m1().t();
|
|
4446
4451
|
while (_iterator__ex2g4s_6.u()) {
|
|
4447
4452
|
var element_2 = _iterator__ex2g4s_6.v();
|
|
4448
4453
|
// Inline function 'kotlin.collections.component1' call
|
|
4449
|
-
var status = element_2.
|
|
4454
|
+
var status = element_2.n1().o31_1;
|
|
4450
4455
|
// Inline function 'kotlin.collections.component2' call
|
|
4451
|
-
var res = element_2.
|
|
4456
|
+
var res = element_2.o1();
|
|
4452
4457
|
// Inline function 'kotlin.let' call
|
|
4453
4458
|
var response = resolve_2(_this__u8e3s4, res);
|
|
4454
4459
|
var content = get_content(response);
|
|
4455
4460
|
var tmp_4;
|
|
4456
4461
|
// Inline function 'kotlin.collections.isNullOrEmpty' call
|
|
4457
4462
|
if (content == null || content.r()) {
|
|
4458
|
-
var tmp1_annotations = plus_0(toDescriptionAnnotationList(response.
|
|
4463
|
+
var tmp1_annotations = plus_0(toDescriptionAnnotationList(response.u31()), toLinkAnnotationList(_this__u8e3s4, response.d32()));
|
|
4459
4464
|
var tmp2_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4460
|
-
var tmp0_safe_receiver_0 = response.
|
|
4465
|
+
var tmp0_safe_receiver_0 = response.f1f();
|
|
4461
4466
|
var tmp_5;
|
|
4462
4467
|
if (tmp0_safe_receiver_0 == null) {
|
|
4463
4468
|
tmp_5 = null;
|
|
@@ -4466,31 +4471,33 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4466
4471
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4467
4472
|
var destination_7 = ArrayList_init_$Create$(tmp0_safe_receiver_0.b1());
|
|
4468
4473
|
// Inline function 'kotlin.collections.iterator' call
|
|
4469
|
-
var _iterator__ex2g4s_7 = tmp0_safe_receiver_0.
|
|
4474
|
+
var _iterator__ex2g4s_7 = tmp0_safe_receiver_0.m1().t();
|
|
4470
4475
|
while (_iterator__ex2g4s_7.u()) {
|
|
4471
4476
|
var item_3 = _iterator__ex2g4s_7.v();
|
|
4472
|
-
var tmp$ret$
|
|
4473
|
-
destination_7.x(tmp$ret$
|
|
4477
|
+
var tmp$ret$54 = toField_3(_this__u8e3s4, resolve_3(_this__u8e3s4, item_3.o1()), item_3.n1(), className([name, 'ResponseHeader']));
|
|
4478
|
+
destination_7.x(tmp$ret$54);
|
|
4474
4479
|
}
|
|
4475
4480
|
tmp_5 = destination_7;
|
|
4476
4481
|
}
|
|
4477
4482
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4478
4483
|
var tmp0_elvis_lhs_2 = tmp_5;
|
|
4479
|
-
|
|
4484
|
+
// Inline function 'kotlin.let' call
|
|
4485
|
+
var p0 = tmp0_elvis_lhs_2 == null ? emptyList() : tmp0_elvis_lhs_2;
|
|
4486
|
+
var tmp3_headers = new Shape(p0);
|
|
4480
4487
|
tmp_4 = listOf(new Response(tmp2_status, tmp3_headers, null, tmp1_annotations));
|
|
4481
4488
|
} else {
|
|
4482
4489
|
// Inline function 'kotlin.collections.map' call
|
|
4483
4490
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4484
4491
|
var destination_8 = ArrayList_init_$Create$(content.b1());
|
|
4485
4492
|
// Inline function 'kotlin.collections.iterator' call
|
|
4486
|
-
var _iterator__ex2g4s_8 = content.
|
|
4493
|
+
var _iterator__ex2g4s_8 = content.m1().t();
|
|
4487
4494
|
while (_iterator__ex2g4s_8.u()) {
|
|
4488
4495
|
var item_4 = _iterator__ex2g4s_8.v();
|
|
4489
4496
|
// Inline function 'kotlin.collections.component1' call
|
|
4490
|
-
var contentType = item_4.
|
|
4497
|
+
var contentType = item_4.n1().i32_1;
|
|
4491
4498
|
// Inline function 'kotlin.collections.component2' call
|
|
4492
|
-
var media = item_4.
|
|
4493
|
-
var tmp0_safe_receiver_1 = media.
|
|
4499
|
+
var media = item_4.o1();
|
|
4500
|
+
var tmp0_safe_receiver_1 = media.e32();
|
|
4494
4501
|
var tmp_6;
|
|
4495
4502
|
if (tmp0_safe_receiver_1 == null) {
|
|
4496
4503
|
tmp_6 = null;
|
|
@@ -4501,9 +4508,9 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4501
4508
|
var tmp1_safe_receiver = tmp_6;
|
|
4502
4509
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : get_isNullable(tmp1_safe_receiver);
|
|
4503
4510
|
var isNullable_0 = tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs;
|
|
4504
|
-
var tmp4_annotations = plus_0(toDescriptionAnnotationList(response.
|
|
4511
|
+
var tmp4_annotations = plus_0(toDescriptionAnnotationList(response.u31()), toLinkAnnotationList(_this__u8e3s4, response.d32()));
|
|
4505
4512
|
var tmp5_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4506
|
-
var tmp3_safe_receiver_0 = response.
|
|
4513
|
+
var tmp3_safe_receiver_0 = response.f1f();
|
|
4507
4514
|
var tmp_7;
|
|
4508
4515
|
if (tmp3_safe_receiver_0 == null) {
|
|
4509
4516
|
tmp_7 = null;
|
|
@@ -4512,19 +4519,21 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4512
4519
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4513
4520
|
var destination_9 = ArrayList_init_$Create$(tmp3_safe_receiver_0.b1());
|
|
4514
4521
|
// Inline function 'kotlin.collections.iterator' call
|
|
4515
|
-
var _iterator__ex2g4s_9 = tmp3_safe_receiver_0.
|
|
4522
|
+
var _iterator__ex2g4s_9 = tmp3_safe_receiver_0.m1().t();
|
|
4516
4523
|
while (_iterator__ex2g4s_9.u()) {
|
|
4517
4524
|
var item_5 = _iterator__ex2g4s_9.v();
|
|
4518
|
-
var tmp$ret$
|
|
4519
|
-
destination_9.x(tmp$ret$
|
|
4525
|
+
var tmp$ret$69 = toField_3(_this__u8e3s4, resolve_3(_this__u8e3s4, item_5.o1()), item_5.n1(), className([name, 'ResponseHeader']));
|
|
4526
|
+
destination_9.x(tmp$ret$69);
|
|
4520
4527
|
}
|
|
4521
4528
|
tmp_7 = destination_9;
|
|
4522
4529
|
}
|
|
4523
4530
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4524
4531
|
var tmp0_elvis_lhs_3 = tmp_7;
|
|
4525
|
-
|
|
4532
|
+
// Inline function 'kotlin.let' call
|
|
4533
|
+
var p0_0 = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
|
|
4534
|
+
var tmp6_headers = new Shape(p0_0);
|
|
4526
4535
|
var tmp_8 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
4527
|
-
var schema_0 = media.
|
|
4536
|
+
var schema_0 = media.e32();
|
|
4528
4537
|
var tmp_9;
|
|
4529
4538
|
if (!(schema_0 == null) ? isInterface(schema_0, Reference) : false) {
|
|
4530
4539
|
tmp_9 = toReference_1(_this__u8e3s4, schema_0, isNullable_0);
|
|
@@ -4540,8 +4549,8 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4540
4549
|
}
|
|
4541
4550
|
}
|
|
4542
4551
|
var tmp7_content = new Content(tmp_8, tmp_9);
|
|
4543
|
-
var tmp$ret$
|
|
4544
|
-
destination_8.x(tmp$ret$
|
|
4552
|
+
var tmp$ret$61 = new Response(tmp5_status, tmp6_headers, tmp7_content, tmp4_annotations);
|
|
4553
|
+
destination_8.x(tmp$ret$61);
|
|
4545
4554
|
}
|
|
4546
4555
|
tmp_4 = destination_8;
|
|
4547
4556
|
}
|
|
@@ -4549,7 +4558,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4549
4558
|
addAll(destination_6, list);
|
|
4550
4559
|
}
|
|
4551
4560
|
var responses = destination_6;
|
|
4552
|
-
var tmp$ret$10 = new Endpoint(null, toDescriptionAnnotationList(operation.
|
|
4561
|
+
var tmp$ret$10 = new Endpoint(null, toDescriptionAnnotationList(operation.u31()), new DefinitionIdentifier(name), method, segments, query, headers, requests, responses);
|
|
4553
4562
|
destination_0.x(tmp$ret$10);
|
|
4554
4563
|
}
|
|
4555
4564
|
var list_0 = destination_0;
|
|
@@ -4567,21 +4576,21 @@ function parseResponseBody_0(_this__u8e3s4) {
|
|
|
4567
4576
|
return flatMapResponses(_this__u8e3s4, parseResponseBody$lambda_0(_this__u8e3s4));
|
|
4568
4577
|
}
|
|
4569
4578
|
function parseDefinitions_0(_this__u8e3s4) {
|
|
4570
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
4579
|
+
var tmp0_safe_receiver = _this__u8e3s4.q34();
|
|
4571
4580
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4572
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4581
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i3f();
|
|
4573
4582
|
// Inline function 'kotlin.collections.filter' call
|
|
4574
4583
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4575
4584
|
// Inline function 'kotlin.collections.filterTo' call
|
|
4576
4585
|
var destination = LinkedHashMap_init_$Create$_0();
|
|
4577
4586
|
// Inline function 'kotlin.collections.iterator' call
|
|
4578
|
-
var _iterator__ex2g4s = tmp0.
|
|
4587
|
+
var _iterator__ex2g4s = tmp0.m1().t();
|
|
4579
4588
|
while (_iterator__ex2g4s.u()) {
|
|
4580
4589
|
var element = _iterator__ex2g4s.v();
|
|
4581
|
-
var s = element.
|
|
4590
|
+
var s = element.o1();
|
|
4582
4591
|
var tmp;
|
|
4583
4592
|
if (isInterface(s, Schema)) {
|
|
4584
|
-
var tmp0_subject = s.
|
|
4593
|
+
var tmp0_subject = s.a32();
|
|
4585
4594
|
var tmp_0;
|
|
4586
4595
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
4587
4596
|
tmp_0 = true;
|
|
@@ -4609,17 +4618,17 @@ function parseDefinitions_0(_this__u8e3s4) {
|
|
|
4609
4618
|
}
|
|
4610
4619
|
}
|
|
4611
4620
|
if (tmp) {
|
|
4612
|
-
destination.
|
|
4621
|
+
destination.v2(element.n1(), element.o1());
|
|
4613
4622
|
}
|
|
4614
4623
|
}
|
|
4615
4624
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4616
4625
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4617
4626
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
4618
4627
|
// Inline function 'kotlin.collections.iterator' call
|
|
4619
|
-
var _iterator__ex2g4s_0 = destination.
|
|
4628
|
+
var _iterator__ex2g4s_0 = destination.m1().t();
|
|
4620
4629
|
while (_iterator__ex2g4s_0.u()) {
|
|
4621
4630
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
4622
|
-
var list = flattenSchemaOrRef_0(_this__u8e3s4, element_0.
|
|
4631
|
+
var list = flattenSchemaOrRef_0(_this__u8e3s4, element_0.o1(), className([element_0.n1()]));
|
|
4623
4632
|
addAll(destination_0, list);
|
|
4624
4633
|
}
|
|
4625
4634
|
return destination_0;
|
|
@@ -4694,7 +4703,7 @@ function toSegments_0(_this__u8e3s4, path, parameters, name) {
|
|
|
4694
4703
|
}
|
|
4695
4704
|
|
|
4696
4705
|
var tmp1_safe_receiver = tmp$ret$8;
|
|
4697
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4706
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.e32();
|
|
4698
4707
|
var tmp_0;
|
|
4699
4708
|
if (tmp2_safe_receiver == null) {
|
|
4700
4709
|
tmp_0 = null;
|
|
@@ -4748,13 +4757,13 @@ function toSegments_0(_this__u8e3s4, path, parameters, name) {
|
|
|
4748
4757
|
function get_location_0(_this__u8e3s4) {
|
|
4749
4758
|
var tmp;
|
|
4750
4759
|
if (_this__u8e3s4 instanceof OpenAPIV30Parameter) {
|
|
4751
|
-
tmp = _this__u8e3s4.
|
|
4760
|
+
tmp = _this__u8e3s4.q3h_1;
|
|
4752
4761
|
} else {
|
|
4753
4762
|
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
4754
|
-
tmp = valueOf(_this__u8e3s4.
|
|
4763
|
+
tmp = valueOf(_this__u8e3s4.e3o_1.d3_1);
|
|
4755
4764
|
} else {
|
|
4756
4765
|
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
4757
|
-
tmp = valueOf(_this__u8e3s4.
|
|
4766
|
+
tmp = valueOf(_this__u8e3s4.j3y_1.d3_1);
|
|
4758
4767
|
} else {
|
|
4759
4768
|
// Inline function 'kotlin.error' call
|
|
4760
4769
|
var message = 'Unsupported parameter type: ' + toString(_this__u8e3s4);
|
|
@@ -4767,7 +4776,7 @@ function get_location_0(_this__u8e3s4) {
|
|
|
4767
4776
|
function toField_2(_this__u8e3s4, parameter, name) {
|
|
4768
4777
|
var tmp0_elvis_lhs = get_required(parameter);
|
|
4769
4778
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
4770
|
-
var s = parameter.
|
|
4779
|
+
var s = parameter.e32();
|
|
4771
4780
|
var tmp;
|
|
4772
4781
|
if (!(s == null) ? isInterface(s, Reference) : false) {
|
|
4773
4782
|
tmp = toReference_1(_this__u8e3s4, s, isNullable);
|
|
@@ -4794,7 +4803,7 @@ function resolve_1(_this__u8e3s4, requestBodyOrReference) {
|
|
|
4794
4803
|
tmp = requestBodyOrReference;
|
|
4795
4804
|
} else {
|
|
4796
4805
|
if (isInterface(requestBodyOrReference, Reference)) {
|
|
4797
|
-
tmp = resolveRequestBody(_this__u8e3s4, requestBodyOrReference).
|
|
4806
|
+
tmp = resolveRequestBody(_this__u8e3s4, requestBodyOrReference).gf_1;
|
|
4798
4807
|
} else {
|
|
4799
4808
|
noWhenBranchMatchedException();
|
|
4800
4809
|
}
|
|
@@ -4804,12 +4813,12 @@ function resolve_1(_this__u8e3s4, requestBodyOrReference) {
|
|
|
4804
4813
|
function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
4805
4814
|
// Inline function 'kotlin.let' call
|
|
4806
4815
|
var destruct = resolveSchemaRef_0(_this__u8e3s4, reference);
|
|
4807
|
-
var referencingObject = destruct.
|
|
4808
|
-
var schema = destruct.
|
|
4816
|
+
var referencingObject = destruct.ze();
|
|
4817
|
+
var schema = destruct.af();
|
|
4809
4818
|
var nullable = get_isNullable(schema);
|
|
4810
4819
|
var tmp;
|
|
4811
|
-
if (exists_0(schema.
|
|
4812
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4820
|
+
if (exists_0(schema.a32())) {
|
|
4821
|
+
var additionalProperties = ensureNotNull(schema.a32());
|
|
4813
4822
|
var tmp_0;
|
|
4814
4823
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
4815
4824
|
tmp_0 = new Dict(new Any(isNullable), false);
|
|
@@ -4825,12 +4834,12 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4825
4834
|
}
|
|
4826
4835
|
}
|
|
4827
4836
|
tmp = tmp_0;
|
|
4828
|
-
} else if (!(schema.
|
|
4837
|
+
} else if (!(schema.w31() == null)) {
|
|
4829
4838
|
tmp = new Custom(sanitize(className([getReference(referencingObject)])), isNullable);
|
|
4830
4839
|
} else if (isPrimitive_0(get_primitiveType_0(schema))) {
|
|
4831
4840
|
tmp = new Primitive(toPrimitive_1(schema), isNullable);
|
|
4832
4841
|
} else if (equals(get_primitiveType_0(schema), OpenAPIV30Type_ARRAY_getInstance())) {
|
|
4833
|
-
var items = schema.
|
|
4842
|
+
var items = schema.x31();
|
|
4834
4843
|
var tmp_1;
|
|
4835
4844
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
4836
4845
|
tmp_1 = toIterable(toReference_1(_this__u8e3s4, items, nullable), isNullable);
|
|
@@ -4840,7 +4849,7 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4840
4849
|
} else {
|
|
4841
4850
|
if (items == null) {
|
|
4842
4851
|
// Inline function 'kotlin.error' call
|
|
4843
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.
|
|
4852
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.t31());
|
|
4844
4853
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4845
4854
|
} else {
|
|
4846
4855
|
noWhenBranchMatchedException();
|
|
@@ -4858,7 +4867,7 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4858
4867
|
var nullable = get_isNullable(schema);
|
|
4859
4868
|
var tmp;
|
|
4860
4869
|
if (equals(get_primitiveType_0(schema), OpenAPIV30Type_ARRAY_getInstance())) {
|
|
4861
|
-
var items = schema.
|
|
4870
|
+
var items = schema.x31();
|
|
4862
4871
|
var tmp_0;
|
|
4863
4872
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
4864
4873
|
tmp_0 = toIterable(toReference_1(_this__u8e3s4, items, nullable), isNullable);
|
|
@@ -4876,8 +4885,8 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4876
4885
|
}
|
|
4877
4886
|
}
|
|
4878
4887
|
tmp = tmp_0;
|
|
4879
|
-
} else if (!(schema.
|
|
4880
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4888
|
+
} else if (!(schema.a32() == null)) {
|
|
4889
|
+
var additionalProperties = ensureNotNull(schema.a32());
|
|
4881
4890
|
var tmp_1;
|
|
4882
4891
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
4883
4892
|
tmp_1 = new Dict(new Any(nullable), isNullable);
|
|
@@ -4888,7 +4897,7 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4888
4897
|
if (isInterface(additionalProperties, Schema)) {
|
|
4889
4898
|
// Inline function 'kotlin.takeIf' call
|
|
4890
4899
|
var tmp_2;
|
|
4891
|
-
if (isPrimitive_0(get_primitiveType_0(additionalProperties)) || !(additionalProperties.
|
|
4900
|
+
if (isPrimitive_0(get_primitiveType_0(additionalProperties)) || !(additionalProperties.z31() == null)) {
|
|
4892
4901
|
tmp_2 = additionalProperties;
|
|
4893
4902
|
} else {
|
|
4894
4903
|
tmp_2 = null;
|
|
@@ -4909,14 +4918,14 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4909
4918
|
}
|
|
4910
4919
|
}
|
|
4911
4920
|
tmp = tmp_1;
|
|
4912
|
-
} else if (!(schema.
|
|
4921
|
+
} else if (!(schema.w31() == null)) {
|
|
4913
4922
|
// Inline function 'kotlin.let' call
|
|
4914
4923
|
var it = new Custom(sanitize(name), isNullable);
|
|
4915
|
-
tmp = !(schema.
|
|
4924
|
+
tmp = !(schema.a32() == null) ? new Dict(it, false) : it;
|
|
4916
4925
|
} else {
|
|
4917
4926
|
var tmp2_subject = get_primitiveType_0(schema);
|
|
4918
4927
|
var tmp_4;
|
|
4919
|
-
switch (tmp2_subject == null ? -1 : tmp2_subject.
|
|
4928
|
+
switch (tmp2_subject == null ? -1 : tmp2_subject.e3_1) {
|
|
4920
4929
|
case 0:
|
|
4921
4930
|
case 1:
|
|
4922
4931
|
case 2:
|
|
@@ -4924,26 +4933,26 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4924
4933
|
// Inline function 'kotlin.let' call
|
|
4925
4934
|
|
|
4926
4935
|
var it_0 = new Primitive(toPrimitive_1(schema), isNullable);
|
|
4927
|
-
tmp_4 = !(schema.
|
|
4936
|
+
tmp_4 = !(schema.a32() == null) ? new Dict(it_0, false) : it_0;
|
|
4928
4937
|
break;
|
|
4929
4938
|
case -1:
|
|
4930
4939
|
case 5:
|
|
4931
4940
|
var tmp_5;
|
|
4932
|
-
var tmp_6 = schema.
|
|
4941
|
+
var tmp_6 = schema.a32();
|
|
4933
4942
|
if (!(tmp_6 == null) ? isInterface(tmp_6, BooleanValue) : false) {
|
|
4934
4943
|
// Inline function 'kotlin.let' call
|
|
4935
4944
|
var it_1 = new Any(false);
|
|
4936
|
-
tmp_5 = !(schema.
|
|
4945
|
+
tmp_5 = !(schema.a32() == null) ? new Dict(it_1, false) : it_1;
|
|
4937
4946
|
} else {
|
|
4938
4947
|
// Inline function 'kotlin.let' call
|
|
4939
4948
|
var it_2 = new Custom(sanitize(name), isNullable);
|
|
4940
|
-
tmp_5 = !(schema.
|
|
4949
|
+
tmp_5 = !(schema.a32() == null) ? new Dict(it_2, false) : it_2;
|
|
4941
4950
|
}
|
|
4942
4951
|
|
|
4943
4952
|
tmp_4 = tmp_5;
|
|
4944
4953
|
break;
|
|
4945
4954
|
case 4:
|
|
4946
|
-
var it_3 = schema.
|
|
4955
|
+
var it_3 = schema.x31();
|
|
4947
4956
|
var tmp_7;
|
|
4948
4957
|
if (!(it_3 == null) ? isInterface(it_3, Reference) : false) {
|
|
4949
4958
|
tmp_7 = toIterable(toReference_1(_this__u8e3s4, it_3, nullable), isNullable);
|
|
@@ -4980,7 +4989,7 @@ function resolve_2(_this__u8e3s4, responseOrReference) {
|
|
|
4980
4989
|
tmp = responseOrReference;
|
|
4981
4990
|
} else {
|
|
4982
4991
|
if (isInterface(responseOrReference, Reference)) {
|
|
4983
|
-
tmp = resolveResponse_0(_this__u8e3s4, responseOrReference).
|
|
4992
|
+
tmp = resolveResponse_0(_this__u8e3s4, responseOrReference).gf_1;
|
|
4984
4993
|
} else {
|
|
4985
4994
|
noWhenBranchMatchedException();
|
|
4986
4995
|
}
|
|
@@ -4990,13 +4999,13 @@ function resolve_2(_this__u8e3s4, responseOrReference) {
|
|
|
4990
4999
|
function get_content(_this__u8e3s4) {
|
|
4991
5000
|
var tmp;
|
|
4992
5001
|
if (_this__u8e3s4 instanceof OpenAPIV30Response) {
|
|
4993
|
-
tmp = _this__u8e3s4.
|
|
5002
|
+
tmp = _this__u8e3s4.d3j_1;
|
|
4994
5003
|
} else {
|
|
4995
5004
|
if (_this__u8e3s4 instanceof OpenAPIV31Response) {
|
|
4996
|
-
tmp = _this__u8e3s4.
|
|
5005
|
+
tmp = _this__u8e3s4.l3o_1;
|
|
4997
5006
|
} else {
|
|
4998
5007
|
if (_this__u8e3s4 instanceof OpenAPIV32Response) {
|
|
4999
|
-
tmp = _this__u8e3s4.
|
|
5008
|
+
tmp = _this__u8e3s4.q3y_1;
|
|
5000
5009
|
} else {
|
|
5001
5010
|
tmp = null;
|
|
5002
5011
|
}
|
|
@@ -5005,7 +5014,7 @@ function get_content(_this__u8e3s4) {
|
|
|
5005
5014
|
return tmp;
|
|
5006
5015
|
}
|
|
5007
5016
|
function toLinkAnnotationList(_this__u8e3s4, links) {
|
|
5008
|
-
var tmp1_safe_receiver = links == null ? null : links.
|
|
5017
|
+
var tmp1_safe_receiver = links == null ? null : links.m1();
|
|
5009
5018
|
var tmp;
|
|
5010
5019
|
if (tmp1_safe_receiver == null) {
|
|
5011
5020
|
tmp = null;
|
|
@@ -5016,7 +5025,7 @@ function toLinkAnnotationList(_this__u8e3s4, links) {
|
|
|
5016
5025
|
var _iterator__ex2g4s = tmp1_safe_receiver.t();
|
|
5017
5026
|
while (_iterator__ex2g4s.u()) {
|
|
5018
5027
|
var item = _iterator__ex2g4s.v();
|
|
5019
|
-
var tmp$ret$2 = toAnnotation(toLinkInfo_0(resolve_5(_this__u8e3s4, item.
|
|
5028
|
+
var tmp$ret$2 = toAnnotation(toLinkInfo_0(resolve_5(_this__u8e3s4, item.o1()), item.n1()));
|
|
5020
5029
|
destination.x(tmp$ret$2);
|
|
5021
5030
|
}
|
|
5022
5031
|
tmp = destination;
|
|
@@ -5046,7 +5055,7 @@ function toField_3(_this__u8e3s4, header, identifier, name) {
|
|
|
5046
5055
|
// Inline function 'kotlin.let' call
|
|
5047
5056
|
var it = tmp;
|
|
5048
5057
|
var tmp0_identifier = new FieldIdentifier(identifier);
|
|
5049
|
-
var tmp1_annotations = toDescriptionAnnotationList(header.
|
|
5058
|
+
var tmp1_annotations = toDescriptionAnnotationList(header.u31());
|
|
5050
5059
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
5051
5060
|
}
|
|
5052
5061
|
function resolve_3(_this__u8e3s4, headerOrReference) {
|
|
@@ -5055,7 +5064,7 @@ function resolve_3(_this__u8e3s4, headerOrReference) {
|
|
|
5055
5064
|
tmp = headerOrReference;
|
|
5056
5065
|
} else {
|
|
5057
5066
|
if (isInterface(headerOrReference, Reference)) {
|
|
5058
|
-
tmp = resolveHeader_0(_this__u8e3s4, headerOrReference).
|
|
5067
|
+
tmp = resolveHeader_0(_this__u8e3s4, headerOrReference).gf_1;
|
|
5059
5068
|
} else {
|
|
5060
5069
|
noWhenBranchMatchedException();
|
|
5061
5070
|
}
|
|
@@ -5068,7 +5077,7 @@ function resolve_4(_this__u8e3s4, schemaOrReference) {
|
|
|
5068
5077
|
tmp = schemaOrReference;
|
|
5069
5078
|
} else {
|
|
5070
5079
|
if (isInterface(schemaOrReference, Reference)) {
|
|
5071
|
-
tmp = resolveSchemaRef_0(_this__u8e3s4, schemaOrReference).
|
|
5080
|
+
tmp = resolveSchemaRef_0(_this__u8e3s4, schemaOrReference).gf_1;
|
|
5072
5081
|
} else {
|
|
5073
5082
|
noWhenBranchMatchedException();
|
|
5074
5083
|
}
|
|
@@ -5078,21 +5087,21 @@ function resolve_4(_this__u8e3s4, schemaOrReference) {
|
|
|
5078
5087
|
function get_isNullable(_this__u8e3s4) {
|
|
5079
5088
|
var tmp;
|
|
5080
5089
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5081
|
-
var tmp1_elvis_lhs = _this__u8e3s4.
|
|
5090
|
+
var tmp1_elvis_lhs = _this__u8e3s4.n3f_1;
|
|
5082
5091
|
tmp = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
5083
5092
|
} else {
|
|
5084
5093
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5085
|
-
var tmp_0 = _this__u8e3s4.
|
|
5094
|
+
var tmp_0 = _this__u8e3s4.g3p_1;
|
|
5086
5095
|
var tmp2_safe_receiver = tmp_0 instanceof OpenAPIV31TypeArray ? tmp_0 : null;
|
|
5087
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
5088
|
-
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
5096
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.w3q_1;
|
|
5097
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.i1(OpenAPIV31Type_NULL_getInstance());
|
|
5089
5098
|
tmp = tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs;
|
|
5090
5099
|
} else {
|
|
5091
5100
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5092
|
-
var tmp_1 = _this__u8e3s4.
|
|
5101
|
+
var tmp_1 = _this__u8e3s4.l3z_1;
|
|
5093
5102
|
var tmp5_safe_receiver = tmp_1 instanceof OpenAPIV32TypeArray ? tmp_1 : null;
|
|
5094
|
-
var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.
|
|
5095
|
-
var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.
|
|
5103
|
+
var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.b41_1;
|
|
5104
|
+
var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.i1(OpenAPIV32Type_NULL_getInstance());
|
|
5096
5105
|
tmp = tmp7_elvis_lhs == null ? false : tmp7_elvis_lhs;
|
|
5097
5106
|
} else {
|
|
5098
5107
|
tmp = false;
|
|
@@ -5117,13 +5126,13 @@ function flattenSchemaOrRef_0(_this__u8e3s4, schemaOrReference, name) {
|
|
|
5117
5126
|
function get_primitiveType_0(_this__u8e3s4) {
|
|
5118
5127
|
var tmp;
|
|
5119
5128
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5120
|
-
var t = _this__u8e3s4.
|
|
5129
|
+
var t = _this__u8e3s4.u3f_1;
|
|
5121
5130
|
var tmp_0;
|
|
5122
5131
|
if (t instanceof OpenAPIV30SingleType) {
|
|
5123
|
-
tmp_0 = t.
|
|
5132
|
+
tmp_0 = t.l3i_1;
|
|
5124
5133
|
} else {
|
|
5125
5134
|
if (t instanceof OpenAPIV30TypeArray) {
|
|
5126
|
-
var tmp0 = t.
|
|
5135
|
+
var tmp0 = t.q3k_1;
|
|
5127
5136
|
var tmp$ret$0;
|
|
5128
5137
|
$l$block: {
|
|
5129
5138
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -5149,13 +5158,13 @@ function get_primitiveType_0(_this__u8e3s4) {
|
|
|
5149
5158
|
tmp = tmp_0;
|
|
5150
5159
|
} else {
|
|
5151
5160
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5152
|
-
var t_0 = _this__u8e3s4.
|
|
5161
|
+
var t_0 = _this__u8e3s4.g3p_1;
|
|
5153
5162
|
var tmp_1;
|
|
5154
5163
|
if (t_0 instanceof OpenAPIV31SingleType) {
|
|
5155
|
-
tmp_1 = toV30(t_0.
|
|
5164
|
+
tmp_1 = toV30(t_0.x3q_1);
|
|
5156
5165
|
} else {
|
|
5157
5166
|
if (t_0 instanceof OpenAPIV31TypeArray) {
|
|
5158
|
-
var tmp0_0 = t_0.
|
|
5167
|
+
var tmp0_0 = t_0.w3q_1;
|
|
5159
5168
|
var tmp$ret$2;
|
|
5160
5169
|
$l$block_0: {
|
|
5161
5170
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -5182,13 +5191,13 @@ function get_primitiveType_0(_this__u8e3s4) {
|
|
|
5182
5191
|
tmp = tmp_1;
|
|
5183
5192
|
} else {
|
|
5184
5193
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5185
|
-
var t_1 = _this__u8e3s4.
|
|
5194
|
+
var t_1 = _this__u8e3s4.l3z_1;
|
|
5186
5195
|
var tmp_2;
|
|
5187
5196
|
if (t_1 instanceof OpenAPIV32SingleType) {
|
|
5188
|
-
tmp_2 = toV30_0(t_1.
|
|
5197
|
+
tmp_2 = toV30_0(t_1.c41_1);
|
|
5189
5198
|
} else {
|
|
5190
5199
|
if (t_1 instanceof OpenAPIV32TypeArray) {
|
|
5191
|
-
var tmp0_1 = t_1.
|
|
5200
|
+
var tmp0_1 = t_1.b41_1;
|
|
5192
5201
|
var tmp$ret$4;
|
|
5193
5202
|
$l$block_1: {
|
|
5194
5203
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -5224,13 +5233,13 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5224
5233
|
var oneOf = get_oneOf(schemaObject);
|
|
5225
5234
|
var anyOf = get_anyOf(schemaObject);
|
|
5226
5235
|
var tmp;
|
|
5227
|
-
if (exists_0(schemaObject.
|
|
5228
|
-
var tmp0_subject = schemaObject.
|
|
5236
|
+
if (exists_0(schemaObject.a32())) {
|
|
5237
|
+
var tmp0_subject = schemaObject.a32();
|
|
5229
5238
|
var tmp_0;
|
|
5230
5239
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
5231
5240
|
tmp_0 = emptyList();
|
|
5232
5241
|
} else {
|
|
5233
|
-
var tmp1_safe_receiver = schemaObject.
|
|
5242
|
+
var tmp1_safe_receiver = schemaObject.a32();
|
|
5234
5243
|
var tmp_1;
|
|
5235
5244
|
if (tmp1_safe_receiver == null) {
|
|
5236
5245
|
tmp_1 = null;
|
|
@@ -5245,7 +5254,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5245
5254
|
} else {
|
|
5246
5255
|
// Inline function 'kotlin.takeIf' call
|
|
5247
5256
|
var tmp_3;
|
|
5248
|
-
if (!(tmp2_safe_receiver.
|
|
5257
|
+
if (!(tmp2_safe_receiver.z31() == null)) {
|
|
5249
5258
|
tmp_3 = tmp2_safe_receiver;
|
|
5250
5259
|
} else {
|
|
5251
5260
|
tmp_3 = null;
|
|
@@ -5265,7 +5274,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5265
5274
|
}
|
|
5266
5275
|
tmp = tmp_0;
|
|
5267
5276
|
} else if (!(oneOf == null) || !(anyOf == null)) {
|
|
5268
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
5277
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.u31());
|
|
5269
5278
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
5270
5279
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5271
5280
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
@@ -5319,11 +5328,11 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5319
5328
|
addAll(destination_0, list);
|
|
5320
5329
|
}
|
|
5321
5330
|
tmp = plus_0(tmp_8, destination_0);
|
|
5322
|
-
} else if (!(schemaObject.
|
|
5323
|
-
var tmp_10 = toDescriptionAnnotationList(schemaObject.
|
|
5331
|
+
} else if (!(schemaObject.y31() == null)) {
|
|
5332
|
+
var tmp_10 = toDescriptionAnnotationList(schemaObject.u31());
|
|
5324
5333
|
var tmp_11 = new DefinitionIdentifier(sanitize(name));
|
|
5325
5334
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5326
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
5335
|
+
var tmp0_elvis_lhs = schemaObject.y31();
|
|
5327
5336
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5328
5337
|
var tmp0_0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
5329
5338
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -5340,14 +5349,14 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5340
5349
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
5341
5350
|
while (_iterator__ex2g4s_2.u()) {
|
|
5342
5351
|
var e = _iterator__ex2g4s_2.v();
|
|
5343
|
-
var key = e.
|
|
5352
|
+
var key = e.op_1;
|
|
5344
5353
|
if (set.x(key)) {
|
|
5345
5354
|
list_1.x(e);
|
|
5346
5355
|
}
|
|
5347
5356
|
}
|
|
5348
5357
|
var tmp_12 = listOf(new Type(null, tmp_10, tmp_11, new Shape(list_1), emptyList()));
|
|
5349
5358
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5350
|
-
var tmp0_1 = ensureNotNull(schemaObject.
|
|
5359
|
+
var tmp0_1 = ensureNotNull(schemaObject.y31());
|
|
5351
5360
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5352
5361
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
5353
5362
|
var _iterator__ex2g4s_3 = tmp0_1.t();
|
|
@@ -5356,12 +5365,12 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5356
5365
|
var tmp_13;
|
|
5357
5366
|
if (isInterface(element_1, Reference)) {
|
|
5358
5367
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5359
|
-
var tmp0_elvis_lhs_0 = resolveSchemaRef_0(_this__u8e3s4, element_1).
|
|
5368
|
+
var tmp0_elvis_lhs_0 = resolveSchemaRef_0(_this__u8e3s4, element_1).gf_1.z31();
|
|
5360
5369
|
tmp_13 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
5361
5370
|
} else {
|
|
5362
5371
|
if (isInterface(element_1, Schema)) {
|
|
5363
5372
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5364
|
-
var tmp0_elvis_lhs_1 = element_1.
|
|
5373
|
+
var tmp0_elvis_lhs_1 = element_1.z31();
|
|
5365
5374
|
tmp_13 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
5366
5375
|
} else {
|
|
5367
5376
|
noWhenBranchMatchedException();
|
|
@@ -5372,13 +5381,13 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5372
5381
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5373
5382
|
var destination_3 = ArrayList_init_$Create$_0();
|
|
5374
5383
|
// Inline function 'kotlin.collections.iterator' call
|
|
5375
|
-
var _iterator__ex2g4s_4 = tmp0_2.
|
|
5384
|
+
var _iterator__ex2g4s_4 = tmp0_2.m1().t();
|
|
5376
5385
|
while (_iterator__ex2g4s_4.u()) {
|
|
5377
5386
|
var element_2 = _iterator__ex2g4s_4.v();
|
|
5378
5387
|
// Inline function 'kotlin.collections.component1' call
|
|
5379
|
-
var key_0 = element_2.
|
|
5388
|
+
var key_0 = element_2.n1();
|
|
5380
5389
|
// Inline function 'kotlin.collections.component2' call
|
|
5381
|
-
var value = element_2.
|
|
5390
|
+
var value = element_2.o1();
|
|
5382
5391
|
var list_2 = flattenSchemaOrRef_0(_this__u8e3s4, value, className([name, key_0]));
|
|
5383
5392
|
addAll(destination_3, list_2);
|
|
5384
5393
|
}
|
|
@@ -5386,29 +5395,29 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5386
5395
|
addAll(destination_2, list_3);
|
|
5387
5396
|
}
|
|
5388
5397
|
tmp = plus_0(tmp_12, destination_2);
|
|
5389
|
-
} else if (!(schemaObject.
|
|
5398
|
+
} else if (!(schemaObject.w31() == null)) {
|
|
5390
5399
|
// Inline function 'kotlin.collections.map' call
|
|
5391
|
-
var this_1 = ensureNotNull(schemaObject.
|
|
5400
|
+
var this_1 = ensureNotNull(schemaObject.w31());
|
|
5392
5401
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5393
5402
|
var destination_4 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
5394
5403
|
var _iterator__ex2g4s_5 = this_1.t();
|
|
5395
5404
|
while (_iterator__ex2g4s_5.u()) {
|
|
5396
5405
|
var item_0 = _iterator__ex2g4s_5.v();
|
|
5397
|
-
var tmp$ret$33 = item_0.
|
|
5406
|
+
var tmp$ret$33 = item_0.j1g();
|
|
5398
5407
|
destination_4.x(tmp$ret$33);
|
|
5399
5408
|
}
|
|
5400
5409
|
// Inline function 'kotlin.let' call
|
|
5401
5410
|
var it = toSet(destination_4);
|
|
5402
|
-
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.
|
|
5411
|
+
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.u31()), new DefinitionIdentifier(name), it));
|
|
5403
5412
|
} else {
|
|
5404
5413
|
var tmp5_subject = get_primitiveType_0(schemaObject);
|
|
5405
5414
|
var tmp_14;
|
|
5406
|
-
switch (tmp5_subject == null ? -1 : tmp5_subject.
|
|
5415
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.e3_1) {
|
|
5407
5416
|
case -1:
|
|
5408
5417
|
case 5:
|
|
5409
5418
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5410
5419
|
|
|
5411
|
-
var tmp0_elvis_lhs_2 = schemaObject.
|
|
5420
|
+
var tmp0_elvis_lhs_2 = schemaObject.z31();
|
|
5412
5421
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5413
5422
|
|
|
5414
5423
|
var tmp0_3 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
@@ -5417,23 +5426,23 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5417
5426
|
var destination_5 = ArrayList_init_$Create$_0();
|
|
5418
5427
|
// Inline function 'kotlin.collections.iterator' call
|
|
5419
5428
|
|
|
5420
|
-
var _iterator__ex2g4s_6 = tmp0_3.
|
|
5429
|
+
var _iterator__ex2g4s_6 = tmp0_3.m1().t();
|
|
5421
5430
|
while (_iterator__ex2g4s_6.u()) {
|
|
5422
5431
|
var element_3 = _iterator__ex2g4s_6.v();
|
|
5423
5432
|
// Inline function 'kotlin.collections.component1' call
|
|
5424
|
-
var key_1 = element_3.
|
|
5433
|
+
var key_1 = element_3.n1();
|
|
5425
5434
|
// Inline function 'kotlin.collections.component2' call
|
|
5426
|
-
var value_0 = element_3.
|
|
5435
|
+
var value_0 = element_3.o1();
|
|
5427
5436
|
var list_4 = flattenSchemaOrRef_0(_this__u8e3s4, value_0, className([name, key_1]));
|
|
5428
5437
|
addAll(destination_5, list_4);
|
|
5429
5438
|
}
|
|
5430
5439
|
|
|
5431
5440
|
var fields = destination_5;
|
|
5432
|
-
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.
|
|
5441
|
+
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.u31()), new DefinitionIdentifier(name), new Shape(toField_4(_this__u8e3s4, schemaObject, name)), emptyList()));
|
|
5433
5442
|
tmp_14 = plus_0(schema, fields);
|
|
5434
5443
|
break;
|
|
5435
5444
|
case 4:
|
|
5436
|
-
var tmp6_safe_receiver = schemaObject.
|
|
5445
|
+
var tmp6_safe_receiver = schemaObject.x31();
|
|
5437
5446
|
var tmp_15;
|
|
5438
5447
|
if (tmp6_safe_receiver == null) {
|
|
5439
5448
|
tmp_15 = null;
|
|
@@ -5471,23 +5480,23 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5471
5480
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5472
5481
|
var destination = ArrayList_init_$Create$_0();
|
|
5473
5482
|
// Inline function 'kotlin.collections.iterator' call
|
|
5474
|
-
var _iterator__ex2g4s = tmp0.
|
|
5483
|
+
var _iterator__ex2g4s = tmp0.m1().t();
|
|
5475
5484
|
while (_iterator__ex2g4s.u()) {
|
|
5476
5485
|
var element = _iterator__ex2g4s.v();
|
|
5477
5486
|
// Inline function 'kotlin.collections.component2' call
|
|
5478
|
-
var mediaObject = element.
|
|
5479
|
-
var schema = mediaObject.
|
|
5487
|
+
var mediaObject = element.o1();
|
|
5488
|
+
var schema = mediaObject.e32();
|
|
5480
5489
|
var tmp;
|
|
5481
5490
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
5482
5491
|
var tmp0_subject = get_primitiveType_0(schema);
|
|
5483
5492
|
var tmp_0;
|
|
5484
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
5493
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.e3_1) {
|
|
5485
5494
|
case -1:
|
|
5486
5495
|
case 5:
|
|
5487
5496
|
tmp_0 = flatten_0(_this__u8e3s4, schema, className([name, _StatusCode___get_value__impl__we50mu(statusCode), 'ResponseBody']));
|
|
5488
5497
|
break;
|
|
5489
5498
|
case 4:
|
|
5490
|
-
var tmp1_safe_receiver = schema.
|
|
5499
|
+
var tmp1_safe_receiver = schema.x31();
|
|
5491
5500
|
var tmp_1;
|
|
5492
5501
|
if (tmp1_safe_receiver == null) {
|
|
5493
5502
|
tmp_1 = null;
|
|
@@ -5515,9 +5524,9 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5515
5524
|
return destination;
|
|
5516
5525
|
}
|
|
5517
5526
|
function resolveResponse_0(_this__u8e3s4, reference) {
|
|
5518
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5519
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5520
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5527
|
+
var tmp0_safe_receiver = _this__u8e3s4.q34();
|
|
5528
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h1f();
|
|
5529
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s2(getReference(reference));
|
|
5521
5530
|
var tmp;
|
|
5522
5531
|
if (tmp2_safe_receiver == null) {
|
|
5523
5532
|
tmp = null;
|
|
@@ -5539,7 +5548,7 @@ function resolveResponse_0(_this__u8e3s4, reference) {
|
|
|
5539
5548
|
var tmp_1;
|
|
5540
5549
|
if (tmp3_elvis_lhs == null) {
|
|
5541
5550
|
// Inline function 'kotlin.error' call
|
|
5542
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5551
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.t31());
|
|
5543
5552
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5544
5553
|
} else {
|
|
5545
5554
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5547,9 +5556,9 @@ function resolveResponse_0(_this__u8e3s4, reference) {
|
|
|
5547
5556
|
return tmp_1;
|
|
5548
5557
|
}
|
|
5549
5558
|
function resolveParameter_0(_this__u8e3s4, reference) {
|
|
5550
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5551
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5552
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5559
|
+
var tmp0_safe_receiver = _this__u8e3s4.q34();
|
|
5560
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l1g();
|
|
5561
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s2(getReference(reference));
|
|
5553
5562
|
var tmp;
|
|
5554
5563
|
if (tmp2_safe_receiver == null) {
|
|
5555
5564
|
tmp = null;
|
|
@@ -5572,13 +5581,13 @@ function resolveParameter_0(_this__u8e3s4, reference) {
|
|
|
5572
5581
|
function get_required(_this__u8e3s4) {
|
|
5573
5582
|
var tmp;
|
|
5574
5583
|
if (_this__u8e3s4 instanceof OpenAPIV30Parameter) {
|
|
5575
|
-
tmp = _this__u8e3s4.
|
|
5584
|
+
tmp = _this__u8e3s4.h3h_1;
|
|
5576
5585
|
} else {
|
|
5577
5586
|
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
5578
|
-
tmp = _this__u8e3s4.
|
|
5587
|
+
tmp = _this__u8e3s4.v3n_1;
|
|
5579
5588
|
} else {
|
|
5580
5589
|
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
5581
|
-
tmp = _this__u8e3s4.
|
|
5590
|
+
tmp = _this__u8e3s4.a3y_1;
|
|
5582
5591
|
} else {
|
|
5583
5592
|
tmp = null;
|
|
5584
5593
|
}
|
|
@@ -5589,13 +5598,13 @@ function get_required(_this__u8e3s4) {
|
|
|
5589
5598
|
function get_description(_this__u8e3s4) {
|
|
5590
5599
|
var tmp;
|
|
5591
5600
|
if (_this__u8e3s4 instanceof OpenAPIV30Parameter) {
|
|
5592
|
-
tmp = _this__u8e3s4.
|
|
5601
|
+
tmp = _this__u8e3s4.g3h_1;
|
|
5593
5602
|
} else {
|
|
5594
5603
|
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
5595
|
-
tmp = _this__u8e3s4.
|
|
5604
|
+
tmp = _this__u8e3s4.u3n_1;
|
|
5596
5605
|
} else {
|
|
5597
5606
|
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
5598
|
-
tmp = _this__u8e3s4.
|
|
5607
|
+
tmp = _this__u8e3s4.z3x_1;
|
|
5599
5608
|
} else {
|
|
5600
5609
|
tmp = null;
|
|
5601
5610
|
}
|
|
@@ -5604,9 +5613,9 @@ function get_description(_this__u8e3s4) {
|
|
|
5604
5613
|
return tmp;
|
|
5605
5614
|
}
|
|
5606
5615
|
function resolveRequestBody(_this__u8e3s4, reference) {
|
|
5607
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5608
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5609
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5616
|
+
var tmp0_safe_receiver = _this__u8e3s4.q34();
|
|
5617
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j3f();
|
|
5618
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s2(getReference(reference));
|
|
5610
5619
|
var tmp;
|
|
5611
5620
|
if (tmp2_safe_receiver == null) {
|
|
5612
5621
|
tmp = null;
|
|
@@ -5628,7 +5637,7 @@ function resolveRequestBody(_this__u8e3s4, reference) {
|
|
|
5628
5637
|
var tmp_1;
|
|
5629
5638
|
if (tmp3_elvis_lhs == null) {
|
|
5630
5639
|
// Inline function 'kotlin.error' call
|
|
5631
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5640
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.t31());
|
|
5632
5641
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5633
5642
|
} else {
|
|
5634
5643
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5636,9 +5645,9 @@ function resolveRequestBody(_this__u8e3s4, reference) {
|
|
|
5636
5645
|
return tmp_1;
|
|
5637
5646
|
}
|
|
5638
5647
|
function resolveSchemaRef_0(_this__u8e3s4, reference) {
|
|
5639
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5640
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5641
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5648
|
+
var tmp0_safe_receiver = _this__u8e3s4.q34();
|
|
5649
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i3f();
|
|
5650
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s2(getReference(reference));
|
|
5642
5651
|
var tmp;
|
|
5643
5652
|
if (tmp2_safe_receiver == null) {
|
|
5644
5653
|
tmp = null;
|
|
@@ -5660,7 +5669,7 @@ function resolveSchemaRef_0(_this__u8e3s4, reference) {
|
|
|
5660
5669
|
var tmp_1;
|
|
5661
5670
|
if (tmp3_elvis_lhs == null) {
|
|
5662
5671
|
// Inline function 'kotlin.error' call
|
|
5663
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5672
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.t31());
|
|
5664
5673
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5665
5674
|
} else {
|
|
5666
5675
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5673,7 +5682,7 @@ function exists_0(_this__u8e3s4) {
|
|
|
5673
5682
|
tmp = true;
|
|
5674
5683
|
} else {
|
|
5675
5684
|
if (!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, BooleanValue) : false) {
|
|
5676
|
-
tmp = _this__u8e3s4.
|
|
5685
|
+
tmp = _this__u8e3s4.o1();
|
|
5677
5686
|
} else {
|
|
5678
5687
|
if (!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, Reference) : false) {
|
|
5679
5688
|
tmp = true;
|
|
@@ -5690,7 +5699,7 @@ function exists_0(_this__u8e3s4) {
|
|
|
5690
5699
|
}
|
|
5691
5700
|
function isPrimitive_0(_this__u8e3s4) {
|
|
5692
5701
|
var tmp;
|
|
5693
|
-
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.
|
|
5702
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.e3_1) {
|
|
5694
5703
|
case 0:
|
|
5695
5704
|
tmp = true;
|
|
5696
5705
|
break;
|
|
@@ -5724,15 +5733,15 @@ function isPrimitive_0(_this__u8e3s4) {
|
|
|
5724
5733
|
function toPrimitive_1(_this__u8e3s4) {
|
|
5725
5734
|
var tmp0_subject = get_primitiveType_0(_this__u8e3s4);
|
|
5726
5735
|
var tmp;
|
|
5727
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
5736
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.e3_1) {
|
|
5728
5737
|
case 0:
|
|
5729
|
-
tmp = !(_this__u8e3s4.
|
|
5738
|
+
tmp = !(_this__u8e3s4.c32() == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.c32()))) : _this__u8e3s4.b32() === 'binary' ? Bytes_instance : new String_0(null);
|
|
5730
5739
|
break;
|
|
5731
5740
|
case 2:
|
|
5732
|
-
tmp = new Integer(_this__u8e3s4.
|
|
5741
|
+
tmp = new Integer(_this__u8e3s4.b32() === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5733
5742
|
break;
|
|
5734
5743
|
case 1:
|
|
5735
|
-
tmp = new Number_0(_this__u8e3s4.
|
|
5744
|
+
tmp = new Number_0(_this__u8e3s4.b32() === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5736
5745
|
break;
|
|
5737
5746
|
case 3:
|
|
5738
5747
|
tmp = Boolean_instance;
|
|
@@ -5746,28 +5755,28 @@ function toPrimitive_1(_this__u8e3s4) {
|
|
|
5746
5755
|
return tmp;
|
|
5747
5756
|
}
|
|
5748
5757
|
function toLinkInfo_0(_this__u8e3s4, name) {
|
|
5749
|
-
var tmp = _this__u8e3s4.
|
|
5750
|
-
var tmp_0 = _this__u8e3s4.
|
|
5758
|
+
var tmp = _this__u8e3s4.k32();
|
|
5759
|
+
var tmp_0 = _this__u8e3s4.j32();
|
|
5751
5760
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5752
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
5761
|
+
var tmp0_elvis_lhs = _this__u8e3s4.l1g();
|
|
5753
5762
|
// Inline function 'kotlin.collections.mapValues' call
|
|
5754
5763
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
5755
5764
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
5756
5765
|
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.b1()));
|
|
5757
5766
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
5758
|
-
var _iterator__ex2g4s = this_0.
|
|
5767
|
+
var _iterator__ex2g4s = this_0.m1().t();
|
|
5759
5768
|
while (_iterator__ex2g4s.u()) {
|
|
5760
5769
|
var element = _iterator__ex2g4s.v();
|
|
5761
|
-
var tmp_1 = element.
|
|
5762
|
-
var tmp$ret$5 = asLinkExpression(element.
|
|
5763
|
-
destination.
|
|
5770
|
+
var tmp_1 = element.n1();
|
|
5771
|
+
var tmp$ret$5 = asLinkExpression(element.o1());
|
|
5772
|
+
destination.v2(tmp_1, tmp$ret$5);
|
|
5764
5773
|
}
|
|
5765
5774
|
var tmp_2 = destination;
|
|
5766
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5775
|
+
var tmp0_safe_receiver = _this__u8e3s4.l32();
|
|
5767
5776
|
var tmp_3 = tmp0_safe_receiver == null ? null : asLinkExpression(tmp0_safe_receiver);
|
|
5768
|
-
var tmp_4 = _this__u8e3s4.
|
|
5769
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
5770
|
-
return new LinkInfo(name, tmp, tmp_0, tmp_2, tmp_3, tmp_4, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5777
|
+
var tmp_4 = _this__u8e3s4.u31();
|
|
5778
|
+
var tmp1_safe_receiver = _this__u8e3s4.m32();
|
|
5779
|
+
return new LinkInfo(name, tmp, tmp_0, tmp_2, tmp_3, tmp_4, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q32_1);
|
|
5771
5780
|
}
|
|
5772
5781
|
function resolve_5(_this__u8e3s4, linkOrReference) {
|
|
5773
5782
|
var tmp;
|
|
@@ -5785,13 +5794,13 @@ function resolve_5(_this__u8e3s4, linkOrReference) {
|
|
|
5785
5794
|
function get_required_0(_this__u8e3s4) {
|
|
5786
5795
|
var tmp;
|
|
5787
5796
|
if (_this__u8e3s4 instanceof OpenAPIV30Header) {
|
|
5788
|
-
tmp = _this__u8e3s4.
|
|
5797
|
+
tmp = _this__u8e3s4.f3k_1;
|
|
5789
5798
|
} else {
|
|
5790
5799
|
if (_this__u8e3s4 instanceof OpenAPIV31Header) {
|
|
5791
|
-
tmp = _this__u8e3s4.
|
|
5800
|
+
tmp = _this__u8e3s4.c3r_1;
|
|
5792
5801
|
} else {
|
|
5793
5802
|
if (_this__u8e3s4 instanceof OpenAPIV32Header) {
|
|
5794
|
-
tmp = _this__u8e3s4.
|
|
5803
|
+
tmp = _this__u8e3s4.h41_1;
|
|
5795
5804
|
} else {
|
|
5796
5805
|
tmp = null;
|
|
5797
5806
|
}
|
|
@@ -5802,13 +5811,13 @@ function get_required_0(_this__u8e3s4) {
|
|
|
5802
5811
|
function get_schema(_this__u8e3s4) {
|
|
5803
5812
|
var tmp;
|
|
5804
5813
|
if (_this__u8e3s4 instanceof OpenAPIV30Header) {
|
|
5805
|
-
tmp = _this__u8e3s4.
|
|
5814
|
+
tmp = _this__u8e3s4.l3k_1;
|
|
5806
5815
|
} else {
|
|
5807
5816
|
if (_this__u8e3s4 instanceof OpenAPIV31Header) {
|
|
5808
|
-
tmp = _this__u8e3s4.
|
|
5817
|
+
tmp = _this__u8e3s4.i3r_1;
|
|
5809
5818
|
} else {
|
|
5810
5819
|
if (_this__u8e3s4 instanceof OpenAPIV32Header) {
|
|
5811
|
-
tmp = _this__u8e3s4.
|
|
5820
|
+
tmp = _this__u8e3s4.n41_1;
|
|
5812
5821
|
} else {
|
|
5813
5822
|
tmp = null;
|
|
5814
5823
|
}
|
|
@@ -5817,9 +5826,9 @@ function get_schema(_this__u8e3s4) {
|
|
|
5817
5826
|
return tmp;
|
|
5818
5827
|
}
|
|
5819
5828
|
function resolveHeader_0(_this__u8e3s4, reference) {
|
|
5820
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5821
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5822
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5829
|
+
var tmp0_safe_receiver = _this__u8e3s4.q34();
|
|
5830
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f1f();
|
|
5831
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s2(getReference(reference));
|
|
5823
5832
|
var tmp;
|
|
5824
5833
|
if (tmp2_safe_receiver == null) {
|
|
5825
5834
|
tmp = null;
|
|
@@ -5841,7 +5850,7 @@ function resolveHeader_0(_this__u8e3s4, reference) {
|
|
|
5841
5850
|
var tmp_1;
|
|
5842
5851
|
if (tmp3_elvis_lhs == null) {
|
|
5843
5852
|
// Inline function 'kotlin.error' call
|
|
5844
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5853
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.t31());
|
|
5845
5854
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5846
5855
|
} else {
|
|
5847
5856
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5849,15 +5858,15 @@ function resolveHeader_0(_this__u8e3s4, reference) {
|
|
|
5849
5858
|
return tmp_1;
|
|
5850
5859
|
}
|
|
5851
5860
|
function toV30(_this__u8e3s4) {
|
|
5852
|
-
return valueOf_0(_this__u8e3s4.
|
|
5861
|
+
return valueOf_0(_this__u8e3s4.d3_1);
|
|
5853
5862
|
}
|
|
5854
5863
|
function toV30_0(_this__u8e3s4) {
|
|
5855
|
-
return valueOf_0(_this__u8e3s4.
|
|
5864
|
+
return valueOf_0(_this__u8e3s4.d3_1);
|
|
5856
5865
|
}
|
|
5857
5866
|
function get_oneOf(_this__u8e3s4) {
|
|
5858
5867
|
var tmp;
|
|
5859
5868
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5860
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
5869
|
+
var tmp1_safe_receiver = _this__u8e3s4.q3f_1;
|
|
5861
5870
|
var tmp_0;
|
|
5862
5871
|
if (tmp1_safe_receiver == null) {
|
|
5863
5872
|
tmp_0 = null;
|
|
@@ -5876,7 +5885,7 @@ function get_oneOf(_this__u8e3s4) {
|
|
|
5876
5885
|
tmp = tmp_0;
|
|
5877
5886
|
} else {
|
|
5878
5887
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5879
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
5888
|
+
var tmp2_safe_receiver = _this__u8e3s4.c3p_1;
|
|
5880
5889
|
var tmp_1;
|
|
5881
5890
|
if (tmp2_safe_receiver == null) {
|
|
5882
5891
|
tmp_1 = null;
|
|
@@ -5895,7 +5904,7 @@ function get_oneOf(_this__u8e3s4) {
|
|
|
5895
5904
|
tmp = tmp_1;
|
|
5896
5905
|
} else {
|
|
5897
5906
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5898
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
5907
|
+
var tmp3_safe_receiver = _this__u8e3s4.h3z_1;
|
|
5899
5908
|
var tmp_2;
|
|
5900
5909
|
if (tmp3_safe_receiver == null) {
|
|
5901
5910
|
tmp_2 = null;
|
|
@@ -5922,7 +5931,7 @@ function get_oneOf(_this__u8e3s4) {
|
|
|
5922
5931
|
function get_anyOf(_this__u8e3s4) {
|
|
5923
5932
|
var tmp;
|
|
5924
5933
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5925
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
5934
|
+
var tmp1_safe_receiver = _this__u8e3s4.r3f_1;
|
|
5926
5935
|
var tmp_0;
|
|
5927
5936
|
if (tmp1_safe_receiver == null) {
|
|
5928
5937
|
tmp_0 = null;
|
|
@@ -5941,7 +5950,7 @@ function get_anyOf(_this__u8e3s4) {
|
|
|
5941
5950
|
tmp = tmp_0;
|
|
5942
5951
|
} else {
|
|
5943
5952
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5944
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
5953
|
+
var tmp2_safe_receiver = _this__u8e3s4.d3p_1;
|
|
5945
5954
|
var tmp_1;
|
|
5946
5955
|
if (tmp2_safe_receiver == null) {
|
|
5947
5956
|
tmp_1 = null;
|
|
@@ -5960,7 +5969,7 @@ function get_anyOf(_this__u8e3s4) {
|
|
|
5960
5969
|
tmp = tmp_1;
|
|
5961
5970
|
} else {
|
|
5962
5971
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5963
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
5972
|
+
var tmp3_safe_receiver = _this__u8e3s4.i3z_1;
|
|
5964
5973
|
var tmp_2;
|
|
5965
5974
|
if (tmp3_safe_receiver == null) {
|
|
5966
5975
|
tmp_2 = null;
|
|
@@ -5990,7 +5999,7 @@ function resolve_6(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
5990
5999
|
tmp = schemaOrReferenceOrBoolean;
|
|
5991
6000
|
} else {
|
|
5992
6001
|
if (isInterface(schemaOrReferenceOrBoolean, Reference)) {
|
|
5993
|
-
tmp = resolveSchemaRef_0(_this__u8e3s4, schemaOrReferenceOrBoolean).
|
|
6002
|
+
tmp = resolveSchemaRef_0(_this__u8e3s4, schemaOrReferenceOrBoolean).gf_1;
|
|
5994
6003
|
} else {
|
|
5995
6004
|
if (isInterface(schemaOrReferenceOrBoolean, BooleanValue)) {
|
|
5996
6005
|
// Inline function 'kotlin.TODO' call
|
|
@@ -6005,29 +6014,29 @@ function resolve_6(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
6005
6014
|
}
|
|
6006
6015
|
function toField_4(_this__u8e3s4, schema, name) {
|
|
6007
6016
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
6008
|
-
var tmp0_elvis_lhs = schema.
|
|
6017
|
+
var tmp0_elvis_lhs = schema.z31();
|
|
6009
6018
|
// Inline function 'kotlin.collections.map' call
|
|
6010
6019
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
6011
6020
|
// Inline function 'kotlin.collections.mapTo' call
|
|
6012
6021
|
var destination = ArrayList_init_$Create$(this_0.b1());
|
|
6013
6022
|
// Inline function 'kotlin.collections.iterator' call
|
|
6014
|
-
var _iterator__ex2g4s = this_0.
|
|
6023
|
+
var _iterator__ex2g4s = this_0.m1().t();
|
|
6015
6024
|
while (_iterator__ex2g4s.u()) {
|
|
6016
6025
|
var item = _iterator__ex2g4s.v();
|
|
6017
6026
|
// Inline function 'kotlin.collections.component1' call
|
|
6018
|
-
var key = item.
|
|
6027
|
+
var key = item.n1();
|
|
6019
6028
|
// Inline function 'kotlin.collections.component2' call
|
|
6020
|
-
var value = item.
|
|
6021
|
-
var tmp0_safe_receiver = schema.
|
|
6022
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
6029
|
+
var value = item.o1();
|
|
6030
|
+
var tmp0_safe_receiver = schema.b1u();
|
|
6031
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i1(key);
|
|
6023
6032
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
6024
6033
|
var tmp;
|
|
6025
6034
|
if (isInterface(value, Schema)) {
|
|
6026
6035
|
// Inline function 'kotlin.let' call
|
|
6027
|
-
var reference = !(value.
|
|
6036
|
+
var reference = !(value.w31() == 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]));
|
|
6028
6037
|
var tmp1_identifier = new FieldIdentifier(key);
|
|
6029
|
-
var tmp2_annotations = toDescriptionAnnotationList(value.
|
|
6030
|
-
var tmp0_safe_receiver_0 = value.
|
|
6038
|
+
var tmp2_annotations = toDescriptionAnnotationList(value.u31());
|
|
6039
|
+
var tmp0_safe_receiver_0 = value.v31();
|
|
6031
6040
|
var tmp3_defaultValue = tmp0_safe_receiver_0 == null ? null : toDefaultValue(tmp0_safe_receiver_0, reference);
|
|
6032
6041
|
tmp = new Field(tmp2_annotations, tmp1_identifier, reference, tmp3_defaultValue);
|
|
6033
6042
|
} else {
|
|
@@ -6051,9 +6060,9 @@ function asLinkExpression(_this__u8e3s4) {
|
|
|
6051
6060
|
return tmp1_elvis_lhs == null ? toString(_this__u8e3s4) : tmp1_elvis_lhs;
|
|
6052
6061
|
}
|
|
6053
6062
|
function resolveLink(_this__u8e3s4, reference) {
|
|
6054
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
6055
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
6056
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
6063
|
+
var tmp0_safe_receiver = _this__u8e3s4.q34();
|
|
6064
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d32();
|
|
6065
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s2(getReference(reference));
|
|
6057
6066
|
var tmp;
|
|
6058
6067
|
if (tmp2_safe_receiver == null) {
|
|
6059
6068
|
tmp = null;
|
|
@@ -6075,7 +6084,7 @@ function resolveLink(_this__u8e3s4, reference) {
|
|
|
6075
6084
|
var tmp_1;
|
|
6076
6085
|
if (tmp3_elvis_lhs == null) {
|
|
6077
6086
|
// Inline function 'kotlin.error' call
|
|
6078
|
-
var message = 'Cannot resolve link ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
6087
|
+
var message = 'Cannot resolve link ref: ' + Ref__toString_impl_irb7zi(reference.t31());
|
|
6079
6088
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
6080
6089
|
} else {
|
|
6081
6090
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -6123,16 +6132,16 @@ function toCommon_1(_this__u8e3s4) {
|
|
|
6123
6132
|
}
|
|
6124
6133
|
function parseParameters$lambda_0($this_parseParameters) {
|
|
6125
6134
|
return function ($this$flatMapRequests) {
|
|
6126
|
-
var parameters = plus_0(resolveParameters_0($this_parseParameters, $this$flatMapRequests.
|
|
6127
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
6128
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
6135
|
+
var parameters = plus_0(resolveParameters_0($this_parseParameters, $this$flatMapRequests.c48_1.l1g()), resolveParameters_0($this_parseParameters, $this$flatMapRequests.e48_1.l1g()));
|
|
6136
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.e48_1);
|
|
6137
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.b48_1) + $this$flatMapRequests.d48_1.d3_1 : tmp0_elvis_lhs;
|
|
6129
6138
|
// Inline function 'kotlin.collections.flatMap' call
|
|
6130
6139
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
6131
6140
|
var destination = ArrayList_init_$Create$_0();
|
|
6132
6141
|
var _iterator__ex2g4s = parameters.t();
|
|
6133
6142
|
while (_iterator__ex2g4s.u()) {
|
|
6134
6143
|
var element = _iterator__ex2g4s.v();
|
|
6135
|
-
var tmp0_safe_receiver = element.
|
|
6144
|
+
var tmp0_safe_receiver = element.e32();
|
|
6136
6145
|
var tmp;
|
|
6137
6146
|
if (tmp0_safe_receiver == null) {
|
|
6138
6147
|
tmp = null;
|
|
@@ -6149,9 +6158,9 @@ function parseParameters$lambda_0($this_parseParameters) {
|
|
|
6149
6158
|
}
|
|
6150
6159
|
function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
6151
6160
|
return function ($this$flatMapRequests) {
|
|
6152
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
6153
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
6154
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
6161
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.e48_1);
|
|
6162
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.b48_1) + $this$flatMapRequests.d48_1.d3_1 : tmp0_elvis_lhs;
|
|
6163
|
+
var tmp1_safe_receiver = $this$flatMapRequests.e48_1.l32();
|
|
6155
6164
|
var tmp;
|
|
6156
6165
|
if (tmp1_safe_receiver == null) {
|
|
6157
6166
|
tmp = null;
|
|
@@ -6161,29 +6170,29 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
6161
6170
|
}
|
|
6162
6171
|
var tmp2_safe_receiver = tmp;
|
|
6163
6172
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
6164
|
-
var tmp0_elvis_lhs_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
6173
|
+
var tmp0_elvis_lhs_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.j1g();
|
|
6165
6174
|
// Inline function 'kotlin.collections.flatMap' call
|
|
6166
6175
|
var tmp0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
6167
6176
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
6168
6177
|
var destination = ArrayList_init_$Create$_0();
|
|
6169
6178
|
// Inline function 'kotlin.collections.iterator' call
|
|
6170
|
-
var _iterator__ex2g4s = tmp0.
|
|
6179
|
+
var _iterator__ex2g4s = tmp0.m1().t();
|
|
6171
6180
|
while (_iterator__ex2g4s.u()) {
|
|
6172
6181
|
var element = _iterator__ex2g4s.v();
|
|
6173
6182
|
// Inline function 'kotlin.collections.component2' call
|
|
6174
|
-
var mediaObject = element.
|
|
6175
|
-
var schema = mediaObject.
|
|
6183
|
+
var mediaObject = element.o1();
|
|
6184
|
+
var schema = mediaObject.e32();
|
|
6176
6185
|
var tmp_0;
|
|
6177
6186
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
6178
6187
|
var tmp0_subject = get_primitiveType_0(schema);
|
|
6179
6188
|
var tmp_1;
|
|
6180
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
6189
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.e3_1) {
|
|
6181
6190
|
case -1:
|
|
6182
6191
|
case 5:
|
|
6183
6192
|
tmp_1 = flatten_0($this_parseRequestBody, schema, className([name, 'RequestBody']));
|
|
6184
6193
|
break;
|
|
6185
6194
|
case 4:
|
|
6186
|
-
var tmp1_safe_receiver_0 = schema.
|
|
6195
|
+
var tmp1_safe_receiver_0 = schema.x31();
|
|
6187
6196
|
var tmp_2;
|
|
6188
6197
|
if (tmp1_safe_receiver_0 == null) {
|
|
6189
6198
|
tmp_2 = null;
|
|
@@ -6223,15 +6232,15 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
6223
6232
|
}
|
|
6224
6233
|
function parseResponseBody$lambda_0($this_parseResponseBody) {
|
|
6225
6234
|
return function ($this$flatMapResponses) {
|
|
6226
|
-
var tmp0_elvis_lhs = toName($this$flatMapResponses.
|
|
6227
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
6228
|
-
var res = $this$flatMapResponses.
|
|
6235
|
+
var tmp0_elvis_lhs = toName($this$flatMapResponses.i48_1);
|
|
6236
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.f48_1) + $this$flatMapResponses.h48_1.d3_1 : tmp0_elvis_lhs;
|
|
6237
|
+
var res = $this$flatMapResponses.k48_1;
|
|
6229
6238
|
var tmp;
|
|
6230
6239
|
if (isInterface(res, Reference)) {
|
|
6231
|
-
tmp = flatMapResponse($this_parseResponseBody, resolveResponse_0($this_parseResponseBody, res).
|
|
6240
|
+
tmp = flatMapResponse($this_parseResponseBody, resolveResponse_0($this_parseResponseBody, res).gf_1, name, $this$flatMapResponses.j48_1);
|
|
6232
6241
|
} else {
|
|
6233
6242
|
if (isInterface(res, Response_0)) {
|
|
6234
|
-
tmp = flatMapResponse($this_parseResponseBody, res, name, $this$flatMapResponses.
|
|
6243
|
+
tmp = flatMapResponse($this_parseResponseBody, res, name, $this$flatMapResponses.j48_1);
|
|
6235
6244
|
} else {
|
|
6236
6245
|
noWhenBranchMatchedException();
|
|
6237
6246
|
}
|