@flock/wirespec 0.6.1 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js +335 -335
- package/kotlin/arrow-arrow-atomic.js +4 -4
- package/kotlin/arrow-arrow-continuations.js +3 -3
- package/kotlin/arrow-arrow-core.js +16 -16
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js +156 -157
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin/kotlin-openapi-bindings.js +3314 -3314
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1314 -1314
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1041 -1041
- package/kotlin/wirespec-cli.js +120 -120
- package/kotlin/wirespec-core.js +424 -281
- package/kotlin/wirespec-core.js.map +1 -1
- package/kotlin/wirespec-lib.js +49 -49
- package/kotlin/wirespec-openapi.js +360 -341
- package/kotlin/wirespec-openapi.js.map +1 -1
- package/package.json +1 -1
- package/sync-hashes/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.hash +1 -1
- package/sync-hashes/arrow-arrow-atomic.js.hash +1 -1
- package/sync-hashes/arrow-arrow-continuations.js.hash +1 -1
- package/sync-hashes/arrow-arrow-core.js.hash +1 -1
- package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.hash +1 -1
- package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.map.hash +1 -1
- package/sync-hashes/kotlin-openapi-bindings.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +1 -1
- package/sync-hashes/wirespec-cli.js.hash +1 -1
- package/sync-hashes/wirespec-core.js.hash +1 -1
- package/sync-hashes/wirespec-core.js.map.hash +1 -1
- package/sync-hashes/wirespec-lib.js.hash +1 -1
- package/sync-hashes/wirespec-openapi.js.hash +1 -1
- package/sync-hashes/wirespec-openapi.js.map.hash +1 -1
|
@@ -20,29 +20,30 @@
|
|
|
20
20
|
//region block: imports
|
|
21
21
|
var imul = Math.imul;
|
|
22
22
|
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.a1;
|
|
23
|
-
var VOID = kotlin_kotlin.$_$.ya;
|
|
24
|
-
var joinToString = kotlin_kotlin.$_$.b5;
|
|
25
|
-
var protoOf = kotlin_kotlin.$_$.t7;
|
|
26
|
-
var objectMeta = kotlin_kotlin.$_$.s7;
|
|
27
|
-
var setMetadataFor = kotlin_kotlin.$_$.u7;
|
|
28
|
-
var Default_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i1;
|
|
29
|
-
var Unit_getInstance = kotlin_kotlin.$_$.i3;
|
|
30
23
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
|
|
31
|
-
var
|
|
24
|
+
var split = kotlin_kotlin.$_$.v8;
|
|
25
|
+
var Unit_getInstance = kotlin_kotlin.$_$.i3;
|
|
26
|
+
var addAll = kotlin_kotlin.$_$.z3;
|
|
27
|
+
var VOID = kotlin_kotlin.$_$.xa;
|
|
28
|
+
var joinToString = kotlin_kotlin.$_$.a5;
|
|
29
|
+
var protoOf = kotlin_kotlin.$_$.s7;
|
|
30
|
+
var objectMeta = kotlin_kotlin.$_$.r7;
|
|
31
|
+
var setMetadataFor = kotlin_kotlin.$_$.t7;
|
|
32
|
+
var Default_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i1;
|
|
33
|
+
var plus = kotlin_kotlin.$_$.o5;
|
|
32
34
|
var ParameterLocation_QUERY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t;
|
|
33
35
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.c4;
|
|
34
36
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.f;
|
|
35
37
|
var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s;
|
|
36
38
|
var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r;
|
|
37
39
|
var emptyList = kotlin_kotlin.$_$.r4;
|
|
38
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
39
|
-
var NotImplementedError = kotlin_kotlin.$_$.
|
|
40
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.sa;
|
|
41
|
+
var NotImplementedError = kotlin_kotlin.$_$.t9;
|
|
40
42
|
var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
|
|
41
43
|
var ReferenceObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d;
|
|
42
44
|
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.g;
|
|
43
45
|
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.i;
|
|
44
|
-
var
|
|
45
|
-
var listOf = kotlin_kotlin.$_$.i5;
|
|
46
|
+
var listOf = kotlin_kotlin.$_$.h5;
|
|
46
47
|
var emptyMap = kotlin_kotlin.$_$.s4;
|
|
47
48
|
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b1;
|
|
48
49
|
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.j;
|
|
@@ -51,44 +52,42 @@
|
|
|
51
52
|
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.t;
|
|
52
53
|
var ParameterObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b;
|
|
53
54
|
var Ref = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e;
|
|
54
|
-
var toString = kotlin_kotlin.$_$.
|
|
55
|
+
var toString = kotlin_kotlin.$_$.x7;
|
|
55
56
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.e1;
|
|
56
|
-
var to = kotlin_kotlin.$_$.
|
|
57
|
+
var to = kotlin_kotlin.$_$.wa;
|
|
57
58
|
var BooleanObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a;
|
|
58
59
|
var ResponseObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f;
|
|
59
60
|
var Identifier = kotlin_community_flock_wirespec_compiler_core.$_$.o;
|
|
60
61
|
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.p;
|
|
61
62
|
var contains = kotlin_kotlin.$_$.d4;
|
|
62
63
|
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.r;
|
|
63
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
64
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
65
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
66
|
-
var equals = kotlin_kotlin.$_$.
|
|
67
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
64
|
+
var getStringHashCode = kotlin_kotlin.$_$.w6;
|
|
65
|
+
var hashCode = kotlin_kotlin.$_$.x6;
|
|
66
|
+
var THROW_CCE = kotlin_kotlin.$_$.x9;
|
|
67
|
+
var equals = kotlin_kotlin.$_$.r6;
|
|
68
|
+
var classMeta = kotlin_kotlin.$_$.p6;
|
|
68
69
|
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.q;
|
|
69
70
|
var values = kotlin_community_flock_wirespec_compiler_core.$_$.h;
|
|
70
|
-
var mapCapacity = kotlin_kotlin.$_$.
|
|
71
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
71
|
+
var mapCapacity = kotlin_kotlin.$_$.j5;
|
|
72
|
+
var coerceAtLeast = kotlin_kotlin.$_$.y7;
|
|
72
73
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.o;
|
|
73
74
|
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.z;
|
|
74
|
-
var split = kotlin_kotlin.$_$.w8;
|
|
75
75
|
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.z;
|
|
76
76
|
var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.y;
|
|
77
77
|
var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.x;
|
|
78
78
|
var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y;
|
|
79
79
|
var drop = kotlin_kotlin.$_$.q4;
|
|
80
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
81
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
82
|
-
var Char = kotlin_kotlin.$_$.
|
|
80
|
+
var charSequenceLength = kotlin_kotlin.$_$.n6;
|
|
81
|
+
var charSequenceGet = kotlin_kotlin.$_$.m6;
|
|
82
|
+
var Char = kotlin_kotlin.$_$.l9;
|
|
83
83
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.i1;
|
|
84
84
|
var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.k;
|
|
85
85
|
var Param = kotlin_community_flock_wirespec_compiler_core.$_$.l;
|
|
86
|
-
var joinToString_0 = kotlin_kotlin.$_$.a5;
|
|
87
86
|
var Path = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c;
|
|
88
87
|
var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.x;
|
|
89
88
|
var StatusCode = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h;
|
|
90
89
|
var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a1;
|
|
91
|
-
var toMap = kotlin_kotlin.$_$.
|
|
90
|
+
var toMap = kotlin_kotlin.$_$.z5;
|
|
92
91
|
var Default_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j1;
|
|
93
92
|
var ParameterLocation_QUERY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w;
|
|
94
93
|
var ParameterLocation_HEADER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v;
|
|
@@ -128,8 +127,28 @@
|
|
|
128
127
|
function Common() {
|
|
129
128
|
Common_instance = this;
|
|
130
129
|
}
|
|
131
|
-
protoOf(Common).
|
|
132
|
-
|
|
130
|
+
protoOf(Common).z1s = function (arg) {
|
|
131
|
+
var tmp$ret$2;
|
|
132
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
133
|
+
var tmp$ret$1;
|
|
134
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
135
|
+
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
136
|
+
var indexedObject = arg;
|
|
137
|
+
var inductionVariable = 0;
|
|
138
|
+
var last = indexedObject.length;
|
|
139
|
+
while (inductionVariable < last) {
|
|
140
|
+
var element = indexedObject[inductionVariable];
|
|
141
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
142
|
+
var tmp$ret$0;
|
|
143
|
+
// Inline function 'community.flock.wirespec.openapi.Common.className.<anonymous>' call
|
|
144
|
+
tmp$ret$0 = split(element, ['-']);
|
|
145
|
+
var list = tmp$ret$0;
|
|
146
|
+
addAll(tmp0_flatMapTo, list);
|
|
147
|
+
}
|
|
148
|
+
tmp$ret$1 = tmp0_flatMapTo;
|
|
149
|
+
tmp$ret$2 = tmp$ret$1;
|
|
150
|
+
var tmp = tmp$ret$2;
|
|
151
|
+
return joinToString(tmp, '', VOID, VOID, VOID, VOID, Common$className$lambda);
|
|
133
152
|
};
|
|
134
153
|
var Common_instance;
|
|
135
154
|
function Common_getInstance() {
|
|
@@ -140,14 +159,14 @@
|
|
|
140
159
|
function Companion() {
|
|
141
160
|
Companion_instance = this;
|
|
142
161
|
}
|
|
143
|
-
protoOf(Companion).
|
|
162
|
+
protoOf(Companion).a1t = function (json) {
|
|
144
163
|
var tmp$ret$1;
|
|
145
164
|
// Inline function 'kotlin.let' call
|
|
146
|
-
var tmp0_let = Default_getInstance().
|
|
165
|
+
var tmp0_let = Default_getInstance().g1a(json);
|
|
147
166
|
// Inline function 'kotlin.contracts.contract' call
|
|
148
167
|
var tmp$ret$0;
|
|
149
168
|
// Inline function 'community.flock.wirespec.openapi.v2.Companion.parse.<anonymous>' call
|
|
150
|
-
tmp$ret$0 = (new OpenApiParser(tmp0_let)).
|
|
169
|
+
tmp$ret$0 = (new OpenApiParser(tmp0_let)).c1t();
|
|
151
170
|
tmp$ret$1 = tmp$ret$0;
|
|
152
171
|
return tmp$ret$1;
|
|
153
172
|
};
|
|
@@ -160,7 +179,7 @@
|
|
|
160
179
|
function parseEndpoints($this) {
|
|
161
180
|
var tmp$ret$48;
|
|
162
181
|
// Inline function 'kotlin.collections.flatMap' call
|
|
163
|
-
var tmp1_flatMap = $this.
|
|
182
|
+
var tmp1_flatMap = $this.b1t_1.q1a_1;
|
|
164
183
|
var tmp$ret$47;
|
|
165
184
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
166
185
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -174,7 +193,7 @@
|
|
|
174
193
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>' call
|
|
175
194
|
var tmp$ret$1;
|
|
176
195
|
// Inline function 'kotlin.collections.component1' call
|
|
177
|
-
tmp$ret$1 = element.v().
|
|
196
|
+
tmp$ret$1 = element.v().b1b_1;
|
|
178
197
|
var path = tmp$ret$1;
|
|
179
198
|
var tmp$ret$2;
|
|
180
199
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -217,7 +236,7 @@
|
|
|
217
236
|
var element_1 = tmp0_iterator_1.e();
|
|
218
237
|
var tmp$ret$6;
|
|
219
238
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
220
|
-
tmp$ret$6 = element_1.
|
|
239
|
+
tmp$ret$6 = element_1.l1c_1.equals(ParameterLocation_QUERY_getInstance());
|
|
221
240
|
if (tmp$ret$6) {
|
|
222
241
|
tmp0_filterTo.a(element_1);
|
|
223
242
|
}
|
|
@@ -251,7 +270,7 @@
|
|
|
251
270
|
var element_2 = tmp0_iterator_3.e();
|
|
252
271
|
var tmp$ret$12;
|
|
253
272
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
254
|
-
tmp$ret$12 = element_2.
|
|
273
|
+
tmp$ret$12 = element_2.l1c_1.equals(ParameterLocation_HEADER_getInstance());
|
|
255
274
|
if (tmp$ret$12) {
|
|
256
275
|
tmp3_filterTo.a(element_2);
|
|
257
276
|
}
|
|
@@ -287,7 +306,7 @@
|
|
|
287
306
|
var element_3 = tmp0_iterator_5.e();
|
|
288
307
|
var tmp$ret$18;
|
|
289
308
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
290
|
-
tmp$ret$18 = element_3.
|
|
309
|
+
tmp$ret$18 = element_3.l1c_1.equals(ParameterLocation_BODY_getInstance());
|
|
291
310
|
if (tmp$ret$18) {
|
|
292
311
|
tmp6_filterTo.a(element_3);
|
|
293
312
|
}
|
|
@@ -307,8 +326,8 @@
|
|
|
307
326
|
// Inline function 'kotlin.collections.map' call
|
|
308
327
|
var tmp$ret$21;
|
|
309
328
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
310
|
-
var tmp0_elvis_lhs = $this.
|
|
311
|
-
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.
|
|
329
|
+
var tmp0_elvis_lhs = $this.b1t_1.o1a_1;
|
|
330
|
+
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.z1b_1 : tmp0_elvis_lhs;
|
|
312
331
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
313
332
|
tmp$ret$21 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
314
333
|
var tmp2_map_0 = tmp$ret$21;
|
|
@@ -320,13 +339,13 @@
|
|
|
320
339
|
var item_1 = tmp0_iterator_7.e();
|
|
321
340
|
var tmp$ret$22;
|
|
322
341
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
323
|
-
var schema = element_4.
|
|
342
|
+
var schema = element_4.o1c_1;
|
|
324
343
|
var tmp;
|
|
325
344
|
if (schema instanceof ReferenceObject) {
|
|
326
345
|
tmp = toReference(schema, $this);
|
|
327
346
|
} else {
|
|
328
347
|
if (schema instanceof SchemaObject) {
|
|
329
|
-
tmp = toReference_0(schema, $this, Common_getInstance().
|
|
348
|
+
tmp = toReference_0(schema, $this, Common_getInstance().z1s([name, 'RequestBody']));
|
|
330
349
|
} else {
|
|
331
350
|
if (schema == null) {
|
|
332
351
|
throw new NotImplementedError();
|
|
@@ -336,7 +355,7 @@
|
|
|
336
355
|
}
|
|
337
356
|
}
|
|
338
357
|
var tmp_0 = tmp;
|
|
339
|
-
var tmp0_elvis_lhs_1 = element_4.
|
|
358
|
+
var tmp0_elvis_lhs_1 = element_4.n1c_1;
|
|
340
359
|
tmp$ret$22 = new Request(new Content(item_1, tmp_0, tmp0_elvis_lhs_1 == null ? false : tmp0_elvis_lhs_1));
|
|
341
360
|
tmp1_mapTo_0.a(tmp$ret$22);
|
|
342
361
|
}
|
|
@@ -364,7 +383,7 @@
|
|
|
364
383
|
// Inline function 'kotlin.collections.flatMap' call
|
|
365
384
|
var tmp$ret$30;
|
|
366
385
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
367
|
-
var tmp10_orEmpty = operation.
|
|
386
|
+
var tmp10_orEmpty = operation.c1c_1;
|
|
368
387
|
var tmp0_elvis_lhs_2 = tmp10_orEmpty;
|
|
369
388
|
tmp$ret$30 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
370
389
|
var tmp12_flatMap = tmp$ret$30;
|
|
@@ -381,7 +400,7 @@
|
|
|
381
400
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
382
401
|
var tmp$ret$32;
|
|
383
402
|
// Inline function 'kotlin.collections.component1' call
|
|
384
|
-
tmp$ret$32 = element_5.v().
|
|
403
|
+
tmp$ret$32 = element_5.v().u1e_1;
|
|
385
404
|
var status = tmp$ret$32;
|
|
386
405
|
var tmp$ret$33;
|
|
387
406
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -391,8 +410,8 @@
|
|
|
391
410
|
// Inline function 'kotlin.collections.map' call
|
|
392
411
|
var tmp$ret$34;
|
|
393
412
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
394
|
-
var tmp0_elvis_lhs_3 = $this.
|
|
395
|
-
var tmp0_orEmpty_0 = tmp0_elvis_lhs_3 == null ? operation.
|
|
413
|
+
var tmp0_elvis_lhs_3 = $this.b1t_1.p1a_1;
|
|
414
|
+
var tmp0_orEmpty_0 = tmp0_elvis_lhs_3 == null ? operation.a1c_1 : tmp0_elvis_lhs_3;
|
|
396
415
|
var tmp0_elvis_lhs_4 = tmp0_orEmpty_0;
|
|
397
416
|
tmp$ret$34 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
398
417
|
var tmp2_map_1 = tmp$ret$34;
|
|
@@ -405,7 +424,7 @@
|
|
|
405
424
|
var tmp$ret$37;
|
|
406
425
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
407
426
|
var tmp_2 = _StatusCode___get_value__impl__we50mu(status);
|
|
408
|
-
var tmp0_safe_receiver = resolve_1(res, $this).
|
|
427
|
+
var tmp0_safe_receiver = resolve_1(res, $this).y1e_1;
|
|
409
428
|
var tmp_3;
|
|
410
429
|
if (tmp0_safe_receiver == null) {
|
|
411
430
|
tmp_3 = null;
|
|
@@ -421,7 +440,7 @@
|
|
|
421
440
|
tmp_4 = toReference(tmp0_safe_receiver, $this);
|
|
422
441
|
} else {
|
|
423
442
|
if (tmp0_subject instanceof SchemaObject) {
|
|
424
|
-
tmp_4 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().
|
|
443
|
+
tmp_4 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().z1s([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']));
|
|
425
444
|
} else {
|
|
426
445
|
noWhenBranchMatchedException();
|
|
427
446
|
}
|
|
@@ -457,13 +476,13 @@
|
|
|
457
476
|
return tmp$ret$48;
|
|
458
477
|
}
|
|
459
478
|
function parseRequestBody($this) {
|
|
460
|
-
return flatMapRequests($this.
|
|
479
|
+
return flatMapRequests($this.b1t_1, $this, OpenApiParser$parseRequestBody$lambda($this));
|
|
461
480
|
}
|
|
462
481
|
function parseResponseBody($this) {
|
|
463
|
-
return flatMapResponses($this.
|
|
482
|
+
return flatMapResponses($this.b1t_1, $this, OpenApiParser$parseResponseBody$lambda($this));
|
|
464
483
|
}
|
|
465
484
|
function parseDefinitions($this) {
|
|
466
|
-
var tmp0_safe_receiver = $this.
|
|
485
|
+
var tmp0_safe_receiver = $this.b1t_1.r1a_1;
|
|
467
486
|
var tmp;
|
|
468
487
|
if (tmp0_safe_receiver == null) {
|
|
469
488
|
tmp = null;
|
|
@@ -481,7 +500,7 @@
|
|
|
481
500
|
var element = tmp0_iterator.e();
|
|
482
501
|
var tmp$ret$1;
|
|
483
502
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
484
|
-
tmp$ret$1 = flatten(element.w(), $this, Common_getInstance().
|
|
503
|
+
tmp$ret$1 = flatten(element.w(), $this, Common_getInstance().z1s([element.v()]));
|
|
485
504
|
var list = tmp$ret$1;
|
|
486
505
|
addAll(tmp0_flatMapTo, list);
|
|
487
506
|
}
|
|
@@ -504,7 +523,7 @@
|
|
|
504
523
|
var item = tmp0_iterator_0.e();
|
|
505
524
|
var tmp$ret$4;
|
|
506
525
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
507
|
-
tmp$ret$4 = new Type(item.
|
|
526
|
+
tmp$ret$4 = new Type(item.d1t_1, new Shape(item.e1t_1));
|
|
508
527
|
tmp1_mapTo.a(tmp$ret$4);
|
|
509
528
|
}
|
|
510
529
|
tmp$ret$5 = tmp1_mapTo;
|
|
@@ -519,7 +538,7 @@
|
|
|
519
538
|
// Inline function 'kotlin.collections.map' call
|
|
520
539
|
var tmp$ret$0;
|
|
521
540
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
522
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
541
|
+
var tmp0_orEmpty = _this__u8e3s4.b1c_1;
|
|
523
542
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
524
543
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
525
544
|
var tmp2_map = tmp$ret$0;
|
|
@@ -554,7 +573,7 @@
|
|
|
554
573
|
// Inline function 'kotlin.collections.map' call
|
|
555
574
|
var tmp$ret$0;
|
|
556
575
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
557
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
576
|
+
var tmp0_orEmpty = _this__u8e3s4.q1b_1;
|
|
558
577
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
559
578
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
560
579
|
var tmp2_map = tmp$ret$0;
|
|
@@ -585,11 +604,11 @@
|
|
|
585
604
|
return tmp$ret$3;
|
|
586
605
|
}
|
|
587
606
|
function resolveParameterObject(_this__u8e3s4, $this) {
|
|
588
|
-
var tmp0_safe_receiver = $this.
|
|
607
|
+
var tmp0_safe_receiver = $this.b1t_1.s1a_1;
|
|
589
608
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
|
|
590
609
|
var tmp;
|
|
591
610
|
if (tmp1_elvis_lhs == null) {
|
|
592
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
611
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.k1d_1);
|
|
593
612
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
594
613
|
} else {
|
|
595
614
|
tmp = tmp1_elvis_lhs;
|
|
@@ -597,11 +616,11 @@
|
|
|
597
616
|
return tmp;
|
|
598
617
|
}
|
|
599
618
|
function resolveResponseObject(_this__u8e3s4, $this) {
|
|
600
|
-
var tmp0_safe_receiver = $this.
|
|
619
|
+
var tmp0_safe_receiver = $this.b1t_1.t1a_1;
|
|
601
620
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
|
|
602
621
|
var tmp;
|
|
603
622
|
if (tmp1_elvis_lhs == null) {
|
|
604
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
623
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.k1d_1);
|
|
605
624
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
606
625
|
} else {
|
|
607
626
|
tmp = tmp1_elvis_lhs;
|
|
@@ -609,7 +628,7 @@
|
|
|
609
628
|
return tmp;
|
|
610
629
|
}
|
|
611
630
|
function resolveSchemaObject(_this__u8e3s4, $this) {
|
|
612
|
-
var tmp0_safe_receiver = $this.
|
|
631
|
+
var tmp0_safe_receiver = $this.b1t_1.r1a_1;
|
|
613
632
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
|
|
614
633
|
var tmp;
|
|
615
634
|
if (tmp1_safe_receiver == null) {
|
|
@@ -627,7 +646,7 @@
|
|
|
627
646
|
var tmp2_elvis_lhs = tmp;
|
|
628
647
|
var tmp_0;
|
|
629
648
|
if (tmp2_elvis_lhs == null) {
|
|
630
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
649
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.k1d_1);
|
|
631
650
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
632
651
|
} else {
|
|
633
652
|
tmp_0 = tmp2_elvis_lhs;
|
|
@@ -695,13 +714,13 @@
|
|
|
695
714
|
return tmp;
|
|
696
715
|
}
|
|
697
716
|
function flatten(_this__u8e3s4, $this, name) {
|
|
698
|
-
var tmp0_subject = _this__u8e3s4.
|
|
717
|
+
var tmp0_subject = _this__u8e3s4.m1e_1;
|
|
699
718
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
700
719
|
var tmp;
|
|
701
720
|
switch (tmp0) {
|
|
702
721
|
case -1:
|
|
703
722
|
case 5:
|
|
704
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
723
|
+
var tmp1_safe_receiver = _this__u8e3s4.p1e_1;
|
|
705
724
|
var tmp_0;
|
|
706
725
|
if (tmp1_safe_receiver == null) {
|
|
707
726
|
tmp_0 = null;
|
|
@@ -730,9 +749,9 @@
|
|
|
730
749
|
var tmp0_subject_0 = value;
|
|
731
750
|
var tmp_1;
|
|
732
751
|
if (tmp0_subject_0 instanceof SchemaObject) {
|
|
733
|
-
var tmp1_subject = value.
|
|
752
|
+
var tmp1_subject = value.m1e_1;
|
|
734
753
|
var tmp0_0 = tmp1_subject == null ? -1 : tmp1_subject.q4_1;
|
|
735
|
-
tmp_1 = tmp0_0 === 4 ? emptyList() : flatten(value, $this, Common_getInstance().
|
|
754
|
+
tmp_1 = tmp0_0 === 4 ? emptyList() : flatten(value, $this, Common_getInstance().z1s([name, key]));
|
|
736
755
|
} else {
|
|
737
756
|
if (tmp0_subject_0 instanceof ReferenceObject) {
|
|
738
757
|
tmp_1 = emptyList();
|
|
@@ -751,10 +770,10 @@
|
|
|
751
770
|
|
|
752
771
|
var tmp2_elvis_lhs = tmp_0;
|
|
753
772
|
var fields = tmp2_elvis_lhs == null ? emptyList() : tmp2_elvis_lhs;
|
|
754
|
-
var tmp3_subject = _this__u8e3s4.
|
|
773
|
+
var tmp3_subject = _this__u8e3s4.q1e_1;
|
|
755
774
|
var tmp_2;
|
|
756
775
|
if (tmp3_subject == null) {
|
|
757
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
776
|
+
var tmp4_safe_receiver = _this__u8e3s4.p1e_1;
|
|
758
777
|
var tmp_3;
|
|
759
778
|
if (tmp4_safe_receiver == null) {
|
|
760
779
|
tmp_3 = null;
|
|
@@ -784,15 +803,15 @@
|
|
|
784
803
|
var tmp_4;
|
|
785
804
|
if (tmp0_subject_1 instanceof SchemaObject) {
|
|
786
805
|
var tmp_5 = new Identifier(key_0);
|
|
787
|
-
var tmp_6 = toReference_0(value_0, $this, Common_getInstance().
|
|
788
|
-
var tmp1_safe_receiver_0 = _this__u8e3s4.
|
|
806
|
+
var tmp_6 = toReference_0(value_0, $this, Common_getInstance().z1s([name, key_0]));
|
|
807
|
+
var tmp1_safe_receiver_0 = _this__u8e3s4.k1e_1;
|
|
789
808
|
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : contains(tmp1_safe_receiver_0, key_0);
|
|
790
809
|
tmp_4 = new Field(tmp_5, tmp_6, !(tmp2_elvis_lhs_0 == null ? false : tmp2_elvis_lhs_0));
|
|
791
810
|
} else {
|
|
792
811
|
if (tmp0_subject_1 instanceof ReferenceObject) {
|
|
793
812
|
var tmp_7 = new Identifier(key_0);
|
|
794
813
|
var tmp_8 = new Custom(getReference(value_0, $this), false);
|
|
795
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
814
|
+
var tmp3_safe_receiver = _this__u8e3s4.k1e_1;
|
|
796
815
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : contains(tmp3_safe_receiver, key_0);
|
|
797
816
|
tmp_4 = new Field(tmp_7, tmp_8, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
798
817
|
} else {
|
|
@@ -816,7 +835,7 @@
|
|
|
816
835
|
tmp = plus(schema, fields);
|
|
817
836
|
break;
|
|
818
837
|
case 4:
|
|
819
|
-
var tmp6_safe_receiver = _this__u8e3s4.
|
|
838
|
+
var tmp6_safe_receiver = _this__u8e3s4.n1e_1;
|
|
820
839
|
var tmp_9;
|
|
821
840
|
if (tmp6_safe_receiver == null) {
|
|
822
841
|
tmp_9 = null;
|
|
@@ -832,8 +851,8 @@
|
|
|
832
851
|
tmp_10 = emptyList();
|
|
833
852
|
} else {
|
|
834
853
|
if (tmp0_subject_2 instanceof SchemaObject) {
|
|
835
|
-
var tmp1_safe_receiver_1 = tmp6_safe_receiver.
|
|
836
|
-
tmp_10 = tmp1_safe_receiver_1 == null ? null : flatten_0(tmp1_safe_receiver_1, $this, Common_getInstance().
|
|
854
|
+
var tmp1_safe_receiver_1 = tmp6_safe_receiver.n1e_1;
|
|
855
|
+
tmp_10 = tmp1_safe_receiver_1 == null ? null : flatten_0(tmp1_safe_receiver_1, $this, Common_getInstance().z1s([name, 'array']));
|
|
837
856
|
} else {
|
|
838
857
|
noWhenBranchMatchedException();
|
|
839
858
|
}
|
|
@@ -867,15 +886,15 @@
|
|
|
867
886
|
return tmp;
|
|
868
887
|
}
|
|
869
888
|
function SimpleSchema(name, properties) {
|
|
870
|
-
this.
|
|
871
|
-
this.
|
|
889
|
+
this.d1t_1 = name;
|
|
890
|
+
this.e1t_1 = properties;
|
|
872
891
|
}
|
|
873
892
|
protoOf(SimpleSchema).toString = function () {
|
|
874
|
-
return 'SimpleSchema(name=' + this.
|
|
893
|
+
return 'SimpleSchema(name=' + this.d1t_1 + ', properties=' + this.e1t_1 + ')';
|
|
875
894
|
};
|
|
876
895
|
protoOf(SimpleSchema).hashCode = function () {
|
|
877
|
-
var result = getStringHashCode(this.
|
|
878
|
-
result = imul(result, 31) + hashCode(this.
|
|
896
|
+
var result = getStringHashCode(this.d1t_1);
|
|
897
|
+
result = imul(result, 31) + hashCode(this.e1t_1) | 0;
|
|
879
898
|
return result;
|
|
880
899
|
};
|
|
881
900
|
protoOf(SimpleSchema).equals = function (other) {
|
|
@@ -884,9 +903,9 @@
|
|
|
884
903
|
if (!(other instanceof SimpleSchema))
|
|
885
904
|
return false;
|
|
886
905
|
var tmp0_other_with_cast = other instanceof SimpleSchema ? other : THROW_CCE();
|
|
887
|
-
if (!(this.
|
|
906
|
+
if (!(this.d1t_1 === tmp0_other_with_cast.d1t_1))
|
|
888
907
|
return false;
|
|
889
|
-
if (!equals(this.
|
|
908
|
+
if (!equals(this.e1t_1, tmp0_other_with_cast.e1t_1))
|
|
890
909
|
return false;
|
|
891
910
|
return true;
|
|
892
911
|
};
|
|
@@ -899,32 +918,32 @@
|
|
|
899
918
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
|
|
900
919
|
var referencingObject = tmp0_let.i3();
|
|
901
920
|
var schema = tmp0_let.j3();
|
|
902
|
-
var additionalProperties = schema.
|
|
921
|
+
var additionalProperties = schema.q1e_1;
|
|
903
922
|
var tmp;
|
|
904
923
|
if (additionalProperties instanceof BooleanObject) {
|
|
905
924
|
throw new NotImplementedError('An operation is not implemented: additionalProperties = true not implemented');
|
|
906
925
|
} else {
|
|
907
926
|
if (additionalProperties instanceof ReferenceObject) {
|
|
908
|
-
tmp = new Custom(Common_getInstance().
|
|
927
|
+
tmp = new Custom(Common_getInstance().z1s([getReference(additionalProperties, $this)]), false, true);
|
|
909
928
|
} else {
|
|
910
929
|
if (additionalProperties instanceof SchemaObject) {
|
|
911
|
-
tmp = new Custom(Common_getInstance().
|
|
930
|
+
tmp = new Custom(Common_getInstance().z1s([getReference(referencingObject, $this)]), false, true);
|
|
912
931
|
} else {
|
|
913
932
|
if (additionalProperties == null) {
|
|
914
|
-
var tmp0_subject = schema.
|
|
933
|
+
var tmp0_subject = schema.m1e_1;
|
|
915
934
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
916
935
|
var tmp_0;
|
|
917
936
|
if (tmp0 === 4) {
|
|
918
|
-
var items = schema.
|
|
937
|
+
var items = schema.n1e_1;
|
|
919
938
|
var tmp_1;
|
|
920
939
|
if (items instanceof ReferenceObject) {
|
|
921
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
940
|
+
tmp_1 = new Custom(Common_getInstance().z1s([getReference(items, $this)]), true);
|
|
922
941
|
} else {
|
|
923
942
|
if (items instanceof SchemaObject) {
|
|
924
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
943
|
+
tmp_1 = new Custom(Common_getInstance().z1s([getReference(referencingObject, $this), 'Array']), true);
|
|
925
944
|
} else {
|
|
926
945
|
if (items == null) {
|
|
927
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.
|
|
946
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.k1d_1);
|
|
928
947
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
929
948
|
} else {
|
|
930
949
|
noWhenBranchMatchedException();
|
|
@@ -933,7 +952,7 @@
|
|
|
933
952
|
}
|
|
934
953
|
tmp_0 = tmp_1;
|
|
935
954
|
} else {
|
|
936
|
-
tmp_0 = new Custom(Common_getInstance().
|
|
955
|
+
tmp_0 = new Custom(Common_getInstance().z1s([getReference(referencingObject, $this)]), false);
|
|
937
956
|
}
|
|
938
957
|
tmp = tmp_0;
|
|
939
958
|
} else {
|
|
@@ -947,7 +966,7 @@
|
|
|
947
966
|
return tmp$ret$1;
|
|
948
967
|
}
|
|
949
968
|
function toReference_0(_this__u8e3s4, $this, name) {
|
|
950
|
-
var type = _this__u8e3s4.
|
|
969
|
+
var type = _this__u8e3s4.m1e_1;
|
|
951
970
|
var tmp0 = type == null ? -1 : type.q4_1;
|
|
952
971
|
var tmp;
|
|
953
972
|
switch (tmp0) {
|
|
@@ -959,28 +978,28 @@
|
|
|
959
978
|
break;
|
|
960
979
|
case -1:
|
|
961
980
|
case 5:
|
|
962
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
981
|
+
var tmp0_safe_receiver = _this__u8e3s4.q1e_1;
|
|
963
982
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_0(tmp0_safe_receiver, $this);
|
|
964
|
-
var t = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
983
|
+
var t = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m1e_1;
|
|
965
984
|
var tmp0_0 = t == null ? -1 : t.q4_1;
|
|
966
985
|
switch (tmp0_0) {
|
|
967
986
|
case 0:
|
|
968
987
|
case 2:
|
|
969
988
|
case 1:
|
|
970
989
|
case 3:
|
|
971
|
-
tmp = new Primitive(toPrimitive(t, $this), false, !(_this__u8e3s4.
|
|
990
|
+
tmp = new Primitive(toPrimitive(t, $this), false, !(_this__u8e3s4.q1e_1 == null));
|
|
972
991
|
break;
|
|
973
992
|
default:
|
|
974
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
993
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.q1e_1 == null));
|
|
975
994
|
break;
|
|
976
995
|
}
|
|
977
996
|
|
|
978
997
|
break;
|
|
979
998
|
case 4:
|
|
980
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
999
|
+
var tmp2_safe_receiver = _this__u8e3s4.n1e_1;
|
|
981
1000
|
var resolve_1 = tmp2_safe_receiver == null ? null : resolve(tmp2_safe_receiver, $this);
|
|
982
1001
|
var tmp3_safe_receiver = resolve_1;
|
|
983
|
-
var t_0 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
1002
|
+
var t_0 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.m1e_1;
|
|
984
1003
|
var tmp0_1 = t_0 == null ? -1 : t_0.q4_1;
|
|
985
1004
|
var tmp_0;
|
|
986
1005
|
switch (tmp0_1) {
|
|
@@ -991,10 +1010,10 @@
|
|
|
991
1010
|
tmp_0 = new Primitive(toPrimitive(t_0, $this), true);
|
|
992
1011
|
break;
|
|
993
1012
|
default:
|
|
994
|
-
var it = _this__u8e3s4.
|
|
1013
|
+
var it = _this__u8e3s4.n1e_1;
|
|
995
1014
|
var tmp_1;
|
|
996
1015
|
if (it instanceof ReferenceObject) {
|
|
997
|
-
tmp_1 = toReference(it, $this).
|
|
1016
|
+
tmp_1 = toReference(it, $this).fl(VOID, true);
|
|
998
1017
|
} else {
|
|
999
1018
|
if (it instanceof SchemaObject) {
|
|
1000
1019
|
tmp_1 = toReference_0(it, $this, name);
|
|
@@ -1042,28 +1061,28 @@
|
|
|
1042
1061
|
var tmp;
|
|
1043
1062
|
switch (tmp0) {
|
|
1044
1063
|
case 0:
|
|
1045
|
-
tmp = _this__u8e3s4.
|
|
1064
|
+
tmp = _this__u8e3s4.h1b_1;
|
|
1046
1065
|
break;
|
|
1047
1066
|
case 1:
|
|
1048
|
-
tmp = _this__u8e3s4.
|
|
1067
|
+
tmp = _this__u8e3s4.j1b_1;
|
|
1049
1068
|
break;
|
|
1050
1069
|
case 2:
|
|
1051
|
-
tmp = _this__u8e3s4.
|
|
1070
|
+
tmp = _this__u8e3s4.i1b_1;
|
|
1052
1071
|
break;
|
|
1053
1072
|
case 3:
|
|
1054
|
-
tmp = _this__u8e3s4.
|
|
1073
|
+
tmp = _this__u8e3s4.k1b_1;
|
|
1055
1074
|
break;
|
|
1056
1075
|
case 4:
|
|
1057
|
-
tmp = _this__u8e3s4.
|
|
1076
|
+
tmp = _this__u8e3s4.l1b_1;
|
|
1058
1077
|
break;
|
|
1059
1078
|
case 5:
|
|
1060
|
-
tmp = _this__u8e3s4.
|
|
1079
|
+
tmp = _this__u8e3s4.m1b_1;
|
|
1061
1080
|
break;
|
|
1062
1081
|
case 6:
|
|
1063
|
-
tmp = _this__u8e3s4.
|
|
1082
|
+
tmp = _this__u8e3s4.n1b_1;
|
|
1064
1083
|
break;
|
|
1065
1084
|
case 7:
|
|
1066
|
-
tmp = _this__u8e3s4.
|
|
1085
|
+
tmp = _this__u8e3s4.o1b_1;
|
|
1067
1086
|
break;
|
|
1068
1087
|
default:
|
|
1069
1088
|
noWhenBranchMatchedException();
|
|
@@ -1077,7 +1096,7 @@
|
|
|
1077
1096
|
return filterNotNullValues(tmp$ret$2);
|
|
1078
1097
|
}
|
|
1079
1098
|
function getReference(_this__u8e3s4, $this) {
|
|
1080
|
-
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
1099
|
+
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.k1d_1), ['/']).h(2);
|
|
1081
1100
|
}
|
|
1082
1101
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
1083
1102
|
var tmp0_subject = _this__u8e3s4;
|
|
@@ -1110,7 +1129,7 @@
|
|
|
1110
1129
|
// Inline function 'kotlin.contracts.contract' call
|
|
1111
1130
|
var tmp$ret$4;
|
|
1112
1131
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1113
|
-
var type = tmp0_let.
|
|
1132
|
+
var type = tmp0_let.p1c_1;
|
|
1114
1133
|
var tmp0 = type == null ? -1 : type.q4_1;
|
|
1115
1134
|
var tmp;
|
|
1116
1135
|
switch (tmp0) {
|
|
@@ -1130,9 +1149,9 @@
|
|
|
1130
1149
|
tmp = tmp$ret$1;
|
|
1131
1150
|
break;
|
|
1132
1151
|
case 4:
|
|
1133
|
-
var tmp0_safe_receiver = tmp0_let.
|
|
1152
|
+
var tmp0_safe_receiver = tmp0_let.q1c_1;
|
|
1134
1153
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve(tmp0_safe_receiver, $this);
|
|
1135
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1154
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m1e_1;
|
|
1136
1155
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, $this);
|
|
1137
1156
|
var tmp_0;
|
|
1138
1157
|
if (tmp3_safe_receiver == null) {
|
|
@@ -1174,8 +1193,8 @@
|
|
|
1174
1193
|
// Inline function 'kotlin.contracts.contract' call
|
|
1175
1194
|
var tmp$ret$6;
|
|
1176
1195
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1177
|
-
var tmp_2 = new Identifier(_this__u8e3s4.
|
|
1178
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1196
|
+
var tmp_2 = new Identifier(_this__u8e3s4.k1c_1);
|
|
1197
|
+
var tmp0_elvis_lhs = _this__u8e3s4.n1c_1;
|
|
1179
1198
|
tmp$ret$6 = new Field(tmp_2, tmp1_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
1180
1199
|
tmp$ret$7 = tmp$ret$6;
|
|
1181
1200
|
return tmp$ret$7;
|
|
@@ -1228,7 +1247,7 @@
|
|
|
1228
1247
|
var element = tmp0_iterator_0.e();
|
|
1229
1248
|
var tmp$ret$3;
|
|
1230
1249
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1231
|
-
tmp$ret$3 = element.
|
|
1250
|
+
tmp$ret$3 = element.k1c_1 === param;
|
|
1232
1251
|
if (tmp$ret$3) {
|
|
1233
1252
|
tmp$ret$4 = element;
|
|
1234
1253
|
break $l$block;
|
|
@@ -1247,7 +1266,7 @@
|
|
|
1247
1266
|
// Inline function 'kotlin.contracts.contract' call
|
|
1248
1267
|
var tmp$ret$6;
|
|
1249
1268
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1250
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver.
|
|
1269
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver.p1c_1;
|
|
1251
1270
|
tmp$ret$6 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, $this);
|
|
1252
1271
|
tmp$ret$7 = tmp$ret$6;
|
|
1253
1272
|
tmp_2 = tmp$ret$7;
|
|
@@ -1287,7 +1306,7 @@
|
|
|
1287
1306
|
}
|
|
1288
1307
|
function toName(_this__u8e3s4, $this, segments, method) {
|
|
1289
1308
|
var tmp0_safe_receiver = _this__u8e3s4;
|
|
1290
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1309
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y1b_1;
|
|
1291
1310
|
var tmp;
|
|
1292
1311
|
if (tmp1_safe_receiver == null) {
|
|
1293
1312
|
tmp = null;
|
|
@@ -1297,7 +1316,7 @@
|
|
|
1297
1316
|
// Inline function 'kotlin.contracts.contract' call
|
|
1298
1317
|
var tmp$ret$0;
|
|
1299
1318
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1300
|
-
tmp$ret$0 = Common_getInstance().
|
|
1319
|
+
tmp$ret$0 = Common_getInstance().z1s([tmp1_safe_receiver]);
|
|
1301
1320
|
tmp$ret$1 = tmp$ret$0;
|
|
1302
1321
|
tmp = tmp$ret$1;
|
|
1303
1322
|
}
|
|
@@ -1306,7 +1325,7 @@
|
|
|
1306
1325
|
if (tmp2_elvis_lhs == null) {
|
|
1307
1326
|
var tmp$ret$3;
|
|
1308
1327
|
// Inline function 'kotlin.let' call
|
|
1309
|
-
var tmp0_let =
|
|
1328
|
+
var tmp0_let = joinToString(segments, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda);
|
|
1310
1329
|
// Inline function 'kotlin.contracts.contract' call
|
|
1311
1330
|
var tmp$ret$2;
|
|
1312
1331
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
@@ -1319,21 +1338,21 @@
|
|
|
1319
1338
|
return tmp_0;
|
|
1320
1339
|
}
|
|
1321
1340
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
1322
|
-
this.
|
|
1323
|
-
this.
|
|
1324
|
-
this.
|
|
1325
|
-
this.
|
|
1326
|
-
this.
|
|
1341
|
+
this.f1t_1 = path;
|
|
1342
|
+
this.g1t_1 = pathItem;
|
|
1343
|
+
this.h1t_1 = method;
|
|
1344
|
+
this.i1t_1 = operation;
|
|
1345
|
+
this.j1t_1 = type;
|
|
1327
1346
|
}
|
|
1328
1347
|
protoOf(FlattenRequest).toString = function () {
|
|
1329
|
-
return 'FlattenRequest(path=' + new Path(this.
|
|
1348
|
+
return 'FlattenRequest(path=' + new Path(this.f1t_1) + ', pathItem=' + this.g1t_1 + ', method=' + this.h1t_1 + ', operation=' + this.i1t_1 + ', type=' + this.j1t_1 + ')';
|
|
1330
1349
|
};
|
|
1331
1350
|
protoOf(FlattenRequest).hashCode = function () {
|
|
1332
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1333
|
-
result = imul(result, 31) + this.e1t_1.hashCode() | 0;
|
|
1334
|
-
result = imul(result, 31) + this.f1t_1.hashCode() | 0;
|
|
1351
|
+
var result = Path__hashCode_impl_go73kd(this.f1t_1);
|
|
1335
1352
|
result = imul(result, 31) + this.g1t_1.hashCode() | 0;
|
|
1336
|
-
result = imul(result, 31) +
|
|
1353
|
+
result = imul(result, 31) + this.h1t_1.hashCode() | 0;
|
|
1354
|
+
result = imul(result, 31) + this.i1t_1.hashCode() | 0;
|
|
1355
|
+
result = imul(result, 31) + getStringHashCode(this.j1t_1) | 0;
|
|
1337
1356
|
return result;
|
|
1338
1357
|
};
|
|
1339
1358
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -1342,15 +1361,15 @@
|
|
|
1342
1361
|
if (!(other instanceof FlattenRequest))
|
|
1343
1362
|
return false;
|
|
1344
1363
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
1345
|
-
if (!(this.
|
|
1364
|
+
if (!(this.f1t_1 === tmp0_other_with_cast.f1t_1))
|
|
1346
1365
|
return false;
|
|
1347
|
-
if (!this.
|
|
1366
|
+
if (!this.g1t_1.equals(tmp0_other_with_cast.g1t_1))
|
|
1348
1367
|
return false;
|
|
1349
|
-
if (!this.
|
|
1368
|
+
if (!this.h1t_1.equals(tmp0_other_with_cast.h1t_1))
|
|
1350
1369
|
return false;
|
|
1351
|
-
if (!this.
|
|
1370
|
+
if (!this.i1t_1.equals(tmp0_other_with_cast.i1t_1))
|
|
1352
1371
|
return false;
|
|
1353
|
-
if (!(this.
|
|
1372
|
+
if (!(this.j1t_1 === tmp0_other_with_cast.j1t_1))
|
|
1354
1373
|
return false;
|
|
1355
1374
|
return true;
|
|
1356
1375
|
};
|
|
@@ -1359,7 +1378,7 @@
|
|
|
1359
1378
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1360
1379
|
var tmp$ret$15;
|
|
1361
1380
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1362
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
1381
|
+
var tmp1_flatMap = _this__u8e3s4.q1a_1;
|
|
1363
1382
|
var tmp$ret$14;
|
|
1364
1383
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1365
1384
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -1373,7 +1392,7 @@
|
|
|
1373
1392
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
1374
1393
|
var tmp$ret$1;
|
|
1375
1394
|
// Inline function 'kotlin.collections.component1' call
|
|
1376
|
-
tmp$ret$1 = element.v().
|
|
1395
|
+
tmp$ret$1 = element.v().b1b_1;
|
|
1377
1396
|
var path = tmp$ret$1;
|
|
1378
1397
|
var tmp$ret$2;
|
|
1379
1398
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1405,8 +1424,8 @@
|
|
|
1405
1424
|
// Inline function 'kotlin.collections.map' call
|
|
1406
1425
|
var tmp$ret$6;
|
|
1407
1426
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1408
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1409
|
-
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.
|
|
1427
|
+
var tmp0_elvis_lhs = _this__u8e3s4.o1a_1;
|
|
1428
|
+
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.z1b_1 : tmp0_elvis_lhs;
|
|
1410
1429
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1411
1430
|
tmp$ret$6 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1412
1431
|
var tmp2_map = tmp$ret$6;
|
|
@@ -1453,25 +1472,25 @@
|
|
|
1453
1472
|
return tmp$ret$18;
|
|
1454
1473
|
}
|
|
1455
1474
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
1456
|
-
this.
|
|
1457
|
-
this.
|
|
1458
|
-
this.
|
|
1459
|
-
this.
|
|
1460
|
-
this.
|
|
1461
|
-
this.
|
|
1462
|
-
this.
|
|
1475
|
+
this.k1t_1 = path;
|
|
1476
|
+
this.l1t_1 = pathItem;
|
|
1477
|
+
this.m1t_1 = method;
|
|
1478
|
+
this.n1t_1 = operation;
|
|
1479
|
+
this.o1t_1 = statusCode;
|
|
1480
|
+
this.p1t_1 = response;
|
|
1481
|
+
this.q1t_1 = type;
|
|
1463
1482
|
}
|
|
1464
1483
|
protoOf(FlattenResponse).toString = function () {
|
|
1465
|
-
return 'FlattenResponse(path=' + new Path(this.
|
|
1484
|
+
return 'FlattenResponse(path=' + new Path(this.k1t_1) + ', pathItem=' + this.l1t_1 + ', method=' + this.m1t_1 + ', operation=' + this.n1t_1 + ', statusCode=' + new StatusCode(this.o1t_1) + ', response=' + this.p1t_1 + ', type=' + this.q1t_1 + ')';
|
|
1466
1485
|
};
|
|
1467
1486
|
protoOf(FlattenResponse).hashCode = function () {
|
|
1468
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1469
|
-
result = imul(result, 31) + this.j1t_1.hashCode() | 0;
|
|
1470
|
-
result = imul(result, 31) + this.k1t_1.hashCode() | 0;
|
|
1487
|
+
var result = Path__hashCode_impl_go73kd(this.k1t_1);
|
|
1471
1488
|
result = imul(result, 31) + this.l1t_1.hashCode() | 0;
|
|
1472
|
-
result = imul(result, 31) +
|
|
1473
|
-
result = imul(result, 31) +
|
|
1474
|
-
result = imul(result, 31) +
|
|
1489
|
+
result = imul(result, 31) + this.m1t_1.hashCode() | 0;
|
|
1490
|
+
result = imul(result, 31) + this.n1t_1.hashCode() | 0;
|
|
1491
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.o1t_1) | 0;
|
|
1492
|
+
result = imul(result, 31) + hashCode(this.p1t_1) | 0;
|
|
1493
|
+
result = imul(result, 31) + getStringHashCode(this.q1t_1) | 0;
|
|
1475
1494
|
return result;
|
|
1476
1495
|
};
|
|
1477
1496
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -1480,20 +1499,20 @@
|
|
|
1480
1499
|
if (!(other instanceof FlattenResponse))
|
|
1481
1500
|
return false;
|
|
1482
1501
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
1483
|
-
if (!(this.
|
|
1484
|
-
return false;
|
|
1485
|
-
if (!this.j1t_1.equals(tmp0_other_with_cast.j1t_1))
|
|
1486
|
-
return false;
|
|
1487
|
-
if (!this.k1t_1.equals(tmp0_other_with_cast.k1t_1))
|
|
1502
|
+
if (!(this.k1t_1 === tmp0_other_with_cast.k1t_1))
|
|
1488
1503
|
return false;
|
|
1489
1504
|
if (!this.l1t_1.equals(tmp0_other_with_cast.l1t_1))
|
|
1490
1505
|
return false;
|
|
1491
|
-
if (!
|
|
1506
|
+
if (!this.m1t_1.equals(tmp0_other_with_cast.m1t_1))
|
|
1492
1507
|
return false;
|
|
1493
|
-
if (!
|
|
1508
|
+
if (!this.n1t_1.equals(tmp0_other_with_cast.n1t_1))
|
|
1494
1509
|
return false;
|
|
1495
1510
|
if (!(this.o1t_1 === tmp0_other_with_cast.o1t_1))
|
|
1496
1511
|
return false;
|
|
1512
|
+
if (!equals(this.p1t_1, tmp0_other_with_cast.p1t_1))
|
|
1513
|
+
return false;
|
|
1514
|
+
if (!(this.q1t_1 === tmp0_other_with_cast.q1t_1))
|
|
1515
|
+
return false;
|
|
1497
1516
|
return true;
|
|
1498
1517
|
};
|
|
1499
1518
|
function flatMapResponses(_this__u8e3s4, $this, f) {
|
|
@@ -1501,7 +1520,7 @@
|
|
|
1501
1520
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1502
1521
|
var tmp$ret$22;
|
|
1503
1522
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1504
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
1523
|
+
var tmp1_flatMap = _this__u8e3s4.q1a_1;
|
|
1505
1524
|
var tmp$ret$21;
|
|
1506
1525
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1507
1526
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -1515,7 +1534,7 @@
|
|
|
1515
1534
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
1516
1535
|
var tmp$ret$1;
|
|
1517
1536
|
// Inline function 'kotlin.collections.component1' call
|
|
1518
|
-
tmp$ret$1 = element.v().
|
|
1537
|
+
tmp$ret$1 = element.v().b1b_1;
|
|
1519
1538
|
var path = tmp$ret$1;
|
|
1520
1539
|
var tmp$ret$2;
|
|
1521
1540
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1547,7 +1566,7 @@
|
|
|
1547
1566
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1548
1567
|
var tmp$ret$6;
|
|
1549
1568
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1550
|
-
var tmp0_orEmpty = operation.
|
|
1569
|
+
var tmp0_orEmpty = operation.c1c_1;
|
|
1551
1570
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1552
1571
|
tmp$ret$6 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1553
1572
|
var tmp2_flatMap = tmp$ret$6;
|
|
@@ -1564,7 +1583,7 @@
|
|
|
1564
1583
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
1565
1584
|
var tmp$ret$8;
|
|
1566
1585
|
// Inline function 'kotlin.collections.component1' call
|
|
1567
|
-
tmp$ret$8 = element_1.v().
|
|
1586
|
+
tmp$ret$8 = element_1.v().u1e_1;
|
|
1568
1587
|
var statusCode = tmp$ret$8;
|
|
1569
1588
|
var tmp$ret$9;
|
|
1570
1589
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1574,8 +1593,8 @@
|
|
|
1574
1593
|
// Inline function 'kotlin.collections.map' call
|
|
1575
1594
|
var tmp$ret$10;
|
|
1576
1595
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1577
|
-
var tmp0_elvis_lhs_0 = _this__u8e3s4.
|
|
1578
|
-
var tmp0_orEmpty_0 = tmp0_elvis_lhs_0 == null ? operation.
|
|
1596
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.p1a_1;
|
|
1597
|
+
var tmp0_orEmpty_0 = tmp0_elvis_lhs_0 == null ? operation.a1c_1 : tmp0_elvis_lhs_0;
|
|
1579
1598
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
1580
1599
|
tmp$ret$10 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1581
1600
|
var tmp2_map = tmp$ret$10;
|
|
@@ -1629,7 +1648,7 @@
|
|
|
1629
1648
|
}
|
|
1630
1649
|
function OpenApiParser$parseRequestBody$lambda(this$0) {
|
|
1631
1650
|
return function (req) {
|
|
1632
|
-
var tmp0_safe_receiver = req.
|
|
1651
|
+
var tmp0_safe_receiver = req.i1t_1.b1c_1;
|
|
1633
1652
|
var tmp;
|
|
1634
1653
|
if (tmp0_safe_receiver == null) {
|
|
1635
1654
|
tmp = null;
|
|
@@ -1666,7 +1685,7 @@
|
|
|
1666
1685
|
var element = tmp0_iterator_0.e();
|
|
1667
1686
|
var tmp$ret$3;
|
|
1668
1687
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1669
|
-
tmp$ret$3 = element.
|
|
1688
|
+
tmp$ret$3 = element.l1c_1.equals(ParameterLocation_BODY_getInstance());
|
|
1670
1689
|
if (tmp$ret$3) {
|
|
1671
1690
|
tmp1_filterTo.a(element);
|
|
1672
1691
|
}
|
|
@@ -1690,13 +1709,13 @@
|
|
|
1690
1709
|
var element_0 = tmp0_iterator_1.e();
|
|
1691
1710
|
var tmp$ret$9;
|
|
1692
1711
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1693
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1694
|
-
var segments = toSegments(req.
|
|
1695
|
-
var name = toName(req.
|
|
1696
|
-
var schema = element_0.
|
|
1712
|
+
var parameters = plus(resolveParameters_0(req.g1t_1, this$0), resolveParameters(req.i1t_1, this$0));
|
|
1713
|
+
var segments = toSegments(req.f1t_1, this$0, parameters);
|
|
1714
|
+
var name = toName(req.i1t_1, this$0, segments, req.h1t_1);
|
|
1715
|
+
var schema = element_0.o1c_1;
|
|
1697
1716
|
var tmp_2;
|
|
1698
1717
|
if (schema instanceof SchemaObject) {
|
|
1699
|
-
var tmp0_subject = schema.
|
|
1718
|
+
var tmp0_subject = schema.m1e_1;
|
|
1700
1719
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
1701
1720
|
var tmp_3;
|
|
1702
1721
|
switch (tmp0) {
|
|
@@ -1704,7 +1723,7 @@
|
|
|
1704
1723
|
case 5:
|
|
1705
1724
|
var tmp$ret$8;
|
|
1706
1725
|
// Inline function 'kotlin.collections.map' call
|
|
1707
|
-
var tmp1_map = flatten(schema, this$0, Common_getInstance().
|
|
1726
|
+
var tmp1_map = flatten(schema, this$0, Common_getInstance().z1s([name, 'RequestBody']));
|
|
1708
1727
|
var tmp$ret$7;
|
|
1709
1728
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1710
1729
|
var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1713,7 +1732,7 @@
|
|
|
1713
1732
|
var item_0 = tmp0_iterator_2.e();
|
|
1714
1733
|
var tmp$ret$6;
|
|
1715
1734
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
1716
|
-
tmp$ret$6 = new Type(item_0.
|
|
1735
|
+
tmp$ret$6 = new Type(item_0.d1t_1, new Shape(item_0.e1t_1));
|
|
1717
1736
|
tmp0_mapTo_0.a(tmp$ret$6);
|
|
1718
1737
|
}
|
|
1719
1738
|
tmp$ret$7 = tmp0_mapTo_0;
|
|
@@ -1751,14 +1770,14 @@
|
|
|
1751
1770
|
}
|
|
1752
1771
|
function OpenApiParser$parseResponseBody$lambda(this$0) {
|
|
1753
1772
|
return function (res) {
|
|
1754
|
-
var response = resolve_1(res.
|
|
1755
|
-
var parameters = plus(resolveParameters_0(res.
|
|
1756
|
-
var segments = toSegments(res.
|
|
1757
|
-
var name = toName(res.
|
|
1758
|
-
var schema = response.
|
|
1773
|
+
var response = resolve_1(res.p1t_1, this$0);
|
|
1774
|
+
var parameters = plus(resolveParameters_0(res.l1t_1, this$0), resolveParameters(res.n1t_1, this$0));
|
|
1775
|
+
var segments = toSegments(res.k1t_1, this$0, parameters);
|
|
1776
|
+
var name = toName(res.n1t_1, this$0, segments, res.m1t_1);
|
|
1777
|
+
var schema = response.y1e_1;
|
|
1759
1778
|
var tmp;
|
|
1760
1779
|
if (schema instanceof SchemaObject) {
|
|
1761
|
-
var tmp0_subject = schema.
|
|
1780
|
+
var tmp0_subject = schema.m1e_1;
|
|
1762
1781
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
1763
1782
|
var tmp_0;
|
|
1764
1783
|
switch (tmp0) {
|
|
@@ -1766,10 +1785,10 @@
|
|
|
1766
1785
|
case 5:
|
|
1767
1786
|
var tmp$ret$2;
|
|
1768
1787
|
// Inline function 'kotlin.collections.map' call
|
|
1769
|
-
var tmp1_safe_receiver = schema.
|
|
1788
|
+
var tmp1_safe_receiver = schema.q1e_1;
|
|
1770
1789
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_0(tmp1_safe_receiver, this$0);
|
|
1771
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : flatten(tmp2_safe_receiver, this$0, Common_getInstance().
|
|
1772
|
-
var tmp1_map = tmp3_elvis_lhs == null ? flatten(schema, this$0, Common_getInstance().
|
|
1790
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : flatten(tmp2_safe_receiver, this$0, Common_getInstance().z1s([name, _StatusCode___get_value__impl__we50mu(res.o1t_1), 'ResponseBody']));
|
|
1791
|
+
var tmp1_map = tmp3_elvis_lhs == null ? flatten(schema, this$0, Common_getInstance().z1s([name, _StatusCode___get_value__impl__we50mu(res.o1t_1), 'ResponseBody'])) : tmp3_elvis_lhs;
|
|
1773
1792
|
var tmp$ret$1;
|
|
1774
1793
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1775
1794
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1778,7 +1797,7 @@
|
|
|
1778
1797
|
var item = tmp0_iterator.e();
|
|
1779
1798
|
var tmp$ret$0;
|
|
1780
1799
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
1781
|
-
tmp$ret$0 = new Type(item.
|
|
1800
|
+
tmp$ret$0 = new Type(item.d1t_1, new Shape(item.e1t_1));
|
|
1782
1801
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1783
1802
|
}
|
|
1784
1803
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -1809,10 +1828,10 @@
|
|
|
1809
1828
|
var tmp0_subject = it;
|
|
1810
1829
|
var tmp;
|
|
1811
1830
|
if (tmp0_subject instanceof Literal) {
|
|
1812
|
-
tmp = Common_getInstance().
|
|
1831
|
+
tmp = Common_getInstance().z1s([it.rj_1]);
|
|
1813
1832
|
} else {
|
|
1814
1833
|
if (tmp0_subject instanceof Param) {
|
|
1815
|
-
tmp = Common_getInstance().
|
|
1834
|
+
tmp = Common_getInstance().z1s([it.si_1.dj_1]);
|
|
1816
1835
|
} else {
|
|
1817
1836
|
noWhenBranchMatchedException();
|
|
1818
1837
|
}
|
|
@@ -1821,9 +1840,9 @@
|
|
|
1821
1840
|
}
|
|
1822
1841
|
function OpenApiParser(openApi) {
|
|
1823
1842
|
Companion_getInstance_0();
|
|
1824
|
-
this.
|
|
1843
|
+
this.b1t_1 = openApi;
|
|
1825
1844
|
}
|
|
1826
|
-
protoOf(OpenApiParser).
|
|
1845
|
+
protoOf(OpenApiParser).c1t = function () {
|
|
1827
1846
|
return plus(plus(plus(parseEndpoints(this), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
|
|
1828
1847
|
};
|
|
1829
1848
|
function filterNotNullValues(_this__u8e3s4) {
|
|
@@ -1883,10 +1902,10 @@
|
|
|
1883
1902
|
function Companion_0() {
|
|
1884
1903
|
Companion_instance_0 = this;
|
|
1885
1904
|
}
|
|
1886
|
-
protoOf(Companion_0).
|
|
1905
|
+
protoOf(Companion_0).a1t = function (json) {
|
|
1887
1906
|
var tmp$ret$1;
|
|
1888
1907
|
// Inline function 'kotlin.let' call
|
|
1889
|
-
var tmp0_let = Default_getInstance_0().
|
|
1908
|
+
var tmp0_let = Default_getInstance_0().g1a(json);
|
|
1890
1909
|
// Inline function 'kotlin.contracts.contract' call
|
|
1891
1910
|
var tmp$ret$0;
|
|
1892
1911
|
// Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
|
|
@@ -1906,7 +1925,7 @@
|
|
|
1906
1925
|
function parseEndpoint($this) {
|
|
1907
1926
|
var tmp$ret$51;
|
|
1908
1927
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1909
|
-
var tmp1_flatMap = $this.
|
|
1928
|
+
var tmp1_flatMap = $this.r1t_1.g1j_1;
|
|
1910
1929
|
var tmp$ret$50;
|
|
1911
1930
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1912
1931
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -1920,7 +1939,7 @@
|
|
|
1920
1939
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>' call
|
|
1921
1940
|
var tmp$ret$1;
|
|
1922
1941
|
// Inline function 'kotlin.collections.component1' call
|
|
1923
|
-
tmp$ret$1 = element.v().
|
|
1942
|
+
tmp$ret$1 = element.v().o1j_1;
|
|
1924
1943
|
var key = tmp$ret$1;
|
|
1925
1944
|
var tmp$ret$2;
|
|
1926
1945
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1969,7 +1988,7 @@
|
|
|
1969
1988
|
var element_0 = tmp0_iterator_1.e();
|
|
1970
1989
|
var tmp$ret$7;
|
|
1971
1990
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1972
|
-
tmp$ret$7 = element_0.
|
|
1991
|
+
tmp$ret$7 = element_0.i1l_1.equals(ParameterLocation_QUERY_getInstance_0());
|
|
1973
1992
|
if (tmp$ret$7) {
|
|
1974
1993
|
tmp1_filterTo.a(element_0);
|
|
1975
1994
|
}
|
|
@@ -2003,7 +2022,7 @@
|
|
|
2003
2022
|
var element_1 = tmp0_iterator_3.e();
|
|
2004
2023
|
var tmp$ret$13;
|
|
2005
2024
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2006
|
-
tmp$ret$13 = element_1.
|
|
2025
|
+
tmp$ret$13 = element_1.i1l_1.equals(ParameterLocation_HEADER_getInstance_0());
|
|
2007
2026
|
if (tmp$ret$13) {
|
|
2008
2027
|
tmp4_filterTo.a(element_1);
|
|
2009
2028
|
}
|
|
@@ -2037,7 +2056,7 @@
|
|
|
2037
2056
|
var element_2 = tmp0_iterator_5.e();
|
|
2038
2057
|
var tmp$ret$19;
|
|
2039
2058
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2040
|
-
tmp$ret$19 = element_2.
|
|
2059
|
+
tmp$ret$19 = element_2.i1l_1.equals(ParameterLocation_COOKIE_getInstance());
|
|
2041
2060
|
if (tmp$ret$19) {
|
|
2042
2061
|
tmp7_filterTo.a(element_2);
|
|
2043
2062
|
}
|
|
@@ -2059,7 +2078,7 @@
|
|
|
2059
2078
|
tmp$ret$23 = tmp8_mapTo;
|
|
2060
2079
|
tmp$ret$24 = tmp$ret$23;
|
|
2061
2080
|
var cookies = tmp$ret$24;
|
|
2062
|
-
var tmp0_safe_receiver = operation.
|
|
2081
|
+
var tmp0_safe_receiver = operation.n1k_1;
|
|
2063
2082
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, $this);
|
|
2064
2083
|
var tmp_0;
|
|
2065
2084
|
if (tmp1_safe_receiver == null) {
|
|
@@ -2070,7 +2089,7 @@
|
|
|
2070
2089
|
// Inline function 'kotlin.contracts.contract' call
|
|
2071
2090
|
var tmp$ret$31;
|
|
2072
2091
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2073
|
-
var tmp0_safe_receiver_0 = tmp1_safe_receiver.
|
|
2092
|
+
var tmp0_safe_receiver_0 = tmp1_safe_receiver.n1l_1;
|
|
2074
2093
|
var tmp_1;
|
|
2075
2094
|
if (tmp0_safe_receiver_0 == null) {
|
|
2076
2095
|
tmp_1 = null;
|
|
@@ -2090,20 +2109,20 @@
|
|
|
2090
2109
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2091
2110
|
var tmp$ret$26;
|
|
2092
2111
|
// Inline function 'kotlin.collections.component1' call
|
|
2093
|
-
tmp$ret$26 = item_3.v().
|
|
2112
|
+
tmp$ret$26 = item_3.v().r1l_1;
|
|
2094
2113
|
var mediaType = tmp$ret$26;
|
|
2095
2114
|
var tmp$ret$27;
|
|
2096
2115
|
// Inline function 'kotlin.collections.component2' call
|
|
2097
2116
|
tmp$ret$27 = item_3.w();
|
|
2098
2117
|
var mediaObject = tmp$ret$27;
|
|
2099
2118
|
var tmp_2 = _MediaType___get_value__impl__wy58mp(mediaType);
|
|
2100
|
-
var schema = mediaObject.
|
|
2119
|
+
var schema = mediaObject.u1l_1;
|
|
2101
2120
|
var tmp_3;
|
|
2102
2121
|
if (schema instanceof ReferenceObject_0) {
|
|
2103
2122
|
tmp_3 = toReference_1(schema, $this);
|
|
2104
2123
|
} else {
|
|
2105
2124
|
if (schema instanceof SchemaObject_0) {
|
|
2106
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
2125
|
+
tmp_3 = new Custom(Common_getInstance().z1s([name, 'RequestBody']), true);
|
|
2107
2126
|
} else {
|
|
2108
2127
|
if (schema == null) {
|
|
2109
2128
|
throw new NotImplementedError();
|
|
@@ -2113,7 +2132,7 @@
|
|
|
2113
2132
|
}
|
|
2114
2133
|
}
|
|
2115
2134
|
var tmp_4 = tmp_3;
|
|
2116
|
-
var tmp0_elvis_lhs_0 = tmp1_safe_receiver.
|
|
2135
|
+
var tmp0_elvis_lhs_0 = tmp1_safe_receiver.o1l_1;
|
|
2117
2136
|
tmp$ret$28 = new Request(new Content(tmp_2, tmp_4, tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0));
|
|
2118
2137
|
tmp0_mapTo_0.a(tmp$ret$28);
|
|
2119
2138
|
}
|
|
@@ -2131,7 +2150,7 @@
|
|
|
2131
2150
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2132
2151
|
var tmp$ret$33;
|
|
2133
2152
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2134
|
-
var tmp10_orEmpty = operation.
|
|
2153
|
+
var tmp10_orEmpty = operation.o1k_1;
|
|
2135
2154
|
var tmp0_elvis_lhs_1 = tmp10_orEmpty;
|
|
2136
2155
|
tmp$ret$33 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
2137
2156
|
var tmp12_flatMap = tmp$ret$33;
|
|
@@ -2148,13 +2167,13 @@
|
|
|
2148
2167
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2149
2168
|
var tmp$ret$35;
|
|
2150
2169
|
// Inline function 'kotlin.collections.component1' call
|
|
2151
|
-
tmp$ret$35 = element_3.v().
|
|
2170
|
+
tmp$ret$35 = element_3.v().q1n_1;
|
|
2152
2171
|
var status = tmp$ret$35;
|
|
2153
2172
|
var tmp$ret$36;
|
|
2154
2173
|
// Inline function 'kotlin.collections.component2' call
|
|
2155
2174
|
tmp$ret$36 = element_3.w();
|
|
2156
2175
|
var res = tmp$ret$36;
|
|
2157
|
-
var tmp0_safe_receiver_1 = resolve_6(res, $this).
|
|
2176
|
+
var tmp0_safe_receiver_1 = resolve_6(res, $this).v1n_1;
|
|
2158
2177
|
var tmp_5;
|
|
2159
2178
|
if (tmp0_safe_receiver_1 == null) {
|
|
2160
2179
|
tmp_5 = null;
|
|
@@ -2174,7 +2193,7 @@
|
|
|
2174
2193
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2175
2194
|
var tmp$ret$38;
|
|
2176
2195
|
// Inline function 'kotlin.collections.component1' call
|
|
2177
|
-
tmp$ret$38 = item_4.v().
|
|
2196
|
+
tmp$ret$38 = item_4.v().r1l_1;
|
|
2178
2197
|
var contentType = tmp$ret$38;
|
|
2179
2198
|
var tmp$ret$39;
|
|
2180
2199
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -2182,13 +2201,13 @@
|
|
|
2182
2201
|
var media = tmp$ret$39;
|
|
2183
2202
|
var tmp_6 = _StatusCode___get_value__impl__we50mu_0(status);
|
|
2184
2203
|
var tmp_7 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
2185
|
-
var schema_0 = media.
|
|
2204
|
+
var schema_0 = media.u1l_1;
|
|
2186
2205
|
var tmp_8;
|
|
2187
2206
|
if (schema_0 instanceof ReferenceObject_0) {
|
|
2188
2207
|
tmp_8 = toReference_1(schema_0, $this);
|
|
2189
2208
|
} else {
|
|
2190
2209
|
if (schema_0 instanceof SchemaObject_0) {
|
|
2191
|
-
tmp_8 = toReference_2(schema_0, $this, Common_getInstance().
|
|
2210
|
+
tmp_8 = toReference_2(schema_0, $this, Common_getInstance().z1s([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
2192
2211
|
} else {
|
|
2193
2212
|
if (schema_0 == null) {
|
|
2194
2213
|
throw new NotImplementedError();
|
|
@@ -2198,9 +2217,9 @@
|
|
|
2198
2217
|
}
|
|
2199
2218
|
}
|
|
2200
2219
|
var tmp_9 = tmp_8;
|
|
2201
|
-
var tmp0_safe_receiver_2 = media.
|
|
2220
|
+
var tmp0_safe_receiver_2 = media.u1l_1;
|
|
2202
2221
|
var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : resolve_3(tmp0_safe_receiver_2, $this);
|
|
2203
|
-
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
2222
|
+
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.d1m_1;
|
|
2204
2223
|
tmp$ret$40 = new Response(tmp_6, new Content(tmp_7, tmp_9, tmp2_elvis_lhs_0 == null ? false : tmp2_elvis_lhs_0));
|
|
2205
2224
|
tmp0_mapTo_1.a(tmp$ret$40);
|
|
2206
2225
|
}
|
|
@@ -2230,14 +2249,14 @@
|
|
|
2230
2249
|
return tmp$ret$51;
|
|
2231
2250
|
}
|
|
2232
2251
|
function parseRequestBody_0($this) {
|
|
2233
|
-
return flatMapRequests_0($this.
|
|
2252
|
+
return flatMapRequests_0($this.r1t_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
|
|
2234
2253
|
}
|
|
2235
2254
|
function parseResponseBody_0($this) {
|
|
2236
|
-
return flatMapResponses_0($this.
|
|
2255
|
+
return flatMapResponses_0($this.r1t_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
|
|
2237
2256
|
}
|
|
2238
2257
|
function parseComponents($this) {
|
|
2239
|
-
var tmp0_safe_receiver = $this.
|
|
2240
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2258
|
+
var tmp0_safe_receiver = $this.r1t_1.h1j_1;
|
|
2259
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1o_1;
|
|
2241
2260
|
var tmp;
|
|
2242
2261
|
if (tmp1_safe_receiver == null) {
|
|
2243
2262
|
tmp = null;
|
|
@@ -2255,7 +2274,7 @@
|
|
|
2255
2274
|
var element = tmp0_iterator.e();
|
|
2256
2275
|
var tmp$ret$1;
|
|
2257
2276
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2258
|
-
tmp$ret$1 = flatten_2(element.w(), $this, Common_getInstance().
|
|
2277
|
+
tmp$ret$1 = flatten_2(element.w(), $this, Common_getInstance().z1s([element.v()]));
|
|
2259
2278
|
var list = tmp$ret$1;
|
|
2260
2279
|
addAll(tmp0_flatMapTo, list);
|
|
2261
2280
|
}
|
|
@@ -2278,7 +2297,7 @@
|
|
|
2278
2297
|
var item = tmp0_iterator_0.e();
|
|
2279
2298
|
var tmp$ret$4;
|
|
2280
2299
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2281
|
-
tmp$ret$4 = new Type(item.
|
|
2300
|
+
tmp$ret$4 = new Type(item.s1t_1, new Shape(item.t1t_1));
|
|
2282
2301
|
tmp1_mapTo.a(tmp$ret$4);
|
|
2283
2302
|
}
|
|
2284
2303
|
tmp$ret$5 = tmp1_mapTo;
|
|
@@ -2321,7 +2340,7 @@
|
|
|
2321
2340
|
var element = tmp0_iterator_0.e();
|
|
2322
2341
|
var tmp$ret$2;
|
|
2323
2342
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2324
|
-
tmp$ret$2 = element.
|
|
2343
|
+
tmp$ret$2 = element.h1l_1 === param;
|
|
2325
2344
|
if (tmp$ret$2) {
|
|
2326
2345
|
tmp$ret$3 = element;
|
|
2327
2346
|
break $l$block;
|
|
@@ -2331,7 +2350,7 @@
|
|
|
2331
2350
|
}
|
|
2332
2351
|
tmp$ret$4 = tmp$ret$3;
|
|
2333
2352
|
var tmp0_safe_receiver = tmp$ret$4;
|
|
2334
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2353
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d1l_1;
|
|
2335
2354
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_3(tmp1_safe_receiver, $this);
|
|
2336
2355
|
var tmp_0;
|
|
2337
2356
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2342,7 +2361,7 @@
|
|
|
2342
2361
|
// Inline function 'kotlin.contracts.contract' call
|
|
2343
2362
|
var tmp$ret$5;
|
|
2344
2363
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2345
|
-
var tmp0_safe_receiver_0 = tmp2_safe_receiver.
|
|
2364
|
+
var tmp0_safe_receiver_0 = tmp2_safe_receiver.m1m_1;
|
|
2346
2365
|
tmp$ret$5 = tmp0_safe_receiver_0 == null ? null : toPrimitive_0(tmp0_safe_receiver_0, $this);
|
|
2347
2366
|
tmp$ret$6 = tmp$ret$5;
|
|
2348
2367
|
tmp_0 = tmp$ret$6;
|
|
@@ -2381,7 +2400,7 @@
|
|
|
2381
2400
|
return tmp$ret$11;
|
|
2382
2401
|
}
|
|
2383
2402
|
function toName_0(_this__u8e3s4, $this, segments, method) {
|
|
2384
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2403
|
+
var tmp0_safe_receiver = _this__u8e3s4.l1k_1;
|
|
2385
2404
|
var tmp;
|
|
2386
2405
|
if (tmp0_safe_receiver == null) {
|
|
2387
2406
|
tmp = null;
|
|
@@ -2391,7 +2410,7 @@
|
|
|
2391
2410
|
// Inline function 'kotlin.contracts.contract' call
|
|
2392
2411
|
var tmp$ret$0;
|
|
2393
2412
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2394
|
-
tmp$ret$0 = Common_getInstance().
|
|
2413
|
+
tmp$ret$0 = Common_getInstance().z1s([tmp0_safe_receiver]);
|
|
2395
2414
|
tmp$ret$1 = tmp$ret$0;
|
|
2396
2415
|
tmp = tmp$ret$1;
|
|
2397
2416
|
}
|
|
@@ -2400,7 +2419,7 @@
|
|
|
2400
2419
|
if (tmp1_elvis_lhs == null) {
|
|
2401
2420
|
var tmp$ret$3;
|
|
2402
2421
|
// Inline function 'kotlin.let' call
|
|
2403
|
-
var tmp0_let =
|
|
2422
|
+
var tmp0_let = joinToString(segments, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda_0);
|
|
2404
2423
|
// Inline function 'kotlin.contracts.contract' call
|
|
2405
2424
|
var tmp$ret$2;
|
|
2406
2425
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
@@ -2413,7 +2432,7 @@
|
|
|
2413
2432
|
return tmp_0;
|
|
2414
2433
|
}
|
|
2415
2434
|
function resolveParameters_1(_this__u8e3s4, $this) {
|
|
2416
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2435
|
+
var tmp0_safe_receiver = _this__u8e3s4.m1k_1;
|
|
2417
2436
|
var tmp;
|
|
2418
2437
|
if (tmp0_safe_receiver == null) {
|
|
2419
2438
|
tmp = null;
|
|
@@ -2461,7 +2480,7 @@
|
|
|
2461
2480
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2462
2481
|
}
|
|
2463
2482
|
function resolveParameters_2(_this__u8e3s4, $this) {
|
|
2464
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2483
|
+
var tmp0_safe_receiver = _this__u8e3s4.d1k_1;
|
|
2465
2484
|
var tmp;
|
|
2466
2485
|
if (tmp0_safe_receiver == null) {
|
|
2467
2486
|
tmp = null;
|
|
@@ -2509,8 +2528,8 @@
|
|
|
2509
2528
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2510
2529
|
}
|
|
2511
2530
|
function resolveParameterObject_0(_this__u8e3s4, $this) {
|
|
2512
|
-
var tmp0_safe_receiver = $this.
|
|
2513
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2531
|
+
var tmp0_safe_receiver = $this.r1t_1.h1j_1;
|
|
2532
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c1o_1;
|
|
2514
2533
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2515
2534
|
var tmp;
|
|
2516
2535
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2539,8 +2558,8 @@
|
|
|
2539
2558
|
return tmp;
|
|
2540
2559
|
}
|
|
2541
2560
|
function resolveSchemaObject_0(_this__u8e3s4, $this) {
|
|
2542
|
-
var tmp0_safe_receiver = $this.
|
|
2543
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2561
|
+
var tmp0_safe_receiver = $this.r1t_1.h1j_1;
|
|
2562
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1o_1;
|
|
2544
2563
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2545
2564
|
var tmp;
|
|
2546
2565
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2569,7 +2588,7 @@
|
|
|
2569
2588
|
var tmp3_elvis_lhs = tmp;
|
|
2570
2589
|
var tmp_1;
|
|
2571
2590
|
if (tmp3_elvis_lhs == null) {
|
|
2572
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2591
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.a1m_1);
|
|
2573
2592
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2574
2593
|
} else {
|
|
2575
2594
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2577,8 +2596,8 @@
|
|
|
2577
2596
|
return tmp_1;
|
|
2578
2597
|
}
|
|
2579
2598
|
function resolveRequestBodyObject(_this__u8e3s4, $this) {
|
|
2580
|
-
var tmp0_safe_receiver = $this.
|
|
2581
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2599
|
+
var tmp0_safe_receiver = $this.r1t_1.h1j_1;
|
|
2600
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e1o_1;
|
|
2582
2601
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2583
2602
|
var tmp;
|
|
2584
2603
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2607,7 +2626,7 @@
|
|
|
2607
2626
|
var tmp3_elvis_lhs = tmp;
|
|
2608
2627
|
var tmp_1;
|
|
2609
2628
|
if (tmp3_elvis_lhs == null) {
|
|
2610
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2629
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.a1m_1);
|
|
2611
2630
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2612
2631
|
} else {
|
|
2613
2632
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2615,8 +2634,8 @@
|
|
|
2615
2634
|
return tmp_1;
|
|
2616
2635
|
}
|
|
2617
2636
|
function resolveResponseObject_0(_this__u8e3s4, $this) {
|
|
2618
|
-
var tmp0_safe_receiver = $this.
|
|
2619
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2637
|
+
var tmp0_safe_receiver = $this.r1t_1.h1j_1;
|
|
2638
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b1o_1;
|
|
2620
2639
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2621
2640
|
var tmp;
|
|
2622
2641
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2645,7 +2664,7 @@
|
|
|
2645
2664
|
var tmp3_elvis_lhs = tmp;
|
|
2646
2665
|
var tmp_1;
|
|
2647
2666
|
if (tmp3_elvis_lhs == null) {
|
|
2648
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2667
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.a1m_1);
|
|
2649
2668
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2650
2669
|
} else {
|
|
2651
2670
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2713,7 +2732,7 @@
|
|
|
2713
2732
|
return tmp;
|
|
2714
2733
|
}
|
|
2715
2734
|
function flatten_1(_this__u8e3s4, $this, name) {
|
|
2716
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2735
|
+
var tmp0_subject = _this__u8e3s4.m1m_1;
|
|
2717
2736
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
2718
2737
|
var tmp;
|
|
2719
2738
|
switch (tmp0) {
|
|
@@ -2723,7 +2742,7 @@
|
|
|
2723
2742
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2724
2743
|
var tmp$ret$0;
|
|
2725
2744
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2726
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
2745
|
+
var tmp0_orEmpty = _this__u8e3s4.s1m_1;
|
|
2727
2746
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
2728
2747
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2729
2748
|
var tmp2_flatMap = tmp$ret$0;
|
|
@@ -2749,7 +2768,7 @@
|
|
|
2749
2768
|
var tmp0_subject_0 = value;
|
|
2750
2769
|
var tmp_0;
|
|
2751
2770
|
if (tmp0_subject_0 instanceof SchemaObject_0) {
|
|
2752
|
-
tmp_0 = flatten_1(value, $this, Common_getInstance().
|
|
2771
|
+
tmp_0 = flatten_1(value, $this, Common_getInstance().z1s([name, key]));
|
|
2753
2772
|
} else {
|
|
2754
2773
|
if (tmp0_subject_0 instanceof ReferenceObject_0) {
|
|
2755
2774
|
tmp_0 = emptyList();
|
|
@@ -2765,10 +2784,10 @@
|
|
|
2765
2784
|
tmp$ret$6 = tmp$ret$5;
|
|
2766
2785
|
|
|
2767
2786
|
var fields = tmp$ret$6;
|
|
2768
|
-
var tmp1_subject = _this__u8e3s4.
|
|
2787
|
+
var tmp1_subject = _this__u8e3s4.t1m_1;
|
|
2769
2788
|
var tmp_1;
|
|
2770
2789
|
if (tmp1_subject == null) {
|
|
2771
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
2790
|
+
var tmp2_safe_receiver = _this__u8e3s4.s1m_1;
|
|
2772
2791
|
var tmp_2;
|
|
2773
2792
|
if (tmp2_safe_receiver == null) {
|
|
2774
2793
|
tmp_2 = null;
|
|
@@ -2798,15 +2817,15 @@
|
|
|
2798
2817
|
var tmp_3;
|
|
2799
2818
|
if (tmp0_subject_1 instanceof SchemaObject_0) {
|
|
2800
2819
|
var tmp_4 = new Identifier(key_0);
|
|
2801
|
-
var tmp_5 = toReference_2(value_0, $this, Common_getInstance().
|
|
2802
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
2820
|
+
var tmp_5 = toReference_2(value_0, $this, Common_getInstance().z1s([name, key_0]));
|
|
2821
|
+
var tmp1_safe_receiver = _this__u8e3s4.l1n_1;
|
|
2803
2822
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : contains(tmp1_safe_receiver, key_0);
|
|
2804
2823
|
tmp_3 = new Field(tmp_4, tmp_5, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
2805
2824
|
} else {
|
|
2806
2825
|
if (tmp0_subject_1 instanceof ReferenceObject_0) {
|
|
2807
2826
|
var tmp_6 = new Identifier(key_0);
|
|
2808
2827
|
var tmp_7 = toReference_1(value_0, $this);
|
|
2809
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
2828
|
+
var tmp3_safe_receiver = _this__u8e3s4.l1n_1;
|
|
2810
2829
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : contains(tmp3_safe_receiver, key_0);
|
|
2811
2830
|
tmp_3 = new Field(tmp_6, tmp_7, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
2812
2831
|
} else {
|
|
@@ -2830,7 +2849,7 @@
|
|
|
2830
2849
|
tmp = plus(schema, fields);
|
|
2831
2850
|
break;
|
|
2832
2851
|
case 4:
|
|
2833
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
2852
|
+
var tmp4_safe_receiver = _this__u8e3s4.r1m_1;
|
|
2834
2853
|
var tmp_8;
|
|
2835
2854
|
if (tmp4_safe_receiver == null) {
|
|
2836
2855
|
tmp_8 = null;
|
|
@@ -2846,7 +2865,7 @@
|
|
|
2846
2865
|
tmp_9 = emptyList();
|
|
2847
2866
|
} else {
|
|
2848
2867
|
if (tmp0_subject_2 instanceof SchemaObject_0) {
|
|
2849
|
-
tmp_9 = flatten_1(tmp4_safe_receiver, $this, Common_getInstance().
|
|
2868
|
+
tmp_9 = flatten_1(tmp4_safe_receiver, $this, Common_getInstance().z1s([name, 'array']));
|
|
2850
2869
|
} else {
|
|
2851
2870
|
noWhenBranchMatchedException();
|
|
2852
2871
|
}
|
|
@@ -2880,15 +2899,15 @@
|
|
|
2880
2899
|
return tmp;
|
|
2881
2900
|
}
|
|
2882
2901
|
function SimpleSchema_0(name, properties) {
|
|
2883
|
-
this.
|
|
2884
|
-
this.
|
|
2902
|
+
this.s1t_1 = name;
|
|
2903
|
+
this.t1t_1 = properties;
|
|
2885
2904
|
}
|
|
2886
2905
|
protoOf(SimpleSchema_0).toString = function () {
|
|
2887
|
-
return 'SimpleSchema(name=' + this.
|
|
2906
|
+
return 'SimpleSchema(name=' + this.s1t_1 + ', properties=' + this.t1t_1 + ')';
|
|
2888
2907
|
};
|
|
2889
2908
|
protoOf(SimpleSchema_0).hashCode = function () {
|
|
2890
|
-
var result = getStringHashCode(this.
|
|
2891
|
-
result = imul(result, 31) + hashCode(this.
|
|
2909
|
+
var result = getStringHashCode(this.s1t_1);
|
|
2910
|
+
result = imul(result, 31) + hashCode(this.t1t_1) | 0;
|
|
2892
2911
|
return result;
|
|
2893
2912
|
};
|
|
2894
2913
|
protoOf(SimpleSchema_0).equals = function (other) {
|
|
@@ -2897,9 +2916,9 @@
|
|
|
2897
2916
|
if (!(other instanceof SimpleSchema_0))
|
|
2898
2917
|
return false;
|
|
2899
2918
|
var tmp0_other_with_cast = other instanceof SimpleSchema_0 ? other : THROW_CCE();
|
|
2900
|
-
if (!(this.
|
|
2919
|
+
if (!(this.s1t_1 === tmp0_other_with_cast.s1t_1))
|
|
2901
2920
|
return false;
|
|
2902
|
-
if (!equals(this.
|
|
2921
|
+
if (!equals(this.t1t_1, tmp0_other_with_cast.t1t_1))
|
|
2903
2922
|
return false;
|
|
2904
2923
|
return true;
|
|
2905
2924
|
};
|
|
@@ -2912,32 +2931,32 @@
|
|
|
2912
2931
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
|
|
2913
2932
|
var referencingObject = tmp0_let.i3();
|
|
2914
2933
|
var schema = tmp0_let.j3();
|
|
2915
|
-
var additionalProperties = schema.
|
|
2934
|
+
var additionalProperties = schema.t1m_1;
|
|
2916
2935
|
var tmp;
|
|
2917
2936
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
2918
2937
|
throw new NotImplementedError();
|
|
2919
2938
|
} else {
|
|
2920
2939
|
if (additionalProperties instanceof ReferenceObject_0) {
|
|
2921
|
-
tmp = new Custom(Common_getInstance().
|
|
2940
|
+
tmp = new Custom(Common_getInstance().z1s([getReference_0(additionalProperties, $this)]), false, true);
|
|
2922
2941
|
} else {
|
|
2923
2942
|
if (additionalProperties instanceof SchemaObject_0) {
|
|
2924
|
-
tmp = new Custom(Common_getInstance().
|
|
2943
|
+
tmp = new Custom(Common_getInstance().z1s([getReference_0(referencingObject, $this)]), false, true);
|
|
2925
2944
|
} else {
|
|
2926
2945
|
if (additionalProperties == null) {
|
|
2927
|
-
var tmp0_subject = schema.
|
|
2946
|
+
var tmp0_subject = schema.m1m_1;
|
|
2928
2947
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
2929
2948
|
var tmp_0;
|
|
2930
2949
|
if (tmp0 === 4) {
|
|
2931
|
-
var items = schema.
|
|
2950
|
+
var items = schema.r1m_1;
|
|
2932
2951
|
var tmp_1;
|
|
2933
2952
|
if (items instanceof ReferenceObject_0) {
|
|
2934
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
2953
|
+
tmp_1 = new Custom(Common_getInstance().z1s([getReference_0(items, $this)]), true);
|
|
2935
2954
|
} else {
|
|
2936
2955
|
if (items instanceof SchemaObject_0) {
|
|
2937
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
2956
|
+
tmp_1 = new Custom(Common_getInstance().z1s([getReference_0(referencingObject, $this), 'Array']), true);
|
|
2938
2957
|
} else {
|
|
2939
2958
|
if (items == null) {
|
|
2940
|
-
var tmp0_error = 'When schema is of type array items cannot be null for name: ' + new Ref_0(_this__u8e3s4.
|
|
2959
|
+
var tmp0_error = 'When schema is of type array items cannot be null for name: ' + new Ref_0(_this__u8e3s4.a1m_1);
|
|
2941
2960
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2942
2961
|
} else {
|
|
2943
2962
|
noWhenBranchMatchedException();
|
|
@@ -2946,7 +2965,7 @@
|
|
|
2946
2965
|
}
|
|
2947
2966
|
tmp_0 = tmp_1;
|
|
2948
2967
|
} else {
|
|
2949
|
-
tmp_0 = new Custom(Common_getInstance().
|
|
2968
|
+
tmp_0 = new Custom(Common_getInstance().z1s([getReference_0(referencingObject, $this)]), false);
|
|
2950
2969
|
}
|
|
2951
2970
|
tmp = tmp_0;
|
|
2952
2971
|
} else {
|
|
@@ -2960,7 +2979,7 @@
|
|
|
2960
2979
|
return tmp$ret$1;
|
|
2961
2980
|
}
|
|
2962
2981
|
function toReference_2(_this__u8e3s4, $this, name) {
|
|
2963
|
-
var type = _this__u8e3s4.
|
|
2982
|
+
var type = _this__u8e3s4.m1m_1;
|
|
2964
2983
|
var tmp0 = type == null ? -1 : type.q4_1;
|
|
2965
2984
|
var tmp;
|
|
2966
2985
|
switch (tmp0) {
|
|
@@ -2972,27 +2991,27 @@
|
|
|
2972
2991
|
break;
|
|
2973
2992
|
case -1:
|
|
2974
2993
|
case 5:
|
|
2975
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2994
|
+
var tmp0_safe_receiver = _this__u8e3s4.t1m_1;
|
|
2976
2995
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_4(tmp0_safe_receiver, $this);
|
|
2977
|
-
var additionalPropertiesType = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2996
|
+
var additionalPropertiesType = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m1m_1;
|
|
2978
2997
|
var tmp0_0 = additionalPropertiesType == null ? -1 : additionalPropertiesType.q4_1;
|
|
2979
2998
|
switch (tmp0_0) {
|
|
2980
2999
|
case 0:
|
|
2981
3000
|
case 2:
|
|
2982
3001
|
case 1:
|
|
2983
3002
|
case 3:
|
|
2984
|
-
tmp = new Primitive(toPrimitive_0(additionalPropertiesType, $this), false, !(_this__u8e3s4.
|
|
3003
|
+
tmp = new Primitive(toPrimitive_0(additionalPropertiesType, $this), false, !(_this__u8e3s4.t1m_1 == null));
|
|
2985
3004
|
break;
|
|
2986
3005
|
default:
|
|
2987
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
3006
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.t1m_1 == null));
|
|
2988
3007
|
break;
|
|
2989
3008
|
}
|
|
2990
3009
|
|
|
2991
3010
|
break;
|
|
2992
3011
|
case 4:
|
|
2993
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
3012
|
+
var tmp2_safe_receiver = _this__u8e3s4.r1m_1;
|
|
2994
3013
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : resolve_3(tmp2_safe_receiver, $this);
|
|
2995
|
-
var type_0 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
3014
|
+
var type_0 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.m1m_1;
|
|
2996
3015
|
var tmp0_1 = type_0 == null ? -1 : type_0.q4_1;
|
|
2997
3016
|
var tmp_0;
|
|
2998
3017
|
switch (tmp0_1) {
|
|
@@ -3003,10 +3022,10 @@
|
|
|
3003
3022
|
tmp_0 = new Primitive(toPrimitive_0(type_0, $this), true);
|
|
3004
3023
|
break;
|
|
3005
3024
|
default:
|
|
3006
|
-
var it = _this__u8e3s4.
|
|
3025
|
+
var it = _this__u8e3s4.r1m_1;
|
|
3007
3026
|
var tmp_1;
|
|
3008
3027
|
if (it instanceof ReferenceObject_0) {
|
|
3009
|
-
tmp_1 = toReference_1(it, $this).
|
|
3028
|
+
tmp_1 = toReference_1(it, $this).fl(VOID, true);
|
|
3010
3029
|
} else {
|
|
3011
3030
|
if (it instanceof SchemaObject_0) {
|
|
3012
3031
|
tmp_1 = toReference_2(it, $this, name);
|
|
@@ -3052,28 +3071,28 @@
|
|
|
3052
3071
|
var tmp;
|
|
3053
3072
|
switch (tmp0) {
|
|
3054
3073
|
case 0:
|
|
3055
|
-
tmp = _this__u8e3s4.
|
|
3074
|
+
tmp = _this__u8e3s4.u1j_1;
|
|
3056
3075
|
break;
|
|
3057
3076
|
case 1:
|
|
3058
|
-
tmp = _this__u8e3s4.
|
|
3077
|
+
tmp = _this__u8e3s4.w1j_1;
|
|
3059
3078
|
break;
|
|
3060
3079
|
case 2:
|
|
3061
|
-
tmp = _this__u8e3s4.
|
|
3080
|
+
tmp = _this__u8e3s4.v1j_1;
|
|
3062
3081
|
break;
|
|
3063
3082
|
case 3:
|
|
3064
|
-
tmp = _this__u8e3s4.
|
|
3083
|
+
tmp = _this__u8e3s4.x1j_1;
|
|
3065
3084
|
break;
|
|
3066
3085
|
case 4:
|
|
3067
|
-
tmp = _this__u8e3s4.
|
|
3086
|
+
tmp = _this__u8e3s4.y1j_1;
|
|
3068
3087
|
break;
|
|
3069
3088
|
case 5:
|
|
3070
|
-
tmp = _this__u8e3s4.
|
|
3089
|
+
tmp = _this__u8e3s4.z1j_1;
|
|
3071
3090
|
break;
|
|
3072
3091
|
case 6:
|
|
3073
|
-
tmp = _this__u8e3s4.
|
|
3092
|
+
tmp = _this__u8e3s4.a1k_1;
|
|
3074
3093
|
break;
|
|
3075
3094
|
case 7:
|
|
3076
|
-
tmp = _this__u8e3s4.
|
|
3095
|
+
tmp = _this__u8e3s4.b1k_1;
|
|
3077
3096
|
break;
|
|
3078
3097
|
default:
|
|
3079
3098
|
noWhenBranchMatchedException();
|
|
@@ -3087,7 +3106,7 @@
|
|
|
3087
3106
|
return filterNotNullValues_0(tmp$ret$2);
|
|
3088
3107
|
}
|
|
3089
3108
|
function getReference_0(_this__u8e3s4, $this) {
|
|
3090
|
-
return split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
3109
|
+
return split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.a1m_1), ['/']).h(3);
|
|
3091
3110
|
}
|
|
3092
3111
|
function toPrimitive_0(_this__u8e3s4, $this) {
|
|
3093
3112
|
var tmp0_subject = _this__u8e3s4;
|
|
@@ -3114,15 +3133,15 @@
|
|
|
3114
3133
|
function toField_0(_this__u8e3s4, $this) {
|
|
3115
3134
|
var tmp$ret$1;
|
|
3116
3135
|
// Inline function 'kotlin.let' call
|
|
3117
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3136
|
+
var tmp0_subject = _this__u8e3s4.d1l_1;
|
|
3118
3137
|
var tmp;
|
|
3119
3138
|
if (tmp0_subject instanceof ReferenceObject_0) {
|
|
3120
|
-
var tmp_0 = _this__u8e3s4.
|
|
3139
|
+
var tmp_0 = _this__u8e3s4.d1l_1;
|
|
3121
3140
|
tmp = new Custom(getReference_0(tmp_0 instanceof ReferenceObject_0 ? tmp_0 : THROW_CCE(), $this), false);
|
|
3122
3141
|
} else {
|
|
3123
3142
|
if (tmp0_subject instanceof SchemaObject_0) {
|
|
3124
|
-
var tmp_1 = _this__u8e3s4.
|
|
3125
|
-
var type = (tmp_1 instanceof SchemaObject_0 ? tmp_1 : THROW_CCE()).
|
|
3143
|
+
var tmp_1 = _this__u8e3s4.d1l_1;
|
|
3144
|
+
var type = (tmp_1 instanceof SchemaObject_0 ? tmp_1 : THROW_CCE()).m1m_1;
|
|
3126
3145
|
var tmp0 = type == null ? -1 : type.q4_1;
|
|
3127
3146
|
var tmp_2;
|
|
3128
3147
|
switch (tmp0) {
|
|
@@ -3155,26 +3174,26 @@
|
|
|
3155
3174
|
// Inline function 'kotlin.contracts.contract' call
|
|
3156
3175
|
var tmp$ret$0;
|
|
3157
3176
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3158
|
-
var tmp_3 = new Identifier(_this__u8e3s4.
|
|
3159
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3177
|
+
var tmp_3 = new Identifier(_this__u8e3s4.h1l_1);
|
|
3178
|
+
var tmp0_elvis_lhs = _this__u8e3s4.x1k_1;
|
|
3160
3179
|
tmp$ret$0 = new Field(tmp_3, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3161
3180
|
tmp$ret$1 = tmp$ret$0;
|
|
3162
3181
|
return tmp$ret$1;
|
|
3163
3182
|
}
|
|
3164
3183
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
3165
|
-
this.
|
|
3166
|
-
this.
|
|
3167
|
-
this.
|
|
3168
|
-
this.
|
|
3184
|
+
this.u1t_1 = path;
|
|
3185
|
+
this.v1t_1 = pathItem;
|
|
3186
|
+
this.w1t_1 = method;
|
|
3187
|
+
this.x1t_1 = operation;
|
|
3169
3188
|
}
|
|
3170
3189
|
protoOf(FlattenRequest_0).toString = function () {
|
|
3171
|
-
return 'FlattenRequest(path=' + new Path_0(this.
|
|
3190
|
+
return 'FlattenRequest(path=' + new Path_0(this.u1t_1) + ', pathItem=' + this.v1t_1 + ', method=' + this.w1t_1 + ', operation=' + this.x1t_1 + ')';
|
|
3172
3191
|
};
|
|
3173
3192
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
3174
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3175
|
-
result = imul(result, 31) + this.t1t_1.hashCode() | 0;
|
|
3176
|
-
result = imul(result, 31) + this.u1t_1.hashCode() | 0;
|
|
3193
|
+
var result = Path__hashCode_impl_go73kd_0(this.u1t_1);
|
|
3177
3194
|
result = imul(result, 31) + this.v1t_1.hashCode() | 0;
|
|
3195
|
+
result = imul(result, 31) + this.w1t_1.hashCode() | 0;
|
|
3196
|
+
result = imul(result, 31) + this.x1t_1.hashCode() | 0;
|
|
3178
3197
|
return result;
|
|
3179
3198
|
};
|
|
3180
3199
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -3183,13 +3202,13 @@
|
|
|
3183
3202
|
if (!(other instanceof FlattenRequest_0))
|
|
3184
3203
|
return false;
|
|
3185
3204
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
3186
|
-
if (!(this.
|
|
3205
|
+
if (!(this.u1t_1 === tmp0_other_with_cast.u1t_1))
|
|
3187
3206
|
return false;
|
|
3188
|
-
if (!this.
|
|
3207
|
+
if (!this.v1t_1.equals(tmp0_other_with_cast.v1t_1))
|
|
3189
3208
|
return false;
|
|
3190
|
-
if (!this.
|
|
3209
|
+
if (!this.w1t_1.equals(tmp0_other_with_cast.w1t_1))
|
|
3191
3210
|
return false;
|
|
3192
|
-
if (!this.
|
|
3211
|
+
if (!this.x1t_1.equals(tmp0_other_with_cast.x1t_1))
|
|
3193
3212
|
return false;
|
|
3194
3213
|
return true;
|
|
3195
3214
|
};
|
|
@@ -3198,7 +3217,7 @@
|
|
|
3198
3217
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3199
3218
|
var tmp$ret$11;
|
|
3200
3219
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3201
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
3220
|
+
var tmp1_flatMap = _this__u8e3s4.g1j_1;
|
|
3202
3221
|
var tmp$ret$10;
|
|
3203
3222
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3204
3223
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -3212,7 +3231,7 @@
|
|
|
3212
3231
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
3213
3232
|
var tmp$ret$1;
|
|
3214
3233
|
// Inline function 'kotlin.collections.component1' call
|
|
3215
|
-
tmp$ret$1 = element.v().
|
|
3234
|
+
tmp$ret$1 = element.v().o1j_1;
|
|
3216
3235
|
var path = tmp$ret$1;
|
|
3217
3236
|
var tmp$ret$2;
|
|
3218
3237
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3269,23 +3288,23 @@
|
|
|
3269
3288
|
return tmp$ret$14;
|
|
3270
3289
|
}
|
|
3271
3290
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
3272
|
-
this.
|
|
3273
|
-
this.
|
|
3274
|
-
this.
|
|
3275
|
-
this.
|
|
3276
|
-
this.
|
|
3277
|
-
this.
|
|
3291
|
+
this.y1t_1 = path;
|
|
3292
|
+
this.z1t_1 = pathItem;
|
|
3293
|
+
this.a1u_1 = method;
|
|
3294
|
+
this.b1u_1 = operation;
|
|
3295
|
+
this.c1u_1 = statusCode;
|
|
3296
|
+
this.d1u_1 = response;
|
|
3278
3297
|
}
|
|
3279
3298
|
protoOf(FlattenResponse_0).toString = function () {
|
|
3280
|
-
return 'FlattenResponse(path=' + new Path_0(this.
|
|
3299
|
+
return 'FlattenResponse(path=' + new Path_0(this.y1t_1) + ', pathItem=' + this.z1t_1 + ', method=' + this.a1u_1 + ', operation=' + this.b1u_1 + ', statusCode=' + new StatusCode_0(this.c1u_1) + ', response=' + this.d1u_1 + ')';
|
|
3281
3300
|
};
|
|
3282
3301
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
3283
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3284
|
-
result = imul(result, 31) + this.x1t_1.hashCode() | 0;
|
|
3285
|
-
result = imul(result, 31) + this.y1t_1.hashCode() | 0;
|
|
3302
|
+
var result = Path__hashCode_impl_go73kd_0(this.y1t_1);
|
|
3286
3303
|
result = imul(result, 31) + this.z1t_1.hashCode() | 0;
|
|
3287
|
-
result = imul(result, 31) +
|
|
3288
|
-
result = imul(result, 31) +
|
|
3304
|
+
result = imul(result, 31) + this.a1u_1.hashCode() | 0;
|
|
3305
|
+
result = imul(result, 31) + this.b1u_1.hashCode() | 0;
|
|
3306
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.c1u_1) | 0;
|
|
3307
|
+
result = imul(result, 31) + hashCode(this.d1u_1) | 0;
|
|
3289
3308
|
return result;
|
|
3290
3309
|
};
|
|
3291
3310
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -3294,17 +3313,17 @@
|
|
|
3294
3313
|
if (!(other instanceof FlattenResponse_0))
|
|
3295
3314
|
return false;
|
|
3296
3315
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
3297
|
-
if (!(this.
|
|
3316
|
+
if (!(this.y1t_1 === tmp0_other_with_cast.y1t_1))
|
|
3298
3317
|
return false;
|
|
3299
|
-
if (!this.
|
|
3318
|
+
if (!this.z1t_1.equals(tmp0_other_with_cast.z1t_1))
|
|
3300
3319
|
return false;
|
|
3301
|
-
if (!this.
|
|
3320
|
+
if (!this.a1u_1.equals(tmp0_other_with_cast.a1u_1))
|
|
3302
3321
|
return false;
|
|
3303
|
-
if (!this.
|
|
3322
|
+
if (!this.b1u_1.equals(tmp0_other_with_cast.b1u_1))
|
|
3304
3323
|
return false;
|
|
3305
|
-
if (!(this.
|
|
3324
|
+
if (!(this.c1u_1 === tmp0_other_with_cast.c1u_1))
|
|
3306
3325
|
return false;
|
|
3307
|
-
if (!equals(this.
|
|
3326
|
+
if (!equals(this.d1u_1, tmp0_other_with_cast.d1u_1))
|
|
3308
3327
|
return false;
|
|
3309
3328
|
return true;
|
|
3310
3329
|
};
|
|
@@ -3313,7 +3332,7 @@
|
|
|
3313
3332
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3314
3333
|
var tmp$ret$18;
|
|
3315
3334
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3316
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
3335
|
+
var tmp1_flatMap = _this__u8e3s4.g1j_1;
|
|
3317
3336
|
var tmp$ret$17;
|
|
3318
3337
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3319
3338
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -3327,7 +3346,7 @@
|
|
|
3327
3346
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
3328
3347
|
var tmp$ret$1;
|
|
3329
3348
|
// Inline function 'kotlin.collections.component1' call
|
|
3330
|
-
tmp$ret$1 = element.v().
|
|
3349
|
+
tmp$ret$1 = element.v().o1j_1;
|
|
3331
3350
|
var path = tmp$ret$1;
|
|
3332
3351
|
var tmp$ret$2;
|
|
3333
3352
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3357,7 +3376,7 @@
|
|
|
3357
3376
|
var operation = tmp$ret$5;
|
|
3358
3377
|
var tmp$ret$12;
|
|
3359
3378
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3360
|
-
var tmp0_safe_receiver = operation.
|
|
3379
|
+
var tmp0_safe_receiver = operation.o1k_1;
|
|
3361
3380
|
var tmp;
|
|
3362
3381
|
if (tmp0_safe_receiver == null) {
|
|
3363
3382
|
tmp = null;
|
|
@@ -3377,7 +3396,7 @@
|
|
|
3377
3396
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
3378
3397
|
var tmp$ret$7;
|
|
3379
3398
|
// Inline function 'kotlin.collections.component1' call
|
|
3380
|
-
tmp$ret$7 = item.v().
|
|
3399
|
+
tmp$ret$7 = item.v().q1n_1;
|
|
3381
3400
|
var statusCode = tmp$ret$7;
|
|
3382
3401
|
var tmp$ret$8;
|
|
3383
3402
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3424,16 +3443,16 @@
|
|
|
3424
3443
|
}
|
|
3425
3444
|
function OpenApiParser$parseRequestBody$lambda_0(this$0) {
|
|
3426
3445
|
return function (req) {
|
|
3427
|
-
var parameters = plus(resolveParameters_2(req.
|
|
3428
|
-
var segments = toSegments_0(req.
|
|
3429
|
-
var name = toName_0(req.
|
|
3446
|
+
var parameters = plus(resolveParameters_2(req.v1t_1, this$0), resolveParameters_1(req.x1t_1, this$0));
|
|
3447
|
+
var segments = toSegments_0(req.u1t_1, this$0, parameters);
|
|
3448
|
+
var name = toName_0(req.x1t_1, this$0, segments, req.w1t_1);
|
|
3430
3449
|
var tmp$ret$8;
|
|
3431
3450
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3432
3451
|
var tmp$ret$0;
|
|
3433
3452
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3434
|
-
var tmp0_safe_receiver = req.
|
|
3453
|
+
var tmp0_safe_receiver = req.x1t_1.n1k_1;
|
|
3435
3454
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, this$0);
|
|
3436
|
-
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3455
|
+
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n1l_1;
|
|
3437
3456
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3438
3457
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3439
3458
|
var tmp2_flatMap = tmp$ret$0;
|
|
@@ -3452,10 +3471,10 @@
|
|
|
3452
3471
|
// Inline function 'kotlin.collections.component2' call
|
|
3453
3472
|
tmp$ret$2 = element.w();
|
|
3454
3473
|
var mediaObject = tmp$ret$2;
|
|
3455
|
-
var schema = mediaObject.
|
|
3474
|
+
var schema = mediaObject.u1l_1;
|
|
3456
3475
|
var tmp;
|
|
3457
3476
|
if (schema instanceof SchemaObject_0) {
|
|
3458
|
-
var tmp0_subject = schema.
|
|
3477
|
+
var tmp0_subject = schema.m1m_1;
|
|
3459
3478
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3460
3479
|
var tmp_0;
|
|
3461
3480
|
switch (tmp0) {
|
|
@@ -3463,7 +3482,7 @@
|
|
|
3463
3482
|
case 5:
|
|
3464
3483
|
var tmp$ret$5;
|
|
3465
3484
|
// Inline function 'kotlin.collections.map' call
|
|
3466
|
-
var tmp1_map = flatten_1(schema, this$0, Common_getInstance().
|
|
3485
|
+
var tmp1_map = flatten_1(schema, this$0, Common_getInstance().z1s([name, 'RequestBody']));
|
|
3467
3486
|
var tmp$ret$4;
|
|
3468
3487
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3469
3488
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -3472,7 +3491,7 @@
|
|
|
3472
3491
|
var item = tmp0_iterator_0.e();
|
|
3473
3492
|
var tmp$ret$3;
|
|
3474
3493
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
3475
|
-
tmp$ret$3 = new Type(item.
|
|
3494
|
+
tmp$ret$3 = new Type(item.s1t_1, new Shape(item.t1t_1));
|
|
3476
3495
|
tmp0_mapTo.a(tmp$ret$3);
|
|
3477
3496
|
}
|
|
3478
3497
|
tmp$ret$4 = tmp0_mapTo;
|
|
@@ -3507,10 +3526,10 @@
|
|
|
3507
3526
|
}
|
|
3508
3527
|
function OpenApiParser$parseResponseBody$lambda_0(this$0) {
|
|
3509
3528
|
return function (res) {
|
|
3510
|
-
var parameters = plus(resolveParameters_2(res.
|
|
3511
|
-
var segments = toSegments_0(res.
|
|
3512
|
-
var name = toName_0(res.
|
|
3513
|
-
var response = res.
|
|
3529
|
+
var parameters = plus(resolveParameters_2(res.z1t_1, this$0), resolveParameters_1(res.b1u_1, this$0));
|
|
3530
|
+
var segments = toSegments_0(res.y1t_1, this$0, parameters);
|
|
3531
|
+
var name = toName_0(res.b1u_1, this$0, segments, res.a1u_1);
|
|
3532
|
+
var response = res.d1u_1;
|
|
3514
3533
|
var tmp;
|
|
3515
3534
|
if (response instanceof ReferenceObject_0) {
|
|
3516
3535
|
tmp = emptyList();
|
|
@@ -3520,7 +3539,7 @@
|
|
|
3520
3539
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3521
3540
|
var tmp$ret$0;
|
|
3522
3541
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3523
|
-
var tmp0_orEmpty = response.
|
|
3542
|
+
var tmp0_orEmpty = response.v1n_1;
|
|
3524
3543
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3525
3544
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3526
3545
|
var tmp2_flatMap = tmp$ret$0;
|
|
@@ -3539,10 +3558,10 @@
|
|
|
3539
3558
|
// Inline function 'kotlin.collections.component2' call
|
|
3540
3559
|
tmp$ret$2 = element.w();
|
|
3541
3560
|
var mediaObject = tmp$ret$2;
|
|
3542
|
-
var schema = mediaObject.
|
|
3561
|
+
var schema = mediaObject.u1l_1;
|
|
3543
3562
|
var tmp_0;
|
|
3544
3563
|
if (schema instanceof SchemaObject_0) {
|
|
3545
|
-
var tmp0_subject = schema.
|
|
3564
|
+
var tmp0_subject = schema.m1m_1;
|
|
3546
3565
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3547
3566
|
var tmp_1;
|
|
3548
3567
|
switch (tmp0) {
|
|
@@ -3550,10 +3569,10 @@
|
|
|
3550
3569
|
case 5:
|
|
3551
3570
|
var tmp$ret$5;
|
|
3552
3571
|
// Inline function 'kotlin.collections.map' call
|
|
3553
|
-
var tmp1_safe_receiver = schema.
|
|
3572
|
+
var tmp1_safe_receiver = schema.t1m_1;
|
|
3554
3573
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_4(tmp1_safe_receiver, this$0);
|
|
3555
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : flatten_1(tmp2_safe_receiver, this$0, Common_getInstance().
|
|
3556
|
-
var tmp1_map = tmp3_elvis_lhs == null ? flatten_1(schema, this$0, Common_getInstance().
|
|
3574
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : flatten_1(tmp2_safe_receiver, this$0, Common_getInstance().z1s([name, _StatusCode___get_value__impl__we50mu_0(res.c1u_1), 'ResponseBody']));
|
|
3575
|
+
var tmp1_map = tmp3_elvis_lhs == null ? flatten_1(schema, this$0, Common_getInstance().z1s([name, _StatusCode___get_value__impl__we50mu_0(res.c1u_1), 'ResponseBody'])) : tmp3_elvis_lhs;
|
|
3557
3576
|
var tmp$ret$4;
|
|
3558
3577
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3559
3578
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -3562,7 +3581,7 @@
|
|
|
3562
3581
|
var item = tmp0_iterator_0.e();
|
|
3563
3582
|
var tmp$ret$3;
|
|
3564
3583
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
3565
|
-
tmp$ret$3 = new Type(item.
|
|
3584
|
+
tmp$ret$3 = new Type(item.s1t_1, new Shape(item.t1t_1));
|
|
3566
3585
|
tmp0_mapTo.a(tmp$ret$3);
|
|
3567
3586
|
}
|
|
3568
3587
|
tmp$ret$4 = tmp0_mapTo;
|
|
@@ -3604,10 +3623,10 @@
|
|
|
3604
3623
|
var tmp0_subject = it;
|
|
3605
3624
|
var tmp;
|
|
3606
3625
|
if (tmp0_subject instanceof Literal) {
|
|
3607
|
-
tmp = Common_getInstance().
|
|
3626
|
+
tmp = Common_getInstance().z1s([it.rj_1]);
|
|
3608
3627
|
} else {
|
|
3609
3628
|
if (tmp0_subject instanceof Param) {
|
|
3610
|
-
tmp = Common_getInstance().
|
|
3629
|
+
tmp = Common_getInstance().z1s([it.si_1.dj_1]);
|
|
3611
3630
|
} else {
|
|
3612
3631
|
noWhenBranchMatchedException();
|
|
3613
3632
|
}
|
|
@@ -3616,7 +3635,7 @@
|
|
|
3616
3635
|
}
|
|
3617
3636
|
function OpenApiParser_0(openApi) {
|
|
3618
3637
|
Companion_getInstance_1();
|
|
3619
|
-
this.
|
|
3638
|
+
this.r1t_1 = openApi;
|
|
3620
3639
|
}
|
|
3621
3640
|
function filterNotNullValues_0(_this__u8e3s4) {
|
|
3622
3641
|
var tmp$ret$8;
|