@flock/wirespec 0.10.0 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arrow-arrow-atomic.js +2 -2
- package/arrow-arrow-continuations.js +1 -1
- package/arrow-arrow-core.js +22 -22
- package/clikt-clikt.js +1253 -1253
- package/colormath-root-colormath.js +452 -452
- package/kotlin-kotlin-stdlib.js +306 -305
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-openapi-bindings.js +29 -29
- package/kotlin-rgxgen.js +1827 -1827
- package/kotlinx-serialization-kotlinx-serialization-core.js +109 -109
- package/kotlinx-serialization-kotlinx-serialization-json.js +87 -87
- package/markdown.js +1925 -1925
- package/mordant-mordant.js +1679 -1679
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +1140 -1224
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +271 -271
- package/wirespec-src-converter-openapi.js +285 -285
- package/wirespec-src-plugin-arguments.js +102 -102
- package/wirespec-src-plugin-cli.js +146 -146
- package/wirespec-src-plugin-cli.js.map +1 -1
- package/wirespec-src-plugin-npm.js +13 -13
- package/wirespec-src-tools-generator.js +24 -24
|
@@ -24,34 +24,34 @@
|
|
|
24
24
|
var imul = Math.imul;
|
|
25
25
|
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.b2;
|
|
26
26
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
27
|
-
var split = kotlin_kotlin.$_$.
|
|
28
|
-
var addAll = kotlin_kotlin.$_$.
|
|
27
|
+
var split = kotlin_kotlin.$_$.nd;
|
|
28
|
+
var addAll = kotlin_kotlin.$_$.y4;
|
|
29
29
|
var Unit_instance = kotlin_kotlin.$_$.g4;
|
|
30
30
|
var VOID = kotlin_kotlin.$_$.g;
|
|
31
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
32
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
33
|
-
var to = kotlin_kotlin.$_$.
|
|
34
|
-
var toMap = kotlin_kotlin.$_$.
|
|
35
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
36
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
31
|
+
var joinToString = kotlin_kotlin.$_$.s6;
|
|
32
|
+
var protoOf = kotlin_kotlin.$_$.wa;
|
|
33
|
+
var to = kotlin_kotlin.$_$.gg;
|
|
34
|
+
var toMap = kotlin_kotlin.$_$.m8;
|
|
35
|
+
var initMetadataForObject = kotlin_kotlin.$_$.ba;
|
|
36
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.i5;
|
|
37
37
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.k;
|
|
38
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
39
|
-
var distinct = kotlin_kotlin.$_$.
|
|
40
|
-
var take = kotlin_kotlin.$_$.
|
|
38
|
+
var firstOrNull = kotlin_kotlin.$_$.g6;
|
|
39
|
+
var distinct = kotlin_kotlin.$_$.y5;
|
|
40
|
+
var take = kotlin_kotlin.$_$.f8;
|
|
41
41
|
var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e1;
|
|
42
42
|
var ParameterObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f;
|
|
43
43
|
var ParameterLocation_QUERY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h1;
|
|
44
|
-
var plus = kotlin_kotlin.$_$.
|
|
44
|
+
var plus = kotlin_kotlin.$_$.r7;
|
|
45
45
|
var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f1;
|
|
46
|
-
var mapCapacity = kotlin_kotlin.$_$.
|
|
47
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
46
|
+
var mapCapacity = kotlin_kotlin.$_$.i7;
|
|
47
|
+
var coerceAtLeast = kotlin_kotlin.$_$.hb;
|
|
48
48
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
49
49
|
var _StatusCode___init__impl__t1yi9q = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f2;
|
|
50
50
|
var HeaderObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b;
|
|
51
51
|
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.x;
|
|
52
52
|
var Type_ARRAY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i1;
|
|
53
53
|
var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k;
|
|
54
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
54
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.dg;
|
|
55
55
|
var StatusCode = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l;
|
|
56
56
|
var ResponseObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j;
|
|
57
57
|
var OperationObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e;
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.o;
|
|
68
68
|
var Param = kotlin_community_flock_wirespec_compiler_core.$_$.p;
|
|
69
69
|
var InfoObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c;
|
|
70
|
-
var listOf = kotlin_kotlin.$_$.
|
|
70
|
+
var listOf = kotlin_kotlin.$_$.g7;
|
|
71
71
|
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.q;
|
|
72
72
|
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.u;
|
|
73
73
|
var _Path___init__impl__6uf4pw = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y1;
|
|
@@ -84,25 +84,25 @@
|
|
|
84
84
|
var PathItemObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
|
|
85
85
|
var Refined = kotlin_community_flock_wirespec_compiler_core.$_$.z;
|
|
86
86
|
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.b1;
|
|
87
|
-
var plus_0 = kotlin_kotlin.$_$.
|
|
87
|
+
var plus_0 = kotlin_kotlin.$_$.n7;
|
|
88
88
|
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.r;
|
|
89
89
|
var JsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.h;
|
|
90
90
|
var SwaggerObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m;
|
|
91
|
-
var toString = kotlin_kotlin.$_$.
|
|
91
|
+
var toString = kotlin_kotlin.$_$.ab;
|
|
92
92
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.l1;
|
|
93
93
|
var _Ref___init__impl__7qfl46 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c2;
|
|
94
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
95
|
-
var NotImplementedError = kotlin_kotlin.$_$.
|
|
94
|
+
var emptyList = kotlin_kotlin.$_$.b6;
|
|
95
|
+
var NotImplementedError = kotlin_kotlin.$_$.cf;
|
|
96
96
|
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.k;
|
|
97
97
|
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.m;
|
|
98
|
-
var emptyMap = kotlin_kotlin.$_$.
|
|
98
|
+
var emptyMap = kotlin_kotlin.$_$.c6;
|
|
99
99
|
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i2;
|
|
100
100
|
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.n;
|
|
101
101
|
var HashSet_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
102
102
|
var Companion_instance = kotlin_community_flock_wirespec_compiler_core.$_$.c2;
|
|
103
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
104
|
-
var KtMap = kotlin_kotlin.$_$.
|
|
105
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
103
|
+
var THROW_CCE = kotlin_kotlin.$_$.hf;
|
|
104
|
+
var KtMap = kotlin_kotlin.$_$.t4;
|
|
105
|
+
var isInterface = kotlin_kotlin.$_$.ka;
|
|
106
106
|
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.u1;
|
|
107
107
|
var Type_Number_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.t1;
|
|
108
108
|
var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.s1;
|
|
@@ -110,28 +110,28 @@
|
|
|
110
110
|
var Ref__toString_impl_irb7zi = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d2;
|
|
111
111
|
var BooleanObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a;
|
|
112
112
|
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.a1;
|
|
113
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
114
|
-
var toSet = kotlin_kotlin.$_$.
|
|
113
|
+
var ensureNotNull = kotlin_kotlin.$_$.xf;
|
|
114
|
+
var toSet = kotlin_kotlin.$_$.p8;
|
|
115
115
|
var get_entries = kotlin_community_flock_wirespec_compiler_core.$_$.l;
|
|
116
116
|
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e2;
|
|
117
117
|
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.s;
|
|
118
|
-
var equals = kotlin_kotlin.$_$.
|
|
118
|
+
var equals = kotlin_kotlin.$_$.p9;
|
|
119
119
|
var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b2;
|
|
120
|
-
var drop = kotlin_kotlin.$_$.
|
|
121
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
122
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
120
|
+
var drop = kotlin_kotlin.$_$.a6;
|
|
121
|
+
var charSequenceLength = kotlin_kotlin.$_$.l9;
|
|
122
|
+
var charSequenceGet = kotlin_kotlin.$_$.k9;
|
|
123
123
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.v1;
|
|
124
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
124
|
+
var isBlank = kotlin_kotlin.$_$.sc;
|
|
125
125
|
var Path__toString_impl_wlr1lw = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a2;
|
|
126
126
|
var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.z1;
|
|
127
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
128
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
127
|
+
var getStringHashCode = kotlin_kotlin.$_$.u9;
|
|
128
|
+
var initMetadataForClass = kotlin_kotlin.$_$.w9;
|
|
129
129
|
var StatusCode__toString_impl_6caewy = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h2;
|
|
130
130
|
var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g2;
|
|
131
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
131
|
+
var hashCode = kotlin_kotlin.$_$.v9;
|
|
132
132
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.l;
|
|
133
133
|
var OpenAPI = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d;
|
|
134
|
-
var listOf_0 = kotlin_kotlin.$_$.
|
|
134
|
+
var listOf_0 = kotlin_kotlin.$_$.h7;
|
|
135
135
|
var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.t1;
|
|
136
136
|
var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.j;
|
|
137
137
|
var Channel = kotlin_community_flock_wirespec_compiler_core.$_$.h;
|
|
@@ -171,9 +171,9 @@
|
|
|
171
171
|
var _Path___get_value__impl__thmflc_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o2;
|
|
172
172
|
var Ref__toString_impl_irb7zi_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.q2;
|
|
173
173
|
var BooleanObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.n;
|
|
174
|
-
var checkIndexOverflow = kotlin_kotlin.$_$.
|
|
174
|
+
var checkIndexOverflow = kotlin_kotlin.$_$.h5;
|
|
175
175
|
var _Ref___get_value__impl__kxavfe_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r2;
|
|
176
|
-
var getOrNull = kotlin_kotlin.$_$.
|
|
176
|
+
var getOrNull = kotlin_kotlin.$_$.l6;
|
|
177
177
|
var Path__toString_impl_wlr1lw_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.n2;
|
|
178
178
|
var Path__hashCode_impl_go73kd_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m2;
|
|
179
179
|
var StatusCode__toString_impl_6caewy_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.u2;
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
}
|
|
197
197
|
function Common() {
|
|
198
198
|
}
|
|
199
|
-
protoOf(Common).
|
|
199
|
+
protoOf(Common).c2f = function (arg) {
|
|
200
200
|
// Inline function 'kotlin.collections.flatMap' call
|
|
201
201
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
202
202
|
var destination = ArrayList_init_$Create$();
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
var tmp = destination;
|
|
213
213
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, Common$className$lambda);
|
|
214
214
|
};
|
|
215
|
-
protoOf(Common).
|
|
215
|
+
protoOf(Common).d2f = function (_this__u8e3s4) {
|
|
216
216
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
217
217
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
218
218
|
var destination = ArrayList_init_$Create$();
|
|
@@ -287,8 +287,8 @@
|
|
|
287
287
|
var element = tmp0_iterator.i();
|
|
288
288
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
289
289
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
290
|
-
var tmp19_safe_receiver = element.
|
|
291
|
-
var tmp0_safe_receiver = tmp19_safe_receiver == null ? null : tmp19_safe_receiver.
|
|
290
|
+
var tmp19_safe_receiver = element.y29_1;
|
|
291
|
+
var tmp0_safe_receiver = tmp19_safe_receiver == null ? null : tmp19_safe_receiver.l2a_1;
|
|
292
292
|
if (tmp0_safe_receiver == null)
|
|
293
293
|
null;
|
|
294
294
|
else {
|
|
@@ -319,7 +319,7 @@
|
|
|
319
319
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
320
320
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
321
321
|
var tmp20_safe_receiver = element_0.w29_1;
|
|
322
|
-
var tmp0_safe_receiver_0 = tmp20_safe_receiver == null ? null : tmp20_safe_receiver.
|
|
322
|
+
var tmp0_safe_receiver_0 = tmp20_safe_receiver == null ? null : tmp20_safe_receiver.l2a_1;
|
|
323
323
|
if (tmp0_safe_receiver_0 == null)
|
|
324
324
|
null;
|
|
325
325
|
else {
|
|
@@ -349,7 +349,7 @@
|
|
|
349
349
|
var element_1 = tmp0_iterator_1.i();
|
|
350
350
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
351
351
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
352
|
-
var tmp0_safe_receiver_1 = element_1.
|
|
352
|
+
var tmp0_safe_receiver_1 = element_1.y29_1;
|
|
353
353
|
if (tmp0_safe_receiver_1 == null)
|
|
354
354
|
null;
|
|
355
355
|
else {
|
|
@@ -366,8 +366,8 @@
|
|
|
366
366
|
var item = tmp0_iterator_2.i();
|
|
367
367
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
368
368
|
var tmp21_in = ParameterLocation_BODY_getInstance();
|
|
369
|
-
var tmp22_schema = OpenApiV2Emitter_instance.
|
|
370
|
-
var tmp23_required = !item.
|
|
369
|
+
var tmp22_schema = OpenApiV2Emitter_instance.h2a(item.m2a_1);
|
|
370
|
+
var tmp23_required = !item.n2a_1;
|
|
371
371
|
var tmp$ret$16 = new ParameterObject('RequestBody', tmp21_in, VOID, tmp23_required, tmp22_schema);
|
|
372
372
|
destination_2.e(tmp$ret$16);
|
|
373
373
|
}
|
|
@@ -418,7 +418,7 @@
|
|
|
418
418
|
var element_3 = tmp0_iterator_6.i();
|
|
419
419
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
420
420
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
421
|
-
var pair = to(element_3.
|
|
421
|
+
var pair = to(element_3.a2a_1.k2a_1, new HeaderObject(VOID, element_3.b2a_1.b1(), VOID, element_3.b2a_1.z22() ? OpenApiV2Emitter_instance.h2a(element_3.b2a_1) : null));
|
|
422
422
|
destination_6.m2(pair.ae_1, pair.be_1);
|
|
423
423
|
}
|
|
424
424
|
var tmp24_safe_receiver = element_2.w29_1;
|
|
@@ -430,7 +430,7 @@
|
|
|
430
430
|
// Inline function 'kotlin.contracts.contract' call
|
|
431
431
|
var tmp_8;
|
|
432
432
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
433
|
-
var tmp_9 = tmp24_safe_receiver.
|
|
433
|
+
var tmp_9 = tmp24_safe_receiver.m2a_1;
|
|
434
434
|
if (!(tmp_9 instanceof Unit)) {
|
|
435
435
|
tmp_8 = tmp24_safe_receiver;
|
|
436
436
|
} else {
|
|
@@ -447,12 +447,12 @@
|
|
|
447
447
|
// Inline function 'kotlin.contracts.contract' call
|
|
448
448
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
449
449
|
var tmp_11;
|
|
450
|
-
switch (tmp25_safe_receiver.
|
|
450
|
+
switch (tmp25_safe_receiver.m2a_1.z22()) {
|
|
451
451
|
case false:
|
|
452
|
-
tmp_11 = OpenApiV2Emitter_instance.
|
|
452
|
+
tmp_11 = OpenApiV2Emitter_instance.h2a(tmp25_safe_receiver.m2a_1);
|
|
453
453
|
break;
|
|
454
454
|
case true:
|
|
455
|
-
tmp_11 = 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_instance.
|
|
455
|
+
tmp_11 = 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_instance.h2a(tmp25_safe_receiver.m2a_1));
|
|
456
456
|
break;
|
|
457
457
|
default:
|
|
458
458
|
noWhenBranchMatchedException();
|
|
@@ -464,18 +464,18 @@
|
|
|
464
464
|
var pair_0 = to(new StatusCode(tmp_6), new ResponseObject(tmp27_description, tmp29_schema, destination_6));
|
|
465
465
|
destination_5.m2(pair_0.ae_1, pair_0.be_1);
|
|
466
466
|
}
|
|
467
|
-
return new OperationObject(VOID, VOID, VOID, VOID, _this__u8e3s4.n24_1.
|
|
467
|
+
return new OperationObject(VOID, VOID, VOID, VOID, _this__u8e3s4.n24_1.k2a_1, tmp_0, tmp_2, tmp_5, destination_5);
|
|
468
468
|
}
|
|
469
469
|
function emitSegment(_this__u8e3s4, $this) {
|
|
470
470
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenApiV2Emitter$emitSegment$lambda);
|
|
471
471
|
}
|
|
472
472
|
function emitParameter(_this__u8e3s4, $this, location) {
|
|
473
|
-
var tmp32_name = _this__u8e3s4.
|
|
474
|
-
var tmp33_type = emitType_0(_this__u8e3s4.
|
|
473
|
+
var tmp32_name = _this__u8e3s4.a2a_1.k2a_1;
|
|
474
|
+
var tmp33_type = emitType_0(_this__u8e3s4.b2a_1, $this);
|
|
475
475
|
var tmp;
|
|
476
|
-
switch (_this__u8e3s4.
|
|
476
|
+
switch (_this__u8e3s4.b2a_1.z22()) {
|
|
477
477
|
case true:
|
|
478
|
-
var emit = $this.
|
|
478
|
+
var emit = $this.h2a(_this__u8e3s4.b2a_1);
|
|
479
479
|
var tmp_0;
|
|
480
480
|
if (emit instanceof ReferenceObject) {
|
|
481
481
|
tmp_0 = emit;
|
|
@@ -497,7 +497,7 @@
|
|
|
497
497
|
break;
|
|
498
498
|
}
|
|
499
499
|
var tmp34_items = tmp;
|
|
500
|
-
var tmp35_required = !_this__u8e3s4.
|
|
500
|
+
var tmp35_required = !_this__u8e3s4.c2a_1;
|
|
501
501
|
return new ParameterObject(tmp32_name, location, VOID, tmp35_required, VOID, tmp33_type, tmp34_items);
|
|
502
502
|
}
|
|
503
503
|
function emitType(_this__u8e3s4, $this) {
|
|
@@ -528,7 +528,7 @@
|
|
|
528
528
|
} else {
|
|
529
529
|
var tmp_0;
|
|
530
530
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
531
|
-
tmp_0 = emitType(_this__u8e3s4.
|
|
531
|
+
tmp_0 = emitType(_this__u8e3s4.x2a_1, $this);
|
|
532
532
|
} else {
|
|
533
533
|
if (_this__u8e3s4 instanceof Custom) {
|
|
534
534
|
tmp_0 = Type_OBJECT_getInstance();
|
|
@@ -551,10 +551,10 @@
|
|
|
551
551
|
function OpenApiV2Emitter$emitSegment$lambda(it) {
|
|
552
552
|
var tmp;
|
|
553
553
|
if (it instanceof Param) {
|
|
554
|
-
tmp = '{' + it.
|
|
554
|
+
tmp = '{' + it.i2a_1.k2a_1 + '}';
|
|
555
555
|
} else {
|
|
556
556
|
if (it instanceof Literal) {
|
|
557
|
-
tmp = it.
|
|
557
|
+
tmp = it.t2a_1;
|
|
558
558
|
} else {
|
|
559
559
|
noWhenBranchMatchedException();
|
|
560
560
|
}
|
|
@@ -630,8 +630,8 @@
|
|
|
630
630
|
var item_0 = tmp0_iterator_3.i();
|
|
631
631
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
632
632
|
var tmp1_in = ParameterLocation_PATH_getInstance();
|
|
633
|
-
var tmp2_name = item_0.
|
|
634
|
-
var tmp3_type = emitType_0(item_0.
|
|
633
|
+
var tmp2_name = item_0.i2a_1.k2a_1;
|
|
634
|
+
var tmp3_type = emitType_0(item_0.j2a_1, OpenApiV2Emitter_instance);
|
|
635
635
|
var tmp$ret$12 = new ParameterObject(tmp2_name, tmp1_in, VOID, VOID, VOID, tmp3_type);
|
|
636
636
|
destination_3.e(tmp$ret$12);
|
|
637
637
|
}
|
|
@@ -667,8 +667,8 @@
|
|
|
667
667
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
668
668
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
669
669
|
var tmp13_type = Type_STRING_getInstance();
|
|
670
|
-
var tmp14_pattern = element_3.e24_1.
|
|
671
|
-
var pair = to(element_3.d24_1.
|
|
670
|
+
var tmp14_pattern = element_3.e24_1.f2b_1;
|
|
671
|
+
var pair = to(element_3.d24_1.k2a_1, new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp14_pattern, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp13_type));
|
|
672
672
|
destination_5.m2(pair.ae_1, pair.be_1);
|
|
673
673
|
}
|
|
674
674
|
var tmp_5 = destination_5;
|
|
@@ -692,7 +692,7 @@
|
|
|
692
692
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
693
693
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
694
694
|
// Inline function 'kotlin.collections.associate' call
|
|
695
|
-
var this_0 = element_5.a24_1.
|
|
695
|
+
var this_0 = element_5.a24_1.w2a_1;
|
|
696
696
|
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
697
697
|
// Inline function 'kotlin.collections.associateTo' call
|
|
698
698
|
var destination_8 = LinkedHashMap_init_$Create$(capacity_1);
|
|
@@ -701,20 +701,20 @@
|
|
|
701
701
|
var element_6 = tmp0_iterator_8.i();
|
|
702
702
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
703
703
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
704
|
-
var pair_0 = OpenApiV2Emitter_instance.
|
|
704
|
+
var pair_0 = OpenApiV2Emitter_instance.p2a(element_6);
|
|
705
705
|
destination_8.m2(pair_0.ae_1, pair_0.be_1);
|
|
706
706
|
}
|
|
707
707
|
// Inline function 'kotlin.takeIf' call
|
|
708
708
|
// Inline function 'kotlin.collections.map' call
|
|
709
709
|
// Inline function 'kotlin.collections.filter' call
|
|
710
710
|
// Inline function 'kotlin.collections.filterTo' call
|
|
711
|
-
var this_1 = element_5.a24_1.
|
|
711
|
+
var this_1 = element_5.a24_1.w2a_1;
|
|
712
712
|
var destination_9 = ArrayList_init_$Create$();
|
|
713
713
|
var tmp0_iterator_9 = this_1.g();
|
|
714
714
|
while (tmp0_iterator_9.h()) {
|
|
715
715
|
var element_7 = tmp0_iterator_9.i();
|
|
716
716
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
717
|
-
if (!element_7.
|
|
717
|
+
if (!element_7.c2a_1) {
|
|
718
718
|
destination_9.e(element_7);
|
|
719
719
|
}
|
|
720
720
|
}
|
|
@@ -724,7 +724,7 @@
|
|
|
724
724
|
while (tmp0_iterator_10.h()) {
|
|
725
725
|
var item_1 = tmp0_iterator_10.i();
|
|
726
726
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
727
|
-
var tmp$ret$31 = item_1.
|
|
727
|
+
var tmp$ret$31 = item_1.a2a_1.k2a_1;
|
|
728
728
|
destination_10.e(tmp$ret$31);
|
|
729
729
|
}
|
|
730
730
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -737,7 +737,7 @@
|
|
|
737
737
|
tmp_6 = null;
|
|
738
738
|
}
|
|
739
739
|
var tmp16_required = tmp_6;
|
|
740
|
-
var pair_1 = to(element_5.z23_1.
|
|
740
|
+
var pair_1 = to(element_5.z23_1.k2a_1, new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp16_required, VOID, VOID, VOID, VOID, destination_8));
|
|
741
741
|
destination_7.m2(pair_1.ae_1, pair_1.be_1);
|
|
742
742
|
}
|
|
743
743
|
var tmp_7 = plus_0(tmp_5, destination_7);
|
|
@@ -772,22 +772,22 @@
|
|
|
772
772
|
var tmp$ret$42 = JsonPrimitive(item_2);
|
|
773
773
|
destination_13.e(tmp$ret$42);
|
|
774
774
|
}
|
|
775
|
-
var pair_2 = to(element_9.g24_1.
|
|
775
|
+
var pair_2 = to(element_9.g24_1.k2a_1, 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, destination_13, tmp17_type));
|
|
776
776
|
destination_12.m2(pair_2.ae_1, pair_2.be_1);
|
|
777
777
|
}
|
|
778
778
|
return new SwaggerObject('2.0', tmp, VOID, VOID, VOID, tmp_0, tmp_1, tmp_4, plus_0(tmp_7, destination_12));
|
|
779
779
|
};
|
|
780
|
-
protoOf(OpenApiV2Emitter).
|
|
781
|
-
return to(_this__u8e3s4.
|
|
780
|
+
protoOf(OpenApiV2Emitter).p2a = function (_this__u8e3s4) {
|
|
781
|
+
return to(_this__u8e3s4.a2a_1.k2a_1, this.h2a(_this__u8e3s4.b2a_1));
|
|
782
782
|
};
|
|
783
|
-
protoOf(OpenApiV2Emitter).
|
|
783
|
+
protoOf(OpenApiV2Emitter).h2a = function (_this__u8e3s4) {
|
|
784
784
|
// Inline function 'kotlin.let' call
|
|
785
785
|
var tmp;
|
|
786
786
|
if (_this__u8e3s4 instanceof Custom) {
|
|
787
|
-
tmp = new ReferenceObject(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.
|
|
787
|
+
tmp = new ReferenceObject(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.b2b_1));
|
|
788
788
|
} else {
|
|
789
789
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
790
|
-
tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType(_this__u8e3s4.
|
|
790
|
+
tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType(_this__u8e3s4.x2a_1, this));
|
|
791
791
|
} else {
|
|
792
792
|
if (_this__u8e3s4 instanceof Any) {
|
|
793
793
|
var message = 'Cannot map Any';
|
|
@@ -935,7 +935,7 @@
|
|
|
935
935
|
tmp_1 = toReference(_this__u8e3s4, OpenApiV2Parser_instance, schema);
|
|
936
936
|
} else {
|
|
937
937
|
if (schema instanceof SchemaObject) {
|
|
938
|
-
tmp_1 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, schema, Common_instance.
|
|
938
|
+
tmp_1 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, schema, Common_instance.c2f([name, 'RequestBody']));
|
|
939
939
|
} else {
|
|
940
940
|
if (schema == null) {
|
|
941
941
|
var reason = 'Not yet implemented';
|
|
@@ -1054,7 +1054,7 @@
|
|
|
1054
1054
|
tmp_11 = toReference(_this__u8e3s4, OpenApiV2Parser_instance, tmp40_safe_receiver);
|
|
1055
1055
|
} else {
|
|
1056
1056
|
if (tmp40_safe_receiver instanceof SchemaObject) {
|
|
1057
|
-
tmp_11 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, tmp40_safe_receiver, Common_instance.
|
|
1057
|
+
tmp_11 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, tmp40_safe_receiver, Common_instance.c2f([name, _StatusCode___get_value__impl__we50mu(status), item_2, 'ResponseBody']));
|
|
1058
1058
|
} else {
|
|
1059
1059
|
noWhenBranchMatchedException();
|
|
1060
1060
|
}
|
|
@@ -1079,7 +1079,7 @@
|
|
|
1079
1079
|
}
|
|
1080
1080
|
}
|
|
1081
1081
|
var responses = list_1;
|
|
1082
|
-
var list_2 = listOf(new Endpoint(null, Companion_instance.
|
|
1082
|
+
var list_2 = listOf(new Endpoint(null, Companion_instance.y2b(name), method, segments, query, headers, emptyList(), requests, responses));
|
|
1083
1083
|
addAll(destination_0, list_2);
|
|
1084
1084
|
}
|
|
1085
1085
|
var list_3 = destination_0;
|
|
@@ -1134,7 +1134,7 @@
|
|
|
1134
1134
|
while (tmp0_iterator_1.h()) {
|
|
1135
1135
|
var element_0 = tmp0_iterator_1.i();
|
|
1136
1136
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseDefinitions.<anonymous>' call
|
|
1137
|
-
var list = flatten(_this__u8e3s4, OpenApiV2Parser_instance, element_0.b1(), Common_instance.
|
|
1137
|
+
var list = flatten(_this__u8e3s4, OpenApiV2Parser_instance, element_0.b1(), Common_instance.c2f([element_0.a1()]));
|
|
1138
1138
|
addAll(destination_0, list);
|
|
1139
1139
|
}
|
|
1140
1140
|
return destination_0;
|
|
@@ -1384,7 +1384,7 @@
|
|
|
1384
1384
|
}
|
|
1385
1385
|
tmp = tmp_0;
|
|
1386
1386
|
} else if (!(schemaObject.f1n_1 == null)) {
|
|
1387
|
-
var tmp_5 = Companion_instance.
|
|
1387
|
+
var tmp_5 = Companion_instance.y2b(name);
|
|
1388
1388
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
1389
1389
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1390
1390
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -1415,7 +1415,7 @@
|
|
|
1415
1415
|
while (tmp0_iterator_0.h()) {
|
|
1416
1416
|
var e = tmp0_iterator_0.i();
|
|
1417
1417
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
|
|
1418
|
-
var key = e.
|
|
1418
|
+
var key = e.a2a_1;
|
|
1419
1419
|
if (set.e(key)) {
|
|
1420
1420
|
list_0.e(e);
|
|
1421
1421
|
}
|
|
@@ -1454,7 +1454,7 @@
|
|
|
1454
1454
|
tmp_9 = emptyList();
|
|
1455
1455
|
} else {
|
|
1456
1456
|
if (value instanceof SchemaObject) {
|
|
1457
|
-
tmp_9 = flatten(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_instance.
|
|
1457
|
+
tmp_9 = flatten(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_instance.c2f([name, key_0]));
|
|
1458
1458
|
} else {
|
|
1459
1459
|
noWhenBranchMatchedException();
|
|
1460
1460
|
}
|
|
@@ -1487,7 +1487,7 @@
|
|
|
1487
1487
|
// Inline function 'kotlin.contracts.contract' call
|
|
1488
1488
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
|
|
1489
1489
|
var it = toSet(destination_2);
|
|
1490
|
-
tmp = listOf(new Enum(null, Companion_instance.
|
|
1490
|
+
tmp = listOf(new Enum(null, Companion_instance.y2b(name), it));
|
|
1491
1491
|
} else {
|
|
1492
1492
|
var tmp69_subject = schemaObject.d1n_1;
|
|
1493
1493
|
var tmp_10;
|
|
@@ -1513,12 +1513,12 @@
|
|
|
1513
1513
|
var key_1 = element_2.a1();
|
|
1514
1514
|
// Inline function 'kotlin.collections.component2' call
|
|
1515
1515
|
var value_0 = element_2.b1();
|
|
1516
|
-
var list_3 = flatten_0(_this__u8e3s4, OpenApiV2Parser_instance, value_0, Common_instance.
|
|
1516
|
+
var list_3 = flatten_0(_this__u8e3s4, OpenApiV2Parser_instance, value_0, Common_instance.c2f([name, key_1]));
|
|
1517
1517
|
addAll(destination_3, list_3);
|
|
1518
1518
|
}
|
|
1519
1519
|
|
|
1520
1520
|
var fields = destination_3;
|
|
1521
|
-
var schema = listOf(new Type(null, Companion_instance.
|
|
1521
|
+
var schema = listOf(new Type(null, Companion_instance.y2b(name), new Shape(toField_0(_this__u8e3s4, $this, schemaObject, name)), emptyList()));
|
|
1522
1522
|
tmp_10 = plus(schema, fields);
|
|
1523
1523
|
break;
|
|
1524
1524
|
case 4:
|
|
@@ -1528,7 +1528,7 @@
|
|
|
1528
1528
|
tmp_11 = emptyList();
|
|
1529
1529
|
} else {
|
|
1530
1530
|
if (it_0 instanceof SchemaObject) {
|
|
1531
|
-
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_instance.
|
|
1531
|
+
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_instance.c2f([name, 'Array']));
|
|
1532
1532
|
} else {
|
|
1533
1533
|
if (it_0 == null) {
|
|
1534
1534
|
tmp_11 = emptyList();
|
|
@@ -1586,7 +1586,7 @@
|
|
|
1586
1586
|
}
|
|
1587
1587
|
tmp = tmp_0;
|
|
1588
1588
|
} else if (!(schema.c1n_1 == null)) {
|
|
1589
|
-
tmp = new Custom(Common_instance.
|
|
1589
|
+
tmp = new Custom(Common_instance.c2f([getReference(reference, OpenApiV2Parser_instance)]), false, false);
|
|
1590
1590
|
} else if (isPrimitive(schema.d1n_1)) {
|
|
1591
1591
|
tmp = new Primitive(toPrimitive(ensureNotNull(schema.d1n_1), OpenApiV2Parser_instance), false, false);
|
|
1592
1592
|
} else {
|
|
@@ -1596,10 +1596,10 @@
|
|
|
1596
1596
|
var items = schema.e1n_1;
|
|
1597
1597
|
var tmp_2;
|
|
1598
1598
|
if (items instanceof ReferenceObject) {
|
|
1599
|
-
tmp_2 = new Custom(Common_instance.
|
|
1599
|
+
tmp_2 = new Custom(Common_instance.c2f([getReference(items, OpenApiV2Parser_instance)]), true);
|
|
1600
1600
|
} else {
|
|
1601
1601
|
if (items instanceof SchemaObject) {
|
|
1602
|
-
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, items, Common_instance.
|
|
1602
|
+
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, items, Common_instance.c2f([getReference(reference, OpenApiV2Parser_instance), 'Array'])));
|
|
1603
1603
|
} else {
|
|
1604
1604
|
if (items == null) {
|
|
1605
1605
|
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.m1n_1);
|
|
@@ -1613,10 +1613,10 @@
|
|
|
1613
1613
|
} else {
|
|
1614
1614
|
var tmp_3;
|
|
1615
1615
|
if (refOrSchema instanceof SchemaObject) {
|
|
1616
|
-
tmp_3 = new Custom(Common_instance.
|
|
1616
|
+
tmp_3 = new Custom(Common_instance.c2f([getReference(reference, OpenApiV2Parser_instance)]), false);
|
|
1617
1617
|
} else {
|
|
1618
1618
|
if (refOrSchema instanceof ReferenceObject) {
|
|
1619
|
-
tmp_3 = new Custom(Common_instance.
|
|
1619
|
+
tmp_3 = new Custom(Common_instance.c2f([getReference(refOrSchema, OpenApiV2Parser_instance)]), false);
|
|
1620
1620
|
} else {
|
|
1621
1621
|
noWhenBranchMatchedException();
|
|
1622
1622
|
}
|
|
@@ -1764,7 +1764,7 @@
|
|
|
1764
1764
|
var tmp$ret$0 = tmp_0;
|
|
1765
1765
|
result.m2(element, tmp$ret$0);
|
|
1766
1766
|
}
|
|
1767
|
-
return tmp.
|
|
1767
|
+
return tmp.d2f(result);
|
|
1768
1768
|
}
|
|
1769
1769
|
function getReference(_this__u8e3s4, $this) {
|
|
1770
1770
|
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.m1n_1), ['/']).k(2);
|
|
@@ -1791,7 +1791,7 @@
|
|
|
1791
1791
|
return tmp;
|
|
1792
1792
|
}
|
|
1793
1793
|
function toField(_this__u8e3s4, $this, header, identifier) {
|
|
1794
|
-
var tmp = Companion_instance.
|
|
1794
|
+
var tmp = Companion_instance.y2b(identifier);
|
|
1795
1795
|
var tmp_0;
|
|
1796
1796
|
if (header.f1o_1 === 'array') {
|
|
1797
1797
|
var tmp77_safe_receiver = header.h1o_1;
|
|
@@ -1846,14 +1846,14 @@
|
|
|
1846
1846
|
var value = item.b1();
|
|
1847
1847
|
var tmp;
|
|
1848
1848
|
if (value instanceof SchemaObject) {
|
|
1849
|
-
var tmp_0 = Companion_instance.
|
|
1850
|
-
var tmp_1 = !(value.c1n_1 == null) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_instance.
|
|
1849
|
+
var tmp_0 = Companion_instance.y2b(key);
|
|
1850
|
+
var tmp_1 = !(value.c1n_1 == null) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_instance.c2f([name, key])) : equals(value.d1n_1, Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_instance.c2f([name, key, 'Array'])) : toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_instance.c2f([name, key]));
|
|
1851
1851
|
var tmp80_safe_receiver = schema.b1n_1;
|
|
1852
1852
|
var tmp0_elvis_lhs_0 = tmp80_safe_receiver == null ? null : tmp80_safe_receiver.p1(key);
|
|
1853
1853
|
tmp = new Field(tmp_0, tmp_1, !(tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0));
|
|
1854
1854
|
} else {
|
|
1855
1855
|
if (value instanceof ReferenceObject) {
|
|
1856
|
-
var tmp_2 = Companion_instance.
|
|
1856
|
+
var tmp_2 = Companion_instance.y2b(key);
|
|
1857
1857
|
var tmp_3 = toReference(_this__u8e3s4, OpenApiV2Parser_instance, value);
|
|
1858
1858
|
var tmp81_safe_receiver = schema.b1n_1;
|
|
1859
1859
|
var tmp1_elvis_lhs = tmp81_safe_receiver == null ? null : tmp81_safe_receiver.p1(key);
|
|
@@ -1875,7 +1875,7 @@
|
|
|
1875
1875
|
var it = resolve_3(_this__u8e3s4, $this, parameter);
|
|
1876
1876
|
var tmp;
|
|
1877
1877
|
if (!(parameter.e1j_1 == null)) {
|
|
1878
|
-
tmp = new Custom(Common_instance.
|
|
1878
|
+
tmp = new Custom(Common_instance.c2f([name, 'Parameter', it.j1i_1]), false);
|
|
1879
1879
|
} else {
|
|
1880
1880
|
var type = it.o1i_1;
|
|
1881
1881
|
var tmp_0;
|
|
@@ -1947,7 +1947,7 @@
|
|
|
1947
1947
|
// Inline function 'kotlin.contracts.contract' call
|
|
1948
1948
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>' call
|
|
1949
1949
|
var it_0 = tmp;
|
|
1950
|
-
var tmp_4 = Companion_instance.
|
|
1950
|
+
var tmp_4 = Companion_instance.y2b(parameter.j1i_1);
|
|
1951
1951
|
var tmp0_elvis_lhs_0 = parameter.m1i_1;
|
|
1952
1952
|
return new Field(tmp_4, it_0, !(tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0));
|
|
1953
1953
|
}
|
|
@@ -2014,7 +2014,7 @@
|
|
|
2014
2014
|
// Inline function 'kotlin.let' call
|
|
2015
2015
|
// Inline function 'kotlin.contracts.contract' call
|
|
2016
2016
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toSegments.<anonymous>.<anonymous>' call
|
|
2017
|
-
tmp_3 = new Param(Companion_instance.
|
|
2017
|
+
tmp_3 = new Param(Companion_instance.y2b(param), new Primitive(tmp88_safe_receiver, false));
|
|
2018
2018
|
}
|
|
2019
2019
|
var tmp0_elvis_lhs = tmp_3;
|
|
2020
2020
|
var tmp_4;
|
|
@@ -2045,7 +2045,7 @@
|
|
|
2045
2045
|
// Inline function 'kotlin.let' call
|
|
2046
2046
|
// Inline function 'kotlin.contracts.contract' call
|
|
2047
2047
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toName.<anonymous>' call
|
|
2048
|
-
tmp = Common_instance.
|
|
2048
|
+
tmp = Common_instance.c2f([tmp89_safe_receiver]);
|
|
2049
2049
|
}
|
|
2050
2050
|
return tmp;
|
|
2051
2051
|
}
|
|
@@ -2067,21 +2067,21 @@
|
|
|
2067
2067
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenApiV2Parser$toName$lambda);
|
|
2068
2068
|
}
|
|
2069
2069
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
2070
|
-
this.
|
|
2071
|
-
this.
|
|
2072
|
-
this.
|
|
2073
|
-
this.
|
|
2074
|
-
this.
|
|
2070
|
+
this.e2f_1 = path;
|
|
2071
|
+
this.f2f_1 = pathItem;
|
|
2072
|
+
this.g2f_1 = method;
|
|
2073
|
+
this.h2f_1 = operation;
|
|
2074
|
+
this.i2f_1 = type;
|
|
2075
2075
|
}
|
|
2076
2076
|
protoOf(FlattenRequest).toString = function () {
|
|
2077
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
2077
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.e2f_1) + ', pathItem=' + this.f2f_1.toString() + ', method=' + this.g2f_1.toString() + ', operation=' + this.h2f_1.toString() + ', type=' + this.i2f_1 + ')';
|
|
2078
2078
|
};
|
|
2079
2079
|
protoOf(FlattenRequest).hashCode = function () {
|
|
2080
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2081
|
-
result = imul(result, 31) + this.d2f_1.hashCode() | 0;
|
|
2082
|
-
result = imul(result, 31) + this.e2f_1.hashCode() | 0;
|
|
2080
|
+
var result = Path__hashCode_impl_go73kd(this.e2f_1);
|
|
2083
2081
|
result = imul(result, 31) + this.f2f_1.hashCode() | 0;
|
|
2084
|
-
result = imul(result, 31) +
|
|
2082
|
+
result = imul(result, 31) + this.g2f_1.hashCode() | 0;
|
|
2083
|
+
result = imul(result, 31) + this.h2f_1.hashCode() | 0;
|
|
2084
|
+
result = imul(result, 31) + getStringHashCode(this.i2f_1) | 0;
|
|
2085
2085
|
return result;
|
|
2086
2086
|
};
|
|
2087
2087
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -2090,15 +2090,15 @@
|
|
|
2090
2090
|
if (!(other instanceof FlattenRequest))
|
|
2091
2091
|
return false;
|
|
2092
2092
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
2093
|
-
if (!(this.
|
|
2093
|
+
if (!(this.e2f_1 === tmp0_other_with_cast.e2f_1))
|
|
2094
2094
|
return false;
|
|
2095
|
-
if (!this.
|
|
2095
|
+
if (!this.f2f_1.equals(tmp0_other_with_cast.f2f_1))
|
|
2096
2096
|
return false;
|
|
2097
|
-
if (!this.
|
|
2097
|
+
if (!this.g2f_1.equals(tmp0_other_with_cast.g2f_1))
|
|
2098
2098
|
return false;
|
|
2099
|
-
if (!this.
|
|
2099
|
+
if (!this.h2f_1.equals(tmp0_other_with_cast.h2f_1))
|
|
2100
2100
|
return false;
|
|
2101
|
-
if (!(this.
|
|
2101
|
+
if (!(this.i2f_1 === tmp0_other_with_cast.i2f_1))
|
|
2102
2102
|
return false;
|
|
2103
2103
|
return true;
|
|
2104
2104
|
};
|
|
@@ -2160,25 +2160,25 @@
|
|
|
2160
2160
|
return destination_2;
|
|
2161
2161
|
}
|
|
2162
2162
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
2163
|
-
this.
|
|
2164
|
-
this.
|
|
2165
|
-
this.
|
|
2166
|
-
this.
|
|
2167
|
-
this.
|
|
2168
|
-
this.
|
|
2169
|
-
this.
|
|
2163
|
+
this.j2f_1 = path;
|
|
2164
|
+
this.k2f_1 = pathItem;
|
|
2165
|
+
this.l2f_1 = method;
|
|
2166
|
+
this.m2f_1 = operation;
|
|
2167
|
+
this.n2f_1 = statusCode;
|
|
2168
|
+
this.o2f_1 = response;
|
|
2169
|
+
this.p2f_1 = type;
|
|
2170
2170
|
}
|
|
2171
2171
|
protoOf(FlattenResponse).toString = function () {
|
|
2172
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
2172
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.j2f_1) + ', pathItem=' + this.k2f_1.toString() + ', method=' + this.l2f_1.toString() + ', operation=' + this.m2f_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy(this.n2f_1) + ', response=' + toString(this.o2f_1) + ', type=' + this.p2f_1 + ')';
|
|
2173
2173
|
};
|
|
2174
2174
|
protoOf(FlattenResponse).hashCode = function () {
|
|
2175
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2176
|
-
result = imul(result, 31) + this.i2f_1.hashCode() | 0;
|
|
2177
|
-
result = imul(result, 31) + this.j2f_1.hashCode() | 0;
|
|
2175
|
+
var result = Path__hashCode_impl_go73kd(this.j2f_1);
|
|
2178
2176
|
result = imul(result, 31) + this.k2f_1.hashCode() | 0;
|
|
2179
|
-
result = imul(result, 31) +
|
|
2180
|
-
result = imul(result, 31) +
|
|
2181
|
-
result = imul(result, 31) +
|
|
2177
|
+
result = imul(result, 31) + this.l2f_1.hashCode() | 0;
|
|
2178
|
+
result = imul(result, 31) + this.m2f_1.hashCode() | 0;
|
|
2179
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.n2f_1) | 0;
|
|
2180
|
+
result = imul(result, 31) + hashCode(this.o2f_1) | 0;
|
|
2181
|
+
result = imul(result, 31) + getStringHashCode(this.p2f_1) | 0;
|
|
2182
2182
|
return result;
|
|
2183
2183
|
};
|
|
2184
2184
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -2187,20 +2187,20 @@
|
|
|
2187
2187
|
if (!(other instanceof FlattenResponse))
|
|
2188
2188
|
return false;
|
|
2189
2189
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
2190
|
-
if (!(this.
|
|
2191
|
-
return false;
|
|
2192
|
-
if (!this.i2f_1.equals(tmp0_other_with_cast.i2f_1))
|
|
2193
|
-
return false;
|
|
2194
|
-
if (!this.j2f_1.equals(tmp0_other_with_cast.j2f_1))
|
|
2190
|
+
if (!(this.j2f_1 === tmp0_other_with_cast.j2f_1))
|
|
2195
2191
|
return false;
|
|
2196
2192
|
if (!this.k2f_1.equals(tmp0_other_with_cast.k2f_1))
|
|
2197
2193
|
return false;
|
|
2198
|
-
if (!
|
|
2194
|
+
if (!this.l2f_1.equals(tmp0_other_with_cast.l2f_1))
|
|
2199
2195
|
return false;
|
|
2200
|
-
if (!
|
|
2196
|
+
if (!this.m2f_1.equals(tmp0_other_with_cast.m2f_1))
|
|
2201
2197
|
return false;
|
|
2202
2198
|
if (!(this.n2f_1 === tmp0_other_with_cast.n2f_1))
|
|
2203
2199
|
return false;
|
|
2200
|
+
if (!equals(this.o2f_1, tmp0_other_with_cast.o2f_1))
|
|
2201
|
+
return false;
|
|
2202
|
+
if (!(this.p2f_1 === tmp0_other_with_cast.p2f_1))
|
|
2203
|
+
return false;
|
|
2204
2204
|
return true;
|
|
2205
2205
|
};
|
|
2206
2206
|
function flatMapResponses(_this__u8e3s4, $this, f) {
|
|
@@ -2287,9 +2287,9 @@
|
|
|
2287
2287
|
}
|
|
2288
2288
|
function OpenApiV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
2289
2289
|
return function ($this$flatMapRequests) {
|
|
2290
|
-
var parameters = plus(resolveParameters_0($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.
|
|
2291
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2292
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2290
|
+
var parameters = plus(resolveParameters_0($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.f2f_1), resolveParameters($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.h2f_1));
|
|
2291
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.h2f_1, OpenApiV2Parser_instance);
|
|
2292
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.e2f_1, OpenApiV2Parser_instance) + $this$flatMapRequests.g2f_1.p2_1 : tmp0_elvis_lhs;
|
|
2293
2293
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2294
2294
|
// Inline function 'kotlin.collections.filter' call
|
|
2295
2295
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -2316,7 +2316,7 @@
|
|
|
2316
2316
|
// Inline function 'kotlin.let' call
|
|
2317
2317
|
// Inline function 'kotlin.contracts.contract' call
|
|
2318
2318
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
2319
|
-
tmp = flatten_0($this_parseParameters, OpenApiV2Parser_instance, tmp42_safe_receiver, Common_instance.
|
|
2319
|
+
tmp = flatten_0($this_parseParameters, OpenApiV2Parser_instance, tmp42_safe_receiver, Common_instance.c2f([name, 'Parameter', element_0.j1i_1]));
|
|
2320
2320
|
}
|
|
2321
2321
|
var tmp0_elvis_lhs_0 = tmp;
|
|
2322
2322
|
var list = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
@@ -2327,9 +2327,9 @@
|
|
|
2327
2327
|
}
|
|
2328
2328
|
function OpenApiV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
2329
2329
|
return function ($this$flatMapRequests) {
|
|
2330
|
-
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.
|
|
2331
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2332
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2330
|
+
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.f2f_1), resolveParameters($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.h2f_1));
|
|
2331
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.h2f_1, OpenApiV2Parser_instance);
|
|
2332
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.e2f_1, OpenApiV2Parser_instance) + $this$flatMapRequests.g2f_1.p2_1 : tmp0_elvis_lhs;
|
|
2333
2333
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2334
2334
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2335
2335
|
var destination = ArrayList_init_$Create$();
|
|
@@ -2339,7 +2339,7 @@
|
|
|
2339
2339
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
2340
2340
|
var tmp;
|
|
2341
2341
|
if (!(element.e1j_1 == null)) {
|
|
2342
|
-
var tmp_0 = Companion_instance.
|
|
2342
|
+
var tmp_0 = Companion_instance.y2b(Common_instance.c2f([name, 'Parameter', element.j1i_1]));
|
|
2343
2343
|
// Inline function 'kotlin.collections.map' call
|
|
2344
2344
|
var this_0 = ensureNotNull(element.e1j_1);
|
|
2345
2345
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2359,7 +2359,7 @@
|
|
|
2359
2359
|
addAll(destination, list);
|
|
2360
2360
|
}
|
|
2361
2361
|
var enums = destination;
|
|
2362
|
-
var tmp43_safe_receiver = $this$flatMapRequests.
|
|
2362
|
+
var tmp43_safe_receiver = $this$flatMapRequests.h2f_1.g1l_1;
|
|
2363
2363
|
var tmp_1;
|
|
2364
2364
|
if (tmp43_safe_receiver == null) {
|
|
2365
2365
|
tmp_1 = null;
|
|
@@ -2414,7 +2414,7 @@
|
|
|
2414
2414
|
switch (tmp46_subject == null ? -1 : tmp46_subject.q2_1) {
|
|
2415
2415
|
case -1:
|
|
2416
2416
|
case 5:
|
|
2417
|
-
tmp_5 = flatten($this_parseRequestBody, OpenApiV2Parser_instance, schema, Common_instance.
|
|
2417
|
+
tmp_5 = flatten($this_parseRequestBody, OpenApiV2Parser_instance, schema, Common_instance.c2f([name, 'RequestBody']));
|
|
2418
2418
|
break;
|
|
2419
2419
|
case 4:
|
|
2420
2420
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2427,7 +2427,7 @@
|
|
|
2427
2427
|
// Inline function 'kotlin.let' call
|
|
2428
2428
|
// Inline function 'kotlin.contracts.contract' call
|
|
2429
2429
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
2430
|
-
tmp_6 = flatten_0($this_parseRequestBody, OpenApiV2Parser_instance, tmp47_safe_receiver, Common_instance.
|
|
2430
|
+
tmp_6 = flatten_0($this_parseRequestBody, OpenApiV2Parser_instance, tmp47_safe_receiver, Common_instance.c2f([name, 'RequestBody']));
|
|
2431
2431
|
}
|
|
2432
2432
|
|
|
2433
2433
|
var tmp0_elvis_lhs_0 = tmp_6;
|
|
@@ -2453,9 +2453,9 @@
|
|
|
2453
2453
|
}
|
|
2454
2454
|
function OpenApiV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
2455
2455
|
return function ($this$flatMapResponses) {
|
|
2456
|
-
var schema = resolve_1($this_parseResponseBody, OpenApiV2Parser_instance, $this$flatMapResponses.
|
|
2457
|
-
var tmp0_elvis_lhs = toName($this$flatMapResponses.
|
|
2458
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
2456
|
+
var schema = resolve_1($this_parseResponseBody, OpenApiV2Parser_instance, $this$flatMapResponses.o2f_1).l1j_1;
|
|
2457
|
+
var tmp0_elvis_lhs = toName($this$flatMapResponses.m2f_1, OpenApiV2Parser_instance);
|
|
2458
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.j2f_1, OpenApiV2Parser_instance) + $this$flatMapResponses.l2f_1.p2_1 : tmp0_elvis_lhs;
|
|
2459
2459
|
var tmp;
|
|
2460
2460
|
if (schema instanceof SchemaObject) {
|
|
2461
2461
|
var tmp49_subject = schema.d1n_1;
|
|
@@ -2463,7 +2463,7 @@
|
|
|
2463
2463
|
switch (tmp49_subject == null ? -1 : tmp49_subject.q2_1) {
|
|
2464
2464
|
case -1:
|
|
2465
2465
|
case 5:
|
|
2466
|
-
tmp_0 = flatten($this_parseResponseBody, OpenApiV2Parser_instance, schema, Common_instance.
|
|
2466
|
+
tmp_0 = flatten($this_parseResponseBody, OpenApiV2Parser_instance, schema, Common_instance.c2f([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.n2f_1), $this$flatMapResponses.p2f_1, 'ResponseBody']));
|
|
2467
2467
|
break;
|
|
2468
2468
|
case 4:
|
|
2469
2469
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2476,7 +2476,7 @@
|
|
|
2476
2476
|
// Inline function 'kotlin.let' call
|
|
2477
2477
|
// Inline function 'kotlin.contracts.contract' call
|
|
2478
2478
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
2479
|
-
tmp_1 = flatten_0($this_parseResponseBody, OpenApiV2Parser_instance, tmp50_safe_receiver, Common_instance.
|
|
2479
|
+
tmp_1 = flatten_0($this_parseResponseBody, OpenApiV2Parser_instance, tmp50_safe_receiver, Common_instance.c2f([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.n2f_1), $this$flatMapResponses.p2f_1, 'ResponseBody']));
|
|
2480
2480
|
}
|
|
2481
2481
|
|
|
2482
2482
|
var tmp0_elvis_lhs_0 = tmp_1;
|
|
@@ -2504,10 +2504,10 @@
|
|
|
2504
2504
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2505
2505
|
|
|
2506
2506
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
2507
|
-
tmp = tmp_0.
|
|
2507
|
+
tmp = tmp_0.c2f([tmp$ret$1]);
|
|
2508
2508
|
break;
|
|
2509
2509
|
case false:
|
|
2510
|
-
tmp = Common_instance.
|
|
2510
|
+
tmp = Common_instance.c2f([it]);
|
|
2511
2511
|
break;
|
|
2512
2512
|
default:
|
|
2513
2513
|
noWhenBranchMatchedException();
|
|
@@ -2517,14 +2517,14 @@
|
|
|
2517
2517
|
}
|
|
2518
2518
|
function OpenApiV2Parser() {
|
|
2519
2519
|
}
|
|
2520
|
-
protoOf(OpenApiV2Parser).
|
|
2521
|
-
return this.
|
|
2520
|
+
protoOf(OpenApiV2Parser).q2f = function (json, ignoreUnknown) {
|
|
2521
|
+
return this.r2f((new OpenAPI(Json(VOID, OpenApiV2Parser$parse$lambda(ignoreUnknown)))).h1g(json));
|
|
2522
2522
|
};
|
|
2523
|
-
protoOf(OpenApiV2Parser).
|
|
2523
|
+
protoOf(OpenApiV2Parser).s2f = function (json, ignoreUnknown, $super) {
|
|
2524
2524
|
ignoreUnknown = ignoreUnknown === VOID ? false : ignoreUnknown;
|
|
2525
|
-
return $super === VOID ? this.
|
|
2525
|
+
return $super === VOID ? this.q2f(json, ignoreUnknown) : $super.q2f.call(this, json, ignoreUnknown);
|
|
2526
2526
|
};
|
|
2527
|
-
protoOf(OpenApiV2Parser).
|
|
2527
|
+
protoOf(OpenApiV2Parser).r2f = function (_this__u8e3s4) {
|
|
2528
2528
|
// Inline function 'kotlin.collections.reduce' call
|
|
2529
2529
|
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();
|
|
2530
2530
|
if (!iterator.h())
|
|
@@ -2542,16 +2542,16 @@
|
|
|
2542
2542
|
function toMap_0(_this__u8e3s4) {
|
|
2543
2543
|
var tmp;
|
|
2544
2544
|
if (_this__u8e3s4 instanceof Custom) {
|
|
2545
|
-
tmp = _this__u8e3s4.
|
|
2545
|
+
tmp = _this__u8e3s4.r2d(VOID, VOID, true);
|
|
2546
2546
|
} else {
|
|
2547
2547
|
if (_this__u8e3s4 instanceof Any) {
|
|
2548
|
-
tmp = _this__u8e3s4.
|
|
2548
|
+
tmp = _this__u8e3s4.o2d(VOID, true);
|
|
2549
2549
|
} else {
|
|
2550
2550
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
2551
|
-
tmp = _this__u8e3s4.
|
|
2551
|
+
tmp = _this__u8e3s4.t2d(VOID, VOID, true);
|
|
2552
2552
|
} else {
|
|
2553
2553
|
if (_this__u8e3s4 instanceof Unit) {
|
|
2554
|
-
tmp = _this__u8e3s4.
|
|
2554
|
+
tmp = _this__u8e3s4.p2d(VOID, true);
|
|
2555
2555
|
} else {
|
|
2556
2556
|
noWhenBranchMatchedException();
|
|
2557
2557
|
}
|
|
@@ -2596,16 +2596,16 @@
|
|
|
2596
2596
|
function toIterable(_this__u8e3s4) {
|
|
2597
2597
|
var tmp;
|
|
2598
2598
|
if (_this__u8e3s4 instanceof Custom) {
|
|
2599
|
-
tmp = _this__u8e3s4.
|
|
2599
|
+
tmp = _this__u8e3s4.r2d(VOID, true);
|
|
2600
2600
|
} else {
|
|
2601
2601
|
if (_this__u8e3s4 instanceof Any) {
|
|
2602
|
-
tmp = _this__u8e3s4.
|
|
2602
|
+
tmp = _this__u8e3s4.o2d(true);
|
|
2603
2603
|
} else {
|
|
2604
2604
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
2605
|
-
tmp = _this__u8e3s4.
|
|
2605
|
+
tmp = _this__u8e3s4.t2d(VOID, true);
|
|
2606
2606
|
} else {
|
|
2607
2607
|
if (_this__u8e3s4 instanceof Unit) {
|
|
2608
|
-
tmp = _this__u8e3s4.
|
|
2608
|
+
tmp = _this__u8e3s4.p2d(true);
|
|
2609
2609
|
} else {
|
|
2610
2610
|
noWhenBranchMatchedException();
|
|
2611
2611
|
}
|
|
@@ -2646,7 +2646,7 @@
|
|
|
2646
2646
|
var element_1 = tmp0_iterator_1.i();
|
|
2647
2647
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2648
2648
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitComponents.<anonymous>' call
|
|
2649
|
-
var tmp = element_1.
|
|
2649
|
+
var tmp = element_1.j2d().k2a_1;
|
|
2650
2650
|
var tmp_0;
|
|
2651
2651
|
if (element_1 instanceof Enum) {
|
|
2652
2652
|
tmp_0 = emit_3(element_1, OpenApiV3Emitter_instance);
|
|
@@ -2772,11 +2772,11 @@
|
|
|
2772
2772
|
return toMap(destination_1);
|
|
2773
2773
|
}
|
|
2774
2774
|
function emit_1(_this__u8e3s4, $this) {
|
|
2775
|
-
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.e24_1.
|
|
2775
|
+
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.e24_1.f2b_1);
|
|
2776
2776
|
}
|
|
2777
2777
|
function emit_2(_this__u8e3s4, $this) {
|
|
2778
2778
|
// Inline function 'kotlin.collections.associate' call
|
|
2779
|
-
var this_0 = _this__u8e3s4.a24_1.
|
|
2779
|
+
var this_0 = _this__u8e3s4.a24_1.w2a_1;
|
|
2780
2780
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2781
2781
|
// Inline function 'kotlin.collections.associateTo' call
|
|
2782
2782
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -2793,13 +2793,13 @@
|
|
|
2793
2793
|
// Inline function 'kotlin.collections.map' call
|
|
2794
2794
|
// Inline function 'kotlin.collections.filter' call
|
|
2795
2795
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2796
|
-
var this_1 = _this__u8e3s4.a24_1.
|
|
2796
|
+
var this_1 = _this__u8e3s4.a24_1.w2a_1;
|
|
2797
2797
|
var destination_0 = ArrayList_init_$Create$();
|
|
2798
2798
|
var tmp0_iterator_0 = this_1.g();
|
|
2799
2799
|
while (tmp0_iterator_0.h()) {
|
|
2800
2800
|
var element_0 = tmp0_iterator_0.i();
|
|
2801
2801
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2802
|
-
if (!element_0.
|
|
2802
|
+
if (!element_0.c2a_1) {
|
|
2803
2803
|
destination_0.e(element_0);
|
|
2804
2804
|
}
|
|
2805
2805
|
}
|
|
@@ -2809,7 +2809,7 @@
|
|
|
2809
2809
|
while (tmp0_iterator_1.h()) {
|
|
2810
2810
|
var item = tmp0_iterator_1.i();
|
|
2811
2811
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2812
|
-
var tmp$ret$6 = item.
|
|
2812
|
+
var tmp$ret$6 = item.a2a_1.k2a_1;
|
|
2813
2813
|
destination_1.e(tmp$ret$6);
|
|
2814
2814
|
}
|
|
2815
2815
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -2936,7 +2936,7 @@
|
|
|
2936
2936
|
var element_0 = tmp0_iterator_3.i();
|
|
2937
2937
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2938
2938
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2939
|
-
var tmp106_safe_receiver = element_0.
|
|
2939
|
+
var tmp106_safe_receiver = element_0.y29_1;
|
|
2940
2940
|
var tmp0_safe_receiver = tmp106_safe_receiver == null ? null : emit_7(tmp106_safe_receiver, OpenApiV3Emitter_instance);
|
|
2941
2941
|
if (tmp0_safe_receiver == null)
|
|
2942
2942
|
null;
|
|
@@ -2974,8 +2974,8 @@
|
|
|
2974
2974
|
while (tmp0_iterator_4.h()) {
|
|
2975
2975
|
var element_1 = tmp0_iterator_4.i();
|
|
2976
2976
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2977
|
-
var tmp107_safe_receiver = element_1.
|
|
2978
|
-
var tmp0_elvis_lhs = tmp107_safe_receiver == null ? null : tmp107_safe_receiver.
|
|
2977
|
+
var tmp107_safe_receiver = element_1.y29_1;
|
|
2978
|
+
var tmp0_elvis_lhs = tmp107_safe_receiver == null ? null : tmp107_safe_receiver.n2a_1;
|
|
2979
2979
|
if (tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs) {
|
|
2980
2980
|
tmp$ret$17 = true;
|
|
2981
2981
|
break $l$block_0;
|
|
@@ -3086,32 +3086,32 @@
|
|
|
3086
3086
|
var tmp$ret$42 = to(new StatusCode_0(tmp_7), new ResponseObject_0(tmp109_description, destination_7, tmp110_content));
|
|
3087
3087
|
destination_5.e(tmp$ret$42);
|
|
3088
3088
|
}
|
|
3089
|
-
return new OperationObject_0(VOID, VOID, VOID, VOID, _this__u8e3s4.n24_1.
|
|
3089
|
+
return new OperationObject_0(VOID, VOID, VOID, VOID, _this__u8e3s4.n24_1.k2a_1, tmp_1, tmp_5, toMap(destination_5));
|
|
3090
3090
|
}
|
|
3091
3091
|
function emitSegment_0(_this__u8e3s4, $this) {
|
|
3092
3092
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenApiV3Emitter$emitSegment$lambda);
|
|
3093
3093
|
}
|
|
3094
3094
|
function emitParameter_0(_this__u8e3s4, $this, location) {
|
|
3095
|
-
var tmp112_name = _this__u8e3s4.
|
|
3096
|
-
var tmp113_schema = emitSchema_0(_this__u8e3s4.
|
|
3095
|
+
var tmp112_name = _this__u8e3s4.a2a_1.k2a_1;
|
|
3096
|
+
var tmp113_schema = emitSchema_0(_this__u8e3s4.b2a_1, $this);
|
|
3097
3097
|
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp113_schema, VOID, VOID, VOID, tmp112_name, location);
|
|
3098
3098
|
}
|
|
3099
3099
|
function emitParameter_1(_this__u8e3s4, $this) {
|
|
3100
3100
|
var tmp114_in = ParameterLocation_PATH_getInstance_0();
|
|
3101
|
-
var tmp115_name = _this__u8e3s4.
|
|
3102
|
-
var tmp116_schema = emitSchema_0(_this__u8e3s4.
|
|
3101
|
+
var tmp115_name = _this__u8e3s4.i2a_1.k2a_1;
|
|
3102
|
+
var tmp116_schema = emitSchema_0(_this__u8e3s4.j2a_1, $this);
|
|
3103
3103
|
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp116_schema, VOID, VOID, VOID, tmp115_name, tmp114_in);
|
|
3104
3104
|
}
|
|
3105
3105
|
function emitHeader(_this__u8e3s4, $this) {
|
|
3106
|
-
return to(_this__u8e3s4.
|
|
3106
|
+
return to(_this__u8e3s4.a2a_1.k2a_1, emitHeader_0(_this__u8e3s4.b2a_1, $this));
|
|
3107
3107
|
}
|
|
3108
3108
|
function emitSchema(_this__u8e3s4, $this) {
|
|
3109
|
-
return to(_this__u8e3s4.
|
|
3109
|
+
return to(_this__u8e3s4.a2a_1.k2a_1, emitSchema_0(_this__u8e3s4.b2a_1, $this));
|
|
3110
3110
|
}
|
|
3111
3111
|
function emitHeader_0(_this__u8e3s4, $this) {
|
|
3112
3112
|
var tmp;
|
|
3113
3113
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3114
|
-
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.
|
|
3114
|
+
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.b2b_1));
|
|
3115
3115
|
} else {
|
|
3116
3116
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3117
3117
|
tmp = new HeaderObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitSchema_0(_this__u8e3s4, $this));
|
|
@@ -3135,10 +3135,10 @@
|
|
|
3135
3135
|
// Inline function 'kotlin.let' call
|
|
3136
3136
|
var tmp;
|
|
3137
3137
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3138
|
-
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/schemas/' + _this__u8e3s4.
|
|
3138
|
+
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/schemas/' + _this__u8e3s4.b2b_1));
|
|
3139
3139
|
} else {
|
|
3140
3140
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3141
|
-
tmp = new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType_1(_this__u8e3s4.
|
|
3141
|
+
tmp = new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType_1(_this__u8e3s4.x2a_1, $this));
|
|
3142
3142
|
} else {
|
|
3143
3143
|
if (_this__u8e3s4 instanceof Any) {
|
|
3144
3144
|
var message = 'Cannot map Any';
|
|
@@ -3180,15 +3180,15 @@
|
|
|
3180
3180
|
return tmp;
|
|
3181
3181
|
}
|
|
3182
3182
|
function emit_7(_this__u8e3s4, $this) {
|
|
3183
|
-
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.
|
|
3183
|
+
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.l2a_1)), new MediaTypeObject(emitSchema_0(_this__u8e3s4.m2a_1, $this)));
|
|
3184
3184
|
}
|
|
3185
3185
|
function OpenApiV3Emitter$emitSegment$lambda(it) {
|
|
3186
3186
|
var tmp;
|
|
3187
3187
|
if (it instanceof Param) {
|
|
3188
|
-
tmp = '{' + it.
|
|
3188
|
+
tmp = '{' + it.i2a_1.k2a_1 + '}';
|
|
3189
3189
|
} else {
|
|
3190
3190
|
if (it instanceof Literal) {
|
|
3191
|
-
tmp = it.
|
|
3191
|
+
tmp = it.t2a_1;
|
|
3192
3192
|
} else {
|
|
3193
3193
|
noWhenBranchMatchedException();
|
|
3194
3194
|
}
|
|
@@ -3197,15 +3197,15 @@
|
|
|
3197
3197
|
}
|
|
3198
3198
|
function OpenApiV3Emitter() {
|
|
3199
3199
|
}
|
|
3200
|
-
protoOf(OpenApiV3Emitter).
|
|
3201
|
-
var tmp0_elvis_lhs = options == null ? null : options.
|
|
3200
|
+
protoOf(OpenApiV3Emitter).t2f = function (ast, options) {
|
|
3201
|
+
var tmp0_elvis_lhs = options == null ? null : options.u2f_1;
|
|
3202
3202
|
var tmp = tmp0_elvis_lhs == null ? 'Wirespec' : tmp0_elvis_lhs;
|
|
3203
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
3203
|
+
var tmp1_elvis_lhs = options == null ? null : options.v2f_1;
|
|
3204
3204
|
return new OpenAPIObject('3.0.0', new InfoObject_0(tmp, VOID, VOID, VOID, VOID, tmp1_elvis_lhs == null ? '0.0.0' : tmp1_elvis_lhs), VOID, emitPaths(ast, this), emitComponents(ast, this));
|
|
3205
3205
|
};
|
|
3206
|
-
protoOf(OpenApiV3Emitter).
|
|
3206
|
+
protoOf(OpenApiV3Emitter).w2f = function (ast, options, $super) {
|
|
3207
3207
|
options = options === VOID ? null : options;
|
|
3208
|
-
return $super === VOID ? this.
|
|
3208
|
+
return $super === VOID ? this.t2f(ast, options) : $super.t2f.call(this, ast, options);
|
|
3209
3209
|
};
|
|
3210
3210
|
var OpenApiV3Emitter_instance;
|
|
3211
3211
|
function OpenApiV3Emitter_getInstance() {
|
|
@@ -3260,7 +3260,7 @@
|
|
|
3260
3260
|
while (tmp0_iterator_2.h()) {
|
|
3261
3261
|
var item_0 = tmp0_iterator_2.i();
|
|
3262
3262
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3263
|
-
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_0, Common_instance.
|
|
3263
|
+
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_0, Common_instance.c2f([name, 'Parameter', item_0.v1v_1]));
|
|
3264
3264
|
destination_2.e(tmp$ret$9);
|
|
3265
3265
|
}
|
|
3266
3266
|
var query = destination_2;
|
|
@@ -3282,7 +3282,7 @@
|
|
|
3282
3282
|
while (tmp0_iterator_4.h()) {
|
|
3283
3283
|
var item_1 = tmp0_iterator_4.i();
|
|
3284
3284
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3285
|
-
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_1, Common_instance.
|
|
3285
|
+
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_1, Common_instance.c2f([name, 'Parameter', item_1.v1v_1]));
|
|
3286
3286
|
destination_4.e(tmp$ret$15);
|
|
3287
3287
|
}
|
|
3288
3288
|
var headers = destination_4;
|
|
@@ -3304,7 +3304,7 @@
|
|
|
3304
3304
|
while (tmp0_iterator_6.h()) {
|
|
3305
3305
|
var item_2 = tmp0_iterator_6.i();
|
|
3306
3306
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3307
|
-
var tmp$ret$21 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_2, Common_instance.
|
|
3307
|
+
var tmp$ret$21 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_2, Common_instance.c2f([name, 'Parameter', item_2.v1v_1]));
|
|
3308
3308
|
destination_6.e(tmp$ret$21);
|
|
3309
3309
|
}
|
|
3310
3310
|
var cookies = destination_6;
|
|
@@ -3350,7 +3350,7 @@
|
|
|
3350
3350
|
tmp_3 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, schema);
|
|
3351
3351
|
} else {
|
|
3352
3352
|
if (schema instanceof SchemaObject_0) {
|
|
3353
|
-
tmp_3 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_instance.
|
|
3353
|
+
tmp_3 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_instance.c2f([name, 'RequestBody']));
|
|
3354
3354
|
} else {
|
|
3355
3355
|
if (schema == null) {
|
|
3356
3356
|
var reason = 'Not yet implemented';
|
|
@@ -3422,7 +3422,7 @@
|
|
|
3422
3422
|
while (tmp0_iterator_10.h()) {
|
|
3423
3423
|
var item_5 = tmp0_iterator_10.i();
|
|
3424
3424
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3425
|
-
var tmp$ret$42 = toField_4(_this__u8e3s4, OpenApiV3Parser_instance, resolve_5(_this__u8e3s4, OpenApiV3Parser_instance, item_5.b1()), item_5.a1(), Common_instance.
|
|
3425
|
+
var tmp$ret$42 = toField_4(_this__u8e3s4, OpenApiV3Parser_instance, resolve_5(_this__u8e3s4, OpenApiV3Parser_instance, item_5.b1()), item_5.a1(), Common_instance.c2f([name, 'ResponseHeader']));
|
|
3426
3426
|
destination_10.e(tmp$ret$42);
|
|
3427
3427
|
}
|
|
3428
3428
|
tmp_7 = destination_10;
|
|
@@ -3436,7 +3436,7 @@
|
|
|
3436
3436
|
tmp_10 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, schema_0);
|
|
3437
3437
|
} else {
|
|
3438
3438
|
if (schema_0 instanceof SchemaObject_0) {
|
|
3439
|
-
tmp_10 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema_0, Common_instance.
|
|
3439
|
+
tmp_10 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema_0, Common_instance.c2f([name, _StatusCode___get_value__impl__we50mu_0(status), _MediaType___get_value__impl__wy58mp(contentType), 'ResponseBody']));
|
|
3440
3440
|
} else {
|
|
3441
3441
|
if (schema_0 == null) {
|
|
3442
3442
|
tmp_10 = new Any(false);
|
|
@@ -3468,7 +3468,7 @@
|
|
|
3468
3468
|
addAll(destination_8, list);
|
|
3469
3469
|
}
|
|
3470
3470
|
var responses = destination_8;
|
|
3471
|
-
var tmp$ret$56 = new Endpoint(null, Companion_instance.
|
|
3471
|
+
var tmp$ret$56 = new Endpoint(null, Companion_instance.y2b(name), method, segments, query, headers, cookies, requests, responses);
|
|
3472
3472
|
destination_0.e(tmp$ret$56);
|
|
3473
3473
|
}
|
|
3474
3474
|
var list_0 = destination_0;
|
|
@@ -3517,7 +3517,7 @@
|
|
|
3517
3517
|
while (tmp0_iterator_0.h()) {
|
|
3518
3518
|
var element_0 = tmp0_iterator_0.i();
|
|
3519
3519
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseComponents.<anonymous>' call
|
|
3520
|
-
var list = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, element_0.b1(), Common_instance.
|
|
3520
|
+
var list = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, element_0.b1(), Common_instance.c2f([element_0.a1()]));
|
|
3521
3521
|
addAll(destination_0, list);
|
|
3522
3522
|
}
|
|
3523
3523
|
return destination_0;
|
|
@@ -3534,7 +3534,7 @@
|
|
|
3534
3534
|
// Inline function 'kotlin.let' call
|
|
3535
3535
|
// Inline function 'kotlin.contracts.contract' call
|
|
3536
3536
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toName.<anonymous>' call
|
|
3537
|
-
tmp = Common_instance.
|
|
3537
|
+
tmp = Common_instance.c2f([tmp135_safe_receiver]);
|
|
3538
3538
|
}
|
|
3539
3539
|
return tmp;
|
|
3540
3540
|
}
|
|
@@ -3623,7 +3623,7 @@
|
|
|
3623
3623
|
// Inline function 'kotlin.let' call
|
|
3624
3624
|
// Inline function 'kotlin.contracts.contract' call
|
|
3625
3625
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toSegments.<anonymous>.<anonymous>' call
|
|
3626
|
-
tmp_1 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp140_safe_receiver, Common_instance.
|
|
3626
|
+
tmp_1 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp140_safe_receiver, Common_instance.c2f([name, 'Parameter', param]));
|
|
3627
3627
|
}
|
|
3628
3628
|
|
|
3629
3629
|
var tmp141_safe_receiver = tmp_1;
|
|
@@ -3634,7 +3634,7 @@
|
|
|
3634
3634
|
// Inline function 'kotlin.let' call
|
|
3635
3635
|
// Inline function 'kotlin.contracts.contract' call
|
|
3636
3636
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toSegments.<anonymous>.<anonymous>' call
|
|
3637
|
-
tmp_2 = new Param(Companion_instance.
|
|
3637
|
+
tmp_2 = new Param(Companion_instance.y2b(param), tmp141_safe_receiver);
|
|
3638
3638
|
}
|
|
3639
3639
|
|
|
3640
3640
|
var tmp0_elvis_lhs = tmp_2;
|
|
@@ -4013,7 +4013,7 @@
|
|
|
4013
4013
|
}
|
|
4014
4014
|
tmp = tmp_0;
|
|
4015
4015
|
} else if (!(schemaObject.p1w_1 == null) || !(schemaObject.q1w_1 == null)) {
|
|
4016
|
-
var tmp_5 = Companion_instance.
|
|
4016
|
+
var tmp_5 = Companion_instance.y2b(name);
|
|
4017
4017
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
4018
4018
|
var this_0 = ensureNotNull(schemaObject.p1w_1);
|
|
4019
4019
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
@@ -4031,7 +4031,7 @@
|
|
|
4031
4031
|
tmp_6 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, item);
|
|
4032
4032
|
} else {
|
|
4033
4033
|
if (item instanceof SchemaObject_0) {
|
|
4034
|
-
tmp_6 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, item, Common_instance.
|
|
4034
|
+
tmp_6 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, item, Common_instance.c2f([name, index_0.toString()]));
|
|
4035
4035
|
} else {
|
|
4036
4036
|
noWhenBranchMatchedException();
|
|
4037
4037
|
}
|
|
@@ -4057,7 +4057,7 @@
|
|
|
4057
4057
|
tmp_8 = emptyList();
|
|
4058
4058
|
} else {
|
|
4059
4059
|
if (element instanceof SchemaObject_0) {
|
|
4060
|
-
tmp_8 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, element, Common_instance.
|
|
4060
|
+
tmp_8 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, element, Common_instance.c2f([name, index_2.toString()]));
|
|
4061
4061
|
} else {
|
|
4062
4062
|
noWhenBranchMatchedException();
|
|
4063
4063
|
}
|
|
@@ -4067,7 +4067,7 @@
|
|
|
4067
4067
|
}
|
|
4068
4068
|
tmp = plus(tmp_7, destination_0);
|
|
4069
4069
|
} else if (!(schemaObject.o1w_1 == null)) {
|
|
4070
|
-
var tmp_9 = Companion_instance.
|
|
4070
|
+
var tmp_9 = Companion_instance.y2b(name);
|
|
4071
4071
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
4072
4072
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4073
4073
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -4088,7 +4088,7 @@
|
|
|
4088
4088
|
while (tmp0_iterator_2.h()) {
|
|
4089
4089
|
var e = tmp0_iterator_2.i();
|
|
4090
4090
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
|
|
4091
|
-
var key = e.
|
|
4091
|
+
var key = e.a2a_1;
|
|
4092
4092
|
if (set.e(key)) {
|
|
4093
4093
|
list_1.e(e);
|
|
4094
4094
|
}
|
|
@@ -4129,7 +4129,7 @@
|
|
|
4129
4129
|
var key_0 = element_2.a1();
|
|
4130
4130
|
// Inline function 'kotlin.collections.component2' call
|
|
4131
4131
|
var value = element_2.b1();
|
|
4132
|
-
var list_2 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_instance.
|
|
4132
|
+
var list_2 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_instance.c2f([name, key_0]));
|
|
4133
4133
|
addAll(destination_3, list_2);
|
|
4134
4134
|
}
|
|
4135
4135
|
var list_3 = destination_3;
|
|
@@ -4152,7 +4152,7 @@
|
|
|
4152
4152
|
// Inline function 'kotlin.contracts.contract' call
|
|
4153
4153
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
|
|
4154
4154
|
var it = toSet(destination_4);
|
|
4155
|
-
tmp = listOf(new Enum(null, Companion_instance.
|
|
4155
|
+
tmp = listOf(new Enum(null, Companion_instance.y2b(name), it));
|
|
4156
4156
|
} else {
|
|
4157
4157
|
var tmp178_subject = schemaObject.n1w_1;
|
|
4158
4158
|
var tmp_12;
|
|
@@ -4178,12 +4178,12 @@
|
|
|
4178
4178
|
var key_1 = element_3.a1();
|
|
4179
4179
|
// Inline function 'kotlin.collections.component2' call
|
|
4180
4180
|
var value_0 = element_3.b1();
|
|
4181
|
-
var list_4 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value_0, Common_instance.
|
|
4181
|
+
var list_4 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value_0, Common_instance.c2f([name, key_1]));
|
|
4182
4182
|
addAll(destination_5, list_4);
|
|
4183
4183
|
}
|
|
4184
4184
|
|
|
4185
4185
|
var fields = destination_5;
|
|
4186
|
-
var schema = listOf(new Type(null, Companion_instance.
|
|
4186
|
+
var schema = listOf(new Type(null, Companion_instance.y2b(name), new Shape(toField_2(_this__u8e3s4, $this, schemaObject, name)), emptyList()));
|
|
4187
4187
|
tmp_12 = plus(schema, fields);
|
|
4188
4188
|
break;
|
|
4189
4189
|
case 4:
|
|
@@ -4200,7 +4200,7 @@
|
|
|
4200
4200
|
tmp_14 = emptyList();
|
|
4201
4201
|
} else {
|
|
4202
4202
|
if (tmp179_safe_receiver instanceof SchemaObject_0) {
|
|
4203
|
-
tmp_14 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, tmp179_safe_receiver, Common_instance.
|
|
4203
|
+
tmp_14 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, tmp179_safe_receiver, Common_instance.c2f([name, 'array']));
|
|
4204
4204
|
} else {
|
|
4205
4205
|
noWhenBranchMatchedException();
|
|
4206
4206
|
}
|
|
@@ -4258,7 +4258,7 @@
|
|
|
4258
4258
|
}
|
|
4259
4259
|
tmp = tmp_0;
|
|
4260
4260
|
} else if (!(schema.n1x_1 == null)) {
|
|
4261
|
-
tmp = new Custom(Common_instance.
|
|
4261
|
+
tmp = new Custom(Common_instance.c2f([getReference_0(referencingObject, OpenApiV3Parser_instance)]), false, false);
|
|
4262
4262
|
} else if (isPrimitive_0(schema.n1w_1)) {
|
|
4263
4263
|
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.n1w_1), OpenApiV3Parser_instance), false, false);
|
|
4264
4264
|
} else {
|
|
@@ -4268,10 +4268,10 @@
|
|
|
4268
4268
|
var items = schema.s1w_1;
|
|
4269
4269
|
var tmp_2;
|
|
4270
4270
|
if (items instanceof ReferenceObject_0) {
|
|
4271
|
-
tmp_2 = new Custom(Common_instance.
|
|
4271
|
+
tmp_2 = new Custom(Common_instance.c2f([getReference_0(items, OpenApiV3Parser_instance)]), true);
|
|
4272
4272
|
} else {
|
|
4273
4273
|
if (items instanceof SchemaObject_0) {
|
|
4274
|
-
tmp_2 = new Custom(Common_instance.
|
|
4274
|
+
tmp_2 = new Custom(Common_instance.c2f([getReference_0(referencingObject, OpenApiV3Parser_instance), 'Array']), true);
|
|
4275
4275
|
} else {
|
|
4276
4276
|
if (items == null) {
|
|
4277
4277
|
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi_0(reference.b1w_1);
|
|
@@ -4283,7 +4283,7 @@
|
|
|
4283
4283
|
}
|
|
4284
4284
|
tmp_1 = tmp_2;
|
|
4285
4285
|
} else {
|
|
4286
|
-
tmp_1 = new Custom(Common_instance.
|
|
4286
|
+
tmp_1 = new Custom(Common_instance.c2f([getReference_0(referencingObject, OpenApiV3Parser_instance)]), false);
|
|
4287
4287
|
}
|
|
4288
4288
|
tmp = tmp_1;
|
|
4289
4289
|
}
|
|
@@ -4423,7 +4423,7 @@
|
|
|
4423
4423
|
var tmp$ret$0 = tmp_0;
|
|
4424
4424
|
result.m2(element, tmp$ret$0);
|
|
4425
4425
|
}
|
|
4426
|
-
return tmp.
|
|
4426
|
+
return tmp.d2f(result);
|
|
4427
4427
|
}
|
|
4428
4428
|
function getReference_0(_this__u8e3s4, $this) {
|
|
4429
4429
|
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.b1w_1), ['/']), 3);
|
|
@@ -4475,15 +4475,15 @@
|
|
|
4475
4475
|
var value = item.b1();
|
|
4476
4476
|
var tmp;
|
|
4477
4477
|
if (value instanceof SchemaObject_0) {
|
|
4478
|
-
var tmp_0 = Companion_instance.
|
|
4479
|
-
var tmp_1 = !(value.n1x_1 == null) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_instance.
|
|
4478
|
+
var tmp_0 = Companion_instance.y2b(key);
|
|
4479
|
+
var tmp_1 = !(value.n1x_1 == null) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_instance.c2f([name, key])) : equals(value.n1w_1, Type_ARRAY_getInstance_0()) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_instance.c2f([name, key, 'Array'])) : toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_instance.c2f([name, key]));
|
|
4480
4480
|
var tmp187_safe_receiver = schema.m1x_1;
|
|
4481
4481
|
var tmp0_elvis_lhs_0 = tmp187_safe_receiver == null ? null : tmp187_safe_receiver.p1(key);
|
|
4482
4482
|
tmp = new Field(tmp_0, tmp_1, !(tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0));
|
|
4483
4483
|
} else {
|
|
4484
4484
|
if (value instanceof ReferenceObject_0) {
|
|
4485
|
-
var tmp_2 = Companion_instance.
|
|
4486
|
-
var tmp_3 = new Custom(Common_instance.
|
|
4485
|
+
var tmp_2 = Companion_instance.y2b(key);
|
|
4486
|
+
var tmp_3 = new Custom(Common_instance.c2f([getReference_0(value, OpenApiV3Parser_instance)]), false);
|
|
4487
4487
|
var tmp188_safe_receiver = schema.m1x_1;
|
|
4488
4488
|
var tmp1_elvis_lhs = tmp188_safe_receiver == null ? null : tmp188_safe_receiver.p1(key);
|
|
4489
4489
|
tmp = new Field(tmp_2, tmp_3, !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs));
|
|
@@ -4517,7 +4517,7 @@
|
|
|
4517
4517
|
// Inline function 'kotlin.contracts.contract' call
|
|
4518
4518
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toField.<anonymous>' call
|
|
4519
4519
|
var it = tmp;
|
|
4520
|
-
var tmp_0 = Companion_instance.
|
|
4520
|
+
var tmp_0 = Companion_instance.y2b(parameter.v1v_1);
|
|
4521
4521
|
var tmp0_elvis_lhs = parameter.l1v_1;
|
|
4522
4522
|
return new Field(tmp_0, it, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
4523
4523
|
}
|
|
@@ -4542,24 +4542,24 @@
|
|
|
4542
4542
|
// Inline function 'kotlin.contracts.contract' call
|
|
4543
4543
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toField.<anonymous>' call
|
|
4544
4544
|
var it = tmp;
|
|
4545
|
-
var tmp_0 = Companion_instance.
|
|
4545
|
+
var tmp_0 = Companion_instance.y2b(identifier);
|
|
4546
4546
|
var tmp0_elvis_lhs = header.l1y_1;
|
|
4547
4547
|
return new Field(tmp_0, it, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
4548
4548
|
}
|
|
4549
4549
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
4550
|
-
this.
|
|
4551
|
-
this.
|
|
4552
|
-
this.
|
|
4553
|
-
this.
|
|
4550
|
+
this.x2f_1 = path;
|
|
4551
|
+
this.y2f_1 = pathItem;
|
|
4552
|
+
this.z2f_1 = method;
|
|
4553
|
+
this.a2g_1 = operation;
|
|
4554
4554
|
}
|
|
4555
4555
|
protoOf(FlattenRequest_0).toString = function () {
|
|
4556
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
4556
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.x2f_1) + ', pathItem=' + this.y2f_1.toString() + ', method=' + this.z2f_1.toString() + ', operation=' + this.a2g_1.toString() + ')';
|
|
4557
4557
|
};
|
|
4558
4558
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
4559
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
4560
|
-
result = imul(result, 31) + this.w2f_1.hashCode() | 0;
|
|
4561
|
-
result = imul(result, 31) + this.x2f_1.hashCode() | 0;
|
|
4559
|
+
var result = Path__hashCode_impl_go73kd_0(this.x2f_1);
|
|
4562
4560
|
result = imul(result, 31) + this.y2f_1.hashCode() | 0;
|
|
4561
|
+
result = imul(result, 31) + this.z2f_1.hashCode() | 0;
|
|
4562
|
+
result = imul(result, 31) + this.a2g_1.hashCode() | 0;
|
|
4563
4563
|
return result;
|
|
4564
4564
|
};
|
|
4565
4565
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -4568,13 +4568,13 @@
|
|
|
4568
4568
|
if (!(other instanceof FlattenRequest_0))
|
|
4569
4569
|
return false;
|
|
4570
4570
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
4571
|
-
if (!(this.
|
|
4571
|
+
if (!(this.x2f_1 === tmp0_other_with_cast.x2f_1))
|
|
4572
4572
|
return false;
|
|
4573
|
-
if (!this.
|
|
4573
|
+
if (!this.y2f_1.equals(tmp0_other_with_cast.y2f_1))
|
|
4574
4574
|
return false;
|
|
4575
|
-
if (!this.
|
|
4575
|
+
if (!this.z2f_1.equals(tmp0_other_with_cast.z2f_1))
|
|
4576
4576
|
return false;
|
|
4577
|
-
if (!this.
|
|
4577
|
+
if (!this.a2g_1.equals(tmp0_other_with_cast.a2g_1))
|
|
4578
4578
|
return false;
|
|
4579
4579
|
return true;
|
|
4580
4580
|
};
|
|
@@ -4623,23 +4623,23 @@
|
|
|
4623
4623
|
return destination_1;
|
|
4624
4624
|
}
|
|
4625
4625
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
4626
|
-
this.
|
|
4627
|
-
this.
|
|
4628
|
-
this.
|
|
4629
|
-
this.
|
|
4630
|
-
this.
|
|
4631
|
-
this.
|
|
4626
|
+
this.b2g_1 = path;
|
|
4627
|
+
this.c2g_1 = pathItem;
|
|
4628
|
+
this.d2g_1 = method;
|
|
4629
|
+
this.e2g_1 = operation;
|
|
4630
|
+
this.f2g_1 = statusCode;
|
|
4631
|
+
this.g2g_1 = response;
|
|
4632
4632
|
}
|
|
4633
4633
|
protoOf(FlattenResponse_0).toString = function () {
|
|
4634
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
4634
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.b2g_1) + ', pathItem=' + this.c2g_1.toString() + ', method=' + this.d2g_1.toString() + ', operation=' + this.e2g_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy_0(this.f2g_1) + ', response=' + toString(this.g2g_1) + ')';
|
|
4635
4635
|
};
|
|
4636
4636
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
4637
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
4638
|
-
result = imul(result, 31) + this.a2g_1.hashCode() | 0;
|
|
4639
|
-
result = imul(result, 31) + this.b2g_1.hashCode() | 0;
|
|
4637
|
+
var result = Path__hashCode_impl_go73kd_0(this.b2g_1);
|
|
4640
4638
|
result = imul(result, 31) + this.c2g_1.hashCode() | 0;
|
|
4641
|
-
result = imul(result, 31) +
|
|
4642
|
-
result = imul(result, 31) +
|
|
4639
|
+
result = imul(result, 31) + this.d2g_1.hashCode() | 0;
|
|
4640
|
+
result = imul(result, 31) + this.e2g_1.hashCode() | 0;
|
|
4641
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.f2g_1) | 0;
|
|
4642
|
+
result = imul(result, 31) + hashCode(this.g2g_1) | 0;
|
|
4643
4643
|
return result;
|
|
4644
4644
|
};
|
|
4645
4645
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -4648,17 +4648,17 @@
|
|
|
4648
4648
|
if (!(other instanceof FlattenResponse_0))
|
|
4649
4649
|
return false;
|
|
4650
4650
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
4651
|
-
if (!(this.
|
|
4651
|
+
if (!(this.b2g_1 === tmp0_other_with_cast.b2g_1))
|
|
4652
4652
|
return false;
|
|
4653
|
-
if (!this.
|
|
4653
|
+
if (!this.c2g_1.equals(tmp0_other_with_cast.c2g_1))
|
|
4654
4654
|
return false;
|
|
4655
|
-
if (!this.
|
|
4655
|
+
if (!this.d2g_1.equals(tmp0_other_with_cast.d2g_1))
|
|
4656
4656
|
return false;
|
|
4657
|
-
if (!this.
|
|
4657
|
+
if (!this.e2g_1.equals(tmp0_other_with_cast.e2g_1))
|
|
4658
4658
|
return false;
|
|
4659
|
-
if (!(this.
|
|
4659
|
+
if (!(this.f2g_1 === tmp0_other_with_cast.f2g_1))
|
|
4660
4660
|
return false;
|
|
4661
|
-
if (!equals(this.
|
|
4661
|
+
if (!equals(this.g2g_1, tmp0_other_with_cast.g2g_1))
|
|
4662
4662
|
return false;
|
|
4663
4663
|
return true;
|
|
4664
4664
|
};
|
|
@@ -4739,9 +4739,9 @@
|
|
|
4739
4739
|
}
|
|
4740
4740
|
function OpenApiV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
4741
4741
|
return function ($this$flatMapRequests) {
|
|
4742
|
-
var parameters = plus(resolveParameters_2($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.
|
|
4743
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
4744
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
4742
|
+
var parameters = plus(resolveParameters_2($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.y2f_1), resolveParameters_1($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.a2g_1));
|
|
4743
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.a2g_1, OpenApiV3Parser_instance);
|
|
4744
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.x2f_1, OpenApiV3Parser_instance) + $this$flatMapRequests.z2f_1.p2_1 : tmp0_elvis_lhs;
|
|
4745
4745
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4746
4746
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4747
4747
|
var destination = ArrayList_init_$Create$();
|
|
@@ -4757,7 +4757,7 @@
|
|
|
4757
4757
|
// Inline function 'kotlin.let' call
|
|
4758
4758
|
// Inline function 'kotlin.contracts.contract' call
|
|
4759
4759
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
4760
|
-
tmp = flatten_2($this_parseParameters, OpenApiV3Parser_instance, tmp127_safe_receiver, Common_instance.
|
|
4760
|
+
tmp = flatten_2($this_parseParameters, OpenApiV3Parser_instance, tmp127_safe_receiver, Common_instance.c2f([name, 'Parameter', element.v1v_1]));
|
|
4761
4761
|
}
|
|
4762
4762
|
var tmp0_elvis_lhs_0 = tmp;
|
|
4763
4763
|
var list = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
@@ -4768,11 +4768,11 @@
|
|
|
4768
4768
|
}
|
|
4769
4769
|
function OpenApiV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
4770
4770
|
return function ($this$flatMapRequests) {
|
|
4771
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
4772
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
4771
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.a2g_1, OpenApiV3Parser_instance);
|
|
4772
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.x2f_1, OpenApiV3Parser_instance) + $this$flatMapRequests.z2f_1.p2_1 : tmp0_elvis_lhs;
|
|
4773
4773
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4774
4774
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4775
|
-
var tmp128_safe_receiver = $this$flatMapRequests.
|
|
4775
|
+
var tmp128_safe_receiver = $this$flatMapRequests.a2g_1.y1t_1;
|
|
4776
4776
|
var tmp;
|
|
4777
4777
|
if (tmp128_safe_receiver == null) {
|
|
4778
4778
|
tmp = null;
|
|
@@ -4802,7 +4802,7 @@
|
|
|
4802
4802
|
switch (tmp130_subject == null ? -1 : tmp130_subject.q2_1) {
|
|
4803
4803
|
case -1:
|
|
4804
4804
|
case 5:
|
|
4805
|
-
tmp_1 = flatten_1($this_parseRequestBody, OpenApiV3Parser_instance, schema, Common_instance.
|
|
4805
|
+
tmp_1 = flatten_1($this_parseRequestBody, OpenApiV3Parser_instance, schema, Common_instance.c2f([name, 'RequestBody']));
|
|
4806
4806
|
break;
|
|
4807
4807
|
case 4:
|
|
4808
4808
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -4815,7 +4815,7 @@
|
|
|
4815
4815
|
// Inline function 'kotlin.let' call
|
|
4816
4816
|
// Inline function 'kotlin.contracts.contract' call
|
|
4817
4817
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
4818
|
-
tmp_2 = flatten_2($this_parseRequestBody, OpenApiV3Parser_instance, tmp131_safe_receiver, Common_instance.
|
|
4818
|
+
tmp_2 = flatten_2($this_parseRequestBody, OpenApiV3Parser_instance, tmp131_safe_receiver, Common_instance.c2f([name, 'RequestBody']));
|
|
4819
4819
|
}
|
|
4820
4820
|
|
|
4821
4821
|
var tmp0_elvis_lhs_1 = tmp_2;
|
|
@@ -4847,9 +4847,9 @@
|
|
|
4847
4847
|
}
|
|
4848
4848
|
function OpenApiV3Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
4849
4849
|
return function ($this$flatMapResponses) {
|
|
4850
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.
|
|
4851
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.
|
|
4852
|
-
var response = $this$flatMapResponses.
|
|
4850
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.e2g_1, OpenApiV3Parser_instance);
|
|
4851
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.b2g_1, OpenApiV3Parser_instance) + $this$flatMapResponses.d2g_1.p2_1 : tmp0_elvis_lhs;
|
|
4852
|
+
var response = $this$flatMapResponses.g2g_1;
|
|
4853
4853
|
var tmp;
|
|
4854
4854
|
if (response instanceof ResponseObject_0) {
|
|
4855
4855
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -4875,7 +4875,7 @@
|
|
|
4875
4875
|
switch (tmp132_subject == null ? -1 : tmp132_subject.q2_1) {
|
|
4876
4876
|
case -1:
|
|
4877
4877
|
case 5:
|
|
4878
|
-
tmp_1 = flatten_1($this_parseResponseBody, OpenApiV3Parser_instance, schema, Common_instance.
|
|
4878
|
+
tmp_1 = flatten_1($this_parseResponseBody, OpenApiV3Parser_instance, schema, Common_instance.c2f([name, _StatusCode___get_value__impl__we50mu_0($this$flatMapResponses.f2g_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
4879
4879
|
break;
|
|
4880
4880
|
case 4:
|
|
4881
4881
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -4888,7 +4888,7 @@
|
|
|
4888
4888
|
// Inline function 'kotlin.let' call
|
|
4889
4889
|
// Inline function 'kotlin.contracts.contract' call
|
|
4890
4890
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseResponseBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
4891
|
-
tmp_2 = flatten_2($this_parseResponseBody, OpenApiV3Parser_instance, tmp133_safe_receiver, Common_instance.
|
|
4891
|
+
tmp_2 = flatten_2($this_parseResponseBody, OpenApiV3Parser_instance, tmp133_safe_receiver, Common_instance.c2f([name, _StatusCode___get_value__impl__we50mu_0($this$flatMapResponses.f2g_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
4892
4892
|
}
|
|
4893
4893
|
|
|
4894
4894
|
var tmp0_elvis_lhs_1 = tmp_2;
|
|
@@ -4927,10 +4927,10 @@
|
|
|
4927
4927
|
// Inline function 'kotlin.js.asDynamic' call
|
|
4928
4928
|
|
|
4929
4929
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
4930
|
-
tmp = tmp_0.
|
|
4930
|
+
tmp = tmp_0.c2f([tmp$ret$1]);
|
|
4931
4931
|
break;
|
|
4932
4932
|
case false:
|
|
4933
|
-
tmp = Common_instance.
|
|
4933
|
+
tmp = Common_instance.c2f([it]);
|
|
4934
4934
|
break;
|
|
4935
4935
|
default:
|
|
4936
4936
|
noWhenBranchMatchedException();
|
|
@@ -4940,14 +4940,14 @@
|
|
|
4940
4940
|
}
|
|
4941
4941
|
function OpenApiV3Parser() {
|
|
4942
4942
|
}
|
|
4943
|
-
protoOf(OpenApiV3Parser).
|
|
4944
|
-
return this.
|
|
4943
|
+
protoOf(OpenApiV3Parser).q2f = function (json, strict) {
|
|
4944
|
+
return this.h2g((new OpenAPI_0(Json(VOID, OpenApiV3Parser$parse$lambda(strict)))).h1g(json));
|
|
4945
4945
|
};
|
|
4946
|
-
protoOf(OpenApiV3Parser).
|
|
4946
|
+
protoOf(OpenApiV3Parser).i2g = function (json, strict, $super) {
|
|
4947
4947
|
strict = strict === VOID ? false : strict;
|
|
4948
|
-
return $super === VOID ? this.
|
|
4948
|
+
return $super === VOID ? this.q2f(json, strict) : $super.q2f.call(this, json, strict);
|
|
4949
4949
|
};
|
|
4950
|
-
protoOf(OpenApiV3Parser).
|
|
4950
|
+
protoOf(OpenApiV3Parser).h2g = function (_this__u8e3s4) {
|
|
4951
4951
|
// Inline function 'kotlin.collections.reduce' call
|
|
4952
4952
|
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();
|
|
4953
4953
|
if (!iterator.h())
|
|
@@ -4965,16 +4965,16 @@
|
|
|
4965
4965
|
function toMap_1(_this__u8e3s4) {
|
|
4966
4966
|
var tmp;
|
|
4967
4967
|
if (_this__u8e3s4 instanceof Custom) {
|
|
4968
|
-
tmp = _this__u8e3s4.
|
|
4968
|
+
tmp = _this__u8e3s4.r2d(VOID, VOID, true);
|
|
4969
4969
|
} else {
|
|
4970
4970
|
if (_this__u8e3s4 instanceof Any) {
|
|
4971
|
-
tmp = _this__u8e3s4.
|
|
4971
|
+
tmp = _this__u8e3s4.o2d(VOID, true);
|
|
4972
4972
|
} else {
|
|
4973
4973
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
4974
|
-
tmp = _this__u8e3s4.
|
|
4974
|
+
tmp = _this__u8e3s4.t2d(VOID, VOID, true);
|
|
4975
4975
|
} else {
|
|
4976
4976
|
if (_this__u8e3s4 instanceof Unit) {
|
|
4977
|
-
tmp = _this__u8e3s4.
|
|
4977
|
+
tmp = _this__u8e3s4.p2d(VOID, true);
|
|
4978
4978
|
} else {
|
|
4979
4979
|
noWhenBranchMatchedException();
|
|
4980
4980
|
}
|
|
@@ -5016,16 +5016,16 @@
|
|
|
5016
5016
|
function toIterable_0(_this__u8e3s4) {
|
|
5017
5017
|
var tmp;
|
|
5018
5018
|
if (_this__u8e3s4 instanceof Custom) {
|
|
5019
|
-
tmp = _this__u8e3s4.
|
|
5019
|
+
tmp = _this__u8e3s4.r2d(VOID, true);
|
|
5020
5020
|
} else {
|
|
5021
5021
|
if (_this__u8e3s4 instanceof Any) {
|
|
5022
|
-
tmp = _this__u8e3s4.
|
|
5022
|
+
tmp = _this__u8e3s4.o2d(true);
|
|
5023
5023
|
} else {
|
|
5024
5024
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
5025
|
-
tmp = _this__u8e3s4.
|
|
5025
|
+
tmp = _this__u8e3s4.t2d(VOID, true);
|
|
5026
5026
|
} else {
|
|
5027
5027
|
if (_this__u8e3s4 instanceof Unit) {
|
|
5028
|
-
tmp = _this__u8e3s4.
|
|
5028
|
+
tmp = _this__u8e3s4.p2d(true);
|
|
5029
5029
|
} else {
|
|
5030
5030
|
noWhenBranchMatchedException();
|
|
5031
5031
|
}
|