@flock/wirespec 0.7.6 → 0.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js +397 -616
- package/kotlin/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.map +1 -1
- package/kotlin/arrow-arrow-atomic.js +15 -15
- package/kotlin/arrow-arrow-continuations.js +3 -3
- package/kotlin/arrow-arrow-core.js +98 -94
- package/kotlin/arrow-arrow-core.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js +2118 -3178
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin/kotlin-openapi-bindings.js +3772 -4589
- package/kotlin/kotlin-openapi-bindings.js.map +1 -1
- package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
- package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1682 -2034
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1308 -1619
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/kotlin/{wirespec-cli.js → wirespec-src-compiler-cli.js} +263 -378
- package/kotlin/wirespec-src-compiler-cli.js.map +1 -0
- package/kotlin/{wirespec-core.js → wirespec-src-compiler-core.js} +3143 -2611
- package/kotlin/wirespec-src-compiler-core.js.map +1 -0
- package/kotlin/{wirespec-lib.js → wirespec-src-compiler-lib.js} +100 -132
- package/kotlin/wirespec-src-compiler-lib.js.map +1 -0
- package/kotlin/{wirespec-openapi.js → wirespec-src-openapi.js} +878 -1665
- package/kotlin/wirespec-src-openapi.js.map +1 -0
- package/package.json +6 -4
- package/kotlin/wirespec-cli.js.map +0 -1
- package/kotlin/wirespec-core.js.map +0 -1
- package/kotlin/wirespec-lib.js.map +0 -1
- package/kotlin/wirespec-openapi.js.map +0 -1
- package/sync-hashes/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.hash +0 -1
- package/sync-hashes/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.map.hash +0 -1
- package/sync-hashes/arrow-arrow-annotations.js.hash +0 -1
- package/sync-hashes/arrow-arrow-annotations.js.map.hash +0 -1
- package/sync-hashes/arrow-arrow-atomic.js.hash +0 -1
- package/sync-hashes/arrow-arrow-atomic.js.map.hash +0 -1
- package/sync-hashes/arrow-arrow-continuations.js.hash +0 -1
- package/sync-hashes/arrow-arrow-continuations.js.map.hash +0 -1
- package/sync-hashes/arrow-arrow-core.js.hash +0 -1
- package/sync-hashes/arrow-arrow-core.js.map.hash +0 -1
- package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.hash +0 -1
- package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.map.hash +0 -1
- package/sync-hashes/kotlin-openapi-bindings.js.hash +0 -1
- package/sync-hashes/kotlin-openapi-bindings.js.map.hash +0 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +0 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +0 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +0 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map.hash +0 -1
- package/sync-hashes/wirespec-bin.js.hash +0 -1
- package/sync-hashes/wirespec-cli.js.hash +0 -1
- package/sync-hashes/wirespec-cli.js.map.hash +0 -1
- package/sync-hashes/wirespec-core.js.hash +0 -1
- package/sync-hashes/wirespec-core.js.map.hash +0 -1
- package/sync-hashes/wirespec-lib.js.hash +0 -1
- package/sync-hashes/wirespec-lib.js.map.hash +0 -1
- package/sync-hashes/wirespec-openapi.js.hash +0 -1
- package/sync-hashes/wirespec-openapi.js.map.hash +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
(function (root, factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './wirespec-core.js', './kotlin-kotlin-stdlib-js-ir.js', './kotlin-openapi-bindings.js'], factory);
|
|
3
|
+
define(['exports', './wirespec-src-compiler-core.js', './kotlin-kotlin-stdlib-js-ir.js', './kotlin-openapi-bindings.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./wirespec-core.js'), require('./kotlin-kotlin-stdlib-js-ir.js'), require('./kotlin-openapi-bindings.js'));
|
|
5
|
+
factory(module.exports, require('./wirespec-src-compiler-core.js'), require('./kotlin-kotlin-stdlib-js-ir.js'), require('./kotlin-openapi-bindings.js'));
|
|
6
6
|
else {
|
|
7
|
-
if (typeof this['wirespec-core'] === 'undefined') {
|
|
8
|
-
throw new Error("Error loading module 'wirespec-openapi'. Its dependency 'wirespec-core' was not found. Please, check whether 'wirespec-core' is loaded prior to 'wirespec-openapi'.");
|
|
7
|
+
if (typeof this['wirespec-src-compiler-core'] === 'undefined') {
|
|
8
|
+
throw new Error("Error loading module 'wirespec-src-openapi'. Its dependency 'wirespec-src-compiler-core' was not found. Please, check whether 'wirespec-src-compiler-core' is loaded prior to 'wirespec-src-openapi'.");
|
|
9
9
|
}
|
|
10
10
|
if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') {
|
|
11
|
-
throw new Error("Error loading module 'wirespec-openapi'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to 'wirespec-openapi'.");
|
|
11
|
+
throw new Error("Error loading module 'wirespec-src-openapi'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to 'wirespec-src-openapi'.");
|
|
12
12
|
}
|
|
13
13
|
if (typeof this['kotlin-openapi-bindings'] === 'undefined') {
|
|
14
|
-
throw new Error("Error loading module 'wirespec-openapi'. Its dependency 'kotlin-openapi-bindings' was not found. Please, check whether 'kotlin-openapi-bindings' is loaded prior to 'wirespec-openapi'.");
|
|
14
|
+
throw new Error("Error loading module 'wirespec-src-openapi'. Its dependency 'kotlin-openapi-bindings' was not found. Please, check whether 'kotlin-openapi-bindings' is loaded prior to 'wirespec-src-openapi'.");
|
|
15
15
|
}
|
|
16
|
-
root['wirespec-openapi'] = factory(typeof this['wirespec-openapi'] === 'undefined' ? {} : this['wirespec-openapi'], this['wirespec-core'], this['kotlin-kotlin-stdlib-js-ir'], this['kotlin-openapi-bindings']);
|
|
16
|
+
root['wirespec-src-openapi'] = factory(typeof this['wirespec-src-openapi'] === 'undefined' ? {} : this['wirespec-src-openapi'], this['wirespec-src-compiler-core'], this['kotlin-kotlin-stdlib-js-ir'], this['kotlin-openapi-bindings']);
|
|
17
17
|
}
|
|
18
18
|
}(this, function (_, kotlin_community_flock_wirespec_compiler_core, kotlin_kotlin, kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings) {
|
|
19
19
|
'use strict';
|
|
@@ -21,76 +21,75 @@
|
|
|
21
21
|
var imul = Math.imul;
|
|
22
22
|
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.c1;
|
|
23
23
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
|
|
24
|
-
var split = kotlin_kotlin.$_$.
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var VOID = kotlin_kotlin.$_$.bb;
|
|
24
|
+
var split = kotlin_kotlin.$_$.a9;
|
|
25
|
+
var addAll = kotlin_kotlin.$_$.y3;
|
|
26
|
+
var VOID = kotlin_kotlin.$_$.cb;
|
|
28
27
|
var joinToString = kotlin_kotlin.$_$.a5;
|
|
29
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
30
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
31
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
28
|
+
var protoOf = kotlin_kotlin.$_$.t7;
|
|
29
|
+
var objectMeta = kotlin_kotlin.$_$.s7;
|
|
30
|
+
var setMetadataFor = kotlin_kotlin.$_$.u7;
|
|
32
31
|
var Default_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i1;
|
|
33
32
|
var plus = kotlin_kotlin.$_$.o5;
|
|
34
33
|
var ParameterLocation_QUERY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t;
|
|
35
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
34
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.b4;
|
|
36
35
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.f;
|
|
37
36
|
var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s;
|
|
38
37
|
var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r;
|
|
39
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
40
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
41
|
-
var NotImplementedError = kotlin_kotlin.$_$.
|
|
38
|
+
var emptyList = kotlin_kotlin.$_$.p4;
|
|
39
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.xa;
|
|
40
|
+
var NotImplementedError = kotlin_kotlin.$_$.y9;
|
|
42
41
|
var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
|
|
43
42
|
var ReferenceObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d;
|
|
44
43
|
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.g;
|
|
45
44
|
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.i;
|
|
46
45
|
var listOf = kotlin_kotlin.$_$.h5;
|
|
47
|
-
var emptyMap = kotlin_kotlin.$_$.
|
|
46
|
+
var emptyMap = kotlin_kotlin.$_$.q4;
|
|
48
47
|
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b1;
|
|
49
48
|
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.j;
|
|
50
49
|
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.m;
|
|
51
50
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
52
51
|
var ParameterObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b;
|
|
53
52
|
var Ref = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e;
|
|
54
|
-
var toString = kotlin_kotlin.$_$.
|
|
53
|
+
var toString = kotlin_kotlin.$_$.y7;
|
|
55
54
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.e1;
|
|
56
|
-
var to = kotlin_kotlin.$_$.
|
|
55
|
+
var to = kotlin_kotlin.$_$.bb;
|
|
57
56
|
var BooleanObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a;
|
|
58
57
|
var ResponseObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f;
|
|
59
|
-
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
60
|
-
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
61
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
58
|
+
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.t;
|
|
59
|
+
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.u;
|
|
60
|
+
var ensureNotNull = kotlin_kotlin.$_$.ra;
|
|
62
61
|
var toSet = kotlin_kotlin.$_$.a6;
|
|
63
62
|
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.n;
|
|
64
|
-
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
65
|
-
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
66
|
-
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
67
|
-
var
|
|
63
|
+
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.q;
|
|
64
|
+
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.r;
|
|
65
|
+
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.p;
|
|
66
|
+
var get_entries = kotlin_community_flock_wirespec_compiler_core.$_$.h;
|
|
68
67
|
var mapCapacity = kotlin_kotlin.$_$.j5;
|
|
69
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
68
|
+
var coerceAtLeast = kotlin_kotlin.$_$.z7;
|
|
70
69
|
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.o;
|
|
71
70
|
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.z;
|
|
72
71
|
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.b1;
|
|
73
72
|
var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.a1;
|
|
74
73
|
var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.z;
|
|
75
|
-
var Identifier = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
76
|
-
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
74
|
+
var Identifier = kotlin_community_flock_wirespec_compiler_core.$_$.o;
|
|
75
|
+
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.s;
|
|
77
76
|
var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y;
|
|
78
|
-
var drop = kotlin_kotlin.$_$.
|
|
79
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
80
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
81
|
-
var
|
|
82
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.i1;
|
|
83
|
-
var equals = kotlin_kotlin.$_$.r6;
|
|
77
|
+
var drop = kotlin_kotlin.$_$.o4;
|
|
78
|
+
var charSequenceLength = kotlin_kotlin.$_$.o6;
|
|
79
|
+
var charSequenceGet = kotlin_kotlin.$_$.n6;
|
|
80
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.h1;
|
|
84
81
|
var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.k;
|
|
85
82
|
var Param = kotlin_community_flock_wirespec_compiler_core.$_$.l;
|
|
86
83
|
var Path = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c;
|
|
87
84
|
var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.x;
|
|
88
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
89
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
90
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
85
|
+
var getStringHashCode = kotlin_kotlin.$_$.x6;
|
|
86
|
+
var THROW_CCE = kotlin_kotlin.$_$.ca;
|
|
87
|
+
var classMeta = kotlin_kotlin.$_$.q6;
|
|
91
88
|
var StatusCode = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h;
|
|
92
89
|
var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a1;
|
|
93
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
90
|
+
var hashCode = kotlin_kotlin.$_$.y6;
|
|
91
|
+
var equals = kotlin_kotlin.$_$.s6;
|
|
92
|
+
var Unit_getInstance = kotlin_kotlin.$_$.h3;
|
|
94
93
|
var toMap = kotlin_kotlin.$_$.z5;
|
|
95
94
|
var Default_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j1;
|
|
96
95
|
var ParameterLocation_QUERY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w;
|
|
@@ -125,32 +124,25 @@
|
|
|
125
124
|
setMetadataFor(OpenApiParser_0, 'OpenApiParser', classMeta);
|
|
126
125
|
//endregion
|
|
127
126
|
function Common$className$lambda(it) {
|
|
128
|
-
return Companion_getInstance().
|
|
127
|
+
return Companion_getInstance().bj(it);
|
|
129
128
|
}
|
|
130
129
|
function Common() {
|
|
131
130
|
Common_instance = this;
|
|
132
131
|
}
|
|
133
|
-
protoOf(Common).
|
|
134
|
-
var tmp$ret$2;
|
|
132
|
+
protoOf(Common).f1u = function (arg) {
|
|
135
133
|
// Inline function 'kotlin.collections.flatMap' call
|
|
136
|
-
var tmp$ret$1;
|
|
137
134
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
138
135
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
139
|
-
var indexedObject = arg;
|
|
140
136
|
var inductionVariable = 0;
|
|
141
|
-
var last =
|
|
137
|
+
var last = arg.length;
|
|
142
138
|
while (inductionVariable < last) {
|
|
143
|
-
var element =
|
|
139
|
+
var element = arg[inductionVariable];
|
|
144
140
|
inductionVariable = inductionVariable + 1 | 0;
|
|
145
|
-
var tmp$ret$0;
|
|
146
141
|
// Inline function 'community.flock.wirespec.openapi.Common.className.<anonymous>' call
|
|
147
|
-
|
|
148
|
-
var list = tmp$ret$0;
|
|
142
|
+
var list = split(element, ['-']);
|
|
149
143
|
addAll(tmp0_flatMapTo, list);
|
|
150
144
|
}
|
|
151
|
-
tmp
|
|
152
|
-
tmp$ret$2 = tmp$ret$1;
|
|
153
|
-
var tmp = tmp$ret$2;
|
|
145
|
+
var tmp = tmp0_flatMapTo;
|
|
154
146
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, Common$className$lambda);
|
|
155
147
|
};
|
|
156
148
|
var Common_instance;
|
|
@@ -162,16 +154,12 @@
|
|
|
162
154
|
function Companion() {
|
|
163
155
|
Companion_instance = this;
|
|
164
156
|
}
|
|
165
|
-
protoOf(Companion).
|
|
166
|
-
var tmp$ret$1;
|
|
157
|
+
protoOf(Companion).g1u = function (json) {
|
|
167
158
|
// Inline function 'kotlin.let' call
|
|
168
|
-
var tmp0_let = Default_getInstance().
|
|
159
|
+
var tmp0_let = Default_getInstance().m1b(json);
|
|
169
160
|
// Inline function 'kotlin.contracts.contract' call
|
|
170
|
-
var tmp$ret$0;
|
|
171
161
|
// Inline function 'community.flock.wirespec.openapi.v2.Companion.parse.<anonymous>' call
|
|
172
|
-
|
|
173
|
-
tmp$ret$1 = tmp$ret$0;
|
|
174
|
-
return tmp$ret$1;
|
|
162
|
+
return (new OpenApiParser(tmp0_let)).i1u();
|
|
175
163
|
};
|
|
176
164
|
var Companion_instance;
|
|
177
165
|
function Companion_getInstance_0() {
|
|
@@ -180,175 +168,119 @@
|
|
|
180
168
|
return Companion_instance;
|
|
181
169
|
}
|
|
182
170
|
function parseEndpoints($this) {
|
|
183
|
-
var tmp$ret$48;
|
|
184
171
|
// Inline function 'kotlin.collections.flatMap' call
|
|
185
|
-
var
|
|
186
|
-
var tmp$ret$47;
|
|
172
|
+
var tmp0_flatMap = $this.h1u_1.w1b_1;
|
|
187
173
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
188
174
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
189
|
-
var tmp$ret$0;
|
|
190
175
|
// Inline function 'kotlin.collections.iterator' call
|
|
191
|
-
|
|
192
|
-
var tmp0_iterator = tmp$ret$0;
|
|
176
|
+
var tmp0_iterator = tmp0_flatMap.u().c();
|
|
193
177
|
while (tmp0_iterator.d()) {
|
|
194
178
|
var element = tmp0_iterator.e();
|
|
195
|
-
var tmp$ret$46;
|
|
196
179
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>' call
|
|
197
|
-
var tmp$ret$1;
|
|
198
180
|
// Inline function 'kotlin.collections.component1' call
|
|
199
|
-
|
|
200
|
-
var path = tmp$ret$1;
|
|
201
|
-
var tmp$ret$2;
|
|
181
|
+
var path = element.v().h1c_1;
|
|
202
182
|
// Inline function 'kotlin.collections.component2' call
|
|
203
|
-
|
|
204
|
-
var pathItem = tmp$ret$2;
|
|
205
|
-
var tmp$ret$45;
|
|
183
|
+
var pathItem = element.w();
|
|
206
184
|
// Inline function 'kotlin.collections.flatMap' call
|
|
207
|
-
var
|
|
208
|
-
var tmp$ret$44;
|
|
185
|
+
var tmp0_flatMap_0 = toOperationList(pathItem, $this);
|
|
209
186
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
210
187
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
211
|
-
var tmp$ret$3;
|
|
212
188
|
// Inline function 'kotlin.collections.iterator' call
|
|
213
|
-
|
|
214
|
-
var tmp0_iterator_0 = tmp$ret$3;
|
|
189
|
+
var tmp0_iterator_0 = tmp0_flatMap_0.u().c();
|
|
215
190
|
while (tmp0_iterator_0.d()) {
|
|
216
191
|
var element_0 = tmp0_iterator_0.e();
|
|
217
|
-
var tmp$ret$43;
|
|
218
192
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>' call
|
|
219
|
-
var tmp$ret$4;
|
|
220
193
|
// Inline function 'kotlin.collections.component1' call
|
|
221
|
-
|
|
222
|
-
var method = tmp$ret$4;
|
|
223
|
-
var tmp$ret$5;
|
|
194
|
+
var method = element_0.v();
|
|
224
195
|
// Inline function 'kotlin.collections.component2' call
|
|
225
|
-
|
|
226
|
-
var operation = tmp$ret$5;
|
|
196
|
+
var operation = element_0.w();
|
|
227
197
|
var parameters = plus(resolveParameters_0(pathItem, $this), resolveParameters(operation, $this));
|
|
228
198
|
var segments = toSegments(path, $this, parameters);
|
|
229
199
|
var name = toName(operation, $this, segments, method);
|
|
230
|
-
var tmp$ret$11;
|
|
231
200
|
// Inline function 'kotlin.collections.map' call
|
|
232
|
-
var tmp$ret$8;
|
|
233
201
|
// Inline function 'kotlin.collections.filter' call
|
|
234
|
-
var tmp$ret$7;
|
|
235
202
|
// Inline function 'kotlin.collections.filterTo' call
|
|
236
203
|
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
237
204
|
var tmp0_iterator_1 = parameters.c();
|
|
238
205
|
while (tmp0_iterator_1.d()) {
|
|
239
206
|
var element_1 = tmp0_iterator_1.e();
|
|
240
|
-
var tmp$ret$6;
|
|
241
207
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
242
|
-
|
|
243
|
-
if (tmp$ret$6) {
|
|
208
|
+
if (element_1.r1d_1.equals(ParameterLocation_QUERY_getInstance())) {
|
|
244
209
|
tmp0_filterTo.a(element_1);
|
|
245
210
|
}
|
|
246
211
|
}
|
|
247
|
-
tmp$ret$7 = tmp0_filterTo;
|
|
248
|
-
tmp$ret$8 = tmp$ret$7;
|
|
249
|
-
var tmp2_map = tmp$ret$8;
|
|
250
|
-
var tmp$ret$10;
|
|
251
212
|
// Inline function 'kotlin.collections.mapTo' call
|
|
252
|
-
var
|
|
253
|
-
var tmp0_iterator_2 =
|
|
213
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_filterTo, 10));
|
|
214
|
+
var tmp0_iterator_2 = tmp0_filterTo.c();
|
|
254
215
|
while (tmp0_iterator_2.d()) {
|
|
255
216
|
var item = tmp0_iterator_2.e();
|
|
256
217
|
var tmp$ret$9;
|
|
257
218
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
258
219
|
tmp$ret$9 = toField_0(item, $this, name);
|
|
259
|
-
|
|
220
|
+
tmp0_mapTo.a(tmp$ret$9);
|
|
260
221
|
}
|
|
261
|
-
|
|
262
|
-
tmp$ret$11 = tmp$ret$10;
|
|
263
|
-
var query = tmp$ret$11;
|
|
264
|
-
var tmp$ret$17;
|
|
222
|
+
var query = tmp0_mapTo;
|
|
265
223
|
// Inline function 'kotlin.collections.map' call
|
|
266
|
-
var tmp$ret$14;
|
|
267
224
|
// Inline function 'kotlin.collections.filter' call
|
|
268
|
-
var tmp$ret$13;
|
|
269
225
|
// Inline function 'kotlin.collections.filterTo' call
|
|
270
|
-
var
|
|
226
|
+
var tmp0_filterTo_0 = ArrayList_init_$Create$();
|
|
271
227
|
var tmp0_iterator_3 = parameters.c();
|
|
272
228
|
while (tmp0_iterator_3.d()) {
|
|
273
229
|
var element_2 = tmp0_iterator_3.e();
|
|
274
|
-
var tmp$ret$12;
|
|
275
230
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
tmp3_filterTo.a(element_2);
|
|
231
|
+
if (element_2.r1d_1.equals(ParameterLocation_HEADER_getInstance())) {
|
|
232
|
+
tmp0_filterTo_0.a(element_2);
|
|
279
233
|
}
|
|
280
234
|
}
|
|
281
|
-
tmp$ret$13 = tmp3_filterTo;
|
|
282
|
-
tmp$ret$14 = tmp$ret$13;
|
|
283
|
-
var tmp5_map = tmp$ret$14;
|
|
284
|
-
var tmp$ret$16;
|
|
285
235
|
// Inline function 'kotlin.collections.mapTo' call
|
|
286
|
-
var
|
|
287
|
-
var tmp0_iterator_4 =
|
|
236
|
+
var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_filterTo_0, 10));
|
|
237
|
+
var tmp0_iterator_4 = tmp0_filterTo_0.c();
|
|
288
238
|
while (tmp0_iterator_4.d()) {
|
|
289
239
|
var item_0 = tmp0_iterator_4.e();
|
|
290
240
|
var tmp$ret$15;
|
|
291
241
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
292
242
|
tmp$ret$15 = toField_0(item_0, $this, name);
|
|
293
|
-
|
|
243
|
+
tmp0_mapTo_0.a(tmp$ret$15);
|
|
294
244
|
}
|
|
295
|
-
|
|
296
|
-
tmp$ret$17 = tmp$ret$16;
|
|
297
|
-
var headers = tmp$ret$17;
|
|
298
|
-
var tmp$ret$29;
|
|
245
|
+
var headers = tmp0_mapTo_0;
|
|
299
246
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
300
|
-
var tmp$ret$27;
|
|
301
247
|
// Inline function 'kotlin.collections.flatMap' call
|
|
302
|
-
var tmp$ret$20;
|
|
303
248
|
// Inline function 'kotlin.collections.filter' call
|
|
304
|
-
var tmp$ret$19;
|
|
305
249
|
// Inline function 'kotlin.collections.filterTo' call
|
|
306
|
-
var
|
|
250
|
+
var tmp0_filterTo_1 = ArrayList_init_$Create$();
|
|
307
251
|
var tmp0_iterator_5 = parameters.c();
|
|
308
252
|
while (tmp0_iterator_5.d()) {
|
|
309
253
|
var element_3 = tmp0_iterator_5.e();
|
|
310
|
-
var tmp$ret$18;
|
|
311
254
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
tmp6_filterTo.a(element_3);
|
|
255
|
+
if (element_3.r1d_1.equals(ParameterLocation_BODY_getInstance())) {
|
|
256
|
+
tmp0_filterTo_1.a(element_3);
|
|
315
257
|
}
|
|
316
258
|
}
|
|
317
|
-
tmp$ret$19 = tmp6_filterTo;
|
|
318
|
-
tmp$ret$20 = tmp$ret$19;
|
|
319
|
-
var tmp8_flatMap = tmp$ret$20;
|
|
320
|
-
var tmp$ret$26;
|
|
321
259
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
322
|
-
var
|
|
323
|
-
var tmp0_iterator_6 =
|
|
260
|
+
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
261
|
+
var tmp0_iterator_6 = tmp0_filterTo_1.c();
|
|
324
262
|
while (tmp0_iterator_6.d()) {
|
|
325
263
|
var element_4 = tmp0_iterator_6.e();
|
|
326
|
-
var tmp$ret$25;
|
|
327
264
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
328
|
-
var tmp$ret$24;
|
|
329
265
|
// Inline function 'kotlin.collections.map' call
|
|
330
|
-
var tmp$ret$21;
|
|
331
266
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
332
|
-
var tmp0_elvis_lhs = $this.
|
|
333
|
-
var
|
|
334
|
-
var
|
|
335
|
-
tmp$ret$21 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
336
|
-
var tmp2_map_0 = tmp$ret$21;
|
|
337
|
-
var tmp$ret$23;
|
|
267
|
+
var tmp0_elvis_lhs = $this.h1u_1.u1b_1;
|
|
268
|
+
var tmp0_elvis_lhs_0 = tmp0_elvis_lhs == null ? operation.f1d_1 : tmp0_elvis_lhs;
|
|
269
|
+
var tmp1_map = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
338
270
|
// Inline function 'kotlin.collections.mapTo' call
|
|
339
|
-
var
|
|
340
|
-
var tmp0_iterator_7 =
|
|
271
|
+
var tmp0_mapTo_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
272
|
+
var tmp0_iterator_7 = tmp1_map.c();
|
|
341
273
|
while (tmp0_iterator_7.d()) {
|
|
342
274
|
var item_1 = tmp0_iterator_7.e();
|
|
343
275
|
var tmp$ret$22;
|
|
344
276
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
345
|
-
var schema = element_4.
|
|
277
|
+
var schema = element_4.u1d_1;
|
|
346
278
|
var tmp;
|
|
347
279
|
if (schema instanceof ReferenceObject) {
|
|
348
280
|
tmp = toReference(schema, $this);
|
|
349
281
|
} else {
|
|
350
282
|
if (schema instanceof SchemaObject) {
|
|
351
|
-
tmp = toReference_0(schema, $this, Common_getInstance().
|
|
283
|
+
tmp = toReference_0(schema, $this, Common_getInstance().f1u([name, 'RequestBody']));
|
|
352
284
|
} else {
|
|
353
285
|
if (schema == null) {
|
|
354
286
|
throw new NotImplementedError();
|
|
@@ -358,257 +290,179 @@
|
|
|
358
290
|
}
|
|
359
291
|
}
|
|
360
292
|
var tmp_0 = tmp;
|
|
361
|
-
var tmp0_elvis_lhs_1 = element_4.
|
|
293
|
+
var tmp0_elvis_lhs_1 = element_4.t1d_1;
|
|
362
294
|
tmp$ret$22 = new Request(new Content(item_1, tmp_0, tmp0_elvis_lhs_1 == null ? false : tmp0_elvis_lhs_1));
|
|
363
|
-
|
|
295
|
+
tmp0_mapTo_1.a(tmp$ret$22);
|
|
364
296
|
}
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
tmp$ret$25 = tmp$ret$24;
|
|
368
|
-
var list = tmp$ret$25;
|
|
369
|
-
addAll(tmp7_flatMapTo, list);
|
|
297
|
+
var list = tmp0_mapTo_1;
|
|
298
|
+
addAll(tmp0_flatMapTo_1, list);
|
|
370
299
|
}
|
|
371
|
-
tmp$ret$26 = tmp7_flatMapTo;
|
|
372
|
-
tmp$ret$27 = tmp$ret$26;
|
|
373
|
-
var tmp9_ifEmpty = tmp$ret$27;
|
|
374
300
|
var tmp_1;
|
|
375
|
-
if (
|
|
376
|
-
var tmp$ret$28;
|
|
301
|
+
if (tmp0_flatMapTo_1.g()) {
|
|
377
302
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
378
|
-
|
|
379
|
-
tmp_1 = tmp$ret$28;
|
|
303
|
+
tmp_1 = listOf(new Request(null));
|
|
380
304
|
} else {
|
|
381
|
-
tmp_1 =
|
|
305
|
+
tmp_1 = tmp0_flatMapTo_1;
|
|
382
306
|
}
|
|
383
|
-
|
|
384
|
-
var requests = tmp$ret$29;
|
|
385
|
-
var tmp$ret$42;
|
|
307
|
+
var requests = tmp_1;
|
|
386
308
|
// Inline function 'kotlin.collections.flatMap' call
|
|
387
|
-
var tmp$ret$30;
|
|
388
309
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
389
|
-
var
|
|
390
|
-
var
|
|
391
|
-
tmp$ret$30 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
392
|
-
var tmp12_flatMap = tmp$ret$30;
|
|
393
|
-
var tmp$ret$41;
|
|
310
|
+
var tmp0_elvis_lhs_2 = operation.i1d_1;
|
|
311
|
+
var tmp5_flatMap = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
394
312
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
395
|
-
var
|
|
396
|
-
var tmp$ret$31;
|
|
313
|
+
var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
|
|
397
314
|
// Inline function 'kotlin.collections.iterator' call
|
|
398
|
-
|
|
399
|
-
var tmp0_iterator_8 = tmp$ret$31;
|
|
315
|
+
var tmp0_iterator_8 = tmp5_flatMap.u().c();
|
|
400
316
|
while (tmp0_iterator_8.d()) {
|
|
401
317
|
var element_5 = tmp0_iterator_8.e();
|
|
402
|
-
var tmp$ret$40;
|
|
403
318
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
404
|
-
var tmp$ret$32;
|
|
405
319
|
// Inline function 'kotlin.collections.component1' call
|
|
406
|
-
|
|
407
|
-
var status = tmp$ret$32;
|
|
408
|
-
var tmp$ret$33;
|
|
320
|
+
var status = element_5.v().a1g_1;
|
|
409
321
|
// Inline function 'kotlin.collections.component2' call
|
|
410
|
-
|
|
411
|
-
var res = tmp$ret$33;
|
|
412
|
-
var tmp$ret$39;
|
|
322
|
+
var res = element_5.w();
|
|
413
323
|
// Inline function 'kotlin.collections.map' call
|
|
414
|
-
var tmp$ret$34;
|
|
415
324
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
416
|
-
var tmp0_elvis_lhs_3 = $this.
|
|
417
|
-
var
|
|
418
|
-
var
|
|
419
|
-
tmp$ret$34 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
420
|
-
var tmp2_map_1 = tmp$ret$34;
|
|
421
|
-
var tmp$ret$38;
|
|
325
|
+
var tmp0_elvis_lhs_3 = $this.h1u_1.v1b_1;
|
|
326
|
+
var tmp0_elvis_lhs_4 = tmp0_elvis_lhs_3 == null ? operation.g1d_1 : tmp0_elvis_lhs_3;
|
|
327
|
+
var tmp1_map_0 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
422
328
|
// Inline function 'kotlin.collections.mapTo' call
|
|
423
|
-
var
|
|
424
|
-
var tmp0_iterator_9 =
|
|
329
|
+
var tmp0_mapTo_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map_0, 10));
|
|
330
|
+
var tmp0_iterator_9 = tmp1_map_0.c();
|
|
425
331
|
while (tmp0_iterator_9.d()) {
|
|
426
332
|
var item_2 = tmp0_iterator_9.e();
|
|
427
333
|
var tmp$ret$37;
|
|
428
334
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
429
335
|
var tmp_2 = _StatusCode___get_value__impl__we50mu(status);
|
|
430
|
-
var tmp0_safe_receiver = resolve_1(res, $this).
|
|
336
|
+
var tmp0_safe_receiver = resolve_1(res, $this).e1g_1;
|
|
431
337
|
var tmp_3;
|
|
432
338
|
if (tmp0_safe_receiver == null) {
|
|
433
339
|
tmp_3 = null;
|
|
434
340
|
} else {
|
|
435
|
-
var tmp$ret$36;
|
|
436
341
|
// Inline function 'kotlin.let' call
|
|
437
342
|
// Inline function 'kotlin.contracts.contract' call
|
|
438
|
-
var tmp$ret$35;
|
|
439
343
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
440
|
-
var tmp0_subject = tmp0_safe_receiver;
|
|
441
344
|
var tmp_4;
|
|
442
|
-
if (
|
|
345
|
+
if (tmp0_safe_receiver instanceof ReferenceObject) {
|
|
443
346
|
tmp_4 = toReference(tmp0_safe_receiver, $this);
|
|
444
347
|
} else {
|
|
445
|
-
if (
|
|
446
|
-
tmp_4 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().
|
|
348
|
+
if (tmp0_safe_receiver instanceof SchemaObject) {
|
|
349
|
+
tmp_4 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().f1u([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']));
|
|
447
350
|
} else {
|
|
448
351
|
noWhenBranchMatchedException();
|
|
449
352
|
}
|
|
450
353
|
}
|
|
451
|
-
|
|
452
|
-
tmp$ret$36 = tmp$ret$35;
|
|
453
|
-
tmp_3 = tmp$ret$36;
|
|
354
|
+
tmp_3 = new Content(item_2, tmp_4, false);
|
|
454
355
|
}
|
|
455
356
|
tmp$ret$37 = new Response(tmp_2, tmp_3);
|
|
456
|
-
|
|
357
|
+
tmp0_mapTo_2.a(tmp$ret$37);
|
|
457
358
|
}
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
tmp$ret$40 = tmp$ret$39;
|
|
461
|
-
var list_0 = tmp$ret$40;
|
|
462
|
-
addAll(tmp11_flatMapTo, list_0);
|
|
359
|
+
var list_0 = tmp0_mapTo_2;
|
|
360
|
+
addAll(tmp0_flatMapTo_2, list_0);
|
|
463
361
|
}
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
var responses = tmp$ret$42;
|
|
467
|
-
tmp$ret$43 = listOf(new Endpoint(name, method, segments, query, headers, emptyList(), requests, responses));
|
|
468
|
-
var list_1 = tmp$ret$43;
|
|
362
|
+
var responses = tmp0_flatMapTo_2;
|
|
363
|
+
var list_1 = listOf(new Endpoint(name, method, segments, query, headers, emptyList(), requests, responses));
|
|
469
364
|
addAll(tmp0_flatMapTo_0, list_1);
|
|
470
365
|
}
|
|
471
|
-
|
|
472
|
-
tmp$ret$45 = tmp$ret$44;
|
|
473
|
-
tmp$ret$46 = tmp$ret$45;
|
|
474
|
-
var list_2 = tmp$ret$46;
|
|
366
|
+
var list_2 = tmp0_flatMapTo_0;
|
|
475
367
|
addAll(tmp0_flatMapTo, list_2);
|
|
476
368
|
}
|
|
477
|
-
|
|
478
|
-
tmp$ret$48 = tmp$ret$47;
|
|
479
|
-
return tmp$ret$48;
|
|
369
|
+
return tmp0_flatMapTo;
|
|
480
370
|
}
|
|
481
371
|
function parseRequestBody($this) {
|
|
482
|
-
return flatMapRequests($this.
|
|
372
|
+
return flatMapRequests($this.h1u_1, $this, OpenApiParser$parseRequestBody$lambda($this));
|
|
483
373
|
}
|
|
484
374
|
function parseResponseBody($this) {
|
|
485
|
-
return flatMapResponses($this.
|
|
375
|
+
return flatMapResponses($this.h1u_1, $this, OpenApiParser$parseResponseBody$lambda($this));
|
|
486
376
|
}
|
|
487
377
|
function parseDefinitions($this) {
|
|
488
|
-
var tmp$ret$8;
|
|
489
378
|
// Inline function 'kotlin.collections.flatMap' call
|
|
490
|
-
var tmp$ret$4;
|
|
491
379
|
// Inline function 'kotlin.collections.filter' call
|
|
492
|
-
var tmp$ret$0;
|
|
493
380
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
494
|
-
var
|
|
495
|
-
var
|
|
496
|
-
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
497
|
-
var tmp2_filter = tmp$ret$0;
|
|
498
|
-
var tmp$ret$3;
|
|
381
|
+
var tmp0_elvis_lhs = $this.h1u_1.x1b_1;
|
|
382
|
+
var tmp1_filter = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
499
383
|
// Inline function 'kotlin.collections.filterTo' call
|
|
500
|
-
var
|
|
501
|
-
var tmp$ret$1;
|
|
384
|
+
var tmp0_filterTo = LinkedHashMap_init_$Create$();
|
|
502
385
|
// Inline function 'kotlin.collections.iterator' call
|
|
503
|
-
|
|
504
|
-
var tmp0_iterator = tmp$ret$1;
|
|
386
|
+
var tmp0_iterator = tmp1_filter.u().c();
|
|
505
387
|
while (tmp0_iterator.d()) {
|
|
506
388
|
var element = tmp0_iterator.e();
|
|
507
|
-
var tmp$ret$2;
|
|
508
389
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
tmp1_filterTo.k3(element.v(), element.w());
|
|
390
|
+
if (element.w().w1f_1 == null) {
|
|
391
|
+
tmp0_filterTo.l3(element.v(), element.w());
|
|
512
392
|
}
|
|
513
393
|
}
|
|
514
|
-
tmp$ret$3 = tmp1_filterTo;
|
|
515
|
-
tmp$ret$4 = tmp$ret$3;
|
|
516
|
-
var tmp4_flatMap = tmp$ret$4;
|
|
517
|
-
var tmp$ret$7;
|
|
518
394
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
519
|
-
var
|
|
520
|
-
var tmp$ret$5;
|
|
395
|
+
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
521
396
|
// Inline function 'kotlin.collections.iterator' call
|
|
522
|
-
|
|
523
|
-
var tmp0_iterator_0 = tmp$ret$5;
|
|
397
|
+
var tmp0_iterator_0 = tmp0_filterTo.u().c();
|
|
524
398
|
while (tmp0_iterator_0.d()) {
|
|
525
399
|
var element_0 = tmp0_iterator_0.e();
|
|
526
|
-
var tmp$ret$6;
|
|
527
400
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
addAll(tmp3_flatMapTo, list);
|
|
401
|
+
var list = flatten(element_0.w(), $this, Common_getInstance().f1u([element_0.v()]));
|
|
402
|
+
addAll(tmp0_flatMapTo, list);
|
|
531
403
|
}
|
|
532
|
-
|
|
533
|
-
tmp$ret$8 = tmp$ret$7;
|
|
534
|
-
return tmp$ret$8;
|
|
404
|
+
return tmp0_flatMapTo;
|
|
535
405
|
}
|
|
536
406
|
function resolveParameters(_this__u8e3s4, $this) {
|
|
537
|
-
var tmp$ret$3;
|
|
538
407
|
// Inline function 'kotlin.collections.map' call
|
|
539
|
-
var tmp$ret$0;
|
|
540
408
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
541
|
-
var
|
|
542
|
-
var
|
|
543
|
-
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
544
|
-
var tmp2_map = tmp$ret$0;
|
|
545
|
-
var tmp$ret$2;
|
|
409
|
+
var tmp0_elvis_lhs = _this__u8e3s4.h1d_1;
|
|
410
|
+
var tmp1_map = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
546
411
|
// Inline function 'kotlin.collections.mapTo' call
|
|
547
|
-
var
|
|
548
|
-
var tmp0_iterator =
|
|
412
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
413
|
+
var tmp0_iterator = tmp1_map.c();
|
|
549
414
|
while (tmp0_iterator.d()) {
|
|
550
415
|
var item = tmp0_iterator.e();
|
|
551
416
|
var tmp$ret$1;
|
|
552
417
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.resolveParameters.<anonymous>' call
|
|
553
|
-
var tmp0_subject = item;
|
|
554
418
|
var tmp;
|
|
555
|
-
if (
|
|
419
|
+
if (item instanceof ParameterObject) {
|
|
556
420
|
tmp = item;
|
|
557
421
|
} else {
|
|
558
|
-
if (
|
|
422
|
+
if (item instanceof ReferenceObject) {
|
|
559
423
|
tmp = resolveParameterObject(item, $this);
|
|
560
424
|
} else {
|
|
561
425
|
noWhenBranchMatchedException();
|
|
562
426
|
}
|
|
563
427
|
}
|
|
564
428
|
tmp$ret$1 = tmp;
|
|
565
|
-
|
|
429
|
+
tmp0_mapTo.a(tmp$ret$1);
|
|
566
430
|
}
|
|
567
|
-
|
|
568
|
-
tmp$ret$3 = tmp$ret$2;
|
|
569
|
-
return tmp$ret$3;
|
|
431
|
+
return tmp0_mapTo;
|
|
570
432
|
}
|
|
571
433
|
function resolveParameters_0(_this__u8e3s4, $this) {
|
|
572
|
-
var tmp$ret$3;
|
|
573
434
|
// Inline function 'kotlin.collections.map' call
|
|
574
|
-
var tmp$ret$0;
|
|
575
435
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
576
|
-
var
|
|
577
|
-
var
|
|
578
|
-
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
579
|
-
var tmp2_map = tmp$ret$0;
|
|
580
|
-
var tmp$ret$2;
|
|
436
|
+
var tmp0_elvis_lhs = _this__u8e3s4.w1c_1;
|
|
437
|
+
var tmp1_map = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
581
438
|
// Inline function 'kotlin.collections.mapTo' call
|
|
582
|
-
var
|
|
583
|
-
var tmp0_iterator =
|
|
439
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
440
|
+
var tmp0_iterator = tmp1_map.c();
|
|
584
441
|
while (tmp0_iterator.d()) {
|
|
585
442
|
var item = tmp0_iterator.e();
|
|
586
443
|
var tmp$ret$1;
|
|
587
444
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.resolveParameters.<anonymous>' call
|
|
588
|
-
var tmp0_subject = item;
|
|
589
445
|
var tmp;
|
|
590
|
-
if (
|
|
446
|
+
if (item instanceof ParameterObject) {
|
|
591
447
|
tmp = item;
|
|
592
448
|
} else {
|
|
593
|
-
if (
|
|
449
|
+
if (item instanceof ReferenceObject) {
|
|
594
450
|
tmp = resolveParameterObject(item, $this);
|
|
595
451
|
} else {
|
|
596
452
|
noWhenBranchMatchedException();
|
|
597
453
|
}
|
|
598
454
|
}
|
|
599
455
|
tmp$ret$1 = tmp;
|
|
600
|
-
|
|
456
|
+
tmp0_mapTo.a(tmp$ret$1);
|
|
601
457
|
}
|
|
602
|
-
|
|
603
|
-
tmp$ret$3 = tmp$ret$2;
|
|
604
|
-
return tmp$ret$3;
|
|
458
|
+
return tmp0_mapTo;
|
|
605
459
|
}
|
|
606
460
|
function resolveParameterObject(_this__u8e3s4, $this) {
|
|
607
|
-
var tmp0_safe_receiver = $this.
|
|
608
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
461
|
+
var tmp0_safe_receiver = $this.h1u_1.y1b_1;
|
|
462
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n2(getReference(_this__u8e3s4, $this));
|
|
609
463
|
var tmp;
|
|
610
464
|
if (tmp1_elvis_lhs == null) {
|
|
611
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
465
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.q1e_1);
|
|
612
466
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
613
467
|
} else {
|
|
614
468
|
tmp = tmp1_elvis_lhs;
|
|
@@ -616,11 +470,11 @@
|
|
|
616
470
|
return tmp;
|
|
617
471
|
}
|
|
618
472
|
function resolveResponseObject(_this__u8e3s4, $this) {
|
|
619
|
-
var tmp0_safe_receiver = $this.
|
|
620
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
473
|
+
var tmp0_safe_receiver = $this.h1u_1.z1b_1;
|
|
474
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n2(getReference(_this__u8e3s4, $this));
|
|
621
475
|
var tmp;
|
|
622
476
|
if (tmp1_elvis_lhs == null) {
|
|
623
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
477
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.q1e_1);
|
|
624
478
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
625
479
|
} else {
|
|
626
480
|
tmp = tmp1_elvis_lhs;
|
|
@@ -628,25 +482,21 @@
|
|
|
628
482
|
return tmp;
|
|
629
483
|
}
|
|
630
484
|
function resolveSchemaObject(_this__u8e3s4, $this) {
|
|
631
|
-
var tmp0_safe_receiver = $this.
|
|
632
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
485
|
+
var tmp0_safe_receiver = $this.h1u_1.x1b_1;
|
|
486
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n2(getReference(_this__u8e3s4, $this));
|
|
633
487
|
var tmp;
|
|
634
488
|
if (tmp1_safe_receiver == null) {
|
|
635
489
|
tmp = null;
|
|
636
490
|
} else {
|
|
637
|
-
var tmp$ret$1;
|
|
638
491
|
// Inline function 'kotlin.let' call
|
|
639
492
|
// Inline function 'kotlin.contracts.contract' call
|
|
640
|
-
var tmp$ret$0;
|
|
641
493
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.resolveSchemaObject.<anonymous>' call
|
|
642
|
-
tmp
|
|
643
|
-
tmp$ret$1 = tmp$ret$0;
|
|
644
|
-
tmp = tmp$ret$1;
|
|
494
|
+
tmp = to(_this__u8e3s4, tmp1_safe_receiver);
|
|
645
495
|
}
|
|
646
496
|
var tmp2_elvis_lhs = tmp;
|
|
647
497
|
var tmp_0;
|
|
648
498
|
if (tmp2_elvis_lhs == null) {
|
|
649
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
499
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.q1e_1);
|
|
650
500
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
651
501
|
} else {
|
|
652
502
|
tmp_0 = tmp2_elvis_lhs;
|
|
@@ -654,13 +504,12 @@
|
|
|
654
504
|
return tmp_0;
|
|
655
505
|
}
|
|
656
506
|
function resolve(_this__u8e3s4, $this) {
|
|
657
|
-
var tmp0_subject = _this__u8e3s4;
|
|
658
507
|
var tmp;
|
|
659
|
-
if (
|
|
508
|
+
if (_this__u8e3s4 instanceof SchemaObject) {
|
|
660
509
|
tmp = _this__u8e3s4;
|
|
661
510
|
} else {
|
|
662
|
-
if (
|
|
663
|
-
tmp = resolveSchemaObject(_this__u8e3s4, $this).
|
|
511
|
+
if (_this__u8e3s4 instanceof ReferenceObject) {
|
|
512
|
+
tmp = resolveSchemaObject(_this__u8e3s4, $this).i3_1;
|
|
664
513
|
} else {
|
|
665
514
|
noWhenBranchMatchedException();
|
|
666
515
|
}
|
|
@@ -668,15 +517,14 @@
|
|
|
668
517
|
return tmp;
|
|
669
518
|
}
|
|
670
519
|
function resolve_0(_this__u8e3s4, $this) {
|
|
671
|
-
var tmp0_subject = _this__u8e3s4;
|
|
672
520
|
var tmp;
|
|
673
|
-
if (
|
|
521
|
+
if (_this__u8e3s4 instanceof SchemaObject) {
|
|
674
522
|
tmp = _this__u8e3s4;
|
|
675
523
|
} else {
|
|
676
|
-
if (
|
|
677
|
-
tmp = resolveSchemaObject(_this__u8e3s4, $this).
|
|
524
|
+
if (_this__u8e3s4 instanceof ReferenceObject) {
|
|
525
|
+
tmp = resolveSchemaObject(_this__u8e3s4, $this).i3_1;
|
|
678
526
|
} else {
|
|
679
|
-
if (
|
|
527
|
+
if (_this__u8e3s4 instanceof BooleanObject) {
|
|
680
528
|
throw new NotImplementedError();
|
|
681
529
|
} else {
|
|
682
530
|
noWhenBranchMatchedException();
|
|
@@ -686,12 +534,11 @@
|
|
|
686
534
|
return tmp;
|
|
687
535
|
}
|
|
688
536
|
function resolve_1(_this__u8e3s4, $this) {
|
|
689
|
-
var tmp0_subject = _this__u8e3s4;
|
|
690
537
|
var tmp;
|
|
691
|
-
if (
|
|
538
|
+
if (_this__u8e3s4 instanceof ResponseObject) {
|
|
692
539
|
tmp = _this__u8e3s4;
|
|
693
540
|
} else {
|
|
694
|
-
if (
|
|
541
|
+
if (_this__u8e3s4 instanceof ReferenceObject) {
|
|
695
542
|
tmp = resolveResponseObject(_this__u8e3s4, $this);
|
|
696
543
|
} else {
|
|
697
544
|
noWhenBranchMatchedException();
|
|
@@ -700,12 +547,11 @@
|
|
|
700
547
|
return tmp;
|
|
701
548
|
}
|
|
702
549
|
function resolve_2(_this__u8e3s4, $this) {
|
|
703
|
-
var tmp0_subject = _this__u8e3s4;
|
|
704
550
|
var tmp;
|
|
705
|
-
if (
|
|
551
|
+
if (_this__u8e3s4 instanceof ParameterObject) {
|
|
706
552
|
tmp = _this__u8e3s4;
|
|
707
553
|
} else {
|
|
708
|
-
if (
|
|
554
|
+
if (_this__u8e3s4 instanceof ReferenceObject) {
|
|
709
555
|
tmp = resolveParameterObject(_this__u8e3s4, $this);
|
|
710
556
|
} else {
|
|
711
557
|
noWhenBranchMatchedException();
|
|
@@ -715,191 +561,135 @@
|
|
|
715
561
|
}
|
|
716
562
|
function flatten(_this__u8e3s4, $this, name) {
|
|
717
563
|
var tmp;
|
|
718
|
-
if (!(_this__u8e3s4.
|
|
719
|
-
var tmp0_subject = _this__u8e3s4.e1f_1;
|
|
564
|
+
if (!(_this__u8e3s4.w1f_1 == null)) {
|
|
720
565
|
var tmp_0;
|
|
721
|
-
if (
|
|
566
|
+
if (_this__u8e3s4.w1f_1 instanceof BooleanObject) {
|
|
722
567
|
tmp_0 = emptyList();
|
|
723
568
|
} else {
|
|
724
|
-
tmp_0 = flatten(resolve_0(ensureNotNull(_this__u8e3s4.
|
|
569
|
+
tmp_0 = flatten(resolve_0(ensureNotNull(_this__u8e3s4.w1f_1), $this), $this, name);
|
|
725
570
|
}
|
|
726
571
|
tmp = tmp_0;
|
|
727
|
-
} else if (!(_this__u8e3s4.
|
|
728
|
-
var tmp$ret$3;
|
|
572
|
+
} else if (!(_this__u8e3s4.u1f_1 == null)) {
|
|
729
573
|
// Inline function 'kotlin.collections.flatMap' call
|
|
730
|
-
var tmp$ret$0;
|
|
731
574
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
732
|
-
var
|
|
733
|
-
var
|
|
734
|
-
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
735
|
-
var tmp2_flatMap = tmp$ret$0;
|
|
736
|
-
var tmp$ret$2;
|
|
575
|
+
var tmp0_elvis_lhs = _this__u8e3s4.u1f_1;
|
|
576
|
+
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
737
577
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
738
|
-
var
|
|
739
|
-
var tmp0_iterator =
|
|
578
|
+
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
579
|
+
var tmp0_iterator = tmp1_flatMap.c();
|
|
740
580
|
while (tmp0_iterator.d()) {
|
|
741
581
|
var element = tmp0_iterator.e();
|
|
742
|
-
var tmp$ret$1;
|
|
743
582
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
tmp$ret$2 = tmp1_flatMapTo;
|
|
749
|
-
tmp$ret$3 = tmp$ret$2;
|
|
750
|
-
var tmp_1 = listOf(new Type(name, new Shape(tmp$ret$3)));
|
|
751
|
-
var tmp$ret$13;
|
|
583
|
+
var list = toField(resolve(element, $this), $this, name);
|
|
584
|
+
addAll(tmp0_flatMapTo, list);
|
|
585
|
+
}
|
|
586
|
+
var tmp_1 = listOf(new Type(name, new Shape(tmp0_flatMapTo)));
|
|
752
587
|
// Inline function 'kotlin.collections.flatMap' call
|
|
753
|
-
var
|
|
754
|
-
var tmp$ret$12;
|
|
588
|
+
var tmp2_flatMap = ensureNotNull(_this__u8e3s4.u1f_1);
|
|
755
589
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
756
|
-
var
|
|
757
|
-
var tmp0_iterator_0 =
|
|
590
|
+
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
591
|
+
var tmp0_iterator_0 = tmp2_flatMap.c();
|
|
758
592
|
while (tmp0_iterator_0.d()) {
|
|
759
593
|
var element_0 = tmp0_iterator_0.e();
|
|
760
|
-
var tmp$ret$11;
|
|
761
594
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
762
|
-
var tmp0_subject_0 = element_0;
|
|
763
595
|
var tmp_2;
|
|
764
|
-
if (
|
|
596
|
+
if (element_0 instanceof ReferenceObject) {
|
|
765
597
|
tmp_2 = emptyList();
|
|
766
598
|
} else {
|
|
767
|
-
if (
|
|
768
|
-
var tmp$ret$10;
|
|
599
|
+
if (element_0 instanceof SchemaObject) {
|
|
769
600
|
// Inline function 'kotlin.collections.flatMap' call
|
|
770
|
-
var tmp$ret$4;
|
|
771
601
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
772
|
-
var
|
|
773
|
-
var
|
|
774
|
-
tmp$ret$4 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
775
|
-
var tmp2_flatMap_0 = tmp$ret$4;
|
|
776
|
-
var tmp$ret$9;
|
|
602
|
+
var tmp0_elvis_lhs_0 = element_0.v1f_1;
|
|
603
|
+
var tmp1_flatMap_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
777
604
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
778
|
-
var
|
|
779
|
-
var tmp$ret$5;
|
|
605
|
+
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
780
606
|
// Inline function 'kotlin.collections.iterator' call
|
|
781
|
-
|
|
782
|
-
var tmp0_iterator_1 = tmp$ret$5;
|
|
607
|
+
var tmp0_iterator_1 = tmp1_flatMap_0.u().c();
|
|
783
608
|
while (tmp0_iterator_1.d()) {
|
|
784
609
|
var element_1 = tmp0_iterator_1.e();
|
|
785
|
-
var tmp$ret$8;
|
|
786
610
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>.<anonymous>' call
|
|
787
|
-
var tmp$ret$6;
|
|
788
611
|
// Inline function 'kotlin.collections.component1' call
|
|
789
|
-
|
|
790
|
-
var key = tmp$ret$6;
|
|
791
|
-
var tmp$ret$7;
|
|
612
|
+
var key = element_1.v();
|
|
792
613
|
// Inline function 'kotlin.collections.component2' call
|
|
793
|
-
|
|
794
|
-
var value = tmp$ret$7;
|
|
795
|
-
var tmp0_subject_1 = value;
|
|
614
|
+
var value = element_1.w();
|
|
796
615
|
var tmp_3;
|
|
797
|
-
if (
|
|
616
|
+
if (value instanceof ReferenceObject) {
|
|
798
617
|
tmp_3 = emptyList();
|
|
799
618
|
} else {
|
|
800
|
-
if (
|
|
801
|
-
tmp_3 = flatten(value, $this, Common_getInstance().
|
|
619
|
+
if (value instanceof SchemaObject) {
|
|
620
|
+
tmp_3 = flatten(value, $this, Common_getInstance().f1u([name, key]));
|
|
802
621
|
} else {
|
|
803
622
|
noWhenBranchMatchedException();
|
|
804
623
|
}
|
|
805
624
|
}
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
addAll(tmp1_flatMapTo_0, list_0);
|
|
625
|
+
var list_0 = tmp_3;
|
|
626
|
+
addAll(tmp0_flatMapTo_1, list_0);
|
|
809
627
|
}
|
|
810
|
-
|
|
811
|
-
tmp$ret$10 = tmp$ret$9;
|
|
812
|
-
tmp_2 = tmp$ret$10;
|
|
628
|
+
tmp_2 = tmp0_flatMapTo_1;
|
|
813
629
|
} else {
|
|
814
630
|
noWhenBranchMatchedException();
|
|
815
631
|
}
|
|
816
632
|
}
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
tmp$ret$13 = tmp$ret$12;
|
|
823
|
-
tmp = plus(tmp_1, tmp$ret$13);
|
|
824
|
-
} else if (!(_this__u8e3s4.z1e_1 == null)) {
|
|
825
|
-
var tmp$ret$18;
|
|
633
|
+
var list_1 = tmp_2;
|
|
634
|
+
addAll(tmp0_flatMapTo_0, list_1);
|
|
635
|
+
}
|
|
636
|
+
tmp = plus(tmp_1, tmp0_flatMapTo_0);
|
|
637
|
+
} else if (!(_this__u8e3s4.r1f_1 == null)) {
|
|
826
638
|
// Inline function 'kotlin.let' call
|
|
827
|
-
var tmp$ret$16;
|
|
828
639
|
// Inline function 'kotlin.collections.map' call
|
|
829
|
-
var
|
|
830
|
-
var tmp$ret$15;
|
|
640
|
+
var tmp3_map = ensureNotNull(_this__u8e3s4.r1f_1);
|
|
831
641
|
// Inline function 'kotlin.collections.mapTo' call
|
|
832
|
-
var
|
|
833
|
-
var tmp0_iterator_2 =
|
|
642
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp3_map, 10));
|
|
643
|
+
var tmp0_iterator_2 = tmp3_map.c();
|
|
834
644
|
while (tmp0_iterator_2.d()) {
|
|
835
645
|
var item = tmp0_iterator_2.e();
|
|
836
646
|
var tmp$ret$14;
|
|
837
647
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
838
|
-
tmp$ret$14 = item.
|
|
839
|
-
|
|
648
|
+
tmp$ret$14 = item.q14();
|
|
649
|
+
tmp0_mapTo.a(tmp$ret$14);
|
|
840
650
|
}
|
|
841
|
-
|
|
842
|
-
tmp$ret$16 = tmp$ret$15;
|
|
843
|
-
var tmp7_let = toSet(tmp$ret$16);
|
|
651
|
+
var tmp4_let = toSet(tmp0_mapTo);
|
|
844
652
|
// Inline function 'kotlin.contracts.contract' call
|
|
845
|
-
var tmp$ret$17;
|
|
846
653
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
847
|
-
tmp
|
|
848
|
-
tmp$ret$18 = tmp$ret$17;
|
|
849
|
-
tmp = tmp$ret$18;
|
|
654
|
+
tmp = listOf(new Enum(name, tmp4_let));
|
|
850
655
|
} else {
|
|
851
|
-
var tmp1_subject = _this__u8e3s4.
|
|
852
|
-
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.q4_1;
|
|
656
|
+
var tmp1_subject = _this__u8e3s4.s1f_1;
|
|
853
657
|
var tmp_4;
|
|
854
|
-
switch (
|
|
658
|
+
switch (tmp1_subject == null ? -1 : tmp1_subject.r4_1) {
|
|
855
659
|
case -1:
|
|
856
660
|
case 5:
|
|
857
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
661
|
+
var tmp2_safe_receiver = _this__u8e3s4.v1f_1;
|
|
858
662
|
var tmp_5;
|
|
859
663
|
if (tmp2_safe_receiver == null) {
|
|
860
664
|
tmp_5 = null;
|
|
861
665
|
} else {
|
|
862
|
-
var tmp$ret$24;
|
|
863
666
|
// Inline function 'kotlin.collections.flatMap' call
|
|
864
|
-
var tmp$ret$23;
|
|
865
667
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
866
|
-
var
|
|
867
|
-
var tmp$ret$19;
|
|
668
|
+
var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
|
|
868
669
|
// Inline function 'kotlin.collections.iterator' call
|
|
869
|
-
|
|
870
|
-
var tmp0_iterator_3 = tmp$ret$19;
|
|
670
|
+
var tmp0_iterator_3 = tmp2_safe_receiver.u().c();
|
|
871
671
|
while (tmp0_iterator_3.d()) {
|
|
872
672
|
var element_2 = tmp0_iterator_3.e();
|
|
873
|
-
var tmp$ret$22;
|
|
874
673
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
875
|
-
var tmp$ret$20;
|
|
876
674
|
// Inline function 'kotlin.collections.component1' call
|
|
877
|
-
|
|
878
|
-
var key_0 = tmp$ret$20;
|
|
879
|
-
var tmp$ret$21;
|
|
675
|
+
var key_0 = element_2.v();
|
|
880
676
|
// Inline function 'kotlin.collections.component2' call
|
|
881
|
-
|
|
882
|
-
var value_0 = tmp$ret$21;
|
|
883
|
-
var tmp0_subject_2 = value_0;
|
|
677
|
+
var value_0 = element_2.w();
|
|
884
678
|
var tmp_6;
|
|
885
|
-
if (
|
|
886
|
-
var tmp1_subject_0 = value_0.
|
|
887
|
-
|
|
888
|
-
tmp_6 = tmp0_0 === 4 ? emptyList() : flatten(value_0, $this, Common_getInstance().n1t([name, key_0]));
|
|
679
|
+
if (value_0 instanceof SchemaObject) {
|
|
680
|
+
var tmp1_subject_0 = value_0.s1f_1;
|
|
681
|
+
tmp_6 = (tmp1_subject_0 == null ? -1 : tmp1_subject_0.r4_1) === 4 ? emptyList() : flatten(value_0, $this, Common_getInstance().f1u([name, key_0]));
|
|
889
682
|
} else {
|
|
890
|
-
if (
|
|
683
|
+
if (value_0 instanceof ReferenceObject) {
|
|
891
684
|
tmp_6 = emptyList();
|
|
892
685
|
} else {
|
|
893
686
|
noWhenBranchMatchedException();
|
|
894
687
|
}
|
|
895
688
|
}
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
addAll(tmp8_flatMapTo, list_2);
|
|
689
|
+
var list_2 = tmp_6;
|
|
690
|
+
addAll(tmp0_flatMapTo_2, list_2);
|
|
899
691
|
}
|
|
900
|
-
|
|
901
|
-
tmp$ret$24 = tmp$ret$23;
|
|
902
|
-
tmp_5 = tmp$ret$24;
|
|
692
|
+
tmp_5 = tmp0_flatMapTo_2;
|
|
903
693
|
}
|
|
904
694
|
|
|
905
695
|
var tmp3_elvis_lhs = tmp_5;
|
|
@@ -908,13 +698,13 @@
|
|
|
908
698
|
tmp_4 = plus(schema, fields);
|
|
909
699
|
break;
|
|
910
700
|
case 4:
|
|
911
|
-
var it = _this__u8e3s4.
|
|
701
|
+
var it = _this__u8e3s4.t1f_1;
|
|
912
702
|
var tmp_7;
|
|
913
703
|
if (it instanceof ReferenceObject) {
|
|
914
704
|
tmp_7 = emptyList();
|
|
915
705
|
} else {
|
|
916
706
|
if (it instanceof SchemaObject) {
|
|
917
|
-
tmp_7 = flatten(it, $this, Common_getInstance().
|
|
707
|
+
tmp_7 = flatten(it, $this, Common_getInstance().f1u([name, 'Array']));
|
|
918
708
|
} else {
|
|
919
709
|
if (it == null) {
|
|
920
710
|
tmp_7 = emptyList();
|
|
@@ -935,12 +725,11 @@
|
|
|
935
725
|
return tmp;
|
|
936
726
|
}
|
|
937
727
|
function flatten_0(_this__u8e3s4, $this, name) {
|
|
938
|
-
var tmp0_subject = _this__u8e3s4;
|
|
939
728
|
var tmp;
|
|
940
|
-
if (
|
|
729
|
+
if (_this__u8e3s4 instanceof SchemaObject) {
|
|
941
730
|
tmp = flatten(_this__u8e3s4, $this, name);
|
|
942
731
|
} else {
|
|
943
|
-
if (
|
|
732
|
+
if (_this__u8e3s4 instanceof ReferenceObject) {
|
|
944
733
|
tmp = emptyList();
|
|
945
734
|
} else {
|
|
946
735
|
noWhenBranchMatchedException();
|
|
@@ -949,17 +738,15 @@
|
|
|
949
738
|
return tmp;
|
|
950
739
|
}
|
|
951
740
|
function toReference(_this__u8e3s4, $this) {
|
|
952
|
-
var tmp$ret$1;
|
|
953
741
|
// Inline function 'kotlin.let' call
|
|
954
742
|
var tmp0_let = resolveSchemaObject(_this__u8e3s4, $this);
|
|
955
743
|
// Inline function 'kotlin.contracts.contract' call
|
|
956
|
-
var tmp$ret$0;
|
|
957
744
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
|
|
958
|
-
var referencingObject = tmp0_let.
|
|
959
|
-
var schema = tmp0_let.
|
|
745
|
+
var referencingObject = tmp0_let.j3();
|
|
746
|
+
var schema = tmp0_let.k3();
|
|
960
747
|
var tmp;
|
|
961
|
-
if (!(schema.
|
|
962
|
-
var additionalProperties = ensureNotNull(schema.
|
|
748
|
+
if (!(schema.w1f_1 == null)) {
|
|
749
|
+
var additionalProperties = ensureNotNull(schema.w1f_1);
|
|
963
750
|
var tmp_0;
|
|
964
751
|
if (additionalProperties instanceof BooleanObject) {
|
|
965
752
|
tmp_0 = new Any(false, true);
|
|
@@ -975,25 +762,24 @@
|
|
|
975
762
|
}
|
|
976
763
|
}
|
|
977
764
|
tmp = tmp_0;
|
|
978
|
-
} else if (!(schema.
|
|
979
|
-
tmp = new Custom(Common_getInstance().
|
|
980
|
-
} else if (isPrimitive(schema.
|
|
981
|
-
tmp = new Primitive(toPrimitive(ensureNotNull(schema.
|
|
765
|
+
} else if (!(schema.r1f_1 == null)) {
|
|
766
|
+
tmp = new Custom(Common_getInstance().f1u([getReference(referencingObject, $this)]), false, false);
|
|
767
|
+
} else if (isPrimitive(schema.s1f_1)) {
|
|
768
|
+
tmp = new Primitive(toPrimitive(ensureNotNull(schema.s1f_1), $this), false, false);
|
|
982
769
|
} else {
|
|
983
|
-
var tmp0_subject = schema.
|
|
984
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
770
|
+
var tmp0_subject = schema.s1f_1;
|
|
985
771
|
var tmp_1;
|
|
986
|
-
if (
|
|
987
|
-
var items = schema.
|
|
772
|
+
if ((tmp0_subject == null ? -1 : tmp0_subject.r4_1) === 4) {
|
|
773
|
+
var items = schema.t1f_1;
|
|
988
774
|
var tmp_2;
|
|
989
775
|
if (items instanceof ReferenceObject) {
|
|
990
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
776
|
+
tmp_2 = new Custom(Common_getInstance().f1u([getReference(items, $this)]), true);
|
|
991
777
|
} else {
|
|
992
778
|
if (items instanceof SchemaObject) {
|
|
993
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
779
|
+
tmp_2 = new Custom(Common_getInstance().f1u([getReference(referencingObject, $this), 'Array']), true);
|
|
994
780
|
} else {
|
|
995
781
|
if (items == null) {
|
|
996
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.
|
|
782
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.q1e_1);
|
|
997
783
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
998
784
|
} else {
|
|
999
785
|
noWhenBranchMatchedException();
|
|
@@ -1002,43 +788,40 @@
|
|
|
1002
788
|
}
|
|
1003
789
|
tmp_1 = tmp_2;
|
|
1004
790
|
} else {
|
|
1005
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
791
|
+
tmp_1 = new Custom(Common_getInstance().f1u([getReference(referencingObject, $this)]), false);
|
|
1006
792
|
}
|
|
1007
793
|
tmp = tmp_1;
|
|
1008
794
|
}
|
|
1009
|
-
|
|
1010
|
-
tmp$ret$1 = tmp$ret$0;
|
|
1011
|
-
return tmp$ret$1;
|
|
795
|
+
return tmp;
|
|
1012
796
|
}
|
|
1013
797
|
function toReference_0(_this__u8e3s4, $this, name) {
|
|
1014
798
|
var tmp;
|
|
1015
|
-
if (!(_this__u8e3s4.
|
|
1016
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
799
|
+
if (!(_this__u8e3s4.r1f_1 == null)) {
|
|
800
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.w1f_1 == null));
|
|
1017
801
|
} else {
|
|
1018
|
-
var type = _this__u8e3s4.
|
|
1019
|
-
var tmp0 = type == null ? -1 : type.q4_1;
|
|
802
|
+
var type = _this__u8e3s4.s1f_1;
|
|
1020
803
|
var tmp_0;
|
|
1021
|
-
switch (
|
|
804
|
+
switch (type == null ? -1 : type.r4_1) {
|
|
1022
805
|
case 0:
|
|
1023
806
|
case 2:
|
|
1024
807
|
case 1:
|
|
1025
808
|
case 3:
|
|
1026
|
-
tmp_0 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.
|
|
809
|
+
tmp_0 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.w1f_1 == null));
|
|
1027
810
|
break;
|
|
1028
811
|
case -1:
|
|
1029
812
|
case 5:
|
|
1030
813
|
var tmp_1;
|
|
1031
|
-
var tmp_2 = _this__u8e3s4.
|
|
814
|
+
var tmp_2 = _this__u8e3s4.w1f_1;
|
|
1032
815
|
if (tmp_2 instanceof BooleanObject) {
|
|
1033
|
-
tmp_1 = new Any(false, !(_this__u8e3s4.
|
|
816
|
+
tmp_1 = new Any(false, !(_this__u8e3s4.w1f_1 == null));
|
|
1034
817
|
} else {
|
|
1035
|
-
tmp_1 = new Custom(name, false, !(_this__u8e3s4.
|
|
818
|
+
tmp_1 = new Custom(name, false, !(_this__u8e3s4.w1f_1 == null));
|
|
1036
819
|
}
|
|
1037
820
|
|
|
1038
821
|
tmp_0 = tmp_1;
|
|
1039
822
|
break;
|
|
1040
823
|
case 4:
|
|
1041
|
-
var it = _this__u8e3s4.
|
|
824
|
+
var it = _this__u8e3s4.t1f_1;
|
|
1042
825
|
var tmp_3;
|
|
1043
826
|
if (it instanceof ReferenceObject) {
|
|
1044
827
|
tmp_3 = toIterable(toReference(it, $this));
|
|
@@ -1068,67 +851,56 @@
|
|
|
1068
851
|
return tmp;
|
|
1069
852
|
}
|
|
1070
853
|
function toOperationList(_this__u8e3s4, $this) {
|
|
1071
|
-
var tmp$ret$2;
|
|
1072
854
|
// Inline function 'kotlin.collections.associateWith' call
|
|
1073
|
-
var tmp0_associateWith =
|
|
1074
|
-
var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(tmp0_associateWith
|
|
1075
|
-
var tmp$ret$1;
|
|
855
|
+
var tmp0_associateWith = get_entries();
|
|
856
|
+
var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(collectionSizeOrDefault(tmp0_associateWith, 10)), 16));
|
|
1076
857
|
// Inline function 'kotlin.collections.associateWithTo' call
|
|
1077
|
-
var
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
while (inductionVariable < last) {
|
|
1081
|
-
var element = indexedObject[inductionVariable];
|
|
1082
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
858
|
+
var tmp0_iterator = tmp0_associateWith.c();
|
|
859
|
+
while (tmp0_iterator.d()) {
|
|
860
|
+
var element = tmp0_iterator.e();
|
|
1083
861
|
var tmp$ret$0;
|
|
1084
862
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toOperationList.<anonymous>' call
|
|
1085
|
-
var tmp0_subject = element;
|
|
1086
|
-
var tmp0 = tmp0_subject.q4_1;
|
|
1087
863
|
var tmp;
|
|
1088
|
-
switch (
|
|
864
|
+
switch (element.r4_1) {
|
|
1089
865
|
case 0:
|
|
1090
|
-
tmp = _this__u8e3s4.
|
|
866
|
+
tmp = _this__u8e3s4.n1c_1;
|
|
1091
867
|
break;
|
|
1092
868
|
case 1:
|
|
1093
|
-
tmp = _this__u8e3s4.
|
|
869
|
+
tmp = _this__u8e3s4.p1c_1;
|
|
1094
870
|
break;
|
|
1095
871
|
case 2:
|
|
1096
|
-
tmp = _this__u8e3s4.
|
|
872
|
+
tmp = _this__u8e3s4.o1c_1;
|
|
1097
873
|
break;
|
|
1098
874
|
case 3:
|
|
1099
|
-
tmp = _this__u8e3s4.
|
|
875
|
+
tmp = _this__u8e3s4.q1c_1;
|
|
1100
876
|
break;
|
|
1101
877
|
case 4:
|
|
1102
|
-
tmp = _this__u8e3s4.
|
|
878
|
+
tmp = _this__u8e3s4.r1c_1;
|
|
1103
879
|
break;
|
|
1104
880
|
case 5:
|
|
1105
|
-
tmp = _this__u8e3s4.
|
|
881
|
+
tmp = _this__u8e3s4.s1c_1;
|
|
1106
882
|
break;
|
|
1107
883
|
case 6:
|
|
1108
|
-
tmp = _this__u8e3s4.
|
|
884
|
+
tmp = _this__u8e3s4.t1c_1;
|
|
1109
885
|
break;
|
|
1110
886
|
case 7:
|
|
1111
|
-
tmp = _this__u8e3s4.
|
|
887
|
+
tmp = _this__u8e3s4.u1c_1;
|
|
1112
888
|
break;
|
|
1113
889
|
default:
|
|
1114
890
|
noWhenBranchMatchedException();
|
|
1115
891
|
break;
|
|
1116
892
|
}
|
|
1117
893
|
tmp$ret$0 = tmp;
|
|
1118
|
-
result.
|
|
894
|
+
result.l3(element, tmp$ret$0);
|
|
1119
895
|
}
|
|
1120
|
-
|
|
1121
|
-
tmp$ret$2 = tmp$ret$1;
|
|
1122
|
-
return filterNotNullValues(tmp$ret$2);
|
|
896
|
+
return filterNotNullValues(result);
|
|
1123
897
|
}
|
|
1124
898
|
function getReference(_this__u8e3s4, $this) {
|
|
1125
|
-
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
899
|
+
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.q1e_1), ['/']).h(2);
|
|
1126
900
|
}
|
|
1127
901
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
1128
|
-
var tmp0_subject = _this__u8e3s4;
|
|
1129
|
-
var tmp0 = tmp0_subject.q4_1;
|
|
1130
902
|
var tmp;
|
|
1131
|
-
switch (
|
|
903
|
+
switch (_this__u8e3s4.r4_1) {
|
|
1132
904
|
case 0:
|
|
1133
905
|
tmp = Type_String_getInstance();
|
|
1134
906
|
break;
|
|
@@ -1147,110 +919,85 @@
|
|
|
1147
919
|
return tmp;
|
|
1148
920
|
}
|
|
1149
921
|
function toField(_this__u8e3s4, $this, name) {
|
|
1150
|
-
var tmp$ret$6;
|
|
1151
922
|
// Inline function 'kotlin.collections.map' call
|
|
1152
|
-
var tmp$ret$0;
|
|
1153
923
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1154
|
-
var
|
|
1155
|
-
var
|
|
1156
|
-
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1157
|
-
var tmp2_map = tmp$ret$0;
|
|
1158
|
-
var tmp$ret$5;
|
|
924
|
+
var tmp0_elvis_lhs = _this__u8e3s4.v1f_1;
|
|
925
|
+
var tmp1_map = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1159
926
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1160
|
-
var
|
|
1161
|
-
var tmp$ret$1;
|
|
927
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.f());
|
|
1162
928
|
// Inline function 'kotlin.collections.iterator' call
|
|
1163
|
-
|
|
1164
|
-
var tmp0_iterator = tmp$ret$1;
|
|
929
|
+
var tmp0_iterator = tmp1_map.u().c();
|
|
1165
930
|
while (tmp0_iterator.d()) {
|
|
1166
931
|
var item = tmp0_iterator.e();
|
|
1167
932
|
var tmp$ret$4;
|
|
1168
933
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1169
|
-
var tmp$ret$2;
|
|
1170
934
|
// Inline function 'kotlin.collections.component1' call
|
|
1171
|
-
|
|
1172
|
-
var key = tmp$ret$2;
|
|
1173
|
-
var tmp$ret$3;
|
|
935
|
+
var key = item.v();
|
|
1174
936
|
// Inline function 'kotlin.collections.component2' call
|
|
1175
|
-
|
|
1176
|
-
var value = tmp$ret$3;
|
|
1177
|
-
var tmp0_subject = value;
|
|
937
|
+
var value = item.w();
|
|
1178
938
|
var tmp;
|
|
1179
|
-
if (
|
|
939
|
+
if (value instanceof SchemaObject) {
|
|
1180
940
|
var tmp_0 = new Identifier(key);
|
|
1181
|
-
var tmp1_subject = value.
|
|
1182
|
-
var
|
|
1183
|
-
var
|
|
1184
|
-
var
|
|
1185
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.i1(key);
|
|
941
|
+
var tmp1_subject = value.s1f_1;
|
|
942
|
+
var tmp_1 = (tmp1_subject == null ? -1 : tmp1_subject.r4_1) === 4 ? toReference_0(value, $this, Common_getInstance().f1u([name, key, 'Array'])) : toReference_0(value, $this, Common_getInstance().f1u([name, key]));
|
|
943
|
+
var tmp2_safe_receiver = _this__u8e3s4.q1f_1;
|
|
944
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.j1(key);
|
|
1186
945
|
tmp = new Field(tmp_0, tmp_1, !(tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs));
|
|
1187
946
|
} else {
|
|
1188
|
-
if (
|
|
947
|
+
if (value instanceof ReferenceObject) {
|
|
1189
948
|
var tmp_2 = new Identifier(key);
|
|
1190
949
|
var tmp_3 = toReference(value, $this);
|
|
1191
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
1192
|
-
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
950
|
+
var tmp4_safe_receiver = _this__u8e3s4.q1f_1;
|
|
951
|
+
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.j1(key);
|
|
1193
952
|
tmp = new Field(tmp_2, tmp_3, !(tmp5_elvis_lhs == null ? false : tmp5_elvis_lhs));
|
|
1194
953
|
} else {
|
|
1195
954
|
noWhenBranchMatchedException();
|
|
1196
955
|
}
|
|
1197
956
|
}
|
|
1198
957
|
tmp$ret$4 = tmp;
|
|
1199
|
-
|
|
958
|
+
tmp0_mapTo.a(tmp$ret$4);
|
|
1200
959
|
}
|
|
1201
|
-
|
|
1202
|
-
tmp$ret$6 = tmp$ret$5;
|
|
1203
|
-
return tmp$ret$6;
|
|
960
|
+
return tmp0_mapTo;
|
|
1204
961
|
}
|
|
1205
962
|
function toField_0(_this__u8e3s4, $this, name) {
|
|
1206
|
-
var tmp$ret$7;
|
|
1207
963
|
// Inline function 'kotlin.let' call
|
|
1208
|
-
var tmp$ret$5;
|
|
1209
964
|
// Inline function 'kotlin.let' call
|
|
1210
965
|
var tmp0_let = resolve_2(_this__u8e3s4, $this);
|
|
1211
966
|
// Inline function 'kotlin.contracts.contract' call
|
|
1212
|
-
var tmp$ret$4;
|
|
1213
967
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1214
968
|
var tmp;
|
|
1215
|
-
if (!(_this__u8e3s4.
|
|
1216
|
-
tmp = new Custom(Common_getInstance().
|
|
969
|
+
if (!(_this__u8e3s4.l1e_1 == null)) {
|
|
970
|
+
tmp = new Custom(Common_getInstance().f1u([name, 'Parameter', tmp0_let.q1d_1]), false);
|
|
1217
971
|
} else {
|
|
1218
|
-
var type = tmp0_let.
|
|
1219
|
-
var tmp0 = type == null ? -1 : type.q4_1;
|
|
972
|
+
var type = tmp0_let.v1d_1;
|
|
1220
973
|
var tmp_0;
|
|
1221
|
-
switch (
|
|
974
|
+
switch (type == null ? -1 : type.r4_1) {
|
|
1222
975
|
case 0:
|
|
1223
976
|
case 1:
|
|
1224
977
|
case 2:
|
|
1225
978
|
case 3:
|
|
1226
|
-
var tmp$ret$1;
|
|
1227
979
|
// Inline function 'kotlin.let' call
|
|
980
|
+
|
|
1228
981
|
var tmp0_let_0 = toPrimitive(type, $this);
|
|
1229
982
|
// Inline function 'kotlin.contracts.contract' call
|
|
1230
|
-
|
|
983
|
+
|
|
1231
984
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>.<anonymous>' call
|
|
1232
|
-
tmp$ret$0 = new Primitive(tmp0_let_0, false);
|
|
1233
|
-
tmp$ret$1 = tmp$ret$0;
|
|
1234
985
|
|
|
1235
|
-
tmp_0 =
|
|
986
|
+
tmp_0 = new Primitive(tmp0_let_0, false);
|
|
1236
987
|
break;
|
|
1237
988
|
case 4:
|
|
1238
|
-
var tmp0_safe_receiver = tmp0_let.
|
|
989
|
+
var tmp0_safe_receiver = tmp0_let.w1d_1;
|
|
1239
990
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve(tmp0_safe_receiver, $this);
|
|
1240
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
991
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s1f_1;
|
|
1241
992
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, $this);
|
|
1242
993
|
var tmp_1;
|
|
1243
994
|
if (tmp3_safe_receiver == null) {
|
|
1244
995
|
tmp_1 = null;
|
|
1245
996
|
} else {
|
|
1246
|
-
var tmp$ret$3;
|
|
1247
997
|
// Inline function 'kotlin.let' call
|
|
1248
998
|
// Inline function 'kotlin.contracts.contract' call
|
|
1249
|
-
var tmp$ret$2;
|
|
1250
999
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>.<anonymous>' call
|
|
1251
|
-
|
|
1252
|
-
tmp$ret$3 = tmp$ret$2;
|
|
1253
|
-
tmp_1 = tmp$ret$3;
|
|
1000
|
+
tmp_1 = new Primitive(tmp3_safe_receiver, true);
|
|
1254
1001
|
}
|
|
1255
1002
|
|
|
1256
1003
|
var tmp4_elvis_lhs = tmp_1;
|
|
@@ -1275,57 +1022,43 @@
|
|
|
1275
1022
|
}
|
|
1276
1023
|
tmp = tmp_0;
|
|
1277
1024
|
}
|
|
1278
|
-
|
|
1279
|
-
tmp$ret$5 = tmp$ret$4;
|
|
1280
|
-
var tmp1_let = tmp$ret$5;
|
|
1025
|
+
var tmp1_let = tmp;
|
|
1281
1026
|
// Inline function 'kotlin.contracts.contract' call
|
|
1282
|
-
var tmp$ret$6;
|
|
1283
1027
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1284
|
-
var tmp_3 = new Identifier(_this__u8e3s4.
|
|
1285
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1286
|
-
|
|
1287
|
-
tmp$ret$7 = tmp$ret$6;
|
|
1288
|
-
return tmp$ret$7;
|
|
1028
|
+
var tmp_3 = new Identifier(_this__u8e3s4.q1d_1);
|
|
1029
|
+
var tmp0_elvis_lhs = _this__u8e3s4.t1d_1;
|
|
1030
|
+
return new Field(tmp_3, tmp1_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
1289
1031
|
}
|
|
1290
1032
|
function toSegments(_this__u8e3s4, $this, parameters) {
|
|
1291
|
-
var tmp$ret$12;
|
|
1292
1033
|
// Inline function 'kotlin.collections.map' call
|
|
1293
|
-
var
|
|
1294
|
-
var tmp$ret$11;
|
|
1034
|
+
var tmp0_map = drop(split(_Path___get_value__impl__thmflc(_this__u8e3s4), ['/']), 1);
|
|
1295
1035
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1296
|
-
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(
|
|
1297
|
-
var tmp0_iterator =
|
|
1036
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
1037
|
+
var tmp0_iterator = tmp0_map.c();
|
|
1298
1038
|
while (tmp0_iterator.d()) {
|
|
1299
1039
|
var item = tmp0_iterator.e();
|
|
1300
1040
|
var tmp$ret$10;
|
|
1301
1041
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>' call
|
|
1302
1042
|
var tmp;
|
|
1303
1043
|
var tmp_0;
|
|
1304
|
-
var tmp$ret$0;
|
|
1305
1044
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
tmp_0 = equals(new Char(charSequenceGet(item, 0)), new Char(_Char___init__impl__6a9atx(123)));
|
|
1045
|
+
if (charSequenceLength(item) > 0) {
|
|
1046
|
+
tmp_0 = charSequenceGet(item, 0) === _Char___init__impl__6a9atx(123);
|
|
1309
1047
|
} else {
|
|
1310
1048
|
tmp_0 = false;
|
|
1311
1049
|
}
|
|
1312
1050
|
if (tmp_0) {
|
|
1313
|
-
tmp =
|
|
1051
|
+
tmp = charSequenceGet(item, item.length - 1 | 0) === _Char___init__impl__6a9atx(125);
|
|
1314
1052
|
} else {
|
|
1315
1053
|
tmp = false;
|
|
1316
1054
|
}
|
|
1317
1055
|
var isParam = tmp;
|
|
1318
1056
|
var tmp_1;
|
|
1319
1057
|
if (isParam) {
|
|
1320
|
-
var tmp$ret$2;
|
|
1321
1058
|
// Inline function 'kotlin.text.substring' call
|
|
1322
1059
|
var tmp0_substring = item.length - 1 | 0;
|
|
1323
|
-
var tmp$ret$1;
|
|
1324
1060
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1325
|
-
|
|
1326
|
-
tmp$ret$2 = tmp$ret$1.substring(1, tmp0_substring);
|
|
1327
|
-
var param = tmp$ret$2;
|
|
1328
|
-
var tmp$ret$5;
|
|
1061
|
+
var param = item.substring(1, tmp0_substring);
|
|
1329
1062
|
// Inline function 'kotlin.collections.find' call
|
|
1330
1063
|
var tmp$ret$4;
|
|
1331
1064
|
$l$block: {
|
|
@@ -1333,45 +1066,34 @@
|
|
|
1333
1066
|
var tmp0_iterator_0 = parameters.c();
|
|
1334
1067
|
while (tmp0_iterator_0.d()) {
|
|
1335
1068
|
var element = tmp0_iterator_0.e();
|
|
1336
|
-
var tmp$ret$3;
|
|
1337
1069
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1338
|
-
|
|
1339
|
-
if (tmp$ret$3) {
|
|
1070
|
+
if (element.q1d_1 === param) {
|
|
1340
1071
|
tmp$ret$4 = element;
|
|
1341
1072
|
break $l$block;
|
|
1342
1073
|
}
|
|
1343
1074
|
}
|
|
1344
1075
|
tmp$ret$4 = null;
|
|
1345
1076
|
}
|
|
1346
|
-
|
|
1347
|
-
var tmp0_safe_receiver = tmp$ret$5;
|
|
1077
|
+
var tmp0_safe_receiver = tmp$ret$4;
|
|
1348
1078
|
var tmp_2;
|
|
1349
1079
|
if (tmp0_safe_receiver == null) {
|
|
1350
1080
|
tmp_2 = null;
|
|
1351
1081
|
} else {
|
|
1352
|
-
var tmp$ret$7;
|
|
1353
1082
|
// Inline function 'kotlin.let' call
|
|
1354
1083
|
// Inline function 'kotlin.contracts.contract' call
|
|
1355
|
-
var tmp$ret$6;
|
|
1356
1084
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1357
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver.
|
|
1358
|
-
|
|
1359
|
-
tmp$ret$7 = tmp$ret$6;
|
|
1360
|
-
tmp_2 = tmp$ret$7;
|
|
1085
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver.v1d_1;
|
|
1086
|
+
tmp_2 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, $this);
|
|
1361
1087
|
}
|
|
1362
1088
|
var tmp1_safe_receiver = tmp_2;
|
|
1363
1089
|
var tmp_3;
|
|
1364
1090
|
if (tmp1_safe_receiver == null) {
|
|
1365
1091
|
tmp_3 = null;
|
|
1366
1092
|
} else {
|
|
1367
|
-
var tmp$ret$9;
|
|
1368
1093
|
// Inline function 'kotlin.let' call
|
|
1369
1094
|
// Inline function 'kotlin.contracts.contract' call
|
|
1370
|
-
var tmp$ret$8;
|
|
1371
1095
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1372
|
-
|
|
1373
|
-
tmp$ret$9 = tmp$ret$8;
|
|
1374
|
-
tmp_3 = tmp$ret$9;
|
|
1096
|
+
tmp_3 = new Param(new Identifier(param), new Primitive(tmp1_safe_receiver, false));
|
|
1375
1097
|
}
|
|
1376
1098
|
var tmp2_elvis_lhs = tmp_3;
|
|
1377
1099
|
var tmp_4;
|
|
@@ -1388,59 +1110,47 @@
|
|
|
1388
1110
|
tmp$ret$10 = tmp_1;
|
|
1389
1111
|
tmp0_mapTo.a(tmp$ret$10);
|
|
1390
1112
|
}
|
|
1391
|
-
|
|
1392
|
-
tmp$ret$12 = tmp$ret$11;
|
|
1393
|
-
return tmp$ret$12;
|
|
1113
|
+
return tmp0_mapTo;
|
|
1394
1114
|
}
|
|
1395
1115
|
function toName(_this__u8e3s4, $this, segments, method) {
|
|
1396
|
-
var
|
|
1397
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m1c_1;
|
|
1116
|
+
var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.e1d_1;
|
|
1398
1117
|
var tmp;
|
|
1399
1118
|
if (tmp1_safe_receiver == null) {
|
|
1400
1119
|
tmp = null;
|
|
1401
1120
|
} else {
|
|
1402
|
-
var tmp$ret$1;
|
|
1403
1121
|
// Inline function 'kotlin.let' call
|
|
1404
1122
|
// Inline function 'kotlin.contracts.contract' call
|
|
1405
|
-
var tmp$ret$0;
|
|
1406
1123
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1407
|
-
tmp
|
|
1408
|
-
tmp$ret$1 = tmp$ret$0;
|
|
1409
|
-
tmp = tmp$ret$1;
|
|
1124
|
+
tmp = Common_getInstance().f1u([tmp1_safe_receiver]);
|
|
1410
1125
|
}
|
|
1411
1126
|
var tmp2_elvis_lhs = tmp;
|
|
1412
1127
|
var tmp_0;
|
|
1413
1128
|
if (tmp2_elvis_lhs == null) {
|
|
1414
|
-
var tmp$ret$3;
|
|
1415
1129
|
// Inline function 'kotlin.let' call
|
|
1416
|
-
var tmp0_let = joinToString(segments, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda);
|
|
1417
1130
|
// Inline function 'kotlin.contracts.contract' call
|
|
1418
|
-
var tmp$ret$2;
|
|
1419
1131
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1420
|
-
|
|
1421
|
-
tmp$ret$3 = tmp$ret$2;
|
|
1422
|
-
tmp_0 = tmp$ret$3;
|
|
1132
|
+
tmp_0 = joinToString(segments, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda) + method.q4_1;
|
|
1423
1133
|
} else {
|
|
1424
1134
|
tmp_0 = tmp2_elvis_lhs;
|
|
1425
1135
|
}
|
|
1426
1136
|
return tmp_0;
|
|
1427
1137
|
}
|
|
1428
1138
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
1429
|
-
this.
|
|
1430
|
-
this.
|
|
1431
|
-
this.
|
|
1432
|
-
this.
|
|
1433
|
-
this.
|
|
1139
|
+
this.j1u_1 = path;
|
|
1140
|
+
this.k1u_1 = pathItem;
|
|
1141
|
+
this.l1u_1 = method;
|
|
1142
|
+
this.m1u_1 = operation;
|
|
1143
|
+
this.n1u_1 = type;
|
|
1434
1144
|
}
|
|
1435
1145
|
protoOf(FlattenRequest).toString = function () {
|
|
1436
|
-
return 'FlattenRequest(path=' + new Path(this.
|
|
1146
|
+
return 'FlattenRequest(path=' + new Path(this.j1u_1) + ', pathItem=' + this.k1u_1 + ', method=' + this.l1u_1 + ', operation=' + this.m1u_1 + ', type=' + this.n1u_1 + ')';
|
|
1437
1147
|
};
|
|
1438
1148
|
protoOf(FlattenRequest).hashCode = function () {
|
|
1439
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1440
|
-
result = imul(result, 31) + this.
|
|
1441
|
-
result = imul(result, 31) + this.
|
|
1442
|
-
result = imul(result, 31) + this.
|
|
1443
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1149
|
+
var result = Path__hashCode_impl_go73kd(this.j1u_1);
|
|
1150
|
+
result = imul(result, 31) + this.k1u_1.hashCode() | 0;
|
|
1151
|
+
result = imul(result, 31) + this.l1u_1.hashCode() | 0;
|
|
1152
|
+
result = imul(result, 31) + this.m1u_1.hashCode() | 0;
|
|
1153
|
+
result = imul(result, 31) + getStringHashCode(this.n1u_1) | 0;
|
|
1444
1154
|
return result;
|
|
1445
1155
|
};
|
|
1446
1156
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -1449,136 +1159,98 @@
|
|
|
1449
1159
|
if (!(other instanceof FlattenRequest))
|
|
1450
1160
|
return false;
|
|
1451
1161
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
1452
|
-
if (!(this.
|
|
1162
|
+
if (!(this.j1u_1 === tmp0_other_with_cast.j1u_1))
|
|
1453
1163
|
return false;
|
|
1454
|
-
if (!this.
|
|
1164
|
+
if (!this.k1u_1.equals(tmp0_other_with_cast.k1u_1))
|
|
1455
1165
|
return false;
|
|
1456
|
-
if (!this.
|
|
1166
|
+
if (!this.l1u_1.equals(tmp0_other_with_cast.l1u_1))
|
|
1457
1167
|
return false;
|
|
1458
|
-
if (!this.
|
|
1168
|
+
if (!this.m1u_1.equals(tmp0_other_with_cast.m1u_1))
|
|
1459
1169
|
return false;
|
|
1460
|
-
if (!(this.
|
|
1170
|
+
if (!(this.n1u_1 === tmp0_other_with_cast.n1u_1))
|
|
1461
1171
|
return false;
|
|
1462
1172
|
return true;
|
|
1463
1173
|
};
|
|
1464
1174
|
function flatMapRequests(_this__u8e3s4, $this, f) {
|
|
1465
|
-
var tmp$ret$18;
|
|
1466
1175
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1467
|
-
var tmp$ret$15;
|
|
1468
1176
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1469
|
-
var
|
|
1470
|
-
var tmp$ret$14;
|
|
1177
|
+
var tmp0_flatMap = _this__u8e3s4.w1b_1;
|
|
1471
1178
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1472
1179
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1473
|
-
var tmp$ret$0;
|
|
1474
1180
|
// Inline function 'kotlin.collections.iterator' call
|
|
1475
|
-
|
|
1476
|
-
var tmp0_iterator = tmp$ret$0;
|
|
1181
|
+
var tmp0_iterator = tmp0_flatMap.u().c();
|
|
1477
1182
|
while (tmp0_iterator.d()) {
|
|
1478
1183
|
var element = tmp0_iterator.e();
|
|
1479
|
-
var tmp$ret$13;
|
|
1480
1184
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
1481
|
-
var tmp$ret$1;
|
|
1482
1185
|
// Inline function 'kotlin.collections.component1' call
|
|
1483
|
-
|
|
1484
|
-
var path = tmp$ret$1;
|
|
1485
|
-
var tmp$ret$2;
|
|
1186
|
+
var path = element.v().h1c_1;
|
|
1486
1187
|
// Inline function 'kotlin.collections.component2' call
|
|
1487
|
-
|
|
1488
|
-
var pathItem = tmp$ret$2;
|
|
1489
|
-
var tmp$ret$12;
|
|
1188
|
+
var pathItem = element.w();
|
|
1490
1189
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1491
|
-
var
|
|
1492
|
-
var tmp$ret$11;
|
|
1190
|
+
var tmp0_flatMap_0 = toOperationList(pathItem, $this);
|
|
1493
1191
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1494
1192
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
1495
|
-
var tmp$ret$3;
|
|
1496
1193
|
// Inline function 'kotlin.collections.iterator' call
|
|
1497
|
-
|
|
1498
|
-
var tmp0_iterator_0 = tmp$ret$3;
|
|
1194
|
+
var tmp0_iterator_0 = tmp0_flatMap_0.u().c();
|
|
1499
1195
|
while (tmp0_iterator_0.d()) {
|
|
1500
1196
|
var element_0 = tmp0_iterator_0.e();
|
|
1501
|
-
var tmp$ret$10;
|
|
1502
1197
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>.<anonymous>' call
|
|
1503
|
-
var tmp$ret$4;
|
|
1504
1198
|
// Inline function 'kotlin.collections.component1' call
|
|
1505
|
-
|
|
1506
|
-
var method = tmp$ret$4;
|
|
1507
|
-
var tmp$ret$5;
|
|
1199
|
+
var method = element_0.v();
|
|
1508
1200
|
// Inline function 'kotlin.collections.component2' call
|
|
1509
|
-
|
|
1510
|
-
var operation = tmp$ret$5;
|
|
1511
|
-
var tmp$ret$9;
|
|
1201
|
+
var operation = element_0.w();
|
|
1512
1202
|
// Inline function 'kotlin.collections.map' call
|
|
1513
|
-
var tmp$ret$6;
|
|
1514
1203
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1515
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1516
|
-
var
|
|
1517
|
-
var
|
|
1518
|
-
tmp$ret$6 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1519
|
-
var tmp2_map = tmp$ret$6;
|
|
1520
|
-
var tmp$ret$8;
|
|
1204
|
+
var tmp0_elvis_lhs = _this__u8e3s4.u1b_1;
|
|
1205
|
+
var tmp0_elvis_lhs_0 = tmp0_elvis_lhs == null ? operation.f1d_1 : tmp0_elvis_lhs;
|
|
1206
|
+
var tmp1_map = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1521
1207
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1522
|
-
var
|
|
1523
|
-
var tmp0_iterator_1 =
|
|
1208
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
1209
|
+
var tmp0_iterator_1 = tmp1_map.c();
|
|
1524
1210
|
while (tmp0_iterator_1.d()) {
|
|
1525
1211
|
var item = tmp0_iterator_1.e();
|
|
1526
1212
|
var tmp$ret$7;
|
|
1527
1213
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>.<anonymous>.<anonymous>' call
|
|
1528
1214
|
tmp$ret$7 = new FlattenRequest(path, pathItem, method, operation, item);
|
|
1529
|
-
|
|
1215
|
+
tmp0_mapTo.a(tmp$ret$7);
|
|
1530
1216
|
}
|
|
1531
|
-
|
|
1532
|
-
tmp$ret$9 = tmp$ret$8;
|
|
1533
|
-
tmp$ret$10 = tmp$ret$9;
|
|
1534
|
-
var list = tmp$ret$10;
|
|
1217
|
+
var list = tmp0_mapTo;
|
|
1535
1218
|
addAll(tmp0_flatMapTo_0, list);
|
|
1536
1219
|
}
|
|
1537
|
-
|
|
1538
|
-
tmp$ret$12 = tmp$ret$11;
|
|
1539
|
-
tmp$ret$13 = tmp$ret$12;
|
|
1540
|
-
var list_0 = tmp$ret$13;
|
|
1220
|
+
var list_0 = tmp0_flatMapTo_0;
|
|
1541
1221
|
addAll(tmp0_flatMapTo, list_0);
|
|
1542
1222
|
}
|
|
1543
|
-
tmp$ret$14 = tmp0_flatMapTo;
|
|
1544
|
-
tmp$ret$15 = tmp$ret$14;
|
|
1545
|
-
var tmp3_flatMap = tmp$ret$15;
|
|
1546
|
-
var tmp$ret$17;
|
|
1547
1223
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1548
|
-
var
|
|
1549
|
-
var tmp0_iterator_2 =
|
|
1224
|
+
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
1225
|
+
var tmp0_iterator_2 = tmp0_flatMapTo.c();
|
|
1550
1226
|
while (tmp0_iterator_2.d()) {
|
|
1551
1227
|
var element_1 = tmp0_iterator_2.e();
|
|
1552
|
-
var tmp$ret$16;
|
|
1553
1228
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
addAll(tmp2_flatMapTo, list_1);
|
|
1229
|
+
var list_1 = f(element_1);
|
|
1230
|
+
addAll(tmp0_flatMapTo_1, list_1);
|
|
1557
1231
|
}
|
|
1558
|
-
|
|
1559
|
-
tmp$ret$18 = tmp$ret$17;
|
|
1560
|
-
return tmp$ret$18;
|
|
1232
|
+
return tmp0_flatMapTo_1;
|
|
1561
1233
|
}
|
|
1562
1234
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
1563
|
-
this.
|
|
1564
|
-
this.
|
|
1565
|
-
this.
|
|
1566
|
-
this.
|
|
1567
|
-
this.
|
|
1568
|
-
this.
|
|
1569
|
-
this.
|
|
1235
|
+
this.o1u_1 = path;
|
|
1236
|
+
this.p1u_1 = pathItem;
|
|
1237
|
+
this.q1u_1 = method;
|
|
1238
|
+
this.r1u_1 = operation;
|
|
1239
|
+
this.s1u_1 = statusCode;
|
|
1240
|
+
this.t1u_1 = response;
|
|
1241
|
+
this.u1u_1 = type;
|
|
1570
1242
|
}
|
|
1571
1243
|
protoOf(FlattenResponse).toString = function () {
|
|
1572
|
-
return 'FlattenResponse(path=' + new Path(this.
|
|
1244
|
+
return 'FlattenResponse(path=' + new Path(this.o1u_1) + ', pathItem=' + this.p1u_1 + ', method=' + this.q1u_1 + ', operation=' + this.r1u_1 + ', statusCode=' + new StatusCode(this.s1u_1) + ', response=' + this.t1u_1 + ', type=' + this.u1u_1 + ')';
|
|
1573
1245
|
};
|
|
1574
1246
|
protoOf(FlattenResponse).hashCode = function () {
|
|
1575
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1576
|
-
result = imul(result, 31) + this.
|
|
1577
|
-
result = imul(result, 31) + this.
|
|
1578
|
-
result = imul(result, 31) + this.
|
|
1579
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
1580
|
-
result = imul(result, 31) + hashCode(this.
|
|
1581
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1247
|
+
var result = Path__hashCode_impl_go73kd(this.o1u_1);
|
|
1248
|
+
result = imul(result, 31) + this.p1u_1.hashCode() | 0;
|
|
1249
|
+
result = imul(result, 31) + this.q1u_1.hashCode() | 0;
|
|
1250
|
+
result = imul(result, 31) + this.r1u_1.hashCode() | 0;
|
|
1251
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.s1u_1) | 0;
|
|
1252
|
+
result = imul(result, 31) + hashCode(this.t1u_1) | 0;
|
|
1253
|
+
result = imul(result, 31) + getStringHashCode(this.u1u_1) | 0;
|
|
1582
1254
|
return result;
|
|
1583
1255
|
};
|
|
1584
1256
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -1587,158 +1259,105 @@
|
|
|
1587
1259
|
if (!(other instanceof FlattenResponse))
|
|
1588
1260
|
return false;
|
|
1589
1261
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
1590
|
-
if (!(this.
|
|
1262
|
+
if (!(this.o1u_1 === tmp0_other_with_cast.o1u_1))
|
|
1591
1263
|
return false;
|
|
1592
|
-
if (!this.
|
|
1264
|
+
if (!this.p1u_1.equals(tmp0_other_with_cast.p1u_1))
|
|
1593
1265
|
return false;
|
|
1594
|
-
if (!this.
|
|
1266
|
+
if (!this.q1u_1.equals(tmp0_other_with_cast.q1u_1))
|
|
1595
1267
|
return false;
|
|
1596
|
-
if (!this.
|
|
1268
|
+
if (!this.r1u_1.equals(tmp0_other_with_cast.r1u_1))
|
|
1597
1269
|
return false;
|
|
1598
|
-
if (!(this.
|
|
1270
|
+
if (!(this.s1u_1 === tmp0_other_with_cast.s1u_1))
|
|
1599
1271
|
return false;
|
|
1600
|
-
if (!equals(this.
|
|
1272
|
+
if (!equals(this.t1u_1, tmp0_other_with_cast.t1u_1))
|
|
1601
1273
|
return false;
|
|
1602
|
-
if (!(this.
|
|
1274
|
+
if (!(this.u1u_1 === tmp0_other_with_cast.u1u_1))
|
|
1603
1275
|
return false;
|
|
1604
1276
|
return true;
|
|
1605
1277
|
};
|
|
1606
1278
|
function flatMapResponses(_this__u8e3s4, $this, f) {
|
|
1607
|
-
var tmp$ret$25;
|
|
1608
1279
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1609
|
-
var tmp$ret$22;
|
|
1610
1280
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1611
|
-
var
|
|
1612
|
-
var tmp$ret$21;
|
|
1281
|
+
var tmp0_flatMap = _this__u8e3s4.w1b_1;
|
|
1613
1282
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1614
1283
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1615
|
-
var tmp$ret$0;
|
|
1616
1284
|
// Inline function 'kotlin.collections.iterator' call
|
|
1617
|
-
|
|
1618
|
-
var tmp0_iterator = tmp$ret$0;
|
|
1285
|
+
var tmp0_iterator = tmp0_flatMap.u().c();
|
|
1619
1286
|
while (tmp0_iterator.d()) {
|
|
1620
1287
|
var element = tmp0_iterator.e();
|
|
1621
|
-
var tmp$ret$20;
|
|
1622
1288
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
1623
|
-
var tmp$ret$1;
|
|
1624
1289
|
// Inline function 'kotlin.collections.component1' call
|
|
1625
|
-
|
|
1626
|
-
var path = tmp$ret$1;
|
|
1627
|
-
var tmp$ret$2;
|
|
1290
|
+
var path = element.v().h1c_1;
|
|
1628
1291
|
// Inline function 'kotlin.collections.component2' call
|
|
1629
|
-
|
|
1630
|
-
var pathItem = tmp$ret$2;
|
|
1631
|
-
var tmp$ret$19;
|
|
1292
|
+
var pathItem = element.w();
|
|
1632
1293
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1633
|
-
var
|
|
1634
|
-
var tmp$ret$18;
|
|
1294
|
+
var tmp0_flatMap_0 = toOperationList(pathItem, $this);
|
|
1635
1295
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1636
1296
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
1637
|
-
var tmp$ret$3;
|
|
1638
1297
|
// Inline function 'kotlin.collections.iterator' call
|
|
1639
|
-
|
|
1640
|
-
var tmp0_iterator_0 = tmp$ret$3;
|
|
1298
|
+
var tmp0_iterator_0 = tmp0_flatMap_0.u().c();
|
|
1641
1299
|
while (tmp0_iterator_0.d()) {
|
|
1642
1300
|
var element_0 = tmp0_iterator_0.e();
|
|
1643
|
-
var tmp$ret$17;
|
|
1644
1301
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>' call
|
|
1645
|
-
var tmp$ret$4;
|
|
1646
1302
|
// Inline function 'kotlin.collections.component1' call
|
|
1647
|
-
|
|
1648
|
-
var method = tmp$ret$4;
|
|
1649
|
-
var tmp$ret$5;
|
|
1303
|
+
var method = element_0.v();
|
|
1650
1304
|
// Inline function 'kotlin.collections.component2' call
|
|
1651
|
-
|
|
1652
|
-
var operation = tmp$ret$5;
|
|
1653
|
-
var tmp$ret$16;
|
|
1305
|
+
var operation = element_0.w();
|
|
1654
1306
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1655
|
-
var tmp$ret$6;
|
|
1656
1307
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1657
|
-
var
|
|
1658
|
-
var
|
|
1659
|
-
tmp$ret$6 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1660
|
-
var tmp2_flatMap = tmp$ret$6;
|
|
1661
|
-
var tmp$ret$15;
|
|
1308
|
+
var tmp0_elvis_lhs = operation.i1d_1;
|
|
1309
|
+
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1662
1310
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1663
|
-
var
|
|
1664
|
-
var tmp$ret$7;
|
|
1311
|
+
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
1665
1312
|
// Inline function 'kotlin.collections.iterator' call
|
|
1666
|
-
|
|
1667
|
-
var tmp0_iterator_1 = tmp$ret$7;
|
|
1313
|
+
var tmp0_iterator_1 = tmp1_flatMap.u().c();
|
|
1668
1314
|
while (tmp0_iterator_1.d()) {
|
|
1669
1315
|
var element_1 = tmp0_iterator_1.e();
|
|
1670
|
-
var tmp$ret$14;
|
|
1671
1316
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
1672
|
-
var tmp$ret$8;
|
|
1673
1317
|
// Inline function 'kotlin.collections.component1' call
|
|
1674
|
-
|
|
1675
|
-
var statusCode = tmp$ret$8;
|
|
1676
|
-
var tmp$ret$9;
|
|
1318
|
+
var statusCode = element_1.v().a1g_1;
|
|
1677
1319
|
// Inline function 'kotlin.collections.component2' call
|
|
1678
|
-
|
|
1679
|
-
var response = tmp$ret$9;
|
|
1680
|
-
var tmp$ret$13;
|
|
1320
|
+
var response = element_1.w();
|
|
1681
1321
|
// Inline function 'kotlin.collections.map' call
|
|
1682
|
-
var tmp$ret$10;
|
|
1683
1322
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1684
|
-
var tmp0_elvis_lhs_0 = _this__u8e3s4.
|
|
1685
|
-
var
|
|
1686
|
-
var
|
|
1687
|
-
tmp$ret$10 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1688
|
-
var tmp2_map = tmp$ret$10;
|
|
1689
|
-
var tmp$ret$12;
|
|
1323
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.v1b_1;
|
|
1324
|
+
var tmp0_elvis_lhs_1 = tmp0_elvis_lhs_0 == null ? operation.g1d_1 : tmp0_elvis_lhs_0;
|
|
1325
|
+
var tmp1_map = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1690
1326
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1691
|
-
var
|
|
1692
|
-
var tmp0_iterator_2 =
|
|
1327
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
1328
|
+
var tmp0_iterator_2 = tmp1_map.c();
|
|
1693
1329
|
while (tmp0_iterator_2.d()) {
|
|
1694
1330
|
var item = tmp0_iterator_2.e();
|
|
1695
1331
|
var tmp$ret$11;
|
|
1696
1332
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1697
1333
|
tmp$ret$11 = new FlattenResponse(path, pathItem, method, operation, statusCode, response, item);
|
|
1698
|
-
|
|
1334
|
+
tmp0_mapTo.a(tmp$ret$11);
|
|
1699
1335
|
}
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
tmp$ret$14 = tmp$ret$13;
|
|
1703
|
-
var list = tmp$ret$14;
|
|
1704
|
-
addAll(tmp1_flatMapTo, list);
|
|
1336
|
+
var list = tmp0_mapTo;
|
|
1337
|
+
addAll(tmp0_flatMapTo_1, list);
|
|
1705
1338
|
}
|
|
1706
|
-
|
|
1707
|
-
tmp$ret$16 = tmp$ret$15;
|
|
1708
|
-
tmp$ret$17 = tmp$ret$16;
|
|
1709
|
-
var list_0 = tmp$ret$17;
|
|
1339
|
+
var list_0 = tmp0_flatMapTo_1;
|
|
1710
1340
|
addAll(tmp0_flatMapTo_0, list_0);
|
|
1711
1341
|
}
|
|
1712
|
-
|
|
1713
|
-
tmp$ret$19 = tmp$ret$18;
|
|
1714
|
-
tmp$ret$20 = tmp$ret$19;
|
|
1715
|
-
var list_1 = tmp$ret$20;
|
|
1342
|
+
var list_1 = tmp0_flatMapTo_0;
|
|
1716
1343
|
addAll(tmp0_flatMapTo, list_1);
|
|
1717
1344
|
}
|
|
1718
|
-
tmp$ret$21 = tmp0_flatMapTo;
|
|
1719
|
-
tmp$ret$22 = tmp$ret$21;
|
|
1720
|
-
var tmp3_flatMap = tmp$ret$22;
|
|
1721
|
-
var tmp$ret$24;
|
|
1722
1345
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1723
|
-
var
|
|
1724
|
-
var tmp0_iterator_3 =
|
|
1346
|
+
var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
|
|
1347
|
+
var tmp0_iterator_3 = tmp0_flatMapTo.c();
|
|
1725
1348
|
while (tmp0_iterator_3.d()) {
|
|
1726
1349
|
var element_2 = tmp0_iterator_3.e();
|
|
1727
|
-
var tmp$ret$23;
|
|
1728
1350
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
addAll(tmp2_flatMapTo, list_2);
|
|
1351
|
+
var list_2 = f(element_2);
|
|
1352
|
+
addAll(tmp0_flatMapTo_2, list_2);
|
|
1732
1353
|
}
|
|
1733
|
-
|
|
1734
|
-
tmp$ret$25 = tmp$ret$24;
|
|
1735
|
-
return tmp$ret$25;
|
|
1354
|
+
return tmp0_flatMapTo_2;
|
|
1736
1355
|
}
|
|
1737
1356
|
function OpenApiParser$parseRequestBody$lambda(this$0) {
|
|
1738
1357
|
return function (req) {
|
|
1739
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1740
|
-
var segments = toSegments(req.
|
|
1741
|
-
var name = toName(req.
|
|
1358
|
+
var parameters = plus(resolveParameters_0(req.k1u_1, this$0), resolveParameters(req.m1u_1, this$0));
|
|
1359
|
+
var segments = toSegments(req.j1u_1, this$0, parameters);
|
|
1360
|
+
var name = toName(req.m1u_1, this$0, segments, req.l1u_1);
|
|
1742
1361
|
var tmp$ret$5;
|
|
1743
1362
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1744
1363
|
var tmp$ret$4;
|
|
@@ -1750,20 +1369,20 @@
|
|
|
1750
1369
|
var tmp$ret$3;
|
|
1751
1370
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1752
1371
|
var tmp;
|
|
1753
|
-
if (!(element.
|
|
1754
|
-
var tmp_0 = Common_getInstance().
|
|
1372
|
+
if (!(element.l1e_1 == null)) {
|
|
1373
|
+
var tmp_0 = Common_getInstance().f1u([name, 'Parameter', element.q1d_1]);
|
|
1755
1374
|
var tmp$ret$2;
|
|
1756
1375
|
// Inline function 'kotlin.collections.map' call
|
|
1757
|
-
var
|
|
1376
|
+
var tmp0_map = ensureNotNull(element.l1e_1);
|
|
1758
1377
|
var tmp$ret$1;
|
|
1759
1378
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1760
|
-
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(
|
|
1761
|
-
var tmp0_iterator_0 =
|
|
1379
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
1380
|
+
var tmp0_iterator_0 = tmp0_map.c();
|
|
1762
1381
|
while (tmp0_iterator_0.d()) {
|
|
1763
1382
|
var item = tmp0_iterator_0.e();
|
|
1764
1383
|
var tmp$ret$0;
|
|
1765
1384
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
1766
|
-
tmp$ret$0 = item.
|
|
1385
|
+
tmp$ret$0 = item.q14();
|
|
1767
1386
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1768
1387
|
}
|
|
1769
1388
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -1779,7 +1398,7 @@
|
|
|
1779
1398
|
tmp$ret$4 = tmp0_flatMapTo;
|
|
1780
1399
|
tmp$ret$5 = tmp$ret$4;
|
|
1781
1400
|
var enums = tmp$ret$5;
|
|
1782
|
-
var tmp0_safe_receiver = req.
|
|
1401
|
+
var tmp0_safe_receiver = req.m1u_1.h1d_1;
|
|
1783
1402
|
var tmp_1;
|
|
1784
1403
|
if (tmp0_safe_receiver == null) {
|
|
1785
1404
|
tmp_1 = null;
|
|
@@ -1788,16 +1407,16 @@
|
|
|
1788
1407
|
// Inline function 'kotlin.collections.map' call
|
|
1789
1408
|
var tmp$ret$7;
|
|
1790
1409
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1791
|
-
var
|
|
1410
|
+
var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_safe_receiver, 10));
|
|
1792
1411
|
var tmp0_iterator_1 = tmp0_safe_receiver.c();
|
|
1793
1412
|
while (tmp0_iterator_1.d()) {
|
|
1794
1413
|
var item_0 = tmp0_iterator_1.e();
|
|
1795
1414
|
var tmp$ret$6;
|
|
1796
1415
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1797
1416
|
tmp$ret$6 = resolve_2(item_0, this$0);
|
|
1798
|
-
|
|
1417
|
+
tmp0_mapTo_0.a(tmp$ret$6);
|
|
1799
1418
|
}
|
|
1800
|
-
tmp$ret$7 =
|
|
1419
|
+
tmp$ret$7 = tmp0_mapTo_0;
|
|
1801
1420
|
tmp$ret$8 = tmp$ret$7;
|
|
1802
1421
|
tmp_1 = tmp$ret$8;
|
|
1803
1422
|
}
|
|
@@ -1810,18 +1429,18 @@
|
|
|
1810
1429
|
// Inline function 'kotlin.collections.filter' call
|
|
1811
1430
|
var tmp$ret$10;
|
|
1812
1431
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1813
|
-
var
|
|
1432
|
+
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
1814
1433
|
var tmp0_iterator_2 = tmp1_safe_receiver.c();
|
|
1815
1434
|
while (tmp0_iterator_2.d()) {
|
|
1816
1435
|
var element_0 = tmp0_iterator_2.e();
|
|
1817
1436
|
var tmp$ret$9;
|
|
1818
1437
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1819
|
-
tmp$ret$9 = element_0.
|
|
1438
|
+
tmp$ret$9 = element_0.r1d_1.equals(ParameterLocation_BODY_getInstance());
|
|
1820
1439
|
if (tmp$ret$9) {
|
|
1821
|
-
|
|
1440
|
+
tmp0_filterTo.a(element_0);
|
|
1822
1441
|
}
|
|
1823
1442
|
}
|
|
1824
|
-
tmp$ret$10 =
|
|
1443
|
+
tmp$ret$10 = tmp0_filterTo;
|
|
1825
1444
|
tmp$ret$11 = tmp$ret$10;
|
|
1826
1445
|
tmp_2 = tmp$ret$11;
|
|
1827
1446
|
}
|
|
@@ -1834,28 +1453,28 @@
|
|
|
1834
1453
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1835
1454
|
var tmp$ret$14;
|
|
1836
1455
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1837
|
-
var
|
|
1456
|
+
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
1838
1457
|
var tmp0_iterator_3 = tmp2_safe_receiver.c();
|
|
1839
1458
|
while (tmp0_iterator_3.d()) {
|
|
1840
1459
|
var element_1 = tmp0_iterator_3.e();
|
|
1841
1460
|
var tmp$ret$13;
|
|
1842
1461
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1843
|
-
var schema = element_1.
|
|
1462
|
+
var schema = element_1.u1d_1;
|
|
1844
1463
|
var tmp_4;
|
|
1845
1464
|
if (schema instanceof SchemaObject) {
|
|
1846
|
-
var tmp0_subject = schema.
|
|
1847
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.
|
|
1465
|
+
var tmp0_subject = schema.s1f_1;
|
|
1466
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.r4_1;
|
|
1848
1467
|
var tmp_5;
|
|
1849
1468
|
switch (tmp0) {
|
|
1850
1469
|
case -1:
|
|
1851
1470
|
case 5:
|
|
1852
|
-
tmp_5 = flatten(schema, this$0, Common_getInstance().
|
|
1471
|
+
tmp_5 = flatten(schema, this$0, Common_getInstance().f1u([name, 'RequestBody']));
|
|
1853
1472
|
break;
|
|
1854
1473
|
case 4:
|
|
1855
1474
|
var tmp$ret$12;
|
|
1856
1475
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1857
|
-
var tmp1_safe_receiver_0 = schema.
|
|
1858
|
-
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
1476
|
+
var tmp1_safe_receiver_0 = schema.t1f_1;
|
|
1477
|
+
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().f1u([name, 'RequestBody']));
|
|
1859
1478
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1860
1479
|
tmp$ret$12 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1861
1480
|
|
|
@@ -1871,9 +1490,9 @@
|
|
|
1871
1490
|
}
|
|
1872
1491
|
tmp$ret$13 = tmp_4;
|
|
1873
1492
|
var list_0 = tmp$ret$13;
|
|
1874
|
-
addAll(
|
|
1493
|
+
addAll(tmp0_flatMapTo_0, list_0);
|
|
1875
1494
|
}
|
|
1876
|
-
tmp$ret$14 =
|
|
1495
|
+
tmp$ret$14 = tmp0_flatMapTo_0;
|
|
1877
1496
|
tmp$ret$15 = tmp$ret$14;
|
|
1878
1497
|
tmp_3 = tmp$ret$15;
|
|
1879
1498
|
}
|
|
@@ -1884,26 +1503,26 @@
|
|
|
1884
1503
|
}
|
|
1885
1504
|
function OpenApiParser$parseResponseBody$lambda(this$0) {
|
|
1886
1505
|
return function (res) {
|
|
1887
|
-
var response = resolve_1(res.
|
|
1888
|
-
var parameters = plus(resolveParameters_0(res.
|
|
1889
|
-
var segments = toSegments(res.
|
|
1890
|
-
var name = toName(res.
|
|
1891
|
-
var schema = response.
|
|
1506
|
+
var response = resolve_1(res.t1u_1, this$0);
|
|
1507
|
+
var parameters = plus(resolveParameters_0(res.p1u_1, this$0), resolveParameters(res.r1u_1, this$0));
|
|
1508
|
+
var segments = toSegments(res.o1u_1, this$0, parameters);
|
|
1509
|
+
var name = toName(res.r1u_1, this$0, segments, res.q1u_1);
|
|
1510
|
+
var schema = response.e1g_1;
|
|
1892
1511
|
var tmp;
|
|
1893
1512
|
if (schema instanceof SchemaObject) {
|
|
1894
|
-
var tmp0_subject = schema.
|
|
1895
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.
|
|
1513
|
+
var tmp0_subject = schema.s1f_1;
|
|
1514
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.r4_1;
|
|
1896
1515
|
var tmp_0;
|
|
1897
1516
|
switch (tmp0) {
|
|
1898
1517
|
case -1:
|
|
1899
1518
|
case 5:
|
|
1900
|
-
tmp_0 = flatten(schema, this$0, Common_getInstance().
|
|
1519
|
+
tmp_0 = flatten(schema, this$0, Common_getInstance().f1u([name, _StatusCode___get_value__impl__we50mu(res.s1u_1), 'ResponseBody']));
|
|
1901
1520
|
break;
|
|
1902
1521
|
case 4:
|
|
1903
1522
|
var tmp$ret$0;
|
|
1904
1523
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1905
|
-
var tmp1_safe_receiver = schema.
|
|
1906
|
-
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : flatten_0(tmp1_safe_receiver, this$0, Common_getInstance().
|
|
1524
|
+
var tmp1_safe_receiver = schema.t1f_1;
|
|
1525
|
+
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : flatten_0(tmp1_safe_receiver, this$0, Common_getInstance().f1u([name, _StatusCode___get_value__impl__we50mu(res.s1u_1), 'ResponseBody']));
|
|
1907
1526
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1908
1527
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1909
1528
|
|
|
@@ -1921,13 +1540,12 @@
|
|
|
1921
1540
|
};
|
|
1922
1541
|
}
|
|
1923
1542
|
function OpenApiParser$toName$lambda(it) {
|
|
1924
|
-
var tmp0_subject = it;
|
|
1925
1543
|
var tmp;
|
|
1926
|
-
if (
|
|
1927
|
-
tmp = Common_getInstance().
|
|
1544
|
+
if (it instanceof Literal) {
|
|
1545
|
+
tmp = Common_getInstance().f1u([it.dk_1]);
|
|
1928
1546
|
} else {
|
|
1929
|
-
if (
|
|
1930
|
-
tmp = Common_getInstance().
|
|
1547
|
+
if (it instanceof Param) {
|
|
1548
|
+
tmp = Common_getInstance().f1u([it.ej_1.pj_1]);
|
|
1931
1549
|
} else {
|
|
1932
1550
|
noWhenBranchMatchedException();
|
|
1933
1551
|
}
|
|
@@ -1936,22 +1554,21 @@
|
|
|
1936
1554
|
}
|
|
1937
1555
|
function OpenApiParser(openApi) {
|
|
1938
1556
|
Companion_getInstance_0();
|
|
1939
|
-
this.
|
|
1557
|
+
this.h1u_1 = openApi;
|
|
1940
1558
|
}
|
|
1941
|
-
protoOf(OpenApiParser).
|
|
1559
|
+
protoOf(OpenApiParser).i1u = function () {
|
|
1942
1560
|
return plus(plus(plus(parseEndpoints(this), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
|
|
1943
1561
|
};
|
|
1944
1562
|
function toMap_0(_this__u8e3s4) {
|
|
1945
|
-
var tmp0_subject = _this__u8e3s4;
|
|
1946
1563
|
var tmp;
|
|
1947
|
-
if (
|
|
1948
|
-
tmp = _this__u8e3s4.
|
|
1564
|
+
if (_this__u8e3s4 instanceof Custom) {
|
|
1565
|
+
tmp = _this__u8e3s4.qm(VOID, VOID, true);
|
|
1949
1566
|
} else {
|
|
1950
|
-
if (
|
|
1951
|
-
tmp = _this__u8e3s4.
|
|
1567
|
+
if (_this__u8e3s4 instanceof Any) {
|
|
1568
|
+
tmp = _this__u8e3s4.om(VOID, true);
|
|
1952
1569
|
} else {
|
|
1953
|
-
if (
|
|
1954
|
-
tmp = _this__u8e3s4.
|
|
1570
|
+
if (_this__u8e3s4 instanceof Primitive) {
|
|
1571
|
+
tmp = _this__u8e3s4.sm(VOID, VOID, true);
|
|
1955
1572
|
} else {
|
|
1956
1573
|
noWhenBranchMatchedException();
|
|
1957
1574
|
}
|
|
@@ -1960,10 +1577,8 @@
|
|
|
1960
1577
|
return tmp;
|
|
1961
1578
|
}
|
|
1962
1579
|
function isPrimitive(_this__u8e3s4) {
|
|
1963
|
-
var tmp0_subject = _this__u8e3s4;
|
|
1964
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
1965
1580
|
var tmp;
|
|
1966
|
-
switch (
|
|
1581
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.r4_1) {
|
|
1967
1582
|
case 0:
|
|
1968
1583
|
tmp = true;
|
|
1969
1584
|
break;
|
|
@@ -1995,16 +1610,15 @@
|
|
|
1995
1610
|
return tmp;
|
|
1996
1611
|
}
|
|
1997
1612
|
function toIterable(_this__u8e3s4) {
|
|
1998
|
-
var tmp0_subject = _this__u8e3s4;
|
|
1999
1613
|
var tmp;
|
|
2000
|
-
if (
|
|
2001
|
-
tmp = _this__u8e3s4.
|
|
1614
|
+
if (_this__u8e3s4 instanceof Custom) {
|
|
1615
|
+
tmp = _this__u8e3s4.qm(VOID, true);
|
|
2002
1616
|
} else {
|
|
2003
|
-
if (
|
|
2004
|
-
tmp = _this__u8e3s4.
|
|
1617
|
+
if (_this__u8e3s4 instanceof Any) {
|
|
1618
|
+
tmp = _this__u8e3s4.om(true);
|
|
2005
1619
|
} else {
|
|
2006
|
-
if (
|
|
2007
|
-
tmp = _this__u8e3s4.
|
|
1620
|
+
if (_this__u8e3s4 instanceof Primitive) {
|
|
1621
|
+
tmp = _this__u8e3s4.sm(VOID, true);
|
|
2008
1622
|
} else {
|
|
2009
1623
|
noWhenBranchMatchedException();
|
|
2010
1624
|
}
|
|
@@ -2013,72 +1627,49 @@
|
|
|
2013
1627
|
return tmp;
|
|
2014
1628
|
}
|
|
2015
1629
|
function filterNotNullValues(_this__u8e3s4) {
|
|
2016
|
-
var tmp$ret$8;
|
|
2017
1630
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2018
|
-
var tmp$ret$7;
|
|
2019
1631
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2020
1632
|
var tmp0_mapNotNullTo = ArrayList_init_$Create$();
|
|
2021
1633
|
// Inline function 'kotlin.collections.forEach' call
|
|
2022
|
-
var tmp$ret$0;
|
|
2023
1634
|
// Inline function 'kotlin.collections.iterator' call
|
|
2024
|
-
|
|
2025
|
-
var tmp0_iterator = tmp$ret$0;
|
|
1635
|
+
var tmp0_iterator = _this__u8e3s4.u().c();
|
|
2026
1636
|
while (tmp0_iterator.d()) {
|
|
2027
1637
|
var element = tmp0_iterator.e();
|
|
2028
1638
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2029
|
-
var tmp$ret$5;
|
|
2030
1639
|
// Inline function 'community.flock.wirespec.openapi.v2.filterNotNullValues.<anonymous>' call
|
|
2031
|
-
var tmp$ret$1;
|
|
2032
1640
|
// Inline function 'kotlin.collections.component1' call
|
|
2033
|
-
|
|
2034
|
-
var key = tmp$ret$1;
|
|
2035
|
-
var tmp$ret$2;
|
|
1641
|
+
var key = element.v();
|
|
2036
1642
|
// Inline function 'kotlin.collections.component2' call
|
|
2037
|
-
|
|
2038
|
-
var value = tmp$ret$2;
|
|
2039
|
-
var tmp0_safe_receiver = value;
|
|
1643
|
+
var value = element.w();
|
|
2040
1644
|
var tmp;
|
|
2041
|
-
if (
|
|
1645
|
+
if (value == null) {
|
|
2042
1646
|
tmp = null;
|
|
2043
1647
|
} else {
|
|
2044
|
-
var tmp$ret$4;
|
|
2045
1648
|
// Inline function 'kotlin.let' call
|
|
2046
1649
|
// Inline function 'kotlin.contracts.contract' call
|
|
2047
|
-
var tmp$ret$3;
|
|
2048
1650
|
// Inline function 'community.flock.wirespec.openapi.v2.filterNotNullValues.<anonymous>.<anonymous>' call
|
|
2049
|
-
tmp
|
|
2050
|
-
tmp$ret$4 = tmp$ret$3;
|
|
2051
|
-
tmp = tmp$ret$4;
|
|
1651
|
+
tmp = to(key, value);
|
|
2052
1652
|
}
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
if (tmp0_safe_receiver_0 == null)
|
|
1653
|
+
var tmp0_safe_receiver = tmp;
|
|
1654
|
+
if (tmp0_safe_receiver == null)
|
|
2056
1655
|
null;
|
|
2057
1656
|
else {
|
|
2058
|
-
var tmp$ret$6;
|
|
2059
1657
|
// Inline function 'kotlin.let' call
|
|
2060
1658
|
// Inline function 'kotlin.contracts.contract' call
|
|
2061
|
-
tmp0_mapNotNullTo.a(
|
|
2062
|
-
tmp$ret$6 = Unit_getInstance();
|
|
1659
|
+
tmp0_mapNotNullTo.a(tmp0_safe_receiver);
|
|
2063
1660
|
}
|
|
2064
1661
|
}
|
|
2065
|
-
|
|
2066
|
-
tmp$ret$8 = tmp$ret$7;
|
|
2067
|
-
return toMap(tmp$ret$8);
|
|
1662
|
+
return toMap(tmp0_mapNotNullTo);
|
|
2068
1663
|
}
|
|
2069
1664
|
function Companion_0() {
|
|
2070
1665
|
Companion_instance_0 = this;
|
|
2071
1666
|
}
|
|
2072
|
-
protoOf(Companion_0).
|
|
2073
|
-
var tmp$ret$1;
|
|
1667
|
+
protoOf(Companion_0).g1u = function (json) {
|
|
2074
1668
|
// Inline function 'kotlin.let' call
|
|
2075
|
-
var tmp0_let = Default_getInstance_0().
|
|
1669
|
+
var tmp0_let = Default_getInstance_0().m1b(json);
|
|
2076
1670
|
// Inline function 'kotlin.contracts.contract' call
|
|
2077
|
-
var tmp$ret$0;
|
|
2078
1671
|
// Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
|
|
2079
|
-
|
|
2080
|
-
tmp$ret$1 = tmp$ret$0;
|
|
2081
|
-
return tmp$ret$1;
|
|
1672
|
+
return parse(new OpenApiParser_0(tmp0_let));
|
|
2082
1673
|
};
|
|
2083
1674
|
var Companion_instance_0;
|
|
2084
1675
|
function Companion_getInstance_1() {
|
|
@@ -2090,200 +1681,140 @@
|
|
|
2090
1681
|
return plus(plus(plus(plus(parseEndpoint($this), parseParameters($this)), parseRequestBody_0($this)), parseResponseBody_0($this)), parseComponents($this));
|
|
2091
1682
|
}
|
|
2092
1683
|
function parseEndpoint($this) {
|
|
2093
|
-
var tmp$ret$50;
|
|
2094
1684
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2095
|
-
var
|
|
2096
|
-
var tmp$ret$49;
|
|
1685
|
+
var tmp0_flatMap = $this.v1u_1.m1k_1;
|
|
2097
1686
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2098
1687
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
2099
|
-
var tmp$ret$0;
|
|
2100
1688
|
// Inline function 'kotlin.collections.iterator' call
|
|
2101
|
-
|
|
2102
|
-
var tmp0_iterator = tmp$ret$0;
|
|
1689
|
+
var tmp0_iterator = tmp0_flatMap.u().c();
|
|
2103
1690
|
while (tmp0_iterator.d()) {
|
|
2104
1691
|
var element = tmp0_iterator.e();
|
|
2105
|
-
var tmp$ret$48;
|
|
2106
1692
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>' call
|
|
2107
|
-
var tmp$ret$1;
|
|
2108
1693
|
// Inline function 'kotlin.collections.component1' call
|
|
2109
|
-
|
|
2110
|
-
var key = tmp$ret$1;
|
|
2111
|
-
var tmp$ret$2;
|
|
1694
|
+
var key = element.v().u1k_1;
|
|
2112
1695
|
// Inline function 'kotlin.collections.component2' call
|
|
2113
|
-
|
|
2114
|
-
var path = tmp$ret$2;
|
|
2115
|
-
var tmp$ret$47;
|
|
1696
|
+
var path = element.w();
|
|
2116
1697
|
// Inline function 'kotlin.collections.map' call
|
|
2117
|
-
var
|
|
2118
|
-
var tmp$ret$46;
|
|
1698
|
+
var tmp0_map = toOperationList_0(path, $this);
|
|
2119
1699
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2120
|
-
var tmp0_mapTo = ArrayList_init_$Create$_0(
|
|
2121
|
-
var tmp$ret$3;
|
|
1700
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp0_map.f());
|
|
2122
1701
|
// Inline function 'kotlin.collections.iterator' call
|
|
2123
|
-
|
|
2124
|
-
var tmp0_iterator_0 = tmp$ret$3;
|
|
1702
|
+
var tmp0_iterator_0 = tmp0_map.u().c();
|
|
2125
1703
|
while (tmp0_iterator_0.d()) {
|
|
2126
1704
|
var item = tmp0_iterator_0.e();
|
|
2127
1705
|
var tmp$ret$45;
|
|
2128
1706
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>' call
|
|
2129
|
-
var tmp$ret$4;
|
|
2130
1707
|
// Inline function 'kotlin.collections.component1' call
|
|
2131
|
-
|
|
2132
|
-
var method = tmp$ret$4;
|
|
2133
|
-
var tmp$ret$5;
|
|
1708
|
+
var method = item.v();
|
|
2134
1709
|
// Inline function 'kotlin.collections.component2' call
|
|
2135
|
-
|
|
2136
|
-
var operation = tmp$ret$5;
|
|
1710
|
+
var operation = item.w();
|
|
2137
1711
|
var parameters = plus(resolveParameters_2(path, $this), resolveParameters_1(operation, $this));
|
|
2138
1712
|
var segments = toSegments_0(key, $this, parameters);
|
|
2139
1713
|
var name = toName_0(operation, $this, segments, method);
|
|
2140
|
-
var tmp$ret$11;
|
|
2141
1714
|
// Inline function 'kotlin.collections.map' call
|
|
2142
|
-
var tmp$ret$8;
|
|
2143
1715
|
// Inline function 'kotlin.collections.filter' call
|
|
2144
|
-
var tmp$ret$7;
|
|
2145
1716
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2146
1717
|
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
2147
1718
|
var tmp0_iterator_1 = parameters.c();
|
|
2148
1719
|
while (tmp0_iterator_1.d()) {
|
|
2149
1720
|
var element_0 = tmp0_iterator_1.e();
|
|
2150
|
-
var tmp$ret$6;
|
|
2151
1721
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2152
|
-
|
|
2153
|
-
if (tmp$ret$6) {
|
|
1722
|
+
if (element_0.o1m_1.equals(ParameterLocation_QUERY_getInstance_0())) {
|
|
2154
1723
|
tmp0_filterTo.a(element_0);
|
|
2155
1724
|
}
|
|
2156
1725
|
}
|
|
2157
|
-
tmp$ret$7 = tmp0_filterTo;
|
|
2158
|
-
tmp$ret$8 = tmp$ret$7;
|
|
2159
|
-
var tmp2_map = tmp$ret$8;
|
|
2160
|
-
var tmp$ret$10;
|
|
2161
1726
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2162
|
-
var
|
|
2163
|
-
var tmp0_iterator_2 =
|
|
1727
|
+
var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_filterTo, 10));
|
|
1728
|
+
var tmp0_iterator_2 = tmp0_filterTo.c();
|
|
2164
1729
|
while (tmp0_iterator_2.d()) {
|
|
2165
1730
|
var item_0 = tmp0_iterator_2.e();
|
|
2166
1731
|
var tmp$ret$9;
|
|
2167
1732
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2168
|
-
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().
|
|
2169
|
-
|
|
1733
|
+
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().f1u([name, 'Parameter', item_0.n1m_1]));
|
|
1734
|
+
tmp0_mapTo_0.a(tmp$ret$9);
|
|
2170
1735
|
}
|
|
2171
|
-
|
|
2172
|
-
tmp$ret$11 = tmp$ret$10;
|
|
2173
|
-
var query = tmp$ret$11;
|
|
2174
|
-
var tmp$ret$17;
|
|
1736
|
+
var query = tmp0_mapTo_0;
|
|
2175
1737
|
// Inline function 'kotlin.collections.map' call
|
|
2176
|
-
var tmp$ret$14;
|
|
2177
1738
|
// Inline function 'kotlin.collections.filter' call
|
|
2178
|
-
var tmp$ret$13;
|
|
2179
1739
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2180
|
-
var
|
|
1740
|
+
var tmp0_filterTo_0 = ArrayList_init_$Create$();
|
|
2181
1741
|
var tmp0_iterator_3 = parameters.c();
|
|
2182
1742
|
while (tmp0_iterator_3.d()) {
|
|
2183
1743
|
var element_1 = tmp0_iterator_3.e();
|
|
2184
|
-
var tmp$ret$12;
|
|
2185
1744
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
tmp3_filterTo.a(element_1);
|
|
1745
|
+
if (element_1.o1m_1.equals(ParameterLocation_HEADER_getInstance_0())) {
|
|
1746
|
+
tmp0_filterTo_0.a(element_1);
|
|
2189
1747
|
}
|
|
2190
1748
|
}
|
|
2191
|
-
tmp$ret$13 = tmp3_filterTo;
|
|
2192
|
-
tmp$ret$14 = tmp$ret$13;
|
|
2193
|
-
var tmp5_map = tmp$ret$14;
|
|
2194
|
-
var tmp$ret$16;
|
|
2195
1749
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2196
|
-
var
|
|
2197
|
-
var tmp0_iterator_4 =
|
|
1750
|
+
var tmp0_mapTo_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_filterTo_0, 10));
|
|
1751
|
+
var tmp0_iterator_4 = tmp0_filterTo_0.c();
|
|
2198
1752
|
while (tmp0_iterator_4.d()) {
|
|
2199
1753
|
var item_1 = tmp0_iterator_4.e();
|
|
2200
1754
|
var tmp$ret$15;
|
|
2201
1755
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2202
|
-
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().
|
|
2203
|
-
|
|
1756
|
+
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().f1u([name, 'Parameter', item_1.n1m_1]));
|
|
1757
|
+
tmp0_mapTo_1.a(tmp$ret$15);
|
|
2204
1758
|
}
|
|
2205
|
-
|
|
2206
|
-
tmp$ret$17 = tmp$ret$16;
|
|
2207
|
-
var headers = tmp$ret$17;
|
|
2208
|
-
var tmp$ret$23;
|
|
1759
|
+
var headers = tmp0_mapTo_1;
|
|
2209
1760
|
// Inline function 'kotlin.collections.map' call
|
|
2210
|
-
var tmp$ret$20;
|
|
2211
1761
|
// Inline function 'kotlin.collections.filter' call
|
|
2212
|
-
var tmp$ret$19;
|
|
2213
1762
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2214
|
-
var
|
|
1763
|
+
var tmp0_filterTo_1 = ArrayList_init_$Create$();
|
|
2215
1764
|
var tmp0_iterator_5 = parameters.c();
|
|
2216
1765
|
while (tmp0_iterator_5.d()) {
|
|
2217
1766
|
var element_2 = tmp0_iterator_5.e();
|
|
2218
|
-
var tmp$ret$18;
|
|
2219
1767
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
tmp6_filterTo.a(element_2);
|
|
1768
|
+
if (element_2.o1m_1.equals(ParameterLocation_COOKIE_getInstance())) {
|
|
1769
|
+
tmp0_filterTo_1.a(element_2);
|
|
2223
1770
|
}
|
|
2224
1771
|
}
|
|
2225
|
-
tmp$ret$19 = tmp6_filterTo;
|
|
2226
|
-
tmp$ret$20 = tmp$ret$19;
|
|
2227
|
-
var tmp8_map = tmp$ret$20;
|
|
2228
|
-
var tmp$ret$22;
|
|
2229
1772
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2230
|
-
var
|
|
2231
|
-
var tmp0_iterator_6 =
|
|
1773
|
+
var tmp0_mapTo_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_filterTo_1, 10));
|
|
1774
|
+
var tmp0_iterator_6 = tmp0_filterTo_1.c();
|
|
2232
1775
|
while (tmp0_iterator_6.d()) {
|
|
2233
1776
|
var item_2 = tmp0_iterator_6.e();
|
|
2234
1777
|
var tmp$ret$21;
|
|
2235
1778
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2236
|
-
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().
|
|
2237
|
-
|
|
1779
|
+
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().f1u([name, 'Parameter', item_2.n1m_1]));
|
|
1780
|
+
tmp0_mapTo_2.a(tmp$ret$21);
|
|
2238
1781
|
}
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
var cookies = tmp$ret$23;
|
|
2242
|
-
var tmp0_safe_receiver = operation.b1l_1;
|
|
1782
|
+
var cookies = tmp0_mapTo_2;
|
|
1783
|
+
var tmp0_safe_receiver = operation.t1l_1;
|
|
2243
1784
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, $this);
|
|
2244
1785
|
var tmp;
|
|
2245
1786
|
if (tmp1_safe_receiver == null) {
|
|
2246
1787
|
tmp = null;
|
|
2247
1788
|
} else {
|
|
2248
|
-
var tmp$ret$31;
|
|
2249
1789
|
// Inline function 'kotlin.let' call
|
|
2250
1790
|
// Inline function 'kotlin.contracts.contract' call
|
|
2251
|
-
var tmp$ret$30;
|
|
2252
1791
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2253
|
-
var tmp0_safe_receiver_0 = tmp1_safe_receiver.
|
|
1792
|
+
var tmp0_safe_receiver_0 = tmp1_safe_receiver.t1m_1;
|
|
2254
1793
|
var tmp_0;
|
|
2255
1794
|
if (tmp0_safe_receiver_0 == null) {
|
|
2256
1795
|
tmp_0 = null;
|
|
2257
1796
|
} else {
|
|
2258
|
-
var tmp$ret$29;
|
|
2259
1797
|
// Inline function 'kotlin.collections.map' call
|
|
2260
|
-
var tmp$ret$28;
|
|
2261
1798
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2262
|
-
var
|
|
2263
|
-
var tmp$ret$24;
|
|
1799
|
+
var tmp0_mapTo_3 = ArrayList_init_$Create$_0(tmp0_safe_receiver_0.f());
|
|
2264
1800
|
// Inline function 'kotlin.collections.iterator' call
|
|
2265
|
-
|
|
2266
|
-
var tmp0_iterator_7 = tmp$ret$24;
|
|
1801
|
+
var tmp0_iterator_7 = tmp0_safe_receiver_0.u().c();
|
|
2267
1802
|
while (tmp0_iterator_7.d()) {
|
|
2268
1803
|
var item_3 = tmp0_iterator_7.e();
|
|
2269
1804
|
var tmp$ret$27;
|
|
2270
1805
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2271
|
-
var tmp$ret$25;
|
|
2272
1806
|
// Inline function 'kotlin.collections.component1' call
|
|
2273
|
-
|
|
2274
|
-
var mediaType = tmp$ret$25;
|
|
2275
|
-
var tmp$ret$26;
|
|
1807
|
+
var mediaType = item_3.v().x1m_1;
|
|
2276
1808
|
// Inline function 'kotlin.collections.component2' call
|
|
2277
|
-
|
|
2278
|
-
var mediaObject = tmp$ret$26;
|
|
1809
|
+
var mediaObject = item_3.w();
|
|
2279
1810
|
var tmp_1 = _MediaType___get_value__impl__wy58mp(mediaType);
|
|
2280
|
-
var schema = mediaObject.
|
|
1811
|
+
var schema = mediaObject.a1n_1;
|
|
2281
1812
|
var tmp_2;
|
|
2282
1813
|
if (schema instanceof ReferenceObject_0) {
|
|
2283
1814
|
tmp_2 = toReference_1(schema, $this);
|
|
2284
1815
|
} else {
|
|
2285
1816
|
if (schema instanceof SchemaObject_0) {
|
|
2286
|
-
tmp_2 = toReference_2(schema, $this, Common_getInstance().
|
|
1817
|
+
tmp_2 = toReference_2(schema, $this, Common_getInstance().f1u([name, 'RequestBody']));
|
|
2287
1818
|
} else {
|
|
2288
1819
|
if (schema == null) {
|
|
2289
1820
|
throw new NotImplementedError();
|
|
@@ -2293,82 +1824,58 @@
|
|
|
2293
1824
|
}
|
|
2294
1825
|
}
|
|
2295
1826
|
var tmp_3 = tmp_2;
|
|
2296
|
-
var tmp0_elvis_lhs = tmp1_safe_receiver.
|
|
1827
|
+
var tmp0_elvis_lhs = tmp1_safe_receiver.u1m_1;
|
|
2297
1828
|
tmp$ret$27 = new Request(new Content(tmp_1, tmp_3, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
2298
|
-
|
|
1829
|
+
tmp0_mapTo_3.a(tmp$ret$27);
|
|
2299
1830
|
}
|
|
2300
|
-
|
|
2301
|
-
tmp$ret$29 = tmp$ret$28;
|
|
2302
|
-
tmp_0 = tmp$ret$29;
|
|
1831
|
+
tmp_0 = tmp0_mapTo_3;
|
|
2303
1832
|
}
|
|
2304
|
-
tmp
|
|
2305
|
-
tmp$ret$31 = tmp$ret$30;
|
|
2306
|
-
tmp = tmp$ret$31;
|
|
1833
|
+
tmp = tmp_0;
|
|
2307
1834
|
}
|
|
2308
1835
|
var tmp2_elvis_lhs = tmp;
|
|
2309
1836
|
var requests = tmp2_elvis_lhs == null ? listOf(new Request(null)) : tmp2_elvis_lhs;
|
|
2310
|
-
var tmp$ret$44;
|
|
2311
1837
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2312
|
-
var tmp$ret$32;
|
|
2313
1838
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2314
|
-
var
|
|
2315
|
-
var
|
|
2316
|
-
tmp$ret$32 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2317
|
-
var tmp11_flatMap = tmp$ret$32;
|
|
2318
|
-
var tmp$ret$43;
|
|
1839
|
+
var tmp0_elvis_lhs_0 = operation.u1l_1;
|
|
1840
|
+
var tmp4_flatMap = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2319
1841
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2320
|
-
var
|
|
2321
|
-
var tmp$ret$33;
|
|
1842
|
+
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
2322
1843
|
// Inline function 'kotlin.collections.iterator' call
|
|
2323
|
-
|
|
2324
|
-
var tmp0_iterator_8 = tmp$ret$33;
|
|
1844
|
+
var tmp0_iterator_8 = tmp4_flatMap.u().c();
|
|
2325
1845
|
while (tmp0_iterator_8.d()) {
|
|
2326
1846
|
var element_3 = tmp0_iterator_8.e();
|
|
2327
|
-
var tmp$ret$42;
|
|
2328
1847
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2329
|
-
var tmp$ret$34;
|
|
2330
1848
|
// Inline function 'kotlin.collections.component1' call
|
|
2331
|
-
|
|
2332
|
-
var status = tmp$ret$34;
|
|
2333
|
-
var tmp$ret$35;
|
|
1849
|
+
var status = element_3.v().w1o_1;
|
|
2334
1850
|
// Inline function 'kotlin.collections.component2' call
|
|
2335
|
-
|
|
2336
|
-
var
|
|
2337
|
-
var tmp0_safe_receiver_1 = resolve_6(res, $this).j1o_1;
|
|
1851
|
+
var res = element_3.w();
|
|
1852
|
+
var tmp0_safe_receiver_1 = resolve_6(res, $this).b1p_1;
|
|
2338
1853
|
var tmp_4;
|
|
2339
1854
|
if (tmp0_safe_receiver_1 == null) {
|
|
2340
1855
|
tmp_4 = null;
|
|
2341
1856
|
} else {
|
|
2342
|
-
var tmp$ret$41;
|
|
2343
1857
|
// Inline function 'kotlin.collections.map' call
|
|
2344
|
-
var tmp$ret$40;
|
|
2345
1858
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2346
|
-
var
|
|
2347
|
-
var tmp$ret$36;
|
|
1859
|
+
var tmp0_mapTo_4 = ArrayList_init_$Create$_0(tmp0_safe_receiver_1.f());
|
|
2348
1860
|
// Inline function 'kotlin.collections.iterator' call
|
|
2349
|
-
|
|
2350
|
-
var tmp0_iterator_9 = tmp$ret$36;
|
|
1861
|
+
var tmp0_iterator_9 = tmp0_safe_receiver_1.u().c();
|
|
2351
1862
|
while (tmp0_iterator_9.d()) {
|
|
2352
1863
|
var item_4 = tmp0_iterator_9.e();
|
|
2353
1864
|
var tmp$ret$39;
|
|
2354
1865
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2355
|
-
var tmp$ret$37;
|
|
2356
1866
|
// Inline function 'kotlin.collections.component1' call
|
|
2357
|
-
|
|
2358
|
-
var contentType = tmp$ret$37;
|
|
2359
|
-
var tmp$ret$38;
|
|
1867
|
+
var contentType = item_4.v().x1m_1;
|
|
2360
1868
|
// Inline function 'kotlin.collections.component2' call
|
|
2361
|
-
|
|
2362
|
-
var media = tmp$ret$38;
|
|
1869
|
+
var media = item_4.w();
|
|
2363
1870
|
var tmp_5 = _StatusCode___get_value__impl__we50mu_0(status);
|
|
2364
1871
|
var tmp_6 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
2365
|
-
var schema_0 = media.
|
|
1872
|
+
var schema_0 = media.a1n_1;
|
|
2366
1873
|
var tmp_7;
|
|
2367
1874
|
if (schema_0 instanceof ReferenceObject_0) {
|
|
2368
1875
|
tmp_7 = toReference_1(schema_0, $this);
|
|
2369
1876
|
} else {
|
|
2370
1877
|
if (schema_0 instanceof SchemaObject_0) {
|
|
2371
|
-
tmp_7 = toReference_2(schema_0, $this, Common_getInstance().
|
|
1878
|
+
tmp_7 = toReference_2(schema_0, $this, Common_getInstance().f1u([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
2372
1879
|
} else {
|
|
2373
1880
|
if (schema_0 == null) {
|
|
2374
1881
|
throw new NotImplementedError();
|
|
@@ -2378,127 +1885,90 @@
|
|
|
2378
1885
|
}
|
|
2379
1886
|
}
|
|
2380
1887
|
var tmp_8 = tmp_7;
|
|
2381
|
-
var tmp0_safe_receiver_2 = media.
|
|
1888
|
+
var tmp0_safe_receiver_2 = media.a1n_1;
|
|
2382
1889
|
var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : resolve_3(tmp0_safe_receiver_2, $this);
|
|
2383
|
-
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
1890
|
+
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.j1n_1;
|
|
2384
1891
|
tmp$ret$39 = new Response(tmp_5, new Content(tmp_6, tmp_8, tmp2_elvis_lhs_0 == null ? false : tmp2_elvis_lhs_0));
|
|
2385
|
-
|
|
1892
|
+
tmp0_mapTo_4.a(tmp$ret$39);
|
|
2386
1893
|
}
|
|
2387
|
-
|
|
2388
|
-
tmp$ret$41 = tmp$ret$40;
|
|
2389
|
-
tmp_4 = tmp$ret$41;
|
|
1894
|
+
tmp_4 = tmp0_mapTo_4;
|
|
2390
1895
|
}
|
|
2391
1896
|
var tmp1_elvis_lhs = tmp_4;
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
addAll(tmp10_flatMapTo, list);
|
|
1897
|
+
var list = tmp1_elvis_lhs == null ? listOf(new Response(_StatusCode___get_value__impl__we50mu_0(status), null)) : tmp1_elvis_lhs;
|
|
1898
|
+
addAll(tmp0_flatMapTo_0, list);
|
|
2395
1899
|
}
|
|
2396
|
-
|
|
2397
|
-
tmp$ret$44 = tmp$ret$43;
|
|
2398
|
-
var responses = tmp$ret$44;
|
|
1900
|
+
var responses = tmp0_flatMapTo_0;
|
|
2399
1901
|
tmp$ret$45 = new Endpoint(name, method, segments, query, headers, cookies, requests, responses);
|
|
2400
1902
|
tmp0_mapTo.a(tmp$ret$45);
|
|
2401
1903
|
}
|
|
2402
|
-
|
|
2403
|
-
tmp$ret$47 = tmp$ret$46;
|
|
2404
|
-
tmp$ret$48 = tmp$ret$47;
|
|
2405
|
-
var list_0 = tmp$ret$48;
|
|
1904
|
+
var list_0 = tmp0_mapTo;
|
|
2406
1905
|
addAll(tmp0_flatMapTo, list_0);
|
|
2407
1906
|
}
|
|
2408
|
-
|
|
2409
|
-
tmp$ret$50 = tmp$ret$49;
|
|
2410
|
-
return tmp$ret$50;
|
|
1907
|
+
return tmp0_flatMapTo;
|
|
2411
1908
|
}
|
|
2412
1909
|
function parseParameters($this) {
|
|
2413
|
-
return flatMapRequests_0($this.
|
|
1910
|
+
return flatMapRequests_0($this.v1u_1, $this, OpenApiParser$parseParameters$lambda($this));
|
|
2414
1911
|
}
|
|
2415
1912
|
function parseRequestBody_0($this) {
|
|
2416
|
-
return flatMapRequests_0($this.
|
|
1913
|
+
return flatMapRequests_0($this.v1u_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
|
|
2417
1914
|
}
|
|
2418
1915
|
function parseResponseBody_0($this) {
|
|
2419
|
-
return flatMapResponses_0($this.
|
|
1916
|
+
return flatMapResponses_0($this.v1u_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
|
|
2420
1917
|
}
|
|
2421
1918
|
function parseComponents($this) {
|
|
2422
|
-
var tmp$ret$8;
|
|
2423
1919
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2424
|
-
var tmp$ret$4;
|
|
2425
1920
|
// Inline function 'kotlin.collections.filter' call
|
|
2426
|
-
var tmp$ret$0;
|
|
2427
1921
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2428
|
-
var tmp0_safe_receiver = $this.
|
|
2429
|
-
var
|
|
2430
|
-
var
|
|
2431
|
-
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2432
|
-
var tmp2_filter = tmp$ret$0;
|
|
2433
|
-
var tmp$ret$3;
|
|
1922
|
+
var tmp0_safe_receiver = $this.v1u_1.n1k_1;
|
|
1923
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g1p_1;
|
|
1924
|
+
var tmp1_filter = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2434
1925
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2435
|
-
var
|
|
2436
|
-
var tmp$ret$1;
|
|
1926
|
+
var tmp0_filterTo = LinkedHashMap_init_$Create$();
|
|
2437
1927
|
// Inline function 'kotlin.collections.iterator' call
|
|
2438
|
-
|
|
2439
|
-
var tmp0_iterator = tmp$ret$1;
|
|
1928
|
+
var tmp0_iterator = tmp1_filter.u().c();
|
|
2440
1929
|
while (tmp0_iterator.d()) {
|
|
2441
1930
|
var element = tmp0_iterator.e();
|
|
2442
|
-
var tmp$ret$2;
|
|
2443
1931
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2444
1932
|
var s = element.w();
|
|
2445
1933
|
var tmp;
|
|
2446
1934
|
if (s instanceof SchemaObject_0) {
|
|
2447
|
-
tmp = s.
|
|
1935
|
+
tmp = s.z1n_1 == null;
|
|
2448
1936
|
} else {
|
|
2449
1937
|
tmp = false;
|
|
2450
1938
|
}
|
|
2451
|
-
tmp
|
|
2452
|
-
|
|
2453
|
-
tmp1_filterTo.k3(element.v(), element.w());
|
|
1939
|
+
if (tmp) {
|
|
1940
|
+
tmp0_filterTo.l3(element.v(), element.w());
|
|
2454
1941
|
}
|
|
2455
1942
|
}
|
|
2456
|
-
tmp$ret$3 = tmp1_filterTo;
|
|
2457
|
-
tmp$ret$4 = tmp$ret$3;
|
|
2458
|
-
var tmp4_flatMap = tmp$ret$4;
|
|
2459
|
-
var tmp$ret$7;
|
|
2460
1943
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2461
|
-
var
|
|
2462
|
-
var tmp$ret$5;
|
|
1944
|
+
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
2463
1945
|
// Inline function 'kotlin.collections.iterator' call
|
|
2464
|
-
|
|
2465
|
-
var tmp0_iterator_0 = tmp$ret$5;
|
|
1946
|
+
var tmp0_iterator_0 = tmp0_filterTo.u().c();
|
|
2466
1947
|
while (tmp0_iterator_0.d()) {
|
|
2467
1948
|
var element_0 = tmp0_iterator_0.e();
|
|
2468
|
-
var tmp$ret$6;
|
|
2469
1949
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
addAll(tmp3_flatMapTo, list);
|
|
1950
|
+
var list = flatten_2(element_0.w(), $this, Common_getInstance().f1u([element_0.v()]));
|
|
1951
|
+
addAll(tmp0_flatMapTo, list);
|
|
2473
1952
|
}
|
|
2474
|
-
|
|
2475
|
-
tmp$ret$8 = tmp$ret$7;
|
|
2476
|
-
return tmp$ret$8;
|
|
1953
|
+
return tmp0_flatMapTo;
|
|
2477
1954
|
}
|
|
2478
1955
|
function toSegments_0(_this__u8e3s4, $this, parameters) {
|
|
2479
|
-
var tmp$ret$11;
|
|
2480
1956
|
// Inline function 'kotlin.collections.map' call
|
|
2481
|
-
var
|
|
2482
|
-
var tmp$ret$10;
|
|
1957
|
+
var tmp0_map = drop(split(_Path___get_value__impl__thmflc_0(_this__u8e3s4), ['/']), 1);
|
|
2483
1958
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2484
|
-
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(
|
|
2485
|
-
var tmp0_iterator =
|
|
1959
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
1960
|
+
var tmp0_iterator = tmp0_map.c();
|
|
2486
1961
|
while (tmp0_iterator.d()) {
|
|
2487
1962
|
var item = tmp0_iterator.e();
|
|
2488
1963
|
var tmp$ret$9;
|
|
2489
1964
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>' call
|
|
2490
|
-
var isParam =
|
|
1965
|
+
var isParam = charSequenceGet(item, 0) === _Char___init__impl__6a9atx(123) ? charSequenceGet(item, item.length - 1 | 0) === _Char___init__impl__6a9atx(125) : false;
|
|
2491
1966
|
var tmp;
|
|
2492
1967
|
if (isParam) {
|
|
2493
|
-
var tmp$ret$1;
|
|
2494
1968
|
// Inline function 'kotlin.text.substring' call
|
|
2495
1969
|
var tmp0_substring = item.length - 1 | 0;
|
|
2496
|
-
var tmp$ret$0;
|
|
2497
1970
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2498
|
-
|
|
2499
|
-
tmp$ret$1 = tmp$ret$0.substring(1, tmp0_substring);
|
|
2500
|
-
var param = tmp$ret$1;
|
|
2501
|
-
var tmp$ret$4;
|
|
1971
|
+
var param = item.substring(1, tmp0_substring);
|
|
2502
1972
|
// Inline function 'kotlin.collections.find' call
|
|
2503
1973
|
var tmp$ret$3;
|
|
2504
1974
|
$l$block: {
|
|
@@ -2506,47 +1976,36 @@
|
|
|
2506
1976
|
var tmp0_iterator_0 = parameters.c();
|
|
2507
1977
|
while (tmp0_iterator_0.d()) {
|
|
2508
1978
|
var element = tmp0_iterator_0.e();
|
|
2509
|
-
var tmp$ret$2;
|
|
2510
1979
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2511
|
-
|
|
2512
|
-
if (tmp$ret$2) {
|
|
1980
|
+
if (element.n1m_1 === param) {
|
|
2513
1981
|
tmp$ret$3 = element;
|
|
2514
1982
|
break $l$block;
|
|
2515
1983
|
}
|
|
2516
1984
|
}
|
|
2517
1985
|
tmp$ret$3 = null;
|
|
2518
1986
|
}
|
|
2519
|
-
|
|
2520
|
-
var
|
|
2521
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r1l_1;
|
|
1987
|
+
var tmp0_safe_receiver = tmp$ret$3;
|
|
1988
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j1m_1;
|
|
2522
1989
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_3(tmp1_safe_receiver, $this);
|
|
2523
1990
|
var tmp_0;
|
|
2524
1991
|
if (tmp2_safe_receiver == null) {
|
|
2525
1992
|
tmp_0 = null;
|
|
2526
1993
|
} else {
|
|
2527
|
-
var tmp$ret$6;
|
|
2528
1994
|
// Inline function 'kotlin.let' call
|
|
2529
1995
|
// Inline function 'kotlin.contracts.contract' call
|
|
2530
|
-
var tmp$ret$5;
|
|
2531
1996
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2532
|
-
var tmp0_safe_receiver_0 = tmp2_safe_receiver.
|
|
2533
|
-
|
|
2534
|
-
tmp$ret$6 = tmp$ret$5;
|
|
2535
|
-
tmp_0 = tmp$ret$6;
|
|
1997
|
+
var tmp0_safe_receiver_0 = tmp2_safe_receiver.s1n_1;
|
|
1998
|
+
tmp_0 = tmp0_safe_receiver_0 == null ? null : toPrimitive_0(tmp0_safe_receiver_0, $this);
|
|
2536
1999
|
}
|
|
2537
2000
|
var tmp3_safe_receiver = tmp_0;
|
|
2538
2001
|
var tmp_1;
|
|
2539
2002
|
if (tmp3_safe_receiver == null) {
|
|
2540
2003
|
tmp_1 = null;
|
|
2541
2004
|
} else {
|
|
2542
|
-
var tmp$ret$8;
|
|
2543
2005
|
// Inline function 'kotlin.let' call
|
|
2544
2006
|
// Inline function 'kotlin.contracts.contract' call
|
|
2545
|
-
var tmp$ret$7;
|
|
2546
2007
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2547
|
-
|
|
2548
|
-
tmp$ret$8 = tmp$ret$7;
|
|
2549
|
-
tmp_1 = tmp$ret$8;
|
|
2008
|
+
tmp_1 = new Param(new Identifier(param), new Primitive(tmp3_safe_receiver, false));
|
|
2550
2009
|
}
|
|
2551
2010
|
var tmp4_elvis_lhs = tmp_1;
|
|
2552
2011
|
var tmp_2;
|
|
@@ -2563,51 +2022,38 @@
|
|
|
2563
2022
|
tmp$ret$9 = tmp;
|
|
2564
2023
|
tmp0_mapTo.a(tmp$ret$9);
|
|
2565
2024
|
}
|
|
2566
|
-
|
|
2567
|
-
tmp$ret$11 = tmp$ret$10;
|
|
2568
|
-
return tmp$ret$11;
|
|
2025
|
+
return tmp0_mapTo;
|
|
2569
2026
|
}
|
|
2570
2027
|
function toName_0(_this__u8e3s4, $this, segments, method) {
|
|
2571
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2028
|
+
var tmp0_safe_receiver = _this__u8e3s4.r1l_1;
|
|
2572
2029
|
var tmp;
|
|
2573
2030
|
if (tmp0_safe_receiver == null) {
|
|
2574
2031
|
tmp = null;
|
|
2575
2032
|
} else {
|
|
2576
|
-
var tmp$ret$1;
|
|
2577
2033
|
// Inline function 'kotlin.let' call
|
|
2578
2034
|
// Inline function 'kotlin.contracts.contract' call
|
|
2579
|
-
var tmp$ret$0;
|
|
2580
2035
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2581
|
-
tmp
|
|
2582
|
-
tmp$ret$1 = tmp$ret$0;
|
|
2583
|
-
tmp = tmp$ret$1;
|
|
2036
|
+
tmp = Common_getInstance().f1u([tmp0_safe_receiver]);
|
|
2584
2037
|
}
|
|
2585
2038
|
var tmp1_elvis_lhs = tmp;
|
|
2586
2039
|
var tmp_0;
|
|
2587
2040
|
if (tmp1_elvis_lhs == null) {
|
|
2588
|
-
var tmp$ret$3;
|
|
2589
2041
|
// Inline function 'kotlin.let' call
|
|
2590
|
-
var tmp0_let = joinToString(segments, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda_0);
|
|
2591
2042
|
// Inline function 'kotlin.contracts.contract' call
|
|
2592
|
-
var tmp$ret$2;
|
|
2593
2043
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2594
|
-
|
|
2595
|
-
tmp$ret$3 = tmp$ret$2;
|
|
2596
|
-
tmp_0 = tmp$ret$3;
|
|
2044
|
+
tmp_0 = joinToString(segments, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda_0) + method.q4_1;
|
|
2597
2045
|
} else {
|
|
2598
2046
|
tmp_0 = tmp1_elvis_lhs;
|
|
2599
2047
|
}
|
|
2600
2048
|
return tmp_0;
|
|
2601
2049
|
}
|
|
2602
2050
|
function resolveParameters_1(_this__u8e3s4, $this) {
|
|
2603
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2051
|
+
var tmp0_safe_receiver = _this__u8e3s4.s1l_1;
|
|
2604
2052
|
var tmp;
|
|
2605
2053
|
if (tmp0_safe_receiver == null) {
|
|
2606
2054
|
tmp = null;
|
|
2607
2055
|
} else {
|
|
2608
|
-
var tmp$ret$3;
|
|
2609
2056
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2610
|
-
var tmp$ret$2;
|
|
2611
2057
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2612
2058
|
var tmp0_mapNotNullTo = ArrayList_init_$Create$();
|
|
2613
2059
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -2615,47 +2061,38 @@
|
|
|
2615
2061
|
while (tmp0_iterator.d()) {
|
|
2616
2062
|
var element = tmp0_iterator.e();
|
|
2617
2063
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2618
|
-
var tmp$ret$0;
|
|
2619
2064
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.resolveParameters.<anonymous>' call
|
|
2620
|
-
var tmp0_subject = element;
|
|
2621
2065
|
var tmp_0;
|
|
2622
|
-
if (
|
|
2066
|
+
if (element instanceof ParameterObject_0) {
|
|
2623
2067
|
tmp_0 = element;
|
|
2624
2068
|
} else {
|
|
2625
|
-
if (
|
|
2069
|
+
if (element instanceof ReferenceObject_0) {
|
|
2626
2070
|
tmp_0 = resolveParameterObject_0(element, $this);
|
|
2627
2071
|
} else {
|
|
2628
2072
|
noWhenBranchMatchedException();
|
|
2629
2073
|
}
|
|
2630
2074
|
}
|
|
2631
|
-
|
|
2632
|
-
var tmp0_safe_receiver_0 = tmp$ret$0;
|
|
2075
|
+
var tmp0_safe_receiver_0 = tmp_0;
|
|
2633
2076
|
if (tmp0_safe_receiver_0 == null)
|
|
2634
2077
|
null;
|
|
2635
2078
|
else {
|
|
2636
|
-
var tmp$ret$1;
|
|
2637
2079
|
// Inline function 'kotlin.let' call
|
|
2638
2080
|
// Inline function 'kotlin.contracts.contract' call
|
|
2639
2081
|
tmp0_mapNotNullTo.a(tmp0_safe_receiver_0);
|
|
2640
|
-
tmp$ret$1 = Unit_getInstance();
|
|
2641
2082
|
}
|
|
2642
2083
|
}
|
|
2643
|
-
tmp
|
|
2644
|
-
tmp$ret$3 = tmp$ret$2;
|
|
2645
|
-
tmp = tmp$ret$3;
|
|
2084
|
+
tmp = tmp0_mapNotNullTo;
|
|
2646
2085
|
}
|
|
2647
2086
|
var tmp1_elvis_lhs = tmp;
|
|
2648
2087
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2649
2088
|
}
|
|
2650
2089
|
function resolveParameters_2(_this__u8e3s4, $this) {
|
|
2651
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2090
|
+
var tmp0_safe_receiver = _this__u8e3s4.j1l_1;
|
|
2652
2091
|
var tmp;
|
|
2653
2092
|
if (tmp0_safe_receiver == null) {
|
|
2654
2093
|
tmp = null;
|
|
2655
2094
|
} else {
|
|
2656
|
-
var tmp$ret$3;
|
|
2657
2095
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2658
|
-
var tmp$ret$2;
|
|
2659
2096
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2660
2097
|
var tmp0_mapNotNullTo = ArrayList_init_$Create$();
|
|
2661
2098
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -2663,100 +2100,83 @@
|
|
|
2663
2100
|
while (tmp0_iterator.d()) {
|
|
2664
2101
|
var element = tmp0_iterator.e();
|
|
2665
2102
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2666
|
-
var tmp$ret$0;
|
|
2667
2103
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.resolveParameters.<anonymous>' call
|
|
2668
|
-
var tmp0_subject = element;
|
|
2669
2104
|
var tmp_0;
|
|
2670
|
-
if (
|
|
2105
|
+
if (element instanceof ParameterObject_0) {
|
|
2671
2106
|
tmp_0 = element;
|
|
2672
2107
|
} else {
|
|
2673
|
-
if (
|
|
2108
|
+
if (element instanceof ReferenceObject_0) {
|
|
2674
2109
|
tmp_0 = resolveParameterObject_0(element, $this);
|
|
2675
2110
|
} else {
|
|
2676
2111
|
noWhenBranchMatchedException();
|
|
2677
2112
|
}
|
|
2678
2113
|
}
|
|
2679
|
-
|
|
2680
|
-
var tmp0_safe_receiver_0 = tmp$ret$0;
|
|
2114
|
+
var tmp0_safe_receiver_0 = tmp_0;
|
|
2681
2115
|
if (tmp0_safe_receiver_0 == null)
|
|
2682
2116
|
null;
|
|
2683
2117
|
else {
|
|
2684
|
-
var tmp$ret$1;
|
|
2685
2118
|
// Inline function 'kotlin.let' call
|
|
2686
2119
|
// Inline function 'kotlin.contracts.contract' call
|
|
2687
2120
|
tmp0_mapNotNullTo.a(tmp0_safe_receiver_0);
|
|
2688
|
-
tmp$ret$1 = Unit_getInstance();
|
|
2689
2121
|
}
|
|
2690
2122
|
}
|
|
2691
|
-
tmp
|
|
2692
|
-
tmp$ret$3 = tmp$ret$2;
|
|
2693
|
-
tmp = tmp$ret$3;
|
|
2123
|
+
tmp = tmp0_mapNotNullTo;
|
|
2694
2124
|
}
|
|
2695
2125
|
var tmp1_elvis_lhs = tmp;
|
|
2696
2126
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2697
2127
|
}
|
|
2698
2128
|
function resolveParameterObject_0(_this__u8e3s4, $this) {
|
|
2699
|
-
var tmp0_safe_receiver = $this.
|
|
2700
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2701
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2129
|
+
var tmp0_safe_receiver = $this.v1u_1.n1k_1;
|
|
2130
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i1p_1;
|
|
2131
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n2(getReference_0(_this__u8e3s4, $this));
|
|
2702
2132
|
var tmp;
|
|
2703
2133
|
if (tmp2_safe_receiver == null) {
|
|
2704
2134
|
tmp = null;
|
|
2705
2135
|
} else {
|
|
2706
|
-
var tmp$ret$1;
|
|
2707
2136
|
// Inline function 'kotlin.let' call
|
|
2708
2137
|
// Inline function 'kotlin.contracts.contract' call
|
|
2709
|
-
var tmp$ret$0;
|
|
2710
2138
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.resolveParameterObject.<anonymous>' call
|
|
2711
|
-
var tmp0_subject = tmp2_safe_receiver;
|
|
2712
2139
|
var tmp_0;
|
|
2713
|
-
if (
|
|
2140
|
+
if (tmp2_safe_receiver instanceof ParameterObject_0) {
|
|
2714
2141
|
tmp_0 = tmp2_safe_receiver;
|
|
2715
2142
|
} else {
|
|
2716
|
-
if (
|
|
2143
|
+
if (tmp2_safe_receiver instanceof ReferenceObject_0) {
|
|
2717
2144
|
tmp_0 = resolveParameterObject_0(tmp2_safe_receiver, $this);
|
|
2718
2145
|
} else {
|
|
2719
2146
|
noWhenBranchMatchedException();
|
|
2720
2147
|
}
|
|
2721
2148
|
}
|
|
2722
|
-
tmp
|
|
2723
|
-
tmp$ret$1 = tmp$ret$0;
|
|
2724
|
-
tmp = tmp$ret$1;
|
|
2149
|
+
tmp = tmp_0;
|
|
2725
2150
|
}
|
|
2726
2151
|
return tmp;
|
|
2727
2152
|
}
|
|
2728
2153
|
function resolveSchemaObject_0(_this__u8e3s4, $this) {
|
|
2729
|
-
var tmp0_safe_receiver = $this.
|
|
2730
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2731
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2154
|
+
var tmp0_safe_receiver = $this.v1u_1.n1k_1;
|
|
2155
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g1p_1;
|
|
2156
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n2(getReference_0(_this__u8e3s4, $this));
|
|
2732
2157
|
var tmp;
|
|
2733
2158
|
if (tmp2_safe_receiver == null) {
|
|
2734
2159
|
tmp = null;
|
|
2735
2160
|
} else {
|
|
2736
|
-
var tmp$ret$1;
|
|
2737
2161
|
// Inline function 'kotlin.let' call
|
|
2738
2162
|
// Inline function 'kotlin.contracts.contract' call
|
|
2739
|
-
var tmp$ret$0;
|
|
2740
2163
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.resolveSchemaObject.<anonymous>' call
|
|
2741
|
-
var tmp0_subject = tmp2_safe_receiver;
|
|
2742
2164
|
var tmp_0;
|
|
2743
|
-
if (
|
|
2165
|
+
if (tmp2_safe_receiver instanceof SchemaObject_0) {
|
|
2744
2166
|
tmp_0 = to(_this__u8e3s4, tmp2_safe_receiver);
|
|
2745
2167
|
} else {
|
|
2746
|
-
if (
|
|
2168
|
+
if (tmp2_safe_receiver instanceof ReferenceObject_0) {
|
|
2747
2169
|
tmp_0 = resolveSchemaObject_0(tmp2_safe_receiver, $this);
|
|
2748
2170
|
} else {
|
|
2749
2171
|
noWhenBranchMatchedException();
|
|
2750
2172
|
}
|
|
2751
2173
|
}
|
|
2752
|
-
tmp
|
|
2753
|
-
tmp$ret$1 = tmp$ret$0;
|
|
2754
|
-
tmp = tmp$ret$1;
|
|
2174
|
+
tmp = tmp_0;
|
|
2755
2175
|
}
|
|
2756
2176
|
var tmp3_elvis_lhs = tmp;
|
|
2757
2177
|
var tmp_1;
|
|
2758
2178
|
if (tmp3_elvis_lhs == null) {
|
|
2759
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2179
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.g1n_1);
|
|
2760
2180
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2761
2181
|
} else {
|
|
2762
2182
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2764,37 +2184,32 @@
|
|
|
2764
2184
|
return tmp_1;
|
|
2765
2185
|
}
|
|
2766
2186
|
function resolveRequestBodyObject(_this__u8e3s4, $this) {
|
|
2767
|
-
var tmp0_safe_receiver = $this.
|
|
2768
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2769
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2187
|
+
var tmp0_safe_receiver = $this.v1u_1.n1k_1;
|
|
2188
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k1p_1;
|
|
2189
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n2(getReference_0(_this__u8e3s4, $this));
|
|
2770
2190
|
var tmp;
|
|
2771
2191
|
if (tmp2_safe_receiver == null) {
|
|
2772
2192
|
tmp = null;
|
|
2773
2193
|
} else {
|
|
2774
|
-
var tmp$ret$1;
|
|
2775
2194
|
// Inline function 'kotlin.let' call
|
|
2776
2195
|
// Inline function 'kotlin.contracts.contract' call
|
|
2777
|
-
var tmp$ret$0;
|
|
2778
2196
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.resolveRequestBodyObject.<anonymous>' call
|
|
2779
|
-
var tmp0_subject = tmp2_safe_receiver;
|
|
2780
2197
|
var tmp_0;
|
|
2781
|
-
if (
|
|
2198
|
+
if (tmp2_safe_receiver instanceof RequestBodyObject) {
|
|
2782
2199
|
tmp_0 = to(_this__u8e3s4, tmp2_safe_receiver);
|
|
2783
2200
|
} else {
|
|
2784
|
-
if (
|
|
2201
|
+
if (tmp2_safe_receiver instanceof ReferenceObject_0) {
|
|
2785
2202
|
tmp_0 = resolveRequestBodyObject(tmp2_safe_receiver, $this);
|
|
2786
2203
|
} else {
|
|
2787
2204
|
noWhenBranchMatchedException();
|
|
2788
2205
|
}
|
|
2789
2206
|
}
|
|
2790
|
-
tmp
|
|
2791
|
-
tmp$ret$1 = tmp$ret$0;
|
|
2792
|
-
tmp = tmp$ret$1;
|
|
2207
|
+
tmp = tmp_0;
|
|
2793
2208
|
}
|
|
2794
2209
|
var tmp3_elvis_lhs = tmp;
|
|
2795
2210
|
var tmp_1;
|
|
2796
2211
|
if (tmp3_elvis_lhs == null) {
|
|
2797
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2212
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.g1n_1);
|
|
2798
2213
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2799
2214
|
} else {
|
|
2800
2215
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2802,37 +2217,32 @@
|
|
|
2802
2217
|
return tmp_1;
|
|
2803
2218
|
}
|
|
2804
2219
|
function resolveResponseObject_0(_this__u8e3s4, $this) {
|
|
2805
|
-
var tmp0_safe_receiver = $this.
|
|
2806
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2807
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2220
|
+
var tmp0_safe_receiver = $this.v1u_1.n1k_1;
|
|
2221
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h1p_1;
|
|
2222
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n2(getReference_0(_this__u8e3s4, $this));
|
|
2808
2223
|
var tmp;
|
|
2809
2224
|
if (tmp2_safe_receiver == null) {
|
|
2810
2225
|
tmp = null;
|
|
2811
2226
|
} else {
|
|
2812
|
-
var tmp$ret$1;
|
|
2813
2227
|
// Inline function 'kotlin.let' call
|
|
2814
2228
|
// Inline function 'kotlin.contracts.contract' call
|
|
2815
|
-
var tmp$ret$0;
|
|
2816
2229
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.resolveResponseObject.<anonymous>' call
|
|
2817
|
-
var tmp0_subject = tmp2_safe_receiver;
|
|
2818
2230
|
var tmp_0;
|
|
2819
|
-
if (
|
|
2231
|
+
if (tmp2_safe_receiver instanceof ResponseObject_0) {
|
|
2820
2232
|
tmp_0 = to(_this__u8e3s4, tmp2_safe_receiver);
|
|
2821
2233
|
} else {
|
|
2822
|
-
if (
|
|
2234
|
+
if (tmp2_safe_receiver instanceof ReferenceObject_0) {
|
|
2823
2235
|
tmp_0 = resolveResponseObject_0(tmp2_safe_receiver, $this);
|
|
2824
2236
|
} else {
|
|
2825
2237
|
noWhenBranchMatchedException();
|
|
2826
2238
|
}
|
|
2827
2239
|
}
|
|
2828
|
-
tmp
|
|
2829
|
-
tmp$ret$1 = tmp$ret$0;
|
|
2830
|
-
tmp = tmp$ret$1;
|
|
2240
|
+
tmp = tmp_0;
|
|
2831
2241
|
}
|
|
2832
2242
|
var tmp3_elvis_lhs = tmp;
|
|
2833
2243
|
var tmp_1;
|
|
2834
2244
|
if (tmp3_elvis_lhs == null) {
|
|
2835
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2245
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.g1n_1);
|
|
2836
2246
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2837
2247
|
} else {
|
|
2838
2248
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2840,13 +2250,12 @@
|
|
|
2840
2250
|
return tmp_1;
|
|
2841
2251
|
}
|
|
2842
2252
|
function resolve_3(_this__u8e3s4, $this) {
|
|
2843
|
-
var tmp0_subject = _this__u8e3s4;
|
|
2844
2253
|
var tmp;
|
|
2845
|
-
if (
|
|
2254
|
+
if (_this__u8e3s4 instanceof SchemaObject_0) {
|
|
2846
2255
|
tmp = _this__u8e3s4;
|
|
2847
2256
|
} else {
|
|
2848
|
-
if (
|
|
2849
|
-
tmp = resolveSchemaObject_0(_this__u8e3s4, $this).
|
|
2257
|
+
if (_this__u8e3s4 instanceof ReferenceObject_0) {
|
|
2258
|
+
tmp = resolveSchemaObject_0(_this__u8e3s4, $this).i3_1;
|
|
2850
2259
|
} else {
|
|
2851
2260
|
noWhenBranchMatchedException();
|
|
2852
2261
|
}
|
|
@@ -2854,15 +2263,14 @@
|
|
|
2854
2263
|
return tmp;
|
|
2855
2264
|
}
|
|
2856
2265
|
function resolve_4(_this__u8e3s4, $this) {
|
|
2857
|
-
var tmp0_subject = _this__u8e3s4;
|
|
2858
2266
|
var tmp;
|
|
2859
|
-
if (
|
|
2267
|
+
if (_this__u8e3s4 instanceof SchemaObject_0) {
|
|
2860
2268
|
tmp = _this__u8e3s4;
|
|
2861
2269
|
} else {
|
|
2862
|
-
if (
|
|
2863
|
-
tmp = resolveSchemaObject_0(_this__u8e3s4, $this).
|
|
2270
|
+
if (_this__u8e3s4 instanceof ReferenceObject_0) {
|
|
2271
|
+
tmp = resolveSchemaObject_0(_this__u8e3s4, $this).i3_1;
|
|
2864
2272
|
} else {
|
|
2865
|
-
if (
|
|
2273
|
+
if (_this__u8e3s4 instanceof BooleanObject_0) {
|
|
2866
2274
|
throw new NotImplementedError();
|
|
2867
2275
|
} else {
|
|
2868
2276
|
noWhenBranchMatchedException();
|
|
@@ -2872,13 +2280,12 @@
|
|
|
2872
2280
|
return tmp;
|
|
2873
2281
|
}
|
|
2874
2282
|
function resolve_5(_this__u8e3s4, $this) {
|
|
2875
|
-
var tmp0_subject = _this__u8e3s4;
|
|
2876
2283
|
var tmp;
|
|
2877
|
-
if (
|
|
2284
|
+
if (_this__u8e3s4 instanceof RequestBodyObject) {
|
|
2878
2285
|
tmp = _this__u8e3s4;
|
|
2879
2286
|
} else {
|
|
2880
|
-
if (
|
|
2881
|
-
tmp = resolveRequestBodyObject(_this__u8e3s4, $this).
|
|
2287
|
+
if (_this__u8e3s4 instanceof ReferenceObject_0) {
|
|
2288
|
+
tmp = resolveRequestBodyObject(_this__u8e3s4, $this).i3_1;
|
|
2882
2289
|
} else {
|
|
2883
2290
|
noWhenBranchMatchedException();
|
|
2884
2291
|
}
|
|
@@ -2886,13 +2293,12 @@
|
|
|
2886
2293
|
return tmp;
|
|
2887
2294
|
}
|
|
2888
2295
|
function resolve_6(_this__u8e3s4, $this) {
|
|
2889
|
-
var tmp0_subject = _this__u8e3s4;
|
|
2890
2296
|
var tmp;
|
|
2891
|
-
if (
|
|
2297
|
+
if (_this__u8e3s4 instanceof ResponseObject_0) {
|
|
2892
2298
|
tmp = _this__u8e3s4;
|
|
2893
2299
|
} else {
|
|
2894
|
-
if (
|
|
2895
|
-
tmp = resolveResponseObject_0(_this__u8e3s4, $this).
|
|
2300
|
+
if (_this__u8e3s4 instanceof ReferenceObject_0) {
|
|
2301
|
+
tmp = resolveResponseObject_0(_this__u8e3s4, $this).i3_1;
|
|
2896
2302
|
} else {
|
|
2897
2303
|
noWhenBranchMatchedException();
|
|
2898
2304
|
}
|
|
@@ -2901,223 +2307,164 @@
|
|
|
2901
2307
|
}
|
|
2902
2308
|
function flatten_1(_this__u8e3s4, $this, name) {
|
|
2903
2309
|
var tmp;
|
|
2904
|
-
if (!(_this__u8e3s4.
|
|
2905
|
-
var tmp0_subject = _this__u8e3s4.h1n_1;
|
|
2310
|
+
if (!(_this__u8e3s4.z1n_1 == null)) {
|
|
2906
2311
|
var tmp_0;
|
|
2907
|
-
if (
|
|
2312
|
+
if (_this__u8e3s4.z1n_1 instanceof BooleanObject_0) {
|
|
2908
2313
|
tmp_0 = emptyList();
|
|
2909
2314
|
} else {
|
|
2910
|
-
tmp_0 = flatten_1(resolve_4(ensureNotNull(_this__u8e3s4.
|
|
2315
|
+
tmp_0 = flatten_1(resolve_4(ensureNotNull(_this__u8e3s4.z1n_1), $this), $this, name);
|
|
2911
2316
|
}
|
|
2912
2317
|
tmp = tmp_0;
|
|
2913
|
-
} else if (!(_this__u8e3s4.
|
|
2318
|
+
} else if (!(_this__u8e3s4.u1n_1 == null)) {
|
|
2914
2319
|
throw new NotImplementedError('An operation is not implemented: oneOf is not implemented');
|
|
2915
|
-
} else if (!(_this__u8e3s4.
|
|
2320
|
+
} else if (!(_this__u8e3s4.v1n_1 == null)) {
|
|
2916
2321
|
throw new NotImplementedError('An operation is not implemented: anyOf is not implemented');
|
|
2917
|
-
} else if (!(_this__u8e3s4.
|
|
2918
|
-
var tmp$ret$3;
|
|
2322
|
+
} else if (!(_this__u8e3s4.t1n_1 == null)) {
|
|
2919
2323
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2920
|
-
var tmp$ret$0;
|
|
2921
2324
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2922
|
-
var
|
|
2923
|
-
var
|
|
2924
|
-
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2925
|
-
var tmp2_flatMap = tmp$ret$0;
|
|
2926
|
-
var tmp$ret$2;
|
|
2325
|
+
var tmp0_elvis_lhs = _this__u8e3s4.t1n_1;
|
|
2326
|
+
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2927
2327
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2928
|
-
var
|
|
2929
|
-
var tmp0_iterator =
|
|
2328
|
+
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
2329
|
+
var tmp0_iterator = tmp1_flatMap.c();
|
|
2930
2330
|
while (tmp0_iterator.d()) {
|
|
2931
2331
|
var element = tmp0_iterator.e();
|
|
2932
|
-
var tmp$ret$1;
|
|
2933
2332
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
tmp$ret$2 = tmp1_flatMapTo;
|
|
2939
|
-
tmp$ret$3 = tmp$ret$2;
|
|
2940
|
-
var tmp_1 = listOf(new Type(name, new Shape(tmp$ret$3)));
|
|
2941
|
-
var tmp$ret$13;
|
|
2333
|
+
var list = toField_1(resolve_3(element, $this), $this, name);
|
|
2334
|
+
addAll(tmp0_flatMapTo, list);
|
|
2335
|
+
}
|
|
2336
|
+
var tmp_1 = listOf(new Type(name, new Shape(tmp0_flatMapTo)));
|
|
2942
2337
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2943
|
-
var
|
|
2944
|
-
var tmp$ret$12;
|
|
2338
|
+
var tmp2_flatMap = ensureNotNull(_this__u8e3s4.t1n_1);
|
|
2945
2339
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2946
|
-
var
|
|
2947
|
-
var tmp0_iterator_0 =
|
|
2340
|
+
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
2341
|
+
var tmp0_iterator_0 = tmp2_flatMap.c();
|
|
2948
2342
|
while (tmp0_iterator_0.d()) {
|
|
2949
2343
|
var element_0 = tmp0_iterator_0.e();
|
|
2950
|
-
var tmp$ret$11;
|
|
2951
2344
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2952
|
-
var tmp0_subject_0 = element_0;
|
|
2953
2345
|
var tmp_2;
|
|
2954
|
-
if (
|
|
2346
|
+
if (element_0 instanceof ReferenceObject_0) {
|
|
2955
2347
|
tmp_2 = emptyList();
|
|
2956
2348
|
} else {
|
|
2957
|
-
if (
|
|
2958
|
-
var tmp$ret$10;
|
|
2349
|
+
if (element_0 instanceof SchemaObject_0) {
|
|
2959
2350
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2960
|
-
var tmp$ret$4;
|
|
2961
2351
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2962
|
-
var
|
|
2963
|
-
var
|
|
2964
|
-
tmp$ret$4 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2965
|
-
var tmp2_flatMap_0 = tmp$ret$4;
|
|
2966
|
-
var tmp$ret$9;
|
|
2352
|
+
var tmp0_elvis_lhs_0 = element_0.y1n_1;
|
|
2353
|
+
var tmp1_flatMap_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2967
2354
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2968
|
-
var
|
|
2969
|
-
var tmp$ret$5;
|
|
2355
|
+
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
2970
2356
|
// Inline function 'kotlin.collections.iterator' call
|
|
2971
|
-
|
|
2972
|
-
var tmp0_iterator_1 = tmp$ret$5;
|
|
2357
|
+
var tmp0_iterator_1 = tmp1_flatMap_0.u().c();
|
|
2973
2358
|
while (tmp0_iterator_1.d()) {
|
|
2974
2359
|
var element_1 = tmp0_iterator_1.e();
|
|
2975
|
-
var tmp$ret$8;
|
|
2976
2360
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>.<anonymous>' call
|
|
2977
|
-
var tmp$ret$6;
|
|
2978
2361
|
// Inline function 'kotlin.collections.component1' call
|
|
2979
|
-
|
|
2980
|
-
var key = tmp$ret$6;
|
|
2981
|
-
var tmp$ret$7;
|
|
2362
|
+
var key = element_1.v();
|
|
2982
2363
|
// Inline function 'kotlin.collections.component2' call
|
|
2983
|
-
|
|
2984
|
-
var value = tmp$ret$7;
|
|
2985
|
-
var tmp0_subject_1 = value;
|
|
2364
|
+
var value = element_1.w();
|
|
2986
2365
|
var tmp_3;
|
|
2987
|
-
if (
|
|
2366
|
+
if (value instanceof ReferenceObject_0) {
|
|
2988
2367
|
tmp_3 = emptyList();
|
|
2989
2368
|
} else {
|
|
2990
|
-
if (
|
|
2991
|
-
tmp_3 = flatten_1(value, $this, Common_getInstance().
|
|
2369
|
+
if (value instanceof SchemaObject_0) {
|
|
2370
|
+
tmp_3 = flatten_1(value, $this, Common_getInstance().f1u([name, key]));
|
|
2992
2371
|
} else {
|
|
2993
2372
|
noWhenBranchMatchedException();
|
|
2994
2373
|
}
|
|
2995
2374
|
}
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
addAll(tmp1_flatMapTo_0, list_0);
|
|
2375
|
+
var list_0 = tmp_3;
|
|
2376
|
+
addAll(tmp0_flatMapTo_1, list_0);
|
|
2999
2377
|
}
|
|
3000
|
-
|
|
3001
|
-
tmp$ret$10 = tmp$ret$9;
|
|
3002
|
-
tmp_2 = tmp$ret$10;
|
|
2378
|
+
tmp_2 = tmp0_flatMapTo_1;
|
|
3003
2379
|
} else {
|
|
3004
2380
|
noWhenBranchMatchedException();
|
|
3005
2381
|
}
|
|
3006
2382
|
}
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
tmp$ret$13 = tmp$ret$12;
|
|
3013
|
-
tmp = plus(tmp_1, tmp$ret$13);
|
|
3014
|
-
} else if (!(_this__u8e3s4.a1o_1 == null)) {
|
|
3015
|
-
var tmp$ret$18;
|
|
2383
|
+
var list_1 = tmp_2;
|
|
2384
|
+
addAll(tmp0_flatMapTo_0, list_1);
|
|
2385
|
+
}
|
|
2386
|
+
tmp = plus(tmp_1, tmp0_flatMapTo_0);
|
|
2387
|
+
} else if (!(_this__u8e3s4.s1o_1 == null)) {
|
|
3016
2388
|
// Inline function 'kotlin.let' call
|
|
3017
|
-
var tmp$ret$16;
|
|
3018
2389
|
// Inline function 'kotlin.collections.map' call
|
|
3019
|
-
var
|
|
3020
|
-
var tmp$ret$15;
|
|
2390
|
+
var tmp3_map = ensureNotNull(_this__u8e3s4.s1o_1);
|
|
3021
2391
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3022
|
-
var
|
|
3023
|
-
var tmp0_iterator_2 =
|
|
2392
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp3_map, 10));
|
|
2393
|
+
var tmp0_iterator_2 = tmp3_map.c();
|
|
3024
2394
|
while (tmp0_iterator_2.d()) {
|
|
3025
2395
|
var item = tmp0_iterator_2.e();
|
|
3026
2396
|
var tmp$ret$14;
|
|
3027
2397
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
3028
|
-
tmp$ret$14 = item.
|
|
3029
|
-
|
|
2398
|
+
tmp$ret$14 = item.q14();
|
|
2399
|
+
tmp0_mapTo.a(tmp$ret$14);
|
|
3030
2400
|
}
|
|
3031
|
-
|
|
3032
|
-
tmp$ret$16 = tmp$ret$15;
|
|
3033
|
-
var tmp7_let = toSet(tmp$ret$16);
|
|
2401
|
+
var tmp4_let = toSet(tmp0_mapTo);
|
|
3034
2402
|
// Inline function 'kotlin.contracts.contract' call
|
|
3035
|
-
var tmp$ret$17;
|
|
3036
2403
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
3037
|
-
tmp
|
|
3038
|
-
tmp$ret$18 = tmp$ret$17;
|
|
3039
|
-
tmp = tmp$ret$18;
|
|
2404
|
+
tmp = listOf(new Enum(name, tmp4_let));
|
|
3040
2405
|
} else {
|
|
3041
|
-
var tmp1_subject = _this__u8e3s4.
|
|
3042
|
-
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.q4_1;
|
|
2406
|
+
var tmp1_subject = _this__u8e3s4.s1n_1;
|
|
3043
2407
|
var tmp_4;
|
|
3044
|
-
switch (
|
|
2408
|
+
switch (tmp1_subject == null ? -1 : tmp1_subject.r4_1) {
|
|
3045
2409
|
case -1:
|
|
3046
2410
|
case 5:
|
|
3047
|
-
var tmp$ret$25;
|
|
3048
2411
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3049
|
-
|
|
2412
|
+
|
|
3050
2413
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3051
|
-
|
|
3052
|
-
var tmp0_elvis_lhs_1 =
|
|
3053
|
-
|
|
3054
|
-
var tmp10_flatMap = tmp$ret$19;
|
|
3055
|
-
var tmp$ret$24;
|
|
2414
|
+
|
|
2415
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.y1n_1;
|
|
2416
|
+
var tmp6_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
3056
2417
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3057
|
-
|
|
3058
|
-
var
|
|
2418
|
+
|
|
2419
|
+
var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
|
|
3059
2420
|
// Inline function 'kotlin.collections.iterator' call
|
|
3060
|
-
|
|
3061
|
-
var tmp0_iterator_3 =
|
|
2421
|
+
|
|
2422
|
+
var tmp0_iterator_3 = tmp6_flatMap.u().c();
|
|
3062
2423
|
while (tmp0_iterator_3.d()) {
|
|
3063
2424
|
var element_2 = tmp0_iterator_3.e();
|
|
3064
|
-
var tmp$ret$23;
|
|
3065
2425
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
3066
|
-
var tmp$ret$21;
|
|
3067
2426
|
// Inline function 'kotlin.collections.component1' call
|
|
3068
|
-
|
|
3069
|
-
var key_0 = tmp$ret$21;
|
|
3070
|
-
var tmp$ret$22;
|
|
2427
|
+
var key_0 = element_2.v();
|
|
3071
2428
|
// Inline function 'kotlin.collections.component2' call
|
|
3072
|
-
|
|
3073
|
-
var value_0 = tmp$ret$22;
|
|
3074
|
-
var tmp0_subject_2 = value_0;
|
|
2429
|
+
var value_0 = element_2.w();
|
|
3075
2430
|
var tmp_5;
|
|
3076
|
-
if (
|
|
3077
|
-
tmp_5 = flatten_1(value_0, $this, Common_getInstance().
|
|
2431
|
+
if (value_0 instanceof SchemaObject_0) {
|
|
2432
|
+
tmp_5 = flatten_1(value_0, $this, Common_getInstance().f1u([name, key_0]));
|
|
3078
2433
|
} else {
|
|
3079
|
-
if (
|
|
2434
|
+
if (value_0 instanceof ReferenceObject_0) {
|
|
3080
2435
|
tmp_5 = emptyList();
|
|
3081
2436
|
} else {
|
|
3082
2437
|
noWhenBranchMatchedException();
|
|
3083
2438
|
}
|
|
3084
2439
|
}
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
addAll(tmp9_flatMapTo, list_2);
|
|
2440
|
+
var list_2 = tmp_5;
|
|
2441
|
+
addAll(tmp0_flatMapTo_2, list_2);
|
|
3088
2442
|
}
|
|
3089
|
-
tmp$ret$24 = tmp9_flatMapTo;
|
|
3090
|
-
tmp$ret$25 = tmp$ret$24;
|
|
3091
2443
|
|
|
3092
|
-
var fields =
|
|
2444
|
+
var fields = tmp0_flatMapTo_2;
|
|
3093
2445
|
var schema = listOf(new Type(name, new Shape(toField_1(_this__u8e3s4, $this, name))));
|
|
3094
2446
|
tmp_4 = plus(schema, fields);
|
|
3095
2447
|
break;
|
|
3096
2448
|
case 4:
|
|
3097
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
2449
|
+
var tmp2_safe_receiver = _this__u8e3s4.x1n_1;
|
|
3098
2450
|
var tmp_6;
|
|
3099
2451
|
if (tmp2_safe_receiver == null) {
|
|
3100
2452
|
tmp_6 = null;
|
|
3101
2453
|
} else {
|
|
3102
|
-
var tmp$ret$27;
|
|
3103
2454
|
// Inline function 'kotlin.let' call
|
|
3104
2455
|
// Inline function 'kotlin.contracts.contract' call
|
|
3105
|
-
var tmp$ret$26;
|
|
3106
2456
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
3107
|
-
var tmp0_subject_3 = tmp2_safe_receiver;
|
|
3108
2457
|
var tmp_7;
|
|
3109
|
-
if (
|
|
2458
|
+
if (tmp2_safe_receiver instanceof ReferenceObject_0) {
|
|
3110
2459
|
tmp_7 = emptyList();
|
|
3111
2460
|
} else {
|
|
3112
|
-
if (
|
|
3113
|
-
tmp_7 = flatten_1(tmp2_safe_receiver, $this, Common_getInstance().
|
|
2461
|
+
if (tmp2_safe_receiver instanceof SchemaObject_0) {
|
|
2462
|
+
tmp_7 = flatten_1(tmp2_safe_receiver, $this, Common_getInstance().f1u([name, 'array']));
|
|
3114
2463
|
} else {
|
|
3115
2464
|
noWhenBranchMatchedException();
|
|
3116
2465
|
}
|
|
3117
2466
|
}
|
|
3118
|
-
|
|
3119
|
-
tmp$ret$27 = tmp$ret$26;
|
|
3120
|
-
tmp_6 = tmp$ret$27;
|
|
2467
|
+
tmp_6 = tmp_7;
|
|
3121
2468
|
}
|
|
3122
2469
|
|
|
3123
2470
|
var tmp3_elvis_lhs = tmp_6;
|
|
@@ -3132,12 +2479,11 @@
|
|
|
3132
2479
|
return tmp;
|
|
3133
2480
|
}
|
|
3134
2481
|
function flatten_2(_this__u8e3s4, $this, name) {
|
|
3135
|
-
var tmp0_subject = _this__u8e3s4;
|
|
3136
2482
|
var tmp;
|
|
3137
|
-
if (
|
|
2483
|
+
if (_this__u8e3s4 instanceof ReferenceObject_0) {
|
|
3138
2484
|
tmp = emptyList();
|
|
3139
2485
|
} else {
|
|
3140
|
-
if (
|
|
2486
|
+
if (_this__u8e3s4 instanceof SchemaObject_0) {
|
|
3141
2487
|
tmp = flatten_1(_this__u8e3s4, $this, name);
|
|
3142
2488
|
} else {
|
|
3143
2489
|
noWhenBranchMatchedException();
|
|
@@ -3146,17 +2492,15 @@
|
|
|
3146
2492
|
return tmp;
|
|
3147
2493
|
}
|
|
3148
2494
|
function toReference_1(_this__u8e3s4, $this) {
|
|
3149
|
-
var tmp$ret$1;
|
|
3150
2495
|
// Inline function 'kotlin.let' call
|
|
3151
2496
|
var tmp0_let = resolveSchemaObject_0(_this__u8e3s4, $this);
|
|
3152
2497
|
// Inline function 'kotlin.contracts.contract' call
|
|
3153
|
-
var tmp$ret$0;
|
|
3154
2498
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
|
|
3155
|
-
var referencingObject = tmp0_let.
|
|
3156
|
-
var schema = tmp0_let.
|
|
2499
|
+
var referencingObject = tmp0_let.j3();
|
|
2500
|
+
var schema = tmp0_let.k3();
|
|
3157
2501
|
var tmp;
|
|
3158
|
-
if (!(schema.
|
|
3159
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2502
|
+
if (!(schema.z1n_1 == null)) {
|
|
2503
|
+
var additionalProperties = ensureNotNull(schema.z1n_1);
|
|
3160
2504
|
var tmp_0;
|
|
3161
2505
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
3162
2506
|
tmp_0 = new Any(false, true);
|
|
@@ -3172,25 +2516,24 @@
|
|
|
3172
2516
|
}
|
|
3173
2517
|
}
|
|
3174
2518
|
tmp = tmp_0;
|
|
3175
|
-
} else if (!(schema.
|
|
3176
|
-
tmp = new Custom(Common_getInstance().
|
|
3177
|
-
} else if (isPrimitive_0(schema.
|
|
3178
|
-
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.
|
|
2519
|
+
} else if (!(schema.s1o_1 == null)) {
|
|
2520
|
+
tmp = new Custom(Common_getInstance().f1u([getReference_0(referencingObject, $this)]), false, false);
|
|
2521
|
+
} else if (isPrimitive_0(schema.s1n_1)) {
|
|
2522
|
+
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.s1n_1), $this), false, false);
|
|
3179
2523
|
} else {
|
|
3180
|
-
var tmp0_subject = schema.
|
|
3181
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
2524
|
+
var tmp0_subject = schema.s1n_1;
|
|
3182
2525
|
var tmp_1;
|
|
3183
|
-
if (
|
|
3184
|
-
var items = schema.
|
|
2526
|
+
if ((tmp0_subject == null ? -1 : tmp0_subject.r4_1) === 4) {
|
|
2527
|
+
var items = schema.x1n_1;
|
|
3185
2528
|
var tmp_2;
|
|
3186
2529
|
if (items instanceof ReferenceObject_0) {
|
|
3187
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2530
|
+
tmp_2 = new Custom(Common_getInstance().f1u([getReference_0(items, $this)]), true);
|
|
3188
2531
|
} else {
|
|
3189
2532
|
if (items instanceof SchemaObject_0) {
|
|
3190
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2533
|
+
tmp_2 = new Custom(Common_getInstance().f1u([getReference_0(referencingObject, $this), 'Array']), true);
|
|
3191
2534
|
} else {
|
|
3192
2535
|
if (items == null) {
|
|
3193
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.
|
|
2536
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.g1n_1);
|
|
3194
2537
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
3195
2538
|
} else {
|
|
3196
2539
|
noWhenBranchMatchedException();
|
|
@@ -3199,18 +2542,16 @@
|
|
|
3199
2542
|
}
|
|
3200
2543
|
tmp_1 = tmp_2;
|
|
3201
2544
|
} else {
|
|
3202
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
2545
|
+
tmp_1 = new Custom(Common_getInstance().f1u([getReference_0(referencingObject, $this)]), false);
|
|
3203
2546
|
}
|
|
3204
2547
|
tmp = tmp_1;
|
|
3205
2548
|
}
|
|
3206
|
-
|
|
3207
|
-
tmp$ret$1 = tmp$ret$0;
|
|
3208
|
-
return tmp$ret$1;
|
|
2549
|
+
return tmp;
|
|
3209
2550
|
}
|
|
3210
2551
|
function toReference_2(_this__u8e3s4, $this, name) {
|
|
3211
2552
|
var tmp;
|
|
3212
|
-
if (!(_this__u8e3s4.
|
|
3213
|
-
var additionalProperties = ensureNotNull(_this__u8e3s4.
|
|
2553
|
+
if (!(_this__u8e3s4.z1n_1 == null)) {
|
|
2554
|
+
var additionalProperties = ensureNotNull(_this__u8e3s4.z1n_1);
|
|
3214
2555
|
var tmp_0;
|
|
3215
2556
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
3216
2557
|
tmp_0 = new Any(false, true);
|
|
@@ -3226,33 +2567,32 @@
|
|
|
3226
2567
|
}
|
|
3227
2568
|
}
|
|
3228
2569
|
tmp = tmp_0;
|
|
3229
|
-
} else if (!(_this__u8e3s4.
|
|
3230
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
2570
|
+
} else if (!(_this__u8e3s4.s1o_1 == null)) {
|
|
2571
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.z1n_1 == null));
|
|
3231
2572
|
} else {
|
|
3232
|
-
var type = _this__u8e3s4.
|
|
3233
|
-
var tmp0 = type == null ? -1 : type.q4_1;
|
|
2573
|
+
var type = _this__u8e3s4.s1n_1;
|
|
3234
2574
|
var tmp_1;
|
|
3235
|
-
switch (
|
|
2575
|
+
switch (type == null ? -1 : type.r4_1) {
|
|
3236
2576
|
case 0:
|
|
3237
2577
|
case 1:
|
|
3238
2578
|
case 2:
|
|
3239
2579
|
case 3:
|
|
3240
|
-
tmp_1 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.
|
|
2580
|
+
tmp_1 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.z1n_1 == null));
|
|
3241
2581
|
break;
|
|
3242
2582
|
case -1:
|
|
3243
2583
|
case 5:
|
|
3244
2584
|
var tmp_2;
|
|
3245
|
-
var tmp_3 = _this__u8e3s4.
|
|
2585
|
+
var tmp_3 = _this__u8e3s4.z1n_1;
|
|
3246
2586
|
if (tmp_3 instanceof BooleanObject_0) {
|
|
3247
|
-
tmp_2 = new Any(false, !(_this__u8e3s4.
|
|
2587
|
+
tmp_2 = new Any(false, !(_this__u8e3s4.z1n_1 == null));
|
|
3248
2588
|
} else {
|
|
3249
|
-
tmp_2 = new Custom(name, false, !(_this__u8e3s4.
|
|
2589
|
+
tmp_2 = new Custom(name, false, !(_this__u8e3s4.z1n_1 == null));
|
|
3250
2590
|
}
|
|
3251
2591
|
|
|
3252
2592
|
tmp_1 = tmp_2;
|
|
3253
2593
|
break;
|
|
3254
2594
|
case 4:
|
|
3255
|
-
var it = _this__u8e3s4.
|
|
2595
|
+
var it = _this__u8e3s4.x1n_1;
|
|
3256
2596
|
var tmp_4;
|
|
3257
2597
|
if (it instanceof ReferenceObject_0) {
|
|
3258
2598
|
tmp_4 = toIterable_0(toReference_1(it, $this));
|
|
@@ -3280,64 +2620,55 @@
|
|
|
3280
2620
|
return tmp;
|
|
3281
2621
|
}
|
|
3282
2622
|
function toOperationList_0(_this__u8e3s4, $this) {
|
|
3283
|
-
var tmp$ret$2;
|
|
3284
2623
|
// Inline function 'kotlin.collections.associateWith' call
|
|
3285
|
-
var tmp0_associateWith =
|
|
3286
|
-
var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(tmp0_associateWith
|
|
3287
|
-
var tmp$ret$1;
|
|
2624
|
+
var tmp0_associateWith = get_entries();
|
|
2625
|
+
var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(collectionSizeOrDefault(tmp0_associateWith, 10)), 16));
|
|
3288
2626
|
// Inline function 'kotlin.collections.associateWithTo' call
|
|
3289
|
-
var
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
while (inductionVariable < last) {
|
|
3293
|
-
var element = indexedObject[inductionVariable];
|
|
3294
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
2627
|
+
var tmp0_iterator = tmp0_associateWith.c();
|
|
2628
|
+
while (tmp0_iterator.d()) {
|
|
2629
|
+
var element = tmp0_iterator.e();
|
|
3295
2630
|
var tmp$ret$0;
|
|
3296
2631
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toOperationList.<anonymous>' call
|
|
3297
|
-
var tmp0_subject = element;
|
|
3298
|
-
var tmp0 = tmp0_subject.q4_1;
|
|
3299
2632
|
var tmp;
|
|
3300
|
-
switch (
|
|
2633
|
+
switch (element.r4_1) {
|
|
3301
2634
|
case 0:
|
|
3302
|
-
tmp = _this__u8e3s4.
|
|
2635
|
+
tmp = _this__u8e3s4.a1l_1;
|
|
3303
2636
|
break;
|
|
3304
2637
|
case 1:
|
|
3305
|
-
tmp = _this__u8e3s4.
|
|
2638
|
+
tmp = _this__u8e3s4.c1l_1;
|
|
3306
2639
|
break;
|
|
3307
2640
|
case 2:
|
|
3308
|
-
tmp = _this__u8e3s4.
|
|
2641
|
+
tmp = _this__u8e3s4.b1l_1;
|
|
3309
2642
|
break;
|
|
3310
2643
|
case 3:
|
|
3311
|
-
tmp = _this__u8e3s4.
|
|
2644
|
+
tmp = _this__u8e3s4.d1l_1;
|
|
3312
2645
|
break;
|
|
3313
2646
|
case 4:
|
|
3314
|
-
tmp = _this__u8e3s4.
|
|
2647
|
+
tmp = _this__u8e3s4.e1l_1;
|
|
3315
2648
|
break;
|
|
3316
2649
|
case 5:
|
|
3317
|
-
tmp = _this__u8e3s4.
|
|
2650
|
+
tmp = _this__u8e3s4.f1l_1;
|
|
3318
2651
|
break;
|
|
3319
2652
|
case 6:
|
|
3320
|
-
tmp = _this__u8e3s4.
|
|
2653
|
+
tmp = _this__u8e3s4.g1l_1;
|
|
3321
2654
|
break;
|
|
3322
2655
|
case 7:
|
|
3323
|
-
tmp = _this__u8e3s4.
|
|
2656
|
+
tmp = _this__u8e3s4.h1l_1;
|
|
3324
2657
|
break;
|
|
3325
2658
|
default:
|
|
3326
2659
|
noWhenBranchMatchedException();
|
|
3327
2660
|
break;
|
|
3328
2661
|
}
|
|
3329
2662
|
tmp$ret$0 = tmp;
|
|
3330
|
-
result.
|
|
2663
|
+
result.l3(element, tmp$ret$0);
|
|
3331
2664
|
}
|
|
3332
|
-
|
|
3333
|
-
tmp$ret$2 = tmp$ret$1;
|
|
3334
|
-
return filterNotNullValues_0(tmp$ret$2);
|
|
2665
|
+
return filterNotNullValues_0(result);
|
|
3335
2666
|
}
|
|
3336
2667
|
function getReference_0(_this__u8e3s4, $this) {
|
|
3337
|
-
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
2668
|
+
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.g1n_1), ['/']), 3);
|
|
3338
2669
|
var tmp;
|
|
3339
2670
|
if (tmp0_elvis_lhs == null) {
|
|
3340
|
-
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
2671
|
+
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.g1n_1);
|
|
3341
2672
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
3342
2673
|
} else {
|
|
3343
2674
|
tmp = tmp0_elvis_lhs;
|
|
@@ -3345,10 +2676,8 @@
|
|
|
3345
2676
|
return tmp;
|
|
3346
2677
|
}
|
|
3347
2678
|
function toPrimitive_0(_this__u8e3s4, $this) {
|
|
3348
|
-
var tmp0_subject = _this__u8e3s4;
|
|
3349
|
-
var tmp0 = tmp0_subject.q4_1;
|
|
3350
2679
|
var tmp;
|
|
3351
|
-
switch (
|
|
2680
|
+
switch (_this__u8e3s4.r4_1) {
|
|
3352
2681
|
case 0:
|
|
3353
2682
|
tmp = Type_String_getInstance();
|
|
3354
2683
|
break;
|
|
@@ -3367,65 +2696,49 @@
|
|
|
3367
2696
|
return tmp;
|
|
3368
2697
|
}
|
|
3369
2698
|
function toField_1(_this__u8e3s4, $this, name) {
|
|
3370
|
-
var tmp$ret$6;
|
|
3371
2699
|
// Inline function 'kotlin.collections.map' call
|
|
3372
|
-
var tmp$ret$0;
|
|
3373
2700
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3374
|
-
var
|
|
3375
|
-
var
|
|
3376
|
-
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3377
|
-
var tmp2_map = tmp$ret$0;
|
|
3378
|
-
var tmp$ret$5;
|
|
2701
|
+
var tmp0_elvis_lhs = _this__u8e3s4.y1n_1;
|
|
2702
|
+
var tmp1_map = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3379
2703
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3380
|
-
var
|
|
3381
|
-
var tmp$ret$1;
|
|
2704
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.f());
|
|
3382
2705
|
// Inline function 'kotlin.collections.iterator' call
|
|
3383
|
-
|
|
3384
|
-
var tmp0_iterator = tmp$ret$1;
|
|
2706
|
+
var tmp0_iterator = tmp1_map.u().c();
|
|
3385
2707
|
while (tmp0_iterator.d()) {
|
|
3386
2708
|
var item = tmp0_iterator.e();
|
|
3387
2709
|
var tmp$ret$4;
|
|
3388
2710
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3389
|
-
var tmp$ret$2;
|
|
3390
2711
|
// Inline function 'kotlin.collections.component1' call
|
|
3391
|
-
|
|
3392
|
-
var key = tmp$ret$2;
|
|
3393
|
-
var tmp$ret$3;
|
|
2712
|
+
var key = item.v();
|
|
3394
2713
|
// Inline function 'kotlin.collections.component2' call
|
|
3395
|
-
|
|
3396
|
-
var value = tmp$ret$3;
|
|
3397
|
-
var tmp0_subject = value;
|
|
2714
|
+
var value = item.w();
|
|
3398
2715
|
var tmp;
|
|
3399
|
-
if (
|
|
2716
|
+
if (value instanceof SchemaObject_0) {
|
|
3400
2717
|
var tmp_0 = new Identifier(key);
|
|
3401
|
-
var tmp1_subject = value.
|
|
3402
|
-
var
|
|
3403
|
-
var
|
|
3404
|
-
var
|
|
3405
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.i1(key);
|
|
2718
|
+
var tmp1_subject = value.s1n_1;
|
|
2719
|
+
var tmp_1 = (tmp1_subject == null ? -1 : tmp1_subject.r4_1) === 4 ? toReference_2(value, $this, Common_getInstance().f1u([name, key, 'Array'])) : toReference_2(value, $this, Common_getInstance().f1u([name, key]));
|
|
2720
|
+
var tmp2_safe_receiver = _this__u8e3s4.r1o_1;
|
|
2721
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.j1(key);
|
|
3406
2722
|
tmp = new Field(tmp_0, tmp_1, !(tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs));
|
|
3407
2723
|
} else {
|
|
3408
|
-
if (
|
|
2724
|
+
if (value instanceof ReferenceObject_0) {
|
|
3409
2725
|
var tmp_2 = new Identifier(key);
|
|
3410
2726
|
var tmp_3 = new Custom(getReference_0(value, $this), false);
|
|
3411
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
3412
|
-
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
2727
|
+
var tmp4_safe_receiver = _this__u8e3s4.r1o_1;
|
|
2728
|
+
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.j1(key);
|
|
3413
2729
|
tmp = new Field(tmp_2, tmp_3, !(tmp5_elvis_lhs == null ? false : tmp5_elvis_lhs));
|
|
3414
2730
|
} else {
|
|
3415
2731
|
noWhenBranchMatchedException();
|
|
3416
2732
|
}
|
|
3417
2733
|
}
|
|
3418
2734
|
tmp$ret$4 = tmp;
|
|
3419
|
-
|
|
2735
|
+
tmp0_mapTo.a(tmp$ret$4);
|
|
3420
2736
|
}
|
|
3421
|
-
|
|
3422
|
-
tmp$ret$6 = tmp$ret$5;
|
|
3423
|
-
return tmp$ret$6;
|
|
2737
|
+
return tmp0_mapTo;
|
|
3424
2738
|
}
|
|
3425
2739
|
function toField_2(_this__u8e3s4, $this, name) {
|
|
3426
|
-
var tmp$ret$1;
|
|
3427
2740
|
// Inline function 'kotlin.let' call
|
|
3428
|
-
var s = _this__u8e3s4.
|
|
2741
|
+
var s = _this__u8e3s4.j1m_1;
|
|
3429
2742
|
var tmp;
|
|
3430
2743
|
if (s instanceof ReferenceObject_0) {
|
|
3431
2744
|
tmp = toReference_1(s, $this);
|
|
@@ -3442,28 +2755,25 @@
|
|
|
3442
2755
|
}
|
|
3443
2756
|
var tmp0_let = tmp;
|
|
3444
2757
|
// Inline function 'kotlin.contracts.contract' call
|
|
3445
|
-
var tmp$ret$0;
|
|
3446
2758
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3447
|
-
var tmp_0 = new Identifier(_this__u8e3s4.
|
|
3448
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3449
|
-
|
|
3450
|
-
tmp$ret$1 = tmp$ret$0;
|
|
3451
|
-
return tmp$ret$1;
|
|
2759
|
+
var tmp_0 = new Identifier(_this__u8e3s4.n1m_1);
|
|
2760
|
+
var tmp0_elvis_lhs = _this__u8e3s4.d1m_1;
|
|
2761
|
+
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3452
2762
|
}
|
|
3453
2763
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
3454
|
-
this.
|
|
3455
|
-
this.
|
|
3456
|
-
this.
|
|
3457
|
-
this.
|
|
2764
|
+
this.w1u_1 = path;
|
|
2765
|
+
this.x1u_1 = pathItem;
|
|
2766
|
+
this.y1u_1 = method;
|
|
2767
|
+
this.z1u_1 = operation;
|
|
3458
2768
|
}
|
|
3459
2769
|
protoOf(FlattenRequest_0).toString = function () {
|
|
3460
|
-
return 'FlattenRequest(path=' + new Path_0(this.
|
|
2770
|
+
return 'FlattenRequest(path=' + new Path_0(this.w1u_1) + ', pathItem=' + this.x1u_1 + ', method=' + this.y1u_1 + ', operation=' + this.z1u_1 + ')';
|
|
3461
2771
|
};
|
|
3462
2772
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
3463
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3464
|
-
result = imul(result, 31) + this.
|
|
3465
|
-
result = imul(result, 31) + this.
|
|
3466
|
-
result = imul(result, 31) + this.
|
|
2773
|
+
var result = Path__hashCode_impl_go73kd_0(this.w1u_1);
|
|
2774
|
+
result = imul(result, 31) + this.x1u_1.hashCode() | 0;
|
|
2775
|
+
result = imul(result, 31) + this.y1u_1.hashCode() | 0;
|
|
2776
|
+
result = imul(result, 31) + this.z1u_1.hashCode() | 0;
|
|
3467
2777
|
return result;
|
|
3468
2778
|
};
|
|
3469
2779
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -3472,109 +2782,80 @@
|
|
|
3472
2782
|
if (!(other instanceof FlattenRequest_0))
|
|
3473
2783
|
return false;
|
|
3474
2784
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
3475
|
-
if (!(this.
|
|
2785
|
+
if (!(this.w1u_1 === tmp0_other_with_cast.w1u_1))
|
|
3476
2786
|
return false;
|
|
3477
|
-
if (!this.
|
|
2787
|
+
if (!this.x1u_1.equals(tmp0_other_with_cast.x1u_1))
|
|
3478
2788
|
return false;
|
|
3479
|
-
if (!this.
|
|
2789
|
+
if (!this.y1u_1.equals(tmp0_other_with_cast.y1u_1))
|
|
3480
2790
|
return false;
|
|
3481
|
-
if (!this.
|
|
2791
|
+
if (!this.z1u_1.equals(tmp0_other_with_cast.z1u_1))
|
|
3482
2792
|
return false;
|
|
3483
2793
|
return true;
|
|
3484
2794
|
};
|
|
3485
2795
|
function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
3486
|
-
var tmp$ret$14;
|
|
3487
2796
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3488
|
-
var tmp$ret$11;
|
|
3489
2797
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3490
|
-
var
|
|
3491
|
-
var tmp$ret$10;
|
|
2798
|
+
var tmp0_flatMap = _this__u8e3s4.m1k_1;
|
|
3492
2799
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3493
2800
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
3494
|
-
var tmp$ret$0;
|
|
3495
2801
|
// Inline function 'kotlin.collections.iterator' call
|
|
3496
|
-
|
|
3497
|
-
var tmp0_iterator = tmp$ret$0;
|
|
2802
|
+
var tmp0_iterator = tmp0_flatMap.u().c();
|
|
3498
2803
|
while (tmp0_iterator.d()) {
|
|
3499
2804
|
var element = tmp0_iterator.e();
|
|
3500
|
-
var tmp$ret$9;
|
|
3501
2805
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
3502
|
-
var tmp$ret$1;
|
|
3503
2806
|
// Inline function 'kotlin.collections.component1' call
|
|
3504
|
-
|
|
3505
|
-
var path = tmp$ret$1;
|
|
3506
|
-
var tmp$ret$2;
|
|
2807
|
+
var path = element.v().u1k_1;
|
|
3507
2808
|
// Inline function 'kotlin.collections.component2' call
|
|
3508
|
-
|
|
3509
|
-
var pathItem = tmp$ret$2;
|
|
3510
|
-
var tmp$ret$8;
|
|
2809
|
+
var pathItem = element.w();
|
|
3511
2810
|
// Inline function 'kotlin.collections.map' call
|
|
3512
|
-
var
|
|
3513
|
-
var tmp$ret$7;
|
|
2811
|
+
var tmp0_map = toOperationList_0(pathItem, $this);
|
|
3514
2812
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3515
|
-
var tmp0_mapTo = ArrayList_init_$Create$_0(
|
|
3516
|
-
var tmp$ret$3;
|
|
2813
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp0_map.f());
|
|
3517
2814
|
// Inline function 'kotlin.collections.iterator' call
|
|
3518
|
-
|
|
3519
|
-
var tmp0_iterator_0 = tmp$ret$3;
|
|
2815
|
+
var tmp0_iterator_0 = tmp0_map.u().c();
|
|
3520
2816
|
while (tmp0_iterator_0.d()) {
|
|
3521
2817
|
var item = tmp0_iterator_0.e();
|
|
3522
2818
|
var tmp$ret$6;
|
|
3523
2819
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>.<anonymous>' call
|
|
3524
|
-
var tmp$ret$4;
|
|
3525
2820
|
// Inline function 'kotlin.collections.component1' call
|
|
3526
|
-
|
|
3527
|
-
var method = tmp$ret$4;
|
|
3528
|
-
var tmp$ret$5;
|
|
2821
|
+
var method = item.v();
|
|
3529
2822
|
// Inline function 'kotlin.collections.component2' call
|
|
3530
|
-
|
|
3531
|
-
var operation = tmp$ret$5;
|
|
2823
|
+
var operation = item.w();
|
|
3532
2824
|
tmp$ret$6 = new FlattenRequest_0(path, pathItem, method, operation);
|
|
3533
2825
|
tmp0_mapTo.a(tmp$ret$6);
|
|
3534
2826
|
}
|
|
3535
|
-
|
|
3536
|
-
tmp$ret$8 = tmp$ret$7;
|
|
3537
|
-
tmp$ret$9 = tmp$ret$8;
|
|
3538
|
-
var list = tmp$ret$9;
|
|
2827
|
+
var list = tmp0_mapTo;
|
|
3539
2828
|
addAll(tmp0_flatMapTo, list);
|
|
3540
2829
|
}
|
|
3541
|
-
tmp$ret$10 = tmp0_flatMapTo;
|
|
3542
|
-
tmp$ret$11 = tmp$ret$10;
|
|
3543
|
-
var tmp3_flatMap = tmp$ret$11;
|
|
3544
|
-
var tmp$ret$13;
|
|
3545
2830
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3546
|
-
var
|
|
3547
|
-
var tmp0_iterator_1 =
|
|
2831
|
+
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
2832
|
+
var tmp0_iterator_1 = tmp0_flatMapTo.c();
|
|
3548
2833
|
while (tmp0_iterator_1.d()) {
|
|
3549
2834
|
var element_0 = tmp0_iterator_1.e();
|
|
3550
|
-
var tmp$ret$12;
|
|
3551
2835
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
addAll(tmp2_flatMapTo, list_0);
|
|
2836
|
+
var list_0 = f(element_0);
|
|
2837
|
+
addAll(tmp0_flatMapTo_0, list_0);
|
|
3555
2838
|
}
|
|
3556
|
-
|
|
3557
|
-
tmp$ret$14 = tmp$ret$13;
|
|
3558
|
-
return tmp$ret$14;
|
|
2839
|
+
return tmp0_flatMapTo_0;
|
|
3559
2840
|
}
|
|
3560
2841
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
3561
|
-
this.
|
|
3562
|
-
this.
|
|
3563
|
-
this.
|
|
3564
|
-
this.
|
|
3565
|
-
this.
|
|
3566
|
-
this.
|
|
2842
|
+
this.a1v_1 = path;
|
|
2843
|
+
this.b1v_1 = pathItem;
|
|
2844
|
+
this.c1v_1 = method;
|
|
2845
|
+
this.d1v_1 = operation;
|
|
2846
|
+
this.e1v_1 = statusCode;
|
|
2847
|
+
this.f1v_1 = response;
|
|
3567
2848
|
}
|
|
3568
2849
|
protoOf(FlattenResponse_0).toString = function () {
|
|
3569
|
-
return 'FlattenResponse(path=' + new Path_0(this.
|
|
2850
|
+
return 'FlattenResponse(path=' + new Path_0(this.a1v_1) + ', pathItem=' + this.b1v_1 + ', method=' + this.c1v_1 + ', operation=' + this.d1v_1 + ', statusCode=' + new StatusCode_0(this.e1v_1) + ', response=' + this.f1v_1 + ')';
|
|
3570
2851
|
};
|
|
3571
2852
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
3572
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3573
|
-
result = imul(result, 31) + this.
|
|
3574
|
-
result = imul(result, 31) + this.
|
|
3575
|
-
result = imul(result, 31) + this.
|
|
3576
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.
|
|
3577
|
-
result = imul(result, 31) + hashCode(this.
|
|
2853
|
+
var result = Path__hashCode_impl_go73kd_0(this.a1v_1);
|
|
2854
|
+
result = imul(result, 31) + this.b1v_1.hashCode() | 0;
|
|
2855
|
+
result = imul(result, 31) + this.c1v_1.hashCode() | 0;
|
|
2856
|
+
result = imul(result, 31) + this.d1v_1.hashCode() | 0;
|
|
2857
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.e1v_1) | 0;
|
|
2858
|
+
result = imul(result, 31) + hashCode(this.f1v_1) | 0;
|
|
3578
2859
|
return result;
|
|
3579
2860
|
};
|
|
3580
2861
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -3583,139 +2864,95 @@
|
|
|
3583
2864
|
if (!(other instanceof FlattenResponse_0))
|
|
3584
2865
|
return false;
|
|
3585
2866
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
3586
|
-
if (!(this.
|
|
2867
|
+
if (!(this.a1v_1 === tmp0_other_with_cast.a1v_1))
|
|
3587
2868
|
return false;
|
|
3588
|
-
if (!this.
|
|
2869
|
+
if (!this.b1v_1.equals(tmp0_other_with_cast.b1v_1))
|
|
3589
2870
|
return false;
|
|
3590
|
-
if (!this.
|
|
2871
|
+
if (!this.c1v_1.equals(tmp0_other_with_cast.c1v_1))
|
|
3591
2872
|
return false;
|
|
3592
|
-
if (!this.
|
|
2873
|
+
if (!this.d1v_1.equals(tmp0_other_with_cast.d1v_1))
|
|
3593
2874
|
return false;
|
|
3594
|
-
if (!(this.
|
|
2875
|
+
if (!(this.e1v_1 === tmp0_other_with_cast.e1v_1))
|
|
3595
2876
|
return false;
|
|
3596
|
-
if (!equals(this.
|
|
2877
|
+
if (!equals(this.f1v_1, tmp0_other_with_cast.f1v_1))
|
|
3597
2878
|
return false;
|
|
3598
2879
|
return true;
|
|
3599
2880
|
};
|
|
3600
2881
|
function flatMapResponses_0(_this__u8e3s4, $this, f) {
|
|
3601
|
-
var tmp$ret$21;
|
|
3602
2882
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3603
|
-
var tmp$ret$18;
|
|
3604
2883
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3605
|
-
var
|
|
3606
|
-
var tmp$ret$17;
|
|
2884
|
+
var tmp0_flatMap = _this__u8e3s4.m1k_1;
|
|
3607
2885
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3608
2886
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
3609
|
-
var tmp$ret$0;
|
|
3610
2887
|
// Inline function 'kotlin.collections.iterator' call
|
|
3611
|
-
|
|
3612
|
-
var tmp0_iterator = tmp$ret$0;
|
|
2888
|
+
var tmp0_iterator = tmp0_flatMap.u().c();
|
|
3613
2889
|
while (tmp0_iterator.d()) {
|
|
3614
2890
|
var element = tmp0_iterator.e();
|
|
3615
|
-
var tmp$ret$16;
|
|
3616
2891
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
3617
|
-
var tmp$ret$1;
|
|
3618
2892
|
// Inline function 'kotlin.collections.component1' call
|
|
3619
|
-
|
|
3620
|
-
var path = tmp$ret$1;
|
|
3621
|
-
var tmp$ret$2;
|
|
2893
|
+
var path = element.v().u1k_1;
|
|
3622
2894
|
// Inline function 'kotlin.collections.component2' call
|
|
3623
|
-
|
|
3624
|
-
var pathItem = tmp$ret$2;
|
|
3625
|
-
var tmp$ret$15;
|
|
2895
|
+
var pathItem = element.w();
|
|
3626
2896
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3627
|
-
var
|
|
3628
|
-
var tmp$ret$14;
|
|
2897
|
+
var tmp0_flatMap_0 = toOperationList_0(pathItem, $this);
|
|
3629
2898
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3630
2899
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
3631
|
-
var tmp$ret$3;
|
|
3632
2900
|
// Inline function 'kotlin.collections.iterator' call
|
|
3633
|
-
|
|
3634
|
-
var tmp0_iterator_0 = tmp$ret$3;
|
|
2901
|
+
var tmp0_iterator_0 = tmp0_flatMap_0.u().c();
|
|
3635
2902
|
while (tmp0_iterator_0.d()) {
|
|
3636
2903
|
var element_0 = tmp0_iterator_0.e();
|
|
3637
|
-
var tmp$ret$13;
|
|
3638
2904
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>' call
|
|
3639
|
-
var tmp$ret$4;
|
|
3640
2905
|
// Inline function 'kotlin.collections.component1' call
|
|
3641
|
-
|
|
3642
|
-
var method = tmp$ret$4;
|
|
3643
|
-
var tmp$ret$5;
|
|
2906
|
+
var method = element_0.v();
|
|
3644
2907
|
// Inline function 'kotlin.collections.component2' call
|
|
3645
|
-
|
|
3646
|
-
var operation = tmp$ret$5;
|
|
3647
|
-
var tmp$ret$12;
|
|
2908
|
+
var operation = element_0.w();
|
|
3648
2909
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3649
|
-
var tmp0_safe_receiver = operation.
|
|
2910
|
+
var tmp0_safe_receiver = operation.u1l_1;
|
|
3650
2911
|
var tmp;
|
|
3651
2912
|
if (tmp0_safe_receiver == null) {
|
|
3652
2913
|
tmp = null;
|
|
3653
2914
|
} else {
|
|
3654
|
-
var tmp$ret$11;
|
|
3655
2915
|
// Inline function 'kotlin.collections.map' call
|
|
3656
|
-
var tmp$ret$10;
|
|
3657
2916
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3658
2917
|
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp0_safe_receiver.f());
|
|
3659
|
-
var tmp$ret$6;
|
|
3660
2918
|
// Inline function 'kotlin.collections.iterator' call
|
|
3661
|
-
|
|
3662
|
-
var tmp0_iterator_1 = tmp$ret$6;
|
|
2919
|
+
var tmp0_iterator_1 = tmp0_safe_receiver.u().c();
|
|
3663
2920
|
while (tmp0_iterator_1.d()) {
|
|
3664
2921
|
var item = tmp0_iterator_1.e();
|
|
3665
2922
|
var tmp$ret$9;
|
|
3666
2923
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
3667
|
-
var tmp$ret$7;
|
|
3668
2924
|
// Inline function 'kotlin.collections.component1' call
|
|
3669
|
-
|
|
3670
|
-
var statusCode = tmp$ret$7;
|
|
3671
|
-
var tmp$ret$8;
|
|
2925
|
+
var statusCode = item.v().w1o_1;
|
|
3672
2926
|
// Inline function 'kotlin.collections.component2' call
|
|
3673
|
-
|
|
3674
|
-
var response = tmp$ret$8;
|
|
2927
|
+
var response = item.w();
|
|
3675
2928
|
tmp$ret$9 = new FlattenResponse_0(path, pathItem, method, operation, statusCode, response);
|
|
3676
2929
|
tmp0_mapTo.a(tmp$ret$9);
|
|
3677
2930
|
}
|
|
3678
|
-
tmp
|
|
3679
|
-
tmp$ret$11 = tmp$ret$10;
|
|
3680
|
-
tmp = tmp$ret$11;
|
|
2931
|
+
tmp = tmp0_mapTo;
|
|
3681
2932
|
}
|
|
3682
|
-
var
|
|
3683
|
-
var
|
|
3684
|
-
tmp$ret$12 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3685
|
-
tmp$ret$13 = tmp$ret$12;
|
|
3686
|
-
var list = tmp$ret$13;
|
|
2933
|
+
var tmp0_elvis_lhs = tmp;
|
|
2934
|
+
var list = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3687
2935
|
addAll(tmp0_flatMapTo_0, list);
|
|
3688
2936
|
}
|
|
3689
|
-
|
|
3690
|
-
tmp$ret$15 = tmp$ret$14;
|
|
3691
|
-
tmp$ret$16 = tmp$ret$15;
|
|
3692
|
-
var list_0 = tmp$ret$16;
|
|
2937
|
+
var list_0 = tmp0_flatMapTo_0;
|
|
3693
2938
|
addAll(tmp0_flatMapTo, list_0);
|
|
3694
2939
|
}
|
|
3695
|
-
tmp$ret$17 = tmp0_flatMapTo;
|
|
3696
|
-
tmp$ret$18 = tmp$ret$17;
|
|
3697
|
-
var tmp3_flatMap = tmp$ret$18;
|
|
3698
|
-
var tmp$ret$20;
|
|
3699
2940
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3700
|
-
var
|
|
3701
|
-
var tmp0_iterator_2 =
|
|
2941
|
+
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
2942
|
+
var tmp0_iterator_2 = tmp0_flatMapTo.c();
|
|
3702
2943
|
while (tmp0_iterator_2.d()) {
|
|
3703
2944
|
var element_1 = tmp0_iterator_2.e();
|
|
3704
|
-
var tmp$ret$19;
|
|
3705
2945
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
addAll(tmp2_flatMapTo, list_1);
|
|
2946
|
+
var list_1 = f(element_1);
|
|
2947
|
+
addAll(tmp0_flatMapTo_1, list_1);
|
|
3709
2948
|
}
|
|
3710
|
-
|
|
3711
|
-
tmp$ret$21 = tmp$ret$20;
|
|
3712
|
-
return tmp$ret$21;
|
|
2949
|
+
return tmp0_flatMapTo_1;
|
|
3713
2950
|
}
|
|
3714
2951
|
function OpenApiParser$parseParameters$lambda(this$0) {
|
|
3715
2952
|
return function (req) {
|
|
3716
|
-
var parameters = plus(resolveParameters_2(req.
|
|
3717
|
-
var segments = toSegments_0(req.
|
|
3718
|
-
var name = toName_0(req.
|
|
2953
|
+
var parameters = plus(resolveParameters_2(req.x1u_1, this$0), resolveParameters_1(req.z1u_1, this$0));
|
|
2954
|
+
var segments = toSegments_0(req.w1u_1, this$0, parameters);
|
|
2955
|
+
var name = toName_0(req.z1u_1, this$0, segments, req.y1u_1);
|
|
3719
2956
|
var tmp$ret$2;
|
|
3720
2957
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3721
2958
|
var tmp$ret$1;
|
|
@@ -3726,8 +2963,8 @@
|
|
|
3726
2963
|
var element = tmp0_iterator.e();
|
|
3727
2964
|
var tmp$ret$0;
|
|
3728
2965
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
3729
|
-
var tmp0_safe_receiver = element.
|
|
3730
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().
|
|
2966
|
+
var tmp0_safe_receiver = element.j1m_1;
|
|
2967
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().f1u([name, 'Parameter', element.n1m_1]));
|
|
3731
2968
|
tmp$ret$0 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
3732
2969
|
var list = tmp$ret$0;
|
|
3733
2970
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -3739,25 +2976,25 @@
|
|
|
3739
2976
|
}
|
|
3740
2977
|
function OpenApiParser$parseRequestBody$lambda_0(this$0) {
|
|
3741
2978
|
return function (req) {
|
|
3742
|
-
var parameters = plus(resolveParameters_2(req.
|
|
3743
|
-
var segments = toSegments_0(req.
|
|
3744
|
-
var name = toName_0(req.
|
|
2979
|
+
var parameters = plus(resolveParameters_2(req.x1u_1, this$0), resolveParameters_1(req.z1u_1, this$0));
|
|
2980
|
+
var segments = toSegments_0(req.w1u_1, this$0, parameters);
|
|
2981
|
+
var name = toName_0(req.z1u_1, this$0, segments, req.y1u_1);
|
|
3745
2982
|
var tmp$ret$6;
|
|
3746
2983
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3747
2984
|
var tmp$ret$0;
|
|
3748
2985
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3749
|
-
var tmp0_safe_receiver = req.
|
|
2986
|
+
var tmp0_safe_receiver = req.z1u_1.t1l_1;
|
|
3750
2987
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, this$0);
|
|
3751
|
-
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2988
|
+
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t1m_1;
|
|
3752
2989
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3753
2990
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3754
|
-
var
|
|
2991
|
+
var tmp1_flatMap = tmp$ret$0;
|
|
3755
2992
|
var tmp$ret$5;
|
|
3756
2993
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3757
|
-
var
|
|
2994
|
+
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
3758
2995
|
var tmp$ret$1;
|
|
3759
2996
|
// Inline function 'kotlin.collections.iterator' call
|
|
3760
|
-
tmp$ret$1 =
|
|
2997
|
+
tmp$ret$1 = tmp1_flatMap.u().c();
|
|
3761
2998
|
var tmp0_iterator = tmp$ret$1;
|
|
3762
2999
|
while (tmp0_iterator.d()) {
|
|
3763
3000
|
var element = tmp0_iterator.e();
|
|
@@ -3767,22 +3004,22 @@
|
|
|
3767
3004
|
// Inline function 'kotlin.collections.component2' call
|
|
3768
3005
|
tmp$ret$2 = element.w();
|
|
3769
3006
|
var mediaObject = tmp$ret$2;
|
|
3770
|
-
var schema = mediaObject.
|
|
3007
|
+
var schema = mediaObject.a1n_1;
|
|
3771
3008
|
var tmp;
|
|
3772
3009
|
if (schema instanceof SchemaObject_0) {
|
|
3773
|
-
var tmp0_subject = schema.
|
|
3774
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.
|
|
3010
|
+
var tmp0_subject = schema.s1n_1;
|
|
3011
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.r4_1;
|
|
3775
3012
|
var tmp_0;
|
|
3776
3013
|
switch (tmp0) {
|
|
3777
3014
|
case -1:
|
|
3778
3015
|
case 5:
|
|
3779
|
-
tmp_0 = flatten_1(schema, this$0, Common_getInstance().
|
|
3016
|
+
tmp_0 = flatten_1(schema, this$0, Common_getInstance().f1u([name, 'RequestBody']));
|
|
3780
3017
|
break;
|
|
3781
3018
|
case 4:
|
|
3782
3019
|
var tmp$ret$3;
|
|
3783
3020
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3784
|
-
var tmp1_safe_receiver_0 = schema.
|
|
3785
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
3021
|
+
var tmp1_safe_receiver_0 = schema.x1n_1;
|
|
3022
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().f1u([name, 'RequestBody']));
|
|
3786
3023
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
3787
3024
|
tmp$ret$3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
3788
3025
|
|
|
@@ -3806,35 +3043,35 @@
|
|
|
3806
3043
|
}
|
|
3807
3044
|
tmp$ret$4 = tmp;
|
|
3808
3045
|
var list = tmp$ret$4;
|
|
3809
|
-
addAll(
|
|
3046
|
+
addAll(tmp0_flatMapTo, list);
|
|
3810
3047
|
}
|
|
3811
|
-
tmp$ret$5 =
|
|
3048
|
+
tmp$ret$5 = tmp0_flatMapTo;
|
|
3812
3049
|
tmp$ret$6 = tmp$ret$5;
|
|
3813
3050
|
return tmp$ret$6;
|
|
3814
3051
|
};
|
|
3815
3052
|
}
|
|
3816
3053
|
function OpenApiParser$parseResponseBody$lambda_0(this$0) {
|
|
3817
3054
|
return function (res) {
|
|
3818
|
-
var parameters = plus(resolveParameters_2(res.
|
|
3819
|
-
var segments = toSegments_0(res.
|
|
3820
|
-
var name = toName_0(res.
|
|
3821
|
-
var response = res.
|
|
3055
|
+
var parameters = plus(resolveParameters_2(res.b1v_1, this$0), resolveParameters_1(res.d1v_1, this$0));
|
|
3056
|
+
var segments = toSegments_0(res.a1v_1, this$0, parameters);
|
|
3057
|
+
var name = toName_0(res.d1v_1, this$0, segments, res.c1v_1);
|
|
3058
|
+
var response = res.f1v_1;
|
|
3822
3059
|
var tmp;
|
|
3823
3060
|
if (response instanceof ResponseObject_0) {
|
|
3824
3061
|
var tmp$ret$6;
|
|
3825
3062
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3826
3063
|
var tmp$ret$0;
|
|
3827
3064
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3828
|
-
var tmp0_orEmpty = response.
|
|
3065
|
+
var tmp0_orEmpty = response.b1p_1;
|
|
3829
3066
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3830
3067
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3831
|
-
var
|
|
3068
|
+
var tmp1_flatMap = tmp$ret$0;
|
|
3832
3069
|
var tmp$ret$5;
|
|
3833
3070
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3834
|
-
var
|
|
3071
|
+
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
3835
3072
|
var tmp$ret$1;
|
|
3836
3073
|
// Inline function 'kotlin.collections.iterator' call
|
|
3837
|
-
tmp$ret$1 =
|
|
3074
|
+
tmp$ret$1 = tmp1_flatMap.u().c();
|
|
3838
3075
|
var tmp0_iterator = tmp$ret$1;
|
|
3839
3076
|
while (tmp0_iterator.d()) {
|
|
3840
3077
|
var element = tmp0_iterator.e();
|
|
@@ -3844,22 +3081,22 @@
|
|
|
3844
3081
|
// Inline function 'kotlin.collections.component2' call
|
|
3845
3082
|
tmp$ret$2 = element.w();
|
|
3846
3083
|
var mediaObject = tmp$ret$2;
|
|
3847
|
-
var schema = mediaObject.
|
|
3084
|
+
var schema = mediaObject.a1n_1;
|
|
3848
3085
|
var tmp_0;
|
|
3849
3086
|
if (schema instanceof SchemaObject_0) {
|
|
3850
|
-
var tmp0_subject = schema.
|
|
3851
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.
|
|
3087
|
+
var tmp0_subject = schema.s1n_1;
|
|
3088
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.r4_1;
|
|
3852
3089
|
var tmp_1;
|
|
3853
3090
|
switch (tmp0) {
|
|
3854
3091
|
case -1:
|
|
3855
3092
|
case 5:
|
|
3856
|
-
tmp_1 = flatten_1(schema, this$0, Common_getInstance().
|
|
3093
|
+
tmp_1 = flatten_1(schema, this$0, Common_getInstance().f1u([name, _StatusCode___get_value__impl__we50mu_0(res.e1v_1), 'ResponseBody']));
|
|
3857
3094
|
break;
|
|
3858
3095
|
case 4:
|
|
3859
3096
|
var tmp$ret$3;
|
|
3860
3097
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3861
|
-
var tmp1_safe_receiver = schema.
|
|
3862
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().
|
|
3098
|
+
var tmp1_safe_receiver = schema.x1n_1;
|
|
3099
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().f1u([name, _StatusCode___get_value__impl__we50mu_0(res.e1v_1), 'ResponseBody']));
|
|
3863
3100
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
3864
3101
|
tmp$ret$3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
3865
3102
|
|
|
@@ -3875,9 +3112,9 @@
|
|
|
3875
3112
|
}
|
|
3876
3113
|
tmp$ret$4 = tmp_0;
|
|
3877
3114
|
var list = tmp$ret$4;
|
|
3878
|
-
addAll(
|
|
3115
|
+
addAll(tmp0_flatMapTo, list);
|
|
3879
3116
|
}
|
|
3880
|
-
tmp$ret$5 =
|
|
3117
|
+
tmp$ret$5 = tmp0_flatMapTo;
|
|
3881
3118
|
tmp$ret$6 = tmp$ret$5;
|
|
3882
3119
|
tmp = tmp$ret$6;
|
|
3883
3120
|
} else {
|
|
@@ -3891,13 +3128,12 @@
|
|
|
3891
3128
|
};
|
|
3892
3129
|
}
|
|
3893
3130
|
function OpenApiParser$toName$lambda_0(it) {
|
|
3894
|
-
var tmp0_subject = it;
|
|
3895
3131
|
var tmp;
|
|
3896
|
-
if (
|
|
3897
|
-
tmp = Common_getInstance().
|
|
3132
|
+
if (it instanceof Literal) {
|
|
3133
|
+
tmp = Common_getInstance().f1u([it.dk_1]);
|
|
3898
3134
|
} else {
|
|
3899
|
-
if (
|
|
3900
|
-
tmp = Common_getInstance().
|
|
3135
|
+
if (it instanceof Param) {
|
|
3136
|
+
tmp = Common_getInstance().f1u([it.ej_1.pj_1]);
|
|
3901
3137
|
} else {
|
|
3902
3138
|
noWhenBranchMatchedException();
|
|
3903
3139
|
}
|
|
@@ -3906,19 +3142,18 @@
|
|
|
3906
3142
|
}
|
|
3907
3143
|
function OpenApiParser_0(openApi) {
|
|
3908
3144
|
Companion_getInstance_1();
|
|
3909
|
-
this.
|
|
3145
|
+
this.v1u_1 = openApi;
|
|
3910
3146
|
}
|
|
3911
3147
|
function toMap_1(_this__u8e3s4) {
|
|
3912
|
-
var tmp0_subject = _this__u8e3s4;
|
|
3913
3148
|
var tmp;
|
|
3914
|
-
if (
|
|
3915
|
-
tmp = _this__u8e3s4.
|
|
3149
|
+
if (_this__u8e3s4 instanceof Custom) {
|
|
3150
|
+
tmp = _this__u8e3s4.qm(VOID, VOID, true);
|
|
3916
3151
|
} else {
|
|
3917
|
-
if (
|
|
3918
|
-
tmp = _this__u8e3s4.
|
|
3152
|
+
if (_this__u8e3s4 instanceof Any) {
|
|
3153
|
+
tmp = _this__u8e3s4.om(VOID, true);
|
|
3919
3154
|
} else {
|
|
3920
|
-
if (
|
|
3921
|
-
tmp = _this__u8e3s4.
|
|
3155
|
+
if (_this__u8e3s4 instanceof Primitive) {
|
|
3156
|
+
tmp = _this__u8e3s4.sm(VOID, VOID, true);
|
|
3922
3157
|
} else {
|
|
3923
3158
|
noWhenBranchMatchedException();
|
|
3924
3159
|
}
|
|
@@ -3927,10 +3162,8 @@
|
|
|
3927
3162
|
return tmp;
|
|
3928
3163
|
}
|
|
3929
3164
|
function isPrimitive_0(_this__u8e3s4) {
|
|
3930
|
-
var tmp0_subject = _this__u8e3s4;
|
|
3931
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3932
3165
|
var tmp;
|
|
3933
|
-
switch (
|
|
3166
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.r4_1) {
|
|
3934
3167
|
case 0:
|
|
3935
3168
|
tmp = true;
|
|
3936
3169
|
break;
|
|
@@ -3959,16 +3192,15 @@
|
|
|
3959
3192
|
return tmp;
|
|
3960
3193
|
}
|
|
3961
3194
|
function toIterable_0(_this__u8e3s4) {
|
|
3962
|
-
var tmp0_subject = _this__u8e3s4;
|
|
3963
3195
|
var tmp;
|
|
3964
|
-
if (
|
|
3965
|
-
tmp = _this__u8e3s4.
|
|
3196
|
+
if (_this__u8e3s4 instanceof Custom) {
|
|
3197
|
+
tmp = _this__u8e3s4.qm(VOID, true);
|
|
3966
3198
|
} else {
|
|
3967
|
-
if (
|
|
3968
|
-
tmp = _this__u8e3s4.
|
|
3199
|
+
if (_this__u8e3s4 instanceof Any) {
|
|
3200
|
+
tmp = _this__u8e3s4.om(true);
|
|
3969
3201
|
} else {
|
|
3970
|
-
if (
|
|
3971
|
-
tmp = _this__u8e3s4.
|
|
3202
|
+
if (_this__u8e3s4 instanceof Primitive) {
|
|
3203
|
+
tmp = _this__u8e3s4.sm(VOID, true);
|
|
3972
3204
|
} else {
|
|
3973
3205
|
noWhenBranchMatchedException();
|
|
3974
3206
|
}
|
|
@@ -3977,58 +3209,39 @@
|
|
|
3977
3209
|
return tmp;
|
|
3978
3210
|
}
|
|
3979
3211
|
function filterNotNullValues_0(_this__u8e3s4) {
|
|
3980
|
-
var tmp$ret$8;
|
|
3981
3212
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3982
|
-
var tmp$ret$7;
|
|
3983
3213
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3984
3214
|
var tmp0_mapNotNullTo = ArrayList_init_$Create$();
|
|
3985
3215
|
// Inline function 'kotlin.collections.forEach' call
|
|
3986
|
-
var tmp$ret$0;
|
|
3987
3216
|
// Inline function 'kotlin.collections.iterator' call
|
|
3988
|
-
|
|
3989
|
-
var tmp0_iterator = tmp$ret$0;
|
|
3217
|
+
var tmp0_iterator = _this__u8e3s4.u().c();
|
|
3990
3218
|
while (tmp0_iterator.d()) {
|
|
3991
3219
|
var element = tmp0_iterator.e();
|
|
3992
3220
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3993
|
-
var tmp$ret$5;
|
|
3994
3221
|
// Inline function 'community.flock.wirespec.openapi.v3.filterNotNullValues.<anonymous>' call
|
|
3995
|
-
var tmp$ret$1;
|
|
3996
3222
|
// Inline function 'kotlin.collections.component1' call
|
|
3997
|
-
|
|
3998
|
-
var key = tmp$ret$1;
|
|
3999
|
-
var tmp$ret$2;
|
|
3223
|
+
var key = element.v();
|
|
4000
3224
|
// Inline function 'kotlin.collections.component2' call
|
|
4001
|
-
|
|
4002
|
-
var value = tmp$ret$2;
|
|
4003
|
-
var tmp0_safe_receiver = value;
|
|
3225
|
+
var value = element.w();
|
|
4004
3226
|
var tmp;
|
|
4005
|
-
if (
|
|
3227
|
+
if (value == null) {
|
|
4006
3228
|
tmp = null;
|
|
4007
3229
|
} else {
|
|
4008
|
-
var tmp$ret$4;
|
|
4009
3230
|
// Inline function 'kotlin.let' call
|
|
4010
3231
|
// Inline function 'kotlin.contracts.contract' call
|
|
4011
|
-
var tmp$ret$3;
|
|
4012
3232
|
// Inline function 'community.flock.wirespec.openapi.v3.filterNotNullValues.<anonymous>.<anonymous>' call
|
|
4013
|
-
tmp
|
|
4014
|
-
tmp$ret$4 = tmp$ret$3;
|
|
4015
|
-
tmp = tmp$ret$4;
|
|
3233
|
+
tmp = to(key, value);
|
|
4016
3234
|
}
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
if (tmp0_safe_receiver_0 == null)
|
|
3235
|
+
var tmp0_safe_receiver = tmp;
|
|
3236
|
+
if (tmp0_safe_receiver == null)
|
|
4020
3237
|
null;
|
|
4021
3238
|
else {
|
|
4022
|
-
var tmp$ret$6;
|
|
4023
3239
|
// Inline function 'kotlin.let' call
|
|
4024
3240
|
// Inline function 'kotlin.contracts.contract' call
|
|
4025
|
-
tmp0_mapNotNullTo.a(
|
|
4026
|
-
tmp$ret$6 = Unit_getInstance();
|
|
3241
|
+
tmp0_mapNotNullTo.a(tmp0_safe_receiver);
|
|
4027
3242
|
}
|
|
4028
3243
|
}
|
|
4029
|
-
|
|
4030
|
-
tmp$ret$8 = tmp$ret$7;
|
|
4031
|
-
return toMap(tmp$ret$8);
|
|
3244
|
+
return toMap(tmp0_mapNotNullTo);
|
|
4032
3245
|
}
|
|
4033
3246
|
//region block: exports
|
|
4034
3247
|
_.$_$ = _.$_$ || {};
|
|
@@ -4038,4 +3251,4 @@
|
|
|
4038
3251
|
return _;
|
|
4039
3252
|
}));
|
|
4040
3253
|
|
|
4041
|
-
//# sourceMappingURL=wirespec-openapi.js.map
|
|
3254
|
+
//# sourceMappingURL=wirespec-src-openapi.js.map
|