@flock/wirespec 0.19.1 → 0.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/colormath-root-colormath.mjs +12 -12
- package/kotlin-kotlin-stdlib.mjs +10 -10
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10174 -10095
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +72 -72
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +8 -8
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +14 -14
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +53 -53
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +18 -18
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +2 -2
- package/wirespec-src-converter-openapi.mjs +546 -178
- package/wirespec-src-converter-openapi.mjs.map +1 -1
|
@@ -201,10 +201,26 @@ import {
|
|
|
201
201
|
OpenAPIV30Model3bxt7yjg5ndcc as OpenAPIV30Model,
|
|
202
202
|
OpenAPIV31g8gt7hcfq0id as OpenAPIV3,
|
|
203
203
|
_MediaType___get_value__impl__wy58mp1m88toxx0gggx as _MediaType___get_value__impl__wy58mp,
|
|
204
|
+
valueOf2snn8a86zrn3x as valueOf,
|
|
205
|
+
OpenAPIV32Parameter3awt4dn5d24nz as OpenAPIV32Parameter,
|
|
206
|
+
OpenAPIV31Parameter1o07owgg1qvaz as OpenAPIV31Parameter,
|
|
204
207
|
RequestBodyw8ucveezglzh as RequestBody,
|
|
208
|
+
OpenAPIV32Responsetfaeohzihjlm as OpenAPIV32Response,
|
|
209
|
+
OpenAPIV31Response37fu5ktfdy6bk as OpenAPIV31Response,
|
|
210
|
+
OpenAPIV32TypeArray2nm5zu2gua0mj as OpenAPIV32TypeArray,
|
|
211
|
+
OpenAPIV32Type_NULL_getInstance3ffc7l0drxklj as OpenAPIV32Type_NULL_getInstance,
|
|
212
|
+
OpenAPIV32Schema3o65r9id9qeni as OpenAPIV32Schema,
|
|
213
|
+
OpenAPIV31TypeArray27q944mgkys8u as OpenAPIV31TypeArray,
|
|
214
|
+
OpenAPIV31Type_NULL_getInstancec2hwbfxq531x as OpenAPIV31Type_NULL_getInstance,
|
|
215
|
+
OpenAPIV31Schema15ji457v8pt4g as OpenAPIV31Schema,
|
|
216
|
+
OpenAPIV32SingleType107kuqu9w1hb4 as OpenAPIV32SingleType,
|
|
217
|
+
OpenAPIV31SingleType24n0tvtykljqq as OpenAPIV31SingleType,
|
|
205
218
|
OpenAPIV30Type_NULL_getInstance2earergo30akw as OpenAPIV30Type_NULL_getInstance,
|
|
206
219
|
OpenAPIV30TypeArray1gqx4r8ldc7l5 as OpenAPIV30TypeArray,
|
|
207
220
|
Link35814856gnkdu as Link,
|
|
221
|
+
OpenAPIV32Headerwq3xw7veabjl as OpenAPIV32Header,
|
|
222
|
+
OpenAPIV31Header1c8fj5ichqpeq as OpenAPIV31Header,
|
|
223
|
+
valueOf2b66yft9pxnjh as valueOf_0,
|
|
208
224
|
} from './kotlin-openapi-bindings.mjs';
|
|
209
225
|
import {
|
|
210
226
|
serializer1i4e9ym37oxmo as serializer,
|
|
@@ -287,28 +303,28 @@ function toOperationList(_this__u8e3s4) {
|
|
|
287
303
|
var tmp;
|
|
288
304
|
switch (element.b3_1) {
|
|
289
305
|
case 0:
|
|
290
|
-
tmp = _this__u8e3s4.
|
|
306
|
+
tmp = _this__u8e3s4.t34();
|
|
291
307
|
break;
|
|
292
308
|
case 1:
|
|
293
|
-
tmp = _this__u8e3s4.
|
|
309
|
+
tmp = _this__u8e3s4.v34();
|
|
294
310
|
break;
|
|
295
311
|
case 2:
|
|
296
|
-
tmp = _this__u8e3s4.
|
|
312
|
+
tmp = _this__u8e3s4.u34();
|
|
297
313
|
break;
|
|
298
314
|
case 3:
|
|
299
|
-
tmp = _this__u8e3s4.
|
|
315
|
+
tmp = _this__u8e3s4.w34();
|
|
300
316
|
break;
|
|
301
317
|
case 4:
|
|
302
|
-
tmp = _this__u8e3s4.
|
|
318
|
+
tmp = _this__u8e3s4.x34();
|
|
303
319
|
break;
|
|
304
320
|
case 5:
|
|
305
|
-
tmp = _this__u8e3s4.
|
|
321
|
+
tmp = _this__u8e3s4.y34();
|
|
306
322
|
break;
|
|
307
323
|
case 6:
|
|
308
|
-
tmp = _this__u8e3s4.
|
|
324
|
+
tmp = _this__u8e3s4.z34();
|
|
309
325
|
break;
|
|
310
326
|
case 7:
|
|
311
|
-
tmp = _this__u8e3s4.
|
|
327
|
+
tmp = _this__u8e3s4.a35();
|
|
312
328
|
break;
|
|
313
329
|
default:
|
|
314
330
|
noWhenBranchMatchedException();
|
|
@@ -320,7 +336,7 @@ function toOperationList(_this__u8e3s4) {
|
|
|
320
336
|
return filterNotNullValues(result);
|
|
321
337
|
}
|
|
322
338
|
function toName(_this__u8e3s4) {
|
|
323
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
339
|
+
var tmp0_safe_receiver = _this__u8e3s4.x30();
|
|
324
340
|
var tmp;
|
|
325
341
|
if (tmp0_safe_receiver == null) {
|
|
326
342
|
tmp = null;
|
|
@@ -365,7 +381,7 @@ function sanitize(_this__u8e3s4) {
|
|
|
365
381
|
}
|
|
366
382
|
function flatMapRequests(_this__u8e3s4, f) {
|
|
367
383
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
368
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
384
|
+
var tmp0_elvis_lhs = _this__u8e3s4.y32();
|
|
369
385
|
// Inline function 'kotlin.collections.flatMap' call
|
|
370
386
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
371
387
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -440,7 +456,7 @@ protoOf(FlattenRequest).equals = function (other) {
|
|
|
440
456
|
};
|
|
441
457
|
function flatMapResponses(_this__u8e3s4, f) {
|
|
442
458
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
443
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
459
|
+
var tmp0_elvis_lhs = _this__u8e3s4.y32();
|
|
444
460
|
// Inline function 'kotlin.collections.flatMap' call
|
|
445
461
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
446
462
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -1321,7 +1337,7 @@ function toProperties($this, _this__u8e3s4) {
|
|
|
1321
1337
|
var it = toSchemaOrReference($this, _this__u8e3s4.rp_1);
|
|
1322
1338
|
var tmp_0;
|
|
1323
1339
|
if (it instanceof OpenAPIV20Schema) {
|
|
1324
|
-
tmp_0 = it.
|
|
1340
|
+
tmp_0 = it.k36(VOID, VOID, VOID, VOID, VOID, VOID, VOID, findDescription(_this__u8e3s4.pp_1));
|
|
1325
1341
|
} else {
|
|
1326
1342
|
if (it instanceof OpenAPIV20Reference) {
|
|
1327
1343
|
tmp_0 = it;
|
|
@@ -1562,7 +1578,7 @@ function emitParameter($this, _this__u8e3s4, location) {
|
|
|
1562
1578
|
tmp_0 = emit;
|
|
1563
1579
|
} else {
|
|
1564
1580
|
if (emit instanceof OpenAPIV20Schema) {
|
|
1565
|
-
tmp_0 = emit.
|
|
1581
|
+
tmp_0 = emit.u35_1;
|
|
1566
1582
|
} else {
|
|
1567
1583
|
noWhenBranchMatchedException();
|
|
1568
1584
|
}
|
|
@@ -1799,7 +1815,7 @@ function OpenAPIV2Emitter_getInstance() {
|
|
|
1799
1815
|
}
|
|
1800
1816
|
function OpenAPIV2Parser$parse$lambda($strict) {
|
|
1801
1817
|
return function (it) {
|
|
1802
|
-
return new NonEmptyList(OpenAPIV2Parser_instance.i47((new OpenAPIV2(jsonDefault($strict))).
|
|
1818
|
+
return new NonEmptyList(OpenAPIV2Parser_instance.i47((new OpenAPIV2(jsonDefault($strict))).s32(it)));
|
|
1803
1819
|
};
|
|
1804
1820
|
}
|
|
1805
1821
|
function OpenAPIV2Parser() {
|
|
@@ -1843,7 +1859,7 @@ function OpenAPIV2Parser_getInstance() {
|
|
|
1843
1859
|
}
|
|
1844
1860
|
function parseEndpoints(_this__u8e3s4) {
|
|
1845
1861
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1846
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1862
|
+
var tmp0_elvis_lhs = _this__u8e3s4.y32();
|
|
1847
1863
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1848
1864
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1849
1865
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -1868,7 +1884,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1868
1884
|
var method = element_0.k1();
|
|
1869
1885
|
// Inline function 'kotlin.collections.component2' call
|
|
1870
1886
|
var operation = element_0.l1();
|
|
1871
|
-
var parameters = plus_0(resolveParameters(_this__u8e3s4, pathItem.
|
|
1887
|
+
var parameters = plus_0(resolveParameters(_this__u8e3s4, pathItem.y30()), resolveParameters(_this__u8e3s4, operation.y30()));
|
|
1872
1888
|
var segments = toSegments(path, parameters);
|
|
1873
1889
|
var tmp0_elvis_lhs_0 = toName(operation);
|
|
1874
1890
|
var name = tmp0_elvis_lhs_0 == null ? toName_0(path) + method.a3_1 : tmp0_elvis_lhs_0;
|
|
@@ -1913,9 +1929,9 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1913
1929
|
}
|
|
1914
1930
|
var headers = destination_4;
|
|
1915
1931
|
var tmp1_safe_receiver = operation instanceof OpenAPIV20Operation ? operation : null;
|
|
1916
|
-
var operationConsumes = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1932
|
+
var operationConsumes = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q37_1;
|
|
1917
1933
|
var tmp2_safe_receiver = operation instanceof OpenAPIV20Operation ? operation : null;
|
|
1918
|
-
var operationProduces = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
1934
|
+
var operationProduces = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.r37_1;
|
|
1919
1935
|
// Inline function 'kotlin.collections.filter' call
|
|
1920
1936
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1921
1937
|
var destination_5 = ArrayList_init_$Create$();
|
|
@@ -1933,7 +1949,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1933
1949
|
while (_iterator__ex2g4s_6.u()) {
|
|
1934
1950
|
var element_4 = _iterator__ex2g4s_6.v();
|
|
1935
1951
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1936
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
1952
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.v32();
|
|
1937
1953
|
var tmp = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1938
1954
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1939
1955
|
var tmp$ret$23 = operationConsumes == null ? emptyList() : operationConsumes;
|
|
@@ -1953,7 +1969,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
1953
1969
|
while (_iterator__ex2g4s_7.u()) {
|
|
1954
1970
|
var item_1 = _iterator__ex2g4s_7.v();
|
|
1955
1971
|
var isNullable = false;
|
|
1956
|
-
var schema = element_4.
|
|
1972
|
+
var schema = element_4.k37_1;
|
|
1957
1973
|
var tmp_1;
|
|
1958
1974
|
if (!(schema == null) ? isInterface(schema, Reference) : false) {
|
|
1959
1975
|
tmp_1 = toReference(_this__u8e3s4, schema, isNullable);
|
|
@@ -2009,7 +2025,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2009
2025
|
// Inline function 'kotlin.collections.component2' call
|
|
2010
2026
|
var res = element_6.l1();
|
|
2011
2027
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2012
|
-
var tmp0_elvis_lhs_3 = _this__u8e3s4.
|
|
2028
|
+
var tmp0_elvis_lhs_3 = _this__u8e3s4.w32();
|
|
2013
2029
|
var tmp_4 = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
|
|
2014
2030
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2015
2031
|
var tmp$ret$44 = operationProduces == null ? emptyList() : operationProduces;
|
|
@@ -2055,7 +2071,7 @@ function parseEndpoints(_this__u8e3s4) {
|
|
|
2055
2071
|
var tmp0_elvis_lhs_4 = tmp_6;
|
|
2056
2072
|
var tmp5_headers = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
2057
2073
|
var tmp1_safe_receiver_0 = res instanceof OpenAPIV20Response ? res : null;
|
|
2058
|
-
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
2074
|
+
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.m38_1;
|
|
2059
2075
|
var tmp_7;
|
|
2060
2076
|
if (tmp2_safe_receiver_0 == null) {
|
|
2061
2077
|
tmp_7 = null;
|
|
@@ -2111,7 +2127,7 @@ function parseResponseBody(_this__u8e3s4) {
|
|
|
2111
2127
|
}
|
|
2112
2128
|
function parseDefinitions(_this__u8e3s4) {
|
|
2113
2129
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2114
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2130
|
+
var tmp0_elvis_lhs = _this__u8e3s4.x32();
|
|
2115
2131
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2116
2132
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2117
2133
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -2245,7 +2261,7 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
2245
2261
|
var _iterator__ex2g4s_0 = parameters.t();
|
|
2246
2262
|
while (_iterator__ex2g4s_0.u()) {
|
|
2247
2263
|
var element = _iterator__ex2g4s_0.v();
|
|
2248
|
-
if (element.
|
|
2264
|
+
if (element.l37_1 === param) {
|
|
2249
2265
|
tmp$ret$2 = element;
|
|
2250
2266
|
break $l$block;
|
|
2251
2267
|
}
|
|
@@ -2287,18 +2303,18 @@ function toSegments(_this__u8e3s4, parameters) {
|
|
|
2287
2303
|
return destination;
|
|
2288
2304
|
}
|
|
2289
2305
|
function get_location(_this__u8e3s4) {
|
|
2290
|
-
return _this__u8e3s4.
|
|
2306
|
+
return _this__u8e3s4.j37_1;
|
|
2291
2307
|
}
|
|
2292
2308
|
function toField(_this__u8e3s4, parameter, name) {
|
|
2293
2309
|
// Inline function 'kotlin.let' call
|
|
2294
2310
|
var schema = resolveParameter(_this__u8e3s4, parameter);
|
|
2295
|
-
var tmp0_elvis_lhs = parameter.
|
|
2311
|
+
var tmp0_elvis_lhs = parameter.q36_1;
|
|
2296
2312
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
2297
2313
|
var tmp;
|
|
2298
|
-
if (!(parameter.
|
|
2299
|
-
tmp = new Custom(sanitize(className([name, 'Parameter', schema.
|
|
2314
|
+
if (!(parameter.h37_1 == null)) {
|
|
2315
|
+
tmp = new Custom(sanitize(className([name, 'Parameter', schema.l37_1])), isNullable);
|
|
2300
2316
|
} else {
|
|
2301
|
-
var tmp1_subject = schema.
|
|
2317
|
+
var tmp1_subject = schema.r36_1;
|
|
2302
2318
|
var tmp_0;
|
|
2303
2319
|
switch (tmp1_subject == null ? -1 : tmp1_subject.b3_1) {
|
|
2304
2320
|
case 0:
|
|
@@ -2311,7 +2327,7 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2311
2327
|
tmp_0 = new Primitive(primitive, isNullable);
|
|
2312
2328
|
break;
|
|
2313
2329
|
case 4:
|
|
2314
|
-
var tmp2_safe_receiver = schema.
|
|
2330
|
+
var tmp2_safe_receiver = schema.s36_1;
|
|
2315
2331
|
var tmp_1;
|
|
2316
2332
|
if (tmp2_safe_receiver == null) {
|
|
2317
2333
|
tmp_1 = null;
|
|
@@ -2358,8 +2374,8 @@ function toField(_this__u8e3s4, parameter, name) {
|
|
|
2358
2374
|
}
|
|
2359
2375
|
// Inline function 'kotlin.let' call
|
|
2360
2376
|
var it = tmp;
|
|
2361
|
-
var tmp0_identifier = new FieldIdentifier(parameter.
|
|
2362
|
-
var tmp1_annotations = toDescriptionAnnotationList(parameter.
|
|
2377
|
+
var tmp0_identifier = new FieldIdentifier(parameter.l37_1);
|
|
2378
|
+
var tmp1_annotations = toDescriptionAnnotationList(parameter.p36_1);
|
|
2363
2379
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
2364
2380
|
}
|
|
2365
2381
|
function toReference(_this__u8e3s4, reference, isNullable) {
|
|
@@ -2597,10 +2613,10 @@ function toField_0(_this__u8e3s4, header, identifier) {
|
|
|
2597
2613
|
}
|
|
2598
2614
|
var v20 = tmp;
|
|
2599
2615
|
var tmp5_identifier = new FieldIdentifier(identifier);
|
|
2600
|
-
var tmp6_annotations = toDescriptionAnnotationList(header.
|
|
2616
|
+
var tmp6_annotations = toDescriptionAnnotationList(header.v38_1);
|
|
2601
2617
|
var tmp_0;
|
|
2602
|
-
if (v20.
|
|
2603
|
-
var tmp2_safe_receiver = v20.
|
|
2618
|
+
if (v20.w38_1.b3_1 === 4) {
|
|
2619
|
+
var tmp2_safe_receiver = v20.y38_1;
|
|
2604
2620
|
var tmp_1;
|
|
2605
2621
|
if (tmp2_safe_receiver == null) {
|
|
2606
2622
|
tmp_1 = null;
|
|
@@ -2681,7 +2697,7 @@ function resolveParameter(_this__u8e3s4, parameterOrReference) {
|
|
|
2681
2697
|
}
|
|
2682
2698
|
function get_primitiveType(_this__u8e3s4) {
|
|
2683
2699
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof OpenAPIV20Schema ? _this__u8e3s4 : null;
|
|
2684
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2700
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g35_1;
|
|
2685
2701
|
}
|
|
2686
2702
|
function flatten(_this__u8e3s4, schemaObject, name) {
|
|
2687
2703
|
var tmp;
|
|
@@ -2884,7 +2900,7 @@ function flatten(_this__u8e3s4, schemaObject, name) {
|
|
|
2884
2900
|
return tmp;
|
|
2885
2901
|
}
|
|
2886
2902
|
function resolveParameterObject(_this__u8e3s4, reference) {
|
|
2887
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2903
|
+
var tmp0_safe_receiver = _this__u8e3s4.y30();
|
|
2888
2904
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p2(getReference(reference));
|
|
2889
2905
|
var tmp;
|
|
2890
2906
|
if (tmp1_safe_receiver == null) {
|
|
@@ -2942,7 +2958,7 @@ function toPrimitive_0(_this__u8e3s4) {
|
|
|
2942
2958
|
return toPrimitive(isInterface(_this__u8e3s4, OpenAPIV20Base) ? _this__u8e3s4 : THROW_CCE());
|
|
2943
2959
|
}
|
|
2944
2960
|
function resolveSchemaRef(_this__u8e3s4, reference) {
|
|
2945
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2961
|
+
var tmp0_safe_receiver = _this__u8e3s4.x32();
|
|
2946
2962
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p2(getReference(reference));
|
|
2947
2963
|
var tmp;
|
|
2948
2964
|
if (tmp1_elvis_lhs == null) {
|
|
@@ -3090,7 +3106,7 @@ function toField_1(_this__u8e3s4, schema, name) {
|
|
|
3090
3106
|
}
|
|
3091
3107
|
function parseParameters$lambda($this_parseParameters) {
|
|
3092
3108
|
return function ($this$flatMapRequests) {
|
|
3093
|
-
var parameters = plus_0(resolveParameters($this_parseParameters, $this$flatMapRequests.q46_1.
|
|
3109
|
+
var parameters = plus_0(resolveParameters($this_parseParameters, $this$flatMapRequests.q46_1.y30()), resolveParameters($this_parseParameters, $this$flatMapRequests.s46_1.y30()));
|
|
3094
3110
|
var tmp0_elvis_lhs = toName($this$flatMapRequests.s46_1);
|
|
3095
3111
|
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.p46_1) + $this$flatMapRequests.r46_1.a3_1 : tmp0_elvis_lhs;
|
|
3096
3112
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -3109,13 +3125,13 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
3109
3125
|
var _iterator__ex2g4s_0 = destination.t();
|
|
3110
3126
|
while (_iterator__ex2g4s_0.u()) {
|
|
3111
3127
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
3112
|
-
var tmp0_safe_receiver = element_0.
|
|
3128
|
+
var tmp0_safe_receiver = element_0.k37_1;
|
|
3113
3129
|
var tmp;
|
|
3114
3130
|
if (tmp0_safe_receiver == null) {
|
|
3115
3131
|
tmp = null;
|
|
3116
3132
|
} else {
|
|
3117
3133
|
// Inline function 'kotlin.let' call
|
|
3118
|
-
tmp = flattenSchemaOrRef($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element_0.
|
|
3134
|
+
tmp = flattenSchemaOrRef($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element_0.l37_1]));
|
|
3119
3135
|
}
|
|
3120
3136
|
var tmp1_elvis_lhs = tmp;
|
|
3121
3137
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -3126,7 +3142,7 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
3126
3142
|
}
|
|
3127
3143
|
function parseRequestBody$lambda($this_parseRequestBody) {
|
|
3128
3144
|
return function ($this$flatMapRequests) {
|
|
3129
|
-
var parameters = plus_0(resolveParameters($this_parseRequestBody, $this$flatMapRequests.q46_1.
|
|
3145
|
+
var parameters = plus_0(resolveParameters($this_parseRequestBody, $this$flatMapRequests.q46_1.y30()), resolveParameters($this_parseRequestBody, $this$flatMapRequests.s46_1.y30()));
|
|
3130
3146
|
var tmp0_elvis_lhs = toName($this$flatMapRequests.s46_1);
|
|
3131
3147
|
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.p46_1) + $this$flatMapRequests.r46_1.a3_1 : tmp0_elvis_lhs;
|
|
3132
3148
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -3136,11 +3152,11 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3136
3152
|
while (_iterator__ex2g4s.u()) {
|
|
3137
3153
|
var element = _iterator__ex2g4s.v();
|
|
3138
3154
|
var tmp;
|
|
3139
|
-
if (!(element.
|
|
3140
|
-
var tmp_0 = toDescriptionAnnotationList(element.
|
|
3141
|
-
var tmp_1 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.
|
|
3155
|
+
if (!(element.h37_1 == null)) {
|
|
3156
|
+
var tmp_0 = toDescriptionAnnotationList(element.p36_1);
|
|
3157
|
+
var tmp_1 = new DefinitionIdentifier(sanitize(className([name, 'Parameter', element.l37_1])));
|
|
3142
3158
|
// Inline function 'kotlin.collections.map' call
|
|
3143
|
-
var this_0 = ensureNotNull(element.
|
|
3159
|
+
var this_0 = ensureNotNull(element.h37_1);
|
|
3144
3160
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3145
3161
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3146
3162
|
var _iterator__ex2g4s_0 = this_0.t();
|
|
@@ -3157,7 +3173,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3157
3173
|
addAll(destination, list);
|
|
3158
3174
|
}
|
|
3159
3175
|
var enums = destination;
|
|
3160
|
-
var tmp1_safe_receiver = $this$flatMapRequests.s46_1.
|
|
3176
|
+
var tmp1_safe_receiver = $this$flatMapRequests.s46_1.y30();
|
|
3161
3177
|
var tmp_2;
|
|
3162
3178
|
if (tmp1_safe_receiver == null) {
|
|
3163
3179
|
tmp_2 = null;
|
|
@@ -3201,7 +3217,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3201
3217
|
var _iterator__ex2g4s_3 = tmp3_safe_receiver.t();
|
|
3202
3218
|
while (_iterator__ex2g4s_3.u()) {
|
|
3203
3219
|
var element_1 = _iterator__ex2g4s_3.v();
|
|
3204
|
-
var schema = element_1.
|
|
3220
|
+
var schema = element_1.k37_1;
|
|
3205
3221
|
var tmp_5;
|
|
3206
3222
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
3207
3223
|
var tmp0_subject = get_primitiveType(schema);
|
|
@@ -3248,7 +3264,7 @@ function parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
3248
3264
|
return function ($this$flatMapResponses) {
|
|
3249
3265
|
var tmp = resolveResponse($this_parseResponseBody, $this$flatMapResponses.y46_1);
|
|
3250
3266
|
var tmp0_safe_receiver = tmp instanceof OpenAPIV20Response ? tmp : null;
|
|
3251
|
-
var schema = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3267
|
+
var schema = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m38_1;
|
|
3252
3268
|
var tmp1_elvis_lhs = toName($this$flatMapResponses.w46_1);
|
|
3253
3269
|
var name = tmp1_elvis_lhs == null ? toName_0($this$flatMapResponses.t46_1) + $this$flatMapResponses.v46_1.a3_1 : tmp1_elvis_lhs;
|
|
3254
3270
|
var tmp_0;
|
|
@@ -4175,7 +4191,7 @@ function OpenAPIV3Emitter_getInstance() {
|
|
|
4175
4191
|
}
|
|
4176
4192
|
function OpenAPIV3Parser$parse$lambda($strict) {
|
|
4177
4193
|
return function (it) {
|
|
4178
|
-
return new NonEmptyList(OpenAPIV3Parser_instance.o47((new OpenAPIV3(jsonDefault($strict))).
|
|
4194
|
+
return new NonEmptyList(OpenAPIV3Parser_instance.o47((new OpenAPIV3(jsonDefault($strict))).s32(it)));
|
|
4179
4195
|
};
|
|
4180
4196
|
}
|
|
4181
4197
|
function OpenAPIV3Parser() {
|
|
@@ -4219,7 +4235,7 @@ function OpenAPIV3Parser_getInstance() {
|
|
|
4219
4235
|
}
|
|
4220
4236
|
function parseEndpoints_0(_this__u8e3s4) {
|
|
4221
4237
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4222
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
4238
|
+
var tmp0_elvis_lhs = _this__u8e3s4.y32();
|
|
4223
4239
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4224
4240
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4225
4241
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -4244,7 +4260,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4244
4260
|
var method = item.k1();
|
|
4245
4261
|
// Inline function 'kotlin.collections.component2' call
|
|
4246
4262
|
var operation = item.l1();
|
|
4247
|
-
var parameters = plus_0(resolveParameters_0(_this__u8e3s4, pathItem.
|
|
4263
|
+
var parameters = plus_0(resolveParameters_0(_this__u8e3s4, pathItem.y30()), resolveParameters_0(_this__u8e3s4, operation.y30()));
|
|
4248
4264
|
var tmp0_elvis_lhs_0 = toName(operation);
|
|
4249
4265
|
var segments = toSegments_0(_this__u8e3s4, path, parameters, tmp0_elvis_lhs_0 == null ? toName_0(path) + method.a3_1 : tmp0_elvis_lhs_0);
|
|
4250
4266
|
var tmp1_elvis_lhs = toName(operation);
|
|
@@ -4265,7 +4281,7 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4265
4281
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
4266
4282
|
while (_iterator__ex2g4s_2.u()) {
|
|
4267
4283
|
var item_0 = _iterator__ex2g4s_2.v();
|
|
4268
|
-
var tmp$ret$10 = toField_2(_this__u8e3s4, item_0, className([name, 'Parameter', item_0.
|
|
4284
|
+
var tmp$ret$10 = toField_2(_this__u8e3s4, item_0, className([name, 'Parameter', item_0.m()]));
|
|
4269
4285
|
destination_2.x(tmp$ret$10);
|
|
4270
4286
|
}
|
|
4271
4287
|
var query = destination_2;
|
|
@@ -4285,11 +4301,11 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4285
4301
|
var _iterator__ex2g4s_4 = destination_3.t();
|
|
4286
4302
|
while (_iterator__ex2g4s_4.u()) {
|
|
4287
4303
|
var item_1 = _iterator__ex2g4s_4.v();
|
|
4288
|
-
var tmp$ret$16 = toField_2(_this__u8e3s4, item_1, className([name, 'Parameter', item_1.
|
|
4304
|
+
var tmp$ret$16 = toField_2(_this__u8e3s4, item_1, className([name, 'Parameter', item_1.m()]));
|
|
4289
4305
|
destination_4.x(tmp$ret$16);
|
|
4290
4306
|
}
|
|
4291
4307
|
var headers = destination_4;
|
|
4292
|
-
var tmp2_safe_receiver = operation.
|
|
4308
|
+
var tmp2_safe_receiver = operation.z30();
|
|
4293
4309
|
var tmp;
|
|
4294
4310
|
if (tmp2_safe_receiver == null) {
|
|
4295
4311
|
tmp = null;
|
|
@@ -4317,10 +4333,10 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4317
4333
|
while (_iterator__ex2g4s_5.u()) {
|
|
4318
4334
|
var item_2 = _iterator__ex2g4s_5.v();
|
|
4319
4335
|
// Inline function 'kotlin.collections.component1' call
|
|
4320
|
-
var mediaType = item_2.k1().
|
|
4336
|
+
var mediaType = item_2.k1().v30_1;
|
|
4321
4337
|
// Inline function 'kotlin.collections.component2' call
|
|
4322
4338
|
var mediaObject = item_2.l1();
|
|
4323
|
-
var schema = mediaObject.
|
|
4339
|
+
var schema = mediaObject.r30();
|
|
4324
4340
|
var tmp_2;
|
|
4325
4341
|
if (!(schema == null) ? isInterface(schema, Reference) : false) {
|
|
4326
4342
|
tmp_2 = toReference_1(_this__u8e3s4, schema, isNullable);
|
|
@@ -4369,23 +4385,22 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4369
4385
|
var res = element_2.l1();
|
|
4370
4386
|
// Inline function 'kotlin.let' call
|
|
4371
4387
|
var response = resolve_2(_this__u8e3s4, res);
|
|
4372
|
-
var
|
|
4373
|
-
var content = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.r3h_1;
|
|
4388
|
+
var content = get_content(response);
|
|
4374
4389
|
var tmp_4;
|
|
4375
4390
|
// Inline function 'kotlin.collections.isNullOrEmpty' call
|
|
4376
4391
|
if (content == null || content.r()) {
|
|
4377
|
-
var
|
|
4378
|
-
var
|
|
4379
|
-
var
|
|
4392
|
+
var tmp1_annotations = plus_0(toDescriptionAnnotationList(response.i30()), toLinkAnnotationList(_this__u8e3s4, response.q30()));
|
|
4393
|
+
var tmp2_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4394
|
+
var tmp0_safe_receiver_0 = response.ow();
|
|
4380
4395
|
var tmp_5;
|
|
4381
|
-
if (
|
|
4396
|
+
if (tmp0_safe_receiver_0 == null) {
|
|
4382
4397
|
tmp_5 = null;
|
|
4383
4398
|
} else {
|
|
4384
4399
|
// Inline function 'kotlin.collections.map' call
|
|
4385
4400
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4386
|
-
var destination_7 = ArrayList_init_$Create$_0(
|
|
4401
|
+
var destination_7 = ArrayList_init_$Create$_0(tmp0_safe_receiver_0.a1());
|
|
4387
4402
|
// Inline function 'kotlin.collections.iterator' call
|
|
4388
|
-
var _iterator__ex2g4s_7 =
|
|
4403
|
+
var _iterator__ex2g4s_7 = tmp0_safe_receiver_0.j1().t();
|
|
4389
4404
|
while (_iterator__ex2g4s_7.u()) {
|
|
4390
4405
|
var item_3 = _iterator__ex2g4s_7.v();
|
|
4391
4406
|
var tmp$ret$37 = toField_3(_this__u8e3s4, resolve_3(_this__u8e3s4, item_3.l1()), item_3.k1(), className([name, 'ResponseHeader']));
|
|
@@ -4395,8 +4410,8 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4395
4410
|
}
|
|
4396
4411
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4397
4412
|
var tmp0_elvis_lhs_2 = tmp_5;
|
|
4398
|
-
var
|
|
4399
|
-
tmp_4 = listOf(new Response(
|
|
4413
|
+
var tmp3_headers = tmp0_elvis_lhs_2 == null ? emptyList() : tmp0_elvis_lhs_2;
|
|
4414
|
+
tmp_4 = listOf(new Response(tmp2_status, tmp3_headers, null, tmp1_annotations));
|
|
4400
4415
|
} else {
|
|
4401
4416
|
// Inline function 'kotlin.collections.map' call
|
|
4402
4417
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -4406,10 +4421,10 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4406
4421
|
while (_iterator__ex2g4s_8.u()) {
|
|
4407
4422
|
var item_4 = _iterator__ex2g4s_8.v();
|
|
4408
4423
|
// Inline function 'kotlin.collections.component1' call
|
|
4409
|
-
var contentType = item_4.k1().
|
|
4424
|
+
var contentType = item_4.k1().v30_1;
|
|
4410
4425
|
// Inline function 'kotlin.collections.component2' call
|
|
4411
4426
|
var media = item_4.l1();
|
|
4412
|
-
var tmp0_safe_receiver_1 = media.
|
|
4427
|
+
var tmp0_safe_receiver_1 = media.r30();
|
|
4413
4428
|
var tmp_6;
|
|
4414
4429
|
if (tmp0_safe_receiver_1 == null) {
|
|
4415
4430
|
tmp_6 = null;
|
|
@@ -4417,23 +4432,15 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4417
4432
|
// Inline function 'kotlin.let' call
|
|
4418
4433
|
tmp_6 = resolve_4(_this__u8e3s4, tmp0_safe_receiver_1);
|
|
4419
4434
|
}
|
|
4420
|
-
var
|
|
4421
|
-
var
|
|
4422
|
-
if (tmp1_safe_receiver_0 == null) {
|
|
4423
|
-
tmp_7 = null;
|
|
4424
|
-
} else {
|
|
4425
|
-
// Inline function 'kotlin.let' call
|
|
4426
|
-
var tmp0_safe_receiver_2 = tmp1_safe_receiver_0 instanceof OpenAPIV30Schema ? tmp1_safe_receiver_0 : null;
|
|
4427
|
-
tmp_7 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.b3e_1;
|
|
4428
|
-
}
|
|
4429
|
-
var tmp2_elvis_lhs = tmp_7;
|
|
4435
|
+
var tmp1_safe_receiver = tmp_6;
|
|
4436
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : get_isNullable(tmp1_safe_receiver);
|
|
4430
4437
|
var isNullable_0 = tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs;
|
|
4431
|
-
var tmp4_annotations = plus_0(toDescriptionAnnotationList(response.
|
|
4438
|
+
var tmp4_annotations = plus_0(toDescriptionAnnotationList(response.i30()), toLinkAnnotationList(_this__u8e3s4, response.q30()));
|
|
4432
4439
|
var tmp5_status = _StatusCode___get_value__impl__we50mu(status);
|
|
4433
|
-
var tmp3_safe_receiver_0 = response.
|
|
4434
|
-
var
|
|
4440
|
+
var tmp3_safe_receiver_0 = response.ow();
|
|
4441
|
+
var tmp_7;
|
|
4435
4442
|
if (tmp3_safe_receiver_0 == null) {
|
|
4436
|
-
|
|
4443
|
+
tmp_7 = null;
|
|
4437
4444
|
} else {
|
|
4438
4445
|
// Inline function 'kotlin.collections.map' call
|
|
4439
4446
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -4442,33 +4449,33 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4442
4449
|
var _iterator__ex2g4s_9 = tmp3_safe_receiver_0.j1().t();
|
|
4443
4450
|
while (_iterator__ex2g4s_9.u()) {
|
|
4444
4451
|
var item_5 = _iterator__ex2g4s_9.v();
|
|
4445
|
-
var tmp$ret$
|
|
4446
|
-
destination_9.x(tmp$ret$
|
|
4452
|
+
var tmp$ret$47 = toField_3(_this__u8e3s4, resolve_3(_this__u8e3s4, item_5.l1()), item_5.k1(), className([name, 'ResponseHeader']));
|
|
4453
|
+
destination_9.x(tmp$ret$47);
|
|
4447
4454
|
}
|
|
4448
|
-
|
|
4455
|
+
tmp_7 = destination_9;
|
|
4449
4456
|
}
|
|
4450
4457
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4451
|
-
var tmp0_elvis_lhs_3 =
|
|
4458
|
+
var tmp0_elvis_lhs_3 = tmp_7;
|
|
4452
4459
|
var tmp6_headers = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
|
|
4453
|
-
var
|
|
4454
|
-
var schema_0 = media.
|
|
4455
|
-
var
|
|
4460
|
+
var tmp_8 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
4461
|
+
var schema_0 = media.r30();
|
|
4462
|
+
var tmp_9;
|
|
4456
4463
|
if (!(schema_0 == null) ? isInterface(schema_0, Reference) : false) {
|
|
4457
|
-
|
|
4464
|
+
tmp_9 = toReference_1(_this__u8e3s4, schema_0, isNullable_0);
|
|
4458
4465
|
} else {
|
|
4459
4466
|
if (!(schema_0 == null) ? isInterface(schema_0, Schema) : false) {
|
|
4460
|
-
|
|
4467
|
+
tmp_9 = toReference_2(_this__u8e3s4, schema_0, isNullable_0, className([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']));
|
|
4461
4468
|
} else {
|
|
4462
4469
|
if (schema_0 == null) {
|
|
4463
|
-
|
|
4470
|
+
tmp_9 = new Any(isNullable_0);
|
|
4464
4471
|
} else {
|
|
4465
4472
|
noWhenBranchMatchedException();
|
|
4466
4473
|
}
|
|
4467
4474
|
}
|
|
4468
4475
|
}
|
|
4469
|
-
var tmp7_content = new Content(
|
|
4470
|
-
var tmp$ret$
|
|
4471
|
-
destination_8.x(tmp$ret$
|
|
4476
|
+
var tmp7_content = new Content(tmp_8, tmp_9);
|
|
4477
|
+
var tmp$ret$51 = new Response(tmp5_status, tmp6_headers, tmp7_content, tmp4_annotations);
|
|
4478
|
+
destination_8.x(tmp$ret$51);
|
|
4472
4479
|
}
|
|
4473
4480
|
tmp_4 = destination_8;
|
|
4474
4481
|
}
|
|
@@ -4476,8 +4483,8 @@ function parseEndpoints_0(_this__u8e3s4) {
|
|
|
4476
4483
|
addAll(destination_6, list);
|
|
4477
4484
|
}
|
|
4478
4485
|
var responses = destination_6;
|
|
4479
|
-
var tmp$ret$
|
|
4480
|
-
destination_0.x(tmp$ret$
|
|
4486
|
+
var tmp$ret$59 = new Endpoint(null, toDescriptionAnnotationList(operation.i30()), new DefinitionIdentifier(name), method, segments, query, headers, requests, responses);
|
|
4487
|
+
destination_0.x(tmp$ret$59);
|
|
4481
4488
|
}
|
|
4482
4489
|
var list_0 = destination_0;
|
|
4483
4490
|
addAll(destination, list_0);
|
|
@@ -4494,7 +4501,7 @@ function parseResponseBody_0(_this__u8e3s4) {
|
|
|
4494
4501
|
return flatMapResponses(_this__u8e3s4, parseResponseBody$lambda_0(_this__u8e3s4));
|
|
4495
4502
|
}
|
|
4496
4503
|
function parseDefinitions_0(_this__u8e3s4) {
|
|
4497
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
4504
|
+
var tmp0_safe_receiver = _this__u8e3s4.e33();
|
|
4498
4505
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4499
4506
|
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w3d();
|
|
4500
4507
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -4566,7 +4573,7 @@ function resolveParameters_0(_this__u8e3s4, parameters) {
|
|
|
4566
4573
|
tmp = resolveParameter_0(_this__u8e3s4, element);
|
|
4567
4574
|
} else {
|
|
4568
4575
|
if (isInterface(element, Parameter_0)) {
|
|
4569
|
-
tmp = element
|
|
4576
|
+
tmp = element;
|
|
4570
4577
|
} else {
|
|
4571
4578
|
noWhenBranchMatchedException();
|
|
4572
4579
|
}
|
|
@@ -4612,7 +4619,7 @@ function toSegments_0(_this__u8e3s4, path, parameters, name) {
|
|
|
4612
4619
|
var _iterator__ex2g4s_1 = parameters.t();
|
|
4613
4620
|
while (_iterator__ex2g4s_1.u()) {
|
|
4614
4621
|
var element_0 = _iterator__ex2g4s_1.v();
|
|
4615
|
-
if (element_0.
|
|
4622
|
+
if (element_0.m() === param) {
|
|
4616
4623
|
tmp$ret$5 = element_0;
|
|
4617
4624
|
break $l$block;
|
|
4618
4625
|
}
|
|
@@ -4621,7 +4628,7 @@ function toSegments_0(_this__u8e3s4, path, parameters, name) {
|
|
|
4621
4628
|
}
|
|
4622
4629
|
|
|
4623
4630
|
var tmp1_safe_receiver = tmp$ret$5;
|
|
4624
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4631
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r30();
|
|
4625
4632
|
var tmp_0;
|
|
4626
4633
|
if (tmp2_safe_receiver == null) {
|
|
4627
4634
|
tmp_0 = null;
|
|
@@ -4672,12 +4679,27 @@ function toSegments_0(_this__u8e3s4, path, parameters, name) {
|
|
|
4672
4679
|
return destination_0;
|
|
4673
4680
|
}
|
|
4674
4681
|
function get_location_0(_this__u8e3s4) {
|
|
4675
|
-
|
|
4682
|
+
var tmp;
|
|
4683
|
+
if (_this__u8e3s4 instanceof OpenAPIV30Parameter) {
|
|
4684
|
+
tmp = _this__u8e3s4.e3g_1;
|
|
4685
|
+
} else {
|
|
4686
|
+
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
4687
|
+
tmp = valueOf(_this__u8e3s4.s3m_1.a3_1);
|
|
4688
|
+
} else {
|
|
4689
|
+
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
4690
|
+
tmp = valueOf(_this__u8e3s4.x3w_1.a3_1);
|
|
4691
|
+
} else {
|
|
4692
|
+
var message = 'Unsupported parameter type: ' + toString(_this__u8e3s4);
|
|
4693
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
4694
|
+
}
|
|
4695
|
+
}
|
|
4696
|
+
}
|
|
4697
|
+
return tmp;
|
|
4676
4698
|
}
|
|
4677
4699
|
function toField_2(_this__u8e3s4, parameter, name) {
|
|
4678
|
-
var tmp0_elvis_lhs = parameter
|
|
4700
|
+
var tmp0_elvis_lhs = get_required(parameter);
|
|
4679
4701
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
4680
|
-
var s = parameter.
|
|
4702
|
+
var s = parameter.r30();
|
|
4681
4703
|
var tmp;
|
|
4682
4704
|
if (!(s == null) ? isInterface(s, Reference) : false) {
|
|
4683
4705
|
tmp = toReference_1(_this__u8e3s4, s, isNullable);
|
|
@@ -4694,8 +4716,8 @@ function toField_2(_this__u8e3s4, parameter, name) {
|
|
|
4694
4716
|
}
|
|
4695
4717
|
// Inline function 'kotlin.let' call
|
|
4696
4718
|
var it = tmp;
|
|
4697
|
-
var tmp0_identifier = new FieldIdentifier(parameter.
|
|
4698
|
-
var tmp1_annotations = toDescriptionAnnotationList(parameter
|
|
4719
|
+
var tmp0_identifier = new FieldIdentifier(parameter.m());
|
|
4720
|
+
var tmp1_annotations = toDescriptionAnnotationList(get_description(parameter));
|
|
4699
4721
|
return new Field(tmp1_annotations, tmp0_identifier, it);
|
|
4700
4722
|
}
|
|
4701
4723
|
function resolve_1(_this__u8e3s4, requestBodyOrReference) {
|
|
@@ -4716,9 +4738,7 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4716
4738
|
var destruct = resolveSchemaRef_0(_this__u8e3s4, reference);
|
|
4717
4739
|
var referencingObject = destruct.ve();
|
|
4718
4740
|
var schema = destruct.we();
|
|
4719
|
-
var
|
|
4720
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b3e_1;
|
|
4721
|
-
var nullable = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
4741
|
+
var nullable = get_isNullable(schema);
|
|
4722
4742
|
var tmp;
|
|
4723
4743
|
if (exists_0(schema.n30())) {
|
|
4724
4744
|
var additionalProperties = ensureNotNull(schema.n30());
|
|
@@ -4766,9 +4786,7 @@ function toReference_1(_this__u8e3s4, reference, isNullable) {
|
|
|
4766
4786
|
}
|
|
4767
4787
|
function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
4768
4788
|
name = name === VOID ? '' : name;
|
|
4769
|
-
var
|
|
4770
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b3e_1;
|
|
4771
|
-
var nullable = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
4789
|
+
var nullable = get_isNullable(schema);
|
|
4772
4790
|
var tmp;
|
|
4773
4791
|
if (equals(get_primitiveType_0(schema), OpenAPIV30Type_ARRAY_getInstance())) {
|
|
4774
4792
|
var items = schema.k30();
|
|
@@ -4805,16 +4823,16 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4805
4823
|
} else {
|
|
4806
4824
|
tmp_2 = null;
|
|
4807
4825
|
}
|
|
4808
|
-
var
|
|
4826
|
+
var tmp0_safe_receiver = tmp_2;
|
|
4809
4827
|
var tmp_3;
|
|
4810
|
-
if (
|
|
4828
|
+
if (tmp0_safe_receiver == null) {
|
|
4811
4829
|
tmp_3 = null;
|
|
4812
4830
|
} else {
|
|
4813
4831
|
// Inline function 'kotlin.let' call
|
|
4814
|
-
tmp_3 = toDict(toReference_2(_this__u8e3s4,
|
|
4832
|
+
tmp_3 = toDict(toReference_2(_this__u8e3s4, tmp0_safe_receiver, nullable, name), isNullable);
|
|
4815
4833
|
}
|
|
4816
|
-
var
|
|
4817
|
-
tmp_1 =
|
|
4834
|
+
var tmp1_elvis_lhs = tmp_3;
|
|
4835
|
+
tmp_1 = tmp1_elvis_lhs == null ? new Dict(new Any(nullable), isNullable) : tmp1_elvis_lhs;
|
|
4818
4836
|
} else {
|
|
4819
4837
|
noWhenBranchMatchedException();
|
|
4820
4838
|
}
|
|
@@ -4826,9 +4844,9 @@ function toReference_2(_this__u8e3s4, schema, isNullable, name) {
|
|
|
4826
4844
|
var it = new Custom(sanitize(name), isNullable);
|
|
4827
4845
|
tmp = !(schema.n30() == null) ? new Dict(it, false) : it;
|
|
4828
4846
|
} else {
|
|
4829
|
-
var
|
|
4847
|
+
var tmp2_subject = get_primitiveType_0(schema);
|
|
4830
4848
|
var tmp_4;
|
|
4831
|
-
switch (
|
|
4849
|
+
switch (tmp2_subject == null ? -1 : tmp2_subject.b3_1) {
|
|
4832
4850
|
case 0:
|
|
4833
4851
|
case 1:
|
|
4834
4852
|
case 2:
|
|
@@ -4898,6 +4916,23 @@ function resolve_2(_this__u8e3s4, responseOrReference) {
|
|
|
4898
4916
|
}
|
|
4899
4917
|
return tmp;
|
|
4900
4918
|
}
|
|
4919
|
+
function get_content(_this__u8e3s4) {
|
|
4920
|
+
var tmp;
|
|
4921
|
+
if (_this__u8e3s4 instanceof OpenAPIV30Response) {
|
|
4922
|
+
tmp = _this__u8e3s4.r3h_1;
|
|
4923
|
+
} else {
|
|
4924
|
+
if (_this__u8e3s4 instanceof OpenAPIV31Response) {
|
|
4925
|
+
tmp = _this__u8e3s4.z3m_1;
|
|
4926
|
+
} else {
|
|
4927
|
+
if (_this__u8e3s4 instanceof OpenAPIV32Response) {
|
|
4928
|
+
tmp = _this__u8e3s4.e3x_1;
|
|
4929
|
+
} else {
|
|
4930
|
+
tmp = null;
|
|
4931
|
+
}
|
|
4932
|
+
}
|
|
4933
|
+
}
|
|
4934
|
+
return tmp;
|
|
4935
|
+
}
|
|
4901
4936
|
function toLinkAnnotationList(_this__u8e3s4, links) {
|
|
4902
4937
|
var tmp1_safe_receiver = links == null ? null : links.j1();
|
|
4903
4938
|
var tmp;
|
|
@@ -4920,10 +4955,9 @@ function toLinkAnnotationList(_this__u8e3s4, links) {
|
|
|
4920
4955
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
4921
4956
|
}
|
|
4922
4957
|
function toField_3(_this__u8e3s4, header, identifier, name) {
|
|
4923
|
-
var
|
|
4924
|
-
var
|
|
4925
|
-
var
|
|
4926
|
-
var s = v30 == null ? null : v30.z3i_1;
|
|
4958
|
+
var tmp0_elvis_lhs = get_required_0(header);
|
|
4959
|
+
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
4960
|
+
var s = get_schema(header);
|
|
4927
4961
|
var tmp;
|
|
4928
4962
|
if (!(s == null) ? isInterface(s, Reference) : false) {
|
|
4929
4963
|
tmp = toReference_1(_this__u8e3s4, s, isNullable);
|
|
@@ -4970,6 +5004,32 @@ function resolve_4(_this__u8e3s4, schemaOrReference) {
|
|
|
4970
5004
|
}
|
|
4971
5005
|
return tmp;
|
|
4972
5006
|
}
|
|
5007
|
+
function get_isNullable(_this__u8e3s4) {
|
|
5008
|
+
var tmp;
|
|
5009
|
+
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5010
|
+
var tmp1_elvis_lhs = _this__u8e3s4.b3e_1;
|
|
5011
|
+
tmp = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
5012
|
+
} else {
|
|
5013
|
+
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5014
|
+
var tmp_0 = _this__u8e3s4.u3n_1;
|
|
5015
|
+
var tmp2_safe_receiver = tmp_0 instanceof OpenAPIV31TypeArray ? tmp_0 : null;
|
|
5016
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.k3p_1;
|
|
5017
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.u1(OpenAPIV31Type_NULL_getInstance());
|
|
5018
|
+
tmp = tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs;
|
|
5019
|
+
} else {
|
|
5020
|
+
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5021
|
+
var tmp_1 = _this__u8e3s4.z3x_1;
|
|
5022
|
+
var tmp5_safe_receiver = tmp_1 instanceof OpenAPIV32TypeArray ? tmp_1 : null;
|
|
5023
|
+
var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.p3z_1;
|
|
5024
|
+
var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.u1(OpenAPIV32Type_NULL_getInstance());
|
|
5025
|
+
tmp = tmp7_elvis_lhs == null ? false : tmp7_elvis_lhs;
|
|
5026
|
+
} else {
|
|
5027
|
+
tmp = false;
|
|
5028
|
+
}
|
|
5029
|
+
}
|
|
5030
|
+
}
|
|
5031
|
+
return tmp;
|
|
5032
|
+
}
|
|
4973
5033
|
function flattenSchemaOrRef_0(_this__u8e3s4, schemaOrReference, name) {
|
|
4974
5034
|
var tmp;
|
|
4975
5035
|
if (isInterface(schemaOrReference, Schema)) {
|
|
@@ -4984,12 +5044,9 @@ function flattenSchemaOrRef_0(_this__u8e3s4, schemaOrReference, name) {
|
|
|
4984
5044
|
return tmp;
|
|
4985
5045
|
}
|
|
4986
5046
|
function get_primitiveType_0(_this__u8e3s4) {
|
|
4987
|
-
var s = _this__u8e3s4 instanceof OpenAPIV30Schema ? _this__u8e3s4 : null;
|
|
4988
5047
|
var tmp;
|
|
4989
|
-
if (
|
|
4990
|
-
|
|
4991
|
-
} else {
|
|
4992
|
-
var t = s.i3e_1;
|
|
5048
|
+
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5049
|
+
var t = _this__u8e3s4.i3e_1;
|
|
4993
5050
|
var tmp_0;
|
|
4994
5051
|
if (t instanceof OpenAPIV30SingleType) {
|
|
4995
5052
|
tmp_0 = t.z3g_1;
|
|
@@ -5019,56 +5076,125 @@ function get_primitiveType_0(_this__u8e3s4) {
|
|
|
5019
5076
|
}
|
|
5020
5077
|
}
|
|
5021
5078
|
tmp = tmp_0;
|
|
5079
|
+
} else {
|
|
5080
|
+
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5081
|
+
var t_0 = _this__u8e3s4.u3n_1;
|
|
5082
|
+
var tmp_1;
|
|
5083
|
+
if (t_0 instanceof OpenAPIV31SingleType) {
|
|
5084
|
+
tmp_1 = toV30(t_0.l3p_1);
|
|
5085
|
+
} else {
|
|
5086
|
+
if (t_0 instanceof OpenAPIV31TypeArray) {
|
|
5087
|
+
var tmp0_0 = t_0.k3p_1;
|
|
5088
|
+
var tmp$ret$3;
|
|
5089
|
+
$l$block_0: {
|
|
5090
|
+
// Inline function 'kotlin.collections.firstOrNull' call
|
|
5091
|
+
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
5092
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
5093
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
5094
|
+
if (!element_0.equals(OpenAPIV31Type_NULL_getInstance())) {
|
|
5095
|
+
tmp$ret$3 = element_0;
|
|
5096
|
+
break $l$block_0;
|
|
5097
|
+
}
|
|
5098
|
+
}
|
|
5099
|
+
tmp$ret$3 = null;
|
|
5100
|
+
}
|
|
5101
|
+
var tmp1_safe_receiver = tmp$ret$3;
|
|
5102
|
+
tmp_1 = tmp1_safe_receiver == null ? null : toV30(tmp1_safe_receiver);
|
|
5103
|
+
} else {
|
|
5104
|
+
if (t_0 == null) {
|
|
5105
|
+
tmp_1 = null;
|
|
5106
|
+
} else {
|
|
5107
|
+
noWhenBranchMatchedException();
|
|
5108
|
+
}
|
|
5109
|
+
}
|
|
5110
|
+
}
|
|
5111
|
+
tmp = tmp_1;
|
|
5112
|
+
} else {
|
|
5113
|
+
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5114
|
+
var t_1 = _this__u8e3s4.z3x_1;
|
|
5115
|
+
var tmp_2;
|
|
5116
|
+
if (t_1 instanceof OpenAPIV32SingleType) {
|
|
5117
|
+
tmp_2 = toV30_0(t_1.q3z_1);
|
|
5118
|
+
} else {
|
|
5119
|
+
if (t_1 instanceof OpenAPIV32TypeArray) {
|
|
5120
|
+
var tmp0_1 = t_1.p3z_1;
|
|
5121
|
+
var tmp$ret$5;
|
|
5122
|
+
$l$block_1: {
|
|
5123
|
+
// Inline function 'kotlin.collections.firstOrNull' call
|
|
5124
|
+
var _iterator__ex2g4s_1 = tmp0_1.t();
|
|
5125
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
5126
|
+
var element_1 = _iterator__ex2g4s_1.v();
|
|
5127
|
+
if (!element_1.equals(OpenAPIV32Type_NULL_getInstance())) {
|
|
5128
|
+
tmp$ret$5 = element_1;
|
|
5129
|
+
break $l$block_1;
|
|
5130
|
+
}
|
|
5131
|
+
}
|
|
5132
|
+
tmp$ret$5 = null;
|
|
5133
|
+
}
|
|
5134
|
+
var tmp2_safe_receiver = tmp$ret$5;
|
|
5135
|
+
tmp_2 = tmp2_safe_receiver == null ? null : toV30_0(tmp2_safe_receiver);
|
|
5136
|
+
} else {
|
|
5137
|
+
if (t_1 == null) {
|
|
5138
|
+
tmp_2 = null;
|
|
5139
|
+
} else {
|
|
5140
|
+
noWhenBranchMatchedException();
|
|
5141
|
+
}
|
|
5142
|
+
}
|
|
5143
|
+
}
|
|
5144
|
+
tmp = tmp_2;
|
|
5145
|
+
} else {
|
|
5146
|
+
tmp = null;
|
|
5147
|
+
}
|
|
5148
|
+
}
|
|
5022
5149
|
}
|
|
5023
5150
|
return tmp;
|
|
5024
5151
|
}
|
|
5025
5152
|
function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
5026
|
-
var
|
|
5027
|
-
var
|
|
5028
|
-
var anyOf = v30 == null ? null : v30.f3e_1;
|
|
5153
|
+
var oneOf = get_oneOf(schemaObject);
|
|
5154
|
+
var anyOf = get_anyOf(schemaObject);
|
|
5029
5155
|
var tmp;
|
|
5030
5156
|
if (exists_0(schemaObject.n30())) {
|
|
5031
|
-
var
|
|
5157
|
+
var tmp0_subject = schemaObject.n30();
|
|
5032
5158
|
var tmp_0;
|
|
5033
|
-
if (!(
|
|
5159
|
+
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, BooleanValue) : false) {
|
|
5034
5160
|
tmp_0 = emptyList();
|
|
5035
5161
|
} else {
|
|
5036
|
-
var
|
|
5162
|
+
var tmp1_safe_receiver = schemaObject.n30();
|
|
5037
5163
|
var tmp_1;
|
|
5038
|
-
if (
|
|
5164
|
+
if (tmp1_safe_receiver == null) {
|
|
5039
5165
|
tmp_1 = null;
|
|
5040
5166
|
} else {
|
|
5041
5167
|
// Inline function 'kotlin.let' call
|
|
5042
|
-
tmp_1 = resolve_6(_this__u8e3s4,
|
|
5168
|
+
tmp_1 = resolve_6(_this__u8e3s4, tmp1_safe_receiver);
|
|
5043
5169
|
}
|
|
5044
|
-
var
|
|
5170
|
+
var tmp2_safe_receiver = tmp_1;
|
|
5045
5171
|
var tmp_2;
|
|
5046
|
-
if (
|
|
5172
|
+
if (tmp2_safe_receiver == null) {
|
|
5047
5173
|
tmp_2 = null;
|
|
5048
5174
|
} else {
|
|
5049
5175
|
// Inline function 'kotlin.takeIf' call
|
|
5050
5176
|
var tmp_3;
|
|
5051
|
-
if (!(
|
|
5052
|
-
tmp_3 =
|
|
5177
|
+
if (!(tmp2_safe_receiver.m30() == null)) {
|
|
5178
|
+
tmp_3 = tmp2_safe_receiver;
|
|
5053
5179
|
} else {
|
|
5054
5180
|
tmp_3 = null;
|
|
5055
5181
|
}
|
|
5056
5182
|
tmp_2 = tmp_3;
|
|
5057
5183
|
}
|
|
5058
|
-
var
|
|
5184
|
+
var tmp3_safe_receiver = tmp_2;
|
|
5059
5185
|
var tmp_4;
|
|
5060
|
-
if (
|
|
5186
|
+
if (tmp3_safe_receiver == null) {
|
|
5061
5187
|
tmp_4 = null;
|
|
5062
5188
|
} else {
|
|
5063
5189
|
// Inline function 'kotlin.let' call
|
|
5064
|
-
tmp_4 = flatten_0(_this__u8e3s4,
|
|
5190
|
+
tmp_4 = flatten_0(_this__u8e3s4, tmp3_safe_receiver, name);
|
|
5065
5191
|
}
|
|
5066
|
-
var
|
|
5067
|
-
tmp_0 =
|
|
5192
|
+
var tmp4_elvis_lhs = tmp_4;
|
|
5193
|
+
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
5068
5194
|
}
|
|
5069
5195
|
tmp = tmp_0;
|
|
5070
5196
|
} else if (!(oneOf == null) || !(anyOf == null)) {
|
|
5071
|
-
var tmp_5 = toDescriptionAnnotationList(schemaObject.
|
|
5197
|
+
var tmp_5 = toDescriptionAnnotationList(schemaObject.i30());
|
|
5072
5198
|
var tmp_6 = new DefinitionIdentifier(sanitize(name));
|
|
5073
5199
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5074
5200
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
@@ -5204,9 +5330,9 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5204
5330
|
var it = toSet(destination_4);
|
|
5205
5331
|
tmp = listOf(new Enum(null, toDescriptionAnnotationList(schemaObject.i30()), new DefinitionIdentifier(name), it));
|
|
5206
5332
|
} else {
|
|
5207
|
-
var
|
|
5333
|
+
var tmp5_subject = get_primitiveType_0(schemaObject);
|
|
5208
5334
|
var tmp_14;
|
|
5209
|
-
switch (
|
|
5335
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.b3_1) {
|
|
5210
5336
|
case -1:
|
|
5211
5337
|
case 5:
|
|
5212
5338
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -5236,18 +5362,18 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5236
5362
|
tmp_14 = plus_0(schema, fields);
|
|
5237
5363
|
break;
|
|
5238
5364
|
case 4:
|
|
5239
|
-
var
|
|
5365
|
+
var tmp6_safe_receiver = schemaObject.k30();
|
|
5240
5366
|
var tmp_15;
|
|
5241
|
-
if (
|
|
5367
|
+
if (tmp6_safe_receiver == null) {
|
|
5242
5368
|
tmp_15 = null;
|
|
5243
5369
|
} else {
|
|
5244
5370
|
// Inline function 'kotlin.let' call
|
|
5245
5371
|
var tmp_16;
|
|
5246
|
-
if (isInterface(
|
|
5372
|
+
if (isInterface(tmp6_safe_receiver, Reference)) {
|
|
5247
5373
|
tmp_16 = emptyList();
|
|
5248
5374
|
} else {
|
|
5249
|
-
if (isInterface(
|
|
5250
|
-
tmp_16 = flatten_0(_this__u8e3s4,
|
|
5375
|
+
if (isInterface(tmp6_safe_receiver, Schema)) {
|
|
5376
|
+
tmp_16 = flatten_0(_this__u8e3s4, tmp6_safe_receiver, className([name, 'array']));
|
|
5251
5377
|
} else {
|
|
5252
5378
|
noWhenBranchMatchedException();
|
|
5253
5379
|
}
|
|
@@ -5255,8 +5381,8 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5255
5381
|
tmp_15 = tmp_16;
|
|
5256
5382
|
}
|
|
5257
5383
|
|
|
5258
|
-
var
|
|
5259
|
-
tmp_14 =
|
|
5384
|
+
var tmp7_elvis_lhs = tmp_15;
|
|
5385
|
+
tmp_14 = tmp7_elvis_lhs == null ? emptyList() : tmp7_elvis_lhs;
|
|
5260
5386
|
break;
|
|
5261
5387
|
default:
|
|
5262
5388
|
tmp_14 = emptyList();
|
|
@@ -5267,9 +5393,8 @@ function flatten_0(_this__u8e3s4, schemaObject, name) {
|
|
|
5267
5393
|
return tmp;
|
|
5268
5394
|
}
|
|
5269
5395
|
function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
5270
|
-
var tmp0_safe_receiver = response instanceof OpenAPIV30Response ? response : null;
|
|
5271
5396
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5272
|
-
var tmp0_elvis_lhs =
|
|
5397
|
+
var tmp0_elvis_lhs = get_content(response);
|
|
5273
5398
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5274
5399
|
var tmp0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
5275
5400
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -5280,7 +5405,7 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5280
5405
|
var element = _iterator__ex2g4s.v();
|
|
5281
5406
|
// Inline function 'kotlin.collections.component2' call
|
|
5282
5407
|
var mediaObject = element.l1();
|
|
5283
|
-
var schema = mediaObject.
|
|
5408
|
+
var schema = mediaObject.r30();
|
|
5284
5409
|
var tmp;
|
|
5285
5410
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
5286
5411
|
var tmp0_subject = get_primitiveType_0(schema);
|
|
@@ -5319,7 +5444,7 @@ function flatMapResponse(_this__u8e3s4, response, name, statusCode) {
|
|
|
5319
5444
|
return destination;
|
|
5320
5445
|
}
|
|
5321
5446
|
function resolveResponse_0(_this__u8e3s4, reference) {
|
|
5322
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5447
|
+
var tmp0_safe_receiver = _this__u8e3s4.e33();
|
|
5323
5448
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qw();
|
|
5324
5449
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5325
5450
|
var tmp;
|
|
@@ -5350,8 +5475,8 @@ function resolveResponse_0(_this__u8e3s4, reference) {
|
|
|
5350
5475
|
return tmp_1;
|
|
5351
5476
|
}
|
|
5352
5477
|
function resolveParameter_0(_this__u8e3s4, reference) {
|
|
5353
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5354
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5478
|
+
var tmp0_safe_receiver = _this__u8e3s4.e33();
|
|
5479
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y30();
|
|
5355
5480
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5356
5481
|
var tmp;
|
|
5357
5482
|
if (tmp2_safe_receiver == null) {
|
|
@@ -5363,7 +5488,7 @@ function resolveParameter_0(_this__u8e3s4, reference) {
|
|
|
5363
5488
|
tmp_0 = resolveParameter_0(_this__u8e3s4, tmp2_safe_receiver);
|
|
5364
5489
|
} else {
|
|
5365
5490
|
if (isInterface(tmp2_safe_receiver, Parameter_0)) {
|
|
5366
|
-
tmp_0 = tmp2_safe_receiver
|
|
5491
|
+
tmp_0 = tmp2_safe_receiver;
|
|
5367
5492
|
} else {
|
|
5368
5493
|
noWhenBranchMatchedException();
|
|
5369
5494
|
}
|
|
@@ -5372,8 +5497,42 @@ function resolveParameter_0(_this__u8e3s4, reference) {
|
|
|
5372
5497
|
}
|
|
5373
5498
|
return tmp;
|
|
5374
5499
|
}
|
|
5500
|
+
function get_required(_this__u8e3s4) {
|
|
5501
|
+
var tmp;
|
|
5502
|
+
if (_this__u8e3s4 instanceof OpenAPIV30Parameter) {
|
|
5503
|
+
tmp = _this__u8e3s4.v3f_1;
|
|
5504
|
+
} else {
|
|
5505
|
+
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
5506
|
+
tmp = _this__u8e3s4.j3m_1;
|
|
5507
|
+
} else {
|
|
5508
|
+
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
5509
|
+
tmp = _this__u8e3s4.o3w_1;
|
|
5510
|
+
} else {
|
|
5511
|
+
tmp = null;
|
|
5512
|
+
}
|
|
5513
|
+
}
|
|
5514
|
+
}
|
|
5515
|
+
return tmp;
|
|
5516
|
+
}
|
|
5517
|
+
function get_description(_this__u8e3s4) {
|
|
5518
|
+
var tmp;
|
|
5519
|
+
if (_this__u8e3s4 instanceof OpenAPIV30Parameter) {
|
|
5520
|
+
tmp = _this__u8e3s4.u3f_1;
|
|
5521
|
+
} else {
|
|
5522
|
+
if (_this__u8e3s4 instanceof OpenAPIV31Parameter) {
|
|
5523
|
+
tmp = _this__u8e3s4.i3m_1;
|
|
5524
|
+
} else {
|
|
5525
|
+
if (_this__u8e3s4 instanceof OpenAPIV32Parameter) {
|
|
5526
|
+
tmp = _this__u8e3s4.n3w_1;
|
|
5527
|
+
} else {
|
|
5528
|
+
tmp = null;
|
|
5529
|
+
}
|
|
5530
|
+
}
|
|
5531
|
+
}
|
|
5532
|
+
return tmp;
|
|
5533
|
+
}
|
|
5375
5534
|
function resolveRequestBody(_this__u8e3s4, reference) {
|
|
5376
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5535
|
+
var tmp0_safe_receiver = _this__u8e3s4.e33();
|
|
5377
5536
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x3d();
|
|
5378
5537
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5379
5538
|
var tmp;
|
|
@@ -5404,7 +5563,7 @@ function resolveRequestBody(_this__u8e3s4, reference) {
|
|
|
5404
5563
|
return tmp_1;
|
|
5405
5564
|
}
|
|
5406
5565
|
function resolveSchemaRef_0(_this__u8e3s4, reference) {
|
|
5407
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5566
|
+
var tmp0_safe_receiver = _this__u8e3s4.e33();
|
|
5408
5567
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w3d();
|
|
5409
5568
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5410
5569
|
var tmp;
|
|
@@ -5511,10 +5670,10 @@ function toPrimitive_1(_this__u8e3s4) {
|
|
|
5511
5670
|
return tmp;
|
|
5512
5671
|
}
|
|
5513
5672
|
function toLinkInfo_0(_this__u8e3s4, name) {
|
|
5514
|
-
var tmp = _this__u8e3s4.
|
|
5515
|
-
var tmp_0 = _this__u8e3s4.
|
|
5673
|
+
var tmp = _this__u8e3s4.x30();
|
|
5674
|
+
var tmp_0 = _this__u8e3s4.w30();
|
|
5516
5675
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5517
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
5676
|
+
var tmp0_elvis_lhs = _this__u8e3s4.y30();
|
|
5518
5677
|
// Inline function 'kotlin.collections.mapValues' call
|
|
5519
5678
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
5520
5679
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
@@ -5528,11 +5687,11 @@ function toLinkInfo_0(_this__u8e3s4, name) {
|
|
|
5528
5687
|
destination.s2(tmp_1, tmp$ret$2);
|
|
5529
5688
|
}
|
|
5530
5689
|
var tmp_2 = destination;
|
|
5531
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5690
|
+
var tmp0_safe_receiver = _this__u8e3s4.z30();
|
|
5532
5691
|
var tmp_3 = tmp0_safe_receiver == null ? null : asLinkExpression(tmp0_safe_receiver);
|
|
5533
5692
|
var tmp_4 = _this__u8e3s4.i30();
|
|
5534
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
5535
|
-
return new LinkInfo(name, tmp, tmp_0, tmp_2, tmp_3, tmp_4, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5693
|
+
var tmp1_safe_receiver = _this__u8e3s4.a31();
|
|
5694
|
+
return new LinkInfo(name, tmp, tmp_0, tmp_2, tmp_3, tmp_4, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.e31_1);
|
|
5536
5695
|
}
|
|
5537
5696
|
function resolve_5(_this__u8e3s4, linkOrReference) {
|
|
5538
5697
|
var tmp;
|
|
@@ -5547,8 +5706,42 @@ function resolve_5(_this__u8e3s4, linkOrReference) {
|
|
|
5547
5706
|
}
|
|
5548
5707
|
return tmp;
|
|
5549
5708
|
}
|
|
5709
|
+
function get_required_0(_this__u8e3s4) {
|
|
5710
|
+
var tmp;
|
|
5711
|
+
if (_this__u8e3s4 instanceof OpenAPIV30Header) {
|
|
5712
|
+
tmp = _this__u8e3s4.t3i_1;
|
|
5713
|
+
} else {
|
|
5714
|
+
if (_this__u8e3s4 instanceof OpenAPIV31Header) {
|
|
5715
|
+
tmp = _this__u8e3s4.q3p_1;
|
|
5716
|
+
} else {
|
|
5717
|
+
if (_this__u8e3s4 instanceof OpenAPIV32Header) {
|
|
5718
|
+
tmp = _this__u8e3s4.v3z_1;
|
|
5719
|
+
} else {
|
|
5720
|
+
tmp = null;
|
|
5721
|
+
}
|
|
5722
|
+
}
|
|
5723
|
+
}
|
|
5724
|
+
return tmp;
|
|
5725
|
+
}
|
|
5726
|
+
function get_schema(_this__u8e3s4) {
|
|
5727
|
+
var tmp;
|
|
5728
|
+
if (_this__u8e3s4 instanceof OpenAPIV30Header) {
|
|
5729
|
+
tmp = _this__u8e3s4.z3i_1;
|
|
5730
|
+
} else {
|
|
5731
|
+
if (_this__u8e3s4 instanceof OpenAPIV31Header) {
|
|
5732
|
+
tmp = _this__u8e3s4.w3p_1;
|
|
5733
|
+
} else {
|
|
5734
|
+
if (_this__u8e3s4 instanceof OpenAPIV32Header) {
|
|
5735
|
+
tmp = _this__u8e3s4.b40_1;
|
|
5736
|
+
} else {
|
|
5737
|
+
tmp = null;
|
|
5738
|
+
}
|
|
5739
|
+
}
|
|
5740
|
+
}
|
|
5741
|
+
return tmp;
|
|
5742
|
+
}
|
|
5550
5743
|
function resolveHeader_0(_this__u8e3s4, reference) {
|
|
5551
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5744
|
+
var tmp0_safe_receiver = _this__u8e3s4.e33();
|
|
5552
5745
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ow();
|
|
5553
5746
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5554
5747
|
var tmp;
|
|
@@ -5578,6 +5771,142 @@ function resolveHeader_0(_this__u8e3s4, reference) {
|
|
|
5578
5771
|
}
|
|
5579
5772
|
return tmp_1;
|
|
5580
5773
|
}
|
|
5774
|
+
function toV30(_this__u8e3s4) {
|
|
5775
|
+
return valueOf_0(_this__u8e3s4.a3_1);
|
|
5776
|
+
}
|
|
5777
|
+
function toV30_0(_this__u8e3s4) {
|
|
5778
|
+
return valueOf_0(_this__u8e3s4.a3_1);
|
|
5779
|
+
}
|
|
5780
|
+
function get_oneOf(_this__u8e3s4) {
|
|
5781
|
+
var tmp;
|
|
5782
|
+
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5783
|
+
var tmp1_safe_receiver = _this__u8e3s4.e3e_1;
|
|
5784
|
+
var tmp_0;
|
|
5785
|
+
if (tmp1_safe_receiver == null) {
|
|
5786
|
+
tmp_0 = null;
|
|
5787
|
+
} else {
|
|
5788
|
+
// Inline function 'kotlin.collections.map' call
|
|
5789
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
5790
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_safe_receiver, 10));
|
|
5791
|
+
var _iterator__ex2g4s = tmp1_safe_receiver.t();
|
|
5792
|
+
while (_iterator__ex2g4s.u()) {
|
|
5793
|
+
var item = _iterator__ex2g4s.v();
|
|
5794
|
+
var tmp$ret$0 = toCommon(item);
|
|
5795
|
+
destination.x(tmp$ret$0);
|
|
5796
|
+
}
|
|
5797
|
+
tmp_0 = destination;
|
|
5798
|
+
}
|
|
5799
|
+
tmp = tmp_0;
|
|
5800
|
+
} else {
|
|
5801
|
+
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5802
|
+
var tmp2_safe_receiver = _this__u8e3s4.q3n_1;
|
|
5803
|
+
var tmp_1;
|
|
5804
|
+
if (tmp2_safe_receiver == null) {
|
|
5805
|
+
tmp_1 = null;
|
|
5806
|
+
} else {
|
|
5807
|
+
// Inline function 'kotlin.collections.map' call
|
|
5808
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
5809
|
+
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_safe_receiver, 10));
|
|
5810
|
+
var _iterator__ex2g4s_0 = tmp2_safe_receiver.t();
|
|
5811
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
5812
|
+
var item_0 = _iterator__ex2g4s_0.v();
|
|
5813
|
+
var tmp$ret$3 = toCommon_0(item_0);
|
|
5814
|
+
destination_0.x(tmp$ret$3);
|
|
5815
|
+
}
|
|
5816
|
+
tmp_1 = destination_0;
|
|
5817
|
+
}
|
|
5818
|
+
tmp = tmp_1;
|
|
5819
|
+
} else {
|
|
5820
|
+
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5821
|
+
var tmp3_safe_receiver = _this__u8e3s4.v3x_1;
|
|
5822
|
+
var tmp_2;
|
|
5823
|
+
if (tmp3_safe_receiver == null) {
|
|
5824
|
+
tmp_2 = null;
|
|
5825
|
+
} else {
|
|
5826
|
+
// Inline function 'kotlin.collections.map' call
|
|
5827
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
5828
|
+
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp3_safe_receiver, 10));
|
|
5829
|
+
var _iterator__ex2g4s_1 = tmp3_safe_receiver.t();
|
|
5830
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
5831
|
+
var item_1 = _iterator__ex2g4s_1.v();
|
|
5832
|
+
var tmp$ret$6 = toCommon_1(item_1);
|
|
5833
|
+
destination_1.x(tmp$ret$6);
|
|
5834
|
+
}
|
|
5835
|
+
tmp_2 = destination_1;
|
|
5836
|
+
}
|
|
5837
|
+
tmp = tmp_2;
|
|
5838
|
+
} else {
|
|
5839
|
+
tmp = null;
|
|
5840
|
+
}
|
|
5841
|
+
}
|
|
5842
|
+
}
|
|
5843
|
+
return tmp;
|
|
5844
|
+
}
|
|
5845
|
+
function get_anyOf(_this__u8e3s4) {
|
|
5846
|
+
var tmp;
|
|
5847
|
+
if (_this__u8e3s4 instanceof OpenAPIV30Schema) {
|
|
5848
|
+
var tmp1_safe_receiver = _this__u8e3s4.f3e_1;
|
|
5849
|
+
var tmp_0;
|
|
5850
|
+
if (tmp1_safe_receiver == null) {
|
|
5851
|
+
tmp_0 = null;
|
|
5852
|
+
} else {
|
|
5853
|
+
// Inline function 'kotlin.collections.map' call
|
|
5854
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
5855
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_safe_receiver, 10));
|
|
5856
|
+
var _iterator__ex2g4s = tmp1_safe_receiver.t();
|
|
5857
|
+
while (_iterator__ex2g4s.u()) {
|
|
5858
|
+
var item = _iterator__ex2g4s.v();
|
|
5859
|
+
var tmp$ret$0 = toCommon(item);
|
|
5860
|
+
destination.x(tmp$ret$0);
|
|
5861
|
+
}
|
|
5862
|
+
tmp_0 = destination;
|
|
5863
|
+
}
|
|
5864
|
+
tmp = tmp_0;
|
|
5865
|
+
} else {
|
|
5866
|
+
if (_this__u8e3s4 instanceof OpenAPIV31Schema) {
|
|
5867
|
+
var tmp2_safe_receiver = _this__u8e3s4.r3n_1;
|
|
5868
|
+
var tmp_1;
|
|
5869
|
+
if (tmp2_safe_receiver == null) {
|
|
5870
|
+
tmp_1 = null;
|
|
5871
|
+
} else {
|
|
5872
|
+
// Inline function 'kotlin.collections.map' call
|
|
5873
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
5874
|
+
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_safe_receiver, 10));
|
|
5875
|
+
var _iterator__ex2g4s_0 = tmp2_safe_receiver.t();
|
|
5876
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
5877
|
+
var item_0 = _iterator__ex2g4s_0.v();
|
|
5878
|
+
var tmp$ret$3 = toCommon_0(item_0);
|
|
5879
|
+
destination_0.x(tmp$ret$3);
|
|
5880
|
+
}
|
|
5881
|
+
tmp_1 = destination_0;
|
|
5882
|
+
}
|
|
5883
|
+
tmp = tmp_1;
|
|
5884
|
+
} else {
|
|
5885
|
+
if (_this__u8e3s4 instanceof OpenAPIV32Schema) {
|
|
5886
|
+
var tmp3_safe_receiver = _this__u8e3s4.w3x_1;
|
|
5887
|
+
var tmp_2;
|
|
5888
|
+
if (tmp3_safe_receiver == null) {
|
|
5889
|
+
tmp_2 = null;
|
|
5890
|
+
} else {
|
|
5891
|
+
// Inline function 'kotlin.collections.map' call
|
|
5892
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
5893
|
+
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp3_safe_receiver, 10));
|
|
5894
|
+
var _iterator__ex2g4s_1 = tmp3_safe_receiver.t();
|
|
5895
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
5896
|
+
var item_1 = _iterator__ex2g4s_1.v();
|
|
5897
|
+
var tmp$ret$6 = toCommon_1(item_1);
|
|
5898
|
+
destination_1.x(tmp$ret$6);
|
|
5899
|
+
}
|
|
5900
|
+
tmp_2 = destination_1;
|
|
5901
|
+
}
|
|
5902
|
+
tmp = tmp_2;
|
|
5903
|
+
} else {
|
|
5904
|
+
tmp = null;
|
|
5905
|
+
}
|
|
5906
|
+
}
|
|
5907
|
+
}
|
|
5908
|
+
return tmp;
|
|
5909
|
+
}
|
|
5581
5910
|
function resolve_6(_this__u8e3s4, schemaOrReferenceOrBoolean) {
|
|
5582
5911
|
var tmp;
|
|
5583
5912
|
if (isInterface(schemaOrReferenceOrBoolean, Schema)) {
|
|
@@ -5641,7 +5970,7 @@ function asLinkExpression(_this__u8e3s4) {
|
|
|
5641
5970
|
return tmp1_elvis_lhs == null ? toString(_this__u8e3s4) : tmp1_elvis_lhs;
|
|
5642
5971
|
}
|
|
5643
5972
|
function resolveLink(_this__u8e3s4, reference) {
|
|
5644
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
5973
|
+
var tmp0_safe_receiver = _this__u8e3s4.e33();
|
|
5645
5974
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q30();
|
|
5646
5975
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p2(getReference(reference));
|
|
5647
5976
|
var tmp;
|
|
@@ -5671,9 +6000,48 @@ function resolveLink(_this__u8e3s4, reference) {
|
|
|
5671
6000
|
}
|
|
5672
6001
|
return tmp_1;
|
|
5673
6002
|
}
|
|
6003
|
+
function toCommon(_this__u8e3s4) {
|
|
6004
|
+
var tmp;
|
|
6005
|
+
if (isInterface(_this__u8e3s4, Schema)) {
|
|
6006
|
+
tmp = _this__u8e3s4;
|
|
6007
|
+
} else {
|
|
6008
|
+
if (isInterface(_this__u8e3s4, Reference)) {
|
|
6009
|
+
tmp = _this__u8e3s4;
|
|
6010
|
+
} else {
|
|
6011
|
+
noWhenBranchMatchedException();
|
|
6012
|
+
}
|
|
6013
|
+
}
|
|
6014
|
+
return tmp;
|
|
6015
|
+
}
|
|
6016
|
+
function toCommon_0(_this__u8e3s4) {
|
|
6017
|
+
var tmp;
|
|
6018
|
+
if (isInterface(_this__u8e3s4, Schema)) {
|
|
6019
|
+
tmp = _this__u8e3s4;
|
|
6020
|
+
} else {
|
|
6021
|
+
if (isInterface(_this__u8e3s4, Reference)) {
|
|
6022
|
+
tmp = _this__u8e3s4;
|
|
6023
|
+
} else {
|
|
6024
|
+
noWhenBranchMatchedException();
|
|
6025
|
+
}
|
|
6026
|
+
}
|
|
6027
|
+
return tmp;
|
|
6028
|
+
}
|
|
6029
|
+
function toCommon_1(_this__u8e3s4) {
|
|
6030
|
+
var tmp;
|
|
6031
|
+
if (isInterface(_this__u8e3s4, Schema)) {
|
|
6032
|
+
tmp = _this__u8e3s4;
|
|
6033
|
+
} else {
|
|
6034
|
+
if (isInterface(_this__u8e3s4, Reference)) {
|
|
6035
|
+
tmp = _this__u8e3s4;
|
|
6036
|
+
} else {
|
|
6037
|
+
noWhenBranchMatchedException();
|
|
6038
|
+
}
|
|
6039
|
+
}
|
|
6040
|
+
return tmp;
|
|
6041
|
+
}
|
|
5674
6042
|
function parseParameters$lambda_0($this_parseParameters) {
|
|
5675
6043
|
return function ($this$flatMapRequests) {
|
|
5676
|
-
var parameters = plus_0(resolveParameters_0($this_parseParameters, $this$flatMapRequests.q46_1.
|
|
6044
|
+
var parameters = plus_0(resolveParameters_0($this_parseParameters, $this$flatMapRequests.q46_1.y30()), resolveParameters_0($this_parseParameters, $this$flatMapRequests.s46_1.y30()));
|
|
5677
6045
|
var tmp0_elvis_lhs = toName($this$flatMapRequests.s46_1);
|
|
5678
6046
|
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.p46_1) + $this$flatMapRequests.r46_1.a3_1 : tmp0_elvis_lhs;
|
|
5679
6047
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -5682,13 +6050,13 @@ function parseParameters$lambda_0($this_parseParameters) {
|
|
|
5682
6050
|
var _iterator__ex2g4s = parameters.t();
|
|
5683
6051
|
while (_iterator__ex2g4s.u()) {
|
|
5684
6052
|
var element = _iterator__ex2g4s.v();
|
|
5685
|
-
var tmp0_safe_receiver = element.
|
|
6053
|
+
var tmp0_safe_receiver = element.r30();
|
|
5686
6054
|
var tmp;
|
|
5687
6055
|
if (tmp0_safe_receiver == null) {
|
|
5688
6056
|
tmp = null;
|
|
5689
6057
|
} else {
|
|
5690
6058
|
// Inline function 'kotlin.let' call
|
|
5691
|
-
tmp = flattenSchemaOrRef_0($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element.
|
|
6059
|
+
tmp = flattenSchemaOrRef_0($this_parseParameters, tmp0_safe_receiver, className([name, 'Parameter', element.m()]));
|
|
5692
6060
|
}
|
|
5693
6061
|
var tmp1_elvis_lhs = tmp;
|
|
5694
6062
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -5701,7 +6069,7 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
5701
6069
|
return function ($this$flatMapRequests) {
|
|
5702
6070
|
var tmp0_elvis_lhs = toName($this$flatMapRequests.s46_1);
|
|
5703
6071
|
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.p46_1) + $this$flatMapRequests.r46_1.a3_1 : tmp0_elvis_lhs;
|
|
5704
|
-
var tmp1_safe_receiver = $this$flatMapRequests.s46_1.
|
|
6072
|
+
var tmp1_safe_receiver = $this$flatMapRequests.s46_1.z30();
|
|
5705
6073
|
var tmp;
|
|
5706
6074
|
if (tmp1_safe_receiver == null) {
|
|
5707
6075
|
tmp = null;
|
|
@@ -5722,7 +6090,7 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
5722
6090
|
var element = _iterator__ex2g4s.v();
|
|
5723
6091
|
// Inline function 'kotlin.collections.component2' call
|
|
5724
6092
|
var mediaObject = element.l1();
|
|
5725
|
-
var schema = mediaObject.
|
|
6093
|
+
var schema = mediaObject.r30();
|
|
5726
6094
|
var tmp_0;
|
|
5727
6095
|
if (!(schema == null) ? isInterface(schema, Schema) : false) {
|
|
5728
6096
|
var tmp0_subject = get_primitiveType_0(schema);
|