@flock/wirespec 0.10.26 → 0.11.0
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 +2 -2
- package/arrow-arrow-continuations.js +1 -1
- package/arrow-arrow-core.js +17 -17
- package/clikt-clikt.js +1258 -1258
- package/colormath-root-colormath.js +452 -452
- package/kotlin-kotlin-stdlib.js +259 -237
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-openapi-bindings.js +25 -25
- package/kotlin-rgxgen.js +1823 -1823
- package/kotlinx-serialization-kotlinx-serialization-core.js +73 -73
- package/kotlinx-serialization-kotlinx-serialization-json.js +78 -78
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/markdown.js +1926 -1926
- package/mordant-mordant.js +1713 -1713
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +1546 -1547
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +296 -296
- package/wirespec-src-converter-avro.js +1372 -0
- package/wirespec-src-converter-avro.js.map +1 -0
- package/wirespec-src-converter-openapi.js +379 -370
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-plugin-arguments.js +104 -98
- package/wirespec-src-plugin-arguments.js.map +1 -1
- package/wirespec-src-plugin-cli.js +157 -150
- package/wirespec-src-plugin-cli.js.map +1 -1
- package/wirespec-src-plugin-npm.js +11 -11
- package/wirespec-src-tools-generator.js +26 -26
|
@@ -30,34 +30,34 @@
|
|
|
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.$_$.
|
|
33
|
+
var split = kotlin_kotlin.$_$.pd;
|
|
34
34
|
var addAll = kotlin_kotlin.$_$.y4;
|
|
35
35
|
var joinToString = kotlin_kotlin.$_$.s6;
|
|
36
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
37
|
-
var to = kotlin_kotlin.$_$.
|
|
38
|
-
var toMap = kotlin_kotlin.$_$.
|
|
39
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
36
|
+
var protoOf = kotlin_kotlin.$_$.ya;
|
|
37
|
+
var to = kotlin_kotlin.$_$.ig;
|
|
38
|
+
var toMap = kotlin_kotlin.$_$.n8;
|
|
39
|
+
var initMetadataForObject = kotlin_kotlin.$_$.da;
|
|
40
40
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.i5;
|
|
41
41
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.k;
|
|
42
42
|
var firstOrNull = kotlin_kotlin.$_$.g6;
|
|
43
43
|
var _Comment___get_value__impl__8r3pla = kotlin_community_flock_wirespec_compiler_core.$_$.g2;
|
|
44
44
|
var Comment = kotlin_community_flock_wirespec_compiler_core.$_$.j;
|
|
45
45
|
var distinct = kotlin_kotlin.$_$.y5;
|
|
46
|
-
var take = kotlin_kotlin.$_$.
|
|
46
|
+
var take = kotlin_kotlin.$_$.g8;
|
|
47
47
|
var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e1;
|
|
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.$_$.h1;
|
|
50
|
-
var plus = kotlin_kotlin.$_$.
|
|
50
|
+
var plus = kotlin_kotlin.$_$.s7;
|
|
51
51
|
var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f1;
|
|
52
52
|
var mapCapacity = kotlin_kotlin.$_$.i7;
|
|
53
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
53
|
+
var coerceAtLeast = kotlin_kotlin.$_$.jb;
|
|
54
54
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
55
55
|
var _StatusCode___init__impl__t1yi9q = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f2;
|
|
56
56
|
var HeaderObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b;
|
|
57
57
|
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.f1;
|
|
58
58
|
var Type_ARRAY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i1;
|
|
59
59
|
var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k;
|
|
60
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
60
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.fg;
|
|
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;
|
|
@@ -81,12 +81,12 @@
|
|
|
81
81
|
var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.r1;
|
|
82
82
|
var SwaggerObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m;
|
|
83
83
|
var getKClass = kotlin_kotlin.$_$.e;
|
|
84
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
84
|
+
var arrayOf = kotlin_kotlin.$_$.wf;
|
|
85
85
|
var createKType = kotlin_kotlin.$_$.b;
|
|
86
86
|
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o2;
|
|
87
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
87
|
+
var THROW_CCE = kotlin_kotlin.$_$.jf;
|
|
88
88
|
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
|
|
89
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
89
|
+
var isInterface = kotlin_kotlin.$_$.ma;
|
|
90
90
|
var Emitted = kotlin_community_flock_wirespec_compiler_core.$_$.a;
|
|
91
91
|
var listOf = kotlin_kotlin.$_$.g7;
|
|
92
92
|
var InfoObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c;
|
|
@@ -106,14 +106,14 @@
|
|
|
106
106
|
var PathItemObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
|
|
107
107
|
var Refined = kotlin_community_flock_wirespec_compiler_core.$_$.h1;
|
|
108
108
|
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.j1;
|
|
109
|
-
var plus_0 = kotlin_kotlin.$_$.
|
|
109
|
+
var plus_0 = kotlin_kotlin.$_$.o7;
|
|
110
110
|
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.t;
|
|
111
111
|
var JsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.h;
|
|
112
|
-
var toString = kotlin_kotlin.$_$.
|
|
112
|
+
var toString = kotlin_kotlin.$_$.cb;
|
|
113
113
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.l1;
|
|
114
114
|
var _Ref___init__impl__7qfl46 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c2;
|
|
115
115
|
var emptyList = kotlin_kotlin.$_$.b6;
|
|
116
|
-
var NotImplementedError = kotlin_kotlin.$_$.
|
|
116
|
+
var NotImplementedError = kotlin_kotlin.$_$.ef;
|
|
117
117
|
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.m;
|
|
118
118
|
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.o;
|
|
119
119
|
var emptyMap = kotlin_kotlin.$_$.c6;
|
|
@@ -129,26 +129,26 @@
|
|
|
129
129
|
var Ref__toString_impl_irb7zi = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d2;
|
|
130
130
|
var BooleanObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a;
|
|
131
131
|
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.i1;
|
|
132
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
133
|
-
var toSet = kotlin_kotlin.$_$.
|
|
132
|
+
var ensureNotNull = kotlin_kotlin.$_$.zf;
|
|
133
|
+
var toSet = kotlin_kotlin.$_$.q8;
|
|
134
134
|
var get_entries = kotlin_community_flock_wirespec_compiler_core.$_$.n;
|
|
135
135
|
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e2;
|
|
136
136
|
var FieldIdentifier = kotlin_community_flock_wirespec_compiler_core.$_$.u;
|
|
137
137
|
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.v;
|
|
138
|
-
var equals = kotlin_kotlin.$_$.
|
|
138
|
+
var equals = kotlin_kotlin.$_$.r9;
|
|
139
139
|
var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b2;
|
|
140
140
|
var drop = kotlin_kotlin.$_$.a6;
|
|
141
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
142
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
141
|
+
var charSequenceLength = kotlin_kotlin.$_$.n9;
|
|
142
|
+
var charSequenceGet = kotlin_kotlin.$_$.m9;
|
|
143
143
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.v1;
|
|
144
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
144
|
+
var isBlank = kotlin_kotlin.$_$.uc;
|
|
145
145
|
var Path__toString_impl_wlr1lw = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a2;
|
|
146
146
|
var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.z1;
|
|
147
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
148
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
147
|
+
var getStringHashCode = kotlin_kotlin.$_$.w9;
|
|
148
|
+
var initMetadataForClass = kotlin_kotlin.$_$.y9;
|
|
149
149
|
var StatusCode__toString_impl_6caewy = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h2;
|
|
150
150
|
var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g2;
|
|
151
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
151
|
+
var hashCode = kotlin_kotlin.$_$.x9;
|
|
152
152
|
var OpenAPI = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d;
|
|
153
153
|
var listOf_0 = kotlin_kotlin.$_$.h7;
|
|
154
154
|
var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.t1;
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
initMetadataForObject(OpenApiV3Parser, 'OpenApiV3Parser');
|
|
212
212
|
//endregion
|
|
213
213
|
function Common$className$lambda(it) {
|
|
214
|
-
return Companion_getInstance().
|
|
214
|
+
return Companion_getInstance().i24(it);
|
|
215
215
|
}
|
|
216
216
|
function Common$json$lambda($this$Json) {
|
|
217
217
|
$this$Json.x15_1 = true;
|
|
@@ -220,9 +220,9 @@
|
|
|
220
220
|
function Common() {
|
|
221
221
|
Common_instance = this;
|
|
222
222
|
var tmp = this;
|
|
223
|
-
tmp.
|
|
223
|
+
tmp.l2a_1 = Json(VOID, Common$json$lambda);
|
|
224
224
|
}
|
|
225
|
-
protoOf(Common).
|
|
225
|
+
protoOf(Common).m2a = function (arg) {
|
|
226
226
|
// Inline function 'kotlin.collections.flatMap' call
|
|
227
227
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
228
228
|
var destination = ArrayList_init_$Create$();
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
var tmp = destination;
|
|
239
239
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, Common$className$lambda);
|
|
240
240
|
};
|
|
241
|
-
protoOf(Common).
|
|
241
|
+
protoOf(Common).n2a = function (_this__u8e3s4) {
|
|
242
242
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
243
243
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
244
244
|
var destination = ArrayList_init_$Create$();
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
while (tmp0_iterator.h()) {
|
|
289
289
|
var element = tmp0_iterator.i();
|
|
290
290
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
291
|
-
if (element.
|
|
291
|
+
if (element.p23_1.equals(method)) {
|
|
292
292
|
destination.e(element);
|
|
293
293
|
}
|
|
294
294
|
}
|
|
@@ -304,8 +304,8 @@
|
|
|
304
304
|
return firstOrNull(destination_0);
|
|
305
305
|
}
|
|
306
306
|
function emit_0(_this__u8e3s4, $this) {
|
|
307
|
-
var tmp1_operationId = _this__u8e3s4.
|
|
308
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
307
|
+
var tmp1_operationId = _this__u8e3s4.o23_1.b1();
|
|
308
|
+
var tmp0_safe_receiver = _this__u8e3s4.n23_1;
|
|
309
309
|
var tmp;
|
|
310
310
|
var tmp_0 = tmp0_safe_receiver;
|
|
311
311
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -317,7 +317,7 @@
|
|
|
317
317
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
318
318
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
319
319
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
320
|
-
var this_0 = _this__u8e3s4.
|
|
320
|
+
var this_0 = _this__u8e3s4.u23_1;
|
|
321
321
|
var destination = ArrayList_init_$Create$();
|
|
322
322
|
// Inline function 'kotlin.collections.forEach' call
|
|
323
323
|
var tmp0_iterator = this_0.g();
|
|
@@ -325,8 +325,8 @@
|
|
|
325
325
|
var element = tmp0_iterator.i();
|
|
326
326
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
327
327
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
328
|
-
var tmp0_safe_receiver_0 = element.
|
|
329
|
-
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.
|
|
328
|
+
var tmp0_safe_receiver_0 = element.b24_1;
|
|
329
|
+
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.c24_1;
|
|
330
330
|
if (tmp0_safe_receiver_1 == null)
|
|
331
331
|
null;
|
|
332
332
|
else {
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
349
349
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
350
350
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
351
|
-
var this_2 = _this__u8e3s4.
|
|
351
|
+
var this_2 = _this__u8e3s4.v23_1;
|
|
352
352
|
var destination_0 = ArrayList_init_$Create$();
|
|
353
353
|
// Inline function 'kotlin.collections.forEach' call
|
|
354
354
|
var tmp0_iterator_0 = this_2.g();
|
|
@@ -356,8 +356,8 @@
|
|
|
356
356
|
var element_0 = tmp0_iterator_0.i();
|
|
357
357
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
358
358
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
359
|
-
var tmp0_safe_receiver_2 = element_0.
|
|
360
|
-
var tmp0_safe_receiver_3 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.
|
|
359
|
+
var tmp0_safe_receiver_2 = element_0.y23_1;
|
|
360
|
+
var tmp0_safe_receiver_3 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.c24_1;
|
|
361
361
|
if (tmp0_safe_receiver_3 == null)
|
|
362
362
|
null;
|
|
363
363
|
else {
|
|
@@ -379,7 +379,7 @@
|
|
|
379
379
|
// Inline function 'kotlin.collections.map' call
|
|
380
380
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
381
381
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
382
|
-
var this_4 = _this__u8e3s4.
|
|
382
|
+
var this_4 = _this__u8e3s4.u23_1;
|
|
383
383
|
var destination_1 = ArrayList_init_$Create$();
|
|
384
384
|
// Inline function 'kotlin.collections.forEach' call
|
|
385
385
|
var tmp0_iterator_1 = this_4.g();
|
|
@@ -387,7 +387,7 @@
|
|
|
387
387
|
var element_1 = tmp0_iterator_1.i();
|
|
388
388
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
389
389
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
390
|
-
var tmp0_safe_receiver_4 = element_1.
|
|
390
|
+
var tmp0_safe_receiver_4 = element_1.b24_1;
|
|
391
391
|
if (tmp0_safe_receiver_4 == null)
|
|
392
392
|
null;
|
|
393
393
|
else {
|
|
@@ -404,14 +404,14 @@
|
|
|
404
404
|
var item = tmp0_iterator_2.i();
|
|
405
405
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
406
406
|
var tmp0_in = ParameterLocation_BODY_getInstance();
|
|
407
|
-
var tmp1_schema = OpenApiV2Emitter_getInstance().
|
|
408
|
-
var tmp2_required = !item.
|
|
407
|
+
var tmp1_schema = OpenApiV2Emitter_getInstance().s24(item.d24_1);
|
|
408
|
+
var tmp2_required = !item.e24_1;
|
|
409
409
|
var tmp$ret$16 = new ParameterObject('RequestBody', tmp0_in, VOID, tmp2_required, tmp1_schema);
|
|
410
410
|
destination_2.e(tmp$ret$16);
|
|
411
411
|
}
|
|
412
412
|
var tmp_3 = destination_2;
|
|
413
413
|
// Inline function 'kotlin.collections.map' call
|
|
414
|
-
var this_6 = _this__u8e3s4.
|
|
414
|
+
var this_6 = _this__u8e3s4.r23_1;
|
|
415
415
|
// Inline function 'kotlin.collections.mapTo' call
|
|
416
416
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_6, 10));
|
|
417
417
|
var tmp0_iterator_3 = this_6.g();
|
|
@@ -423,7 +423,7 @@
|
|
|
423
423
|
}
|
|
424
424
|
var tmp_4 = plus(tmp_3, destination_3);
|
|
425
425
|
// Inline function 'kotlin.collections.map' call
|
|
426
|
-
var this_7 = _this__u8e3s4.
|
|
426
|
+
var this_7 = _this__u8e3s4.s23_1;
|
|
427
427
|
// Inline function 'kotlin.collections.mapTo' call
|
|
428
428
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_7, 10));
|
|
429
429
|
var tmp0_iterator_4 = this_7.g();
|
|
@@ -435,7 +435,7 @@
|
|
|
435
435
|
}
|
|
436
436
|
var tmp5_parameters = plus(tmp_4, destination_4);
|
|
437
437
|
// Inline function 'kotlin.collections.associate' call
|
|
438
|
-
var this_8 = _this__u8e3s4.
|
|
438
|
+
var this_8 = _this__u8e3s4.v23_1;
|
|
439
439
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_8, 10)), 16);
|
|
440
440
|
// Inline function 'kotlin.collections.associateTo' call
|
|
441
441
|
var destination_5 = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -444,8 +444,8 @@
|
|
|
444
444
|
var element_2 = tmp0_iterator_5.i();
|
|
445
445
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
446
446
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
447
|
-
var tmp_5 = _StatusCode___init__impl__t1yi9q(element_2.
|
|
448
|
-
var tmp0_safe_receiver_5 = _this__u8e3s4.
|
|
447
|
+
var tmp_5 = _StatusCode___init__impl__t1yi9q(element_2.w23_1);
|
|
448
|
+
var tmp0_safe_receiver_5 = _this__u8e3s4.n23_1;
|
|
449
449
|
var tmp_6;
|
|
450
450
|
var tmp_7 = tmp0_safe_receiver_5;
|
|
451
451
|
if ((tmp_7 == null ? null : new Comment(tmp_7)) == null) {
|
|
@@ -454,9 +454,9 @@
|
|
|
454
454
|
tmp_6 = _Comment___get_value__impl__8r3pla(tmp0_safe_receiver_5);
|
|
455
455
|
}
|
|
456
456
|
var tmp1_elvis_lhs = tmp_6;
|
|
457
|
-
var tmp4_description = tmp1_elvis_lhs == null ? _this__u8e3s4.
|
|
457
|
+
var tmp4_description = tmp1_elvis_lhs == null ? _this__u8e3s4.o23_1.b1() + ' ' + element_2.w23_1 + ' response' : tmp1_elvis_lhs;
|
|
458
458
|
// Inline function 'kotlin.collections.associate' call
|
|
459
|
-
var this_9 = element_2.
|
|
459
|
+
var this_9 = element_2.x23_1;
|
|
460
460
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_9, 10)), 16);
|
|
461
461
|
// Inline function 'kotlin.collections.associateTo' call
|
|
462
462
|
var destination_6 = LinkedHashMap_init_$Create$(capacity_0);
|
|
@@ -465,10 +465,10 @@
|
|
|
465
465
|
var element_3 = tmp0_iterator_6.i();
|
|
466
466
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
467
467
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
468
|
-
var pair = to(element_3.
|
|
468
|
+
var pair = to(element_3.k24_1.b1(), new HeaderObject(VOID, emitType_0(element_3.l24_1, OpenApiV2Emitter_getInstance()).p2_1, emitFormat(element_3.l24_1, OpenApiV2Emitter_getInstance()), element_3.l24_1.f24() ? OpenApiV2Emitter_getInstance().s24(element_3.l24_1) : null));
|
|
469
469
|
destination_6.m2(pair.ce_1, pair.de_1);
|
|
470
470
|
}
|
|
471
|
-
var tmp2_safe_receiver = element_2.
|
|
471
|
+
var tmp2_safe_receiver = element_2.y23_1;
|
|
472
472
|
var tmp_8;
|
|
473
473
|
if (tmp2_safe_receiver == null) {
|
|
474
474
|
tmp_8 = null;
|
|
@@ -477,7 +477,7 @@
|
|
|
477
477
|
// Inline function 'kotlin.contracts.contract' call
|
|
478
478
|
var tmp_9;
|
|
479
479
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
480
|
-
var tmp_10 = tmp2_safe_receiver.
|
|
480
|
+
var tmp_10 = tmp2_safe_receiver.d24_1;
|
|
481
481
|
if (!(tmp_10 instanceof Unit)) {
|
|
482
482
|
tmp_9 = tmp2_safe_receiver;
|
|
483
483
|
} else {
|
|
@@ -494,12 +494,12 @@
|
|
|
494
494
|
// Inline function 'kotlin.contracts.contract' call
|
|
495
495
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
496
496
|
var tmp_12;
|
|
497
|
-
switch (tmp3_safe_receiver.
|
|
497
|
+
switch (tmp3_safe_receiver.d24_1.f24()) {
|
|
498
498
|
case false:
|
|
499
|
-
tmp_12 = OpenApiV2Emitter_getInstance().
|
|
499
|
+
tmp_12 = OpenApiV2Emitter_getInstance().s24(tmp3_safe_receiver.d24_1);
|
|
500
500
|
break;
|
|
501
501
|
case true:
|
|
502
|
-
tmp_12 = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), OpenApiV2Emitter_getInstance().
|
|
502
|
+
tmp_12 = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), OpenApiV2Emitter_getInstance().s24(tmp3_safe_receiver.d24_1));
|
|
503
503
|
break;
|
|
504
504
|
default:
|
|
505
505
|
noWhenBranchMatchedException();
|
|
@@ -517,13 +517,13 @@
|
|
|
517
517
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenApiV2Emitter$emitSegment$lambda);
|
|
518
518
|
}
|
|
519
519
|
function emitParameter(_this__u8e3s4, $this, location) {
|
|
520
|
-
var tmp1_name = _this__u8e3s4.
|
|
521
|
-
var tmp2_type = emitType_0(_this__u8e3s4.
|
|
522
|
-
var tmp3_format = emitFormat(_this__u8e3s4.
|
|
520
|
+
var tmp1_name = _this__u8e3s4.k24_1.b1();
|
|
521
|
+
var tmp2_type = emitType_0(_this__u8e3s4.l24_1, $this);
|
|
522
|
+
var tmp3_format = emitFormat(_this__u8e3s4.l24_1, $this);
|
|
523
523
|
var tmp;
|
|
524
|
-
switch (_this__u8e3s4.
|
|
524
|
+
switch (_this__u8e3s4.l24_1.f24()) {
|
|
525
525
|
case true:
|
|
526
|
-
var emit = $this.
|
|
526
|
+
var emit = $this.s24(_this__u8e3s4.l24_1);
|
|
527
527
|
var tmp_0;
|
|
528
528
|
if (emit instanceof ReferenceObject) {
|
|
529
529
|
tmp_0 = emit;
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
break;
|
|
546
546
|
}
|
|
547
547
|
var tmp4_items = tmp;
|
|
548
|
-
var tmp5_required = !_this__u8e3s4.
|
|
548
|
+
var tmp5_required = !_this__u8e3s4.m24_1;
|
|
549
549
|
return new ParameterObject(tmp1_name, location, VOID, tmp5_required, VOID, tmp2_type, tmp4_items, tmp3_format);
|
|
550
550
|
}
|
|
551
551
|
function emitType(_this__u8e3s4, $this) {
|
|
@@ -575,12 +575,12 @@
|
|
|
575
575
|
}
|
|
576
576
|
function emitType_0(_this__u8e3s4, $this) {
|
|
577
577
|
var tmp;
|
|
578
|
-
if (_this__u8e3s4.
|
|
578
|
+
if (_this__u8e3s4.f24()) {
|
|
579
579
|
tmp = Type_ARRAY_getInstance();
|
|
580
580
|
} else {
|
|
581
581
|
var tmp_0;
|
|
582
582
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
583
|
-
tmp_0 = emitType(_this__u8e3s4.
|
|
583
|
+
tmp_0 = emitType(_this__u8e3s4.f23_1, $this);
|
|
584
584
|
} else {
|
|
585
585
|
if (_this__u8e3s4 instanceof Custom) {
|
|
586
586
|
tmp_0 = 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.f23_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.q24_1.b1() + '}';
|
|
655
655
|
} else {
|
|
656
656
|
if (it instanceof Literal) {
|
|
657
|
-
tmp = it.
|
|
657
|
+
tmp = it.b25_1;
|
|
658
658
|
} else {
|
|
659
659
|
noWhenBranchMatchedException();
|
|
660
660
|
}
|
|
@@ -664,15 +664,15 @@
|
|
|
664
664
|
function OpenApiV2Emitter() {
|
|
665
665
|
OpenApiV2Emitter_instance = this;
|
|
666
666
|
Emitter.call(this, get_noLogger());
|
|
667
|
-
this.
|
|
667
|
+
this.q2a_1 = '';
|
|
668
668
|
}
|
|
669
|
-
protoOf(OpenApiV2Emitter).
|
|
670
|
-
return this.
|
|
669
|
+
protoOf(OpenApiV2Emitter).u25 = function () {
|
|
670
|
+
return this.q2a_1;
|
|
671
671
|
};
|
|
672
672
|
protoOf(OpenApiV2Emitter).p22 = 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().l2a_1;
|
|
675
|
+
var value = this.r2a(ast);
|
|
676
676
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
677
677
|
var this_1 = this_0.mo();
|
|
678
678
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -681,25 +681,25 @@
|
|
|
681
681
|
var tmp$ret$2 = this_0.b15(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).z25 = function (type, ast) {
|
|
685
|
+
return this.r26();
|
|
686
686
|
};
|
|
687
|
-
protoOf(OpenApiV2Emitter).
|
|
688
|
-
return this.
|
|
687
|
+
protoOf(OpenApiV2Emitter).i26 = function (enum_0, ast) {
|
|
688
|
+
return this.r26();
|
|
689
689
|
};
|
|
690
|
-
protoOf(OpenApiV2Emitter).
|
|
691
|
-
return this.
|
|
690
|
+
protoOf(OpenApiV2Emitter).e26 = function (refined) {
|
|
691
|
+
return this.r26();
|
|
692
692
|
};
|
|
693
|
-
protoOf(OpenApiV2Emitter).
|
|
694
|
-
return this.
|
|
693
|
+
protoOf(OpenApiV2Emitter).m26 = function (endpoint) {
|
|
694
|
+
return this.r26();
|
|
695
695
|
};
|
|
696
|
-
protoOf(OpenApiV2Emitter).
|
|
697
|
-
return this.
|
|
696
|
+
protoOf(OpenApiV2Emitter).k26 = function (union) {
|
|
697
|
+
return this.r26();
|
|
698
698
|
};
|
|
699
|
-
protoOf(OpenApiV2Emitter).
|
|
700
|
-
return this.
|
|
699
|
+
protoOf(OpenApiV2Emitter).l26 = function (channel) {
|
|
700
|
+
return this.r26();
|
|
701
701
|
};
|
|
702
|
-
protoOf(OpenApiV2Emitter).
|
|
702
|
+
protoOf(OpenApiV2Emitter).r2a = 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.q24_1.b1();
|
|
770
|
+
var tmp2_type = emitType_0(item_0.r24_1, OpenApiV2Emitter_getInstance());
|
|
771
|
+
var tmp3_format = emitFormat(item_0.r24_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.l25_1.b1();
|
|
807
807
|
var tmp0_type = Type_STRING_getInstance();
|
|
808
|
-
var tmp1_pattern = element_3.
|
|
808
|
+
var tmp1_pattern = element_3.m25_1.g26_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.h25_1.b1();
|
|
833
833
|
// Inline function 'kotlin.collections.associate' call
|
|
834
|
-
var this_0 = element_5.
|
|
834
|
+
var this_0 = element_5.i25_1.c26_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().w24(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.i25_1.c26_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.m24_1) {
|
|
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.k24_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.o25_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.p25_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,17 +917,17 @@
|
|
|
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).w24 = function (_this__u8e3s4) {
|
|
921
|
+
return to(_this__u8e3s4.k24_1.b1(), this.s24(_this__u8e3s4.l24_1));
|
|
922
922
|
};
|
|
923
|
-
protoOf(OpenApiV2Emitter).
|
|
923
|
+
protoOf(OpenApiV2Emitter).s24 = function (_this__u8e3s4) {
|
|
924
924
|
// Inline function 'kotlin.let' call
|
|
925
925
|
var tmp;
|
|
926
926
|
if (_this__u8e3s4 instanceof Custom) {
|
|
927
|
-
tmp = new ReferenceObject(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.
|
|
927
|
+
tmp = new ReferenceObject(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.w22_1));
|
|
928
928
|
} else {
|
|
929
929
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
930
|
-
var tmp1_type = emitType(_this__u8e3s4.
|
|
930
|
+
var tmp1_type = emitType(_this__u8e3s4.f23_1, this);
|
|
931
931
|
var tmp2_format = emitFormat(_this__u8e3s4, this);
|
|
932
932
|
tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, tmp2_format, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_type);
|
|
933
933
|
} else {
|
|
@@ -947,7 +947,7 @@
|
|
|
947
947
|
// Inline function 'kotlin.contracts.contract' call
|
|
948
948
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
949
949
|
var it = tmp;
|
|
950
|
-
return _this__u8e3s4.
|
|
950
|
+
return _this__u8e3s4.f24() ? new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), it) : it;
|
|
951
951
|
};
|
|
952
952
|
var OpenApiV2Emitter_instance;
|
|
953
953
|
function OpenApiV2Emitter_getInstance() {
|
|
@@ -1079,7 +1079,7 @@
|
|
|
1079
1079
|
tmp_1 = toReference(_this__u8e3s4, OpenApiV2Parser_instance, schema);
|
|
1080
1080
|
} else {
|
|
1081
1081
|
if (schema instanceof SchemaObject) {
|
|
1082
|
-
tmp_1 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, schema, Common_getInstance().
|
|
1082
|
+
tmp_1 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, schema, Common_getInstance().m2a([name, 'RequestBody']));
|
|
1083
1083
|
} else {
|
|
1084
1084
|
if (schema == null) {
|
|
1085
1085
|
var reason = 'Not yet implemented';
|
|
@@ -1198,7 +1198,7 @@
|
|
|
1198
1198
|
tmp_11 = toReference(_this__u8e3s4, OpenApiV2Parser_instance, tmp1_safe_receiver);
|
|
1199
1199
|
} else {
|
|
1200
1200
|
if (tmp1_safe_receiver instanceof SchemaObject) {
|
|
1201
|
-
tmp_11 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
1201
|
+
tmp_11 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, tmp1_safe_receiver, Common_getInstance().m2a([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']));
|
|
1202
1202
|
} else {
|
|
1203
1203
|
noWhenBranchMatchedException();
|
|
1204
1204
|
}
|
|
@@ -1217,7 +1217,7 @@
|
|
|
1217
1217
|
while (tmp0_iterator_12.h()) {
|
|
1218
1218
|
var e = tmp0_iterator_12.i();
|
|
1219
1219
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
1220
|
-
var key = to(e.
|
|
1220
|
+
var key = to(e.w23_1, e.y23_1);
|
|
1221
1221
|
if (set.e(key)) {
|
|
1222
1222
|
list_1.e(e);
|
|
1223
1223
|
}
|
|
@@ -1278,7 +1278,7 @@
|
|
|
1278
1278
|
while (tmp0_iterator_1.h()) {
|
|
1279
1279
|
var element_0 = tmp0_iterator_1.i();
|
|
1280
1280
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseDefinitions.<anonymous>' call
|
|
1281
|
-
var list = flatten(_this__u8e3s4, OpenApiV2Parser_instance, element_0.b1(), Common_getInstance().
|
|
1281
|
+
var list = flatten(_this__u8e3s4, OpenApiV2Parser_instance, element_0.b1(), Common_getInstance().m2a([element_0.a1()]));
|
|
1282
1282
|
addAll(destination_0, list);
|
|
1283
1283
|
}
|
|
1284
1284
|
return destination_0;
|
|
@@ -1559,7 +1559,7 @@
|
|
|
1559
1559
|
while (tmp0_iterator_0.h()) {
|
|
1560
1560
|
var e = tmp0_iterator_0.i();
|
|
1561
1561
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
|
|
1562
|
-
var key = e.
|
|
1562
|
+
var key = e.k24_1;
|
|
1563
1563
|
if (set.e(key)) {
|
|
1564
1564
|
list_0.e(e);
|
|
1565
1565
|
}
|
|
@@ -1598,7 +1598,7 @@
|
|
|
1598
1598
|
tmp_9 = emptyList();
|
|
1599
1599
|
} else {
|
|
1600
1600
|
if (value instanceof SchemaObject) {
|
|
1601
|
-
tmp_9 = flatten(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().
|
|
1601
|
+
tmp_9 = flatten(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().m2a([name, key_0]));
|
|
1602
1602
|
} else {
|
|
1603
1603
|
noWhenBranchMatchedException();
|
|
1604
1604
|
}
|
|
@@ -1657,7 +1657,7 @@
|
|
|
1657
1657
|
var key_1 = element_2.a1();
|
|
1658
1658
|
// Inline function 'kotlin.collections.component2' call
|
|
1659
1659
|
var value_0 = element_2.b1();
|
|
1660
|
-
var list_3 = flatten_0(_this__u8e3s4, OpenApiV2Parser_instance, value_0, Common_getInstance().
|
|
1660
|
+
var list_3 = flatten_0(_this__u8e3s4, OpenApiV2Parser_instance, value_0, Common_getInstance().m2a([name, key_1]));
|
|
1661
1661
|
addAll(destination_3, list_3);
|
|
1662
1662
|
}
|
|
1663
1663
|
|
|
@@ -1672,7 +1672,7 @@
|
|
|
1672
1672
|
tmp_11 = emptyList();
|
|
1673
1673
|
} else {
|
|
1674
1674
|
if (it_0 instanceof SchemaObject) {
|
|
1675
|
-
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().
|
|
1675
|
+
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().m2a([name, 'Array']));
|
|
1676
1676
|
} else {
|
|
1677
1677
|
if (it_0 == null) {
|
|
1678
1678
|
tmp_11 = emptyList();
|
|
@@ -1730,7 +1730,7 @@
|
|
|
1730
1730
|
}
|
|
1731
1731
|
tmp = tmp_0;
|
|
1732
1732
|
} else if (!(schema.d1n_1 == null)) {
|
|
1733
|
-
tmp = new Custom(Common_getInstance().
|
|
1733
|
+
tmp = new Custom(Common_getInstance().m2a([getReference(reference, OpenApiV2Parser_instance)]), false, false);
|
|
1734
1734
|
} else if (isPrimitive(schema.e1n_1)) {
|
|
1735
1735
|
tmp = new Primitive(toPrimitive(ensureNotNull(schema.e1n_1), OpenApiV2Parser_instance, schema.l1m_1), false, false);
|
|
1736
1736
|
} else {
|
|
@@ -1743,7 +1743,7 @@
|
|
|
1743
1743
|
tmp_2 = toIterable(toReference(_this__u8e3s4, OpenApiV2Parser_instance, items));
|
|
1744
1744
|
} else {
|
|
1745
1745
|
if (items instanceof SchemaObject) {
|
|
1746
|
-
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, items, Common_getInstance().
|
|
1746
|
+
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, items, Common_getInstance().m2a([getReference(reference, OpenApiV2Parser_instance), 'Array'])));
|
|
1747
1747
|
} else {
|
|
1748
1748
|
if (items == null) {
|
|
1749
1749
|
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.n1n_1);
|
|
@@ -1757,10 +1757,10 @@
|
|
|
1757
1757
|
} else {
|
|
1758
1758
|
var tmp_3;
|
|
1759
1759
|
if (refOrSchema instanceof SchemaObject) {
|
|
1760
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
1760
|
+
tmp_3 = new Custom(Common_getInstance().m2a([getReference(reference, OpenApiV2Parser_instance)]), false);
|
|
1761
1761
|
} else {
|
|
1762
1762
|
if (refOrSchema instanceof ReferenceObject) {
|
|
1763
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
1763
|
+
tmp_3 = new Custom(Common_getInstance().m2a([getReference(refOrSchema, OpenApiV2Parser_instance)]), false);
|
|
1764
1764
|
} else {
|
|
1765
1765
|
noWhenBranchMatchedException();
|
|
1766
1766
|
}
|
|
@@ -1908,7 +1908,7 @@
|
|
|
1908
1908
|
var tmp$ret$0 = tmp_0;
|
|
1909
1909
|
result.m2(element, tmp$ret$0);
|
|
1910
1910
|
}
|
|
1911
|
-
return tmp.
|
|
1911
|
+
return tmp.n2a(result);
|
|
1912
1912
|
}
|
|
1913
1913
|
function getReference(_this__u8e3s4, $this) {
|
|
1914
1914
|
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.n1n_1), ['/']).k(2);
|
|
@@ -1991,7 +1991,7 @@
|
|
|
1991
1991
|
var tmp;
|
|
1992
1992
|
if (value instanceof SchemaObject) {
|
|
1993
1993
|
var tmp_0 = new FieldIdentifier(key);
|
|
1994
|
-
var tmp_1 = !(value.d1n_1 == null) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().
|
|
1994
|
+
var tmp_1 = !(value.d1n_1 == null) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().m2a([name, key])) : equals(value.e1n_1, Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().m2a([name, key, 'Array'])) : toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().m2a([name, key]));
|
|
1995
1995
|
var tmp1_safe_receiver = schema.c1n_1;
|
|
1996
1996
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p1(key);
|
|
1997
1997
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
@@ -2019,7 +2019,7 @@
|
|
|
2019
2019
|
var it = resolve_3(_this__u8e3s4, $this, parameter);
|
|
2020
2020
|
var tmp;
|
|
2021
2021
|
if (!(parameter.f1j_1 == null)) {
|
|
2022
|
-
tmp = new Custom(Common_getInstance().
|
|
2022
|
+
tmp = new Custom(Common_getInstance().m2a([name, 'Parameter', it.k1i_1]), false);
|
|
2023
2023
|
} else {
|
|
2024
2024
|
var type = it.p1i_1;
|
|
2025
2025
|
var tmp_0;
|
|
@@ -2199,7 +2199,7 @@
|
|
|
2199
2199
|
// Inline function 'kotlin.let' call
|
|
2200
2200
|
// Inline function 'kotlin.contracts.contract' call
|
|
2201
2201
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toName.<anonymous>' call
|
|
2202
|
-
tmp = Common_getInstance().
|
|
2202
|
+
tmp = Common_getInstance().m2a([tmp0_safe_receiver]);
|
|
2203
2203
|
}
|
|
2204
2204
|
return tmp;
|
|
2205
2205
|
}
|
|
@@ -2221,21 +2221,21 @@
|
|
|
2221
2221
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenApiV2Parser$toName$lambda);
|
|
2222
2222
|
}
|
|
2223
2223
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
2224
|
-
this.
|
|
2225
|
-
this.
|
|
2226
|
-
this.
|
|
2227
|
-
this.
|
|
2228
|
-
this.
|
|
2224
|
+
this.s2a_1 = path;
|
|
2225
|
+
this.t2a_1 = pathItem;
|
|
2226
|
+
this.u2a_1 = method;
|
|
2227
|
+
this.v2a_1 = operation;
|
|
2228
|
+
this.w2a_1 = type;
|
|
2229
2229
|
}
|
|
2230
2230
|
protoOf(FlattenRequest).toString = function () {
|
|
2231
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
2231
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.s2a_1) + ', pathItem=' + this.t2a_1.toString() + ', method=' + this.u2a_1.toString() + ', operation=' + this.v2a_1.toString() + ', type=' + this.w2a_1 + ')';
|
|
2232
2232
|
};
|
|
2233
2233
|
protoOf(FlattenRequest).hashCode = function () {
|
|
2234
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2235
|
-
result = imul(result, 31) + this.
|
|
2236
|
-
result = imul(result, 31) + this.
|
|
2237
|
-
result = imul(result, 31) + this.
|
|
2238
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2234
|
+
var result = Path__hashCode_impl_go73kd(this.s2a_1);
|
|
2235
|
+
result = imul(result, 31) + this.t2a_1.hashCode() | 0;
|
|
2236
|
+
result = imul(result, 31) + this.u2a_1.hashCode() | 0;
|
|
2237
|
+
result = imul(result, 31) + this.v2a_1.hashCode() | 0;
|
|
2238
|
+
result = imul(result, 31) + getStringHashCode(this.w2a_1) | 0;
|
|
2239
2239
|
return result;
|
|
2240
2240
|
};
|
|
2241
2241
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -2244,15 +2244,15 @@
|
|
|
2244
2244
|
if (!(other instanceof FlattenRequest))
|
|
2245
2245
|
return false;
|
|
2246
2246
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
2247
|
-
if (!(this.
|
|
2247
|
+
if (!(this.s2a_1 === tmp0_other_with_cast.s2a_1))
|
|
2248
2248
|
return false;
|
|
2249
|
-
if (!this.
|
|
2249
|
+
if (!this.t2a_1.equals(tmp0_other_with_cast.t2a_1))
|
|
2250
2250
|
return false;
|
|
2251
|
-
if (!this.
|
|
2251
|
+
if (!this.u2a_1.equals(tmp0_other_with_cast.u2a_1))
|
|
2252
2252
|
return false;
|
|
2253
|
-
if (!this.
|
|
2253
|
+
if (!this.v2a_1.equals(tmp0_other_with_cast.v2a_1))
|
|
2254
2254
|
return false;
|
|
2255
|
-
if (!(this.
|
|
2255
|
+
if (!(this.w2a_1 === tmp0_other_with_cast.w2a_1))
|
|
2256
2256
|
return false;
|
|
2257
2257
|
return true;
|
|
2258
2258
|
};
|
|
@@ -2314,25 +2314,25 @@
|
|
|
2314
2314
|
return destination_2;
|
|
2315
2315
|
}
|
|
2316
2316
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
2317
|
-
this.
|
|
2318
|
-
this.
|
|
2319
|
-
this.
|
|
2320
|
-
this.
|
|
2321
|
-
this.
|
|
2322
|
-
this.
|
|
2323
|
-
this.
|
|
2317
|
+
this.x2a_1 = path;
|
|
2318
|
+
this.y2a_1 = pathItem;
|
|
2319
|
+
this.z2a_1 = method;
|
|
2320
|
+
this.a2b_1 = operation;
|
|
2321
|
+
this.b2b_1 = statusCode;
|
|
2322
|
+
this.c2b_1 = response;
|
|
2323
|
+
this.d2b_1 = type;
|
|
2324
2324
|
}
|
|
2325
2325
|
protoOf(FlattenResponse).toString = function () {
|
|
2326
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
2326
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.x2a_1) + ', pathItem=' + this.y2a_1.toString() + ', method=' + this.z2a_1.toString() + ', operation=' + this.a2b_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy(this.b2b_1) + ', response=' + toString(this.c2b_1) + ', type=' + this.d2b_1 + ')';
|
|
2327
2327
|
};
|
|
2328
2328
|
protoOf(FlattenResponse).hashCode = function () {
|
|
2329
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2330
|
-
result = imul(result, 31) + this.
|
|
2331
|
-
result = imul(result, 31) + this.
|
|
2332
|
-
result = imul(result, 31) + this.
|
|
2333
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
2334
|
-
result = imul(result, 31) + hashCode(this.
|
|
2335
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2329
|
+
var result = Path__hashCode_impl_go73kd(this.x2a_1);
|
|
2330
|
+
result = imul(result, 31) + this.y2a_1.hashCode() | 0;
|
|
2331
|
+
result = imul(result, 31) + this.z2a_1.hashCode() | 0;
|
|
2332
|
+
result = imul(result, 31) + this.a2b_1.hashCode() | 0;
|
|
2333
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.b2b_1) | 0;
|
|
2334
|
+
result = imul(result, 31) + hashCode(this.c2b_1) | 0;
|
|
2335
|
+
result = imul(result, 31) + getStringHashCode(this.d2b_1) | 0;
|
|
2336
2336
|
return result;
|
|
2337
2337
|
};
|
|
2338
2338
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -2341,19 +2341,19 @@
|
|
|
2341
2341
|
if (!(other instanceof FlattenResponse))
|
|
2342
2342
|
return false;
|
|
2343
2343
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
2344
|
-
if (!(this.
|
|
2344
|
+
if (!(this.x2a_1 === tmp0_other_with_cast.x2a_1))
|
|
2345
2345
|
return false;
|
|
2346
|
-
if (!this.
|
|
2346
|
+
if (!this.y2a_1.equals(tmp0_other_with_cast.y2a_1))
|
|
2347
2347
|
return false;
|
|
2348
|
-
if (!this.
|
|
2348
|
+
if (!this.z2a_1.equals(tmp0_other_with_cast.z2a_1))
|
|
2349
2349
|
return false;
|
|
2350
|
-
if (!this.
|
|
2350
|
+
if (!this.a2b_1.equals(tmp0_other_with_cast.a2b_1))
|
|
2351
2351
|
return false;
|
|
2352
|
-
if (!(this.
|
|
2352
|
+
if (!(this.b2b_1 === tmp0_other_with_cast.b2b_1))
|
|
2353
2353
|
return false;
|
|
2354
|
-
if (!equals(this.
|
|
2354
|
+
if (!equals(this.c2b_1, tmp0_other_with_cast.c2b_1))
|
|
2355
2355
|
return false;
|
|
2356
|
-
if (!(this.
|
|
2356
|
+
if (!(this.d2b_1 === tmp0_other_with_cast.d2b_1))
|
|
2357
2357
|
return false;
|
|
2358
2358
|
return true;
|
|
2359
2359
|
};
|
|
@@ -2441,9 +2441,9 @@
|
|
|
2441
2441
|
}
|
|
2442
2442
|
function OpenApiV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
2443
2443
|
return function ($this$flatMapRequests) {
|
|
2444
|
-
var parameters = plus(resolveParameters_0($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.
|
|
2445
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2446
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2444
|
+
var parameters = plus(resolveParameters_0($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.t2a_1), resolveParameters($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.v2a_1));
|
|
2445
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.v2a_1, OpenApiV2Parser_instance);
|
|
2446
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.s2a_1, OpenApiV2Parser_instance) + $this$flatMapRequests.u2a_1.p2_1 : tmp0_elvis_lhs;
|
|
2447
2447
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2448
2448
|
// Inline function 'kotlin.collections.filter' call
|
|
2449
2449
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -2470,7 +2470,7 @@
|
|
|
2470
2470
|
// Inline function 'kotlin.let' call
|
|
2471
2471
|
// Inline function 'kotlin.contracts.contract' call
|
|
2472
2472
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
2473
|
-
tmp = flatten_0($this_parseParameters, OpenApiV2Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
2473
|
+
tmp = flatten_0($this_parseParameters, OpenApiV2Parser_instance, tmp0_safe_receiver, Common_getInstance().m2a([name, 'Parameter', element_0.k1i_1]));
|
|
2474
2474
|
}
|
|
2475
2475
|
var tmp1_elvis_lhs = tmp;
|
|
2476
2476
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -2481,9 +2481,9 @@
|
|
|
2481
2481
|
}
|
|
2482
2482
|
function OpenApiV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
2483
2483
|
return function ($this$flatMapRequests) {
|
|
2484
|
-
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.
|
|
2485
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2486
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2484
|
+
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.t2a_1), resolveParameters($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.v2a_1));
|
|
2485
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.v2a_1, OpenApiV2Parser_instance);
|
|
2486
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.s2a_1, OpenApiV2Parser_instance) + $this$flatMapRequests.u2a_1.p2_1 : tmp0_elvis_lhs;
|
|
2487
2487
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2488
2488
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2489
2489
|
var destination = ArrayList_init_$Create$();
|
|
@@ -2493,7 +2493,7 @@
|
|
|
2493
2493
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
2494
2494
|
var tmp;
|
|
2495
2495
|
if (!(element.f1j_1 == null)) {
|
|
2496
|
-
var tmp_0 = new DefinitionIdentifier(Common_getInstance().
|
|
2496
|
+
var tmp_0 = new DefinitionIdentifier(Common_getInstance().m2a([name, 'Parameter', element.k1i_1]));
|
|
2497
2497
|
// Inline function 'kotlin.collections.map' call
|
|
2498
2498
|
var this_0 = ensureNotNull(element.f1j_1);
|
|
2499
2499
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2513,7 +2513,7 @@
|
|
|
2513
2513
|
addAll(destination, list);
|
|
2514
2514
|
}
|
|
2515
2515
|
var enums = destination;
|
|
2516
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
2516
|
+
var tmp1_safe_receiver = $this$flatMapRequests.v2a_1.h1l_1;
|
|
2517
2517
|
var tmp_1;
|
|
2518
2518
|
if (tmp1_safe_receiver == null) {
|
|
2519
2519
|
tmp_1 = null;
|
|
@@ -2568,7 +2568,7 @@
|
|
|
2568
2568
|
switch (tmp0_subject == null ? -1 : tmp0_subject.q2_1) {
|
|
2569
2569
|
case -1:
|
|
2570
2570
|
case 5:
|
|
2571
|
-
tmp_5 = flatten($this_parseRequestBody, OpenApiV2Parser_instance, schema, Common_getInstance().
|
|
2571
|
+
tmp_5 = flatten($this_parseRequestBody, OpenApiV2Parser_instance, schema, Common_getInstance().m2a([name, 'RequestBody']));
|
|
2572
2572
|
break;
|
|
2573
2573
|
case 4:
|
|
2574
2574
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2581,7 +2581,7 @@
|
|
|
2581
2581
|
// Inline function 'kotlin.let' call
|
|
2582
2582
|
// Inline function 'kotlin.contracts.contract' call
|
|
2583
2583
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
2584
|
-
tmp_6 = flatten_0($this_parseRequestBody, OpenApiV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
2584
|
+
tmp_6 = flatten_0($this_parseRequestBody, OpenApiV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().m2a([name, 'RequestBody']));
|
|
2585
2585
|
}
|
|
2586
2586
|
|
|
2587
2587
|
var tmp0_elvis_lhs_0 = tmp_6;
|
|
@@ -2607,9 +2607,9 @@
|
|
|
2607
2607
|
}
|
|
2608
2608
|
function OpenApiV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
2609
2609
|
return function ($this$flatMapResponses) {
|
|
2610
|
-
var schema = resolve_1($this_parseResponseBody, OpenApiV2Parser_instance, $this$flatMapResponses.
|
|
2611
|
-
var tmp0_elvis_lhs = toName($this$flatMapResponses.
|
|
2612
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
2610
|
+
var schema = resolve_1($this_parseResponseBody, OpenApiV2Parser_instance, $this$flatMapResponses.c2b_1).m1j_1;
|
|
2611
|
+
var tmp0_elvis_lhs = toName($this$flatMapResponses.a2b_1, OpenApiV2Parser_instance);
|
|
2612
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.x2a_1, OpenApiV2Parser_instance) + $this$flatMapResponses.z2a_1.p2_1 : tmp0_elvis_lhs;
|
|
2613
2613
|
var tmp;
|
|
2614
2614
|
if (schema instanceof SchemaObject) {
|
|
2615
2615
|
var tmp2_subject = schema.e1n_1;
|
|
@@ -2617,7 +2617,7 @@
|
|
|
2617
2617
|
switch (tmp2_subject == null ? -1 : tmp2_subject.q2_1) {
|
|
2618
2618
|
case -1:
|
|
2619
2619
|
case 5:
|
|
2620
|
-
tmp_0 = flatten($this_parseResponseBody, OpenApiV2Parser_instance, schema, Common_getInstance().
|
|
2620
|
+
tmp_0 = flatten($this_parseResponseBody, OpenApiV2Parser_instance, schema, Common_getInstance().m2a([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.b2b_1), 'ResponseBody']));
|
|
2621
2621
|
break;
|
|
2622
2622
|
case 4:
|
|
2623
2623
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2630,7 +2630,7 @@
|
|
|
2630
2630
|
// Inline function 'kotlin.let' call
|
|
2631
2631
|
// Inline function 'kotlin.contracts.contract' call
|
|
2632
2632
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
2633
|
-
tmp_1 = flatten_0($this_parseResponseBody, OpenApiV2Parser_instance, tmp3_safe_receiver, Common_getInstance().
|
|
2633
|
+
tmp_1 = flatten_0($this_parseResponseBody, OpenApiV2Parser_instance, tmp3_safe_receiver, Common_getInstance().m2a([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.b2b_1), 'ResponseBody']));
|
|
2634
2634
|
}
|
|
2635
2635
|
|
|
2636
2636
|
var tmp0_elvis_lhs_0 = tmp_1;
|
|
@@ -2658,10 +2658,10 @@
|
|
|
2658
2658
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2659
2659
|
|
|
2660
2660
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
2661
|
-
tmp = tmp_0.
|
|
2661
|
+
tmp = tmp_0.m2a([tmp$ret$1]);
|
|
2662
2662
|
break;
|
|
2663
2663
|
case false:
|
|
2664
|
-
tmp = Common_getInstance().
|
|
2664
|
+
tmp = Common_getInstance().m2a([it]);
|
|
2665
2665
|
break;
|
|
2666
2666
|
default:
|
|
2667
2667
|
noWhenBranchMatchedException();
|
|
@@ -2671,14 +2671,14 @@
|
|
|
2671
2671
|
}
|
|
2672
2672
|
function OpenApiV2Parser() {
|
|
2673
2673
|
}
|
|
2674
|
-
protoOf(OpenApiV2Parser).
|
|
2675
|
-
return this.
|
|
2674
|
+
protoOf(OpenApiV2Parser).e2b = function (json, ignoreUnknown) {
|
|
2675
|
+
return this.f2b((new OpenAPI(Json(VOID, OpenApiV2Parser$parse$lambda(ignoreUnknown)))).i1g(json));
|
|
2676
2676
|
};
|
|
2677
|
-
protoOf(OpenApiV2Parser).
|
|
2677
|
+
protoOf(OpenApiV2Parser).g2b = function (json, ignoreUnknown, $super) {
|
|
2678
2678
|
ignoreUnknown = ignoreUnknown === VOID ? false : ignoreUnknown;
|
|
2679
|
-
return $super === VOID ? this.
|
|
2679
|
+
return $super === VOID ? this.e2b(json, ignoreUnknown) : $super.e2b.call(this, json, ignoreUnknown);
|
|
2680
2680
|
};
|
|
2681
|
-
protoOf(OpenApiV2Parser).
|
|
2681
|
+
protoOf(OpenApiV2Parser).f2b = function (_this__u8e3s4) {
|
|
2682
2682
|
// Inline function 'kotlin.collections.reduce' call
|
|
2683
2683
|
var iterator = listOf_0([parseEndpoints(_this__u8e3s4, this), parseParameters(_this__u8e3s4, this), parseRequestBody(_this__u8e3s4, this), parseResponseBody(_this__u8e3s4, this), parseDefinitions(_this__u8e3s4, this)]).g();
|
|
2684
2684
|
if (!iterator.h())
|
|
@@ -2698,16 +2698,16 @@
|
|
|
2698
2698
|
function toMap_0(_this__u8e3s4) {
|
|
2699
2699
|
var tmp;
|
|
2700
2700
|
if (_this__u8e3s4 instanceof Custom) {
|
|
2701
|
-
tmp = _this__u8e3s4.
|
|
2701
|
+
tmp = _this__u8e3s4.p29(VOID, VOID, true);
|
|
2702
2702
|
} else {
|
|
2703
2703
|
if (_this__u8e3s4 instanceof Any) {
|
|
2704
|
-
tmp = _this__u8e3s4.
|
|
2704
|
+
tmp = _this__u8e3s4.j29(VOID, true);
|
|
2705
2705
|
} else {
|
|
2706
2706
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
2707
|
-
tmp = _this__u8e3s4.
|
|
2707
|
+
tmp = _this__u8e3s4.r29(VOID, VOID, true);
|
|
2708
2708
|
} else {
|
|
2709
2709
|
if (_this__u8e3s4 instanceof Unit) {
|
|
2710
|
-
tmp = _this__u8e3s4.
|
|
2710
|
+
tmp = _this__u8e3s4.n29(VOID, true);
|
|
2711
2711
|
} else {
|
|
2712
2712
|
noWhenBranchMatchedException();
|
|
2713
2713
|
}
|
|
@@ -2752,16 +2752,16 @@
|
|
|
2752
2752
|
function toIterable(_this__u8e3s4) {
|
|
2753
2753
|
var tmp;
|
|
2754
2754
|
if (_this__u8e3s4 instanceof Custom) {
|
|
2755
|
-
tmp = _this__u8e3s4.
|
|
2755
|
+
tmp = _this__u8e3s4.p29(VOID, true);
|
|
2756
2756
|
} else {
|
|
2757
2757
|
if (_this__u8e3s4 instanceof Any) {
|
|
2758
|
-
tmp = _this__u8e3s4.
|
|
2758
|
+
tmp = _this__u8e3s4.j29(true);
|
|
2759
2759
|
} else {
|
|
2760
2760
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
2761
|
-
tmp = _this__u8e3s4.
|
|
2761
|
+
tmp = _this__u8e3s4.r29(VOID, true);
|
|
2762
2762
|
} else {
|
|
2763
2763
|
if (_this__u8e3s4 instanceof Unit) {
|
|
2764
|
-
tmp = _this__u8e3s4.
|
|
2764
|
+
tmp = _this__u8e3s4.n29(true);
|
|
2765
2765
|
} else {
|
|
2766
2766
|
noWhenBranchMatchedException();
|
|
2767
2767
|
}
|
|
@@ -2802,7 +2802,7 @@
|
|
|
2802
2802
|
var element_1 = tmp0_iterator_1.i();
|
|
2803
2803
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2804
2804
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitComponents.<anonymous>' call
|
|
2805
|
-
var tmp = element_1.
|
|
2805
|
+
var tmp = element_1.z28().b1();
|
|
2806
2806
|
var tmp_0;
|
|
2807
2807
|
if (element_1 instanceof Enum) {
|
|
2808
2808
|
tmp_0 = emit_3(element_1, OpenApiV3Emitter_getInstance());
|
|
@@ -2857,7 +2857,7 @@
|
|
|
2857
2857
|
while (tmp0_iterator_0.h()) {
|
|
2858
2858
|
var element_0 = tmp0_iterator_0.i();
|
|
2859
2859
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitPaths.<anonymous>' call
|
|
2860
|
-
var key = element_0.
|
|
2860
|
+
var key = element_0.q23_1;
|
|
2861
2861
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
2862
2862
|
var value = destination_0.f2(key);
|
|
2863
2863
|
var tmp;
|
|
@@ -2928,10 +2928,10 @@
|
|
|
2928
2928
|
return toMap(destination_1);
|
|
2929
2929
|
}
|
|
2930
2930
|
function emit_1(_this__u8e3s4, $this) {
|
|
2931
|
-
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_STRING_getInstance_0(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, _this__u8e3s4.
|
|
2931
|
+
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_STRING_getInstance_0(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, _this__u8e3s4.m25_1.g26_1);
|
|
2932
2932
|
}
|
|
2933
2933
|
function emit_2(_this__u8e3s4, $this) {
|
|
2934
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2934
|
+
var tmp0_safe_receiver = _this__u8e3s4.g25_1;
|
|
2935
2935
|
var tmp;
|
|
2936
2936
|
var tmp_0 = tmp0_safe_receiver;
|
|
2937
2937
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -2941,7 +2941,7 @@
|
|
|
2941
2941
|
}
|
|
2942
2942
|
var tmp1_description = tmp;
|
|
2943
2943
|
// Inline function 'kotlin.collections.associate' call
|
|
2944
|
-
var this_0 = _this__u8e3s4.
|
|
2944
|
+
var this_0 = _this__u8e3s4.i25_1.c26_1;
|
|
2945
2945
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2946
2946
|
// Inline function 'kotlin.collections.associateTo' call
|
|
2947
2947
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -2957,13 +2957,13 @@
|
|
|
2957
2957
|
// Inline function 'kotlin.collections.map' call
|
|
2958
2958
|
// Inline function 'kotlin.collections.filter' call
|
|
2959
2959
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2960
|
-
var this_1 = _this__u8e3s4.
|
|
2960
|
+
var this_1 = _this__u8e3s4.i25_1.c26_1;
|
|
2961
2961
|
var destination_0 = ArrayList_init_$Create$();
|
|
2962
2962
|
var tmp0_iterator_0 = this_1.g();
|
|
2963
2963
|
while (tmp0_iterator_0.h()) {
|
|
2964
2964
|
var element_0 = tmp0_iterator_0.i();
|
|
2965
2965
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2966
|
-
if (!element_0.
|
|
2966
|
+
if (!element_0.m24_1) {
|
|
2967
2967
|
destination_0.e(element_0);
|
|
2968
2968
|
}
|
|
2969
2969
|
}
|
|
@@ -2973,7 +2973,7 @@
|
|
|
2973
2973
|
while (tmp0_iterator_1.h()) {
|
|
2974
2974
|
var item = tmp0_iterator_1.i();
|
|
2975
2975
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2976
|
-
var tmp$ret$6 = item.
|
|
2976
|
+
var tmp$ret$6 = item.k24_1.b1();
|
|
2977
2977
|
destination_1.e(tmp$ret$6);
|
|
2978
2978
|
}
|
|
2979
2979
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -2989,7 +2989,7 @@
|
|
|
2989
2989
|
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, destination, VOID, tmp1_description, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_required);
|
|
2990
2990
|
}
|
|
2991
2991
|
function emit_3(_this__u8e3s4, $this) {
|
|
2992
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2992
|
+
var tmp0_safe_receiver = _this__u8e3s4.n25_1;
|
|
2993
2993
|
var tmp;
|
|
2994
2994
|
var tmp_0 = tmp0_safe_receiver;
|
|
2995
2995
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -3000,7 +3000,7 @@
|
|
|
3000
3000
|
var tmp1_description = tmp;
|
|
3001
3001
|
var tmp2_type = Type_STRING_getInstance_0();
|
|
3002
3002
|
// Inline function 'kotlin.collections.map' call
|
|
3003
|
-
var this_0 = _this__u8e3s4.
|
|
3003
|
+
var this_0 = _this__u8e3s4.p25_1;
|
|
3004
3004
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3005
3005
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3006
3006
|
var tmp0_iterator = this_0.g();
|
|
@@ -3013,7 +3013,7 @@
|
|
|
3013
3013
|
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);
|
|
3014
3014
|
}
|
|
3015
3015
|
function emit_4(_this__u8e3s4, $this) {
|
|
3016
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3016
|
+
var tmp0_safe_receiver = _this__u8e3s4.d25_1;
|
|
3017
3017
|
var tmp;
|
|
3018
3018
|
var tmp_0 = tmp0_safe_receiver;
|
|
3019
3019
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -3024,7 +3024,7 @@
|
|
|
3024
3024
|
var tmp1_description = tmp;
|
|
3025
3025
|
var tmp2_type = Type_STRING_getInstance_0();
|
|
3026
3026
|
// Inline function 'kotlin.collections.map' call
|
|
3027
|
-
var this_0 = _this__u8e3s4.
|
|
3027
|
+
var this_0 = _this__u8e3s4.f25_1;
|
|
3028
3028
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3029
3029
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3030
3030
|
var tmp0_iterator = this_0.g();
|
|
@@ -3045,7 +3045,7 @@
|
|
|
3045
3045
|
while (tmp0_iterator.h()) {
|
|
3046
3046
|
var element = tmp0_iterator.i();
|
|
3047
3047
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
3048
|
-
if (element.
|
|
3048
|
+
if (element.p23_1.equals(method)) {
|
|
3049
3049
|
destination.e(element);
|
|
3050
3050
|
}
|
|
3051
3051
|
}
|
|
@@ -3061,8 +3061,8 @@
|
|
|
3061
3061
|
return firstOrNull(destination_0);
|
|
3062
3062
|
}
|
|
3063
3063
|
function emit_6(_this__u8e3s4, $this) {
|
|
3064
|
-
var
|
|
3065
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3064
|
+
var tmp2_operationId = _this__u8e3s4.o23_1.b1();
|
|
3065
|
+
var tmp0_safe_receiver = _this__u8e3s4.n23_1;
|
|
3066
3066
|
var tmp;
|
|
3067
3067
|
var tmp_0 = tmp0_safe_receiver;
|
|
3068
3068
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -3070,11 +3070,11 @@
|
|
|
3070
3070
|
} else {
|
|
3071
3071
|
tmp = _Comment___get_value__impl__8r3pla(tmp0_safe_receiver);
|
|
3072
3072
|
}
|
|
3073
|
-
var
|
|
3073
|
+
var tmp3_description = tmp;
|
|
3074
3074
|
// Inline function 'kotlin.collections.map' call
|
|
3075
3075
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3076
3076
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
3077
|
-
var this_0 = _this__u8e3s4.
|
|
3077
|
+
var this_0 = _this__u8e3s4.q23_1;
|
|
3078
3078
|
var destination = ArrayList_init_$Create$();
|
|
3079
3079
|
var tmp0_iterator = this_0.g();
|
|
3080
3080
|
while (tmp0_iterator.h()) {
|
|
@@ -3094,7 +3094,7 @@
|
|
|
3094
3094
|
}
|
|
3095
3095
|
var tmp_1 = destination_0;
|
|
3096
3096
|
// Inline function 'kotlin.collections.map' call
|
|
3097
|
-
var this_1 = _this__u8e3s4.
|
|
3097
|
+
var this_1 = _this__u8e3s4.r23_1;
|
|
3098
3098
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3099
3099
|
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
3100
3100
|
var tmp0_iterator_1 = this_1.g();
|
|
@@ -3106,7 +3106,7 @@
|
|
|
3106
3106
|
}
|
|
3107
3107
|
var tmp_2 = plus(tmp_1, destination_1);
|
|
3108
3108
|
// Inline function 'kotlin.collections.map' call
|
|
3109
|
-
var this_2 = _this__u8e3s4.
|
|
3109
|
+
var this_2 = _this__u8e3s4.s23_1;
|
|
3110
3110
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3111
3111
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
|
|
3112
3112
|
var tmp0_iterator_2 = this_2.g();
|
|
@@ -3116,11 +3116,11 @@
|
|
|
3116
3116
|
var tmp$ret$8 = emitParameter_0(item_1, OpenApiV3Emitter_getInstance(), ParameterLocation_HEADER_getInstance_0());
|
|
3117
3117
|
destination_2.e(tmp$ret$8);
|
|
3118
3118
|
}
|
|
3119
|
-
var
|
|
3120
|
-
// Inline function 'kotlin.
|
|
3119
|
+
var tmp4_parameters = plus(tmp_2, destination_2);
|
|
3120
|
+
// Inline function 'kotlin.takeIf' call
|
|
3121
3121
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3122
3122
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3123
|
-
var this_3 = _this__u8e3s4.
|
|
3123
|
+
var this_3 = _this__u8e3s4.u23_1;
|
|
3124
3124
|
var destination_3 = ArrayList_init_$Create$();
|
|
3125
3125
|
// Inline function 'kotlin.collections.forEach' call
|
|
3126
3126
|
var tmp0_iterator_3 = this_3.g();
|
|
@@ -3128,7 +3128,7 @@
|
|
|
3128
3128
|
var element_0 = tmp0_iterator_3.i();
|
|
3129
3129
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3130
3130
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
3131
|
-
var tmp0_safe_receiver_0 = element_0.
|
|
3131
|
+
var tmp0_safe_receiver_0 = element_0.b24_1;
|
|
3132
3132
|
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : emit_7(tmp0_safe_receiver_0, OpenApiV3Emitter_getInstance());
|
|
3133
3133
|
if (tmp0_safe_receiver_1 == null)
|
|
3134
3134
|
null;
|
|
@@ -3141,51 +3141,60 @@
|
|
|
3141
3141
|
var this_4 = toMap(destination_3);
|
|
3142
3142
|
// Inline function 'kotlin.contracts.contract' call
|
|
3143
3143
|
var tmp_3;
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
} else {
|
|
3144
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
3145
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3146
|
+
if (!this_4.l()) {
|
|
3148
3147
|
tmp_3 = this_4;
|
|
3148
|
+
} else {
|
|
3149
|
+
tmp_3 = null;
|
|
3149
3150
|
}
|
|
3150
|
-
var
|
|
3151
|
-
var
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.m24_1;
|
|
3171
|
-
if (tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs) {
|
|
3172
|
-
tmp$ret$17 = true;
|
|
3151
|
+
var tmp1_safe_receiver = tmp_3;
|
|
3152
|
+
var tmp_4;
|
|
3153
|
+
if (tmp1_safe_receiver == null) {
|
|
3154
|
+
tmp_4 = null;
|
|
3155
|
+
} else {
|
|
3156
|
+
// Inline function 'kotlin.let' call
|
|
3157
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
3158
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
3159
|
+
var tmp$ret$18;
|
|
3160
|
+
$l$block_0: {
|
|
3161
|
+
// Inline function 'kotlin.collections.any' call
|
|
3162
|
+
var this_5 = _this__u8e3s4.u23_1;
|
|
3163
|
+
var tmp_5;
|
|
3164
|
+
if (isInterface(this_5, Collection)) {
|
|
3165
|
+
tmp_5 = this_5.l();
|
|
3166
|
+
} else {
|
|
3167
|
+
tmp_5 = false;
|
|
3168
|
+
}
|
|
3169
|
+
if (tmp_5) {
|
|
3170
|
+
tmp$ret$18 = false;
|
|
3173
3171
|
break $l$block_0;
|
|
3174
3172
|
}
|
|
3173
|
+
var tmp0_iterator_4 = this_5.g();
|
|
3174
|
+
while (tmp0_iterator_4.h()) {
|
|
3175
|
+
var element_1 = tmp0_iterator_4.i();
|
|
3176
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3177
|
+
var tmp0_safe_receiver_2 = element_1.b24_1;
|
|
3178
|
+
if ((tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.e24_1) === false) {
|
|
3179
|
+
tmp$ret$18 = true;
|
|
3180
|
+
break $l$block_0;
|
|
3181
|
+
}
|
|
3182
|
+
}
|
|
3183
|
+
tmp$ret$18 = false;
|
|
3175
3184
|
}
|
|
3176
|
-
tmp$ret$
|
|
3185
|
+
tmp_4 = new RequestBodyObject(VOID, tmp1_safe_receiver, tmp$ret$18);
|
|
3177
3186
|
}
|
|
3178
|
-
var
|
|
3187
|
+
var tmp5_requestBody = tmp_4;
|
|
3179
3188
|
// Inline function 'kotlin.collections.map' call
|
|
3180
3189
|
// Inline function 'kotlin.collections.groupBy' call
|
|
3181
3190
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
3182
|
-
var this_6 = _this__u8e3s4.
|
|
3191
|
+
var this_6 = _this__u8e3s4.v23_1;
|
|
3183
3192
|
var destination_4 = LinkedHashMap_init_$Create$_0();
|
|
3184
3193
|
var tmp0_iterator_5 = this_6.g();
|
|
3185
3194
|
while (tmp0_iterator_5.h()) {
|
|
3186
3195
|
var element_2 = tmp0_iterator_5.i();
|
|
3187
3196
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
3188
|
-
var key = element_2.
|
|
3197
|
+
var key = element_2.w23_1;
|
|
3189
3198
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
3190
3199
|
var value = destination_4.f2(key);
|
|
3191
3200
|
var tmp_6;
|
|
@@ -3220,7 +3229,7 @@
|
|
|
3220
3229
|
while (tmp0_iterator_7.h()) {
|
|
3221
3230
|
var element_3 = tmp0_iterator_7.i();
|
|
3222
3231
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3223
|
-
var list_0 = element_3.
|
|
3232
|
+
var list_0 = element_3.x23_1;
|
|
3224
3233
|
addAll(destination_6, list_0);
|
|
3225
3234
|
}
|
|
3226
3235
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_6, 10)), 16);
|
|
@@ -3234,7 +3243,7 @@
|
|
|
3234
3243
|
var pair = emitHeader(element_4, OpenApiV3Emitter_getInstance());
|
|
3235
3244
|
destination_7.m2(pair.ce_1, pair.de_1);
|
|
3236
3245
|
}
|
|
3237
|
-
var tmp1_description = _this__u8e3s4.
|
|
3246
|
+
var tmp1_description = _this__u8e3s4.o23_1.b1() + ' ' + statusCode + ' response';
|
|
3238
3247
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
3239
3248
|
// Inline function 'kotlin.collections.associate' call
|
|
3240
3249
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -3246,7 +3255,7 @@
|
|
|
3246
3255
|
var element_5 = tmp0_iterator_9.i();
|
|
3247
3256
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3248
3257
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3249
|
-
var tmp0_safe_receiver_3 = element_5.
|
|
3258
|
+
var tmp0_safe_receiver_3 = element_5.y23_1;
|
|
3250
3259
|
if (tmp0_safe_receiver_3 == null)
|
|
3251
3260
|
null;
|
|
3252
3261
|
else {
|
|
@@ -3275,36 +3284,36 @@
|
|
|
3275
3284
|
tmp_8 = destination_9;
|
|
3276
3285
|
}
|
|
3277
3286
|
var tmp2_content = tmp_8;
|
|
3278
|
-
var tmp$ret$
|
|
3279
|
-
destination_5.e(tmp$ret$
|
|
3287
|
+
var tmp$ret$45 = to(new StatusCode_0(tmp_7), new ResponseObject_0(tmp1_description, destination_7, tmp2_content));
|
|
3288
|
+
destination_5.e(tmp$ret$45);
|
|
3280
3289
|
}
|
|
3281
|
-
var
|
|
3282
|
-
return new OperationObject_0(VOID, VOID,
|
|
3290
|
+
var tmp6_responses = toMap(destination_5);
|
|
3291
|
+
return new OperationObject_0(VOID, VOID, tmp3_description, VOID, tmp2_operationId, tmp4_parameters, tmp5_requestBody, tmp6_responses);
|
|
3283
3292
|
}
|
|
3284
3293
|
function emitSegment_0(_this__u8e3s4, $this) {
|
|
3285
3294
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenApiV3Emitter$emitSegment$lambda);
|
|
3286
3295
|
}
|
|
3287
3296
|
function emitParameter_0(_this__u8e3s4, $this, location) {
|
|
3288
|
-
var tmp0_name = _this__u8e3s4.
|
|
3289
|
-
var tmp1_schema = emitSchema_0(_this__u8e3s4.
|
|
3297
|
+
var tmp0_name = _this__u8e3s4.k24_1.b1();
|
|
3298
|
+
var tmp1_schema = emitSchema_0(_this__u8e3s4.l24_1, $this);
|
|
3290
3299
|
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_schema, VOID, VOID, VOID, tmp0_name, location);
|
|
3291
3300
|
}
|
|
3292
3301
|
function emitParameter_1(_this__u8e3s4, $this) {
|
|
3293
3302
|
var tmp0_in = ParameterLocation_PATH_getInstance_0();
|
|
3294
|
-
var tmp1_name = _this__u8e3s4.
|
|
3295
|
-
var tmp2_schema = emitSchema_0(_this__u8e3s4.
|
|
3303
|
+
var tmp1_name = _this__u8e3s4.q24_1.b1();
|
|
3304
|
+
var tmp2_schema = emitSchema_0(_this__u8e3s4.r24_1, $this);
|
|
3296
3305
|
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_schema, VOID, VOID, VOID, tmp1_name, tmp0_in);
|
|
3297
3306
|
}
|
|
3298
3307
|
function emitHeader(_this__u8e3s4, $this) {
|
|
3299
|
-
return to(_this__u8e3s4.
|
|
3308
|
+
return to(_this__u8e3s4.k24_1.b1(), emitHeader_0(_this__u8e3s4.l24_1, $this));
|
|
3300
3309
|
}
|
|
3301
3310
|
function emitSchema(_this__u8e3s4, $this) {
|
|
3302
|
-
return to(_this__u8e3s4.
|
|
3311
|
+
return to(_this__u8e3s4.k24_1.b1(), emitSchema_0(_this__u8e3s4.l24_1, $this));
|
|
3303
3312
|
}
|
|
3304
3313
|
function emitHeader_0(_this__u8e3s4, $this) {
|
|
3305
3314
|
var tmp;
|
|
3306
3315
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3307
|
-
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.
|
|
3316
|
+
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.w22_1));
|
|
3308
3317
|
} else {
|
|
3309
3318
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3310
3319
|
tmp = new HeaderObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitSchema_0(_this__u8e3s4, $this));
|
|
@@ -3328,10 +3337,10 @@
|
|
|
3328
3337
|
// Inline function 'kotlin.let' call
|
|
3329
3338
|
var tmp;
|
|
3330
3339
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3331
|
-
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/schemas/' + _this__u8e3s4.
|
|
3340
|
+
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/schemas/' + _this__u8e3s4.w22_1));
|
|
3332
3341
|
} else {
|
|
3333
3342
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3334
|
-
tmp = new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType_1(_this__u8e3s4.
|
|
3343
|
+
tmp = new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType_1(_this__u8e3s4.f23_1, $this), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitFormat_0(_this__u8e3s4, $this));
|
|
3335
3344
|
} else {
|
|
3336
3345
|
if (_this__u8e3s4 instanceof Any) {
|
|
3337
3346
|
var message = 'Cannot map Any';
|
|
@@ -3349,7 +3358,7 @@
|
|
|
3349
3358
|
// Inline function 'kotlin.contracts.contract' call
|
|
3350
3359
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitSchema.<anonymous>' call
|
|
3351
3360
|
var it = tmp;
|
|
3352
|
-
return _this__u8e3s4.
|
|
3361
|
+
return _this__u8e3s4.u24() ? new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_OBJECT_getInstance_0(), VOID, VOID, VOID, VOID, VOID, VOID, it) : _this__u8e3s4.f24() ? new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance_0(), VOID, VOID, VOID, VOID, it) : it;
|
|
3353
3362
|
}
|
|
3354
3363
|
function emitType_1(_this__u8e3s4, $this) {
|
|
3355
3364
|
var tmp;
|
|
@@ -3377,16 +3386,16 @@
|
|
|
3377
3386
|
return tmp;
|
|
3378
3387
|
}
|
|
3379
3388
|
function emit_7(_this__u8e3s4, $this) {
|
|
3380
|
-
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)));
|
|
3381
3390
|
}
|
|
3382
3391
|
function emitFormat_0(_this__u8e3s4, $this) {
|
|
3383
3392
|
var tmp;
|
|
3384
3393
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3385
|
-
var t = _this__u8e3s4.
|
|
3394
|
+
var t = _this__u8e3s4.f23_1;
|
|
3386
3395
|
var tmp_0;
|
|
3387
3396
|
if (t instanceof Number_0) {
|
|
3388
3397
|
var tmp_1;
|
|
3389
|
-
switch (t.
|
|
3398
|
+
switch (t.j23_1.q2_1) {
|
|
3390
3399
|
case 0:
|
|
3391
3400
|
tmp_1 = 'float';
|
|
3392
3401
|
break;
|
|
@@ -3401,7 +3410,7 @@
|
|
|
3401
3410
|
} else {
|
|
3402
3411
|
if (t instanceof Integer) {
|
|
3403
3412
|
var tmp_2;
|
|
3404
|
-
switch (t.
|
|
3413
|
+
switch (t.l23_1.q2_1) {
|
|
3405
3414
|
case 0:
|
|
3406
3415
|
tmp_2 = 'int32';
|
|
3407
3416
|
break;
|
|
@@ -3430,10 +3439,10 @@
|
|
|
3430
3439
|
function OpenApiV3Emitter$emitSegment$lambda(it) {
|
|
3431
3440
|
var tmp;
|
|
3432
3441
|
if (it instanceof Param) {
|
|
3433
|
-
tmp = '{' + it.
|
|
3442
|
+
tmp = '{' + it.q24_1.b1() + '}';
|
|
3434
3443
|
} else {
|
|
3435
3444
|
if (it instanceof Literal) {
|
|
3436
|
-
tmp = it.
|
|
3445
|
+
tmp = it.b25_1;
|
|
3437
3446
|
} else {
|
|
3438
3447
|
noWhenBranchMatchedException();
|
|
3439
3448
|
}
|
|
@@ -3443,15 +3452,15 @@
|
|
|
3443
3452
|
function OpenApiV3Emitter() {
|
|
3444
3453
|
OpenApiV3Emitter_instance = this;
|
|
3445
3454
|
Emitter.call(this, get_noLogger());
|
|
3446
|
-
this.
|
|
3455
|
+
this.j2b_1 = '';
|
|
3447
3456
|
}
|
|
3448
|
-
protoOf(OpenApiV3Emitter).
|
|
3449
|
-
return this.
|
|
3457
|
+
protoOf(OpenApiV3Emitter).u25 = function () {
|
|
3458
|
+
return this.j2b_1;
|
|
3450
3459
|
};
|
|
3451
3460
|
protoOf(OpenApiV3Emitter).p22 = function (ast) {
|
|
3452
3461
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
3453
|
-
var this_0 = Common_getInstance().
|
|
3454
|
-
var value = this.
|
|
3462
|
+
var this_0 = Common_getInstance().l2a_1;
|
|
3463
|
+
var value = this.k2b(ast, null);
|
|
3455
3464
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3456
3465
|
var this_1 = this_0.mo();
|
|
3457
3466
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -3460,28 +3469,28 @@
|
|
|
3460
3469
|
var tmp$ret$2 = this_0.b15(tmp$ret$1, value);
|
|
3461
3470
|
return listOf(new Emitted('OpenAPIObject', tmp$ret$2));
|
|
3462
3471
|
};
|
|
3463
|
-
protoOf(OpenApiV3Emitter).
|
|
3464
|
-
return this.
|
|
3472
|
+
protoOf(OpenApiV3Emitter).z25 = function (type, ast) {
|
|
3473
|
+
return this.r26();
|
|
3465
3474
|
};
|
|
3466
|
-
protoOf(OpenApiV3Emitter).
|
|
3467
|
-
return this.
|
|
3475
|
+
protoOf(OpenApiV3Emitter).i26 = function (enum_0, ast) {
|
|
3476
|
+
return this.r26();
|
|
3468
3477
|
};
|
|
3469
|
-
protoOf(OpenApiV3Emitter).
|
|
3470
|
-
return this.
|
|
3478
|
+
protoOf(OpenApiV3Emitter).e26 = function (refined) {
|
|
3479
|
+
return this.r26();
|
|
3471
3480
|
};
|
|
3472
|
-
protoOf(OpenApiV3Emitter).
|
|
3473
|
-
return this.
|
|
3481
|
+
protoOf(OpenApiV3Emitter).m26 = function (endpoint) {
|
|
3482
|
+
return this.r26();
|
|
3474
3483
|
};
|
|
3475
|
-
protoOf(OpenApiV3Emitter).
|
|
3476
|
-
return this.
|
|
3484
|
+
protoOf(OpenApiV3Emitter).k26 = function (union) {
|
|
3485
|
+
return this.r26();
|
|
3477
3486
|
};
|
|
3478
|
-
protoOf(OpenApiV3Emitter).
|
|
3479
|
-
return this.
|
|
3487
|
+
protoOf(OpenApiV3Emitter).l26 = function (channel) {
|
|
3488
|
+
return this.r26();
|
|
3480
3489
|
};
|
|
3481
|
-
protoOf(OpenApiV3Emitter).
|
|
3482
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
3490
|
+
protoOf(OpenApiV3Emitter).k2b = function (ast, options) {
|
|
3491
|
+
var tmp1_elvis_lhs = options == null ? null : options.l2b_1;
|
|
3483
3492
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
3484
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
3493
|
+
var tmp3_elvis_lhs = options == null ? null : options.m2b_1;
|
|
3485
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));
|
|
3486
3495
|
};
|
|
3487
3496
|
var OpenApiV3Emitter_instance;
|
|
@@ -3539,7 +3548,7 @@
|
|
|
3539
3548
|
while (tmp0_iterator_2.h()) {
|
|
3540
3549
|
var item_0 = tmp0_iterator_2.i();
|
|
3541
3550
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3542
|
-
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().m2a([name, 'Parameter', item_0.w1v_1]));
|
|
3543
3552
|
destination_2.e(tmp$ret$9);
|
|
3544
3553
|
}
|
|
3545
3554
|
var query = destination_2;
|
|
@@ -3561,7 +3570,7 @@
|
|
|
3561
3570
|
while (tmp0_iterator_4.h()) {
|
|
3562
3571
|
var item_1 = tmp0_iterator_4.i();
|
|
3563
3572
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3564
|
-
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().m2a([name, 'Parameter', item_1.w1v_1]));
|
|
3565
3574
|
destination_4.e(tmp$ret$15);
|
|
3566
3575
|
}
|
|
3567
3576
|
var headers = destination_4;
|
|
@@ -3583,7 +3592,7 @@
|
|
|
3583
3592
|
while (tmp0_iterator_6.h()) {
|
|
3584
3593
|
var item_2 = tmp0_iterator_6.i();
|
|
3585
3594
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3586
|
-
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().m2a([name, 'Parameter', item_2.w1v_1]));
|
|
3587
3596
|
destination_6.e(tmp$ret$21);
|
|
3588
3597
|
}
|
|
3589
3598
|
var cookies = destination_6;
|
|
@@ -3628,7 +3637,7 @@
|
|
|
3628
3637
|
tmp_2 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, schema);
|
|
3629
3638
|
} else {
|
|
3630
3639
|
if (schema instanceof SchemaObject_0) {
|
|
3631
|
-
tmp_2 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_getInstance().
|
|
3640
|
+
tmp_2 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_getInstance().m2a([name, 'RequestBody']));
|
|
3632
3641
|
} else {
|
|
3633
3642
|
if (schema == null) {
|
|
3634
3643
|
tmp_2 = null;
|
|
@@ -3710,7 +3719,7 @@
|
|
|
3710
3719
|
while (tmp0_iterator_10.h()) {
|
|
3711
3720
|
var item_5 = tmp0_iterator_10.i();
|
|
3712
3721
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3713
|
-
var tmp$ret$44 = toField_4(_this__u8e3s4, OpenApiV3Parser_instance, resolve_5(_this__u8e3s4, OpenApiV3Parser_instance, item_5.b1()), item_5.a1(), Common_getInstance().
|
|
3722
|
+
var tmp$ret$44 = toField_4(_this__u8e3s4, OpenApiV3Parser_instance, resolve_5(_this__u8e3s4, OpenApiV3Parser_instance, item_5.b1()), item_5.a1(), Common_getInstance().m2a([name, 'ResponseHeader']));
|
|
3714
3723
|
destination_10.e(tmp$ret$44);
|
|
3715
3724
|
}
|
|
3716
3725
|
tmp_7 = destination_10;
|
|
@@ -3724,7 +3733,7 @@
|
|
|
3724
3733
|
tmp_10 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, schema_0);
|
|
3725
3734
|
} else {
|
|
3726
3735
|
if (schema_0 instanceof SchemaObject_0) {
|
|
3727
|
-
tmp_10 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema_0, Common_getInstance().
|
|
3736
|
+
tmp_10 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema_0, Common_getInstance().m2a([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
3728
3737
|
} else {
|
|
3729
3738
|
if (schema_0 == null) {
|
|
3730
3739
|
tmp_10 = new Any(false);
|
|
@@ -3792,7 +3801,7 @@
|
|
|
3792
3801
|
switch (tmp0_subject == null ? -1 : tmp0_subject.q2_1) {
|
|
3793
3802
|
case -1:
|
|
3794
3803
|
case 5:
|
|
3795
|
-
tmp_0 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_getInstance().
|
|
3804
|
+
tmp_0 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_getInstance().m2a([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
3796
3805
|
break;
|
|
3797
3806
|
case 4:
|
|
3798
3807
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -3805,7 +3814,7 @@
|
|
|
3805
3814
|
// Inline function 'kotlin.let' call
|
|
3806
3815
|
// Inline function 'kotlin.contracts.contract' call
|
|
3807
3816
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatMapResponse.<anonymous>.<anonymous>' call
|
|
3808
|
-
tmp_1 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
3817
|
+
tmp_1 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp1_safe_receiver, Common_getInstance().m2a([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
3809
3818
|
}
|
|
3810
3819
|
|
|
3811
3820
|
var tmp0_elvis_lhs_0 = tmp_1;
|
|
@@ -3859,7 +3868,7 @@
|
|
|
3859
3868
|
while (tmp0_iterator_0.h()) {
|
|
3860
3869
|
var element_0 = tmp0_iterator_0.i();
|
|
3861
3870
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseComponents.<anonymous>' call
|
|
3862
|
-
var list = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, element_0.b1(), Common_getInstance().
|
|
3871
|
+
var list = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, element_0.b1(), Common_getInstance().m2a([element_0.a1()]));
|
|
3863
3872
|
addAll(destination_0, list);
|
|
3864
3873
|
}
|
|
3865
3874
|
return destination_0;
|
|
@@ -3876,7 +3885,7 @@
|
|
|
3876
3885
|
// Inline function 'kotlin.let' call
|
|
3877
3886
|
// Inline function 'kotlin.contracts.contract' call
|
|
3878
3887
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toName.<anonymous>' call
|
|
3879
|
-
tmp = Common_getInstance().
|
|
3888
|
+
tmp = Common_getInstance().m2a([tmp0_safe_receiver]);
|
|
3880
3889
|
}
|
|
3881
3890
|
return tmp;
|
|
3882
3891
|
}
|
|
@@ -3966,7 +3975,7 @@
|
|
|
3966
3975
|
// Inline function 'kotlin.let' call
|
|
3967
3976
|
// Inline function 'kotlin.contracts.contract' call
|
|
3968
3977
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toSegments.<anonymous>.<anonymous>' call
|
|
3969
|
-
tmp_1 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp4_safe_receiver, Common_getInstance().
|
|
3978
|
+
tmp_1 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp4_safe_receiver, Common_getInstance().m2a([name, 'Parameter', param]));
|
|
3970
3979
|
}
|
|
3971
3980
|
|
|
3972
3981
|
var tmp5_safe_receiver = tmp_1;
|
|
@@ -4376,7 +4385,7 @@
|
|
|
4376
4385
|
tmp_6 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, item);
|
|
4377
4386
|
} else {
|
|
4378
4387
|
if (item instanceof SchemaObject_0) {
|
|
4379
|
-
tmp_6 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, item, Common_getInstance().
|
|
4388
|
+
tmp_6 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, item, Common_getInstance().m2a([name, index_0.toString()]));
|
|
4380
4389
|
} else {
|
|
4381
4390
|
noWhenBranchMatchedException();
|
|
4382
4391
|
}
|
|
@@ -4404,7 +4413,7 @@
|
|
|
4404
4413
|
tmp_8 = emptyList();
|
|
4405
4414
|
} else {
|
|
4406
4415
|
if (element instanceof SchemaObject_0) {
|
|
4407
|
-
tmp_8 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, element, Common_getInstance().
|
|
4416
|
+
tmp_8 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, element, Common_getInstance().m2a([name, index_2.toString()]));
|
|
4408
4417
|
} else {
|
|
4409
4418
|
noWhenBranchMatchedException();
|
|
4410
4419
|
}
|
|
@@ -4435,7 +4444,7 @@
|
|
|
4435
4444
|
while (tmp0_iterator_2.h()) {
|
|
4436
4445
|
var e = tmp0_iterator_2.i();
|
|
4437
4446
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
|
|
4438
|
-
var key = e.
|
|
4447
|
+
var key = e.k24_1;
|
|
4439
4448
|
if (set.e(key)) {
|
|
4440
4449
|
list_1.e(e);
|
|
4441
4450
|
}
|
|
@@ -4476,7 +4485,7 @@
|
|
|
4476
4485
|
var key_0 = element_2.a1();
|
|
4477
4486
|
// Inline function 'kotlin.collections.component2' call
|
|
4478
4487
|
var value = element_2.b1();
|
|
4479
|
-
var list_2 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().
|
|
4488
|
+
var list_2 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().m2a([name, key_0]));
|
|
4480
4489
|
addAll(destination_3, list_2);
|
|
4481
4490
|
}
|
|
4482
4491
|
var list_3 = destination_3;
|
|
@@ -4525,7 +4534,7 @@
|
|
|
4525
4534
|
var key_1 = element_3.a1();
|
|
4526
4535
|
// Inline function 'kotlin.collections.component2' call
|
|
4527
4536
|
var value_0 = element_3.b1();
|
|
4528
|
-
var list_4 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value_0, Common_getInstance().
|
|
4537
|
+
var list_4 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value_0, Common_getInstance().m2a([name, key_1]));
|
|
4529
4538
|
addAll(destination_5, list_4);
|
|
4530
4539
|
}
|
|
4531
4540
|
|
|
@@ -4547,7 +4556,7 @@
|
|
|
4547
4556
|
tmp_14 = emptyList();
|
|
4548
4557
|
} else {
|
|
4549
4558
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
4550
|
-
tmp_14 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, tmp6_safe_receiver, Common_getInstance().
|
|
4559
|
+
tmp_14 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, tmp6_safe_receiver, Common_getInstance().m2a([name, 'array']));
|
|
4551
4560
|
} else {
|
|
4552
4561
|
noWhenBranchMatchedException();
|
|
4553
4562
|
}
|
|
@@ -4605,7 +4614,7 @@
|
|
|
4605
4614
|
}
|
|
4606
4615
|
tmp = tmp_0;
|
|
4607
4616
|
} else if (!(schema.o1x_1 == null)) {
|
|
4608
|
-
tmp = new Custom(Common_getInstance().
|
|
4617
|
+
tmp = new Custom(Common_getInstance().m2a([getReference_0(referencingObject, OpenApiV3Parser_instance)]), false, false);
|
|
4609
4618
|
} else if (isPrimitive_0(schema.o1w_1)) {
|
|
4610
4619
|
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.o1w_1), OpenApiV3Parser_instance, schema.x1w_1), false, false);
|
|
4611
4620
|
} else if (equals(schema.o1w_1, Type_ARRAY_getInstance_0())) {
|
|
@@ -4615,7 +4624,7 @@
|
|
|
4615
4624
|
tmp_1 = toIterable_0(toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, items));
|
|
4616
4625
|
} else {
|
|
4617
4626
|
if (items instanceof SchemaObject_0) {
|
|
4618
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
4627
|
+
tmp_1 = new Custom(Common_getInstance().m2a([getReference_0(referencingObject, OpenApiV3Parser_instance), 'Array']), true);
|
|
4619
4628
|
} else {
|
|
4620
4629
|
if (items == null) {
|
|
4621
4630
|
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi_0(reference.c1w_1);
|
|
@@ -4627,7 +4636,7 @@
|
|
|
4627
4636
|
}
|
|
4628
4637
|
tmp = tmp_1;
|
|
4629
4638
|
} else {
|
|
4630
|
-
tmp = new Custom(Common_getInstance().
|
|
4639
|
+
tmp = new Custom(Common_getInstance().m2a([getReference_0(referencingObject, OpenApiV3Parser_instance)]), false);
|
|
4631
4640
|
}
|
|
4632
4641
|
return tmp;
|
|
4633
4642
|
}
|
|
@@ -4782,7 +4791,7 @@
|
|
|
4782
4791
|
var tmp$ret$0 = tmp_0;
|
|
4783
4792
|
result.m2(element, tmp$ret$0);
|
|
4784
4793
|
}
|
|
4785
|
-
return tmp.
|
|
4794
|
+
return tmp.n2a(result);
|
|
4786
4795
|
}
|
|
4787
4796
|
function getReference_0(_this__u8e3s4, $this) {
|
|
4788
4797
|
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.c1w_1), ['/']), 3);
|
|
@@ -4835,7 +4844,7 @@
|
|
|
4835
4844
|
var tmp;
|
|
4836
4845
|
if (value instanceof SchemaObject_0) {
|
|
4837
4846
|
var tmp_0 = new FieldIdentifier(key);
|
|
4838
|
-
var tmp_1 = !(value.o1x_1 == null) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().
|
|
4847
|
+
var tmp_1 = !(value.o1x_1 == null) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().m2a([name, key])) : equals(value.o1w_1, Type_ARRAY_getInstance_0()) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().m2a([name, key, 'Array'])) : toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().m2a([name, key]));
|
|
4839
4848
|
var tmp1_safe_receiver = schema.n1x_1;
|
|
4840
4849
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p1(key);
|
|
4841
4850
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
@@ -4904,19 +4913,19 @@
|
|
|
4904
4913
|
return new Field(tmp_0, it, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
4905
4914
|
}
|
|
4906
4915
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
4907
|
-
this.
|
|
4908
|
-
this.
|
|
4909
|
-
this.
|
|
4910
|
-
this.
|
|
4916
|
+
this.n2b_1 = path;
|
|
4917
|
+
this.o2b_1 = pathItem;
|
|
4918
|
+
this.p2b_1 = method;
|
|
4919
|
+
this.q2b_1 = operation;
|
|
4911
4920
|
}
|
|
4912
4921
|
protoOf(FlattenRequest_0).toString = function () {
|
|
4913
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
4922
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.n2b_1) + ', pathItem=' + this.o2b_1.toString() + ', method=' + this.p2b_1.toString() + ', operation=' + this.q2b_1.toString() + ')';
|
|
4914
4923
|
};
|
|
4915
4924
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
4916
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
4917
|
-
result = imul(result, 31) + this.
|
|
4918
|
-
result = imul(result, 31) + this.
|
|
4919
|
-
result = imul(result, 31) + this.
|
|
4925
|
+
var result = Path__hashCode_impl_go73kd_0(this.n2b_1);
|
|
4926
|
+
result = imul(result, 31) + this.o2b_1.hashCode() | 0;
|
|
4927
|
+
result = imul(result, 31) + this.p2b_1.hashCode() | 0;
|
|
4928
|
+
result = imul(result, 31) + this.q2b_1.hashCode() | 0;
|
|
4920
4929
|
return result;
|
|
4921
4930
|
};
|
|
4922
4931
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -4925,13 +4934,13 @@
|
|
|
4925
4934
|
if (!(other instanceof FlattenRequest_0))
|
|
4926
4935
|
return false;
|
|
4927
4936
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
4928
|
-
if (!(this.
|
|
4937
|
+
if (!(this.n2b_1 === tmp0_other_with_cast.n2b_1))
|
|
4929
4938
|
return false;
|
|
4930
|
-
if (!this.
|
|
4939
|
+
if (!this.o2b_1.equals(tmp0_other_with_cast.o2b_1))
|
|
4931
4940
|
return false;
|
|
4932
|
-
if (!this.
|
|
4941
|
+
if (!this.p2b_1.equals(tmp0_other_with_cast.p2b_1))
|
|
4933
4942
|
return false;
|
|
4934
|
-
if (!this.
|
|
4943
|
+
if (!this.q2b_1.equals(tmp0_other_with_cast.q2b_1))
|
|
4935
4944
|
return false;
|
|
4936
4945
|
return true;
|
|
4937
4946
|
};
|
|
@@ -4980,23 +4989,23 @@
|
|
|
4980
4989
|
return destination_1;
|
|
4981
4990
|
}
|
|
4982
4991
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
4983
|
-
this.
|
|
4984
|
-
this.
|
|
4985
|
-
this.
|
|
4986
|
-
this.
|
|
4987
|
-
this.
|
|
4988
|
-
this.
|
|
4992
|
+
this.r2b_1 = path;
|
|
4993
|
+
this.s2b_1 = pathItem;
|
|
4994
|
+
this.t2b_1 = method;
|
|
4995
|
+
this.u2b_1 = operation;
|
|
4996
|
+
this.v2b_1 = statusCode;
|
|
4997
|
+
this.w2b_1 = response;
|
|
4989
4998
|
}
|
|
4990
4999
|
protoOf(FlattenResponse_0).toString = function () {
|
|
4991
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
5000
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.r2b_1) + ', pathItem=' + this.s2b_1.toString() + ', method=' + this.t2b_1.toString() + ', operation=' + this.u2b_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy_0(this.v2b_1) + ', response=' + toString(this.w2b_1) + ')';
|
|
4992
5001
|
};
|
|
4993
5002
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
4994
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
4995
|
-
result = imul(result, 31) + this.
|
|
4996
|
-
result = imul(result, 31) + this.
|
|
4997
|
-
result = imul(result, 31) + this.
|
|
4998
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.
|
|
4999
|
-
result = imul(result, 31) + hashCode(this.
|
|
5003
|
+
var result = Path__hashCode_impl_go73kd_0(this.r2b_1);
|
|
5004
|
+
result = imul(result, 31) + this.s2b_1.hashCode() | 0;
|
|
5005
|
+
result = imul(result, 31) + this.t2b_1.hashCode() | 0;
|
|
5006
|
+
result = imul(result, 31) + this.u2b_1.hashCode() | 0;
|
|
5007
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.v2b_1) | 0;
|
|
5008
|
+
result = imul(result, 31) + hashCode(this.w2b_1) | 0;
|
|
5000
5009
|
return result;
|
|
5001
5010
|
};
|
|
5002
5011
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -5005,17 +5014,17 @@
|
|
|
5005
5014
|
if (!(other instanceof FlattenResponse_0))
|
|
5006
5015
|
return false;
|
|
5007
5016
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
5008
|
-
if (!(this.
|
|
5017
|
+
if (!(this.r2b_1 === tmp0_other_with_cast.r2b_1))
|
|
5009
5018
|
return false;
|
|
5010
|
-
if (!this.
|
|
5019
|
+
if (!this.s2b_1.equals(tmp0_other_with_cast.s2b_1))
|
|
5011
5020
|
return false;
|
|
5012
|
-
if (!this.
|
|
5021
|
+
if (!this.t2b_1.equals(tmp0_other_with_cast.t2b_1))
|
|
5013
5022
|
return false;
|
|
5014
|
-
if (!this.
|
|
5023
|
+
if (!this.u2b_1.equals(tmp0_other_with_cast.u2b_1))
|
|
5015
5024
|
return false;
|
|
5016
|
-
if (!(this.
|
|
5025
|
+
if (!(this.v2b_1 === tmp0_other_with_cast.v2b_1))
|
|
5017
5026
|
return false;
|
|
5018
|
-
if (!equals(this.
|
|
5027
|
+
if (!equals(this.w2b_1, tmp0_other_with_cast.w2b_1))
|
|
5019
5028
|
return false;
|
|
5020
5029
|
return true;
|
|
5021
5030
|
};
|
|
@@ -5096,9 +5105,9 @@
|
|
|
5096
5105
|
}
|
|
5097
5106
|
function OpenApiV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
5098
5107
|
return function ($this$flatMapRequests) {
|
|
5099
|
-
var parameters = plus(resolveParameters_2($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.
|
|
5100
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5101
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5108
|
+
var parameters = plus(resolveParameters_2($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.o2b_1), resolveParameters_1($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.q2b_1));
|
|
5109
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.q2b_1, OpenApiV3Parser_instance);
|
|
5110
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.n2b_1, OpenApiV3Parser_instance) + $this$flatMapRequests.p2b_1.p2_1 : tmp0_elvis_lhs;
|
|
5102
5111
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5103
5112
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5104
5113
|
var destination = ArrayList_init_$Create$();
|
|
@@ -5114,7 +5123,7 @@
|
|
|
5114
5123
|
// Inline function 'kotlin.let' call
|
|
5115
5124
|
// Inline function 'kotlin.contracts.contract' call
|
|
5116
5125
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
5117
|
-
tmp = flatten_2($this_parseParameters, OpenApiV3Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
5126
|
+
tmp = flatten_2($this_parseParameters, OpenApiV3Parser_instance, tmp0_safe_receiver, Common_getInstance().m2a([name, 'Parameter', element.w1v_1]));
|
|
5118
5127
|
}
|
|
5119
5128
|
var tmp1_elvis_lhs = tmp;
|
|
5120
5129
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -5125,11 +5134,11 @@
|
|
|
5125
5134
|
}
|
|
5126
5135
|
function OpenApiV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
5127
5136
|
return function ($this$flatMapRequests) {
|
|
5128
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5129
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5137
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.q2b_1, OpenApiV3Parser_instance);
|
|
5138
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.n2b_1, OpenApiV3Parser_instance) + $this$flatMapRequests.p2b_1.p2_1 : tmp0_elvis_lhs;
|
|
5130
5139
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5131
5140
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5132
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
5141
|
+
var tmp1_safe_receiver = $this$flatMapRequests.q2b_1.z1t_1;
|
|
5133
5142
|
var tmp;
|
|
5134
5143
|
if (tmp1_safe_receiver == null) {
|
|
5135
5144
|
tmp = null;
|
|
@@ -5159,7 +5168,7 @@
|
|
|
5159
5168
|
switch (tmp0_subject == null ? -1 : tmp0_subject.q2_1) {
|
|
5160
5169
|
case -1:
|
|
5161
5170
|
case 5:
|
|
5162
|
-
tmp_1 = flatten_1($this_parseRequestBody, OpenApiV3Parser_instance, schema, Common_getInstance().
|
|
5171
|
+
tmp_1 = flatten_1($this_parseRequestBody, OpenApiV3Parser_instance, schema, Common_getInstance().m2a([name, 'RequestBody']));
|
|
5163
5172
|
break;
|
|
5164
5173
|
case 4:
|
|
5165
5174
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -5172,7 +5181,7 @@
|
|
|
5172
5181
|
// Inline function 'kotlin.let' call
|
|
5173
5182
|
// Inline function 'kotlin.contracts.contract' call
|
|
5174
5183
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
5175
|
-
tmp_2 = flatten_2($this_parseRequestBody, OpenApiV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
5184
|
+
tmp_2 = flatten_2($this_parseRequestBody, OpenApiV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().m2a([name, 'RequestBody']));
|
|
5176
5185
|
}
|
|
5177
5186
|
|
|
5178
5187
|
var tmp0_elvis_lhs_1 = tmp_2;
|
|
@@ -5204,15 +5213,15 @@
|
|
|
5204
5213
|
}
|
|
5205
5214
|
function OpenApiV3Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
5206
5215
|
return function ($this$flatMapResponses) {
|
|
5207
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.
|
|
5208
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.
|
|
5209
|
-
var response = $this$flatMapResponses.
|
|
5216
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.u2b_1, OpenApiV3Parser_instance);
|
|
5217
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.r2b_1, OpenApiV3Parser_instance) + $this$flatMapResponses.t2b_1.p2_1 : tmp0_elvis_lhs;
|
|
5218
|
+
var response = $this$flatMapResponses.w2b_1;
|
|
5210
5219
|
var tmp;
|
|
5211
5220
|
if (response instanceof ResponseObject_0) {
|
|
5212
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenApiV3Parser_instance, response, name, $this$flatMapResponses.
|
|
5221
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenApiV3Parser_instance, response, name, $this$flatMapResponses.v2b_1);
|
|
5213
5222
|
} else {
|
|
5214
5223
|
if (response instanceof ReferenceObject_0) {
|
|
5215
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenApiV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenApiV3Parser_instance, response).de_1, name, $this$flatMapResponses.
|
|
5224
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenApiV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenApiV3Parser_instance, response).de_1, name, $this$flatMapResponses.v2b_1);
|
|
5216
5225
|
} else {
|
|
5217
5226
|
noWhenBranchMatchedException();
|
|
5218
5227
|
}
|
|
@@ -5231,10 +5240,10 @@
|
|
|
5231
5240
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5232
5241
|
|
|
5233
5242
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
5234
|
-
tmp = tmp_0.
|
|
5243
|
+
tmp = tmp_0.m2a([tmp$ret$1]);
|
|
5235
5244
|
break;
|
|
5236
5245
|
case false:
|
|
5237
|
-
tmp = Common_getInstance().
|
|
5246
|
+
tmp = Common_getInstance().m2a([it]);
|
|
5238
5247
|
break;
|
|
5239
5248
|
default:
|
|
5240
5249
|
noWhenBranchMatchedException();
|
|
@@ -5244,14 +5253,14 @@
|
|
|
5244
5253
|
}
|
|
5245
5254
|
function OpenApiV3Parser() {
|
|
5246
5255
|
}
|
|
5247
|
-
protoOf(OpenApiV3Parser).
|
|
5248
|
-
return this.
|
|
5256
|
+
protoOf(OpenApiV3Parser).e2b = function (json, strict) {
|
|
5257
|
+
return this.x2b((new OpenAPI_0(Json(VOID, OpenApiV3Parser$parse$lambda(strict)))).i1g(json));
|
|
5249
5258
|
};
|
|
5250
|
-
protoOf(OpenApiV3Parser).
|
|
5259
|
+
protoOf(OpenApiV3Parser).y2b = function (json, strict, $super) {
|
|
5251
5260
|
strict = strict === VOID ? false : strict;
|
|
5252
|
-
return $super === VOID ? this.
|
|
5261
|
+
return $super === VOID ? this.e2b(json, strict) : $super.e2b.call(this, json, strict);
|
|
5253
5262
|
};
|
|
5254
|
-
protoOf(OpenApiV3Parser).
|
|
5263
|
+
protoOf(OpenApiV3Parser).x2b = function (_this__u8e3s4) {
|
|
5255
5264
|
// Inline function 'kotlin.collections.reduce' call
|
|
5256
5265
|
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();
|
|
5257
5266
|
if (!iterator.h())
|
|
@@ -5271,16 +5280,16 @@
|
|
|
5271
5280
|
function toMap_1(_this__u8e3s4) {
|
|
5272
5281
|
var tmp;
|
|
5273
5282
|
if (_this__u8e3s4 instanceof Custom) {
|
|
5274
|
-
tmp = _this__u8e3s4.
|
|
5283
|
+
tmp = _this__u8e3s4.p29(VOID, VOID, true);
|
|
5275
5284
|
} else {
|
|
5276
5285
|
if (_this__u8e3s4 instanceof Any) {
|
|
5277
|
-
tmp = _this__u8e3s4.
|
|
5286
|
+
tmp = _this__u8e3s4.j29(VOID, true);
|
|
5278
5287
|
} else {
|
|
5279
5288
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
5280
|
-
tmp = _this__u8e3s4.
|
|
5289
|
+
tmp = _this__u8e3s4.r29(VOID, VOID, true);
|
|
5281
5290
|
} else {
|
|
5282
5291
|
if (_this__u8e3s4 instanceof Unit) {
|
|
5283
|
-
tmp = _this__u8e3s4.
|
|
5292
|
+
tmp = _this__u8e3s4.n29(VOID, true);
|
|
5284
5293
|
} else {
|
|
5285
5294
|
noWhenBranchMatchedException();
|
|
5286
5295
|
}
|
|
@@ -5322,16 +5331,16 @@
|
|
|
5322
5331
|
function toIterable_0(_this__u8e3s4) {
|
|
5323
5332
|
var tmp;
|
|
5324
5333
|
if (_this__u8e3s4 instanceof Custom) {
|
|
5325
|
-
tmp = _this__u8e3s4.
|
|
5334
|
+
tmp = _this__u8e3s4.p29(VOID, true);
|
|
5326
5335
|
} else {
|
|
5327
5336
|
if (_this__u8e3s4 instanceof Any) {
|
|
5328
|
-
tmp = _this__u8e3s4.
|
|
5337
|
+
tmp = _this__u8e3s4.j29(true);
|
|
5329
5338
|
} else {
|
|
5330
5339
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
5331
|
-
tmp = _this__u8e3s4.
|
|
5340
|
+
tmp = _this__u8e3s4.r29(VOID, true);
|
|
5332
5341
|
} else {
|
|
5333
5342
|
if (_this__u8e3s4 instanceof Unit) {
|
|
5334
|
-
tmp = _this__u8e3s4.
|
|
5343
|
+
tmp = _this__u8e3s4.n29(true);
|
|
5335
5344
|
} else {
|
|
5336
5345
|
noWhenBranchMatchedException();
|
|
5337
5346
|
}
|