@flock/wirespec 0.8.47 → 0.8.49
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 +16 -16
- package/arrow-arrow-continuations.js +3 -3
- package/arrow-arrow-core.js +109 -88
- package/arrow-arrow-core.js.map +1 -1
- package/clikt-clikt.js +6790 -0
- package/clikt-clikt.js.map +1 -0
- package/colormath-root-colormath.js +1403 -0
- package/colormath-root-colormath.js.map +1 -0
- package/kotlin-kotlin-stdlib-js-ir.js +4150 -2107
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin-openapi-bindings.js +3574 -3574
- package/kotlin-openapi-bindings.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1551 -1550
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1183 -1172
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/markdown.js +6858 -0
- package/markdown.js.map +1 -0
- package/mordant-mordant.js +11604 -0
- package/mordant-mordant.js.map +1 -0
- package/package.json +3 -3
- package/wirespec-bin.js +3 -0
- package/wirespec-src-compiler-core.js +2436 -1676
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +502 -471
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-converter-openapi.js +571 -571
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-plugin-arguments.js +543 -0
- package/wirespec-src-plugin-arguments.js.map +1 -0
- package/wirespec-src-plugin-cli.js +1027 -0
- package/wirespec-src-plugin-cli.js.map +1 -0
- package/wirespec-src-compiler-lib.d.ts +0 -356
|
@@ -22,86 +22,86 @@
|
|
|
22
22
|
'use strict';
|
|
23
23
|
//region block: imports
|
|
24
24
|
var imul = Math.imul;
|
|
25
|
-
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
26
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
27
|
-
var split = kotlin_kotlin.$_$.
|
|
28
|
-
var addAll = kotlin_kotlin.$_$.
|
|
29
|
-
var VOID = kotlin_kotlin.$_$.
|
|
30
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
31
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
32
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
33
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
34
|
-
var Unit_getInstance = kotlin_kotlin.$_$.
|
|
25
|
+
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.j1;
|
|
26
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
27
|
+
var split = kotlin_kotlin.$_$.bc;
|
|
28
|
+
var addAll = kotlin_kotlin.$_$.k4;
|
|
29
|
+
var VOID = kotlin_kotlin.$_$.ke;
|
|
30
|
+
var joinToString = kotlin_kotlin.$_$.x5;
|
|
31
|
+
var protoOf = kotlin_kotlin.$_$.q9;
|
|
32
|
+
var objectMeta = kotlin_kotlin.$_$.p9;
|
|
33
|
+
var setMetadataFor = kotlin_kotlin.$_$.r9;
|
|
34
|
+
var Unit_getInstance = kotlin_kotlin.$_$.t3;
|
|
35
35
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.g;
|
|
36
36
|
var OpenAPI = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b;
|
|
37
|
-
var plus = kotlin_kotlin.$_$.
|
|
37
|
+
var plus = kotlin_kotlin.$_$.u6;
|
|
38
38
|
var ParameterLocation_QUERY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w;
|
|
39
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
40
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
39
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.q4;
|
|
40
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i;
|
|
41
41
|
var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v;
|
|
42
42
|
var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.u;
|
|
43
|
-
var listOf = kotlin_kotlin.$_$.
|
|
44
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
45
|
-
var NotImplementedError = kotlin_kotlin.$_$.
|
|
43
|
+
var listOf = kotlin_kotlin.$_$.k6;
|
|
44
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ge;
|
|
45
|
+
var NotImplementedError = kotlin_kotlin.$_$.hd;
|
|
46
46
|
var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h;
|
|
47
47
|
var ReferenceObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e;
|
|
48
|
-
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
49
|
-
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
50
|
-
var emptyMap = kotlin_kotlin.$_$.
|
|
48
|
+
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.i;
|
|
49
|
+
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.k;
|
|
50
|
+
var emptyMap = kotlin_kotlin.$_$.i5;
|
|
51
51
|
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g1;
|
|
52
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
53
|
-
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
54
|
-
var HashSet_init_$Create$ = kotlin_kotlin.$_$.
|
|
55
|
-
var to = kotlin_kotlin.$_$.
|
|
56
|
-
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
57
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
58
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
59
|
-
var Map = kotlin_kotlin.$_$.
|
|
60
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
52
|
+
var emptyList = kotlin_kotlin.$_$.h5;
|
|
53
|
+
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.l;
|
|
54
|
+
var HashSet_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
55
|
+
var to = kotlin_kotlin.$_$.je;
|
|
56
|
+
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.o;
|
|
57
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
58
|
+
var THROW_CCE = kotlin_kotlin.$_$.ld;
|
|
59
|
+
var Map = kotlin_kotlin.$_$.f4;
|
|
60
|
+
var isInterface = kotlin_kotlin.$_$.d9;
|
|
61
61
|
var ParameterObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c;
|
|
62
62
|
var Ref = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f;
|
|
63
|
-
var toString = kotlin_kotlin.$_$.
|
|
64
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
63
|
+
var toString = kotlin_kotlin.$_$.v9;
|
|
64
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.j1;
|
|
65
65
|
var BooleanObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a;
|
|
66
66
|
var ResponseObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
|
|
67
|
-
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
68
|
-
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
69
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
70
|
-
var toSet = kotlin_kotlin.$_$.
|
|
71
|
-
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
72
|
-
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
73
|
-
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
74
|
-
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
75
|
-
var get_entries = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
76
|
-
var mapCapacity = kotlin_kotlin.$_$.
|
|
77
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
78
|
-
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
67
|
+
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.x;
|
|
68
|
+
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.y;
|
|
69
|
+
var ensureNotNull = kotlin_kotlin.$_$.ae;
|
|
70
|
+
var toSet = kotlin_kotlin.$_$.o7;
|
|
71
|
+
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.p;
|
|
72
|
+
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.t;
|
|
73
|
+
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.u;
|
|
74
|
+
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.s;
|
|
75
|
+
var get_entries = kotlin_community_flock_wirespec_compiler_core.$_$.j;
|
|
76
|
+
var mapCapacity = kotlin_kotlin.$_$.m6;
|
|
77
|
+
var coerceAtLeast = kotlin_kotlin.$_$.aa;
|
|
78
|
+
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.r;
|
|
79
79
|
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e1;
|
|
80
|
-
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
81
|
-
var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
82
|
-
var Type_Number_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
83
|
-
var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
84
|
-
var Identifier = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
85
|
-
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
80
|
+
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.i1;
|
|
81
|
+
var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.g1;
|
|
82
|
+
var Type_Number_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.h1;
|
|
83
|
+
var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.f1;
|
|
84
|
+
var Identifier = kotlin_community_flock_wirespec_compiler_core.$_$.r;
|
|
85
|
+
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.w;
|
|
86
86
|
var Type_ARRAY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.x;
|
|
87
|
-
var equals = kotlin_kotlin.$_$.
|
|
87
|
+
var equals = kotlin_kotlin.$_$.o8;
|
|
88
88
|
var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d1;
|
|
89
|
-
var drop = kotlin_kotlin.$_$.
|
|
90
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
91
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
92
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
93
|
-
var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
94
|
-
var Param = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
95
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
89
|
+
var drop = kotlin_kotlin.$_$.g5;
|
|
90
|
+
var charSequenceLength = kotlin_kotlin.$_$.j8;
|
|
91
|
+
var charSequenceGet = kotlin_kotlin.$_$.i8;
|
|
92
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.r1;
|
|
93
|
+
var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.m;
|
|
94
|
+
var Param = kotlin_community_flock_wirespec_compiler_core.$_$.n;
|
|
95
|
+
var isBlank = kotlin_kotlin.$_$.hb;
|
|
96
96
|
var Path = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d;
|
|
97
97
|
var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c1;
|
|
98
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
99
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
98
|
+
var getStringHashCode = kotlin_kotlin.$_$.s8;
|
|
99
|
+
var classMeta = kotlin_kotlin.$_$.l8;
|
|
100
100
|
var StatusCode = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i;
|
|
101
101
|
var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f1;
|
|
102
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
103
|
-
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
104
|
-
var toMap = kotlin_kotlin.$_$.
|
|
102
|
+
var hashCode = kotlin_kotlin.$_$.t8;
|
|
103
|
+
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.v;
|
|
104
|
+
var toMap = kotlin_kotlin.$_$.m7;
|
|
105
105
|
var OpenAPI_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l;
|
|
106
106
|
var ParameterLocation_QUERY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a1;
|
|
107
107
|
var ParameterLocation_HEADER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.z;
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
var ResponseObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r;
|
|
119
119
|
var BooleanObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j;
|
|
120
120
|
var _Ref___get_value__impl__kxavfe_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k1;
|
|
121
|
-
var getOrNull = kotlin_kotlin.$_$.
|
|
121
|
+
var getOrNull = kotlin_kotlin.$_$.r5;
|
|
122
122
|
var Type_ARRAY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b1;
|
|
123
123
|
var Path_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.n;
|
|
124
124
|
var Path__hashCode_impl_go73kd_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i1;
|
|
@@ -137,12 +137,12 @@
|
|
|
137
137
|
setMetadataFor(OpenApiParser_0, 'OpenApiParser', classMeta);
|
|
138
138
|
//endregion
|
|
139
139
|
function Common$className$lambda(it) {
|
|
140
|
-
return Companion_getInstance().
|
|
140
|
+
return Companion_getInstance().z1r(it);
|
|
141
141
|
}
|
|
142
142
|
function Common() {
|
|
143
143
|
Common_instance = this;
|
|
144
144
|
}
|
|
145
|
-
protoOf(Common).
|
|
145
|
+
protoOf(Common).l22 = function (arg) {
|
|
146
146
|
// Inline function 'kotlin.collections.flatMap' call
|
|
147
147
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
148
148
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -166,24 +166,24 @@
|
|
|
166
166
|
}
|
|
167
167
|
function OpenApiParser$Companion$parse$lambda($ignoreUnknown) {
|
|
168
168
|
return function ($this$Json) {
|
|
169
|
-
$this$Json.
|
|
170
|
-
$this$Json.
|
|
169
|
+
$this$Json.wy_1 = true;
|
|
170
|
+
$this$Json.ty_1 = $ignoreUnknown;
|
|
171
171
|
return Unit_getInstance();
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
174
|
function Companion() {
|
|
175
175
|
Companion_instance = this;
|
|
176
176
|
}
|
|
177
|
-
protoOf(Companion).
|
|
177
|
+
protoOf(Companion).m22 = function (json, ignoreUnknown) {
|
|
178
178
|
// Inline function 'kotlin.let' call
|
|
179
|
-
var tmp0_let = (new OpenAPI(Json(VOID, OpenApiParser$Companion$parse$lambda(ignoreUnknown)))).
|
|
179
|
+
var tmp0_let = (new OpenAPI(Json(VOID, OpenApiParser$Companion$parse$lambda(ignoreUnknown)))).q16(json);
|
|
180
180
|
// Inline function 'kotlin.contracts.contract' call
|
|
181
181
|
// Inline function 'community.flock.wirespec.openapi.v2.Companion.parse.<anonymous>' call
|
|
182
|
-
return (new OpenApiParser(tmp0_let)).
|
|
182
|
+
return (new OpenApiParser(tmp0_let)).o22();
|
|
183
183
|
};
|
|
184
|
-
protoOf(Companion).
|
|
184
|
+
protoOf(Companion).p22 = function (json, ignoreUnknown, $super) {
|
|
185
185
|
ignoreUnknown = ignoreUnknown === VOID ? false : ignoreUnknown;
|
|
186
|
-
return $super === VOID ? this.
|
|
186
|
+
return $super === VOID ? this.m22(json, ignoreUnknown) : $super.m22.call(this, json, ignoreUnknown);
|
|
187
187
|
};
|
|
188
188
|
var Companion_instance;
|
|
189
189
|
function Companion_getInstance_0() {
|
|
@@ -193,35 +193,35 @@
|
|
|
193
193
|
}
|
|
194
194
|
function parseEndpoints($this) {
|
|
195
195
|
// Inline function 'kotlin.collections.flatMap' call
|
|
196
|
-
var tmp0_flatMap = $this.
|
|
196
|
+
var tmp0_flatMap = $this.n22_1.a17_1;
|
|
197
197
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
198
198
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
199
199
|
// Inline function 'kotlin.collections.iterator' call
|
|
200
|
-
var tmp0_iterator = tmp0_flatMap.
|
|
200
|
+
var tmp0_iterator = tmp0_flatMap.w().c();
|
|
201
201
|
while (tmp0_iterator.d()) {
|
|
202
202
|
var element = tmp0_iterator.e();
|
|
203
203
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>' call
|
|
204
204
|
// Inline function 'kotlin.collections.component1' call
|
|
205
|
-
var path = element.
|
|
205
|
+
var path = element.x().l17_1;
|
|
206
206
|
// Inline function 'kotlin.collections.component2' call
|
|
207
|
-
var pathItem = element.
|
|
207
|
+
var pathItem = element.y();
|
|
208
208
|
// Inline function 'kotlin.collections.flatMap' call
|
|
209
209
|
var tmp0_flatMap_0 = toOperationList(pathItem, $this);
|
|
210
210
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
211
211
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
212
212
|
// Inline function 'kotlin.collections.iterator' call
|
|
213
|
-
var tmp0_iterator_0 = tmp0_flatMap_0.
|
|
213
|
+
var tmp0_iterator_0 = tmp0_flatMap_0.w().c();
|
|
214
214
|
while (tmp0_iterator_0.d()) {
|
|
215
215
|
var element_0 = tmp0_iterator_0.e();
|
|
216
216
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>' call
|
|
217
217
|
// Inline function 'kotlin.collections.component1' call
|
|
218
|
-
var method = element_0.
|
|
218
|
+
var method = element_0.x();
|
|
219
219
|
// Inline function 'kotlin.collections.component2' call
|
|
220
|
-
var operation = element_0.
|
|
220
|
+
var operation = element_0.y();
|
|
221
221
|
var parameters = plus(resolveParameters_0(pathItem, $this), resolveParameters(operation, $this));
|
|
222
222
|
var segments = toSegments(path, $this, parameters);
|
|
223
223
|
var tmp0_elvis_lhs = toName(operation, $this);
|
|
224
|
-
var name = tmp0_elvis_lhs == null ? toName_0(path, $this) + method.
|
|
224
|
+
var name = tmp0_elvis_lhs == null ? toName_0(path, $this) + method.o5_1 : tmp0_elvis_lhs;
|
|
225
225
|
// Inline function 'kotlin.collections.map' call
|
|
226
226
|
// Inline function 'kotlin.collections.filter' call
|
|
227
227
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
while (tmp0_iterator_1.d()) {
|
|
231
231
|
var element_1 = tmp0_iterator_1.e();
|
|
232
232
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
233
|
-
if (element_1.
|
|
233
|
+
if (element_1.v18_1.equals(ParameterLocation_QUERY_getInstance())) {
|
|
234
234
|
tmp0_filterTo.a(element_1);
|
|
235
235
|
}
|
|
236
236
|
}
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
while (tmp0_iterator_3.d()) {
|
|
254
254
|
var element_2 = tmp0_iterator_3.e();
|
|
255
255
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
256
|
-
if (element_2.
|
|
256
|
+
if (element_2.v18_1.equals(ParameterLocation_HEADER_getInstance())) {
|
|
257
257
|
tmp0_filterTo_0.a(element_2);
|
|
258
258
|
}
|
|
259
259
|
}
|
|
@@ -277,7 +277,7 @@
|
|
|
277
277
|
while (tmp0_iterator_5.d()) {
|
|
278
278
|
var element_3 = tmp0_iterator_5.e();
|
|
279
279
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
280
|
-
if (element_3.
|
|
280
|
+
if (element_3.v18_1.equals(ParameterLocation_BODY_getInstance())) {
|
|
281
281
|
tmp0_filterTo_1.a(element_3);
|
|
282
282
|
}
|
|
283
283
|
}
|
|
@@ -288,8 +288,8 @@
|
|
|
288
288
|
var element_4 = tmp0_iterator_6.e();
|
|
289
289
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
290
290
|
// Inline function 'kotlin.collections.map' call
|
|
291
|
-
var tmp0_elvis_lhs_0 = $this.
|
|
292
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.
|
|
291
|
+
var tmp0_elvis_lhs_0 = $this.n22_1.y16_1;
|
|
292
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.j18_1 : tmp0_elvis_lhs_0;
|
|
293
293
|
var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
294
294
|
// Inline function 'kotlin.collections.mapTo' call
|
|
295
295
|
var tmp0_mapTo_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
@@ -298,13 +298,13 @@
|
|
|
298
298
|
var item_1 = tmp0_iterator_7.e();
|
|
299
299
|
var tmp$ret$21;
|
|
300
300
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
301
|
-
var schema = element_4.
|
|
301
|
+
var schema = element_4.y18_1;
|
|
302
302
|
var tmp;
|
|
303
303
|
if (schema instanceof ReferenceObject) {
|
|
304
304
|
tmp = toReference(schema, $this);
|
|
305
305
|
} else {
|
|
306
306
|
if (schema instanceof SchemaObject) {
|
|
307
|
-
tmp = toReference_0(schema, $this, Common_getInstance().
|
|
307
|
+
tmp = toReference_0(schema, $this, Common_getInstance().l22([name, 'RequestBody']));
|
|
308
308
|
} else {
|
|
309
309
|
if (schema == null) {
|
|
310
310
|
throw new NotImplementedError();
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
var tmp_0 = tmp;
|
|
317
|
-
var tmp0_elvis_lhs_1 = element_4.
|
|
317
|
+
var tmp0_elvis_lhs_1 = element_4.x18_1;
|
|
318
318
|
tmp$ret$21 = new Request(new Content(item_1, tmp_0, tmp0_elvis_lhs_1 == null ? false : tmp0_elvis_lhs_1));
|
|
319
319
|
tmp0_mapTo_1.a(tmp$ret$21);
|
|
320
320
|
}
|
|
@@ -332,22 +332,22 @@
|
|
|
332
332
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
333
333
|
// Inline function 'kotlin.collections.flatMap' call
|
|
334
334
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
335
|
-
var tmp0_elvis_lhs_2 = operation.
|
|
335
|
+
var tmp0_elvis_lhs_2 = operation.m18_1;
|
|
336
336
|
var tmp5_flatMap = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
337
337
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
338
338
|
var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
|
|
339
339
|
// Inline function 'kotlin.collections.iterator' call
|
|
340
|
-
var tmp0_iterator_8 = tmp5_flatMap.
|
|
340
|
+
var tmp0_iterator_8 = tmp5_flatMap.w().c();
|
|
341
341
|
while (tmp0_iterator_8.d()) {
|
|
342
342
|
var element_5 = tmp0_iterator_8.e();
|
|
343
343
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
344
344
|
// Inline function 'kotlin.collections.component1' call
|
|
345
|
-
var status = element_5.
|
|
345
|
+
var status = element_5.x().e1b_1;
|
|
346
346
|
// Inline function 'kotlin.collections.component2' call
|
|
347
|
-
var res = element_5.
|
|
347
|
+
var res = element_5.y();
|
|
348
348
|
// Inline function 'kotlin.collections.map' call
|
|
349
|
-
var tmp0_elvis_lhs_3 = $this.
|
|
350
|
-
var tmp1_elvis_lhs_0 = tmp0_elvis_lhs_3 == null ? operation.
|
|
349
|
+
var tmp0_elvis_lhs_3 = $this.n22_1.z16_1;
|
|
350
|
+
var tmp1_elvis_lhs_0 = tmp0_elvis_lhs_3 == null ? operation.k18_1 : tmp0_elvis_lhs_3;
|
|
351
351
|
var tmp0_map_0 = tmp1_elvis_lhs_0 == null ? listOf('application/json') : tmp1_elvis_lhs_0;
|
|
352
352
|
// Inline function 'kotlin.collections.mapTo' call
|
|
353
353
|
var tmp0_mapTo_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map_0, 10));
|
|
@@ -358,7 +358,7 @@
|
|
|
358
358
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
359
359
|
var tmp_2 = _StatusCode___get_value__impl__we50mu(status);
|
|
360
360
|
var tmp_3 = emptyList();
|
|
361
|
-
var tmp0_safe_receiver = resolve_1(res, $this).
|
|
361
|
+
var tmp0_safe_receiver = resolve_1(res, $this).i1b_1;
|
|
362
362
|
var tmp_4;
|
|
363
363
|
if (tmp0_safe_receiver == null) {
|
|
364
364
|
tmp_4 = null;
|
|
@@ -371,7 +371,7 @@
|
|
|
371
371
|
tmp_5 = toReference(tmp0_safe_receiver, $this);
|
|
372
372
|
} else {
|
|
373
373
|
if (tmp0_safe_receiver instanceof SchemaObject) {
|
|
374
|
-
tmp_5 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().
|
|
374
|
+
tmp_5 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().l22([name, _StatusCode___get_value__impl__we50mu(status), item_2, 'ResponseBody']));
|
|
375
375
|
} else {
|
|
376
376
|
noWhenBranchMatchedException();
|
|
377
377
|
}
|
|
@@ -390,7 +390,7 @@
|
|
|
390
390
|
while (tmp0_iterator_10.d()) {
|
|
391
391
|
var e = tmp0_iterator_10.e();
|
|
392
392
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
393
|
-
var key = to(e.
|
|
393
|
+
var key = to(e.x1y_1, e.z1y_1);
|
|
394
394
|
if (set.a(key)) {
|
|
395
395
|
list_1.a(e);
|
|
396
396
|
}
|
|
@@ -405,30 +405,30 @@
|
|
|
405
405
|
return tmp0_flatMapTo;
|
|
406
406
|
}
|
|
407
407
|
function parseParameters($this) {
|
|
408
|
-
return flatMapRequests($this.
|
|
408
|
+
return flatMapRequests($this.n22_1, $this, OpenApiParser$parseParameters$lambda($this));
|
|
409
409
|
}
|
|
410
410
|
function parseRequestBody($this) {
|
|
411
|
-
return flatMapRequests($this.
|
|
411
|
+
return flatMapRequests($this.n22_1, $this, OpenApiParser$parseRequestBody$lambda($this));
|
|
412
412
|
}
|
|
413
413
|
function parseResponseBody($this) {
|
|
414
|
-
return flatMapResponses($this.
|
|
414
|
+
return flatMapResponses($this.n22_1, $this, OpenApiParser$parseResponseBody$lambda($this));
|
|
415
415
|
}
|
|
416
416
|
function parseDefinitions($this) {
|
|
417
417
|
// Inline function 'kotlin.collections.flatMap' call
|
|
418
418
|
// Inline function 'kotlin.collections.filter' call
|
|
419
419
|
// Inline function 'arrow.core.filterIsInstance' call
|
|
420
420
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
421
|
-
var tmp0_elvis_lhs = $this.
|
|
421
|
+
var tmp0_elvis_lhs = $this.n22_1.b17_1;
|
|
422
422
|
var tmp1_filterIsInstance = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
423
423
|
// Inline function 'kotlin.collections.filterValues' call
|
|
424
424
|
var result = LinkedHashMap_init_$Create$();
|
|
425
425
|
// Inline function 'kotlin.collections.iterator' call
|
|
426
|
-
var tmp0_iterator = tmp1_filterIsInstance.
|
|
426
|
+
var tmp0_iterator = tmp1_filterIsInstance.w().c();
|
|
427
427
|
while (tmp0_iterator.d()) {
|
|
428
428
|
var entry = tmp0_iterator.e();
|
|
429
429
|
// Inline function 'arrow.core.filterIsInstance.<anonymous>' call
|
|
430
|
-
if (entry.
|
|
431
|
-
result.
|
|
430
|
+
if (entry.y() instanceof SchemaObject) {
|
|
431
|
+
result.n3(entry.x(), entry.y());
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
434
|
var tmp = result;
|
|
@@ -436,22 +436,22 @@
|
|
|
436
436
|
// Inline function 'kotlin.collections.filterTo' call
|
|
437
437
|
var tmp0_filterTo = LinkedHashMap_init_$Create$();
|
|
438
438
|
// Inline function 'kotlin.collections.iterator' call
|
|
439
|
-
var tmp0_iterator_0 = tmp2_filter.
|
|
439
|
+
var tmp0_iterator_0 = tmp2_filter.w().c();
|
|
440
440
|
while (tmp0_iterator_0.d()) {
|
|
441
441
|
var element = tmp0_iterator_0.e();
|
|
442
442
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
443
|
-
if (element.
|
|
444
|
-
tmp0_filterTo.
|
|
443
|
+
if (element.y().a1b_1 == null) {
|
|
444
|
+
tmp0_filterTo.n3(element.x(), element.y());
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
448
448
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
449
449
|
// Inline function 'kotlin.collections.iterator' call
|
|
450
|
-
var tmp0_iterator_1 = tmp0_filterTo.
|
|
450
|
+
var tmp0_iterator_1 = tmp0_filterTo.w().c();
|
|
451
451
|
while (tmp0_iterator_1.d()) {
|
|
452
452
|
var element_0 = tmp0_iterator_1.e();
|
|
453
453
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
454
|
-
var list = flatten(element_0.
|
|
454
|
+
var list = flatten(element_0.y(), $this, Common_getInstance().l22([element_0.x()]));
|
|
455
455
|
addAll(tmp0_flatMapTo, list);
|
|
456
456
|
}
|
|
457
457
|
return tmp0_flatMapTo;
|
|
@@ -459,7 +459,7 @@
|
|
|
459
459
|
function resolveParameters(_this__u8e3s4, $this) {
|
|
460
460
|
// Inline function 'kotlin.collections.map' call
|
|
461
461
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
462
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
462
|
+
var tmp0_elvis_lhs = _this__u8e3s4.l18_1;
|
|
463
463
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
464
464
|
// Inline function 'kotlin.collections.mapTo' call
|
|
465
465
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -486,7 +486,7 @@
|
|
|
486
486
|
function resolveParameters_0(_this__u8e3s4, $this) {
|
|
487
487
|
// Inline function 'kotlin.collections.map' call
|
|
488
488
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
489
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
489
|
+
var tmp0_elvis_lhs = _this__u8e3s4.a18_1;
|
|
490
490
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
491
491
|
// Inline function 'kotlin.collections.mapTo' call
|
|
492
492
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -511,11 +511,11 @@
|
|
|
511
511
|
return tmp0_mapTo;
|
|
512
512
|
}
|
|
513
513
|
function resolveParameterObject(_this__u8e3s4, $this) {
|
|
514
|
-
var tmp0_safe_receiver = $this.
|
|
515
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
514
|
+
var tmp0_safe_receiver = $this.n22_1.c17_1;
|
|
515
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q2(getReference(_this__u8e3s4, $this));
|
|
516
516
|
var tmp;
|
|
517
517
|
if (tmp1_elvis_lhs == null) {
|
|
518
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
518
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.u19_1);
|
|
519
519
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
520
520
|
} else {
|
|
521
521
|
tmp = tmp1_elvis_lhs;
|
|
@@ -523,11 +523,11 @@
|
|
|
523
523
|
return tmp;
|
|
524
524
|
}
|
|
525
525
|
function resolveResponseObject(_this__u8e3s4, $this) {
|
|
526
|
-
var tmp0_safe_receiver = $this.
|
|
527
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
526
|
+
var tmp0_safe_receiver = $this.n22_1.d17_1;
|
|
527
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q2(getReference(_this__u8e3s4, $this));
|
|
528
528
|
var tmp;
|
|
529
529
|
if (tmp1_elvis_lhs == null) {
|
|
530
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
530
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.u19_1);
|
|
531
531
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
532
532
|
} else {
|
|
533
533
|
tmp = tmp1_elvis_lhs;
|
|
@@ -535,11 +535,11 @@
|
|
|
535
535
|
return tmp;
|
|
536
536
|
}
|
|
537
537
|
function resolveSchemaObject(_this__u8e3s4, $this) {
|
|
538
|
-
var tmp0_safe_receiver = $this.
|
|
539
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
538
|
+
var tmp0_safe_receiver = $this.n22_1.b17_1;
|
|
539
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q2(getReference(_this__u8e3s4, $this));
|
|
540
540
|
var tmp;
|
|
541
541
|
if (tmp1_elvis_lhs == null) {
|
|
542
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
542
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.u19_1);
|
|
543
543
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
544
544
|
} else {
|
|
545
545
|
tmp = tmp1_elvis_lhs;
|
|
@@ -604,12 +604,12 @@
|
|
|
604
604
|
}
|
|
605
605
|
function flatten(_this__u8e3s4, $this, name) {
|
|
606
606
|
var tmp;
|
|
607
|
-
if (!(_this__u8e3s4.
|
|
607
|
+
if (!(_this__u8e3s4.a1b_1 == null)) {
|
|
608
608
|
var tmp_0;
|
|
609
|
-
if (_this__u8e3s4.
|
|
609
|
+
if (_this__u8e3s4.a1b_1 instanceof BooleanObject) {
|
|
610
610
|
tmp_0 = emptyList();
|
|
611
611
|
} else {
|
|
612
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
612
|
+
var tmp1_safe_receiver = _this__u8e3s4.a1b_1;
|
|
613
613
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_0(tmp1_safe_receiver, $this);
|
|
614
614
|
var tmp_1;
|
|
615
615
|
if (tmp2_safe_receiver == null) {
|
|
@@ -619,7 +619,7 @@
|
|
|
619
619
|
// Inline function 'kotlin.contracts.contract' call
|
|
620
620
|
var tmp_2;
|
|
621
621
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
622
|
-
if (!(tmp2_safe_receiver.
|
|
622
|
+
if (!(tmp2_safe_receiver.z1a_1 == null)) {
|
|
623
623
|
tmp_2 = tmp2_safe_receiver;
|
|
624
624
|
} else {
|
|
625
625
|
tmp_2 = null;
|
|
@@ -631,11 +631,11 @@
|
|
|
631
631
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
632
632
|
}
|
|
633
633
|
tmp = tmp_0;
|
|
634
|
-
} else if (!(_this__u8e3s4.
|
|
634
|
+
} else if (!(_this__u8e3s4.y1a_1 == null)) {
|
|
635
635
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
636
636
|
// Inline function 'kotlin.collections.flatMap' call
|
|
637
637
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
638
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
638
|
+
var tmp0_elvis_lhs = _this__u8e3s4.y1a_1;
|
|
639
639
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
640
640
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
641
641
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -662,14 +662,14 @@
|
|
|
662
662
|
while (tmp0_iterator_0.d()) {
|
|
663
663
|
var e = tmp0_iterator_0.e();
|
|
664
664
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
665
|
-
var key = e.
|
|
665
|
+
var key = e.e1x_1;
|
|
666
666
|
if (set.a(key)) {
|
|
667
667
|
list_0.a(e);
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
670
|
var tmp_4 = listOf(new Type(name, new Shape(list_0)));
|
|
671
671
|
// Inline function 'kotlin.collections.flatMap' call
|
|
672
|
-
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.
|
|
672
|
+
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.y1a_1);
|
|
673
673
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
674
674
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
675
675
|
var tmp0_iterator_1 = tmp3_flatMap.c();
|
|
@@ -683,25 +683,25 @@
|
|
|
683
683
|
if (element_0 instanceof SchemaObject) {
|
|
684
684
|
// Inline function 'kotlin.collections.flatMap' call
|
|
685
685
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
686
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
686
|
+
var tmp0_elvis_lhs_0 = element_0.z1a_1;
|
|
687
687
|
var tmp1_flatMap_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
688
688
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
689
689
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
690
690
|
// Inline function 'kotlin.collections.iterator' call
|
|
691
|
-
var tmp0_iterator_2 = tmp1_flatMap_0.
|
|
691
|
+
var tmp0_iterator_2 = tmp1_flatMap_0.w().c();
|
|
692
692
|
while (tmp0_iterator_2.d()) {
|
|
693
693
|
var element_1 = tmp0_iterator_2.e();
|
|
694
694
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>.<anonymous>' call
|
|
695
695
|
// Inline function 'kotlin.collections.component1' call
|
|
696
|
-
var key_0 = element_1.
|
|
696
|
+
var key_0 = element_1.x();
|
|
697
697
|
// Inline function 'kotlin.collections.component2' call
|
|
698
|
-
var value = element_1.
|
|
698
|
+
var value = element_1.y();
|
|
699
699
|
var tmp_6;
|
|
700
700
|
if (value instanceof ReferenceObject) {
|
|
701
701
|
tmp_6 = emptyList();
|
|
702
702
|
} else {
|
|
703
703
|
if (value instanceof SchemaObject) {
|
|
704
|
-
tmp_6 = flatten(value, $this, Common_getInstance().
|
|
704
|
+
tmp_6 = flatten(value, $this, Common_getInstance().l22([name, key_0]));
|
|
705
705
|
} else {
|
|
706
706
|
noWhenBranchMatchedException();
|
|
707
707
|
}
|
|
@@ -718,10 +718,10 @@
|
|
|
718
718
|
addAll(tmp0_flatMapTo_0, list_2);
|
|
719
719
|
}
|
|
720
720
|
tmp = plus(tmp_4, tmp0_flatMapTo_0);
|
|
721
|
-
} else if (!(_this__u8e3s4.
|
|
721
|
+
} else if (!(_this__u8e3s4.v1a_1 == null)) {
|
|
722
722
|
// Inline function 'kotlin.let' call
|
|
723
723
|
// Inline function 'kotlin.collections.map' call
|
|
724
|
-
var tmp4_map = ensureNotNull(_this__u8e3s4.
|
|
724
|
+
var tmp4_map = ensureNotNull(_this__u8e3s4.v1a_1);
|
|
725
725
|
// Inline function 'kotlin.collections.mapTo' call
|
|
726
726
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp4_map, 10));
|
|
727
727
|
var tmp0_iterator_3 = tmp4_map.c();
|
|
@@ -729,7 +729,7 @@
|
|
|
729
729
|
var item = tmp0_iterator_3.e();
|
|
730
730
|
var tmp$ret$18;
|
|
731
731
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
732
|
-
tmp$ret$18 = item.
|
|
732
|
+
tmp$ret$18 = item.uz();
|
|
733
733
|
tmp0_mapTo.a(tmp$ret$18);
|
|
734
734
|
}
|
|
735
735
|
var tmp5_let = toSet(tmp0_mapTo);
|
|
@@ -737,31 +737,31 @@
|
|
|
737
737
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
738
738
|
tmp = listOf(new Enum(name, tmp5_let));
|
|
739
739
|
} else {
|
|
740
|
-
var tmp5_subject = _this__u8e3s4.
|
|
740
|
+
var tmp5_subject = _this__u8e3s4.w1a_1;
|
|
741
741
|
var tmp_7;
|
|
742
|
-
switch (tmp5_subject == null ? -1 : tmp5_subject.
|
|
742
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.p5_1) {
|
|
743
743
|
case -1:
|
|
744
744
|
case 5:
|
|
745
745
|
// Inline function 'kotlin.collections.flatMap' call
|
|
746
746
|
|
|
747
747
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
748
748
|
|
|
749
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
749
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.z1a_1;
|
|
750
750
|
var tmp7_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
751
751
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
752
752
|
|
|
753
753
|
var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
|
|
754
754
|
// Inline function 'kotlin.collections.iterator' call
|
|
755
755
|
|
|
756
|
-
var tmp0_iterator_4 = tmp7_flatMap.
|
|
756
|
+
var tmp0_iterator_4 = tmp7_flatMap.w().c();
|
|
757
757
|
while (tmp0_iterator_4.d()) {
|
|
758
758
|
var element_2 = tmp0_iterator_4.e();
|
|
759
759
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
760
760
|
// Inline function 'kotlin.collections.component1' call
|
|
761
|
-
var key_1 = element_2.
|
|
761
|
+
var key_1 = element_2.x();
|
|
762
762
|
// Inline function 'kotlin.collections.component2' call
|
|
763
|
-
var value_0 = element_2.
|
|
764
|
-
var list_3 = flatten_0(value_0, $this, Common_getInstance().
|
|
763
|
+
var value_0 = element_2.y();
|
|
764
|
+
var list_3 = flatten_0(value_0, $this, Common_getInstance().l22([name, key_1]));
|
|
765
765
|
addAll(tmp0_flatMapTo_2, list_3);
|
|
766
766
|
}
|
|
767
767
|
|
|
@@ -770,13 +770,13 @@
|
|
|
770
770
|
tmp_7 = plus(schema, fields);
|
|
771
771
|
break;
|
|
772
772
|
case 4:
|
|
773
|
-
var it = _this__u8e3s4.
|
|
773
|
+
var it = _this__u8e3s4.x1a_1;
|
|
774
774
|
var tmp_8;
|
|
775
775
|
if (it instanceof ReferenceObject) {
|
|
776
776
|
tmp_8 = emptyList();
|
|
777
777
|
} else {
|
|
778
778
|
if (it instanceof SchemaObject) {
|
|
779
|
-
tmp_8 = flatten(it, $this, Common_getInstance().
|
|
779
|
+
tmp_8 = flatten(it, $this, Common_getInstance().l22([name, 'Array']));
|
|
780
780
|
} else {
|
|
781
781
|
if (it == null) {
|
|
782
782
|
tmp_8 = emptyList();
|
|
@@ -816,8 +816,8 @@
|
|
|
816
816
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
|
|
817
817
|
var schema = resolve(tmp0_let, $this);
|
|
818
818
|
var tmp;
|
|
819
|
-
if (!(schema.
|
|
820
|
-
var additionalProperties = ensureNotNull(schema.
|
|
819
|
+
if (!(schema.a1b_1 == null)) {
|
|
820
|
+
var additionalProperties = ensureNotNull(schema.a1b_1);
|
|
821
821
|
var tmp_0;
|
|
822
822
|
if (additionalProperties instanceof BooleanObject) {
|
|
823
823
|
tmp_0 = new Any(false, true);
|
|
@@ -833,24 +833,24 @@
|
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
835
|
tmp = tmp_0;
|
|
836
|
-
} else if (!(schema.
|
|
837
|
-
tmp = new Custom(Common_getInstance().
|
|
838
|
-
} else if (isPrimitive(schema.
|
|
839
|
-
tmp = new Primitive(toPrimitive(ensureNotNull(schema.
|
|
836
|
+
} else if (!(schema.v1a_1 == null)) {
|
|
837
|
+
tmp = new Custom(Common_getInstance().l22([getReference(_this__u8e3s4, $this)]), false, false);
|
|
838
|
+
} else if (isPrimitive(schema.w1a_1)) {
|
|
839
|
+
tmp = new Primitive(toPrimitive(ensureNotNull(schema.w1a_1), $this), false, false);
|
|
840
840
|
} else {
|
|
841
|
-
var tmp0_subject = schema.
|
|
841
|
+
var tmp0_subject = schema.w1a_1;
|
|
842
842
|
var tmp_1;
|
|
843
|
-
if ((tmp0_subject == null ? -1 : tmp0_subject.
|
|
844
|
-
var items = schema.
|
|
843
|
+
if ((tmp0_subject == null ? -1 : tmp0_subject.p5_1) === 4) {
|
|
844
|
+
var items = schema.x1a_1;
|
|
845
845
|
var tmp_2;
|
|
846
846
|
if (items instanceof ReferenceObject) {
|
|
847
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
847
|
+
tmp_2 = new Custom(Common_getInstance().l22([getReference(items, $this)]), true);
|
|
848
848
|
} else {
|
|
849
849
|
if (items instanceof SchemaObject) {
|
|
850
|
-
tmp_2 = toIterable(toReference_0(items, $this, Common_getInstance().
|
|
850
|
+
tmp_2 = toIterable(toReference_0(items, $this, Common_getInstance().l22([getReference(_this__u8e3s4, $this), 'Array'])));
|
|
851
851
|
} else {
|
|
852
852
|
if (items == null) {
|
|
853
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.
|
|
853
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.u19_1);
|
|
854
854
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
855
855
|
} else {
|
|
856
856
|
noWhenBranchMatchedException();
|
|
@@ -861,10 +861,10 @@
|
|
|
861
861
|
} else {
|
|
862
862
|
var tmp_3;
|
|
863
863
|
if (tmp0_let instanceof SchemaObject) {
|
|
864
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
864
|
+
tmp_3 = new Custom(Common_getInstance().l22([getReference(_this__u8e3s4, $this)]), false);
|
|
865
865
|
} else {
|
|
866
866
|
if (tmp0_let instanceof ReferenceObject) {
|
|
867
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
867
|
+
tmp_3 = new Custom(Common_getInstance().l22([getReference(tmp0_let, $this)]), false);
|
|
868
868
|
} else {
|
|
869
869
|
noWhenBranchMatchedException();
|
|
870
870
|
}
|
|
@@ -877,8 +877,8 @@
|
|
|
877
877
|
}
|
|
878
878
|
function toReference_0(_this__u8e3s4, $this, name) {
|
|
879
879
|
var tmp;
|
|
880
|
-
if (!(_this__u8e3s4.
|
|
881
|
-
var additionalProperties = ensureNotNull(_this__u8e3s4.
|
|
880
|
+
if (!(_this__u8e3s4.a1b_1 == null)) {
|
|
881
|
+
var additionalProperties = ensureNotNull(_this__u8e3s4.a1b_1);
|
|
882
882
|
var tmp_0;
|
|
883
883
|
if (additionalProperties instanceof BooleanObject) {
|
|
884
884
|
tmp_0 = new Any(false, true);
|
|
@@ -891,7 +891,7 @@
|
|
|
891
891
|
// Inline function 'kotlin.contracts.contract' call
|
|
892
892
|
var tmp_1;
|
|
893
893
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
|
|
894
|
-
if (isPrimitive(additionalProperties.
|
|
894
|
+
if (isPrimitive(additionalProperties.w1a_1) ? true : !(additionalProperties.z1a_1 == null)) {
|
|
895
895
|
tmp_1 = additionalProperties;
|
|
896
896
|
} else {
|
|
897
897
|
tmp_1 = null;
|
|
@@ -914,32 +914,32 @@
|
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
916
|
tmp = tmp_0;
|
|
917
|
-
} else if (!(_this__u8e3s4.
|
|
918
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
917
|
+
} else if (!(_this__u8e3s4.v1a_1 == null)) {
|
|
918
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.a1b_1 == null));
|
|
919
919
|
} else {
|
|
920
|
-
var type = _this__u8e3s4.
|
|
920
|
+
var type = _this__u8e3s4.w1a_1;
|
|
921
921
|
var tmp_3;
|
|
922
|
-
switch (type == null ? -1 : type.
|
|
922
|
+
switch (type == null ? -1 : type.p5_1) {
|
|
923
923
|
case 0:
|
|
924
924
|
case 2:
|
|
925
925
|
case 1:
|
|
926
926
|
case 3:
|
|
927
|
-
tmp_3 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.
|
|
927
|
+
tmp_3 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.a1b_1 == null));
|
|
928
928
|
break;
|
|
929
929
|
case -1:
|
|
930
930
|
case 5:
|
|
931
931
|
var tmp_4;
|
|
932
|
-
var tmp_5 = _this__u8e3s4.
|
|
932
|
+
var tmp_5 = _this__u8e3s4.a1b_1;
|
|
933
933
|
if (tmp_5 instanceof BooleanObject) {
|
|
934
|
-
tmp_4 = new Any(false, !(_this__u8e3s4.
|
|
934
|
+
tmp_4 = new Any(false, !(_this__u8e3s4.a1b_1 == null));
|
|
935
935
|
} else {
|
|
936
|
-
tmp_4 = new Custom(name, false, !(_this__u8e3s4.
|
|
936
|
+
tmp_4 = new Custom(name, false, !(_this__u8e3s4.a1b_1 == null));
|
|
937
937
|
}
|
|
938
938
|
|
|
939
939
|
tmp_3 = tmp_4;
|
|
940
940
|
break;
|
|
941
941
|
case 4:
|
|
942
|
-
var it = _this__u8e3s4.
|
|
942
|
+
var it = _this__u8e3s4.x1a_1;
|
|
943
943
|
var tmp_6;
|
|
944
944
|
if (it instanceof ReferenceObject) {
|
|
945
945
|
tmp_6 = toIterable(toReference(it, $this));
|
|
@@ -979,46 +979,46 @@
|
|
|
979
979
|
var tmp$ret$0;
|
|
980
980
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toOperationList.<anonymous>' call
|
|
981
981
|
var tmp;
|
|
982
|
-
switch (element.
|
|
982
|
+
switch (element.p5_1) {
|
|
983
983
|
case 0:
|
|
984
|
-
tmp = _this__u8e3s4.
|
|
984
|
+
tmp = _this__u8e3s4.r17_1;
|
|
985
985
|
break;
|
|
986
986
|
case 1:
|
|
987
|
-
tmp = _this__u8e3s4.
|
|
987
|
+
tmp = _this__u8e3s4.t17_1;
|
|
988
988
|
break;
|
|
989
989
|
case 2:
|
|
990
|
-
tmp = _this__u8e3s4.
|
|
990
|
+
tmp = _this__u8e3s4.s17_1;
|
|
991
991
|
break;
|
|
992
992
|
case 3:
|
|
993
|
-
tmp = _this__u8e3s4.
|
|
993
|
+
tmp = _this__u8e3s4.u17_1;
|
|
994
994
|
break;
|
|
995
995
|
case 4:
|
|
996
|
-
tmp = _this__u8e3s4.
|
|
996
|
+
tmp = _this__u8e3s4.v17_1;
|
|
997
997
|
break;
|
|
998
998
|
case 5:
|
|
999
|
-
tmp = _this__u8e3s4.
|
|
999
|
+
tmp = _this__u8e3s4.w17_1;
|
|
1000
1000
|
break;
|
|
1001
1001
|
case 6:
|
|
1002
|
-
tmp = _this__u8e3s4.
|
|
1002
|
+
tmp = _this__u8e3s4.x17_1;
|
|
1003
1003
|
break;
|
|
1004
1004
|
case 7:
|
|
1005
|
-
tmp = _this__u8e3s4.
|
|
1005
|
+
tmp = _this__u8e3s4.y17_1;
|
|
1006
1006
|
break;
|
|
1007
1007
|
default:
|
|
1008
1008
|
noWhenBranchMatchedException();
|
|
1009
1009
|
break;
|
|
1010
1010
|
}
|
|
1011
1011
|
tmp$ret$0 = tmp;
|
|
1012
|
-
result.
|
|
1012
|
+
result.n3(element, tmp$ret$0);
|
|
1013
1013
|
}
|
|
1014
1014
|
return filterNotNullValues(result);
|
|
1015
1015
|
}
|
|
1016
1016
|
function getReference(_this__u8e3s4, $this) {
|
|
1017
|
-
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
1017
|
+
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.u19_1), ['/']).h(2);
|
|
1018
1018
|
}
|
|
1019
1019
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
1020
1020
|
var tmp;
|
|
1021
|
-
switch (_this__u8e3s4.
|
|
1021
|
+
switch (_this__u8e3s4.p5_1) {
|
|
1022
1022
|
case 0:
|
|
1023
1023
|
tmp = Type_String_getInstance();
|
|
1024
1024
|
break;
|
|
@@ -1039,33 +1039,33 @@
|
|
|
1039
1039
|
function toField(_this__u8e3s4, $this, name) {
|
|
1040
1040
|
// Inline function 'kotlin.collections.map' call
|
|
1041
1041
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1042
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1042
|
+
var tmp0_elvis_lhs = _this__u8e3s4.z1a_1;
|
|
1043
1043
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1044
1044
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1045
1045
|
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.f());
|
|
1046
1046
|
// Inline function 'kotlin.collections.iterator' call
|
|
1047
|
-
var tmp0_iterator = tmp1_map.
|
|
1047
|
+
var tmp0_iterator = tmp1_map.w().c();
|
|
1048
1048
|
while (tmp0_iterator.d()) {
|
|
1049
1049
|
var item = tmp0_iterator.e();
|
|
1050
1050
|
var tmp$ret$4;
|
|
1051
1051
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1052
1052
|
// Inline function 'kotlin.collections.component1' call
|
|
1053
|
-
var key = item.
|
|
1053
|
+
var key = item.x();
|
|
1054
1054
|
// Inline function 'kotlin.collections.component2' call
|
|
1055
|
-
var value = item.
|
|
1055
|
+
var value = item.y();
|
|
1056
1056
|
var tmp;
|
|
1057
1057
|
if (value instanceof SchemaObject) {
|
|
1058
1058
|
var tmp_0 = new Identifier(key);
|
|
1059
|
-
var tmp_1 = !(value.
|
|
1060
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
1061
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1059
|
+
var tmp_1 = !(value.v1a_1 == null) ? toReference_0(value, $this, Common_getInstance().l22([name, key])) : equals(value.w1a_1, Type_ARRAY_getInstance()) ? toReference_0(value, $this, Common_getInstance().l22([name, key, 'Array'])) : toReference_0(value, $this, Common_getInstance().l22([name, key]));
|
|
1060
|
+
var tmp1_safe_receiver = _this__u8e3s4.u1a_1;
|
|
1061
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t(key);
|
|
1062
1062
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
1063
1063
|
} else {
|
|
1064
1064
|
if (value instanceof ReferenceObject) {
|
|
1065
1065
|
var tmp_2 = new Identifier(key);
|
|
1066
1066
|
var tmp_3 = toReference(value, $this);
|
|
1067
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
1068
|
-
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
1067
|
+
var tmp3_safe_receiver = _this__u8e3s4.u1a_1;
|
|
1068
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.t(key);
|
|
1069
1069
|
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
1070
1070
|
} else {
|
|
1071
1071
|
noWhenBranchMatchedException();
|
|
@@ -1083,12 +1083,12 @@
|
|
|
1083
1083
|
// Inline function 'kotlin.contracts.contract' call
|
|
1084
1084
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1085
1085
|
var tmp;
|
|
1086
|
-
if (!(_this__u8e3s4.
|
|
1087
|
-
tmp = new Custom(Common_getInstance().
|
|
1086
|
+
if (!(_this__u8e3s4.p19_1 == null)) {
|
|
1087
|
+
tmp = new Custom(Common_getInstance().l22([name, 'Parameter', tmp0_let.u18_1]), false);
|
|
1088
1088
|
} else {
|
|
1089
|
-
var type = tmp0_let.
|
|
1089
|
+
var type = tmp0_let.z18_1;
|
|
1090
1090
|
var tmp_0;
|
|
1091
|
-
switch (type == null ? -1 : type.
|
|
1091
|
+
switch (type == null ? -1 : type.p5_1) {
|
|
1092
1092
|
case 0:
|
|
1093
1093
|
case 1:
|
|
1094
1094
|
case 2:
|
|
@@ -1103,9 +1103,9 @@
|
|
|
1103
1103
|
tmp_0 = new Primitive(tmp0_let_0, false);
|
|
1104
1104
|
break;
|
|
1105
1105
|
case 4:
|
|
1106
|
-
var tmp0_safe_receiver = tmp0_let.
|
|
1106
|
+
var tmp0_safe_receiver = tmp0_let.a19_1;
|
|
1107
1107
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve(tmp0_safe_receiver, $this);
|
|
1108
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1108
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.w1a_1;
|
|
1109
1109
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, $this);
|
|
1110
1110
|
var tmp_1;
|
|
1111
1111
|
if (tmp3_safe_receiver == null) {
|
|
@@ -1142,8 +1142,8 @@
|
|
|
1142
1142
|
var tmp1_let = tmp;
|
|
1143
1143
|
// Inline function 'kotlin.contracts.contract' call
|
|
1144
1144
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1145
|
-
var tmp_3 = new Identifier(_this__u8e3s4.
|
|
1146
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1145
|
+
var tmp_3 = new Identifier(_this__u8e3s4.u18_1);
|
|
1146
|
+
var tmp0_elvis_lhs = _this__u8e3s4.x18_1;
|
|
1147
1147
|
return new Field(tmp_3, tmp1_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
1148
1148
|
}
|
|
1149
1149
|
function toSegments(_this__u8e3s4, $this, parameters) {
|
|
@@ -1184,7 +1184,7 @@
|
|
|
1184
1184
|
while (tmp0_iterator_0.d()) {
|
|
1185
1185
|
var element = tmp0_iterator_0.e();
|
|
1186
1186
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1187
|
-
if (element.
|
|
1187
|
+
if (element.u18_1 === param) {
|
|
1188
1188
|
tmp$ret$4 = element;
|
|
1189
1189
|
break $l$block;
|
|
1190
1190
|
}
|
|
@@ -1199,7 +1199,7 @@
|
|
|
1199
1199
|
// Inline function 'kotlin.let' call
|
|
1200
1200
|
// Inline function 'kotlin.contracts.contract' call
|
|
1201
1201
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1202
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver.
|
|
1202
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver.z18_1;
|
|
1203
1203
|
tmp_2 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, $this);
|
|
1204
1204
|
}
|
|
1205
1205
|
var tmp1_safe_receiver = tmp_2;
|
|
@@ -1233,7 +1233,7 @@
|
|
|
1233
1233
|
return charSequenceGet(_this__u8e3s4, 0) === _Char___init__impl__6a9atx(123) ? charSequenceGet(_this__u8e3s4, _this__u8e3s4.length - 1 | 0) === _Char___init__impl__6a9atx(125) : false;
|
|
1234
1234
|
}
|
|
1235
1235
|
function toName(_this__u8e3s4, $this) {
|
|
1236
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1236
|
+
var tmp0_safe_receiver = _this__u8e3s4.i18_1;
|
|
1237
1237
|
var tmp;
|
|
1238
1238
|
if (tmp0_safe_receiver == null) {
|
|
1239
1239
|
tmp = null;
|
|
@@ -1241,7 +1241,7 @@
|
|
|
1241
1241
|
// Inline function 'kotlin.let' call
|
|
1242
1242
|
// Inline function 'kotlin.contracts.contract' call
|
|
1243
1243
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1244
|
-
tmp = Common_getInstance().
|
|
1244
|
+
tmp = Common_getInstance().l22([tmp0_safe_receiver]);
|
|
1245
1245
|
}
|
|
1246
1246
|
return tmp;
|
|
1247
1247
|
}
|
|
@@ -1263,21 +1263,21 @@
|
|
|
1263
1263
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda($this));
|
|
1264
1264
|
}
|
|
1265
1265
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
1266
|
-
this.
|
|
1267
|
-
this.
|
|
1268
|
-
this.
|
|
1269
|
-
this.
|
|
1270
|
-
this.
|
|
1266
|
+
this.q22_1 = path;
|
|
1267
|
+
this.r22_1 = pathItem;
|
|
1268
|
+
this.s22_1 = method;
|
|
1269
|
+
this.t22_1 = operation;
|
|
1270
|
+
this.u22_1 = type;
|
|
1271
1271
|
}
|
|
1272
1272
|
protoOf(FlattenRequest).toString = function () {
|
|
1273
|
-
return 'FlattenRequest(path=' + new Path(this.
|
|
1273
|
+
return 'FlattenRequest(path=' + new Path(this.q22_1) + ', pathItem=' + this.r22_1 + ', method=' + this.s22_1 + ', operation=' + this.t22_1 + ', type=' + this.u22_1 + ')';
|
|
1274
1274
|
};
|
|
1275
1275
|
protoOf(FlattenRequest).hashCode = function () {
|
|
1276
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1277
|
-
result = imul(result, 31) + this.
|
|
1278
|
-
result = imul(result, 31) + this.
|
|
1279
|
-
result = imul(result, 31) + this.
|
|
1280
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1276
|
+
var result = Path__hashCode_impl_go73kd(this.q22_1);
|
|
1277
|
+
result = imul(result, 31) + this.r22_1.hashCode() | 0;
|
|
1278
|
+
result = imul(result, 31) + this.s22_1.hashCode() | 0;
|
|
1279
|
+
result = imul(result, 31) + this.t22_1.hashCode() | 0;
|
|
1280
|
+
result = imul(result, 31) + getStringHashCode(this.u22_1) | 0;
|
|
1281
1281
|
return result;
|
|
1282
1282
|
};
|
|
1283
1283
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -1286,49 +1286,49 @@
|
|
|
1286
1286
|
if (!(other instanceof FlattenRequest))
|
|
1287
1287
|
return false;
|
|
1288
1288
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
1289
|
-
if (!(this.
|
|
1289
|
+
if (!(this.q22_1 === tmp0_other_with_cast.q22_1))
|
|
1290
1290
|
return false;
|
|
1291
|
-
if (!this.
|
|
1291
|
+
if (!this.r22_1.equals(tmp0_other_with_cast.r22_1))
|
|
1292
1292
|
return false;
|
|
1293
|
-
if (!this.
|
|
1293
|
+
if (!this.s22_1.equals(tmp0_other_with_cast.s22_1))
|
|
1294
1294
|
return false;
|
|
1295
|
-
if (!this.
|
|
1295
|
+
if (!this.t22_1.equals(tmp0_other_with_cast.t22_1))
|
|
1296
1296
|
return false;
|
|
1297
|
-
if (!(this.
|
|
1297
|
+
if (!(this.u22_1 === tmp0_other_with_cast.u22_1))
|
|
1298
1298
|
return false;
|
|
1299
1299
|
return true;
|
|
1300
1300
|
};
|
|
1301
1301
|
function flatMapRequests(_this__u8e3s4, $this, f) {
|
|
1302
1302
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1303
1303
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1304
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
1304
|
+
var tmp0_flatMap = _this__u8e3s4.a17_1;
|
|
1305
1305
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1306
1306
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1307
1307
|
// Inline function 'kotlin.collections.iterator' call
|
|
1308
|
-
var tmp0_iterator = tmp0_flatMap.
|
|
1308
|
+
var tmp0_iterator = tmp0_flatMap.w().c();
|
|
1309
1309
|
while (tmp0_iterator.d()) {
|
|
1310
1310
|
var element = tmp0_iterator.e();
|
|
1311
1311
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
1312
1312
|
// Inline function 'kotlin.collections.component1' call
|
|
1313
|
-
var path = element.
|
|
1313
|
+
var path = element.x().l17_1;
|
|
1314
1314
|
// Inline function 'kotlin.collections.component2' call
|
|
1315
|
-
var pathItem = element.
|
|
1315
|
+
var pathItem = element.y();
|
|
1316
1316
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1317
1317
|
var tmp0_flatMap_0 = toOperationList(pathItem, $this);
|
|
1318
1318
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1319
1319
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
1320
1320
|
// Inline function 'kotlin.collections.iterator' call
|
|
1321
|
-
var tmp0_iterator_0 = tmp0_flatMap_0.
|
|
1321
|
+
var tmp0_iterator_0 = tmp0_flatMap_0.w().c();
|
|
1322
1322
|
while (tmp0_iterator_0.d()) {
|
|
1323
1323
|
var element_0 = tmp0_iterator_0.e();
|
|
1324
1324
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>.<anonymous>' call
|
|
1325
1325
|
// Inline function 'kotlin.collections.component1' call
|
|
1326
|
-
var method = element_0.
|
|
1326
|
+
var method = element_0.x();
|
|
1327
1327
|
// Inline function 'kotlin.collections.component2' call
|
|
1328
|
-
var operation = element_0.
|
|
1328
|
+
var operation = element_0.y();
|
|
1329
1329
|
// Inline function 'kotlin.collections.map' call
|
|
1330
|
-
var tmp0_elvis_lhs = $this.
|
|
1331
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? operation.
|
|
1330
|
+
var tmp0_elvis_lhs = $this.n22_1.y16_1;
|
|
1331
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? operation.j18_1 : tmp0_elvis_lhs;
|
|
1332
1332
|
var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
1333
1333
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1334
1334
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
@@ -1358,25 +1358,25 @@
|
|
|
1358
1358
|
return tmp0_flatMapTo_1;
|
|
1359
1359
|
}
|
|
1360
1360
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1363
|
-
this.
|
|
1364
|
-
this.
|
|
1365
|
-
this.
|
|
1366
|
-
this.
|
|
1367
|
-
this.
|
|
1361
|
+
this.v22_1 = path;
|
|
1362
|
+
this.w22_1 = pathItem;
|
|
1363
|
+
this.x22_1 = method;
|
|
1364
|
+
this.y22_1 = operation;
|
|
1365
|
+
this.z22_1 = statusCode;
|
|
1366
|
+
this.a23_1 = response;
|
|
1367
|
+
this.b23_1 = type;
|
|
1368
1368
|
}
|
|
1369
1369
|
protoOf(FlattenResponse).toString = function () {
|
|
1370
|
-
return 'FlattenResponse(path=' + new Path(this.
|
|
1370
|
+
return 'FlattenResponse(path=' + new Path(this.v22_1) + ', pathItem=' + this.w22_1 + ', method=' + this.x22_1 + ', operation=' + this.y22_1 + ', statusCode=' + new StatusCode(this.z22_1) + ', response=' + this.a23_1 + ', type=' + this.b23_1 + ')';
|
|
1371
1371
|
};
|
|
1372
1372
|
protoOf(FlattenResponse).hashCode = function () {
|
|
1373
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1374
|
-
result = imul(result, 31) + this.
|
|
1375
|
-
result = imul(result, 31) + this.
|
|
1376
|
-
result = imul(result, 31) + this.
|
|
1377
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
1378
|
-
result = imul(result, 31) + hashCode(this.
|
|
1379
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1373
|
+
var result = Path__hashCode_impl_go73kd(this.v22_1);
|
|
1374
|
+
result = imul(result, 31) + this.w22_1.hashCode() | 0;
|
|
1375
|
+
result = imul(result, 31) + this.x22_1.hashCode() | 0;
|
|
1376
|
+
result = imul(result, 31) + this.y22_1.hashCode() | 0;
|
|
1377
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.z22_1) | 0;
|
|
1378
|
+
result = imul(result, 31) + hashCode(this.a23_1) | 0;
|
|
1379
|
+
result = imul(result, 31) + getStringHashCode(this.b23_1) | 0;
|
|
1380
1380
|
return result;
|
|
1381
1381
|
};
|
|
1382
1382
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -1385,68 +1385,68 @@
|
|
|
1385
1385
|
if (!(other instanceof FlattenResponse))
|
|
1386
1386
|
return false;
|
|
1387
1387
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
1388
|
-
if (!(this.
|
|
1388
|
+
if (!(this.v22_1 === tmp0_other_with_cast.v22_1))
|
|
1389
1389
|
return false;
|
|
1390
|
-
if (!this.
|
|
1390
|
+
if (!this.w22_1.equals(tmp0_other_with_cast.w22_1))
|
|
1391
1391
|
return false;
|
|
1392
|
-
if (!this.
|
|
1392
|
+
if (!this.x22_1.equals(tmp0_other_with_cast.x22_1))
|
|
1393
1393
|
return false;
|
|
1394
|
-
if (!this.
|
|
1394
|
+
if (!this.y22_1.equals(tmp0_other_with_cast.y22_1))
|
|
1395
1395
|
return false;
|
|
1396
|
-
if (!(this.
|
|
1396
|
+
if (!(this.z22_1 === tmp0_other_with_cast.z22_1))
|
|
1397
1397
|
return false;
|
|
1398
|
-
if (!equals(this.
|
|
1398
|
+
if (!equals(this.a23_1, tmp0_other_with_cast.a23_1))
|
|
1399
1399
|
return false;
|
|
1400
|
-
if (!(this.
|
|
1400
|
+
if (!(this.b23_1 === tmp0_other_with_cast.b23_1))
|
|
1401
1401
|
return false;
|
|
1402
1402
|
return true;
|
|
1403
1403
|
};
|
|
1404
1404
|
function flatMapResponses(_this__u8e3s4, $this, f) {
|
|
1405
1405
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1406
1406
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1407
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
1407
|
+
var tmp0_flatMap = _this__u8e3s4.a17_1;
|
|
1408
1408
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1409
1409
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1410
1410
|
// Inline function 'kotlin.collections.iterator' call
|
|
1411
|
-
var tmp0_iterator = tmp0_flatMap.
|
|
1411
|
+
var tmp0_iterator = tmp0_flatMap.w().c();
|
|
1412
1412
|
while (tmp0_iterator.d()) {
|
|
1413
1413
|
var element = tmp0_iterator.e();
|
|
1414
1414
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
1415
1415
|
// Inline function 'kotlin.collections.component1' call
|
|
1416
|
-
var path = element.
|
|
1416
|
+
var path = element.x().l17_1;
|
|
1417
1417
|
// Inline function 'kotlin.collections.component2' call
|
|
1418
|
-
var pathItem = element.
|
|
1418
|
+
var pathItem = element.y();
|
|
1419
1419
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1420
1420
|
var tmp0_flatMap_0 = toOperationList(pathItem, $this);
|
|
1421
1421
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1422
1422
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
1423
1423
|
// Inline function 'kotlin.collections.iterator' call
|
|
1424
|
-
var tmp0_iterator_0 = tmp0_flatMap_0.
|
|
1424
|
+
var tmp0_iterator_0 = tmp0_flatMap_0.w().c();
|
|
1425
1425
|
while (tmp0_iterator_0.d()) {
|
|
1426
1426
|
var element_0 = tmp0_iterator_0.e();
|
|
1427
1427
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>' call
|
|
1428
1428
|
// Inline function 'kotlin.collections.component1' call
|
|
1429
|
-
var method = element_0.
|
|
1429
|
+
var method = element_0.x();
|
|
1430
1430
|
// Inline function 'kotlin.collections.component2' call
|
|
1431
|
-
var operation = element_0.
|
|
1431
|
+
var operation = element_0.y();
|
|
1432
1432
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1433
1433
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1434
|
-
var tmp0_elvis_lhs = operation.
|
|
1434
|
+
var tmp0_elvis_lhs = operation.m18_1;
|
|
1435
1435
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1436
1436
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1437
1437
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
1438
1438
|
// Inline function 'kotlin.collections.iterator' call
|
|
1439
|
-
var tmp0_iterator_1 = tmp1_flatMap.
|
|
1439
|
+
var tmp0_iterator_1 = tmp1_flatMap.w().c();
|
|
1440
1440
|
while (tmp0_iterator_1.d()) {
|
|
1441
1441
|
var element_1 = tmp0_iterator_1.e();
|
|
1442
1442
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
1443
1443
|
// Inline function 'kotlin.collections.component1' call
|
|
1444
|
-
var statusCode = element_1.
|
|
1444
|
+
var statusCode = element_1.x().e1b_1;
|
|
1445
1445
|
// Inline function 'kotlin.collections.component2' call
|
|
1446
|
-
var response = element_1.
|
|
1446
|
+
var response = element_1.y();
|
|
1447
1447
|
// Inline function 'kotlin.collections.map' call
|
|
1448
|
-
var tmp0_elvis_lhs_0 = _this__u8e3s4.
|
|
1449
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.
|
|
1448
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.z16_1;
|
|
1449
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.k18_1 : tmp0_elvis_lhs_0;
|
|
1450
1450
|
var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
1451
1451
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1452
1452
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
@@ -1480,9 +1480,9 @@
|
|
|
1480
1480
|
}
|
|
1481
1481
|
function OpenApiParser$parseParameters$lambda(this$0) {
|
|
1482
1482
|
return function (req) {
|
|
1483
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1484
|
-
var tmp0_elvis_lhs = toName(req.
|
|
1485
|
-
var name = tmp0_elvis_lhs == null ? toName_0(req.
|
|
1483
|
+
var parameters = plus(resolveParameters_0(req.r22_1, this$0), resolveParameters(req.t22_1, this$0));
|
|
1484
|
+
var tmp0_elvis_lhs = toName(req.t22_1, this$0);
|
|
1485
|
+
var name = tmp0_elvis_lhs == null ? toName_0(req.q22_1, this$0) + req.s22_1.o5_1 : tmp0_elvis_lhs;
|
|
1486
1486
|
var tmp$ret$5;
|
|
1487
1487
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1488
1488
|
var tmp$ret$2;
|
|
@@ -1495,7 +1495,7 @@
|
|
|
1495
1495
|
var element = tmp0_iterator.e();
|
|
1496
1496
|
var tmp$ret$0;
|
|
1497
1497
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
1498
|
-
tmp$ret$0 = !element.
|
|
1498
|
+
tmp$ret$0 = !element.v18_1.equals(ParameterLocation_BODY_getInstance());
|
|
1499
1499
|
if (tmp$ret$0) {
|
|
1500
1500
|
tmp0_filterTo.a(element);
|
|
1501
1501
|
}
|
|
@@ -1511,8 +1511,8 @@
|
|
|
1511
1511
|
var element_0 = tmp0_iterator_0.e();
|
|
1512
1512
|
var tmp$ret$3;
|
|
1513
1513
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
1514
|
-
var tmp0_safe_receiver = element_0.
|
|
1515
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_0(tmp0_safe_receiver, this$0, Common_getInstance().
|
|
1514
|
+
var tmp0_safe_receiver = element_0.y18_1;
|
|
1515
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_0(tmp0_safe_receiver, this$0, Common_getInstance().l22([name, 'Parameter', element_0.u18_1]));
|
|
1516
1516
|
tmp$ret$3 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
1517
1517
|
var list = tmp$ret$3;
|
|
1518
1518
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -1524,9 +1524,9 @@
|
|
|
1524
1524
|
}
|
|
1525
1525
|
function OpenApiParser$parseRequestBody$lambda(this$0) {
|
|
1526
1526
|
return function (req) {
|
|
1527
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1528
|
-
var tmp0_elvis_lhs = toName(req.
|
|
1529
|
-
var name = tmp0_elvis_lhs == null ? toName_0(req.
|
|
1527
|
+
var parameters = plus(resolveParameters_0(req.r22_1, this$0), resolveParameters(req.t22_1, this$0));
|
|
1528
|
+
var tmp0_elvis_lhs = toName(req.t22_1, this$0);
|
|
1529
|
+
var name = tmp0_elvis_lhs == null ? toName_0(req.q22_1, this$0) + req.s22_1.o5_1 : tmp0_elvis_lhs;
|
|
1530
1530
|
var tmp$ret$5;
|
|
1531
1531
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1532
1532
|
var tmp$ret$4;
|
|
@@ -1538,11 +1538,11 @@
|
|
|
1538
1538
|
var tmp$ret$3;
|
|
1539
1539
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1540
1540
|
var tmp;
|
|
1541
|
-
if (!(element.
|
|
1542
|
-
var tmp_0 = Common_getInstance().
|
|
1541
|
+
if (!(element.p19_1 == null)) {
|
|
1542
|
+
var tmp_0 = Common_getInstance().l22([name, 'Parameter', element.u18_1]);
|
|
1543
1543
|
var tmp$ret$2;
|
|
1544
1544
|
// Inline function 'kotlin.collections.map' call
|
|
1545
|
-
var tmp0_map = ensureNotNull(element.
|
|
1545
|
+
var tmp0_map = ensureNotNull(element.p19_1);
|
|
1546
1546
|
var tmp$ret$1;
|
|
1547
1547
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1548
1548
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
@@ -1551,7 +1551,7 @@
|
|
|
1551
1551
|
var item = tmp0_iterator_0.e();
|
|
1552
1552
|
var tmp$ret$0;
|
|
1553
1553
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
1554
|
-
tmp$ret$0 = item.
|
|
1554
|
+
tmp$ret$0 = item.uz();
|
|
1555
1555
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1556
1556
|
}
|
|
1557
1557
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -1567,7 +1567,7 @@
|
|
|
1567
1567
|
tmp$ret$4 = tmp0_flatMapTo;
|
|
1568
1568
|
tmp$ret$5 = tmp$ret$4;
|
|
1569
1569
|
var enums = tmp$ret$5;
|
|
1570
|
-
var tmp1_safe_receiver = req.
|
|
1570
|
+
var tmp1_safe_receiver = req.t22_1.l18_1;
|
|
1571
1571
|
var tmp_1;
|
|
1572
1572
|
if (tmp1_safe_receiver == null) {
|
|
1573
1573
|
tmp_1 = null;
|
|
@@ -1604,7 +1604,7 @@
|
|
|
1604
1604
|
var element_0 = tmp0_iterator_2.e();
|
|
1605
1605
|
var tmp$ret$9;
|
|
1606
1606
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1607
|
-
tmp$ret$9 = element_0.
|
|
1607
|
+
tmp$ret$9 = element_0.v18_1.equals(ParameterLocation_BODY_getInstance());
|
|
1608
1608
|
if (tmp$ret$9) {
|
|
1609
1609
|
tmp0_filterTo.a(element_0);
|
|
1610
1610
|
}
|
|
@@ -1628,22 +1628,22 @@
|
|
|
1628
1628
|
var element_1 = tmp0_iterator_3.e();
|
|
1629
1629
|
var tmp$ret$13;
|
|
1630
1630
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1631
|
-
var schema = element_1.
|
|
1631
|
+
var schema = element_1.y18_1;
|
|
1632
1632
|
var tmp_4;
|
|
1633
1633
|
if (schema instanceof SchemaObject) {
|
|
1634
|
-
var tmp0_subject = schema.
|
|
1635
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.
|
|
1634
|
+
var tmp0_subject = schema.w1a_1;
|
|
1635
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.p5_1;
|
|
1636
1636
|
var tmp_5;
|
|
1637
1637
|
switch (tmp0) {
|
|
1638
1638
|
case -1:
|
|
1639
1639
|
case 5:
|
|
1640
|
-
tmp_5 = flatten(schema, this$0, Common_getInstance().
|
|
1640
|
+
tmp_5 = flatten(schema, this$0, Common_getInstance().l22([name, 'RequestBody']));
|
|
1641
1641
|
break;
|
|
1642
1642
|
case 4:
|
|
1643
1643
|
var tmp$ret$12;
|
|
1644
1644
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1645
|
-
var tmp1_safe_receiver_0 = schema.
|
|
1646
|
-
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
1645
|
+
var tmp1_safe_receiver_0 = schema.x1a_1;
|
|
1646
|
+
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().l22([name, 'RequestBody']));
|
|
1647
1647
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1648
1648
|
tmp$ret$12 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1649
1649
|
|
|
@@ -1672,25 +1672,25 @@
|
|
|
1672
1672
|
}
|
|
1673
1673
|
function OpenApiParser$parseResponseBody$lambda(this$0) {
|
|
1674
1674
|
return function (res) {
|
|
1675
|
-
var response = resolve_1(res.
|
|
1676
|
-
var tmp0_elvis_lhs = toName(res.
|
|
1677
|
-
var name = tmp0_elvis_lhs == null ? toName_0(res.
|
|
1678
|
-
var schema = response.
|
|
1675
|
+
var response = resolve_1(res.a23_1, this$0);
|
|
1676
|
+
var tmp0_elvis_lhs = toName(res.y22_1, this$0);
|
|
1677
|
+
var name = tmp0_elvis_lhs == null ? toName_0(res.v22_1, this$0) + res.x22_1.o5_1 : tmp0_elvis_lhs;
|
|
1678
|
+
var schema = response.i1b_1;
|
|
1679
1679
|
var tmp;
|
|
1680
1680
|
if (schema instanceof SchemaObject) {
|
|
1681
|
-
var tmp1_subject = schema.
|
|
1682
|
-
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.
|
|
1681
|
+
var tmp1_subject = schema.w1a_1;
|
|
1682
|
+
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.p5_1;
|
|
1683
1683
|
var tmp_0;
|
|
1684
1684
|
switch (tmp0) {
|
|
1685
1685
|
case -1:
|
|
1686
1686
|
case 5:
|
|
1687
|
-
tmp_0 = flatten(schema, this$0, Common_getInstance().
|
|
1687
|
+
tmp_0 = flatten(schema, this$0, Common_getInstance().l22([name, _StatusCode___get_value__impl__we50mu(res.z22_1), res.b23_1, 'ResponseBody']));
|
|
1688
1688
|
break;
|
|
1689
1689
|
case 4:
|
|
1690
1690
|
var tmp$ret$0;
|
|
1691
1691
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1692
|
-
var tmp2_safe_receiver = schema.
|
|
1693
|
-
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : flatten_0(tmp2_safe_receiver, this$0, Common_getInstance().
|
|
1692
|
+
var tmp2_safe_receiver = schema.x1a_1;
|
|
1693
|
+
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : flatten_0(tmp2_safe_receiver, this$0, Common_getInstance().l22([name, _StatusCode___get_value__impl__we50mu(res.z22_1), res.b23_1, 'ResponseBody']));
|
|
1694
1694
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1695
1695
|
tmp$ret$0 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1696
1696
|
|
|
@@ -1722,10 +1722,10 @@
|
|
|
1722
1722
|
tmp$ret$0 = it;
|
|
1723
1723
|
tmp$ret$1 = tmp$ret$0.substring(1, tmp0_substring);
|
|
1724
1724
|
|
|
1725
|
-
tmp = tmp_0.
|
|
1725
|
+
tmp = tmp_0.l22([tmp$ret$1]);
|
|
1726
1726
|
break;
|
|
1727
1727
|
case false:
|
|
1728
|
-
tmp = Common_getInstance().
|
|
1728
|
+
tmp = Common_getInstance().l22([it]);
|
|
1729
1729
|
break;
|
|
1730
1730
|
default:
|
|
1731
1731
|
noWhenBranchMatchedException();
|
|
@@ -1736,24 +1736,24 @@
|
|
|
1736
1736
|
}
|
|
1737
1737
|
function OpenApiParser(openApi) {
|
|
1738
1738
|
Companion_getInstance_0();
|
|
1739
|
-
this.
|
|
1739
|
+
this.n22_1 = openApi;
|
|
1740
1740
|
}
|
|
1741
|
-
protoOf(OpenApiParser).
|
|
1741
|
+
protoOf(OpenApiParser).o22 = function () {
|
|
1742
1742
|
return plus(plus(plus(plus(parseEndpoints(this), parseParameters(this)), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
|
|
1743
1743
|
};
|
|
1744
1744
|
function toMap_0(_this__u8e3s4) {
|
|
1745
1745
|
var tmp;
|
|
1746
1746
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1747
|
-
tmp = _this__u8e3s4.
|
|
1747
|
+
tmp = _this__u8e3s4.h21(VOID, VOID, true);
|
|
1748
1748
|
} else {
|
|
1749
1749
|
if (_this__u8e3s4 instanceof Any) {
|
|
1750
|
-
tmp = _this__u8e3s4.
|
|
1750
|
+
tmp = _this__u8e3s4.c21(VOID, true);
|
|
1751
1751
|
} else {
|
|
1752
1752
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1753
|
-
tmp = _this__u8e3s4.
|
|
1753
|
+
tmp = _this__u8e3s4.j21(VOID, VOID, true);
|
|
1754
1754
|
} else {
|
|
1755
1755
|
if (_this__u8e3s4 instanceof Unit) {
|
|
1756
|
-
tmp = _this__u8e3s4.
|
|
1756
|
+
tmp = _this__u8e3s4.f21(VOID, true);
|
|
1757
1757
|
} else {
|
|
1758
1758
|
noWhenBranchMatchedException();
|
|
1759
1759
|
}
|
|
@@ -1764,7 +1764,7 @@
|
|
|
1764
1764
|
}
|
|
1765
1765
|
function isPrimitive(_this__u8e3s4) {
|
|
1766
1766
|
var tmp;
|
|
1767
|
-
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.
|
|
1767
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.p5_1) {
|
|
1768
1768
|
case 0:
|
|
1769
1769
|
tmp = true;
|
|
1770
1770
|
break;
|
|
@@ -1798,16 +1798,16 @@
|
|
|
1798
1798
|
function toIterable(_this__u8e3s4) {
|
|
1799
1799
|
var tmp;
|
|
1800
1800
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1801
|
-
tmp = _this__u8e3s4.
|
|
1801
|
+
tmp = _this__u8e3s4.h21(VOID, true);
|
|
1802
1802
|
} else {
|
|
1803
1803
|
if (_this__u8e3s4 instanceof Any) {
|
|
1804
|
-
tmp = _this__u8e3s4.
|
|
1804
|
+
tmp = _this__u8e3s4.c21(true);
|
|
1805
1805
|
} else {
|
|
1806
1806
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1807
|
-
tmp = _this__u8e3s4.
|
|
1807
|
+
tmp = _this__u8e3s4.j21(VOID, true);
|
|
1808
1808
|
} else {
|
|
1809
1809
|
if (_this__u8e3s4 instanceof Unit) {
|
|
1810
|
-
tmp = _this__u8e3s4.
|
|
1810
|
+
tmp = _this__u8e3s4.f21(true);
|
|
1811
1811
|
} else {
|
|
1812
1812
|
noWhenBranchMatchedException();
|
|
1813
1813
|
}
|
|
@@ -1822,15 +1822,15 @@
|
|
|
1822
1822
|
var tmp0_mapNotNullTo = ArrayList_init_$Create$();
|
|
1823
1823
|
// Inline function 'kotlin.collections.forEach' call
|
|
1824
1824
|
// Inline function 'kotlin.collections.iterator' call
|
|
1825
|
-
var tmp0_iterator = _this__u8e3s4.
|
|
1825
|
+
var tmp0_iterator = _this__u8e3s4.w().c();
|
|
1826
1826
|
while (tmp0_iterator.d()) {
|
|
1827
1827
|
var element = tmp0_iterator.e();
|
|
1828
1828
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
1829
1829
|
// Inline function 'community.flock.wirespec.openapi.v2.filterNotNullValues.<anonymous>' call
|
|
1830
1830
|
// Inline function 'kotlin.collections.component1' call
|
|
1831
|
-
var key = element.
|
|
1831
|
+
var key = element.x();
|
|
1832
1832
|
// Inline function 'kotlin.collections.component2' call
|
|
1833
|
-
var value = element.
|
|
1833
|
+
var value = element.y();
|
|
1834
1834
|
var tmp;
|
|
1835
1835
|
if (value == null) {
|
|
1836
1836
|
tmp = null;
|
|
@@ -1853,24 +1853,24 @@
|
|
|
1853
1853
|
}
|
|
1854
1854
|
function OpenApiParser$Companion$parse$lambda_0($strict) {
|
|
1855
1855
|
return function ($this$Json) {
|
|
1856
|
-
$this$Json.
|
|
1857
|
-
$this$Json.
|
|
1856
|
+
$this$Json.wy_1 = true;
|
|
1857
|
+
$this$Json.ty_1 = $strict;
|
|
1858
1858
|
return Unit_getInstance();
|
|
1859
1859
|
};
|
|
1860
1860
|
}
|
|
1861
1861
|
function Companion_0() {
|
|
1862
1862
|
Companion_instance_0 = this;
|
|
1863
1863
|
}
|
|
1864
|
-
protoOf(Companion_0).
|
|
1864
|
+
protoOf(Companion_0).m22 = function (json, strict) {
|
|
1865
1865
|
// Inline function 'kotlin.let' call
|
|
1866
|
-
var tmp0_let = (new OpenAPI_0(Json(VOID, OpenApiParser$Companion$parse$lambda_0(strict)))).
|
|
1866
|
+
var tmp0_let = (new OpenAPI_0(Json(VOID, OpenApiParser$Companion$parse$lambda_0(strict)))).q16(json);
|
|
1867
1867
|
// Inline function 'kotlin.contracts.contract' call
|
|
1868
1868
|
// Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
|
|
1869
1869
|
return parse(new OpenApiParser_0(tmp0_let));
|
|
1870
1870
|
};
|
|
1871
|
-
protoOf(Companion_0).
|
|
1871
|
+
protoOf(Companion_0).c23 = function (json, strict, $super) {
|
|
1872
1872
|
strict = strict === VOID ? false : strict;
|
|
1873
|
-
return $super === VOID ? this.
|
|
1873
|
+
return $super === VOID ? this.m22(json, strict) : $super.m22.call(this, json, strict);
|
|
1874
1874
|
};
|
|
1875
1875
|
var Companion_instance_0;
|
|
1876
1876
|
function Companion_getInstance_1() {
|
|
@@ -1883,36 +1883,36 @@
|
|
|
1883
1883
|
}
|
|
1884
1884
|
function parseEndpoint($this) {
|
|
1885
1885
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1886
|
-
var tmp0_flatMap = $this.
|
|
1886
|
+
var tmp0_flatMap = $this.d23_1.q1f_1;
|
|
1887
1887
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1888
1888
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1889
1889
|
// Inline function 'kotlin.collections.iterator' call
|
|
1890
|
-
var tmp0_iterator = tmp0_flatMap.
|
|
1890
|
+
var tmp0_iterator = tmp0_flatMap.w().c();
|
|
1891
1891
|
while (tmp0_iterator.d()) {
|
|
1892
1892
|
var element = tmp0_iterator.e();
|
|
1893
1893
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>' call
|
|
1894
1894
|
// Inline function 'kotlin.collections.component1' call
|
|
1895
|
-
var key = element.
|
|
1895
|
+
var key = element.x().y1f_1;
|
|
1896
1896
|
// Inline function 'kotlin.collections.component2' call
|
|
1897
|
-
var path = element.
|
|
1897
|
+
var path = element.y();
|
|
1898
1898
|
// Inline function 'kotlin.collections.map' call
|
|
1899
1899
|
var tmp0_map = toOperationList_0(path, $this);
|
|
1900
1900
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1901
1901
|
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp0_map.f());
|
|
1902
1902
|
// Inline function 'kotlin.collections.iterator' call
|
|
1903
|
-
var tmp0_iterator_0 = tmp0_map.
|
|
1903
|
+
var tmp0_iterator_0 = tmp0_map.w().c();
|
|
1904
1904
|
while (tmp0_iterator_0.d()) {
|
|
1905
1905
|
var item = tmp0_iterator_0.e();
|
|
1906
1906
|
var tmp$ret$52;
|
|
1907
1907
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>' call
|
|
1908
1908
|
// Inline function 'kotlin.collections.component1' call
|
|
1909
|
-
var method = item.
|
|
1909
|
+
var method = item.x();
|
|
1910
1910
|
// Inline function 'kotlin.collections.component2' call
|
|
1911
|
-
var operation = item.
|
|
1911
|
+
var operation = item.y();
|
|
1912
1912
|
var parameters = plus(resolveParameters_2(path, $this), resolveParameters_1(operation, $this));
|
|
1913
1913
|
var segments = toSegments_0(key, $this, parameters);
|
|
1914
1914
|
var tmp0_elvis_lhs = toName_1(operation, $this);
|
|
1915
|
-
var name = tmp0_elvis_lhs == null ? toName_2(key, $this) + method.
|
|
1915
|
+
var name = tmp0_elvis_lhs == null ? toName_2(key, $this) + method.o5_1 : tmp0_elvis_lhs;
|
|
1916
1916
|
// Inline function 'kotlin.collections.map' call
|
|
1917
1917
|
// Inline function 'kotlin.collections.filter' call
|
|
1918
1918
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -1921,7 +1921,7 @@
|
|
|
1921
1921
|
while (tmp0_iterator_1.d()) {
|
|
1922
1922
|
var element_0 = tmp0_iterator_1.e();
|
|
1923
1923
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1924
|
-
if (element_0.
|
|
1924
|
+
if (element_0.s1h_1.equals(ParameterLocation_QUERY_getInstance_0())) {
|
|
1925
1925
|
tmp0_filterTo.a(element_0);
|
|
1926
1926
|
}
|
|
1927
1927
|
}
|
|
@@ -1932,7 +1932,7 @@
|
|
|
1932
1932
|
var item_0 = tmp0_iterator_2.e();
|
|
1933
1933
|
var tmp$ret$9;
|
|
1934
1934
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1935
|
-
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().
|
|
1935
|
+
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().l22([name, 'Parameter', item_0.r1h_1]));
|
|
1936
1936
|
tmp0_mapTo_0.a(tmp$ret$9);
|
|
1937
1937
|
}
|
|
1938
1938
|
var query = tmp0_mapTo_0;
|
|
@@ -1944,7 +1944,7 @@
|
|
|
1944
1944
|
while (tmp0_iterator_3.d()) {
|
|
1945
1945
|
var element_1 = tmp0_iterator_3.e();
|
|
1946
1946
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1947
|
-
if (element_1.
|
|
1947
|
+
if (element_1.s1h_1.equals(ParameterLocation_HEADER_getInstance_0())) {
|
|
1948
1948
|
tmp0_filterTo_0.a(element_1);
|
|
1949
1949
|
}
|
|
1950
1950
|
}
|
|
@@ -1955,7 +1955,7 @@
|
|
|
1955
1955
|
var item_1 = tmp0_iterator_4.e();
|
|
1956
1956
|
var tmp$ret$15;
|
|
1957
1957
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1958
|
-
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().
|
|
1958
|
+
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().l22([name, 'Parameter', item_1.r1h_1]));
|
|
1959
1959
|
tmp0_mapTo_1.a(tmp$ret$15);
|
|
1960
1960
|
}
|
|
1961
1961
|
var headers = tmp0_mapTo_1;
|
|
@@ -1967,7 +1967,7 @@
|
|
|
1967
1967
|
while (tmp0_iterator_5.d()) {
|
|
1968
1968
|
var element_2 = tmp0_iterator_5.e();
|
|
1969
1969
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1970
|
-
if (element_2.
|
|
1970
|
+
if (element_2.s1h_1.equals(ParameterLocation_COOKIE_getInstance())) {
|
|
1971
1971
|
tmp0_filterTo_1.a(element_2);
|
|
1972
1972
|
}
|
|
1973
1973
|
}
|
|
@@ -1978,11 +1978,11 @@
|
|
|
1978
1978
|
var item_2 = tmp0_iterator_6.e();
|
|
1979
1979
|
var tmp$ret$21;
|
|
1980
1980
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1981
|
-
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().
|
|
1981
|
+
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().l22([name, 'Parameter', item_2.r1h_1]));
|
|
1982
1982
|
tmp0_mapTo_2.a(tmp$ret$21);
|
|
1983
1983
|
}
|
|
1984
1984
|
var cookies = tmp0_mapTo_2;
|
|
1985
|
-
var tmp1_safe_receiver = operation.
|
|
1985
|
+
var tmp1_safe_receiver = operation.x1g_1;
|
|
1986
1986
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_6(tmp1_safe_receiver, $this);
|
|
1987
1987
|
var tmp;
|
|
1988
1988
|
if (tmp2_safe_receiver == null) {
|
|
@@ -1991,7 +1991,7 @@
|
|
|
1991
1991
|
// Inline function 'kotlin.let' call
|
|
1992
1992
|
// Inline function 'kotlin.contracts.contract' call
|
|
1993
1993
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1994
|
-
var tmp0_safe_receiver = tmp2_safe_receiver.
|
|
1994
|
+
var tmp0_safe_receiver = tmp2_safe_receiver.x1h_1;
|
|
1995
1995
|
var tmp_0;
|
|
1996
1996
|
if (tmp0_safe_receiver == null) {
|
|
1997
1997
|
tmp_0 = null;
|
|
@@ -2000,23 +2000,23 @@
|
|
|
2000
2000
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2001
2001
|
var tmp0_mapTo_3 = ArrayList_init_$Create$_0(tmp0_safe_receiver.f());
|
|
2002
2002
|
// Inline function 'kotlin.collections.iterator' call
|
|
2003
|
-
var tmp0_iterator_7 = tmp0_safe_receiver.
|
|
2003
|
+
var tmp0_iterator_7 = tmp0_safe_receiver.w().c();
|
|
2004
2004
|
while (tmp0_iterator_7.d()) {
|
|
2005
2005
|
var item_3 = tmp0_iterator_7.e();
|
|
2006
2006
|
var tmp$ret$27;
|
|
2007
2007
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2008
2008
|
// Inline function 'kotlin.collections.component1' call
|
|
2009
|
-
var mediaType = item_3.
|
|
2009
|
+
var mediaType = item_3.x().c1i_1;
|
|
2010
2010
|
// Inline function 'kotlin.collections.component2' call
|
|
2011
|
-
var mediaObject = item_3.
|
|
2011
|
+
var mediaObject = item_3.y();
|
|
2012
2012
|
var tmp_1 = _MediaType___get_value__impl__wy58mp(mediaType);
|
|
2013
|
-
var schema = mediaObject.
|
|
2013
|
+
var schema = mediaObject.f1i_1;
|
|
2014
2014
|
var tmp_2;
|
|
2015
2015
|
if (schema instanceof ReferenceObject_0) {
|
|
2016
2016
|
tmp_2 = toReference_1(schema, $this);
|
|
2017
2017
|
} else {
|
|
2018
2018
|
if (schema instanceof SchemaObject_0) {
|
|
2019
|
-
tmp_2 = toReference_2(schema, $this, Common_getInstance().
|
|
2019
|
+
tmp_2 = toReference_2(schema, $this, Common_getInstance().l22([name, 'RequestBody']));
|
|
2020
2020
|
} else {
|
|
2021
2021
|
if (schema == null) {
|
|
2022
2022
|
throw new NotImplementedError();
|
|
@@ -2026,7 +2026,7 @@
|
|
|
2026
2026
|
}
|
|
2027
2027
|
}
|
|
2028
2028
|
var tmp_3 = tmp_2;
|
|
2029
|
-
var tmp0_elvis_lhs_0 = tmp2_safe_receiver.
|
|
2029
|
+
var tmp0_elvis_lhs_0 = tmp2_safe_receiver.y1h_1;
|
|
2030
2030
|
tmp$ret$27 = new Request(new Content(tmp_1, tmp_3, tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0));
|
|
2031
2031
|
tmp0_mapTo_3.a(tmp$ret$27);
|
|
2032
2032
|
}
|
|
@@ -2038,24 +2038,24 @@
|
|
|
2038
2038
|
var requests = tmp3_elvis_lhs == null ? listOf(new Request(null)) : tmp3_elvis_lhs;
|
|
2039
2039
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2040
2040
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2041
|
-
var tmp0_elvis_lhs_1 = operation.
|
|
2041
|
+
var tmp0_elvis_lhs_1 = operation.y1g_1;
|
|
2042
2042
|
var tmp4_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
2043
2043
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2044
2044
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
2045
2045
|
// Inline function 'kotlin.collections.iterator' call
|
|
2046
|
-
var tmp0_iterator_8 = tmp4_flatMap.
|
|
2046
|
+
var tmp0_iterator_8 = tmp4_flatMap.w().c();
|
|
2047
2047
|
while (tmp0_iterator_8.d()) {
|
|
2048
2048
|
var element_3 = tmp0_iterator_8.e();
|
|
2049
2049
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2050
2050
|
// Inline function 'kotlin.collections.component1' call
|
|
2051
|
-
var status = element_3.
|
|
2051
|
+
var status = element_3.x().b1k_1;
|
|
2052
2052
|
// Inline function 'kotlin.collections.component2' call
|
|
2053
|
-
var res = element_3.
|
|
2053
|
+
var res = element_3.y();
|
|
2054
2054
|
// Inline function 'kotlin.let' call
|
|
2055
2055
|
var tmp0_let = resolve_7(res, $this);
|
|
2056
2056
|
// Inline function 'kotlin.contracts.contract' call
|
|
2057
2057
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2058
|
-
var tmp0_safe_receiver_0 = tmp0_let.
|
|
2058
|
+
var tmp0_safe_receiver_0 = tmp0_let.g1k_1;
|
|
2059
2059
|
var tmp_4;
|
|
2060
2060
|
if (tmp0_safe_receiver_0 == null) {
|
|
2061
2061
|
tmp_4 = null;
|
|
@@ -2064,18 +2064,18 @@
|
|
|
2064
2064
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2065
2065
|
var tmp0_mapTo_4 = ArrayList_init_$Create$_0(tmp0_safe_receiver_0.f());
|
|
2066
2066
|
// Inline function 'kotlin.collections.iterator' call
|
|
2067
|
-
var tmp0_iterator_9 = tmp0_safe_receiver_0.
|
|
2067
|
+
var tmp0_iterator_9 = tmp0_safe_receiver_0.w().c();
|
|
2068
2068
|
while (tmp0_iterator_9.d()) {
|
|
2069
2069
|
var item_4 = tmp0_iterator_9.e();
|
|
2070
2070
|
var tmp$ret$44;
|
|
2071
2071
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2072
2072
|
// Inline function 'kotlin.collections.component1' call
|
|
2073
|
-
var contentType = item_4.
|
|
2073
|
+
var contentType = item_4.x().c1i_1;
|
|
2074
2074
|
// Inline function 'kotlin.collections.component2' call
|
|
2075
|
-
var media = item_4.
|
|
2075
|
+
var media = item_4.y();
|
|
2076
2076
|
var tmp_5 = _StatusCode___get_value__impl__we50mu_0(status);
|
|
2077
2077
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2078
|
-
var tmp0_safe_receiver_1 = tmp0_let.
|
|
2078
|
+
var tmp0_safe_receiver_1 = tmp0_let.f1k_1;
|
|
2079
2079
|
var tmp_6;
|
|
2080
2080
|
if (tmp0_safe_receiver_1 == null) {
|
|
2081
2081
|
tmp_6 = null;
|
|
@@ -2084,12 +2084,12 @@
|
|
|
2084
2084
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2085
2085
|
var tmp0_mapTo_5 = ArrayList_init_$Create$_0(tmp0_safe_receiver_1.f());
|
|
2086
2086
|
// Inline function 'kotlin.collections.iterator' call
|
|
2087
|
-
var tmp0_iterator_10 = tmp0_safe_receiver_1.
|
|
2087
|
+
var tmp0_iterator_10 = tmp0_safe_receiver_1.w().c();
|
|
2088
2088
|
while (tmp0_iterator_10.d()) {
|
|
2089
2089
|
var item_5 = tmp0_iterator_10.e();
|
|
2090
2090
|
var tmp$ret$40;
|
|
2091
2091
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2092
|
-
tmp$ret$40 = toField_3(resolve_4(item_5.
|
|
2092
|
+
tmp$ret$40 = toField_3(resolve_4(item_5.y(), $this), $this, item_5.x(), Common_getInstance().l22([name, 'ResponseHeader']));
|
|
2093
2093
|
tmp0_mapTo_5.a(tmp$ret$40);
|
|
2094
2094
|
}
|
|
2095
2095
|
tmp_6 = tmp0_mapTo_5;
|
|
@@ -2097,13 +2097,13 @@
|
|
|
2097
2097
|
var tmp0_elvis_lhs_2 = tmp_6;
|
|
2098
2098
|
var tmp_7 = tmp0_elvis_lhs_2 == null ? emptyList() : tmp0_elvis_lhs_2;
|
|
2099
2099
|
var tmp_8 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
2100
|
-
var schema_0 = media.
|
|
2100
|
+
var schema_0 = media.f1i_1;
|
|
2101
2101
|
var tmp_9;
|
|
2102
2102
|
if (schema_0 instanceof ReferenceObject_0) {
|
|
2103
2103
|
tmp_9 = toReference_1(schema_0, $this);
|
|
2104
2104
|
} else {
|
|
2105
2105
|
if (schema_0 instanceof SchemaObject_0) {
|
|
2106
|
-
tmp_9 = toReference_2(schema_0, $this, Common_getInstance().
|
|
2106
|
+
tmp_9 = toReference_2(schema_0, $this, Common_getInstance().l22([name, _StatusCode___get_value__impl__we50mu_0(status), _MediaType___get_value__impl__wy58mp(contentType), 'ResponseBody']));
|
|
2107
2107
|
} else {
|
|
2108
2108
|
if (schema_0 == null) {
|
|
2109
2109
|
tmp_9 = new Any(false);
|
|
@@ -2113,9 +2113,9 @@
|
|
|
2113
2113
|
}
|
|
2114
2114
|
}
|
|
2115
2115
|
var tmp_10 = tmp_9;
|
|
2116
|
-
var tmp1_safe_receiver_0 = media.
|
|
2116
|
+
var tmp1_safe_receiver_0 = media.f1i_1;
|
|
2117
2117
|
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : resolve_3(tmp1_safe_receiver_0, $this);
|
|
2118
|
-
var tmp3_elvis_lhs_0 = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.
|
|
2118
|
+
var tmp3_elvis_lhs_0 = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.o1i_1;
|
|
2119
2119
|
tmp$ret$44 = new Response(tmp_5, tmp_7, new Content(tmp_8, tmp_10, tmp3_elvis_lhs_0 == null ? false : tmp3_elvis_lhs_0));
|
|
2120
2120
|
tmp0_mapTo_4.a(tmp$ret$44);
|
|
2121
2121
|
}
|
|
@@ -2135,47 +2135,47 @@
|
|
|
2135
2135
|
return tmp0_flatMapTo;
|
|
2136
2136
|
}
|
|
2137
2137
|
function parseParameters_0($this) {
|
|
2138
|
-
return flatMapRequests_0($this.
|
|
2138
|
+
return flatMapRequests_0($this.d23_1, $this, OpenApiParser$parseParameters$lambda_0($this));
|
|
2139
2139
|
}
|
|
2140
2140
|
function parseRequestBody_0($this) {
|
|
2141
|
-
return flatMapRequests_0($this.
|
|
2141
|
+
return flatMapRequests_0($this.d23_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
|
|
2142
2142
|
}
|
|
2143
2143
|
function parseResponseBody_0($this) {
|
|
2144
|
-
return flatMapResponses_0($this.
|
|
2144
|
+
return flatMapResponses_0($this.d23_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
|
|
2145
2145
|
}
|
|
2146
2146
|
function parseComponents($this) {
|
|
2147
2147
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2148
2148
|
// Inline function 'kotlin.collections.filter' call
|
|
2149
2149
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2150
|
-
var tmp0_safe_receiver = $this.
|
|
2151
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2150
|
+
var tmp0_safe_receiver = $this.d23_1.r1f_1;
|
|
2151
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z1k_1;
|
|
2152
2152
|
var tmp1_filter = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2153
2153
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2154
2154
|
var tmp0_filterTo = LinkedHashMap_init_$Create$();
|
|
2155
2155
|
// Inline function 'kotlin.collections.iterator' call
|
|
2156
|
-
var tmp0_iterator = tmp1_filter.
|
|
2156
|
+
var tmp0_iterator = tmp1_filter.w().c();
|
|
2157
2157
|
while (tmp0_iterator.d()) {
|
|
2158
2158
|
var element = tmp0_iterator.e();
|
|
2159
2159
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2160
|
-
var s = element.
|
|
2160
|
+
var s = element.y();
|
|
2161
2161
|
var tmp;
|
|
2162
2162
|
if (s instanceof SchemaObject_0) {
|
|
2163
|
-
tmp = s.
|
|
2163
|
+
tmp = s.e1j_1 == null;
|
|
2164
2164
|
} else {
|
|
2165
2165
|
tmp = false;
|
|
2166
2166
|
}
|
|
2167
2167
|
if (tmp) {
|
|
2168
|
-
tmp0_filterTo.
|
|
2168
|
+
tmp0_filterTo.n3(element.x(), element.y());
|
|
2169
2169
|
}
|
|
2170
2170
|
}
|
|
2171
2171
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2172
2172
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
2173
2173
|
// Inline function 'kotlin.collections.iterator' call
|
|
2174
|
-
var tmp0_iterator_0 = tmp0_filterTo.
|
|
2174
|
+
var tmp0_iterator_0 = tmp0_filterTo.w().c();
|
|
2175
2175
|
while (tmp0_iterator_0.d()) {
|
|
2176
2176
|
var element_0 = tmp0_iterator_0.e();
|
|
2177
2177
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2178
|
-
var list = flatten_2(element_0.
|
|
2178
|
+
var list = flatten_2(element_0.y(), $this, Common_getInstance().l22([element_0.x()]));
|
|
2179
2179
|
addAll(tmp0_flatMapTo, list);
|
|
2180
2180
|
}
|
|
2181
2181
|
return tmp0_flatMapTo;
|
|
@@ -2184,7 +2184,7 @@
|
|
|
2184
2184
|
return charSequenceGet(_this__u8e3s4, 0) === _Char___init__impl__6a9atx(123) ? charSequenceGet(_this__u8e3s4, _this__u8e3s4.length - 1 | 0) === _Char___init__impl__6a9atx(125) : false;
|
|
2185
2185
|
}
|
|
2186
2186
|
function toName_1(_this__u8e3s4, $this) {
|
|
2187
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2187
|
+
var tmp0_safe_receiver = _this__u8e3s4.v1g_1;
|
|
2188
2188
|
var tmp;
|
|
2189
2189
|
if (tmp0_safe_receiver == null) {
|
|
2190
2190
|
tmp = null;
|
|
@@ -2192,7 +2192,7 @@
|
|
|
2192
2192
|
// Inline function 'kotlin.let' call
|
|
2193
2193
|
// Inline function 'kotlin.contracts.contract' call
|
|
2194
2194
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2195
|
-
tmp = Common_getInstance().
|
|
2195
|
+
tmp = Common_getInstance().l22([tmp0_safe_receiver]);
|
|
2196
2196
|
}
|
|
2197
2197
|
return tmp;
|
|
2198
2198
|
}
|
|
@@ -2254,7 +2254,7 @@
|
|
|
2254
2254
|
while (tmp0_iterator_1.d()) {
|
|
2255
2255
|
var element_0 = tmp0_iterator_1.e();
|
|
2256
2256
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2257
|
-
if (element_0.
|
|
2257
|
+
if (element_0.r1h_1 === param) {
|
|
2258
2258
|
tmp$ret$7 = element_0;
|
|
2259
2259
|
break $l$block;
|
|
2260
2260
|
}
|
|
@@ -2263,9 +2263,9 @@
|
|
|
2263
2263
|
}
|
|
2264
2264
|
|
|
2265
2265
|
var tmp1_safe_receiver = tmp$ret$7;
|
|
2266
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2266
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n1h_1;
|
|
2267
2267
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : resolve_3(tmp2_safe_receiver, $this);
|
|
2268
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : toReference_2(tmp3_safe_receiver, $this, Common_getInstance().
|
|
2268
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : toReference_2(tmp3_safe_receiver, $this, Common_getInstance().l22([name, 'Parameter', param]));
|
|
2269
2269
|
var tmp_0;
|
|
2270
2270
|
if (tmp4_safe_receiver == null) {
|
|
2271
2271
|
tmp_0 = null;
|
|
@@ -2300,7 +2300,7 @@
|
|
|
2300
2300
|
return tmp0_mapTo;
|
|
2301
2301
|
}
|
|
2302
2302
|
function resolveParameters_1(_this__u8e3s4, $this) {
|
|
2303
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2303
|
+
var tmp0_safe_receiver = _this__u8e3s4.w1g_1;
|
|
2304
2304
|
var tmp;
|
|
2305
2305
|
if (tmp0_safe_receiver == null) {
|
|
2306
2306
|
tmp = null;
|
|
@@ -2339,7 +2339,7 @@
|
|
|
2339
2339
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2340
2340
|
}
|
|
2341
2341
|
function resolveParameters_2(_this__u8e3s4, $this) {
|
|
2342
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2342
|
+
var tmp0_safe_receiver = _this__u8e3s4.n1g_1;
|
|
2343
2343
|
var tmp;
|
|
2344
2344
|
if (tmp0_safe_receiver == null) {
|
|
2345
2345
|
tmp = null;
|
|
@@ -2378,9 +2378,9 @@
|
|
|
2378
2378
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2379
2379
|
}
|
|
2380
2380
|
function resolveParameterObject_0(_this__u8e3s4, $this) {
|
|
2381
|
-
var tmp0_safe_receiver = $this.
|
|
2382
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2383
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2381
|
+
var tmp0_safe_receiver = $this.d23_1.r1f_1;
|
|
2382
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b1l_1;
|
|
2383
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference_0(_this__u8e3s4, $this));
|
|
2384
2384
|
var tmp;
|
|
2385
2385
|
if (tmp2_safe_receiver == null) {
|
|
2386
2386
|
tmp = null;
|
|
@@ -2403,9 +2403,9 @@
|
|
|
2403
2403
|
return tmp;
|
|
2404
2404
|
}
|
|
2405
2405
|
function resolveSchemaObject_0(_this__u8e3s4, $this) {
|
|
2406
|
-
var tmp0_safe_receiver = $this.
|
|
2407
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2408
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2406
|
+
var tmp0_safe_receiver = $this.d23_1.r1f_1;
|
|
2407
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z1k_1;
|
|
2408
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference_0(_this__u8e3s4, $this));
|
|
2409
2409
|
var tmp;
|
|
2410
2410
|
if (tmp2_safe_receiver == null) {
|
|
2411
2411
|
tmp = null;
|
|
@@ -2428,7 +2428,7 @@
|
|
|
2428
2428
|
var tmp3_elvis_lhs = tmp;
|
|
2429
2429
|
var tmp_1;
|
|
2430
2430
|
if (tmp3_elvis_lhs == null) {
|
|
2431
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2431
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.l1i_1);
|
|
2432
2432
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2433
2433
|
} else {
|
|
2434
2434
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2436,9 +2436,9 @@
|
|
|
2436
2436
|
return tmp_1;
|
|
2437
2437
|
}
|
|
2438
2438
|
function resolveHeaderObject(_this__u8e3s4, $this) {
|
|
2439
|
-
var tmp0_safe_receiver = $this.
|
|
2440
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2441
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2439
|
+
var tmp0_safe_receiver = $this.d23_1.r1f_1;
|
|
2440
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e1l_1;
|
|
2441
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference_0(_this__u8e3s4, $this));
|
|
2442
2442
|
var tmp;
|
|
2443
2443
|
if (tmp2_safe_receiver == null) {
|
|
2444
2444
|
tmp = null;
|
|
@@ -2461,7 +2461,7 @@
|
|
|
2461
2461
|
var tmp3_elvis_lhs = tmp;
|
|
2462
2462
|
var tmp_1;
|
|
2463
2463
|
if (tmp3_elvis_lhs == null) {
|
|
2464
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2464
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.l1i_1);
|
|
2465
2465
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2466
2466
|
} else {
|
|
2467
2467
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2469,9 +2469,9 @@
|
|
|
2469
2469
|
return tmp_1;
|
|
2470
2470
|
}
|
|
2471
2471
|
function resolveRequestBodyObject(_this__u8e3s4, $this) {
|
|
2472
|
-
var tmp0_safe_receiver = $this.
|
|
2473
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2474
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2472
|
+
var tmp0_safe_receiver = $this.d23_1.r1f_1;
|
|
2473
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d1l_1;
|
|
2474
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference_0(_this__u8e3s4, $this));
|
|
2475
2475
|
var tmp;
|
|
2476
2476
|
if (tmp2_safe_receiver == null) {
|
|
2477
2477
|
tmp = null;
|
|
@@ -2494,7 +2494,7 @@
|
|
|
2494
2494
|
var tmp3_elvis_lhs = tmp;
|
|
2495
2495
|
var tmp_1;
|
|
2496
2496
|
if (tmp3_elvis_lhs == null) {
|
|
2497
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2497
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.l1i_1);
|
|
2498
2498
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2499
2499
|
} else {
|
|
2500
2500
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2502,9 +2502,9 @@
|
|
|
2502
2502
|
return tmp_1;
|
|
2503
2503
|
}
|
|
2504
2504
|
function resolveResponseObject_0(_this__u8e3s4, $this) {
|
|
2505
|
-
var tmp0_safe_receiver = $this.
|
|
2506
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2507
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2505
|
+
var tmp0_safe_receiver = $this.d23_1.r1f_1;
|
|
2506
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1l_1;
|
|
2507
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference_0(_this__u8e3s4, $this));
|
|
2508
2508
|
var tmp;
|
|
2509
2509
|
if (tmp2_safe_receiver == null) {
|
|
2510
2510
|
tmp = null;
|
|
@@ -2527,7 +2527,7 @@
|
|
|
2527
2527
|
var tmp3_elvis_lhs = tmp;
|
|
2528
2528
|
var tmp_1;
|
|
2529
2529
|
if (tmp3_elvis_lhs == null) {
|
|
2530
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2530
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.l1i_1);
|
|
2531
2531
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2532
2532
|
} else {
|
|
2533
2533
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2540,7 +2540,7 @@
|
|
|
2540
2540
|
tmp = _this__u8e3s4;
|
|
2541
2541
|
} else {
|
|
2542
2542
|
if (_this__u8e3s4 instanceof ReferenceObject_0) {
|
|
2543
|
-
tmp = resolveSchemaObject_0(_this__u8e3s4, $this).
|
|
2543
|
+
tmp = resolveSchemaObject_0(_this__u8e3s4, $this).t3_1;
|
|
2544
2544
|
} else {
|
|
2545
2545
|
noWhenBranchMatchedException();
|
|
2546
2546
|
}
|
|
@@ -2553,7 +2553,7 @@
|
|
|
2553
2553
|
tmp = _this__u8e3s4;
|
|
2554
2554
|
} else {
|
|
2555
2555
|
if (_this__u8e3s4 instanceof ReferenceObject_0) {
|
|
2556
|
-
tmp = resolveHeaderObject(_this__u8e3s4, $this).
|
|
2556
|
+
tmp = resolveHeaderObject(_this__u8e3s4, $this).t3_1;
|
|
2557
2557
|
} else {
|
|
2558
2558
|
noWhenBranchMatchedException();
|
|
2559
2559
|
}
|
|
@@ -2566,7 +2566,7 @@
|
|
|
2566
2566
|
tmp = _this__u8e3s4;
|
|
2567
2567
|
} else {
|
|
2568
2568
|
if (_this__u8e3s4 instanceof ReferenceObject_0) {
|
|
2569
|
-
tmp = resolveSchemaObject_0(_this__u8e3s4, $this).
|
|
2569
|
+
tmp = resolveSchemaObject_0(_this__u8e3s4, $this).t3_1;
|
|
2570
2570
|
} else {
|
|
2571
2571
|
if (_this__u8e3s4 instanceof BooleanObject_0) {
|
|
2572
2572
|
throw new NotImplementedError();
|
|
@@ -2583,7 +2583,7 @@
|
|
|
2583
2583
|
tmp = _this__u8e3s4;
|
|
2584
2584
|
} else {
|
|
2585
2585
|
if (_this__u8e3s4 instanceof ReferenceObject_0) {
|
|
2586
|
-
tmp = resolveRequestBodyObject(_this__u8e3s4, $this).
|
|
2586
|
+
tmp = resolveRequestBodyObject(_this__u8e3s4, $this).t3_1;
|
|
2587
2587
|
} else {
|
|
2588
2588
|
noWhenBranchMatchedException();
|
|
2589
2589
|
}
|
|
@@ -2596,7 +2596,7 @@
|
|
|
2596
2596
|
tmp = _this__u8e3s4;
|
|
2597
2597
|
} else {
|
|
2598
2598
|
if (_this__u8e3s4 instanceof ReferenceObject_0) {
|
|
2599
|
-
tmp = resolveResponseObject_0(_this__u8e3s4, $this).
|
|
2599
|
+
tmp = resolveResponseObject_0(_this__u8e3s4, $this).t3_1;
|
|
2600
2600
|
} else {
|
|
2601
2601
|
noWhenBranchMatchedException();
|
|
2602
2602
|
}
|
|
@@ -2605,12 +2605,12 @@
|
|
|
2605
2605
|
}
|
|
2606
2606
|
function flatten_1(_this__u8e3s4, $this, name) {
|
|
2607
2607
|
var tmp;
|
|
2608
|
-
if (!(_this__u8e3s4.
|
|
2608
|
+
if (!(_this__u8e3s4.e1j_1 == null)) {
|
|
2609
2609
|
var tmp_0;
|
|
2610
|
-
if (_this__u8e3s4.
|
|
2610
|
+
if (_this__u8e3s4.e1j_1 instanceof BooleanObject_0) {
|
|
2611
2611
|
tmp_0 = emptyList();
|
|
2612
2612
|
} else {
|
|
2613
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
2613
|
+
var tmp1_safe_receiver = _this__u8e3s4.e1j_1;
|
|
2614
2614
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_5(tmp1_safe_receiver, $this);
|
|
2615
2615
|
var tmp_1;
|
|
2616
2616
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2620,7 +2620,7 @@
|
|
|
2620
2620
|
// Inline function 'kotlin.contracts.contract' call
|
|
2621
2621
|
var tmp_2;
|
|
2622
2622
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2623
|
-
if (!(tmp2_safe_receiver.
|
|
2623
|
+
if (!(tmp2_safe_receiver.d1j_1 == null)) {
|
|
2624
2624
|
tmp_2 = tmp2_safe_receiver;
|
|
2625
2625
|
} else {
|
|
2626
2626
|
tmp_2 = null;
|
|
@@ -2632,15 +2632,15 @@
|
|
|
2632
2632
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
2633
2633
|
}
|
|
2634
2634
|
tmp = tmp_0;
|
|
2635
|
-
} else if (!(_this__u8e3s4.
|
|
2635
|
+
} else if (!(_this__u8e3s4.z1i_1 == null)) {
|
|
2636
2636
|
throw new NotImplementedError('An operation is not implemented: oneOf is not implemented');
|
|
2637
|
-
} else if (!(_this__u8e3s4.
|
|
2637
|
+
} else if (!(_this__u8e3s4.a1j_1 == null)) {
|
|
2638
2638
|
throw new NotImplementedError('An operation is not implemented: anyOf is not implemented');
|
|
2639
|
-
} else if (!(_this__u8e3s4.
|
|
2639
|
+
} else if (!(_this__u8e3s4.y1i_1 == null)) {
|
|
2640
2640
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
2641
2641
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2642
2642
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2643
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2643
|
+
var tmp0_elvis_lhs = _this__u8e3s4.y1i_1;
|
|
2644
2644
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2645
2645
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2646
2646
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -2657,14 +2657,14 @@
|
|
|
2657
2657
|
while (tmp0_iterator_0.d()) {
|
|
2658
2658
|
var e = tmp0_iterator_0.e();
|
|
2659
2659
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2660
|
-
var key = e.
|
|
2660
|
+
var key = e.e1x_1;
|
|
2661
2661
|
if (set.a(key)) {
|
|
2662
2662
|
list_0.a(e);
|
|
2663
2663
|
}
|
|
2664
2664
|
}
|
|
2665
2665
|
var tmp_3 = listOf(new Type(name, new Shape(list_0)));
|
|
2666
2666
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2667
|
-
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.
|
|
2667
|
+
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.y1i_1);
|
|
2668
2668
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2669
2669
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
2670
2670
|
var tmp0_iterator_1 = tmp3_flatMap.c();
|
|
@@ -2678,25 +2678,25 @@
|
|
|
2678
2678
|
if (element_0 instanceof SchemaObject_0) {
|
|
2679
2679
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2680
2680
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2681
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
2681
|
+
var tmp0_elvis_lhs_0 = element_0.d1j_1;
|
|
2682
2682
|
var tmp1_flatMap_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2683
2683
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2684
2684
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
2685
2685
|
// Inline function 'kotlin.collections.iterator' call
|
|
2686
|
-
var tmp0_iterator_2 = tmp1_flatMap_0.
|
|
2686
|
+
var tmp0_iterator_2 = tmp1_flatMap_0.w().c();
|
|
2687
2687
|
while (tmp0_iterator_2.d()) {
|
|
2688
2688
|
var element_1 = tmp0_iterator_2.e();
|
|
2689
2689
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>.<anonymous>' call
|
|
2690
2690
|
// Inline function 'kotlin.collections.component1' call
|
|
2691
|
-
var key_0 = element_1.
|
|
2691
|
+
var key_0 = element_1.x();
|
|
2692
2692
|
// Inline function 'kotlin.collections.component2' call
|
|
2693
|
-
var value = element_1.
|
|
2693
|
+
var value = element_1.y();
|
|
2694
2694
|
var tmp_5;
|
|
2695
2695
|
if (value instanceof ReferenceObject_0) {
|
|
2696
2696
|
tmp_5 = emptyList();
|
|
2697
2697
|
} else {
|
|
2698
2698
|
if (value instanceof SchemaObject_0) {
|
|
2699
|
-
tmp_5 = flatten_1(value, $this, Common_getInstance().
|
|
2699
|
+
tmp_5 = flatten_1(value, $this, Common_getInstance().l22([name, key_0]));
|
|
2700
2700
|
} else {
|
|
2701
2701
|
noWhenBranchMatchedException();
|
|
2702
2702
|
}
|
|
@@ -2713,10 +2713,10 @@
|
|
|
2713
2713
|
addAll(tmp0_flatMapTo_0, list_2);
|
|
2714
2714
|
}
|
|
2715
2715
|
tmp = plus(tmp_3, tmp0_flatMapTo_0);
|
|
2716
|
-
} else if (!(_this__u8e3s4.
|
|
2716
|
+
} else if (!(_this__u8e3s4.x1j_1 == null)) {
|
|
2717
2717
|
// Inline function 'kotlin.let' call
|
|
2718
2718
|
// Inline function 'kotlin.collections.map' call
|
|
2719
|
-
var tmp4_map = ensureNotNull(_this__u8e3s4.
|
|
2719
|
+
var tmp4_map = ensureNotNull(_this__u8e3s4.x1j_1);
|
|
2720
2720
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2721
2721
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp4_map, 10));
|
|
2722
2722
|
var tmp0_iterator_3 = tmp4_map.c();
|
|
@@ -2724,7 +2724,7 @@
|
|
|
2724
2724
|
var item = tmp0_iterator_3.e();
|
|
2725
2725
|
var tmp$ret$18;
|
|
2726
2726
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2727
|
-
tmp$ret$18 = item.
|
|
2727
|
+
tmp$ret$18 = item.uz();
|
|
2728
2728
|
tmp0_mapTo.a(tmp$ret$18);
|
|
2729
2729
|
}
|
|
2730
2730
|
var tmp5_let = toSet(tmp0_mapTo);
|
|
@@ -2732,31 +2732,31 @@
|
|
|
2732
2732
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2733
2733
|
tmp = listOf(new Enum(name, tmp5_let));
|
|
2734
2734
|
} else {
|
|
2735
|
-
var tmp5_subject = _this__u8e3s4.
|
|
2735
|
+
var tmp5_subject = _this__u8e3s4.x1i_1;
|
|
2736
2736
|
var tmp_6;
|
|
2737
|
-
switch (tmp5_subject == null ? -1 : tmp5_subject.
|
|
2737
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.p5_1) {
|
|
2738
2738
|
case -1:
|
|
2739
2739
|
case 5:
|
|
2740
2740
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2741
2741
|
|
|
2742
2742
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2743
2743
|
|
|
2744
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
2744
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.d1j_1;
|
|
2745
2745
|
var tmp7_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
2746
2746
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2747
2747
|
|
|
2748
2748
|
var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
|
|
2749
2749
|
// Inline function 'kotlin.collections.iterator' call
|
|
2750
2750
|
|
|
2751
|
-
var tmp0_iterator_4 = tmp7_flatMap.
|
|
2751
|
+
var tmp0_iterator_4 = tmp7_flatMap.w().c();
|
|
2752
2752
|
while (tmp0_iterator_4.d()) {
|
|
2753
2753
|
var element_2 = tmp0_iterator_4.e();
|
|
2754
2754
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2755
2755
|
// Inline function 'kotlin.collections.component1' call
|
|
2756
|
-
var key_1 = element_2.
|
|
2756
|
+
var key_1 = element_2.x();
|
|
2757
2757
|
// Inline function 'kotlin.collections.component2' call
|
|
2758
|
-
var value_0 = element_2.
|
|
2759
|
-
var list_3 = flatten_2(value_0, $this, Common_getInstance().
|
|
2758
|
+
var value_0 = element_2.y();
|
|
2759
|
+
var list_3 = flatten_2(value_0, $this, Common_getInstance().l22([name, key_1]));
|
|
2760
2760
|
addAll(tmp0_flatMapTo_2, list_3);
|
|
2761
2761
|
}
|
|
2762
2762
|
|
|
@@ -2765,7 +2765,7 @@
|
|
|
2765
2765
|
tmp_6 = plus(schema, fields);
|
|
2766
2766
|
break;
|
|
2767
2767
|
case 4:
|
|
2768
|
-
var tmp6_safe_receiver = _this__u8e3s4.
|
|
2768
|
+
var tmp6_safe_receiver = _this__u8e3s4.c1j_1;
|
|
2769
2769
|
var tmp_7;
|
|
2770
2770
|
if (tmp6_safe_receiver == null) {
|
|
2771
2771
|
tmp_7 = null;
|
|
@@ -2778,7 +2778,7 @@
|
|
|
2778
2778
|
tmp_8 = emptyList();
|
|
2779
2779
|
} else {
|
|
2780
2780
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
2781
|
-
tmp_8 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().
|
|
2781
|
+
tmp_8 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().l22([name, 'array']));
|
|
2782
2782
|
} else {
|
|
2783
2783
|
noWhenBranchMatchedException();
|
|
2784
2784
|
}
|
|
@@ -2815,11 +2815,11 @@
|
|
|
2815
2815
|
var tmp0_let = resolveSchemaObject_0(_this__u8e3s4, $this);
|
|
2816
2816
|
// Inline function 'kotlin.contracts.contract' call
|
|
2817
2817
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
|
|
2818
|
-
var referencingObject = tmp0_let.
|
|
2819
|
-
var schema = tmp0_let.
|
|
2818
|
+
var referencingObject = tmp0_let.e3();
|
|
2819
|
+
var schema = tmp0_let.f3();
|
|
2820
2820
|
var tmp;
|
|
2821
|
-
if (!(schema.
|
|
2822
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2821
|
+
if (!(schema.e1j_1 == null)) {
|
|
2822
|
+
var additionalProperties = ensureNotNull(schema.e1j_1);
|
|
2823
2823
|
var tmp_0;
|
|
2824
2824
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
2825
2825
|
tmp_0 = new Any(false, true);
|
|
@@ -2835,24 +2835,24 @@
|
|
|
2835
2835
|
}
|
|
2836
2836
|
}
|
|
2837
2837
|
tmp = tmp_0;
|
|
2838
|
-
} else if (!(schema.
|
|
2839
|
-
tmp = new Custom(Common_getInstance().
|
|
2840
|
-
} else if (isPrimitive_0(schema.
|
|
2841
|
-
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.
|
|
2838
|
+
} else if (!(schema.x1j_1 == null)) {
|
|
2839
|
+
tmp = new Custom(Common_getInstance().l22([getReference_0(referencingObject, $this)]), false, false);
|
|
2840
|
+
} else if (isPrimitive_0(schema.x1i_1)) {
|
|
2841
|
+
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.x1i_1), $this), false, false);
|
|
2842
2842
|
} else {
|
|
2843
|
-
var tmp0_subject = schema.
|
|
2843
|
+
var tmp0_subject = schema.x1i_1;
|
|
2844
2844
|
var tmp_1;
|
|
2845
|
-
if ((tmp0_subject == null ? -1 : tmp0_subject.
|
|
2846
|
-
var items = schema.
|
|
2845
|
+
if ((tmp0_subject == null ? -1 : tmp0_subject.p5_1) === 4) {
|
|
2846
|
+
var items = schema.c1j_1;
|
|
2847
2847
|
var tmp_2;
|
|
2848
2848
|
if (items instanceof ReferenceObject_0) {
|
|
2849
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2849
|
+
tmp_2 = new Custom(Common_getInstance().l22([getReference_0(items, $this)]), true);
|
|
2850
2850
|
} else {
|
|
2851
2851
|
if (items instanceof SchemaObject_0) {
|
|
2852
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2852
|
+
tmp_2 = new Custom(Common_getInstance().l22([getReference_0(referencingObject, $this), 'Array']), true);
|
|
2853
2853
|
} else {
|
|
2854
2854
|
if (items == null) {
|
|
2855
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.
|
|
2855
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.l1i_1);
|
|
2856
2856
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2857
2857
|
} else {
|
|
2858
2858
|
noWhenBranchMatchedException();
|
|
@@ -2861,7 +2861,7 @@
|
|
|
2861
2861
|
}
|
|
2862
2862
|
tmp_1 = tmp_2;
|
|
2863
2863
|
} else {
|
|
2864
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
2864
|
+
tmp_1 = new Custom(Common_getInstance().l22([getReference_0(referencingObject, $this)]), false);
|
|
2865
2865
|
}
|
|
2866
2866
|
tmp = tmp_1;
|
|
2867
2867
|
}
|
|
@@ -2869,8 +2869,8 @@
|
|
|
2869
2869
|
}
|
|
2870
2870
|
function toReference_2(_this__u8e3s4, $this, name) {
|
|
2871
2871
|
var tmp;
|
|
2872
|
-
if (!(_this__u8e3s4.
|
|
2873
|
-
var additionalProperties = ensureNotNull(_this__u8e3s4.
|
|
2872
|
+
if (!(_this__u8e3s4.e1j_1 == null)) {
|
|
2873
|
+
var additionalProperties = ensureNotNull(_this__u8e3s4.e1j_1);
|
|
2874
2874
|
var tmp_0;
|
|
2875
2875
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
2876
2876
|
tmp_0 = new Any(false, true);
|
|
@@ -2883,7 +2883,7 @@
|
|
|
2883
2883
|
// Inline function 'kotlin.contracts.contract' call
|
|
2884
2884
|
var tmp_1;
|
|
2885
2885
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
|
|
2886
|
-
if (isPrimitive_0(additionalProperties.
|
|
2886
|
+
if (isPrimitive_0(additionalProperties.x1i_1) ? true : !(additionalProperties.d1j_1 == null)) {
|
|
2887
2887
|
tmp_1 = additionalProperties;
|
|
2888
2888
|
} else {
|
|
2889
2889
|
tmp_1 = null;
|
|
@@ -2906,32 +2906,32 @@
|
|
|
2906
2906
|
}
|
|
2907
2907
|
}
|
|
2908
2908
|
tmp = tmp_0;
|
|
2909
|
-
} else if (!(_this__u8e3s4.
|
|
2910
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
2909
|
+
} else if (!(_this__u8e3s4.x1j_1 == null)) {
|
|
2910
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.e1j_1 == null));
|
|
2911
2911
|
} else {
|
|
2912
|
-
var type = _this__u8e3s4.
|
|
2912
|
+
var type = _this__u8e3s4.x1i_1;
|
|
2913
2913
|
var tmp_3;
|
|
2914
|
-
switch (type == null ? -1 : type.
|
|
2914
|
+
switch (type == null ? -1 : type.p5_1) {
|
|
2915
2915
|
case 0:
|
|
2916
2916
|
case 1:
|
|
2917
2917
|
case 2:
|
|
2918
2918
|
case 3:
|
|
2919
|
-
tmp_3 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.
|
|
2919
|
+
tmp_3 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.e1j_1 == null));
|
|
2920
2920
|
break;
|
|
2921
2921
|
case -1:
|
|
2922
2922
|
case 5:
|
|
2923
2923
|
var tmp_4;
|
|
2924
|
-
var tmp_5 = _this__u8e3s4.
|
|
2924
|
+
var tmp_5 = _this__u8e3s4.e1j_1;
|
|
2925
2925
|
if (tmp_5 instanceof BooleanObject_0) {
|
|
2926
|
-
tmp_4 = new Any(false, !(_this__u8e3s4.
|
|
2926
|
+
tmp_4 = new Any(false, !(_this__u8e3s4.e1j_1 == null));
|
|
2927
2927
|
} else {
|
|
2928
|
-
tmp_4 = new Custom(name, false, !(_this__u8e3s4.
|
|
2928
|
+
tmp_4 = new Custom(name, false, !(_this__u8e3s4.e1j_1 == null));
|
|
2929
2929
|
}
|
|
2930
2930
|
|
|
2931
2931
|
tmp_3 = tmp_4;
|
|
2932
2932
|
break;
|
|
2933
2933
|
case 4:
|
|
2934
|
-
var it = _this__u8e3s4.
|
|
2934
|
+
var it = _this__u8e3s4.c1j_1;
|
|
2935
2935
|
var tmp_6;
|
|
2936
2936
|
if (it instanceof ReferenceObject_0) {
|
|
2937
2937
|
tmp_6 = toIterable_0(toReference_1(it, $this));
|
|
@@ -2969,45 +2969,45 @@
|
|
|
2969
2969
|
var tmp$ret$0;
|
|
2970
2970
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toOperationList.<anonymous>' call
|
|
2971
2971
|
var tmp;
|
|
2972
|
-
switch (element.
|
|
2972
|
+
switch (element.p5_1) {
|
|
2973
2973
|
case 0:
|
|
2974
|
-
tmp = _this__u8e3s4.
|
|
2974
|
+
tmp = _this__u8e3s4.e1g_1;
|
|
2975
2975
|
break;
|
|
2976
2976
|
case 1:
|
|
2977
|
-
tmp = _this__u8e3s4.
|
|
2977
|
+
tmp = _this__u8e3s4.g1g_1;
|
|
2978
2978
|
break;
|
|
2979
2979
|
case 2:
|
|
2980
|
-
tmp = _this__u8e3s4.
|
|
2980
|
+
tmp = _this__u8e3s4.f1g_1;
|
|
2981
2981
|
break;
|
|
2982
2982
|
case 3:
|
|
2983
|
-
tmp = _this__u8e3s4.
|
|
2983
|
+
tmp = _this__u8e3s4.h1g_1;
|
|
2984
2984
|
break;
|
|
2985
2985
|
case 4:
|
|
2986
|
-
tmp = _this__u8e3s4.
|
|
2986
|
+
tmp = _this__u8e3s4.i1g_1;
|
|
2987
2987
|
break;
|
|
2988
2988
|
case 5:
|
|
2989
|
-
tmp = _this__u8e3s4.
|
|
2989
|
+
tmp = _this__u8e3s4.j1g_1;
|
|
2990
2990
|
break;
|
|
2991
2991
|
case 6:
|
|
2992
|
-
tmp = _this__u8e3s4.
|
|
2992
|
+
tmp = _this__u8e3s4.k1g_1;
|
|
2993
2993
|
break;
|
|
2994
2994
|
case 7:
|
|
2995
|
-
tmp = _this__u8e3s4.
|
|
2995
|
+
tmp = _this__u8e3s4.l1g_1;
|
|
2996
2996
|
break;
|
|
2997
2997
|
default:
|
|
2998
2998
|
noWhenBranchMatchedException();
|
|
2999
2999
|
break;
|
|
3000
3000
|
}
|
|
3001
3001
|
tmp$ret$0 = tmp;
|
|
3002
|
-
result.
|
|
3002
|
+
result.n3(element, tmp$ret$0);
|
|
3003
3003
|
}
|
|
3004
3004
|
return filterNotNullValues_0(result);
|
|
3005
3005
|
}
|
|
3006
3006
|
function getReference_0(_this__u8e3s4, $this) {
|
|
3007
|
-
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
3007
|
+
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.l1i_1), ['/']), 3);
|
|
3008
3008
|
var tmp;
|
|
3009
3009
|
if (tmp0_elvis_lhs == null) {
|
|
3010
|
-
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
3010
|
+
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.l1i_1);
|
|
3011
3011
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
3012
3012
|
} else {
|
|
3013
3013
|
tmp = tmp0_elvis_lhs;
|
|
@@ -3016,7 +3016,7 @@
|
|
|
3016
3016
|
}
|
|
3017
3017
|
function toPrimitive_0(_this__u8e3s4, $this) {
|
|
3018
3018
|
var tmp;
|
|
3019
|
-
switch (_this__u8e3s4.
|
|
3019
|
+
switch (_this__u8e3s4.p5_1) {
|
|
3020
3020
|
case 0:
|
|
3021
3021
|
tmp = Type_String_getInstance();
|
|
3022
3022
|
break;
|
|
@@ -3037,33 +3037,33 @@
|
|
|
3037
3037
|
function toField_1(_this__u8e3s4, $this, name) {
|
|
3038
3038
|
// Inline function 'kotlin.collections.map' call
|
|
3039
3039
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3040
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3040
|
+
var tmp0_elvis_lhs = _this__u8e3s4.d1j_1;
|
|
3041
3041
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3042
3042
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3043
3043
|
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.f());
|
|
3044
3044
|
// Inline function 'kotlin.collections.iterator' call
|
|
3045
|
-
var tmp0_iterator = tmp1_map.
|
|
3045
|
+
var tmp0_iterator = tmp1_map.w().c();
|
|
3046
3046
|
while (tmp0_iterator.d()) {
|
|
3047
3047
|
var item = tmp0_iterator.e();
|
|
3048
3048
|
var tmp$ret$4;
|
|
3049
3049
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3050
3050
|
// Inline function 'kotlin.collections.component1' call
|
|
3051
|
-
var key = item.
|
|
3051
|
+
var key = item.x();
|
|
3052
3052
|
// Inline function 'kotlin.collections.component2' call
|
|
3053
|
-
var value = item.
|
|
3053
|
+
var value = item.y();
|
|
3054
3054
|
var tmp;
|
|
3055
3055
|
if (value instanceof SchemaObject_0) {
|
|
3056
3056
|
var tmp_0 = new Identifier(key);
|
|
3057
|
-
var tmp_1 = !(value.
|
|
3058
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
3059
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3057
|
+
var tmp_1 = !(value.x1j_1 == null) ? toReference_2(value, $this, Common_getInstance().l22([name, key])) : equals(value.x1i_1, Type_ARRAY_getInstance_0()) ? toReference_2(value, $this, Common_getInstance().l22([name, key, 'Array'])) : toReference_2(value, $this, Common_getInstance().l22([name, key]));
|
|
3058
|
+
var tmp1_safe_receiver = _this__u8e3s4.w1j_1;
|
|
3059
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t(key);
|
|
3060
3060
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
3061
3061
|
} else {
|
|
3062
3062
|
if (value instanceof ReferenceObject_0) {
|
|
3063
3063
|
var tmp_2 = new Identifier(key);
|
|
3064
|
-
var tmp_3 = new Custom(Common_getInstance().
|
|
3065
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
3066
|
-
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
3064
|
+
var tmp_3 = new Custom(Common_getInstance().l22([getReference_0(value, $this)]), false);
|
|
3065
|
+
var tmp3_safe_receiver = _this__u8e3s4.w1j_1;
|
|
3066
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.t(key);
|
|
3067
3067
|
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
3068
3068
|
} else {
|
|
3069
3069
|
noWhenBranchMatchedException();
|
|
@@ -3076,7 +3076,7 @@
|
|
|
3076
3076
|
}
|
|
3077
3077
|
function toField_2(_this__u8e3s4, $this, name) {
|
|
3078
3078
|
// Inline function 'kotlin.let' call
|
|
3079
|
-
var s = _this__u8e3s4.
|
|
3079
|
+
var s = _this__u8e3s4.n1h_1;
|
|
3080
3080
|
var tmp;
|
|
3081
3081
|
if (s instanceof ReferenceObject_0) {
|
|
3082
3082
|
tmp = toReference_1(s, $this);
|
|
@@ -3094,13 +3094,13 @@
|
|
|
3094
3094
|
var tmp0_let = tmp;
|
|
3095
3095
|
// Inline function 'kotlin.contracts.contract' call
|
|
3096
3096
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3097
|
-
var tmp_0 = new Identifier(_this__u8e3s4.
|
|
3098
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3097
|
+
var tmp_0 = new Identifier(_this__u8e3s4.r1h_1);
|
|
3098
|
+
var tmp0_elvis_lhs = _this__u8e3s4.h1h_1;
|
|
3099
3099
|
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3100
3100
|
}
|
|
3101
3101
|
function toField_3(_this__u8e3s4, $this, identifier, name) {
|
|
3102
3102
|
// Inline function 'kotlin.let' call
|
|
3103
|
-
var s = _this__u8e3s4.
|
|
3103
|
+
var s = _this__u8e3s4.s1k_1;
|
|
3104
3104
|
var tmp;
|
|
3105
3105
|
if (s instanceof ReferenceObject_0) {
|
|
3106
3106
|
tmp = toReference_1(s, $this);
|
|
@@ -3119,23 +3119,23 @@
|
|
|
3119
3119
|
// Inline function 'kotlin.contracts.contract' call
|
|
3120
3120
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3121
3121
|
var tmp_0 = new Identifier(identifier);
|
|
3122
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3122
|
+
var tmp0_elvis_lhs = _this__u8e3s4.m1k_1;
|
|
3123
3123
|
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3124
3124
|
}
|
|
3125
3125
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
3126
|
-
this.
|
|
3127
|
-
this.
|
|
3128
|
-
this.
|
|
3129
|
-
this.
|
|
3126
|
+
this.e23_1 = path;
|
|
3127
|
+
this.f23_1 = pathItem;
|
|
3128
|
+
this.g23_1 = method;
|
|
3129
|
+
this.h23_1 = operation;
|
|
3130
3130
|
}
|
|
3131
3131
|
protoOf(FlattenRequest_0).toString = function () {
|
|
3132
|
-
return 'FlattenRequest(path=' + new Path_0(this.
|
|
3132
|
+
return 'FlattenRequest(path=' + new Path_0(this.e23_1) + ', pathItem=' + this.f23_1 + ', method=' + this.g23_1 + ', operation=' + this.h23_1 + ')';
|
|
3133
3133
|
};
|
|
3134
3134
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
3135
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3136
|
-
result = imul(result, 31) + this.
|
|
3137
|
-
result = imul(result, 31) + this.
|
|
3138
|
-
result = imul(result, 31) + this.
|
|
3135
|
+
var result = Path__hashCode_impl_go73kd_0(this.e23_1);
|
|
3136
|
+
result = imul(result, 31) + this.f23_1.hashCode() | 0;
|
|
3137
|
+
result = imul(result, 31) + this.g23_1.hashCode() | 0;
|
|
3138
|
+
result = imul(result, 31) + this.h23_1.hashCode() | 0;
|
|
3139
3139
|
return result;
|
|
3140
3140
|
};
|
|
3141
3141
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -3144,45 +3144,45 @@
|
|
|
3144
3144
|
if (!(other instanceof FlattenRequest_0))
|
|
3145
3145
|
return false;
|
|
3146
3146
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
3147
|
-
if (!(this.
|
|
3147
|
+
if (!(this.e23_1 === tmp0_other_with_cast.e23_1))
|
|
3148
3148
|
return false;
|
|
3149
|
-
if (!this.
|
|
3149
|
+
if (!this.f23_1.equals(tmp0_other_with_cast.f23_1))
|
|
3150
3150
|
return false;
|
|
3151
|
-
if (!this.
|
|
3151
|
+
if (!this.g23_1.equals(tmp0_other_with_cast.g23_1))
|
|
3152
3152
|
return false;
|
|
3153
|
-
if (!this.
|
|
3153
|
+
if (!this.h23_1.equals(tmp0_other_with_cast.h23_1))
|
|
3154
3154
|
return false;
|
|
3155
3155
|
return true;
|
|
3156
3156
|
};
|
|
3157
3157
|
function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
3158
3158
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3159
3159
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3160
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
3160
|
+
var tmp0_flatMap = _this__u8e3s4.q1f_1;
|
|
3161
3161
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3162
3162
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
3163
3163
|
// Inline function 'kotlin.collections.iterator' call
|
|
3164
|
-
var tmp0_iterator = tmp0_flatMap.
|
|
3164
|
+
var tmp0_iterator = tmp0_flatMap.w().c();
|
|
3165
3165
|
while (tmp0_iterator.d()) {
|
|
3166
3166
|
var element = tmp0_iterator.e();
|
|
3167
3167
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
3168
3168
|
// Inline function 'kotlin.collections.component1' call
|
|
3169
|
-
var path = element.
|
|
3169
|
+
var path = element.x().y1f_1;
|
|
3170
3170
|
// Inline function 'kotlin.collections.component2' call
|
|
3171
|
-
var pathItem = element.
|
|
3171
|
+
var pathItem = element.y();
|
|
3172
3172
|
// Inline function 'kotlin.collections.map' call
|
|
3173
3173
|
var tmp0_map = toOperationList_0(pathItem, $this);
|
|
3174
3174
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3175
3175
|
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp0_map.f());
|
|
3176
3176
|
// Inline function 'kotlin.collections.iterator' call
|
|
3177
|
-
var tmp0_iterator_0 = tmp0_map.
|
|
3177
|
+
var tmp0_iterator_0 = tmp0_map.w().c();
|
|
3178
3178
|
while (tmp0_iterator_0.d()) {
|
|
3179
3179
|
var item = tmp0_iterator_0.e();
|
|
3180
3180
|
var tmp$ret$6;
|
|
3181
3181
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>.<anonymous>' call
|
|
3182
3182
|
// Inline function 'kotlin.collections.component1' call
|
|
3183
|
-
var method = item.
|
|
3183
|
+
var method = item.x();
|
|
3184
3184
|
// Inline function 'kotlin.collections.component2' call
|
|
3185
|
-
var operation = item.
|
|
3185
|
+
var operation = item.y();
|
|
3186
3186
|
tmp$ret$6 = new FlattenRequest_0(path, pathItem, method, operation);
|
|
3187
3187
|
tmp0_mapTo.a(tmp$ret$6);
|
|
3188
3188
|
}
|
|
@@ -3201,23 +3201,23 @@
|
|
|
3201
3201
|
return tmp0_flatMapTo_0;
|
|
3202
3202
|
}
|
|
3203
3203
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
3204
|
-
this.
|
|
3205
|
-
this.
|
|
3206
|
-
this.
|
|
3207
|
-
this.
|
|
3208
|
-
this.
|
|
3209
|
-
this.
|
|
3204
|
+
this.i23_1 = path;
|
|
3205
|
+
this.j23_1 = pathItem;
|
|
3206
|
+
this.k23_1 = method;
|
|
3207
|
+
this.l23_1 = operation;
|
|
3208
|
+
this.m23_1 = statusCode;
|
|
3209
|
+
this.n23_1 = response;
|
|
3210
3210
|
}
|
|
3211
3211
|
protoOf(FlattenResponse_0).toString = function () {
|
|
3212
|
-
return 'FlattenResponse(path=' + new Path_0(this.
|
|
3212
|
+
return 'FlattenResponse(path=' + new Path_0(this.i23_1) + ', pathItem=' + this.j23_1 + ', method=' + this.k23_1 + ', operation=' + this.l23_1 + ', statusCode=' + new StatusCode_0(this.m23_1) + ', response=' + this.n23_1 + ')';
|
|
3213
3213
|
};
|
|
3214
3214
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
3215
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3216
|
-
result = imul(result, 31) + this.
|
|
3217
|
-
result = imul(result, 31) + this.
|
|
3218
|
-
result = imul(result, 31) + this.
|
|
3219
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.
|
|
3220
|
-
result = imul(result, 31) + hashCode(this.
|
|
3215
|
+
var result = Path__hashCode_impl_go73kd_0(this.i23_1);
|
|
3216
|
+
result = imul(result, 31) + this.j23_1.hashCode() | 0;
|
|
3217
|
+
result = imul(result, 31) + this.k23_1.hashCode() | 0;
|
|
3218
|
+
result = imul(result, 31) + this.l23_1.hashCode() | 0;
|
|
3219
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.m23_1) | 0;
|
|
3220
|
+
result = imul(result, 31) + hashCode(this.n23_1) | 0;
|
|
3221
3221
|
return result;
|
|
3222
3222
|
};
|
|
3223
3223
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -3226,50 +3226,50 @@
|
|
|
3226
3226
|
if (!(other instanceof FlattenResponse_0))
|
|
3227
3227
|
return false;
|
|
3228
3228
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
3229
|
-
if (!(this.
|
|
3229
|
+
if (!(this.i23_1 === tmp0_other_with_cast.i23_1))
|
|
3230
3230
|
return false;
|
|
3231
|
-
if (!this.
|
|
3231
|
+
if (!this.j23_1.equals(tmp0_other_with_cast.j23_1))
|
|
3232
3232
|
return false;
|
|
3233
|
-
if (!this.
|
|
3233
|
+
if (!this.k23_1.equals(tmp0_other_with_cast.k23_1))
|
|
3234
3234
|
return false;
|
|
3235
|
-
if (!this.
|
|
3235
|
+
if (!this.l23_1.equals(tmp0_other_with_cast.l23_1))
|
|
3236
3236
|
return false;
|
|
3237
|
-
if (!(this.
|
|
3237
|
+
if (!(this.m23_1 === tmp0_other_with_cast.m23_1))
|
|
3238
3238
|
return false;
|
|
3239
|
-
if (!equals(this.
|
|
3239
|
+
if (!equals(this.n23_1, tmp0_other_with_cast.n23_1))
|
|
3240
3240
|
return false;
|
|
3241
3241
|
return true;
|
|
3242
3242
|
};
|
|
3243
3243
|
function flatMapResponses_0(_this__u8e3s4, $this, f) {
|
|
3244
3244
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3245
3245
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3246
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
3246
|
+
var tmp0_flatMap = _this__u8e3s4.q1f_1;
|
|
3247
3247
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3248
3248
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
3249
3249
|
// Inline function 'kotlin.collections.iterator' call
|
|
3250
|
-
var tmp0_iterator = tmp0_flatMap.
|
|
3250
|
+
var tmp0_iterator = tmp0_flatMap.w().c();
|
|
3251
3251
|
while (tmp0_iterator.d()) {
|
|
3252
3252
|
var element = tmp0_iterator.e();
|
|
3253
3253
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
3254
3254
|
// Inline function 'kotlin.collections.component1' call
|
|
3255
|
-
var path = element.
|
|
3255
|
+
var path = element.x().y1f_1;
|
|
3256
3256
|
// Inline function 'kotlin.collections.component2' call
|
|
3257
|
-
var pathItem = element.
|
|
3257
|
+
var pathItem = element.y();
|
|
3258
3258
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3259
3259
|
var tmp0_flatMap_0 = toOperationList_0(pathItem, $this);
|
|
3260
3260
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3261
3261
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
3262
3262
|
// Inline function 'kotlin.collections.iterator' call
|
|
3263
|
-
var tmp0_iterator_0 = tmp0_flatMap_0.
|
|
3263
|
+
var tmp0_iterator_0 = tmp0_flatMap_0.w().c();
|
|
3264
3264
|
while (tmp0_iterator_0.d()) {
|
|
3265
3265
|
var element_0 = tmp0_iterator_0.e();
|
|
3266
3266
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>' call
|
|
3267
3267
|
// Inline function 'kotlin.collections.component1' call
|
|
3268
|
-
var method = element_0.
|
|
3268
|
+
var method = element_0.x();
|
|
3269
3269
|
// Inline function 'kotlin.collections.component2' call
|
|
3270
|
-
var operation = element_0.
|
|
3270
|
+
var operation = element_0.y();
|
|
3271
3271
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3272
|
-
var tmp0_safe_receiver = operation.
|
|
3272
|
+
var tmp0_safe_receiver = operation.y1g_1;
|
|
3273
3273
|
var tmp;
|
|
3274
3274
|
if (tmp0_safe_receiver == null) {
|
|
3275
3275
|
tmp = null;
|
|
@@ -3278,15 +3278,15 @@
|
|
|
3278
3278
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3279
3279
|
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp0_safe_receiver.f());
|
|
3280
3280
|
// Inline function 'kotlin.collections.iterator' call
|
|
3281
|
-
var tmp0_iterator_1 = tmp0_safe_receiver.
|
|
3281
|
+
var tmp0_iterator_1 = tmp0_safe_receiver.w().c();
|
|
3282
3282
|
while (tmp0_iterator_1.d()) {
|
|
3283
3283
|
var item = tmp0_iterator_1.e();
|
|
3284
3284
|
var tmp$ret$9;
|
|
3285
3285
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
3286
3286
|
// Inline function 'kotlin.collections.component1' call
|
|
3287
|
-
var statusCode = item.
|
|
3287
|
+
var statusCode = item.x().b1k_1;
|
|
3288
3288
|
// Inline function 'kotlin.collections.component2' call
|
|
3289
|
-
var response = item.
|
|
3289
|
+
var response = item.y();
|
|
3290
3290
|
tmp$ret$9 = new FlattenResponse_0(path, pathItem, method, operation, statusCode, response);
|
|
3291
3291
|
tmp0_mapTo.a(tmp$ret$9);
|
|
3292
3292
|
}
|
|
@@ -3312,9 +3312,9 @@
|
|
|
3312
3312
|
}
|
|
3313
3313
|
function OpenApiParser$parseParameters$lambda_0(this$0) {
|
|
3314
3314
|
return function (req) {
|
|
3315
|
-
var parameters = plus(resolveParameters_2(req.
|
|
3316
|
-
var tmp0_elvis_lhs = toName_1(req.
|
|
3317
|
-
var name = tmp0_elvis_lhs == null ? toName_2(req.
|
|
3315
|
+
var parameters = plus(resolveParameters_2(req.f23_1, this$0), resolveParameters_1(req.h23_1, this$0));
|
|
3316
|
+
var tmp0_elvis_lhs = toName_1(req.h23_1, this$0);
|
|
3317
|
+
var name = tmp0_elvis_lhs == null ? toName_2(req.e23_1, this$0) + req.g23_1.o5_1 : tmp0_elvis_lhs;
|
|
3318
3318
|
var tmp$ret$2;
|
|
3319
3319
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3320
3320
|
var tmp$ret$1;
|
|
@@ -3325,8 +3325,8 @@
|
|
|
3325
3325
|
var element = tmp0_iterator.e();
|
|
3326
3326
|
var tmp$ret$0;
|
|
3327
3327
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
3328
|
-
var tmp0_safe_receiver = element.
|
|
3329
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().
|
|
3328
|
+
var tmp0_safe_receiver = element.n1h_1;
|
|
3329
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().l22([name, 'Parameter', element.r1h_1]));
|
|
3330
3330
|
tmp$ret$0 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
3331
3331
|
var list = tmp$ret$0;
|
|
3332
3332
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -3338,15 +3338,15 @@
|
|
|
3338
3338
|
}
|
|
3339
3339
|
function OpenApiParser$parseRequestBody$lambda_0(this$0) {
|
|
3340
3340
|
return function (req) {
|
|
3341
|
-
var tmp0_elvis_lhs = toName_1(req.
|
|
3342
|
-
var name = tmp0_elvis_lhs == null ? toName_2(req.
|
|
3341
|
+
var tmp0_elvis_lhs = toName_1(req.h23_1, this$0);
|
|
3342
|
+
var name = tmp0_elvis_lhs == null ? toName_2(req.e23_1, this$0) + req.g23_1.o5_1 : tmp0_elvis_lhs;
|
|
3343
3343
|
var tmp$ret$6;
|
|
3344
3344
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3345
3345
|
var tmp$ret$0;
|
|
3346
3346
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3347
|
-
var tmp1_safe_receiver = req.
|
|
3347
|
+
var tmp1_safe_receiver = req.h23_1.x1g_1;
|
|
3348
3348
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_6(tmp1_safe_receiver, this$0);
|
|
3349
|
-
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
3349
|
+
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.x1h_1;
|
|
3350
3350
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
3351
3351
|
tmp$ret$0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
3352
3352
|
var tmp1_flatMap = tmp$ret$0;
|
|
@@ -3355,7 +3355,7 @@
|
|
|
3355
3355
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
3356
3356
|
var tmp$ret$1;
|
|
3357
3357
|
// Inline function 'kotlin.collections.iterator' call
|
|
3358
|
-
tmp$ret$1 = tmp1_flatMap.
|
|
3358
|
+
tmp$ret$1 = tmp1_flatMap.w().c();
|
|
3359
3359
|
var tmp0_iterator = tmp$ret$1;
|
|
3360
3360
|
while (tmp0_iterator.d()) {
|
|
3361
3361
|
var element = tmp0_iterator.e();
|
|
@@ -3363,24 +3363,24 @@
|
|
|
3363
3363
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
3364
3364
|
var tmp$ret$2;
|
|
3365
3365
|
// Inline function 'kotlin.collections.component2' call
|
|
3366
|
-
tmp$ret$2 = element.
|
|
3366
|
+
tmp$ret$2 = element.y();
|
|
3367
3367
|
var mediaObject = tmp$ret$2;
|
|
3368
|
-
var schema = mediaObject.
|
|
3368
|
+
var schema = mediaObject.f1i_1;
|
|
3369
3369
|
var tmp;
|
|
3370
3370
|
if (schema instanceof SchemaObject_0) {
|
|
3371
|
-
var tmp0_subject = schema.
|
|
3372
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.
|
|
3371
|
+
var tmp0_subject = schema.x1i_1;
|
|
3372
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.p5_1;
|
|
3373
3373
|
var tmp_0;
|
|
3374
3374
|
switch (tmp0) {
|
|
3375
3375
|
case -1:
|
|
3376
3376
|
case 5:
|
|
3377
|
-
tmp_0 = flatten_1(schema, this$0, Common_getInstance().
|
|
3377
|
+
tmp_0 = flatten_1(schema, this$0, Common_getInstance().l22([name, 'RequestBody']));
|
|
3378
3378
|
break;
|
|
3379
3379
|
case 4:
|
|
3380
3380
|
var tmp$ret$3;
|
|
3381
3381
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3382
|
-
var tmp1_safe_receiver_0 = schema.
|
|
3383
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
3382
|
+
var tmp1_safe_receiver_0 = schema.c1j_1;
|
|
3383
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().l22([name, 'RequestBody']));
|
|
3384
3384
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
3385
3385
|
tmp$ret$3 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
3386
3386
|
|
|
@@ -3413,16 +3413,16 @@
|
|
|
3413
3413
|
}
|
|
3414
3414
|
function OpenApiParser$parseResponseBody$lambda_0(this$0) {
|
|
3415
3415
|
return function (res) {
|
|
3416
|
-
var tmp0_elvis_lhs = toName_1(res.
|
|
3417
|
-
var name = tmp0_elvis_lhs == null ? toName_2(res.
|
|
3418
|
-
var response = res.
|
|
3416
|
+
var tmp0_elvis_lhs = toName_1(res.l23_1, this$0);
|
|
3417
|
+
var name = tmp0_elvis_lhs == null ? toName_2(res.i23_1, this$0) + res.k23_1.o5_1 : tmp0_elvis_lhs;
|
|
3418
|
+
var response = res.n23_1;
|
|
3419
3419
|
var tmp;
|
|
3420
3420
|
if (response instanceof ResponseObject_0) {
|
|
3421
3421
|
var tmp$ret$7;
|
|
3422
3422
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3423
3423
|
var tmp$ret$0;
|
|
3424
3424
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3425
|
-
var tmp0_orEmpty = response.
|
|
3425
|
+
var tmp0_orEmpty = response.g1k_1;
|
|
3426
3426
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
3427
3427
|
tmp$ret$0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
3428
3428
|
var tmp1_flatMap = tmp$ret$0;
|
|
@@ -3431,7 +3431,7 @@
|
|
|
3431
3431
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
3432
3432
|
var tmp$ret$1;
|
|
3433
3433
|
// Inline function 'kotlin.collections.iterator' call
|
|
3434
|
-
tmp$ret$1 = tmp1_flatMap.
|
|
3434
|
+
tmp$ret$1 = tmp1_flatMap.w().c();
|
|
3435
3435
|
var tmp0_iterator = tmp$ret$1;
|
|
3436
3436
|
while (tmp0_iterator.d()) {
|
|
3437
3437
|
var element = tmp0_iterator.e();
|
|
@@ -3439,28 +3439,28 @@
|
|
|
3439
3439
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
3440
3440
|
var tmp$ret$2;
|
|
3441
3441
|
// Inline function 'kotlin.collections.component1' call
|
|
3442
|
-
tmp$ret$2 = element.
|
|
3442
|
+
tmp$ret$2 = element.x().c1i_1;
|
|
3443
3443
|
var mediaType = tmp$ret$2;
|
|
3444
3444
|
var tmp$ret$3;
|
|
3445
3445
|
// Inline function 'kotlin.collections.component2' call
|
|
3446
|
-
tmp$ret$3 = element.
|
|
3446
|
+
tmp$ret$3 = element.y();
|
|
3447
3447
|
var mediaObject = tmp$ret$3;
|
|
3448
|
-
var schema = mediaObject.
|
|
3448
|
+
var schema = mediaObject.f1i_1;
|
|
3449
3449
|
var tmp_0;
|
|
3450
3450
|
if (schema instanceof SchemaObject_0) {
|
|
3451
|
-
var tmp0_subject = schema.
|
|
3452
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.
|
|
3451
|
+
var tmp0_subject = schema.x1i_1;
|
|
3452
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.p5_1;
|
|
3453
3453
|
var tmp_1;
|
|
3454
3454
|
switch (tmp0) {
|
|
3455
3455
|
case -1:
|
|
3456
3456
|
case 5:
|
|
3457
|
-
tmp_1 = flatten_1(schema, this$0, Common_getInstance().
|
|
3457
|
+
tmp_1 = flatten_1(schema, this$0, Common_getInstance().l22([name, _StatusCode___get_value__impl__we50mu_0(res.m23_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
3458
3458
|
break;
|
|
3459
3459
|
case 4:
|
|
3460
3460
|
var tmp$ret$4;
|
|
3461
3461
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3462
|
-
var tmp1_safe_receiver = schema.
|
|
3463
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().
|
|
3462
|
+
var tmp1_safe_receiver = schema.c1j_1;
|
|
3463
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().l22([name, _StatusCode___get_value__impl__we50mu_0(res.m23_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
3464
3464
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
3465
3465
|
tmp$ret$4 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
3466
3466
|
|
|
@@ -3506,10 +3506,10 @@
|
|
|
3506
3506
|
tmp$ret$0 = it;
|
|
3507
3507
|
tmp$ret$1 = tmp$ret$0.substring(1, tmp0_substring);
|
|
3508
3508
|
|
|
3509
|
-
tmp = tmp_0.
|
|
3509
|
+
tmp = tmp_0.l22([tmp$ret$1]);
|
|
3510
3510
|
break;
|
|
3511
3511
|
case false:
|
|
3512
|
-
tmp = Common_getInstance().
|
|
3512
|
+
tmp = Common_getInstance().l22([it]);
|
|
3513
3513
|
break;
|
|
3514
3514
|
default:
|
|
3515
3515
|
noWhenBranchMatchedException();
|
|
@@ -3520,21 +3520,21 @@
|
|
|
3520
3520
|
}
|
|
3521
3521
|
function OpenApiParser_0(openApi) {
|
|
3522
3522
|
Companion_getInstance_1();
|
|
3523
|
-
this.
|
|
3523
|
+
this.d23_1 = openApi;
|
|
3524
3524
|
}
|
|
3525
3525
|
function toMap_1(_this__u8e3s4) {
|
|
3526
3526
|
var tmp;
|
|
3527
3527
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3528
|
-
tmp = _this__u8e3s4.
|
|
3528
|
+
tmp = _this__u8e3s4.h21(VOID, VOID, true);
|
|
3529
3529
|
} else {
|
|
3530
3530
|
if (_this__u8e3s4 instanceof Any) {
|
|
3531
|
-
tmp = _this__u8e3s4.
|
|
3531
|
+
tmp = _this__u8e3s4.c21(VOID, true);
|
|
3532
3532
|
} else {
|
|
3533
3533
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3534
|
-
tmp = _this__u8e3s4.
|
|
3534
|
+
tmp = _this__u8e3s4.j21(VOID, VOID, true);
|
|
3535
3535
|
} else {
|
|
3536
3536
|
if (_this__u8e3s4 instanceof Unit) {
|
|
3537
|
-
tmp = _this__u8e3s4.
|
|
3537
|
+
tmp = _this__u8e3s4.f21(VOID, true);
|
|
3538
3538
|
} else {
|
|
3539
3539
|
noWhenBranchMatchedException();
|
|
3540
3540
|
}
|
|
@@ -3545,7 +3545,7 @@
|
|
|
3545
3545
|
}
|
|
3546
3546
|
function isPrimitive_0(_this__u8e3s4) {
|
|
3547
3547
|
var tmp;
|
|
3548
|
-
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.
|
|
3548
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.p5_1) {
|
|
3549
3549
|
case 0:
|
|
3550
3550
|
tmp = true;
|
|
3551
3551
|
break;
|
|
@@ -3576,16 +3576,16 @@
|
|
|
3576
3576
|
function toIterable_0(_this__u8e3s4) {
|
|
3577
3577
|
var tmp;
|
|
3578
3578
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3579
|
-
tmp = _this__u8e3s4.
|
|
3579
|
+
tmp = _this__u8e3s4.h21(VOID, true);
|
|
3580
3580
|
} else {
|
|
3581
3581
|
if (_this__u8e3s4 instanceof Any) {
|
|
3582
|
-
tmp = _this__u8e3s4.
|
|
3582
|
+
tmp = _this__u8e3s4.c21(true);
|
|
3583
3583
|
} else {
|
|
3584
3584
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3585
|
-
tmp = _this__u8e3s4.
|
|
3585
|
+
tmp = _this__u8e3s4.j21(VOID, true);
|
|
3586
3586
|
} else {
|
|
3587
3587
|
if (_this__u8e3s4 instanceof Unit) {
|
|
3588
|
-
tmp = _this__u8e3s4.
|
|
3588
|
+
tmp = _this__u8e3s4.f21(true);
|
|
3589
3589
|
} else {
|
|
3590
3590
|
noWhenBranchMatchedException();
|
|
3591
3591
|
}
|
|
@@ -3600,15 +3600,15 @@
|
|
|
3600
3600
|
var tmp0_mapNotNullTo = ArrayList_init_$Create$();
|
|
3601
3601
|
// Inline function 'kotlin.collections.forEach' call
|
|
3602
3602
|
// Inline function 'kotlin.collections.iterator' call
|
|
3603
|
-
var tmp0_iterator = _this__u8e3s4.
|
|
3603
|
+
var tmp0_iterator = _this__u8e3s4.w().c();
|
|
3604
3604
|
while (tmp0_iterator.d()) {
|
|
3605
3605
|
var element = tmp0_iterator.e();
|
|
3606
3606
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3607
3607
|
// Inline function 'community.flock.wirespec.openapi.v3.filterNotNullValues.<anonymous>' call
|
|
3608
3608
|
// Inline function 'kotlin.collections.component1' call
|
|
3609
|
-
var key = element.
|
|
3609
|
+
var key = element.x();
|
|
3610
3610
|
// Inline function 'kotlin.collections.component2' call
|
|
3611
|
-
var value = element.
|
|
3611
|
+
var value = element.y();
|
|
3612
3612
|
var tmp;
|
|
3613
3613
|
if (value == null) {
|
|
3614
3614
|
tmp = null;
|