@flock/wirespec 0.10.21 → 0.10.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arrow-arrow-core.js +11 -3
- package/arrow-arrow-core.js.map +1 -1
- package/clikt-clikt.js +1168 -1167
- package/clikt-clikt.js.map +1 -1
- package/colormath-root-colormath.js +425 -425
- package/kotlin-kotlin-stdlib.js +13 -13
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-rgxgen.js +1767 -1767
- package/markdown.js +1871 -1871
- package/mordant-mordant.js +1642 -1642
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +1635 -1340
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +348 -328
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-converter-openapi.js +528 -405
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-plugin-arguments.js +78 -78
- package/wirespec-src-plugin-arguments.js.map +1 -1
- package/wirespec-src-plugin-cli.js +265 -184
- package/wirespec-src-plugin-cli.js.map +1 -1
- package/wirespec-src-plugin-npm.d.ts +6 -2
- package/wirespec-src-plugin-npm.js +8 -8
- package/wirespec-src-tools-generator.js +47 -55
- package/wirespec-src-tools-generator.js.map +1 -1
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
'use strict';
|
|
26
26
|
//region block: imports
|
|
27
27
|
var imul = Math.imul;
|
|
28
|
-
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
28
|
+
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.h2;
|
|
29
29
|
var Unit_instance = kotlin_kotlin.$_$.g4;
|
|
30
30
|
var VOID = kotlin_kotlin.$_$.g;
|
|
31
31
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.l;
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.i5;
|
|
41
41
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.k;
|
|
42
42
|
var firstOrNull = kotlin_kotlin.$_$.g6;
|
|
43
|
-
var _Comment___get_value__impl__8r3pla = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
44
|
-
var Comment = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
43
|
+
var _Comment___get_value__impl__8r3pla = kotlin_community_flock_wirespec_compiler_core.$_$.g2;
|
|
44
|
+
var Comment = kotlin_community_flock_wirespec_compiler_core.$_$.j;
|
|
45
45
|
var distinct = kotlin_kotlin.$_$.y5;
|
|
46
46
|
var take = kotlin_kotlin.$_$.f8;
|
|
47
47
|
var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e1;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
55
55
|
var _StatusCode___init__impl__t1yi9q = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f2;
|
|
56
56
|
var HeaderObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b;
|
|
57
|
-
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
57
|
+
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.f1;
|
|
58
58
|
var Type_ARRAY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i1;
|
|
59
59
|
var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k;
|
|
60
60
|
var noWhenBranchMatchedException = kotlin_kotlin.$_$.eg;
|
|
@@ -63,17 +63,22 @@
|
|
|
63
63
|
var OperationObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e;
|
|
64
64
|
var ReferenceObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i;
|
|
65
65
|
var Type_STRING_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.n1;
|
|
66
|
-
var
|
|
67
|
-
var Type_NUMBER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l1;
|
|
66
|
+
var Bytes = kotlin_community_flock_wirespec_compiler_core.$_$.a1;
|
|
68
67
|
var Type_BOOLEAN_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j1;
|
|
68
|
+
var Boolean_0 = kotlin_community_flock_wirespec_compiler_core.$_$.z;
|
|
69
|
+
var Type_NUMBER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l1;
|
|
70
|
+
var Number_0 = kotlin_community_flock_wirespec_compiler_core.$_$.c1;
|
|
71
|
+
var Type_INTEGER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k1;
|
|
72
|
+
var Integer = kotlin_community_flock_wirespec_compiler_core.$_$.b1;
|
|
73
|
+
var String_0 = kotlin_community_flock_wirespec_compiler_core.$_$.d1;
|
|
69
74
|
var Type_OBJECT_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m1;
|
|
70
|
-
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
71
|
-
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
72
|
-
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
73
|
-
var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
74
|
-
var Param = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
75
|
+
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.x;
|
|
76
|
+
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.y;
|
|
77
|
+
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.e1;
|
|
78
|
+
var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.q;
|
|
79
|
+
var Param = kotlin_community_flock_wirespec_compiler_core.$_$.r;
|
|
75
80
|
var Emitter = kotlin_community_flock_wirespec_compiler_core.$_$.b;
|
|
76
|
-
var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
81
|
+
var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.r1;
|
|
77
82
|
var SwaggerObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m;
|
|
78
83
|
var getKClass = kotlin_kotlin.$_$.e;
|
|
79
84
|
var arrayOf = kotlin_kotlin.$_$.vf;
|
|
@@ -85,51 +90,51 @@
|
|
|
85
90
|
var Emitted = kotlin_community_flock_wirespec_compiler_core.$_$.a;
|
|
86
91
|
var listOf = kotlin_kotlin.$_$.g7;
|
|
87
92
|
var InfoObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c;
|
|
88
|
-
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
93
|
+
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.s;
|
|
89
94
|
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.u;
|
|
90
95
|
var _Path___init__impl__6uf4pw = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y1;
|
|
91
96
|
var ParameterLocation_PATH_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g1;
|
|
92
|
-
var Method_GET_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
93
|
-
var Method_POST_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
94
|
-
var Method_PUT_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
95
|
-
var Method_DELETE_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
96
|
-
var Method_PATCH_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
97
|
-
var Method_OPTIONS_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
98
|
-
var Method_TRACE_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
99
|
-
var Method_HEAD_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
97
|
+
var Method_GET_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.t1;
|
|
98
|
+
var Method_POST_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.x1;
|
|
99
|
+
var Method_PUT_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.y1;
|
|
100
|
+
var Method_DELETE_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.s1;
|
|
101
|
+
var Method_PATCH_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.w1;
|
|
102
|
+
var Method_OPTIONS_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.v1;
|
|
103
|
+
var Method_TRACE_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.z1;
|
|
104
|
+
var Method_HEAD_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.u1;
|
|
100
105
|
var Path = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h;
|
|
101
106
|
var PathItemObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
|
|
102
|
-
var Refined = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
103
|
-
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
107
|
+
var Refined = kotlin_community_flock_wirespec_compiler_core.$_$.h1;
|
|
108
|
+
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.j1;
|
|
104
109
|
var plus_0 = kotlin_kotlin.$_$.n7;
|
|
105
|
-
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
110
|
+
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.t;
|
|
106
111
|
var JsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.h;
|
|
107
112
|
var toString = kotlin_kotlin.$_$.bb;
|
|
108
113
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.l1;
|
|
109
114
|
var _Ref___init__impl__7qfl46 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c2;
|
|
110
115
|
var emptyList = kotlin_kotlin.$_$.b6;
|
|
111
116
|
var NotImplementedError = kotlin_kotlin.$_$.df;
|
|
112
|
-
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
113
|
-
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
117
|
+
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.m;
|
|
118
|
+
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.o;
|
|
114
119
|
var emptyMap = kotlin_kotlin.$_$.c6;
|
|
115
120
|
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i2;
|
|
116
|
-
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
121
|
+
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.p;
|
|
117
122
|
var HashSet_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
118
|
-
var DefinitionIdentifier = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
123
|
+
var DefinitionIdentifier = kotlin_community_flock_wirespec_compiler_core.$_$.k;
|
|
119
124
|
var KtMap = kotlin_kotlin.$_$.t4;
|
|
120
|
-
var
|
|
121
|
-
var
|
|
122
|
-
var
|
|
123
|
-
var
|
|
125
|
+
var String_instance = kotlin_community_flock_wirespec_compiler_core.$_$.l2;
|
|
126
|
+
var Precision_P64_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.b2;
|
|
127
|
+
var Precision_P32_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.a2;
|
|
128
|
+
var Boolean_instance = kotlin_community_flock_wirespec_compiler_core.$_$.j2;
|
|
124
129
|
var Ref__toString_impl_irb7zi = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d2;
|
|
125
130
|
var BooleanObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a;
|
|
126
|
-
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
131
|
+
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.i1;
|
|
127
132
|
var ensureNotNull = kotlin_kotlin.$_$.yf;
|
|
128
133
|
var toSet = kotlin_kotlin.$_$.p8;
|
|
129
|
-
var get_entries = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
134
|
+
var get_entries = kotlin_community_flock_wirespec_compiler_core.$_$.n;
|
|
130
135
|
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e2;
|
|
131
|
-
var FieldIdentifier = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
132
|
-
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
136
|
+
var FieldIdentifier = kotlin_community_flock_wirespec_compiler_core.$_$.u;
|
|
137
|
+
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.v;
|
|
133
138
|
var equals = kotlin_kotlin.$_$.q9;
|
|
134
139
|
var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b2;
|
|
135
140
|
var drop = kotlin_kotlin.$_$.a6;
|
|
@@ -147,9 +152,9 @@
|
|
|
147
152
|
var OpenAPI = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d;
|
|
148
153
|
var listOf_0 = kotlin_kotlin.$_$.h7;
|
|
149
154
|
var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.t1;
|
|
150
|
-
var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
151
|
-
var Channel = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
152
|
-
var Union = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
155
|
+
var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.l;
|
|
156
|
+
var Channel = kotlin_community_flock_wirespec_compiler_core.$_$.i;
|
|
157
|
+
var Union = kotlin_community_flock_wirespec_compiler_core.$_$.k1;
|
|
153
158
|
var ComponentsObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o;
|
|
154
159
|
var _Path___init__impl__6uf4pw_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l2;
|
|
155
160
|
var Path_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y;
|
|
@@ -171,9 +176,9 @@
|
|
|
171
176
|
var ReferenceObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.z;
|
|
172
177
|
var Type_ARRAY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s1;
|
|
173
178
|
var Type_OBJECT_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w1;
|
|
174
|
-
var Type_INTEGER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.u1;
|
|
175
|
-
var Type_NUMBER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v1;
|
|
176
179
|
var Type_BOOLEAN_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t1;
|
|
180
|
+
var Type_NUMBER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v1;
|
|
181
|
+
var Type_INTEGER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.u1;
|
|
177
182
|
var _MediaType___init__impl__i9gzb9 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j2;
|
|
178
183
|
var MediaType = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s;
|
|
179
184
|
var MediaTypeObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r;
|
|
@@ -206,7 +211,7 @@
|
|
|
206
211
|
initMetadataForObject(OpenApiV3Parser, 'OpenApiV3Parser');
|
|
207
212
|
//endregion
|
|
208
213
|
function Common$className$lambda(it) {
|
|
209
|
-
return Companion_getInstance().
|
|
214
|
+
return Companion_getInstance().m24(it);
|
|
210
215
|
}
|
|
211
216
|
function Common$json$lambda($this$Json) {
|
|
212
217
|
$this$Json.x15_1 = true;
|
|
@@ -215,9 +220,9 @@
|
|
|
215
220
|
function Common() {
|
|
216
221
|
Common_instance = this;
|
|
217
222
|
var tmp = this;
|
|
218
|
-
tmp.
|
|
223
|
+
tmp.u29_1 = Json(VOID, Common$json$lambda);
|
|
219
224
|
}
|
|
220
|
-
protoOf(Common).
|
|
225
|
+
protoOf(Common).v29 = function (arg) {
|
|
221
226
|
// Inline function 'kotlin.collections.flatMap' call
|
|
222
227
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
223
228
|
var destination = ArrayList_init_$Create$();
|
|
@@ -233,7 +238,7 @@
|
|
|
233
238
|
var tmp = destination;
|
|
234
239
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, Common$className$lambda);
|
|
235
240
|
};
|
|
236
|
-
protoOf(Common).
|
|
241
|
+
protoOf(Common).w29 = function (_this__u8e3s4) {
|
|
237
242
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
238
243
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
239
244
|
var destination = ArrayList_init_$Create$();
|
|
@@ -283,7 +288,7 @@
|
|
|
283
288
|
while (tmp0_iterator.h()) {
|
|
284
289
|
var element = tmp0_iterator.i();
|
|
285
290
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
286
|
-
if (element.
|
|
291
|
+
if (element.t23_1.equals(method)) {
|
|
287
292
|
destination.e(element);
|
|
288
293
|
}
|
|
289
294
|
}
|
|
@@ -299,8 +304,8 @@
|
|
|
299
304
|
return firstOrNull(destination_0);
|
|
300
305
|
}
|
|
301
306
|
function emit_0(_this__u8e3s4, $this) {
|
|
302
|
-
var tmp1_operationId = _this__u8e3s4.
|
|
303
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
307
|
+
var tmp1_operationId = _this__u8e3s4.s23_1.b1();
|
|
308
|
+
var tmp0_safe_receiver = _this__u8e3s4.r23_1;
|
|
304
309
|
var tmp;
|
|
305
310
|
var tmp_0 = tmp0_safe_receiver;
|
|
306
311
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -312,7 +317,7 @@
|
|
|
312
317
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
313
318
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
314
319
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
315
|
-
var this_0 = _this__u8e3s4.
|
|
320
|
+
var this_0 = _this__u8e3s4.y23_1;
|
|
316
321
|
var destination = ArrayList_init_$Create$();
|
|
317
322
|
// Inline function 'kotlin.collections.forEach' call
|
|
318
323
|
var tmp0_iterator = this_0.g();
|
|
@@ -320,8 +325,8 @@
|
|
|
320
325
|
var element = tmp0_iterator.i();
|
|
321
326
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
322
327
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
323
|
-
var tmp0_safe_receiver_0 = element.
|
|
324
|
-
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.
|
|
328
|
+
var tmp0_safe_receiver_0 = element.f24_1;
|
|
329
|
+
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.g24_1;
|
|
325
330
|
if (tmp0_safe_receiver_1 == null)
|
|
326
331
|
null;
|
|
327
332
|
else {
|
|
@@ -343,7 +348,7 @@
|
|
|
343
348
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
344
349
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
345
350
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
346
|
-
var this_2 = _this__u8e3s4.
|
|
351
|
+
var this_2 = _this__u8e3s4.z23_1;
|
|
347
352
|
var destination_0 = ArrayList_init_$Create$();
|
|
348
353
|
// Inline function 'kotlin.collections.forEach' call
|
|
349
354
|
var tmp0_iterator_0 = this_2.g();
|
|
@@ -351,8 +356,8 @@
|
|
|
351
356
|
var element_0 = tmp0_iterator_0.i();
|
|
352
357
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
353
358
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
354
|
-
var tmp0_safe_receiver_2 = element_0.
|
|
355
|
-
var tmp0_safe_receiver_3 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.
|
|
359
|
+
var tmp0_safe_receiver_2 = element_0.c24_1;
|
|
360
|
+
var tmp0_safe_receiver_3 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.g24_1;
|
|
356
361
|
if (tmp0_safe_receiver_3 == null)
|
|
357
362
|
null;
|
|
358
363
|
else {
|
|
@@ -374,7 +379,7 @@
|
|
|
374
379
|
// Inline function 'kotlin.collections.map' call
|
|
375
380
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
376
381
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
377
|
-
var this_4 = _this__u8e3s4.
|
|
382
|
+
var this_4 = _this__u8e3s4.y23_1;
|
|
378
383
|
var destination_1 = ArrayList_init_$Create$();
|
|
379
384
|
// Inline function 'kotlin.collections.forEach' call
|
|
380
385
|
var tmp0_iterator_1 = this_4.g();
|
|
@@ -382,7 +387,7 @@
|
|
|
382
387
|
var element_1 = tmp0_iterator_1.i();
|
|
383
388
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
384
389
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
385
|
-
var tmp0_safe_receiver_4 = element_1.
|
|
390
|
+
var tmp0_safe_receiver_4 = element_1.f24_1;
|
|
386
391
|
if (tmp0_safe_receiver_4 == null)
|
|
387
392
|
null;
|
|
388
393
|
else {
|
|
@@ -399,14 +404,14 @@
|
|
|
399
404
|
var item = tmp0_iterator_2.i();
|
|
400
405
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
401
406
|
var tmp0_in = ParameterLocation_BODY_getInstance();
|
|
402
|
-
var tmp1_schema = OpenApiV2Emitter_getInstance().
|
|
403
|
-
var tmp2_required = !item.
|
|
407
|
+
var tmp1_schema = OpenApiV2Emitter_getInstance().t24(item.h24_1);
|
|
408
|
+
var tmp2_required = !item.i24_1;
|
|
404
409
|
var tmp$ret$16 = new ParameterObject('RequestBody', tmp0_in, VOID, tmp2_required, tmp1_schema);
|
|
405
410
|
destination_2.e(tmp$ret$16);
|
|
406
411
|
}
|
|
407
412
|
var tmp_3 = destination_2;
|
|
408
413
|
// Inline function 'kotlin.collections.map' call
|
|
409
|
-
var this_6 = _this__u8e3s4.
|
|
414
|
+
var this_6 = _this__u8e3s4.v23_1;
|
|
410
415
|
// Inline function 'kotlin.collections.mapTo' call
|
|
411
416
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_6, 10));
|
|
412
417
|
var tmp0_iterator_3 = this_6.g();
|
|
@@ -418,7 +423,7 @@
|
|
|
418
423
|
}
|
|
419
424
|
var tmp_4 = plus(tmp_3, destination_3);
|
|
420
425
|
// Inline function 'kotlin.collections.map' call
|
|
421
|
-
var this_7 = _this__u8e3s4.
|
|
426
|
+
var this_7 = _this__u8e3s4.w23_1;
|
|
422
427
|
// Inline function 'kotlin.collections.mapTo' call
|
|
423
428
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_7, 10));
|
|
424
429
|
var tmp0_iterator_4 = this_7.g();
|
|
@@ -430,7 +435,7 @@
|
|
|
430
435
|
}
|
|
431
436
|
var tmp5_parameters = plus(tmp_4, destination_4);
|
|
432
437
|
// Inline function 'kotlin.collections.associate' call
|
|
433
|
-
var this_8 = _this__u8e3s4.
|
|
438
|
+
var this_8 = _this__u8e3s4.z23_1;
|
|
434
439
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_8, 10)), 16);
|
|
435
440
|
// Inline function 'kotlin.collections.associateTo' call
|
|
436
441
|
var destination_5 = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -439,8 +444,8 @@
|
|
|
439
444
|
var element_2 = tmp0_iterator_5.i();
|
|
440
445
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
441
446
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
442
|
-
var tmp_5 = _StatusCode___init__impl__t1yi9q(element_2.
|
|
443
|
-
var tmp0_safe_receiver_5 = _this__u8e3s4.
|
|
447
|
+
var tmp_5 = _StatusCode___init__impl__t1yi9q(element_2.a24_1);
|
|
448
|
+
var tmp0_safe_receiver_5 = _this__u8e3s4.r23_1;
|
|
444
449
|
var tmp_6;
|
|
445
450
|
var tmp_7 = tmp0_safe_receiver_5;
|
|
446
451
|
if ((tmp_7 == null ? null : new Comment(tmp_7)) == null) {
|
|
@@ -449,9 +454,9 @@
|
|
|
449
454
|
tmp_6 = _Comment___get_value__impl__8r3pla(tmp0_safe_receiver_5);
|
|
450
455
|
}
|
|
451
456
|
var tmp1_elvis_lhs = tmp_6;
|
|
452
|
-
var tmp4_description = tmp1_elvis_lhs == null ? _this__u8e3s4.
|
|
457
|
+
var tmp4_description = tmp1_elvis_lhs == null ? _this__u8e3s4.s23_1.b1() + ' ' + element_2.a24_1 + ' response' : tmp1_elvis_lhs;
|
|
453
458
|
// Inline function 'kotlin.collections.associate' call
|
|
454
|
-
var this_9 = element_2.
|
|
459
|
+
var this_9 = element_2.b24_1;
|
|
455
460
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_9, 10)), 16);
|
|
456
461
|
// Inline function 'kotlin.collections.associateTo' call
|
|
457
462
|
var destination_6 = LinkedHashMap_init_$Create$(capacity_0);
|
|
@@ -460,10 +465,10 @@
|
|
|
460
465
|
var element_3 = tmp0_iterator_6.i();
|
|
461
466
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
462
467
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
463
|
-
var pair = to(element_3.
|
|
468
|
+
var pair = to(element_3.n24_1.b1(), new HeaderObject(VOID, emitType_0(element_3.o24_1, OpenApiV2Emitter_getInstance()).p2_1, emitFormat(element_3.o24_1, OpenApiV2Emitter_getInstance()), element_3.o24_1.j24() ? OpenApiV2Emitter_getInstance().t24(element_3.o24_1) : null));
|
|
464
469
|
destination_6.m2(pair.ce_1, pair.de_1);
|
|
465
470
|
}
|
|
466
|
-
var tmp2_safe_receiver = element_2.
|
|
471
|
+
var tmp2_safe_receiver = element_2.c24_1;
|
|
467
472
|
var tmp_8;
|
|
468
473
|
if (tmp2_safe_receiver == null) {
|
|
469
474
|
tmp_8 = null;
|
|
@@ -472,7 +477,7 @@
|
|
|
472
477
|
// Inline function 'kotlin.contracts.contract' call
|
|
473
478
|
var tmp_9;
|
|
474
479
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
475
|
-
var tmp_10 = tmp2_safe_receiver.
|
|
480
|
+
var tmp_10 = tmp2_safe_receiver.h24_1;
|
|
476
481
|
if (!(tmp_10 instanceof Unit)) {
|
|
477
482
|
tmp_9 = tmp2_safe_receiver;
|
|
478
483
|
} else {
|
|
@@ -489,12 +494,12 @@
|
|
|
489
494
|
// Inline function 'kotlin.contracts.contract' call
|
|
490
495
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
491
496
|
var tmp_12;
|
|
492
|
-
switch (tmp3_safe_receiver.
|
|
497
|
+
switch (tmp3_safe_receiver.h24_1.j24()) {
|
|
493
498
|
case false:
|
|
494
|
-
tmp_12 = OpenApiV2Emitter_getInstance().
|
|
499
|
+
tmp_12 = OpenApiV2Emitter_getInstance().t24(tmp3_safe_receiver.h24_1);
|
|
495
500
|
break;
|
|
496
501
|
case true:
|
|
497
|
-
tmp_12 = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), OpenApiV2Emitter_getInstance().
|
|
502
|
+
tmp_12 = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), OpenApiV2Emitter_getInstance().t24(tmp3_safe_receiver.h24_1));
|
|
498
503
|
break;
|
|
499
504
|
default:
|
|
500
505
|
noWhenBranchMatchedException();
|
|
@@ -512,12 +517,13 @@
|
|
|
512
517
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenApiV2Emitter$emitSegment$lambda);
|
|
513
518
|
}
|
|
514
519
|
function emitParameter(_this__u8e3s4, $this, location) {
|
|
515
|
-
var tmp1_name = _this__u8e3s4.
|
|
516
|
-
var tmp2_type = emitType_0(_this__u8e3s4.
|
|
520
|
+
var tmp1_name = _this__u8e3s4.n24_1.b1();
|
|
521
|
+
var tmp2_type = emitType_0(_this__u8e3s4.o24_1, $this);
|
|
522
|
+
var tmp3_format = emitFormat(_this__u8e3s4.o24_1, $this);
|
|
517
523
|
var tmp;
|
|
518
|
-
switch (_this__u8e3s4.
|
|
524
|
+
switch (_this__u8e3s4.o24_1.j24()) {
|
|
519
525
|
case true:
|
|
520
|
-
var emit = $this.
|
|
526
|
+
var emit = $this.t24(_this__u8e3s4.o24_1);
|
|
521
527
|
var tmp_0;
|
|
522
528
|
if (emit instanceof ReferenceObject) {
|
|
523
529
|
tmp_0 = emit;
|
|
@@ -538,34 +544,38 @@
|
|
|
538
544
|
noWhenBranchMatchedException();
|
|
539
545
|
break;
|
|
540
546
|
}
|
|
541
|
-
var
|
|
542
|
-
var
|
|
543
|
-
return new ParameterObject(tmp1_name, location, VOID,
|
|
547
|
+
var tmp4_items = tmp;
|
|
548
|
+
var tmp5_required = !_this__u8e3s4.p24_1;
|
|
549
|
+
return new ParameterObject(tmp1_name, location, VOID, tmp5_required, VOID, tmp2_type, tmp4_items, tmp3_format);
|
|
544
550
|
}
|
|
545
551
|
function emitType(_this__u8e3s4, $this) {
|
|
546
552
|
var tmp;
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
case 1:
|
|
553
|
+
if (_this__u8e3s4 instanceof String_0) {
|
|
554
|
+
tmp = Type_STRING_getInstance();
|
|
555
|
+
} else {
|
|
556
|
+
if (_this__u8e3s4 instanceof Integer) {
|
|
552
557
|
tmp = Type_INTEGER_getInstance();
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
558
|
+
} else {
|
|
559
|
+
if (_this__u8e3s4 instanceof Number_0) {
|
|
560
|
+
tmp = Type_NUMBER_getInstance();
|
|
561
|
+
} else {
|
|
562
|
+
if (_this__u8e3s4 instanceof Boolean_0) {
|
|
563
|
+
tmp = Type_BOOLEAN_getInstance();
|
|
564
|
+
} else {
|
|
565
|
+
if (_this__u8e3s4 instanceof Bytes) {
|
|
566
|
+
tmp = Type_STRING_getInstance();
|
|
567
|
+
} else {
|
|
568
|
+
noWhenBranchMatchedException();
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
}
|
|
563
573
|
}
|
|
564
574
|
return tmp;
|
|
565
575
|
}
|
|
566
576
|
function emitType_0(_this__u8e3s4, $this) {
|
|
567
577
|
var tmp;
|
|
568
|
-
if (_this__u8e3s4.
|
|
578
|
+
if (_this__u8e3s4.j24()) {
|
|
569
579
|
tmp = Type_ARRAY_getInstance();
|
|
570
580
|
} else {
|
|
571
581
|
var tmp_0;
|
|
@@ -590,13 +600,61 @@
|
|
|
590
600
|
}
|
|
591
601
|
return tmp;
|
|
592
602
|
}
|
|
603
|
+
function emitFormat(_this__u8e3s4, $this) {
|
|
604
|
+
var tmp;
|
|
605
|
+
if (_this__u8e3s4 instanceof Primitive) {
|
|
606
|
+
var t = _this__u8e3s4.j23_1;
|
|
607
|
+
var tmp_0;
|
|
608
|
+
if (t instanceof Number_0) {
|
|
609
|
+
var tmp_1;
|
|
610
|
+
switch (t.n23_1.q2_1) {
|
|
611
|
+
case 0:
|
|
612
|
+
tmp_1 = 'float';
|
|
613
|
+
break;
|
|
614
|
+
case 1:
|
|
615
|
+
tmp_1 = 'double';
|
|
616
|
+
break;
|
|
617
|
+
default:
|
|
618
|
+
noWhenBranchMatchedException();
|
|
619
|
+
break;
|
|
620
|
+
}
|
|
621
|
+
tmp_0 = tmp_1;
|
|
622
|
+
} else {
|
|
623
|
+
if (t instanceof Integer) {
|
|
624
|
+
var tmp_2;
|
|
625
|
+
switch (t.p23_1.q2_1) {
|
|
626
|
+
case 0:
|
|
627
|
+
tmp_2 = 'int32';
|
|
628
|
+
break;
|
|
629
|
+
case 1:
|
|
630
|
+
tmp_2 = 'int64';
|
|
631
|
+
break;
|
|
632
|
+
default:
|
|
633
|
+
noWhenBranchMatchedException();
|
|
634
|
+
break;
|
|
635
|
+
}
|
|
636
|
+
tmp_0 = tmp_2;
|
|
637
|
+
} else {
|
|
638
|
+
if (t instanceof Bytes) {
|
|
639
|
+
tmp_0 = 'binary';
|
|
640
|
+
} else {
|
|
641
|
+
tmp_0 = null;
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
tmp = tmp_0;
|
|
646
|
+
} else {
|
|
647
|
+
tmp = null;
|
|
648
|
+
}
|
|
649
|
+
return tmp;
|
|
650
|
+
}
|
|
593
651
|
function OpenApiV2Emitter$emitSegment$lambda(it) {
|
|
594
652
|
var tmp;
|
|
595
653
|
if (it instanceof Param) {
|
|
596
|
-
tmp = '{' + it.
|
|
654
|
+
tmp = '{' + it.r24_1.b1() + '}';
|
|
597
655
|
} else {
|
|
598
656
|
if (it instanceof Literal) {
|
|
599
|
-
tmp = it.
|
|
657
|
+
tmp = it.a25_1;
|
|
600
658
|
} else {
|
|
601
659
|
noWhenBranchMatchedException();
|
|
602
660
|
}
|
|
@@ -606,15 +664,15 @@
|
|
|
606
664
|
function OpenApiV2Emitter() {
|
|
607
665
|
OpenApiV2Emitter_instance = this;
|
|
608
666
|
Emitter.call(this, get_noLogger());
|
|
609
|
-
this.
|
|
667
|
+
this.z29_1 = '';
|
|
610
668
|
}
|
|
611
|
-
protoOf(OpenApiV2Emitter).
|
|
612
|
-
return this.
|
|
669
|
+
protoOf(OpenApiV2Emitter).n25 = function () {
|
|
670
|
+
return this.z29_1;
|
|
613
671
|
};
|
|
614
672
|
protoOf(OpenApiV2Emitter).p22 = function (ast) {
|
|
615
673
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
616
|
-
var this_0 = Common_getInstance().
|
|
617
|
-
var value = this.
|
|
674
|
+
var this_0 = Common_getInstance().u29_1;
|
|
675
|
+
var value = this.a2a(ast);
|
|
618
676
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
619
677
|
var this_1 = this_0.mo();
|
|
620
678
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -623,25 +681,25 @@
|
|
|
623
681
|
var tmp$ret$2 = this_0.b15(tmp$ret$1, value);
|
|
624
682
|
return listOf(new Emitted('SwaggerObject', tmp$ret$2));
|
|
625
683
|
};
|
|
626
|
-
protoOf(OpenApiV2Emitter).
|
|
627
|
-
return this.
|
|
684
|
+
protoOf(OpenApiV2Emitter).r25 = function (type, ast) {
|
|
685
|
+
return this.h26();
|
|
628
686
|
};
|
|
629
|
-
protoOf(OpenApiV2Emitter).
|
|
630
|
-
return this.
|
|
687
|
+
protoOf(OpenApiV2Emitter).y25 = function (enum_0) {
|
|
688
|
+
return this.h26();
|
|
631
689
|
};
|
|
632
|
-
protoOf(OpenApiV2Emitter).
|
|
633
|
-
return this.
|
|
690
|
+
protoOf(OpenApiV2Emitter).u25 = function (refined) {
|
|
691
|
+
return this.h26();
|
|
634
692
|
};
|
|
635
|
-
protoOf(OpenApiV2Emitter).
|
|
636
|
-
return this.
|
|
693
|
+
protoOf(OpenApiV2Emitter).c26 = function (endpoint) {
|
|
694
|
+
return this.h26();
|
|
637
695
|
};
|
|
638
|
-
protoOf(OpenApiV2Emitter).
|
|
639
|
-
return this.
|
|
696
|
+
protoOf(OpenApiV2Emitter).a26 = function (union) {
|
|
697
|
+
return this.h26();
|
|
640
698
|
};
|
|
641
|
-
protoOf(OpenApiV2Emitter).
|
|
642
|
-
return this.
|
|
699
|
+
protoOf(OpenApiV2Emitter).b26 = function (channel) {
|
|
700
|
+
return this.h26();
|
|
643
701
|
};
|
|
644
|
-
protoOf(OpenApiV2Emitter).
|
|
702
|
+
protoOf(OpenApiV2Emitter).a2a = function (ast) {
|
|
645
703
|
var tmp = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, '0.0.0');
|
|
646
704
|
var tmp_0 = listOf('application/json');
|
|
647
705
|
var tmp_1 = listOf('application/json');
|
|
@@ -663,7 +721,7 @@
|
|
|
663
721
|
while (tmp0_iterator_0.h()) {
|
|
664
722
|
var element_0 = tmp0_iterator_0.i();
|
|
665
723
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
666
|
-
var key = element_0.
|
|
724
|
+
var key = element_0.u23_1;
|
|
667
725
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
668
726
|
var value = destination_0.f2(key);
|
|
669
727
|
var tmp_2;
|
|
@@ -708,9 +766,10 @@
|
|
|
708
766
|
var item_0 = tmp0_iterator_3.i();
|
|
709
767
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
710
768
|
var tmp0_in = ParameterLocation_PATH_getInstance();
|
|
711
|
-
var tmp1_name = item_0.
|
|
712
|
-
var tmp2_type = emitType_0(item_0.
|
|
713
|
-
var
|
|
769
|
+
var tmp1_name = item_0.r24_1.b1();
|
|
770
|
+
var tmp2_type = emitType_0(item_0.s24_1, OpenApiV2Emitter_getInstance());
|
|
771
|
+
var tmp3_format = emitFormat(item_0.s24_1, OpenApiV2Emitter_getInstance());
|
|
772
|
+
var tmp$ret$12 = new ParameterObject(tmp1_name, tmp0_in, VOID, VOID, VOID, tmp2_type, VOID, tmp3_format);
|
|
714
773
|
destination_3.e(tmp$ret$12);
|
|
715
774
|
}
|
|
716
775
|
var tmp1_get = emit(endpoints, OpenApiV2Emitter_getInstance(), Method_GET_getInstance());
|
|
@@ -744,9 +803,9 @@
|
|
|
744
803
|
var element_3 = tmp0_iterator_5.i();
|
|
745
804
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
746
805
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
747
|
-
var tmp_5 = element_3.
|
|
806
|
+
var tmp_5 = element_3.e25_1.b1();
|
|
748
807
|
var tmp0_type = Type_STRING_getInstance();
|
|
749
|
-
var tmp1_pattern = element_3.
|
|
808
|
+
var tmp1_pattern = element_3.f25_1.w25_1;
|
|
750
809
|
var pair = to(tmp_5, new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_pattern, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_type));
|
|
751
810
|
destination_5.m2(pair.ce_1, pair.de_1);
|
|
752
811
|
}
|
|
@@ -772,7 +831,7 @@
|
|
|
772
831
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
773
832
|
var tmp_7 = element_5.z22_1.b1();
|
|
774
833
|
// Inline function 'kotlin.collections.associate' call
|
|
775
|
-
var this_0 = element_5.a23_1.
|
|
834
|
+
var this_0 = element_5.a23_1.t25_1;
|
|
776
835
|
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
777
836
|
// Inline function 'kotlin.collections.associateTo' call
|
|
778
837
|
var destination_8 = LinkedHashMap_init_$Create$(capacity_1);
|
|
@@ -781,20 +840,20 @@
|
|
|
781
840
|
var element_6 = tmp0_iterator_8.i();
|
|
782
841
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
783
842
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
784
|
-
var pair_0 = OpenApiV2Emitter_getInstance().
|
|
843
|
+
var pair_0 = OpenApiV2Emitter_getInstance().x24(element_6);
|
|
785
844
|
destination_8.m2(pair_0.ce_1, pair_0.de_1);
|
|
786
845
|
}
|
|
787
846
|
// Inline function 'kotlin.takeIf' call
|
|
788
847
|
// Inline function 'kotlin.collections.map' call
|
|
789
848
|
// Inline function 'kotlin.collections.filter' call
|
|
790
849
|
// Inline function 'kotlin.collections.filterTo' call
|
|
791
|
-
var this_1 = element_5.a23_1.
|
|
850
|
+
var this_1 = element_5.a23_1.t25_1;
|
|
792
851
|
var destination_9 = ArrayList_init_$Create$();
|
|
793
852
|
var tmp0_iterator_9 = this_1.g();
|
|
794
853
|
while (tmp0_iterator_9.h()) {
|
|
795
854
|
var element_7 = tmp0_iterator_9.i();
|
|
796
855
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
797
|
-
if (!element_7.
|
|
856
|
+
if (!element_7.p24_1) {
|
|
798
857
|
destination_9.e(element_7);
|
|
799
858
|
}
|
|
800
859
|
}
|
|
@@ -804,7 +863,7 @@
|
|
|
804
863
|
while (tmp0_iterator_10.h()) {
|
|
805
864
|
var item_1 = tmp0_iterator_10.i();
|
|
806
865
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
807
|
-
var tmp$ret$31 = item_1.
|
|
866
|
+
var tmp$ret$31 = item_1.n24_1.b1();
|
|
808
867
|
destination_10.e(tmp$ret$31);
|
|
809
868
|
}
|
|
810
869
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -840,10 +899,10 @@
|
|
|
840
899
|
var element_9 = tmp0_iterator_12.i();
|
|
841
900
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
842
901
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
843
|
-
var tmp_10 = element_9.
|
|
902
|
+
var tmp_10 = element_9.h25_1.b1();
|
|
844
903
|
var tmp0_type_0 = Type_STRING_getInstance();
|
|
845
904
|
// Inline function 'kotlin.collections.map' call
|
|
846
|
-
var this_2 = element_9.
|
|
905
|
+
var this_2 = element_9.i25_1;
|
|
847
906
|
// Inline function 'kotlin.collections.mapTo' call
|
|
848
907
|
var destination_13 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
|
|
849
908
|
var tmp0_iterator_13 = this_2.g();
|
|
@@ -858,17 +917,19 @@
|
|
|
858
917
|
}
|
|
859
918
|
return new SwaggerObject('2.0', tmp, VOID, VOID, VOID, tmp_0, tmp_1, tmp_4, plus_0(tmp_9, destination_12));
|
|
860
919
|
};
|
|
861
|
-
protoOf(OpenApiV2Emitter).
|
|
862
|
-
return to(_this__u8e3s4.
|
|
920
|
+
protoOf(OpenApiV2Emitter).x24 = function (_this__u8e3s4) {
|
|
921
|
+
return to(_this__u8e3s4.n24_1.b1(), this.t24(_this__u8e3s4.o24_1));
|
|
863
922
|
};
|
|
864
|
-
protoOf(OpenApiV2Emitter).
|
|
923
|
+
protoOf(OpenApiV2Emitter).t24 = function (_this__u8e3s4) {
|
|
865
924
|
// Inline function 'kotlin.let' call
|
|
866
925
|
var tmp;
|
|
867
926
|
if (_this__u8e3s4 instanceof Custom) {
|
|
868
927
|
tmp = new ReferenceObject(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.v22_1));
|
|
869
928
|
} else {
|
|
870
929
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
871
|
-
|
|
930
|
+
var tmp1_type = emitType(_this__u8e3s4.j23_1, this);
|
|
931
|
+
var tmp2_format = emitFormat(_this__u8e3s4, this);
|
|
932
|
+
tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, tmp2_format, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_type);
|
|
872
933
|
} else {
|
|
873
934
|
if (_this__u8e3s4 instanceof Any) {
|
|
874
935
|
var message = 'Cannot map Any';
|
|
@@ -886,7 +947,7 @@
|
|
|
886
947
|
// Inline function 'kotlin.contracts.contract' call
|
|
887
948
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
888
949
|
var it = tmp;
|
|
889
|
-
return _this__u8e3s4.
|
|
950
|
+
return _this__u8e3s4.j24() ? new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), it) : it;
|
|
890
951
|
};
|
|
891
952
|
var OpenApiV2Emitter_instance;
|
|
892
953
|
function OpenApiV2Emitter_getInstance() {
|
|
@@ -1018,7 +1079,7 @@
|
|
|
1018
1079
|
tmp_1 = toReference(_this__u8e3s4, OpenApiV2Parser_instance, schema);
|
|
1019
1080
|
} else {
|
|
1020
1081
|
if (schema instanceof SchemaObject) {
|
|
1021
|
-
tmp_1 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, schema, Common_getInstance().
|
|
1082
|
+
tmp_1 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, schema, Common_getInstance().v29([name, 'RequestBody']));
|
|
1022
1083
|
} else {
|
|
1023
1084
|
if (schema == null) {
|
|
1024
1085
|
var reason = 'Not yet implemented';
|
|
@@ -1137,7 +1198,7 @@
|
|
|
1137
1198
|
tmp_11 = toReference(_this__u8e3s4, OpenApiV2Parser_instance, tmp1_safe_receiver);
|
|
1138
1199
|
} else {
|
|
1139
1200
|
if (tmp1_safe_receiver instanceof SchemaObject) {
|
|
1140
|
-
tmp_11 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
1201
|
+
tmp_11 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, tmp1_safe_receiver, Common_getInstance().v29([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']));
|
|
1141
1202
|
} else {
|
|
1142
1203
|
noWhenBranchMatchedException();
|
|
1143
1204
|
}
|
|
@@ -1156,7 +1217,7 @@
|
|
|
1156
1217
|
while (tmp0_iterator_12.h()) {
|
|
1157
1218
|
var e = tmp0_iterator_12.i();
|
|
1158
1219
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
1159
|
-
var key = to(e.
|
|
1220
|
+
var key = to(e.a24_1, e.c24_1);
|
|
1160
1221
|
if (set.e(key)) {
|
|
1161
1222
|
list_1.e(e);
|
|
1162
1223
|
}
|
|
@@ -1217,27 +1278,27 @@
|
|
|
1217
1278
|
while (tmp0_iterator_1.h()) {
|
|
1218
1279
|
var element_0 = tmp0_iterator_1.i();
|
|
1219
1280
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseDefinitions.<anonymous>' call
|
|
1220
|
-
var list = flatten(_this__u8e3s4, OpenApiV2Parser_instance, element_0.b1(), Common_getInstance().
|
|
1281
|
+
var list = flatten(_this__u8e3s4, OpenApiV2Parser_instance, element_0.b1(), Common_getInstance().v29([element_0.a1()]));
|
|
1221
1282
|
addAll(destination_0, list);
|
|
1222
1283
|
}
|
|
1223
1284
|
return destination_0;
|
|
1224
1285
|
}
|
|
1225
|
-
function mapType(_this__u8e3s4, $this) {
|
|
1286
|
+
function mapType(_this__u8e3s4, $this, format) {
|
|
1226
1287
|
// Inline function 'kotlin.text.lowercase' call
|
|
1227
1288
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1228
1289
|
var tmp;
|
|
1229
1290
|
switch (_this__u8e3s4.toLowerCase()) {
|
|
1230
1291
|
case 'string':
|
|
1231
|
-
tmp =
|
|
1292
|
+
tmp = String_instance;
|
|
1232
1293
|
break;
|
|
1233
1294
|
case 'number':
|
|
1234
|
-
tmp =
|
|
1295
|
+
tmp = new Number_0(format === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance());
|
|
1235
1296
|
break;
|
|
1236
1297
|
case 'integer':
|
|
1237
|
-
tmp =
|
|
1298
|
+
tmp = new Integer(format === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance());
|
|
1238
1299
|
break;
|
|
1239
1300
|
case 'boolean':
|
|
1240
|
-
tmp =
|
|
1301
|
+
tmp = Boolean_instance;
|
|
1241
1302
|
break;
|
|
1242
1303
|
default:
|
|
1243
1304
|
var message = 'Cannot map type: ' + _this__u8e3s4;
|
|
@@ -1498,7 +1559,7 @@
|
|
|
1498
1559
|
while (tmp0_iterator_0.h()) {
|
|
1499
1560
|
var e = tmp0_iterator_0.i();
|
|
1500
1561
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
|
|
1501
|
-
var key = e.
|
|
1562
|
+
var key = e.n24_1;
|
|
1502
1563
|
if (set.e(key)) {
|
|
1503
1564
|
list_0.e(e);
|
|
1504
1565
|
}
|
|
@@ -1537,7 +1598,7 @@
|
|
|
1537
1598
|
tmp_9 = emptyList();
|
|
1538
1599
|
} else {
|
|
1539
1600
|
if (value instanceof SchemaObject) {
|
|
1540
|
-
tmp_9 = flatten(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().
|
|
1601
|
+
tmp_9 = flatten(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().v29([name, key_0]));
|
|
1541
1602
|
} else {
|
|
1542
1603
|
noWhenBranchMatchedException();
|
|
1543
1604
|
}
|
|
@@ -1596,7 +1657,7 @@
|
|
|
1596
1657
|
var key_1 = element_2.a1();
|
|
1597
1658
|
// Inline function 'kotlin.collections.component2' call
|
|
1598
1659
|
var value_0 = element_2.b1();
|
|
1599
|
-
var list_3 = flatten_0(_this__u8e3s4, OpenApiV2Parser_instance, value_0, Common_getInstance().
|
|
1660
|
+
var list_3 = flatten_0(_this__u8e3s4, OpenApiV2Parser_instance, value_0, Common_getInstance().v29([name, key_1]));
|
|
1600
1661
|
addAll(destination_3, list_3);
|
|
1601
1662
|
}
|
|
1602
1663
|
|
|
@@ -1611,7 +1672,7 @@
|
|
|
1611
1672
|
tmp_11 = emptyList();
|
|
1612
1673
|
} else {
|
|
1613
1674
|
if (it_0 instanceof SchemaObject) {
|
|
1614
|
-
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().
|
|
1675
|
+
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().v29([name, 'Array']));
|
|
1615
1676
|
} else {
|
|
1616
1677
|
if (it_0 == null) {
|
|
1617
1678
|
tmp_11 = emptyList();
|
|
@@ -1669,9 +1730,9 @@
|
|
|
1669
1730
|
}
|
|
1670
1731
|
tmp = tmp_0;
|
|
1671
1732
|
} else if (!(schema.d1n_1 == null)) {
|
|
1672
|
-
tmp = new Custom(Common_getInstance().
|
|
1733
|
+
tmp = new Custom(Common_getInstance().v29([getReference(reference, OpenApiV2Parser_instance)]), false, false);
|
|
1673
1734
|
} else if (isPrimitive(schema.e1n_1)) {
|
|
1674
|
-
tmp = new Primitive(toPrimitive(ensureNotNull(schema.e1n_1), OpenApiV2Parser_instance), false, false);
|
|
1735
|
+
tmp = new Primitive(toPrimitive(ensureNotNull(schema.e1n_1), OpenApiV2Parser_instance, schema.l1m_1), false, false);
|
|
1675
1736
|
} else {
|
|
1676
1737
|
var tmp0_subject = schema.e1n_1;
|
|
1677
1738
|
var tmp_1;
|
|
@@ -1682,7 +1743,7 @@
|
|
|
1682
1743
|
tmp_2 = toIterable(toReference(_this__u8e3s4, OpenApiV2Parser_instance, items));
|
|
1683
1744
|
} else {
|
|
1684
1745
|
if (items instanceof SchemaObject) {
|
|
1685
|
-
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, items, Common_getInstance().
|
|
1746
|
+
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, items, Common_getInstance().v29([getReference(reference, OpenApiV2Parser_instance), 'Array'])));
|
|
1686
1747
|
} else {
|
|
1687
1748
|
if (items == null) {
|
|
1688
1749
|
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.n1n_1);
|
|
@@ -1696,10 +1757,10 @@
|
|
|
1696
1757
|
} else {
|
|
1697
1758
|
var tmp_3;
|
|
1698
1759
|
if (refOrSchema instanceof SchemaObject) {
|
|
1699
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
1760
|
+
tmp_3 = new Custom(Common_getInstance().v29([getReference(reference, OpenApiV2Parser_instance)]), false);
|
|
1700
1761
|
} else {
|
|
1701
1762
|
if (refOrSchema instanceof ReferenceObject) {
|
|
1702
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
1763
|
+
tmp_3 = new Custom(Common_getInstance().v29([getReference(refOrSchema, OpenApiV2Parser_instance)]), false);
|
|
1703
1764
|
} else {
|
|
1704
1765
|
noWhenBranchMatchedException();
|
|
1705
1766
|
}
|
|
@@ -1759,7 +1820,7 @@
|
|
|
1759
1820
|
case 2:
|
|
1760
1821
|
case 1:
|
|
1761
1822
|
case 3:
|
|
1762
|
-
tmp_3 = new Primitive(toPrimitive(type, $this), false, !(schema.i1n_1 == null));
|
|
1823
|
+
tmp_3 = new Primitive(toPrimitive(type, $this, schema.l1m_1), false, !(schema.i1n_1 == null));
|
|
1763
1824
|
break;
|
|
1764
1825
|
case -1:
|
|
1765
1826
|
case 5:
|
|
@@ -1847,25 +1908,25 @@
|
|
|
1847
1908
|
var tmp$ret$0 = tmp_0;
|
|
1848
1909
|
result.m2(element, tmp$ret$0);
|
|
1849
1910
|
}
|
|
1850
|
-
return tmp.
|
|
1911
|
+
return tmp.w29(result);
|
|
1851
1912
|
}
|
|
1852
1913
|
function getReference(_this__u8e3s4, $this) {
|
|
1853
1914
|
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.n1n_1), ['/']).k(2);
|
|
1854
1915
|
}
|
|
1855
|
-
function toPrimitive(_this__u8e3s4, $this) {
|
|
1916
|
+
function toPrimitive(_this__u8e3s4, $this, format) {
|
|
1856
1917
|
var tmp;
|
|
1857
1918
|
switch (_this__u8e3s4.q2_1) {
|
|
1858
1919
|
case 0:
|
|
1859
|
-
tmp =
|
|
1920
|
+
tmp = String_instance;
|
|
1860
1921
|
break;
|
|
1861
1922
|
case 2:
|
|
1862
|
-
tmp =
|
|
1923
|
+
tmp = new Integer(format === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance());
|
|
1863
1924
|
break;
|
|
1864
1925
|
case 1:
|
|
1865
|
-
tmp =
|
|
1926
|
+
tmp = new Number_0(format === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance());
|
|
1866
1927
|
break;
|
|
1867
1928
|
case 3:
|
|
1868
|
-
tmp =
|
|
1929
|
+
tmp = Boolean_instance;
|
|
1869
1930
|
break;
|
|
1870
1931
|
default:
|
|
1871
1932
|
var message = 'Type is not a primitive';
|
|
@@ -1907,7 +1968,7 @@
|
|
|
1907
1968
|
}
|
|
1908
1969
|
tmp_0 = tmp_3;
|
|
1909
1970
|
} else {
|
|
1910
|
-
tmp_0 = new Primitive(mapType(header.g1o_1, $this), false, false);
|
|
1971
|
+
tmp_0 = new Primitive(mapType(header.g1o_1, $this, header.h1o_1), false, false);
|
|
1911
1972
|
}
|
|
1912
1973
|
return new Field(tmp, tmp_0, true);
|
|
1913
1974
|
}
|
|
@@ -1930,7 +1991,7 @@
|
|
|
1930
1991
|
var tmp;
|
|
1931
1992
|
if (value instanceof SchemaObject) {
|
|
1932
1993
|
var tmp_0 = new FieldIdentifier(key);
|
|
1933
|
-
var tmp_1 = !(value.d1n_1 == null) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().
|
|
1994
|
+
var tmp_1 = !(value.d1n_1 == null) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().v29([name, key])) : equals(value.e1n_1, Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().v29([name, key, 'Array'])) : toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().v29([name, key]));
|
|
1934
1995
|
var tmp1_safe_receiver = schema.c1n_1;
|
|
1935
1996
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p1(key);
|
|
1936
1997
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
@@ -1958,7 +2019,7 @@
|
|
|
1958
2019
|
var it = resolve_3(_this__u8e3s4, $this, parameter);
|
|
1959
2020
|
var tmp;
|
|
1960
2021
|
if (!(parameter.f1j_1 == null)) {
|
|
1961
|
-
tmp = new Custom(Common_getInstance().
|
|
2022
|
+
tmp = new Custom(Common_getInstance().v29([name, 'Parameter', it.k1i_1]), false);
|
|
1962
2023
|
} else {
|
|
1963
2024
|
var type = it.p1i_1;
|
|
1964
2025
|
var tmp_0;
|
|
@@ -1973,7 +2034,7 @@
|
|
|
1973
2034
|
|
|
1974
2035
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>.<anonymous>' call
|
|
1975
2036
|
|
|
1976
|
-
var primitive = toPrimitive(type, OpenApiV2Parser_instance);
|
|
2037
|
+
var primitive = toPrimitive(type, OpenApiV2Parser_instance, it.r1i_1);
|
|
1977
2038
|
tmp_0 = new Primitive(primitive, false);
|
|
1978
2039
|
break;
|
|
1979
2040
|
case 4:
|
|
@@ -1989,28 +2050,38 @@
|
|
|
1989
2050
|
}
|
|
1990
2051
|
|
|
1991
2052
|
var tmp1_safe_receiver = tmp_1;
|
|
1992
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.e1n_1;
|
|
1993
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, OpenApiV2Parser_instance);
|
|
1994
2053
|
var tmp_2;
|
|
1995
|
-
if (
|
|
2054
|
+
if (tmp1_safe_receiver == null) {
|
|
1996
2055
|
tmp_2 = null;
|
|
1997
2056
|
} else {
|
|
1998
2057
|
// Inline function 'kotlin.let' call
|
|
1999
2058
|
// Inline function 'kotlin.contracts.contract' call
|
|
2000
2059
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>.<anonymous>' call
|
|
2001
|
-
|
|
2060
|
+
var tmp0_safe_receiver_0 = tmp1_safe_receiver.e1n_1;
|
|
2061
|
+
tmp_2 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, OpenApiV2Parser_instance, tmp1_safe_receiver.l1m_1);
|
|
2002
2062
|
}
|
|
2003
2063
|
|
|
2004
|
-
var
|
|
2064
|
+
var tmp2_safe_receiver = tmp_2;
|
|
2005
2065
|
var tmp_3;
|
|
2006
|
-
if (
|
|
2066
|
+
if (tmp2_safe_receiver == null) {
|
|
2067
|
+
tmp_3 = null;
|
|
2068
|
+
} else {
|
|
2069
|
+
// Inline function 'kotlin.let' call
|
|
2070
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2071
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>.<anonymous>' call
|
|
2072
|
+
tmp_3 = new Primitive(tmp2_safe_receiver, true);
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2075
|
+
var tmp3_elvis_lhs = tmp_3;
|
|
2076
|
+
var tmp_4;
|
|
2077
|
+
if (tmp3_elvis_lhs == null) {
|
|
2007
2078
|
var reason = 'Not yet implemented';
|
|
2008
2079
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
2009
2080
|
} else {
|
|
2010
|
-
|
|
2081
|
+
tmp_4 = tmp3_elvis_lhs;
|
|
2011
2082
|
}
|
|
2012
2083
|
|
|
2013
|
-
tmp_0 =
|
|
2084
|
+
tmp_0 = tmp_4;
|
|
2014
2085
|
break;
|
|
2015
2086
|
case 5:
|
|
2016
2087
|
var reason_0 = 'Not yet implemented';
|
|
@@ -2030,9 +2101,9 @@
|
|
|
2030
2101
|
// Inline function 'kotlin.contracts.contract' call
|
|
2031
2102
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>' call
|
|
2032
2103
|
var it_0 = tmp;
|
|
2033
|
-
var
|
|
2104
|
+
var tmp_5 = new FieldIdentifier(parameter.k1i_1);
|
|
2034
2105
|
var tmp0_elvis_lhs = parameter.n1i_1;
|
|
2035
|
-
return new Field(
|
|
2106
|
+
return new Field(tmp_5, it_0, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
2036
2107
|
}
|
|
2037
2108
|
function toSegments(_this__u8e3s4, $this, parameters) {
|
|
2038
2109
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2087,7 +2158,7 @@
|
|
|
2087
2158
|
// Inline function 'kotlin.contracts.contract' call
|
|
2088
2159
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toSegments.<anonymous>.<anonymous>' call
|
|
2089
2160
|
var tmp0_safe_receiver_0 = tmp0_safe_receiver.p1i_1;
|
|
2090
|
-
tmp_2 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, OpenApiV2Parser_instance);
|
|
2161
|
+
tmp_2 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, OpenApiV2Parser_instance, tmp0_safe_receiver.r1i_1);
|
|
2091
2162
|
}
|
|
2092
2163
|
var tmp1_safe_receiver = tmp_2;
|
|
2093
2164
|
var tmp_3;
|
|
@@ -2128,7 +2199,7 @@
|
|
|
2128
2199
|
// Inline function 'kotlin.let' call
|
|
2129
2200
|
// Inline function 'kotlin.contracts.contract' call
|
|
2130
2201
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toName.<anonymous>' call
|
|
2131
|
-
tmp = Common_getInstance().
|
|
2202
|
+
tmp = Common_getInstance().v29([tmp0_safe_receiver]);
|
|
2132
2203
|
}
|
|
2133
2204
|
return tmp;
|
|
2134
2205
|
}
|
|
@@ -2150,21 +2221,21 @@
|
|
|
2150
2221
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenApiV2Parser$toName$lambda);
|
|
2151
2222
|
}
|
|
2152
2223
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
2153
|
-
this.
|
|
2154
|
-
this.
|
|
2155
|
-
this.
|
|
2156
|
-
this.
|
|
2157
|
-
this.
|
|
2224
|
+
this.b2a_1 = path;
|
|
2225
|
+
this.c2a_1 = pathItem;
|
|
2226
|
+
this.d2a_1 = method;
|
|
2227
|
+
this.e2a_1 = operation;
|
|
2228
|
+
this.f2a_1 = type;
|
|
2158
2229
|
}
|
|
2159
2230
|
protoOf(FlattenRequest).toString = function () {
|
|
2160
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
2231
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.b2a_1) + ', pathItem=' + this.c2a_1.toString() + ', method=' + this.d2a_1.toString() + ', operation=' + this.e2a_1.toString() + ', type=' + this.f2a_1 + ')';
|
|
2161
2232
|
};
|
|
2162
2233
|
protoOf(FlattenRequest).hashCode = function () {
|
|
2163
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2164
|
-
result = imul(result, 31) + this.
|
|
2165
|
-
result = imul(result, 31) + this.
|
|
2166
|
-
result = imul(result, 31) + this.
|
|
2167
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2234
|
+
var result = Path__hashCode_impl_go73kd(this.b2a_1);
|
|
2235
|
+
result = imul(result, 31) + this.c2a_1.hashCode() | 0;
|
|
2236
|
+
result = imul(result, 31) + this.d2a_1.hashCode() | 0;
|
|
2237
|
+
result = imul(result, 31) + this.e2a_1.hashCode() | 0;
|
|
2238
|
+
result = imul(result, 31) + getStringHashCode(this.f2a_1) | 0;
|
|
2168
2239
|
return result;
|
|
2169
2240
|
};
|
|
2170
2241
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -2173,15 +2244,15 @@
|
|
|
2173
2244
|
if (!(other instanceof FlattenRequest))
|
|
2174
2245
|
return false;
|
|
2175
2246
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
2176
|
-
if (!(this.
|
|
2247
|
+
if (!(this.b2a_1 === tmp0_other_with_cast.b2a_1))
|
|
2177
2248
|
return false;
|
|
2178
|
-
if (!this.
|
|
2249
|
+
if (!this.c2a_1.equals(tmp0_other_with_cast.c2a_1))
|
|
2179
2250
|
return false;
|
|
2180
|
-
if (!this.
|
|
2251
|
+
if (!this.d2a_1.equals(tmp0_other_with_cast.d2a_1))
|
|
2181
2252
|
return false;
|
|
2182
|
-
if (!this.
|
|
2253
|
+
if (!this.e2a_1.equals(tmp0_other_with_cast.e2a_1))
|
|
2183
2254
|
return false;
|
|
2184
|
-
if (!(this.
|
|
2255
|
+
if (!(this.f2a_1 === tmp0_other_with_cast.f2a_1))
|
|
2185
2256
|
return false;
|
|
2186
2257
|
return true;
|
|
2187
2258
|
};
|
|
@@ -2243,25 +2314,25 @@
|
|
|
2243
2314
|
return destination_2;
|
|
2244
2315
|
}
|
|
2245
2316
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
2246
|
-
this.
|
|
2247
|
-
this.
|
|
2248
|
-
this.
|
|
2249
|
-
this.
|
|
2250
|
-
this.
|
|
2251
|
-
this.
|
|
2252
|
-
this.
|
|
2317
|
+
this.g2a_1 = path;
|
|
2318
|
+
this.h2a_1 = pathItem;
|
|
2319
|
+
this.i2a_1 = method;
|
|
2320
|
+
this.j2a_1 = operation;
|
|
2321
|
+
this.k2a_1 = statusCode;
|
|
2322
|
+
this.l2a_1 = response;
|
|
2323
|
+
this.m2a_1 = type;
|
|
2253
2324
|
}
|
|
2254
2325
|
protoOf(FlattenResponse).toString = function () {
|
|
2255
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
2326
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.g2a_1) + ', pathItem=' + this.h2a_1.toString() + ', method=' + this.i2a_1.toString() + ', operation=' + this.j2a_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy(this.k2a_1) + ', response=' + toString(this.l2a_1) + ', type=' + this.m2a_1 + ')';
|
|
2256
2327
|
};
|
|
2257
2328
|
protoOf(FlattenResponse).hashCode = function () {
|
|
2258
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2259
|
-
result = imul(result, 31) + this.
|
|
2260
|
-
result = imul(result, 31) + this.
|
|
2261
|
-
result = imul(result, 31) + this.
|
|
2262
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
2263
|
-
result = imul(result, 31) + hashCode(this.
|
|
2264
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2329
|
+
var result = Path__hashCode_impl_go73kd(this.g2a_1);
|
|
2330
|
+
result = imul(result, 31) + this.h2a_1.hashCode() | 0;
|
|
2331
|
+
result = imul(result, 31) + this.i2a_1.hashCode() | 0;
|
|
2332
|
+
result = imul(result, 31) + this.j2a_1.hashCode() | 0;
|
|
2333
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.k2a_1) | 0;
|
|
2334
|
+
result = imul(result, 31) + hashCode(this.l2a_1) | 0;
|
|
2335
|
+
result = imul(result, 31) + getStringHashCode(this.m2a_1) | 0;
|
|
2265
2336
|
return result;
|
|
2266
2337
|
};
|
|
2267
2338
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -2270,19 +2341,19 @@
|
|
|
2270
2341
|
if (!(other instanceof FlattenResponse))
|
|
2271
2342
|
return false;
|
|
2272
2343
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
2273
|
-
if (!(this.
|
|
2344
|
+
if (!(this.g2a_1 === tmp0_other_with_cast.g2a_1))
|
|
2274
2345
|
return false;
|
|
2275
|
-
if (!this.
|
|
2346
|
+
if (!this.h2a_1.equals(tmp0_other_with_cast.h2a_1))
|
|
2276
2347
|
return false;
|
|
2277
|
-
if (!this.
|
|
2348
|
+
if (!this.i2a_1.equals(tmp0_other_with_cast.i2a_1))
|
|
2278
2349
|
return false;
|
|
2279
|
-
if (!this.
|
|
2350
|
+
if (!this.j2a_1.equals(tmp0_other_with_cast.j2a_1))
|
|
2280
2351
|
return false;
|
|
2281
|
-
if (!(this.
|
|
2352
|
+
if (!(this.k2a_1 === tmp0_other_with_cast.k2a_1))
|
|
2282
2353
|
return false;
|
|
2283
|
-
if (!equals(this.
|
|
2354
|
+
if (!equals(this.l2a_1, tmp0_other_with_cast.l2a_1))
|
|
2284
2355
|
return false;
|
|
2285
|
-
if (!(this.
|
|
2356
|
+
if (!(this.m2a_1 === tmp0_other_with_cast.m2a_1))
|
|
2286
2357
|
return false;
|
|
2287
2358
|
return true;
|
|
2288
2359
|
};
|
|
@@ -2370,9 +2441,9 @@
|
|
|
2370
2441
|
}
|
|
2371
2442
|
function OpenApiV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
2372
2443
|
return function ($this$flatMapRequests) {
|
|
2373
|
-
var parameters = plus(resolveParameters_0($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.
|
|
2374
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2375
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2444
|
+
var parameters = plus(resolveParameters_0($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.c2a_1), resolveParameters($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.e2a_1));
|
|
2445
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.e2a_1, OpenApiV2Parser_instance);
|
|
2446
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.b2a_1, OpenApiV2Parser_instance) + $this$flatMapRequests.d2a_1.p2_1 : tmp0_elvis_lhs;
|
|
2376
2447
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2377
2448
|
// Inline function 'kotlin.collections.filter' call
|
|
2378
2449
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -2399,7 +2470,7 @@
|
|
|
2399
2470
|
// Inline function 'kotlin.let' call
|
|
2400
2471
|
// Inline function 'kotlin.contracts.contract' call
|
|
2401
2472
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
2402
|
-
tmp = flatten_0($this_parseParameters, OpenApiV2Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
2473
|
+
tmp = flatten_0($this_parseParameters, OpenApiV2Parser_instance, tmp0_safe_receiver, Common_getInstance().v29([name, 'Parameter', element_0.k1i_1]));
|
|
2403
2474
|
}
|
|
2404
2475
|
var tmp1_elvis_lhs = tmp;
|
|
2405
2476
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -2410,9 +2481,9 @@
|
|
|
2410
2481
|
}
|
|
2411
2482
|
function OpenApiV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
2412
2483
|
return function ($this$flatMapRequests) {
|
|
2413
|
-
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.
|
|
2414
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2415
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2484
|
+
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.c2a_1), resolveParameters($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.e2a_1));
|
|
2485
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.e2a_1, OpenApiV2Parser_instance);
|
|
2486
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.b2a_1, OpenApiV2Parser_instance) + $this$flatMapRequests.d2a_1.p2_1 : tmp0_elvis_lhs;
|
|
2416
2487
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2417
2488
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2418
2489
|
var destination = ArrayList_init_$Create$();
|
|
@@ -2422,7 +2493,7 @@
|
|
|
2422
2493
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
2423
2494
|
var tmp;
|
|
2424
2495
|
if (!(element.f1j_1 == null)) {
|
|
2425
|
-
var tmp_0 = new DefinitionIdentifier(Common_getInstance().
|
|
2496
|
+
var tmp_0 = new DefinitionIdentifier(Common_getInstance().v29([name, 'Parameter', element.k1i_1]));
|
|
2426
2497
|
// Inline function 'kotlin.collections.map' call
|
|
2427
2498
|
var this_0 = ensureNotNull(element.f1j_1);
|
|
2428
2499
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2442,7 +2513,7 @@
|
|
|
2442
2513
|
addAll(destination, list);
|
|
2443
2514
|
}
|
|
2444
2515
|
var enums = destination;
|
|
2445
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
2516
|
+
var tmp1_safe_receiver = $this$flatMapRequests.e2a_1.h1l_1;
|
|
2446
2517
|
var tmp_1;
|
|
2447
2518
|
if (tmp1_safe_receiver == null) {
|
|
2448
2519
|
tmp_1 = null;
|
|
@@ -2497,7 +2568,7 @@
|
|
|
2497
2568
|
switch (tmp0_subject == null ? -1 : tmp0_subject.q2_1) {
|
|
2498
2569
|
case -1:
|
|
2499
2570
|
case 5:
|
|
2500
|
-
tmp_5 = flatten($this_parseRequestBody, OpenApiV2Parser_instance, schema, Common_getInstance().
|
|
2571
|
+
tmp_5 = flatten($this_parseRequestBody, OpenApiV2Parser_instance, schema, Common_getInstance().v29([name, 'RequestBody']));
|
|
2501
2572
|
break;
|
|
2502
2573
|
case 4:
|
|
2503
2574
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2510,7 +2581,7 @@
|
|
|
2510
2581
|
// Inline function 'kotlin.let' call
|
|
2511
2582
|
// Inline function 'kotlin.contracts.contract' call
|
|
2512
2583
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
2513
|
-
tmp_6 = flatten_0($this_parseRequestBody, OpenApiV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
2584
|
+
tmp_6 = flatten_0($this_parseRequestBody, OpenApiV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().v29([name, 'RequestBody']));
|
|
2514
2585
|
}
|
|
2515
2586
|
|
|
2516
2587
|
var tmp0_elvis_lhs_0 = tmp_6;
|
|
@@ -2536,9 +2607,9 @@
|
|
|
2536
2607
|
}
|
|
2537
2608
|
function OpenApiV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
2538
2609
|
return function ($this$flatMapResponses) {
|
|
2539
|
-
var schema = resolve_1($this_parseResponseBody, OpenApiV2Parser_instance, $this$flatMapResponses.
|
|
2540
|
-
var tmp0_elvis_lhs = toName($this$flatMapResponses.
|
|
2541
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
2610
|
+
var schema = resolve_1($this_parseResponseBody, OpenApiV2Parser_instance, $this$flatMapResponses.l2a_1).m1j_1;
|
|
2611
|
+
var tmp0_elvis_lhs = toName($this$flatMapResponses.j2a_1, OpenApiV2Parser_instance);
|
|
2612
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.g2a_1, OpenApiV2Parser_instance) + $this$flatMapResponses.i2a_1.p2_1 : tmp0_elvis_lhs;
|
|
2542
2613
|
var tmp;
|
|
2543
2614
|
if (schema instanceof SchemaObject) {
|
|
2544
2615
|
var tmp2_subject = schema.e1n_1;
|
|
@@ -2546,7 +2617,7 @@
|
|
|
2546
2617
|
switch (tmp2_subject == null ? -1 : tmp2_subject.q2_1) {
|
|
2547
2618
|
case -1:
|
|
2548
2619
|
case 5:
|
|
2549
|
-
tmp_0 = flatten($this_parseResponseBody, OpenApiV2Parser_instance, schema, Common_getInstance().
|
|
2620
|
+
tmp_0 = flatten($this_parseResponseBody, OpenApiV2Parser_instance, schema, Common_getInstance().v29([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.k2a_1), 'ResponseBody']));
|
|
2550
2621
|
break;
|
|
2551
2622
|
case 4:
|
|
2552
2623
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2559,7 +2630,7 @@
|
|
|
2559
2630
|
// Inline function 'kotlin.let' call
|
|
2560
2631
|
// Inline function 'kotlin.contracts.contract' call
|
|
2561
2632
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
2562
|
-
tmp_1 = flatten_0($this_parseResponseBody, OpenApiV2Parser_instance, tmp3_safe_receiver, Common_getInstance().
|
|
2633
|
+
tmp_1 = flatten_0($this_parseResponseBody, OpenApiV2Parser_instance, tmp3_safe_receiver, Common_getInstance().v29([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.k2a_1), 'ResponseBody']));
|
|
2563
2634
|
}
|
|
2564
2635
|
|
|
2565
2636
|
var tmp0_elvis_lhs_0 = tmp_1;
|
|
@@ -2587,10 +2658,10 @@
|
|
|
2587
2658
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2588
2659
|
|
|
2589
2660
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
2590
|
-
tmp = tmp_0.
|
|
2661
|
+
tmp = tmp_0.v29([tmp$ret$1]);
|
|
2591
2662
|
break;
|
|
2592
2663
|
case false:
|
|
2593
|
-
tmp = Common_getInstance().
|
|
2664
|
+
tmp = Common_getInstance().v29([it]);
|
|
2594
2665
|
break;
|
|
2595
2666
|
default:
|
|
2596
2667
|
noWhenBranchMatchedException();
|
|
@@ -2600,14 +2671,14 @@
|
|
|
2600
2671
|
}
|
|
2601
2672
|
function OpenApiV2Parser() {
|
|
2602
2673
|
}
|
|
2603
|
-
protoOf(OpenApiV2Parser).
|
|
2604
|
-
return this.
|
|
2674
|
+
protoOf(OpenApiV2Parser).n2a = function (json, ignoreUnknown) {
|
|
2675
|
+
return this.o2a((new OpenAPI(Json(VOID, OpenApiV2Parser$parse$lambda(ignoreUnknown)))).i1g(json));
|
|
2605
2676
|
};
|
|
2606
|
-
protoOf(OpenApiV2Parser).
|
|
2677
|
+
protoOf(OpenApiV2Parser).p2a = function (json, ignoreUnknown, $super) {
|
|
2607
2678
|
ignoreUnknown = ignoreUnknown === VOID ? false : ignoreUnknown;
|
|
2608
|
-
return $super === VOID ? this.
|
|
2679
|
+
return $super === VOID ? this.n2a(json, ignoreUnknown) : $super.n2a.call(this, json, ignoreUnknown);
|
|
2609
2680
|
};
|
|
2610
|
-
protoOf(OpenApiV2Parser).
|
|
2681
|
+
protoOf(OpenApiV2Parser).o2a = function (_this__u8e3s4) {
|
|
2611
2682
|
// Inline function 'kotlin.collections.reduce' call
|
|
2612
2683
|
var iterator = listOf_0([parseEndpoints(_this__u8e3s4, this), parseParameters(_this__u8e3s4, this), parseRequestBody(_this__u8e3s4, this), parseResponseBody(_this__u8e3s4, this), parseDefinitions(_this__u8e3s4, this)]).g();
|
|
2613
2684
|
if (!iterator.h())
|
|
@@ -2627,16 +2698,16 @@
|
|
|
2627
2698
|
function toMap_0(_this__u8e3s4) {
|
|
2628
2699
|
var tmp;
|
|
2629
2700
|
if (_this__u8e3s4 instanceof Custom) {
|
|
2630
|
-
tmp = _this__u8e3s4.
|
|
2701
|
+
tmp = _this__u8e3s4.c29(VOID, VOID, true);
|
|
2631
2702
|
} else {
|
|
2632
2703
|
if (_this__u8e3s4 instanceof Any) {
|
|
2633
|
-
tmp = _this__u8e3s4.
|
|
2704
|
+
tmp = _this__u8e3s4.w28(VOID, true);
|
|
2634
2705
|
} else {
|
|
2635
2706
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
2636
|
-
tmp = _this__u8e3s4.
|
|
2707
|
+
tmp = _this__u8e3s4.e29(VOID, VOID, true);
|
|
2637
2708
|
} else {
|
|
2638
2709
|
if (_this__u8e3s4 instanceof Unit) {
|
|
2639
|
-
tmp = _this__u8e3s4.
|
|
2710
|
+
tmp = _this__u8e3s4.a29(VOID, true);
|
|
2640
2711
|
} else {
|
|
2641
2712
|
noWhenBranchMatchedException();
|
|
2642
2713
|
}
|
|
@@ -2681,16 +2752,16 @@
|
|
|
2681
2752
|
function toIterable(_this__u8e3s4) {
|
|
2682
2753
|
var tmp;
|
|
2683
2754
|
if (_this__u8e3s4 instanceof Custom) {
|
|
2684
|
-
tmp = _this__u8e3s4.
|
|
2755
|
+
tmp = _this__u8e3s4.c29(VOID, true);
|
|
2685
2756
|
} else {
|
|
2686
2757
|
if (_this__u8e3s4 instanceof Any) {
|
|
2687
|
-
tmp = _this__u8e3s4.
|
|
2758
|
+
tmp = _this__u8e3s4.w28(true);
|
|
2688
2759
|
} else {
|
|
2689
2760
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
2690
|
-
tmp = _this__u8e3s4.
|
|
2761
|
+
tmp = _this__u8e3s4.e29(VOID, true);
|
|
2691
2762
|
} else {
|
|
2692
2763
|
if (_this__u8e3s4 instanceof Unit) {
|
|
2693
|
-
tmp = _this__u8e3s4.
|
|
2764
|
+
tmp = _this__u8e3s4.a29(true);
|
|
2694
2765
|
} else {
|
|
2695
2766
|
noWhenBranchMatchedException();
|
|
2696
2767
|
}
|
|
@@ -2731,7 +2802,7 @@
|
|
|
2731
2802
|
var element_1 = tmp0_iterator_1.i();
|
|
2732
2803
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2733
2804
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitComponents.<anonymous>' call
|
|
2734
|
-
var tmp = element_1.
|
|
2805
|
+
var tmp = element_1.m28().b1();
|
|
2735
2806
|
var tmp_0;
|
|
2736
2807
|
if (element_1 instanceof Enum) {
|
|
2737
2808
|
tmp_0 = emit_3(element_1, OpenApiV3Emitter_getInstance());
|
|
@@ -2786,7 +2857,7 @@
|
|
|
2786
2857
|
while (tmp0_iterator_0.h()) {
|
|
2787
2858
|
var element_0 = tmp0_iterator_0.i();
|
|
2788
2859
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitPaths.<anonymous>' call
|
|
2789
|
-
var key = element_0.
|
|
2860
|
+
var key = element_0.u23_1;
|
|
2790
2861
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
2791
2862
|
var value = destination_0.f2(key);
|
|
2792
2863
|
var tmp;
|
|
@@ -2857,7 +2928,7 @@
|
|
|
2857
2928
|
return toMap(destination_1);
|
|
2858
2929
|
}
|
|
2859
2930
|
function emit_1(_this__u8e3s4, $this) {
|
|
2860
|
-
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_STRING_getInstance_0(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, _this__u8e3s4.
|
|
2931
|
+
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_STRING_getInstance_0(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, _this__u8e3s4.f25_1.w25_1);
|
|
2861
2932
|
}
|
|
2862
2933
|
function emit_2(_this__u8e3s4, $this) {
|
|
2863
2934
|
var tmp0_safe_receiver = _this__u8e3s4.y22_1;
|
|
@@ -2870,7 +2941,7 @@
|
|
|
2870
2941
|
}
|
|
2871
2942
|
var tmp1_description = tmp;
|
|
2872
2943
|
// Inline function 'kotlin.collections.associate' call
|
|
2873
|
-
var this_0 = _this__u8e3s4.a23_1.
|
|
2944
|
+
var this_0 = _this__u8e3s4.a23_1.t25_1;
|
|
2874
2945
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2875
2946
|
// Inline function 'kotlin.collections.associateTo' call
|
|
2876
2947
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -2886,13 +2957,13 @@
|
|
|
2886
2957
|
// Inline function 'kotlin.collections.map' call
|
|
2887
2958
|
// Inline function 'kotlin.collections.filter' call
|
|
2888
2959
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2889
|
-
var this_1 = _this__u8e3s4.a23_1.
|
|
2960
|
+
var this_1 = _this__u8e3s4.a23_1.t25_1;
|
|
2890
2961
|
var destination_0 = ArrayList_init_$Create$();
|
|
2891
2962
|
var tmp0_iterator_0 = this_1.g();
|
|
2892
2963
|
while (tmp0_iterator_0.h()) {
|
|
2893
2964
|
var element_0 = tmp0_iterator_0.i();
|
|
2894
2965
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2895
|
-
if (!element_0.
|
|
2966
|
+
if (!element_0.p24_1) {
|
|
2896
2967
|
destination_0.e(element_0);
|
|
2897
2968
|
}
|
|
2898
2969
|
}
|
|
@@ -2902,7 +2973,7 @@
|
|
|
2902
2973
|
while (tmp0_iterator_1.h()) {
|
|
2903
2974
|
var item = tmp0_iterator_1.i();
|
|
2904
2975
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2905
|
-
var tmp$ret$6 = item.
|
|
2976
|
+
var tmp$ret$6 = item.n24_1.b1();
|
|
2906
2977
|
destination_1.e(tmp$ret$6);
|
|
2907
2978
|
}
|
|
2908
2979
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -2918,7 +2989,7 @@
|
|
|
2918
2989
|
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, destination, VOID, tmp1_description, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_required);
|
|
2919
2990
|
}
|
|
2920
2991
|
function emit_3(_this__u8e3s4, $this) {
|
|
2921
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2992
|
+
var tmp0_safe_receiver = _this__u8e3s4.g25_1;
|
|
2922
2993
|
var tmp;
|
|
2923
2994
|
var tmp_0 = tmp0_safe_receiver;
|
|
2924
2995
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -2929,7 +3000,7 @@
|
|
|
2929
3000
|
var tmp1_description = tmp;
|
|
2930
3001
|
var tmp2_type = Type_STRING_getInstance_0();
|
|
2931
3002
|
// Inline function 'kotlin.collections.map' call
|
|
2932
|
-
var this_0 = _this__u8e3s4.
|
|
3003
|
+
var this_0 = _this__u8e3s4.i25_1;
|
|
2933
3004
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2934
3005
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2935
3006
|
var tmp0_iterator = this_0.g();
|
|
@@ -2974,7 +3045,7 @@
|
|
|
2974
3045
|
while (tmp0_iterator.h()) {
|
|
2975
3046
|
var element = tmp0_iterator.i();
|
|
2976
3047
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2977
|
-
if (element.
|
|
3048
|
+
if (element.t23_1.equals(method)) {
|
|
2978
3049
|
destination.e(element);
|
|
2979
3050
|
}
|
|
2980
3051
|
}
|
|
@@ -2990,8 +3061,8 @@
|
|
|
2990
3061
|
return firstOrNull(destination_0);
|
|
2991
3062
|
}
|
|
2992
3063
|
function emit_6(_this__u8e3s4, $this) {
|
|
2993
|
-
var tmp1_operationId = _this__u8e3s4.
|
|
2994
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3064
|
+
var tmp1_operationId = _this__u8e3s4.s23_1.b1();
|
|
3065
|
+
var tmp0_safe_receiver = _this__u8e3s4.r23_1;
|
|
2995
3066
|
var tmp;
|
|
2996
3067
|
var tmp_0 = tmp0_safe_receiver;
|
|
2997
3068
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -3003,7 +3074,7 @@
|
|
|
3003
3074
|
// Inline function 'kotlin.collections.map' call
|
|
3004
3075
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3005
3076
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
3006
|
-
var this_0 = _this__u8e3s4.
|
|
3077
|
+
var this_0 = _this__u8e3s4.u23_1;
|
|
3007
3078
|
var destination = ArrayList_init_$Create$();
|
|
3008
3079
|
var tmp0_iterator = this_0.g();
|
|
3009
3080
|
while (tmp0_iterator.h()) {
|
|
@@ -3023,7 +3094,7 @@
|
|
|
3023
3094
|
}
|
|
3024
3095
|
var tmp_1 = destination_0;
|
|
3025
3096
|
// Inline function 'kotlin.collections.map' call
|
|
3026
|
-
var this_1 = _this__u8e3s4.
|
|
3097
|
+
var this_1 = _this__u8e3s4.v23_1;
|
|
3027
3098
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3028
3099
|
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
3029
3100
|
var tmp0_iterator_1 = this_1.g();
|
|
@@ -3035,7 +3106,7 @@
|
|
|
3035
3106
|
}
|
|
3036
3107
|
var tmp_2 = plus(tmp_1, destination_1);
|
|
3037
3108
|
// Inline function 'kotlin.collections.map' call
|
|
3038
|
-
var this_2 = _this__u8e3s4.
|
|
3109
|
+
var this_2 = _this__u8e3s4.w23_1;
|
|
3039
3110
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3040
3111
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
|
|
3041
3112
|
var tmp0_iterator_2 = this_2.g();
|
|
@@ -3049,7 +3120,7 @@
|
|
|
3049
3120
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
3050
3121
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3051
3122
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3052
|
-
var this_3 = _this__u8e3s4.
|
|
3123
|
+
var this_3 = _this__u8e3s4.y23_1;
|
|
3053
3124
|
var destination_3 = ArrayList_init_$Create$();
|
|
3054
3125
|
// Inline function 'kotlin.collections.forEach' call
|
|
3055
3126
|
var tmp0_iterator_3 = this_3.g();
|
|
@@ -3057,7 +3128,7 @@
|
|
|
3057
3128
|
var element_0 = tmp0_iterator_3.i();
|
|
3058
3129
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3059
3130
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
3060
|
-
var tmp0_safe_receiver_0 = element_0.
|
|
3131
|
+
var tmp0_safe_receiver_0 = element_0.f24_1;
|
|
3061
3132
|
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : emit_7(tmp0_safe_receiver_0, OpenApiV3Emitter_getInstance());
|
|
3062
3133
|
if (tmp0_safe_receiver_1 == null)
|
|
3063
3134
|
null;
|
|
@@ -3080,7 +3151,7 @@
|
|
|
3080
3151
|
var tmp$ret$17;
|
|
3081
3152
|
$l$block_0: {
|
|
3082
3153
|
// Inline function 'kotlin.collections.any' call
|
|
3083
|
-
var this_5 = _this__u8e3s4.
|
|
3154
|
+
var this_5 = _this__u8e3s4.y23_1;
|
|
3084
3155
|
var tmp_5;
|
|
3085
3156
|
if (isInterface(this_5, Collection)) {
|
|
3086
3157
|
tmp_5 = this_5.l();
|
|
@@ -3095,8 +3166,8 @@
|
|
|
3095
3166
|
while (tmp0_iterator_4.h()) {
|
|
3096
3167
|
var element_1 = tmp0_iterator_4.i();
|
|
3097
3168
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
3098
|
-
var tmp0_safe_receiver_2 = element_1.
|
|
3099
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.
|
|
3169
|
+
var tmp0_safe_receiver_2 = element_1.f24_1;
|
|
3170
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.i24_1;
|
|
3100
3171
|
if (tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs) {
|
|
3101
3172
|
tmp$ret$17 = true;
|
|
3102
3173
|
break $l$block_0;
|
|
@@ -3108,13 +3179,13 @@
|
|
|
3108
3179
|
// Inline function 'kotlin.collections.map' call
|
|
3109
3180
|
// Inline function 'kotlin.collections.groupBy' call
|
|
3110
3181
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
3111
|
-
var this_6 = _this__u8e3s4.
|
|
3182
|
+
var this_6 = _this__u8e3s4.z23_1;
|
|
3112
3183
|
var destination_4 = LinkedHashMap_init_$Create$_0();
|
|
3113
3184
|
var tmp0_iterator_5 = this_6.g();
|
|
3114
3185
|
while (tmp0_iterator_5.h()) {
|
|
3115
3186
|
var element_2 = tmp0_iterator_5.i();
|
|
3116
3187
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
3117
|
-
var key = element_2.
|
|
3188
|
+
var key = element_2.a24_1;
|
|
3118
3189
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
3119
3190
|
var value = destination_4.f2(key);
|
|
3120
3191
|
var tmp_6;
|
|
@@ -3149,7 +3220,7 @@
|
|
|
3149
3220
|
while (tmp0_iterator_7.h()) {
|
|
3150
3221
|
var element_3 = tmp0_iterator_7.i();
|
|
3151
3222
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3152
|
-
var list_0 = element_3.
|
|
3223
|
+
var list_0 = element_3.b24_1;
|
|
3153
3224
|
addAll(destination_6, list_0);
|
|
3154
3225
|
}
|
|
3155
3226
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_6, 10)), 16);
|
|
@@ -3163,7 +3234,7 @@
|
|
|
3163
3234
|
var pair = emitHeader(element_4, OpenApiV3Emitter_getInstance());
|
|
3164
3235
|
destination_7.m2(pair.ce_1, pair.de_1);
|
|
3165
3236
|
}
|
|
3166
|
-
var tmp1_description = _this__u8e3s4.
|
|
3237
|
+
var tmp1_description = _this__u8e3s4.s23_1.b1() + ' ' + statusCode + ' response';
|
|
3167
3238
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
3168
3239
|
// Inline function 'kotlin.collections.associate' call
|
|
3169
3240
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -3175,7 +3246,7 @@
|
|
|
3175
3246
|
var element_5 = tmp0_iterator_9.i();
|
|
3176
3247
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3177
3248
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3178
|
-
var tmp0_safe_receiver_3 = element_5.
|
|
3249
|
+
var tmp0_safe_receiver_3 = element_5.c24_1;
|
|
3179
3250
|
if (tmp0_safe_receiver_3 == null)
|
|
3180
3251
|
null;
|
|
3181
3252
|
else {
|
|
@@ -3214,21 +3285,21 @@
|
|
|
3214
3285
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenApiV3Emitter$emitSegment$lambda);
|
|
3215
3286
|
}
|
|
3216
3287
|
function emitParameter_0(_this__u8e3s4, $this, location) {
|
|
3217
|
-
var tmp0_name = _this__u8e3s4.
|
|
3218
|
-
var tmp1_schema = emitSchema_0(_this__u8e3s4.
|
|
3288
|
+
var tmp0_name = _this__u8e3s4.n24_1.b1();
|
|
3289
|
+
var tmp1_schema = emitSchema_0(_this__u8e3s4.o24_1, $this);
|
|
3219
3290
|
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_schema, VOID, VOID, VOID, tmp0_name, location);
|
|
3220
3291
|
}
|
|
3221
3292
|
function emitParameter_1(_this__u8e3s4, $this) {
|
|
3222
3293
|
var tmp0_in = ParameterLocation_PATH_getInstance_0();
|
|
3223
|
-
var tmp1_name = _this__u8e3s4.
|
|
3224
|
-
var tmp2_schema = emitSchema_0(_this__u8e3s4.
|
|
3294
|
+
var tmp1_name = _this__u8e3s4.r24_1.b1();
|
|
3295
|
+
var tmp2_schema = emitSchema_0(_this__u8e3s4.s24_1, $this);
|
|
3225
3296
|
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_schema, VOID, VOID, VOID, tmp1_name, tmp0_in);
|
|
3226
3297
|
}
|
|
3227
3298
|
function emitHeader(_this__u8e3s4, $this) {
|
|
3228
|
-
return to(_this__u8e3s4.
|
|
3299
|
+
return to(_this__u8e3s4.n24_1.b1(), emitHeader_0(_this__u8e3s4.o24_1, $this));
|
|
3229
3300
|
}
|
|
3230
3301
|
function emitSchema(_this__u8e3s4, $this) {
|
|
3231
|
-
return to(_this__u8e3s4.
|
|
3302
|
+
return to(_this__u8e3s4.n24_1.b1(), emitSchema_0(_this__u8e3s4.o24_1, $this));
|
|
3232
3303
|
}
|
|
3233
3304
|
function emitHeader_0(_this__u8e3s4, $this) {
|
|
3234
3305
|
var tmp;
|
|
@@ -3260,7 +3331,7 @@
|
|
|
3260
3331
|
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/schemas/' + _this__u8e3s4.v22_1));
|
|
3261
3332
|
} else {
|
|
3262
3333
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3263
|
-
tmp = new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType_1(_this__u8e3s4.j23_1, $this));
|
|
3334
|
+
tmp = new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType_1(_this__u8e3s4.j23_1, $this), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitFormat_0(_this__u8e3s4, $this));
|
|
3264
3335
|
} else {
|
|
3265
3336
|
if (_this__u8e3s4 instanceof Any) {
|
|
3266
3337
|
var message = 'Cannot map Any';
|
|
@@ -3278,39 +3349,91 @@
|
|
|
3278
3349
|
// Inline function 'kotlin.contracts.contract' call
|
|
3279
3350
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitSchema.<anonymous>' call
|
|
3280
3351
|
var it = tmp;
|
|
3281
|
-
return _this__u8e3s4.
|
|
3352
|
+
return _this__u8e3s4.v24() ? new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_OBJECT_getInstance_0(), VOID, VOID, VOID, VOID, VOID, VOID, it) : _this__u8e3s4.j24() ? new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance_0(), VOID, VOID, VOID, VOID, it) : it;
|
|
3282
3353
|
}
|
|
3283
3354
|
function emitType_1(_this__u8e3s4, $this) {
|
|
3284
3355
|
var tmp;
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
case 1:
|
|
3356
|
+
if (_this__u8e3s4 instanceof String_0) {
|
|
3357
|
+
tmp = Type_STRING_getInstance_0();
|
|
3358
|
+
} else {
|
|
3359
|
+
if (_this__u8e3s4 instanceof Integer) {
|
|
3290
3360
|
tmp = Type_INTEGER_getInstance_0();
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3361
|
+
} else {
|
|
3362
|
+
if (_this__u8e3s4 instanceof Number_0) {
|
|
3363
|
+
tmp = Type_NUMBER_getInstance_0();
|
|
3364
|
+
} else {
|
|
3365
|
+
if (_this__u8e3s4 instanceof Boolean_0) {
|
|
3366
|
+
tmp = Type_BOOLEAN_getInstance_0();
|
|
3367
|
+
} else {
|
|
3368
|
+
if (_this__u8e3s4 instanceof Bytes) {
|
|
3369
|
+
tmp = Type_STRING_getInstance_0();
|
|
3370
|
+
} else {
|
|
3371
|
+
noWhenBranchMatchedException();
|
|
3372
|
+
}
|
|
3373
|
+
}
|
|
3374
|
+
}
|
|
3375
|
+
}
|
|
3301
3376
|
}
|
|
3302
3377
|
return tmp;
|
|
3303
3378
|
}
|
|
3304
3379
|
function emit_7(_this__u8e3s4, $this) {
|
|
3305
|
-
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.
|
|
3380
|
+
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.g24_1)), new MediaTypeObject(emitSchema_0(_this__u8e3s4.h24_1, $this)));
|
|
3381
|
+
}
|
|
3382
|
+
function emitFormat_0(_this__u8e3s4, $this) {
|
|
3383
|
+
var tmp;
|
|
3384
|
+
if (_this__u8e3s4 instanceof Primitive) {
|
|
3385
|
+
var t = _this__u8e3s4.j23_1;
|
|
3386
|
+
var tmp_0;
|
|
3387
|
+
if (t instanceof Number_0) {
|
|
3388
|
+
var tmp_1;
|
|
3389
|
+
switch (t.n23_1.q2_1) {
|
|
3390
|
+
case 0:
|
|
3391
|
+
tmp_1 = 'float';
|
|
3392
|
+
break;
|
|
3393
|
+
case 1:
|
|
3394
|
+
tmp_1 = 'double';
|
|
3395
|
+
break;
|
|
3396
|
+
default:
|
|
3397
|
+
noWhenBranchMatchedException();
|
|
3398
|
+
break;
|
|
3399
|
+
}
|
|
3400
|
+
tmp_0 = tmp_1;
|
|
3401
|
+
} else {
|
|
3402
|
+
if (t instanceof Integer) {
|
|
3403
|
+
var tmp_2;
|
|
3404
|
+
switch (t.p23_1.q2_1) {
|
|
3405
|
+
case 0:
|
|
3406
|
+
tmp_2 = 'int32';
|
|
3407
|
+
break;
|
|
3408
|
+
case 1:
|
|
3409
|
+
tmp_2 = 'int64';
|
|
3410
|
+
break;
|
|
3411
|
+
default:
|
|
3412
|
+
noWhenBranchMatchedException();
|
|
3413
|
+
break;
|
|
3414
|
+
}
|
|
3415
|
+
tmp_0 = tmp_2;
|
|
3416
|
+
} else {
|
|
3417
|
+
if (t instanceof Bytes) {
|
|
3418
|
+
tmp_0 = 'binary';
|
|
3419
|
+
} else {
|
|
3420
|
+
tmp_0 = null;
|
|
3421
|
+
}
|
|
3422
|
+
}
|
|
3423
|
+
}
|
|
3424
|
+
tmp = tmp_0;
|
|
3425
|
+
} else {
|
|
3426
|
+
tmp = null;
|
|
3427
|
+
}
|
|
3428
|
+
return tmp;
|
|
3306
3429
|
}
|
|
3307
3430
|
function OpenApiV3Emitter$emitSegment$lambda(it) {
|
|
3308
3431
|
var tmp;
|
|
3309
3432
|
if (it instanceof Param) {
|
|
3310
|
-
tmp = '{' + it.
|
|
3433
|
+
tmp = '{' + it.r24_1.b1() + '}';
|
|
3311
3434
|
} else {
|
|
3312
3435
|
if (it instanceof Literal) {
|
|
3313
|
-
tmp = it.
|
|
3436
|
+
tmp = it.a25_1;
|
|
3314
3437
|
} else {
|
|
3315
3438
|
noWhenBranchMatchedException();
|
|
3316
3439
|
}
|
|
@@ -3320,15 +3443,15 @@
|
|
|
3320
3443
|
function OpenApiV3Emitter() {
|
|
3321
3444
|
OpenApiV3Emitter_instance = this;
|
|
3322
3445
|
Emitter.call(this, get_noLogger());
|
|
3323
|
-
this.
|
|
3446
|
+
this.s2a_1 = '';
|
|
3324
3447
|
}
|
|
3325
|
-
protoOf(OpenApiV3Emitter).
|
|
3326
|
-
return this.
|
|
3448
|
+
protoOf(OpenApiV3Emitter).n25 = function () {
|
|
3449
|
+
return this.s2a_1;
|
|
3327
3450
|
};
|
|
3328
3451
|
protoOf(OpenApiV3Emitter).p22 = function (ast) {
|
|
3329
3452
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
3330
|
-
var this_0 = Common_getInstance().
|
|
3331
|
-
var value = this.
|
|
3453
|
+
var this_0 = Common_getInstance().u29_1;
|
|
3454
|
+
var value = this.t2a(ast, null);
|
|
3332
3455
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3333
3456
|
var this_1 = this_0.mo();
|
|
3334
3457
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -3337,28 +3460,28 @@
|
|
|
3337
3460
|
var tmp$ret$2 = this_0.b15(tmp$ret$1, value);
|
|
3338
3461
|
return listOf(new Emitted('OpenAPIObject', tmp$ret$2));
|
|
3339
3462
|
};
|
|
3340
|
-
protoOf(OpenApiV3Emitter).
|
|
3341
|
-
return this.
|
|
3463
|
+
protoOf(OpenApiV3Emitter).r25 = function (type, ast) {
|
|
3464
|
+
return this.h26();
|
|
3342
3465
|
};
|
|
3343
|
-
protoOf(OpenApiV3Emitter).
|
|
3344
|
-
return this.
|
|
3466
|
+
protoOf(OpenApiV3Emitter).y25 = function (enum_0) {
|
|
3467
|
+
return this.h26();
|
|
3345
3468
|
};
|
|
3346
|
-
protoOf(OpenApiV3Emitter).
|
|
3347
|
-
return this.
|
|
3469
|
+
protoOf(OpenApiV3Emitter).u25 = function (refined) {
|
|
3470
|
+
return this.h26();
|
|
3348
3471
|
};
|
|
3349
|
-
protoOf(OpenApiV3Emitter).
|
|
3350
|
-
return this.
|
|
3472
|
+
protoOf(OpenApiV3Emitter).c26 = function (endpoint) {
|
|
3473
|
+
return this.h26();
|
|
3351
3474
|
};
|
|
3352
|
-
protoOf(OpenApiV3Emitter).
|
|
3353
|
-
return this.
|
|
3475
|
+
protoOf(OpenApiV3Emitter).a26 = function (union) {
|
|
3476
|
+
return this.h26();
|
|
3354
3477
|
};
|
|
3355
|
-
protoOf(OpenApiV3Emitter).
|
|
3356
|
-
return this.
|
|
3478
|
+
protoOf(OpenApiV3Emitter).b26 = function (channel) {
|
|
3479
|
+
return this.h26();
|
|
3357
3480
|
};
|
|
3358
|
-
protoOf(OpenApiV3Emitter).
|
|
3359
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
3481
|
+
protoOf(OpenApiV3Emitter).t2a = function (ast, options) {
|
|
3482
|
+
var tmp1_elvis_lhs = options == null ? null : options.u2a_1;
|
|
3360
3483
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
3361
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
3484
|
+
var tmp3_elvis_lhs = options == null ? null : options.v2a_1;
|
|
3362
3485
|
return new OpenAPIObject('3.0.0', new InfoObject_0(tmp, VOID, VOID, VOID, VOID, tmp3_elvis_lhs == null ? '0.0.0' : tmp3_elvis_lhs), VOID, emitPaths(ast, this), emitComponents(ast, this));
|
|
3363
3486
|
};
|
|
3364
3487
|
var OpenApiV3Emitter_instance;
|
|
@@ -3416,7 +3539,7 @@
|
|
|
3416
3539
|
while (tmp0_iterator_2.h()) {
|
|
3417
3540
|
var item_0 = tmp0_iterator_2.i();
|
|
3418
3541
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3419
|
-
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_0, Common_getInstance().
|
|
3542
|
+
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_0, Common_getInstance().v29([name, 'Parameter', item_0.w1v_1]));
|
|
3420
3543
|
destination_2.e(tmp$ret$9);
|
|
3421
3544
|
}
|
|
3422
3545
|
var query = destination_2;
|
|
@@ -3438,7 +3561,7 @@
|
|
|
3438
3561
|
while (tmp0_iterator_4.h()) {
|
|
3439
3562
|
var item_1 = tmp0_iterator_4.i();
|
|
3440
3563
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3441
|
-
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_1, Common_getInstance().
|
|
3564
|
+
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_1, Common_getInstance().v29([name, 'Parameter', item_1.w1v_1]));
|
|
3442
3565
|
destination_4.e(tmp$ret$15);
|
|
3443
3566
|
}
|
|
3444
3567
|
var headers = destination_4;
|
|
@@ -3460,7 +3583,7 @@
|
|
|
3460
3583
|
while (tmp0_iterator_6.h()) {
|
|
3461
3584
|
var item_2 = tmp0_iterator_6.i();
|
|
3462
3585
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3463
|
-
var tmp$ret$21 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_2, Common_getInstance().
|
|
3586
|
+
var tmp$ret$21 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_2, Common_getInstance().v29([name, 'Parameter', item_2.w1v_1]));
|
|
3464
3587
|
destination_6.e(tmp$ret$21);
|
|
3465
3588
|
}
|
|
3466
3589
|
var cookies = destination_6;
|
|
@@ -3505,7 +3628,7 @@
|
|
|
3505
3628
|
tmp_2 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, schema);
|
|
3506
3629
|
} else {
|
|
3507
3630
|
if (schema instanceof SchemaObject_0) {
|
|
3508
|
-
tmp_2 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_getInstance().
|
|
3631
|
+
tmp_2 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_getInstance().v29([name, 'RequestBody']));
|
|
3509
3632
|
} else {
|
|
3510
3633
|
if (schema == null) {
|
|
3511
3634
|
tmp_2 = null;
|
|
@@ -3587,7 +3710,7 @@
|
|
|
3587
3710
|
while (tmp0_iterator_10.h()) {
|
|
3588
3711
|
var item_5 = tmp0_iterator_10.i();
|
|
3589
3712
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3590
|
-
var tmp$ret$44 = toField_4(_this__u8e3s4, OpenApiV3Parser_instance, resolve_5(_this__u8e3s4, OpenApiV3Parser_instance, item_5.b1()), item_5.a1(), Common_getInstance().
|
|
3713
|
+
var tmp$ret$44 = toField_4(_this__u8e3s4, OpenApiV3Parser_instance, resolve_5(_this__u8e3s4, OpenApiV3Parser_instance, item_5.b1()), item_5.a1(), Common_getInstance().v29([name, 'ResponseHeader']));
|
|
3591
3714
|
destination_10.e(tmp$ret$44);
|
|
3592
3715
|
}
|
|
3593
3716
|
tmp_7 = destination_10;
|
|
@@ -3601,7 +3724,7 @@
|
|
|
3601
3724
|
tmp_10 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, schema_0);
|
|
3602
3725
|
} else {
|
|
3603
3726
|
if (schema_0 instanceof SchemaObject_0) {
|
|
3604
|
-
tmp_10 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema_0, Common_getInstance().
|
|
3727
|
+
tmp_10 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema_0, Common_getInstance().v29([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
3605
3728
|
} else {
|
|
3606
3729
|
if (schema_0 == null) {
|
|
3607
3730
|
tmp_10 = new Any(false);
|
|
@@ -3669,7 +3792,7 @@
|
|
|
3669
3792
|
switch (tmp0_subject == null ? -1 : tmp0_subject.q2_1) {
|
|
3670
3793
|
case -1:
|
|
3671
3794
|
case 5:
|
|
3672
|
-
tmp_0 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_getInstance().
|
|
3795
|
+
tmp_0 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_getInstance().v29([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
3673
3796
|
break;
|
|
3674
3797
|
case 4:
|
|
3675
3798
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -3682,7 +3805,7 @@
|
|
|
3682
3805
|
// Inline function 'kotlin.let' call
|
|
3683
3806
|
// Inline function 'kotlin.contracts.contract' call
|
|
3684
3807
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatMapResponse.<anonymous>.<anonymous>' call
|
|
3685
|
-
tmp_1 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
3808
|
+
tmp_1 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp1_safe_receiver, Common_getInstance().v29([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
3686
3809
|
}
|
|
3687
3810
|
|
|
3688
3811
|
var tmp0_elvis_lhs_0 = tmp_1;
|
|
@@ -3736,7 +3859,7 @@
|
|
|
3736
3859
|
while (tmp0_iterator_0.h()) {
|
|
3737
3860
|
var element_0 = tmp0_iterator_0.i();
|
|
3738
3861
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseComponents.<anonymous>' call
|
|
3739
|
-
var list = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, element_0.b1(), Common_getInstance().
|
|
3862
|
+
var list = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, element_0.b1(), Common_getInstance().v29([element_0.a1()]));
|
|
3740
3863
|
addAll(destination_0, list);
|
|
3741
3864
|
}
|
|
3742
3865
|
return destination_0;
|
|
@@ -3753,7 +3876,7 @@
|
|
|
3753
3876
|
// Inline function 'kotlin.let' call
|
|
3754
3877
|
// Inline function 'kotlin.contracts.contract' call
|
|
3755
3878
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toName.<anonymous>' call
|
|
3756
|
-
tmp = Common_getInstance().
|
|
3879
|
+
tmp = Common_getInstance().v29([tmp0_safe_receiver]);
|
|
3757
3880
|
}
|
|
3758
3881
|
return tmp;
|
|
3759
3882
|
}
|
|
@@ -3843,7 +3966,7 @@
|
|
|
3843
3966
|
// Inline function 'kotlin.let' call
|
|
3844
3967
|
// Inline function 'kotlin.contracts.contract' call
|
|
3845
3968
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toSegments.<anonymous>.<anonymous>' call
|
|
3846
|
-
tmp_1 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp4_safe_receiver, Common_getInstance().
|
|
3969
|
+
tmp_1 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp4_safe_receiver, Common_getInstance().v29([name, 'Parameter', param]));
|
|
3847
3970
|
}
|
|
3848
3971
|
|
|
3849
3972
|
var tmp5_safe_receiver = tmp_1;
|
|
@@ -4253,7 +4376,7 @@
|
|
|
4253
4376
|
tmp_6 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, item);
|
|
4254
4377
|
} else {
|
|
4255
4378
|
if (item instanceof SchemaObject_0) {
|
|
4256
|
-
tmp_6 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, item, Common_getInstance().
|
|
4379
|
+
tmp_6 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, item, Common_getInstance().v29([name, index_0.toString()]));
|
|
4257
4380
|
} else {
|
|
4258
4381
|
noWhenBranchMatchedException();
|
|
4259
4382
|
}
|
|
@@ -4281,7 +4404,7 @@
|
|
|
4281
4404
|
tmp_8 = emptyList();
|
|
4282
4405
|
} else {
|
|
4283
4406
|
if (element instanceof SchemaObject_0) {
|
|
4284
|
-
tmp_8 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, element, Common_getInstance().
|
|
4407
|
+
tmp_8 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, element, Common_getInstance().v29([name, index_2.toString()]));
|
|
4285
4408
|
} else {
|
|
4286
4409
|
noWhenBranchMatchedException();
|
|
4287
4410
|
}
|
|
@@ -4312,7 +4435,7 @@
|
|
|
4312
4435
|
while (tmp0_iterator_2.h()) {
|
|
4313
4436
|
var e = tmp0_iterator_2.i();
|
|
4314
4437
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
|
|
4315
|
-
var key = e.
|
|
4438
|
+
var key = e.n24_1;
|
|
4316
4439
|
if (set.e(key)) {
|
|
4317
4440
|
list_1.e(e);
|
|
4318
4441
|
}
|
|
@@ -4353,7 +4476,7 @@
|
|
|
4353
4476
|
var key_0 = element_2.a1();
|
|
4354
4477
|
// Inline function 'kotlin.collections.component2' call
|
|
4355
4478
|
var value = element_2.b1();
|
|
4356
|
-
var list_2 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().
|
|
4479
|
+
var list_2 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().v29([name, key_0]));
|
|
4357
4480
|
addAll(destination_3, list_2);
|
|
4358
4481
|
}
|
|
4359
4482
|
var list_3 = destination_3;
|
|
@@ -4402,7 +4525,7 @@
|
|
|
4402
4525
|
var key_1 = element_3.a1();
|
|
4403
4526
|
// Inline function 'kotlin.collections.component2' call
|
|
4404
4527
|
var value_0 = element_3.b1();
|
|
4405
|
-
var list_4 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value_0, Common_getInstance().
|
|
4528
|
+
var list_4 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value_0, Common_getInstance().v29([name, key_1]));
|
|
4406
4529
|
addAll(destination_5, list_4);
|
|
4407
4530
|
}
|
|
4408
4531
|
|
|
@@ -4424,7 +4547,7 @@
|
|
|
4424
4547
|
tmp_14 = emptyList();
|
|
4425
4548
|
} else {
|
|
4426
4549
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
4427
|
-
tmp_14 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, tmp6_safe_receiver, Common_getInstance().
|
|
4550
|
+
tmp_14 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, tmp6_safe_receiver, Common_getInstance().v29([name, 'array']));
|
|
4428
4551
|
} else {
|
|
4429
4552
|
noWhenBranchMatchedException();
|
|
4430
4553
|
}
|
|
@@ -4482,9 +4605,9 @@
|
|
|
4482
4605
|
}
|
|
4483
4606
|
tmp = tmp_0;
|
|
4484
4607
|
} else if (!(schema.o1x_1 == null)) {
|
|
4485
|
-
tmp = new Custom(Common_getInstance().
|
|
4608
|
+
tmp = new Custom(Common_getInstance().v29([getReference_0(referencingObject, OpenApiV3Parser_instance)]), false, false);
|
|
4486
4609
|
} else if (isPrimitive_0(schema.o1w_1)) {
|
|
4487
|
-
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.o1w_1), OpenApiV3Parser_instance), false, false);
|
|
4610
|
+
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.o1w_1), OpenApiV3Parser_instance, schema.x1w_1), false, false);
|
|
4488
4611
|
} else if (equals(schema.o1w_1, Type_ARRAY_getInstance_0())) {
|
|
4489
4612
|
var items = schema.t1w_1;
|
|
4490
4613
|
var tmp_1;
|
|
@@ -4492,7 +4615,7 @@
|
|
|
4492
4615
|
tmp_1 = toIterable_0(toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, items));
|
|
4493
4616
|
} else {
|
|
4494
4617
|
if (items instanceof SchemaObject_0) {
|
|
4495
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
4618
|
+
tmp_1 = new Custom(Common_getInstance().v29([getReference_0(referencingObject, OpenApiV3Parser_instance), 'Array']), true);
|
|
4496
4619
|
} else {
|
|
4497
4620
|
if (items == null) {
|
|
4498
4621
|
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi_0(reference.c1w_1);
|
|
@@ -4504,7 +4627,7 @@
|
|
|
4504
4627
|
}
|
|
4505
4628
|
tmp = tmp_1;
|
|
4506
4629
|
} else {
|
|
4507
|
-
tmp = new Custom(Common_getInstance().
|
|
4630
|
+
tmp = new Custom(Common_getInstance().v29([getReference_0(referencingObject, OpenApiV3Parser_instance)]), false);
|
|
4508
4631
|
}
|
|
4509
4632
|
return tmp;
|
|
4510
4633
|
}
|
|
@@ -4574,7 +4697,7 @@
|
|
|
4574
4697
|
case 1:
|
|
4575
4698
|
case 2:
|
|
4576
4699
|
case 3:
|
|
4577
|
-
tmp_4 = new Primitive(toPrimitive_0(type, $this), false, !(schema.v1w_1 == null));
|
|
4700
|
+
tmp_4 = new Primitive(toPrimitive_0(type, $this, schema.x1w_1), false, !(schema.v1w_1 == null));
|
|
4578
4701
|
break;
|
|
4579
4702
|
case -1:
|
|
4580
4703
|
case 5:
|
|
@@ -4659,7 +4782,7 @@
|
|
|
4659
4782
|
var tmp$ret$0 = tmp_0;
|
|
4660
4783
|
result.m2(element, tmp$ret$0);
|
|
4661
4784
|
}
|
|
4662
|
-
return tmp.
|
|
4785
|
+
return tmp.w29(result);
|
|
4663
4786
|
}
|
|
4664
4787
|
function getReference_0(_this__u8e3s4, $this) {
|
|
4665
4788
|
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.c1w_1), ['/']), 3);
|
|
@@ -4672,20 +4795,20 @@
|
|
|
4672
4795
|
}
|
|
4673
4796
|
return tmp;
|
|
4674
4797
|
}
|
|
4675
|
-
function toPrimitive_0(_this__u8e3s4, $this) {
|
|
4798
|
+
function toPrimitive_0(_this__u8e3s4, $this, format) {
|
|
4676
4799
|
var tmp;
|
|
4677
4800
|
switch (_this__u8e3s4.q2_1) {
|
|
4678
4801
|
case 0:
|
|
4679
|
-
tmp =
|
|
4802
|
+
tmp = String_instance;
|
|
4680
4803
|
break;
|
|
4681
4804
|
case 2:
|
|
4682
|
-
tmp =
|
|
4805
|
+
tmp = new Integer(format === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance());
|
|
4683
4806
|
break;
|
|
4684
4807
|
case 1:
|
|
4685
|
-
tmp =
|
|
4808
|
+
tmp = new Number_0(format === 'float' ? Precision_P32_getInstance() : Precision_P64_getInstance());
|
|
4686
4809
|
break;
|
|
4687
4810
|
case 3:
|
|
4688
|
-
tmp =
|
|
4811
|
+
tmp = Boolean_instance;
|
|
4689
4812
|
break;
|
|
4690
4813
|
default:
|
|
4691
4814
|
var message = 'Type is not a primitive';
|
|
@@ -4712,7 +4835,7 @@
|
|
|
4712
4835
|
var tmp;
|
|
4713
4836
|
if (value instanceof SchemaObject_0) {
|
|
4714
4837
|
var tmp_0 = new FieldIdentifier(key);
|
|
4715
|
-
var tmp_1 = !(value.o1x_1 == null) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().
|
|
4838
|
+
var tmp_1 = !(value.o1x_1 == null) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().v29([name, key])) : equals(value.o1w_1, Type_ARRAY_getInstance_0()) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().v29([name, key, 'Array'])) : toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().v29([name, key]));
|
|
4716
4839
|
var tmp1_safe_receiver = schema.n1x_1;
|
|
4717
4840
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p1(key);
|
|
4718
4841
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
@@ -4743,7 +4866,7 @@
|
|
|
4743
4866
|
tmp = toReference_2(_this__u8e3s4, $this, s, name + (equals(s.o1w_1, Type_ARRAY_getInstance_0()) ? 'Array' : ''));
|
|
4744
4867
|
} else {
|
|
4745
4868
|
if (s == null) {
|
|
4746
|
-
tmp = new Primitive(
|
|
4869
|
+
tmp = new Primitive(String_instance);
|
|
4747
4870
|
} else {
|
|
4748
4871
|
noWhenBranchMatchedException();
|
|
4749
4872
|
}
|
|
@@ -4767,7 +4890,7 @@
|
|
|
4767
4890
|
tmp = toReference_2(_this__u8e3s4, $this, s, name);
|
|
4768
4891
|
} else {
|
|
4769
4892
|
if (s == null) {
|
|
4770
|
-
tmp = new Primitive(
|
|
4893
|
+
tmp = new Primitive(String_instance);
|
|
4771
4894
|
} else {
|
|
4772
4895
|
noWhenBranchMatchedException();
|
|
4773
4896
|
}
|
|
@@ -4781,19 +4904,19 @@
|
|
|
4781
4904
|
return new Field(tmp_0, it, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
4782
4905
|
}
|
|
4783
4906
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
4784
|
-
this.
|
|
4785
|
-
this.
|
|
4786
|
-
this.
|
|
4787
|
-
this.
|
|
4907
|
+
this.w2a_1 = path;
|
|
4908
|
+
this.x2a_1 = pathItem;
|
|
4909
|
+
this.y2a_1 = method;
|
|
4910
|
+
this.z2a_1 = operation;
|
|
4788
4911
|
}
|
|
4789
4912
|
protoOf(FlattenRequest_0).toString = function () {
|
|
4790
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
4913
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.w2a_1) + ', pathItem=' + this.x2a_1.toString() + ', method=' + this.y2a_1.toString() + ', operation=' + this.z2a_1.toString() + ')';
|
|
4791
4914
|
};
|
|
4792
4915
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
4793
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
4794
|
-
result = imul(result, 31) + this.
|
|
4795
|
-
result = imul(result, 31) + this.
|
|
4796
|
-
result = imul(result, 31) + this.
|
|
4916
|
+
var result = Path__hashCode_impl_go73kd_0(this.w2a_1);
|
|
4917
|
+
result = imul(result, 31) + this.x2a_1.hashCode() | 0;
|
|
4918
|
+
result = imul(result, 31) + this.y2a_1.hashCode() | 0;
|
|
4919
|
+
result = imul(result, 31) + this.z2a_1.hashCode() | 0;
|
|
4797
4920
|
return result;
|
|
4798
4921
|
};
|
|
4799
4922
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -4802,13 +4925,13 @@
|
|
|
4802
4925
|
if (!(other instanceof FlattenRequest_0))
|
|
4803
4926
|
return false;
|
|
4804
4927
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
4805
|
-
if (!(this.
|
|
4928
|
+
if (!(this.w2a_1 === tmp0_other_with_cast.w2a_1))
|
|
4806
4929
|
return false;
|
|
4807
|
-
if (!this.
|
|
4930
|
+
if (!this.x2a_1.equals(tmp0_other_with_cast.x2a_1))
|
|
4808
4931
|
return false;
|
|
4809
|
-
if (!this.
|
|
4932
|
+
if (!this.y2a_1.equals(tmp0_other_with_cast.y2a_1))
|
|
4810
4933
|
return false;
|
|
4811
|
-
if (!this.
|
|
4934
|
+
if (!this.z2a_1.equals(tmp0_other_with_cast.z2a_1))
|
|
4812
4935
|
return false;
|
|
4813
4936
|
return true;
|
|
4814
4937
|
};
|
|
@@ -4857,23 +4980,23 @@
|
|
|
4857
4980
|
return destination_1;
|
|
4858
4981
|
}
|
|
4859
4982
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
4860
|
-
this.
|
|
4861
|
-
this.
|
|
4862
|
-
this.
|
|
4863
|
-
this.
|
|
4864
|
-
this.
|
|
4865
|
-
this.
|
|
4983
|
+
this.a2b_1 = path;
|
|
4984
|
+
this.b2b_1 = pathItem;
|
|
4985
|
+
this.c2b_1 = method;
|
|
4986
|
+
this.d2b_1 = operation;
|
|
4987
|
+
this.e2b_1 = statusCode;
|
|
4988
|
+
this.f2b_1 = response;
|
|
4866
4989
|
}
|
|
4867
4990
|
protoOf(FlattenResponse_0).toString = function () {
|
|
4868
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
4991
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.a2b_1) + ', pathItem=' + this.b2b_1.toString() + ', method=' + this.c2b_1.toString() + ', operation=' + this.d2b_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy_0(this.e2b_1) + ', response=' + toString(this.f2b_1) + ')';
|
|
4869
4992
|
};
|
|
4870
4993
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
4871
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
4872
|
-
result = imul(result, 31) + this.
|
|
4873
|
-
result = imul(result, 31) + this.
|
|
4874
|
-
result = imul(result, 31) + this.
|
|
4875
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.
|
|
4876
|
-
result = imul(result, 31) + hashCode(this.
|
|
4994
|
+
var result = Path__hashCode_impl_go73kd_0(this.a2b_1);
|
|
4995
|
+
result = imul(result, 31) + this.b2b_1.hashCode() | 0;
|
|
4996
|
+
result = imul(result, 31) + this.c2b_1.hashCode() | 0;
|
|
4997
|
+
result = imul(result, 31) + this.d2b_1.hashCode() | 0;
|
|
4998
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.e2b_1) | 0;
|
|
4999
|
+
result = imul(result, 31) + hashCode(this.f2b_1) | 0;
|
|
4877
5000
|
return result;
|
|
4878
5001
|
};
|
|
4879
5002
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -4882,17 +5005,17 @@
|
|
|
4882
5005
|
if (!(other instanceof FlattenResponse_0))
|
|
4883
5006
|
return false;
|
|
4884
5007
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
4885
|
-
if (!(this.
|
|
5008
|
+
if (!(this.a2b_1 === tmp0_other_with_cast.a2b_1))
|
|
4886
5009
|
return false;
|
|
4887
|
-
if (!this.
|
|
5010
|
+
if (!this.b2b_1.equals(tmp0_other_with_cast.b2b_1))
|
|
4888
5011
|
return false;
|
|
4889
|
-
if (!this.
|
|
5012
|
+
if (!this.c2b_1.equals(tmp0_other_with_cast.c2b_1))
|
|
4890
5013
|
return false;
|
|
4891
|
-
if (!this.
|
|
5014
|
+
if (!this.d2b_1.equals(tmp0_other_with_cast.d2b_1))
|
|
4892
5015
|
return false;
|
|
4893
|
-
if (!(this.
|
|
5016
|
+
if (!(this.e2b_1 === tmp0_other_with_cast.e2b_1))
|
|
4894
5017
|
return false;
|
|
4895
|
-
if (!equals(this.
|
|
5018
|
+
if (!equals(this.f2b_1, tmp0_other_with_cast.f2b_1))
|
|
4896
5019
|
return false;
|
|
4897
5020
|
return true;
|
|
4898
5021
|
};
|
|
@@ -4973,9 +5096,9 @@
|
|
|
4973
5096
|
}
|
|
4974
5097
|
function OpenApiV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
4975
5098
|
return function ($this$flatMapRequests) {
|
|
4976
|
-
var parameters = plus(resolveParameters_2($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.
|
|
4977
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
4978
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5099
|
+
var parameters = plus(resolveParameters_2($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.x2a_1), resolveParameters_1($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.z2a_1));
|
|
5100
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.z2a_1, OpenApiV3Parser_instance);
|
|
5101
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.w2a_1, OpenApiV3Parser_instance) + $this$flatMapRequests.y2a_1.p2_1 : tmp0_elvis_lhs;
|
|
4979
5102
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4980
5103
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4981
5104
|
var destination = ArrayList_init_$Create$();
|
|
@@ -4991,7 +5114,7 @@
|
|
|
4991
5114
|
// Inline function 'kotlin.let' call
|
|
4992
5115
|
// Inline function 'kotlin.contracts.contract' call
|
|
4993
5116
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
4994
|
-
tmp = flatten_2($this_parseParameters, OpenApiV3Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
5117
|
+
tmp = flatten_2($this_parseParameters, OpenApiV3Parser_instance, tmp0_safe_receiver, Common_getInstance().v29([name, 'Parameter', element.w1v_1]));
|
|
4995
5118
|
}
|
|
4996
5119
|
var tmp1_elvis_lhs = tmp;
|
|
4997
5120
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -5002,11 +5125,11 @@
|
|
|
5002
5125
|
}
|
|
5003
5126
|
function OpenApiV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
5004
5127
|
return function ($this$flatMapRequests) {
|
|
5005
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5006
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5128
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.z2a_1, OpenApiV3Parser_instance);
|
|
5129
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.w2a_1, OpenApiV3Parser_instance) + $this$flatMapRequests.y2a_1.p2_1 : tmp0_elvis_lhs;
|
|
5007
5130
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5008
5131
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5009
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
5132
|
+
var tmp1_safe_receiver = $this$flatMapRequests.z2a_1.z1t_1;
|
|
5010
5133
|
var tmp;
|
|
5011
5134
|
if (tmp1_safe_receiver == null) {
|
|
5012
5135
|
tmp = null;
|
|
@@ -5036,7 +5159,7 @@
|
|
|
5036
5159
|
switch (tmp0_subject == null ? -1 : tmp0_subject.q2_1) {
|
|
5037
5160
|
case -1:
|
|
5038
5161
|
case 5:
|
|
5039
|
-
tmp_1 = flatten_1($this_parseRequestBody, OpenApiV3Parser_instance, schema, Common_getInstance().
|
|
5162
|
+
tmp_1 = flatten_1($this_parseRequestBody, OpenApiV3Parser_instance, schema, Common_getInstance().v29([name, 'RequestBody']));
|
|
5040
5163
|
break;
|
|
5041
5164
|
case 4:
|
|
5042
5165
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -5049,7 +5172,7 @@
|
|
|
5049
5172
|
// Inline function 'kotlin.let' call
|
|
5050
5173
|
// Inline function 'kotlin.contracts.contract' call
|
|
5051
5174
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
5052
|
-
tmp_2 = flatten_2($this_parseRequestBody, OpenApiV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
5175
|
+
tmp_2 = flatten_2($this_parseRequestBody, OpenApiV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().v29([name, 'RequestBody']));
|
|
5053
5176
|
}
|
|
5054
5177
|
|
|
5055
5178
|
var tmp0_elvis_lhs_1 = tmp_2;
|
|
@@ -5081,15 +5204,15 @@
|
|
|
5081
5204
|
}
|
|
5082
5205
|
function OpenApiV3Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
5083
5206
|
return function ($this$flatMapResponses) {
|
|
5084
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.
|
|
5085
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.
|
|
5086
|
-
var response = $this$flatMapResponses.
|
|
5207
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.d2b_1, OpenApiV3Parser_instance);
|
|
5208
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.a2b_1, OpenApiV3Parser_instance) + $this$flatMapResponses.c2b_1.p2_1 : tmp0_elvis_lhs;
|
|
5209
|
+
var response = $this$flatMapResponses.f2b_1;
|
|
5087
5210
|
var tmp;
|
|
5088
5211
|
if (response instanceof ResponseObject_0) {
|
|
5089
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenApiV3Parser_instance, response, name, $this$flatMapResponses.
|
|
5212
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenApiV3Parser_instance, response, name, $this$flatMapResponses.e2b_1);
|
|
5090
5213
|
} else {
|
|
5091
5214
|
if (response instanceof ReferenceObject_0) {
|
|
5092
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenApiV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenApiV3Parser_instance, response).de_1, name, $this$flatMapResponses.
|
|
5215
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenApiV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenApiV3Parser_instance, response).de_1, name, $this$flatMapResponses.e2b_1);
|
|
5093
5216
|
} else {
|
|
5094
5217
|
noWhenBranchMatchedException();
|
|
5095
5218
|
}
|
|
@@ -5108,10 +5231,10 @@
|
|
|
5108
5231
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5109
5232
|
|
|
5110
5233
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
5111
|
-
tmp = tmp_0.
|
|
5234
|
+
tmp = tmp_0.v29([tmp$ret$1]);
|
|
5112
5235
|
break;
|
|
5113
5236
|
case false:
|
|
5114
|
-
tmp = Common_getInstance().
|
|
5237
|
+
tmp = Common_getInstance().v29([it]);
|
|
5115
5238
|
break;
|
|
5116
5239
|
default:
|
|
5117
5240
|
noWhenBranchMatchedException();
|
|
@@ -5121,14 +5244,14 @@
|
|
|
5121
5244
|
}
|
|
5122
5245
|
function OpenApiV3Parser() {
|
|
5123
5246
|
}
|
|
5124
|
-
protoOf(OpenApiV3Parser).
|
|
5125
|
-
return this.
|
|
5247
|
+
protoOf(OpenApiV3Parser).n2a = function (json, strict) {
|
|
5248
|
+
return this.g2b((new OpenAPI_0(Json(VOID, OpenApiV3Parser$parse$lambda(strict)))).i1g(json));
|
|
5126
5249
|
};
|
|
5127
|
-
protoOf(OpenApiV3Parser).
|
|
5250
|
+
protoOf(OpenApiV3Parser).h2b = function (json, strict, $super) {
|
|
5128
5251
|
strict = strict === VOID ? false : strict;
|
|
5129
|
-
return $super === VOID ? this.
|
|
5252
|
+
return $super === VOID ? this.n2a(json, strict) : $super.n2a.call(this, json, strict);
|
|
5130
5253
|
};
|
|
5131
|
-
protoOf(OpenApiV3Parser).
|
|
5254
|
+
protoOf(OpenApiV3Parser).g2b = function (_this__u8e3s4) {
|
|
5132
5255
|
// Inline function 'kotlin.collections.reduce' call
|
|
5133
5256
|
var iterator = listOf_0([parseEndpoint(_this__u8e3s4, this), parseParameters_0(_this__u8e3s4, this), parseRequestBody_0(_this__u8e3s4, this), parseResponseBody_0(_this__u8e3s4, this), parseComponents(_this__u8e3s4, this)]).g();
|
|
5134
5257
|
if (!iterator.h())
|
|
@@ -5148,16 +5271,16 @@
|
|
|
5148
5271
|
function toMap_1(_this__u8e3s4) {
|
|
5149
5272
|
var tmp;
|
|
5150
5273
|
if (_this__u8e3s4 instanceof Custom) {
|
|
5151
|
-
tmp = _this__u8e3s4.
|
|
5274
|
+
tmp = _this__u8e3s4.c29(VOID, VOID, true);
|
|
5152
5275
|
} else {
|
|
5153
5276
|
if (_this__u8e3s4 instanceof Any) {
|
|
5154
|
-
tmp = _this__u8e3s4.
|
|
5277
|
+
tmp = _this__u8e3s4.w28(VOID, true);
|
|
5155
5278
|
} else {
|
|
5156
5279
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
5157
|
-
tmp = _this__u8e3s4.
|
|
5280
|
+
tmp = _this__u8e3s4.e29(VOID, VOID, true);
|
|
5158
5281
|
} else {
|
|
5159
5282
|
if (_this__u8e3s4 instanceof Unit) {
|
|
5160
|
-
tmp = _this__u8e3s4.
|
|
5283
|
+
tmp = _this__u8e3s4.a29(VOID, true);
|
|
5161
5284
|
} else {
|
|
5162
5285
|
noWhenBranchMatchedException();
|
|
5163
5286
|
}
|
|
@@ -5199,16 +5322,16 @@
|
|
|
5199
5322
|
function toIterable_0(_this__u8e3s4) {
|
|
5200
5323
|
var tmp;
|
|
5201
5324
|
if (_this__u8e3s4 instanceof Custom) {
|
|
5202
|
-
tmp = _this__u8e3s4.
|
|
5325
|
+
tmp = _this__u8e3s4.c29(VOID, true);
|
|
5203
5326
|
} else {
|
|
5204
5327
|
if (_this__u8e3s4 instanceof Any) {
|
|
5205
|
-
tmp = _this__u8e3s4.
|
|
5328
|
+
tmp = _this__u8e3s4.w28(true);
|
|
5206
5329
|
} else {
|
|
5207
5330
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
5208
|
-
tmp = _this__u8e3s4.
|
|
5331
|
+
tmp = _this__u8e3s4.e29(VOID, true);
|
|
5209
5332
|
} else {
|
|
5210
5333
|
if (_this__u8e3s4 instanceof Unit) {
|
|
5211
|
-
tmp = _this__u8e3s4.
|
|
5334
|
+
tmp = _this__u8e3s4.a29(true);
|
|
5212
5335
|
} else {
|
|
5213
5336
|
noWhenBranchMatchedException();
|
|
5214
5337
|
}
|