@flock/wirespec 0.22.6 → 0.22.8
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 +11 -11
- package/arrow-arrow-core.mjs +150 -150
- package/clikt-clikt-mordant.mjs +80 -80
- package/clikt-clikt.mjs +1488 -1488
- package/colormath-root-colormath.mjs +441 -441
- package/kotlin-kotlin-stdlib.mjs +1626 -1604
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10134 -10134
- package/kotlin-rgxgen.mjs +1802 -1802
- package/kotlinx-io-kotlinx-io-core.mjs +414 -414
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1816 -1816
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1570 -1570
- package/mordant-mordant.mjs +1280 -1280
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +6797 -6957
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +177 -177
- package/wirespec-src-compiler-emitters-kotlin.mjs +132 -132
- package/wirespec-src-compiler-emitters-python.mjs +166 -166
- package/wirespec-src-compiler-emitters-rust.mjs +1501 -2116
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +165 -165
- package/wirespec-src-compiler-emitters-typescript.mjs +214 -214
- package/wirespec-src-compiler-emitters-wirespec.mjs +178 -198
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +282 -282
- package/wirespec-src-converter-asyncapi.mjs +849 -767
- package/wirespec-src-converter-asyncapi.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +596 -595
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-common.mjs +18 -18
- package/wirespec-src-converter-graphql.mjs +1064 -1064
- package/wirespec-src-converter-openapi.mjs +774 -662
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-ide-lsp.mjs +1375 -1375
- package/wirespec-src-plugin-arguments.mjs +200 -190
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +112 -112
- package/wirespec-src-plugin-extensions.mjs +1034 -998
- package/wirespec-src-plugin-extensions.mjs.map +1 -1
- package/wirespec-src-plugin-npm.mjs +54 -54
- package/wirespec-src-tools-generator.mjs +32 -32
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
+
Companion_instance1ed4scihh5yo7 as Companion_instance,
|
|
3
|
+
RegExpiyof7szm5zfu as RegExp_0,
|
|
4
|
+
_RegExp___get_value__impl__7o7618olm3t8d4plkj as _RegExp___get_value__impl__7o7618,
|
|
5
|
+
String1czvr8pxnm6on as String_0,
|
|
2
6
|
Bytes3eoc50vgt1uem as Bytes,
|
|
3
7
|
Integer39lqx4uc63u28 as Integer,
|
|
4
8
|
Number1mui0heypwdhp as Number_0,
|
|
@@ -6,9 +10,10 @@ import {
|
|
|
6
10
|
Module3a9i9fqinyump as Module,
|
|
7
11
|
Root195zt6zclzd3o as Root,
|
|
8
12
|
get_entriesolr3gz3d9pa6 as get_entries,
|
|
9
|
-
Companion_instance27ueeez2qu1l as
|
|
13
|
+
Companion_instance27ueeez2qu1l as Companion_instance_0,
|
|
10
14
|
Dict3g7w5wia7rncj as Dict,
|
|
11
15
|
Iterable29qbzfup67wqp as Iterable,
|
|
16
|
+
_RegExp___init__impl__p22noo351zrimyjm8l3 as _RegExp___init__impl__p22noo,
|
|
12
17
|
Singleuujp8ld3qd71 as Single,
|
|
13
18
|
NullValue_instance1ek1wzdv4iv3a as NullValue_instance,
|
|
14
19
|
Endpoint1jsq06yr3xdhp as Endpoint,
|
|
@@ -17,9 +22,6 @@ import {
|
|
|
17
22
|
Dict1p2r7i6z7n6zc as Dict_0,
|
|
18
23
|
Annotation2u6gjfpokxaky as Annotation,
|
|
19
24
|
Refined1lkzc0dg6wey7 as Refined,
|
|
20
|
-
RegExpiyof7szm5zfu as RegExp_0,
|
|
21
|
-
_RegExp___get_value__impl__7o7618olm3t8d4plkj as _RegExp___get_value__impl__7o7618,
|
|
22
|
-
String1czvr8pxnm6on as String_0,
|
|
23
25
|
Bytes_instance1cqd1xiwjq94x as Bytes_instance,
|
|
24
26
|
Boolean_instance15wa4iqeayn6f as Boolean_instance,
|
|
25
27
|
Type12n1gx16iqtcu as Type,
|
|
@@ -50,13 +52,16 @@ import {
|
|
|
50
52
|
Response3emykwjtzgs52 as Response,
|
|
51
53
|
FieldIdentifier34k7iphndcnl0 as FieldIdentifier,
|
|
52
54
|
Field2nwjpxu9j2svq as Field,
|
|
53
|
-
_RegExp___init__impl__p22noo351zrimyjm8l3 as _RegExp___init__impl__p22noo,
|
|
54
55
|
Precision_P64_getInstance1kka8j79p47e9 as Precision_P64_getInstance,
|
|
55
56
|
Precision_P32_getInstance1wn9hty3a2xeu as Precision_P32_getInstance,
|
|
56
57
|
Model1nx3had6rojzt as Model,
|
|
57
58
|
Unionccsavx6nrdr2 as Union,
|
|
58
59
|
} from './wirespec-src-compiler-core.mjs';
|
|
59
60
|
import {
|
|
61
|
+
_Char___init__impl__6a9atx2gndcvjvc5pke as _Char___init__impl__6a9atx,
|
|
62
|
+
substringAfter1hku067gwr5ve as substringAfter,
|
|
63
|
+
substringBeforeLastqh7oeuvefdek as substringBeforeLast,
|
|
64
|
+
Regex_init_$Create$17zqsmfd15n8x as Regex_init_$Create$,
|
|
60
65
|
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
61
66
|
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
62
67
|
ArrayList_init_$Create$2byt5m5yn22yy as ArrayList_init_$Create$,
|
|
@@ -83,8 +88,8 @@ import {
|
|
|
83
88
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
84
89
|
getOrNull1go7ef9ldk0df as getOrNull,
|
|
85
90
|
IllegalStateException_init_$Create$1h4bcfod21ri0 as IllegalStateException_init_$Create$,
|
|
91
|
+
contains2el4s70rdq4ld as contains,
|
|
86
92
|
charCodeAt1yspne1d8erbm as charCodeAt,
|
|
87
|
-
_Char___init__impl__6a9atx2gndcvjvc5pke as _Char___init__impl__6a9atx,
|
|
88
93
|
substringiqarkczpya5m as substring,
|
|
89
94
|
isLetterOrDigit2kuxd9e198haf as isLetterOrDigit,
|
|
90
95
|
Char19o2r8palgjof as Char,
|
|
@@ -247,13 +252,49 @@ initMetadataForObject(OpenAPIV3Emitter, 'OpenAPIV3Emitter', VOID, VOID, [Emitter
|
|
|
247
252
|
initMetadataForObject(OpenAPIV3Parser, 'OpenAPIV3Parser');
|
|
248
253
|
//endregion
|
|
249
254
|
function emitFormat(_this__u8e3s4) {
|
|
255
|
+
var tmp0_safe_receiver = Companion_instance.b1g(_this__u8e3s4);
|
|
256
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.rt_1;
|
|
257
|
+
}
|
|
258
|
+
function emitPattern(_this__u8e3s4) {
|
|
259
|
+
// Inline function 'kotlin.takeIf' call
|
|
260
|
+
var this_0 = new RegExp_0(_this__u8e3s4);
|
|
261
|
+
var tmp;
|
|
262
|
+
var it = this_0.d1b_1;
|
|
263
|
+
if (Companion_instance.b1g(it) == null) {
|
|
264
|
+
tmp = this_0;
|
|
265
|
+
} else {
|
|
266
|
+
tmp = null;
|
|
267
|
+
}
|
|
268
|
+
var tmp_0 = tmp;
|
|
269
|
+
var tmp0_safe_receiver = tmp_0 == null ? null : tmp_0.d1b_1;
|
|
270
|
+
var tmp_1;
|
|
271
|
+
var tmp_2 = tmp0_safe_receiver;
|
|
272
|
+
if ((tmp_2 == null ? null : new RegExp_0(tmp_2)) == null) {
|
|
273
|
+
tmp_1 = null;
|
|
274
|
+
} else {
|
|
275
|
+
tmp_1 = _RegExp___get_value__impl__7o7618(tmp0_safe_receiver);
|
|
276
|
+
}
|
|
277
|
+
var tmp1_safe_receiver = tmp_1;
|
|
278
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : substringAfter(tmp1_safe_receiver, _Char___init__impl__6a9atx(47));
|
|
279
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : substringBeforeLast(tmp2_safe_receiver, _Char___init__impl__6a9atx(47));
|
|
280
|
+
var tmp_3;
|
|
281
|
+
if (tmp3_safe_receiver == null) {
|
|
282
|
+
tmp_3 = null;
|
|
283
|
+
} else {
|
|
284
|
+
// Inline function 'kotlin.let' call
|
|
285
|
+
var tmp_4 = Regex_init_$Create$('\\\\.');
|
|
286
|
+
tmp_3 = tmp_4.bd(tmp3_safe_receiver, emitPattern$lambda);
|
|
287
|
+
}
|
|
288
|
+
return tmp_3;
|
|
289
|
+
}
|
|
290
|
+
function emitFormat_0(_this__u8e3s4) {
|
|
250
291
|
var tmp;
|
|
251
292
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
252
|
-
var t = _this__u8e3s4.
|
|
293
|
+
var t = _this__u8e3s4.d1a_1;
|
|
253
294
|
var tmp_0;
|
|
254
295
|
if (t instanceof Number_0) {
|
|
255
296
|
var tmp_1;
|
|
256
|
-
switch (t.
|
|
297
|
+
switch (t.g1a_1.f3_1) {
|
|
257
298
|
case 0:
|
|
258
299
|
tmp_1 = 'float';
|
|
259
300
|
break;
|
|
@@ -268,7 +309,7 @@ function emitFormat(_this__u8e3s4) {
|
|
|
268
309
|
} else {
|
|
269
310
|
if (t instanceof Integer) {
|
|
270
311
|
var tmp_2;
|
|
271
|
-
switch (t.
|
|
312
|
+
switch (t.l1a_1.f3_1) {
|
|
272
313
|
case 0:
|
|
273
314
|
tmp_2 = 'int32';
|
|
274
315
|
break;
|
|
@@ -284,7 +325,19 @@ function emitFormat(_this__u8e3s4) {
|
|
|
284
325
|
if (t instanceof Bytes) {
|
|
285
326
|
tmp_0 = 'binary';
|
|
286
327
|
} else {
|
|
287
|
-
|
|
328
|
+
if (t instanceof String_0) {
|
|
329
|
+
var tmp3_safe_receiver = t.o1a_1;
|
|
330
|
+
var tmp_3;
|
|
331
|
+
var tmp_4 = tmp3_safe_receiver;
|
|
332
|
+
if ((tmp_4 == null ? null : new RegExp_0(tmp_4)) == null) {
|
|
333
|
+
tmp_3 = null;
|
|
334
|
+
} else {
|
|
335
|
+
tmp_3 = emitFormat(tmp3_safe_receiver);
|
|
336
|
+
}
|
|
337
|
+
tmp_0 = tmp_3;
|
|
338
|
+
} else {
|
|
339
|
+
tmp_0 = null;
|
|
340
|
+
}
|
|
288
341
|
}
|
|
289
342
|
}
|
|
290
343
|
}
|
|
@@ -294,9 +347,12 @@ function emitFormat(_this__u8e3s4) {
|
|
|
294
347
|
}
|
|
295
348
|
return tmp;
|
|
296
349
|
}
|
|
350
|
+
function emitPattern$lambda(it) {
|
|
351
|
+
return it.o1() === '\\/' ? '/' : it.o1();
|
|
352
|
+
}
|
|
297
353
|
function parseOpenApi(moduleContent, openApiParser) {
|
|
298
354
|
// Inline function 'kotlin.let' call
|
|
299
|
-
var statements = openApiParser(moduleContent.
|
|
355
|
+
var statements = openApiParser(moduleContent.eo_1).en_1;
|
|
300
356
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
301
357
|
// Inline function 'kotlin.collections.map' call
|
|
302
358
|
var this_0 = _NonEmptyList___get_all__impl__pmf509(statements);
|
|
@@ -309,7 +365,7 @@ function parseOpenApi(moduleContent, openApiParser) {
|
|
|
309
365
|
destination.x(tmp$ret$5);
|
|
310
366
|
}
|
|
311
367
|
var tmp$ret$0 = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
312
|
-
return new Root(nonEmptyListOf(new Module(moduleContent.
|
|
368
|
+
return new Root(nonEmptyListOf(new Module(moduleContent.do_1, tmp$ret$0), []));
|
|
313
369
|
}
|
|
314
370
|
function jsonDefault(strict) {
|
|
315
371
|
return Json(VOID, jsonDefault$lambda(strict));
|
|
@@ -323,42 +379,42 @@ function toOperationList(_this__u8e3s4) {
|
|
|
323
379
|
while (_iterator__ex2g4s.u()) {
|
|
324
380
|
var element = _iterator__ex2g4s.v();
|
|
325
381
|
var tmp;
|
|
326
|
-
switch (element.
|
|
382
|
+
switch (element.f3_1) {
|
|
327
383
|
case 0:
|
|
328
|
-
tmp = _this__u8e3s4.
|
|
384
|
+
tmp = _this__u8e3s4.b3f();
|
|
329
385
|
break;
|
|
330
386
|
case 1:
|
|
331
|
-
tmp = _this__u8e3s4.
|
|
387
|
+
tmp = _this__u8e3s4.d3f();
|
|
332
388
|
break;
|
|
333
389
|
case 2:
|
|
334
|
-
tmp = _this__u8e3s4.
|
|
390
|
+
tmp = _this__u8e3s4.c3f();
|
|
335
391
|
break;
|
|
336
392
|
case 3:
|
|
337
|
-
tmp = _this__u8e3s4.
|
|
393
|
+
tmp = _this__u8e3s4.e3f();
|
|
338
394
|
break;
|
|
339
395
|
case 4:
|
|
340
|
-
tmp = _this__u8e3s4.
|
|
396
|
+
tmp = _this__u8e3s4.f3f();
|
|
341
397
|
break;
|
|
342
398
|
case 5:
|
|
343
|
-
tmp = _this__u8e3s4.
|
|
399
|
+
tmp = _this__u8e3s4.g3f();
|
|
344
400
|
break;
|
|
345
401
|
case 6:
|
|
346
|
-
tmp = _this__u8e3s4.
|
|
402
|
+
tmp = _this__u8e3s4.h3f();
|
|
347
403
|
break;
|
|
348
404
|
case 7:
|
|
349
|
-
tmp = _this__u8e3s4.
|
|
405
|
+
tmp = _this__u8e3s4.i3f();
|
|
350
406
|
break;
|
|
351
407
|
default:
|
|
352
408
|
noWhenBranchMatchedException();
|
|
353
409
|
break;
|
|
354
410
|
}
|
|
355
411
|
var tmp$ret$2 = tmp;
|
|
356
|
-
result.
|
|
412
|
+
result.w2(element, tmp$ret$2);
|
|
357
413
|
}
|
|
358
414
|
return filterNotNullValues(result);
|
|
359
415
|
}
|
|
360
416
|
function toName(_this__u8e3s4) {
|
|
361
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
417
|
+
var tmp0_safe_receiver = _this__u8e3s4.g3b();
|
|
362
418
|
var tmp;
|
|
363
419
|
if (tmp0_safe_receiver == null) {
|
|
364
420
|
tmp = null;
|
|
@@ -395,7 +451,7 @@ function sanitize(_this__u8e3s4) {
|
|
|
395
451
|
var item = _iterator__ex2g4s.v();
|
|
396
452
|
var _unary__edvuaz = index;
|
|
397
453
|
index = _unary__edvuaz + 1 | 0;
|
|
398
|
-
var tmp$ret$2 = checkIndexOverflow(_unary__edvuaz) > 0 ?
|
|
454
|
+
var tmp$ret$2 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_0.zr(item) : item;
|
|
399
455
|
destination.x(tmp$ret$2);
|
|
400
456
|
}
|
|
401
457
|
var tmp = asSequence(joinToString(destination, ''));
|
|
@@ -403,7 +459,7 @@ function sanitize(_this__u8e3s4) {
|
|
|
403
459
|
}
|
|
404
460
|
function flatMapRequests(_this__u8e3s4, f) {
|
|
405
461
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
406
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
462
|
+
var tmp0_elvis_lhs = _this__u8e3s4.g3d();
|
|
407
463
|
// Inline function 'kotlin.collections.flatMap' call
|
|
408
464
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
409
465
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -413,7 +469,7 @@ function flatMapRequests(_this__u8e3s4, f) {
|
|
|
413
469
|
while (_iterator__ex2g4s.u()) {
|
|
414
470
|
var element = _iterator__ex2g4s.v();
|
|
415
471
|
// Inline function 'kotlin.collections.component1' call
|
|
416
|
-
var path = element.n1().
|
|
472
|
+
var path = element.n1().g3a_1;
|
|
417
473
|
// Inline function 'kotlin.collections.component2' call
|
|
418
474
|
var pathItem = element.o1();
|
|
419
475
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -446,19 +502,19 @@ function flatMapRequests(_this__u8e3s4, f) {
|
|
|
446
502
|
return destination_1;
|
|
447
503
|
}
|
|
448
504
|
function FlattenRequest(path, pathItem, method, operation) {
|
|
449
|
-
this.
|
|
450
|
-
this.
|
|
451
|
-
this.
|
|
452
|
-
this.
|
|
505
|
+
this.x4g_1 = path;
|
|
506
|
+
this.y4g_1 = pathItem;
|
|
507
|
+
this.z4g_1 = method;
|
|
508
|
+
this.a4h_1 = operation;
|
|
453
509
|
}
|
|
454
510
|
protoOf(FlattenRequest).toString = function () {
|
|
455
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
511
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.x4g_1) + ', pathItem=' + toString(this.y4g_1) + ', method=' + this.z4g_1.toString() + ', operation=' + toString(this.a4h_1) + ')';
|
|
456
512
|
};
|
|
457
513
|
protoOf(FlattenRequest).hashCode = function () {
|
|
458
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
459
|
-
result = imul(result, 31) + hashCode(this.
|
|
460
|
-
result = imul(result, 31) + this.
|
|
461
|
-
result = imul(result, 31) + hashCode(this.
|
|
514
|
+
var result = Path__hashCode_impl_go73kd(this.x4g_1);
|
|
515
|
+
result = imul(result, 31) + hashCode(this.y4g_1) | 0;
|
|
516
|
+
result = imul(result, 31) + this.z4g_1.hashCode() | 0;
|
|
517
|
+
result = imul(result, 31) + hashCode(this.a4h_1) | 0;
|
|
462
518
|
return result;
|
|
463
519
|
};
|
|
464
520
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -466,19 +522,19 @@ protoOf(FlattenRequest).equals = function (other) {
|
|
|
466
522
|
return true;
|
|
467
523
|
if (!(other instanceof FlattenRequest))
|
|
468
524
|
return false;
|
|
469
|
-
if (!(this.
|
|
525
|
+
if (!(this.x4g_1 === other.x4g_1))
|
|
470
526
|
return false;
|
|
471
|
-
if (!equals(this.
|
|
527
|
+
if (!equals(this.y4g_1, other.y4g_1))
|
|
472
528
|
return false;
|
|
473
|
-
if (!this.
|
|
529
|
+
if (!this.z4g_1.equals(other.z4g_1))
|
|
474
530
|
return false;
|
|
475
|
-
if (!equals(this.
|
|
531
|
+
if (!equals(this.a4h_1, other.a4h_1))
|
|
476
532
|
return false;
|
|
477
533
|
return true;
|
|
478
534
|
};
|
|
479
535
|
function flatMapResponses(_this__u8e3s4, f) {
|
|
480
536
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
481
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
537
|
+
var tmp0_elvis_lhs = _this__u8e3s4.g3d();
|
|
482
538
|
// Inline function 'kotlin.collections.flatMap' call
|
|
483
539
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
484
540
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -488,7 +544,7 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
488
544
|
while (_iterator__ex2g4s.u()) {
|
|
489
545
|
var element = _iterator__ex2g4s.v();
|
|
490
546
|
// Inline function 'kotlin.collections.component1' call
|
|
491
|
-
var path = element.n1().
|
|
547
|
+
var path = element.n1().g3a_1;
|
|
492
548
|
// Inline function 'kotlin.collections.component2' call
|
|
493
549
|
var pathItem = element.o1();
|
|
494
550
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -504,7 +560,7 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
504
560
|
// Inline function 'kotlin.collections.component2' call
|
|
505
561
|
var operation = element_0.o1();
|
|
506
562
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
507
|
-
var tmp0_elvis_lhs_0 = operation.
|
|
563
|
+
var tmp0_elvis_lhs_0 = operation.k1h();
|
|
508
564
|
// Inline function 'kotlin.collections.map' call
|
|
509
565
|
var this_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
510
566
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -514,7 +570,7 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
514
570
|
while (_iterator__ex2g4s_1.u()) {
|
|
515
571
|
var item = _iterator__ex2g4s_1.v();
|
|
516
572
|
// Inline function 'kotlin.collections.component1' call
|
|
517
|
-
var statusCode = item.n1().
|
|
573
|
+
var statusCode = item.n1().k3a_1;
|
|
518
574
|
// Inline function 'kotlin.collections.component2' call
|
|
519
575
|
var response = item.o1();
|
|
520
576
|
var tmp$ret$17 = new FlattenResponse(path, pathItem, method, operation, statusCode, response);
|
|
@@ -538,23 +594,23 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
538
594
|
return destination_2;
|
|
539
595
|
}
|
|
540
596
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response) {
|
|
541
|
-
this.
|
|
542
|
-
this.
|
|
543
|
-
this.
|
|
544
|
-
this.
|
|
545
|
-
this.
|
|
546
|
-
this.
|
|
597
|
+
this.b4h_1 = path;
|
|
598
|
+
this.c4h_1 = pathItem;
|
|
599
|
+
this.d4h_1 = method;
|
|
600
|
+
this.e4h_1 = operation;
|
|
601
|
+
this.f4h_1 = statusCode;
|
|
602
|
+
this.g4h_1 = response;
|
|
547
603
|
}
|
|
548
604
|
protoOf(FlattenResponse).toString = function () {
|
|
549
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
605
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.b4h_1) + ', pathItem=' + toString(this.c4h_1) + ', method=' + this.d4h_1.toString() + ', operation=' + toString(this.e4h_1) + ', statusCode=' + StatusCode__toString_impl_6caewy(this.f4h_1) + ', response=' + toString(this.g4h_1) + ')';
|
|
550
606
|
};
|
|
551
607
|
protoOf(FlattenResponse).hashCode = function () {
|
|
552
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
553
|
-
result = imul(result, 31) + hashCode(this.
|
|
554
|
-
result = imul(result, 31) + this.
|
|
555
|
-
result = imul(result, 31) + hashCode(this.
|
|
556
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
557
|
-
result = imul(result, 31) + hashCode(this.
|
|
608
|
+
var result = Path__hashCode_impl_go73kd(this.b4h_1);
|
|
609
|
+
result = imul(result, 31) + hashCode(this.c4h_1) | 0;
|
|
610
|
+
result = imul(result, 31) + this.d4h_1.hashCode() | 0;
|
|
611
|
+
result = imul(result, 31) + hashCode(this.e4h_1) | 0;
|
|
612
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.f4h_1) | 0;
|
|
613
|
+
result = imul(result, 31) + hashCode(this.g4h_1) | 0;
|
|
558
614
|
return result;
|
|
559
615
|
};
|
|
560
616
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -562,17 +618,17 @@ protoOf(FlattenResponse).equals = function (other) {
|
|
|
562
618
|
return true;
|
|
563
619
|
if (!(other instanceof FlattenResponse))
|
|
564
620
|
return false;
|
|
565
|
-
if (!(this.
|
|
621
|
+
if (!(this.b4h_1 === other.b4h_1))
|
|
566
622
|
return false;
|
|
567
|
-
if (!equals(this.
|
|
623
|
+
if (!equals(this.c4h_1, other.c4h_1))
|
|
568
624
|
return false;
|
|
569
|
-
if (!this.
|
|
625
|
+
if (!this.d4h_1.equals(other.d4h_1))
|
|
570
626
|
return false;
|
|
571
|
-
if (!equals(this.
|
|
627
|
+
if (!equals(this.e4h_1, other.e4h_1))
|
|
572
628
|
return false;
|
|
573
|
-
if (!(this.
|
|
629
|
+
if (!(this.f4h_1 === other.f4h_1))
|
|
574
630
|
return false;
|
|
575
|
-
if (!equals(this.
|
|
631
|
+
if (!equals(this.g4h_1, other.g4h_1))
|
|
576
632
|
return false;
|
|
577
633
|
return true;
|
|
578
634
|
};
|
|
@@ -581,7 +637,7 @@ function toDict(_this__u8e3s4, isNullable) {
|
|
|
581
637
|
}
|
|
582
638
|
function getReference(_this__u8e3s4) {
|
|
583
639
|
// Inline function 'kotlin.let' call
|
|
584
|
-
var it = split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
640
|
+
var it = split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.p3a()), ['/']);
|
|
585
641
|
var tmp;
|
|
586
642
|
if (_this__u8e3s4 instanceof OpenAPIV20Reference) {
|
|
587
643
|
tmp = getOrNull(it, 2);
|
|
@@ -592,7 +648,7 @@ function getReference(_this__u8e3s4) {
|
|
|
592
648
|
var tmp_0;
|
|
593
649
|
if (tmp0_elvis_lhs == null) {
|
|
594
650
|
// Inline function 'kotlin.error' call
|
|
595
|
-
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
651
|
+
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe(_this__u8e3s4.p3a());
|
|
596
652
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
597
653
|
} else {
|
|
598
654
|
tmp_0 = tmp0_elvis_lhs;
|
|
@@ -602,13 +658,57 @@ function getReference(_this__u8e3s4) {
|
|
|
602
658
|
function toIterable(_this__u8e3s4, isNullable) {
|
|
603
659
|
return new Iterable(_this__u8e3s4, isNullable);
|
|
604
660
|
}
|
|
661
|
+
function stringType(pattern, format) {
|
|
662
|
+
var tmp;
|
|
663
|
+
if (pattern == null) {
|
|
664
|
+
tmp = null;
|
|
665
|
+
} else {
|
|
666
|
+
// Inline function 'kotlin.takeIf' call
|
|
667
|
+
var tmp_0;
|
|
668
|
+
if (!contains(pattern, _Char___init__impl__6a9atx(10)) && !contains(pattern, _Char___init__impl__6a9atx(13))) {
|
|
669
|
+
tmp_0 = pattern;
|
|
670
|
+
} else {
|
|
671
|
+
tmp_0 = null;
|
|
672
|
+
}
|
|
673
|
+
tmp = tmp_0;
|
|
674
|
+
}
|
|
675
|
+
var tmp1_safe_receiver = tmp;
|
|
676
|
+
var tmp_1;
|
|
677
|
+
if (tmp1_safe_receiver == null) {
|
|
678
|
+
tmp_1 = null;
|
|
679
|
+
} else {
|
|
680
|
+
// Inline function 'kotlin.let' call
|
|
681
|
+
tmp_1 = _RegExp___init__impl__p22noo('/' + escapeSlashes(tmp1_safe_receiver) + '/');
|
|
682
|
+
}
|
|
683
|
+
var tmp2_elvis_lhs = tmp_1;
|
|
684
|
+
var tmp_2;
|
|
685
|
+
var tmp_3 = tmp2_elvis_lhs;
|
|
686
|
+
if ((tmp_3 == null ? null : new RegExp_0(tmp_3)) == null) {
|
|
687
|
+
var tmp_4;
|
|
688
|
+
if (format == null) {
|
|
689
|
+
tmp_4 = null;
|
|
690
|
+
} else {
|
|
691
|
+
// Inline function 'kotlin.let' call
|
|
692
|
+
tmp_4 = Companion_instance.au(format);
|
|
693
|
+
}
|
|
694
|
+
var tmp4_safe_receiver = tmp_4;
|
|
695
|
+
tmp_2 = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.st_1;
|
|
696
|
+
} else {
|
|
697
|
+
tmp_2 = tmp2_elvis_lhs;
|
|
698
|
+
}
|
|
699
|
+
return new String_0(tmp_2);
|
|
700
|
+
}
|
|
605
701
|
function isParam(_this__u8e3s4) {
|
|
606
702
|
return charCodeAt(_this__u8e3s4, 0) === _Char___init__impl__6a9atx(123) && charCodeAt(_this__u8e3s4, _this__u8e3s4.length - 1 | 0) === _Char___init__impl__6a9atx(125);
|
|
607
703
|
}
|
|
704
|
+
function escapeSlashes(_this__u8e3s4) {
|
|
705
|
+
var tmp = Regex_init_$Create$('\\\\.|/');
|
|
706
|
+
return tmp.bd(_this__u8e3s4, escapeSlashes$lambda);
|
|
707
|
+
}
|
|
608
708
|
function jsonDefault$lambda($strict) {
|
|
609
709
|
return function ($this$Json) {
|
|
610
|
-
$this$Json.
|
|
611
|
-
$this$Json.
|
|
710
|
+
$this$Json.o2n_1 = true;
|
|
711
|
+
$this$Json.m2n_1 = !$strict;
|
|
612
712
|
return Unit_instance;
|
|
613
713
|
};
|
|
614
714
|
}
|
|
@@ -630,6 +730,9 @@ function toName$lambda(it) {
|
|
|
630
730
|
function sanitize$lambda(it) {
|
|
631
731
|
return isLetterOrDigit(it.k1_1) || listOf(new Char(_Char___init__impl__6a9atx(95))).i1(it);
|
|
632
732
|
}
|
|
733
|
+
function escapeSlashes$lambda(it) {
|
|
734
|
+
return it.o1() === '/' ? '\\/' : it.o1();
|
|
735
|
+
}
|
|
633
736
|
function get_json() {
|
|
634
737
|
_init_properties_Utils_kt__jo07cx();
|
|
635
738
|
return json;
|
|
@@ -644,7 +747,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
644
747
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
645
748
|
while (_iterator__ex2g4s.u()) {
|
|
646
749
|
var element = _iterator__ex2g4s.v();
|
|
647
|
-
if (element.
|
|
750
|
+
if (element.q1a_1 === 'Description') {
|
|
648
751
|
tmp$ret$1 = element;
|
|
649
752
|
break $l$block;
|
|
650
753
|
}
|
|
@@ -652,7 +755,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
652
755
|
tmp$ret$1 = null;
|
|
653
756
|
}
|
|
654
757
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
655
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
758
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r1a_1;
|
|
656
759
|
var tmp;
|
|
657
760
|
if (tmp1_safe_receiver == null) {
|
|
658
761
|
tmp = null;
|
|
@@ -664,7 +767,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
664
767
|
var _iterator__ex2g4s_0 = tmp1_safe_receiver.t();
|
|
665
768
|
while (_iterator__ex2g4s_0.u()) {
|
|
666
769
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
667
|
-
if (element_0.
|
|
770
|
+
if (element_0.s1a_1 === 'default') {
|
|
668
771
|
tmp$ret$4 = element_0;
|
|
669
772
|
break $l$block_0;
|
|
670
773
|
}
|
|
@@ -674,7 +777,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
674
777
|
tmp = tmp$ret$4;
|
|
675
778
|
}
|
|
676
779
|
var tmp2_safe_receiver = tmp;
|
|
677
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
780
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.t1a_1;
|
|
678
781
|
var tmp_0;
|
|
679
782
|
if (tmp3_safe_receiver == null) {
|
|
680
783
|
tmp_0 = null;
|
|
@@ -683,7 +786,7 @@ function findDescription(_this__u8e3s4) {
|
|
|
683
786
|
tmp_0 = tmp3_safe_receiver instanceof Single ? tmp3_safe_receiver : null;
|
|
684
787
|
}
|
|
685
788
|
var tmp4_safe_receiver = tmp_0;
|
|
686
|
-
return tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
789
|
+
return tmp4_safe_receiver == null ? null : tmp4_safe_receiver.w1a_1;
|
|
687
790
|
}
|
|
688
791
|
function toSchemaDefault(_this__u8e3s4) {
|
|
689
792
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -721,7 +824,7 @@ function resolveEndpointNameCollisions(_this__u8e3s4) {
|
|
|
721
824
|
var _iterator__ex2g4s_0 = destination.t();
|
|
722
825
|
while (_iterator__ex2g4s_0.u()) {
|
|
723
826
|
var item = _iterator__ex2g4s_0.v();
|
|
724
|
-
var tmp$ret$5 = item.
|
|
827
|
+
var tmp$ret$5 = item.es().o1();
|
|
725
828
|
destination_0.x(tmp$ret$5);
|
|
726
829
|
}
|
|
727
830
|
var nonEndpointNames = toSet(destination_0);
|
|
@@ -734,12 +837,12 @@ function resolveEndpointNameCollisions(_this__u8e3s4) {
|
|
|
734
837
|
var tmp;
|
|
735
838
|
var tmp_0;
|
|
736
839
|
if (item_0 instanceof Endpoint) {
|
|
737
|
-
tmp_0 = nonEndpointNames.i1(item_0.
|
|
840
|
+
tmp_0 = nonEndpointNames.i1(item_0.gr_1.o1());
|
|
738
841
|
} else {
|
|
739
842
|
tmp_0 = false;
|
|
740
843
|
}
|
|
741
844
|
if (tmp_0) {
|
|
742
|
-
tmp = item_0.
|
|
845
|
+
tmp = item_0.r1e(VOID, VOID, new DefinitionIdentifier(item_0.gr_1.o1() + 'Endpoint'));
|
|
743
846
|
} else {
|
|
744
847
|
tmp = item_0;
|
|
745
848
|
}
|
|
@@ -786,25 +889,25 @@ function toDescriptionAnnotationList(_this__u8e3s4) {
|
|
|
786
889
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
787
890
|
}
|
|
788
891
|
function LinkInfo(name, operationId, operationRef, parameters, requestBody, description, serverUrl) {
|
|
789
|
-
this.
|
|
790
|
-
this.
|
|
791
|
-
this.
|
|
792
|
-
this.
|
|
793
|
-
this.
|
|
794
|
-
this.
|
|
795
|
-
this.
|
|
892
|
+
this.h4h_1 = name;
|
|
893
|
+
this.i4h_1 = operationId;
|
|
894
|
+
this.j4h_1 = operationRef;
|
|
895
|
+
this.k4h_1 = parameters;
|
|
896
|
+
this.l4h_1 = requestBody;
|
|
897
|
+
this.m4h_1 = description;
|
|
898
|
+
this.n4h_1 = serverUrl;
|
|
796
899
|
}
|
|
797
900
|
protoOf(LinkInfo).toString = function () {
|
|
798
|
-
return 'LinkInfo(name=' + this.
|
|
901
|
+
return 'LinkInfo(name=' + this.h4h_1 + ', operationId=' + this.i4h_1 + ', operationRef=' + this.j4h_1 + ', parameters=' + toString(this.k4h_1) + ', requestBody=' + this.l4h_1 + ', description=' + this.m4h_1 + ', serverUrl=' + this.n4h_1 + ')';
|
|
799
902
|
};
|
|
800
903
|
protoOf(LinkInfo).hashCode = function () {
|
|
801
|
-
var result = getStringHashCode(this.
|
|
802
|
-
result = imul(result, 31) + (this.
|
|
803
|
-
result = imul(result, 31) + (this.
|
|
804
|
-
result = imul(result, 31) + hashCode(this.
|
|
805
|
-
result = imul(result, 31) + (this.
|
|
806
|
-
result = imul(result, 31) + (this.
|
|
807
|
-
result = imul(result, 31) + (this.
|
|
904
|
+
var result = getStringHashCode(this.h4h_1);
|
|
905
|
+
result = imul(result, 31) + (this.i4h_1 == null ? 0 : getStringHashCode(this.i4h_1)) | 0;
|
|
906
|
+
result = imul(result, 31) + (this.j4h_1 == null ? 0 : getStringHashCode(this.j4h_1)) | 0;
|
|
907
|
+
result = imul(result, 31) + hashCode(this.k4h_1) | 0;
|
|
908
|
+
result = imul(result, 31) + (this.l4h_1 == null ? 0 : getStringHashCode(this.l4h_1)) | 0;
|
|
909
|
+
result = imul(result, 31) + (this.m4h_1 == null ? 0 : getStringHashCode(this.m4h_1)) | 0;
|
|
910
|
+
result = imul(result, 31) + (this.n4h_1 == null ? 0 : getStringHashCode(this.n4h_1)) | 0;
|
|
808
911
|
return result;
|
|
809
912
|
};
|
|
810
913
|
protoOf(LinkInfo).equals = function (other) {
|
|
@@ -812,19 +915,19 @@ protoOf(LinkInfo).equals = function (other) {
|
|
|
812
915
|
return true;
|
|
813
916
|
if (!(other instanceof LinkInfo))
|
|
814
917
|
return false;
|
|
815
|
-
if (!(this.
|
|
918
|
+
if (!(this.h4h_1 === other.h4h_1))
|
|
816
919
|
return false;
|
|
817
|
-
if (!(this.
|
|
920
|
+
if (!(this.i4h_1 == other.i4h_1))
|
|
818
921
|
return false;
|
|
819
|
-
if (!(this.
|
|
922
|
+
if (!(this.j4h_1 == other.j4h_1))
|
|
820
923
|
return false;
|
|
821
|
-
if (!equals(this.
|
|
924
|
+
if (!equals(this.k4h_1, other.k4h_1))
|
|
822
925
|
return false;
|
|
823
|
-
if (!(this.
|
|
926
|
+
if (!(this.l4h_1 == other.l4h_1))
|
|
824
927
|
return false;
|
|
825
|
-
if (!(this.
|
|
928
|
+
if (!(this.m4h_1 == other.m4h_1))
|
|
826
929
|
return false;
|
|
827
|
-
if (!(this.
|
|
930
|
+
if (!(this.n4h_1 == other.n4h_1))
|
|
828
931
|
return false;
|
|
829
932
|
return true;
|
|
830
933
|
};
|
|
@@ -836,7 +939,7 @@ function findLinks(_this__u8e3s4) {
|
|
|
836
939
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
837
940
|
while (_iterator__ex2g4s.u()) {
|
|
838
941
|
var element = _iterator__ex2g4s.v();
|
|
839
|
-
if (element.
|
|
942
|
+
if (element.q1a_1 === 'Link') {
|
|
840
943
|
destination.x(element);
|
|
841
944
|
}
|
|
842
945
|
}
|
|
@@ -859,8 +962,8 @@ function findLinks(_this__u8e3s4) {
|
|
|
859
962
|
}
|
|
860
963
|
function toAnnotation(_this__u8e3s4) {
|
|
861
964
|
_init_properties_Utils_kt__jo07cx();
|
|
862
|
-
var params = mutableListOf([new Parameter('default', new Single(_this__u8e3s4.
|
|
863
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
965
|
+
var params = mutableListOf([new Parameter('default', new Single(_this__u8e3s4.h4h_1))]);
|
|
966
|
+
var tmp0_safe_receiver = _this__u8e3s4.i4h_1;
|
|
864
967
|
if (tmp0_safe_receiver == null)
|
|
865
968
|
null;
|
|
866
969
|
else {
|
|
@@ -869,7 +972,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
869
972
|
var element = new Parameter('operationId', new Single(tmp0_safe_receiver));
|
|
870
973
|
params.x(element);
|
|
871
974
|
}
|
|
872
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
975
|
+
var tmp1_safe_receiver = _this__u8e3s4.j4h_1;
|
|
873
976
|
if (tmp1_safe_receiver == null)
|
|
874
977
|
null;
|
|
875
978
|
else {
|
|
@@ -879,9 +982,9 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
879
982
|
params.x(element_0);
|
|
880
983
|
}
|
|
881
984
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
882
|
-
if (!_this__u8e3s4.
|
|
985
|
+
if (!_this__u8e3s4.k4h_1.r()) {
|
|
883
986
|
// Inline function 'kotlin.collections.map' call
|
|
884
|
-
var this_0 = _this__u8e3s4.
|
|
987
|
+
var this_0 = _this__u8e3s4.k4h_1;
|
|
885
988
|
// Inline function 'kotlin.collections.mapTo' call
|
|
886
989
|
var destination = ArrayList_init_$Create$(this_0.c1());
|
|
887
990
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -899,7 +1002,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
899
1002
|
var element_1 = new Parameter('parameters', new Dict_0(destination));
|
|
900
1003
|
params.x(element_1);
|
|
901
1004
|
}
|
|
902
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
1005
|
+
var tmp2_safe_receiver = _this__u8e3s4.l4h_1;
|
|
903
1006
|
if (tmp2_safe_receiver == null)
|
|
904
1007
|
null;
|
|
905
1008
|
else {
|
|
@@ -908,7 +1011,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
908
1011
|
var element_2 = new Parameter('requestBody', new Single(tmp2_safe_receiver));
|
|
909
1012
|
params.x(element_2);
|
|
910
1013
|
}
|
|
911
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
1014
|
+
var tmp3_safe_receiver = _this__u8e3s4.m4h_1;
|
|
912
1015
|
if (tmp3_safe_receiver == null)
|
|
913
1016
|
null;
|
|
914
1017
|
else {
|
|
@@ -917,7 +1020,7 @@ function toAnnotation(_this__u8e3s4) {
|
|
|
917
1020
|
var element_3 = new Parameter('description', new Single(tmp3_safe_receiver));
|
|
918
1021
|
params.x(element_3);
|
|
919
1022
|
}
|
|
920
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
1023
|
+
var tmp4_safe_receiver = _this__u8e3s4.n4h_1;
|
|
921
1024
|
if (tmp4_safe_receiver == null)
|
|
922
1025
|
null;
|
|
923
1026
|
else {
|
|
@@ -937,7 +1040,7 @@ function toDescriptionAnnotation(description) {
|
|
|
937
1040
|
}
|
|
938
1041
|
function toLinkInfo(_this__u8e3s4) {
|
|
939
1042
|
_init_properties_Utils_kt__jo07cx();
|
|
940
|
-
var tmp0_elvis_lhs = singleParam(_this__u8e3s4.
|
|
1043
|
+
var tmp0_elvis_lhs = singleParam(_this__u8e3s4.r1a_1, 'default');
|
|
941
1044
|
var tmp;
|
|
942
1045
|
if (tmp0_elvis_lhs == null) {
|
|
943
1046
|
return null;
|
|
@@ -945,7 +1048,7 @@ function toLinkInfo(_this__u8e3s4) {
|
|
|
945
1048
|
tmp = tmp0_elvis_lhs;
|
|
946
1049
|
}
|
|
947
1050
|
var name = tmp;
|
|
948
|
-
return new LinkInfo(name, singleParam(_this__u8e3s4.
|
|
1051
|
+
return new LinkInfo(name, singleParam(_this__u8e3s4.r1a_1, 'operationId'), singleParam(_this__u8e3s4.r1a_1, 'operationRef'), dictParam(_this__u8e3s4.r1a_1, 'parameters'), singleParam(_this__u8e3s4.r1a_1, 'requestBody'), singleParam(_this__u8e3s4.r1a_1, 'description'), singleParam(_this__u8e3s4.r1a_1, 'server'));
|
|
949
1052
|
}
|
|
950
1053
|
function singleParam(_this__u8e3s4, name) {
|
|
951
1054
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -956,7 +1059,7 @@ function singleParam(_this__u8e3s4, name) {
|
|
|
956
1059
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
957
1060
|
while (_iterator__ex2g4s.u()) {
|
|
958
1061
|
var element = _iterator__ex2g4s.v();
|
|
959
|
-
if (element.
|
|
1062
|
+
if (element.s1a_1 === name) {
|
|
960
1063
|
tmp$ret$1 = element;
|
|
961
1064
|
break $l$block;
|
|
962
1065
|
}
|
|
@@ -964,7 +1067,7 @@ function singleParam(_this__u8e3s4, name) {
|
|
|
964
1067
|
tmp$ret$1 = null;
|
|
965
1068
|
}
|
|
966
1069
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
967
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1070
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t1a_1;
|
|
968
1071
|
var tmp;
|
|
969
1072
|
if (tmp1_safe_receiver == null) {
|
|
970
1073
|
tmp = null;
|
|
@@ -973,7 +1076,7 @@ function singleParam(_this__u8e3s4, name) {
|
|
|
973
1076
|
tmp = tmp1_safe_receiver instanceof Single ? tmp1_safe_receiver : null;
|
|
974
1077
|
}
|
|
975
1078
|
var tmp2_safe_receiver = tmp;
|
|
976
|
-
return tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
1079
|
+
return tmp2_safe_receiver == null ? null : tmp2_safe_receiver.w1a_1;
|
|
977
1080
|
}
|
|
978
1081
|
function dictParam(_this__u8e3s4, name) {
|
|
979
1082
|
_init_properties_Utils_kt__jo07cx();
|
|
@@ -984,7 +1087,7 @@ function dictParam(_this__u8e3s4, name) {
|
|
|
984
1087
|
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
985
1088
|
while (_iterator__ex2g4s.u()) {
|
|
986
1089
|
var element = _iterator__ex2g4s.v();
|
|
987
|
-
if (element.
|
|
1090
|
+
if (element.s1a_1 === name) {
|
|
988
1091
|
tmp$ret$1 = element;
|
|
989
1092
|
break $l$block;
|
|
990
1093
|
}
|
|
@@ -992,7 +1095,7 @@ function dictParam(_this__u8e3s4, name) {
|
|
|
992
1095
|
tmp$ret$1 = null;
|
|
993
1096
|
}
|
|
994
1097
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
995
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1098
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t1a_1;
|
|
996
1099
|
var tmp;
|
|
997
1100
|
if (tmp1_safe_receiver == null) {
|
|
998
1101
|
tmp = null;
|
|
@@ -1001,7 +1104,7 @@ function dictParam(_this__u8e3s4, name) {
|
|
|
1001
1104
|
tmp = tmp1_safe_receiver instanceof Dict_0 ? tmp1_safe_receiver : null;
|
|
1002
1105
|
}
|
|
1003
1106
|
var tmp2_safe_receiver = tmp;
|
|
1004
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
1107
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.u1a_1;
|
|
1005
1108
|
var tmp_0;
|
|
1006
1109
|
if (tmp3_safe_receiver == null) {
|
|
1007
1110
|
tmp_0 = null;
|
|
@@ -1013,14 +1116,14 @@ function dictParam(_this__u8e3s4, name) {
|
|
|
1013
1116
|
var _iterator__ex2g4s_0 = tmp3_safe_receiver.t();
|
|
1014
1117
|
while (_iterator__ex2g4s_0.u()) {
|
|
1015
1118
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1016
|
-
var tmp_1 = element_0.
|
|
1119
|
+
var tmp_1 = element_0.t1a_1;
|
|
1017
1120
|
var tmp0_safe_receiver_0 = tmp_1 instanceof Single ? tmp_1 : null;
|
|
1018
1121
|
var tmp_2;
|
|
1019
1122
|
if (tmp0_safe_receiver_0 == null) {
|
|
1020
1123
|
tmp_2 = null;
|
|
1021
1124
|
} else {
|
|
1022
1125
|
// Inline function 'kotlin.let' call
|
|
1023
|
-
tmp_2 = to(element_0.
|
|
1126
|
+
tmp_2 = to(element_0.s1a_1, tmp0_safe_receiver_0.w1a_1);
|
|
1024
1127
|
}
|
|
1025
1128
|
var tmp0_safe_receiver_1 = tmp_2;
|
|
1026
1129
|
if (tmp0_safe_receiver_1 == null)
|
|
@@ -1070,12 +1173,12 @@ function filterNotNullValues(_this__u8e3s4) {
|
|
|
1070
1173
|
}
|
|
1071
1174
|
function json$lambda($this$Json) {
|
|
1072
1175
|
_init_properties_Utils_kt__jo07cx();
|
|
1073
|
-
$this$Json.
|
|
1176
|
+
$this$Json.o2n_1 = true;
|
|
1074
1177
|
return Unit_instance;
|
|
1075
1178
|
}
|
|
1076
1179
|
function className$lambda(it) {
|
|
1077
1180
|
_init_properties_Utils_kt__jo07cx();
|
|
1078
|
-
return
|
|
1181
|
+
return Companion_instance_0.zr(it);
|
|
1079
1182
|
}
|
|
1080
1183
|
var properties_initialized_Utils_kt_xvi83j;
|
|
1081
1184
|
function _init_properties_Utils_kt__jo07cx() {
|
|
@@ -1103,43 +1206,43 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1103
1206
|
var _iterator__ex2g4s_0 = destination.t();
|
|
1104
1207
|
while (_iterator__ex2g4s_0.u()) {
|
|
1105
1208
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1106
|
-
var type = element_0.
|
|
1209
|
+
var type = element_0.ns_1.d1a_1;
|
|
1107
1210
|
var tmp;
|
|
1108
1211
|
if (equals(type, Boolean_instance)) {
|
|
1109
|
-
tmp = to(element_0.
|
|
1212
|
+
tmp = to(element_0.ms_1.o1(), new OpenAPIV20Schema(VOID, OpenAPIV20Type_BOOLEAN_getInstance()));
|
|
1110
1213
|
} else {
|
|
1111
1214
|
if (equals(type, Bytes_instance)) {
|
|
1112
|
-
tmp = to(element_0.
|
|
1215
|
+
tmp = to(element_0.ms_1.o1(), new OpenAPIV20Schema(VOID, OpenAPIV20Type_FILE_getInstance()));
|
|
1113
1216
|
} else {
|
|
1114
1217
|
if (type instanceof Integer) {
|
|
1115
|
-
var tmp_0 = element_0.
|
|
1218
|
+
var tmp_0 = element_0.ms_1.o1();
|
|
1116
1219
|
var tmp4_type = OpenAPIV20Type_INTEGER_getInstance();
|
|
1117
|
-
var tmp0_safe_receiver = type.
|
|
1118
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1220
|
+
var tmp0_safe_receiver = type.m1a_1;
|
|
1221
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j1a_1;
|
|
1119
1222
|
var tmp5_minimum = tmp1_safe_receiver == null ? null : toDouble(tmp1_safe_receiver);
|
|
1120
|
-
var tmp2_safe_receiver = type.
|
|
1121
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
1223
|
+
var tmp2_safe_receiver = type.m1a_1;
|
|
1224
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.k1a_1;
|
|
1122
1225
|
var tmp6_maximum = tmp3_safe_receiver == null ? null : toDouble(tmp3_safe_receiver);
|
|
1123
1226
|
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));
|
|
1124
1227
|
} else {
|
|
1125
1228
|
if (type instanceof Number_0) {
|
|
1126
|
-
var tmp_1 = element_0.
|
|
1229
|
+
var tmp_1 = element_0.ms_1.o1();
|
|
1127
1230
|
var tmp11_type = OpenAPIV20Type_NUMBER_getInstance();
|
|
1128
|
-
var tmp7_safe_receiver = type.
|
|
1129
|
-
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.
|
|
1231
|
+
var tmp7_safe_receiver = type.h1a_1;
|
|
1232
|
+
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.j1a_1;
|
|
1130
1233
|
var tmp12_minimum = tmp8_safe_receiver == null ? null : toDouble(tmp8_safe_receiver);
|
|
1131
|
-
var tmp9_safe_receiver = type.
|
|
1132
|
-
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.
|
|
1234
|
+
var tmp9_safe_receiver = type.h1a_1;
|
|
1235
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.k1a_1;
|
|
1133
1236
|
var tmp13_maximum = tmp10_safe_receiver == null ? null : toDouble(tmp10_safe_receiver);
|
|
1134
1237
|
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));
|
|
1135
1238
|
} else {
|
|
1136
1239
|
if (type instanceof String_0) {
|
|
1137
|
-
var tmp_2 = element_0.
|
|
1138
|
-
var pattern = type.
|
|
1240
|
+
var tmp_2 = element_0.ms_1.o1();
|
|
1241
|
+
var pattern = type.o1a_1;
|
|
1139
1242
|
var tmp_3;
|
|
1140
1243
|
var tmp_4 = pattern;
|
|
1141
1244
|
if ((tmp_4 == null ? null : new RegExp_0(tmp_4))instanceof RegExp_0) {
|
|
1142
|
-
tmp_3 = new OpenAPIV20Schema(VOID, OpenAPIV20Type_STRING_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID,
|
|
1245
|
+
tmp_3 = new OpenAPIV20Schema(VOID, OpenAPIV20Type_STRING_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitFormat(pattern), VOID, VOID, VOID, VOID, VOID, VOID, emitPattern(pattern));
|
|
1143
1246
|
} else {
|
|
1144
1247
|
var tmp_5 = pattern;
|
|
1145
1248
|
if ((tmp_5 == null ? null : new RegExp_0(tmp_5)) == null) {
|
|
@@ -1158,9 +1261,9 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1158
1261
|
}
|
|
1159
1262
|
// Inline function 'kotlin.also' call
|
|
1160
1263
|
var this_0 = tmp;
|
|
1161
|
-
logger.
|
|
1264
|
+
logger.bs('Emitting Refined ' + element_0.ms_1.o1());
|
|
1162
1265
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1163
|
-
destination_0.
|
|
1266
|
+
destination_0.w2(this_0.gf_1, this_0.hf_1);
|
|
1164
1267
|
}
|
|
1165
1268
|
var refined = destination_0;
|
|
1166
1269
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
@@ -1181,11 +1284,11 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1181
1284
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
1182
1285
|
while (_iterator__ex2g4s_2.u()) {
|
|
1183
1286
|
var element_2 = _iterator__ex2g4s_2.v();
|
|
1184
|
-
var tmp_6 = element_2.
|
|
1185
|
-
var tmp0_elvis_lhs = findDescription(element_2.
|
|
1287
|
+
var tmp_6 = element_2.lp_1.o1();
|
|
1288
|
+
var tmp0_elvis_lhs = findDescription(element_2.kp_1);
|
|
1186
1289
|
var tmp_7;
|
|
1187
1290
|
if (tmp0_elvis_lhs == null) {
|
|
1188
|
-
var tmp1_safe_receiver_0 = element_2.
|
|
1291
|
+
var tmp1_safe_receiver_0 = element_2.jp_1;
|
|
1189
1292
|
var tmp_8;
|
|
1190
1293
|
var tmp_9 = tmp1_safe_receiver_0;
|
|
1191
1294
|
if ((tmp_9 == null ? null : new Comment(tmp_9)) == null) {
|
|
@@ -1199,7 +1302,7 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1199
1302
|
}
|
|
1200
1303
|
var tmp2_description = tmp_7;
|
|
1201
1304
|
// Inline function 'kotlin.collections.associate' call
|
|
1202
|
-
var this_1 = get_fields(element_2.
|
|
1305
|
+
var this_1 = get_fields(element_2.mp_1);
|
|
1203
1306
|
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_1, 10)), 16);
|
|
1204
1307
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1205
1308
|
var destination_3 = LinkedHashMap_init_$Create$(capacity_1);
|
|
@@ -1208,16 +1311,16 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1208
1311
|
var element_3 = _iterator__ex2g4s_3.v();
|
|
1209
1312
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1210
1313
|
var pair = toProperties(OpenAPIV2Emitter_getInstance(), element_3);
|
|
1211
|
-
destination_3.
|
|
1314
|
+
destination_3.w2(pair.gf_1, pair.hf_1);
|
|
1212
1315
|
}
|
|
1213
1316
|
// Inline function 'kotlin.collections.filter' call
|
|
1214
|
-
var tmp0_1 = get_fields(element_2.
|
|
1317
|
+
var tmp0_1 = get_fields(element_2.mp_1);
|
|
1215
1318
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1216
1319
|
var destination_4 = ArrayList_init_$Create$_0();
|
|
1217
1320
|
var _iterator__ex2g4s_4 = tmp0_1.t();
|
|
1218
1321
|
while (_iterator__ex2g4s_4.u()) {
|
|
1219
1322
|
var element_4 = _iterator__ex2g4s_4.v();
|
|
1220
|
-
if (!element_4.
|
|
1323
|
+
if (!element_4.qp_1.ot()) {
|
|
1221
1324
|
destination_4.x(element_4);
|
|
1222
1325
|
}
|
|
1223
1326
|
}
|
|
@@ -1227,7 +1330,7 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1227
1330
|
var _iterator__ex2g4s_5 = destination_4.t();
|
|
1228
1331
|
while (_iterator__ex2g4s_5.u()) {
|
|
1229
1332
|
var item = _iterator__ex2g4s_5.v();
|
|
1230
|
-
var tmp$ret$22 = item.
|
|
1333
|
+
var tmp$ret$22 = item.pp_1.o1();
|
|
1231
1334
|
destination_5.x(tmp$ret$22);
|
|
1232
1335
|
}
|
|
1233
1336
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -1241,10 +1344,10 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1241
1344
|
var tmp4_required = tmp_10;
|
|
1242
1345
|
// Inline function 'kotlin.also' call
|
|
1243
1346
|
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);
|
|
1244
|
-
logger.
|
|
1347
|
+
logger.bs('Emitting Type ' + element_2.lp_1.o1());
|
|
1245
1348
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1246
1349
|
var pair_0 = to(tmp_6, this_2);
|
|
1247
|
-
destination_2.
|
|
1350
|
+
destination_2.w2(pair_0.gf_1, pair_0.hf_1);
|
|
1248
1351
|
}
|
|
1249
1352
|
var types = destination_2;
|
|
1250
1353
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
@@ -1265,10 +1368,10 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1265
1368
|
var _iterator__ex2g4s_7 = destination_6.t();
|
|
1266
1369
|
while (_iterator__ex2g4s_7.u()) {
|
|
1267
1370
|
var element_6 = _iterator__ex2g4s_7.v();
|
|
1268
|
-
var tmp_11 = element_6.
|
|
1371
|
+
var tmp_11 = element_6.rs_1.o1();
|
|
1269
1372
|
var tmp0_type = OpenAPIV20Type_STRING_getInstance();
|
|
1270
1373
|
// Inline function 'kotlin.collections.map' call
|
|
1271
|
-
var this_3 = element_6.
|
|
1374
|
+
var this_3 = element_6.ss_1;
|
|
1272
1375
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1273
1376
|
var destination_8 = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
1274
1377
|
var _iterator__ex2g4s_8 = this_3.t();
|
|
@@ -1277,13 +1380,13 @@ function emitDefinitions($this, $receiver, logger) {
|
|
|
1277
1380
|
var tmp$ret$36 = JsonPrimitive(item_0);
|
|
1278
1381
|
destination_8.x(tmp$ret$36);
|
|
1279
1382
|
}
|
|
1280
|
-
var tmp2_description_0 = findDescription(element_6.
|
|
1383
|
+
var tmp2_description_0 = findDescription(element_6.qs_1);
|
|
1281
1384
|
// Inline function 'kotlin.also' call
|
|
1282
1385
|
var this_4 = new OpenAPIV20Schema(VOID, tmp0_type, VOID, VOID, VOID, VOID, VOID, tmp2_description_0, VOID, VOID, VOID, VOID, VOID, VOID, destination_8);
|
|
1283
|
-
logger.
|
|
1386
|
+
logger.bs('Emitting Enum ' + element_6.rs_1.o1());
|
|
1284
1387
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1285
1388
|
var pair_1 = to(tmp_11, this_4);
|
|
1286
|
-
destination_7.
|
|
1389
|
+
destination_7.w2(pair_1.gf_1, pair_1.hf_1);
|
|
1287
1390
|
}
|
|
1288
1391
|
var enums = destination_7;
|
|
1289
1392
|
return plus(plus(refined, types), enums);
|
|
@@ -1306,13 +1409,13 @@ function emitPaths($this, $receiver, logger) {
|
|
|
1306
1409
|
var _iterator__ex2g4s_0 = destination.t();
|
|
1307
1410
|
while (_iterator__ex2g4s_0.u()) {
|
|
1308
1411
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1309
|
-
var key = element_0.
|
|
1412
|
+
var key = element_0.ir_1;
|
|
1310
1413
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1311
|
-
var value = destination_0.
|
|
1414
|
+
var value = destination_0.t2(key);
|
|
1312
1415
|
var tmp;
|
|
1313
1416
|
if (value == null) {
|
|
1314
1417
|
var answer = ArrayList_init_$Create$_0();
|
|
1315
|
-
destination_0.
|
|
1418
|
+
destination_0.w2(key, answer);
|
|
1316
1419
|
tmp = answer;
|
|
1317
1420
|
} else {
|
|
1318
1421
|
tmp = value;
|
|
@@ -1331,7 +1434,7 @@ function emitPaths($this, $receiver, logger) {
|
|
|
1331
1434
|
var path = item.n1();
|
|
1332
1435
|
// Inline function 'kotlin.collections.component2' call
|
|
1333
1436
|
var endpoints = item.o1();
|
|
1334
|
-
logger.
|
|
1437
|
+
logger.bs('Emitting endpoints for path ' + emitSegment(OpenAPIV2Emitter_getInstance(), path));
|
|
1335
1438
|
var tmp_0 = _Path___init__impl__6uf4pw(emitSegment(OpenAPIV2Emitter_getInstance(), path));
|
|
1336
1439
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1337
1440
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
@@ -1350,12 +1453,12 @@ function emitPaths($this, $receiver, logger) {
|
|
|
1350
1453
|
while (_iterator__ex2g4s_3.u()) {
|
|
1351
1454
|
var item_0 = _iterator__ex2g4s_3.v();
|
|
1352
1455
|
var tmp0_in = OpenAPIV20ParameterLocation_PATH_getInstance();
|
|
1353
|
-
var tmp1_name = item_0.
|
|
1354
|
-
var tmp2_type = emitType_0(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1355
|
-
var tmp3_format =
|
|
1356
|
-
var tmp4_pattern =
|
|
1357
|
-
var tmp5_minimum = emitMinimum(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1358
|
-
var tmp6_maximum = emitMaximum(OpenAPIV2Emitter_getInstance(), item_0.
|
|
1456
|
+
var tmp1_name = item_0.nr_1.o1();
|
|
1457
|
+
var tmp2_type = emitType_0(OpenAPIV2Emitter_getInstance(), item_0.or_1);
|
|
1458
|
+
var tmp3_format = emitFormat_0(item_0.or_1);
|
|
1459
|
+
var tmp4_pattern = emitPattern_0(OpenAPIV2Emitter_getInstance(), item_0.or_1);
|
|
1460
|
+
var tmp5_minimum = emitMinimum(OpenAPIV2Emitter_getInstance(), item_0.or_1);
|
|
1461
|
+
var tmp6_maximum = emitMaximum(OpenAPIV2Emitter_getInstance(), item_0.or_1);
|
|
1359
1462
|
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);
|
|
1360
1463
|
destination_3.x(tmp$ret$17);
|
|
1361
1464
|
}
|
|
@@ -1373,12 +1476,12 @@ function emitPaths($this, $receiver, logger) {
|
|
|
1373
1476
|
return toMap(destination_1);
|
|
1374
1477
|
}
|
|
1375
1478
|
function toProperties($this, $receiver) {
|
|
1376
|
-
var tmp = $receiver.
|
|
1479
|
+
var tmp = $receiver.pp_1.o1();
|
|
1377
1480
|
// Inline function 'kotlin.let' call
|
|
1378
|
-
var it = toSchemaOrReference($this, $receiver.
|
|
1481
|
+
var it = toSchemaOrReference($this, $receiver.qp_1);
|
|
1379
1482
|
var tmp_0;
|
|
1380
1483
|
if (it instanceof OpenAPIV20Schema) {
|
|
1381
|
-
tmp_0 = it.
|
|
1484
|
+
tmp_0 = it.s3g(VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription($receiver.op_1), toSchemaDefault($receiver.rp_1));
|
|
1382
1485
|
} else {
|
|
1383
1486
|
if (it instanceof OpenAPIV20Reference) {
|
|
1384
1487
|
tmp_0 = it;
|
|
@@ -1396,7 +1499,7 @@ function emit($this, $receiver, method) {
|
|
|
1396
1499
|
var _iterator__ex2g4s = $receiver.t();
|
|
1397
1500
|
while (_iterator__ex2g4s.u()) {
|
|
1398
1501
|
var element = _iterator__ex2g4s.v();
|
|
1399
|
-
if (element.
|
|
1502
|
+
if (element.hr_1.equals(method)) {
|
|
1400
1503
|
destination.x(element);
|
|
1401
1504
|
}
|
|
1402
1505
|
}
|
|
@@ -1412,11 +1515,11 @@ function emit($this, $receiver, method) {
|
|
|
1412
1515
|
return firstOrNull(destination_0);
|
|
1413
1516
|
}
|
|
1414
1517
|
function emit_0($this, $receiver) {
|
|
1415
|
-
var tmp2_operationId = $receiver.
|
|
1416
|
-
var tmp0_elvis_lhs = findDescription($receiver.
|
|
1518
|
+
var tmp2_operationId = $receiver.gr_1.o1();
|
|
1519
|
+
var tmp0_elvis_lhs = findDescription($receiver.fr_1);
|
|
1417
1520
|
var tmp;
|
|
1418
1521
|
if (tmp0_elvis_lhs == null) {
|
|
1419
|
-
var tmp1_safe_receiver = $receiver.
|
|
1522
|
+
var tmp1_safe_receiver = $receiver.er_1;
|
|
1420
1523
|
var tmp_0;
|
|
1421
1524
|
var tmp_1 = tmp1_safe_receiver;
|
|
1422
1525
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -1430,15 +1533,15 @@ function emit_0($this, $receiver) {
|
|
|
1430
1533
|
}
|
|
1431
1534
|
var tmp3_description = tmp;
|
|
1432
1535
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1433
|
-
var tmp0 = $receiver.
|
|
1536
|
+
var tmp0 = $receiver.lr_1;
|
|
1434
1537
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1435
1538
|
var destination = ArrayList_init_$Create$_0();
|
|
1436
1539
|
// Inline function 'kotlin.collections.forEach' call
|
|
1437
1540
|
var _iterator__ex2g4s = tmp0.t();
|
|
1438
1541
|
while (_iterator__ex2g4s.u()) {
|
|
1439
1542
|
var element = _iterator__ex2g4s.v();
|
|
1440
|
-
var tmp0_safe_receiver = element.
|
|
1441
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1543
|
+
var tmp0_safe_receiver = element.pr_1;
|
|
1544
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qr_1;
|
|
1442
1545
|
if (tmp0_safe_receiver_0 == null)
|
|
1443
1546
|
null;
|
|
1444
1547
|
else {
|
|
@@ -1456,15 +1559,15 @@ function emit_0($this, $receiver) {
|
|
|
1456
1559
|
}
|
|
1457
1560
|
var tmp4_consumes = tmp_2;
|
|
1458
1561
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1459
|
-
var tmp0_0 = $receiver.
|
|
1562
|
+
var tmp0_0 = $receiver.mr_1;
|
|
1460
1563
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1461
1564
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
1462
1565
|
// Inline function 'kotlin.collections.forEach' call
|
|
1463
1566
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
1464
1567
|
while (_iterator__ex2g4s_0.u()) {
|
|
1465
1568
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1466
|
-
var tmp0_safe_receiver_1 = element_0.
|
|
1467
|
-
var tmp0_safe_receiver_2 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.
|
|
1569
|
+
var tmp0_safe_receiver_1 = element_0.ur_1;
|
|
1570
|
+
var tmp0_safe_receiver_2 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.qr_1;
|
|
1468
1571
|
if (tmp0_safe_receiver_2 == null)
|
|
1469
1572
|
null;
|
|
1470
1573
|
else {
|
|
@@ -1482,14 +1585,14 @@ function emit_0($this, $receiver) {
|
|
|
1482
1585
|
}
|
|
1483
1586
|
var tmp5_produces = tmp_3;
|
|
1484
1587
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1485
|
-
var tmp0_1 = $receiver.
|
|
1588
|
+
var tmp0_1 = $receiver.lr_1;
|
|
1486
1589
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1487
1590
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
1488
1591
|
// Inline function 'kotlin.collections.forEach' call
|
|
1489
1592
|
var _iterator__ex2g4s_1 = tmp0_1.t();
|
|
1490
1593
|
while (_iterator__ex2g4s_1.u()) {
|
|
1491
1594
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
1492
|
-
var tmp0_safe_receiver_3 = element_1.
|
|
1595
|
+
var tmp0_safe_receiver_3 = element_1.pr_1;
|
|
1493
1596
|
if (tmp0_safe_receiver_3 == null)
|
|
1494
1597
|
null;
|
|
1495
1598
|
else {
|
|
@@ -1505,14 +1608,14 @@ function emit_0($this, $receiver) {
|
|
|
1505
1608
|
while (_iterator__ex2g4s_2.u()) {
|
|
1506
1609
|
var item = _iterator__ex2g4s_2.v();
|
|
1507
1610
|
var tmp0_in = OpenAPIV20ParameterLocation_BODY_getInstance();
|
|
1508
|
-
var tmp1_schema = toSchemaOrReference(OpenAPIV2Emitter_getInstance(), item.
|
|
1509
|
-
var tmp2_required = !item.
|
|
1611
|
+
var tmp1_schema = toSchemaOrReference(OpenAPIV2Emitter_getInstance(), item.rr_1);
|
|
1612
|
+
var tmp2_required = !item.rr_1.ot();
|
|
1510
1613
|
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');
|
|
1511
1614
|
destination_2.x(tmp$ret$27);
|
|
1512
1615
|
}
|
|
1513
1616
|
var tmp_4 = destination_2;
|
|
1514
1617
|
// Inline function 'kotlin.collections.map' call
|
|
1515
|
-
var this_3 = get_fields($receiver.
|
|
1618
|
+
var this_3 = get_fields($receiver.jr_1);
|
|
1516
1619
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1517
1620
|
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
1518
1621
|
var _iterator__ex2g4s_3 = this_3.t();
|
|
@@ -1523,7 +1626,7 @@ function emit_0($this, $receiver) {
|
|
|
1523
1626
|
}
|
|
1524
1627
|
var tmp_5 = plus_0(tmp_4, destination_3);
|
|
1525
1628
|
// Inline function 'kotlin.collections.map' call
|
|
1526
|
-
var this_4 = get_fields($receiver.
|
|
1629
|
+
var this_4 = get_fields($receiver.kr_1);
|
|
1527
1630
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1528
1631
|
var destination_4 = ArrayList_init_$Create$(collectionSizeOrDefault(this_4, 10));
|
|
1529
1632
|
var _iterator__ex2g4s_4 = this_4.t();
|
|
@@ -1534,45 +1637,45 @@ function emit_0($this, $receiver) {
|
|
|
1534
1637
|
}
|
|
1535
1638
|
var tmp6_parameters = plus_0(tmp_5, destination_4);
|
|
1536
1639
|
// Inline function 'kotlin.collections.associate' call
|
|
1537
|
-
var this_5 = $receiver.
|
|
1640
|
+
var this_5 = $receiver.mr_1;
|
|
1538
1641
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_5, 10)), 16);
|
|
1539
1642
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1540
1643
|
var destination_5 = LinkedHashMap_init_$Create$(capacity);
|
|
1541
1644
|
var _iterator__ex2g4s_5 = this_5.t();
|
|
1542
1645
|
while (_iterator__ex2g4s_5.u()) {
|
|
1543
1646
|
var element_2 = _iterator__ex2g4s_5.v();
|
|
1544
|
-
var tmp_6 = _StatusCode___init__impl__t1yi9q(element_2.
|
|
1545
|
-
var tmp0_elvis_lhs_0 = findDescription(element_2.
|
|
1546
|
-
var tmp3_description_0 = tmp0_elvis_lhs_0 == null ? $receiver.
|
|
1647
|
+
var tmp_6 = _StatusCode___init__impl__t1yi9q(element_2.sr_1);
|
|
1648
|
+
var tmp0_elvis_lhs_0 = findDescription(element_2.vr_1);
|
|
1649
|
+
var tmp3_description_0 = tmp0_elvis_lhs_0 == null ? $receiver.gr_1.o1() + ' ' + element_2.sr_1 + ' response' : tmp0_elvis_lhs_0;
|
|
1547
1650
|
// Inline function 'kotlin.collections.associate' call
|
|
1548
|
-
var this_6 = get_fields(element_2.
|
|
1651
|
+
var this_6 = get_fields(element_2.tr_1);
|
|
1549
1652
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_6, 10)), 16);
|
|
1550
1653
|
// Inline function 'kotlin.collections.associateTo' call
|
|
1551
1654
|
var destination_6 = LinkedHashMap_init_$Create$(capacity_0);
|
|
1552
1655
|
var _iterator__ex2g4s_6 = this_6.t();
|
|
1553
1656
|
while (_iterator__ex2g4s_6.u()) {
|
|
1554
1657
|
var element_3 = _iterator__ex2g4s_6.v();
|
|
1555
|
-
var tmp_7 = element_3.
|
|
1556
|
-
var tmp2_description = findDescription(element_3.
|
|
1557
|
-
var tmp3_type = emitType_0(OpenAPIV2Emitter_getInstance(), element_3.
|
|
1558
|
-
var tmp4_format =
|
|
1559
|
-
var tmp5_pattern =
|
|
1560
|
-
var tmp_8 = element_3.
|
|
1658
|
+
var tmp_7 = element_3.pp_1.o1();
|
|
1659
|
+
var tmp2_description = findDescription(element_3.op_1);
|
|
1660
|
+
var tmp3_type = emitType_0(OpenAPIV2Emitter_getInstance(), element_3.qp_1);
|
|
1661
|
+
var tmp4_format = emitFormat_0(element_3.qp_1);
|
|
1662
|
+
var tmp5_pattern = emitPattern_0(OpenAPIV2Emitter_getInstance(), element_3.qp_1);
|
|
1663
|
+
var tmp_8 = element_3.qp_1;
|
|
1561
1664
|
var tmp0_safe_receiver_4 = tmp_8 instanceof Iterable ? tmp_8 : null;
|
|
1562
|
-
var tmp1_safe_receiver_0 = tmp0_safe_receiver_4 == null ? null : tmp0_safe_receiver_4.
|
|
1665
|
+
var tmp1_safe_receiver_0 = tmp0_safe_receiver_4 == null ? null : tmp0_safe_receiver_4.zp_1;
|
|
1563
1666
|
var tmp6_items = tmp1_safe_receiver_0 == null ? null : toSchemaOrReference(OpenAPIV2Emitter_getInstance(), tmp1_safe_receiver_0);
|
|
1564
1667
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1565
1668
|
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));
|
|
1566
|
-
destination_6.
|
|
1669
|
+
destination_6.w2(pair.gf_1, pair.hf_1);
|
|
1567
1670
|
}
|
|
1568
|
-
var tmp1_safe_receiver_1 = element_2.
|
|
1671
|
+
var tmp1_safe_receiver_1 = element_2.ur_1;
|
|
1569
1672
|
var tmp_9;
|
|
1570
1673
|
if (tmp1_safe_receiver_1 == null) {
|
|
1571
1674
|
tmp_9 = null;
|
|
1572
1675
|
} else {
|
|
1573
1676
|
// Inline function 'kotlin.takeIf' call
|
|
1574
1677
|
var tmp_10;
|
|
1575
|
-
var tmp_11 = tmp1_safe_receiver_1.
|
|
1678
|
+
var tmp_11 = tmp1_safe_receiver_1.rr_1;
|
|
1576
1679
|
if (!(tmp_11 instanceof Unit)) {
|
|
1577
1680
|
tmp_10 = tmp1_safe_receiver_1;
|
|
1578
1681
|
} else {
|
|
@@ -1586,10 +1689,10 @@ function emit_0($this, $receiver) {
|
|
|
1586
1689
|
tmp_12 = null;
|
|
1587
1690
|
} else {
|
|
1588
1691
|
// Inline function 'kotlin.let' call
|
|
1589
|
-
var ref = tmp2_safe_receiver.
|
|
1692
|
+
var ref = tmp2_safe_receiver.rr_1;
|
|
1590
1693
|
var tmp_13;
|
|
1591
1694
|
if (ref instanceof Iterable) {
|
|
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.
|
|
1695
|
+
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.zp_1));
|
|
1593
1696
|
} else {
|
|
1594
1697
|
tmp_13 = toSchemaOrReference(OpenAPIV2Emitter_getInstance(), ref);
|
|
1595
1698
|
}
|
|
@@ -1598,7 +1701,7 @@ function emit_0($this, $receiver) {
|
|
|
1598
1701
|
var tmp5_schema = tmp_12;
|
|
1599
1702
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1600
1703
|
var pair_0 = to(new StatusCode(tmp_6), new OpenAPIV20Response(tmp5_schema, VOID, tmp3_description_0, destination_6));
|
|
1601
|
-
destination_5.
|
|
1704
|
+
destination_5.w2(pair_0.gf_1, pair_0.hf_1);
|
|
1602
1705
|
}
|
|
1603
1706
|
return new OpenAPIV20Operation(tmp4_consumes, tmp5_produces, tmp6_parameters, VOID, destination_5, VOID, VOID, VOID, tmp3_description, VOID, tmp2_operationId);
|
|
1604
1707
|
}
|
|
@@ -1606,11 +1709,11 @@ function emitSegment($this, $receiver) {
|
|
|
1606
1709
|
return '/' + joinToString($receiver, '/', VOID, VOID, VOID, VOID, OpenAPIV2Emitter$emitSegment$lambda);
|
|
1607
1710
|
}
|
|
1608
1711
|
function emitParameter($this, $receiver, location) {
|
|
1609
|
-
var tmp0_name = $receiver.
|
|
1610
|
-
var tmp1_type = emitType_0($this, $receiver.
|
|
1611
|
-
var tmp2_format =
|
|
1612
|
-
var tmp3_pattern =
|
|
1613
|
-
var ref = $receiver.
|
|
1712
|
+
var tmp0_name = $receiver.pp_1.o1();
|
|
1713
|
+
var tmp1_type = emitType_0($this, $receiver.qp_1);
|
|
1714
|
+
var tmp2_format = emitFormat_0($receiver.qp_1);
|
|
1715
|
+
var tmp3_pattern = emitPattern_0($this, $receiver.qp_1);
|
|
1716
|
+
var ref = $receiver.qp_1;
|
|
1614
1717
|
var tmp;
|
|
1615
1718
|
if (ref instanceof Iterable) {
|
|
1616
1719
|
var emit = toSchemaOrReference($this, ref);
|
|
@@ -1619,7 +1722,7 @@ function emitParameter($this, $receiver, location) {
|
|
|
1619
1722
|
tmp_0 = emit;
|
|
1620
1723
|
} else {
|
|
1621
1724
|
if (emit instanceof OpenAPIV20Schema) {
|
|
1622
|
-
tmp_0 = emit.
|
|
1725
|
+
tmp_0 = emit.c3g_1;
|
|
1623
1726
|
} else {
|
|
1624
1727
|
noWhenBranchMatchedException();
|
|
1625
1728
|
}
|
|
@@ -1629,23 +1732,23 @@ function emitParameter($this, $receiver, location) {
|
|
|
1629
1732
|
tmp = null;
|
|
1630
1733
|
}
|
|
1631
1734
|
var tmp4_items = tmp;
|
|
1632
|
-
var tmp5_required = !$receiver.
|
|
1633
|
-
var tmp6_description = findDescription($receiver.
|
|
1735
|
+
var tmp5_required = !$receiver.qp_1.ot();
|
|
1736
|
+
var tmp6_description = findDescription($receiver.op_1);
|
|
1634
1737
|
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);
|
|
1635
1738
|
}
|
|
1636
1739
|
function toSchemaOrReference($this, $receiver) {
|
|
1637
1740
|
var tmp;
|
|
1638
1741
|
if ($receiver instanceof Dict) {
|
|
1639
|
-
tmp = new OpenAPIV20Schema(VOID, OpenAPIV20Type_OBJECT_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference($this, $receiver.
|
|
1742
|
+
tmp = new OpenAPIV20Schema(VOID, OpenAPIV20Type_OBJECT_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference($this, $receiver.cq_1));
|
|
1640
1743
|
} else {
|
|
1641
1744
|
if ($receiver instanceof Iterable) {
|
|
1642
|
-
tmp = new OpenAPIV20Schema(VOID, OpenAPIV20Type_ARRAY_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference($this, $receiver.
|
|
1745
|
+
tmp = new OpenAPIV20Schema(VOID, OpenAPIV20Type_ARRAY_getInstance(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toSchemaOrReference($this, $receiver.zp_1));
|
|
1643
1746
|
} else {
|
|
1644
1747
|
if ($receiver instanceof Custom) {
|
|
1645
|
-
tmp = new OpenAPIV20Reference(_Ref___init__impl__7qfl46('#/definitions/' + $receiver.
|
|
1748
|
+
tmp = new OpenAPIV20Reference(_Ref___init__impl__7qfl46('#/definitions/' + $receiver.b1a_1));
|
|
1646
1749
|
} else {
|
|
1647
1750
|
if ($receiver instanceof Primitive) {
|
|
1648
|
-
tmp = new OpenAPIV20Schema(VOID, emitType($this, $receiver.
|
|
1751
|
+
tmp = new OpenAPIV20Schema(VOID, emitType($this, $receiver.d1a_1), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitFormat_0($receiver), VOID, VOID, VOID, VOID, VOID, VOID, emitPattern_0($this, $receiver));
|
|
1649
1752
|
} else {
|
|
1650
1753
|
if ($receiver instanceof Any) {
|
|
1651
1754
|
// Inline function 'kotlin.error' call
|
|
@@ -1700,7 +1803,7 @@ function emitType_0($this, $receiver) {
|
|
|
1700
1803
|
tmp = OpenAPIV20Type_ARRAY_getInstance();
|
|
1701
1804
|
} else {
|
|
1702
1805
|
if ($receiver instanceof Primitive) {
|
|
1703
|
-
tmp = emitType($this, $receiver.
|
|
1806
|
+
tmp = emitType($this, $receiver.d1a_1);
|
|
1704
1807
|
} else {
|
|
1705
1808
|
if ($receiver instanceof Custom) {
|
|
1706
1809
|
tmp = OpenAPIV20Type_OBJECT_getInstance();
|
|
@@ -1720,17 +1823,17 @@ function emitType_0($this, $receiver) {
|
|
|
1720
1823
|
}
|
|
1721
1824
|
return tmp;
|
|
1722
1825
|
}
|
|
1723
|
-
function
|
|
1826
|
+
function emitPattern_0($this, $receiver) {
|
|
1724
1827
|
var tmp;
|
|
1725
1828
|
if ($receiver instanceof Primitive) {
|
|
1726
|
-
var t = $receiver.
|
|
1829
|
+
var t = $receiver.d1a_1;
|
|
1727
1830
|
var tmp_0;
|
|
1728
1831
|
if (t instanceof String_0) {
|
|
1729
|
-
var p = t.
|
|
1832
|
+
var p = t.o1a_1;
|
|
1730
1833
|
var tmp_1;
|
|
1731
1834
|
var tmp_2 = p;
|
|
1732
1835
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2))instanceof RegExp_0) {
|
|
1733
|
-
tmp_1 =
|
|
1836
|
+
tmp_1 = emitPattern(p);
|
|
1734
1837
|
} else {
|
|
1735
1838
|
tmp_1 = null;
|
|
1736
1839
|
}
|
|
@@ -1747,16 +1850,16 @@ function emitPattern($this, $receiver) {
|
|
|
1747
1850
|
function emitMinimum($this, $receiver) {
|
|
1748
1851
|
var tmp;
|
|
1749
1852
|
if ($receiver instanceof Primitive) {
|
|
1750
|
-
var t = $receiver.
|
|
1853
|
+
var t = $receiver.d1a_1;
|
|
1751
1854
|
var tmp_0;
|
|
1752
1855
|
if (t instanceof Number_0) {
|
|
1753
|
-
var tmp1_safe_receiver = t.
|
|
1754
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1856
|
+
var tmp1_safe_receiver = t.h1a_1;
|
|
1857
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.j1a_1;
|
|
1755
1858
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
1756
1859
|
} else {
|
|
1757
1860
|
if (t instanceof Integer) {
|
|
1758
|
-
var tmp3_safe_receiver = t.
|
|
1759
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
1861
|
+
var tmp3_safe_receiver = t.m1a_1;
|
|
1862
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.j1a_1;
|
|
1760
1863
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
1761
1864
|
} else {
|
|
1762
1865
|
tmp_0 = null;
|
|
@@ -1771,16 +1874,16 @@ function emitMinimum($this, $receiver) {
|
|
|
1771
1874
|
function emitMaximum($this, $receiver) {
|
|
1772
1875
|
var tmp;
|
|
1773
1876
|
if ($receiver instanceof Primitive) {
|
|
1774
|
-
var t = $receiver.
|
|
1877
|
+
var t = $receiver.d1a_1;
|
|
1775
1878
|
var tmp_0;
|
|
1776
1879
|
if (t instanceof Number_0) {
|
|
1777
|
-
var tmp1_safe_receiver = t.
|
|
1778
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1880
|
+
var tmp1_safe_receiver = t.h1a_1;
|
|
1881
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k1a_1;
|
|
1779
1882
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
1780
1883
|
} else {
|
|
1781
1884
|
if (t instanceof Integer) {
|
|
1782
|
-
var tmp3_safe_receiver = t.
|
|
1783
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
1885
|
+
var tmp3_safe_receiver = t.m1a_1;
|
|
1886
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.k1a_1;
|
|
1784
1887
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
1785
1888
|
} else {
|
|
1786
1889
|
tmp_0 = null;
|
|
@@ -1795,10 +1898,10 @@ function emitMaximum($this, $receiver) {
|
|
|
1795
1898
|
function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
1796
1899
|
var tmp;
|
|
1797
1900
|
if (it instanceof Param) {
|
|
1798
|
-
tmp = '{' + it.
|
|
1901
|
+
tmp = '{' + it.nr_1.o1() + '}';
|
|
1799
1902
|
} else {
|
|
1800
1903
|
if (it instanceof Literal) {
|
|
1801
|
-
tmp = it.
|
|
1904
|
+
tmp = it.e1b_1;
|
|
1802
1905
|
} else {
|
|
1803
1906
|
noWhenBranchMatchedException();
|
|
1804
1907
|
}
|
|
@@ -1807,18 +1910,18 @@ function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
|
1807
1910
|
}
|
|
1808
1911
|
function OpenAPIV2Emitter() {
|
|
1809
1912
|
OpenAPIV2Emitter_instance = this;
|
|
1810
|
-
this.
|
|
1811
|
-
this.
|
|
1913
|
+
this.o4h_1 = FileExtension_JSON_getInstance();
|
|
1914
|
+
this.p4h_1 = true;
|
|
1812
1915
|
}
|
|
1813
|
-
protoOf(OpenAPIV2Emitter).
|
|
1814
|
-
return this.
|
|
1916
|
+
protoOf(OpenAPIV2Emitter).xp = function () {
|
|
1917
|
+
return this.o4h_1;
|
|
1815
1918
|
};
|
|
1816
|
-
protoOf(OpenAPIV2Emitter).
|
|
1817
|
-
return this.
|
|
1919
|
+
protoOf(OpenAPIV2Emitter).wp = function () {
|
|
1920
|
+
return this.p4h_1;
|
|
1818
1921
|
};
|
|
1819
|
-
protoOf(OpenAPIV2Emitter).
|
|
1922
|
+
protoOf(OpenAPIV2Emitter).uo = function (ast, logger) {
|
|
1820
1923
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
1821
|
-
var this_0 = ast.
|
|
1924
|
+
var this_0 = ast.fp_1;
|
|
1822
1925
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1823
1926
|
var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
1824
1927
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -1826,27 +1929,27 @@ protoOf(OpenAPIV2Emitter).to = function (ast, logger) {
|
|
|
1826
1929
|
var _iterator__ex2g4s = tmp0.t();
|
|
1827
1930
|
while (_iterator__ex2g4s.u()) {
|
|
1828
1931
|
var element = _iterator__ex2g4s.v();
|
|
1829
|
-
logger.
|
|
1830
|
-
var list = new NonEmptyList(element.
|
|
1932
|
+
logger.bs('Combining Nodes from ' + element.gp_1.jo_1 + ' ');
|
|
1933
|
+
var list = new NonEmptyList(element.hp_1);
|
|
1831
1934
|
addAll(destination, list);
|
|
1832
1935
|
}
|
|
1833
1936
|
// Inline function 'kotlin.let' call
|
|
1834
1937
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
1835
|
-
var tmp = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().
|
|
1938
|
+
var tmp = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().o4h_1.yr_1;
|
|
1836
1939
|
var tmp0_0 = get_json();
|
|
1837
1940
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
1838
|
-
var value = OpenAPIV2Emitter_getInstance().
|
|
1941
|
+
var value = OpenAPIV2Emitter_getInstance().q4h(it, logger);
|
|
1839
1942
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
1840
|
-
var this_1 = tmp0_0.
|
|
1943
|
+
var this_1 = tmp0_0.l25();
|
|
1841
1944
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1842
1945
|
var this_2 = serializer(this_1, createKType(getKClass(OpenAPIV2Model), arrayOf([]), false));
|
|
1843
1946
|
var tmp$ret$7 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
1844
|
-
var tmp$ret$6 = tmp0_0.
|
|
1947
|
+
var tmp$ret$6 = tmp0_0.q2m(tmp$ret$7, value);
|
|
1845
1948
|
// Inline function 'kotlin.let' call
|
|
1846
1949
|
var it_0 = new Emitted(tmp, tmp$ret$6);
|
|
1847
1950
|
return nonEmptyListOf(it_0, []);
|
|
1848
1951
|
};
|
|
1849
|
-
protoOf(OpenAPIV2Emitter).
|
|
1952
|
+
protoOf(OpenAPIV2Emitter).q4h = function (statements, logger) {
|
|
1850
1953
|
var tmp0_info = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, VOID, '0.0.0');
|
|
1851
1954
|
var tmp1_consumes = listOf('application/json');
|
|
1852
1955
|
var tmp2_produces = listOf('application/json');
|
|
@@ -1862,15 +1965,15 @@ function OpenAPIV2Emitter_getInstance() {
|
|
|
1862
1965
|
}
|
|
1863
1966
|
function OpenAPIV2Parser$parse$lambda($strict) {
|
|
1864
1967
|
return function (it) {
|
|
1865
|
-
return new NonEmptyList(OpenAPIV2Parser_instance.
|
|
1968
|
+
return new NonEmptyList(OpenAPIV2Parser_instance.r4h((new OpenAPIV2(jsonDefault($strict))).a3d(it)));
|
|
1866
1969
|
};
|
|
1867
1970
|
}
|
|
1868
1971
|
function OpenAPIV2Parser() {
|
|
1869
1972
|
}
|
|
1870
|
-
protoOf(OpenAPIV2Parser).
|
|
1973
|
+
protoOf(OpenAPIV2Parser).u31 = function (moduleContent, strict) {
|
|
1871
1974
|
return parseOpenApi(moduleContent, OpenAPIV2Parser$parse$lambda(strict));
|
|
1872
1975
|
};
|
|
1873
|
-
protoOf(OpenAPIV2Parser).
|
|
1976
|
+
protoOf(OpenAPIV2Parser).r4h = function (_this__u8e3s4) {
|
|
1874
1977
|
// Inline function 'kotlin.collections.reduce' call
|
|
1875
1978
|
var iterator = listOf_0([parseEndpoints(_this__u8e3s4), parseParameters(_this__u8e3s4), parseRequestBody(_this__u8e3s4), parseResponseBody(_this__u8e3s4), parseDefinitions(_this__u8e3s4)]).t();
|
|
1876
1979
|
if (!iterator.u())
|
|
@@ -1885,7 +1988,7 @@ protoOf(OpenAPIV2Parser).z4h = function (_this__u8e3s4) {
|
|
|
1885
1988
|
var tmp = toNonEmptyListOrNull(resolveEndpointNameCollisions(tmp$ret$0));
|
|
1886
1989
|
// Inline function 'kotlin.let' call
|
|
1887
1990
|
var tmp_0 = tmp == null ? null : new NonEmptyList(tmp);
|
|
1888
|
-
var tmp_1 = tmp_0 == null ? null : tmp_0.
|
|
1991
|
+
var tmp_1 = tmp_0 == null ? null : tmp_0.en_1;
|
|
1889
1992
|
var tmp0_0 = tmp_1 == null ? null : new NonEmptyList(tmp_1);
|
|
1890
1993
|
var tmp$ret$4;
|
|
1891
1994
|
$l$block: {
|
|
@@ -1894,7 +1997,7 @@ protoOf(OpenAPIV2Parser).z4h = function (_this__u8e3s4) {
|
|
|
1894
1997
|
var message = 'Cannot yield empty AST for OpenAPI v2';
|
|
1895
1998
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1896
1999
|
} else {
|
|
1897
|
-
tmp$ret$4 = tmp0_0.
|
|
2000
|
+
tmp$ret$4 = tmp0_0.en_1;
|
|
1898
2001
|
break $l$block;
|
|
1899
2002
|
}
|
|
1900
2003
|
}
|
|
@@ -1906,7 +2009,7 @@ function OpenAPIV2Parser_getInstance() {
|
|
|
1906
2009
|
}
|
|
1907
2010
|
function parseEndpoints(_this__u8e3s4) {
|
|
1908
2011
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1909
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2012
|
+
var tmp0_elvis_lhs = _this__u8e3s4.g3d();
|
|
1910
2013
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1911
2014
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1912
2015
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -1916,7 +2019,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1916
2019
|
while (_iterator__ex2g4s.u()) {
|
|
1917
2020
|
var element = _iterator__ex2g4s.v();
|
|
1918
2021
|
// Inline function 'kotlin.collections.component1' call
|
|
1919
|
-
var path = element.n1().
|
|
2022
|
+
var path = element.n1().g3a_1;
|
|
1920
2023
|
// Inline function 'kotlin.collections.component2' call
|
|
1921
2024
|
var pathItem = element.o1();
|
|
1922
2025
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1931,10 +2034,10 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1931
2034
|
var method = element_0.n1();
|
|
1932
2035
|
// Inline function 'kotlin.collections.component2' call
|
|
1933
2036
|
var operation = element_0.o1();
|
|
1934
|
-
var parameters = plus_0(resolveParameters(_this__u8e3s4, pathItem.
|
|
2037
|
+
var parameters = plus_0(resolveParameters(_this__u8e3s4, pathItem.o1i()), resolveParameters(_this__u8e3s4, operation.o1i()));
|
|
1935
2038
|
var segments = toSegments(path, parameters);
|
|
1936
2039
|
var tmp0_elvis_lhs_0 = toName(operation);
|
|
1937
|
-
var name = tmp0_elvis_lhs_0 == null ? toName_0(path) + method.
|
|
2040
|
+
var name = tmp0_elvis_lhs_0 == null ? toName_0(path) + method.e3_1 : tmp0_elvis_lhs_0;
|
|
1938
2041
|
// Inline function 'kotlin.collections.filter' call
|
|
1939
2042
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1940
2043
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
@@ -1978,9 +2081,9 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1978
2081
|
// Inline function 'kotlin.let' call
|
|
1979
2082
|
var headers = new Shape(destination_4);
|
|
1980
2083
|
var tmp1_safe_receiver = operation instanceof OpenAPIV20Operation ? operation : null;
|
|
1981
|
-
var operationConsumes = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2084
|
+
var operationConsumes = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.y3h_1;
|
|
1982
2085
|
var tmp2_safe_receiver = operation instanceof OpenAPIV20Operation ? operation : null;
|
|
1983
|
-
var operationProduces = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
2086
|
+
var operationProduces = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.z3h_1;
|
|
1984
2087
|
// Inline function 'kotlin.collections.filter' call
|
|
1985
2088
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1986
2089
|
var destination_5 = ArrayList_init_$Create$_0();
|
|
@@ -1998,7 +2101,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1998
2101
|
while (_iterator__ex2g4s_6.u()) {
|
|
1999
2102
|
var element_4 = _iterator__ex2g4s_6.v();
|
|
2000
2103
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2001
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
2104
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.d3d();
|
|
2002
2105
|
var tmp = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
2003
2106
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2004
2107
|
var tmp$ret$36 = operationConsumes == null ? emptyList() : operationConsumes;
|
|
@@ -2018,7 +2121,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2018
2121
|
while (_iterator__ex2g4s_7.u()) {
|
|
2019
2122
|
var item_1 = _iterator__ex2g4s_7.v();
|
|
2020
2123
|
var isNullable = false;
|
|
2021
|
-
var schema = element_4.
|
|
2124
|
+
var schema = element_4.s3h_1;
|
|
2022
2125
|
var tmp_1;
|
|
2023
2126
|
if (!(schema == null) ? isInterface(schema, Reference) : false) {
|
|
2024
2127
|
tmp_1 = toReference(_this__u8e3s4, schema, isNullable);
|
|
@@ -2050,7 +2153,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2050
2153
|
}
|
|
2051
2154
|
var requests = tmp_2;
|
|
2052
2155
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2053
|
-
var tmp0_elvis_lhs_2 = operation.
|
|
2156
|
+
var tmp0_elvis_lhs_2 = operation.k1h();
|
|
2054
2157
|
// Inline function 'kotlin.collections.mapValues' call
|
|
2055
2158
|
var this_2 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
2056
2159
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
@@ -2061,7 +2164,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2061
2164
|
var element_5 = _iterator__ex2g4s_8.v();
|
|
2062
2165
|
var tmp_3 = element_5.n1();
|
|
2063
2166
|
var tmp$ret$50 = resolveResponse(_this__u8e3s4, element_5.o1());
|
|
2064
|
-
destination_8.
|
|
2167
|
+
destination_8.w2(tmp_3, tmp$ret$50);
|
|
2065
2168
|
}
|
|
2066
2169
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2067
2170
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2071,11 +2174,11 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2071
2174
|
while (_iterator__ex2g4s_9.u()) {
|
|
2072
2175
|
var element_6 = _iterator__ex2g4s_9.v();
|
|
2073
2176
|
// Inline function 'kotlin.collections.component1' call
|
|
2074
|
-
var status = element_6.n1().
|
|
2177
|
+
var status = element_6.n1().k3a_1;
|
|
2075
2178
|
// Inline function 'kotlin.collections.component2' call
|
|
2076
2179
|
var res = element_6.o1();
|
|
2077
2180
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2078
|
-
var tmp0_elvis_lhs_3 = _this__u8e3s4.
|
|
2181
|
+
var tmp0_elvis_lhs_3 = _this__u8e3s4.e3d();
|
|
2079
2182
|
var tmp_4 = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
|
|
2080
2183
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2081
2184
|
var tmp$ret$58 = operationProduces == null ? emptyList() : operationProduces;
|
|
@@ -2094,9 +2197,9 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2094
2197
|
var _iterator__ex2g4s_10 = this_4.t();
|
|
2095
2198
|
while (_iterator__ex2g4s_10.u()) {
|
|
2096
2199
|
var item_2 = _iterator__ex2g4s_10.v();
|
|
2097
|
-
var tmp3_annotations = toDescriptionAnnotationList(res.
|
|
2200
|
+
var tmp3_annotations = toDescriptionAnnotationList(res.q3a());
|
|
2098
2201
|
var tmp4_status = _StatusCode___get_value__impl__we50mu(status);
|
|
2099
|
-
var tmp0_safe_receiver = res.
|
|
2202
|
+
var tmp0_safe_receiver = res.i1h();
|
|
2100
2203
|
var tmp_6;
|
|
2101
2204
|
if (tmp0_safe_receiver == null) {
|
|
2102
2205
|
tmp_6 = null;
|
|
@@ -2123,7 +2226,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2123
2226
|
var p0 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
2124
2227
|
var tmp5_headers = new Shape(p0);
|
|
2125
2228
|
var tmp1_safe_receiver_0 = res instanceof OpenAPIV20Response ? res : null;
|
|
2126
|
-
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
2229
|
+
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.u3i_1;
|
|
2127
2230
|
var tmp_7;
|
|
2128
2231
|
if (tmp2_safe_receiver_0 == null) {
|
|
2129
2232
|
tmp_7 = null;
|
|
@@ -2154,13 +2257,13 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2154
2257
|
var _iterator__ex2g4s_12 = destination_9.t();
|
|
2155
2258
|
while (_iterator__ex2g4s_12.u()) {
|
|
2156
2259
|
var e = _iterator__ex2g4s_12.v();
|
|
2157
|
-
var key = to(e.
|
|
2260
|
+
var key = to(e.sr_1, e.ur_1);
|
|
2158
2261
|
if (set.x(key)) {
|
|
2159
2262
|
list_1.x(e);
|
|
2160
2263
|
}
|
|
2161
2264
|
}
|
|
2162
2265
|
var responses = list_1;
|
|
2163
|
-
var list_2 = listOf(new Endpoint(null, toDescriptionAnnotationList(operation.
|
|
2266
|
+
var list_2 = listOf(new Endpoint(null, toDescriptionAnnotationList(operation.q3a()), new DefinitionIdentifier(sanitize(name)), method, segments, query, headers, requests, responses));
|
|
2164
2267
|
addAll(destination_0, list_2);
|
|
2165
2268
|
}
|
|
2166
2269
|
var list_3 = destination_0;
|
|
@@ -2179,7 +2282,7 @@ function parseResponseBody(_this__u8e3s4) {
|
|
|
2179
2282
|
}
|
|
2180
2283
|
function parseDefinitions(_this__u8e3s4) {
|
|
2181
2284
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2182
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2285
|
+
var tmp0_elvis_lhs = _this__u8e3s4.f3d();
|
|
2183
2286
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2184
2287
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2185
2288
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -2215,7 +2318,7 @@ function parseDefinitions(_this__u8e3s4) {
|
|
|
2215
2318
|
var _iterator__ex2g4s_0 = destination.t();
|
|
2216
2319
|
while (_iterator__ex2g4s_0.u()) {
|
|
2217
2320
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
2218
|
-
var tmp0_subject = element_0.
|
|
2321
|
+
var tmp0_subject = element_0.hf_1.w3a();
|
|
2219
2322
|
var tmp_0;
|
|
2220
2323
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
2221
2324
|
tmp_0 = true;
|
|
@@ -2244,7 +2347,7 @@ function parseDefinitions(_this__u8e3s4) {
|
|
|
2244
2347
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
2245
2348
|
while (_iterator__ex2g4s_1.u()) {
|
|
2246
2349
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
2247
|
-
var list = flatten(_this__u8e3s4, element_1.
|
|
2350
|
+
var list = flatten(_this__u8e3s4, element_1.hf_1, className([element_1.gf_1]));
|
|
2248
2351
|
addAll(destination_1, list);
|
|
2249
2352
|
}
|
|
2250
2353
|
return destination_1;
|
|
@@ -2313,7 +2416,7 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
2313
2416
|
var _iterator__ex2g4s_0 = parameters.t();
|
|
2314
2417
|
while (_iterator__ex2g4s_0.u()) {
|
|
2315
2418
|
var element = _iterator__ex2g4s_0.v();
|
|
2316
|
-
if (element.
|
|
2419
|
+
if (element.t3h_1 === param) {
|
|
2317
2420
|
tmp$ret$5 = element;
|
|
2318
2421
|
break $l$block;
|
|
2319
2422
|
}
|
|
@@ -2356,20 +2459,20 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
2356
2459
|
return destination;
|
|
2357
2460
|
}
|
|
2358
2461
|
function get_location(_this__u8e3s4) {
|
|
2359
|
-
return _this__u8e3s4.
|
|
2462
|
+
return _this__u8e3s4.r3h_1;
|
|
2360
2463
|
}
|
|
2361
2464
|
function toField(_this__u8e3s4, parameter, name) {
|
|
2362
2465
|
// Inline function 'kotlin.let' call
|
|
2363
2466
|
var schema = resolveParameter(_this__u8e3s4, parameter);
|
|
2364
|
-
var tmp0_elvis_lhs = parameter.
|
|
2467
|
+
var tmp0_elvis_lhs = parameter.y3g_1;
|
|
2365
2468
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
2366
2469
|
var tmp;
|
|
2367
|
-
if (!(parameter.
|
|
2368
|
-
tmp = new Custom(sanitize(className([name, 'Parameter', schema.
|
|
2470
|
+
if (!(parameter.p3h_1 == null)) {
|
|
2471
|
+
tmp = new Custom(sanitize(className([name, 'Parameter', schema.t3h_1])), isNullable);
|
|
2369
2472
|
} else {
|
|
2370
|
-
var tmp1_subject = schema.
|
|
2473
|
+
var tmp1_subject = schema.z3g_1;
|
|
2371
2474
|
var tmp_0;
|
|
2372
|
-
switch (tmp1_subject == null ? -1 : tmp1_subject.
|
|
2475
|
+
switch (tmp1_subject == null ? -1 : tmp1_subject.f3_1) {
|
|
2373
2476
|
case 0:
|
|
2374
2477
|
case 1:
|
|
2375
2478
|
case 2:
|
|
@@ -2380,7 +2483,7 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2380
2483
|
tmp_0 = new Primitive(primitive, isNullable);
|
|
2381
2484
|
break;
|
|
2382
2485
|
case 4:
|
|
2383
|
-
var tmp2_safe_receiver = schema.
|
|
2486
|
+
var tmp2_safe_receiver = schema.a3h_1;
|
|
2384
2487
|
var tmp_1;
|
|
2385
2488
|
if (tmp2_safe_receiver == null) {
|
|
2386
2489
|
tmp_1 = null;
|
|
@@ -2434,17 +2537,17 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2434
2537
|
}
|
|
2435
2538
|
// Inline function 'kotlin.let' call
|
|
2436
2539
|
var it = tmp;
|
|
2437
|
-
var tmp0_identifier = new FieldIdentifier(parameter.
|
|
2438
|
-
var tmp1_annotations = toDescriptionAnnotationList(parameter.
|
|
2540
|
+
var tmp0_identifier = new FieldIdentifier(parameter.t3h_1);
|
|
2541
|
+
var tmp1_annotations = toDescriptionAnnotationList(parameter.x3g_1);
|
|
2439
2542
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
2440
2543
|
}
|
|
2441
2544
|
function toReference(_this__u8e3s4, reference, isNullable) {
|
|
2442
2545
|
var _destruct__k2r9zo = resolveSchemaRef(_this__u8e3s4, reference);
|
|
2443
|
-
var referencingObject = _destruct__k2r9zo.
|
|
2444
|
-
var schema = _destruct__k2r9zo.
|
|
2546
|
+
var referencingObject = _destruct__k2r9zo.af();
|
|
2547
|
+
var schema = _destruct__k2r9zo.bf();
|
|
2445
2548
|
var tmp;
|
|
2446
|
-
if (exists(schema.
|
|
2447
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2549
|
+
if (exists(schema.w3a())) {
|
|
2550
|
+
var additionalProperties = ensureNotNull(schema.w3a());
|
|
2448
2551
|
var tmp_0;
|
|
2449
2552
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
2450
2553
|
tmp_0 = new Dict(new Any(false), isNullable);
|
|
@@ -2460,15 +2563,15 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2460
2563
|
}
|
|
2461
2564
|
}
|
|
2462
2565
|
tmp = tmp_0;
|
|
2463
|
-
} else if (!(schema.
|
|
2566
|
+
} else if (!(schema.s3a() == null)) {
|
|
2464
2567
|
tmp = new Custom(sanitize(className([getReference(referencingObject)])), isNullable);
|
|
2465
2568
|
} else if (isPrimitive(get_primitiveType(schema))) {
|
|
2466
2569
|
tmp = new Primitive(toPrimitive_0(schema), isNullable);
|
|
2467
2570
|
} else {
|
|
2468
2571
|
var tmp0_subject = get_primitiveType(schema);
|
|
2469
2572
|
var tmp_1;
|
|
2470
|
-
if ((tmp0_subject == null ? -1 : tmp0_subject.
|
|
2471
|
-
var items = schema.
|
|
2573
|
+
if ((tmp0_subject == null ? -1 : tmp0_subject.f3_1) === 4) {
|
|
2574
|
+
var items = schema.t3a();
|
|
2472
2575
|
var tmp_2;
|
|
2473
2576
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
2474
2577
|
tmp_2 = toIterable(toReference(_this__u8e3s4, items, false), isNullable);
|
|
@@ -2478,7 +2581,7 @@ function toReference(_this__u8e3s4, reference, isNullable) {
|
|
|
2478
2581
|
} else {
|
|
2479
2582
|
if (items == null) {
|
|
2480
2583
|
// Inline function 'kotlin.error' call
|
|
2481
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.
|
|
2584
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.p3a());
|
|
2482
2585
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2483
2586
|
} else {
|
|
2484
2587
|
noWhenBranchMatchedException();
|
|
@@ -2501,20 +2604,20 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2501
2604
|
var tmp_3;
|
|
2502
2605
|
var tmp_4;
|
|
2503
2606
|
var tmp_5;
|
|
2504
|
-
var tmp0_safe_receiver = schema.
|
|
2607
|
+
var tmp0_safe_receiver = schema.u3a();
|
|
2505
2608
|
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c1()) === 1) {
|
|
2506
|
-
var tmp_6 = first(ensureNotNull(schema.
|
|
2609
|
+
var tmp_6 = first(ensureNotNull(schema.u3a()));
|
|
2507
2610
|
tmp_5 = isInterface(tmp_6, Reference);
|
|
2508
2611
|
} else {
|
|
2509
2612
|
tmp_5 = false;
|
|
2510
2613
|
}
|
|
2511
2614
|
if (tmp_5) {
|
|
2512
|
-
tmp_4 = schema.
|
|
2615
|
+
tmp_4 = schema.v3a() == null;
|
|
2513
2616
|
} else {
|
|
2514
2617
|
tmp_4 = false;
|
|
2515
2618
|
}
|
|
2516
2619
|
if (tmp_4) {
|
|
2517
|
-
tmp_3 = schema.
|
|
2620
|
+
tmp_3 = schema.s3a() == null;
|
|
2518
2621
|
} else {
|
|
2519
2622
|
tmp_3 = false;
|
|
2520
2623
|
}
|
|
@@ -2524,21 +2627,21 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2524
2627
|
tmp_2 = false;
|
|
2525
2628
|
}
|
|
2526
2629
|
if (tmp_2) {
|
|
2527
|
-
tmp_1 = schema.
|
|
2630
|
+
tmp_1 = schema.t3a() == null;
|
|
2528
2631
|
} else {
|
|
2529
2632
|
tmp_1 = false;
|
|
2530
2633
|
}
|
|
2531
2634
|
if (tmp_1) {
|
|
2532
|
-
tmp_0 = schema.
|
|
2635
|
+
tmp_0 = schema.w3a() == null;
|
|
2533
2636
|
} else {
|
|
2534
2637
|
tmp_0 = false;
|
|
2535
2638
|
}
|
|
2536
2639
|
if (tmp_0) {
|
|
2537
|
-
var tmp_7 = first(ensureNotNull(schema.
|
|
2640
|
+
var tmp_7 = first(ensureNotNull(schema.u3a()));
|
|
2538
2641
|
tmp = toReference(_this__u8e3s4, isInterface(tmp_7, Reference) ? tmp_7 : THROW_CCE(), isNullable);
|
|
2539
2642
|
} else {
|
|
2540
|
-
if (!(schema.
|
|
2541
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2643
|
+
if (!(schema.w3a() == null)) {
|
|
2644
|
+
var additionalProperties = ensureNotNull(schema.w3a());
|
|
2542
2645
|
var tmp_8;
|
|
2543
2646
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
2544
2647
|
tmp_8 = new Dict(new Any(false), isNullable);
|
|
@@ -2549,7 +2652,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2549
2652
|
if (isInterface(additionalProperties, Schema)) {
|
|
2550
2653
|
// Inline function 'kotlin.takeIf' call
|
|
2551
2654
|
var tmp_9;
|
|
2552
|
-
if (isPrimitive(get_primitiveType(additionalProperties)) || !(additionalProperties.
|
|
2655
|
+
if (isPrimitive(get_primitiveType(additionalProperties)) || !(additionalProperties.v3a() == null)) {
|
|
2553
2656
|
tmp_9 = additionalProperties;
|
|
2554
2657
|
} else {
|
|
2555
2658
|
tmp_9 = null;
|
|
@@ -2571,9 +2674,9 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2571
2674
|
}
|
|
2572
2675
|
tmp = tmp_8;
|
|
2573
2676
|
} else {
|
|
2574
|
-
if (!(schema.
|
|
2677
|
+
if (!(schema.s3a() == null)) {
|
|
2575
2678
|
var tmp_11;
|
|
2576
|
-
if (!(schema.
|
|
2679
|
+
if (!(schema.w3a() == null)) {
|
|
2577
2680
|
tmp_11 = new Dict(new Custom(sanitize(name), false), isNullable);
|
|
2578
2681
|
} else {
|
|
2579
2682
|
tmp_11 = new Custom(sanitize(name), isNullable);
|
|
@@ -2582,13 +2685,13 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2582
2685
|
} else {
|
|
2583
2686
|
var tmp3_subject = get_primitiveType(schema);
|
|
2584
2687
|
var tmp_12;
|
|
2585
|
-
switch (tmp3_subject == null ? -1 : tmp3_subject.
|
|
2688
|
+
switch (tmp3_subject == null ? -1 : tmp3_subject.f3_1) {
|
|
2586
2689
|
case 0:
|
|
2587
2690
|
case 2:
|
|
2588
2691
|
case 1:
|
|
2589
2692
|
case 3:
|
|
2590
2693
|
var tmp_13;
|
|
2591
|
-
if (!(schema.
|
|
2694
|
+
if (!(schema.w3a() == null)) {
|
|
2592
2695
|
tmp_13 = new Dict(new Primitive(toPrimitive_0(schema), false), isNullable);
|
|
2593
2696
|
} else {
|
|
2594
2697
|
tmp_13 = new Primitive(toPrimitive_0(schema), isNullable);
|
|
@@ -2599,17 +2702,17 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2599
2702
|
case -1:
|
|
2600
2703
|
case 5:
|
|
2601
2704
|
var tmp_14;
|
|
2602
|
-
var tmp_15 = schema.
|
|
2705
|
+
var tmp_15 = schema.w3a();
|
|
2603
2706
|
if (!(tmp_15 == null) ? isInterface(tmp_15, BooleanValue) : false) {
|
|
2604
2707
|
var tmp_16;
|
|
2605
|
-
if (!(schema.
|
|
2708
|
+
if (!(schema.w3a() == null)) {
|
|
2606
2709
|
tmp_16 = new Dict(new Any(isNullable), false);
|
|
2607
2710
|
} else {
|
|
2608
2711
|
tmp_16 = new Any(isNullable);
|
|
2609
2712
|
}
|
|
2610
2713
|
tmp_14 = tmp_16;
|
|
2611
2714
|
} else {
|
|
2612
|
-
if (!(schema.
|
|
2715
|
+
if (!(schema.w3a() == null)) {
|
|
2613
2716
|
new Dict(new Custom(sanitize(name), isNullable), false);
|
|
2614
2717
|
}
|
|
2615
2718
|
tmp_14 = new Custom(sanitize(name), isNullable);
|
|
@@ -2618,7 +2721,7 @@ function toReference_0(_this__u8e3s4, schema, name, isNullable) {
|
|
|
2618
2721
|
tmp_12 = tmp_14;
|
|
2619
2722
|
break;
|
|
2620
2723
|
case 4:
|
|
2621
|
-
var items = schema.
|
|
2724
|
+
var items = schema.t3a();
|
|
2622
2725
|
var tmp_17;
|
|
2623
2726
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
2624
2727
|
tmp_17 = toIterable(toReference(_this__u8e3s4, items, false), isNullable);
|
|
@@ -2678,10 +2781,10 @@ function toField_0(_this__u8e3s4, header, identifier) {
|
|
|
2678
2781
|
}
|
|
2679
2782
|
var v20 = tmp;
|
|
2680
2783
|
var tmp5_identifier = new FieldIdentifier(identifier);
|
|
2681
|
-
var tmp6_annotations = toDescriptionAnnotationList(header.
|
|
2784
|
+
var tmp6_annotations = toDescriptionAnnotationList(header.d3j_1);
|
|
2682
2785
|
var tmp_0;
|
|
2683
|
-
if (v20.
|
|
2684
|
-
var tmp2_safe_receiver = v20.
|
|
2786
|
+
if (v20.e3j_1.f3_1 === 4) {
|
|
2787
|
+
var tmp2_safe_receiver = v20.g3j_1;
|
|
2685
2788
|
var tmp_1;
|
|
2686
2789
|
if (tmp2_safe_receiver == null) {
|
|
2687
2790
|
tmp_1 = null;
|
|
@@ -2765,17 +2868,17 @@ function resolveParameter(_this__u8e3s4, parameterOrReference) {
|
|
|
2765
2868
|
}
|
|
2766
2869
|
function get_primitiveType(_this__u8e3s4) {
|
|
2767
2870
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof OpenAPIV20Schema ? _this__u8e3s4 : null;
|
|
2768
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2871
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o3f_1;
|
|
2769
2872
|
}
|
|
2770
2873
|
function flatten(_this__u8e3s4, schemaObject, name) {
|
|
2771
2874
|
var tmp;
|
|
2772
|
-
if (exists(schemaObject.
|
|
2773
|
-
var tmp0_subject = schemaObject.
|
|
2875
|
+
if (exists(schemaObject.w3a())) {
|
|
2876
|
+
var tmp0_subject = schemaObject.w3a();
|
|
2774
2877
|
var tmp_0;
|
|
2775
2878
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
2776
2879
|
tmp_0 = emptyList();
|
|
2777
2880
|
} else {
|
|
2778
|
-
var tmp1_safe_receiver = schemaObject.
|
|
2881
|
+
var tmp1_safe_receiver = schemaObject.w3a();
|
|
2779
2882
|
var tmp_1;
|
|
2780
2883
|
if (tmp1_safe_receiver == null) {
|
|
2781
2884
|
tmp_1 = null;
|
|
@@ -2790,7 +2893,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2790
2893
|
} else {
|
|
2791
2894
|
// Inline function 'kotlin.takeIf' call
|
|
2792
2895
|
var tmp_3;
|
|
2793
|
-
if (!(tmp2_safe_receiver.
|
|
2896
|
+
if (!(tmp2_safe_receiver.v3a() == null)) {
|
|
2794
2897
|
tmp_3 = tmp2_safe_receiver;
|
|
2795
2898
|
} else {
|
|
2796
2899
|
tmp_3 = null;
|
|
@@ -2809,11 +2912,11 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2809
2912
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
2810
2913
|
}
|
|
2811
2914
|
tmp = tmp_0;
|
|
2812
|
-
} else if (!(schemaObject.
|
|
2813
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
2915
|
+
} else if (!(schemaObject.u3a() == null)) {
|
|
2916
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.q3a());
|
|
2814
2917
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
2815
2918
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2816
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
2919
|
+
var tmp0_elvis_lhs = schemaObject.u3a();
|
|
2817
2920
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2818
2921
|
var tmp0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2819
2922
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2826,7 +2929,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2826
2929
|
tmp_7 = toField_1(_this__u8e3s4, element, name);
|
|
2827
2930
|
} else {
|
|
2828
2931
|
if (isInterface(element, Reference)) {
|
|
2829
|
-
tmp_7 = toField_1(_this__u8e3s4, resolveSchemaRef(_this__u8e3s4, element).
|
|
2932
|
+
tmp_7 = toField_1(_this__u8e3s4, resolveSchemaRef(_this__u8e3s4, element).hf_1, getReference(element));
|
|
2830
2933
|
} else {
|
|
2831
2934
|
noWhenBranchMatchedException();
|
|
2832
2935
|
}
|
|
@@ -2840,14 +2943,14 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2840
2943
|
var _iterator__ex2g4s_0 = destination.t();
|
|
2841
2944
|
while (_iterator__ex2g4s_0.u()) {
|
|
2842
2945
|
var e = _iterator__ex2g4s_0.v();
|
|
2843
|
-
var key = e.
|
|
2946
|
+
var key = e.pp_1;
|
|
2844
2947
|
if (set.x(key)) {
|
|
2845
2948
|
list_0.x(e);
|
|
2846
2949
|
}
|
|
2847
2950
|
}
|
|
2848
2951
|
var tmp_8 = listOf(new Type(null, tmp_5, tmp_6, new Shape(list_0), emptyList()));
|
|
2849
2952
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2850
|
-
var tmp0_0 = ensureNotNull(schemaObject.
|
|
2953
|
+
var tmp0_0 = ensureNotNull(schemaObject.u3a());
|
|
2851
2954
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2852
2955
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
2853
2956
|
var _iterator__ex2g4s_1 = tmp0_0.t();
|
|
@@ -2859,7 +2962,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2859
2962
|
} else {
|
|
2860
2963
|
if (isInterface(element_0, Schema)) {
|
|
2861
2964
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2862
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
2965
|
+
var tmp0_elvis_lhs_0 = element_0.v3a();
|
|
2863
2966
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2864
2967
|
var tmp0_1 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2865
2968
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2894,29 +2997,29 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2894
2997
|
addAll(destination_0, list_2);
|
|
2895
2998
|
}
|
|
2896
2999
|
tmp = plus_0(tmp_8, destination_0);
|
|
2897
|
-
} else if (!(schemaObject.
|
|
3000
|
+
} else if (!(schemaObject.s3a() == null)) {
|
|
2898
3001
|
// Inline function 'kotlin.collections.map' call
|
|
2899
|
-
var this_0 = ensureNotNull(schemaObject.
|
|
3002
|
+
var this_0 = ensureNotNull(schemaObject.s3a());
|
|
2900
3003
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2901
3004
|
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
2902
3005
|
var _iterator__ex2g4s_3 = this_0.t();
|
|
2903
3006
|
while (_iterator__ex2g4s_3.u()) {
|
|
2904
3007
|
var item = _iterator__ex2g4s_3.v();
|
|
2905
|
-
var tmp$ret$24 = item.
|
|
3008
|
+
var tmp$ret$24 = item.m1i();
|
|
2906
3009
|
destination_2.x(tmp$ret$24);
|
|
2907
3010
|
}
|
|
2908
3011
|
// Inline function 'kotlin.let' call
|
|
2909
3012
|
var it = toSet(destination_2);
|
|
2910
|
-
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.
|
|
3013
|
+
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.q3a()), new DefinitionIdentifier(sanitize(name)), it));
|
|
2911
3014
|
} else {
|
|
2912
3015
|
var tmp5_subject = get_primitiveType(schemaObject);
|
|
2913
3016
|
var tmp_11;
|
|
2914
|
-
switch (tmp5_subject == null ? -1 : tmp5_subject.
|
|
3017
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.f3_1) {
|
|
2915
3018
|
case -1:
|
|
2916
3019
|
case 5:
|
|
2917
3020
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2918
3021
|
|
|
2919
|
-
var tmp0_elvis_lhs_1 = schemaObject.
|
|
3022
|
+
var tmp0_elvis_lhs_1 = schemaObject.v3a();
|
|
2920
3023
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2921
3024
|
|
|
2922
3025
|
var tmp0_2 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
@@ -2937,11 +3040,11 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2937
3040
|
}
|
|
2938
3041
|
|
|
2939
3042
|
var fields = destination_3;
|
|
2940
|
-
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.
|
|
3043
|
+
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.q3a()), new DefinitionIdentifier(sanitize(name)), new Shape(toField_1(_this__u8e3s4, schemaObject, name)), emptyList()));
|
|
2941
3044
|
tmp_11 = plus_0(schema, fields);
|
|
2942
3045
|
break;
|
|
2943
3046
|
case 4:
|
|
2944
|
-
var it_0 = schemaObject.
|
|
3047
|
+
var it_0 = schemaObject.t3a();
|
|
2945
3048
|
var tmp_12;
|
|
2946
3049
|
if (!(it_0 == null) ? isInterface(it_0, Reference) : false) {
|
|
2947
3050
|
tmp_12 = emptyList();
|
|
@@ -2968,8 +3071,8 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2968
3071
|
return tmp;
|
|
2969
3072
|
}
|
|
2970
3073
|
function resolveParameterObject(_this__u8e3s4, reference) {
|
|
2971
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2972
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3074
|
+
var tmp0_safe_receiver = _this__u8e3s4.o1i();
|
|
3075
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t2(getReference(reference));
|
|
2973
3076
|
var tmp;
|
|
2974
3077
|
if (tmp1_safe_receiver == null) {
|
|
2975
3078
|
tmp = null;
|
|
@@ -2981,7 +3084,7 @@ function resolveParameterObject(_this__u8e3s4, reference) {
|
|
|
2981
3084
|
var tmp_0;
|
|
2982
3085
|
if (tmp2_elvis_lhs == null) {
|
|
2983
3086
|
// Inline function 'kotlin.error' call
|
|
2984
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
3087
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.p3a());
|
|
2985
3088
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2986
3089
|
} else {
|
|
2987
3090
|
tmp_0 = tmp2_elvis_lhs;
|
|
@@ -2989,17 +3092,17 @@ function resolveParameterObject(_this__u8e3s4, reference) {
|
|
|
2989
3092
|
return tmp_0;
|
|
2990
3093
|
}
|
|
2991
3094
|
function toPrimitive(_this__u8e3s4) {
|
|
2992
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3095
|
+
var tmp0_subject = _this__u8e3s4.g1i();
|
|
2993
3096
|
var tmp;
|
|
2994
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
3097
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.f3_1) {
|
|
2995
3098
|
case 0:
|
|
2996
|
-
tmp =
|
|
3099
|
+
tmp = _this__u8e3s4.y3a() == null && _this__u8e3s4.x3a() === 'binary' ? Bytes_instance : stringType(_this__u8e3s4.y3a(), _this__u8e3s4.x3a());
|
|
2997
3100
|
break;
|
|
2998
3101
|
case 2:
|
|
2999
|
-
tmp = new Integer(_this__u8e3s4.
|
|
3102
|
+
tmp = new Integer(_this__u8e3s4.x3a() === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
3000
3103
|
break;
|
|
3001
3104
|
case 1:
|
|
3002
|
-
tmp = new Number_0(_this__u8e3s4.
|
|
3105
|
+
tmp = new Number_0(_this__u8e3s4.x3a() === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
3003
3106
|
break;
|
|
3004
3107
|
case 3:
|
|
3005
3108
|
tmp = Boolean_instance;
|
|
@@ -3018,7 +3121,7 @@ function resolve(_this__u8e3s4, schemaOrReference) {
|
|
|
3018
3121
|
tmp = schemaOrReference;
|
|
3019
3122
|
} else {
|
|
3020
3123
|
if (isInterface(schemaOrReference, Reference)) {
|
|
3021
|
-
tmp = resolveSchemaRef(_this__u8e3s4, schemaOrReference).
|
|
3124
|
+
tmp = resolveSchemaRef(_this__u8e3s4, schemaOrReference).hf_1;
|
|
3022
3125
|
} else {
|
|
3023
3126
|
noWhenBranchMatchedException();
|
|
3024
3127
|
}
|
|
@@ -3029,12 +3132,12 @@ function toPrimitive_0(_this__u8e3s4) {
|
|
|
3029
3132
|
return toPrimitive(isInterface(_this__u8e3s4, OpenAPIV20Base) ? _this__u8e3s4 : THROW_CCE());
|
|
3030
3133
|
}
|
|
3031
3134
|
function resolveSchemaRef(_this__u8e3s4, reference) {
|
|
3032
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3033
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3135
|
+
var tmp0_safe_receiver = _this__u8e3s4.f3d();
|
|
3136
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t2(getReference(reference));
|
|
3034
3137
|
var tmp;
|
|
3035
3138
|
if (tmp1_elvis_lhs == null) {
|
|
3036
3139
|
// Inline function 'kotlin.error' call
|
|
3037
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
3140
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.p3a());
|
|
3038
3141
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
3039
3142
|
} else {
|
|
3040
3143
|
tmp = tmp1_elvis_lhs;
|
|
@@ -3076,7 +3179,7 @@ function exists(_this__u8e3s4) {
|
|
|
3076
3179
|
}
|
|
3077
3180
|
function isPrimitive(_this__u8e3s4) {
|
|
3078
3181
|
var tmp;
|
|
3079
|
-
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.
|
|
3182
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.f3_1) {
|
|
3080
3183
|
case 0:
|
|
3081
3184
|
tmp = true;
|
|
3082
3185
|
break;
|
|
@@ -3108,12 +3211,12 @@ function isPrimitive(_this__u8e3s4) {
|
|
|
3108
3211
|
return tmp;
|
|
3109
3212
|
}
|
|
3110
3213
|
function resolveResponseObject(_this__u8e3s4, reference) {
|
|
3111
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3112
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3214
|
+
var tmp0_safe_receiver = _this__u8e3s4.k1h();
|
|
3215
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t2(getReference(reference));
|
|
3113
3216
|
var tmp;
|
|
3114
3217
|
if (tmp1_elvis_lhs == null) {
|
|
3115
3218
|
// Inline function 'kotlin.error' call
|
|
3116
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
3219
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.p3a());
|
|
3117
3220
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
3118
3221
|
} else {
|
|
3119
3222
|
tmp = tmp1_elvis_lhs;
|
|
@@ -3126,7 +3229,7 @@ function resolve_0(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
3126
3229
|
tmp = schemaOrReferenceOrBoolean;
|
|
3127
3230
|
} else {
|
|
3128
3231
|
if (isInterface(schemaOrReferenceOrBoolean, Reference)) {
|
|
3129
|
-
tmp = resolveSchemaRef(_this__u8e3s4, schemaOrReferenceOrBoolean).
|
|
3232
|
+
tmp = resolveSchemaRef(_this__u8e3s4, schemaOrReferenceOrBoolean).hf_1;
|
|
3130
3233
|
} else {
|
|
3131
3234
|
if (isInterface(schemaOrReferenceOrBoolean, BooleanValue)) {
|
|
3132
3235
|
// Inline function 'kotlin.TODO' call
|
|
@@ -3141,7 +3244,7 @@ function resolve_0(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
3141
3244
|
}
|
|
3142
3245
|
function toField_1(_this__u8e3s4, schema, name) {
|
|
3143
3246
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3144
|
-
var tmp0_elvis_lhs = schema.
|
|
3247
|
+
var tmp0_elvis_lhs = schema.v3a();
|
|
3145
3248
|
// Inline function 'kotlin.collections.map' call
|
|
3146
3249
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3147
3250
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3154,16 +3257,16 @@ function toField_1(_this__u8e3s4, schema, name) {
|
|
|
3154
3257
|
var key = item.n1();
|
|
3155
3258
|
// Inline function 'kotlin.collections.component2' call
|
|
3156
3259
|
var value = item.o1();
|
|
3157
|
-
var tmp0_safe_receiver = schema.
|
|
3260
|
+
var tmp0_safe_receiver = schema.e1w();
|
|
3158
3261
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i1(key);
|
|
3159
3262
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
3160
3263
|
var tmp;
|
|
3161
3264
|
if (isInterface(value, Schema)) {
|
|
3162
3265
|
// Inline function 'kotlin.let' call
|
|
3163
|
-
var reference = !(value.
|
|
3266
|
+
var reference = !(value.s3a() == 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);
|
|
3164
3267
|
var tmp1_identifier = new FieldIdentifier(key);
|
|
3165
3268
|
var tmp2_annotations = emptyList();
|
|
3166
|
-
var tmp0_safe_receiver_0 = value.
|
|
3269
|
+
var tmp0_safe_receiver_0 = value.r3a();
|
|
3167
3270
|
var tmp3_defaultValue = tmp0_safe_receiver_0 == null ? null : toDefaultValue(tmp0_safe_receiver_0, reference);
|
|
3168
3271
|
tmp = new Field(tmp2_annotations, tmp1_identifier, reference, tmp3_defaultValue);
|
|
3169
3272
|
} else {
|
|
@@ -3183,9 +3286,9 @@ function toField_1(_this__u8e3s4, schema, name) {
|
|
|
3183
3286
|
}
|
|
3184
3287
|
function parseParameters$lambda($this_parseParameters) {
|
|
3185
3288
|
return function ($this$flatMapRequests) {
|
|
3186
|
-
var parameters = plus_0(resolveParameters($this_parseParameters, $this$flatMapRequests.
|
|
3187
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
3188
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
3289
|
+
var parameters = plus_0(resolveParameters($this_parseParameters, $this$flatMapRequests.y4g_1.o1i()), resolveParameters($this_parseParameters, $this$flatMapRequests.a4h_1.o1i()));
|
|
3290
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.a4h_1);
|
|
3291
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.x4g_1) + $this$flatMapRequests.z4g_1.e3_1 : tmp0_elvis_lhs;
|
|
3189
3292
|
// Inline function 'kotlin.collections.filter' call
|
|
3190
3293
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3191
3294
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -3202,13 +3305,13 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
3202
3305
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3203
3306
|
while (_iterator__ex2g4s_0.u()) {
|
|
3204
3307
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3205
|
-
var tmp0_safe_receiver = element_0.
|
|
3308
|
+
var tmp0_safe_receiver = element_0.s3h_1;
|
|
3206
3309
|
var tmp;
|
|
3207
3310
|
if (tmp0_safe_receiver == null) {
|
|
3208
3311
|
tmp = null;
|
|
3209
3312
|
} else {
|
|
3210
3313
|
// Inline function 'kotlin.let' call
|
|
3211
|
-
tmp = flattenSchemaOrRef($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element_0.
|
|
3314
|
+
tmp = flattenSchemaOrRef($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element_0.t3h_1]));
|
|
3212
3315
|
}
|
|
3213
3316
|
var tmp1_elvis_lhs = tmp;
|
|
3214
3317
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -3219,9 +3322,9 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
3219
3322
|
}
|
|
3220
3323
|
function parseRequestBody$lambda($this_parseRequestBody) {
|
|
3221
3324
|
return function ($this$flatMapRequests) {
|
|
3222
|
-
var parameters = plus_0(resolveParameters($this_parseRequestBody, $this$flatMapRequests.
|
|
3223
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
3224
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
3325
|
+
var parameters = plus_0(resolveParameters($this_parseRequestBody, $this$flatMapRequests.y4g_1.o1i()), resolveParameters($this_parseRequestBody, $this$flatMapRequests.a4h_1.o1i()));
|
|
3326
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.a4h_1);
|
|
3327
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.x4g_1) + $this$flatMapRequests.z4g_1.e3_1 : tmp0_elvis_lhs;
|
|
3225
3328
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3226
3329
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3227
3330
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -3229,17 +3332,17 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3229
3332
|
while (_iterator__ex2g4s.u()) {
|
|
3230
3333
|
var element = _iterator__ex2g4s.v();
|
|
3231
3334
|
var tmp;
|
|
3232
|
-
if (!(element.
|
|
3233
|
-
var tmp_0 = toDescriptionAnnotationList(element.
|
|
3234
|
-
var tmp_1 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.
|
|
3335
|
+
if (!(element.p3h_1 == null)) {
|
|
3336
|
+
var tmp_0 = toDescriptionAnnotationList(element.x3g_1);
|
|
3337
|
+
var tmp_1 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.t3h_1])));
|
|
3235
3338
|
// Inline function 'kotlin.collections.map' call
|
|
3236
|
-
var this_0 = ensureNotNull(element.
|
|
3339
|
+
var this_0 = ensureNotNull(element.p3h_1);
|
|
3237
3340
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3238
3341
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3239
3342
|
var _iterator__ex2g4s_0 = this_0.t();
|
|
3240
3343
|
while (_iterator__ex2g4s_0.u()) {
|
|
3241
3344
|
var item = _iterator__ex2g4s_0.v();
|
|
3242
|
-
var tmp$ret$5 = item.
|
|
3345
|
+
var tmp$ret$5 = item.m1i();
|
|
3243
3346
|
destination_0.x(tmp$ret$5);
|
|
3244
3347
|
}
|
|
3245
3348
|
tmp = listOf(new Enum(null, tmp_0, tmp_1, toSet(destination_0)));
|
|
@@ -3250,7 +3353,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3250
3353
|
addAll(destination, list);
|
|
3251
3354
|
}
|
|
3252
3355
|
var enums = destination;
|
|
3253
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
3356
|
+
var tmp1_safe_receiver = $this$flatMapRequests.a4h_1.o1i();
|
|
3254
3357
|
var tmp_2;
|
|
3255
3358
|
if (tmp1_safe_receiver == null) {
|
|
3256
3359
|
tmp_2 = null;
|
|
@@ -3294,18 +3397,18 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3294
3397
|
var _iterator__ex2g4s_3 = tmp3_safe_receiver.t();
|
|
3295
3398
|
while (_iterator__ex2g4s_3.u()) {
|
|
3296
3399
|
var element_1 = _iterator__ex2g4s_3.v();
|
|
3297
|
-
var schema = element_1.
|
|
3400
|
+
var schema = element_1.s3h_1;
|
|
3298
3401
|
var tmp_5;
|
|
3299
3402
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
3300
3403
|
var tmp0_subject = get_primitiveType(schema);
|
|
3301
3404
|
var tmp_6;
|
|
3302
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
3405
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.f3_1) {
|
|
3303
3406
|
case -1:
|
|
3304
3407
|
case 5:
|
|
3305
3408
|
tmp_6 = flatten($this_parseRequestBody, schema, className([name, 'RequestBody']));
|
|
3306
3409
|
break;
|
|
3307
3410
|
case 4:
|
|
3308
|
-
var tmp1_safe_receiver_0 = schema.
|
|
3411
|
+
var tmp1_safe_receiver_0 = schema.t3a();
|
|
3309
3412
|
var tmp_7;
|
|
3310
3413
|
if (tmp1_safe_receiver_0 == null) {
|
|
3311
3414
|
tmp_7 = null;
|
|
@@ -3339,28 +3442,28 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3339
3442
|
}
|
|
3340
3443
|
function parseResponseBody$lambda($this_parseResponseBody) {
|
|
3341
3444
|
return function ($this$flatMapResponses) {
|
|
3342
|
-
var tmp = resolveResponse($this_parseResponseBody, $this$flatMapResponses.
|
|
3445
|
+
var tmp = resolveResponse($this_parseResponseBody, $this$flatMapResponses.g4h_1);
|
|
3343
3446
|
var tmp0_safe_receiver = tmp instanceof OpenAPIV20Response ? tmp : null;
|
|
3344
|
-
var schema = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3345
|
-
var tmp1_elvis_lhs = toName($this$flatMapResponses.
|
|
3346
|
-
var name = tmp1_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
3447
|
+
var schema = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u3i_1;
|
|
3448
|
+
var tmp1_elvis_lhs = toName($this$flatMapResponses.e4h_1);
|
|
3449
|
+
var name = tmp1_elvis_lhs == null ? toName_0($this$flatMapResponses.b4h_1) + $this$flatMapResponses.d4h_1.e3_1 : tmp1_elvis_lhs;
|
|
3347
3450
|
var tmp_0;
|
|
3348
3451
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
3349
3452
|
var tmp3_subject = get_primitiveType(schema);
|
|
3350
3453
|
var tmp_1;
|
|
3351
|
-
switch (tmp3_subject == null ? -1 : tmp3_subject.
|
|
3454
|
+
switch (tmp3_subject == null ? -1 : tmp3_subject.f3_1) {
|
|
3352
3455
|
case -1:
|
|
3353
3456
|
case 5:
|
|
3354
|
-
tmp_1 = flatten($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
3457
|
+
tmp_1 = flatten($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.f4h_1), 'ResponseBody']));
|
|
3355
3458
|
break;
|
|
3356
3459
|
case 4:
|
|
3357
|
-
var tmp4_safe_receiver = schema.
|
|
3460
|
+
var tmp4_safe_receiver = schema.t3a();
|
|
3358
3461
|
var tmp_2;
|
|
3359
3462
|
if (tmp4_safe_receiver == null) {
|
|
3360
3463
|
tmp_2 = null;
|
|
3361
3464
|
} else {
|
|
3362
3465
|
// Inline function 'kotlin.let' call
|
|
3363
|
-
tmp_2 = flattenSchemaOrRef($this_parseResponseBody, tmp4_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
3466
|
+
tmp_2 = flattenSchemaOrRef($this_parseResponseBody, tmp4_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.f4h_1), 'ResponseBody']));
|
|
3364
3467
|
}
|
|
3365
3468
|
|
|
3366
3469
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -3398,7 +3501,7 @@ function emitComponents($this, $receiver, logger) {
|
|
|
3398
3501
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3399
3502
|
while (_iterator__ex2g4s_0.u()) {
|
|
3400
3503
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3401
|
-
var tmp = element_0.
|
|
3504
|
+
var tmp = element_0.es().o1();
|
|
3402
3505
|
var tmp_0;
|
|
3403
3506
|
if (element_0 instanceof Enum) {
|
|
3404
3507
|
tmp_0 = emit_3(OpenAPIV3Emitter_getInstance(), element_0);
|
|
@@ -3419,10 +3522,10 @@ function emitComponents($this, $receiver, logger) {
|
|
|
3419
3522
|
}
|
|
3420
3523
|
// Inline function 'kotlin.also' call
|
|
3421
3524
|
var this_0 = tmp_0;
|
|
3422
|
-
logger.
|
|
3525
|
+
logger.bs('Emitting ' + getKClassFromExpression(element_0).o() + ' ' + element_0.es().o1());
|
|
3423
3526
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3424
3527
|
var pair = to(tmp, this_0);
|
|
3425
|
-
destination_0.
|
|
3528
|
+
destination_0.w2(pair.gf_1, pair.hf_1);
|
|
3426
3529
|
}
|
|
3427
3530
|
// Inline function 'kotlin.let' call
|
|
3428
3531
|
return new OpenAPIV30Components(destination_0);
|
|
@@ -3445,13 +3548,13 @@ function emitPaths_0($this, $receiver, logger) {
|
|
|
3445
3548
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3446
3549
|
while (_iterator__ex2g4s_0.u()) {
|
|
3447
3550
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3448
|
-
var key = element_0.
|
|
3551
|
+
var key = element_0.ir_1;
|
|
3449
3552
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
3450
|
-
var value = destination_0.
|
|
3553
|
+
var value = destination_0.t2(key);
|
|
3451
3554
|
var tmp;
|
|
3452
3555
|
if (value == null) {
|
|
3453
3556
|
var answer = ArrayList_init_$Create$_0();
|
|
3454
|
-
destination_0.
|
|
3557
|
+
destination_0.w2(key, answer);
|
|
3455
3558
|
tmp = answer;
|
|
3456
3559
|
} else {
|
|
3457
3560
|
tmp = value;
|
|
@@ -3470,7 +3573,7 @@ function emitPaths_0($this, $receiver, logger) {
|
|
|
3470
3573
|
var path = item.n1();
|
|
3471
3574
|
// Inline function 'kotlin.collections.component2' call
|
|
3472
3575
|
var endpoints = item.o1();
|
|
3473
|
-
logger.
|
|
3576
|
+
logger.bs('Emitting endpoints for path ' + emitSegment_0(OpenAPIV3Emitter_getInstance(), path));
|
|
3474
3577
|
var tmp_0 = _Path___init__impl__6uf4pw(emitSegment_0(OpenAPIV3Emitter_getInstance(), path));
|
|
3475
3578
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3476
3579
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
@@ -3513,39 +3616,48 @@ function emitPaths_0($this, $receiver, logger) {
|
|
|
3513
3616
|
return toMap(destination_1);
|
|
3514
3617
|
}
|
|
3515
3618
|
function emit_1($this, $receiver) {
|
|
3516
|
-
var type = $receiver.
|
|
3619
|
+
var type = $receiver.ns_1.d1a_1;
|
|
3517
3620
|
var tmp;
|
|
3518
3621
|
if (type instanceof Integer) {
|
|
3519
3622
|
var tmp4_type = asTypeDefinition($this, OpenAPIV30Type_INTEGER_getInstance());
|
|
3520
|
-
var tmp0_safe_receiver = type.
|
|
3521
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3623
|
+
var tmp0_safe_receiver = type.m1a_1;
|
|
3624
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j1a_1;
|
|
3522
3625
|
var tmp5_minimum = tmp1_safe_receiver == null ? null : toDouble(tmp1_safe_receiver);
|
|
3523
|
-
var tmp2_safe_receiver = type.
|
|
3524
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
3626
|
+
var tmp2_safe_receiver = type.m1a_1;
|
|
3627
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.k1a_1;
|
|
3525
3628
|
var tmp6_maximum = tmp3_safe_receiver == null ? null : toDouble(tmp3_safe_receiver);
|
|
3526
3629
|
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);
|
|
3527
3630
|
} else {
|
|
3528
3631
|
if (type instanceof Number_0) {
|
|
3529
3632
|
var tmp11_type = asTypeDefinition($this, OpenAPIV30Type_NUMBER_getInstance());
|
|
3530
|
-
var tmp7_safe_receiver = type.
|
|
3531
|
-
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.
|
|
3633
|
+
var tmp7_safe_receiver = type.h1a_1;
|
|
3634
|
+
var tmp8_safe_receiver = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.j1a_1;
|
|
3532
3635
|
var tmp12_minimum = tmp8_safe_receiver == null ? null : toDouble(tmp8_safe_receiver);
|
|
3533
|
-
var tmp9_safe_receiver = type.
|
|
3534
|
-
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.
|
|
3636
|
+
var tmp9_safe_receiver = type.h1a_1;
|
|
3637
|
+
var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.k1a_1;
|
|
3535
3638
|
var tmp13_maximum = tmp10_safe_receiver == null ? null : toDouble(tmp10_safe_receiver);
|
|
3536
3639
|
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);
|
|
3537
3640
|
} else {
|
|
3538
3641
|
if (type instanceof String_0) {
|
|
3539
3642
|
var tmp_0 = asTypeDefinition($this, OpenAPIV30Type_STRING_getInstance());
|
|
3540
|
-
var tmp14_safe_receiver = type.
|
|
3643
|
+
var tmp14_safe_receiver = type.o1a_1;
|
|
3541
3644
|
var tmp_1;
|
|
3542
3645
|
var tmp_2 = tmp14_safe_receiver;
|
|
3543
3646
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2)) == null) {
|
|
3544
3647
|
tmp_1 = null;
|
|
3545
3648
|
} else {
|
|
3546
|
-
tmp_1 =
|
|
3649
|
+
tmp_1 = emitFormat(tmp14_safe_receiver);
|
|
3650
|
+
}
|
|
3651
|
+
var tmp_3 = tmp_1;
|
|
3652
|
+
var tmp15_safe_receiver = type.o1a_1;
|
|
3653
|
+
var tmp_4;
|
|
3654
|
+
var tmp_5 = tmp15_safe_receiver;
|
|
3655
|
+
if ((tmp_5 == null ? null : new RegExp_0(tmp_5)) == null) {
|
|
3656
|
+
tmp_4 = null;
|
|
3657
|
+
} else {
|
|
3658
|
+
tmp_4 = emitPattern(tmp15_safe_receiver);
|
|
3547
3659
|
}
|
|
3548
|
-
tmp = new OpenAPIV30Schema(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_0, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID,
|
|
3660
|
+
tmp = new OpenAPIV30Schema(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_0, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_3, VOID, VOID, VOID, VOID, VOID, VOID, tmp_4);
|
|
3549
3661
|
} else {
|
|
3550
3662
|
if (equals(type, Boolean_instance)) {
|
|
3551
3663
|
tmp = new OpenAPIV30Schema(VOID, VOID, VOID, VOID, VOID, VOID, VOID, asTypeDefinition($this, OpenAPIV30Type_BOOLEAN_getInstance()));
|
|
@@ -3565,10 +3677,10 @@ function asTypeDefinition($this, $receiver) {
|
|
|
3565
3677
|
return new OpenAPIV30SingleType($receiver);
|
|
3566
3678
|
}
|
|
3567
3679
|
function emit_2($this, $receiver) {
|
|
3568
|
-
var tmp0_elvis_lhs = findDescription($receiver.
|
|
3680
|
+
var tmp0_elvis_lhs = findDescription($receiver.kp_1);
|
|
3569
3681
|
var tmp;
|
|
3570
3682
|
if (tmp0_elvis_lhs == null) {
|
|
3571
|
-
var tmp1_safe_receiver = $receiver.
|
|
3683
|
+
var tmp1_safe_receiver = $receiver.jp_1;
|
|
3572
3684
|
var tmp_0;
|
|
3573
3685
|
var tmp_1 = tmp1_safe_receiver;
|
|
3574
3686
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3582,7 +3694,7 @@ function emit_2($this, $receiver) {
|
|
|
3582
3694
|
}
|
|
3583
3695
|
var tmp2_description = tmp;
|
|
3584
3696
|
// Inline function 'kotlin.collections.associate' call
|
|
3585
|
-
var this_0 = get_fields($receiver.
|
|
3697
|
+
var this_0 = get_fields($receiver.mp_1);
|
|
3586
3698
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
3587
3699
|
// Inline function 'kotlin.collections.associateTo' call
|
|
3588
3700
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -3591,16 +3703,16 @@ function emit_2($this, $receiver) {
|
|
|
3591
3703
|
var element = _iterator__ex2g4s.v();
|
|
3592
3704
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3593
3705
|
var pair = emitSchema(OpenAPIV3Emitter_getInstance(), element);
|
|
3594
|
-
destination.
|
|
3706
|
+
destination.w2(pair.gf_1, pair.hf_1);
|
|
3595
3707
|
}
|
|
3596
3708
|
// Inline function 'kotlin.collections.filter' call
|
|
3597
|
-
var tmp0 = get_fields($receiver.
|
|
3709
|
+
var tmp0 = get_fields($receiver.mp_1);
|
|
3598
3710
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3599
3711
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
3600
3712
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
3601
3713
|
while (_iterator__ex2g4s_0.u()) {
|
|
3602
3714
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3603
|
-
if (!element_0.
|
|
3715
|
+
if (!element_0.qp_1.ot()) {
|
|
3604
3716
|
destination_0.x(element_0);
|
|
3605
3717
|
}
|
|
3606
3718
|
}
|
|
@@ -3610,7 +3722,7 @@ function emit_2($this, $receiver) {
|
|
|
3610
3722
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
3611
3723
|
while (_iterator__ex2g4s_1.u()) {
|
|
3612
3724
|
var item = _iterator__ex2g4s_1.v();
|
|
3613
|
-
var tmp$ret$9 = item.
|
|
3725
|
+
var tmp$ret$9 = item.pp_1.o1();
|
|
3614
3726
|
destination_1.x(tmp$ret$9);
|
|
3615
3727
|
}
|
|
3616
3728
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -3625,10 +3737,10 @@ function emit_2($this, $receiver) {
|
|
|
3625
3737
|
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);
|
|
3626
3738
|
}
|
|
3627
3739
|
function emit_3($this, $receiver) {
|
|
3628
|
-
var tmp0_elvis_lhs = findDescription($receiver.
|
|
3740
|
+
var tmp0_elvis_lhs = findDescription($receiver.qs_1);
|
|
3629
3741
|
var tmp;
|
|
3630
3742
|
if (tmp0_elvis_lhs == null) {
|
|
3631
|
-
var tmp1_safe_receiver = $receiver.
|
|
3743
|
+
var tmp1_safe_receiver = $receiver.ps_1;
|
|
3632
3744
|
var tmp_0;
|
|
3633
3745
|
var tmp_1 = tmp1_safe_receiver;
|
|
3634
3746
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3643,7 +3755,7 @@ function emit_3($this, $receiver) {
|
|
|
3643
3755
|
var tmp2_description = tmp;
|
|
3644
3756
|
var tmp3_type = asTypeDefinition($this, OpenAPIV30Type_STRING_getInstance());
|
|
3645
3757
|
// Inline function 'kotlin.collections.map' call
|
|
3646
|
-
var this_0 = $receiver.
|
|
3758
|
+
var this_0 = $receiver.ss_1;
|
|
3647
3759
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3648
3760
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3649
3761
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -3655,10 +3767,10 @@ function emit_3($this, $receiver) {
|
|
|
3655
3767
|
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);
|
|
3656
3768
|
}
|
|
3657
3769
|
function emit_4($this, $receiver) {
|
|
3658
|
-
var tmp0_elvis_lhs = findDescription($receiver.
|
|
3770
|
+
var tmp0_elvis_lhs = findDescription($receiver.br_1);
|
|
3659
3771
|
var tmp;
|
|
3660
3772
|
if (tmp0_elvis_lhs == null) {
|
|
3661
|
-
var tmp1_safe_receiver = $receiver.
|
|
3773
|
+
var tmp1_safe_receiver = $receiver.ar_1;
|
|
3662
3774
|
var tmp_0;
|
|
3663
3775
|
var tmp_1 = tmp1_safe_receiver;
|
|
3664
3776
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3673,7 +3785,7 @@ function emit_4($this, $receiver) {
|
|
|
3673
3785
|
var tmp2_description = tmp;
|
|
3674
3786
|
var tmp3_type = asTypeDefinition($this, OpenAPIV30Type_STRING_getInstance());
|
|
3675
3787
|
// Inline function 'kotlin.collections.map' call
|
|
3676
|
-
var this_0 = $receiver.
|
|
3788
|
+
var this_0 = $receiver.dr_1;
|
|
3677
3789
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3678
3790
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3679
3791
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -3691,7 +3803,7 @@ function emit_5($this, $receiver, method) {
|
|
|
3691
3803
|
var _iterator__ex2g4s = $receiver.t();
|
|
3692
3804
|
while (_iterator__ex2g4s.u()) {
|
|
3693
3805
|
var element = _iterator__ex2g4s.v();
|
|
3694
|
-
if (element.
|
|
3806
|
+
if (element.hr_1.equals(method)) {
|
|
3695
3807
|
destination.x(element);
|
|
3696
3808
|
}
|
|
3697
3809
|
}
|
|
@@ -3707,11 +3819,11 @@ function emit_5($this, $receiver, method) {
|
|
|
3707
3819
|
return firstOrNull(destination_0);
|
|
3708
3820
|
}
|
|
3709
3821
|
function emit_6($this, $receiver) {
|
|
3710
|
-
var tmp3_operationId = $receiver.
|
|
3711
|
-
var tmp0_elvis_lhs = findDescription($receiver.
|
|
3822
|
+
var tmp3_operationId = $receiver.gr_1.o1();
|
|
3823
|
+
var tmp0_elvis_lhs = findDescription($receiver.fr_1);
|
|
3712
3824
|
var tmp;
|
|
3713
3825
|
if (tmp0_elvis_lhs == null) {
|
|
3714
|
-
var tmp1_safe_receiver = $receiver.
|
|
3826
|
+
var tmp1_safe_receiver = $receiver.er_1;
|
|
3715
3827
|
var tmp_0;
|
|
3716
3828
|
var tmp_1 = tmp1_safe_receiver;
|
|
3717
3829
|
if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
|
|
@@ -3725,7 +3837,7 @@ function emit_6($this, $receiver) {
|
|
|
3725
3837
|
}
|
|
3726
3838
|
var tmp4_description = tmp;
|
|
3727
3839
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3728
|
-
var tmp0 = $receiver.
|
|
3840
|
+
var tmp0 = $receiver.ir_1;
|
|
3729
3841
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
3730
3842
|
var destination = ArrayList_init_$Create$_0();
|
|
3731
3843
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -3746,7 +3858,7 @@ function emit_6($this, $receiver) {
|
|
|
3746
3858
|
}
|
|
3747
3859
|
var tmp_2 = destination_0;
|
|
3748
3860
|
// Inline function 'kotlin.collections.map' call
|
|
3749
|
-
var this_0 = get_fields($receiver.
|
|
3861
|
+
var this_0 = get_fields($receiver.jr_1);
|
|
3750
3862
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3751
3863
|
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3752
3864
|
var _iterator__ex2g4s_1 = this_0.t();
|
|
@@ -3757,7 +3869,7 @@ function emit_6($this, $receiver) {
|
|
|
3757
3869
|
}
|
|
3758
3870
|
var tmp_3 = plus_0(tmp_2, destination_1);
|
|
3759
3871
|
// Inline function 'kotlin.collections.map' call
|
|
3760
|
-
var this_1 = get_fields($receiver.
|
|
3872
|
+
var this_1 = get_fields($receiver.kr_1);
|
|
3761
3873
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3762
3874
|
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
3763
3875
|
var _iterator__ex2g4s_2 = this_1.t();
|
|
@@ -3768,14 +3880,14 @@ function emit_6($this, $receiver) {
|
|
|
3768
3880
|
}
|
|
3769
3881
|
var tmp5_parameters = plus_0(tmp_3, destination_2);
|
|
3770
3882
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3771
|
-
var tmp0_0 = $receiver.
|
|
3883
|
+
var tmp0_0 = $receiver.lr_1;
|
|
3772
3884
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3773
3885
|
var destination_3 = ArrayList_init_$Create$_0();
|
|
3774
3886
|
// Inline function 'kotlin.collections.forEach' call
|
|
3775
3887
|
var _iterator__ex2g4s_3 = tmp0_0.t();
|
|
3776
3888
|
while (_iterator__ex2g4s_3.u()) {
|
|
3777
3889
|
var element_0 = _iterator__ex2g4s_3.v();
|
|
3778
|
-
var tmp0_safe_receiver = element_0.
|
|
3890
|
+
var tmp0_safe_receiver = element_0.pr_1;
|
|
3779
3891
|
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : emit_7(OpenAPIV3Emitter_getInstance(), tmp0_safe_receiver);
|
|
3780
3892
|
if (tmp0_safe_receiver_0 == null)
|
|
3781
3893
|
null;
|
|
@@ -3799,7 +3911,7 @@ function emit_6($this, $receiver) {
|
|
|
3799
3911
|
tmp_5 = null;
|
|
3800
3912
|
} else {
|
|
3801
3913
|
// Inline function 'kotlin.let' call
|
|
3802
|
-
var tmp0_1 = $receiver.
|
|
3914
|
+
var tmp0_1 = $receiver.lr_1;
|
|
3803
3915
|
var tmp$ret$23;
|
|
3804
3916
|
$l$block_0: {
|
|
3805
3917
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -3816,8 +3928,8 @@ function emit_6($this, $receiver) {
|
|
|
3816
3928
|
var _iterator__ex2g4s_4 = tmp0_1.t();
|
|
3817
3929
|
while (_iterator__ex2g4s_4.u()) {
|
|
3818
3930
|
var element_1 = _iterator__ex2g4s_4.v();
|
|
3819
|
-
var tmp0_safe_receiver_1 = element_1.
|
|
3820
|
-
var tmp1_safe_receiver_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.
|
|
3931
|
+
var tmp0_safe_receiver_1 = element_1.pr_1;
|
|
3932
|
+
var tmp1_safe_receiver_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.rr_1;
|
|
3821
3933
|
if ((tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.ot()) === true) {
|
|
3822
3934
|
tmp$ret$23 = true;
|
|
3823
3935
|
break $l$block_0;
|
|
@@ -3829,19 +3941,19 @@ function emit_6($this, $receiver) {
|
|
|
3829
3941
|
}
|
|
3830
3942
|
var tmp6_requestBody = tmp_5;
|
|
3831
3943
|
// Inline function 'kotlin.collections.groupBy' call
|
|
3832
|
-
var tmp0_2 = $receiver.
|
|
3944
|
+
var tmp0_2 = $receiver.mr_1;
|
|
3833
3945
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
3834
3946
|
var destination_4 = LinkedHashMap_init_$Create$_0();
|
|
3835
3947
|
var _iterator__ex2g4s_5 = tmp0_2.t();
|
|
3836
3948
|
while (_iterator__ex2g4s_5.u()) {
|
|
3837
3949
|
var element_2 = _iterator__ex2g4s_5.v();
|
|
3838
|
-
var key = element_2.
|
|
3950
|
+
var key = element_2.sr_1;
|
|
3839
3951
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
3840
|
-
var value = destination_4.
|
|
3952
|
+
var value = destination_4.t2(key);
|
|
3841
3953
|
var tmp_7;
|
|
3842
3954
|
if (value == null) {
|
|
3843
3955
|
var answer = ArrayList_init_$Create$_0();
|
|
3844
|
-
destination_4.
|
|
3956
|
+
destination_4.w2(key, answer);
|
|
3845
3957
|
tmp_7 = answer;
|
|
3846
3958
|
} else {
|
|
3847
3959
|
tmp_7 = value;
|
|
@@ -3867,7 +3979,7 @@ function emit_6($this, $receiver) {
|
|
|
3867
3979
|
var _iterator__ex2g4s_7 = res.t();
|
|
3868
3980
|
while (_iterator__ex2g4s_7.u()) {
|
|
3869
3981
|
var element_3 = _iterator__ex2g4s_7.v();
|
|
3870
|
-
var list_0 = get_fields(element_3.
|
|
3982
|
+
var list_0 = get_fields(element_3.tr_1);
|
|
3871
3983
|
addAll(destination_6, list_0);
|
|
3872
3984
|
}
|
|
3873
3985
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -3879,10 +3991,10 @@ function emit_6($this, $receiver) {
|
|
|
3879
3991
|
var element_4 = _iterator__ex2g4s_8.v();
|
|
3880
3992
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3881
3993
|
var pair = emitHeader(OpenAPIV3Emitter_getInstance(), element_4);
|
|
3882
|
-
destination_7.
|
|
3994
|
+
destination_7.w2(pair.gf_1, pair.hf_1);
|
|
3883
3995
|
}
|
|
3884
|
-
var tmp0_elvis_lhs_0 = findDescription(first(res).
|
|
3885
|
-
var tmp2_description = tmp0_elvis_lhs_0 == null ? $receiver.
|
|
3996
|
+
var tmp0_elvis_lhs_0 = findDescription(first(res).vr_1);
|
|
3997
|
+
var tmp2_description = tmp0_elvis_lhs_0 == null ? $receiver.gr_1.o1() + ' ' + statusCode + ' response' : tmp0_elvis_lhs_0;
|
|
3886
3998
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3887
3999
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3888
4000
|
var destination_8 = ArrayList_init_$Create$_0();
|
|
@@ -3890,7 +4002,7 @@ function emit_6($this, $receiver) {
|
|
|
3890
4002
|
var _iterator__ex2g4s_9 = res.t();
|
|
3891
4003
|
while (_iterator__ex2g4s_9.u()) {
|
|
3892
4004
|
var element_5 = _iterator__ex2g4s_9.v();
|
|
3893
|
-
var tmp0_safe_receiver_2 = element_5.
|
|
4005
|
+
var tmp0_safe_receiver_2 = element_5.ur_1;
|
|
3894
4006
|
if (tmp0_safe_receiver_2 == null)
|
|
3895
4007
|
null;
|
|
3896
4008
|
else {
|
|
@@ -3907,7 +4019,7 @@ function emit_6($this, $receiver) {
|
|
|
3907
4019
|
var element_6 = _iterator__ex2g4s_10.v();
|
|
3908
4020
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3909
4021
|
var pair_0 = emit_7(OpenAPIV3Emitter_getInstance(), element_6);
|
|
3910
|
-
destination_9.
|
|
4022
|
+
destination_9.w2(pair_0.gf_1, pair_0.hf_1);
|
|
3911
4023
|
}
|
|
3912
4024
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
3913
4025
|
var tmp_9;
|
|
@@ -3924,7 +4036,7 @@ function emit_6($this, $receiver) {
|
|
|
3924
4036
|
var _iterator__ex2g4s_11 = res.t();
|
|
3925
4037
|
while (_iterator__ex2g4s_11.u()) {
|
|
3926
4038
|
var element_7 = _iterator__ex2g4s_11.v();
|
|
3927
|
-
var list_1 = findLinks(element_7.
|
|
4039
|
+
var list_1 = findLinks(element_7.vr_1);
|
|
3928
4040
|
addAll(destination_10, list_1);
|
|
3929
4041
|
}
|
|
3930
4042
|
var tmp4_links = toOpenAPIV30Links(tmp_10, destination_10);
|
|
@@ -3942,9 +4054,9 @@ function toOpenAPIV30Links($this, $receiver) {
|
|
|
3942
4054
|
var _iterator__ex2g4s = $receiver.t();
|
|
3943
4055
|
while (_iterator__ex2g4s.u()) {
|
|
3944
4056
|
var element = _iterator__ex2g4s.v();
|
|
3945
|
-
var tmp2 = element.
|
|
4057
|
+
var tmp2 = element.h4h_1;
|
|
3946
4058
|
// Inline function 'kotlin.collections.mapValues' call
|
|
3947
|
-
var this_0 = element.
|
|
4059
|
+
var this_0 = element.k4h_1;
|
|
3948
4060
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
3949
4061
|
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.c1()));
|
|
3950
4062
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -3953,7 +4065,7 @@ function toOpenAPIV30Links($this, $receiver) {
|
|
|
3953
4065
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3954
4066
|
var tmp = element_0.n1();
|
|
3955
4067
|
var tmp$ret$6 = JsonPrimitive(element_0.o1());
|
|
3956
|
-
destination.
|
|
4068
|
+
destination.w2(tmp, tmp$ret$6);
|
|
3957
4069
|
}
|
|
3958
4070
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
3959
4071
|
var tmp_0;
|
|
@@ -3963,7 +4075,7 @@ function toOpenAPIV30Links($this, $receiver) {
|
|
|
3963
4075
|
tmp_0 = destination;
|
|
3964
4076
|
}
|
|
3965
4077
|
var tmp_1 = tmp_0;
|
|
3966
|
-
var tmp0_safe_receiver = element.
|
|
4078
|
+
var tmp0_safe_receiver = element.l4h_1;
|
|
3967
4079
|
var tmp_2;
|
|
3968
4080
|
if (tmp0_safe_receiver == null) {
|
|
3969
4081
|
tmp_2 = null;
|
|
@@ -3972,8 +4084,8 @@ function toOpenAPIV30Links($this, $receiver) {
|
|
|
3972
4084
|
tmp_2 = JsonPrimitive(tmp0_safe_receiver);
|
|
3973
4085
|
}
|
|
3974
4086
|
// Inline function 'kotlin.collections.set' call
|
|
3975
|
-
var value = new OpenAPIV30Link(element.
|
|
3976
|
-
byName.
|
|
4087
|
+
var value = new OpenAPIV30Link(element.j4h_1, element.i4h_1, tmp_1, tmp_2, element.m4h_1);
|
|
4088
|
+
byName.w2(tmp2, value);
|
|
3977
4089
|
}
|
|
3978
4090
|
return new OpenAPIV30Links(toSet(byName.m1()));
|
|
3979
4091
|
}
|
|
@@ -3981,29 +4093,29 @@ function emitSegment_0($this, $receiver) {
|
|
|
3981
4093
|
return '/' + joinToString($receiver, '/', VOID, VOID, VOID, VOID, OpenAPIV3Emitter$emitSegment$lambda);
|
|
3982
4094
|
}
|
|
3983
4095
|
function emitParameter_0($this, $receiver, location) {
|
|
3984
|
-
var tmp0_name = $receiver.
|
|
3985
|
-
var tmp1_schema = emitSchema_0($this, $receiver.
|
|
3986
|
-
var tmp2_description = findDescription($receiver.
|
|
3987
|
-
var tmp3_required = !$receiver.
|
|
4096
|
+
var tmp0_name = $receiver.pp_1.o1();
|
|
4097
|
+
var tmp1_schema = emitSchema_0($this, $receiver.qp_1);
|
|
4098
|
+
var tmp2_description = findDescription($receiver.op_1);
|
|
4099
|
+
var tmp3_required = !$receiver.qp_1.ot();
|
|
3988
4100
|
return new OpenAPIV30Parameter(tmp2_description, tmp3_required, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, location, tmp1_schema, tmp0_name);
|
|
3989
4101
|
}
|
|
3990
4102
|
function emitParameter_1($this, $receiver) {
|
|
3991
4103
|
var tmp0_in = OpenAPIV30ParameterLocation_PATH_getInstance();
|
|
3992
|
-
var tmp1_name = $receiver.
|
|
3993
|
-
var tmp2_schema = emitSchema_0($this, $receiver.
|
|
3994
|
-
var tmp3_required = !$receiver.
|
|
4104
|
+
var tmp1_name = $receiver.nr_1.o1();
|
|
4105
|
+
var tmp2_schema = emitSchema_0($this, $receiver.or_1);
|
|
4106
|
+
var tmp3_required = !$receiver.or_1.ot();
|
|
3995
4107
|
return new OpenAPIV30Parameter(VOID, tmp3_required, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_in, tmp2_schema, tmp1_name);
|
|
3996
4108
|
}
|
|
3997
4109
|
function emitHeader($this, $receiver) {
|
|
3998
|
-
return to($receiver.
|
|
4110
|
+
return to($receiver.pp_1.o1(), emitHeader_0($this, $receiver.qp_1, findDescription($receiver.op_1)));
|
|
3999
4111
|
}
|
|
4000
4112
|
function emitSchema($this, $receiver) {
|
|
4001
|
-
var tmp = $receiver.
|
|
4113
|
+
var tmp = $receiver.pp_1.o1();
|
|
4002
4114
|
// Inline function 'kotlin.let' call
|
|
4003
|
-
var it = emitSchema_0($this, $receiver.
|
|
4115
|
+
var it = emitSchema_0($this, $receiver.qp_1);
|
|
4004
4116
|
var tmp_0;
|
|
4005
4117
|
if (it instanceof OpenAPIV30Schema) {
|
|
4006
|
-
tmp_0 = it.
|
|
4118
|
+
tmp_0 = it.w3p(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription($receiver.op_1), toSchemaDefault($receiver.rp_1));
|
|
4007
4119
|
} else {
|
|
4008
4120
|
if (it instanceof OpenAPIV30Reference) {
|
|
4009
4121
|
tmp_0 = it;
|
|
@@ -4017,13 +4129,13 @@ function emitSchema($this, $receiver) {
|
|
|
4017
4129
|
function emitHeader_0($this, $receiver, description) {
|
|
4018
4130
|
var tmp;
|
|
4019
4131
|
if ($receiver instanceof Dict) {
|
|
4020
|
-
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + $receiver.
|
|
4132
|
+
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + $receiver.eq_1));
|
|
4021
4133
|
} else {
|
|
4022
4134
|
if ($receiver instanceof Iterable) {
|
|
4023
|
-
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + $receiver.
|
|
4135
|
+
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + $receiver.bq_1));
|
|
4024
4136
|
} else {
|
|
4025
4137
|
if ($receiver instanceof Custom) {
|
|
4026
|
-
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + $receiver.
|
|
4138
|
+
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/headers/' + $receiver.b1a_1));
|
|
4027
4139
|
} else {
|
|
4028
4140
|
if ($receiver instanceof Primitive) {
|
|
4029
4141
|
var tmp1_schema = emitSchema_0($this, $receiver);
|
|
@@ -4051,21 +4163,21 @@ function emitHeader_0($this, $receiver, description) {
|
|
|
4051
4163
|
function emitSchema_0($this, $receiver) {
|
|
4052
4164
|
var tmp;
|
|
4053
4165
|
if ($receiver instanceof Dict) {
|
|
4054
|
-
var tmp_0 = $receiver.
|
|
4166
|
+
var tmp_0 = $receiver.cq_1.ot();
|
|
4055
4167
|
var tmp_1 = asTypeDefinition($this, OpenAPIV30Type_OBJECT_getInstance());
|
|
4056
|
-
var tmp_2 = emitSchema_0($this, $receiver.
|
|
4168
|
+
var tmp_2 = emitSchema_0($this, $receiver.cq_1);
|
|
4057
4169
|
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());
|
|
4058
4170
|
} else {
|
|
4059
4171
|
if ($receiver instanceof Iterable) {
|
|
4060
|
-
tmp = new OpenAPIV30Schema($receiver.
|
|
4172
|
+
tmp = new OpenAPIV30Schema($receiver.zp_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.zp_1));
|
|
4061
4173
|
} else {
|
|
4062
4174
|
if ($receiver instanceof Custom) {
|
|
4063
|
-
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/schemas/' + $receiver.
|
|
4175
|
+
tmp = new OpenAPIV30Reference(_Ref___init__impl__7qfl46('#/components/schemas/' + $receiver.b1a_1));
|
|
4064
4176
|
} else {
|
|
4065
4177
|
if ($receiver instanceof Primitive) {
|
|
4066
|
-
var tmp1_type = asTypeDefinition($this, emitType_1($this, $receiver.
|
|
4067
|
-
var tmp2_format =
|
|
4068
|
-
var tmp3_pattern =
|
|
4178
|
+
var tmp1_type = asTypeDefinition($this, emitType_1($this, $receiver.d1a_1));
|
|
4179
|
+
var tmp2_format = emitFormat_0($receiver);
|
|
4180
|
+
var tmp3_pattern = emitPattern_1($this, $receiver);
|
|
4069
4181
|
var tmp4_minimum = emitMinimum_0($this, $receiver);
|
|
4070
4182
|
var tmp5_maximum = emitMaximum_0($this, $receiver);
|
|
4071
4183
|
tmp = new OpenAPIV30Schema(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_type, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_format, tmp5_maximum, VOID, tmp4_minimum, VOID, VOID, VOID, tmp3_pattern);
|
|
@@ -4115,19 +4227,19 @@ function emitType_1($this, $receiver) {
|
|
|
4115
4227
|
return tmp;
|
|
4116
4228
|
}
|
|
4117
4229
|
function emit_7($this, $receiver) {
|
|
4118
|
-
return to(new MediaType(_MediaType___init__impl__i9gzb9($receiver.
|
|
4230
|
+
return to(new MediaType(_MediaType___init__impl__i9gzb9($receiver.qr_1)), new OpenAPIV30MediaType(emitSchema_0($this, $receiver.rr_1)));
|
|
4119
4231
|
}
|
|
4120
|
-
function
|
|
4232
|
+
function emitPattern_1($this, $receiver) {
|
|
4121
4233
|
var tmp;
|
|
4122
4234
|
if ($receiver instanceof Primitive) {
|
|
4123
|
-
var t = $receiver.
|
|
4235
|
+
var t = $receiver.d1a_1;
|
|
4124
4236
|
var tmp_0;
|
|
4125
4237
|
if (t instanceof String_0) {
|
|
4126
|
-
var p = t.
|
|
4238
|
+
var p = t.o1a_1;
|
|
4127
4239
|
var tmp_1;
|
|
4128
4240
|
var tmp_2 = p;
|
|
4129
4241
|
if ((tmp_2 == null ? null : new RegExp_0(tmp_2))instanceof RegExp_0) {
|
|
4130
|
-
tmp_1 =
|
|
4242
|
+
tmp_1 = emitPattern(p);
|
|
4131
4243
|
} else {
|
|
4132
4244
|
tmp_1 = null;
|
|
4133
4245
|
}
|
|
@@ -4144,16 +4256,16 @@ function emitPattern_0($this, $receiver) {
|
|
|
4144
4256
|
function emitMinimum_0($this, $receiver) {
|
|
4145
4257
|
var tmp;
|
|
4146
4258
|
if ($receiver instanceof Primitive) {
|
|
4147
|
-
var t = $receiver.
|
|
4259
|
+
var t = $receiver.d1a_1;
|
|
4148
4260
|
var tmp_0;
|
|
4149
4261
|
if (t instanceof Number_0) {
|
|
4150
|
-
var tmp1_safe_receiver = t.
|
|
4151
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4262
|
+
var tmp1_safe_receiver = t.h1a_1;
|
|
4263
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.j1a_1;
|
|
4152
4264
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
4153
4265
|
} else {
|
|
4154
4266
|
if (t instanceof Integer) {
|
|
4155
|
-
var tmp3_safe_receiver = t.
|
|
4156
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
4267
|
+
var tmp3_safe_receiver = t.m1a_1;
|
|
4268
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.j1a_1;
|
|
4157
4269
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
4158
4270
|
} else {
|
|
4159
4271
|
tmp_0 = null;
|
|
@@ -4168,16 +4280,16 @@ function emitMinimum_0($this, $receiver) {
|
|
|
4168
4280
|
function emitMaximum_0($this, $receiver) {
|
|
4169
4281
|
var tmp;
|
|
4170
4282
|
if ($receiver instanceof Primitive) {
|
|
4171
|
-
var t = $receiver.
|
|
4283
|
+
var t = $receiver.d1a_1;
|
|
4172
4284
|
var tmp_0;
|
|
4173
4285
|
if (t instanceof Number_0) {
|
|
4174
|
-
var tmp1_safe_receiver = t.
|
|
4175
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4286
|
+
var tmp1_safe_receiver = t.h1a_1;
|
|
4287
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k1a_1;
|
|
4176
4288
|
tmp_0 = tmp2_safe_receiver == null ? null : toDouble(tmp2_safe_receiver);
|
|
4177
4289
|
} else {
|
|
4178
4290
|
if (t instanceof Integer) {
|
|
4179
|
-
var tmp3_safe_receiver = t.
|
|
4180
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
4291
|
+
var tmp3_safe_receiver = t.m1a_1;
|
|
4292
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.k1a_1;
|
|
4181
4293
|
tmp_0 = tmp4_safe_receiver == null ? null : toDouble(tmp4_safe_receiver);
|
|
4182
4294
|
} else {
|
|
4183
4295
|
tmp_0 = null;
|
|
@@ -4192,10 +4304,10 @@ function emitMaximum_0($this, $receiver) {
|
|
|
4192
4304
|
function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
4193
4305
|
var tmp;
|
|
4194
4306
|
if (it instanceof Param) {
|
|
4195
|
-
tmp = '{' + it.
|
|
4307
|
+
tmp = '{' + it.nr_1.o1() + '}';
|
|
4196
4308
|
} else {
|
|
4197
4309
|
if (it instanceof Literal) {
|
|
4198
|
-
tmp = it.
|
|
4310
|
+
tmp = it.e1b_1;
|
|
4199
4311
|
} else {
|
|
4200
4312
|
noWhenBranchMatchedException();
|
|
4201
4313
|
}
|
|
@@ -4204,18 +4316,18 @@ function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
|
4204
4316
|
}
|
|
4205
4317
|
function OpenAPIV3Emitter() {
|
|
4206
4318
|
OpenAPIV3Emitter_instance = this;
|
|
4207
|
-
this.
|
|
4208
|
-
this.
|
|
4319
|
+
this.s4h_1 = FileExtension_JSON_getInstance();
|
|
4320
|
+
this.t4h_1 = true;
|
|
4209
4321
|
}
|
|
4210
|
-
protoOf(OpenAPIV3Emitter).
|
|
4211
|
-
return this.
|
|
4322
|
+
protoOf(OpenAPIV3Emitter).xp = function () {
|
|
4323
|
+
return this.s4h_1;
|
|
4212
4324
|
};
|
|
4213
|
-
protoOf(OpenAPIV3Emitter).
|
|
4214
|
-
return this.
|
|
4325
|
+
protoOf(OpenAPIV3Emitter).wp = function () {
|
|
4326
|
+
return this.t4h_1;
|
|
4215
4327
|
};
|
|
4216
|
-
protoOf(OpenAPIV3Emitter).
|
|
4328
|
+
protoOf(OpenAPIV3Emitter).uo = function (ast, logger) {
|
|
4217
4329
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
4218
|
-
var this_0 = ast.
|
|
4330
|
+
var this_0 = ast.fp_1;
|
|
4219
4331
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4220
4332
|
var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
4221
4333
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -4223,30 +4335,30 @@ protoOf(OpenAPIV3Emitter).to = function (ast, logger) {
|
|
|
4223
4335
|
var _iterator__ex2g4s = tmp0.t();
|
|
4224
4336
|
while (_iterator__ex2g4s.u()) {
|
|
4225
4337
|
var element = _iterator__ex2g4s.v();
|
|
4226
|
-
logger.
|
|
4227
|
-
var list = new NonEmptyList(element.
|
|
4338
|
+
logger.bs('Combining Nodes from ' + element.gp_1.jo_1 + ' ');
|
|
4339
|
+
var list = new NonEmptyList(element.hp_1);
|
|
4228
4340
|
addAll(destination, list);
|
|
4229
4341
|
}
|
|
4230
4342
|
// Inline function 'kotlin.let' call
|
|
4231
4343
|
var it = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
4232
|
-
var tmp = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().
|
|
4344
|
+
var tmp = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().s4h_1.yr_1;
|
|
4233
4345
|
var tmp0_0 = get_json();
|
|
4234
4346
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
4235
|
-
var value = OpenAPIV3Emitter_getInstance().
|
|
4347
|
+
var value = OpenAPIV3Emitter_getInstance().u4h(it, null, logger);
|
|
4236
4348
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
4237
|
-
var this_1 = tmp0_0.
|
|
4349
|
+
var this_1 = tmp0_0.l25();
|
|
4238
4350
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
4239
4351
|
var this_2 = serializer(this_1, createKType(getKClass(OpenAPIV3Model), arrayOf([]), false));
|
|
4240
4352
|
var tmp$ret$7 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
4241
|
-
var tmp$ret$6 = tmp0_0.
|
|
4353
|
+
var tmp$ret$6 = tmp0_0.q2m(tmp$ret$7, value);
|
|
4242
4354
|
// Inline function 'kotlin.let' call
|
|
4243
4355
|
var it_0 = new Emitted(tmp, tmp$ret$6);
|
|
4244
4356
|
return nonEmptyListOf(it_0, []);
|
|
4245
4357
|
};
|
|
4246
|
-
protoOf(OpenAPIV3Emitter).
|
|
4247
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
4358
|
+
protoOf(OpenAPIV3Emitter).u4h = function (statements, options, logger) {
|
|
4359
|
+
var tmp1_elvis_lhs = options == null ? null : options.v4h_1;
|
|
4248
4360
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
4249
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
4361
|
+
var tmp3_elvis_lhs = options == null ? null : options.w4h_1;
|
|
4250
4362
|
var tmp4_info = new InfoObject(tmp, VOID, VOID, VOID, VOID, VOID, tmp3_elvis_lhs == null ? '0.0.0' : tmp3_elvis_lhs);
|
|
4251
4363
|
var tmp5_paths = emitPaths_0(this, statements, logger);
|
|
4252
4364
|
var tmp6_components = emitComponents(this, statements, logger);
|
|
@@ -4260,15 +4372,15 @@ function OpenAPIV3Emitter_getInstance() {
|
|
|
4260
4372
|
}
|
|
4261
4373
|
function OpenAPIV3Parser$parse$lambda($strict) {
|
|
4262
4374
|
return function (it) {
|
|
4263
|
-
return new NonEmptyList(OpenAPIV3Parser_instance.
|
|
4375
|
+
return new NonEmptyList(OpenAPIV3Parser_instance.x4h((new OpenAPIV3(jsonDefault($strict))).a3d(it)));
|
|
4264
4376
|
};
|
|
4265
4377
|
}
|
|
4266
4378
|
function OpenAPIV3Parser() {
|
|
4267
4379
|
}
|
|
4268
|
-
protoOf(OpenAPIV3Parser).
|
|
4380
|
+
protoOf(OpenAPIV3Parser).u31 = function (moduleContent, strict) {
|
|
4269
4381
|
return parseOpenApi(moduleContent, OpenAPIV3Parser$parse$lambda(strict));
|
|
4270
4382
|
};
|
|
4271
|
-
protoOf(OpenAPIV3Parser).
|
|
4383
|
+
protoOf(OpenAPIV3Parser).x4h = function (_this__u8e3s4) {
|
|
4272
4384
|
// Inline function 'kotlin.collections.reduce' call
|
|
4273
4385
|
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();
|
|
4274
4386
|
if (!iterator.u())
|
|
@@ -4283,7 +4395,7 @@ protoOf(OpenAPIV3Parser).f4i = function (_this__u8e3s4) {
|
|
|
4283
4395
|
var tmp = toNonEmptyListOrNull(resolveEndpointNameCollisions(tmp$ret$0));
|
|
4284
4396
|
// Inline function 'kotlin.let' call
|
|
4285
4397
|
var tmp_0 = tmp == null ? null : new NonEmptyList(tmp);
|
|
4286
|
-
var tmp_1 = tmp_0 == null ? null : tmp_0.
|
|
4398
|
+
var tmp_1 = tmp_0 == null ? null : tmp_0.en_1;
|
|
4287
4399
|
var tmp0_0 = tmp_1 == null ? null : new NonEmptyList(tmp_1);
|
|
4288
4400
|
var tmp$ret$4;
|
|
4289
4401
|
$l$block: {
|
|
@@ -4292,7 +4404,7 @@ protoOf(OpenAPIV3Parser).f4i = function (_this__u8e3s4) {
|
|
|
4292
4404
|
var message = 'Cannot yield empty AST for OpenAPI v3';
|
|
4293
4405
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
4294
4406
|
} else {
|
|
4295
|
-
tmp$ret$4 = tmp0_0.
|
|
4407
|
+
tmp$ret$4 = tmp0_0.en_1;
|
|
4296
4408
|
break $l$block;
|
|
4297
4409
|
}
|
|
4298
4410
|
}
|
|
@@ -4304,7 +4416,7 @@ function OpenAPIV3Parser_getInstance() {
|
|
|
4304
4416
|
}
|
|
4305
4417
|
function parseEndpoints_0(_this__u8e3s4) {
|
|
4306
4418
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4307
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
4419
|
+
var tmp0_elvis_lhs = _this__u8e3s4.g3d();
|
|
4308
4420
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4309
4421
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4310
4422
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -4314,7 +4426,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4314
4426
|
while (_iterator__ex2g4s.u()) {
|
|
4315
4427
|
var element = _iterator__ex2g4s.v();
|
|
4316
4428
|
// Inline function 'kotlin.collections.component1' call
|
|
4317
|
-
var path = element.n1().
|
|
4429
|
+
var path = element.n1().g3a_1;
|
|
4318
4430
|
// Inline function 'kotlin.collections.component2' call
|
|
4319
4431
|
var pathItem = element.o1();
|
|
4320
4432
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -4329,11 +4441,11 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4329
4441
|
var method = item.n1();
|
|
4330
4442
|
// Inline function 'kotlin.collections.component2' call
|
|
4331
4443
|
var operation = item.o1();
|
|
4332
|
-
var parameters = plus_0(resolveParameters_0(_this__u8e3s4, pathItem.
|
|
4444
|
+
var parameters = plus_0(resolveParameters_0(_this__u8e3s4, pathItem.o1i()), resolveParameters_0(_this__u8e3s4, operation.o1i()));
|
|
4333
4445
|
var tmp0_elvis_lhs_0 = toName(operation);
|
|
4334
|
-
var segments = toSegments_0(_this__u8e3s4, path, parameters, tmp0_elvis_lhs_0 == null ? toName_0(path) + method.
|
|
4446
|
+
var segments = toSegments_0(_this__u8e3s4, path, parameters, tmp0_elvis_lhs_0 == null ? toName_0(path) + method.e3_1 : tmp0_elvis_lhs_0);
|
|
4335
4447
|
var tmp1_elvis_lhs = toName(operation);
|
|
4336
|
-
var name = tmp1_elvis_lhs == null ? toName_0(path) + method.
|
|
4448
|
+
var name = tmp1_elvis_lhs == null ? toName_0(path) + method.e3_1 : tmp1_elvis_lhs;
|
|
4337
4449
|
// Inline function 'kotlin.collections.filter' call
|
|
4338
4450
|
// Inline function 'kotlin.collections.filterTo' call
|
|
4339
4451
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
@@ -4376,7 +4488,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4376
4488
|
}
|
|
4377
4489
|
// Inline function 'kotlin.let' call
|
|
4378
4490
|
var headers = new Shape(destination_4);
|
|
4379
|
-
var tmp2_safe_receiver = operation.
|
|
4491
|
+
var tmp2_safe_receiver = operation.h3b();
|
|
4380
4492
|
var tmp;
|
|
4381
4493
|
if (tmp2_safe_receiver == null) {
|
|
4382
4494
|
tmp = null;
|
|
@@ -4391,7 +4503,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4391
4503
|
} else {
|
|
4392
4504
|
// Inline function 'kotlin.let' call
|
|
4393
4505
|
var isNullable = false;
|
|
4394
|
-
var tmp0_safe_receiver = tmp3_safe_receiver.
|
|
4506
|
+
var tmp0_safe_receiver = tmp3_safe_receiver.m1i();
|
|
4395
4507
|
var tmp_1;
|
|
4396
4508
|
if (tmp0_safe_receiver == null) {
|
|
4397
4509
|
tmp_1 = null;
|
|
@@ -4404,10 +4516,10 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4404
4516
|
while (_iterator__ex2g4s_5.u()) {
|
|
4405
4517
|
var item_2 = _iterator__ex2g4s_5.v();
|
|
4406
4518
|
// Inline function 'kotlin.collections.component1' call
|
|
4407
|
-
var mediaType = item_2.n1().
|
|
4519
|
+
var mediaType = item_2.n1().e3b_1;
|
|
4408
4520
|
// Inline function 'kotlin.collections.component2' call
|
|
4409
4521
|
var mediaObject = item_2.o1();
|
|
4410
|
-
var schema = mediaObject.
|
|
4522
|
+
var schema = mediaObject.a3b();
|
|
4411
4523
|
var tmp_2;
|
|
4412
4524
|
if (!(schema == null) ? isInterface(schema, Reference) : false) {
|
|
4413
4525
|
tmp_2 = toReference_1(_this__u8e3s4, schema, isNullable);
|
|
@@ -4441,7 +4553,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4441
4553
|
var tmp4_elvis_lhs = tmp_0;
|
|
4442
4554
|
var requests = tmp4_elvis_lhs == null ? listOf(new Request(null)) : tmp4_elvis_lhs;
|
|
4443
4555
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4444
|
-
var tmp0_elvis_lhs_1 = operation.
|
|
4556
|
+
var tmp0_elvis_lhs_1 = operation.k1h();
|
|
4445
4557
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4446
4558
|
var tmp0_0 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
4447
4559
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -4451,7 +4563,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4451
4563
|
while (_iterator__ex2g4s_6.u()) {
|
|
4452
4564
|
var element_2 = _iterator__ex2g4s_6.v();
|
|
4453
4565
|
// Inline function 'kotlin.collections.component1' call
|
|
4454
|
-
var status = element_2.n1().
|
|
4566
|
+
var status = element_2.n1().k3a_1;
|
|
4455
4567
|
// Inline function 'kotlin.collections.component2' call
|
|
4456
4568
|
var res = element_2.o1();
|
|
4457
4569
|
// Inline function 'kotlin.let' call
|
|
@@ -4460,9 +4572,9 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4460
4572
|
var tmp_4;
|
|
4461
4573
|
// Inline function 'kotlin.collections.isNullOrEmpty' call
|
|
4462
4574
|
if (content == null || content.r()) {
|
|
4463
|
-
var tmp1_annotations = plus_0(toDescriptionAnnotationList(response.
|
|
4575
|
+
var tmp1_annotations = plus_0(toDescriptionAnnotationList(response.q3a()), toLinkAnnotationList(_this__u8e3s4, response.z3a()));
|
|
4464
4576
|
var tmp2_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4465
|
-
var tmp0_safe_receiver_0 = response.
|
|
4577
|
+
var tmp0_safe_receiver_0 = response.i1h();
|
|
4466
4578
|
var tmp_5;
|
|
4467
4579
|
if (tmp0_safe_receiver_0 == null) {
|
|
4468
4580
|
tmp_5 = null;
|
|
@@ -4494,10 +4606,10 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4494
4606
|
while (_iterator__ex2g4s_8.u()) {
|
|
4495
4607
|
var item_4 = _iterator__ex2g4s_8.v();
|
|
4496
4608
|
// Inline function 'kotlin.collections.component1' call
|
|
4497
|
-
var contentType = item_4.n1().
|
|
4609
|
+
var contentType = item_4.n1().e3b_1;
|
|
4498
4610
|
// Inline function 'kotlin.collections.component2' call
|
|
4499
4611
|
var media = item_4.o1();
|
|
4500
|
-
var tmp0_safe_receiver_1 = media.
|
|
4612
|
+
var tmp0_safe_receiver_1 = media.a3b();
|
|
4501
4613
|
var tmp_6;
|
|
4502
4614
|
if (tmp0_safe_receiver_1 == null) {
|
|
4503
4615
|
tmp_6 = null;
|
|
@@ -4508,9 +4620,9 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4508
4620
|
var tmp1_safe_receiver = tmp_6;
|
|
4509
4621
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : get_isNullable(tmp1_safe_receiver);
|
|
4510
4622
|
var isNullable_0 = tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs;
|
|
4511
|
-
var tmp4_annotations = plus_0(toDescriptionAnnotationList(response.
|
|
4623
|
+
var tmp4_annotations = plus_0(toDescriptionAnnotationList(response.q3a()), toLinkAnnotationList(_this__u8e3s4, response.z3a()));
|
|
4512
4624
|
var tmp5_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4513
|
-
var tmp3_safe_receiver_0 = response.
|
|
4625
|
+
var tmp3_safe_receiver_0 = response.i1h();
|
|
4514
4626
|
var tmp_7;
|
|
4515
4627
|
if (tmp3_safe_receiver_0 == null) {
|
|
4516
4628
|
tmp_7 = null;
|
|
@@ -4533,7 +4645,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4533
4645
|
var p0_0 = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
|
|
4534
4646
|
var tmp6_headers = new Shape(p0_0);
|
|
4535
4647
|
var tmp_8 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
4536
|
-
var schema_0 = media.
|
|
4648
|
+
var schema_0 = media.a3b();
|
|
4537
4649
|
var tmp_9;
|
|
4538
4650
|
if (!(schema_0 == null) ? isInterface(schema_0, Reference) : false) {
|
|
4539
4651
|
tmp_9 = toReference_1(_this__u8e3s4, schema_0, isNullable_0);
|
|
@@ -4558,7 +4670,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4558
4670
|
addAll(destination_6, list);
|
|
4559
4671
|
}
|
|
4560
4672
|
var responses = destination_6;
|
|
4561
|
-
var tmp$ret$10 = new Endpoint(null, toDescriptionAnnotationList(operation.
|
|
4673
|
+
var tmp$ret$10 = new Endpoint(null, toDescriptionAnnotationList(operation.q3a()), new DefinitionIdentifier(name), method, segments, query, headers, requests, responses);
|
|
4562
4674
|
destination_0.x(tmp$ret$10);
|
|
4563
4675
|
}
|
|
4564
4676
|
var list_0 = destination_0;
|
|
@@ -4576,9 +4688,9 @@ function parseResponseBody_0(_this__u8e3s4) {
|
|
|
4576
4688
|
return flatMapResponses(_this__u8e3s4, parseResponseBody$lambda_0(_this__u8e3s4));
|
|
4577
4689
|
}
|
|
4578
4690
|
function parseDefinitions_0(_this__u8e3s4) {
|
|
4579
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
4691
|
+
var tmp0_safe_receiver = _this__u8e3s4.m3d();
|
|
4580
4692
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4581
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4693
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e3o();
|
|
4582
4694
|
// Inline function 'kotlin.collections.filter' call
|
|
4583
4695
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4584
4696
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -4590,7 +4702,7 @@ function parseDefinitions_0(_this__u8e3s4) {
|
|
|
4590
4702
|
var s = element.o1();
|
|
4591
4703
|
var tmp;
|
|
4592
4704
|
if (isInterface(s, Schema)) {
|
|
4593
|
-
var tmp0_subject = s.
|
|
4705
|
+
var tmp0_subject = s.w3a();
|
|
4594
4706
|
var tmp_0;
|
|
4595
4707
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
4596
4708
|
tmp_0 = true;
|
|
@@ -4618,7 +4730,7 @@ function parseDefinitions_0(_this__u8e3s4) {
|
|
|
4618
4730
|
}
|
|
4619
4731
|
}
|
|
4620
4732
|
if (tmp) {
|
|
4621
|
-
destination.
|
|
4733
|
+
destination.w2(element.n1(), element.o1());
|
|
4622
4734
|
}
|
|
4623
4735
|
}
|
|
4624
4736
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -4703,7 +4815,7 @@ function toSegments_0(_this__u8e3s4, path, parameters, name) {
|
|
|
4703
4815
|
}
|
|
4704
4816
|
|
|
4705
4817
|
var tmp1_safe_receiver = tmp$ret$8;
|
|
4706
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4818
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.a3b();
|
|
4707
4819
|
var tmp_0;
|
|
4708
4820
|
if (tmp2_safe_receiver == null) {
|
|
4709
4821
|
tmp_0 = null;
|
|
@@ -4757,13 +4869,13 @@ function toSegments_0(_this__u8e3s4, path, parameters, name) {
|
|
|
4757
4869
|
function get_location_0(_this__u8e3s4) {
|
|
4758
4870
|
var tmp;
|
|
4759
4871
|
if (_this__u8e3s4 instanceof OpenAPIV30Parameter) {
|
|
4760
|
-
tmp = _this__u8e3s4.
|
|
4872
|
+
tmp = _this__u8e3s4.m3q_1;
|
|
4761
4873
|
} else {
|
|
4762
4874
|
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
4763
|
-
tmp = valueOf(_this__u8e3s4.
|
|
4875
|
+
tmp = valueOf(_this__u8e3s4.a3x_1.e3_1);
|
|
4764
4876
|
} else {
|
|
4765
4877
|
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
4766
|
-
tmp = valueOf(_this__u8e3s4.
|
|
4878
|
+
tmp = valueOf(_this__u8e3s4.f47_1.e3_1);
|
|
4767
4879
|
} else {
|
|
4768
4880
|
// Inline function 'kotlin.error' call
|
|
4769
4881
|
var message = 'Unsupported parameter type: ' + toString(_this__u8e3s4);
|
|
@@ -4776,7 +4888,7 @@ function get_location_0(_this__u8e3s4) {
|
|
|
4776
4888
|
function toField_2(_this__u8e3s4, parameter, name) {
|
|
4777
4889
|
var tmp0_elvis_lhs = get_required(parameter);
|
|
4778
4890
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
4779
|
-
var s = parameter.
|
|
4891
|
+
var s = parameter.a3b();
|
|
4780
4892
|
var tmp;
|
|
4781
4893
|
if (!(s == null) ? isInterface(s, Reference) : false) {
|
|
4782
4894
|
tmp = toReference_1(_this__u8e3s4, s, isNullable);
|
|
@@ -4803,7 +4915,7 @@ function resolve_1(_this__u8e3s4, requestBodyOrReference) {
|
|
|
4803
4915
|
tmp = requestBodyOrReference;
|
|
4804
4916
|
} else {
|
|
4805
4917
|
if (isInterface(requestBodyOrReference, Reference)) {
|
|
4806
|
-
tmp = resolveRequestBody(_this__u8e3s4, requestBodyOrReference).
|
|
4918
|
+
tmp = resolveRequestBody(_this__u8e3s4, requestBodyOrReference).hf_1;
|
|
4807
4919
|
} else {
|
|
4808
4920
|
noWhenBranchMatchedException();
|
|
4809
4921
|
}
|
|
@@ -4813,12 +4925,12 @@ function resolve_1(_this__u8e3s4, requestBodyOrReference) {
|
|
|
4813
4925
|
function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
4814
4926
|
// Inline function 'kotlin.let' call
|
|
4815
4927
|
var destruct = resolveSchemaRef_0(_this__u8e3s4, reference);
|
|
4816
|
-
var referencingObject = destruct.
|
|
4817
|
-
var schema = destruct.
|
|
4928
|
+
var referencingObject = destruct.af();
|
|
4929
|
+
var schema = destruct.bf();
|
|
4818
4930
|
var nullable = get_isNullable(schema);
|
|
4819
4931
|
var tmp;
|
|
4820
|
-
if (exists_0(schema.
|
|
4821
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4932
|
+
if (exists_0(schema.w3a())) {
|
|
4933
|
+
var additionalProperties = ensureNotNull(schema.w3a());
|
|
4822
4934
|
var tmp_0;
|
|
4823
4935
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
4824
4936
|
tmp_0 = new Dict(new Any(isNullable), false);
|
|
@@ -4834,12 +4946,12 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4834
4946
|
}
|
|
4835
4947
|
}
|
|
4836
4948
|
tmp = tmp_0;
|
|
4837
|
-
} else if (!(schema.
|
|
4949
|
+
} else if (!(schema.s3a() == null)) {
|
|
4838
4950
|
tmp = new Custom(sanitize(className([getReference(referencingObject)])), isNullable);
|
|
4839
4951
|
} else if (isPrimitive_0(get_primitiveType_0(schema))) {
|
|
4840
4952
|
tmp = new Primitive(toPrimitive_1(schema), isNullable);
|
|
4841
4953
|
} else if (equals(get_primitiveType_0(schema), OpenAPIV30Type_ARRAY_getInstance())) {
|
|
4842
|
-
var items = schema.
|
|
4954
|
+
var items = schema.t3a();
|
|
4843
4955
|
var tmp_1;
|
|
4844
4956
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
4845
4957
|
tmp_1 = toIterable(toReference_1(_this__u8e3s4, items, nullable), isNullable);
|
|
@@ -4849,7 +4961,7 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4849
4961
|
} else {
|
|
4850
4962
|
if (items == null) {
|
|
4851
4963
|
// Inline function 'kotlin.error' call
|
|
4852
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.
|
|
4964
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.p3a());
|
|
4853
4965
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4854
4966
|
} else {
|
|
4855
4967
|
noWhenBranchMatchedException();
|
|
@@ -4867,7 +4979,7 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4867
4979
|
var nullable = get_isNullable(schema);
|
|
4868
4980
|
var tmp;
|
|
4869
4981
|
if (equals(get_primitiveType_0(schema), OpenAPIV30Type_ARRAY_getInstance())) {
|
|
4870
|
-
var items = schema.
|
|
4982
|
+
var items = schema.t3a();
|
|
4871
4983
|
var tmp_0;
|
|
4872
4984
|
if (!(items == null) ? isInterface(items, Reference) : false) {
|
|
4873
4985
|
tmp_0 = toIterable(toReference_1(_this__u8e3s4, items, nullable), isNullable);
|
|
@@ -4885,8 +4997,8 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4885
4997
|
}
|
|
4886
4998
|
}
|
|
4887
4999
|
tmp = tmp_0;
|
|
4888
|
-
} else if (!(schema.
|
|
4889
|
-
var additionalProperties = ensureNotNull(schema.
|
|
5000
|
+
} else if (!(schema.w3a() == null)) {
|
|
5001
|
+
var additionalProperties = ensureNotNull(schema.w3a());
|
|
4890
5002
|
var tmp_1;
|
|
4891
5003
|
if (isInterface(additionalProperties, BooleanValue)) {
|
|
4892
5004
|
tmp_1 = new Dict(new Any(nullable), isNullable);
|
|
@@ -4897,7 +5009,7 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4897
5009
|
if (isInterface(additionalProperties, Schema)) {
|
|
4898
5010
|
// Inline function 'kotlin.takeIf' call
|
|
4899
5011
|
var tmp_2;
|
|
4900
|
-
if (isPrimitive_0(get_primitiveType_0(additionalProperties)) || !(additionalProperties.
|
|
5012
|
+
if (isPrimitive_0(get_primitiveType_0(additionalProperties)) || !(additionalProperties.v3a() == null)) {
|
|
4901
5013
|
tmp_2 = additionalProperties;
|
|
4902
5014
|
} else {
|
|
4903
5015
|
tmp_2 = null;
|
|
@@ -4918,14 +5030,14 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4918
5030
|
}
|
|
4919
5031
|
}
|
|
4920
5032
|
tmp = tmp_1;
|
|
4921
|
-
} else if (!(schema.
|
|
5033
|
+
} else if (!(schema.s3a() == null)) {
|
|
4922
5034
|
// Inline function 'kotlin.let' call
|
|
4923
5035
|
var it = new Custom(sanitize(name), isNullable);
|
|
4924
|
-
tmp = !(schema.
|
|
5036
|
+
tmp = !(schema.w3a() == null) ? new Dict(it, false) : it;
|
|
4925
5037
|
} else {
|
|
4926
5038
|
var tmp2_subject = get_primitiveType_0(schema);
|
|
4927
5039
|
var tmp_4;
|
|
4928
|
-
switch (tmp2_subject == null ? -1 : tmp2_subject.
|
|
5040
|
+
switch (tmp2_subject == null ? -1 : tmp2_subject.f3_1) {
|
|
4929
5041
|
case 0:
|
|
4930
5042
|
case 1:
|
|
4931
5043
|
case 2:
|
|
@@ -4933,26 +5045,26 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4933
5045
|
// Inline function 'kotlin.let' call
|
|
4934
5046
|
|
|
4935
5047
|
var it_0 = new Primitive(toPrimitive_1(schema), isNullable);
|
|
4936
|
-
tmp_4 = !(schema.
|
|
5048
|
+
tmp_4 = !(schema.w3a() == null) ? new Dict(it_0, false) : it_0;
|
|
4937
5049
|
break;
|
|
4938
5050
|
case -1:
|
|
4939
5051
|
case 5:
|
|
4940
5052
|
var tmp_5;
|
|
4941
|
-
var tmp_6 = schema.
|
|
5053
|
+
var tmp_6 = schema.w3a();
|
|
4942
5054
|
if (!(tmp_6 == null) ? isInterface(tmp_6, BooleanValue) : false) {
|
|
4943
5055
|
// Inline function 'kotlin.let' call
|
|
4944
5056
|
var it_1 = new Any(false);
|
|
4945
|
-
tmp_5 = !(schema.
|
|
5057
|
+
tmp_5 = !(schema.w3a() == null) ? new Dict(it_1, false) : it_1;
|
|
4946
5058
|
} else {
|
|
4947
5059
|
// Inline function 'kotlin.let' call
|
|
4948
5060
|
var it_2 = new Custom(sanitize(name), isNullable);
|
|
4949
|
-
tmp_5 = !(schema.
|
|
5061
|
+
tmp_5 = !(schema.w3a() == null) ? new Dict(it_2, false) : it_2;
|
|
4950
5062
|
}
|
|
4951
5063
|
|
|
4952
5064
|
tmp_4 = tmp_5;
|
|
4953
5065
|
break;
|
|
4954
5066
|
case 4:
|
|
4955
|
-
var it_3 = schema.
|
|
5067
|
+
var it_3 = schema.t3a();
|
|
4956
5068
|
var tmp_7;
|
|
4957
5069
|
if (!(it_3 == null) ? isInterface(it_3, Reference) : false) {
|
|
4958
5070
|
tmp_7 = toIterable(toReference_1(_this__u8e3s4, it_3, nullable), isNullable);
|
|
@@ -4989,7 +5101,7 @@ function resolve_2(_this__u8e3s4, responseOrReference) {
|
|
|
4989
5101
|
tmp = responseOrReference;
|
|
4990
5102
|
} else {
|
|
4991
5103
|
if (isInterface(responseOrReference, Reference)) {
|
|
4992
|
-
tmp = resolveResponse_0(_this__u8e3s4, responseOrReference).
|
|
5104
|
+
tmp = resolveResponse_0(_this__u8e3s4, responseOrReference).hf_1;
|
|
4993
5105
|
} else {
|
|
4994
5106
|
noWhenBranchMatchedException();
|
|
4995
5107
|
}
|
|
@@ -4999,13 +5111,13 @@ function resolve_2(_this__u8e3s4, responseOrReference) {
|
|
|
4999
5111
|
function get_content(_this__u8e3s4) {
|
|
5000
5112
|
var tmp;
|
|
5001
5113
|
if (_this__u8e3s4 instanceof OpenAPIV30Response) {
|
|
5002
|
-
tmp = _this__u8e3s4.
|
|
5114
|
+
tmp = _this__u8e3s4.z3r_1;
|
|
5003
5115
|
} else {
|
|
5004
5116
|
if (_this__u8e3s4 instanceof OpenAPIV31Response) {
|
|
5005
|
-
tmp = _this__u8e3s4.
|
|
5117
|
+
tmp = _this__u8e3s4.h3x_1;
|
|
5006
5118
|
} else {
|
|
5007
5119
|
if (_this__u8e3s4 instanceof OpenAPIV32Response) {
|
|
5008
|
-
tmp = _this__u8e3s4.
|
|
5120
|
+
tmp = _this__u8e3s4.m47_1;
|
|
5009
5121
|
} else {
|
|
5010
5122
|
tmp = null;
|
|
5011
5123
|
}
|
|
@@ -5055,7 +5167,7 @@ function toField_3(_this__u8e3s4, header, identifier, name) {
|
|
|
5055
5167
|
// Inline function 'kotlin.let' call
|
|
5056
5168
|
var it = tmp;
|
|
5057
5169
|
var tmp0_identifier = new FieldIdentifier(identifier);
|
|
5058
|
-
var tmp1_annotations = toDescriptionAnnotationList(header.
|
|
5170
|
+
var tmp1_annotations = toDescriptionAnnotationList(header.q3a());
|
|
5059
5171
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
5060
5172
|
}
|
|
5061
5173
|
function resolve_3(_this__u8e3s4, headerOrReference) {
|
|
@@ -5064,7 +5176,7 @@ function resolve_3(_this__u8e3s4, headerOrReference) {
|
|
|
5064
5176
|
tmp = headerOrReference;
|
|
5065
5177
|
} else {
|
|
5066
5178
|
if (isInterface(headerOrReference, Reference)) {
|
|
5067
|
-
tmp = resolveHeader_0(_this__u8e3s4, headerOrReference).
|
|
5179
|
+
tmp = resolveHeader_0(_this__u8e3s4, headerOrReference).hf_1;
|
|
5068
5180
|
} else {
|
|
5069
5181
|
noWhenBranchMatchedException();
|
|
5070
5182
|
}
|
|
@@ -5077,7 +5189,7 @@ function resolve_4(_this__u8e3s4, schemaOrReference) {
|
|
|
5077
5189
|
tmp = schemaOrReference;
|
|
5078
5190
|
} else {
|
|
5079
5191
|
if (isInterface(schemaOrReference, Reference)) {
|
|
5080
|
-
tmp = resolveSchemaRef_0(_this__u8e3s4, schemaOrReference).
|
|
5192
|
+
tmp = resolveSchemaRef_0(_this__u8e3s4, schemaOrReference).hf_1;
|
|
5081
5193
|
} else {
|
|
5082
5194
|
noWhenBranchMatchedException();
|
|
5083
5195
|
}
|
|
@@ -5087,20 +5199,20 @@ function resolve_4(_this__u8e3s4, schemaOrReference) {
|
|
|
5087
5199
|
function get_isNullable(_this__u8e3s4) {
|
|
5088
5200
|
var tmp;
|
|
5089
5201
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5090
|
-
var tmp1_elvis_lhs = _this__u8e3s4.
|
|
5202
|
+
var tmp1_elvis_lhs = _this__u8e3s4.j3o_1;
|
|
5091
5203
|
tmp = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
5092
5204
|
} else {
|
|
5093
5205
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5094
|
-
var tmp_0 = _this__u8e3s4.
|
|
5206
|
+
var tmp_0 = _this__u8e3s4.c3y_1;
|
|
5095
5207
|
var tmp2_safe_receiver = tmp_0 instanceof OpenAPIV31TypeArray ? tmp_0 : null;
|
|
5096
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
5208
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.s3z_1;
|
|
5097
5209
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.i1(OpenAPIV31Type_NULL_getInstance());
|
|
5098
5210
|
tmp = tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs;
|
|
5099
5211
|
} else {
|
|
5100
5212
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5101
|
-
var tmp_1 = _this__u8e3s4.
|
|
5213
|
+
var tmp_1 = _this__u8e3s4.h48_1;
|
|
5102
5214
|
var tmp5_safe_receiver = tmp_1 instanceof OpenAPIV32TypeArray ? tmp_1 : null;
|
|
5103
|
-
var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.
|
|
5215
|
+
var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.x49_1;
|
|
5104
5216
|
var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.i1(OpenAPIV32Type_NULL_getInstance());
|
|
5105
5217
|
tmp = tmp7_elvis_lhs == null ? false : tmp7_elvis_lhs;
|
|
5106
5218
|
} else {
|
|
@@ -5126,13 +5238,13 @@ function flattenSchemaOrRef_0(_this__u8e3s4, schemaOrReference, name) {
|
|
|
5126
5238
|
function get_primitiveType_0(_this__u8e3s4) {
|
|
5127
5239
|
var tmp;
|
|
5128
5240
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5129
|
-
var t = _this__u8e3s4.
|
|
5241
|
+
var t = _this__u8e3s4.q3o_1;
|
|
5130
5242
|
var tmp_0;
|
|
5131
5243
|
if (t instanceof OpenAPIV30SingleType) {
|
|
5132
|
-
tmp_0 = t.
|
|
5244
|
+
tmp_0 = t.h3r_1;
|
|
5133
5245
|
} else {
|
|
5134
5246
|
if (t instanceof OpenAPIV30TypeArray) {
|
|
5135
|
-
var tmp0 = t.
|
|
5247
|
+
var tmp0 = t.m3t_1;
|
|
5136
5248
|
var tmp$ret$0;
|
|
5137
5249
|
$l$block: {
|
|
5138
5250
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -5158,13 +5270,13 @@ function get_primitiveType_0(_this__u8e3s4) {
|
|
|
5158
5270
|
tmp = tmp_0;
|
|
5159
5271
|
} else {
|
|
5160
5272
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5161
|
-
var t_0 = _this__u8e3s4.
|
|
5273
|
+
var t_0 = _this__u8e3s4.c3y_1;
|
|
5162
5274
|
var tmp_1;
|
|
5163
5275
|
if (t_0 instanceof OpenAPIV31SingleType) {
|
|
5164
|
-
tmp_1 = toV30(t_0.
|
|
5276
|
+
tmp_1 = toV30(t_0.t3z_1);
|
|
5165
5277
|
} else {
|
|
5166
5278
|
if (t_0 instanceof OpenAPIV31TypeArray) {
|
|
5167
|
-
var tmp0_0 = t_0.
|
|
5279
|
+
var tmp0_0 = t_0.s3z_1;
|
|
5168
5280
|
var tmp$ret$2;
|
|
5169
5281
|
$l$block_0: {
|
|
5170
5282
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -5191,13 +5303,13 @@ function get_primitiveType_0(_this__u8e3s4) {
|
|
|
5191
5303
|
tmp = tmp_1;
|
|
5192
5304
|
} else {
|
|
5193
5305
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5194
|
-
var t_1 = _this__u8e3s4.
|
|
5306
|
+
var t_1 = _this__u8e3s4.h48_1;
|
|
5195
5307
|
var tmp_2;
|
|
5196
5308
|
if (t_1 instanceof OpenAPIV32SingleType) {
|
|
5197
|
-
tmp_2 = toV30_0(t_1.
|
|
5309
|
+
tmp_2 = toV30_0(t_1.y49_1);
|
|
5198
5310
|
} else {
|
|
5199
5311
|
if (t_1 instanceof OpenAPIV32TypeArray) {
|
|
5200
|
-
var tmp0_1 = t_1.
|
|
5312
|
+
var tmp0_1 = t_1.x49_1;
|
|
5201
5313
|
var tmp$ret$4;
|
|
5202
5314
|
$l$block_1: {
|
|
5203
5315
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -5233,13 +5345,13 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5233
5345
|
var oneOf = get_oneOf(schemaObject);
|
|
5234
5346
|
var anyOf = get_anyOf(schemaObject);
|
|
5235
5347
|
var tmp;
|
|
5236
|
-
if (exists_0(schemaObject.
|
|
5237
|
-
var tmp0_subject = schemaObject.
|
|
5348
|
+
if (exists_0(schemaObject.w3a())) {
|
|
5349
|
+
var tmp0_subject = schemaObject.w3a();
|
|
5238
5350
|
var tmp_0;
|
|
5239
5351
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
5240
5352
|
tmp_0 = emptyList();
|
|
5241
5353
|
} else {
|
|
5242
|
-
var tmp1_safe_receiver = schemaObject.
|
|
5354
|
+
var tmp1_safe_receiver = schemaObject.w3a();
|
|
5243
5355
|
var tmp_1;
|
|
5244
5356
|
if (tmp1_safe_receiver == null) {
|
|
5245
5357
|
tmp_1 = null;
|
|
@@ -5254,7 +5366,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5254
5366
|
} else {
|
|
5255
5367
|
// Inline function 'kotlin.takeIf' call
|
|
5256
5368
|
var tmp_3;
|
|
5257
|
-
if (!(tmp2_safe_receiver.
|
|
5369
|
+
if (!(tmp2_safe_receiver.v3a() == null)) {
|
|
5258
5370
|
tmp_3 = tmp2_safe_receiver;
|
|
5259
5371
|
} else {
|
|
5260
5372
|
tmp_3 = null;
|
|
@@ -5274,7 +5386,7 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5274
5386
|
}
|
|
5275
5387
|
tmp = tmp_0;
|
|
5276
5388
|
} else if (!(oneOf == null) || !(anyOf == null)) {
|
|
5277
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
5389
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.q3a());
|
|
5278
5390
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
5279
5391
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5280
5392
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
@@ -5328,11 +5440,11 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5328
5440
|
addAll(destination_0, list);
|
|
5329
5441
|
}
|
|
5330
5442
|
tmp = plus_0(tmp_8, destination_0);
|
|
5331
|
-
} else if (!(schemaObject.
|
|
5332
|
-
var tmp_10 = toDescriptionAnnotationList(schemaObject.
|
|
5443
|
+
} else if (!(schemaObject.u3a() == null)) {
|
|
5444
|
+
var tmp_10 = toDescriptionAnnotationList(schemaObject.q3a());
|
|
5333
5445
|
var tmp_11 = new DefinitionIdentifier(sanitize(name));
|
|
5334
5446
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5335
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
5447
|
+
var tmp0_elvis_lhs = schemaObject.u3a();
|
|
5336
5448
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5337
5449
|
var tmp0_0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
5338
5450
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -5349,14 +5461,14 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5349
5461
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
5350
5462
|
while (_iterator__ex2g4s_2.u()) {
|
|
5351
5463
|
var e = _iterator__ex2g4s_2.v();
|
|
5352
|
-
var key = e.
|
|
5464
|
+
var key = e.pp_1;
|
|
5353
5465
|
if (set.x(key)) {
|
|
5354
5466
|
list_1.x(e);
|
|
5355
5467
|
}
|
|
5356
5468
|
}
|
|
5357
5469
|
var tmp_12 = listOf(new Type(null, tmp_10, tmp_11, new Shape(list_1), emptyList()));
|
|
5358
5470
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5359
|
-
var tmp0_1 = ensureNotNull(schemaObject.
|
|
5471
|
+
var tmp0_1 = ensureNotNull(schemaObject.u3a());
|
|
5360
5472
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5361
5473
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
5362
5474
|
var _iterator__ex2g4s_3 = tmp0_1.t();
|
|
@@ -5365,12 +5477,12 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5365
5477
|
var tmp_13;
|
|
5366
5478
|
if (isInterface(element_1, Reference)) {
|
|
5367
5479
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5368
|
-
var tmp0_elvis_lhs_0 = resolveSchemaRef_0(_this__u8e3s4, element_1).
|
|
5480
|
+
var tmp0_elvis_lhs_0 = resolveSchemaRef_0(_this__u8e3s4, element_1).hf_1.v3a();
|
|
5369
5481
|
tmp_13 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
5370
5482
|
} else {
|
|
5371
5483
|
if (isInterface(element_1, Schema)) {
|
|
5372
5484
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5373
|
-
var tmp0_elvis_lhs_1 = element_1.
|
|
5485
|
+
var tmp0_elvis_lhs_1 = element_1.v3a();
|
|
5374
5486
|
tmp_13 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
5375
5487
|
} else {
|
|
5376
5488
|
noWhenBranchMatchedException();
|
|
@@ -5395,29 +5507,29 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5395
5507
|
addAll(destination_2, list_3);
|
|
5396
5508
|
}
|
|
5397
5509
|
tmp = plus_0(tmp_12, destination_2);
|
|
5398
|
-
} else if (!(schemaObject.
|
|
5510
|
+
} else if (!(schemaObject.s3a() == null)) {
|
|
5399
5511
|
// Inline function 'kotlin.collections.map' call
|
|
5400
|
-
var this_1 = ensureNotNull(schemaObject.
|
|
5512
|
+
var this_1 = ensureNotNull(schemaObject.s3a());
|
|
5401
5513
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5402
5514
|
var destination_4 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
5403
5515
|
var _iterator__ex2g4s_5 = this_1.t();
|
|
5404
5516
|
while (_iterator__ex2g4s_5.u()) {
|
|
5405
5517
|
var item_0 = _iterator__ex2g4s_5.v();
|
|
5406
|
-
var tmp$ret$33 = item_0.
|
|
5518
|
+
var tmp$ret$33 = item_0.m1i();
|
|
5407
5519
|
destination_4.x(tmp$ret$33);
|
|
5408
5520
|
}
|
|
5409
5521
|
// Inline function 'kotlin.let' call
|
|
5410
5522
|
var it = toSet(destination_4);
|
|
5411
|
-
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.
|
|
5523
|
+
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.q3a()), new DefinitionIdentifier(name), it));
|
|
5412
5524
|
} else {
|
|
5413
5525
|
var tmp5_subject = get_primitiveType_0(schemaObject);
|
|
5414
5526
|
var tmp_14;
|
|
5415
|
-
switch (tmp5_subject == null ? -1 : tmp5_subject.
|
|
5527
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.f3_1) {
|
|
5416
5528
|
case -1:
|
|
5417
5529
|
case 5:
|
|
5418
5530
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5419
5531
|
|
|
5420
|
-
var tmp0_elvis_lhs_2 = schemaObject.
|
|
5532
|
+
var tmp0_elvis_lhs_2 = schemaObject.v3a();
|
|
5421
5533
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5422
5534
|
|
|
5423
5535
|
var tmp0_3 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
@@ -5438,11 +5550,11 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5438
5550
|
}
|
|
5439
5551
|
|
|
5440
5552
|
var fields = destination_5;
|
|
5441
|
-
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.
|
|
5553
|
+
var schema = listOf(new Type(null, toDescriptionAnnotationList(schemaObject.q3a()), new DefinitionIdentifier(name), new Shape(toField_4(_this__u8e3s4, schemaObject, name)), emptyList()));
|
|
5442
5554
|
tmp_14 = plus_0(schema, fields);
|
|
5443
5555
|
break;
|
|
5444
5556
|
case 4:
|
|
5445
|
-
var tmp6_safe_receiver = schemaObject.
|
|
5557
|
+
var tmp6_safe_receiver = schemaObject.t3a();
|
|
5446
5558
|
var tmp_15;
|
|
5447
5559
|
if (tmp6_safe_receiver == null) {
|
|
5448
5560
|
tmp_15 = null;
|
|
@@ -5485,18 +5597,18 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5485
5597
|
var element = _iterator__ex2g4s.v();
|
|
5486
5598
|
// Inline function 'kotlin.collections.component2' call
|
|
5487
5599
|
var mediaObject = element.o1();
|
|
5488
|
-
var schema = mediaObject.
|
|
5600
|
+
var schema = mediaObject.a3b();
|
|
5489
5601
|
var tmp;
|
|
5490
5602
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
5491
5603
|
var tmp0_subject = get_primitiveType_0(schema);
|
|
5492
5604
|
var tmp_0;
|
|
5493
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
5605
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.f3_1) {
|
|
5494
5606
|
case -1:
|
|
5495
5607
|
case 5:
|
|
5496
5608
|
tmp_0 = flatten_0(_this__u8e3s4, schema, className([name, _StatusCode___get_value__impl__we50mu(statusCode), 'ResponseBody']));
|
|
5497
5609
|
break;
|
|
5498
5610
|
case 4:
|
|
5499
|
-
var tmp1_safe_receiver = schema.
|
|
5611
|
+
var tmp1_safe_receiver = schema.t3a();
|
|
5500
5612
|
var tmp_1;
|
|
5501
5613
|
if (tmp1_safe_receiver == null) {
|
|
5502
5614
|
tmp_1 = null;
|
|
@@ -5524,9 +5636,9 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5524
5636
|
return destination;
|
|
5525
5637
|
}
|
|
5526
5638
|
function resolveResponse_0(_this__u8e3s4, reference) {
|
|
5527
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5528
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5529
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5639
|
+
var tmp0_safe_receiver = _this__u8e3s4.m3d();
|
|
5640
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k1h();
|
|
5641
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t2(getReference(reference));
|
|
5530
5642
|
var tmp;
|
|
5531
5643
|
if (tmp2_safe_receiver == null) {
|
|
5532
5644
|
tmp = null;
|
|
@@ -5548,7 +5660,7 @@ function resolveResponse_0(_this__u8e3s4, reference) {
|
|
|
5548
5660
|
var tmp_1;
|
|
5549
5661
|
if (tmp3_elvis_lhs == null) {
|
|
5550
5662
|
// Inline function 'kotlin.error' call
|
|
5551
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5663
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.p3a());
|
|
5552
5664
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5553
5665
|
} else {
|
|
5554
5666
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5556,9 +5668,9 @@ function resolveResponse_0(_this__u8e3s4, reference) {
|
|
|
5556
5668
|
return tmp_1;
|
|
5557
5669
|
}
|
|
5558
5670
|
function resolveParameter_0(_this__u8e3s4, reference) {
|
|
5559
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5560
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5561
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5671
|
+
var tmp0_safe_receiver = _this__u8e3s4.m3d();
|
|
5672
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o1i();
|
|
5673
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t2(getReference(reference));
|
|
5562
5674
|
var tmp;
|
|
5563
5675
|
if (tmp2_safe_receiver == null) {
|
|
5564
5676
|
tmp = null;
|
|
@@ -5581,13 +5693,13 @@ function resolveParameter_0(_this__u8e3s4, reference) {
|
|
|
5581
5693
|
function get_required(_this__u8e3s4) {
|
|
5582
5694
|
var tmp;
|
|
5583
5695
|
if (_this__u8e3s4 instanceof OpenAPIV30Parameter) {
|
|
5584
|
-
tmp = _this__u8e3s4.
|
|
5696
|
+
tmp = _this__u8e3s4.d3q_1;
|
|
5585
5697
|
} else {
|
|
5586
5698
|
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
5587
|
-
tmp = _this__u8e3s4.
|
|
5699
|
+
tmp = _this__u8e3s4.r3w_1;
|
|
5588
5700
|
} else {
|
|
5589
5701
|
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
5590
|
-
tmp = _this__u8e3s4.
|
|
5702
|
+
tmp = _this__u8e3s4.w46_1;
|
|
5591
5703
|
} else {
|
|
5592
5704
|
tmp = null;
|
|
5593
5705
|
}
|
|
@@ -5598,13 +5710,13 @@ function get_required(_this__u8e3s4) {
|
|
|
5598
5710
|
function get_description(_this__u8e3s4) {
|
|
5599
5711
|
var tmp;
|
|
5600
5712
|
if (_this__u8e3s4 instanceof OpenAPIV30Parameter) {
|
|
5601
|
-
tmp = _this__u8e3s4.
|
|
5713
|
+
tmp = _this__u8e3s4.c3q_1;
|
|
5602
5714
|
} else {
|
|
5603
5715
|
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
5604
|
-
tmp = _this__u8e3s4.
|
|
5716
|
+
tmp = _this__u8e3s4.q3w_1;
|
|
5605
5717
|
} else {
|
|
5606
5718
|
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
5607
|
-
tmp = _this__u8e3s4.
|
|
5719
|
+
tmp = _this__u8e3s4.v46_1;
|
|
5608
5720
|
} else {
|
|
5609
5721
|
tmp = null;
|
|
5610
5722
|
}
|
|
@@ -5613,9 +5725,9 @@ function get_description(_this__u8e3s4) {
|
|
|
5613
5725
|
return tmp;
|
|
5614
5726
|
}
|
|
5615
5727
|
function resolveRequestBody(_this__u8e3s4, reference) {
|
|
5616
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5617
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5618
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5728
|
+
var tmp0_safe_receiver = _this__u8e3s4.m3d();
|
|
5729
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f3o();
|
|
5730
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t2(getReference(reference));
|
|
5619
5731
|
var tmp;
|
|
5620
5732
|
if (tmp2_safe_receiver == null) {
|
|
5621
5733
|
tmp = null;
|
|
@@ -5637,7 +5749,7 @@ function resolveRequestBody(_this__u8e3s4, reference) {
|
|
|
5637
5749
|
var tmp_1;
|
|
5638
5750
|
if (tmp3_elvis_lhs == null) {
|
|
5639
5751
|
// Inline function 'kotlin.error' call
|
|
5640
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5752
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.p3a());
|
|
5641
5753
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5642
5754
|
} else {
|
|
5643
5755
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5645,9 +5757,9 @@ function resolveRequestBody(_this__u8e3s4, reference) {
|
|
|
5645
5757
|
return tmp_1;
|
|
5646
5758
|
}
|
|
5647
5759
|
function resolveSchemaRef_0(_this__u8e3s4, reference) {
|
|
5648
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5649
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5650
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5760
|
+
var tmp0_safe_receiver = _this__u8e3s4.m3d();
|
|
5761
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e3o();
|
|
5762
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t2(getReference(reference));
|
|
5651
5763
|
var tmp;
|
|
5652
5764
|
if (tmp2_safe_receiver == null) {
|
|
5653
5765
|
tmp = null;
|
|
@@ -5669,7 +5781,7 @@ function resolveSchemaRef_0(_this__u8e3s4, reference) {
|
|
|
5669
5781
|
var tmp_1;
|
|
5670
5782
|
if (tmp3_elvis_lhs == null) {
|
|
5671
5783
|
// Inline function 'kotlin.error' call
|
|
5672
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5784
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.p3a());
|
|
5673
5785
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5674
5786
|
} else {
|
|
5675
5787
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5699,7 +5811,7 @@ function exists_0(_this__u8e3s4) {
|
|
|
5699
5811
|
}
|
|
5700
5812
|
function isPrimitive_0(_this__u8e3s4) {
|
|
5701
5813
|
var tmp;
|
|
5702
|
-
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.
|
|
5814
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.f3_1) {
|
|
5703
5815
|
case 0:
|
|
5704
5816
|
tmp = true;
|
|
5705
5817
|
break;
|
|
@@ -5733,15 +5845,15 @@ function isPrimitive_0(_this__u8e3s4) {
|
|
|
5733
5845
|
function toPrimitive_1(_this__u8e3s4) {
|
|
5734
5846
|
var tmp0_subject = get_primitiveType_0(_this__u8e3s4);
|
|
5735
5847
|
var tmp;
|
|
5736
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
5848
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.f3_1) {
|
|
5737
5849
|
case 0:
|
|
5738
|
-
tmp =
|
|
5850
|
+
tmp = _this__u8e3s4.y3a() == null && _this__u8e3s4.x3a() === 'binary' ? Bytes_instance : stringType(_this__u8e3s4.y3a(), _this__u8e3s4.x3a());
|
|
5739
5851
|
break;
|
|
5740
5852
|
case 2:
|
|
5741
|
-
tmp = new Integer(_this__u8e3s4.
|
|
5853
|
+
tmp = new Integer(_this__u8e3s4.x3a() === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5742
5854
|
break;
|
|
5743
5855
|
case 1:
|
|
5744
|
-
tmp = new Number_0(_this__u8e3s4.
|
|
5856
|
+
tmp = new Number_0(_this__u8e3s4.x3a() === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
5745
5857
|
break;
|
|
5746
5858
|
case 3:
|
|
5747
5859
|
tmp = Boolean_instance;
|
|
@@ -5755,10 +5867,10 @@ function toPrimitive_1(_this__u8e3s4) {
|
|
|
5755
5867
|
return tmp;
|
|
5756
5868
|
}
|
|
5757
5869
|
function toLinkInfo_0(_this__u8e3s4, name) {
|
|
5758
|
-
var tmp = _this__u8e3s4.
|
|
5759
|
-
var tmp_0 = _this__u8e3s4.
|
|
5870
|
+
var tmp = _this__u8e3s4.g3b();
|
|
5871
|
+
var tmp_0 = _this__u8e3s4.f3b();
|
|
5760
5872
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5761
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
5873
|
+
var tmp0_elvis_lhs = _this__u8e3s4.o1i();
|
|
5762
5874
|
// Inline function 'kotlin.collections.mapValues' call
|
|
5763
5875
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
5764
5876
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
@@ -5769,14 +5881,14 @@ function toLinkInfo_0(_this__u8e3s4, name) {
|
|
|
5769
5881
|
var element = _iterator__ex2g4s.v();
|
|
5770
5882
|
var tmp_1 = element.n1();
|
|
5771
5883
|
var tmp$ret$5 = asLinkExpression(element.o1());
|
|
5772
|
-
destination.
|
|
5884
|
+
destination.w2(tmp_1, tmp$ret$5);
|
|
5773
5885
|
}
|
|
5774
5886
|
var tmp_2 = destination;
|
|
5775
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5887
|
+
var tmp0_safe_receiver = _this__u8e3s4.h3b();
|
|
5776
5888
|
var tmp_3 = tmp0_safe_receiver == null ? null : asLinkExpression(tmp0_safe_receiver);
|
|
5777
|
-
var tmp_4 = _this__u8e3s4.
|
|
5778
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
5779
|
-
return new LinkInfo(name, tmp, tmp_0, tmp_2, tmp_3, tmp_4, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5889
|
+
var tmp_4 = _this__u8e3s4.q3a();
|
|
5890
|
+
var tmp1_safe_receiver = _this__u8e3s4.i3b();
|
|
5891
|
+
return new LinkInfo(name, tmp, tmp_0, tmp_2, tmp_3, tmp_4, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m3b_1);
|
|
5780
5892
|
}
|
|
5781
5893
|
function resolve_5(_this__u8e3s4, linkOrReference) {
|
|
5782
5894
|
var tmp;
|
|
@@ -5794,13 +5906,13 @@ function resolve_5(_this__u8e3s4, linkOrReference) {
|
|
|
5794
5906
|
function get_required_0(_this__u8e3s4) {
|
|
5795
5907
|
var tmp;
|
|
5796
5908
|
if (_this__u8e3s4 instanceof OpenAPIV30Header) {
|
|
5797
|
-
tmp = _this__u8e3s4.
|
|
5909
|
+
tmp = _this__u8e3s4.b3t_1;
|
|
5798
5910
|
} else {
|
|
5799
5911
|
if (_this__u8e3s4 instanceof OpenAPIV31Header) {
|
|
5800
|
-
tmp = _this__u8e3s4.
|
|
5912
|
+
tmp = _this__u8e3s4.y3z_1;
|
|
5801
5913
|
} else {
|
|
5802
5914
|
if (_this__u8e3s4 instanceof OpenAPIV32Header) {
|
|
5803
|
-
tmp = _this__u8e3s4.
|
|
5915
|
+
tmp = _this__u8e3s4.d4a_1;
|
|
5804
5916
|
} else {
|
|
5805
5917
|
tmp = null;
|
|
5806
5918
|
}
|
|
@@ -5811,13 +5923,13 @@ function get_required_0(_this__u8e3s4) {
|
|
|
5811
5923
|
function get_schema(_this__u8e3s4) {
|
|
5812
5924
|
var tmp;
|
|
5813
5925
|
if (_this__u8e3s4 instanceof OpenAPIV30Header) {
|
|
5814
|
-
tmp = _this__u8e3s4.
|
|
5926
|
+
tmp = _this__u8e3s4.h3t_1;
|
|
5815
5927
|
} else {
|
|
5816
5928
|
if (_this__u8e3s4 instanceof OpenAPIV31Header) {
|
|
5817
|
-
tmp = _this__u8e3s4.
|
|
5929
|
+
tmp = _this__u8e3s4.e40_1;
|
|
5818
5930
|
} else {
|
|
5819
5931
|
if (_this__u8e3s4 instanceof OpenAPIV32Header) {
|
|
5820
|
-
tmp = _this__u8e3s4.
|
|
5932
|
+
tmp = _this__u8e3s4.j4a_1;
|
|
5821
5933
|
} else {
|
|
5822
5934
|
tmp = null;
|
|
5823
5935
|
}
|
|
@@ -5826,9 +5938,9 @@ function get_schema(_this__u8e3s4) {
|
|
|
5826
5938
|
return tmp;
|
|
5827
5939
|
}
|
|
5828
5940
|
function resolveHeader_0(_this__u8e3s4, reference) {
|
|
5829
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5830
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5831
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5941
|
+
var tmp0_safe_receiver = _this__u8e3s4.m3d();
|
|
5942
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i1h();
|
|
5943
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t2(getReference(reference));
|
|
5832
5944
|
var tmp;
|
|
5833
5945
|
if (tmp2_safe_receiver == null) {
|
|
5834
5946
|
tmp = null;
|
|
@@ -5850,7 +5962,7 @@ function resolveHeader_0(_this__u8e3s4, reference) {
|
|
|
5850
5962
|
var tmp_1;
|
|
5851
5963
|
if (tmp3_elvis_lhs == null) {
|
|
5852
5964
|
// Inline function 'kotlin.error' call
|
|
5853
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
5965
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.p3a());
|
|
5854
5966
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5855
5967
|
} else {
|
|
5856
5968
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -5858,15 +5970,15 @@ function resolveHeader_0(_this__u8e3s4, reference) {
|
|
|
5858
5970
|
return tmp_1;
|
|
5859
5971
|
}
|
|
5860
5972
|
function toV30(_this__u8e3s4) {
|
|
5861
|
-
return valueOf_0(_this__u8e3s4.
|
|
5973
|
+
return valueOf_0(_this__u8e3s4.e3_1);
|
|
5862
5974
|
}
|
|
5863
5975
|
function toV30_0(_this__u8e3s4) {
|
|
5864
|
-
return valueOf_0(_this__u8e3s4.
|
|
5976
|
+
return valueOf_0(_this__u8e3s4.e3_1);
|
|
5865
5977
|
}
|
|
5866
5978
|
function get_oneOf(_this__u8e3s4) {
|
|
5867
5979
|
var tmp;
|
|
5868
5980
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5869
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
5981
|
+
var tmp1_safe_receiver = _this__u8e3s4.m3o_1;
|
|
5870
5982
|
var tmp_0;
|
|
5871
5983
|
if (tmp1_safe_receiver == null) {
|
|
5872
5984
|
tmp_0 = null;
|
|
@@ -5885,7 +5997,7 @@ function get_oneOf(_this__u8e3s4) {
|
|
|
5885
5997
|
tmp = tmp_0;
|
|
5886
5998
|
} else {
|
|
5887
5999
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5888
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
6000
|
+
var tmp2_safe_receiver = _this__u8e3s4.y3x_1;
|
|
5889
6001
|
var tmp_1;
|
|
5890
6002
|
if (tmp2_safe_receiver == null) {
|
|
5891
6003
|
tmp_1 = null;
|
|
@@ -5904,7 +6016,7 @@ function get_oneOf(_this__u8e3s4) {
|
|
|
5904
6016
|
tmp = tmp_1;
|
|
5905
6017
|
} else {
|
|
5906
6018
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5907
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
6019
|
+
var tmp3_safe_receiver = _this__u8e3s4.d48_1;
|
|
5908
6020
|
var tmp_2;
|
|
5909
6021
|
if (tmp3_safe_receiver == null) {
|
|
5910
6022
|
tmp_2 = null;
|
|
@@ -5931,7 +6043,7 @@ function get_oneOf(_this__u8e3s4) {
|
|
|
5931
6043
|
function get_anyOf(_this__u8e3s4) {
|
|
5932
6044
|
var tmp;
|
|
5933
6045
|
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5934
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
6046
|
+
var tmp1_safe_receiver = _this__u8e3s4.n3o_1;
|
|
5935
6047
|
var tmp_0;
|
|
5936
6048
|
if (tmp1_safe_receiver == null) {
|
|
5937
6049
|
tmp_0 = null;
|
|
@@ -5950,7 +6062,7 @@ function get_anyOf(_this__u8e3s4) {
|
|
|
5950
6062
|
tmp = tmp_0;
|
|
5951
6063
|
} else {
|
|
5952
6064
|
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5953
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
6065
|
+
var tmp2_safe_receiver = _this__u8e3s4.z3x_1;
|
|
5954
6066
|
var tmp_1;
|
|
5955
6067
|
if (tmp2_safe_receiver == null) {
|
|
5956
6068
|
tmp_1 = null;
|
|
@@ -5969,7 +6081,7 @@ function get_anyOf(_this__u8e3s4) {
|
|
|
5969
6081
|
tmp = tmp_1;
|
|
5970
6082
|
} else {
|
|
5971
6083
|
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5972
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
6084
|
+
var tmp3_safe_receiver = _this__u8e3s4.e48_1;
|
|
5973
6085
|
var tmp_2;
|
|
5974
6086
|
if (tmp3_safe_receiver == null) {
|
|
5975
6087
|
tmp_2 = null;
|
|
@@ -5999,7 +6111,7 @@ function resolve_6(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
5999
6111
|
tmp = schemaOrReferenceOrBoolean;
|
|
6000
6112
|
} else {
|
|
6001
6113
|
if (isInterface(schemaOrReferenceOrBoolean, Reference)) {
|
|
6002
|
-
tmp = resolveSchemaRef_0(_this__u8e3s4, schemaOrReferenceOrBoolean).
|
|
6114
|
+
tmp = resolveSchemaRef_0(_this__u8e3s4, schemaOrReferenceOrBoolean).hf_1;
|
|
6003
6115
|
} else {
|
|
6004
6116
|
if (isInterface(schemaOrReferenceOrBoolean, BooleanValue)) {
|
|
6005
6117
|
// Inline function 'kotlin.TODO' call
|
|
@@ -6014,7 +6126,7 @@ function resolve_6(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
|
6014
6126
|
}
|
|
6015
6127
|
function toField_4(_this__u8e3s4, schema, name) {
|
|
6016
6128
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
6017
|
-
var tmp0_elvis_lhs = schema.
|
|
6129
|
+
var tmp0_elvis_lhs = schema.v3a();
|
|
6018
6130
|
// Inline function 'kotlin.collections.map' call
|
|
6019
6131
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
6020
6132
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -6027,16 +6139,16 @@ function toField_4(_this__u8e3s4, schema, name) {
|
|
|
6027
6139
|
var key = item.n1();
|
|
6028
6140
|
// Inline function 'kotlin.collections.component2' call
|
|
6029
6141
|
var value = item.o1();
|
|
6030
|
-
var tmp0_safe_receiver = schema.
|
|
6142
|
+
var tmp0_safe_receiver = schema.e1w();
|
|
6031
6143
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i1(key);
|
|
6032
6144
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
6033
6145
|
var tmp;
|
|
6034
6146
|
if (isInterface(value, Schema)) {
|
|
6035
6147
|
// Inline function 'kotlin.let' call
|
|
6036
|
-
var reference = !(value.
|
|
6148
|
+
var reference = !(value.s3a() == 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]));
|
|
6037
6149
|
var tmp1_identifier = new FieldIdentifier(key);
|
|
6038
|
-
var tmp2_annotations = toDescriptionAnnotationList(value.
|
|
6039
|
-
var tmp0_safe_receiver_0 = value.
|
|
6150
|
+
var tmp2_annotations = toDescriptionAnnotationList(value.q3a());
|
|
6151
|
+
var tmp0_safe_receiver_0 = value.r3a();
|
|
6040
6152
|
var tmp3_defaultValue = tmp0_safe_receiver_0 == null ? null : toDefaultValue(tmp0_safe_receiver_0, reference);
|
|
6041
6153
|
tmp = new Field(tmp2_annotations, tmp1_identifier, reference, tmp3_defaultValue);
|
|
6042
6154
|
} else {
|
|
@@ -6060,9 +6172,9 @@ function asLinkExpression(_this__u8e3s4) {
|
|
|
6060
6172
|
return tmp1_elvis_lhs == null ? toString(_this__u8e3s4) : tmp1_elvis_lhs;
|
|
6061
6173
|
}
|
|
6062
6174
|
function resolveLink(_this__u8e3s4, reference) {
|
|
6063
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
6064
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
6065
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
6175
|
+
var tmp0_safe_receiver = _this__u8e3s4.m3d();
|
|
6176
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z3a();
|
|
6177
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t2(getReference(reference));
|
|
6066
6178
|
var tmp;
|
|
6067
6179
|
if (tmp2_safe_receiver == null) {
|
|
6068
6180
|
tmp = null;
|
|
@@ -6084,7 +6196,7 @@ function resolveLink(_this__u8e3s4, reference) {
|
|
|
6084
6196
|
var tmp_1;
|
|
6085
6197
|
if (tmp3_elvis_lhs == null) {
|
|
6086
6198
|
// Inline function 'kotlin.error' call
|
|
6087
|
-
var message = 'Cannot resolve link ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
6199
|
+
var message = 'Cannot resolve link ref: ' + Ref__toString_impl_irb7zi(reference.p3a());
|
|
6088
6200
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
6089
6201
|
} else {
|
|
6090
6202
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -6132,16 +6244,16 @@ function toCommon_1(_this__u8e3s4) {
|
|
|
6132
6244
|
}
|
|
6133
6245
|
function parseParameters$lambda_0($this_parseParameters) {
|
|
6134
6246
|
return function ($this$flatMapRequests) {
|
|
6135
|
-
var parameters = plus_0(resolveParameters_0($this_parseParameters, $this$flatMapRequests.
|
|
6136
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
6137
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
6247
|
+
var parameters = plus_0(resolveParameters_0($this_parseParameters, $this$flatMapRequests.y4g_1.o1i()), resolveParameters_0($this_parseParameters, $this$flatMapRequests.a4h_1.o1i()));
|
|
6248
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.a4h_1);
|
|
6249
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.x4g_1) + $this$flatMapRequests.z4g_1.e3_1 : tmp0_elvis_lhs;
|
|
6138
6250
|
// Inline function 'kotlin.collections.flatMap' call
|
|
6139
6251
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
6140
6252
|
var destination = ArrayList_init_$Create$_0();
|
|
6141
6253
|
var _iterator__ex2g4s = parameters.t();
|
|
6142
6254
|
while (_iterator__ex2g4s.u()) {
|
|
6143
6255
|
var element = _iterator__ex2g4s.v();
|
|
6144
|
-
var tmp0_safe_receiver = element.
|
|
6256
|
+
var tmp0_safe_receiver = element.a3b();
|
|
6145
6257
|
var tmp;
|
|
6146
6258
|
if (tmp0_safe_receiver == null) {
|
|
6147
6259
|
tmp = null;
|
|
@@ -6158,9 +6270,9 @@ function parseParameters$lambda_0($this_parseParameters) {
|
|
|
6158
6270
|
}
|
|
6159
6271
|
function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
6160
6272
|
return function ($this$flatMapRequests) {
|
|
6161
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
6162
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
6163
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
6273
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.a4h_1);
|
|
6274
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.x4g_1) + $this$flatMapRequests.z4g_1.e3_1 : tmp0_elvis_lhs;
|
|
6275
|
+
var tmp1_safe_receiver = $this$flatMapRequests.a4h_1.h3b();
|
|
6164
6276
|
var tmp;
|
|
6165
6277
|
if (tmp1_safe_receiver == null) {
|
|
6166
6278
|
tmp = null;
|
|
@@ -6170,7 +6282,7 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
6170
6282
|
}
|
|
6171
6283
|
var tmp2_safe_receiver = tmp;
|
|
6172
6284
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
6173
|
-
var tmp0_elvis_lhs_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
6285
|
+
var tmp0_elvis_lhs_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.m1i();
|
|
6174
6286
|
// Inline function 'kotlin.collections.flatMap' call
|
|
6175
6287
|
var tmp0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
6176
6288
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -6181,18 +6293,18 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
6181
6293
|
var element = _iterator__ex2g4s.v();
|
|
6182
6294
|
// Inline function 'kotlin.collections.component2' call
|
|
6183
6295
|
var mediaObject = element.o1();
|
|
6184
|
-
var schema = mediaObject.
|
|
6296
|
+
var schema = mediaObject.a3b();
|
|
6185
6297
|
var tmp_0;
|
|
6186
6298
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
6187
6299
|
var tmp0_subject = get_primitiveType_0(schema);
|
|
6188
6300
|
var tmp_1;
|
|
6189
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
6301
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.f3_1) {
|
|
6190
6302
|
case -1:
|
|
6191
6303
|
case 5:
|
|
6192
6304
|
tmp_1 = flatten_0($this_parseRequestBody, schema, className([name, 'RequestBody']));
|
|
6193
6305
|
break;
|
|
6194
6306
|
case 4:
|
|
6195
|
-
var tmp1_safe_receiver_0 = schema.
|
|
6307
|
+
var tmp1_safe_receiver_0 = schema.t3a();
|
|
6196
6308
|
var tmp_2;
|
|
6197
6309
|
if (tmp1_safe_receiver_0 == null) {
|
|
6198
6310
|
tmp_2 = null;
|
|
@@ -6232,15 +6344,15 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
6232
6344
|
}
|
|
6233
6345
|
function parseResponseBody$lambda_0($this_parseResponseBody) {
|
|
6234
6346
|
return function ($this$flatMapResponses) {
|
|
6235
|
-
var tmp0_elvis_lhs = toName($this$flatMapResponses.
|
|
6236
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
6237
|
-
var res = $this$flatMapResponses.
|
|
6347
|
+
var tmp0_elvis_lhs = toName($this$flatMapResponses.e4h_1);
|
|
6348
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.b4h_1) + $this$flatMapResponses.d4h_1.e3_1 : tmp0_elvis_lhs;
|
|
6349
|
+
var res = $this$flatMapResponses.g4h_1;
|
|
6238
6350
|
var tmp;
|
|
6239
6351
|
if (isInterface(res, Reference)) {
|
|
6240
|
-
tmp = flatMapResponse($this_parseResponseBody, resolveResponse_0($this_parseResponseBody, res).
|
|
6352
|
+
tmp = flatMapResponse($this_parseResponseBody, resolveResponse_0($this_parseResponseBody, res).hf_1, name, $this$flatMapResponses.f4h_1);
|
|
6241
6353
|
} else {
|
|
6242
6354
|
if (isInterface(res, Response_0)) {
|
|
6243
|
-
tmp = flatMapResponse($this_parseResponseBody, res, name, $this$flatMapResponses.
|
|
6355
|
+
tmp = flatMapResponse($this_parseResponseBody, res, name, $this$flatMapResponses.f4h_1);
|
|
6244
6356
|
} else {
|
|
6245
6357
|
noWhenBranchMatchedException();
|
|
6246
6358
|
}
|