@flock/wirespec 0.11.6 → 0.11.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arrow-arrow-atomic.js +13 -13
- package/arrow-arrow-continuations.js +1 -1
- package/arrow-arrow-core.js +87 -88
- package/arrow-arrow-core.js.map +1 -1
- package/clikt-clikt.js +1258 -1258
- package/colormath-root-colormath.js +436 -436
- package/kotlin-kotlin-stdlib.js +826 -755
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-openapi-bindings.js +4694 -4694
- package/kotlin-rgxgen.js +1853 -1853
- package/kotlinx-io-kotlinx-io-bytestring.js +15 -0
- package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -0
- package/kotlinx-io-kotlinx-io-core.js +2219 -0
- package/kotlinx-io-kotlinx-io-core.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core.js +1799 -1800
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1407 -1407
- package/markdown.js +1904 -1904
- package/mordant-mordant.js +1638 -1638
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +1515 -1515
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +319 -319
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-converter-avro.js +382 -382
- package/wirespec-src-converter-avro.js.map +1 -1
- package/wirespec-src-converter-openapi.js +607 -588
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-plugin-arguments.js +104 -104
- package/wirespec-src-plugin-arguments.js.map +1 -1
- package/wirespec-src-plugin-cli.js +313 -317
- package/wirespec-src-plugin-cli.js.map +1 -1
- package/wirespec-src-plugin-npm.js +34 -34
- package/wirespec-src-tools-generator.js +35 -35
- package/wirespec-src-tools-generator.js.map +1 -1
|
@@ -26,31 +26,31 @@
|
|
|
26
26
|
//region block: imports
|
|
27
27
|
var imul = Math.imul;
|
|
28
28
|
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.k2;
|
|
29
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
29
|
+
var Unit_instance = kotlin_kotlin.$_$.l4;
|
|
30
30
|
var VOID = kotlin_kotlin.$_$.g;
|
|
31
31
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.l;
|
|
32
32
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
33
|
-
var split = kotlin_kotlin.$_$.
|
|
34
|
-
var addAll = kotlin_kotlin.$_$.
|
|
35
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
36
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
37
|
-
var to = kotlin_kotlin.$_$.
|
|
38
|
-
var toMap = kotlin_kotlin.$_$.
|
|
39
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
40
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
33
|
+
var split = kotlin_kotlin.$_$.td;
|
|
34
|
+
var addAll = kotlin_kotlin.$_$.c5;
|
|
35
|
+
var joinToString = kotlin_kotlin.$_$.x6;
|
|
36
|
+
var protoOf = kotlin_kotlin.$_$.cb;
|
|
37
|
+
var to = kotlin_kotlin.$_$.ng;
|
|
38
|
+
var toMap = kotlin_kotlin.$_$.s8;
|
|
39
|
+
var initMetadataForObject = kotlin_kotlin.$_$.ia;
|
|
40
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.n5;
|
|
41
41
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.k;
|
|
42
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
42
|
+
var firstOrNull = kotlin_kotlin.$_$.l6;
|
|
43
43
|
var _Comment___get_value__impl__8r3pla = kotlin_community_flock_wirespec_compiler_core.$_$.j2;
|
|
44
44
|
var Comment = kotlin_community_flock_wirespec_compiler_core.$_$.j;
|
|
45
|
-
var distinct = kotlin_kotlin.$_$.
|
|
46
|
-
var take = kotlin_kotlin.$_$.
|
|
45
|
+
var distinct = kotlin_kotlin.$_$.d6;
|
|
46
|
+
var take = kotlin_kotlin.$_$.l8;
|
|
47
47
|
var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f1;
|
|
48
48
|
var ParameterObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f;
|
|
49
49
|
var ParameterLocation_QUERY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i1;
|
|
50
|
-
var plus = kotlin_kotlin.$_$.
|
|
50
|
+
var plus = kotlin_kotlin.$_$.x7;
|
|
51
51
|
var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g1;
|
|
52
|
-
var mapCapacity = kotlin_kotlin.$_$.
|
|
53
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
52
|
+
var mapCapacity = kotlin_kotlin.$_$.n7;
|
|
53
|
+
var coerceAtLeast = kotlin_kotlin.$_$.nb;
|
|
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.$_$.g2;
|
|
56
56
|
var Iterable = kotlin_community_flock_wirespec_compiler_core.$_$.z;
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
var StatusCode = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l;
|
|
62
62
|
var ResponseObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j;
|
|
63
63
|
var OperationObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e;
|
|
64
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
64
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.kg;
|
|
65
65
|
var ReferenceObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i;
|
|
66
66
|
var Type_STRING_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o1;
|
|
67
67
|
var Bytes = kotlin_community_flock_wirespec_compiler_core.$_$.b1;
|
|
@@ -83,14 +83,14 @@
|
|
|
83
83
|
var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.u1;
|
|
84
84
|
var SwaggerObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m;
|
|
85
85
|
var getKClass = kotlin_kotlin.$_$.e;
|
|
86
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
86
|
+
var arrayOf = kotlin_kotlin.$_$.bg;
|
|
87
87
|
var createKType = kotlin_kotlin.$_$.b;
|
|
88
88
|
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o2;
|
|
89
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
89
|
+
var THROW_CCE = kotlin_kotlin.$_$.of;
|
|
90
90
|
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
|
|
91
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
91
|
+
var isInterface = kotlin_kotlin.$_$.ra;
|
|
92
92
|
var Emitted = kotlin_community_flock_wirespec_compiler_core.$_$.a;
|
|
93
|
-
var listOf = kotlin_kotlin.$_$.
|
|
93
|
+
var listOf = kotlin_kotlin.$_$.l7;
|
|
94
94
|
var InfoObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c;
|
|
95
95
|
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.s;
|
|
96
96
|
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.u;
|
|
@@ -108,22 +108,22 @@
|
|
|
108
108
|
var PathItemObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
|
|
109
109
|
var Refined = kotlin_community_flock_wirespec_compiler_core.$_$.i1;
|
|
110
110
|
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.k1;
|
|
111
|
-
var plus_0 = kotlin_kotlin.$_$.
|
|
111
|
+
var plus_0 = kotlin_kotlin.$_$.t7;
|
|
112
112
|
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.t;
|
|
113
113
|
var JsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.h;
|
|
114
|
-
var toString = kotlin_kotlin.$_$.
|
|
115
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
114
|
+
var toString = kotlin_kotlin.$_$.gb;
|
|
115
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.p1;
|
|
116
116
|
var _Ref___init__impl__7qfl46 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d2;
|
|
117
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
118
|
-
var NotImplementedError = kotlin_kotlin.$_$.
|
|
117
|
+
var emptyList = kotlin_kotlin.$_$.g6;
|
|
118
|
+
var NotImplementedError = kotlin_kotlin.$_$.jf;
|
|
119
119
|
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.m;
|
|
120
120
|
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.o;
|
|
121
|
-
var emptyMap = kotlin_kotlin.$_$.
|
|
121
|
+
var emptyMap = kotlin_kotlin.$_$.h6;
|
|
122
122
|
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j2;
|
|
123
123
|
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.p;
|
|
124
124
|
var HashSet_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
125
125
|
var DefinitionIdentifier = kotlin_community_flock_wirespec_compiler_core.$_$.k;
|
|
126
|
-
var KtMap = kotlin_kotlin.$_$.
|
|
126
|
+
var KtMap = kotlin_kotlin.$_$.x4;
|
|
127
127
|
var String_instance = kotlin_community_flock_wirespec_compiler_core.$_$.o2;
|
|
128
128
|
var Precision_P64_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.e2;
|
|
129
129
|
var Precision_P32_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.d2;
|
|
@@ -131,29 +131,29 @@
|
|
|
131
131
|
var Ref__toString_impl_irb7zi = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e2;
|
|
132
132
|
var BooleanObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a;
|
|
133
133
|
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.j1;
|
|
134
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
135
|
-
var toSet = kotlin_kotlin.$_$.
|
|
134
|
+
var ensureNotNull = kotlin_kotlin.$_$.eg;
|
|
135
|
+
var toSet = kotlin_kotlin.$_$.v8;
|
|
136
136
|
var get_entries = kotlin_community_flock_wirespec_compiler_core.$_$.n;
|
|
137
137
|
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f2;
|
|
138
138
|
var FieldIdentifier = kotlin_community_flock_wirespec_compiler_core.$_$.u;
|
|
139
139
|
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.v;
|
|
140
|
-
var equals = kotlin_kotlin.$_$.
|
|
140
|
+
var equals = kotlin_kotlin.$_$.w9;
|
|
141
141
|
var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c2;
|
|
142
|
-
var drop = kotlin_kotlin.$_$.
|
|
143
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
144
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
145
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
146
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
142
|
+
var drop = kotlin_kotlin.$_$.f6;
|
|
143
|
+
var charSequenceLength = kotlin_kotlin.$_$.s9;
|
|
144
|
+
var charSequenceGet = kotlin_kotlin.$_$.r9;
|
|
145
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.a2;
|
|
146
|
+
var isBlank = kotlin_kotlin.$_$.yc;
|
|
147
147
|
var Path__toString_impl_wlr1lw = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b2;
|
|
148
148
|
var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a2;
|
|
149
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
150
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
149
|
+
var getStringHashCode = kotlin_kotlin.$_$.ba;
|
|
150
|
+
var initMetadataForClass = kotlin_kotlin.$_$.da;
|
|
151
151
|
var StatusCode__toString_impl_6caewy = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i2;
|
|
152
152
|
var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h2;
|
|
153
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
153
|
+
var hashCode = kotlin_kotlin.$_$.ca;
|
|
154
154
|
var OpenAPI = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d;
|
|
155
|
-
var listOf_0 = kotlin_kotlin.$_$.
|
|
156
|
-
var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.
|
|
155
|
+
var listOf_0 = kotlin_kotlin.$_$.m7;
|
|
156
|
+
var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.x1;
|
|
157
157
|
var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.l;
|
|
158
158
|
var Channel = kotlin_community_flock_wirespec_compiler_core.$_$.i;
|
|
159
159
|
var Union = kotlin_community_flock_wirespec_compiler_core.$_$.l1;
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
var SchemaObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c1;
|
|
166
166
|
var ParameterLocation_QUERY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s1;
|
|
167
167
|
var ParameterLocation_HEADER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.q1;
|
|
168
|
-
var Collection = kotlin_kotlin.$_$.
|
|
168
|
+
var Collection = kotlin_kotlin.$_$.p4;
|
|
169
169
|
var RequestBodyObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a1;
|
|
170
170
|
var _StatusCode___init__impl__t1yi9q_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t2;
|
|
171
171
|
var StatusCode_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e1;
|
|
@@ -193,9 +193,9 @@
|
|
|
193
193
|
var _Path___get_value__impl__thmflc_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.p2;
|
|
194
194
|
var Ref__toString_impl_irb7zi_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r2;
|
|
195
195
|
var BooleanObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.n;
|
|
196
|
-
var checkIndexOverflow = kotlin_kotlin.$_$.
|
|
196
|
+
var checkIndexOverflow = kotlin_kotlin.$_$.m5;
|
|
197
197
|
var _Ref___get_value__impl__kxavfe_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s2;
|
|
198
|
-
var getOrNull = kotlin_kotlin.$_$.
|
|
198
|
+
var getOrNull = kotlin_kotlin.$_$.q6;
|
|
199
199
|
var Path__toString_impl_wlr1lw_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o2;
|
|
200
200
|
var Path__hashCode_impl_go73kd_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.n2;
|
|
201
201
|
var StatusCode__toString_impl_6caewy_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v2;
|
|
@@ -214,18 +214,18 @@
|
|
|
214
214
|
initMetadataForObject(OpenApiV3Parser, 'OpenApiV3Parser');
|
|
215
215
|
//endregion
|
|
216
216
|
function Common$className$lambda(it) {
|
|
217
|
-
return Companion_getInstance().
|
|
217
|
+
return Companion_getInstance().g24(it);
|
|
218
218
|
}
|
|
219
219
|
function Common$json$lambda($this$Json) {
|
|
220
|
-
$this$Json.
|
|
220
|
+
$this$Json.w15_1 = true;
|
|
221
221
|
return Unit_instance;
|
|
222
222
|
}
|
|
223
223
|
function Common() {
|
|
224
224
|
Common_instance = this;
|
|
225
225
|
var tmp = this;
|
|
226
|
-
tmp.
|
|
226
|
+
tmp.a2a_1 = Json(VOID, Common$json$lambda);
|
|
227
227
|
}
|
|
228
|
-
protoOf(Common).
|
|
228
|
+
protoOf(Common).b2a = function (arg) {
|
|
229
229
|
// Inline function 'kotlin.collections.flatMap' call
|
|
230
230
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
231
231
|
var destination = ArrayList_init_$Create$();
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
var tmp = destination;
|
|
242
242
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, Common$className$lambda);
|
|
243
243
|
};
|
|
244
|
-
protoOf(Common).
|
|
244
|
+
protoOf(Common).c2a = function (_this__u8e3s4) {
|
|
245
245
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
246
246
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
247
247
|
var destination = ArrayList_init_$Create$();
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
while (tmp0_iterator.h()) {
|
|
292
292
|
var element = tmp0_iterator.i();
|
|
293
293
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
294
|
-
if (element.
|
|
294
|
+
if (element.p23_1.equals(method)) {
|
|
295
295
|
destination.e(element);
|
|
296
296
|
}
|
|
297
297
|
}
|
|
@@ -307,8 +307,8 @@
|
|
|
307
307
|
return firstOrNull(destination_0);
|
|
308
308
|
}
|
|
309
309
|
function emit_0(_this__u8e3s4, $this) {
|
|
310
|
-
var tmp1_operationId = _this__u8e3s4.
|
|
311
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
310
|
+
var tmp1_operationId = _this__u8e3s4.o23_1.b1();
|
|
311
|
+
var tmp0_safe_receiver = _this__u8e3s4.n23_1;
|
|
312
312
|
var tmp;
|
|
313
313
|
var tmp_0 = tmp0_safe_receiver;
|
|
314
314
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
321
321
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
322
322
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
323
|
-
var this_0 = _this__u8e3s4.
|
|
323
|
+
var this_0 = _this__u8e3s4.u23_1;
|
|
324
324
|
var destination = ArrayList_init_$Create$();
|
|
325
325
|
// Inline function 'kotlin.collections.forEach' call
|
|
326
326
|
var tmp0_iterator = this_0.g();
|
|
@@ -328,8 +328,8 @@
|
|
|
328
328
|
var element = tmp0_iterator.i();
|
|
329
329
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
330
330
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
331
|
-
var tmp0_safe_receiver_0 = element.
|
|
332
|
-
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.
|
|
331
|
+
var tmp0_safe_receiver_0 = element.b24_1;
|
|
332
|
+
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.c24_1;
|
|
333
333
|
if (tmp0_safe_receiver_1 == null)
|
|
334
334
|
null;
|
|
335
335
|
else {
|
|
@@ -351,7 +351,7 @@
|
|
|
351
351
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
352
352
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
353
353
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
354
|
-
var this_2 = _this__u8e3s4.
|
|
354
|
+
var this_2 = _this__u8e3s4.v23_1;
|
|
355
355
|
var destination_0 = ArrayList_init_$Create$();
|
|
356
356
|
// Inline function 'kotlin.collections.forEach' call
|
|
357
357
|
var tmp0_iterator_0 = this_2.g();
|
|
@@ -359,8 +359,8 @@
|
|
|
359
359
|
var element_0 = tmp0_iterator_0.i();
|
|
360
360
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
361
361
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
362
|
-
var tmp0_safe_receiver_2 = element_0.
|
|
363
|
-
var tmp0_safe_receiver_3 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.
|
|
362
|
+
var tmp0_safe_receiver_2 = element_0.y23_1;
|
|
363
|
+
var tmp0_safe_receiver_3 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.c24_1;
|
|
364
364
|
if (tmp0_safe_receiver_3 == null)
|
|
365
365
|
null;
|
|
366
366
|
else {
|
|
@@ -382,7 +382,7 @@
|
|
|
382
382
|
// Inline function 'kotlin.collections.map' call
|
|
383
383
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
384
384
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
385
|
-
var this_4 = _this__u8e3s4.
|
|
385
|
+
var this_4 = _this__u8e3s4.u23_1;
|
|
386
386
|
var destination_1 = ArrayList_init_$Create$();
|
|
387
387
|
// Inline function 'kotlin.collections.forEach' call
|
|
388
388
|
var tmp0_iterator_1 = this_4.g();
|
|
@@ -390,7 +390,7 @@
|
|
|
390
390
|
var element_1 = tmp0_iterator_1.i();
|
|
391
391
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
392
392
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
393
|
-
var tmp0_safe_receiver_4 = element_1.
|
|
393
|
+
var tmp0_safe_receiver_4 = element_1.b24_1;
|
|
394
394
|
if (tmp0_safe_receiver_4 == null)
|
|
395
395
|
null;
|
|
396
396
|
else {
|
|
@@ -407,14 +407,14 @@
|
|
|
407
407
|
var item = tmp0_iterator_2.i();
|
|
408
408
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
409
409
|
var tmp0_in = ParameterLocation_BODY_getInstance();
|
|
410
|
-
var tmp1_schema = OpenApiV2Emitter_getInstance().
|
|
411
|
-
var tmp2_required = !item.
|
|
410
|
+
var tmp1_schema = OpenApiV2Emitter_getInstance().p24(item.d24_1);
|
|
411
|
+
var tmp2_required = !item.d24_1.vl();
|
|
412
412
|
var tmp$ret$16 = new ParameterObject('RequestBody', tmp0_in, VOID, tmp2_required, tmp1_schema);
|
|
413
413
|
destination_2.e(tmp$ret$16);
|
|
414
414
|
}
|
|
415
415
|
var tmp_3 = destination_2;
|
|
416
416
|
// Inline function 'kotlin.collections.map' call
|
|
417
|
-
var this_6 = _this__u8e3s4.
|
|
417
|
+
var this_6 = _this__u8e3s4.r23_1;
|
|
418
418
|
// Inline function 'kotlin.collections.mapTo' call
|
|
419
419
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_6, 10));
|
|
420
420
|
var tmp0_iterator_3 = this_6.g();
|
|
@@ -426,7 +426,7 @@
|
|
|
426
426
|
}
|
|
427
427
|
var tmp_4 = plus(tmp_3, destination_3);
|
|
428
428
|
// Inline function 'kotlin.collections.map' call
|
|
429
|
-
var this_7 = _this__u8e3s4.
|
|
429
|
+
var this_7 = _this__u8e3s4.s23_1;
|
|
430
430
|
// Inline function 'kotlin.collections.mapTo' call
|
|
431
431
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_7, 10));
|
|
432
432
|
var tmp0_iterator_4 = this_7.g();
|
|
@@ -438,7 +438,7 @@
|
|
|
438
438
|
}
|
|
439
439
|
var tmp5_parameters = plus(tmp_4, destination_4);
|
|
440
440
|
// Inline function 'kotlin.collections.associate' call
|
|
441
|
-
var this_8 = _this__u8e3s4.
|
|
441
|
+
var this_8 = _this__u8e3s4.v23_1;
|
|
442
442
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_8, 10)), 16);
|
|
443
443
|
// Inline function 'kotlin.collections.associateTo' call
|
|
444
444
|
var destination_5 = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -447,8 +447,8 @@
|
|
|
447
447
|
var element_2 = tmp0_iterator_5.i();
|
|
448
448
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
449
449
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
450
|
-
var tmp_5 = _StatusCode___init__impl__t1yi9q(element_2.
|
|
451
|
-
var tmp0_safe_receiver_5 = _this__u8e3s4.
|
|
450
|
+
var tmp_5 = _StatusCode___init__impl__t1yi9q(element_2.w23_1);
|
|
451
|
+
var tmp0_safe_receiver_5 = _this__u8e3s4.n23_1;
|
|
452
452
|
var tmp_6;
|
|
453
453
|
var tmp_7 = tmp0_safe_receiver_5;
|
|
454
454
|
if ((tmp_7 == null ? null : new Comment(tmp_7)) == null) {
|
|
@@ -457,9 +457,9 @@
|
|
|
457
457
|
tmp_6 = _Comment___get_value__impl__8r3pla(tmp0_safe_receiver_5);
|
|
458
458
|
}
|
|
459
459
|
var tmp1_elvis_lhs = tmp_6;
|
|
460
|
-
var tmp4_description = tmp1_elvis_lhs == null ? _this__u8e3s4.
|
|
460
|
+
var tmp4_description = tmp1_elvis_lhs == null ? _this__u8e3s4.o23_1.b1() + ' ' + element_2.w23_1 + ' response' : tmp1_elvis_lhs;
|
|
461
461
|
// Inline function 'kotlin.collections.associate' call
|
|
462
|
-
var this_9 = element_2.
|
|
462
|
+
var this_9 = element_2.x23_1;
|
|
463
463
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_9, 10)), 16);
|
|
464
464
|
// Inline function 'kotlin.collections.associateTo' call
|
|
465
465
|
var destination_6 = LinkedHashMap_init_$Create$(capacity_0);
|
|
@@ -468,16 +468,16 @@
|
|
|
468
468
|
var element_3 = tmp0_iterator_6.i();
|
|
469
469
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
470
470
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
471
|
-
var tmp_8 = element_3.
|
|
472
|
-
var tmp_9 = emitType_0(element_3.
|
|
473
|
-
var tmp_10 = emitFormat(element_3.
|
|
474
|
-
var tmp_11 = element_3.
|
|
471
|
+
var tmp_8 = element_3.i24_1.b1();
|
|
472
|
+
var tmp_9 = emitType_0(element_3.j24_1, OpenApiV2Emitter_getInstance()).p2_1;
|
|
473
|
+
var tmp_10 = emitFormat(element_3.j24_1, OpenApiV2Emitter_getInstance());
|
|
474
|
+
var tmp_11 = element_3.j24_1;
|
|
475
475
|
var tmp0_safe_receiver_6 = tmp_11 instanceof Iterable ? tmp_11 : null;
|
|
476
|
-
var tmp1_safe_receiver = tmp0_safe_receiver_6 == null ? null : tmp0_safe_receiver_6.
|
|
477
|
-
var pair = to(tmp_8, new HeaderObject(VOID, tmp_9, tmp_10, tmp1_safe_receiver == null ? null : OpenApiV2Emitter_getInstance().
|
|
476
|
+
var tmp1_safe_receiver = tmp0_safe_receiver_6 == null ? null : tmp0_safe_receiver_6.x25_1;
|
|
477
|
+
var pair = to(tmp_8, new HeaderObject(VOID, tmp_9, tmp_10, tmp1_safe_receiver == null ? null : OpenApiV2Emitter_getInstance().p24(tmp1_safe_receiver)));
|
|
478
478
|
destination_6.m2(pair.ce_1, pair.de_1);
|
|
479
479
|
}
|
|
480
|
-
var tmp2_safe_receiver = element_2.
|
|
480
|
+
var tmp2_safe_receiver = element_2.y23_1;
|
|
481
481
|
var tmp_12;
|
|
482
482
|
if (tmp2_safe_receiver == null) {
|
|
483
483
|
tmp_12 = null;
|
|
@@ -486,7 +486,7 @@
|
|
|
486
486
|
// Inline function 'kotlin.contracts.contract' call
|
|
487
487
|
var tmp_13;
|
|
488
488
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
489
|
-
var tmp_14 = tmp2_safe_receiver.
|
|
489
|
+
var tmp_14 = tmp2_safe_receiver.d24_1;
|
|
490
490
|
if (!(tmp_14 instanceof Unit)) {
|
|
491
491
|
tmp_13 = tmp2_safe_receiver;
|
|
492
492
|
} else {
|
|
@@ -502,12 +502,12 @@
|
|
|
502
502
|
// Inline function 'kotlin.let' call
|
|
503
503
|
// Inline function 'kotlin.contracts.contract' call
|
|
504
504
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
505
|
-
var ref = tmp3_safe_receiver.
|
|
505
|
+
var ref = tmp3_safe_receiver.d24_1;
|
|
506
506
|
var tmp_16;
|
|
507
507
|
if (ref instanceof Iterable) {
|
|
508
|
-
tmp_16 = 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().
|
|
508
|
+
tmp_16 = 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().p24(ref.x25_1));
|
|
509
509
|
} else {
|
|
510
|
-
tmp_16 = OpenApiV2Emitter_getInstance().
|
|
510
|
+
tmp_16 = OpenApiV2Emitter_getInstance().p24(ref);
|
|
511
511
|
}
|
|
512
512
|
tmp_15 = tmp_16;
|
|
513
513
|
}
|
|
@@ -521,19 +521,19 @@
|
|
|
521
521
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenApiV2Emitter$emitSegment$lambda);
|
|
522
522
|
}
|
|
523
523
|
function emitParameter(_this__u8e3s4, $this, location) {
|
|
524
|
-
var tmp0_name = _this__u8e3s4.
|
|
525
|
-
var tmp1_type = emitType_0(_this__u8e3s4.
|
|
526
|
-
var tmp2_format = emitFormat(_this__u8e3s4.
|
|
527
|
-
var ref = _this__u8e3s4.
|
|
524
|
+
var tmp0_name = _this__u8e3s4.i24_1.b1();
|
|
525
|
+
var tmp1_type = emitType_0(_this__u8e3s4.j24_1, $this);
|
|
526
|
+
var tmp2_format = emitFormat(_this__u8e3s4.j24_1, $this);
|
|
527
|
+
var ref = _this__u8e3s4.j24_1;
|
|
528
528
|
var tmp;
|
|
529
529
|
if (ref instanceof Iterable) {
|
|
530
|
-
var emit = $this.
|
|
530
|
+
var emit = $this.p24(ref);
|
|
531
531
|
var tmp_0;
|
|
532
532
|
if (emit instanceof ReferenceObject) {
|
|
533
533
|
tmp_0 = emit;
|
|
534
534
|
} else {
|
|
535
535
|
if (emit instanceof SchemaObject) {
|
|
536
|
-
tmp_0 = emit.
|
|
536
|
+
tmp_0 = emit.e1n_1;
|
|
537
537
|
} else {
|
|
538
538
|
noWhenBranchMatchedException();
|
|
539
539
|
}
|
|
@@ -543,7 +543,7 @@
|
|
|
543
543
|
tmp = null;
|
|
544
544
|
}
|
|
545
545
|
var tmp3_items = tmp;
|
|
546
|
-
var tmp4_required = !_this__u8e3s4.
|
|
546
|
+
var tmp4_required = !_this__u8e3s4.j24_1.vl();
|
|
547
547
|
return new ParameterObject(tmp0_name, location, VOID, tmp4_required, VOID, tmp1_type, tmp3_items, tmp2_format);
|
|
548
548
|
}
|
|
549
549
|
function emitType(_this__u8e3s4, $this) {
|
|
@@ -580,7 +580,7 @@
|
|
|
580
580
|
tmp = Type_ARRAY_getInstance();
|
|
581
581
|
} else {
|
|
582
582
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
583
|
-
tmp = emitType(_this__u8e3s4.
|
|
583
|
+
tmp = emitType(_this__u8e3s4.g23_1, $this);
|
|
584
584
|
} else {
|
|
585
585
|
if (_this__u8e3s4 instanceof Custom) {
|
|
586
586
|
tmp = Type_OBJECT_getInstance();
|
|
@@ -603,11 +603,11 @@
|
|
|
603
603
|
function emitFormat(_this__u8e3s4, $this) {
|
|
604
604
|
var tmp;
|
|
605
605
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
606
|
-
var t = _this__u8e3s4.
|
|
606
|
+
var t = _this__u8e3s4.g23_1;
|
|
607
607
|
var tmp_0;
|
|
608
608
|
if (t instanceof Number_0) {
|
|
609
609
|
var tmp_1;
|
|
610
|
-
switch (t.
|
|
610
|
+
switch (t.j23_1.q2_1) {
|
|
611
611
|
case 0:
|
|
612
612
|
tmp_1 = 'float';
|
|
613
613
|
break;
|
|
@@ -622,7 +622,7 @@
|
|
|
622
622
|
} else {
|
|
623
623
|
if (t instanceof Integer) {
|
|
624
624
|
var tmp_2;
|
|
625
|
-
switch (t.
|
|
625
|
+
switch (t.l23_1.q2_1) {
|
|
626
626
|
case 0:
|
|
627
627
|
tmp_2 = 'int32';
|
|
628
628
|
break;
|
|
@@ -651,10 +651,10 @@
|
|
|
651
651
|
function OpenApiV2Emitter$emitSegment$lambda(it) {
|
|
652
652
|
var tmp;
|
|
653
653
|
if (it instanceof Param) {
|
|
654
|
-
tmp = '{' + it.
|
|
654
|
+
tmp = '{' + it.n24_1.b1() + '}';
|
|
655
655
|
} else {
|
|
656
656
|
if (it instanceof Literal) {
|
|
657
|
-
tmp = it.
|
|
657
|
+
tmp = it.x24_1;
|
|
658
658
|
} else {
|
|
659
659
|
noWhenBranchMatchedException();
|
|
660
660
|
}
|
|
@@ -664,42 +664,42 @@
|
|
|
664
664
|
function OpenApiV2Emitter() {
|
|
665
665
|
OpenApiV2Emitter_instance = this;
|
|
666
666
|
Emitter.call(this, get_noLogger());
|
|
667
|
-
this.
|
|
667
|
+
this.f2a_1 = '';
|
|
668
668
|
}
|
|
669
|
-
protoOf(OpenApiV2Emitter).
|
|
670
|
-
return this.
|
|
669
|
+
protoOf(OpenApiV2Emitter).p25 = function () {
|
|
670
|
+
return this.f2a_1;
|
|
671
671
|
};
|
|
672
|
-
protoOf(OpenApiV2Emitter).
|
|
672
|
+
protoOf(OpenApiV2Emitter).j22 = function (ast) {
|
|
673
673
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
674
|
-
var this_0 = Common_getInstance().
|
|
675
|
-
var value = this.
|
|
674
|
+
var this_0 = Common_getInstance().a2a_1;
|
|
675
|
+
var value = this.g2a(ast);
|
|
676
676
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
677
|
-
var this_1 = this_0.
|
|
677
|
+
var this_1 = this_0.lo();
|
|
678
678
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
679
679
|
var this_2 = serializer(this_1, createKType(getKClass(SwaggerObject), arrayOf([]), false));
|
|
680
680
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
681
|
-
var tmp$ret$2 = this_0.
|
|
681
|
+
var tmp$ret$2 = this_0.a15(tmp$ret$1, value);
|
|
682
682
|
return listOf(new Emitted('SwaggerObject', tmp$ret$2));
|
|
683
683
|
};
|
|
684
|
-
protoOf(OpenApiV2Emitter).
|
|
685
|
-
return this.
|
|
684
|
+
protoOf(OpenApiV2Emitter).t25 = function (type, ast) {
|
|
685
|
+
return this.q26();
|
|
686
686
|
};
|
|
687
|
-
protoOf(OpenApiV2Emitter).
|
|
688
|
-
return this.
|
|
687
|
+
protoOf(OpenApiV2Emitter).h26 = function (enum_0, ast) {
|
|
688
|
+
return this.q26();
|
|
689
689
|
};
|
|
690
|
-
protoOf(OpenApiV2Emitter).
|
|
691
|
-
return this.
|
|
690
|
+
protoOf(OpenApiV2Emitter).d26 = function (refined) {
|
|
691
|
+
return this.q26();
|
|
692
692
|
};
|
|
693
|
-
protoOf(OpenApiV2Emitter).
|
|
694
|
-
return this.
|
|
693
|
+
protoOf(OpenApiV2Emitter).l26 = function (endpoint) {
|
|
694
|
+
return this.q26();
|
|
695
695
|
};
|
|
696
|
-
protoOf(OpenApiV2Emitter).
|
|
697
|
-
return this.
|
|
696
|
+
protoOf(OpenApiV2Emitter).j26 = function (union) {
|
|
697
|
+
return this.q26();
|
|
698
698
|
};
|
|
699
|
-
protoOf(OpenApiV2Emitter).
|
|
700
|
-
return this.
|
|
699
|
+
protoOf(OpenApiV2Emitter).k26 = function (channel) {
|
|
700
|
+
return this.q26();
|
|
701
701
|
};
|
|
702
|
-
protoOf(OpenApiV2Emitter).
|
|
702
|
+
protoOf(OpenApiV2Emitter).g2a = function (ast) {
|
|
703
703
|
var tmp = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, '0.0.0');
|
|
704
704
|
var tmp_0 = listOf('application/json');
|
|
705
705
|
var tmp_1 = listOf('application/json');
|
|
@@ -721,7 +721,7 @@
|
|
|
721
721
|
while (tmp0_iterator_0.h()) {
|
|
722
722
|
var element_0 = tmp0_iterator_0.i();
|
|
723
723
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
724
|
-
var key = element_0.
|
|
724
|
+
var key = element_0.q23_1;
|
|
725
725
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
726
726
|
var value = destination_0.f2(key);
|
|
727
727
|
var tmp_2;
|
|
@@ -766,9 +766,9 @@
|
|
|
766
766
|
var item_0 = tmp0_iterator_3.i();
|
|
767
767
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
768
768
|
var tmp0_in = ParameterLocation_PATH_getInstance();
|
|
769
|
-
var tmp1_name = item_0.
|
|
770
|
-
var tmp2_type = emitType_0(item_0.
|
|
771
|
-
var tmp3_format = emitFormat(item_0.
|
|
769
|
+
var tmp1_name = item_0.n24_1.b1();
|
|
770
|
+
var tmp2_type = emitType_0(item_0.o24_1, OpenApiV2Emitter_getInstance());
|
|
771
|
+
var tmp3_format = emitFormat(item_0.o24_1, OpenApiV2Emitter_getInstance());
|
|
772
772
|
var tmp$ret$12 = new ParameterObject(tmp1_name, tmp0_in, VOID, VOID, VOID, tmp2_type, VOID, tmp3_format);
|
|
773
773
|
destination_3.e(tmp$ret$12);
|
|
774
774
|
}
|
|
@@ -803,9 +803,9 @@
|
|
|
803
803
|
var element_3 = tmp0_iterator_5.i();
|
|
804
804
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
805
805
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
806
|
-
var tmp_5 = element_3.
|
|
806
|
+
var tmp_5 = element_3.h25_1.b1();
|
|
807
807
|
var tmp0_type = Type_STRING_getInstance();
|
|
808
|
-
var tmp1_pattern = element_3.
|
|
808
|
+
var tmp1_pattern = element_3.i25_1.f26_1;
|
|
809
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));
|
|
810
810
|
destination_5.m2(pair.ce_1, pair.de_1);
|
|
811
811
|
}
|
|
@@ -829,9 +829,9 @@
|
|
|
829
829
|
var element_5 = tmp0_iterator_7.i();
|
|
830
830
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
831
831
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
832
|
-
var tmp_7 = element_5.
|
|
832
|
+
var tmp_7 = element_5.d25_1.b1();
|
|
833
833
|
// Inline function 'kotlin.collections.associate' call
|
|
834
|
-
var this_0 = element_5.
|
|
834
|
+
var this_0 = element_5.e25_1.w25_1;
|
|
835
835
|
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
836
836
|
// Inline function 'kotlin.collections.associateTo' call
|
|
837
837
|
var destination_8 = LinkedHashMap_init_$Create$(capacity_1);
|
|
@@ -840,20 +840,20 @@
|
|
|
840
840
|
var element_6 = tmp0_iterator_8.i();
|
|
841
841
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
842
842
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
843
|
-
var pair_0 = OpenApiV2Emitter_getInstance().
|
|
843
|
+
var pair_0 = OpenApiV2Emitter_getInstance().s24(element_6);
|
|
844
844
|
destination_8.m2(pair_0.ce_1, pair_0.de_1);
|
|
845
845
|
}
|
|
846
846
|
// Inline function 'kotlin.takeIf' call
|
|
847
847
|
// Inline function 'kotlin.collections.map' call
|
|
848
848
|
// Inline function 'kotlin.collections.filter' call
|
|
849
849
|
// Inline function 'kotlin.collections.filterTo' call
|
|
850
|
-
var this_1 = element_5.
|
|
850
|
+
var this_1 = element_5.e25_1.w25_1;
|
|
851
851
|
var destination_9 = ArrayList_init_$Create$();
|
|
852
852
|
var tmp0_iterator_9 = this_1.g();
|
|
853
853
|
while (tmp0_iterator_9.h()) {
|
|
854
854
|
var element_7 = tmp0_iterator_9.i();
|
|
855
855
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
856
|
-
if (!element_7.
|
|
856
|
+
if (!element_7.j24_1.vl()) {
|
|
857
857
|
destination_9.e(element_7);
|
|
858
858
|
}
|
|
859
859
|
}
|
|
@@ -863,7 +863,7 @@
|
|
|
863
863
|
while (tmp0_iterator_10.h()) {
|
|
864
864
|
var item_1 = tmp0_iterator_10.i();
|
|
865
865
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
866
|
-
var tmp$ret$31 = item_1.
|
|
866
|
+
var tmp$ret$31 = item_1.i24_1.b1();
|
|
867
867
|
destination_10.e(tmp$ret$31);
|
|
868
868
|
}
|
|
869
869
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -899,10 +899,10 @@
|
|
|
899
899
|
var element_9 = tmp0_iterator_12.i();
|
|
900
900
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
901
901
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
902
|
-
var tmp_10 = element_9.
|
|
902
|
+
var tmp_10 = element_9.k25_1.b1();
|
|
903
903
|
var tmp0_type_0 = Type_STRING_getInstance();
|
|
904
904
|
// Inline function 'kotlin.collections.map' call
|
|
905
|
-
var this_2 = element_9.
|
|
905
|
+
var this_2 = element_9.l25_1;
|
|
906
906
|
// Inline function 'kotlin.collections.mapTo' call
|
|
907
907
|
var destination_13 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
|
|
908
908
|
var tmp0_iterator_13 = this_2.g();
|
|
@@ -917,22 +917,22 @@
|
|
|
917
917
|
}
|
|
918
918
|
return new SwaggerObject('2.0', tmp, VOID, VOID, VOID, tmp_0, tmp_1, tmp_4, plus_0(tmp_9, destination_12));
|
|
919
919
|
};
|
|
920
|
-
protoOf(OpenApiV2Emitter).
|
|
921
|
-
return to(_this__u8e3s4.
|
|
920
|
+
protoOf(OpenApiV2Emitter).s24 = function (_this__u8e3s4) {
|
|
921
|
+
return to(_this__u8e3s4.i24_1.b1(), this.p24(_this__u8e3s4.j24_1));
|
|
922
922
|
};
|
|
923
|
-
protoOf(OpenApiV2Emitter).
|
|
923
|
+
protoOf(OpenApiV2Emitter).p24 = function (_this__u8e3s4) {
|
|
924
924
|
var tmp;
|
|
925
925
|
if (_this__u8e3s4 instanceof Dict) {
|
|
926
|
-
tmp = 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_OBJECT_getInstance(), this.
|
|
926
|
+
tmp = 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_OBJECT_getInstance(), this.p24(_this__u8e3s4.a26_1));
|
|
927
927
|
} else {
|
|
928
928
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
929
|
-
tmp = 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(), this.
|
|
929
|
+
tmp = 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(), this.p24(_this__u8e3s4.x25_1));
|
|
930
930
|
} else {
|
|
931
931
|
if (_this__u8e3s4 instanceof Custom) {
|
|
932
|
-
tmp = new ReferenceObject(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.
|
|
932
|
+
tmp = new ReferenceObject(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.y22_1));
|
|
933
933
|
} else {
|
|
934
934
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
935
|
-
var tmp1_type = emitType(_this__u8e3s4.
|
|
935
|
+
var tmp1_type = emitType(_this__u8e3s4.g23_1, this);
|
|
936
936
|
var tmp2_format = emitFormat(_this__u8e3s4, this);
|
|
937
937
|
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);
|
|
938
938
|
} else {
|
|
@@ -962,7 +962,7 @@
|
|
|
962
962
|
function parseEndpoints(_this__u8e3s4, $this) {
|
|
963
963
|
// Inline function 'kotlin.collections.flatMap' call
|
|
964
964
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
965
|
-
var this_0 = _this__u8e3s4.
|
|
965
|
+
var this_0 = _this__u8e3s4.s1g_1;
|
|
966
966
|
var destination = ArrayList_init_$Create$();
|
|
967
967
|
// Inline function 'kotlin.collections.iterator' call
|
|
968
968
|
var tmp0_iterator = this_0.z().g();
|
|
@@ -970,7 +970,7 @@
|
|
|
970
970
|
var element = tmp0_iterator.i();
|
|
971
971
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>' call
|
|
972
972
|
// Inline function 'kotlin.collections.component1' call
|
|
973
|
-
var path = element.a1().
|
|
973
|
+
var path = element.a1().o1h_1;
|
|
974
974
|
// Inline function 'kotlin.collections.component2' call
|
|
975
975
|
var pathItem = element.b1();
|
|
976
976
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -998,7 +998,7 @@
|
|
|
998
998
|
while (tmp0_iterator_1.h()) {
|
|
999
999
|
var element_1 = tmp0_iterator_1.i();
|
|
1000
1000
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
1001
|
-
if (element_1.
|
|
1001
|
+
if (element_1.k1i_1.equals(ParameterLocation_QUERY_getInstance())) {
|
|
1002
1002
|
destination_1.e(element_1);
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|
|
@@ -1020,7 +1020,7 @@
|
|
|
1020
1020
|
while (tmp0_iterator_3.h()) {
|
|
1021
1021
|
var element_2 = tmp0_iterator_3.i();
|
|
1022
1022
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
1023
|
-
if (element_2.
|
|
1023
|
+
if (element_2.k1i_1.equals(ParameterLocation_HEADER_getInstance())) {
|
|
1024
1024
|
destination_3.e(element_2);
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
@@ -1043,7 +1043,7 @@
|
|
|
1043
1043
|
while (tmp0_iterator_5.h()) {
|
|
1044
1044
|
var element_3 = tmp0_iterator_5.i();
|
|
1045
1045
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
1046
|
-
if (element_3.
|
|
1046
|
+
if (element_3.k1i_1.equals(ParameterLocation_BODY_getInstance())) {
|
|
1047
1047
|
destination_5.e(element_3);
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
@@ -1056,10 +1056,10 @@
|
|
|
1056
1056
|
// Inline function 'kotlin.collections.map' call
|
|
1057
1057
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
1058
1058
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1059
|
-
var tmp0_elvis_lhs_0 = _this__u8e3s4.
|
|
1059
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.q1g_1;
|
|
1060
1060
|
var tmp = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1061
1061
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1062
|
-
var tmp0_elvis_lhs_1 = operation.
|
|
1062
|
+
var tmp0_elvis_lhs_1 = operation.e1l_1;
|
|
1063
1063
|
var tmp$ret$22 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1064
1064
|
var this_2 = distinct(plus(tmp, tmp$ret$22));
|
|
1065
1065
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -1078,13 +1078,13 @@
|
|
|
1078
1078
|
var item_1 = tmp0_iterator_7.i();
|
|
1079
1079
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1080
1080
|
var isNullable = false;
|
|
1081
|
-
var schema = element_4.
|
|
1081
|
+
var schema = element_4.n1i_1;
|
|
1082
1082
|
var tmp_1;
|
|
1083
1083
|
if (schema instanceof ReferenceObject) {
|
|
1084
1084
|
tmp_1 = toReference(_this__u8e3s4, OpenApiV2Parser_instance, schema, isNullable);
|
|
1085
1085
|
} else {
|
|
1086
1086
|
if (schema instanceof SchemaObject) {
|
|
1087
|
-
tmp_1 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, schema, Common_getInstance().
|
|
1087
|
+
tmp_1 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, schema, Common_getInstance().b2a([name, 'RequestBody']), isNullable);
|
|
1088
1088
|
} else {
|
|
1089
1089
|
if (schema == null) {
|
|
1090
1090
|
var reason = 'Not yet implemented';
|
|
@@ -1113,7 +1113,7 @@
|
|
|
1113
1113
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1114
1114
|
// Inline function 'kotlin.collections.mapValues' call
|
|
1115
1115
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1116
|
-
var tmp0_elvis_lhs_2 = operation.
|
|
1116
|
+
var tmp0_elvis_lhs_2 = operation.h1l_1;
|
|
1117
1117
|
var this_4 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
1118
1118
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
1119
1119
|
var destination_8 = LinkedHashMap_init_$Create$(mapCapacity(this_4.j()));
|
|
@@ -1135,16 +1135,16 @@
|
|
|
1135
1135
|
var element_6 = tmp0_iterator_9.i();
|
|
1136
1136
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
1137
1137
|
// Inline function 'kotlin.collections.component1' call
|
|
1138
|
-
var status = element_6.a1().
|
|
1138
|
+
var status = element_6.a1().r1n_1;
|
|
1139
1139
|
// Inline function 'kotlin.collections.component2' call
|
|
1140
1140
|
var res = element_6.b1();
|
|
1141
1141
|
// Inline function 'kotlin.collections.map' call
|
|
1142
1142
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
1143
1143
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1144
|
-
var tmp0_elvis_lhs_3 = _this__u8e3s4.
|
|
1144
|
+
var tmp0_elvis_lhs_3 = _this__u8e3s4.r1g_1;
|
|
1145
1145
|
var tmp_4 = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
|
|
1146
1146
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1147
|
-
var tmp0_elvis_lhs_4 = operation.
|
|
1147
|
+
var tmp0_elvis_lhs_4 = operation.f1l_1;
|
|
1148
1148
|
var tmp$ret$43 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
1149
1149
|
var this_5 = distinct(plus(tmp_4, tmp$ret$43));
|
|
1150
1150
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -1164,7 +1164,7 @@
|
|
|
1164
1164
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1165
1165
|
var tmp_6 = _StatusCode___get_value__impl__we50mu(status);
|
|
1166
1166
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1167
|
-
var tmp0_safe_receiver = res.
|
|
1167
|
+
var tmp0_safe_receiver = res.m1j_1;
|
|
1168
1168
|
var tmp_7;
|
|
1169
1169
|
if (tmp0_safe_receiver == null) {
|
|
1170
1170
|
tmp_7 = null;
|
|
@@ -1188,7 +1188,7 @@
|
|
|
1188
1188
|
}
|
|
1189
1189
|
var tmp0_elvis_lhs_5 = tmp_7;
|
|
1190
1190
|
var tmp_8 = tmp0_elvis_lhs_5 == null ? emptyList() : tmp0_elvis_lhs_5;
|
|
1191
|
-
var tmp1_safe_receiver = res.
|
|
1191
|
+
var tmp1_safe_receiver = res.l1j_1;
|
|
1192
1192
|
var tmp_9;
|
|
1193
1193
|
if (tmp1_safe_receiver == null) {
|
|
1194
1194
|
tmp_9 = null;
|
|
@@ -1201,7 +1201,7 @@
|
|
|
1201
1201
|
tmp_10 = toReference(_this__u8e3s4, OpenApiV2Parser_instance, tmp1_safe_receiver, false);
|
|
1202
1202
|
} else {
|
|
1203
1203
|
if (tmp1_safe_receiver instanceof SchemaObject) {
|
|
1204
|
-
tmp_10 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
1204
|
+
tmp_10 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, tmp1_safe_receiver, Common_getInstance().b2a([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']), false);
|
|
1205
1205
|
} else {
|
|
1206
1206
|
noWhenBranchMatchedException();
|
|
1207
1207
|
}
|
|
@@ -1220,7 +1220,7 @@
|
|
|
1220
1220
|
while (tmp0_iterator_12.h()) {
|
|
1221
1221
|
var e = tmp0_iterator_12.i();
|
|
1222
1222
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
1223
|
-
var key = to(e.
|
|
1223
|
+
var key = to(e.w23_1, e.y23_1);
|
|
1224
1224
|
if (set.e(key)) {
|
|
1225
1225
|
list_1.e(e);
|
|
1226
1226
|
}
|
|
@@ -1248,7 +1248,7 @@
|
|
|
1248
1248
|
// Inline function 'kotlin.collections.filter' call
|
|
1249
1249
|
// Inline function 'arrow.core.filterIsInstance' call
|
|
1250
1250
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1251
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1251
|
+
var tmp0_elvis_lhs = _this__u8e3s4.t1g_1;
|
|
1252
1252
|
// Inline function 'kotlin.collections.filterValues' call
|
|
1253
1253
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1254
1254
|
var result = LinkedHashMap_init_$Create$_0();
|
|
@@ -1270,7 +1270,7 @@
|
|
|
1270
1270
|
while (tmp0_iterator_0.h()) {
|
|
1271
1271
|
var element = tmp0_iterator_0.i();
|
|
1272
1272
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseDefinitions.<anonymous>' call
|
|
1273
|
-
if (element.b1().
|
|
1273
|
+
if (element.b1().h1n_1 == null) {
|
|
1274
1274
|
destination.m2(element.a1(), element.b1());
|
|
1275
1275
|
}
|
|
1276
1276
|
}
|
|
@@ -1281,7 +1281,7 @@
|
|
|
1281
1281
|
while (tmp0_iterator_1.h()) {
|
|
1282
1282
|
var element_0 = tmp0_iterator_1.i();
|
|
1283
1283
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseDefinitions.<anonymous>' call
|
|
1284
|
-
var list = flatten(_this__u8e3s4, OpenApiV2Parser_instance, element_0.b1(), Common_getInstance().
|
|
1284
|
+
var list = flatten(_this__u8e3s4, OpenApiV2Parser_instance, element_0.b1(), Common_getInstance().b2a([element_0.a1()]));
|
|
1285
1285
|
addAll(destination_0, list);
|
|
1286
1286
|
}
|
|
1287
1287
|
return destination_0;
|
|
@@ -1312,7 +1312,7 @@
|
|
|
1312
1312
|
function resolveParameters(_this__u8e3s4, $this, operation) {
|
|
1313
1313
|
// Inline function 'kotlin.collections.map' call
|
|
1314
1314
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1315
|
-
var tmp0_elvis_lhs = operation.
|
|
1315
|
+
var tmp0_elvis_lhs = operation.g1l_1;
|
|
1316
1316
|
var this_0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1317
1317
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1318
1318
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
@@ -1338,7 +1338,7 @@
|
|
|
1338
1338
|
function resolveParameters_0(_this__u8e3s4, $this, itemObject) {
|
|
1339
1339
|
// Inline function 'kotlin.collections.map' call
|
|
1340
1340
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1341
|
-
var tmp0_elvis_lhs = itemObject.
|
|
1341
|
+
var tmp0_elvis_lhs = itemObject.e1i_1;
|
|
1342
1342
|
var this_0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1343
1343
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1344
1344
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
@@ -1362,11 +1362,11 @@
|
|
|
1362
1362
|
return destination;
|
|
1363
1363
|
}
|
|
1364
1364
|
function resolveParameterObject(_this__u8e3s4, $this, reference) {
|
|
1365
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1365
|
+
var tmp0_safe_receiver = _this__u8e3s4.u1g_1;
|
|
1366
1366
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f2(getReference(reference, $this));
|
|
1367
1367
|
var tmp;
|
|
1368
1368
|
if (tmp1_elvis_lhs == null) {
|
|
1369
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
1369
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.m1n_1);
|
|
1370
1370
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1371
1371
|
} else {
|
|
1372
1372
|
tmp = tmp1_elvis_lhs;
|
|
@@ -1374,11 +1374,11 @@
|
|
|
1374
1374
|
return tmp;
|
|
1375
1375
|
}
|
|
1376
1376
|
function resolveResponseObject(_this__u8e3s4, $this, reference) {
|
|
1377
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1377
|
+
var tmp0_safe_receiver = _this__u8e3s4.v1g_1;
|
|
1378
1378
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f2(getReference(reference, $this));
|
|
1379
1379
|
var tmp;
|
|
1380
1380
|
if (tmp1_elvis_lhs == null) {
|
|
1381
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
1381
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.m1n_1);
|
|
1382
1382
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1383
1383
|
} else {
|
|
1384
1384
|
tmp = tmp1_elvis_lhs;
|
|
@@ -1386,11 +1386,11 @@
|
|
|
1386
1386
|
return tmp;
|
|
1387
1387
|
}
|
|
1388
1388
|
function resolveSchemaObject(_this__u8e3s4, $this, reference) {
|
|
1389
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1389
|
+
var tmp0_safe_receiver = _this__u8e3s4.t1g_1;
|
|
1390
1390
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f2(getReference(reference, $this));
|
|
1391
1391
|
var tmp;
|
|
1392
1392
|
if (tmp1_elvis_lhs == null) {
|
|
1393
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
1393
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.m1n_1);
|
|
1394
1394
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1395
1395
|
} else {
|
|
1396
1396
|
tmp = tmp1_elvis_lhs;
|
|
@@ -1485,12 +1485,12 @@
|
|
|
1485
1485
|
}
|
|
1486
1486
|
function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
1487
1487
|
var tmp;
|
|
1488
|
-
if (!(schemaObject.
|
|
1488
|
+
if (!(schemaObject.h1n_1 == null)) {
|
|
1489
1489
|
var tmp_0;
|
|
1490
|
-
if (schemaObject.
|
|
1490
|
+
if (schemaObject.h1n_1 instanceof BooleanObject) {
|
|
1491
1491
|
tmp_0 = emptyList();
|
|
1492
1492
|
} else {
|
|
1493
|
-
var tmp1_safe_receiver = schemaObject.
|
|
1493
|
+
var tmp1_safe_receiver = schemaObject.h1n_1;
|
|
1494
1494
|
var tmp_1;
|
|
1495
1495
|
if (tmp1_safe_receiver == null) {
|
|
1496
1496
|
tmp_1 = null;
|
|
@@ -1509,7 +1509,7 @@
|
|
|
1509
1509
|
// Inline function 'kotlin.contracts.contract' call
|
|
1510
1510
|
var tmp_3;
|
|
1511
1511
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
|
|
1512
|
-
if (!(tmp2_safe_receiver.
|
|
1512
|
+
if (!(tmp2_safe_receiver.g1n_1 == null)) {
|
|
1513
1513
|
tmp_3 = tmp2_safe_receiver;
|
|
1514
1514
|
} else {
|
|
1515
1515
|
tmp_3 = null;
|
|
@@ -1530,12 +1530,12 @@
|
|
|
1530
1530
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
1531
1531
|
}
|
|
1532
1532
|
tmp = tmp_0;
|
|
1533
|
-
} else if (!(schemaObject.
|
|
1533
|
+
} else if (!(schemaObject.f1n_1 == null)) {
|
|
1534
1534
|
var tmp_5 = new DefinitionIdentifier(name);
|
|
1535
1535
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
1536
1536
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1537
1537
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1538
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
1538
|
+
var tmp0_elvis_lhs = schemaObject.f1n_1;
|
|
1539
1539
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1540
1540
|
var this_0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1541
1541
|
var destination = ArrayList_init_$Create$();
|
|
@@ -1562,7 +1562,7 @@
|
|
|
1562
1562
|
while (tmp0_iterator_0.h()) {
|
|
1563
1563
|
var e = tmp0_iterator_0.i();
|
|
1564
1564
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
|
|
1565
|
-
var key = e.
|
|
1565
|
+
var key = e.i24_1;
|
|
1566
1566
|
if (set.e(key)) {
|
|
1567
1567
|
list_0.e(e);
|
|
1568
1568
|
}
|
|
@@ -1570,7 +1570,7 @@
|
|
|
1570
1570
|
var tmp_7 = listOf(new Type(null, tmp_5, new Shape(list_0), emptyList()));
|
|
1571
1571
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1572
1572
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1573
|
-
var this_1 = ensureNotNull(schemaObject.
|
|
1573
|
+
var this_1 = ensureNotNull(schemaObject.f1n_1);
|
|
1574
1574
|
var destination_0 = ArrayList_init_$Create$();
|
|
1575
1575
|
var tmp0_iterator_1 = this_1.g();
|
|
1576
1576
|
while (tmp0_iterator_1.h()) {
|
|
@@ -1583,7 +1583,7 @@
|
|
|
1583
1583
|
if (element_0 instanceof SchemaObject) {
|
|
1584
1584
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1585
1585
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1586
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
1586
|
+
var tmp0_elvis_lhs_0 = element_0.g1n_1;
|
|
1587
1587
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1588
1588
|
var this_2 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
1589
1589
|
var destination_1 = ArrayList_init_$Create$();
|
|
@@ -1601,7 +1601,7 @@
|
|
|
1601
1601
|
tmp_9 = emptyList();
|
|
1602
1602
|
} else {
|
|
1603
1603
|
if (value instanceof SchemaObject) {
|
|
1604
|
-
tmp_9 = flatten(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().
|
|
1604
|
+
tmp_9 = flatten(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().b2a([name, key_0]));
|
|
1605
1605
|
} else {
|
|
1606
1606
|
noWhenBranchMatchedException();
|
|
1607
1607
|
}
|
|
@@ -1618,17 +1618,17 @@
|
|
|
1618
1618
|
addAll(destination_0, list_2);
|
|
1619
1619
|
}
|
|
1620
1620
|
tmp = plus(tmp_7, destination_0);
|
|
1621
|
-
} else if (!(schemaObject.
|
|
1621
|
+
} else if (!(schemaObject.c1n_1 == null)) {
|
|
1622
1622
|
// Inline function 'kotlin.let' call
|
|
1623
1623
|
// Inline function 'kotlin.collections.map' call
|
|
1624
|
-
var this_3 = ensureNotNull(schemaObject.
|
|
1624
|
+
var this_3 = ensureNotNull(schemaObject.c1n_1);
|
|
1625
1625
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1626
1626
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_3, 10));
|
|
1627
1627
|
var tmp0_iterator_3 = this_3.g();
|
|
1628
1628
|
while (tmp0_iterator_3.h()) {
|
|
1629
1629
|
var item = tmp0_iterator_3.i();
|
|
1630
1630
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
|
|
1631
|
-
var tmp$ret$22 = item.
|
|
1631
|
+
var tmp$ret$22 = item.e17();
|
|
1632
1632
|
destination_2.e(tmp$ret$22);
|
|
1633
1633
|
}
|
|
1634
1634
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -1636,7 +1636,7 @@
|
|
|
1636
1636
|
var it = toSet(destination_2);
|
|
1637
1637
|
tmp = listOf(new Enum(null, new DefinitionIdentifier(name), it));
|
|
1638
1638
|
} else {
|
|
1639
|
-
var tmp5_subject = schemaObject.
|
|
1639
|
+
var tmp5_subject = schemaObject.d1n_1;
|
|
1640
1640
|
var tmp_10;
|
|
1641
1641
|
switch (tmp5_subject == null ? -1 : tmp5_subject.q2_1) {
|
|
1642
1642
|
case -1:
|
|
@@ -1645,7 +1645,7 @@
|
|
|
1645
1645
|
|
|
1646
1646
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1647
1647
|
|
|
1648
|
-
var tmp0_elvis_lhs_1 = schemaObject.
|
|
1648
|
+
var tmp0_elvis_lhs_1 = schemaObject.g1n_1;
|
|
1649
1649
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1650
1650
|
|
|
1651
1651
|
var this_4 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
@@ -1660,7 +1660,7 @@
|
|
|
1660
1660
|
var key_1 = element_2.a1();
|
|
1661
1661
|
// Inline function 'kotlin.collections.component2' call
|
|
1662
1662
|
var value_0 = element_2.b1();
|
|
1663
|
-
var list_3 = flatten_0(_this__u8e3s4, OpenApiV2Parser_instance, value_0, Common_getInstance().
|
|
1663
|
+
var list_3 = flatten_0(_this__u8e3s4, OpenApiV2Parser_instance, value_0, Common_getInstance().b2a([name, key_1]));
|
|
1664
1664
|
addAll(destination_3, list_3);
|
|
1665
1665
|
}
|
|
1666
1666
|
|
|
@@ -1669,13 +1669,13 @@
|
|
|
1669
1669
|
tmp_10 = plus(schema, fields);
|
|
1670
1670
|
break;
|
|
1671
1671
|
case 4:
|
|
1672
|
-
var it_0 = schemaObject.
|
|
1672
|
+
var it_0 = schemaObject.e1n_1;
|
|
1673
1673
|
var tmp_11;
|
|
1674
1674
|
if (it_0 instanceof ReferenceObject) {
|
|
1675
1675
|
tmp_11 = emptyList();
|
|
1676
1676
|
} else {
|
|
1677
1677
|
if (it_0 instanceof SchemaObject) {
|
|
1678
|
-
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().
|
|
1678
|
+
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().b2a([name, 'Array']));
|
|
1679
1679
|
} else {
|
|
1680
1680
|
if (it_0 == null) {
|
|
1681
1681
|
tmp_11 = emptyList();
|
|
@@ -1715,8 +1715,8 @@
|
|
|
1715
1715
|
var refOrSchema = resolveSchemaObject(_this__u8e3s4, $this, reference);
|
|
1716
1716
|
var schema = resolve(_this__u8e3s4, OpenApiV2Parser_instance, refOrSchema);
|
|
1717
1717
|
var tmp;
|
|
1718
|
-
if (!(schema.
|
|
1719
|
-
var additionalProperties = ensureNotNull(schema.
|
|
1718
|
+
if (!(schema.h1n_1 == null)) {
|
|
1719
|
+
var additionalProperties = ensureNotNull(schema.h1n_1);
|
|
1720
1720
|
var tmp_0;
|
|
1721
1721
|
if (additionalProperties instanceof BooleanObject) {
|
|
1722
1722
|
tmp_0 = new Dict(new Any(false), isNullable);
|
|
@@ -1732,24 +1732,24 @@
|
|
|
1732
1732
|
}
|
|
1733
1733
|
}
|
|
1734
1734
|
tmp = tmp_0;
|
|
1735
|
-
} else if (!(schema.
|
|
1736
|
-
tmp = new Custom(Common_getInstance().
|
|
1737
|
-
} else if (isPrimitive(schema.
|
|
1738
|
-
tmp = new Primitive(toPrimitive(ensureNotNull(schema.
|
|
1735
|
+
} else if (!(schema.c1n_1 == null)) {
|
|
1736
|
+
tmp = new Custom(Common_getInstance().b2a([getReference(reference, OpenApiV2Parser_instance)]), isNullable);
|
|
1737
|
+
} else if (isPrimitive(schema.d1n_1)) {
|
|
1738
|
+
tmp = new Primitive(toPrimitive(ensureNotNull(schema.d1n_1), OpenApiV2Parser_instance, schema.k1m_1), isNullable);
|
|
1739
1739
|
} else {
|
|
1740
|
-
var tmp0_subject = schema.
|
|
1740
|
+
var tmp0_subject = schema.d1n_1;
|
|
1741
1741
|
var tmp_1;
|
|
1742
1742
|
if ((tmp0_subject == null ? -1 : tmp0_subject.q2_1) === 4) {
|
|
1743
|
-
var items = schema.
|
|
1743
|
+
var items = schema.e1n_1;
|
|
1744
1744
|
var tmp_2;
|
|
1745
1745
|
if (items instanceof ReferenceObject) {
|
|
1746
1746
|
tmp_2 = toIterable(toReference(_this__u8e3s4, OpenApiV2Parser_instance, items, false), isNullable);
|
|
1747
1747
|
} else {
|
|
1748
1748
|
if (items instanceof SchemaObject) {
|
|
1749
|
-
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, items, Common_getInstance().
|
|
1749
|
+
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, items, Common_getInstance().b2a([getReference(reference, OpenApiV2Parser_instance), 'Array']), isNullable), isNullable);
|
|
1750
1750
|
} else {
|
|
1751
1751
|
if (items == null) {
|
|
1752
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.
|
|
1752
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.m1n_1);
|
|
1753
1753
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1754
1754
|
} else {
|
|
1755
1755
|
noWhenBranchMatchedException();
|
|
@@ -1760,10 +1760,10 @@
|
|
|
1760
1760
|
} else {
|
|
1761
1761
|
var tmp_3;
|
|
1762
1762
|
if (refOrSchema instanceof SchemaObject) {
|
|
1763
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
1763
|
+
tmp_3 = new Custom(Common_getInstance().b2a([getReference(reference, OpenApiV2Parser_instance)]), isNullable);
|
|
1764
1764
|
} else {
|
|
1765
1765
|
if (refOrSchema instanceof ReferenceObject) {
|
|
1766
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
1766
|
+
tmp_3 = new Custom(Common_getInstance().b2a([getReference(refOrSchema, OpenApiV2Parser_instance)]), isNullable);
|
|
1767
1767
|
} else {
|
|
1768
1768
|
noWhenBranchMatchedException();
|
|
1769
1769
|
}
|
|
@@ -1776,8 +1776,8 @@
|
|
|
1776
1776
|
}
|
|
1777
1777
|
function toReference_0(_this__u8e3s4, $this, schema, name, isNullable) {
|
|
1778
1778
|
var tmp;
|
|
1779
|
-
if (!(schema.
|
|
1780
|
-
var additionalProperties = ensureNotNull(schema.
|
|
1779
|
+
if (!(schema.h1n_1 == null)) {
|
|
1780
|
+
var additionalProperties = ensureNotNull(schema.h1n_1);
|
|
1781
1781
|
var tmp_0;
|
|
1782
1782
|
if (additionalProperties instanceof BooleanObject) {
|
|
1783
1783
|
tmp_0 = new Dict(new Any(false), isNullable);
|
|
@@ -1790,7 +1790,7 @@
|
|
|
1790
1790
|
// Inline function 'kotlin.contracts.contract' call
|
|
1791
1791
|
var tmp_1;
|
|
1792
1792
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toReference.<anonymous>' call
|
|
1793
|
-
if (isPrimitive(additionalProperties.
|
|
1793
|
+
if (isPrimitive(additionalProperties.d1n_1) || !(additionalProperties.g1n_1 == null)) {
|
|
1794
1794
|
tmp_1 = additionalProperties;
|
|
1795
1795
|
} else {
|
|
1796
1796
|
tmp_1 = null;
|
|
@@ -1813,41 +1813,60 @@
|
|
|
1813
1813
|
}
|
|
1814
1814
|
}
|
|
1815
1815
|
tmp = tmp_0;
|
|
1816
|
-
} else if (!(schema.
|
|
1817
|
-
tmp = !(schema.i1n_1 == null) ? new Dict(new Custom(name, false), isNullable) : new Custom(name, isNullable);
|
|
1818
|
-
} else {
|
|
1819
|
-
var type = schema.e1n_1;
|
|
1816
|
+
} else if (!(schema.c1n_1 == null)) {
|
|
1820
1817
|
var tmp_3;
|
|
1818
|
+
if (!(schema.h1n_1 == null)) {
|
|
1819
|
+
tmp_3 = new Dict(new Custom(name, false), isNullable);
|
|
1820
|
+
} else {
|
|
1821
|
+
tmp_3 = new Custom(name, isNullable);
|
|
1822
|
+
}
|
|
1823
|
+
tmp = tmp_3;
|
|
1824
|
+
} else {
|
|
1825
|
+
var type = schema.d1n_1;
|
|
1826
|
+
var tmp_4;
|
|
1821
1827
|
switch (type == null ? -1 : type.q2_1) {
|
|
1822
1828
|
case 0:
|
|
1823
1829
|
case 2:
|
|
1824
1830
|
case 1:
|
|
1825
1831
|
case 3:
|
|
1826
|
-
|
|
1832
|
+
var tmp_5;
|
|
1833
|
+
if (!(schema.h1n_1 == null)) {
|
|
1834
|
+
tmp_5 = new Dict(new Primitive(toPrimitive(type, $this, schema.k1m_1), false), isNullable);
|
|
1835
|
+
} else {
|
|
1836
|
+
tmp_5 = new Primitive(toPrimitive(type, $this, schema.k1m_1), isNullable);
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
tmp_4 = tmp_5;
|
|
1827
1840
|
break;
|
|
1828
1841
|
case -1:
|
|
1829
1842
|
case 5:
|
|
1830
|
-
var
|
|
1831
|
-
var
|
|
1832
|
-
if (
|
|
1833
|
-
|
|
1843
|
+
var tmp_6;
|
|
1844
|
+
var tmp_7 = schema.h1n_1;
|
|
1845
|
+
if (tmp_7 instanceof BooleanObject) {
|
|
1846
|
+
var tmp_8;
|
|
1847
|
+
if (!(schema.h1n_1 == null)) {
|
|
1848
|
+
tmp_8 = new Dict(new Any(isNullable), false);
|
|
1849
|
+
} else {
|
|
1850
|
+
tmp_8 = new Any(isNullable);
|
|
1851
|
+
}
|
|
1852
|
+
tmp_6 = tmp_8;
|
|
1834
1853
|
} else {
|
|
1835
|
-
if (!(schema.
|
|
1854
|
+
if (!(schema.h1n_1 == null)) {
|
|
1836
1855
|
new Dict(new Custom(name, isNullable), false);
|
|
1837
1856
|
}
|
|
1838
|
-
|
|
1857
|
+
tmp_6 = new Custom(name, isNullable);
|
|
1839
1858
|
}
|
|
1840
1859
|
|
|
1841
|
-
|
|
1860
|
+
tmp_4 = tmp_6;
|
|
1842
1861
|
break;
|
|
1843
1862
|
case 4:
|
|
1844
|
-
var items = schema.
|
|
1845
|
-
var
|
|
1863
|
+
var items = schema.e1n_1;
|
|
1864
|
+
var tmp_9;
|
|
1846
1865
|
if (items instanceof ReferenceObject) {
|
|
1847
|
-
|
|
1866
|
+
tmp_9 = toIterable(toReference(_this__u8e3s4, $this, items, false), isNullable);
|
|
1848
1867
|
} else {
|
|
1849
1868
|
if (items instanceof SchemaObject) {
|
|
1850
|
-
|
|
1869
|
+
tmp_9 = toIterable(toReference_0(_this__u8e3s4, $this, items, name, false), isNullable);
|
|
1851
1870
|
} else {
|
|
1852
1871
|
if (items == null) {
|
|
1853
1872
|
var message = 'When schema is of type array items cannot be null for name: ' + name;
|
|
@@ -1858,7 +1877,7 @@
|
|
|
1858
1877
|
}
|
|
1859
1878
|
}
|
|
1860
1879
|
|
|
1861
|
-
|
|
1880
|
+
tmp_4 = tmp_9;
|
|
1862
1881
|
break;
|
|
1863
1882
|
case 6:
|
|
1864
1883
|
var reason = 'Type file not implemented';
|
|
@@ -1867,7 +1886,7 @@
|
|
|
1867
1886
|
noWhenBranchMatchedException();
|
|
1868
1887
|
break;
|
|
1869
1888
|
}
|
|
1870
|
-
tmp =
|
|
1889
|
+
tmp = tmp_4;
|
|
1871
1890
|
}
|
|
1872
1891
|
return tmp;
|
|
1873
1892
|
}
|
|
@@ -1884,28 +1903,28 @@
|
|
|
1884
1903
|
var tmp_0;
|
|
1885
1904
|
switch (element.q2_1) {
|
|
1886
1905
|
case 0:
|
|
1887
|
-
tmp_0 = _this__u8e3s4.
|
|
1906
|
+
tmp_0 = _this__u8e3s4.v1h_1;
|
|
1888
1907
|
break;
|
|
1889
1908
|
case 1:
|
|
1890
|
-
tmp_0 = _this__u8e3s4.
|
|
1909
|
+
tmp_0 = _this__u8e3s4.x1h_1;
|
|
1891
1910
|
break;
|
|
1892
1911
|
case 2:
|
|
1893
|
-
tmp_0 = _this__u8e3s4.
|
|
1912
|
+
tmp_0 = _this__u8e3s4.w1h_1;
|
|
1894
1913
|
break;
|
|
1895
1914
|
case 3:
|
|
1896
|
-
tmp_0 = _this__u8e3s4.
|
|
1915
|
+
tmp_0 = _this__u8e3s4.y1h_1;
|
|
1897
1916
|
break;
|
|
1898
1917
|
case 4:
|
|
1899
|
-
tmp_0 = _this__u8e3s4.
|
|
1918
|
+
tmp_0 = _this__u8e3s4.z1h_1;
|
|
1900
1919
|
break;
|
|
1901
1920
|
case 5:
|
|
1902
|
-
tmp_0 = _this__u8e3s4.
|
|
1921
|
+
tmp_0 = _this__u8e3s4.a1i_1;
|
|
1903
1922
|
break;
|
|
1904
1923
|
case 6:
|
|
1905
|
-
tmp_0 = _this__u8e3s4.
|
|
1924
|
+
tmp_0 = _this__u8e3s4.b1i_1;
|
|
1906
1925
|
break;
|
|
1907
1926
|
case 7:
|
|
1908
|
-
tmp_0 = _this__u8e3s4.
|
|
1927
|
+
tmp_0 = _this__u8e3s4.c1i_1;
|
|
1909
1928
|
break;
|
|
1910
1929
|
default:
|
|
1911
1930
|
noWhenBranchMatchedException();
|
|
@@ -1914,10 +1933,10 @@
|
|
|
1914
1933
|
var tmp$ret$0 = tmp_0;
|
|
1915
1934
|
result.m2(element, tmp$ret$0);
|
|
1916
1935
|
}
|
|
1917
|
-
return tmp.
|
|
1936
|
+
return tmp.c2a(result);
|
|
1918
1937
|
}
|
|
1919
1938
|
function getReference(_this__u8e3s4, $this) {
|
|
1920
|
-
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
1939
|
+
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.m1n_1), ['/']).k(2);
|
|
1921
1940
|
}
|
|
1922
1941
|
function toPrimitive(_this__u8e3s4, $this, format) {
|
|
1923
1942
|
var tmp;
|
|
@@ -1943,8 +1962,8 @@
|
|
|
1943
1962
|
function toField(_this__u8e3s4, $this, header, identifier) {
|
|
1944
1963
|
var tmp = new FieldIdentifier(identifier);
|
|
1945
1964
|
var tmp_0;
|
|
1946
|
-
if (header.
|
|
1947
|
-
var tmp1_safe_receiver = header.
|
|
1965
|
+
if (header.f1o_1 === 'array') {
|
|
1966
|
+
var tmp1_safe_receiver = header.h1o_1;
|
|
1948
1967
|
var tmp_1;
|
|
1949
1968
|
if (tmp1_safe_receiver == null) {
|
|
1950
1969
|
tmp_1 = null;
|
|
@@ -1974,14 +1993,14 @@
|
|
|
1974
1993
|
}
|
|
1975
1994
|
tmp_0 = tmp_3;
|
|
1976
1995
|
} else {
|
|
1977
|
-
tmp_0 = new Primitive(mapType(header.
|
|
1996
|
+
tmp_0 = new Primitive(mapType(header.f1o_1, $this, header.g1o_1), false);
|
|
1978
1997
|
}
|
|
1979
1998
|
return new Field(tmp, tmp_0);
|
|
1980
1999
|
}
|
|
1981
2000
|
function toField_0(_this__u8e3s4, $this, schema, name) {
|
|
1982
2001
|
// Inline function 'kotlin.collections.map' call
|
|
1983
2002
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1984
|
-
var tmp0_elvis_lhs = schema.
|
|
2003
|
+
var tmp0_elvis_lhs = schema.g1n_1;
|
|
1985
2004
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1986
2005
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1987
2006
|
var destination = ArrayList_init_$Create$_0(this_0.j());
|
|
@@ -1994,12 +2013,12 @@
|
|
|
1994
2013
|
var key = item.a1();
|
|
1995
2014
|
// Inline function 'kotlin.collections.component2' call
|
|
1996
2015
|
var value = item.b1();
|
|
1997
|
-
var tmp0_safe_receiver = schema.
|
|
2016
|
+
var tmp0_safe_receiver = schema.b1n_1;
|
|
1998
2017
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p1(key);
|
|
1999
2018
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
2000
2019
|
var tmp;
|
|
2001
2020
|
if (value instanceof SchemaObject) {
|
|
2002
|
-
tmp = new Field(new FieldIdentifier(key), !(value.
|
|
2021
|
+
tmp = new Field(new FieldIdentifier(key), !(value.c1n_1 == null) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().b2a([name, key]), isNullable) : equals(value.d1n_1, Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().b2a([name, key, 'Array']), isNullable) : toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().b2a([name, key]), isNullable));
|
|
2003
2022
|
} else {
|
|
2004
2023
|
if (value instanceof ReferenceObject) {
|
|
2005
2024
|
tmp = new Field(new FieldIdentifier(key), toReference(_this__u8e3s4, OpenApiV2Parser_instance, value, isNullable));
|
|
@@ -2018,13 +2037,13 @@
|
|
|
2018
2037
|
// Inline function 'kotlin.contracts.contract' call
|
|
2019
2038
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>' call
|
|
2020
2039
|
var it = resolve_3(_this__u8e3s4, $this, parameter);
|
|
2021
|
-
var tmp0_elvis_lhs = parameter.
|
|
2040
|
+
var tmp0_elvis_lhs = parameter.m1i_1;
|
|
2022
2041
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
2023
2042
|
var tmp;
|
|
2024
|
-
if (!(parameter.
|
|
2025
|
-
tmp = new Custom(Common_getInstance().
|
|
2043
|
+
if (!(parameter.e1j_1 == null)) {
|
|
2044
|
+
tmp = new Custom(Common_getInstance().b2a([name, 'Parameter', it.j1i_1]), isNullable);
|
|
2026
2045
|
} else {
|
|
2027
|
-
var type = it.
|
|
2046
|
+
var type = it.o1i_1;
|
|
2028
2047
|
var tmp_0;
|
|
2029
2048
|
switch (type == null ? -1 : type.q2_1) {
|
|
2030
2049
|
case 0:
|
|
@@ -2037,11 +2056,11 @@
|
|
|
2037
2056
|
|
|
2038
2057
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>.<anonymous>' call
|
|
2039
2058
|
|
|
2040
|
-
var primitive = toPrimitive(type, OpenApiV2Parser_instance, it.
|
|
2059
|
+
var primitive = toPrimitive(type, OpenApiV2Parser_instance, it.q1i_1);
|
|
2041
2060
|
tmp_0 = new Primitive(primitive, isNullable);
|
|
2042
2061
|
break;
|
|
2043
2062
|
case 4:
|
|
2044
|
-
var tmp1_safe_receiver = it.
|
|
2063
|
+
var tmp1_safe_receiver = it.p1i_1;
|
|
2045
2064
|
var tmp_1;
|
|
2046
2065
|
if (tmp1_safe_receiver == null) {
|
|
2047
2066
|
tmp_1 = null;
|
|
@@ -2060,8 +2079,8 @@
|
|
|
2060
2079
|
// Inline function 'kotlin.let' call
|
|
2061
2080
|
// Inline function 'kotlin.contracts.contract' call
|
|
2062
2081
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>.<anonymous>' call
|
|
2063
|
-
var tmp0_safe_receiver = tmp2_safe_receiver.
|
|
2064
|
-
tmp_2 = tmp0_safe_receiver == null ? null : toPrimitive(tmp0_safe_receiver, OpenApiV2Parser_instance, tmp2_safe_receiver.
|
|
2082
|
+
var tmp0_safe_receiver = tmp2_safe_receiver.d1n_1;
|
|
2083
|
+
tmp_2 = tmp0_safe_receiver == null ? null : toPrimitive(tmp0_safe_receiver, OpenApiV2Parser_instance, tmp2_safe_receiver.k1m_1);
|
|
2065
2084
|
}
|
|
2066
2085
|
|
|
2067
2086
|
var tmp3_safe_receiver = tmp_2;
|
|
@@ -2104,7 +2123,7 @@
|
|
|
2104
2123
|
// Inline function 'kotlin.contracts.contract' call
|
|
2105
2124
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>' call
|
|
2106
2125
|
var it_0 = tmp;
|
|
2107
|
-
return new Field(new FieldIdentifier(parameter.
|
|
2126
|
+
return new Field(new FieldIdentifier(parameter.j1i_1), it_0);
|
|
2108
2127
|
}
|
|
2109
2128
|
function toSegments(_this__u8e3s4, $this, parameters) {
|
|
2110
2129
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2143,7 +2162,7 @@
|
|
|
2143
2162
|
while (tmp0_iterator_0.h()) {
|
|
2144
2163
|
var element = tmp0_iterator_0.i();
|
|
2145
2164
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toSegments.<anonymous>.<anonymous>' call
|
|
2146
|
-
if (element.
|
|
2165
|
+
if (element.j1i_1 === param) {
|
|
2147
2166
|
tmp$ret$4 = element;
|
|
2148
2167
|
break $l$block;
|
|
2149
2168
|
}
|
|
@@ -2158,8 +2177,8 @@
|
|
|
2158
2177
|
// Inline function 'kotlin.let' call
|
|
2159
2178
|
// Inline function 'kotlin.contracts.contract' call
|
|
2160
2179
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toSegments.<anonymous>.<anonymous>' call
|
|
2161
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver.
|
|
2162
|
-
tmp_2 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, OpenApiV2Parser_instance, tmp0_safe_receiver.
|
|
2180
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver.o1i_1;
|
|
2181
|
+
tmp_2 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, OpenApiV2Parser_instance, tmp0_safe_receiver.q1i_1);
|
|
2163
2182
|
}
|
|
2164
2183
|
var tmp1_safe_receiver = tmp_2;
|
|
2165
2184
|
var tmp_3;
|
|
@@ -2192,7 +2211,7 @@
|
|
|
2192
2211
|
return charSequenceGet(_this__u8e3s4, 0) === _Char___init__impl__6a9atx(123) && charSequenceGet(_this__u8e3s4, _this__u8e3s4.length - 1 | 0) === _Char___init__impl__6a9atx(125);
|
|
2193
2212
|
}
|
|
2194
2213
|
function toName(_this__u8e3s4, $this) {
|
|
2195
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2214
|
+
var tmp0_safe_receiver = _this__u8e3s4.d1l_1;
|
|
2196
2215
|
var tmp;
|
|
2197
2216
|
if (tmp0_safe_receiver == null) {
|
|
2198
2217
|
tmp = null;
|
|
@@ -2200,7 +2219,7 @@
|
|
|
2200
2219
|
// Inline function 'kotlin.let' call
|
|
2201
2220
|
// Inline function 'kotlin.contracts.contract' call
|
|
2202
2221
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toName.<anonymous>' call
|
|
2203
|
-
tmp = Common_getInstance().
|
|
2222
|
+
tmp = Common_getInstance().b2a([tmp0_safe_receiver]);
|
|
2204
2223
|
}
|
|
2205
2224
|
return tmp;
|
|
2206
2225
|
}
|
|
@@ -2222,21 +2241,21 @@
|
|
|
2222
2241
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenApiV2Parser$toName$lambda);
|
|
2223
2242
|
}
|
|
2224
2243
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
2225
|
-
this.
|
|
2226
|
-
this.
|
|
2227
|
-
this.
|
|
2228
|
-
this.
|
|
2229
|
-
this.
|
|
2244
|
+
this.h2a_1 = path;
|
|
2245
|
+
this.i2a_1 = pathItem;
|
|
2246
|
+
this.j2a_1 = method;
|
|
2247
|
+
this.k2a_1 = operation;
|
|
2248
|
+
this.l2a_1 = type;
|
|
2230
2249
|
}
|
|
2231
2250
|
protoOf(FlattenRequest).toString = function () {
|
|
2232
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
2251
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.h2a_1) + ', pathItem=' + this.i2a_1.toString() + ', method=' + this.j2a_1.toString() + ', operation=' + this.k2a_1.toString() + ', type=' + this.l2a_1 + ')';
|
|
2233
2252
|
};
|
|
2234
2253
|
protoOf(FlattenRequest).hashCode = function () {
|
|
2235
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2254
|
+
var result = Path__hashCode_impl_go73kd(this.h2a_1);
|
|
2255
|
+
result = imul(result, 31) + this.i2a_1.hashCode() | 0;
|
|
2236
2256
|
result = imul(result, 31) + this.j2a_1.hashCode() | 0;
|
|
2237
2257
|
result = imul(result, 31) + this.k2a_1.hashCode() | 0;
|
|
2238
|
-
result = imul(result, 31) + this.l2a_1
|
|
2239
|
-
result = imul(result, 31) + getStringHashCode(this.m2a_1) | 0;
|
|
2258
|
+
result = imul(result, 31) + getStringHashCode(this.l2a_1) | 0;
|
|
2240
2259
|
return result;
|
|
2241
2260
|
};
|
|
2242
2261
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -2245,15 +2264,15 @@
|
|
|
2245
2264
|
if (!(other instanceof FlattenRequest))
|
|
2246
2265
|
return false;
|
|
2247
2266
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
2248
|
-
if (!(this.
|
|
2267
|
+
if (!(this.h2a_1 === tmp0_other_with_cast.h2a_1))
|
|
2268
|
+
return false;
|
|
2269
|
+
if (!this.i2a_1.equals(tmp0_other_with_cast.i2a_1))
|
|
2249
2270
|
return false;
|
|
2250
2271
|
if (!this.j2a_1.equals(tmp0_other_with_cast.j2a_1))
|
|
2251
2272
|
return false;
|
|
2252
2273
|
if (!this.k2a_1.equals(tmp0_other_with_cast.k2a_1))
|
|
2253
2274
|
return false;
|
|
2254
|
-
if (!this.l2a_1
|
|
2255
|
-
return false;
|
|
2256
|
-
if (!(this.m2a_1 === tmp0_other_with_cast.m2a_1))
|
|
2275
|
+
if (!(this.l2a_1 === tmp0_other_with_cast.l2a_1))
|
|
2257
2276
|
return false;
|
|
2258
2277
|
return true;
|
|
2259
2278
|
};
|
|
@@ -2261,7 +2280,7 @@
|
|
|
2261
2280
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2262
2281
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2263
2282
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2264
|
-
var this_0 = _this__u8e3s4.
|
|
2283
|
+
var this_0 = _this__u8e3s4.s1g_1;
|
|
2265
2284
|
var destination = ArrayList_init_$Create$();
|
|
2266
2285
|
// Inline function 'kotlin.collections.iterator' call
|
|
2267
2286
|
var tmp0_iterator = this_0.z().g();
|
|
@@ -2269,7 +2288,7 @@
|
|
|
2269
2288
|
var element = tmp0_iterator.i();
|
|
2270
2289
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatMapRequests.<anonymous>' call
|
|
2271
2290
|
// Inline function 'kotlin.collections.component1' call
|
|
2272
|
-
var path = element.a1().
|
|
2291
|
+
var path = element.a1().o1h_1;
|
|
2273
2292
|
// Inline function 'kotlin.collections.component2' call
|
|
2274
2293
|
var pathItem = element.b1();
|
|
2275
2294
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -2286,8 +2305,8 @@
|
|
|
2286
2305
|
// Inline function 'kotlin.collections.component2' call
|
|
2287
2306
|
var operation = element_0.b1();
|
|
2288
2307
|
// Inline function 'kotlin.collections.map' call
|
|
2289
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2290
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? operation.
|
|
2308
|
+
var tmp0_elvis_lhs = _this__u8e3s4.q1g_1;
|
|
2309
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? operation.e1l_1 : tmp0_elvis_lhs;
|
|
2291
2310
|
var this_2 = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
2292
2311
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2293
2312
|
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
|
|
@@ -2315,25 +2334,25 @@
|
|
|
2315
2334
|
return destination_2;
|
|
2316
2335
|
}
|
|
2317
2336
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
2318
|
-
this.
|
|
2319
|
-
this.
|
|
2320
|
-
this.
|
|
2321
|
-
this.
|
|
2322
|
-
this.
|
|
2323
|
-
this.
|
|
2324
|
-
this.
|
|
2337
|
+
this.m2a_1 = path;
|
|
2338
|
+
this.n2a_1 = pathItem;
|
|
2339
|
+
this.o2a_1 = method;
|
|
2340
|
+
this.p2a_1 = operation;
|
|
2341
|
+
this.q2a_1 = statusCode;
|
|
2342
|
+
this.r2a_1 = response;
|
|
2343
|
+
this.s2a_1 = type;
|
|
2325
2344
|
}
|
|
2326
2345
|
protoOf(FlattenResponse).toString = function () {
|
|
2327
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
2346
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.m2a_1) + ', pathItem=' + this.n2a_1.toString() + ', method=' + this.o2a_1.toString() + ', operation=' + this.p2a_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy(this.q2a_1) + ', response=' + toString(this.r2a_1) + ', type=' + this.s2a_1 + ')';
|
|
2328
2347
|
};
|
|
2329
2348
|
protoOf(FlattenResponse).hashCode = function () {
|
|
2330
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2349
|
+
var result = Path__hashCode_impl_go73kd(this.m2a_1);
|
|
2350
|
+
result = imul(result, 31) + this.n2a_1.hashCode() | 0;
|
|
2331
2351
|
result = imul(result, 31) + this.o2a_1.hashCode() | 0;
|
|
2332
2352
|
result = imul(result, 31) + this.p2a_1.hashCode() | 0;
|
|
2333
|
-
result = imul(result, 31) + this.q2a_1
|
|
2334
|
-
result = imul(result, 31) +
|
|
2335
|
-
result = imul(result, 31) +
|
|
2336
|
-
result = imul(result, 31) + getStringHashCode(this.t2a_1) | 0;
|
|
2353
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.q2a_1) | 0;
|
|
2354
|
+
result = imul(result, 31) + hashCode(this.r2a_1) | 0;
|
|
2355
|
+
result = imul(result, 31) + getStringHashCode(this.s2a_1) | 0;
|
|
2337
2356
|
return result;
|
|
2338
2357
|
};
|
|
2339
2358
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -2342,19 +2361,19 @@
|
|
|
2342
2361
|
if (!(other instanceof FlattenResponse))
|
|
2343
2362
|
return false;
|
|
2344
2363
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
2345
|
-
if (!(this.
|
|
2364
|
+
if (!(this.m2a_1 === tmp0_other_with_cast.m2a_1))
|
|
2365
|
+
return false;
|
|
2366
|
+
if (!this.n2a_1.equals(tmp0_other_with_cast.n2a_1))
|
|
2346
2367
|
return false;
|
|
2347
2368
|
if (!this.o2a_1.equals(tmp0_other_with_cast.o2a_1))
|
|
2348
2369
|
return false;
|
|
2349
2370
|
if (!this.p2a_1.equals(tmp0_other_with_cast.p2a_1))
|
|
2350
2371
|
return false;
|
|
2351
|
-
if (!this.q2a_1
|
|
2372
|
+
if (!(this.q2a_1 === tmp0_other_with_cast.q2a_1))
|
|
2352
2373
|
return false;
|
|
2353
|
-
if (!(this.r2a_1
|
|
2374
|
+
if (!equals(this.r2a_1, tmp0_other_with_cast.r2a_1))
|
|
2354
2375
|
return false;
|
|
2355
|
-
if (!
|
|
2356
|
-
return false;
|
|
2357
|
-
if (!(this.t2a_1 === tmp0_other_with_cast.t2a_1))
|
|
2376
|
+
if (!(this.s2a_1 === tmp0_other_with_cast.s2a_1))
|
|
2358
2377
|
return false;
|
|
2359
2378
|
return true;
|
|
2360
2379
|
};
|
|
@@ -2362,7 +2381,7 @@
|
|
|
2362
2381
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2363
2382
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2364
2383
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2365
|
-
var this_0 = _this__u8e3s4.
|
|
2384
|
+
var this_0 = _this__u8e3s4.s1g_1;
|
|
2366
2385
|
var destination = ArrayList_init_$Create$();
|
|
2367
2386
|
// Inline function 'kotlin.collections.iterator' call
|
|
2368
2387
|
var tmp0_iterator = this_0.z().g();
|
|
@@ -2370,7 +2389,7 @@
|
|
|
2370
2389
|
var element = tmp0_iterator.i();
|
|
2371
2390
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatMapResponses.<anonymous>' call
|
|
2372
2391
|
// Inline function 'kotlin.collections.component1' call
|
|
2373
|
-
var path = element.a1().
|
|
2392
|
+
var path = element.a1().o1h_1;
|
|
2374
2393
|
// Inline function 'kotlin.collections.component2' call
|
|
2375
2394
|
var pathItem = element.b1();
|
|
2376
2395
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -2388,7 +2407,7 @@
|
|
|
2388
2407
|
var operation = element_0.b1();
|
|
2389
2408
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2390
2409
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2391
|
-
var tmp0_elvis_lhs = operation.
|
|
2410
|
+
var tmp0_elvis_lhs = operation.h1l_1;
|
|
2392
2411
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2393
2412
|
var this_2 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2394
2413
|
var destination_1 = ArrayList_init_$Create$();
|
|
@@ -2398,12 +2417,12 @@
|
|
|
2398
2417
|
var element_1 = tmp0_iterator_1.i();
|
|
2399
2418
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
2400
2419
|
// Inline function 'kotlin.collections.component1' call
|
|
2401
|
-
var statusCode = element_1.a1().
|
|
2420
|
+
var statusCode = element_1.a1().r1n_1;
|
|
2402
2421
|
// Inline function 'kotlin.collections.component2' call
|
|
2403
2422
|
var response = element_1.b1();
|
|
2404
2423
|
// Inline function 'kotlin.collections.map' call
|
|
2405
|
-
var tmp0_elvis_lhs_0 = _this__u8e3s4.
|
|
2406
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.
|
|
2424
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.r1g_1;
|
|
2425
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.f1l_1 : tmp0_elvis_lhs_0;
|
|
2407
2426
|
var this_3 = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
2408
2427
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2409
2428
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_3, 10));
|
|
@@ -2435,16 +2454,16 @@
|
|
|
2435
2454
|
}
|
|
2436
2455
|
function OpenApiV2Parser$parse$lambda($ignoreUnknown) {
|
|
2437
2456
|
return function ($this$Json) {
|
|
2438
|
-
$this$Json.
|
|
2439
|
-
$this$Json.
|
|
2457
|
+
$this$Json.w15_1 = true;
|
|
2458
|
+
$this$Json.u15_1 = $ignoreUnknown;
|
|
2440
2459
|
return Unit_instance;
|
|
2441
2460
|
};
|
|
2442
2461
|
}
|
|
2443
2462
|
function OpenApiV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
2444
2463
|
return function ($this$flatMapRequests) {
|
|
2445
|
-
var parameters = plus(resolveParameters_0($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.
|
|
2446
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2447
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2464
|
+
var parameters = plus(resolveParameters_0($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.i2a_1), resolveParameters($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.k2a_1));
|
|
2465
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.k2a_1, OpenApiV2Parser_instance);
|
|
2466
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.h2a_1, OpenApiV2Parser_instance) + $this$flatMapRequests.j2a_1.p2_1 : tmp0_elvis_lhs;
|
|
2448
2467
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2449
2468
|
// Inline function 'kotlin.collections.filter' call
|
|
2450
2469
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -2453,7 +2472,7 @@
|
|
|
2453
2472
|
while (tmp0_iterator.h()) {
|
|
2454
2473
|
var element = tmp0_iterator.i();
|
|
2455
2474
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseParameters.<anonymous>.<anonymous>' call
|
|
2456
|
-
if (!element.
|
|
2475
|
+
if (!element.k1i_1.equals(ParameterLocation_BODY_getInstance())) {
|
|
2457
2476
|
destination.e(element);
|
|
2458
2477
|
}
|
|
2459
2478
|
}
|
|
@@ -2463,7 +2482,7 @@
|
|
|
2463
2482
|
while (tmp0_iterator_0.h()) {
|
|
2464
2483
|
var element_0 = tmp0_iterator_0.i();
|
|
2465
2484
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseParameters.<anonymous>.<anonymous>' call
|
|
2466
|
-
var tmp0_safe_receiver = element_0.
|
|
2485
|
+
var tmp0_safe_receiver = element_0.n1i_1;
|
|
2467
2486
|
var tmp;
|
|
2468
2487
|
if (tmp0_safe_receiver == null) {
|
|
2469
2488
|
tmp = null;
|
|
@@ -2471,7 +2490,7 @@
|
|
|
2471
2490
|
// Inline function 'kotlin.let' call
|
|
2472
2491
|
// Inline function 'kotlin.contracts.contract' call
|
|
2473
2492
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
2474
|
-
tmp = flatten_0($this_parseParameters, OpenApiV2Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
2493
|
+
tmp = flatten_0($this_parseParameters, OpenApiV2Parser_instance, tmp0_safe_receiver, Common_getInstance().b2a([name, 'Parameter', element_0.j1i_1]));
|
|
2475
2494
|
}
|
|
2476
2495
|
var tmp1_elvis_lhs = tmp;
|
|
2477
2496
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -2482,9 +2501,9 @@
|
|
|
2482
2501
|
}
|
|
2483
2502
|
function OpenApiV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
2484
2503
|
return function ($this$flatMapRequests) {
|
|
2485
|
-
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.
|
|
2486
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2487
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2504
|
+
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.i2a_1), resolveParameters($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.k2a_1));
|
|
2505
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.k2a_1, OpenApiV2Parser_instance);
|
|
2506
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.h2a_1, OpenApiV2Parser_instance) + $this$flatMapRequests.j2a_1.p2_1 : tmp0_elvis_lhs;
|
|
2488
2507
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2489
2508
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2490
2509
|
var destination = ArrayList_init_$Create$();
|
|
@@ -2493,17 +2512,17 @@
|
|
|
2493
2512
|
var element = tmp0_iterator.i();
|
|
2494
2513
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
2495
2514
|
var tmp;
|
|
2496
|
-
if (!(element.
|
|
2497
|
-
var tmp_0 = new DefinitionIdentifier(Common_getInstance().
|
|
2515
|
+
if (!(element.e1j_1 == null)) {
|
|
2516
|
+
var tmp_0 = new DefinitionIdentifier(Common_getInstance().b2a([name, 'Parameter', element.j1i_1]));
|
|
2498
2517
|
// Inline function 'kotlin.collections.map' call
|
|
2499
|
-
var this_0 = ensureNotNull(element.
|
|
2518
|
+
var this_0 = ensureNotNull(element.e1j_1);
|
|
2500
2519
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2501
2520
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2502
2521
|
var tmp0_iterator_0 = this_0.g();
|
|
2503
2522
|
while (tmp0_iterator_0.h()) {
|
|
2504
2523
|
var item = tmp0_iterator_0.i();
|
|
2505
2524
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
2506
|
-
var tmp$ret$0 = item.
|
|
2525
|
+
var tmp$ret$0 = item.e17();
|
|
2507
2526
|
destination_0.e(tmp$ret$0);
|
|
2508
2527
|
}
|
|
2509
2528
|
tmp = listOf(new Enum(null, tmp_0, toSet(destination_0)));
|
|
@@ -2514,7 +2533,7 @@
|
|
|
2514
2533
|
addAll(destination, list);
|
|
2515
2534
|
}
|
|
2516
2535
|
var enums = destination;
|
|
2517
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
2536
|
+
var tmp1_safe_receiver = $this$flatMapRequests.k2a_1.g1l_1;
|
|
2518
2537
|
var tmp_1;
|
|
2519
2538
|
if (tmp1_safe_receiver == null) {
|
|
2520
2539
|
tmp_1 = null;
|
|
@@ -2543,7 +2562,7 @@
|
|
|
2543
2562
|
while (tmp0_iterator_2.h()) {
|
|
2544
2563
|
var element_0 = tmp0_iterator_2.i();
|
|
2545
2564
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
2546
|
-
if (element_0.
|
|
2565
|
+
if (element_0.k1i_1.equals(ParameterLocation_BODY_getInstance())) {
|
|
2547
2566
|
destination_2.e(element_0);
|
|
2548
2567
|
}
|
|
2549
2568
|
}
|
|
@@ -2561,20 +2580,20 @@
|
|
|
2561
2580
|
while (tmp0_iterator_3.h()) {
|
|
2562
2581
|
var element_1 = tmp0_iterator_3.i();
|
|
2563
2582
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
2564
|
-
var schema = element_1.
|
|
2583
|
+
var schema = element_1.n1i_1;
|
|
2565
2584
|
var tmp_4;
|
|
2566
2585
|
if (schema instanceof SchemaObject) {
|
|
2567
|
-
var tmp0_subject = schema.
|
|
2586
|
+
var tmp0_subject = schema.d1n_1;
|
|
2568
2587
|
var tmp_5;
|
|
2569
2588
|
switch (tmp0_subject == null ? -1 : tmp0_subject.q2_1) {
|
|
2570
2589
|
case -1:
|
|
2571
2590
|
case 5:
|
|
2572
|
-
tmp_5 = flatten($this_parseRequestBody, OpenApiV2Parser_instance, schema, Common_getInstance().
|
|
2591
|
+
tmp_5 = flatten($this_parseRequestBody, OpenApiV2Parser_instance, schema, Common_getInstance().b2a([name, 'RequestBody']));
|
|
2573
2592
|
break;
|
|
2574
2593
|
case 4:
|
|
2575
2594
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2576
2595
|
|
|
2577
|
-
var tmp1_safe_receiver_0 = schema.
|
|
2596
|
+
var tmp1_safe_receiver_0 = schema.e1n_1;
|
|
2578
2597
|
var tmp_6;
|
|
2579
2598
|
if (tmp1_safe_receiver_0 == null) {
|
|
2580
2599
|
tmp_6 = null;
|
|
@@ -2582,7 +2601,7 @@
|
|
|
2582
2601
|
// Inline function 'kotlin.let' call
|
|
2583
2602
|
// Inline function 'kotlin.contracts.contract' call
|
|
2584
2603
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
2585
|
-
tmp_6 = flatten_0($this_parseRequestBody, OpenApiV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
2604
|
+
tmp_6 = flatten_0($this_parseRequestBody, OpenApiV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().b2a([name, 'RequestBody']));
|
|
2586
2605
|
}
|
|
2587
2606
|
|
|
2588
2607
|
var tmp0_elvis_lhs_0 = tmp_6;
|
|
@@ -2608,22 +2627,22 @@
|
|
|
2608
2627
|
}
|
|
2609
2628
|
function OpenApiV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
2610
2629
|
return function ($this$flatMapResponses) {
|
|
2611
|
-
var schema = resolve_1($this_parseResponseBody, OpenApiV2Parser_instance, $this$flatMapResponses.
|
|
2612
|
-
var tmp0_elvis_lhs = toName($this$flatMapResponses.
|
|
2613
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
2630
|
+
var schema = resolve_1($this_parseResponseBody, OpenApiV2Parser_instance, $this$flatMapResponses.r2a_1).l1j_1;
|
|
2631
|
+
var tmp0_elvis_lhs = toName($this$flatMapResponses.p2a_1, OpenApiV2Parser_instance);
|
|
2632
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.m2a_1, OpenApiV2Parser_instance) + $this$flatMapResponses.o2a_1.p2_1 : tmp0_elvis_lhs;
|
|
2614
2633
|
var tmp;
|
|
2615
2634
|
if (schema instanceof SchemaObject) {
|
|
2616
|
-
var tmp2_subject = schema.
|
|
2635
|
+
var tmp2_subject = schema.d1n_1;
|
|
2617
2636
|
var tmp_0;
|
|
2618
2637
|
switch (tmp2_subject == null ? -1 : tmp2_subject.q2_1) {
|
|
2619
2638
|
case -1:
|
|
2620
2639
|
case 5:
|
|
2621
|
-
tmp_0 = flatten($this_parseResponseBody, OpenApiV2Parser_instance, schema, Common_getInstance().
|
|
2640
|
+
tmp_0 = flatten($this_parseResponseBody, OpenApiV2Parser_instance, schema, Common_getInstance().b2a([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.q2a_1), 'ResponseBody']));
|
|
2622
2641
|
break;
|
|
2623
2642
|
case 4:
|
|
2624
2643
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2625
2644
|
|
|
2626
|
-
var tmp3_safe_receiver = schema.
|
|
2645
|
+
var tmp3_safe_receiver = schema.e1n_1;
|
|
2627
2646
|
var tmp_1;
|
|
2628
2647
|
if (tmp3_safe_receiver == null) {
|
|
2629
2648
|
tmp_1 = null;
|
|
@@ -2631,7 +2650,7 @@
|
|
|
2631
2650
|
// Inline function 'kotlin.let' call
|
|
2632
2651
|
// Inline function 'kotlin.contracts.contract' call
|
|
2633
2652
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
2634
|
-
tmp_1 = flatten_0($this_parseResponseBody, OpenApiV2Parser_instance, tmp3_safe_receiver, Common_getInstance().
|
|
2653
|
+
tmp_1 = flatten_0($this_parseResponseBody, OpenApiV2Parser_instance, tmp3_safe_receiver, Common_getInstance().b2a([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.q2a_1), 'ResponseBody']));
|
|
2635
2654
|
}
|
|
2636
2655
|
|
|
2637
2656
|
var tmp0_elvis_lhs_0 = tmp_1;
|
|
@@ -2659,10 +2678,10 @@
|
|
|
2659
2678
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2660
2679
|
|
|
2661
2680
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
2662
|
-
tmp = tmp_0.
|
|
2681
|
+
tmp = tmp_0.b2a([tmp$ret$1]);
|
|
2663
2682
|
break;
|
|
2664
2683
|
case false:
|
|
2665
|
-
tmp = Common_getInstance().
|
|
2684
|
+
tmp = Common_getInstance().b2a([it]);
|
|
2666
2685
|
break;
|
|
2667
2686
|
default:
|
|
2668
2687
|
noWhenBranchMatchedException();
|
|
@@ -2672,14 +2691,14 @@
|
|
|
2672
2691
|
}
|
|
2673
2692
|
function OpenApiV2Parser() {
|
|
2674
2693
|
}
|
|
2675
|
-
protoOf(OpenApiV2Parser).
|
|
2676
|
-
return this.
|
|
2694
|
+
protoOf(OpenApiV2Parser).t2a = function (json, ignoreUnknown) {
|
|
2695
|
+
return this.u2a((new OpenAPI(Json(VOID, OpenApiV2Parser$parse$lambda(ignoreUnknown)))).h1g(json));
|
|
2677
2696
|
};
|
|
2678
|
-
protoOf(OpenApiV2Parser).
|
|
2697
|
+
protoOf(OpenApiV2Parser).v2a = function (json, ignoreUnknown, $super) {
|
|
2679
2698
|
ignoreUnknown = ignoreUnknown === VOID ? false : ignoreUnknown;
|
|
2680
|
-
return $super === VOID ? this.
|
|
2699
|
+
return $super === VOID ? this.t2a(json, ignoreUnknown) : $super.t2a.call(this, json, ignoreUnknown);
|
|
2681
2700
|
};
|
|
2682
|
-
protoOf(OpenApiV2Parser).
|
|
2701
|
+
protoOf(OpenApiV2Parser).u2a = function (_this__u8e3s4) {
|
|
2683
2702
|
// Inline function 'kotlin.collections.reduce' call
|
|
2684
2703
|
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();
|
|
2685
2704
|
if (!iterator.h())
|
|
@@ -2767,7 +2786,7 @@
|
|
|
2767
2786
|
var element_1 = tmp0_iterator_1.i();
|
|
2768
2787
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2769
2788
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitComponents.<anonymous>' call
|
|
2770
|
-
var tmp = element_1.
|
|
2789
|
+
var tmp = element_1.v28().b1();
|
|
2771
2790
|
var tmp_0;
|
|
2772
2791
|
if (element_1 instanceof Enum) {
|
|
2773
2792
|
tmp_0 = emit_3(element_1, OpenApiV3Emitter_getInstance());
|
|
@@ -2822,7 +2841,7 @@
|
|
|
2822
2841
|
while (tmp0_iterator_0.h()) {
|
|
2823
2842
|
var element_0 = tmp0_iterator_0.i();
|
|
2824
2843
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitPaths.<anonymous>' call
|
|
2825
|
-
var key = element_0.
|
|
2844
|
+
var key = element_0.q23_1;
|
|
2826
2845
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
2827
2846
|
var value = destination_0.f2(key);
|
|
2828
2847
|
var tmp;
|
|
@@ -2893,10 +2912,10 @@
|
|
|
2893
2912
|
return toMap(destination_1);
|
|
2894
2913
|
}
|
|
2895
2914
|
function emit_1(_this__u8e3s4, $this) {
|
|
2896
|
-
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.
|
|
2915
|
+
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.i25_1.f26_1);
|
|
2897
2916
|
}
|
|
2898
2917
|
function emit_2(_this__u8e3s4, $this) {
|
|
2899
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2918
|
+
var tmp0_safe_receiver = _this__u8e3s4.c25_1;
|
|
2900
2919
|
var tmp;
|
|
2901
2920
|
var tmp_0 = tmp0_safe_receiver;
|
|
2902
2921
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -2906,7 +2925,7 @@
|
|
|
2906
2925
|
}
|
|
2907
2926
|
var tmp1_description = tmp;
|
|
2908
2927
|
// Inline function 'kotlin.collections.associate' call
|
|
2909
|
-
var this_0 = _this__u8e3s4.
|
|
2928
|
+
var this_0 = _this__u8e3s4.e25_1.w25_1;
|
|
2910
2929
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2911
2930
|
// Inline function 'kotlin.collections.associateTo' call
|
|
2912
2931
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -2922,13 +2941,13 @@
|
|
|
2922
2941
|
// Inline function 'kotlin.collections.map' call
|
|
2923
2942
|
// Inline function 'kotlin.collections.filter' call
|
|
2924
2943
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2925
|
-
var this_1 = _this__u8e3s4.
|
|
2944
|
+
var this_1 = _this__u8e3s4.e25_1.w25_1;
|
|
2926
2945
|
var destination_0 = ArrayList_init_$Create$();
|
|
2927
2946
|
var tmp0_iterator_0 = this_1.g();
|
|
2928
2947
|
while (tmp0_iterator_0.h()) {
|
|
2929
2948
|
var element_0 = tmp0_iterator_0.i();
|
|
2930
2949
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2931
|
-
if (!element_0.
|
|
2950
|
+
if (!element_0.j24_1.vl()) {
|
|
2932
2951
|
destination_0.e(element_0);
|
|
2933
2952
|
}
|
|
2934
2953
|
}
|
|
@@ -2938,7 +2957,7 @@
|
|
|
2938
2957
|
while (tmp0_iterator_1.h()) {
|
|
2939
2958
|
var item = tmp0_iterator_1.i();
|
|
2940
2959
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2941
|
-
var tmp$ret$6 = item.
|
|
2960
|
+
var tmp$ret$6 = item.i24_1.b1();
|
|
2942
2961
|
destination_1.e(tmp$ret$6);
|
|
2943
2962
|
}
|
|
2944
2963
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -2954,7 +2973,7 @@
|
|
|
2954
2973
|
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);
|
|
2955
2974
|
}
|
|
2956
2975
|
function emit_3(_this__u8e3s4, $this) {
|
|
2957
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2976
|
+
var tmp0_safe_receiver = _this__u8e3s4.j25_1;
|
|
2958
2977
|
var tmp;
|
|
2959
2978
|
var tmp_0 = tmp0_safe_receiver;
|
|
2960
2979
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -2965,7 +2984,7 @@
|
|
|
2965
2984
|
var tmp1_description = tmp;
|
|
2966
2985
|
var tmp2_type = Type_STRING_getInstance_0();
|
|
2967
2986
|
// Inline function 'kotlin.collections.map' call
|
|
2968
|
-
var this_0 = _this__u8e3s4.
|
|
2987
|
+
var this_0 = _this__u8e3s4.l25_1;
|
|
2969
2988
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2970
2989
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2971
2990
|
var tmp0_iterator = this_0.g();
|
|
@@ -2978,7 +2997,7 @@
|
|
|
2978
2997
|
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_type, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_description, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, destination);
|
|
2979
2998
|
}
|
|
2980
2999
|
function emit_4(_this__u8e3s4, $this) {
|
|
2981
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3000
|
+
var tmp0_safe_receiver = _this__u8e3s4.z24_1;
|
|
2982
3001
|
var tmp;
|
|
2983
3002
|
var tmp_0 = tmp0_safe_receiver;
|
|
2984
3003
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -2989,7 +3008,7 @@
|
|
|
2989
3008
|
var tmp1_description = tmp;
|
|
2990
3009
|
var tmp2_type = Type_STRING_getInstance_0();
|
|
2991
3010
|
// Inline function 'kotlin.collections.map' call
|
|
2992
|
-
var this_0 = _this__u8e3s4.
|
|
3011
|
+
var this_0 = _this__u8e3s4.b25_1;
|
|
2993
3012
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2994
3013
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2995
3014
|
var tmp0_iterator = this_0.g();
|
|
@@ -3010,7 +3029,7 @@
|
|
|
3010
3029
|
while (tmp0_iterator.h()) {
|
|
3011
3030
|
var element = tmp0_iterator.i();
|
|
3012
3031
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
3013
|
-
if (element.
|
|
3032
|
+
if (element.p23_1.equals(method)) {
|
|
3014
3033
|
destination.e(element);
|
|
3015
3034
|
}
|
|
3016
3035
|
}
|
|
@@ -3026,8 +3045,8 @@
|
|
|
3026
3045
|
return firstOrNull(destination_0);
|
|
3027
3046
|
}
|
|
3028
3047
|
function emit_6(_this__u8e3s4, $this) {
|
|
3029
|
-
var tmp2_operationId = _this__u8e3s4.
|
|
3030
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3048
|
+
var tmp2_operationId = _this__u8e3s4.o23_1.b1();
|
|
3049
|
+
var tmp0_safe_receiver = _this__u8e3s4.n23_1;
|
|
3031
3050
|
var tmp;
|
|
3032
3051
|
var tmp_0 = tmp0_safe_receiver;
|
|
3033
3052
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -3039,7 +3058,7 @@
|
|
|
3039
3058
|
// Inline function 'kotlin.collections.map' call
|
|
3040
3059
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3041
3060
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
3042
|
-
var this_0 = _this__u8e3s4.
|
|
3061
|
+
var this_0 = _this__u8e3s4.q23_1;
|
|
3043
3062
|
var destination = ArrayList_init_$Create$();
|
|
3044
3063
|
var tmp0_iterator = this_0.g();
|
|
3045
3064
|
while (tmp0_iterator.h()) {
|
|
@@ -3059,7 +3078,7 @@
|
|
|
3059
3078
|
}
|
|
3060
3079
|
var tmp_1 = destination_0;
|
|
3061
3080
|
// Inline function 'kotlin.collections.map' call
|
|
3062
|
-
var this_1 = _this__u8e3s4.
|
|
3081
|
+
var this_1 = _this__u8e3s4.r23_1;
|
|
3063
3082
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3064
3083
|
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
3065
3084
|
var tmp0_iterator_1 = this_1.g();
|
|
@@ -3071,7 +3090,7 @@
|
|
|
3071
3090
|
}
|
|
3072
3091
|
var tmp_2 = plus(tmp_1, destination_1);
|
|
3073
3092
|
// Inline function 'kotlin.collections.map' call
|
|
3074
|
-
var this_2 = _this__u8e3s4.
|
|
3093
|
+
var this_2 = _this__u8e3s4.s23_1;
|
|
3075
3094
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3076
3095
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
|
|
3077
3096
|
var tmp0_iterator_2 = this_2.g();
|
|
@@ -3085,7 +3104,7 @@
|
|
|
3085
3104
|
// Inline function 'kotlin.takeIf' call
|
|
3086
3105
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3087
3106
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3088
|
-
var this_3 = _this__u8e3s4.
|
|
3107
|
+
var this_3 = _this__u8e3s4.u23_1;
|
|
3089
3108
|
var destination_3 = ArrayList_init_$Create$();
|
|
3090
3109
|
// Inline function 'kotlin.collections.forEach' call
|
|
3091
3110
|
var tmp0_iterator_3 = this_3.g();
|
|
@@ -3093,7 +3112,7 @@
|
|
|
3093
3112
|
var element_0 = tmp0_iterator_3.i();
|
|
3094
3113
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3095
3114
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
3096
|
-
var tmp0_safe_receiver_0 = element_0.
|
|
3115
|
+
var tmp0_safe_receiver_0 = element_0.b24_1;
|
|
3097
3116
|
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : emit_7(tmp0_safe_receiver_0, OpenApiV3Emitter_getInstance());
|
|
3098
3117
|
if (tmp0_safe_receiver_1 == null)
|
|
3099
3118
|
null;
|
|
@@ -3124,7 +3143,7 @@
|
|
|
3124
3143
|
var tmp$ret$18;
|
|
3125
3144
|
$l$block_0: {
|
|
3126
3145
|
// Inline function 'kotlin.collections.any' call
|
|
3127
|
-
var this_5 = _this__u8e3s4.
|
|
3146
|
+
var this_5 = _this__u8e3s4.u23_1;
|
|
3128
3147
|
var tmp_5;
|
|
3129
3148
|
if (isInterface(this_5, Collection)) {
|
|
3130
3149
|
tmp_5 = this_5.l();
|
|
@@ -3139,9 +3158,9 @@
|
|
|
3139
3158
|
while (tmp0_iterator_4.h()) {
|
|
3140
3159
|
var element_1 = tmp0_iterator_4.i();
|
|
3141
3160
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3142
|
-
var tmp0_safe_receiver_2 = element_1.
|
|
3143
|
-
var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.
|
|
3144
|
-
if ((tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
3161
|
+
var tmp0_safe_receiver_2 = element_1.b24_1;
|
|
3162
|
+
var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.d24_1;
|
|
3163
|
+
if ((tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.vl()) === true) {
|
|
3145
3164
|
tmp$ret$18 = true;
|
|
3146
3165
|
break $l$block_0;
|
|
3147
3166
|
}
|
|
@@ -3154,13 +3173,13 @@
|
|
|
3154
3173
|
// Inline function 'kotlin.collections.map' call
|
|
3155
3174
|
// Inline function 'kotlin.collections.groupBy' call
|
|
3156
3175
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
3157
|
-
var this_6 = _this__u8e3s4.
|
|
3176
|
+
var this_6 = _this__u8e3s4.v23_1;
|
|
3158
3177
|
var destination_4 = LinkedHashMap_init_$Create$_0();
|
|
3159
3178
|
var tmp0_iterator_5 = this_6.g();
|
|
3160
3179
|
while (tmp0_iterator_5.h()) {
|
|
3161
3180
|
var element_2 = tmp0_iterator_5.i();
|
|
3162
3181
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
3163
|
-
var key = element_2.
|
|
3182
|
+
var key = element_2.w23_1;
|
|
3164
3183
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
3165
3184
|
var value = destination_4.f2(key);
|
|
3166
3185
|
var tmp_6;
|
|
@@ -3195,7 +3214,7 @@
|
|
|
3195
3214
|
while (tmp0_iterator_7.h()) {
|
|
3196
3215
|
var element_3 = tmp0_iterator_7.i();
|
|
3197
3216
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3198
|
-
var list_0 = element_3.
|
|
3217
|
+
var list_0 = element_3.x23_1;
|
|
3199
3218
|
addAll(destination_6, list_0);
|
|
3200
3219
|
}
|
|
3201
3220
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_6, 10)), 16);
|
|
@@ -3209,7 +3228,7 @@
|
|
|
3209
3228
|
var pair = emitHeader(element_4, OpenApiV3Emitter_getInstance());
|
|
3210
3229
|
destination_7.m2(pair.ce_1, pair.de_1);
|
|
3211
3230
|
}
|
|
3212
|
-
var tmp1_description = _this__u8e3s4.
|
|
3231
|
+
var tmp1_description = _this__u8e3s4.o23_1.b1() + ' ' + statusCode + ' response';
|
|
3213
3232
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
3214
3233
|
// Inline function 'kotlin.collections.associate' call
|
|
3215
3234
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -3221,7 +3240,7 @@
|
|
|
3221
3240
|
var element_5 = tmp0_iterator_9.i();
|
|
3222
3241
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3223
3242
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3224
|
-
var tmp0_safe_receiver_3 = element_5.
|
|
3243
|
+
var tmp0_safe_receiver_3 = element_5.y23_1;
|
|
3225
3244
|
if (tmp0_safe_receiver_3 == null)
|
|
3226
3245
|
null;
|
|
3227
3246
|
else {
|
|
@@ -3260,32 +3279,32 @@
|
|
|
3260
3279
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenApiV3Emitter$emitSegment$lambda);
|
|
3261
3280
|
}
|
|
3262
3281
|
function emitParameter_0(_this__u8e3s4, $this, location) {
|
|
3263
|
-
var tmp0_name = _this__u8e3s4.
|
|
3264
|
-
var tmp1_schema = emitSchema_0(_this__u8e3s4.
|
|
3282
|
+
var tmp0_name = _this__u8e3s4.i24_1.b1();
|
|
3283
|
+
var tmp1_schema = emitSchema_0(_this__u8e3s4.j24_1, $this);
|
|
3265
3284
|
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_schema, VOID, VOID, VOID, tmp0_name, location);
|
|
3266
3285
|
}
|
|
3267
3286
|
function emitParameter_1(_this__u8e3s4, $this) {
|
|
3268
3287
|
var tmp0_in = ParameterLocation_PATH_getInstance_0();
|
|
3269
|
-
var tmp1_name = _this__u8e3s4.
|
|
3270
|
-
var tmp2_schema = emitSchema_0(_this__u8e3s4.
|
|
3288
|
+
var tmp1_name = _this__u8e3s4.n24_1.b1();
|
|
3289
|
+
var tmp2_schema = emitSchema_0(_this__u8e3s4.o24_1, $this);
|
|
3271
3290
|
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_schema, VOID, VOID, VOID, tmp1_name, tmp0_in);
|
|
3272
3291
|
}
|
|
3273
3292
|
function emitHeader(_this__u8e3s4, $this) {
|
|
3274
|
-
return to(_this__u8e3s4.
|
|
3293
|
+
return to(_this__u8e3s4.i24_1.b1(), emitHeader_0(_this__u8e3s4.j24_1, $this));
|
|
3275
3294
|
}
|
|
3276
3295
|
function emitSchema(_this__u8e3s4, $this) {
|
|
3277
|
-
return to(_this__u8e3s4.
|
|
3296
|
+
return to(_this__u8e3s4.i24_1.b1(), emitSchema_0(_this__u8e3s4.j24_1, $this));
|
|
3278
3297
|
}
|
|
3279
3298
|
function emitHeader_0(_this__u8e3s4, $this) {
|
|
3280
3299
|
var tmp;
|
|
3281
3300
|
if (_this__u8e3s4 instanceof Dict) {
|
|
3282
|
-
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.
|
|
3301
|
+
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.c26_1));
|
|
3283
3302
|
} else {
|
|
3284
3303
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
3285
|
-
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.
|
|
3304
|
+
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.z25_1));
|
|
3286
3305
|
} else {
|
|
3287
3306
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3288
|
-
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.
|
|
3307
|
+
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.y22_1));
|
|
3289
3308
|
} else {
|
|
3290
3309
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3291
3310
|
tmp = new HeaderObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitSchema_0(_this__u8e3s4, $this));
|
|
@@ -3310,19 +3329,19 @@
|
|
|
3310
3329
|
function emitSchema_0(_this__u8e3s4, $this) {
|
|
3311
3330
|
var tmp;
|
|
3312
3331
|
if (_this__u8e3s4 instanceof Dict) {
|
|
3313
|
-
var tmp_0 = _this__u8e3s4.
|
|
3332
|
+
var tmp_0 = _this__u8e3s4.a26_1.vl();
|
|
3314
3333
|
var tmp_1 = Type_OBJECT_getInstance_0();
|
|
3315
|
-
var tmp_2 = emitSchema_0(_this__u8e3s4.
|
|
3334
|
+
var tmp_2 = emitSchema_0(_this__u8e3s4.a26_1, $this);
|
|
3316
3335
|
tmp = new SchemaObject_0(tmp_0, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_1, VOID, VOID, VOID, VOID, VOID, VOID, isInterface(tmp_2, SchemaOrReferenceOrBooleanObject) ? tmp_2 : THROW_CCE());
|
|
3317
3336
|
} else {
|
|
3318
3337
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
3319
|
-
tmp = new SchemaObject_0(_this__u8e3s4.
|
|
3338
|
+
tmp = new SchemaObject_0(_this__u8e3s4.x25_1.vl(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance_0(), VOID, VOID, VOID, VOID, emitSchema_0(_this__u8e3s4.x25_1, $this));
|
|
3320
3339
|
} else {
|
|
3321
3340
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3322
|
-
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/schemas/' + _this__u8e3s4.
|
|
3341
|
+
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/schemas/' + _this__u8e3s4.y22_1));
|
|
3323
3342
|
} else {
|
|
3324
3343
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3325
|
-
tmp = new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType_1(_this__u8e3s4.
|
|
3344
|
+
tmp = new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType_1(_this__u8e3s4.g23_1, $this), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitFormat_0(_this__u8e3s4, $this));
|
|
3326
3345
|
} else {
|
|
3327
3346
|
if (_this__u8e3s4 instanceof Any) {
|
|
3328
3347
|
var message = 'Cannot map Any';
|
|
@@ -3367,16 +3386,16 @@
|
|
|
3367
3386
|
return tmp;
|
|
3368
3387
|
}
|
|
3369
3388
|
function emit_7(_this__u8e3s4, $this) {
|
|
3370
|
-
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.
|
|
3389
|
+
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.c24_1)), new MediaTypeObject(emitSchema_0(_this__u8e3s4.d24_1, $this)));
|
|
3371
3390
|
}
|
|
3372
3391
|
function emitFormat_0(_this__u8e3s4, $this) {
|
|
3373
3392
|
var tmp;
|
|
3374
3393
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3375
|
-
var t = _this__u8e3s4.
|
|
3394
|
+
var t = _this__u8e3s4.g23_1;
|
|
3376
3395
|
var tmp_0;
|
|
3377
3396
|
if (t instanceof Number_0) {
|
|
3378
3397
|
var tmp_1;
|
|
3379
|
-
switch (t.
|
|
3398
|
+
switch (t.j23_1.q2_1) {
|
|
3380
3399
|
case 0:
|
|
3381
3400
|
tmp_1 = 'float';
|
|
3382
3401
|
break;
|
|
@@ -3391,7 +3410,7 @@
|
|
|
3391
3410
|
} else {
|
|
3392
3411
|
if (t instanceof Integer) {
|
|
3393
3412
|
var tmp_2;
|
|
3394
|
-
switch (t.
|
|
3413
|
+
switch (t.l23_1.q2_1) {
|
|
3395
3414
|
case 0:
|
|
3396
3415
|
tmp_2 = 'int32';
|
|
3397
3416
|
break;
|
|
@@ -3420,10 +3439,10 @@
|
|
|
3420
3439
|
function OpenApiV3Emitter$emitSegment$lambda(it) {
|
|
3421
3440
|
var tmp;
|
|
3422
3441
|
if (it instanceof Param) {
|
|
3423
|
-
tmp = '{' + it.
|
|
3442
|
+
tmp = '{' + it.n24_1.b1() + '}';
|
|
3424
3443
|
} else {
|
|
3425
3444
|
if (it instanceof Literal) {
|
|
3426
|
-
tmp = it.
|
|
3445
|
+
tmp = it.x24_1;
|
|
3427
3446
|
} else {
|
|
3428
3447
|
noWhenBranchMatchedException();
|
|
3429
3448
|
}
|
|
@@ -3433,45 +3452,45 @@
|
|
|
3433
3452
|
function OpenApiV3Emitter() {
|
|
3434
3453
|
OpenApiV3Emitter_instance = this;
|
|
3435
3454
|
Emitter.call(this, get_noLogger());
|
|
3436
|
-
this.
|
|
3455
|
+
this.y2a_1 = '';
|
|
3437
3456
|
}
|
|
3438
|
-
protoOf(OpenApiV3Emitter).
|
|
3439
|
-
return this.
|
|
3457
|
+
protoOf(OpenApiV3Emitter).p25 = function () {
|
|
3458
|
+
return this.y2a_1;
|
|
3440
3459
|
};
|
|
3441
|
-
protoOf(OpenApiV3Emitter).
|
|
3460
|
+
protoOf(OpenApiV3Emitter).j22 = function (ast) {
|
|
3442
3461
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
3443
|
-
var this_0 = Common_getInstance().
|
|
3444
|
-
var value = this.
|
|
3462
|
+
var this_0 = Common_getInstance().a2a_1;
|
|
3463
|
+
var value = this.z2a(ast, null);
|
|
3445
3464
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3446
|
-
var this_1 = this_0.
|
|
3465
|
+
var this_1 = this_0.lo();
|
|
3447
3466
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
3448
3467
|
var this_2 = serializer(this_1, createKType(getKClass(OpenAPIObject), arrayOf([]), false));
|
|
3449
3468
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
3450
|
-
var tmp$ret$2 = this_0.
|
|
3469
|
+
var tmp$ret$2 = this_0.a15(tmp$ret$1, value);
|
|
3451
3470
|
return listOf(new Emitted('OpenAPIObject', tmp$ret$2));
|
|
3452
3471
|
};
|
|
3453
|
-
protoOf(OpenApiV3Emitter).
|
|
3454
|
-
return this.
|
|
3472
|
+
protoOf(OpenApiV3Emitter).t25 = function (type, ast) {
|
|
3473
|
+
return this.q26();
|
|
3455
3474
|
};
|
|
3456
|
-
protoOf(OpenApiV3Emitter).
|
|
3457
|
-
return this.
|
|
3475
|
+
protoOf(OpenApiV3Emitter).h26 = function (enum_0, ast) {
|
|
3476
|
+
return this.q26();
|
|
3458
3477
|
};
|
|
3459
|
-
protoOf(OpenApiV3Emitter).
|
|
3460
|
-
return this.
|
|
3478
|
+
protoOf(OpenApiV3Emitter).d26 = function (refined) {
|
|
3479
|
+
return this.q26();
|
|
3461
3480
|
};
|
|
3462
|
-
protoOf(OpenApiV3Emitter).
|
|
3463
|
-
return this.
|
|
3481
|
+
protoOf(OpenApiV3Emitter).l26 = function (endpoint) {
|
|
3482
|
+
return this.q26();
|
|
3464
3483
|
};
|
|
3465
|
-
protoOf(OpenApiV3Emitter).
|
|
3466
|
-
return this.
|
|
3484
|
+
protoOf(OpenApiV3Emitter).j26 = function (union) {
|
|
3485
|
+
return this.q26();
|
|
3467
3486
|
};
|
|
3468
|
-
protoOf(OpenApiV3Emitter).
|
|
3469
|
-
return this.
|
|
3487
|
+
protoOf(OpenApiV3Emitter).k26 = function (channel) {
|
|
3488
|
+
return this.q26();
|
|
3470
3489
|
};
|
|
3471
|
-
protoOf(OpenApiV3Emitter).
|
|
3472
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
3490
|
+
protoOf(OpenApiV3Emitter).z2a = function (ast, options) {
|
|
3491
|
+
var tmp1_elvis_lhs = options == null ? null : options.a2b_1;
|
|
3473
3492
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
3474
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
3493
|
+
var tmp3_elvis_lhs = options == null ? null : options.b2b_1;
|
|
3475
3494
|
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));
|
|
3476
3495
|
};
|
|
3477
3496
|
var OpenApiV3Emitter_instance;
|
|
@@ -3483,7 +3502,7 @@
|
|
|
3483
3502
|
function parseEndpoint(_this__u8e3s4, $this) {
|
|
3484
3503
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3485
3504
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3486
|
-
var this_0 = _this__u8e3s4.
|
|
3505
|
+
var this_0 = _this__u8e3s4.o1q_1;
|
|
3487
3506
|
var destination = ArrayList_init_$Create$();
|
|
3488
3507
|
// Inline function 'kotlin.collections.iterator' call
|
|
3489
3508
|
var tmp0_iterator = this_0.z().g();
|
|
@@ -3491,7 +3510,7 @@
|
|
|
3491
3510
|
var element = tmp0_iterator.i();
|
|
3492
3511
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>' call
|
|
3493
3512
|
// Inline function 'kotlin.collections.component1' call
|
|
3494
|
-
var key = element.a1().
|
|
3513
|
+
var key = element.a1().n1r_1;
|
|
3495
3514
|
// Inline function 'kotlin.collections.component2' call
|
|
3496
3515
|
var path = element.b1();
|
|
3497
3516
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3519,7 +3538,7 @@
|
|
|
3519
3538
|
while (tmp0_iterator_1.h()) {
|
|
3520
3539
|
var element_0 = tmp0_iterator_1.i();
|
|
3521
3540
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3522
|
-
if (element_0.
|
|
3541
|
+
if (element_0.w1v_1.equals(ParameterLocation_QUERY_getInstance_0())) {
|
|
3523
3542
|
destination_1.e(element_0);
|
|
3524
3543
|
}
|
|
3525
3544
|
}
|
|
@@ -3529,7 +3548,7 @@
|
|
|
3529
3548
|
while (tmp0_iterator_2.h()) {
|
|
3530
3549
|
var item_0 = tmp0_iterator_2.i();
|
|
3531
3550
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3532
|
-
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_0, Common_getInstance().
|
|
3551
|
+
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_0, Common_getInstance().b2a([name, 'Parameter', item_0.v1v_1]));
|
|
3533
3552
|
destination_2.e(tmp$ret$9);
|
|
3534
3553
|
}
|
|
3535
3554
|
var query = destination_2;
|
|
@@ -3541,7 +3560,7 @@
|
|
|
3541
3560
|
while (tmp0_iterator_3.h()) {
|
|
3542
3561
|
var element_1 = tmp0_iterator_3.i();
|
|
3543
3562
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3544
|
-
if (element_1.
|
|
3563
|
+
if (element_1.w1v_1.equals(ParameterLocation_HEADER_getInstance_0())) {
|
|
3545
3564
|
destination_3.e(element_1);
|
|
3546
3565
|
}
|
|
3547
3566
|
}
|
|
@@ -3551,7 +3570,7 @@
|
|
|
3551
3570
|
while (tmp0_iterator_4.h()) {
|
|
3552
3571
|
var item_1 = tmp0_iterator_4.i();
|
|
3553
3572
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3554
|
-
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_1, Common_getInstance().
|
|
3573
|
+
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_1, Common_getInstance().b2a([name, 'Parameter', item_1.v1v_1]));
|
|
3555
3574
|
destination_4.e(tmp$ret$15);
|
|
3556
3575
|
}
|
|
3557
3576
|
var headers = destination_4;
|
|
@@ -3563,7 +3582,7 @@
|
|
|
3563
3582
|
while (tmp0_iterator_5.h()) {
|
|
3564
3583
|
var element_2 = tmp0_iterator_5.i();
|
|
3565
3584
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3566
|
-
if (element_2.
|
|
3585
|
+
if (element_2.w1v_1.equals(ParameterLocation_COOKIE_getInstance())) {
|
|
3567
3586
|
destination_5.e(element_2);
|
|
3568
3587
|
}
|
|
3569
3588
|
}
|
|
@@ -3573,11 +3592,11 @@
|
|
|
3573
3592
|
while (tmp0_iterator_6.h()) {
|
|
3574
3593
|
var item_2 = tmp0_iterator_6.i();
|
|
3575
3594
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3576
|
-
var tmp$ret$21 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_2, Common_getInstance().
|
|
3595
|
+
var tmp$ret$21 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_2, Common_getInstance().b2a([name, 'Parameter', item_2.v1v_1]));
|
|
3577
3596
|
destination_6.e(tmp$ret$21);
|
|
3578
3597
|
}
|
|
3579
3598
|
var cookies = destination_6;
|
|
3580
|
-
var tmp1_safe_receiver = operation.
|
|
3599
|
+
var tmp1_safe_receiver = operation.y1t_1;
|
|
3581
3600
|
var tmp;
|
|
3582
3601
|
if (tmp1_safe_receiver == null) {
|
|
3583
3602
|
tmp = null;
|
|
@@ -3596,7 +3615,7 @@
|
|
|
3596
3615
|
// Inline function 'kotlin.contracts.contract' call
|
|
3597
3616
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3598
3617
|
var isNullable = false;
|
|
3599
|
-
var tmp0_safe_receiver = tmp2_safe_receiver.
|
|
3618
|
+
var tmp0_safe_receiver = tmp2_safe_receiver.f1y_1;
|
|
3600
3619
|
var tmp_1;
|
|
3601
3620
|
if (tmp0_safe_receiver == null) {
|
|
3602
3621
|
tmp_1 = null;
|
|
@@ -3610,16 +3629,16 @@
|
|
|
3610
3629
|
var item_3 = tmp0_iterator_7.i();
|
|
3611
3630
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3612
3631
|
// Inline function 'kotlin.collections.component1' call
|
|
3613
|
-
var mediaType = item_3.a1().
|
|
3632
|
+
var mediaType = item_3.a1().u1z_1;
|
|
3614
3633
|
// Inline function 'kotlin.collections.component2' call
|
|
3615
3634
|
var mediaObject = item_3.b1();
|
|
3616
|
-
var schema = mediaObject.
|
|
3635
|
+
var schema = mediaObject.y1z_1;
|
|
3617
3636
|
var tmp_2;
|
|
3618
3637
|
if (schema instanceof ReferenceObject_0) {
|
|
3619
3638
|
tmp_2 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, schema, isNullable);
|
|
3620
3639
|
} else {
|
|
3621
3640
|
if (schema instanceof SchemaObject_0) {
|
|
3622
|
-
tmp_2 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema, isNullable, Common_getInstance().
|
|
3641
|
+
tmp_2 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema, isNullable, Common_getInstance().b2a([name, 'RequestBody']));
|
|
3623
3642
|
} else {
|
|
3624
3643
|
if (schema == null) {
|
|
3625
3644
|
tmp_2 = null;
|
|
@@ -3650,7 +3669,7 @@
|
|
|
3650
3669
|
var requests = tmp3_elvis_lhs == null ? listOf(new Request(null)) : tmp3_elvis_lhs;
|
|
3651
3670
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3652
3671
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3653
|
-
var tmp0_elvis_lhs_0 = operation.
|
|
3672
|
+
var tmp0_elvis_lhs_0 = operation.z1t_1;
|
|
3654
3673
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3655
3674
|
var this_2 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
3656
3675
|
var destination_8 = ArrayList_init_$Create$();
|
|
@@ -3660,14 +3679,14 @@
|
|
|
3660
3679
|
var element_3 = tmp0_iterator_8.i();
|
|
3661
3680
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3662
3681
|
// Inline function 'kotlin.collections.component1' call
|
|
3663
|
-
var status = element_3.a1().
|
|
3682
|
+
var status = element_3.a1().h1v_1;
|
|
3664
3683
|
// Inline function 'kotlin.collections.component2' call
|
|
3665
3684
|
var res = element_3.b1();
|
|
3666
3685
|
// Inline function 'kotlin.let' call
|
|
3667
3686
|
// Inline function 'kotlin.contracts.contract' call
|
|
3668
3687
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3669
3688
|
var response = resolve_8(_this__u8e3s4, OpenApiV3Parser_instance, res);
|
|
3670
|
-
var tmp0_safe_receiver_0 = response.
|
|
3689
|
+
var tmp0_safe_receiver_0 = response.t1x_1;
|
|
3671
3690
|
var tmp_4;
|
|
3672
3691
|
if (tmp0_safe_receiver_0 == null) {
|
|
3673
3692
|
tmp_4 = null;
|
|
@@ -3681,10 +3700,10 @@
|
|
|
3681
3700
|
var item_4 = tmp0_iterator_9.i();
|
|
3682
3701
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3683
3702
|
// Inline function 'kotlin.collections.component1' call
|
|
3684
|
-
var contentType = item_4.a1().
|
|
3703
|
+
var contentType = item_4.a1().u1z_1;
|
|
3685
3704
|
// Inline function 'kotlin.collections.component2' call
|
|
3686
3705
|
var media = item_4.b1();
|
|
3687
|
-
var tmp0_safe_receiver_1 = media.
|
|
3706
|
+
var tmp0_safe_receiver_1 = media.y1z_1;
|
|
3688
3707
|
var tmp_5;
|
|
3689
3708
|
if (tmp0_safe_receiver_1 == null) {
|
|
3690
3709
|
tmp_5 = null;
|
|
@@ -3695,11 +3714,11 @@
|
|
|
3695
3714
|
tmp_5 = resolve_4(_this__u8e3s4, OpenApiV3Parser_instance, tmp0_safe_receiver_1);
|
|
3696
3715
|
}
|
|
3697
3716
|
var tmp1_safe_receiver_0 = tmp_5;
|
|
3698
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
3717
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.e1w_1;
|
|
3699
3718
|
var isNullable_0 = tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs;
|
|
3700
3719
|
var tmp_6 = _StatusCode___get_value__impl__we50mu_0(status);
|
|
3701
3720
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3702
|
-
var tmp3_safe_receiver = response.
|
|
3721
|
+
var tmp3_safe_receiver = response.s1x_1;
|
|
3703
3722
|
var tmp_7;
|
|
3704
3723
|
if (tmp3_safe_receiver == null) {
|
|
3705
3724
|
tmp_7 = null;
|
|
@@ -3712,7 +3731,7 @@
|
|
|
3712
3731
|
while (tmp0_iterator_10.h()) {
|
|
3713
3732
|
var item_5 = tmp0_iterator_10.i();
|
|
3714
3733
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3715
|
-
var tmp$ret$46 = toField_4(_this__u8e3s4, OpenApiV3Parser_instance, resolve_5(_this__u8e3s4, OpenApiV3Parser_instance, item_5.b1()), item_5.a1(), Common_getInstance().
|
|
3734
|
+
var tmp$ret$46 = toField_4(_this__u8e3s4, OpenApiV3Parser_instance, resolve_5(_this__u8e3s4, OpenApiV3Parser_instance, item_5.b1()), item_5.a1(), Common_getInstance().b2a([name, 'ResponseHeader']));
|
|
3716
3735
|
destination_10.e(tmp$ret$46);
|
|
3717
3736
|
}
|
|
3718
3737
|
tmp_7 = destination_10;
|
|
@@ -3720,13 +3739,13 @@
|
|
|
3720
3739
|
var tmp0_elvis_lhs_1 = tmp_7;
|
|
3721
3740
|
var tmp_8 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
3722
3741
|
var tmp_9 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
3723
|
-
var schema_0 = media.
|
|
3742
|
+
var schema_0 = media.y1z_1;
|
|
3724
3743
|
var tmp_10;
|
|
3725
3744
|
if (schema_0 instanceof ReferenceObject_0) {
|
|
3726
3745
|
tmp_10 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, schema_0, isNullable_0);
|
|
3727
3746
|
} else {
|
|
3728
3747
|
if (schema_0 instanceof SchemaObject_0) {
|
|
3729
|
-
tmp_10 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema_0, isNullable_0, Common_getInstance().
|
|
3748
|
+
tmp_10 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema_0, isNullable_0, Common_getInstance().b2a([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
3730
3749
|
} else {
|
|
3731
3750
|
if (schema_0 == null) {
|
|
3732
3751
|
tmp_10 = new Any(isNullable_0);
|
|
@@ -3762,7 +3781,7 @@
|
|
|
3762
3781
|
function flatMapResponse(_this__u8e3s4, $this, response, name, statusCode) {
|
|
3763
3782
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3764
3783
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3765
|
-
var tmp0_elvis_lhs = response.
|
|
3784
|
+
var tmp0_elvis_lhs = response.t1x_1;
|
|
3766
3785
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3767
3786
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3768
3787
|
var destination = ArrayList_init_$Create$();
|
|
@@ -3773,20 +3792,20 @@
|
|
|
3773
3792
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatMapResponse.<anonymous>' call
|
|
3774
3793
|
// Inline function 'kotlin.collections.component2' call
|
|
3775
3794
|
var mediaObject = element.b1();
|
|
3776
|
-
var schema = mediaObject.
|
|
3795
|
+
var schema = mediaObject.y1z_1;
|
|
3777
3796
|
var tmp;
|
|
3778
3797
|
if (schema instanceof SchemaObject_0) {
|
|
3779
|
-
var tmp0_subject = schema.
|
|
3798
|
+
var tmp0_subject = schema.n1w_1;
|
|
3780
3799
|
var tmp_0;
|
|
3781
3800
|
switch (tmp0_subject == null ? -1 : tmp0_subject.q2_1) {
|
|
3782
3801
|
case -1:
|
|
3783
3802
|
case 5:
|
|
3784
|
-
tmp_0 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_getInstance().
|
|
3803
|
+
tmp_0 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_getInstance().b2a([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
3785
3804
|
break;
|
|
3786
3805
|
case 4:
|
|
3787
3806
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3788
3807
|
|
|
3789
|
-
var tmp1_safe_receiver = schema.
|
|
3808
|
+
var tmp1_safe_receiver = schema.s1w_1;
|
|
3790
3809
|
var tmp_1;
|
|
3791
3810
|
if (tmp1_safe_receiver == null) {
|
|
3792
3811
|
tmp_1 = null;
|
|
@@ -3794,7 +3813,7 @@
|
|
|
3794
3813
|
// Inline function 'kotlin.let' call
|
|
3795
3814
|
// Inline function 'kotlin.contracts.contract' call
|
|
3796
3815
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatMapResponse.<anonymous>.<anonymous>' call
|
|
3797
|
-
tmp_1 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
3816
|
+
tmp_1 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp1_safe_receiver, Common_getInstance().b2a([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
3798
3817
|
}
|
|
3799
3818
|
|
|
3800
3819
|
var tmp0_elvis_lhs_0 = tmp_1;
|
|
@@ -3820,8 +3839,8 @@
|
|
|
3820
3839
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3821
3840
|
// Inline function 'kotlin.collections.filter' call
|
|
3822
3841
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3823
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3824
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3842
|
+
var tmp0_safe_receiver = _this__u8e3s4.p1q_1;
|
|
3843
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i1s_1;
|
|
3825
3844
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3826
3845
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3827
3846
|
var destination = LinkedHashMap_init_$Create$_0();
|
|
@@ -3833,7 +3852,7 @@
|
|
|
3833
3852
|
var s = element.b1();
|
|
3834
3853
|
var tmp;
|
|
3835
3854
|
if (s instanceof SchemaObject_0) {
|
|
3836
|
-
tmp = s.
|
|
3855
|
+
tmp = s.u1w_1 == null;
|
|
3837
3856
|
} else {
|
|
3838
3857
|
tmp = false;
|
|
3839
3858
|
}
|
|
@@ -3848,7 +3867,7 @@
|
|
|
3848
3867
|
while (tmp0_iterator_0.h()) {
|
|
3849
3868
|
var element_0 = tmp0_iterator_0.i();
|
|
3850
3869
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseComponents.<anonymous>' call
|
|
3851
|
-
var list = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, element_0.b1(), Common_getInstance().
|
|
3870
|
+
var list = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, element_0.b1(), Common_getInstance().b2a([element_0.a1()]));
|
|
3852
3871
|
addAll(destination_0, list);
|
|
3853
3872
|
}
|
|
3854
3873
|
return destination_0;
|
|
@@ -3857,7 +3876,7 @@
|
|
|
3857
3876
|
return charSequenceGet(_this__u8e3s4, 0) === _Char___init__impl__6a9atx(123) && charSequenceGet(_this__u8e3s4, _this__u8e3s4.length - 1 | 0) === _Char___init__impl__6a9atx(125);
|
|
3858
3877
|
}
|
|
3859
3878
|
function toName_1(_this__u8e3s4, $this) {
|
|
3860
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3879
|
+
var tmp0_safe_receiver = _this__u8e3s4.w1t_1;
|
|
3861
3880
|
var tmp;
|
|
3862
3881
|
if (tmp0_safe_receiver == null) {
|
|
3863
3882
|
tmp = null;
|
|
@@ -3865,7 +3884,7 @@
|
|
|
3865
3884
|
// Inline function 'kotlin.let' call
|
|
3866
3885
|
// Inline function 'kotlin.contracts.contract' call
|
|
3867
3886
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toName.<anonymous>' call
|
|
3868
|
-
tmp = Common_getInstance().
|
|
3887
|
+
tmp = Common_getInstance().b2a([tmp0_safe_receiver]);
|
|
3869
3888
|
}
|
|
3870
3889
|
return tmp;
|
|
3871
3890
|
}
|
|
@@ -3927,7 +3946,7 @@
|
|
|
3927
3946
|
while (tmp0_iterator_1.h()) {
|
|
3928
3947
|
var element_0 = tmp0_iterator_1.i();
|
|
3929
3948
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toSegments.<anonymous>.<anonymous>' call
|
|
3930
|
-
if (element_0.
|
|
3949
|
+
if (element_0.v1v_1 === param) {
|
|
3931
3950
|
tmp$ret$7 = element_0;
|
|
3932
3951
|
break $l$block;
|
|
3933
3952
|
}
|
|
@@ -3936,7 +3955,7 @@
|
|
|
3936
3955
|
}
|
|
3937
3956
|
|
|
3938
3957
|
var tmp2_safe_receiver = tmp$ret$7;
|
|
3939
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
3958
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.r1v_1;
|
|
3940
3959
|
var tmp_0;
|
|
3941
3960
|
if (tmp3_safe_receiver == null) {
|
|
3942
3961
|
tmp_0 = null;
|
|
@@ -3955,7 +3974,7 @@
|
|
|
3955
3974
|
// Inline function 'kotlin.let' call
|
|
3956
3975
|
// Inline function 'kotlin.contracts.contract' call
|
|
3957
3976
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toSegments.<anonymous>.<anonymous>' call
|
|
3958
|
-
tmp_1 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp4_safe_receiver, false, Common_getInstance().
|
|
3977
|
+
tmp_1 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp4_safe_receiver, false, Common_getInstance().b2a([name, 'Parameter', param]));
|
|
3959
3978
|
}
|
|
3960
3979
|
|
|
3961
3980
|
var tmp5_safe_receiver = tmp_1;
|
|
@@ -3993,7 +4012,7 @@
|
|
|
3993
4012
|
return destination_0;
|
|
3994
4013
|
}
|
|
3995
4014
|
function resolveParameters_1(_this__u8e3s4, $this, operation) {
|
|
3996
|
-
var tmp0_safe_receiver = operation.
|
|
4015
|
+
var tmp0_safe_receiver = operation.x1t_1;
|
|
3997
4016
|
var tmp;
|
|
3998
4017
|
if (tmp0_safe_receiver == null) {
|
|
3999
4018
|
tmp = null;
|
|
@@ -4032,7 +4051,7 @@
|
|
|
4032
4051
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
4033
4052
|
}
|
|
4034
4053
|
function resolveParameters_2(_this__u8e3s4, $this, pathItem) {
|
|
4035
|
-
var tmp0_safe_receiver = pathItem.
|
|
4054
|
+
var tmp0_safe_receiver = pathItem.d1s_1;
|
|
4036
4055
|
var tmp;
|
|
4037
4056
|
if (tmp0_safe_receiver == null) {
|
|
4038
4057
|
tmp = null;
|
|
@@ -4071,8 +4090,8 @@
|
|
|
4071
4090
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
4072
4091
|
}
|
|
4073
4092
|
function resolveParameterObject_0(_this__u8e3s4, $this, reference) {
|
|
4074
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
4075
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4093
|
+
var tmp0_safe_receiver = _this__u8e3s4.p1q_1;
|
|
4094
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k1s_1;
|
|
4076
4095
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f2(getReference_0(reference, $this));
|
|
4077
4096
|
var tmp;
|
|
4078
4097
|
if (tmp2_safe_receiver == null) {
|
|
@@ -4096,8 +4115,8 @@
|
|
|
4096
4115
|
return tmp;
|
|
4097
4116
|
}
|
|
4098
4117
|
function resolveSchemaObject_0(_this__u8e3s4, $this, reference) {
|
|
4099
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
4100
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4118
|
+
var tmp0_safe_receiver = _this__u8e3s4.p1q_1;
|
|
4119
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i1s_1;
|
|
4101
4120
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f2(getReference_0(reference, $this));
|
|
4102
4121
|
var tmp;
|
|
4103
4122
|
if (tmp2_safe_receiver == null) {
|
|
@@ -4121,7 +4140,7 @@
|
|
|
4121
4140
|
var tmp3_elvis_lhs = tmp;
|
|
4122
4141
|
var tmp_1;
|
|
4123
4142
|
if (tmp3_elvis_lhs == null) {
|
|
4124
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi_0(reference.
|
|
4143
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi_0(reference.b1w_1);
|
|
4125
4144
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4126
4145
|
} else {
|
|
4127
4146
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -4129,8 +4148,8 @@
|
|
|
4129
4148
|
return tmp_1;
|
|
4130
4149
|
}
|
|
4131
4150
|
function resolveHeaderObject(_this__u8e3s4, $this, reference) {
|
|
4132
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
4133
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4151
|
+
var tmp0_safe_receiver = _this__u8e3s4.p1q_1;
|
|
4152
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n1s_1;
|
|
4134
4153
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f2(getReference_0(reference, $this));
|
|
4135
4154
|
var tmp;
|
|
4136
4155
|
if (tmp2_safe_receiver == null) {
|
|
@@ -4154,7 +4173,7 @@
|
|
|
4154
4173
|
var tmp3_elvis_lhs = tmp;
|
|
4155
4174
|
var tmp_1;
|
|
4156
4175
|
if (tmp3_elvis_lhs == null) {
|
|
4157
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi_0(reference.
|
|
4176
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi_0(reference.b1w_1);
|
|
4158
4177
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4159
4178
|
} else {
|
|
4160
4179
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -4162,8 +4181,8 @@
|
|
|
4162
4181
|
return tmp_1;
|
|
4163
4182
|
}
|
|
4164
4183
|
function resolveRequestBodyObject(_this__u8e3s4, $this, reference) {
|
|
4165
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
4166
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4184
|
+
var tmp0_safe_receiver = _this__u8e3s4.p1q_1;
|
|
4185
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m1s_1;
|
|
4167
4186
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f2(getReference_0(reference, $this));
|
|
4168
4187
|
var tmp;
|
|
4169
4188
|
if (tmp2_safe_receiver == null) {
|
|
@@ -4187,7 +4206,7 @@
|
|
|
4187
4206
|
var tmp3_elvis_lhs = tmp;
|
|
4188
4207
|
var tmp_1;
|
|
4189
4208
|
if (tmp3_elvis_lhs == null) {
|
|
4190
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi_0(reference.
|
|
4209
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi_0(reference.b1w_1);
|
|
4191
4210
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4192
4211
|
} else {
|
|
4193
4212
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -4195,8 +4214,8 @@
|
|
|
4195
4214
|
return tmp_1;
|
|
4196
4215
|
}
|
|
4197
4216
|
function resolveResponseObject_0(_this__u8e3s4, $this, reference) {
|
|
4198
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
4199
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4217
|
+
var tmp0_safe_receiver = _this__u8e3s4.p1q_1;
|
|
4218
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j1s_1;
|
|
4200
4219
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f2(getReference_0(reference, $this));
|
|
4201
4220
|
var tmp;
|
|
4202
4221
|
if (tmp2_safe_receiver == null) {
|
|
@@ -4220,7 +4239,7 @@
|
|
|
4220
4239
|
var tmp3_elvis_lhs = tmp;
|
|
4221
4240
|
var tmp_1;
|
|
4222
4241
|
if (tmp3_elvis_lhs == null) {
|
|
4223
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi_0(reference.
|
|
4242
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi_0(reference.b1w_1);
|
|
4224
4243
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4225
4244
|
} else {
|
|
4226
4245
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -4299,12 +4318,12 @@
|
|
|
4299
4318
|
}
|
|
4300
4319
|
function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
4301
4320
|
var tmp;
|
|
4302
|
-
if (!(schemaObject.
|
|
4321
|
+
if (!(schemaObject.u1w_1 == null)) {
|
|
4303
4322
|
var tmp_0;
|
|
4304
|
-
if (schemaObject.
|
|
4323
|
+
if (schemaObject.u1w_1 instanceof BooleanObject_0) {
|
|
4305
4324
|
tmp_0 = emptyList();
|
|
4306
4325
|
} else {
|
|
4307
|
-
var tmp1_safe_receiver = schemaObject.
|
|
4326
|
+
var tmp1_safe_receiver = schemaObject.u1w_1;
|
|
4308
4327
|
var tmp_1;
|
|
4309
4328
|
if (tmp1_safe_receiver == null) {
|
|
4310
4329
|
tmp_1 = null;
|
|
@@ -4323,7 +4342,7 @@
|
|
|
4323
4342
|
// Inline function 'kotlin.contracts.contract' call
|
|
4324
4343
|
var tmp_3;
|
|
4325
4344
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
|
|
4326
|
-
if (!(tmp2_safe_receiver.
|
|
4345
|
+
if (!(tmp2_safe_receiver.t1w_1 == null)) {
|
|
4327
4346
|
tmp_3 = tmp2_safe_receiver;
|
|
4328
4347
|
} else {
|
|
4329
4348
|
tmp_3 = null;
|
|
@@ -4344,11 +4363,11 @@
|
|
|
4344
4363
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
4345
4364
|
}
|
|
4346
4365
|
tmp = tmp_0;
|
|
4347
|
-
} else if (!(schemaObject.
|
|
4366
|
+
} else if (!(schemaObject.p1w_1 == null) || !(schemaObject.q1w_1 == null)) {
|
|
4348
4367
|
var tmp_5 = new DefinitionIdentifier(name);
|
|
4349
4368
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
4350
4369
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4351
|
-
var tmp0_elvis_lhs = schemaObject.
|
|
4370
|
+
var tmp0_elvis_lhs = schemaObject.p1w_1;
|
|
4352
4371
|
var this_0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
4353
4372
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
4354
4373
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
@@ -4365,7 +4384,7 @@
|
|
|
4365
4384
|
tmp_6 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, item, false);
|
|
4366
4385
|
} else {
|
|
4367
4386
|
if (item instanceof SchemaObject_0) {
|
|
4368
|
-
tmp_6 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, item, false, Common_getInstance().
|
|
4387
|
+
tmp_6 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, item, false, Common_getInstance().b2a([name, index_0.toString()]));
|
|
4369
4388
|
} else {
|
|
4370
4389
|
noWhenBranchMatchedException();
|
|
4371
4390
|
}
|
|
@@ -4376,7 +4395,7 @@
|
|
|
4376
4395
|
var tmp_7 = listOf(new Union(null, tmp_5, toSet(destination)));
|
|
4377
4396
|
// Inline function 'kotlin.collections.flatMapIndexed' call
|
|
4378
4397
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4379
|
-
var tmp0_elvis_lhs_0 = schemaObject.
|
|
4398
|
+
var tmp0_elvis_lhs_0 = schemaObject.p1w_1;
|
|
4380
4399
|
// Inline function 'kotlin.collections.flatMapIndexedTo' call
|
|
4381
4400
|
var this_1 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
4382
4401
|
var destination_0 = ArrayList_init_$Create$();
|
|
@@ -4393,7 +4412,7 @@
|
|
|
4393
4412
|
tmp_8 = emptyList();
|
|
4394
4413
|
} else {
|
|
4395
4414
|
if (element instanceof SchemaObject_0) {
|
|
4396
|
-
tmp_8 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, element, Common_getInstance().
|
|
4415
|
+
tmp_8 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, element, Common_getInstance().b2a([name, index_2.toString()]));
|
|
4397
4416
|
} else {
|
|
4398
4417
|
noWhenBranchMatchedException();
|
|
4399
4418
|
}
|
|
@@ -4402,12 +4421,12 @@
|
|
|
4402
4421
|
addAll(destination_0, list);
|
|
4403
4422
|
}
|
|
4404
4423
|
tmp = plus(tmp_7, destination_0);
|
|
4405
|
-
} else if (!(schemaObject.
|
|
4424
|
+
} else if (!(schemaObject.o1w_1 == null)) {
|
|
4406
4425
|
var tmp_9 = new DefinitionIdentifier(name);
|
|
4407
4426
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
4408
4427
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4409
4428
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4410
|
-
var tmp0_elvis_lhs_1 = schemaObject.
|
|
4429
|
+
var tmp0_elvis_lhs_1 = schemaObject.o1w_1;
|
|
4411
4430
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4412
4431
|
var this_2 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
4413
4432
|
var destination_1 = ArrayList_init_$Create$();
|
|
@@ -4424,7 +4443,7 @@
|
|
|
4424
4443
|
while (tmp0_iterator_2.h()) {
|
|
4425
4444
|
var e = tmp0_iterator_2.i();
|
|
4426
4445
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
|
|
4427
|
-
var key = e.
|
|
4446
|
+
var key = e.i24_1;
|
|
4428
4447
|
if (set.e(key)) {
|
|
4429
4448
|
list_1.e(e);
|
|
4430
4449
|
}
|
|
@@ -4432,7 +4451,7 @@
|
|
|
4432
4451
|
var tmp_10 = listOf(new Type(null, tmp_9, new Shape(list_1), emptyList()));
|
|
4433
4452
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4434
4453
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4435
|
-
var this_3 = ensureNotNull(schemaObject.
|
|
4454
|
+
var this_3 = ensureNotNull(schemaObject.o1w_1);
|
|
4436
4455
|
var destination_2 = ArrayList_init_$Create$();
|
|
4437
4456
|
var tmp0_iterator_3 = this_3.g();
|
|
4438
4457
|
while (tmp0_iterator_3.h()) {
|
|
@@ -4442,12 +4461,12 @@
|
|
|
4442
4461
|
var tmp_11;
|
|
4443
4462
|
if (element_1 instanceof ReferenceObject_0) {
|
|
4444
4463
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4445
|
-
var tmp0_elvis_lhs_2 = resolveSchemaObject_0(_this__u8e3s4, OpenApiV3Parser_instance, element_1).de_1.
|
|
4464
|
+
var tmp0_elvis_lhs_2 = resolveSchemaObject_0(_this__u8e3s4, OpenApiV3Parser_instance, element_1).de_1.t1w_1;
|
|
4446
4465
|
tmp_11 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
4447
4466
|
} else {
|
|
4448
4467
|
if (element_1 instanceof SchemaObject_0) {
|
|
4449
4468
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4450
|
-
var tmp0_elvis_lhs_3 = element_1.
|
|
4469
|
+
var tmp0_elvis_lhs_3 = element_1.t1w_1;
|
|
4451
4470
|
tmp_11 = tmp0_elvis_lhs_3 == null ? emptyMap() : tmp0_elvis_lhs_3;
|
|
4452
4471
|
} else {
|
|
4453
4472
|
noWhenBranchMatchedException();
|
|
@@ -4465,24 +4484,24 @@
|
|
|
4465
4484
|
var key_0 = element_2.a1();
|
|
4466
4485
|
// Inline function 'kotlin.collections.component2' call
|
|
4467
4486
|
var value = element_2.b1();
|
|
4468
|
-
var list_2 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().
|
|
4487
|
+
var list_2 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().b2a([name, key_0]));
|
|
4469
4488
|
addAll(destination_3, list_2);
|
|
4470
4489
|
}
|
|
4471
4490
|
var list_3 = destination_3;
|
|
4472
4491
|
addAll(destination_2, list_3);
|
|
4473
4492
|
}
|
|
4474
4493
|
tmp = plus(tmp_10, destination_2);
|
|
4475
|
-
} else if (!(schemaObject.
|
|
4494
|
+
} else if (!(schemaObject.n1x_1 == null)) {
|
|
4476
4495
|
// Inline function 'kotlin.let' call
|
|
4477
4496
|
// Inline function 'kotlin.collections.map' call
|
|
4478
|
-
var this_5 = ensureNotNull(schemaObject.
|
|
4497
|
+
var this_5 = ensureNotNull(schemaObject.n1x_1);
|
|
4479
4498
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4480
4499
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_5, 10));
|
|
4481
4500
|
var tmp0_iterator_5 = this_5.g();
|
|
4482
4501
|
while (tmp0_iterator_5.h()) {
|
|
4483
4502
|
var item_0 = tmp0_iterator_5.i();
|
|
4484
4503
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
|
|
4485
|
-
var tmp$ret$31 = item_0.
|
|
4504
|
+
var tmp$ret$31 = item_0.e17();
|
|
4486
4505
|
destination_4.e(tmp$ret$31);
|
|
4487
4506
|
}
|
|
4488
4507
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -4490,7 +4509,7 @@
|
|
|
4490
4509
|
var it = toSet(destination_4);
|
|
4491
4510
|
tmp = listOf(new Enum(null, new DefinitionIdentifier(name), it));
|
|
4492
4511
|
} else {
|
|
4493
|
-
var tmp5_subject = schemaObject.
|
|
4512
|
+
var tmp5_subject = schemaObject.n1w_1;
|
|
4494
4513
|
var tmp_12;
|
|
4495
4514
|
switch (tmp5_subject == null ? -1 : tmp5_subject.q2_1) {
|
|
4496
4515
|
case -1:
|
|
@@ -4499,7 +4518,7 @@
|
|
|
4499
4518
|
|
|
4500
4519
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4501
4520
|
|
|
4502
|
-
var tmp0_elvis_lhs_4 = schemaObject.
|
|
4521
|
+
var tmp0_elvis_lhs_4 = schemaObject.t1w_1;
|
|
4503
4522
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4504
4523
|
|
|
4505
4524
|
var this_6 = tmp0_elvis_lhs_4 == null ? emptyMap() : tmp0_elvis_lhs_4;
|
|
@@ -4514,7 +4533,7 @@
|
|
|
4514
4533
|
var key_1 = element_3.a1();
|
|
4515
4534
|
// Inline function 'kotlin.collections.component2' call
|
|
4516
4535
|
var value_0 = element_3.b1();
|
|
4517
|
-
var list_4 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value_0, Common_getInstance().
|
|
4536
|
+
var list_4 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value_0, Common_getInstance().b2a([name, key_1]));
|
|
4518
4537
|
addAll(destination_5, list_4);
|
|
4519
4538
|
}
|
|
4520
4539
|
|
|
@@ -4523,7 +4542,7 @@
|
|
|
4523
4542
|
tmp_12 = plus(schema, fields);
|
|
4524
4543
|
break;
|
|
4525
4544
|
case 4:
|
|
4526
|
-
var tmp6_safe_receiver = schemaObject.
|
|
4545
|
+
var tmp6_safe_receiver = schemaObject.s1w_1;
|
|
4527
4546
|
var tmp_13;
|
|
4528
4547
|
if (tmp6_safe_receiver == null) {
|
|
4529
4548
|
tmp_13 = null;
|
|
@@ -4536,7 +4555,7 @@
|
|
|
4536
4555
|
tmp_14 = emptyList();
|
|
4537
4556
|
} else {
|
|
4538
4557
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
4539
|
-
tmp_14 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, tmp6_safe_receiver, Common_getInstance().
|
|
4558
|
+
tmp_14 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, tmp6_safe_receiver, Common_getInstance().b2a([name, 'array']));
|
|
4540
4559
|
} else {
|
|
4541
4560
|
noWhenBranchMatchedException();
|
|
4542
4561
|
}
|
|
@@ -4576,20 +4595,20 @@
|
|
|
4576
4595
|
var referencingObject = destruct.qd();
|
|
4577
4596
|
var schema = destruct.rd();
|
|
4578
4597
|
var tmp;
|
|
4579
|
-
if (!(schema.
|
|
4580
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4598
|
+
if (!(schema.u1w_1 == null)) {
|
|
4599
|
+
var additionalProperties = ensureNotNull(schema.u1w_1);
|
|
4581
4600
|
var tmp_0;
|
|
4582
4601
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
4583
4602
|
tmp_0 = new Dict(new Any(isNullable), false);
|
|
4584
4603
|
} else {
|
|
4585
4604
|
if (additionalProperties instanceof ReferenceObject_0) {
|
|
4586
4605
|
var tmp_1 = OpenApiV3Parser_instance;
|
|
4587
|
-
var tmp0_elvis_lhs = schema.
|
|
4606
|
+
var tmp0_elvis_lhs = schema.e1w_1;
|
|
4588
4607
|
tmp_0 = toDict_0(toReference_1(_this__u8e3s4, tmp_1, additionalProperties, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs), isNullable);
|
|
4589
4608
|
} else {
|
|
4590
4609
|
if (additionalProperties instanceof SchemaObject_0) {
|
|
4591
4610
|
var tmp_2 = OpenApiV3Parser_instance;
|
|
4592
|
-
var tmp1_elvis_lhs = schema.
|
|
4611
|
+
var tmp1_elvis_lhs = schema.e1w_1;
|
|
4593
4612
|
tmp_0 = toDict_0(toReference_2(_this__u8e3s4, tmp_2, additionalProperties, tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs, getReference_0(reference, OpenApiV3Parser_instance)), false);
|
|
4594
4613
|
} else {
|
|
4595
4614
|
noWhenBranchMatchedException();
|
|
@@ -4597,25 +4616,25 @@
|
|
|
4597
4616
|
}
|
|
4598
4617
|
}
|
|
4599
4618
|
tmp = tmp_0;
|
|
4600
|
-
} else if (!(schema.
|
|
4601
|
-
tmp = new Custom(Common_getInstance().
|
|
4602
|
-
} else if (isPrimitive_0(schema.
|
|
4603
|
-
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.
|
|
4604
|
-
} else if (equals(schema.
|
|
4605
|
-
var items = schema.
|
|
4619
|
+
} else if (!(schema.n1x_1 == null)) {
|
|
4620
|
+
tmp = new Custom(Common_getInstance().b2a([getReference_0(referencingObject, OpenApiV3Parser_instance)]), isNullable);
|
|
4621
|
+
} else if (isPrimitive_0(schema.n1w_1)) {
|
|
4622
|
+
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.n1w_1), OpenApiV3Parser_instance, schema.w1w_1), isNullable);
|
|
4623
|
+
} else if (equals(schema.n1w_1, Type_ARRAY_getInstance_0())) {
|
|
4624
|
+
var items = schema.s1w_1;
|
|
4606
4625
|
var tmp_3;
|
|
4607
4626
|
if (items instanceof ReferenceObject_0) {
|
|
4608
4627
|
var tmp_4 = OpenApiV3Parser_instance;
|
|
4609
|
-
var tmp2_elvis_lhs = schema.
|
|
4628
|
+
var tmp2_elvis_lhs = schema.e1w_1;
|
|
4610
4629
|
tmp_3 = toIterable_0(toReference_1(_this__u8e3s4, tmp_4, items, tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs), isNullable);
|
|
4611
4630
|
} else {
|
|
4612
4631
|
if (items instanceof SchemaObject_0) {
|
|
4613
|
-
var tmp_5 = Common_getInstance().
|
|
4614
|
-
var tmp3_elvis_lhs = schema.
|
|
4632
|
+
var tmp_5 = Common_getInstance().b2a([getReference_0(referencingObject, OpenApiV3Parser_instance), 'Array']);
|
|
4633
|
+
var tmp3_elvis_lhs = schema.e1w_1;
|
|
4615
4634
|
tmp_3 = toIterable_0(new Custom(tmp_5, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs), isNullable);
|
|
4616
4635
|
} else {
|
|
4617
4636
|
if (items == null) {
|
|
4618
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi_0(reference.
|
|
4637
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi_0(reference.b1w_1);
|
|
4619
4638
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4620
4639
|
} else {
|
|
4621
4640
|
noWhenBranchMatchedException();
|
|
@@ -4624,21 +4643,21 @@
|
|
|
4624
4643
|
}
|
|
4625
4644
|
tmp = tmp_3;
|
|
4626
4645
|
} else {
|
|
4627
|
-
tmp = new Custom(Common_getInstance().
|
|
4646
|
+
tmp = new Custom(Common_getInstance().b2a([getReference_0(referencingObject, OpenApiV3Parser_instance)]), isNullable);
|
|
4628
4647
|
}
|
|
4629
4648
|
return tmp;
|
|
4630
4649
|
}
|
|
4631
4650
|
function toReference_2(_this__u8e3s4, $this, schema, isNullable, name) {
|
|
4632
4651
|
var tmp;
|
|
4633
|
-
if (equals(schema.
|
|
4634
|
-
var items = schema.
|
|
4652
|
+
if (equals(schema.n1w_1, Type_ARRAY_getInstance_0())) {
|
|
4653
|
+
var items = schema.s1w_1;
|
|
4635
4654
|
var tmp_0;
|
|
4636
4655
|
if (items instanceof ReferenceObject_0) {
|
|
4637
|
-
var tmp0_elvis_lhs = schema.
|
|
4656
|
+
var tmp0_elvis_lhs = schema.e1w_1;
|
|
4638
4657
|
tmp_0 = toIterable_0(toReference_1(_this__u8e3s4, $this, items, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs), isNullable);
|
|
4639
4658
|
} else {
|
|
4640
4659
|
if (items instanceof SchemaObject_0) {
|
|
4641
|
-
var tmp1_elvis_lhs = schema.
|
|
4660
|
+
var tmp1_elvis_lhs = schema.e1w_1;
|
|
4642
4661
|
tmp_0 = toIterable_0(toReference_2(_this__u8e3s4, $this, items, tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs, name), isNullable);
|
|
4643
4662
|
} else {
|
|
4644
4663
|
if (items == null) {
|
|
@@ -4649,15 +4668,15 @@
|
|
|
4649
4668
|
}
|
|
4650
4669
|
}
|
|
4651
4670
|
tmp = tmp_0;
|
|
4652
|
-
} else if (!(schema.
|
|
4653
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4671
|
+
} else if (!(schema.u1w_1 == null)) {
|
|
4672
|
+
var additionalProperties = ensureNotNull(schema.u1w_1);
|
|
4654
4673
|
var tmp_1;
|
|
4655
4674
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
4656
|
-
var tmp2_elvis_lhs = schema.
|
|
4675
|
+
var tmp2_elvis_lhs = schema.e1w_1;
|
|
4657
4676
|
tmp_1 = new Dict(new Any(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs), isNullable);
|
|
4658
4677
|
} else {
|
|
4659
4678
|
if (additionalProperties instanceof ReferenceObject_0) {
|
|
4660
|
-
var tmp3_elvis_lhs = schema.
|
|
4679
|
+
var tmp3_elvis_lhs = schema.e1w_1;
|
|
4661
4680
|
tmp_1 = toDict_0(toReference_1(_this__u8e3s4, $this, additionalProperties, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs), isNullable);
|
|
4662
4681
|
} else {
|
|
4663
4682
|
if (additionalProperties instanceof SchemaObject_0) {
|
|
@@ -4665,7 +4684,7 @@
|
|
|
4665
4684
|
// Inline function 'kotlin.contracts.contract' call
|
|
4666
4685
|
var tmp_2;
|
|
4667
4686
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toReference.<anonymous>' call
|
|
4668
|
-
if (isPrimitive_0(additionalProperties.
|
|
4687
|
+
if (isPrimitive_0(additionalProperties.n1w_1) || !(additionalProperties.t1w_1 == null)) {
|
|
4669
4688
|
tmp_2 = additionalProperties;
|
|
4670
4689
|
} else {
|
|
4671
4690
|
tmp_2 = null;
|
|
@@ -4679,13 +4698,13 @@
|
|
|
4679
4698
|
// Inline function 'kotlin.contracts.contract' call
|
|
4680
4699
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toReference.<anonymous>' call
|
|
4681
4700
|
var tmp_4 = OpenApiV3Parser_instance;
|
|
4682
|
-
var tmp0_elvis_lhs_0 = schema.
|
|
4701
|
+
var tmp0_elvis_lhs_0 = schema.e1w_1;
|
|
4683
4702
|
tmp_3 = toDict_0(toReference_2(_this__u8e3s4, tmp_4, tmp4_safe_receiver, tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0, name), isNullable);
|
|
4684
4703
|
}
|
|
4685
4704
|
var tmp5_elvis_lhs = tmp_3;
|
|
4686
4705
|
var tmp_5;
|
|
4687
4706
|
if (tmp5_elvis_lhs == null) {
|
|
4688
|
-
var tmp6_elvis_lhs = schema.
|
|
4707
|
+
var tmp6_elvis_lhs = schema.e1w_1;
|
|
4689
4708
|
tmp_5 = new Dict(new Any(tmp6_elvis_lhs == null ? false : tmp6_elvis_lhs), isNullable);
|
|
4690
4709
|
} else {
|
|
4691
4710
|
tmp_5 = tmp5_elvis_lhs;
|
|
@@ -4697,14 +4716,14 @@
|
|
|
4697
4716
|
}
|
|
4698
4717
|
}
|
|
4699
4718
|
tmp = tmp_1;
|
|
4700
|
-
} else if (!(schema.
|
|
4719
|
+
} else if (!(schema.n1x_1 == null)) {
|
|
4701
4720
|
// Inline function 'kotlin.let' call
|
|
4702
4721
|
// Inline function 'kotlin.contracts.contract' call
|
|
4703
4722
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toReference.<anonymous>' call
|
|
4704
4723
|
var it = new Custom(name, isNullable);
|
|
4705
|
-
tmp = !(schema.
|
|
4724
|
+
tmp = !(schema.u1w_1 == null) ? new Dict(it, false) : it;
|
|
4706
4725
|
} else {
|
|
4707
|
-
var type = schema.
|
|
4726
|
+
var type = schema.n1w_1;
|
|
4708
4727
|
var tmp_6;
|
|
4709
4728
|
switch (type == null ? -1 : type.q2_1) {
|
|
4710
4729
|
case 0:
|
|
@@ -4717,38 +4736,38 @@
|
|
|
4717
4736
|
|
|
4718
4737
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toReference.<anonymous>' call
|
|
4719
4738
|
|
|
4720
|
-
var it_0 = new Primitive(toPrimitive_0(type, $this, schema.
|
|
4721
|
-
tmp_6 = !(schema.
|
|
4739
|
+
var it_0 = new Primitive(toPrimitive_0(type, $this, schema.w1w_1), isNullable);
|
|
4740
|
+
tmp_6 = !(schema.u1w_1 == null) ? new Dict(it_0, false) : it_0;
|
|
4722
4741
|
break;
|
|
4723
4742
|
case -1:
|
|
4724
4743
|
case 5:
|
|
4725
4744
|
var tmp_7;
|
|
4726
|
-
var tmp_8 = schema.
|
|
4745
|
+
var tmp_8 = schema.u1w_1;
|
|
4727
4746
|
if (tmp_8 instanceof BooleanObject_0) {
|
|
4728
4747
|
// Inline function 'kotlin.let' call
|
|
4729
4748
|
// Inline function 'kotlin.contracts.contract' call
|
|
4730
4749
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toReference.<anonymous>' call
|
|
4731
4750
|
var it_1 = new Any(false);
|
|
4732
|
-
tmp_7 = !(schema.
|
|
4751
|
+
tmp_7 = !(schema.u1w_1 == null) ? new Dict(it_1, false) : it_1;
|
|
4733
4752
|
} else {
|
|
4734
4753
|
// Inline function 'kotlin.let' call
|
|
4735
4754
|
// Inline function 'kotlin.contracts.contract' call
|
|
4736
4755
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toReference.<anonymous>' call
|
|
4737
4756
|
var it_2 = new Custom(name, isNullable);
|
|
4738
|
-
tmp_7 = !(schema.
|
|
4757
|
+
tmp_7 = !(schema.u1w_1 == null) ? new Dict(it_2, false) : it_2;
|
|
4739
4758
|
}
|
|
4740
4759
|
|
|
4741
4760
|
tmp_6 = tmp_7;
|
|
4742
4761
|
break;
|
|
4743
4762
|
case 4:
|
|
4744
|
-
var it_3 = schema.
|
|
4763
|
+
var it_3 = schema.s1w_1;
|
|
4745
4764
|
var tmp_9;
|
|
4746
4765
|
if (it_3 instanceof ReferenceObject_0) {
|
|
4747
|
-
var tmp7_elvis_lhs = schema.
|
|
4766
|
+
var tmp7_elvis_lhs = schema.e1w_1;
|
|
4748
4767
|
tmp_9 = toIterable_0(toReference_1(_this__u8e3s4, $this, it_3, tmp7_elvis_lhs == null ? false : tmp7_elvis_lhs), isNullable);
|
|
4749
4768
|
} else {
|
|
4750
4769
|
if (it_3 instanceof SchemaObject_0) {
|
|
4751
|
-
var tmp8_elvis_lhs = schema.
|
|
4770
|
+
var tmp8_elvis_lhs = schema.e1w_1;
|
|
4752
4771
|
tmp_9 = toIterable_0(toReference_2(_this__u8e3s4, $this, it_3, tmp8_elvis_lhs == null ? false : tmp8_elvis_lhs, name), isNullable);
|
|
4753
4772
|
} else {
|
|
4754
4773
|
if (it_3 == null) {
|
|
@@ -4783,28 +4802,28 @@
|
|
|
4783
4802
|
var tmp_0;
|
|
4784
4803
|
switch (element.q2_1) {
|
|
4785
4804
|
case 0:
|
|
4786
|
-
tmp_0 = _this__u8e3s4.
|
|
4805
|
+
tmp_0 = _this__u8e3s4.u1r_1;
|
|
4787
4806
|
break;
|
|
4788
4807
|
case 1:
|
|
4789
|
-
tmp_0 = _this__u8e3s4.
|
|
4808
|
+
tmp_0 = _this__u8e3s4.w1r_1;
|
|
4790
4809
|
break;
|
|
4791
4810
|
case 2:
|
|
4792
|
-
tmp_0 = _this__u8e3s4.
|
|
4811
|
+
tmp_0 = _this__u8e3s4.v1r_1;
|
|
4793
4812
|
break;
|
|
4794
4813
|
case 3:
|
|
4795
|
-
tmp_0 = _this__u8e3s4.
|
|
4814
|
+
tmp_0 = _this__u8e3s4.x1r_1;
|
|
4796
4815
|
break;
|
|
4797
4816
|
case 4:
|
|
4798
|
-
tmp_0 = _this__u8e3s4.
|
|
4817
|
+
tmp_0 = _this__u8e3s4.y1r_1;
|
|
4799
4818
|
break;
|
|
4800
4819
|
case 5:
|
|
4801
|
-
tmp_0 = _this__u8e3s4.
|
|
4820
|
+
tmp_0 = _this__u8e3s4.z1r_1;
|
|
4802
4821
|
break;
|
|
4803
4822
|
case 6:
|
|
4804
|
-
tmp_0 = _this__u8e3s4.
|
|
4823
|
+
tmp_0 = _this__u8e3s4.a1s_1;
|
|
4805
4824
|
break;
|
|
4806
4825
|
case 7:
|
|
4807
|
-
tmp_0 = _this__u8e3s4.
|
|
4826
|
+
tmp_0 = _this__u8e3s4.b1s_1;
|
|
4808
4827
|
break;
|
|
4809
4828
|
default:
|
|
4810
4829
|
noWhenBranchMatchedException();
|
|
@@ -4813,13 +4832,13 @@
|
|
|
4813
4832
|
var tmp$ret$0 = tmp_0;
|
|
4814
4833
|
result.m2(element, tmp$ret$0);
|
|
4815
4834
|
}
|
|
4816
|
-
return tmp.
|
|
4835
|
+
return tmp.c2a(result);
|
|
4817
4836
|
}
|
|
4818
4837
|
function getReference_0(_this__u8e3s4, $this) {
|
|
4819
|
-
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
4838
|
+
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.b1w_1), ['/']), 3);
|
|
4820
4839
|
var tmp;
|
|
4821
4840
|
if (tmp0_elvis_lhs == null) {
|
|
4822
|
-
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
4841
|
+
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.b1w_1);
|
|
4823
4842
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4824
4843
|
} else {
|
|
4825
4844
|
tmp = tmp0_elvis_lhs;
|
|
@@ -4850,7 +4869,7 @@
|
|
|
4850
4869
|
function toField_2(_this__u8e3s4, $this, schema, name) {
|
|
4851
4870
|
// Inline function 'kotlin.collections.map' call
|
|
4852
4871
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4853
|
-
var tmp0_elvis_lhs = schema.
|
|
4872
|
+
var tmp0_elvis_lhs = schema.t1w_1;
|
|
4854
4873
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4855
4874
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4856
4875
|
var destination = ArrayList_init_$Create$_0(this_0.j());
|
|
@@ -4863,12 +4882,12 @@
|
|
|
4863
4882
|
var key = item.a1();
|
|
4864
4883
|
// Inline function 'kotlin.collections.component2' call
|
|
4865
4884
|
var value = item.b1();
|
|
4866
|
-
var tmp0_safe_receiver = schema.
|
|
4885
|
+
var tmp0_safe_receiver = schema.m1x_1;
|
|
4867
4886
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p1(key);
|
|
4868
4887
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
4869
4888
|
var tmp;
|
|
4870
4889
|
if (value instanceof SchemaObject_0) {
|
|
4871
|
-
tmp = new Field(new FieldIdentifier(key), !(value.
|
|
4890
|
+
tmp = new Field(new FieldIdentifier(key), !(value.n1x_1 == null) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, isNullable, Common_getInstance().b2a([name, key])) : equals(value.n1w_1, Type_ARRAY_getInstance_0()) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, isNullable, Common_getInstance().b2a([name, key, 'Array'])) : toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, isNullable, Common_getInstance().b2a([name, key])));
|
|
4872
4891
|
} else {
|
|
4873
4892
|
if (value instanceof ReferenceObject_0) {
|
|
4874
4893
|
tmp = new Field(new FieldIdentifier(key), toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, value, isNullable));
|
|
@@ -4882,16 +4901,16 @@
|
|
|
4882
4901
|
return destination;
|
|
4883
4902
|
}
|
|
4884
4903
|
function toField_3(_this__u8e3s4, $this, parameter, name) {
|
|
4885
|
-
var tmp0_elvis_lhs = parameter.
|
|
4904
|
+
var tmp0_elvis_lhs = parameter.l1v_1;
|
|
4886
4905
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
4887
4906
|
// Inline function 'kotlin.let' call
|
|
4888
|
-
var s = parameter.
|
|
4907
|
+
var s = parameter.r1v_1;
|
|
4889
4908
|
var tmp;
|
|
4890
4909
|
if (s instanceof ReferenceObject_0) {
|
|
4891
4910
|
tmp = toReference_1(_this__u8e3s4, $this, s, isNullable);
|
|
4892
4911
|
} else {
|
|
4893
4912
|
if (s instanceof SchemaObject_0) {
|
|
4894
|
-
tmp = toReference_2(_this__u8e3s4, $this, s, isNullable, name + (equals(s.
|
|
4913
|
+
tmp = toReference_2(_this__u8e3s4, $this, s, isNullable, name + (equals(s.n1w_1, Type_ARRAY_getInstance_0()) ? 'Array' : ''));
|
|
4895
4914
|
} else {
|
|
4896
4915
|
if (s == null) {
|
|
4897
4916
|
tmp = new Primitive(String_instance, isNullable);
|
|
@@ -4903,13 +4922,13 @@
|
|
|
4903
4922
|
// Inline function 'kotlin.contracts.contract' call
|
|
4904
4923
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toField.<anonymous>' call
|
|
4905
4924
|
var it = tmp;
|
|
4906
|
-
return new Field(new FieldIdentifier(parameter.
|
|
4925
|
+
return new Field(new FieldIdentifier(parameter.v1v_1), it);
|
|
4907
4926
|
}
|
|
4908
4927
|
function toField_4(_this__u8e3s4, $this, header, identifier, name) {
|
|
4909
|
-
var tmp0_elvis_lhs = header.
|
|
4928
|
+
var tmp0_elvis_lhs = header.l1y_1;
|
|
4910
4929
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
4911
4930
|
// Inline function 'kotlin.let' call
|
|
4912
|
-
var s = header.
|
|
4931
|
+
var s = header.r1y_1;
|
|
4913
4932
|
var tmp;
|
|
4914
4933
|
if (s instanceof ReferenceObject_0) {
|
|
4915
4934
|
tmp = toReference_1(_this__u8e3s4, $this, s, isNullable);
|
|
@@ -4930,19 +4949,19 @@
|
|
|
4930
4949
|
return new Field(new FieldIdentifier(identifier), it);
|
|
4931
4950
|
}
|
|
4932
4951
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
4933
|
-
this.
|
|
4934
|
-
this.
|
|
4935
|
-
this.
|
|
4936
|
-
this.
|
|
4952
|
+
this.c2b_1 = path;
|
|
4953
|
+
this.d2b_1 = pathItem;
|
|
4954
|
+
this.e2b_1 = method;
|
|
4955
|
+
this.f2b_1 = operation;
|
|
4937
4956
|
}
|
|
4938
4957
|
protoOf(FlattenRequest_0).toString = function () {
|
|
4939
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
4958
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.c2b_1) + ', pathItem=' + this.d2b_1.toString() + ', method=' + this.e2b_1.toString() + ', operation=' + this.f2b_1.toString() + ')';
|
|
4940
4959
|
};
|
|
4941
4960
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
4942
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
4961
|
+
var result = Path__hashCode_impl_go73kd_0(this.c2b_1);
|
|
4962
|
+
result = imul(result, 31) + this.d2b_1.hashCode() | 0;
|
|
4943
4963
|
result = imul(result, 31) + this.e2b_1.hashCode() | 0;
|
|
4944
4964
|
result = imul(result, 31) + this.f2b_1.hashCode() | 0;
|
|
4945
|
-
result = imul(result, 31) + this.g2b_1.hashCode() | 0;
|
|
4946
4965
|
return result;
|
|
4947
4966
|
};
|
|
4948
4967
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -4951,21 +4970,21 @@
|
|
|
4951
4970
|
if (!(other instanceof FlattenRequest_0))
|
|
4952
4971
|
return false;
|
|
4953
4972
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
4954
|
-
if (!(this.
|
|
4973
|
+
if (!(this.c2b_1 === tmp0_other_with_cast.c2b_1))
|
|
4974
|
+
return false;
|
|
4975
|
+
if (!this.d2b_1.equals(tmp0_other_with_cast.d2b_1))
|
|
4955
4976
|
return false;
|
|
4956
4977
|
if (!this.e2b_1.equals(tmp0_other_with_cast.e2b_1))
|
|
4957
4978
|
return false;
|
|
4958
4979
|
if (!this.f2b_1.equals(tmp0_other_with_cast.f2b_1))
|
|
4959
4980
|
return false;
|
|
4960
|
-
if (!this.g2b_1.equals(tmp0_other_with_cast.g2b_1))
|
|
4961
|
-
return false;
|
|
4962
4981
|
return true;
|
|
4963
4982
|
};
|
|
4964
4983
|
function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
4965
4984
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4966
4985
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4967
4986
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4968
|
-
var this_0 = _this__u8e3s4.
|
|
4987
|
+
var this_0 = _this__u8e3s4.o1q_1;
|
|
4969
4988
|
var destination = ArrayList_init_$Create$();
|
|
4970
4989
|
// Inline function 'kotlin.collections.iterator' call
|
|
4971
4990
|
var tmp0_iterator = this_0.z().g();
|
|
@@ -4973,7 +4992,7 @@
|
|
|
4973
4992
|
var element = tmp0_iterator.i();
|
|
4974
4993
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatMapRequests.<anonymous>' call
|
|
4975
4994
|
// Inline function 'kotlin.collections.component1' call
|
|
4976
|
-
var path = element.a1().
|
|
4995
|
+
var path = element.a1().n1r_1;
|
|
4977
4996
|
// Inline function 'kotlin.collections.component2' call
|
|
4978
4997
|
var pathItem = element.b1();
|
|
4979
4998
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -5006,23 +5025,23 @@
|
|
|
5006
5025
|
return destination_1;
|
|
5007
5026
|
}
|
|
5008
5027
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
5009
|
-
this.
|
|
5010
|
-
this.
|
|
5011
|
-
this.
|
|
5012
|
-
this.
|
|
5013
|
-
this.
|
|
5014
|
-
this.
|
|
5028
|
+
this.g2b_1 = path;
|
|
5029
|
+
this.h2b_1 = pathItem;
|
|
5030
|
+
this.i2b_1 = method;
|
|
5031
|
+
this.j2b_1 = operation;
|
|
5032
|
+
this.k2b_1 = statusCode;
|
|
5033
|
+
this.l2b_1 = response;
|
|
5015
5034
|
}
|
|
5016
5035
|
protoOf(FlattenResponse_0).toString = function () {
|
|
5017
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
5036
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.g2b_1) + ', pathItem=' + this.h2b_1.toString() + ', method=' + this.i2b_1.toString() + ', operation=' + this.j2b_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy_0(this.k2b_1) + ', response=' + toString(this.l2b_1) + ')';
|
|
5018
5037
|
};
|
|
5019
5038
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
5020
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
5039
|
+
var result = Path__hashCode_impl_go73kd_0(this.g2b_1);
|
|
5040
|
+
result = imul(result, 31) + this.h2b_1.hashCode() | 0;
|
|
5021
5041
|
result = imul(result, 31) + this.i2b_1.hashCode() | 0;
|
|
5022
5042
|
result = imul(result, 31) + this.j2b_1.hashCode() | 0;
|
|
5023
|
-
result = imul(result, 31) + this.k2b_1
|
|
5024
|
-
result = imul(result, 31) +
|
|
5025
|
-
result = imul(result, 31) + hashCode(this.m2b_1) | 0;
|
|
5043
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.k2b_1) | 0;
|
|
5044
|
+
result = imul(result, 31) + hashCode(this.l2b_1) | 0;
|
|
5026
5045
|
return result;
|
|
5027
5046
|
};
|
|
5028
5047
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -5031,17 +5050,17 @@
|
|
|
5031
5050
|
if (!(other instanceof FlattenResponse_0))
|
|
5032
5051
|
return false;
|
|
5033
5052
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
5034
|
-
if (!(this.
|
|
5053
|
+
if (!(this.g2b_1 === tmp0_other_with_cast.g2b_1))
|
|
5054
|
+
return false;
|
|
5055
|
+
if (!this.h2b_1.equals(tmp0_other_with_cast.h2b_1))
|
|
5035
5056
|
return false;
|
|
5036
5057
|
if (!this.i2b_1.equals(tmp0_other_with_cast.i2b_1))
|
|
5037
5058
|
return false;
|
|
5038
5059
|
if (!this.j2b_1.equals(tmp0_other_with_cast.j2b_1))
|
|
5039
5060
|
return false;
|
|
5040
|
-
if (!this.k2b_1
|
|
5041
|
-
return false;
|
|
5042
|
-
if (!(this.l2b_1 === tmp0_other_with_cast.l2b_1))
|
|
5061
|
+
if (!(this.k2b_1 === tmp0_other_with_cast.k2b_1))
|
|
5043
5062
|
return false;
|
|
5044
|
-
if (!equals(this.
|
|
5063
|
+
if (!equals(this.l2b_1, tmp0_other_with_cast.l2b_1))
|
|
5045
5064
|
return false;
|
|
5046
5065
|
return true;
|
|
5047
5066
|
};
|
|
@@ -5049,7 +5068,7 @@
|
|
|
5049
5068
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5050
5069
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5051
5070
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5052
|
-
var this_0 = _this__u8e3s4.
|
|
5071
|
+
var this_0 = _this__u8e3s4.o1q_1;
|
|
5053
5072
|
var destination = ArrayList_init_$Create$();
|
|
5054
5073
|
// Inline function 'kotlin.collections.iterator' call
|
|
5055
5074
|
var tmp0_iterator = this_0.z().g();
|
|
@@ -5057,7 +5076,7 @@
|
|
|
5057
5076
|
var element = tmp0_iterator.i();
|
|
5058
5077
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatMapResponses.<anonymous>' call
|
|
5059
5078
|
// Inline function 'kotlin.collections.component1' call
|
|
5060
|
-
var path = element.a1().
|
|
5079
|
+
var path = element.a1().n1r_1;
|
|
5061
5080
|
// Inline function 'kotlin.collections.component2' call
|
|
5062
5081
|
var pathItem = element.b1();
|
|
5063
5082
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -5074,7 +5093,7 @@
|
|
|
5074
5093
|
// Inline function 'kotlin.collections.component2' call
|
|
5075
5094
|
var operation = element_0.b1();
|
|
5076
5095
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5077
|
-
var tmp0_safe_receiver = operation.
|
|
5096
|
+
var tmp0_safe_receiver = operation.z1t_1;
|
|
5078
5097
|
var tmp;
|
|
5079
5098
|
if (tmp0_safe_receiver == null) {
|
|
5080
5099
|
tmp = null;
|
|
@@ -5088,7 +5107,7 @@
|
|
|
5088
5107
|
var item = tmp0_iterator_1.i();
|
|
5089
5108
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
5090
5109
|
// Inline function 'kotlin.collections.component1' call
|
|
5091
|
-
var statusCode = item.a1().
|
|
5110
|
+
var statusCode = item.a1().h1v_1;
|
|
5092
5111
|
// Inline function 'kotlin.collections.component2' call
|
|
5093
5112
|
var response = item.b1();
|
|
5094
5113
|
var tmp$ret$9 = new FlattenResponse_0(path, pathItem, method, operation, statusCode, response);
|
|
@@ -5115,16 +5134,16 @@
|
|
|
5115
5134
|
}
|
|
5116
5135
|
function OpenApiV3Parser$parse$lambda($strict) {
|
|
5117
5136
|
return function ($this$Json) {
|
|
5118
|
-
$this$Json.
|
|
5119
|
-
$this$Json.
|
|
5137
|
+
$this$Json.w15_1 = true;
|
|
5138
|
+
$this$Json.u15_1 = $strict;
|
|
5120
5139
|
return Unit_instance;
|
|
5121
5140
|
};
|
|
5122
5141
|
}
|
|
5123
5142
|
function OpenApiV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
5124
5143
|
return function ($this$flatMapRequests) {
|
|
5125
|
-
var parameters = plus(resolveParameters_2($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.
|
|
5126
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5127
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5144
|
+
var parameters = plus(resolveParameters_2($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.d2b_1), resolveParameters_1($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.f2b_1));
|
|
5145
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.f2b_1, OpenApiV3Parser_instance);
|
|
5146
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.c2b_1, OpenApiV3Parser_instance) + $this$flatMapRequests.e2b_1.p2_1 : tmp0_elvis_lhs;
|
|
5128
5147
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5129
5148
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5130
5149
|
var destination = ArrayList_init_$Create$();
|
|
@@ -5132,7 +5151,7 @@
|
|
|
5132
5151
|
while (tmp0_iterator.h()) {
|
|
5133
5152
|
var element = tmp0_iterator.i();
|
|
5134
5153
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseParameters.<anonymous>.<anonymous>' call
|
|
5135
|
-
var tmp0_safe_receiver = element.
|
|
5154
|
+
var tmp0_safe_receiver = element.r1v_1;
|
|
5136
5155
|
var tmp;
|
|
5137
5156
|
if (tmp0_safe_receiver == null) {
|
|
5138
5157
|
tmp = null;
|
|
@@ -5140,7 +5159,7 @@
|
|
|
5140
5159
|
// Inline function 'kotlin.let' call
|
|
5141
5160
|
// Inline function 'kotlin.contracts.contract' call
|
|
5142
5161
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
5143
|
-
tmp = flatten_2($this_parseParameters, OpenApiV3Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
5162
|
+
tmp = flatten_2($this_parseParameters, OpenApiV3Parser_instance, tmp0_safe_receiver, Common_getInstance().b2a([name, 'Parameter', element.v1v_1]));
|
|
5144
5163
|
}
|
|
5145
5164
|
var tmp1_elvis_lhs = tmp;
|
|
5146
5165
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -5151,11 +5170,11 @@
|
|
|
5151
5170
|
}
|
|
5152
5171
|
function OpenApiV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
5153
5172
|
return function ($this$flatMapRequests) {
|
|
5154
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5155
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5173
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.f2b_1, OpenApiV3Parser_instance);
|
|
5174
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.c2b_1, OpenApiV3Parser_instance) + $this$flatMapRequests.e2b_1.p2_1 : tmp0_elvis_lhs;
|
|
5156
5175
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5157
5176
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5158
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
5177
|
+
var tmp1_safe_receiver = $this$flatMapRequests.f2b_1.y1t_1;
|
|
5159
5178
|
var tmp;
|
|
5160
5179
|
if (tmp1_safe_receiver == null) {
|
|
5161
5180
|
tmp = null;
|
|
@@ -5166,7 +5185,7 @@
|
|
|
5166
5185
|
tmp = resolve_7($this_parseRequestBody, OpenApiV3Parser_instance, tmp1_safe_receiver);
|
|
5167
5186
|
}
|
|
5168
5187
|
var tmp2_safe_receiver = tmp;
|
|
5169
|
-
var tmp0_elvis_lhs_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
5188
|
+
var tmp0_elvis_lhs_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.f1y_1;
|
|
5170
5189
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5171
5190
|
var this_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
5172
5191
|
var destination = ArrayList_init_$Create$();
|
|
@@ -5177,20 +5196,20 @@
|
|
|
5177
5196
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
5178
5197
|
// Inline function 'kotlin.collections.component2' call
|
|
5179
5198
|
var mediaObject = element.b1();
|
|
5180
|
-
var schema = mediaObject.
|
|
5199
|
+
var schema = mediaObject.y1z_1;
|
|
5181
5200
|
var tmp_0;
|
|
5182
5201
|
if (schema instanceof SchemaObject_0) {
|
|
5183
|
-
var tmp0_subject = schema.
|
|
5202
|
+
var tmp0_subject = schema.n1w_1;
|
|
5184
5203
|
var tmp_1;
|
|
5185
5204
|
switch (tmp0_subject == null ? -1 : tmp0_subject.q2_1) {
|
|
5186
5205
|
case -1:
|
|
5187
5206
|
case 5:
|
|
5188
|
-
tmp_1 = flatten_1($this_parseRequestBody, OpenApiV3Parser_instance, schema, Common_getInstance().
|
|
5207
|
+
tmp_1 = flatten_1($this_parseRequestBody, OpenApiV3Parser_instance, schema, Common_getInstance().b2a([name, 'RequestBody']));
|
|
5189
5208
|
break;
|
|
5190
5209
|
case 4:
|
|
5191
5210
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5192
5211
|
|
|
5193
|
-
var tmp1_safe_receiver_0 = schema.
|
|
5212
|
+
var tmp1_safe_receiver_0 = schema.s1w_1;
|
|
5194
5213
|
var tmp_2;
|
|
5195
5214
|
if (tmp1_safe_receiver_0 == null) {
|
|
5196
5215
|
tmp_2 = null;
|
|
@@ -5198,7 +5217,7 @@
|
|
|
5198
5217
|
// Inline function 'kotlin.let' call
|
|
5199
5218
|
// Inline function 'kotlin.contracts.contract' call
|
|
5200
5219
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
5201
|
-
tmp_2 = flatten_2($this_parseRequestBody, OpenApiV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
5220
|
+
tmp_2 = flatten_2($this_parseRequestBody, OpenApiV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().b2a([name, 'RequestBody']));
|
|
5202
5221
|
}
|
|
5203
5222
|
|
|
5204
5223
|
var tmp0_elvis_lhs_1 = tmp_2;
|
|
@@ -5230,15 +5249,15 @@
|
|
|
5230
5249
|
}
|
|
5231
5250
|
function OpenApiV3Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
5232
5251
|
return function ($this$flatMapResponses) {
|
|
5233
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.
|
|
5234
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.
|
|
5235
|
-
var response = $this$flatMapResponses.
|
|
5252
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.j2b_1, OpenApiV3Parser_instance);
|
|
5253
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.g2b_1, OpenApiV3Parser_instance) + $this$flatMapResponses.i2b_1.p2_1 : tmp0_elvis_lhs;
|
|
5254
|
+
var response = $this$flatMapResponses.l2b_1;
|
|
5236
5255
|
var tmp;
|
|
5237
5256
|
if (response instanceof ResponseObject_0) {
|
|
5238
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenApiV3Parser_instance, response, name, $this$flatMapResponses.
|
|
5257
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenApiV3Parser_instance, response, name, $this$flatMapResponses.k2b_1);
|
|
5239
5258
|
} else {
|
|
5240
5259
|
if (response instanceof ReferenceObject_0) {
|
|
5241
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenApiV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenApiV3Parser_instance, response).de_1, name, $this$flatMapResponses.
|
|
5260
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenApiV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenApiV3Parser_instance, response).de_1, name, $this$flatMapResponses.k2b_1);
|
|
5242
5261
|
} else {
|
|
5243
5262
|
noWhenBranchMatchedException();
|
|
5244
5263
|
}
|
|
@@ -5257,10 +5276,10 @@
|
|
|
5257
5276
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5258
5277
|
|
|
5259
5278
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
5260
|
-
tmp = tmp_0.
|
|
5279
|
+
tmp = tmp_0.b2a([tmp$ret$1]);
|
|
5261
5280
|
break;
|
|
5262
5281
|
case false:
|
|
5263
|
-
tmp = Common_getInstance().
|
|
5282
|
+
tmp = Common_getInstance().b2a([it]);
|
|
5264
5283
|
break;
|
|
5265
5284
|
default:
|
|
5266
5285
|
noWhenBranchMatchedException();
|
|
@@ -5270,14 +5289,14 @@
|
|
|
5270
5289
|
}
|
|
5271
5290
|
function OpenApiV3Parser() {
|
|
5272
5291
|
}
|
|
5273
|
-
protoOf(OpenApiV3Parser).
|
|
5274
|
-
return this.
|
|
5292
|
+
protoOf(OpenApiV3Parser).t2a = function (json, strict) {
|
|
5293
|
+
return this.m2b((new OpenAPI_0(Json(VOID, OpenApiV3Parser$parse$lambda(strict)))).h1g(json));
|
|
5275
5294
|
};
|
|
5276
|
-
protoOf(OpenApiV3Parser).
|
|
5295
|
+
protoOf(OpenApiV3Parser).n2b = function (json, strict, $super) {
|
|
5277
5296
|
strict = strict === VOID ? false : strict;
|
|
5278
|
-
return $super === VOID ? this.
|
|
5297
|
+
return $super === VOID ? this.t2a(json, strict) : $super.t2a.call(this, json, strict);
|
|
5279
5298
|
};
|
|
5280
|
-
protoOf(OpenApiV3Parser).
|
|
5299
|
+
protoOf(OpenApiV3Parser).m2b = function (_this__u8e3s4) {
|
|
5281
5300
|
// Inline function 'kotlin.collections.reduce' call
|
|
5282
5301
|
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();
|
|
5283
5302
|
if (!iterator.h())
|