@flock/wirespec 0.8.56 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arrow-arrow-atomic.js +21 -21
- package/arrow-arrow-atomic.js.map +1 -1
- package/arrow-arrow-continuations.js +8 -8
- package/arrow-arrow-core.js +100 -100
- package/arrow-arrow-core.js.map +1 -1
- package/clikt-clikt.js +1985 -1985
- package/clikt-clikt.js.map +1 -1
- package/colormath-root-colormath.js +421 -421
- package/colormath-root-colormath.js.map +1 -1
- package/{kotlin-kotlin-stdlib-js-ir.js → kotlin-kotlin-stdlib.js} +11311 -10651
- package/kotlin-kotlin-stdlib.js.map +1 -0
- package/kotlin-openapi-bindings.js +3637 -3637
- package/kotlin-openapi-bindings.js.map +1 -1
- package/kotlin-rgxgen.js +4328 -0
- package/kotlin-rgxgen.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1640 -1640
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1328 -1320
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/markdown.js +2128 -2131
- package/markdown.js.map +1 -1
- package/mordant-mordant.js +2279 -2287
- package/mordant-mordant.js.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +2091 -2015
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +480 -431
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-converter-openapi.js +855 -855
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-generator.js +311 -0
- package/wirespec-src-generator.js.map +1 -0
- package/wirespec-src-plugin-arguments.js +123 -119
- package/wirespec-src-plugin-arguments.js.map +1 -1
- package/wirespec-src-plugin-cli.js +252 -232
- package/wirespec-src-plugin-cli.js.map +1 -1
- package/wirespec-src-plugin-npm.d.ts +6 -0
- package/wirespec-src-plugin-npm.js +52 -7
- package/wirespec-src-plugin-npm.js.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
(function (root, factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './wirespec-src-compiler-core.js', './kotlin-kotlin-stdlib
|
|
3
|
+
define(['exports', './wirespec-src-compiler-core.js', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-json-js-ir.js', './kotlin-openapi-bindings.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./wirespec-src-compiler-core.js'), require('./kotlin-kotlin-stdlib
|
|
5
|
+
factory(module.exports, require('./wirespec-src-compiler-core.js'), require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-json-js-ir.js'), require('./kotlin-openapi-bindings.js'));
|
|
6
6
|
else {
|
|
7
7
|
if (typeof this['wirespec-src-compiler-core'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module 'wirespec-src-converter-openapi'. Its dependency 'wirespec-src-compiler-core' was not found. Please, check whether 'wirespec-src-compiler-core' is loaded prior to 'wirespec-src-converter-openapi'.");
|
|
9
9
|
}
|
|
10
|
-
if (typeof this['kotlin-kotlin-stdlib
|
|
11
|
-
throw new Error("Error loading module 'wirespec-src-converter-openapi'. Its dependency 'kotlin-kotlin-stdlib
|
|
10
|
+
if (typeof this['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
11
|
+
throw new Error("Error loading module 'wirespec-src-converter-openapi'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'wirespec-src-converter-openapi'.");
|
|
12
12
|
}
|
|
13
13
|
if (typeof this['kotlinx-serialization-kotlinx-serialization-json-js-ir'] === 'undefined') {
|
|
14
14
|
throw new Error("Error loading module 'wirespec-src-converter-openapi'. Its dependency 'kotlinx-serialization-kotlinx-serialization-json-js-ir' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-json-js-ir' is loaded prior to 'wirespec-src-converter-openapi'.");
|
|
@@ -16,92 +16,92 @@
|
|
|
16
16
|
if (typeof this['kotlin-openapi-bindings'] === 'undefined') {
|
|
17
17
|
throw new Error("Error loading module 'wirespec-src-converter-openapi'. Its dependency 'kotlin-openapi-bindings' was not found. Please, check whether 'kotlin-openapi-bindings' is loaded prior to 'wirespec-src-converter-openapi'.");
|
|
18
18
|
}
|
|
19
|
-
root['wirespec-src-converter-openapi'] = factory(typeof this['wirespec-src-converter-openapi'] === 'undefined' ? {} : this['wirespec-src-converter-openapi'], this['wirespec-src-compiler-core'], this['kotlin-kotlin-stdlib
|
|
19
|
+
root['wirespec-src-converter-openapi'] = factory(typeof this['wirespec-src-converter-openapi'] === 'undefined' ? {} : this['wirespec-src-converter-openapi'], this['wirespec-src-compiler-core'], this['kotlin-kotlin-stdlib'], this['kotlinx-serialization-kotlinx-serialization-json-js-ir'], this['kotlin-openapi-bindings']);
|
|
20
20
|
}
|
|
21
21
|
}(this, function (_, kotlin_community_flock_wirespec_compiler_core, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings) {
|
|
22
22
|
'use strict';
|
|
23
23
|
//region block: imports
|
|
24
24
|
var imul = Math.imul;
|
|
25
|
-
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
26
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
27
|
-
var split = kotlin_kotlin.$_$.
|
|
28
|
-
var addAll = kotlin_kotlin.$_$.
|
|
29
|
-
var VOID = kotlin_kotlin.$_$.
|
|
30
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
31
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
32
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
33
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
34
|
-
var Unit_getInstance = kotlin_kotlin.$_$.
|
|
35
|
-
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.
|
|
25
|
+
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.k1;
|
|
26
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k;
|
|
27
|
+
var split = kotlin_kotlin.$_$.sc;
|
|
28
|
+
var addAll = kotlin_kotlin.$_$.o4;
|
|
29
|
+
var VOID = kotlin_kotlin.$_$.gf;
|
|
30
|
+
var joinToString = kotlin_kotlin.$_$.f6;
|
|
31
|
+
var protoOf = kotlin_kotlin.$_$.ca;
|
|
32
|
+
var objectMeta = kotlin_kotlin.$_$.ba;
|
|
33
|
+
var setMetadataFor = kotlin_kotlin.$_$.da;
|
|
34
|
+
var Unit_getInstance = kotlin_kotlin.$_$.x3;
|
|
35
|
+
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.k;
|
|
36
36
|
var OpenAPI = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b;
|
|
37
|
-
var plus = kotlin_kotlin.$_$.
|
|
37
|
+
var plus = kotlin_kotlin.$_$.c7;
|
|
38
38
|
var ParameterLocation_QUERY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w;
|
|
39
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
40
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
39
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.w4;
|
|
40
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.j;
|
|
41
41
|
var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v;
|
|
42
42
|
var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.u;
|
|
43
|
-
var listOf = kotlin_kotlin.$_$.
|
|
44
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
45
|
-
var NotImplementedError = kotlin_kotlin.$_$.
|
|
43
|
+
var listOf = kotlin_kotlin.$_$.s6;
|
|
44
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.cf;
|
|
45
|
+
var NotImplementedError = kotlin_kotlin.$_$.ce;
|
|
46
46
|
var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h;
|
|
47
47
|
var ReferenceObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e;
|
|
48
48
|
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.i;
|
|
49
49
|
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.k;
|
|
50
|
-
var emptyMap = kotlin_kotlin.$_$.
|
|
50
|
+
var emptyMap = kotlin_kotlin.$_$.p5;
|
|
51
51
|
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g1;
|
|
52
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
52
|
+
var emptyList = kotlin_kotlin.$_$.o5;
|
|
53
53
|
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.l;
|
|
54
|
-
var HashSet_init_$Create$ = kotlin_kotlin.$_$.
|
|
55
|
-
var to = kotlin_kotlin.$_$.
|
|
54
|
+
var HashSet_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
55
|
+
var to = kotlin_kotlin.$_$.ff;
|
|
56
56
|
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.o;
|
|
57
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
58
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
59
|
-
var Map = kotlin_kotlin.$_$.
|
|
60
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
57
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
58
|
+
var THROW_CCE = kotlin_kotlin.$_$.he;
|
|
59
|
+
var Map = kotlin_kotlin.$_$.j4;
|
|
60
|
+
var isInterface = kotlin_kotlin.$_$.p9;
|
|
61
61
|
var ParameterObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c;
|
|
62
62
|
var Ref = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f;
|
|
63
|
-
var toString = kotlin_kotlin.$_$.
|
|
64
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
63
|
+
var toString = kotlin_kotlin.$_$.ha;
|
|
64
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.l1;
|
|
65
65
|
var BooleanObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a;
|
|
66
66
|
var ResponseObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
|
|
67
|
-
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
68
|
-
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
69
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
70
|
-
var toSet = kotlin_kotlin.$_$.
|
|
67
|
+
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.x;
|
|
68
|
+
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.y;
|
|
69
|
+
var ensureNotNull = kotlin_kotlin.$_$.we;
|
|
70
|
+
var toSet = kotlin_kotlin.$_$.a8;
|
|
71
71
|
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.p;
|
|
72
|
-
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
73
|
-
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
74
|
-
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
72
|
+
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.t;
|
|
73
|
+
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.u;
|
|
74
|
+
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.s;
|
|
75
75
|
var get_entries = kotlin_community_flock_wirespec_compiler_core.$_$.j;
|
|
76
|
-
var mapCapacity = kotlin_kotlin.$_$.
|
|
77
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
78
|
-
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
76
|
+
var mapCapacity = kotlin_kotlin.$_$.u6;
|
|
77
|
+
var coerceAtLeast = kotlin_kotlin.$_$.na;
|
|
78
|
+
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.s;
|
|
79
79
|
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e1;
|
|
80
|
-
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
81
|
-
var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
82
|
-
var Type_Number_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
83
|
-
var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
84
|
-
var
|
|
85
|
-
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
80
|
+
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.j1;
|
|
81
|
+
var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.h1;
|
|
82
|
+
var Type_Number_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.i1;
|
|
83
|
+
var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.g1;
|
|
84
|
+
var Companion_getInstance_0 = kotlin_community_flock_wirespec_compiler_core.$_$.l1;
|
|
85
|
+
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.w;
|
|
86
86
|
var Type_ARRAY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.x;
|
|
87
|
-
var equals = kotlin_kotlin.$_$.
|
|
87
|
+
var equals = kotlin_kotlin.$_$.a9;
|
|
88
88
|
var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d1;
|
|
89
|
-
var drop = kotlin_kotlin.$_$.
|
|
90
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
91
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
92
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
89
|
+
var drop = kotlin_kotlin.$_$.n5;
|
|
90
|
+
var charSequenceLength = kotlin_kotlin.$_$.v8;
|
|
91
|
+
var charSequenceGet = kotlin_kotlin.$_$.u8;
|
|
92
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.t1;
|
|
93
93
|
var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.m;
|
|
94
94
|
var Param = kotlin_community_flock_wirespec_compiler_core.$_$.n;
|
|
95
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
95
|
+
var isBlank = kotlin_kotlin.$_$.xb;
|
|
96
96
|
var Path = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d;
|
|
97
97
|
var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c1;
|
|
98
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
99
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
98
|
+
var getStringHashCode = kotlin_kotlin.$_$.e9;
|
|
99
|
+
var classMeta = kotlin_kotlin.$_$.x8;
|
|
100
100
|
var StatusCode = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i;
|
|
101
101
|
var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f1;
|
|
102
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
103
|
-
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
104
|
-
var toMap = kotlin_kotlin.$_$.
|
|
102
|
+
var hashCode = kotlin_kotlin.$_$.f9;
|
|
103
|
+
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.v;
|
|
104
|
+
var toMap = kotlin_kotlin.$_$.x7;
|
|
105
105
|
var OpenAPI_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l;
|
|
106
106
|
var ParameterLocation_QUERY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a1;
|
|
107
107
|
var ParameterLocation_HEADER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.z;
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
var ResponseObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r;
|
|
119
119
|
var BooleanObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j;
|
|
120
120
|
var _Ref___get_value__impl__kxavfe_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k1;
|
|
121
|
-
var getOrNull = kotlin_kotlin.$_$.
|
|
121
|
+
var getOrNull = kotlin_kotlin.$_$.z5;
|
|
122
122
|
var Type_ARRAY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b1;
|
|
123
123
|
var Path_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.n;
|
|
124
124
|
var Path__hashCode_impl_go73kd_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i1;
|
|
@@ -137,12 +137,12 @@
|
|
|
137
137
|
setMetadataFor(OpenApiParser_0, 'OpenApiParser', classMeta);
|
|
138
138
|
//endregion
|
|
139
139
|
function Common$className$lambda(it) {
|
|
140
|
-
return Companion_getInstance().
|
|
140
|
+
return Companion_getInstance().n1s(it);
|
|
141
141
|
}
|
|
142
142
|
function Common() {
|
|
143
143
|
Common_instance = this;
|
|
144
144
|
}
|
|
145
|
-
protoOf(Common).
|
|
145
|
+
protoOf(Common).o22 = function (arg) {
|
|
146
146
|
// Inline function 'kotlin.collections.flatMap' call
|
|
147
147
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
148
148
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -166,106 +166,106 @@
|
|
|
166
166
|
}
|
|
167
167
|
function OpenApiParser$Companion$parse$lambda($ignoreUnknown) {
|
|
168
168
|
return function ($this$Json) {
|
|
169
|
-
$this$Json.
|
|
170
|
-
$this$Json.
|
|
169
|
+
$this$Json.pz_1 = true;
|
|
170
|
+
$this$Json.mz_1 = $ignoreUnknown;
|
|
171
171
|
return Unit_getInstance();
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
174
|
function Companion() {
|
|
175
175
|
Companion_instance = this;
|
|
176
176
|
}
|
|
177
|
-
protoOf(Companion).
|
|
177
|
+
protoOf(Companion).p22 = function (json, ignoreUnknown) {
|
|
178
178
|
// Inline function 'kotlin.let' call
|
|
179
|
-
var tmp0_let = (new OpenAPI(Json(VOID, OpenApiParser$Companion$parse$lambda(ignoreUnknown)))).
|
|
179
|
+
var tmp0_let = (new OpenAPI(Json(VOID, OpenApiParser$Companion$parse$lambda(ignoreUnknown)))).i17(json);
|
|
180
180
|
// Inline function 'kotlin.contracts.contract' call
|
|
181
181
|
// Inline function 'community.flock.wirespec.openapi.v2.Companion.parse.<anonymous>' call
|
|
182
|
-
return (new OpenApiParser(tmp0_let)).
|
|
182
|
+
return (new OpenApiParser(tmp0_let)).r22();
|
|
183
183
|
};
|
|
184
|
-
protoOf(Companion).
|
|
184
|
+
protoOf(Companion).s22 = function (json, ignoreUnknown, $super) {
|
|
185
185
|
ignoreUnknown = ignoreUnknown === VOID ? false : ignoreUnknown;
|
|
186
|
-
return $super === VOID ? this.
|
|
186
|
+
return $super === VOID ? this.p22(json, ignoreUnknown) : $super.p22.call(this, json, ignoreUnknown);
|
|
187
187
|
};
|
|
188
188
|
var Companion_instance;
|
|
189
|
-
function
|
|
189
|
+
function Companion_getInstance_1() {
|
|
190
190
|
if (Companion_instance == null)
|
|
191
191
|
new Companion();
|
|
192
192
|
return Companion_instance;
|
|
193
193
|
}
|
|
194
194
|
function parseEndpoints($this) {
|
|
195
195
|
// Inline function 'kotlin.collections.flatMap' call
|
|
196
|
-
var tmp0_flatMap = $this.
|
|
196
|
+
var tmp0_flatMap = $this.q22_1.s17_1;
|
|
197
197
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
198
198
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
199
199
|
// Inline function 'kotlin.collections.iterator' call
|
|
200
|
-
var tmp0_iterator = tmp0_flatMap.
|
|
201
|
-
while (tmp0_iterator.
|
|
202
|
-
var element = tmp0_iterator.
|
|
200
|
+
var tmp0_iterator = tmp0_flatMap.n2().v();
|
|
201
|
+
while (tmp0_iterator.w()) {
|
|
202
|
+
var element = tmp0_iterator.y();
|
|
203
203
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>' call
|
|
204
204
|
// Inline function 'kotlin.collections.component1' call
|
|
205
|
-
var path = element.
|
|
205
|
+
var path = element.o2().d18_1;
|
|
206
206
|
// Inline function 'kotlin.collections.component2' call
|
|
207
|
-
var pathItem = element.
|
|
207
|
+
var pathItem = element.p2();
|
|
208
208
|
// Inline function 'kotlin.collections.flatMap' call
|
|
209
209
|
var tmp0_flatMap_0 = toOperationList(pathItem, $this);
|
|
210
210
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
211
211
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
212
212
|
// Inline function 'kotlin.collections.iterator' call
|
|
213
|
-
var tmp0_iterator_0 = tmp0_flatMap_0.
|
|
214
|
-
while (tmp0_iterator_0.
|
|
215
|
-
var element_0 = tmp0_iterator_0.
|
|
213
|
+
var tmp0_iterator_0 = tmp0_flatMap_0.n2().v();
|
|
214
|
+
while (tmp0_iterator_0.w()) {
|
|
215
|
+
var element_0 = tmp0_iterator_0.y();
|
|
216
216
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>' call
|
|
217
217
|
// Inline function 'kotlin.collections.component1' call
|
|
218
|
-
var method = element_0.
|
|
218
|
+
var method = element_0.o2();
|
|
219
219
|
// Inline function 'kotlin.collections.component2' call
|
|
220
|
-
var operation = element_0.
|
|
220
|
+
var operation = element_0.p2();
|
|
221
221
|
var parameters = plus(resolveParameters_0(pathItem, $this), resolveParameters(operation, $this));
|
|
222
222
|
var segments = toSegments(path, $this, parameters);
|
|
223
223
|
var tmp0_elvis_lhs = toName(operation, $this);
|
|
224
|
-
var name = tmp0_elvis_lhs == null ? toName_0(path, $this) + method.
|
|
224
|
+
var name = tmp0_elvis_lhs == null ? toName_0(path, $this) + method.b9_1 : tmp0_elvis_lhs;
|
|
225
225
|
// Inline function 'kotlin.collections.map' call
|
|
226
226
|
// Inline function 'kotlin.collections.filter' call
|
|
227
227
|
// Inline function 'kotlin.collections.filterTo' call
|
|
228
228
|
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
229
|
-
var tmp0_iterator_1 = parameters.
|
|
230
|
-
while (tmp0_iterator_1.
|
|
231
|
-
var element_1 = tmp0_iterator_1.
|
|
229
|
+
var tmp0_iterator_1 = parameters.v();
|
|
230
|
+
while (tmp0_iterator_1.w()) {
|
|
231
|
+
var element_1 = tmp0_iterator_1.y();
|
|
232
232
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
233
|
-
if (element_1.
|
|
234
|
-
tmp0_filterTo.
|
|
233
|
+
if (element_1.n19_1.equals(ParameterLocation_QUERY_getInstance())) {
|
|
234
|
+
tmp0_filterTo.s(element_1);
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
// Inline function 'kotlin.collections.mapTo' call
|
|
238
238
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_filterTo, 10));
|
|
239
|
-
var tmp0_iterator_2 = tmp0_filterTo.
|
|
240
|
-
while (tmp0_iterator_2.
|
|
241
|
-
var item = tmp0_iterator_2.
|
|
239
|
+
var tmp0_iterator_2 = tmp0_filterTo.v();
|
|
240
|
+
while (tmp0_iterator_2.w()) {
|
|
241
|
+
var item = tmp0_iterator_2.y();
|
|
242
242
|
var tmp$ret$9;
|
|
243
243
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
244
244
|
tmp$ret$9 = toField_0(item, $this, name);
|
|
245
|
-
tmp0_mapTo.
|
|
245
|
+
tmp0_mapTo.s(tmp$ret$9);
|
|
246
246
|
}
|
|
247
247
|
var query = tmp0_mapTo;
|
|
248
248
|
// Inline function 'kotlin.collections.map' call
|
|
249
249
|
// Inline function 'kotlin.collections.filter' call
|
|
250
250
|
// Inline function 'kotlin.collections.filterTo' call
|
|
251
251
|
var tmp0_filterTo_0 = ArrayList_init_$Create$();
|
|
252
|
-
var tmp0_iterator_3 = parameters.
|
|
253
|
-
while (tmp0_iterator_3.
|
|
254
|
-
var element_2 = tmp0_iterator_3.
|
|
252
|
+
var tmp0_iterator_3 = parameters.v();
|
|
253
|
+
while (tmp0_iterator_3.w()) {
|
|
254
|
+
var element_2 = tmp0_iterator_3.y();
|
|
255
255
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
256
|
-
if (element_2.
|
|
257
|
-
tmp0_filterTo_0.
|
|
256
|
+
if (element_2.n19_1.equals(ParameterLocation_HEADER_getInstance())) {
|
|
257
|
+
tmp0_filterTo_0.s(element_2);
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
// Inline function 'kotlin.collections.mapTo' call
|
|
261
261
|
var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_filterTo_0, 10));
|
|
262
|
-
var tmp0_iterator_4 = tmp0_filterTo_0.
|
|
263
|
-
while (tmp0_iterator_4.
|
|
264
|
-
var item_0 = tmp0_iterator_4.
|
|
262
|
+
var tmp0_iterator_4 = tmp0_filterTo_0.v();
|
|
263
|
+
while (tmp0_iterator_4.w()) {
|
|
264
|
+
var item_0 = tmp0_iterator_4.y();
|
|
265
265
|
var tmp$ret$15;
|
|
266
266
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
267
267
|
tmp$ret$15 = toField_0(item_0, $this, name);
|
|
268
|
-
tmp0_mapTo_0.
|
|
268
|
+
tmp0_mapTo_0.s(tmp$ret$15);
|
|
269
269
|
}
|
|
270
270
|
var headers = tmp0_mapTo_0;
|
|
271
271
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
@@ -273,38 +273,38 @@
|
|
|
273
273
|
// Inline function 'kotlin.collections.filter' call
|
|
274
274
|
// Inline function 'kotlin.collections.filterTo' call
|
|
275
275
|
var tmp0_filterTo_1 = ArrayList_init_$Create$();
|
|
276
|
-
var tmp0_iterator_5 = parameters.
|
|
277
|
-
while (tmp0_iterator_5.
|
|
278
|
-
var element_3 = tmp0_iterator_5.
|
|
276
|
+
var tmp0_iterator_5 = parameters.v();
|
|
277
|
+
while (tmp0_iterator_5.w()) {
|
|
278
|
+
var element_3 = tmp0_iterator_5.y();
|
|
279
279
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
280
|
-
if (element_3.
|
|
281
|
-
tmp0_filterTo_1.
|
|
280
|
+
if (element_3.n19_1.equals(ParameterLocation_BODY_getInstance())) {
|
|
281
|
+
tmp0_filterTo_1.s(element_3);
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
285
285
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
286
|
-
var tmp0_iterator_6 = tmp0_filterTo_1.
|
|
287
|
-
while (tmp0_iterator_6.
|
|
288
|
-
var element_4 = tmp0_iterator_6.
|
|
286
|
+
var tmp0_iterator_6 = tmp0_filterTo_1.v();
|
|
287
|
+
while (tmp0_iterator_6.w()) {
|
|
288
|
+
var element_4 = tmp0_iterator_6.y();
|
|
289
289
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
290
290
|
// Inline function 'kotlin.collections.map' call
|
|
291
|
-
var tmp0_elvis_lhs_0 = $this.
|
|
292
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.
|
|
291
|
+
var tmp0_elvis_lhs_0 = $this.q22_1.q17_1;
|
|
292
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.b19_1 : tmp0_elvis_lhs_0;
|
|
293
293
|
var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
294
294
|
// Inline function 'kotlin.collections.mapTo' call
|
|
295
295
|
var tmp0_mapTo_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
296
|
-
var tmp0_iterator_7 = tmp0_map.
|
|
297
|
-
while (tmp0_iterator_7.
|
|
298
|
-
var item_1 = tmp0_iterator_7.
|
|
296
|
+
var tmp0_iterator_7 = tmp0_map.v();
|
|
297
|
+
while (tmp0_iterator_7.w()) {
|
|
298
|
+
var item_1 = tmp0_iterator_7.y();
|
|
299
299
|
var tmp$ret$21;
|
|
300
300
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
301
|
-
var schema = element_4.
|
|
301
|
+
var schema = element_4.q19_1;
|
|
302
302
|
var tmp;
|
|
303
303
|
if (schema instanceof ReferenceObject) {
|
|
304
304
|
tmp = toReference(schema, $this);
|
|
305
305
|
} else {
|
|
306
306
|
if (schema instanceof SchemaObject) {
|
|
307
|
-
tmp = toReference_0(schema, $this, Common_getInstance().
|
|
307
|
+
tmp = toReference_0(schema, $this, Common_getInstance().o22([name, 'RequestBody']));
|
|
308
308
|
} else {
|
|
309
309
|
if (schema == null) {
|
|
310
310
|
throw new NotImplementedError('An operation is not implemented: Not yet implemented');
|
|
@@ -314,15 +314,15 @@
|
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
var tmp_0 = tmp;
|
|
317
|
-
var tmp0_elvis_lhs_1 = element_4.
|
|
317
|
+
var tmp0_elvis_lhs_1 = element_4.p19_1;
|
|
318
318
|
tmp$ret$21 = new Request(new Content(item_1, tmp_0, tmp0_elvis_lhs_1 == null ? false : tmp0_elvis_lhs_1));
|
|
319
|
-
tmp0_mapTo_1.
|
|
319
|
+
tmp0_mapTo_1.s(tmp$ret$21);
|
|
320
320
|
}
|
|
321
321
|
var list = tmp0_mapTo_1;
|
|
322
322
|
addAll(tmp0_flatMapTo_1, list);
|
|
323
323
|
}
|
|
324
324
|
var tmp_1;
|
|
325
|
-
if (tmp0_flatMapTo_1.
|
|
325
|
+
if (tmp0_flatMapTo_1.c1()) {
|
|
326
326
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
327
327
|
tmp_1 = listOf(new Request(null));
|
|
328
328
|
} else {
|
|
@@ -332,33 +332,33 @@
|
|
|
332
332
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
333
333
|
// Inline function 'kotlin.collections.flatMap' call
|
|
334
334
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
335
|
-
var tmp0_elvis_lhs_2 = operation.
|
|
335
|
+
var tmp0_elvis_lhs_2 = operation.e19_1;
|
|
336
336
|
var tmp5_flatMap = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
337
337
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
338
338
|
var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
|
|
339
339
|
// Inline function 'kotlin.collections.iterator' call
|
|
340
|
-
var tmp0_iterator_8 = tmp5_flatMap.
|
|
341
|
-
while (tmp0_iterator_8.
|
|
342
|
-
var element_5 = tmp0_iterator_8.
|
|
340
|
+
var tmp0_iterator_8 = tmp5_flatMap.n2().v();
|
|
341
|
+
while (tmp0_iterator_8.w()) {
|
|
342
|
+
var element_5 = tmp0_iterator_8.y();
|
|
343
343
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
344
344
|
// Inline function 'kotlin.collections.component1' call
|
|
345
|
-
var status = element_5.
|
|
345
|
+
var status = element_5.o2().w1b_1;
|
|
346
346
|
// Inline function 'kotlin.collections.component2' call
|
|
347
|
-
var res = element_5.
|
|
347
|
+
var res = element_5.p2();
|
|
348
348
|
// Inline function 'kotlin.collections.map' call
|
|
349
|
-
var tmp0_elvis_lhs_3 = $this.
|
|
350
|
-
var tmp1_elvis_lhs_0 = tmp0_elvis_lhs_3 == null ? operation.
|
|
349
|
+
var tmp0_elvis_lhs_3 = $this.q22_1.r17_1;
|
|
350
|
+
var tmp1_elvis_lhs_0 = tmp0_elvis_lhs_3 == null ? operation.c19_1 : tmp0_elvis_lhs_3;
|
|
351
351
|
var tmp0_map_0 = tmp1_elvis_lhs_0 == null ? listOf('application/json') : tmp1_elvis_lhs_0;
|
|
352
352
|
// Inline function 'kotlin.collections.mapTo' call
|
|
353
353
|
var tmp0_mapTo_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map_0, 10));
|
|
354
|
-
var tmp0_iterator_9 = tmp0_map_0.
|
|
355
|
-
while (tmp0_iterator_9.
|
|
356
|
-
var item_2 = tmp0_iterator_9.
|
|
354
|
+
var tmp0_iterator_9 = tmp0_map_0.v();
|
|
355
|
+
while (tmp0_iterator_9.w()) {
|
|
356
|
+
var item_2 = tmp0_iterator_9.y();
|
|
357
357
|
var tmp$ret$35;
|
|
358
358
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
359
359
|
var tmp_2 = _StatusCode___get_value__impl__we50mu(status);
|
|
360
360
|
var tmp_3 = emptyList();
|
|
361
|
-
var tmp0_safe_receiver = resolve_1(res, $this).
|
|
361
|
+
var tmp0_safe_receiver = resolve_1(res, $this).a1c_1;
|
|
362
362
|
var tmp_4;
|
|
363
363
|
if (tmp0_safe_receiver == null) {
|
|
364
364
|
tmp_4 = null;
|
|
@@ -371,7 +371,7 @@
|
|
|
371
371
|
tmp_5 = toReference(tmp0_safe_receiver, $this);
|
|
372
372
|
} else {
|
|
373
373
|
if (tmp0_safe_receiver instanceof SchemaObject) {
|
|
374
|
-
tmp_5 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().
|
|
374
|
+
tmp_5 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().o22([name, _StatusCode___get_value__impl__we50mu(status), item_2, 'ResponseBody']));
|
|
375
375
|
} else {
|
|
376
376
|
noWhenBranchMatchedException();
|
|
377
377
|
}
|
|
@@ -379,20 +379,20 @@
|
|
|
379
379
|
tmp_4 = new Content(item_2, tmp_5, false);
|
|
380
380
|
}
|
|
381
381
|
tmp$ret$35 = new Response(tmp_2, tmp_3, tmp_4);
|
|
382
|
-
tmp0_mapTo_2.
|
|
382
|
+
tmp0_mapTo_2.s(tmp$ret$35);
|
|
383
383
|
}
|
|
384
384
|
var list_0 = tmp0_mapTo_2;
|
|
385
385
|
addAll(tmp0_flatMapTo_2, list_0);
|
|
386
386
|
}
|
|
387
387
|
var set = HashSet_init_$Create$();
|
|
388
388
|
var list_1 = ArrayList_init_$Create$();
|
|
389
|
-
var tmp0_iterator_10 = tmp0_flatMapTo_2.
|
|
390
|
-
while (tmp0_iterator_10.
|
|
391
|
-
var e = tmp0_iterator_10.
|
|
389
|
+
var tmp0_iterator_10 = tmp0_flatMapTo_2.v();
|
|
390
|
+
while (tmp0_iterator_10.w()) {
|
|
391
|
+
var e = tmp0_iterator_10.y();
|
|
392
392
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
393
|
-
var key = to(e.
|
|
394
|
-
if (set.
|
|
395
|
-
list_1.
|
|
393
|
+
var key = to(e.c1z_1, e.e1z_1);
|
|
394
|
+
if (set.s(key)) {
|
|
395
|
+
list_1.s(e);
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
var responses = list_1;
|
|
@@ -405,30 +405,30 @@
|
|
|
405
405
|
return tmp0_flatMapTo;
|
|
406
406
|
}
|
|
407
407
|
function parseParameters($this) {
|
|
408
|
-
return flatMapRequests($this.
|
|
408
|
+
return flatMapRequests($this.q22_1, $this, OpenApiParser$parseParameters$lambda($this));
|
|
409
409
|
}
|
|
410
410
|
function parseRequestBody($this) {
|
|
411
|
-
return flatMapRequests($this.
|
|
411
|
+
return flatMapRequests($this.q22_1, $this, OpenApiParser$parseRequestBody$lambda($this));
|
|
412
412
|
}
|
|
413
413
|
function parseResponseBody($this) {
|
|
414
|
-
return flatMapResponses($this.
|
|
414
|
+
return flatMapResponses($this.q22_1, $this, OpenApiParser$parseResponseBody$lambda($this));
|
|
415
415
|
}
|
|
416
416
|
function parseDefinitions($this) {
|
|
417
417
|
// Inline function 'kotlin.collections.flatMap' call
|
|
418
418
|
// Inline function 'kotlin.collections.filter' call
|
|
419
419
|
// Inline function 'arrow.core.filterIsInstance' call
|
|
420
420
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
421
|
-
var tmp0_elvis_lhs = $this.
|
|
421
|
+
var tmp0_elvis_lhs = $this.q22_1.t17_1;
|
|
422
422
|
var tmp1_filterIsInstance = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
423
423
|
// Inline function 'kotlin.collections.filterValues' call
|
|
424
424
|
var result = LinkedHashMap_init_$Create$();
|
|
425
425
|
// Inline function 'kotlin.collections.iterator' call
|
|
426
|
-
var tmp0_iterator = tmp1_filterIsInstance.
|
|
427
|
-
while (tmp0_iterator.
|
|
428
|
-
var entry = tmp0_iterator.
|
|
426
|
+
var tmp0_iterator = tmp1_filterIsInstance.n2().v();
|
|
427
|
+
while (tmp0_iterator.w()) {
|
|
428
|
+
var entry = tmp0_iterator.y();
|
|
429
429
|
// Inline function 'arrow.core.filterIsInstance.<anonymous>' call
|
|
430
|
-
if (entry.
|
|
431
|
-
result.
|
|
430
|
+
if (entry.p2() instanceof SchemaObject) {
|
|
431
|
+
result.l2(entry.o2(), entry.p2());
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
434
|
var tmp = result;
|
|
@@ -436,22 +436,22 @@
|
|
|
436
436
|
// Inline function 'kotlin.collections.filterTo' call
|
|
437
437
|
var tmp0_filterTo = LinkedHashMap_init_$Create$();
|
|
438
438
|
// Inline function 'kotlin.collections.iterator' call
|
|
439
|
-
var tmp0_iterator_0 = tmp2_filter.
|
|
440
|
-
while (tmp0_iterator_0.
|
|
441
|
-
var element = tmp0_iterator_0.
|
|
439
|
+
var tmp0_iterator_0 = tmp2_filter.n2().v();
|
|
440
|
+
while (tmp0_iterator_0.w()) {
|
|
441
|
+
var element = tmp0_iterator_0.y();
|
|
442
442
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
443
|
-
if (element.
|
|
444
|
-
tmp0_filterTo.
|
|
443
|
+
if (element.p2().s1b_1 == null) {
|
|
444
|
+
tmp0_filterTo.l2(element.o2(), element.p2());
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
448
448
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
449
449
|
// Inline function 'kotlin.collections.iterator' call
|
|
450
|
-
var tmp0_iterator_1 = tmp0_filterTo.
|
|
451
|
-
while (tmp0_iterator_1.
|
|
452
|
-
var element_0 = tmp0_iterator_1.
|
|
450
|
+
var tmp0_iterator_1 = tmp0_filterTo.n2().v();
|
|
451
|
+
while (tmp0_iterator_1.w()) {
|
|
452
|
+
var element_0 = tmp0_iterator_1.y();
|
|
453
453
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
454
|
-
var list = flatten(element_0.
|
|
454
|
+
var list = flatten(element_0.p2(), $this, Common_getInstance().o22([element_0.o2()]));
|
|
455
455
|
addAll(tmp0_flatMapTo, list);
|
|
456
456
|
}
|
|
457
457
|
return tmp0_flatMapTo;
|
|
@@ -459,13 +459,13 @@
|
|
|
459
459
|
function resolveParameters(_this__u8e3s4, $this) {
|
|
460
460
|
// Inline function 'kotlin.collections.map' call
|
|
461
461
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
462
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
462
|
+
var tmp0_elvis_lhs = _this__u8e3s4.d19_1;
|
|
463
463
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
464
464
|
// Inline function 'kotlin.collections.mapTo' call
|
|
465
465
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
466
|
-
var tmp0_iterator = tmp1_map.
|
|
467
|
-
while (tmp0_iterator.
|
|
468
|
-
var item = tmp0_iterator.
|
|
466
|
+
var tmp0_iterator = tmp1_map.v();
|
|
467
|
+
while (tmp0_iterator.w()) {
|
|
468
|
+
var item = tmp0_iterator.y();
|
|
469
469
|
var tmp$ret$1;
|
|
470
470
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.resolveParameters.<anonymous>' call
|
|
471
471
|
var tmp;
|
|
@@ -479,20 +479,20 @@
|
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
tmp$ret$1 = tmp;
|
|
482
|
-
tmp0_mapTo.
|
|
482
|
+
tmp0_mapTo.s(tmp$ret$1);
|
|
483
483
|
}
|
|
484
484
|
return tmp0_mapTo;
|
|
485
485
|
}
|
|
486
486
|
function resolveParameters_0(_this__u8e3s4, $this) {
|
|
487
487
|
// Inline function 'kotlin.collections.map' call
|
|
488
488
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
489
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
489
|
+
var tmp0_elvis_lhs = _this__u8e3s4.s18_1;
|
|
490
490
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
491
491
|
// Inline function 'kotlin.collections.mapTo' call
|
|
492
492
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
493
|
-
var tmp0_iterator = tmp1_map.
|
|
494
|
-
while (tmp0_iterator.
|
|
495
|
-
var item = tmp0_iterator.
|
|
493
|
+
var tmp0_iterator = tmp1_map.v();
|
|
494
|
+
while (tmp0_iterator.w()) {
|
|
495
|
+
var item = tmp0_iterator.y();
|
|
496
496
|
var tmp$ret$1;
|
|
497
497
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.resolveParameters.<anonymous>' call
|
|
498
498
|
var tmp;
|
|
@@ -506,16 +506,16 @@
|
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
tmp$ret$1 = tmp;
|
|
509
|
-
tmp0_mapTo.
|
|
509
|
+
tmp0_mapTo.s(tmp$ret$1);
|
|
510
510
|
}
|
|
511
511
|
return tmp0_mapTo;
|
|
512
512
|
}
|
|
513
513
|
function resolveParameterObject(_this__u8e3s4, $this) {
|
|
514
|
-
var tmp0_safe_receiver = $this.
|
|
515
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
514
|
+
var tmp0_safe_receiver = $this.q22_1.u17_1;
|
|
515
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u2(getReference(_this__u8e3s4, $this));
|
|
516
516
|
var tmp;
|
|
517
517
|
if (tmp1_elvis_lhs == null) {
|
|
518
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
518
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.m1a_1);
|
|
519
519
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
520
520
|
} else {
|
|
521
521
|
tmp = tmp1_elvis_lhs;
|
|
@@ -523,11 +523,11 @@
|
|
|
523
523
|
return tmp;
|
|
524
524
|
}
|
|
525
525
|
function resolveResponseObject(_this__u8e3s4, $this) {
|
|
526
|
-
var tmp0_safe_receiver = $this.
|
|
527
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
526
|
+
var tmp0_safe_receiver = $this.q22_1.v17_1;
|
|
527
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u2(getReference(_this__u8e3s4, $this));
|
|
528
528
|
var tmp;
|
|
529
529
|
if (tmp1_elvis_lhs == null) {
|
|
530
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
530
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.m1a_1);
|
|
531
531
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
532
532
|
} else {
|
|
533
533
|
tmp = tmp1_elvis_lhs;
|
|
@@ -535,11 +535,11 @@
|
|
|
535
535
|
return tmp;
|
|
536
536
|
}
|
|
537
537
|
function resolveSchemaObject(_this__u8e3s4, $this) {
|
|
538
|
-
var tmp0_safe_receiver = $this.
|
|
539
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
538
|
+
var tmp0_safe_receiver = $this.q22_1.t17_1;
|
|
539
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u2(getReference(_this__u8e3s4, $this));
|
|
540
540
|
var tmp;
|
|
541
541
|
if (tmp1_elvis_lhs == null) {
|
|
542
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
542
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.m1a_1);
|
|
543
543
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
544
544
|
} else {
|
|
545
545
|
tmp = tmp1_elvis_lhs;
|
|
@@ -604,12 +604,12 @@
|
|
|
604
604
|
}
|
|
605
605
|
function flatten(_this__u8e3s4, $this, name) {
|
|
606
606
|
var tmp;
|
|
607
|
-
if (!(_this__u8e3s4.
|
|
607
|
+
if (!(_this__u8e3s4.s1b_1 == null)) {
|
|
608
608
|
var tmp_0;
|
|
609
|
-
if (_this__u8e3s4.
|
|
609
|
+
if (_this__u8e3s4.s1b_1 instanceof BooleanObject) {
|
|
610
610
|
tmp_0 = emptyList();
|
|
611
611
|
} else {
|
|
612
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
612
|
+
var tmp1_safe_receiver = _this__u8e3s4.s1b_1;
|
|
613
613
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_0(tmp1_safe_receiver, $this);
|
|
614
614
|
var tmp_1;
|
|
615
615
|
if (tmp2_safe_receiver == null) {
|
|
@@ -619,7 +619,7 @@
|
|
|
619
619
|
// Inline function 'kotlin.contracts.contract' call
|
|
620
620
|
var tmp_2;
|
|
621
621
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
622
|
-
if (!(tmp2_safe_receiver.
|
|
622
|
+
if (!(tmp2_safe_receiver.r1b_1 == null)) {
|
|
623
623
|
tmp_2 = tmp2_safe_receiver;
|
|
624
624
|
} else {
|
|
625
625
|
tmp_2 = null;
|
|
@@ -631,17 +631,17 @@
|
|
|
631
631
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
632
632
|
}
|
|
633
633
|
tmp = tmp_0;
|
|
634
|
-
} else if (!(_this__u8e3s4.
|
|
634
|
+
} else if (!(_this__u8e3s4.q1b_1 == null)) {
|
|
635
635
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
636
636
|
// Inline function 'kotlin.collections.flatMap' call
|
|
637
637
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
638
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
638
|
+
var tmp0_elvis_lhs = _this__u8e3s4.q1b_1;
|
|
639
639
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
640
640
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
641
641
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
642
|
-
var tmp0_iterator = tmp1_flatMap.
|
|
643
|
-
while (tmp0_iterator.
|
|
644
|
-
var element = tmp0_iterator.
|
|
642
|
+
var tmp0_iterator = tmp1_flatMap.v();
|
|
643
|
+
while (tmp0_iterator.w()) {
|
|
644
|
+
var element = tmp0_iterator.y();
|
|
645
645
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
646
646
|
var tmp_3;
|
|
647
647
|
if (element instanceof SchemaObject) {
|
|
@@ -658,23 +658,23 @@
|
|
|
658
658
|
}
|
|
659
659
|
var set = HashSet_init_$Create$();
|
|
660
660
|
var list_0 = ArrayList_init_$Create$();
|
|
661
|
-
var tmp0_iterator_0 = tmp0_flatMapTo.
|
|
662
|
-
while (tmp0_iterator_0.
|
|
663
|
-
var e = tmp0_iterator_0.
|
|
661
|
+
var tmp0_iterator_0 = tmp0_flatMapTo.v();
|
|
662
|
+
while (tmp0_iterator_0.w()) {
|
|
663
|
+
var e = tmp0_iterator_0.y();
|
|
664
664
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
665
|
-
var key = e.
|
|
666
|
-
if (set.
|
|
667
|
-
list_0.
|
|
665
|
+
var key = e.e1y_1;
|
|
666
|
+
if (set.s(key)) {
|
|
667
|
+
list_0.s(e);
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
670
|
var tmp_4 = listOf(new Type(name, new Shape(list_0)));
|
|
671
671
|
// Inline function 'kotlin.collections.flatMap' call
|
|
672
|
-
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.
|
|
672
|
+
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.q1b_1);
|
|
673
673
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
674
674
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
675
|
-
var tmp0_iterator_1 = tmp3_flatMap.
|
|
676
|
-
while (tmp0_iterator_1.
|
|
677
|
-
var element_0 = tmp0_iterator_1.
|
|
675
|
+
var tmp0_iterator_1 = tmp3_flatMap.v();
|
|
676
|
+
while (tmp0_iterator_1.w()) {
|
|
677
|
+
var element_0 = tmp0_iterator_1.y();
|
|
678
678
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
679
679
|
var tmp_5;
|
|
680
680
|
if (element_0 instanceof ReferenceObject) {
|
|
@@ -683,25 +683,25 @@
|
|
|
683
683
|
if (element_0 instanceof SchemaObject) {
|
|
684
684
|
// Inline function 'kotlin.collections.flatMap' call
|
|
685
685
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
686
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
686
|
+
var tmp0_elvis_lhs_0 = element_0.r1b_1;
|
|
687
687
|
var tmp1_flatMap_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
688
688
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
689
689
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
690
690
|
// Inline function 'kotlin.collections.iterator' call
|
|
691
|
-
var tmp0_iterator_2 = tmp1_flatMap_0.
|
|
692
|
-
while (tmp0_iterator_2.
|
|
693
|
-
var element_1 = tmp0_iterator_2.
|
|
691
|
+
var tmp0_iterator_2 = tmp1_flatMap_0.n2().v();
|
|
692
|
+
while (tmp0_iterator_2.w()) {
|
|
693
|
+
var element_1 = tmp0_iterator_2.y();
|
|
694
694
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>.<anonymous>' call
|
|
695
695
|
// Inline function 'kotlin.collections.component1' call
|
|
696
|
-
var key_0 = element_1.
|
|
696
|
+
var key_0 = element_1.o2();
|
|
697
697
|
// Inline function 'kotlin.collections.component2' call
|
|
698
|
-
var value = element_1.
|
|
698
|
+
var value = element_1.p2();
|
|
699
699
|
var tmp_6;
|
|
700
700
|
if (value instanceof ReferenceObject) {
|
|
701
701
|
tmp_6 = emptyList();
|
|
702
702
|
} else {
|
|
703
703
|
if (value instanceof SchemaObject) {
|
|
704
|
-
tmp_6 = flatten(value, $this, Common_getInstance().
|
|
704
|
+
tmp_6 = flatten(value, $this, Common_getInstance().o22([name, key_0]));
|
|
705
705
|
} else {
|
|
706
706
|
noWhenBranchMatchedException();
|
|
707
707
|
}
|
|
@@ -718,50 +718,50 @@
|
|
|
718
718
|
addAll(tmp0_flatMapTo_0, list_2);
|
|
719
719
|
}
|
|
720
720
|
tmp = plus(tmp_4, tmp0_flatMapTo_0);
|
|
721
|
-
} else if (!(_this__u8e3s4.
|
|
721
|
+
} else if (!(_this__u8e3s4.n1b_1 == null)) {
|
|
722
722
|
// Inline function 'kotlin.let' call
|
|
723
723
|
// Inline function 'kotlin.collections.map' call
|
|
724
|
-
var tmp4_map = ensureNotNull(_this__u8e3s4.
|
|
724
|
+
var tmp4_map = ensureNotNull(_this__u8e3s4.n1b_1);
|
|
725
725
|
// Inline function 'kotlin.collections.mapTo' call
|
|
726
726
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp4_map, 10));
|
|
727
|
-
var tmp0_iterator_3 = tmp4_map.
|
|
728
|
-
while (tmp0_iterator_3.
|
|
729
|
-
var item = tmp0_iterator_3.
|
|
727
|
+
var tmp0_iterator_3 = tmp4_map.v();
|
|
728
|
+
while (tmp0_iterator_3.w()) {
|
|
729
|
+
var item = tmp0_iterator_3.y();
|
|
730
730
|
var tmp$ret$18;
|
|
731
731
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
732
|
-
tmp$ret$18 = item.
|
|
733
|
-
tmp0_mapTo.
|
|
732
|
+
tmp$ret$18 = item.n10();
|
|
733
|
+
tmp0_mapTo.s(tmp$ret$18);
|
|
734
734
|
}
|
|
735
735
|
var tmp5_let = toSet(tmp0_mapTo);
|
|
736
736
|
// Inline function 'kotlin.contracts.contract' call
|
|
737
737
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
738
738
|
tmp = listOf(new Enum(name, tmp5_let));
|
|
739
739
|
} else {
|
|
740
|
-
var tmp5_subject = _this__u8e3s4.
|
|
740
|
+
var tmp5_subject = _this__u8e3s4.o1b_1;
|
|
741
741
|
var tmp_7;
|
|
742
|
-
switch (tmp5_subject == null ? -1 : tmp5_subject.
|
|
742
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.c9_1) {
|
|
743
743
|
case -1:
|
|
744
744
|
case 5:
|
|
745
745
|
// Inline function 'kotlin.collections.flatMap' call
|
|
746
746
|
|
|
747
747
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
748
748
|
|
|
749
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
749
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.r1b_1;
|
|
750
750
|
var tmp7_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
751
751
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
752
752
|
|
|
753
753
|
var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
|
|
754
754
|
// Inline function 'kotlin.collections.iterator' call
|
|
755
755
|
|
|
756
|
-
var tmp0_iterator_4 = tmp7_flatMap.
|
|
757
|
-
while (tmp0_iterator_4.
|
|
758
|
-
var element_2 = tmp0_iterator_4.
|
|
756
|
+
var tmp0_iterator_4 = tmp7_flatMap.n2().v();
|
|
757
|
+
while (tmp0_iterator_4.w()) {
|
|
758
|
+
var element_2 = tmp0_iterator_4.y();
|
|
759
759
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
760
760
|
// Inline function 'kotlin.collections.component1' call
|
|
761
|
-
var key_1 = element_2.
|
|
761
|
+
var key_1 = element_2.o2();
|
|
762
762
|
// Inline function 'kotlin.collections.component2' call
|
|
763
|
-
var value_0 = element_2.
|
|
764
|
-
var list_3 = flatten_0(value_0, $this, Common_getInstance().
|
|
763
|
+
var value_0 = element_2.p2();
|
|
764
|
+
var list_3 = flatten_0(value_0, $this, Common_getInstance().o22([name, key_1]));
|
|
765
765
|
addAll(tmp0_flatMapTo_2, list_3);
|
|
766
766
|
}
|
|
767
767
|
|
|
@@ -770,13 +770,13 @@
|
|
|
770
770
|
tmp_7 = plus(schema, fields);
|
|
771
771
|
break;
|
|
772
772
|
case 4:
|
|
773
|
-
var it = _this__u8e3s4.
|
|
773
|
+
var it = _this__u8e3s4.p1b_1;
|
|
774
774
|
var tmp_8;
|
|
775
775
|
if (it instanceof ReferenceObject) {
|
|
776
776
|
tmp_8 = emptyList();
|
|
777
777
|
} else {
|
|
778
778
|
if (it instanceof SchemaObject) {
|
|
779
|
-
tmp_8 = flatten(it, $this, Common_getInstance().
|
|
779
|
+
tmp_8 = flatten(it, $this, Common_getInstance().o22([name, 'Array']));
|
|
780
780
|
} else {
|
|
781
781
|
if (it == null) {
|
|
782
782
|
tmp_8 = emptyList();
|
|
@@ -816,8 +816,8 @@
|
|
|
816
816
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
|
|
817
817
|
var schema = resolve(tmp0_let, $this);
|
|
818
818
|
var tmp;
|
|
819
|
-
if (!(schema.
|
|
820
|
-
var additionalProperties = ensureNotNull(schema.
|
|
819
|
+
if (!(schema.s1b_1 == null)) {
|
|
820
|
+
var additionalProperties = ensureNotNull(schema.s1b_1);
|
|
821
821
|
var tmp_0;
|
|
822
822
|
if (additionalProperties instanceof BooleanObject) {
|
|
823
823
|
tmp_0 = new Any(false, true);
|
|
@@ -833,24 +833,24 @@
|
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
835
|
tmp = tmp_0;
|
|
836
|
-
} else if (!(schema.
|
|
837
|
-
tmp = new Custom(Common_getInstance().
|
|
838
|
-
} else if (isPrimitive(schema.
|
|
839
|
-
tmp = new Primitive(toPrimitive(ensureNotNull(schema.
|
|
836
|
+
} else if (!(schema.n1b_1 == null)) {
|
|
837
|
+
tmp = new Custom(Common_getInstance().o22([getReference(_this__u8e3s4, $this)]), false, false);
|
|
838
|
+
} else if (isPrimitive(schema.o1b_1)) {
|
|
839
|
+
tmp = new Primitive(toPrimitive(ensureNotNull(schema.o1b_1), $this), false, false);
|
|
840
840
|
} else {
|
|
841
|
-
var tmp0_subject = schema.
|
|
841
|
+
var tmp0_subject = schema.o1b_1;
|
|
842
842
|
var tmp_1;
|
|
843
|
-
if ((tmp0_subject == null ? -1 : tmp0_subject.
|
|
844
|
-
var items = schema.
|
|
843
|
+
if ((tmp0_subject == null ? -1 : tmp0_subject.c9_1) === 4) {
|
|
844
|
+
var items = schema.p1b_1;
|
|
845
845
|
var tmp_2;
|
|
846
846
|
if (items instanceof ReferenceObject) {
|
|
847
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
847
|
+
tmp_2 = new Custom(Common_getInstance().o22([getReference(items, $this)]), true);
|
|
848
848
|
} else {
|
|
849
849
|
if (items instanceof SchemaObject) {
|
|
850
|
-
tmp_2 = toIterable(toReference_0(items, $this, Common_getInstance().
|
|
850
|
+
tmp_2 = toIterable(toReference_0(items, $this, Common_getInstance().o22([getReference(_this__u8e3s4, $this), 'Array'])));
|
|
851
851
|
} else {
|
|
852
852
|
if (items == null) {
|
|
853
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.
|
|
853
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.m1a_1);
|
|
854
854
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
855
855
|
} else {
|
|
856
856
|
noWhenBranchMatchedException();
|
|
@@ -861,10 +861,10 @@
|
|
|
861
861
|
} else {
|
|
862
862
|
var tmp_3;
|
|
863
863
|
if (tmp0_let instanceof SchemaObject) {
|
|
864
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
864
|
+
tmp_3 = new Custom(Common_getInstance().o22([getReference(_this__u8e3s4, $this)]), false);
|
|
865
865
|
} else {
|
|
866
866
|
if (tmp0_let instanceof ReferenceObject) {
|
|
867
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
867
|
+
tmp_3 = new Custom(Common_getInstance().o22([getReference(tmp0_let, $this)]), false);
|
|
868
868
|
} else {
|
|
869
869
|
noWhenBranchMatchedException();
|
|
870
870
|
}
|
|
@@ -877,8 +877,8 @@
|
|
|
877
877
|
}
|
|
878
878
|
function toReference_0(_this__u8e3s4, $this, name) {
|
|
879
879
|
var tmp;
|
|
880
|
-
if (!(_this__u8e3s4.
|
|
881
|
-
var additionalProperties = ensureNotNull(_this__u8e3s4.
|
|
880
|
+
if (!(_this__u8e3s4.s1b_1 == null)) {
|
|
881
|
+
var additionalProperties = ensureNotNull(_this__u8e3s4.s1b_1);
|
|
882
882
|
var tmp_0;
|
|
883
883
|
if (additionalProperties instanceof BooleanObject) {
|
|
884
884
|
tmp_0 = new Any(false, true);
|
|
@@ -891,7 +891,7 @@
|
|
|
891
891
|
// Inline function 'kotlin.contracts.contract' call
|
|
892
892
|
var tmp_1;
|
|
893
893
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
|
|
894
|
-
if (isPrimitive(additionalProperties.
|
|
894
|
+
if (isPrimitive(additionalProperties.o1b_1) ? true : !(additionalProperties.r1b_1 == null)) {
|
|
895
895
|
tmp_1 = additionalProperties;
|
|
896
896
|
} else {
|
|
897
897
|
tmp_1 = null;
|
|
@@ -914,32 +914,32 @@
|
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
916
|
tmp = tmp_0;
|
|
917
|
-
} else if (!(_this__u8e3s4.
|
|
918
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
917
|
+
} else if (!(_this__u8e3s4.n1b_1 == null)) {
|
|
918
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.s1b_1 == null));
|
|
919
919
|
} else {
|
|
920
|
-
var type = _this__u8e3s4.
|
|
920
|
+
var type = _this__u8e3s4.o1b_1;
|
|
921
921
|
var tmp_3;
|
|
922
|
-
switch (type == null ? -1 : type.
|
|
922
|
+
switch (type == null ? -1 : type.c9_1) {
|
|
923
923
|
case 0:
|
|
924
924
|
case 2:
|
|
925
925
|
case 1:
|
|
926
926
|
case 3:
|
|
927
|
-
tmp_3 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.
|
|
927
|
+
tmp_3 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.s1b_1 == null));
|
|
928
928
|
break;
|
|
929
929
|
case -1:
|
|
930
930
|
case 5:
|
|
931
931
|
var tmp_4;
|
|
932
|
-
var tmp_5 = _this__u8e3s4.
|
|
932
|
+
var tmp_5 = _this__u8e3s4.s1b_1;
|
|
933
933
|
if (tmp_5 instanceof BooleanObject) {
|
|
934
|
-
tmp_4 = new Any(false, !(_this__u8e3s4.
|
|
934
|
+
tmp_4 = new Any(false, !(_this__u8e3s4.s1b_1 == null));
|
|
935
935
|
} else {
|
|
936
|
-
tmp_4 = new Custom(name, false, !(_this__u8e3s4.
|
|
936
|
+
tmp_4 = new Custom(name, false, !(_this__u8e3s4.s1b_1 == null));
|
|
937
937
|
}
|
|
938
938
|
|
|
939
939
|
tmp_3 = tmp_4;
|
|
940
940
|
break;
|
|
941
941
|
case 4:
|
|
942
|
-
var it = _this__u8e3s4.
|
|
942
|
+
var it = _this__u8e3s4.p1b_1;
|
|
943
943
|
var tmp_6;
|
|
944
944
|
if (it instanceof ReferenceObject) {
|
|
945
945
|
tmp_6 = toIterable(toReference(it, $this));
|
|
@@ -973,52 +973,52 @@
|
|
|
973
973
|
var tmp0_associateWith = get_entries();
|
|
974
974
|
var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(collectionSizeOrDefault(tmp0_associateWith, 10)), 16));
|
|
975
975
|
// Inline function 'kotlin.collections.associateWithTo' call
|
|
976
|
-
var tmp0_iterator = tmp0_associateWith.
|
|
977
|
-
while (tmp0_iterator.
|
|
978
|
-
var element = tmp0_iterator.
|
|
976
|
+
var tmp0_iterator = tmp0_associateWith.v();
|
|
977
|
+
while (tmp0_iterator.w()) {
|
|
978
|
+
var element = tmp0_iterator.y();
|
|
979
979
|
var tmp$ret$0;
|
|
980
980
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toOperationList.<anonymous>' call
|
|
981
981
|
var tmp;
|
|
982
|
-
switch (element.
|
|
982
|
+
switch (element.c9_1) {
|
|
983
983
|
case 0:
|
|
984
|
-
tmp = _this__u8e3s4.
|
|
984
|
+
tmp = _this__u8e3s4.j18_1;
|
|
985
985
|
break;
|
|
986
986
|
case 1:
|
|
987
|
-
tmp = _this__u8e3s4.
|
|
987
|
+
tmp = _this__u8e3s4.l18_1;
|
|
988
988
|
break;
|
|
989
989
|
case 2:
|
|
990
|
-
tmp = _this__u8e3s4.
|
|
990
|
+
tmp = _this__u8e3s4.k18_1;
|
|
991
991
|
break;
|
|
992
992
|
case 3:
|
|
993
|
-
tmp = _this__u8e3s4.
|
|
993
|
+
tmp = _this__u8e3s4.m18_1;
|
|
994
994
|
break;
|
|
995
995
|
case 4:
|
|
996
|
-
tmp = _this__u8e3s4.
|
|
996
|
+
tmp = _this__u8e3s4.n18_1;
|
|
997
997
|
break;
|
|
998
998
|
case 5:
|
|
999
|
-
tmp = _this__u8e3s4.
|
|
999
|
+
tmp = _this__u8e3s4.o18_1;
|
|
1000
1000
|
break;
|
|
1001
1001
|
case 6:
|
|
1002
|
-
tmp = _this__u8e3s4.
|
|
1002
|
+
tmp = _this__u8e3s4.p18_1;
|
|
1003
1003
|
break;
|
|
1004
1004
|
case 7:
|
|
1005
|
-
tmp = _this__u8e3s4.
|
|
1005
|
+
tmp = _this__u8e3s4.q18_1;
|
|
1006
1006
|
break;
|
|
1007
1007
|
default:
|
|
1008
1008
|
noWhenBranchMatchedException();
|
|
1009
1009
|
break;
|
|
1010
1010
|
}
|
|
1011
1011
|
tmp$ret$0 = tmp;
|
|
1012
|
-
result.
|
|
1012
|
+
result.l2(element, tmp$ret$0);
|
|
1013
1013
|
}
|
|
1014
1014
|
return filterNotNullValues(result);
|
|
1015
1015
|
}
|
|
1016
1016
|
function getReference(_this__u8e3s4, $this) {
|
|
1017
|
-
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
1017
|
+
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.m1a_1), ['/']).g1(2);
|
|
1018
1018
|
}
|
|
1019
1019
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
1020
1020
|
var tmp;
|
|
1021
|
-
switch (_this__u8e3s4.
|
|
1021
|
+
switch (_this__u8e3s4.c9_1) {
|
|
1022
1022
|
case 0:
|
|
1023
1023
|
tmp = Type_String_getInstance();
|
|
1024
1024
|
break;
|
|
@@ -1039,40 +1039,40 @@
|
|
|
1039
1039
|
function toField(_this__u8e3s4, $this, name) {
|
|
1040
1040
|
// Inline function 'kotlin.collections.map' call
|
|
1041
1041
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1042
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1042
|
+
var tmp0_elvis_lhs = _this__u8e3s4.r1b_1;
|
|
1043
1043
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1044
1044
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1045
|
-
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.
|
|
1045
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.n());
|
|
1046
1046
|
// Inline function 'kotlin.collections.iterator' call
|
|
1047
|
-
var tmp0_iterator = tmp1_map.
|
|
1048
|
-
while (tmp0_iterator.
|
|
1049
|
-
var item = tmp0_iterator.
|
|
1047
|
+
var tmp0_iterator = tmp1_map.n2().v();
|
|
1048
|
+
while (tmp0_iterator.w()) {
|
|
1049
|
+
var item = tmp0_iterator.y();
|
|
1050
1050
|
var tmp$ret$4;
|
|
1051
1051
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1052
1052
|
// Inline function 'kotlin.collections.component1' call
|
|
1053
|
-
var key = item.
|
|
1053
|
+
var key = item.o2();
|
|
1054
1054
|
// Inline function 'kotlin.collections.component2' call
|
|
1055
|
-
var value = item.
|
|
1055
|
+
var value = item.p2();
|
|
1056
1056
|
var tmp;
|
|
1057
1057
|
if (value instanceof SchemaObject) {
|
|
1058
|
-
var tmp_0 =
|
|
1059
|
-
var tmp_1 = !(value.
|
|
1060
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
1061
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1058
|
+
var tmp_0 = Companion_getInstance_0().q1z(key);
|
|
1059
|
+
var tmp_1 = !(value.n1b_1 == null) ? toReference_0(value, $this, Common_getInstance().o22([name, key])) : equals(value.o1b_1, Type_ARRAY_getInstance()) ? toReference_0(value, $this, Common_getInstance().o22([name, key, 'Array'])) : toReference_0(value, $this, Common_getInstance().o22([name, key]));
|
|
1060
|
+
var tmp1_safe_receiver = _this__u8e3s4.m1b_1;
|
|
1061
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r(key);
|
|
1062
1062
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
1063
1063
|
} else {
|
|
1064
1064
|
if (value instanceof ReferenceObject) {
|
|
1065
|
-
var tmp_2 =
|
|
1065
|
+
var tmp_2 = Companion_getInstance_0().q1z(key);
|
|
1066
1066
|
var tmp_3 = toReference(value, $this);
|
|
1067
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
1068
|
-
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
1067
|
+
var tmp3_safe_receiver = _this__u8e3s4.m1b_1;
|
|
1068
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.r(key);
|
|
1069
1069
|
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
1070
1070
|
} else {
|
|
1071
1071
|
noWhenBranchMatchedException();
|
|
1072
1072
|
}
|
|
1073
1073
|
}
|
|
1074
1074
|
tmp$ret$4 = tmp;
|
|
1075
|
-
tmp0_mapTo.
|
|
1075
|
+
tmp0_mapTo.s(tmp$ret$4);
|
|
1076
1076
|
}
|
|
1077
1077
|
return tmp0_mapTo;
|
|
1078
1078
|
}
|
|
@@ -1083,12 +1083,12 @@
|
|
|
1083
1083
|
// Inline function 'kotlin.contracts.contract' call
|
|
1084
1084
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1085
1085
|
var tmp;
|
|
1086
|
-
if (!(_this__u8e3s4.
|
|
1087
|
-
tmp = new Custom(Common_getInstance().
|
|
1086
|
+
if (!(_this__u8e3s4.h1a_1 == null)) {
|
|
1087
|
+
tmp = new Custom(Common_getInstance().o22([name, 'Parameter', tmp0_let.m19_1]), false);
|
|
1088
1088
|
} else {
|
|
1089
|
-
var type = tmp0_let.
|
|
1089
|
+
var type = tmp0_let.r19_1;
|
|
1090
1090
|
var tmp_0;
|
|
1091
|
-
switch (type == null ? -1 : type.
|
|
1091
|
+
switch (type == null ? -1 : type.c9_1) {
|
|
1092
1092
|
case 0:
|
|
1093
1093
|
case 1:
|
|
1094
1094
|
case 2:
|
|
@@ -1103,9 +1103,9 @@
|
|
|
1103
1103
|
tmp_0 = new Primitive(tmp0_let_0, false);
|
|
1104
1104
|
break;
|
|
1105
1105
|
case 4:
|
|
1106
|
-
var tmp0_safe_receiver = tmp0_let.
|
|
1106
|
+
var tmp0_safe_receiver = tmp0_let.s19_1;
|
|
1107
1107
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve(tmp0_safe_receiver, $this);
|
|
1108
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1108
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o1b_1;
|
|
1109
1109
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, $this);
|
|
1110
1110
|
var tmp_1;
|
|
1111
1111
|
if (tmp3_safe_receiver == null) {
|
|
@@ -1142,8 +1142,8 @@
|
|
|
1142
1142
|
var tmp1_let = tmp;
|
|
1143
1143
|
// Inline function 'kotlin.contracts.contract' call
|
|
1144
1144
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1145
|
-
var tmp_3 =
|
|
1146
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1145
|
+
var tmp_3 = Companion_getInstance_0().q1z(_this__u8e3s4.m19_1);
|
|
1146
|
+
var tmp0_elvis_lhs = _this__u8e3s4.p19_1;
|
|
1147
1147
|
return new Field(tmp_3, tmp1_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
1148
1148
|
}
|
|
1149
1149
|
function toSegments(_this__u8e3s4, $this, parameters) {
|
|
@@ -1151,9 +1151,9 @@
|
|
|
1151
1151
|
var tmp0_map = drop(split(_Path___get_value__impl__thmflc(_this__u8e3s4), ['/']), 1);
|
|
1152
1152
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1153
1153
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
1154
|
-
var tmp0_iterator = tmp0_map.
|
|
1155
|
-
while (tmp0_iterator.
|
|
1156
|
-
var item = tmp0_iterator.
|
|
1154
|
+
var tmp0_iterator = tmp0_map.v();
|
|
1155
|
+
while (tmp0_iterator.w()) {
|
|
1156
|
+
var item = tmp0_iterator.y();
|
|
1157
1157
|
var tmp$ret$10;
|
|
1158
1158
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>' call
|
|
1159
1159
|
var tmp;
|
|
@@ -1180,11 +1180,11 @@
|
|
|
1180
1180
|
var tmp$ret$4;
|
|
1181
1181
|
$l$block: {
|
|
1182
1182
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1183
|
-
var tmp0_iterator_0 = parameters.
|
|
1184
|
-
while (tmp0_iterator_0.
|
|
1185
|
-
var element = tmp0_iterator_0.
|
|
1183
|
+
var tmp0_iterator_0 = parameters.v();
|
|
1184
|
+
while (tmp0_iterator_0.w()) {
|
|
1185
|
+
var element = tmp0_iterator_0.y();
|
|
1186
1186
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1187
|
-
if (element.
|
|
1187
|
+
if (element.m19_1 === param) {
|
|
1188
1188
|
tmp$ret$4 = element;
|
|
1189
1189
|
break $l$block;
|
|
1190
1190
|
}
|
|
@@ -1199,7 +1199,7 @@
|
|
|
1199
1199
|
// Inline function 'kotlin.let' call
|
|
1200
1200
|
// Inline function 'kotlin.contracts.contract' call
|
|
1201
1201
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1202
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver.
|
|
1202
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver.r19_1;
|
|
1203
1203
|
tmp_2 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, $this);
|
|
1204
1204
|
}
|
|
1205
1205
|
var tmp1_safe_receiver = tmp_2;
|
|
@@ -1210,7 +1210,7 @@
|
|
|
1210
1210
|
// Inline function 'kotlin.let' call
|
|
1211
1211
|
// Inline function 'kotlin.contracts.contract' call
|
|
1212
1212
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1213
|
-
tmp_3 = new Param(
|
|
1213
|
+
tmp_3 = new Param(Companion_getInstance_0().q1z(param), new Primitive(tmp1_safe_receiver, false));
|
|
1214
1214
|
}
|
|
1215
1215
|
var tmp2_elvis_lhs = tmp_3;
|
|
1216
1216
|
var tmp_4;
|
|
@@ -1225,7 +1225,7 @@
|
|
|
1225
1225
|
tmp_1 = new Literal(item);
|
|
1226
1226
|
}
|
|
1227
1227
|
tmp$ret$10 = tmp_1;
|
|
1228
|
-
tmp0_mapTo.
|
|
1228
|
+
tmp0_mapTo.s(tmp$ret$10);
|
|
1229
1229
|
}
|
|
1230
1230
|
return tmp0_mapTo;
|
|
1231
1231
|
}
|
|
@@ -1233,7 +1233,7 @@
|
|
|
1233
1233
|
return charSequenceGet(_this__u8e3s4, 0) === _Char___init__impl__6a9atx(123) ? charSequenceGet(_this__u8e3s4, _this__u8e3s4.length - 1 | 0) === _Char___init__impl__6a9atx(125) : false;
|
|
1234
1234
|
}
|
|
1235
1235
|
function toName(_this__u8e3s4, $this) {
|
|
1236
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1236
|
+
var tmp0_safe_receiver = _this__u8e3s4.a19_1;
|
|
1237
1237
|
var tmp;
|
|
1238
1238
|
if (tmp0_safe_receiver == null) {
|
|
1239
1239
|
tmp = null;
|
|
@@ -1241,7 +1241,7 @@
|
|
|
1241
1241
|
// Inline function 'kotlin.let' call
|
|
1242
1242
|
// Inline function 'kotlin.contracts.contract' call
|
|
1243
1243
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1244
|
-
tmp = Common_getInstance().
|
|
1244
|
+
tmp = Common_getInstance().o22([tmp0_safe_receiver]);
|
|
1245
1245
|
}
|
|
1246
1246
|
return tmp;
|
|
1247
1247
|
}
|
|
@@ -1250,34 +1250,34 @@
|
|
|
1250
1250
|
var tmp0_filter = drop(split(_Path___get_value__impl__thmflc(_this__u8e3s4), ['/']), 1);
|
|
1251
1251
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1252
1252
|
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
1253
|
-
var tmp0_iterator = tmp0_filter.
|
|
1254
|
-
while (tmp0_iterator.
|
|
1255
|
-
var element = tmp0_iterator.
|
|
1253
|
+
var tmp0_iterator = tmp0_filter.v();
|
|
1254
|
+
while (tmp0_iterator.w()) {
|
|
1255
|
+
var element = tmp0_iterator.y();
|
|
1256
1256
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1257
1257
|
// Inline function 'kotlin.text.isNotBlank' call
|
|
1258
1258
|
if (!isBlank(element)) {
|
|
1259
|
-
tmp0_filterTo.
|
|
1259
|
+
tmp0_filterTo.s(element);
|
|
1260
1260
|
}
|
|
1261
1261
|
}
|
|
1262
1262
|
var tmp = tmp0_filterTo;
|
|
1263
1263
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda($this));
|
|
1264
1264
|
}
|
|
1265
1265
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
1266
|
-
this.
|
|
1267
|
-
this.
|
|
1268
|
-
this.
|
|
1269
|
-
this.
|
|
1270
|
-
this.
|
|
1266
|
+
this.t22_1 = path;
|
|
1267
|
+
this.u22_1 = pathItem;
|
|
1268
|
+
this.v22_1 = method;
|
|
1269
|
+
this.w22_1 = operation;
|
|
1270
|
+
this.x22_1 = type;
|
|
1271
1271
|
}
|
|
1272
1272
|
protoOf(FlattenRequest).toString = function () {
|
|
1273
|
-
return 'FlattenRequest(path=' + new Path(this.
|
|
1273
|
+
return 'FlattenRequest(path=' + new Path(this.t22_1) + ', pathItem=' + this.u22_1 + ', method=' + this.v22_1 + ', operation=' + this.w22_1 + ', type=' + this.x22_1 + ')';
|
|
1274
1274
|
};
|
|
1275
1275
|
protoOf(FlattenRequest).hashCode = function () {
|
|
1276
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1277
|
-
result = imul(result, 31) + this.
|
|
1278
|
-
result = imul(result, 31) + this.
|
|
1279
|
-
result = imul(result, 31) + this.
|
|
1280
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1276
|
+
var result = Path__hashCode_impl_go73kd(this.t22_1);
|
|
1277
|
+
result = imul(result, 31) + this.u22_1.hashCode() | 0;
|
|
1278
|
+
result = imul(result, 31) + this.v22_1.hashCode() | 0;
|
|
1279
|
+
result = imul(result, 31) + this.w22_1.hashCode() | 0;
|
|
1280
|
+
result = imul(result, 31) + getStringHashCode(this.x22_1) | 0;
|
|
1281
1281
|
return result;
|
|
1282
1282
|
};
|
|
1283
1283
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -1286,59 +1286,59 @@
|
|
|
1286
1286
|
if (!(other instanceof FlattenRequest))
|
|
1287
1287
|
return false;
|
|
1288
1288
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
1289
|
-
if (!(this.
|
|
1289
|
+
if (!(this.t22_1 === tmp0_other_with_cast.t22_1))
|
|
1290
1290
|
return false;
|
|
1291
|
-
if (!this.
|
|
1291
|
+
if (!this.u22_1.equals(tmp0_other_with_cast.u22_1))
|
|
1292
1292
|
return false;
|
|
1293
|
-
if (!this.
|
|
1293
|
+
if (!this.v22_1.equals(tmp0_other_with_cast.v22_1))
|
|
1294
1294
|
return false;
|
|
1295
|
-
if (!this.
|
|
1295
|
+
if (!this.w22_1.equals(tmp0_other_with_cast.w22_1))
|
|
1296
1296
|
return false;
|
|
1297
|
-
if (!(this.
|
|
1297
|
+
if (!(this.x22_1 === tmp0_other_with_cast.x22_1))
|
|
1298
1298
|
return false;
|
|
1299
1299
|
return true;
|
|
1300
1300
|
};
|
|
1301
1301
|
function flatMapRequests(_this__u8e3s4, $this, f) {
|
|
1302
1302
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1303
1303
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1304
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
1304
|
+
var tmp0_flatMap = _this__u8e3s4.s17_1;
|
|
1305
1305
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1306
1306
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1307
1307
|
// Inline function 'kotlin.collections.iterator' call
|
|
1308
|
-
var tmp0_iterator = tmp0_flatMap.
|
|
1309
|
-
while (tmp0_iterator.
|
|
1310
|
-
var element = tmp0_iterator.
|
|
1308
|
+
var tmp0_iterator = tmp0_flatMap.n2().v();
|
|
1309
|
+
while (tmp0_iterator.w()) {
|
|
1310
|
+
var element = tmp0_iterator.y();
|
|
1311
1311
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
1312
1312
|
// Inline function 'kotlin.collections.component1' call
|
|
1313
|
-
var path = element.
|
|
1313
|
+
var path = element.o2().d18_1;
|
|
1314
1314
|
// Inline function 'kotlin.collections.component2' call
|
|
1315
|
-
var pathItem = element.
|
|
1315
|
+
var pathItem = element.p2();
|
|
1316
1316
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1317
1317
|
var tmp0_flatMap_0 = toOperationList(pathItem, $this);
|
|
1318
1318
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1319
1319
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
1320
1320
|
// Inline function 'kotlin.collections.iterator' call
|
|
1321
|
-
var tmp0_iterator_0 = tmp0_flatMap_0.
|
|
1322
|
-
while (tmp0_iterator_0.
|
|
1323
|
-
var element_0 = tmp0_iterator_0.
|
|
1321
|
+
var tmp0_iterator_0 = tmp0_flatMap_0.n2().v();
|
|
1322
|
+
while (tmp0_iterator_0.w()) {
|
|
1323
|
+
var element_0 = tmp0_iterator_0.y();
|
|
1324
1324
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>.<anonymous>' call
|
|
1325
1325
|
// Inline function 'kotlin.collections.component1' call
|
|
1326
|
-
var method = element_0.
|
|
1326
|
+
var method = element_0.o2();
|
|
1327
1327
|
// Inline function 'kotlin.collections.component2' call
|
|
1328
|
-
var operation = element_0.
|
|
1328
|
+
var operation = element_0.p2();
|
|
1329
1329
|
// Inline function 'kotlin.collections.map' call
|
|
1330
|
-
var tmp0_elvis_lhs = $this.
|
|
1331
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? operation.
|
|
1330
|
+
var tmp0_elvis_lhs = $this.q22_1.q17_1;
|
|
1331
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? operation.b19_1 : tmp0_elvis_lhs;
|
|
1332
1332
|
var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
1333
1333
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1334
1334
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
1335
|
-
var tmp0_iterator_1 = tmp0_map.
|
|
1336
|
-
while (tmp0_iterator_1.
|
|
1337
|
-
var item = tmp0_iterator_1.
|
|
1335
|
+
var tmp0_iterator_1 = tmp0_map.v();
|
|
1336
|
+
while (tmp0_iterator_1.w()) {
|
|
1337
|
+
var item = tmp0_iterator_1.y();
|
|
1338
1338
|
var tmp$ret$6;
|
|
1339
1339
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>.<anonymous>.<anonymous>' call
|
|
1340
1340
|
tmp$ret$6 = new FlattenRequest(path, pathItem, method, operation, item);
|
|
1341
|
-
tmp0_mapTo.
|
|
1341
|
+
tmp0_mapTo.s(tmp$ret$6);
|
|
1342
1342
|
}
|
|
1343
1343
|
var list = tmp0_mapTo;
|
|
1344
1344
|
addAll(tmp0_flatMapTo_0, list);
|
|
@@ -1348,9 +1348,9 @@
|
|
|
1348
1348
|
}
|
|
1349
1349
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1350
1350
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
1351
|
-
var tmp0_iterator_2 = tmp0_flatMapTo.
|
|
1352
|
-
while (tmp0_iterator_2.
|
|
1353
|
-
var element_1 = tmp0_iterator_2.
|
|
1351
|
+
var tmp0_iterator_2 = tmp0_flatMapTo.v();
|
|
1352
|
+
while (tmp0_iterator_2.w()) {
|
|
1353
|
+
var element_1 = tmp0_iterator_2.y();
|
|
1354
1354
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
1355
1355
|
var list_1 = f(element_1);
|
|
1356
1356
|
addAll(tmp0_flatMapTo_1, list_1);
|
|
@@ -1358,25 +1358,25 @@
|
|
|
1358
1358
|
return tmp0_flatMapTo_1;
|
|
1359
1359
|
}
|
|
1360
1360
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1363
|
-
this.
|
|
1364
|
-
this.
|
|
1365
|
-
this.
|
|
1366
|
-
this.
|
|
1367
|
-
this.
|
|
1361
|
+
this.y22_1 = path;
|
|
1362
|
+
this.z22_1 = pathItem;
|
|
1363
|
+
this.a23_1 = method;
|
|
1364
|
+
this.b23_1 = operation;
|
|
1365
|
+
this.c23_1 = statusCode;
|
|
1366
|
+
this.d23_1 = response;
|
|
1367
|
+
this.e23_1 = type;
|
|
1368
1368
|
}
|
|
1369
1369
|
protoOf(FlattenResponse).toString = function () {
|
|
1370
|
-
return 'FlattenResponse(path=' + new Path(this.
|
|
1370
|
+
return 'FlattenResponse(path=' + new Path(this.y22_1) + ', pathItem=' + this.z22_1 + ', method=' + this.a23_1 + ', operation=' + this.b23_1 + ', statusCode=' + new StatusCode(this.c23_1) + ', response=' + this.d23_1 + ', type=' + this.e23_1 + ')';
|
|
1371
1371
|
};
|
|
1372
1372
|
protoOf(FlattenResponse).hashCode = function () {
|
|
1373
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1374
|
-
result = imul(result, 31) + this.
|
|
1375
|
-
result = imul(result, 31) + this.
|
|
1376
|
-
result = imul(result, 31) + this.
|
|
1377
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
1378
|
-
result = imul(result, 31) + hashCode(this.
|
|
1379
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1373
|
+
var result = Path__hashCode_impl_go73kd(this.y22_1);
|
|
1374
|
+
result = imul(result, 31) + this.z22_1.hashCode() | 0;
|
|
1375
|
+
result = imul(result, 31) + this.a23_1.hashCode() | 0;
|
|
1376
|
+
result = imul(result, 31) + this.b23_1.hashCode() | 0;
|
|
1377
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.c23_1) | 0;
|
|
1378
|
+
result = imul(result, 31) + hashCode(this.d23_1) | 0;
|
|
1379
|
+
result = imul(result, 31) + getStringHashCode(this.e23_1) | 0;
|
|
1380
1380
|
return result;
|
|
1381
1381
|
};
|
|
1382
1382
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -1385,78 +1385,78 @@
|
|
|
1385
1385
|
if (!(other instanceof FlattenResponse))
|
|
1386
1386
|
return false;
|
|
1387
1387
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
1388
|
-
if (!(this.
|
|
1388
|
+
if (!(this.y22_1 === tmp0_other_with_cast.y22_1))
|
|
1389
1389
|
return false;
|
|
1390
|
-
if (!this.
|
|
1390
|
+
if (!this.z22_1.equals(tmp0_other_with_cast.z22_1))
|
|
1391
1391
|
return false;
|
|
1392
|
-
if (!this.
|
|
1392
|
+
if (!this.a23_1.equals(tmp0_other_with_cast.a23_1))
|
|
1393
1393
|
return false;
|
|
1394
|
-
if (!this.
|
|
1394
|
+
if (!this.b23_1.equals(tmp0_other_with_cast.b23_1))
|
|
1395
1395
|
return false;
|
|
1396
|
-
if (!(this.
|
|
1396
|
+
if (!(this.c23_1 === tmp0_other_with_cast.c23_1))
|
|
1397
1397
|
return false;
|
|
1398
|
-
if (!equals(this.
|
|
1398
|
+
if (!equals(this.d23_1, tmp0_other_with_cast.d23_1))
|
|
1399
1399
|
return false;
|
|
1400
|
-
if (!(this.
|
|
1400
|
+
if (!(this.e23_1 === tmp0_other_with_cast.e23_1))
|
|
1401
1401
|
return false;
|
|
1402
1402
|
return true;
|
|
1403
1403
|
};
|
|
1404
1404
|
function flatMapResponses(_this__u8e3s4, $this, f) {
|
|
1405
1405
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1406
1406
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1407
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
1407
|
+
var tmp0_flatMap = _this__u8e3s4.s17_1;
|
|
1408
1408
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1409
1409
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1410
1410
|
// Inline function 'kotlin.collections.iterator' call
|
|
1411
|
-
var tmp0_iterator = tmp0_flatMap.
|
|
1412
|
-
while (tmp0_iterator.
|
|
1413
|
-
var element = tmp0_iterator.
|
|
1411
|
+
var tmp0_iterator = tmp0_flatMap.n2().v();
|
|
1412
|
+
while (tmp0_iterator.w()) {
|
|
1413
|
+
var element = tmp0_iterator.y();
|
|
1414
1414
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
1415
1415
|
// Inline function 'kotlin.collections.component1' call
|
|
1416
|
-
var path = element.
|
|
1416
|
+
var path = element.o2().d18_1;
|
|
1417
1417
|
// Inline function 'kotlin.collections.component2' call
|
|
1418
|
-
var pathItem = element.
|
|
1418
|
+
var pathItem = element.p2();
|
|
1419
1419
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1420
1420
|
var tmp0_flatMap_0 = toOperationList(pathItem, $this);
|
|
1421
1421
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1422
1422
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
1423
1423
|
// Inline function 'kotlin.collections.iterator' call
|
|
1424
|
-
var tmp0_iterator_0 = tmp0_flatMap_0.
|
|
1425
|
-
while (tmp0_iterator_0.
|
|
1426
|
-
var element_0 = tmp0_iterator_0.
|
|
1424
|
+
var tmp0_iterator_0 = tmp0_flatMap_0.n2().v();
|
|
1425
|
+
while (tmp0_iterator_0.w()) {
|
|
1426
|
+
var element_0 = tmp0_iterator_0.y();
|
|
1427
1427
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>' call
|
|
1428
1428
|
// Inline function 'kotlin.collections.component1' call
|
|
1429
|
-
var method = element_0.
|
|
1429
|
+
var method = element_0.o2();
|
|
1430
1430
|
// Inline function 'kotlin.collections.component2' call
|
|
1431
|
-
var operation = element_0.
|
|
1431
|
+
var operation = element_0.p2();
|
|
1432
1432
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1433
1433
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1434
|
-
var tmp0_elvis_lhs = operation.
|
|
1434
|
+
var tmp0_elvis_lhs = operation.e19_1;
|
|
1435
1435
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1436
1436
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1437
1437
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
1438
1438
|
// Inline function 'kotlin.collections.iterator' call
|
|
1439
|
-
var tmp0_iterator_1 = tmp1_flatMap.
|
|
1440
|
-
while (tmp0_iterator_1.
|
|
1441
|
-
var element_1 = tmp0_iterator_1.
|
|
1439
|
+
var tmp0_iterator_1 = tmp1_flatMap.n2().v();
|
|
1440
|
+
while (tmp0_iterator_1.w()) {
|
|
1441
|
+
var element_1 = tmp0_iterator_1.y();
|
|
1442
1442
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
1443
1443
|
// Inline function 'kotlin.collections.component1' call
|
|
1444
|
-
var statusCode = element_1.
|
|
1444
|
+
var statusCode = element_1.o2().w1b_1;
|
|
1445
1445
|
// Inline function 'kotlin.collections.component2' call
|
|
1446
|
-
var response = element_1.
|
|
1446
|
+
var response = element_1.p2();
|
|
1447
1447
|
// Inline function 'kotlin.collections.map' call
|
|
1448
|
-
var tmp0_elvis_lhs_0 = _this__u8e3s4.
|
|
1449
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.
|
|
1448
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.r17_1;
|
|
1449
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.c19_1 : tmp0_elvis_lhs_0;
|
|
1450
1450
|
var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
1451
1451
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1452
1452
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
1453
|
-
var tmp0_iterator_2 = tmp0_map.
|
|
1454
|
-
while (tmp0_iterator_2.
|
|
1455
|
-
var item = tmp0_iterator_2.
|
|
1453
|
+
var tmp0_iterator_2 = tmp0_map.v();
|
|
1454
|
+
while (tmp0_iterator_2.w()) {
|
|
1455
|
+
var item = tmp0_iterator_2.y();
|
|
1456
1456
|
var tmp$ret$10;
|
|
1457
1457
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1458
1458
|
tmp$ret$10 = new FlattenResponse(path, pathItem, method, operation, statusCode, response, item);
|
|
1459
|
-
tmp0_mapTo.
|
|
1459
|
+
tmp0_mapTo.s(tmp$ret$10);
|
|
1460
1460
|
}
|
|
1461
1461
|
var list = tmp0_mapTo;
|
|
1462
1462
|
addAll(tmp0_flatMapTo_1, list);
|
|
@@ -1469,9 +1469,9 @@
|
|
|
1469
1469
|
}
|
|
1470
1470
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1471
1471
|
var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
|
|
1472
|
-
var tmp0_iterator_3 = tmp0_flatMapTo.
|
|
1473
|
-
while (tmp0_iterator_3.
|
|
1474
|
-
var element_2 = tmp0_iterator_3.
|
|
1472
|
+
var tmp0_iterator_3 = tmp0_flatMapTo.v();
|
|
1473
|
+
while (tmp0_iterator_3.w()) {
|
|
1474
|
+
var element_2 = tmp0_iterator_3.y();
|
|
1475
1475
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
1476
1476
|
var list_2 = f(element_2);
|
|
1477
1477
|
addAll(tmp0_flatMapTo_2, list_2);
|
|
@@ -1480,9 +1480,9 @@
|
|
|
1480
1480
|
}
|
|
1481
1481
|
function OpenApiParser$parseParameters$lambda(this$0) {
|
|
1482
1482
|
return function (req) {
|
|
1483
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1484
|
-
var tmp0_elvis_lhs = toName(req.
|
|
1485
|
-
var name = tmp0_elvis_lhs == null ? toName_0(req.
|
|
1483
|
+
var parameters = plus(resolveParameters_0(req.u22_1, this$0), resolveParameters(req.w22_1, this$0));
|
|
1484
|
+
var tmp0_elvis_lhs = toName(req.w22_1, this$0);
|
|
1485
|
+
var name = tmp0_elvis_lhs == null ? toName_0(req.t22_1, this$0) + req.v22_1.b9_1 : tmp0_elvis_lhs;
|
|
1486
1486
|
var tmp$ret$5;
|
|
1487
1487
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1488
1488
|
var tmp$ret$2;
|
|
@@ -1490,14 +1490,14 @@
|
|
|
1490
1490
|
var tmp$ret$1;
|
|
1491
1491
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1492
1492
|
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
1493
|
-
var tmp0_iterator = parameters.
|
|
1494
|
-
while (tmp0_iterator.
|
|
1495
|
-
var element = tmp0_iterator.
|
|
1493
|
+
var tmp0_iterator = parameters.v();
|
|
1494
|
+
while (tmp0_iterator.w()) {
|
|
1495
|
+
var element = tmp0_iterator.y();
|
|
1496
1496
|
var tmp$ret$0;
|
|
1497
1497
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
1498
|
-
tmp$ret$0 = !element.
|
|
1498
|
+
tmp$ret$0 = !element.n19_1.equals(ParameterLocation_BODY_getInstance());
|
|
1499
1499
|
if (tmp$ret$0) {
|
|
1500
|
-
tmp0_filterTo.
|
|
1500
|
+
tmp0_filterTo.s(element);
|
|
1501
1501
|
}
|
|
1502
1502
|
}
|
|
1503
1503
|
tmp$ret$1 = tmp0_filterTo;
|
|
@@ -1506,13 +1506,13 @@
|
|
|
1506
1506
|
var tmp$ret$4;
|
|
1507
1507
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1508
1508
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1509
|
-
var tmp0_iterator_0 = tmp0_flatMap.
|
|
1510
|
-
while (tmp0_iterator_0.
|
|
1511
|
-
var element_0 = tmp0_iterator_0.
|
|
1509
|
+
var tmp0_iterator_0 = tmp0_flatMap.v();
|
|
1510
|
+
while (tmp0_iterator_0.w()) {
|
|
1511
|
+
var element_0 = tmp0_iterator_0.y();
|
|
1512
1512
|
var tmp$ret$3;
|
|
1513
1513
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
1514
|
-
var tmp0_safe_receiver = element_0.
|
|
1515
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_0(tmp0_safe_receiver, this$0, Common_getInstance().
|
|
1514
|
+
var tmp0_safe_receiver = element_0.q19_1;
|
|
1515
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_0(tmp0_safe_receiver, this$0, Common_getInstance().o22([name, 'Parameter', element_0.m19_1]));
|
|
1516
1516
|
tmp$ret$3 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
1517
1517
|
var list = tmp$ret$3;
|
|
1518
1518
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -1524,35 +1524,35 @@
|
|
|
1524
1524
|
}
|
|
1525
1525
|
function OpenApiParser$parseRequestBody$lambda(this$0) {
|
|
1526
1526
|
return function (req) {
|
|
1527
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1528
|
-
var tmp0_elvis_lhs = toName(req.
|
|
1529
|
-
var name = tmp0_elvis_lhs == null ? toName_0(req.
|
|
1527
|
+
var parameters = plus(resolveParameters_0(req.u22_1, this$0), resolveParameters(req.w22_1, this$0));
|
|
1528
|
+
var tmp0_elvis_lhs = toName(req.w22_1, this$0);
|
|
1529
|
+
var name = tmp0_elvis_lhs == null ? toName_0(req.t22_1, this$0) + req.v22_1.b9_1 : tmp0_elvis_lhs;
|
|
1530
1530
|
var tmp$ret$5;
|
|
1531
1531
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1532
1532
|
var tmp$ret$4;
|
|
1533
1533
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1534
1534
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1535
|
-
var tmp0_iterator = parameters.
|
|
1536
|
-
while (tmp0_iterator.
|
|
1537
|
-
var element = tmp0_iterator.
|
|
1535
|
+
var tmp0_iterator = parameters.v();
|
|
1536
|
+
while (tmp0_iterator.w()) {
|
|
1537
|
+
var element = tmp0_iterator.y();
|
|
1538
1538
|
var tmp$ret$3;
|
|
1539
1539
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1540
1540
|
var tmp;
|
|
1541
|
-
if (!(element.
|
|
1542
|
-
var tmp_0 = Common_getInstance().
|
|
1541
|
+
if (!(element.h1a_1 == null)) {
|
|
1542
|
+
var tmp_0 = Common_getInstance().o22([name, 'Parameter', element.m19_1]);
|
|
1543
1543
|
var tmp$ret$2;
|
|
1544
1544
|
// Inline function 'kotlin.collections.map' call
|
|
1545
|
-
var tmp0_map = ensureNotNull(element.
|
|
1545
|
+
var tmp0_map = ensureNotNull(element.h1a_1);
|
|
1546
1546
|
var tmp$ret$1;
|
|
1547
1547
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1548
1548
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
1549
|
-
var tmp0_iterator_0 = tmp0_map.
|
|
1550
|
-
while (tmp0_iterator_0.
|
|
1551
|
-
var item = tmp0_iterator_0.
|
|
1549
|
+
var tmp0_iterator_0 = tmp0_map.v();
|
|
1550
|
+
while (tmp0_iterator_0.w()) {
|
|
1551
|
+
var item = tmp0_iterator_0.y();
|
|
1552
1552
|
var tmp$ret$0;
|
|
1553
1553
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
1554
|
-
tmp$ret$0 = item.
|
|
1555
|
-
tmp0_mapTo.
|
|
1554
|
+
tmp$ret$0 = item.n10();
|
|
1555
|
+
tmp0_mapTo.s(tmp$ret$0);
|
|
1556
1556
|
}
|
|
1557
1557
|
tmp$ret$1 = tmp0_mapTo;
|
|
1558
1558
|
tmp$ret$2 = tmp$ret$1;
|
|
@@ -1567,7 +1567,7 @@
|
|
|
1567
1567
|
tmp$ret$4 = tmp0_flatMapTo;
|
|
1568
1568
|
tmp$ret$5 = tmp$ret$4;
|
|
1569
1569
|
var enums = tmp$ret$5;
|
|
1570
|
-
var tmp1_safe_receiver = req.
|
|
1570
|
+
var tmp1_safe_receiver = req.w22_1.d19_1;
|
|
1571
1571
|
var tmp_1;
|
|
1572
1572
|
if (tmp1_safe_receiver == null) {
|
|
1573
1573
|
tmp_1 = null;
|
|
@@ -1577,13 +1577,13 @@
|
|
|
1577
1577
|
var tmp$ret$7;
|
|
1578
1578
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1579
1579
|
var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_safe_receiver, 10));
|
|
1580
|
-
var tmp0_iterator_1 = tmp1_safe_receiver.
|
|
1581
|
-
while (tmp0_iterator_1.
|
|
1582
|
-
var item_0 = tmp0_iterator_1.
|
|
1580
|
+
var tmp0_iterator_1 = tmp1_safe_receiver.v();
|
|
1581
|
+
while (tmp0_iterator_1.w()) {
|
|
1582
|
+
var item_0 = tmp0_iterator_1.y();
|
|
1583
1583
|
var tmp$ret$6;
|
|
1584
1584
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1585
1585
|
tmp$ret$6 = resolve_2(item_0, this$0);
|
|
1586
|
-
tmp0_mapTo_0.
|
|
1586
|
+
tmp0_mapTo_0.s(tmp$ret$6);
|
|
1587
1587
|
}
|
|
1588
1588
|
tmp$ret$7 = tmp0_mapTo_0;
|
|
1589
1589
|
tmp$ret$8 = tmp$ret$7;
|
|
@@ -1599,14 +1599,14 @@
|
|
|
1599
1599
|
var tmp$ret$10;
|
|
1600
1600
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1601
1601
|
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
1602
|
-
var tmp0_iterator_2 = tmp2_safe_receiver.
|
|
1603
|
-
while (tmp0_iterator_2.
|
|
1604
|
-
var element_0 = tmp0_iterator_2.
|
|
1602
|
+
var tmp0_iterator_2 = tmp2_safe_receiver.v();
|
|
1603
|
+
while (tmp0_iterator_2.w()) {
|
|
1604
|
+
var element_0 = tmp0_iterator_2.y();
|
|
1605
1605
|
var tmp$ret$9;
|
|
1606
1606
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1607
|
-
tmp$ret$9 = element_0.
|
|
1607
|
+
tmp$ret$9 = element_0.n19_1.equals(ParameterLocation_BODY_getInstance());
|
|
1608
1608
|
if (tmp$ret$9) {
|
|
1609
|
-
tmp0_filterTo.
|
|
1609
|
+
tmp0_filterTo.s(element_0);
|
|
1610
1610
|
}
|
|
1611
1611
|
}
|
|
1612
1612
|
tmp$ret$10 = tmp0_filterTo;
|
|
@@ -1623,27 +1623,27 @@
|
|
|
1623
1623
|
var tmp$ret$14;
|
|
1624
1624
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1625
1625
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
1626
|
-
var tmp0_iterator_3 = tmp3_safe_receiver.
|
|
1627
|
-
while (tmp0_iterator_3.
|
|
1628
|
-
var element_1 = tmp0_iterator_3.
|
|
1626
|
+
var tmp0_iterator_3 = tmp3_safe_receiver.v();
|
|
1627
|
+
while (tmp0_iterator_3.w()) {
|
|
1628
|
+
var element_1 = tmp0_iterator_3.y();
|
|
1629
1629
|
var tmp$ret$13;
|
|
1630
1630
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1631
|
-
var schema = element_1.
|
|
1631
|
+
var schema = element_1.q19_1;
|
|
1632
1632
|
var tmp_4;
|
|
1633
1633
|
if (schema instanceof SchemaObject) {
|
|
1634
|
-
var tmp0_subject = schema.
|
|
1635
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.
|
|
1634
|
+
var tmp0_subject = schema.o1b_1;
|
|
1635
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.c9_1;
|
|
1636
1636
|
var tmp_5;
|
|
1637
1637
|
switch (tmp0) {
|
|
1638
1638
|
case -1:
|
|
1639
1639
|
case 5:
|
|
1640
|
-
tmp_5 = flatten(schema, this$0, Common_getInstance().
|
|
1640
|
+
tmp_5 = flatten(schema, this$0, Common_getInstance().o22([name, 'RequestBody']));
|
|
1641
1641
|
break;
|
|
1642
1642
|
case 4:
|
|
1643
1643
|
var tmp$ret$12;
|
|
1644
1644
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1645
|
-
var tmp1_safe_receiver_0 = schema.
|
|
1646
|
-
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
1645
|
+
var tmp1_safe_receiver_0 = schema.p1b_1;
|
|
1646
|
+
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().o22([name, 'RequestBody']));
|
|
1647
1647
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1648
1648
|
tmp$ret$12 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1649
1649
|
|
|
@@ -1672,25 +1672,25 @@
|
|
|
1672
1672
|
}
|
|
1673
1673
|
function OpenApiParser$parseResponseBody$lambda(this$0) {
|
|
1674
1674
|
return function (res) {
|
|
1675
|
-
var response = resolve_1(res.
|
|
1676
|
-
var tmp0_elvis_lhs = toName(res.
|
|
1677
|
-
var name = tmp0_elvis_lhs == null ? toName_0(res.
|
|
1678
|
-
var schema = response.
|
|
1675
|
+
var response = resolve_1(res.d23_1, this$0);
|
|
1676
|
+
var tmp0_elvis_lhs = toName(res.b23_1, this$0);
|
|
1677
|
+
var name = tmp0_elvis_lhs == null ? toName_0(res.y22_1, this$0) + res.a23_1.b9_1 : tmp0_elvis_lhs;
|
|
1678
|
+
var schema = response.a1c_1;
|
|
1679
1679
|
var tmp;
|
|
1680
1680
|
if (schema instanceof SchemaObject) {
|
|
1681
|
-
var tmp1_subject = schema.
|
|
1682
|
-
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.
|
|
1681
|
+
var tmp1_subject = schema.o1b_1;
|
|
1682
|
+
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.c9_1;
|
|
1683
1683
|
var tmp_0;
|
|
1684
1684
|
switch (tmp0) {
|
|
1685
1685
|
case -1:
|
|
1686
1686
|
case 5:
|
|
1687
|
-
tmp_0 = flatten(schema, this$0, Common_getInstance().
|
|
1687
|
+
tmp_0 = flatten(schema, this$0, Common_getInstance().o22([name, _StatusCode___get_value__impl__we50mu(res.c23_1), res.e23_1, 'ResponseBody']));
|
|
1688
1688
|
break;
|
|
1689
1689
|
case 4:
|
|
1690
1690
|
var tmp$ret$0;
|
|
1691
1691
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1692
|
-
var tmp2_safe_receiver = schema.
|
|
1693
|
-
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : flatten_0(tmp2_safe_receiver, this$0, Common_getInstance().
|
|
1692
|
+
var tmp2_safe_receiver = schema.p1b_1;
|
|
1693
|
+
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : flatten_0(tmp2_safe_receiver, this$0, Common_getInstance().o22([name, _StatusCode___get_value__impl__we50mu(res.c23_1), res.e23_1, 'ResponseBody']));
|
|
1694
1694
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1695
1695
|
tmp$ret$0 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1696
1696
|
|
|
@@ -1722,10 +1722,10 @@
|
|
|
1722
1722
|
tmp$ret$0 = it;
|
|
1723
1723
|
tmp$ret$1 = tmp$ret$0.substring(1, tmp0_substring);
|
|
1724
1724
|
|
|
1725
|
-
tmp = tmp_0.
|
|
1725
|
+
tmp = tmp_0.o22([tmp$ret$1]);
|
|
1726
1726
|
break;
|
|
1727
1727
|
case false:
|
|
1728
|
-
tmp = Common_getInstance().
|
|
1728
|
+
tmp = Common_getInstance().o22([it]);
|
|
1729
1729
|
break;
|
|
1730
1730
|
default:
|
|
1731
1731
|
noWhenBranchMatchedException();
|
|
@@ -1735,25 +1735,25 @@
|
|
|
1735
1735
|
};
|
|
1736
1736
|
}
|
|
1737
1737
|
function OpenApiParser(openApi) {
|
|
1738
|
-
|
|
1739
|
-
this.
|
|
1738
|
+
Companion_getInstance_1();
|
|
1739
|
+
this.q22_1 = openApi;
|
|
1740
1740
|
}
|
|
1741
|
-
protoOf(OpenApiParser).
|
|
1741
|
+
protoOf(OpenApiParser).r22 = function () {
|
|
1742
1742
|
return plus(plus(plus(plus(parseEndpoints(this), parseParameters(this)), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
|
|
1743
1743
|
};
|
|
1744
1744
|
function toMap_0(_this__u8e3s4) {
|
|
1745
1745
|
var tmp;
|
|
1746
1746
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1747
|
-
tmp = _this__u8e3s4.
|
|
1747
|
+
tmp = _this__u8e3s4.f21(VOID, VOID, true);
|
|
1748
1748
|
} else {
|
|
1749
1749
|
if (_this__u8e3s4 instanceof Any) {
|
|
1750
|
-
tmp = _this__u8e3s4.
|
|
1750
|
+
tmp = _this__u8e3s4.a21(VOID, true);
|
|
1751
1751
|
} else {
|
|
1752
1752
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1753
|
-
tmp = _this__u8e3s4.
|
|
1753
|
+
tmp = _this__u8e3s4.h21(VOID, VOID, true);
|
|
1754
1754
|
} else {
|
|
1755
1755
|
if (_this__u8e3s4 instanceof Unit) {
|
|
1756
|
-
tmp = _this__u8e3s4.
|
|
1756
|
+
tmp = _this__u8e3s4.d21(VOID, true);
|
|
1757
1757
|
} else {
|
|
1758
1758
|
noWhenBranchMatchedException();
|
|
1759
1759
|
}
|
|
@@ -1764,7 +1764,7 @@
|
|
|
1764
1764
|
}
|
|
1765
1765
|
function isPrimitive(_this__u8e3s4) {
|
|
1766
1766
|
var tmp;
|
|
1767
|
-
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.
|
|
1767
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.c9_1) {
|
|
1768
1768
|
case 0:
|
|
1769
1769
|
tmp = true;
|
|
1770
1770
|
break;
|
|
@@ -1798,16 +1798,16 @@
|
|
|
1798
1798
|
function toIterable(_this__u8e3s4) {
|
|
1799
1799
|
var tmp;
|
|
1800
1800
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1801
|
-
tmp = _this__u8e3s4.
|
|
1801
|
+
tmp = _this__u8e3s4.f21(VOID, true);
|
|
1802
1802
|
} else {
|
|
1803
1803
|
if (_this__u8e3s4 instanceof Any) {
|
|
1804
|
-
tmp = _this__u8e3s4.
|
|
1804
|
+
tmp = _this__u8e3s4.a21(true);
|
|
1805
1805
|
} else {
|
|
1806
1806
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1807
|
-
tmp = _this__u8e3s4.
|
|
1807
|
+
tmp = _this__u8e3s4.h21(VOID, true);
|
|
1808
1808
|
} else {
|
|
1809
1809
|
if (_this__u8e3s4 instanceof Unit) {
|
|
1810
|
-
tmp = _this__u8e3s4.
|
|
1810
|
+
tmp = _this__u8e3s4.d21(true);
|
|
1811
1811
|
} else {
|
|
1812
1812
|
noWhenBranchMatchedException();
|
|
1813
1813
|
}
|
|
@@ -1822,15 +1822,15 @@
|
|
|
1822
1822
|
var tmp0_mapNotNullTo = ArrayList_init_$Create$();
|
|
1823
1823
|
// Inline function 'kotlin.collections.forEach' call
|
|
1824
1824
|
// Inline function 'kotlin.collections.iterator' call
|
|
1825
|
-
var tmp0_iterator = _this__u8e3s4.
|
|
1826
|
-
while (tmp0_iterator.
|
|
1827
|
-
var element = tmp0_iterator.
|
|
1825
|
+
var tmp0_iterator = _this__u8e3s4.n2().v();
|
|
1826
|
+
while (tmp0_iterator.w()) {
|
|
1827
|
+
var element = tmp0_iterator.y();
|
|
1828
1828
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
1829
1829
|
// Inline function 'community.flock.wirespec.openapi.v2.filterNotNullValues.<anonymous>' call
|
|
1830
1830
|
// Inline function 'kotlin.collections.component1' call
|
|
1831
|
-
var key = element.
|
|
1831
|
+
var key = element.o2();
|
|
1832
1832
|
// Inline function 'kotlin.collections.component2' call
|
|
1833
|
-
var value = element.
|
|
1833
|
+
var value = element.p2();
|
|
1834
1834
|
var tmp;
|
|
1835
1835
|
if (value == null) {
|
|
1836
1836
|
tmp = null;
|
|
@@ -1846,34 +1846,34 @@
|
|
|
1846
1846
|
else {
|
|
1847
1847
|
// Inline function 'kotlin.let' call
|
|
1848
1848
|
// Inline function 'kotlin.contracts.contract' call
|
|
1849
|
-
tmp0_mapNotNullTo.
|
|
1849
|
+
tmp0_mapNotNullTo.s(tmp0_safe_receiver);
|
|
1850
1850
|
}
|
|
1851
1851
|
}
|
|
1852
1852
|
return toMap(tmp0_mapNotNullTo);
|
|
1853
1853
|
}
|
|
1854
1854
|
function OpenApiParser$Companion$parse$lambda_0($strict) {
|
|
1855
1855
|
return function ($this$Json) {
|
|
1856
|
-
$this$Json.
|
|
1857
|
-
$this$Json.
|
|
1856
|
+
$this$Json.pz_1 = true;
|
|
1857
|
+
$this$Json.mz_1 = $strict;
|
|
1858
1858
|
return Unit_getInstance();
|
|
1859
1859
|
};
|
|
1860
1860
|
}
|
|
1861
1861
|
function Companion_0() {
|
|
1862
1862
|
Companion_instance_0 = this;
|
|
1863
1863
|
}
|
|
1864
|
-
protoOf(Companion_0).
|
|
1864
|
+
protoOf(Companion_0).p22 = function (json, strict) {
|
|
1865
1865
|
// Inline function 'kotlin.let' call
|
|
1866
|
-
var tmp0_let = (new OpenAPI_0(Json(VOID, OpenApiParser$Companion$parse$lambda_0(strict)))).
|
|
1866
|
+
var tmp0_let = (new OpenAPI_0(Json(VOID, OpenApiParser$Companion$parse$lambda_0(strict)))).i17(json);
|
|
1867
1867
|
// Inline function 'kotlin.contracts.contract' call
|
|
1868
1868
|
// Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
|
|
1869
1869
|
return parse(new OpenApiParser_0(tmp0_let));
|
|
1870
1870
|
};
|
|
1871
|
-
protoOf(Companion_0).
|
|
1871
|
+
protoOf(Companion_0).f23 = function (json, strict, $super) {
|
|
1872
1872
|
strict = strict === VOID ? false : strict;
|
|
1873
|
-
return $super === VOID ? this.
|
|
1873
|
+
return $super === VOID ? this.p22(json, strict) : $super.p22.call(this, json, strict);
|
|
1874
1874
|
};
|
|
1875
1875
|
var Companion_instance_0;
|
|
1876
|
-
function
|
|
1876
|
+
function Companion_getInstance_2() {
|
|
1877
1877
|
if (Companion_instance_0 == null)
|
|
1878
1878
|
new Companion_0();
|
|
1879
1879
|
return Companion_instance_0;
|
|
@@ -1883,106 +1883,106 @@
|
|
|
1883
1883
|
}
|
|
1884
1884
|
function parseEndpoint($this) {
|
|
1885
1885
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1886
|
-
var tmp0_flatMap = $this.
|
|
1886
|
+
var tmp0_flatMap = $this.g23_1.i1g_1;
|
|
1887
1887
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1888
1888
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1889
1889
|
// Inline function 'kotlin.collections.iterator' call
|
|
1890
|
-
var tmp0_iterator = tmp0_flatMap.
|
|
1891
|
-
while (tmp0_iterator.
|
|
1892
|
-
var element = tmp0_iterator.
|
|
1890
|
+
var tmp0_iterator = tmp0_flatMap.n2().v();
|
|
1891
|
+
while (tmp0_iterator.w()) {
|
|
1892
|
+
var element = tmp0_iterator.y();
|
|
1893
1893
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>' call
|
|
1894
1894
|
// Inline function 'kotlin.collections.component1' call
|
|
1895
|
-
var key = element.
|
|
1895
|
+
var key = element.o2().q1g_1;
|
|
1896
1896
|
// Inline function 'kotlin.collections.component2' call
|
|
1897
|
-
var path = element.
|
|
1897
|
+
var path = element.p2();
|
|
1898
1898
|
// Inline function 'kotlin.collections.map' call
|
|
1899
1899
|
var tmp0_map = toOperationList_0(path, $this);
|
|
1900
1900
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1901
|
-
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp0_map.
|
|
1901
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp0_map.n());
|
|
1902
1902
|
// Inline function 'kotlin.collections.iterator' call
|
|
1903
|
-
var tmp0_iterator_0 = tmp0_map.
|
|
1904
|
-
while (tmp0_iterator_0.
|
|
1905
|
-
var item = tmp0_iterator_0.
|
|
1903
|
+
var tmp0_iterator_0 = tmp0_map.n2().v();
|
|
1904
|
+
while (tmp0_iterator_0.w()) {
|
|
1905
|
+
var item = tmp0_iterator_0.y();
|
|
1906
1906
|
var tmp$ret$52;
|
|
1907
1907
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>' call
|
|
1908
1908
|
// Inline function 'kotlin.collections.component1' call
|
|
1909
|
-
var method = item.
|
|
1909
|
+
var method = item.o2();
|
|
1910
1910
|
// Inline function 'kotlin.collections.component2' call
|
|
1911
|
-
var operation = item.
|
|
1911
|
+
var operation = item.p2();
|
|
1912
1912
|
var parameters = plus(resolveParameters_2(path, $this), resolveParameters_1(operation, $this));
|
|
1913
1913
|
var segments = toSegments_0(key, $this, parameters);
|
|
1914
1914
|
var tmp0_elvis_lhs = toName_1(operation, $this);
|
|
1915
|
-
var name = tmp0_elvis_lhs == null ? toName_2(key, $this) + method.
|
|
1915
|
+
var name = tmp0_elvis_lhs == null ? toName_2(key, $this) + method.b9_1 : tmp0_elvis_lhs;
|
|
1916
1916
|
// Inline function 'kotlin.collections.map' call
|
|
1917
1917
|
// Inline function 'kotlin.collections.filter' call
|
|
1918
1918
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1919
1919
|
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
1920
|
-
var tmp0_iterator_1 = parameters.
|
|
1921
|
-
while (tmp0_iterator_1.
|
|
1922
|
-
var element_0 = tmp0_iterator_1.
|
|
1920
|
+
var tmp0_iterator_1 = parameters.v();
|
|
1921
|
+
while (tmp0_iterator_1.w()) {
|
|
1922
|
+
var element_0 = tmp0_iterator_1.y();
|
|
1923
1923
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1924
|
-
if (element_0.
|
|
1925
|
-
tmp0_filterTo.
|
|
1924
|
+
if (element_0.k1i_1.equals(ParameterLocation_QUERY_getInstance_0())) {
|
|
1925
|
+
tmp0_filterTo.s(element_0);
|
|
1926
1926
|
}
|
|
1927
1927
|
}
|
|
1928
1928
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1929
1929
|
var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_filterTo, 10));
|
|
1930
|
-
var tmp0_iterator_2 = tmp0_filterTo.
|
|
1931
|
-
while (tmp0_iterator_2.
|
|
1932
|
-
var item_0 = tmp0_iterator_2.
|
|
1930
|
+
var tmp0_iterator_2 = tmp0_filterTo.v();
|
|
1931
|
+
while (tmp0_iterator_2.w()) {
|
|
1932
|
+
var item_0 = tmp0_iterator_2.y();
|
|
1933
1933
|
var tmp$ret$9;
|
|
1934
1934
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1935
|
-
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().
|
|
1936
|
-
tmp0_mapTo_0.
|
|
1935
|
+
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().o22([name, 'Parameter', item_0.j1i_1]));
|
|
1936
|
+
tmp0_mapTo_0.s(tmp$ret$9);
|
|
1937
1937
|
}
|
|
1938
1938
|
var query = tmp0_mapTo_0;
|
|
1939
1939
|
// Inline function 'kotlin.collections.map' call
|
|
1940
1940
|
// Inline function 'kotlin.collections.filter' call
|
|
1941
1941
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1942
1942
|
var tmp0_filterTo_0 = ArrayList_init_$Create$();
|
|
1943
|
-
var tmp0_iterator_3 = parameters.
|
|
1944
|
-
while (tmp0_iterator_3.
|
|
1945
|
-
var element_1 = tmp0_iterator_3.
|
|
1943
|
+
var tmp0_iterator_3 = parameters.v();
|
|
1944
|
+
while (tmp0_iterator_3.w()) {
|
|
1945
|
+
var element_1 = tmp0_iterator_3.y();
|
|
1946
1946
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1947
|
-
if (element_1.
|
|
1948
|
-
tmp0_filterTo_0.
|
|
1947
|
+
if (element_1.k1i_1.equals(ParameterLocation_HEADER_getInstance_0())) {
|
|
1948
|
+
tmp0_filterTo_0.s(element_1);
|
|
1949
1949
|
}
|
|
1950
1950
|
}
|
|
1951
1951
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1952
1952
|
var tmp0_mapTo_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_filterTo_0, 10));
|
|
1953
|
-
var tmp0_iterator_4 = tmp0_filterTo_0.
|
|
1954
|
-
while (tmp0_iterator_4.
|
|
1955
|
-
var item_1 = tmp0_iterator_4.
|
|
1953
|
+
var tmp0_iterator_4 = tmp0_filterTo_0.v();
|
|
1954
|
+
while (tmp0_iterator_4.w()) {
|
|
1955
|
+
var item_1 = tmp0_iterator_4.y();
|
|
1956
1956
|
var tmp$ret$15;
|
|
1957
1957
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1958
|
-
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().
|
|
1959
|
-
tmp0_mapTo_1.
|
|
1958
|
+
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().o22([name, 'Parameter', item_1.j1i_1]));
|
|
1959
|
+
tmp0_mapTo_1.s(tmp$ret$15);
|
|
1960
1960
|
}
|
|
1961
1961
|
var headers = tmp0_mapTo_1;
|
|
1962
1962
|
// Inline function 'kotlin.collections.map' call
|
|
1963
1963
|
// Inline function 'kotlin.collections.filter' call
|
|
1964
1964
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1965
1965
|
var tmp0_filterTo_1 = ArrayList_init_$Create$();
|
|
1966
|
-
var tmp0_iterator_5 = parameters.
|
|
1967
|
-
while (tmp0_iterator_5.
|
|
1968
|
-
var element_2 = tmp0_iterator_5.
|
|
1966
|
+
var tmp0_iterator_5 = parameters.v();
|
|
1967
|
+
while (tmp0_iterator_5.w()) {
|
|
1968
|
+
var element_2 = tmp0_iterator_5.y();
|
|
1969
1969
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1970
|
-
if (element_2.
|
|
1971
|
-
tmp0_filterTo_1.
|
|
1970
|
+
if (element_2.k1i_1.equals(ParameterLocation_COOKIE_getInstance())) {
|
|
1971
|
+
tmp0_filterTo_1.s(element_2);
|
|
1972
1972
|
}
|
|
1973
1973
|
}
|
|
1974
1974
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1975
1975
|
var tmp0_mapTo_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_filterTo_1, 10));
|
|
1976
|
-
var tmp0_iterator_6 = tmp0_filterTo_1.
|
|
1977
|
-
while (tmp0_iterator_6.
|
|
1978
|
-
var item_2 = tmp0_iterator_6.
|
|
1976
|
+
var tmp0_iterator_6 = tmp0_filterTo_1.v();
|
|
1977
|
+
while (tmp0_iterator_6.w()) {
|
|
1978
|
+
var item_2 = tmp0_iterator_6.y();
|
|
1979
1979
|
var tmp$ret$21;
|
|
1980
1980
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1981
|
-
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().
|
|
1982
|
-
tmp0_mapTo_2.
|
|
1981
|
+
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().o22([name, 'Parameter', item_2.j1i_1]));
|
|
1982
|
+
tmp0_mapTo_2.s(tmp$ret$21);
|
|
1983
1983
|
}
|
|
1984
1984
|
var cookies = tmp0_mapTo_2;
|
|
1985
|
-
var tmp1_safe_receiver = operation.
|
|
1985
|
+
var tmp1_safe_receiver = operation.p1h_1;
|
|
1986
1986
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_6(tmp1_safe_receiver, $this);
|
|
1987
1987
|
var tmp;
|
|
1988
1988
|
if (tmp2_safe_receiver == null) {
|
|
@@ -1991,32 +1991,32 @@
|
|
|
1991
1991
|
// Inline function 'kotlin.let' call
|
|
1992
1992
|
// Inline function 'kotlin.contracts.contract' call
|
|
1993
1993
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1994
|
-
var tmp0_safe_receiver = tmp2_safe_receiver.
|
|
1994
|
+
var tmp0_safe_receiver = tmp2_safe_receiver.p1i_1;
|
|
1995
1995
|
var tmp_0;
|
|
1996
1996
|
if (tmp0_safe_receiver == null) {
|
|
1997
1997
|
tmp_0 = null;
|
|
1998
1998
|
} else {
|
|
1999
1999
|
// Inline function 'kotlin.collections.map' call
|
|
2000
2000
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2001
|
-
var tmp0_mapTo_3 = ArrayList_init_$Create$_0(tmp0_safe_receiver.
|
|
2001
|
+
var tmp0_mapTo_3 = ArrayList_init_$Create$_0(tmp0_safe_receiver.n());
|
|
2002
2002
|
// Inline function 'kotlin.collections.iterator' call
|
|
2003
|
-
var tmp0_iterator_7 = tmp0_safe_receiver.
|
|
2004
|
-
while (tmp0_iterator_7.
|
|
2005
|
-
var item_3 = tmp0_iterator_7.
|
|
2003
|
+
var tmp0_iterator_7 = tmp0_safe_receiver.n2().v();
|
|
2004
|
+
while (tmp0_iterator_7.w()) {
|
|
2005
|
+
var item_3 = tmp0_iterator_7.y();
|
|
2006
2006
|
var tmp$ret$27;
|
|
2007
2007
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2008
2008
|
// Inline function 'kotlin.collections.component1' call
|
|
2009
|
-
var mediaType = item_3.
|
|
2009
|
+
var mediaType = item_3.o2().u1i_1;
|
|
2010
2010
|
// Inline function 'kotlin.collections.component2' call
|
|
2011
|
-
var mediaObject = item_3.
|
|
2011
|
+
var mediaObject = item_3.p2();
|
|
2012
2012
|
var tmp_1 = _MediaType___get_value__impl__wy58mp(mediaType);
|
|
2013
|
-
var schema = mediaObject.
|
|
2013
|
+
var schema = mediaObject.x1i_1;
|
|
2014
2014
|
var tmp_2;
|
|
2015
2015
|
if (schema instanceof ReferenceObject_0) {
|
|
2016
2016
|
tmp_2 = toReference_1(schema, $this);
|
|
2017
2017
|
} else {
|
|
2018
2018
|
if (schema instanceof SchemaObject_0) {
|
|
2019
|
-
tmp_2 = toReference_2(schema, $this, Common_getInstance().
|
|
2019
|
+
tmp_2 = toReference_2(schema, $this, Common_getInstance().o22([name, 'RequestBody']));
|
|
2020
2020
|
} else {
|
|
2021
2021
|
if (schema == null) {
|
|
2022
2022
|
throw new NotImplementedError('An operation is not implemented: Not yet implemented');
|
|
@@ -2026,9 +2026,9 @@
|
|
|
2026
2026
|
}
|
|
2027
2027
|
}
|
|
2028
2028
|
var tmp_3 = tmp_2;
|
|
2029
|
-
var tmp0_elvis_lhs_0 = tmp2_safe_receiver.
|
|
2029
|
+
var tmp0_elvis_lhs_0 = tmp2_safe_receiver.q1i_1;
|
|
2030
2030
|
tmp$ret$27 = new Request(new Content(tmp_1, tmp_3, tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0));
|
|
2031
|
-
tmp0_mapTo_3.
|
|
2031
|
+
tmp0_mapTo_3.s(tmp$ret$27);
|
|
2032
2032
|
}
|
|
2033
2033
|
tmp_0 = tmp0_mapTo_3;
|
|
2034
2034
|
}
|
|
@@ -2038,72 +2038,72 @@
|
|
|
2038
2038
|
var requests = tmp3_elvis_lhs == null ? listOf(new Request(null)) : tmp3_elvis_lhs;
|
|
2039
2039
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2040
2040
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2041
|
-
var tmp0_elvis_lhs_1 = operation.
|
|
2041
|
+
var tmp0_elvis_lhs_1 = operation.q1h_1;
|
|
2042
2042
|
var tmp4_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
2043
2043
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2044
2044
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
2045
2045
|
// Inline function 'kotlin.collections.iterator' call
|
|
2046
|
-
var tmp0_iterator_8 = tmp4_flatMap.
|
|
2047
|
-
while (tmp0_iterator_8.
|
|
2048
|
-
var element_3 = tmp0_iterator_8.
|
|
2046
|
+
var tmp0_iterator_8 = tmp4_flatMap.n2().v();
|
|
2047
|
+
while (tmp0_iterator_8.w()) {
|
|
2048
|
+
var element_3 = tmp0_iterator_8.y();
|
|
2049
2049
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2050
2050
|
// Inline function 'kotlin.collections.component1' call
|
|
2051
|
-
var status = element_3.
|
|
2051
|
+
var status = element_3.o2().t1k_1;
|
|
2052
2052
|
// Inline function 'kotlin.collections.component2' call
|
|
2053
|
-
var res = element_3.
|
|
2053
|
+
var res = element_3.p2();
|
|
2054
2054
|
// Inline function 'kotlin.let' call
|
|
2055
2055
|
var tmp0_let = resolve_7(res, $this);
|
|
2056
2056
|
// Inline function 'kotlin.contracts.contract' call
|
|
2057
2057
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2058
|
-
var tmp0_safe_receiver_0 = tmp0_let.
|
|
2058
|
+
var tmp0_safe_receiver_0 = tmp0_let.y1k_1;
|
|
2059
2059
|
var tmp_4;
|
|
2060
2060
|
if (tmp0_safe_receiver_0 == null) {
|
|
2061
2061
|
tmp_4 = null;
|
|
2062
2062
|
} else {
|
|
2063
2063
|
// Inline function 'kotlin.collections.map' call
|
|
2064
2064
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2065
|
-
var tmp0_mapTo_4 = ArrayList_init_$Create$_0(tmp0_safe_receiver_0.
|
|
2065
|
+
var tmp0_mapTo_4 = ArrayList_init_$Create$_0(tmp0_safe_receiver_0.n());
|
|
2066
2066
|
// Inline function 'kotlin.collections.iterator' call
|
|
2067
|
-
var tmp0_iterator_9 = tmp0_safe_receiver_0.
|
|
2068
|
-
while (tmp0_iterator_9.
|
|
2069
|
-
var item_4 = tmp0_iterator_9.
|
|
2067
|
+
var tmp0_iterator_9 = tmp0_safe_receiver_0.n2().v();
|
|
2068
|
+
while (tmp0_iterator_9.w()) {
|
|
2069
|
+
var item_4 = tmp0_iterator_9.y();
|
|
2070
2070
|
var tmp$ret$44;
|
|
2071
2071
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2072
2072
|
// Inline function 'kotlin.collections.component1' call
|
|
2073
|
-
var contentType = item_4.
|
|
2073
|
+
var contentType = item_4.o2().u1i_1;
|
|
2074
2074
|
// Inline function 'kotlin.collections.component2' call
|
|
2075
|
-
var media = item_4.
|
|
2075
|
+
var media = item_4.p2();
|
|
2076
2076
|
var tmp_5 = _StatusCode___get_value__impl__we50mu_0(status);
|
|
2077
2077
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2078
|
-
var tmp0_safe_receiver_1 = tmp0_let.
|
|
2078
|
+
var tmp0_safe_receiver_1 = tmp0_let.x1k_1;
|
|
2079
2079
|
var tmp_6;
|
|
2080
2080
|
if (tmp0_safe_receiver_1 == null) {
|
|
2081
2081
|
tmp_6 = null;
|
|
2082
2082
|
} else {
|
|
2083
2083
|
// Inline function 'kotlin.collections.map' call
|
|
2084
2084
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2085
|
-
var tmp0_mapTo_5 = ArrayList_init_$Create$_0(tmp0_safe_receiver_1.
|
|
2085
|
+
var tmp0_mapTo_5 = ArrayList_init_$Create$_0(tmp0_safe_receiver_1.n());
|
|
2086
2086
|
// Inline function 'kotlin.collections.iterator' call
|
|
2087
|
-
var tmp0_iterator_10 = tmp0_safe_receiver_1.
|
|
2088
|
-
while (tmp0_iterator_10.
|
|
2089
|
-
var item_5 = tmp0_iterator_10.
|
|
2087
|
+
var tmp0_iterator_10 = tmp0_safe_receiver_1.n2().v();
|
|
2088
|
+
while (tmp0_iterator_10.w()) {
|
|
2089
|
+
var item_5 = tmp0_iterator_10.y();
|
|
2090
2090
|
var tmp$ret$40;
|
|
2091
2091
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2092
|
-
tmp$ret$40 = toField_3(resolve_4(item_5.
|
|
2093
|
-
tmp0_mapTo_5.
|
|
2092
|
+
tmp$ret$40 = toField_3(resolve_4(item_5.p2(), $this), $this, item_5.o2(), Common_getInstance().o22([name, 'ResponseHeader']));
|
|
2093
|
+
tmp0_mapTo_5.s(tmp$ret$40);
|
|
2094
2094
|
}
|
|
2095
2095
|
tmp_6 = tmp0_mapTo_5;
|
|
2096
2096
|
}
|
|
2097
2097
|
var tmp0_elvis_lhs_2 = tmp_6;
|
|
2098
2098
|
var tmp_7 = tmp0_elvis_lhs_2 == null ? emptyList() : tmp0_elvis_lhs_2;
|
|
2099
2099
|
var tmp_8 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
2100
|
-
var schema_0 = media.
|
|
2100
|
+
var schema_0 = media.x1i_1;
|
|
2101
2101
|
var tmp_9;
|
|
2102
2102
|
if (schema_0 instanceof ReferenceObject_0) {
|
|
2103
2103
|
tmp_9 = toReference_1(schema_0, $this);
|
|
2104
2104
|
} else {
|
|
2105
2105
|
if (schema_0 instanceof SchemaObject_0) {
|
|
2106
|
-
tmp_9 = toReference_2(schema_0, $this, Common_getInstance().
|
|
2106
|
+
tmp_9 = toReference_2(schema_0, $this, Common_getInstance().o22([name, _StatusCode___get_value__impl__we50mu_0(status), _MediaType___get_value__impl__wy58mp(contentType), 'ResponseBody']));
|
|
2107
2107
|
} else {
|
|
2108
2108
|
if (schema_0 == null) {
|
|
2109
2109
|
tmp_9 = new Any(false);
|
|
@@ -2113,11 +2113,11 @@
|
|
|
2113
2113
|
}
|
|
2114
2114
|
}
|
|
2115
2115
|
var tmp_10 = tmp_9;
|
|
2116
|
-
var tmp1_safe_receiver_0 = media.
|
|
2116
|
+
var tmp1_safe_receiver_0 = media.x1i_1;
|
|
2117
2117
|
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : resolve_3(tmp1_safe_receiver_0, $this);
|
|
2118
|
-
var tmp3_elvis_lhs_0 = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.
|
|
2118
|
+
var tmp3_elvis_lhs_0 = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.g1j_1;
|
|
2119
2119
|
tmp$ret$44 = new Response(tmp_5, tmp_7, new Content(tmp_8, tmp_10, tmp3_elvis_lhs_0 == null ? false : tmp3_elvis_lhs_0));
|
|
2120
|
-
tmp0_mapTo_4.
|
|
2120
|
+
tmp0_mapTo_4.s(tmp$ret$44);
|
|
2121
2121
|
}
|
|
2122
2122
|
tmp_4 = tmp0_mapTo_4;
|
|
2123
2123
|
}
|
|
@@ -2127,7 +2127,7 @@
|
|
|
2127
2127
|
}
|
|
2128
2128
|
var responses = tmp0_flatMapTo_0;
|
|
2129
2129
|
tmp$ret$52 = new Endpoint(name, method, segments, query, headers, cookies, requests, responses);
|
|
2130
|
-
tmp0_mapTo.
|
|
2130
|
+
tmp0_mapTo.s(tmp$ret$52);
|
|
2131
2131
|
}
|
|
2132
2132
|
var list_0 = tmp0_mapTo;
|
|
2133
2133
|
addAll(tmp0_flatMapTo, list_0);
|
|
@@ -2135,47 +2135,47 @@
|
|
|
2135
2135
|
return tmp0_flatMapTo;
|
|
2136
2136
|
}
|
|
2137
2137
|
function parseParameters_0($this) {
|
|
2138
|
-
return flatMapRequests_0($this.
|
|
2138
|
+
return flatMapRequests_0($this.g23_1, $this, OpenApiParser$parseParameters$lambda_0($this));
|
|
2139
2139
|
}
|
|
2140
2140
|
function parseRequestBody_0($this) {
|
|
2141
|
-
return flatMapRequests_0($this.
|
|
2141
|
+
return flatMapRequests_0($this.g23_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
|
|
2142
2142
|
}
|
|
2143
2143
|
function parseResponseBody_0($this) {
|
|
2144
|
-
return flatMapResponses_0($this.
|
|
2144
|
+
return flatMapResponses_0($this.g23_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
|
|
2145
2145
|
}
|
|
2146
2146
|
function parseComponents($this) {
|
|
2147
2147
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2148
2148
|
// Inline function 'kotlin.collections.filter' call
|
|
2149
2149
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2150
|
-
var tmp0_safe_receiver = $this.
|
|
2151
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2150
|
+
var tmp0_safe_receiver = $this.g23_1.j1g_1;
|
|
2151
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r1l_1;
|
|
2152
2152
|
var tmp1_filter = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2153
2153
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2154
2154
|
var tmp0_filterTo = LinkedHashMap_init_$Create$();
|
|
2155
2155
|
// Inline function 'kotlin.collections.iterator' call
|
|
2156
|
-
var tmp0_iterator = tmp1_filter.
|
|
2157
|
-
while (tmp0_iterator.
|
|
2158
|
-
var element = tmp0_iterator.
|
|
2156
|
+
var tmp0_iterator = tmp1_filter.n2().v();
|
|
2157
|
+
while (tmp0_iterator.w()) {
|
|
2158
|
+
var element = tmp0_iterator.y();
|
|
2159
2159
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2160
|
-
var s = element.
|
|
2160
|
+
var s = element.p2();
|
|
2161
2161
|
var tmp;
|
|
2162
2162
|
if (s instanceof SchemaObject_0) {
|
|
2163
|
-
tmp = s.
|
|
2163
|
+
tmp = s.w1j_1 == null;
|
|
2164
2164
|
} else {
|
|
2165
2165
|
tmp = false;
|
|
2166
2166
|
}
|
|
2167
2167
|
if (tmp) {
|
|
2168
|
-
tmp0_filterTo.
|
|
2168
|
+
tmp0_filterTo.l2(element.o2(), element.p2());
|
|
2169
2169
|
}
|
|
2170
2170
|
}
|
|
2171
2171
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2172
2172
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
2173
2173
|
// Inline function 'kotlin.collections.iterator' call
|
|
2174
|
-
var tmp0_iterator_0 = tmp0_filterTo.
|
|
2175
|
-
while (tmp0_iterator_0.
|
|
2176
|
-
var element_0 = tmp0_iterator_0.
|
|
2174
|
+
var tmp0_iterator_0 = tmp0_filterTo.n2().v();
|
|
2175
|
+
while (tmp0_iterator_0.w()) {
|
|
2176
|
+
var element_0 = tmp0_iterator_0.y();
|
|
2177
2177
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2178
|
-
var list = flatten_2(element_0.
|
|
2178
|
+
var list = flatten_2(element_0.p2(), $this, Common_getInstance().o22([element_0.o2()]));
|
|
2179
2179
|
addAll(tmp0_flatMapTo, list);
|
|
2180
2180
|
}
|
|
2181
2181
|
return tmp0_flatMapTo;
|
|
@@ -2184,7 +2184,7 @@
|
|
|
2184
2184
|
return charSequenceGet(_this__u8e3s4, 0) === _Char___init__impl__6a9atx(123) ? charSequenceGet(_this__u8e3s4, _this__u8e3s4.length - 1 | 0) === _Char___init__impl__6a9atx(125) : false;
|
|
2185
2185
|
}
|
|
2186
2186
|
function toName_1(_this__u8e3s4, $this) {
|
|
2187
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2187
|
+
var tmp0_safe_receiver = _this__u8e3s4.n1h_1;
|
|
2188
2188
|
var tmp;
|
|
2189
2189
|
if (tmp0_safe_receiver == null) {
|
|
2190
2190
|
tmp = null;
|
|
@@ -2192,7 +2192,7 @@
|
|
|
2192
2192
|
// Inline function 'kotlin.let' call
|
|
2193
2193
|
// Inline function 'kotlin.contracts.contract' call
|
|
2194
2194
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2195
|
-
tmp = Common_getInstance().
|
|
2195
|
+
tmp = Common_getInstance().o22([tmp0_safe_receiver]);
|
|
2196
2196
|
}
|
|
2197
2197
|
return tmp;
|
|
2198
2198
|
}
|
|
@@ -2201,13 +2201,13 @@
|
|
|
2201
2201
|
var tmp0_filter = drop(split(_Path___get_value__impl__thmflc_0(_this__u8e3s4), ['/']), 1);
|
|
2202
2202
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2203
2203
|
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
2204
|
-
var tmp0_iterator = tmp0_filter.
|
|
2205
|
-
while (tmp0_iterator.
|
|
2206
|
-
var element = tmp0_iterator.
|
|
2204
|
+
var tmp0_iterator = tmp0_filter.v();
|
|
2205
|
+
while (tmp0_iterator.w()) {
|
|
2206
|
+
var element = tmp0_iterator.y();
|
|
2207
2207
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2208
2208
|
// Inline function 'kotlin.text.isNotBlank' call
|
|
2209
2209
|
if (!isBlank(element)) {
|
|
2210
|
-
tmp0_filterTo.
|
|
2210
|
+
tmp0_filterTo.s(element);
|
|
2211
2211
|
}
|
|
2212
2212
|
}
|
|
2213
2213
|
var tmp = tmp0_filterTo;
|
|
@@ -2219,20 +2219,20 @@
|
|
|
2219
2219
|
var tmp0_filter = drop(split(_Path___get_value__impl__thmflc_0(_this__u8e3s4), ['/']), 1);
|
|
2220
2220
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2221
2221
|
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
2222
|
-
var tmp0_iterator = tmp0_filter.
|
|
2223
|
-
while (tmp0_iterator.
|
|
2224
|
-
var element = tmp0_iterator.
|
|
2222
|
+
var tmp0_iterator = tmp0_filter.v();
|
|
2223
|
+
while (tmp0_iterator.w()) {
|
|
2224
|
+
var element = tmp0_iterator.y();
|
|
2225
2225
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>' call
|
|
2226
2226
|
// Inline function 'kotlin.text.isNotBlank' call
|
|
2227
2227
|
if (!isBlank(element)) {
|
|
2228
|
-
tmp0_filterTo.
|
|
2228
|
+
tmp0_filterTo.s(element);
|
|
2229
2229
|
}
|
|
2230
2230
|
}
|
|
2231
2231
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2232
2232
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_filterTo, 10));
|
|
2233
|
-
var tmp0_iterator_0 = tmp0_filterTo.
|
|
2234
|
-
while (tmp0_iterator_0.
|
|
2235
|
-
var item = tmp0_iterator_0.
|
|
2233
|
+
var tmp0_iterator_0 = tmp0_filterTo.v();
|
|
2234
|
+
while (tmp0_iterator_0.w()) {
|
|
2235
|
+
var item = tmp0_iterator_0.y();
|
|
2236
2236
|
var tmp$ret$11;
|
|
2237
2237
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>' call
|
|
2238
2238
|
var tmp;
|
|
@@ -2250,11 +2250,11 @@
|
|
|
2250
2250
|
var tmp$ret$7;
|
|
2251
2251
|
$l$block: {
|
|
2252
2252
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
2253
|
-
var tmp0_iterator_1 = parameters.
|
|
2254
|
-
while (tmp0_iterator_1.
|
|
2255
|
-
var element_0 = tmp0_iterator_1.
|
|
2253
|
+
var tmp0_iterator_1 = parameters.v();
|
|
2254
|
+
while (tmp0_iterator_1.w()) {
|
|
2255
|
+
var element_0 = tmp0_iterator_1.y();
|
|
2256
2256
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2257
|
-
if (element_0.
|
|
2257
|
+
if (element_0.j1i_1 === param) {
|
|
2258
2258
|
tmp$ret$7 = element_0;
|
|
2259
2259
|
break $l$block;
|
|
2260
2260
|
}
|
|
@@ -2263,9 +2263,9 @@
|
|
|
2263
2263
|
}
|
|
2264
2264
|
|
|
2265
2265
|
var tmp1_safe_receiver = tmp$ret$7;
|
|
2266
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2266
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f1i_1;
|
|
2267
2267
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : resolve_3(tmp2_safe_receiver, $this);
|
|
2268
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : toReference_2(tmp3_safe_receiver, $this, Common_getInstance().
|
|
2268
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : toReference_2(tmp3_safe_receiver, $this, Common_getInstance().o22([name, 'Parameter', param]));
|
|
2269
2269
|
var tmp_0;
|
|
2270
2270
|
if (tmp4_safe_receiver == null) {
|
|
2271
2271
|
tmp_0 = null;
|
|
@@ -2273,7 +2273,7 @@
|
|
|
2273
2273
|
// Inline function 'kotlin.let' call
|
|
2274
2274
|
// Inline function 'kotlin.contracts.contract' call
|
|
2275
2275
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2276
|
-
tmp_0 = new Param(
|
|
2276
|
+
tmp_0 = new Param(Companion_getInstance_0().q1z(param), tmp4_safe_receiver);
|
|
2277
2277
|
}
|
|
2278
2278
|
|
|
2279
2279
|
var tmp5_elvis_lhs = tmp_0;
|
|
@@ -2295,12 +2295,12 @@
|
|
|
2295
2295
|
break;
|
|
2296
2296
|
}
|
|
2297
2297
|
tmp$ret$11 = tmp;
|
|
2298
|
-
tmp0_mapTo.
|
|
2298
|
+
tmp0_mapTo.s(tmp$ret$11);
|
|
2299
2299
|
}
|
|
2300
2300
|
return tmp0_mapTo;
|
|
2301
2301
|
}
|
|
2302
2302
|
function resolveParameters_1(_this__u8e3s4, $this) {
|
|
2303
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2303
|
+
var tmp0_safe_receiver = _this__u8e3s4.o1h_1;
|
|
2304
2304
|
var tmp;
|
|
2305
2305
|
if (tmp0_safe_receiver == null) {
|
|
2306
2306
|
tmp = null;
|
|
@@ -2309,9 +2309,9 @@
|
|
|
2309
2309
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2310
2310
|
var tmp0_mapNotNullTo = ArrayList_init_$Create$();
|
|
2311
2311
|
// Inline function 'kotlin.collections.forEach' call
|
|
2312
|
-
var tmp0_iterator = tmp0_safe_receiver.
|
|
2313
|
-
while (tmp0_iterator.
|
|
2314
|
-
var element = tmp0_iterator.
|
|
2312
|
+
var tmp0_iterator = tmp0_safe_receiver.v();
|
|
2313
|
+
while (tmp0_iterator.w()) {
|
|
2314
|
+
var element = tmp0_iterator.y();
|
|
2315
2315
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2316
2316
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.resolveParameters.<anonymous>' call
|
|
2317
2317
|
var tmp_0;
|
|
@@ -2330,7 +2330,7 @@
|
|
|
2330
2330
|
else {
|
|
2331
2331
|
// Inline function 'kotlin.let' call
|
|
2332
2332
|
// Inline function 'kotlin.contracts.contract' call
|
|
2333
|
-
tmp0_mapNotNullTo.
|
|
2333
|
+
tmp0_mapNotNullTo.s(tmp0_safe_receiver_0);
|
|
2334
2334
|
}
|
|
2335
2335
|
}
|
|
2336
2336
|
tmp = tmp0_mapNotNullTo;
|
|
@@ -2339,7 +2339,7 @@
|
|
|
2339
2339
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2340
2340
|
}
|
|
2341
2341
|
function resolveParameters_2(_this__u8e3s4, $this) {
|
|
2342
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2342
|
+
var tmp0_safe_receiver = _this__u8e3s4.f1h_1;
|
|
2343
2343
|
var tmp;
|
|
2344
2344
|
if (tmp0_safe_receiver == null) {
|
|
2345
2345
|
tmp = null;
|
|
@@ -2348,9 +2348,9 @@
|
|
|
2348
2348
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2349
2349
|
var tmp0_mapNotNullTo = ArrayList_init_$Create$();
|
|
2350
2350
|
// Inline function 'kotlin.collections.forEach' call
|
|
2351
|
-
var tmp0_iterator = tmp0_safe_receiver.
|
|
2352
|
-
while (tmp0_iterator.
|
|
2353
|
-
var element = tmp0_iterator.
|
|
2351
|
+
var tmp0_iterator = tmp0_safe_receiver.v();
|
|
2352
|
+
while (tmp0_iterator.w()) {
|
|
2353
|
+
var element = tmp0_iterator.y();
|
|
2354
2354
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2355
2355
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.resolveParameters.<anonymous>' call
|
|
2356
2356
|
var tmp_0;
|
|
@@ -2369,7 +2369,7 @@
|
|
|
2369
2369
|
else {
|
|
2370
2370
|
// Inline function 'kotlin.let' call
|
|
2371
2371
|
// Inline function 'kotlin.contracts.contract' call
|
|
2372
|
-
tmp0_mapNotNullTo.
|
|
2372
|
+
tmp0_mapNotNullTo.s(tmp0_safe_receiver_0);
|
|
2373
2373
|
}
|
|
2374
2374
|
}
|
|
2375
2375
|
tmp = tmp0_mapNotNullTo;
|
|
@@ -2378,9 +2378,9 @@
|
|
|
2378
2378
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2379
2379
|
}
|
|
2380
2380
|
function resolveParameterObject_0(_this__u8e3s4, $this) {
|
|
2381
|
-
var tmp0_safe_receiver = $this.
|
|
2382
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2383
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2381
|
+
var tmp0_safe_receiver = $this.g23_1.j1g_1;
|
|
2382
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t1l_1;
|
|
2383
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
|
|
2384
2384
|
var tmp;
|
|
2385
2385
|
if (tmp2_safe_receiver == null) {
|
|
2386
2386
|
tmp = null;
|
|
@@ -2403,9 +2403,9 @@
|
|
|
2403
2403
|
return tmp;
|
|
2404
2404
|
}
|
|
2405
2405
|
function resolveSchemaObject_0(_this__u8e3s4, $this) {
|
|
2406
|
-
var tmp0_safe_receiver = $this.
|
|
2407
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2408
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2406
|
+
var tmp0_safe_receiver = $this.g23_1.j1g_1;
|
|
2407
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r1l_1;
|
|
2408
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
|
|
2409
2409
|
var tmp;
|
|
2410
2410
|
if (tmp2_safe_receiver == null) {
|
|
2411
2411
|
tmp = null;
|
|
@@ -2428,7 +2428,7 @@
|
|
|
2428
2428
|
var tmp3_elvis_lhs = tmp;
|
|
2429
2429
|
var tmp_1;
|
|
2430
2430
|
if (tmp3_elvis_lhs == null) {
|
|
2431
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2431
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.d1j_1);
|
|
2432
2432
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2433
2433
|
} else {
|
|
2434
2434
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2436,9 +2436,9 @@
|
|
|
2436
2436
|
return tmp_1;
|
|
2437
2437
|
}
|
|
2438
2438
|
function resolveHeaderObject(_this__u8e3s4, $this) {
|
|
2439
|
-
var tmp0_safe_receiver = $this.
|
|
2440
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2441
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2439
|
+
var tmp0_safe_receiver = $this.g23_1.j1g_1;
|
|
2440
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w1l_1;
|
|
2441
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
|
|
2442
2442
|
var tmp;
|
|
2443
2443
|
if (tmp2_safe_receiver == null) {
|
|
2444
2444
|
tmp = null;
|
|
@@ -2461,7 +2461,7 @@
|
|
|
2461
2461
|
var tmp3_elvis_lhs = tmp;
|
|
2462
2462
|
var tmp_1;
|
|
2463
2463
|
if (tmp3_elvis_lhs == null) {
|
|
2464
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2464
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.d1j_1);
|
|
2465
2465
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2466
2466
|
} else {
|
|
2467
2467
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2469,9 +2469,9 @@
|
|
|
2469
2469
|
return tmp_1;
|
|
2470
2470
|
}
|
|
2471
2471
|
function resolveRequestBodyObject(_this__u8e3s4, $this) {
|
|
2472
|
-
var tmp0_safe_receiver = $this.
|
|
2473
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2474
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2472
|
+
var tmp0_safe_receiver = $this.g23_1.j1g_1;
|
|
2473
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v1l_1;
|
|
2474
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
|
|
2475
2475
|
var tmp;
|
|
2476
2476
|
if (tmp2_safe_receiver == null) {
|
|
2477
2477
|
tmp = null;
|
|
@@ -2494,7 +2494,7 @@
|
|
|
2494
2494
|
var tmp3_elvis_lhs = tmp;
|
|
2495
2495
|
var tmp_1;
|
|
2496
2496
|
if (tmp3_elvis_lhs == null) {
|
|
2497
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2497
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.d1j_1);
|
|
2498
2498
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2499
2499
|
} else {
|
|
2500
2500
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2502,9 +2502,9 @@
|
|
|
2502
2502
|
return tmp_1;
|
|
2503
2503
|
}
|
|
2504
2504
|
function resolveResponseObject_0(_this__u8e3s4, $this) {
|
|
2505
|
-
var tmp0_safe_receiver = $this.
|
|
2506
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2507
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2505
|
+
var tmp0_safe_receiver = $this.g23_1.j1g_1;
|
|
2506
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s1l_1;
|
|
2507
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
|
|
2508
2508
|
var tmp;
|
|
2509
2509
|
if (tmp2_safe_receiver == null) {
|
|
2510
2510
|
tmp = null;
|
|
@@ -2527,7 +2527,7 @@
|
|
|
2527
2527
|
var tmp3_elvis_lhs = tmp;
|
|
2528
2528
|
var tmp_1;
|
|
2529
2529
|
if (tmp3_elvis_lhs == null) {
|
|
2530
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2530
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.d1j_1);
|
|
2531
2531
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2532
2532
|
} else {
|
|
2533
2533
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2540,7 +2540,7 @@
|
|
|
2540
2540
|
tmp = _this__u8e3s4;
|
|
2541
2541
|
} else {
|
|
2542
2542
|
if (_this__u8e3s4 instanceof ReferenceObject_0) {
|
|
2543
|
-
tmp = resolveSchemaObject_0(_this__u8e3s4, $this).
|
|
2543
|
+
tmp = resolveSchemaObject_0(_this__u8e3s4, $this).sd_1;
|
|
2544
2544
|
} else {
|
|
2545
2545
|
noWhenBranchMatchedException();
|
|
2546
2546
|
}
|
|
@@ -2553,7 +2553,7 @@
|
|
|
2553
2553
|
tmp = _this__u8e3s4;
|
|
2554
2554
|
} else {
|
|
2555
2555
|
if (_this__u8e3s4 instanceof ReferenceObject_0) {
|
|
2556
|
-
tmp = resolveHeaderObject(_this__u8e3s4, $this).
|
|
2556
|
+
tmp = resolveHeaderObject(_this__u8e3s4, $this).sd_1;
|
|
2557
2557
|
} else {
|
|
2558
2558
|
noWhenBranchMatchedException();
|
|
2559
2559
|
}
|
|
@@ -2566,7 +2566,7 @@
|
|
|
2566
2566
|
tmp = _this__u8e3s4;
|
|
2567
2567
|
} else {
|
|
2568
2568
|
if (_this__u8e3s4 instanceof ReferenceObject_0) {
|
|
2569
|
-
tmp = resolveSchemaObject_0(_this__u8e3s4, $this).
|
|
2569
|
+
tmp = resolveSchemaObject_0(_this__u8e3s4, $this).sd_1;
|
|
2570
2570
|
} else {
|
|
2571
2571
|
if (_this__u8e3s4 instanceof BooleanObject_0) {
|
|
2572
2572
|
throw new NotImplementedError('An operation is not implemented: Not yet implemented');
|
|
@@ -2583,7 +2583,7 @@
|
|
|
2583
2583
|
tmp = _this__u8e3s4;
|
|
2584
2584
|
} else {
|
|
2585
2585
|
if (_this__u8e3s4 instanceof ReferenceObject_0) {
|
|
2586
|
-
tmp = resolveRequestBodyObject(_this__u8e3s4, $this).
|
|
2586
|
+
tmp = resolveRequestBodyObject(_this__u8e3s4, $this).sd_1;
|
|
2587
2587
|
} else {
|
|
2588
2588
|
noWhenBranchMatchedException();
|
|
2589
2589
|
}
|
|
@@ -2596,7 +2596,7 @@
|
|
|
2596
2596
|
tmp = _this__u8e3s4;
|
|
2597
2597
|
} else {
|
|
2598
2598
|
if (_this__u8e3s4 instanceof ReferenceObject_0) {
|
|
2599
|
-
tmp = resolveResponseObject_0(_this__u8e3s4, $this).
|
|
2599
|
+
tmp = resolveResponseObject_0(_this__u8e3s4, $this).sd_1;
|
|
2600
2600
|
} else {
|
|
2601
2601
|
noWhenBranchMatchedException();
|
|
2602
2602
|
}
|
|
@@ -2605,12 +2605,12 @@
|
|
|
2605
2605
|
}
|
|
2606
2606
|
function flatten_1(_this__u8e3s4, $this, name) {
|
|
2607
2607
|
var tmp;
|
|
2608
|
-
if (!(_this__u8e3s4.
|
|
2608
|
+
if (!(_this__u8e3s4.w1j_1 == null)) {
|
|
2609
2609
|
var tmp_0;
|
|
2610
|
-
if (_this__u8e3s4.
|
|
2610
|
+
if (_this__u8e3s4.w1j_1 instanceof BooleanObject_0) {
|
|
2611
2611
|
tmp_0 = emptyList();
|
|
2612
2612
|
} else {
|
|
2613
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
2613
|
+
var tmp1_safe_receiver = _this__u8e3s4.w1j_1;
|
|
2614
2614
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_5(tmp1_safe_receiver, $this);
|
|
2615
2615
|
var tmp_1;
|
|
2616
2616
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2620,7 +2620,7 @@
|
|
|
2620
2620
|
// Inline function 'kotlin.contracts.contract' call
|
|
2621
2621
|
var tmp_2;
|
|
2622
2622
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2623
|
-
if (!(tmp2_safe_receiver.
|
|
2623
|
+
if (!(tmp2_safe_receiver.v1j_1 == null)) {
|
|
2624
2624
|
tmp_2 = tmp2_safe_receiver;
|
|
2625
2625
|
} else {
|
|
2626
2626
|
tmp_2 = null;
|
|
@@ -2632,44 +2632,44 @@
|
|
|
2632
2632
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
2633
2633
|
}
|
|
2634
2634
|
tmp = tmp_0;
|
|
2635
|
-
} else if (!(_this__u8e3s4.
|
|
2635
|
+
} else if (!(_this__u8e3s4.r1j_1 == null)) {
|
|
2636
2636
|
throw new NotImplementedError('An operation is not implemented: oneOf is not implemented');
|
|
2637
|
-
} else if (!(_this__u8e3s4.
|
|
2637
|
+
} else if (!(_this__u8e3s4.s1j_1 == null)) {
|
|
2638
2638
|
throw new NotImplementedError('An operation is not implemented: anyOf is not implemented');
|
|
2639
|
-
} else if (!(_this__u8e3s4.
|
|
2639
|
+
} else if (!(_this__u8e3s4.q1j_1 == null)) {
|
|
2640
2640
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
2641
2641
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2642
2642
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2643
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2643
|
+
var tmp0_elvis_lhs = _this__u8e3s4.q1j_1;
|
|
2644
2644
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2645
2645
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2646
2646
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
2647
|
-
var tmp0_iterator = tmp1_flatMap.
|
|
2648
|
-
while (tmp0_iterator.
|
|
2649
|
-
var element = tmp0_iterator.
|
|
2647
|
+
var tmp0_iterator = tmp1_flatMap.v();
|
|
2648
|
+
while (tmp0_iterator.w()) {
|
|
2649
|
+
var element = tmp0_iterator.y();
|
|
2650
2650
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2651
2651
|
var list = toField_1(resolve_3(element, $this), $this, name);
|
|
2652
2652
|
addAll(tmp0_flatMapTo, list);
|
|
2653
2653
|
}
|
|
2654
2654
|
var set = HashSet_init_$Create$();
|
|
2655
2655
|
var list_0 = ArrayList_init_$Create$();
|
|
2656
|
-
var tmp0_iterator_0 = tmp0_flatMapTo.
|
|
2657
|
-
while (tmp0_iterator_0.
|
|
2658
|
-
var e = tmp0_iterator_0.
|
|
2656
|
+
var tmp0_iterator_0 = tmp0_flatMapTo.v();
|
|
2657
|
+
while (tmp0_iterator_0.w()) {
|
|
2658
|
+
var e = tmp0_iterator_0.y();
|
|
2659
2659
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2660
|
-
var key = e.
|
|
2661
|
-
if (set.
|
|
2662
|
-
list_0.
|
|
2660
|
+
var key = e.e1y_1;
|
|
2661
|
+
if (set.s(key)) {
|
|
2662
|
+
list_0.s(e);
|
|
2663
2663
|
}
|
|
2664
2664
|
}
|
|
2665
2665
|
var tmp_3 = listOf(new Type(name, new Shape(list_0)));
|
|
2666
2666
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2667
|
-
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.
|
|
2667
|
+
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.q1j_1);
|
|
2668
2668
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2669
2669
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
2670
|
-
var tmp0_iterator_1 = tmp3_flatMap.
|
|
2671
|
-
while (tmp0_iterator_1.
|
|
2672
|
-
var element_0 = tmp0_iterator_1.
|
|
2670
|
+
var tmp0_iterator_1 = tmp3_flatMap.v();
|
|
2671
|
+
while (tmp0_iterator_1.w()) {
|
|
2672
|
+
var element_0 = tmp0_iterator_1.y();
|
|
2673
2673
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2674
2674
|
var tmp_4;
|
|
2675
2675
|
if (element_0 instanceof ReferenceObject_0) {
|
|
@@ -2678,25 +2678,25 @@
|
|
|
2678
2678
|
if (element_0 instanceof SchemaObject_0) {
|
|
2679
2679
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2680
2680
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2681
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
2681
|
+
var tmp0_elvis_lhs_0 = element_0.v1j_1;
|
|
2682
2682
|
var tmp1_flatMap_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2683
2683
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2684
2684
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
2685
2685
|
// Inline function 'kotlin.collections.iterator' call
|
|
2686
|
-
var tmp0_iterator_2 = tmp1_flatMap_0.
|
|
2687
|
-
while (tmp0_iterator_2.
|
|
2688
|
-
var element_1 = tmp0_iterator_2.
|
|
2686
|
+
var tmp0_iterator_2 = tmp1_flatMap_0.n2().v();
|
|
2687
|
+
while (tmp0_iterator_2.w()) {
|
|
2688
|
+
var element_1 = tmp0_iterator_2.y();
|
|
2689
2689
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>.<anonymous>' call
|
|
2690
2690
|
// Inline function 'kotlin.collections.component1' call
|
|
2691
|
-
var key_0 = element_1.
|
|
2691
|
+
var key_0 = element_1.o2();
|
|
2692
2692
|
// Inline function 'kotlin.collections.component2' call
|
|
2693
|
-
var value = element_1.
|
|
2693
|
+
var value = element_1.p2();
|
|
2694
2694
|
var tmp_5;
|
|
2695
2695
|
if (value instanceof ReferenceObject_0) {
|
|
2696
2696
|
tmp_5 = emptyList();
|
|
2697
2697
|
} else {
|
|
2698
2698
|
if (value instanceof SchemaObject_0) {
|
|
2699
|
-
tmp_5 = flatten_1(value, $this, Common_getInstance().
|
|
2699
|
+
tmp_5 = flatten_1(value, $this, Common_getInstance().o22([name, key_0]));
|
|
2700
2700
|
} else {
|
|
2701
2701
|
noWhenBranchMatchedException();
|
|
2702
2702
|
}
|
|
@@ -2713,50 +2713,50 @@
|
|
|
2713
2713
|
addAll(tmp0_flatMapTo_0, list_2);
|
|
2714
2714
|
}
|
|
2715
2715
|
tmp = plus(tmp_3, tmp0_flatMapTo_0);
|
|
2716
|
-
} else if (!(_this__u8e3s4.
|
|
2716
|
+
} else if (!(_this__u8e3s4.p1k_1 == null)) {
|
|
2717
2717
|
// Inline function 'kotlin.let' call
|
|
2718
2718
|
// Inline function 'kotlin.collections.map' call
|
|
2719
|
-
var tmp4_map = ensureNotNull(_this__u8e3s4.
|
|
2719
|
+
var tmp4_map = ensureNotNull(_this__u8e3s4.p1k_1);
|
|
2720
2720
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2721
2721
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp4_map, 10));
|
|
2722
|
-
var tmp0_iterator_3 = tmp4_map.
|
|
2723
|
-
while (tmp0_iterator_3.
|
|
2724
|
-
var item = tmp0_iterator_3.
|
|
2722
|
+
var tmp0_iterator_3 = tmp4_map.v();
|
|
2723
|
+
while (tmp0_iterator_3.w()) {
|
|
2724
|
+
var item = tmp0_iterator_3.y();
|
|
2725
2725
|
var tmp$ret$18;
|
|
2726
2726
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2727
|
-
tmp$ret$18 = item.
|
|
2728
|
-
tmp0_mapTo.
|
|
2727
|
+
tmp$ret$18 = item.n10();
|
|
2728
|
+
tmp0_mapTo.s(tmp$ret$18);
|
|
2729
2729
|
}
|
|
2730
2730
|
var tmp5_let = toSet(tmp0_mapTo);
|
|
2731
2731
|
// Inline function 'kotlin.contracts.contract' call
|
|
2732
2732
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2733
2733
|
tmp = listOf(new Enum(name, tmp5_let));
|
|
2734
2734
|
} else {
|
|
2735
|
-
var tmp5_subject = _this__u8e3s4.
|
|
2735
|
+
var tmp5_subject = _this__u8e3s4.p1j_1;
|
|
2736
2736
|
var tmp_6;
|
|
2737
|
-
switch (tmp5_subject == null ? -1 : tmp5_subject.
|
|
2737
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.c9_1) {
|
|
2738
2738
|
case -1:
|
|
2739
2739
|
case 5:
|
|
2740
2740
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2741
2741
|
|
|
2742
2742
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2743
2743
|
|
|
2744
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
2744
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.v1j_1;
|
|
2745
2745
|
var tmp7_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
2746
2746
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2747
2747
|
|
|
2748
2748
|
var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
|
|
2749
2749
|
// Inline function 'kotlin.collections.iterator' call
|
|
2750
2750
|
|
|
2751
|
-
var tmp0_iterator_4 = tmp7_flatMap.
|
|
2752
|
-
while (tmp0_iterator_4.
|
|
2753
|
-
var element_2 = tmp0_iterator_4.
|
|
2751
|
+
var tmp0_iterator_4 = tmp7_flatMap.n2().v();
|
|
2752
|
+
while (tmp0_iterator_4.w()) {
|
|
2753
|
+
var element_2 = tmp0_iterator_4.y();
|
|
2754
2754
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2755
2755
|
// Inline function 'kotlin.collections.component1' call
|
|
2756
|
-
var key_1 = element_2.
|
|
2756
|
+
var key_1 = element_2.o2();
|
|
2757
2757
|
// Inline function 'kotlin.collections.component2' call
|
|
2758
|
-
var value_0 = element_2.
|
|
2759
|
-
var list_3 = flatten_2(value_0, $this, Common_getInstance().
|
|
2758
|
+
var value_0 = element_2.p2();
|
|
2759
|
+
var list_3 = flatten_2(value_0, $this, Common_getInstance().o22([name, key_1]));
|
|
2760
2760
|
addAll(tmp0_flatMapTo_2, list_3);
|
|
2761
2761
|
}
|
|
2762
2762
|
|
|
@@ -2765,7 +2765,7 @@
|
|
|
2765
2765
|
tmp_6 = plus(schema, fields);
|
|
2766
2766
|
break;
|
|
2767
2767
|
case 4:
|
|
2768
|
-
var tmp6_safe_receiver = _this__u8e3s4.
|
|
2768
|
+
var tmp6_safe_receiver = _this__u8e3s4.u1j_1;
|
|
2769
2769
|
var tmp_7;
|
|
2770
2770
|
if (tmp6_safe_receiver == null) {
|
|
2771
2771
|
tmp_7 = null;
|
|
@@ -2778,7 +2778,7 @@
|
|
|
2778
2778
|
tmp_8 = emptyList();
|
|
2779
2779
|
} else {
|
|
2780
2780
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
2781
|
-
tmp_8 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().
|
|
2781
|
+
tmp_8 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().o22([name, 'array']));
|
|
2782
2782
|
} else {
|
|
2783
2783
|
noWhenBranchMatchedException();
|
|
2784
2784
|
}
|
|
@@ -2815,11 +2815,11 @@
|
|
|
2815
2815
|
var tmp0_let = resolveSchemaObject_0(_this__u8e3s4, $this);
|
|
2816
2816
|
// Inline function 'kotlin.contracts.contract' call
|
|
2817
2817
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
|
|
2818
|
-
var referencingObject = tmp0_let.
|
|
2819
|
-
var schema = tmp0_let.
|
|
2818
|
+
var referencingObject = tmp0_let.fd();
|
|
2819
|
+
var schema = tmp0_let.gd();
|
|
2820
2820
|
var tmp;
|
|
2821
|
-
if (!(schema.
|
|
2822
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2821
|
+
if (!(schema.w1j_1 == null)) {
|
|
2822
|
+
var additionalProperties = ensureNotNull(schema.w1j_1);
|
|
2823
2823
|
var tmp_0;
|
|
2824
2824
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
2825
2825
|
tmp_0 = new Any(false, true);
|
|
@@ -2835,24 +2835,24 @@
|
|
|
2835
2835
|
}
|
|
2836
2836
|
}
|
|
2837
2837
|
tmp = tmp_0;
|
|
2838
|
-
} else if (!(schema.
|
|
2839
|
-
tmp = new Custom(Common_getInstance().
|
|
2840
|
-
} else if (isPrimitive_0(schema.
|
|
2841
|
-
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.
|
|
2838
|
+
} else if (!(schema.p1k_1 == null)) {
|
|
2839
|
+
tmp = new Custom(Common_getInstance().o22([getReference_0(referencingObject, $this)]), false, false);
|
|
2840
|
+
} else if (isPrimitive_0(schema.p1j_1)) {
|
|
2841
|
+
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.p1j_1), $this), false, false);
|
|
2842
2842
|
} else {
|
|
2843
|
-
var tmp0_subject = schema.
|
|
2843
|
+
var tmp0_subject = schema.p1j_1;
|
|
2844
2844
|
var tmp_1;
|
|
2845
|
-
if ((tmp0_subject == null ? -1 : tmp0_subject.
|
|
2846
|
-
var items = schema.
|
|
2845
|
+
if ((tmp0_subject == null ? -1 : tmp0_subject.c9_1) === 4) {
|
|
2846
|
+
var items = schema.u1j_1;
|
|
2847
2847
|
var tmp_2;
|
|
2848
2848
|
if (items instanceof ReferenceObject_0) {
|
|
2849
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2849
|
+
tmp_2 = new Custom(Common_getInstance().o22([getReference_0(items, $this)]), true);
|
|
2850
2850
|
} else {
|
|
2851
2851
|
if (items instanceof SchemaObject_0) {
|
|
2852
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2852
|
+
tmp_2 = new Custom(Common_getInstance().o22([getReference_0(referencingObject, $this), 'Array']), true);
|
|
2853
2853
|
} else {
|
|
2854
2854
|
if (items == null) {
|
|
2855
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.
|
|
2855
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.d1j_1);
|
|
2856
2856
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2857
2857
|
} else {
|
|
2858
2858
|
noWhenBranchMatchedException();
|
|
@@ -2861,7 +2861,7 @@
|
|
|
2861
2861
|
}
|
|
2862
2862
|
tmp_1 = tmp_2;
|
|
2863
2863
|
} else {
|
|
2864
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
2864
|
+
tmp_1 = new Custom(Common_getInstance().o22([getReference_0(referencingObject, $this)]), false);
|
|
2865
2865
|
}
|
|
2866
2866
|
tmp = tmp_1;
|
|
2867
2867
|
}
|
|
@@ -2869,8 +2869,8 @@
|
|
|
2869
2869
|
}
|
|
2870
2870
|
function toReference_2(_this__u8e3s4, $this, name) {
|
|
2871
2871
|
var tmp;
|
|
2872
|
-
if (!(_this__u8e3s4.
|
|
2873
|
-
var additionalProperties = ensureNotNull(_this__u8e3s4.
|
|
2872
|
+
if (!(_this__u8e3s4.w1j_1 == null)) {
|
|
2873
|
+
var additionalProperties = ensureNotNull(_this__u8e3s4.w1j_1);
|
|
2874
2874
|
var tmp_0;
|
|
2875
2875
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
2876
2876
|
tmp_0 = new Any(false, true);
|
|
@@ -2883,7 +2883,7 @@
|
|
|
2883
2883
|
// Inline function 'kotlin.contracts.contract' call
|
|
2884
2884
|
var tmp_1;
|
|
2885
2885
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
|
|
2886
|
-
if (isPrimitive_0(additionalProperties.
|
|
2886
|
+
if (isPrimitive_0(additionalProperties.p1j_1) ? true : !(additionalProperties.v1j_1 == null)) {
|
|
2887
2887
|
tmp_1 = additionalProperties;
|
|
2888
2888
|
} else {
|
|
2889
2889
|
tmp_1 = null;
|
|
@@ -2906,32 +2906,32 @@
|
|
|
2906
2906
|
}
|
|
2907
2907
|
}
|
|
2908
2908
|
tmp = tmp_0;
|
|
2909
|
-
} else if (!(_this__u8e3s4.
|
|
2910
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
2909
|
+
} else if (!(_this__u8e3s4.p1k_1 == null)) {
|
|
2910
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.w1j_1 == null));
|
|
2911
2911
|
} else {
|
|
2912
|
-
var type = _this__u8e3s4.
|
|
2912
|
+
var type = _this__u8e3s4.p1j_1;
|
|
2913
2913
|
var tmp_3;
|
|
2914
|
-
switch (type == null ? -1 : type.
|
|
2914
|
+
switch (type == null ? -1 : type.c9_1) {
|
|
2915
2915
|
case 0:
|
|
2916
2916
|
case 1:
|
|
2917
2917
|
case 2:
|
|
2918
2918
|
case 3:
|
|
2919
|
-
tmp_3 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.
|
|
2919
|
+
tmp_3 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.w1j_1 == null));
|
|
2920
2920
|
break;
|
|
2921
2921
|
case -1:
|
|
2922
2922
|
case 5:
|
|
2923
2923
|
var tmp_4;
|
|
2924
|
-
var tmp_5 = _this__u8e3s4.
|
|
2924
|
+
var tmp_5 = _this__u8e3s4.w1j_1;
|
|
2925
2925
|
if (tmp_5 instanceof BooleanObject_0) {
|
|
2926
|
-
tmp_4 = new Any(false, !(_this__u8e3s4.
|
|
2926
|
+
tmp_4 = new Any(false, !(_this__u8e3s4.w1j_1 == null));
|
|
2927
2927
|
} else {
|
|
2928
|
-
tmp_4 = new Custom(name, false, !(_this__u8e3s4.
|
|
2928
|
+
tmp_4 = new Custom(name, false, !(_this__u8e3s4.w1j_1 == null));
|
|
2929
2929
|
}
|
|
2930
2930
|
|
|
2931
2931
|
tmp_3 = tmp_4;
|
|
2932
2932
|
break;
|
|
2933
2933
|
case 4:
|
|
2934
|
-
var it = _this__u8e3s4.
|
|
2934
|
+
var it = _this__u8e3s4.u1j_1;
|
|
2935
2935
|
var tmp_6;
|
|
2936
2936
|
if (it instanceof ReferenceObject_0) {
|
|
2937
2937
|
tmp_6 = toIterable_0(toReference_1(it, $this));
|
|
@@ -2963,51 +2963,51 @@
|
|
|
2963
2963
|
var tmp0_associateWith = get_entries();
|
|
2964
2964
|
var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(collectionSizeOrDefault(tmp0_associateWith, 10)), 16));
|
|
2965
2965
|
// Inline function 'kotlin.collections.associateWithTo' call
|
|
2966
|
-
var tmp0_iterator = tmp0_associateWith.
|
|
2967
|
-
while (tmp0_iterator.
|
|
2968
|
-
var element = tmp0_iterator.
|
|
2966
|
+
var tmp0_iterator = tmp0_associateWith.v();
|
|
2967
|
+
while (tmp0_iterator.w()) {
|
|
2968
|
+
var element = tmp0_iterator.y();
|
|
2969
2969
|
var tmp$ret$0;
|
|
2970
2970
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toOperationList.<anonymous>' call
|
|
2971
2971
|
var tmp;
|
|
2972
|
-
switch (element.
|
|
2972
|
+
switch (element.c9_1) {
|
|
2973
2973
|
case 0:
|
|
2974
|
-
tmp = _this__u8e3s4.
|
|
2974
|
+
tmp = _this__u8e3s4.w1g_1;
|
|
2975
2975
|
break;
|
|
2976
2976
|
case 1:
|
|
2977
|
-
tmp = _this__u8e3s4.
|
|
2977
|
+
tmp = _this__u8e3s4.y1g_1;
|
|
2978
2978
|
break;
|
|
2979
2979
|
case 2:
|
|
2980
|
-
tmp = _this__u8e3s4.
|
|
2980
|
+
tmp = _this__u8e3s4.x1g_1;
|
|
2981
2981
|
break;
|
|
2982
2982
|
case 3:
|
|
2983
|
-
tmp = _this__u8e3s4.
|
|
2983
|
+
tmp = _this__u8e3s4.z1g_1;
|
|
2984
2984
|
break;
|
|
2985
2985
|
case 4:
|
|
2986
|
-
tmp = _this__u8e3s4.
|
|
2986
|
+
tmp = _this__u8e3s4.a1h_1;
|
|
2987
2987
|
break;
|
|
2988
2988
|
case 5:
|
|
2989
|
-
tmp = _this__u8e3s4.
|
|
2989
|
+
tmp = _this__u8e3s4.b1h_1;
|
|
2990
2990
|
break;
|
|
2991
2991
|
case 6:
|
|
2992
|
-
tmp = _this__u8e3s4.
|
|
2992
|
+
tmp = _this__u8e3s4.c1h_1;
|
|
2993
2993
|
break;
|
|
2994
2994
|
case 7:
|
|
2995
|
-
tmp = _this__u8e3s4.
|
|
2995
|
+
tmp = _this__u8e3s4.d1h_1;
|
|
2996
2996
|
break;
|
|
2997
2997
|
default:
|
|
2998
2998
|
noWhenBranchMatchedException();
|
|
2999
2999
|
break;
|
|
3000
3000
|
}
|
|
3001
3001
|
tmp$ret$0 = tmp;
|
|
3002
|
-
result.
|
|
3002
|
+
result.l2(element, tmp$ret$0);
|
|
3003
3003
|
}
|
|
3004
3004
|
return filterNotNullValues_0(result);
|
|
3005
3005
|
}
|
|
3006
3006
|
function getReference_0(_this__u8e3s4, $this) {
|
|
3007
|
-
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
3007
|
+
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.d1j_1), ['/']), 3);
|
|
3008
3008
|
var tmp;
|
|
3009
3009
|
if (tmp0_elvis_lhs == null) {
|
|
3010
|
-
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
3010
|
+
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.d1j_1);
|
|
3011
3011
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
3012
3012
|
} else {
|
|
3013
3013
|
tmp = tmp0_elvis_lhs;
|
|
@@ -3016,7 +3016,7 @@
|
|
|
3016
3016
|
}
|
|
3017
3017
|
function toPrimitive_0(_this__u8e3s4, $this) {
|
|
3018
3018
|
var tmp;
|
|
3019
|
-
switch (_this__u8e3s4.
|
|
3019
|
+
switch (_this__u8e3s4.c9_1) {
|
|
3020
3020
|
case 0:
|
|
3021
3021
|
tmp = Type_String_getInstance();
|
|
3022
3022
|
break;
|
|
@@ -3037,46 +3037,46 @@
|
|
|
3037
3037
|
function toField_1(_this__u8e3s4, $this, name) {
|
|
3038
3038
|
// Inline function 'kotlin.collections.map' call
|
|
3039
3039
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3040
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3040
|
+
var tmp0_elvis_lhs = _this__u8e3s4.v1j_1;
|
|
3041
3041
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3042
3042
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3043
|
-
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.
|
|
3043
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.n());
|
|
3044
3044
|
// Inline function 'kotlin.collections.iterator' call
|
|
3045
|
-
var tmp0_iterator = tmp1_map.
|
|
3046
|
-
while (tmp0_iterator.
|
|
3047
|
-
var item = tmp0_iterator.
|
|
3045
|
+
var tmp0_iterator = tmp1_map.n2().v();
|
|
3046
|
+
while (tmp0_iterator.w()) {
|
|
3047
|
+
var item = tmp0_iterator.y();
|
|
3048
3048
|
var tmp$ret$4;
|
|
3049
3049
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3050
3050
|
// Inline function 'kotlin.collections.component1' call
|
|
3051
|
-
var key = item.
|
|
3051
|
+
var key = item.o2();
|
|
3052
3052
|
// Inline function 'kotlin.collections.component2' call
|
|
3053
|
-
var value = item.
|
|
3053
|
+
var value = item.p2();
|
|
3054
3054
|
var tmp;
|
|
3055
3055
|
if (value instanceof SchemaObject_0) {
|
|
3056
|
-
var tmp_0 =
|
|
3057
|
-
var tmp_1 = !(value.
|
|
3058
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
3059
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3056
|
+
var tmp_0 = Companion_getInstance_0().q1z(key);
|
|
3057
|
+
var tmp_1 = !(value.p1k_1 == null) ? toReference_2(value, $this, Common_getInstance().o22([name, key])) : equals(value.p1j_1, Type_ARRAY_getInstance_0()) ? toReference_2(value, $this, Common_getInstance().o22([name, key, 'Array'])) : toReference_2(value, $this, Common_getInstance().o22([name, key]));
|
|
3058
|
+
var tmp1_safe_receiver = _this__u8e3s4.o1k_1;
|
|
3059
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r(key);
|
|
3060
3060
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
3061
3061
|
} else {
|
|
3062
3062
|
if (value instanceof ReferenceObject_0) {
|
|
3063
|
-
var tmp_2 =
|
|
3064
|
-
var tmp_3 = new Custom(Common_getInstance().
|
|
3065
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
3066
|
-
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
3063
|
+
var tmp_2 = Companion_getInstance_0().q1z(key);
|
|
3064
|
+
var tmp_3 = new Custom(Common_getInstance().o22([getReference_0(value, $this)]), false);
|
|
3065
|
+
var tmp3_safe_receiver = _this__u8e3s4.o1k_1;
|
|
3066
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.r(key);
|
|
3067
3067
|
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
3068
3068
|
} else {
|
|
3069
3069
|
noWhenBranchMatchedException();
|
|
3070
3070
|
}
|
|
3071
3071
|
}
|
|
3072
3072
|
tmp$ret$4 = tmp;
|
|
3073
|
-
tmp0_mapTo.
|
|
3073
|
+
tmp0_mapTo.s(tmp$ret$4);
|
|
3074
3074
|
}
|
|
3075
3075
|
return tmp0_mapTo;
|
|
3076
3076
|
}
|
|
3077
3077
|
function toField_2(_this__u8e3s4, $this, name) {
|
|
3078
3078
|
// Inline function 'kotlin.let' call
|
|
3079
|
-
var s = _this__u8e3s4.
|
|
3079
|
+
var s = _this__u8e3s4.f1i_1;
|
|
3080
3080
|
var tmp;
|
|
3081
3081
|
if (s instanceof ReferenceObject_0) {
|
|
3082
3082
|
tmp = toReference_1(s, $this);
|
|
@@ -3094,13 +3094,13 @@
|
|
|
3094
3094
|
var tmp0_let = tmp;
|
|
3095
3095
|
// Inline function 'kotlin.contracts.contract' call
|
|
3096
3096
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3097
|
-
var tmp_0 =
|
|
3098
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3097
|
+
var tmp_0 = Companion_getInstance_0().q1z(_this__u8e3s4.j1i_1);
|
|
3098
|
+
var tmp0_elvis_lhs = _this__u8e3s4.z1h_1;
|
|
3099
3099
|
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3100
3100
|
}
|
|
3101
3101
|
function toField_3(_this__u8e3s4, $this, identifier, name) {
|
|
3102
3102
|
// Inline function 'kotlin.let' call
|
|
3103
|
-
var s = _this__u8e3s4.
|
|
3103
|
+
var s = _this__u8e3s4.k1l_1;
|
|
3104
3104
|
var tmp;
|
|
3105
3105
|
if (s instanceof ReferenceObject_0) {
|
|
3106
3106
|
tmp = toReference_1(s, $this);
|
|
@@ -3118,24 +3118,24 @@
|
|
|
3118
3118
|
var tmp0_let = tmp;
|
|
3119
3119
|
// Inline function 'kotlin.contracts.contract' call
|
|
3120
3120
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3121
|
-
var tmp_0 =
|
|
3122
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3121
|
+
var tmp_0 = Companion_getInstance_0().q1z(identifier);
|
|
3122
|
+
var tmp0_elvis_lhs = _this__u8e3s4.e1l_1;
|
|
3123
3123
|
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3124
3124
|
}
|
|
3125
3125
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
3126
|
-
this.
|
|
3127
|
-
this.
|
|
3128
|
-
this.
|
|
3129
|
-
this.
|
|
3126
|
+
this.h23_1 = path;
|
|
3127
|
+
this.i23_1 = pathItem;
|
|
3128
|
+
this.j23_1 = method;
|
|
3129
|
+
this.k23_1 = operation;
|
|
3130
3130
|
}
|
|
3131
3131
|
protoOf(FlattenRequest_0).toString = function () {
|
|
3132
|
-
return 'FlattenRequest(path=' + new Path_0(this.
|
|
3132
|
+
return 'FlattenRequest(path=' + new Path_0(this.h23_1) + ', pathItem=' + this.i23_1 + ', method=' + this.j23_1 + ', operation=' + this.k23_1 + ')';
|
|
3133
3133
|
};
|
|
3134
3134
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
3135
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3136
|
-
result = imul(result, 31) + this.
|
|
3137
|
-
result = imul(result, 31) + this.
|
|
3138
|
-
result = imul(result, 31) + this.
|
|
3135
|
+
var result = Path__hashCode_impl_go73kd_0(this.h23_1);
|
|
3136
|
+
result = imul(result, 31) + this.i23_1.hashCode() | 0;
|
|
3137
|
+
result = imul(result, 31) + this.j23_1.hashCode() | 0;
|
|
3138
|
+
result = imul(result, 31) + this.k23_1.hashCode() | 0;
|
|
3139
3139
|
return result;
|
|
3140
3140
|
};
|
|
3141
3141
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -3144,56 +3144,56 @@
|
|
|
3144
3144
|
if (!(other instanceof FlattenRequest_0))
|
|
3145
3145
|
return false;
|
|
3146
3146
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
3147
|
-
if (!(this.
|
|
3147
|
+
if (!(this.h23_1 === tmp0_other_with_cast.h23_1))
|
|
3148
3148
|
return false;
|
|
3149
|
-
if (!this.
|
|
3149
|
+
if (!this.i23_1.equals(tmp0_other_with_cast.i23_1))
|
|
3150
3150
|
return false;
|
|
3151
|
-
if (!this.
|
|
3151
|
+
if (!this.j23_1.equals(tmp0_other_with_cast.j23_1))
|
|
3152
3152
|
return false;
|
|
3153
|
-
if (!this.
|
|
3153
|
+
if (!this.k23_1.equals(tmp0_other_with_cast.k23_1))
|
|
3154
3154
|
return false;
|
|
3155
3155
|
return true;
|
|
3156
3156
|
};
|
|
3157
3157
|
function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
3158
3158
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3159
3159
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3160
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
3160
|
+
var tmp0_flatMap = _this__u8e3s4.i1g_1;
|
|
3161
3161
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3162
3162
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
3163
3163
|
// Inline function 'kotlin.collections.iterator' call
|
|
3164
|
-
var tmp0_iterator = tmp0_flatMap.
|
|
3165
|
-
while (tmp0_iterator.
|
|
3166
|
-
var element = tmp0_iterator.
|
|
3164
|
+
var tmp0_iterator = tmp0_flatMap.n2().v();
|
|
3165
|
+
while (tmp0_iterator.w()) {
|
|
3166
|
+
var element = tmp0_iterator.y();
|
|
3167
3167
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
3168
3168
|
// Inline function 'kotlin.collections.component1' call
|
|
3169
|
-
var path = element.
|
|
3169
|
+
var path = element.o2().q1g_1;
|
|
3170
3170
|
// Inline function 'kotlin.collections.component2' call
|
|
3171
|
-
var pathItem = element.
|
|
3171
|
+
var pathItem = element.p2();
|
|
3172
3172
|
// Inline function 'kotlin.collections.map' call
|
|
3173
3173
|
var tmp0_map = toOperationList_0(pathItem, $this);
|
|
3174
3174
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3175
|
-
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp0_map.
|
|
3175
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp0_map.n());
|
|
3176
3176
|
// Inline function 'kotlin.collections.iterator' call
|
|
3177
|
-
var tmp0_iterator_0 = tmp0_map.
|
|
3178
|
-
while (tmp0_iterator_0.
|
|
3179
|
-
var item = tmp0_iterator_0.
|
|
3177
|
+
var tmp0_iterator_0 = tmp0_map.n2().v();
|
|
3178
|
+
while (tmp0_iterator_0.w()) {
|
|
3179
|
+
var item = tmp0_iterator_0.y();
|
|
3180
3180
|
var tmp$ret$6;
|
|
3181
3181
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>.<anonymous>' call
|
|
3182
3182
|
// Inline function 'kotlin.collections.component1' call
|
|
3183
|
-
var method = item.
|
|
3183
|
+
var method = item.o2();
|
|
3184
3184
|
// Inline function 'kotlin.collections.component2' call
|
|
3185
|
-
var operation = item.
|
|
3185
|
+
var operation = item.p2();
|
|
3186
3186
|
tmp$ret$6 = new FlattenRequest_0(path, pathItem, method, operation);
|
|
3187
|
-
tmp0_mapTo.
|
|
3187
|
+
tmp0_mapTo.s(tmp$ret$6);
|
|
3188
3188
|
}
|
|
3189
3189
|
var list = tmp0_mapTo;
|
|
3190
3190
|
addAll(tmp0_flatMapTo, list);
|
|
3191
3191
|
}
|
|
3192
3192
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3193
3193
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
3194
|
-
var tmp0_iterator_1 = tmp0_flatMapTo.
|
|
3195
|
-
while (tmp0_iterator_1.
|
|
3196
|
-
var element_0 = tmp0_iterator_1.
|
|
3194
|
+
var tmp0_iterator_1 = tmp0_flatMapTo.v();
|
|
3195
|
+
while (tmp0_iterator_1.w()) {
|
|
3196
|
+
var element_0 = tmp0_iterator_1.y();
|
|
3197
3197
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
3198
3198
|
var list_0 = f(element_0);
|
|
3199
3199
|
addAll(tmp0_flatMapTo_0, list_0);
|
|
@@ -3201,23 +3201,23 @@
|
|
|
3201
3201
|
return tmp0_flatMapTo_0;
|
|
3202
3202
|
}
|
|
3203
3203
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
3204
|
-
this.
|
|
3205
|
-
this.
|
|
3206
|
-
this.
|
|
3207
|
-
this.
|
|
3208
|
-
this.
|
|
3209
|
-
this.
|
|
3204
|
+
this.l23_1 = path;
|
|
3205
|
+
this.m23_1 = pathItem;
|
|
3206
|
+
this.n23_1 = method;
|
|
3207
|
+
this.o23_1 = operation;
|
|
3208
|
+
this.p23_1 = statusCode;
|
|
3209
|
+
this.q23_1 = response;
|
|
3210
3210
|
}
|
|
3211
3211
|
protoOf(FlattenResponse_0).toString = function () {
|
|
3212
|
-
return 'FlattenResponse(path=' + new Path_0(this.
|
|
3212
|
+
return 'FlattenResponse(path=' + new Path_0(this.l23_1) + ', pathItem=' + this.m23_1 + ', method=' + this.n23_1 + ', operation=' + this.o23_1 + ', statusCode=' + new StatusCode_0(this.p23_1) + ', response=' + this.q23_1 + ')';
|
|
3213
3213
|
};
|
|
3214
3214
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
3215
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3216
|
-
result = imul(result, 31) + this.
|
|
3217
|
-
result = imul(result, 31) + this.
|
|
3218
|
-
result = imul(result, 31) + this.
|
|
3219
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.
|
|
3220
|
-
result = imul(result, 31) + hashCode(this.
|
|
3215
|
+
var result = Path__hashCode_impl_go73kd_0(this.l23_1);
|
|
3216
|
+
result = imul(result, 31) + this.m23_1.hashCode() | 0;
|
|
3217
|
+
result = imul(result, 31) + this.n23_1.hashCode() | 0;
|
|
3218
|
+
result = imul(result, 31) + this.o23_1.hashCode() | 0;
|
|
3219
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.p23_1) | 0;
|
|
3220
|
+
result = imul(result, 31) + hashCode(this.q23_1) | 0;
|
|
3221
3221
|
return result;
|
|
3222
3222
|
};
|
|
3223
3223
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -3226,69 +3226,69 @@
|
|
|
3226
3226
|
if (!(other instanceof FlattenResponse_0))
|
|
3227
3227
|
return false;
|
|
3228
3228
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
3229
|
-
if (!(this.
|
|
3229
|
+
if (!(this.l23_1 === tmp0_other_with_cast.l23_1))
|
|
3230
3230
|
return false;
|
|
3231
|
-
if (!this.
|
|
3231
|
+
if (!this.m23_1.equals(tmp0_other_with_cast.m23_1))
|
|
3232
3232
|
return false;
|
|
3233
|
-
if (!this.
|
|
3233
|
+
if (!this.n23_1.equals(tmp0_other_with_cast.n23_1))
|
|
3234
3234
|
return false;
|
|
3235
|
-
if (!this.
|
|
3235
|
+
if (!this.o23_1.equals(tmp0_other_with_cast.o23_1))
|
|
3236
3236
|
return false;
|
|
3237
|
-
if (!(this.
|
|
3237
|
+
if (!(this.p23_1 === tmp0_other_with_cast.p23_1))
|
|
3238
3238
|
return false;
|
|
3239
|
-
if (!equals(this.
|
|
3239
|
+
if (!equals(this.q23_1, tmp0_other_with_cast.q23_1))
|
|
3240
3240
|
return false;
|
|
3241
3241
|
return true;
|
|
3242
3242
|
};
|
|
3243
3243
|
function flatMapResponses_0(_this__u8e3s4, $this, f) {
|
|
3244
3244
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3245
3245
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3246
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
3246
|
+
var tmp0_flatMap = _this__u8e3s4.i1g_1;
|
|
3247
3247
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3248
3248
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
3249
3249
|
// Inline function 'kotlin.collections.iterator' call
|
|
3250
|
-
var tmp0_iterator = tmp0_flatMap.
|
|
3251
|
-
while (tmp0_iterator.
|
|
3252
|
-
var element = tmp0_iterator.
|
|
3250
|
+
var tmp0_iterator = tmp0_flatMap.n2().v();
|
|
3251
|
+
while (tmp0_iterator.w()) {
|
|
3252
|
+
var element = tmp0_iterator.y();
|
|
3253
3253
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
3254
3254
|
// Inline function 'kotlin.collections.component1' call
|
|
3255
|
-
var path = element.
|
|
3255
|
+
var path = element.o2().q1g_1;
|
|
3256
3256
|
// Inline function 'kotlin.collections.component2' call
|
|
3257
|
-
var pathItem = element.
|
|
3257
|
+
var pathItem = element.p2();
|
|
3258
3258
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3259
3259
|
var tmp0_flatMap_0 = toOperationList_0(pathItem, $this);
|
|
3260
3260
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3261
3261
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
3262
3262
|
// Inline function 'kotlin.collections.iterator' call
|
|
3263
|
-
var tmp0_iterator_0 = tmp0_flatMap_0.
|
|
3264
|
-
while (tmp0_iterator_0.
|
|
3265
|
-
var element_0 = tmp0_iterator_0.
|
|
3263
|
+
var tmp0_iterator_0 = tmp0_flatMap_0.n2().v();
|
|
3264
|
+
while (tmp0_iterator_0.w()) {
|
|
3265
|
+
var element_0 = tmp0_iterator_0.y();
|
|
3266
3266
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>' call
|
|
3267
3267
|
// Inline function 'kotlin.collections.component1' call
|
|
3268
|
-
var method = element_0.
|
|
3268
|
+
var method = element_0.o2();
|
|
3269
3269
|
// Inline function 'kotlin.collections.component2' call
|
|
3270
|
-
var operation = element_0.
|
|
3270
|
+
var operation = element_0.p2();
|
|
3271
3271
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3272
|
-
var tmp0_safe_receiver = operation.
|
|
3272
|
+
var tmp0_safe_receiver = operation.q1h_1;
|
|
3273
3273
|
var tmp;
|
|
3274
3274
|
if (tmp0_safe_receiver == null) {
|
|
3275
3275
|
tmp = null;
|
|
3276
3276
|
} else {
|
|
3277
3277
|
// Inline function 'kotlin.collections.map' call
|
|
3278
3278
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3279
|
-
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp0_safe_receiver.
|
|
3279
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp0_safe_receiver.n());
|
|
3280
3280
|
// Inline function 'kotlin.collections.iterator' call
|
|
3281
|
-
var tmp0_iterator_1 = tmp0_safe_receiver.
|
|
3282
|
-
while (tmp0_iterator_1.
|
|
3283
|
-
var item = tmp0_iterator_1.
|
|
3281
|
+
var tmp0_iterator_1 = tmp0_safe_receiver.n2().v();
|
|
3282
|
+
while (tmp0_iterator_1.w()) {
|
|
3283
|
+
var item = tmp0_iterator_1.y();
|
|
3284
3284
|
var tmp$ret$9;
|
|
3285
3285
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
3286
3286
|
// Inline function 'kotlin.collections.component1' call
|
|
3287
|
-
var statusCode = item.
|
|
3287
|
+
var statusCode = item.o2().t1k_1;
|
|
3288
3288
|
// Inline function 'kotlin.collections.component2' call
|
|
3289
|
-
var response = item.
|
|
3289
|
+
var response = item.p2();
|
|
3290
3290
|
tmp$ret$9 = new FlattenResponse_0(path, pathItem, method, operation, statusCode, response);
|
|
3291
|
-
tmp0_mapTo.
|
|
3291
|
+
tmp0_mapTo.s(tmp$ret$9);
|
|
3292
3292
|
}
|
|
3293
3293
|
tmp = tmp0_mapTo;
|
|
3294
3294
|
}
|
|
@@ -3301,9 +3301,9 @@
|
|
|
3301
3301
|
}
|
|
3302
3302
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3303
3303
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
3304
|
-
var tmp0_iterator_2 = tmp0_flatMapTo.
|
|
3305
|
-
while (tmp0_iterator_2.
|
|
3306
|
-
var element_1 = tmp0_iterator_2.
|
|
3304
|
+
var tmp0_iterator_2 = tmp0_flatMapTo.v();
|
|
3305
|
+
while (tmp0_iterator_2.w()) {
|
|
3306
|
+
var element_1 = tmp0_iterator_2.y();
|
|
3307
3307
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
3308
3308
|
var list_1 = f(element_1);
|
|
3309
3309
|
addAll(tmp0_flatMapTo_1, list_1);
|
|
@@ -3312,21 +3312,21 @@
|
|
|
3312
3312
|
}
|
|
3313
3313
|
function OpenApiParser$parseParameters$lambda_0(this$0) {
|
|
3314
3314
|
return function (req) {
|
|
3315
|
-
var parameters = plus(resolveParameters_2(req.
|
|
3316
|
-
var tmp0_elvis_lhs = toName_1(req.
|
|
3317
|
-
var name = tmp0_elvis_lhs == null ? toName_2(req.
|
|
3315
|
+
var parameters = plus(resolveParameters_2(req.i23_1, this$0), resolveParameters_1(req.k23_1, this$0));
|
|
3316
|
+
var tmp0_elvis_lhs = toName_1(req.k23_1, this$0);
|
|
3317
|
+
var name = tmp0_elvis_lhs == null ? toName_2(req.h23_1, this$0) + req.j23_1.b9_1 : tmp0_elvis_lhs;
|
|
3318
3318
|
var tmp$ret$2;
|
|
3319
3319
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3320
3320
|
var tmp$ret$1;
|
|
3321
3321
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3322
3322
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
3323
|
-
var tmp0_iterator = parameters.
|
|
3324
|
-
while (tmp0_iterator.
|
|
3325
|
-
var element = tmp0_iterator.
|
|
3323
|
+
var tmp0_iterator = parameters.v();
|
|
3324
|
+
while (tmp0_iterator.w()) {
|
|
3325
|
+
var element = tmp0_iterator.y();
|
|
3326
3326
|
var tmp$ret$0;
|
|
3327
3327
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
3328
|
-
var tmp0_safe_receiver = element.
|
|
3329
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().
|
|
3328
|
+
var tmp0_safe_receiver = element.f1i_1;
|
|
3329
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().o22([name, 'Parameter', element.j1i_1]));
|
|
3330
3330
|
tmp$ret$0 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
3331
3331
|
var list = tmp$ret$0;
|
|
3332
3332
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -3338,15 +3338,15 @@
|
|
|
3338
3338
|
}
|
|
3339
3339
|
function OpenApiParser$parseRequestBody$lambda_0(this$0) {
|
|
3340
3340
|
return function (req) {
|
|
3341
|
-
var tmp0_elvis_lhs = toName_1(req.
|
|
3342
|
-
var name = tmp0_elvis_lhs == null ? toName_2(req.
|
|
3341
|
+
var tmp0_elvis_lhs = toName_1(req.k23_1, this$0);
|
|
3342
|
+
var name = tmp0_elvis_lhs == null ? toName_2(req.h23_1, this$0) + req.j23_1.b9_1 : tmp0_elvis_lhs;
|
|
3343
3343
|
var tmp$ret$6;
|
|
3344
3344
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3345
3345
|
var tmp$ret$0;
|
|
3346
3346
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3347
|
-
var tmp1_safe_receiver = req.
|
|
3347
|
+
var tmp1_safe_receiver = req.k23_1.p1h_1;
|
|
3348
3348
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_6(tmp1_safe_receiver, this$0);
|
|
3349
|
-
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
3349
|
+
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.p1i_1;
|
|
3350
3350
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
3351
3351
|
tmp$ret$0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
3352
3352
|
var tmp1_flatMap = tmp$ret$0;
|
|
@@ -3355,32 +3355,32 @@
|
|
|
3355
3355
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
3356
3356
|
var tmp$ret$1;
|
|
3357
3357
|
// Inline function 'kotlin.collections.iterator' call
|
|
3358
|
-
tmp$ret$1 = tmp1_flatMap.
|
|
3358
|
+
tmp$ret$1 = tmp1_flatMap.n2().v();
|
|
3359
3359
|
var tmp0_iterator = tmp$ret$1;
|
|
3360
|
-
while (tmp0_iterator.
|
|
3361
|
-
var element = tmp0_iterator.
|
|
3360
|
+
while (tmp0_iterator.w()) {
|
|
3361
|
+
var element = tmp0_iterator.y();
|
|
3362
3362
|
var tmp$ret$4;
|
|
3363
3363
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
3364
3364
|
var tmp$ret$2;
|
|
3365
3365
|
// Inline function 'kotlin.collections.component2' call
|
|
3366
|
-
tmp$ret$2 = element.
|
|
3366
|
+
tmp$ret$2 = element.p2();
|
|
3367
3367
|
var mediaObject = tmp$ret$2;
|
|
3368
|
-
var schema = mediaObject.
|
|
3368
|
+
var schema = mediaObject.x1i_1;
|
|
3369
3369
|
var tmp;
|
|
3370
3370
|
if (schema instanceof SchemaObject_0) {
|
|
3371
|
-
var tmp0_subject = schema.
|
|
3372
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.
|
|
3371
|
+
var tmp0_subject = schema.p1j_1;
|
|
3372
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.c9_1;
|
|
3373
3373
|
var tmp_0;
|
|
3374
3374
|
switch (tmp0) {
|
|
3375
3375
|
case -1:
|
|
3376
3376
|
case 5:
|
|
3377
|
-
tmp_0 = flatten_1(schema, this$0, Common_getInstance().
|
|
3377
|
+
tmp_0 = flatten_1(schema, this$0, Common_getInstance().o22([name, 'RequestBody']));
|
|
3378
3378
|
break;
|
|
3379
3379
|
case 4:
|
|
3380
3380
|
var tmp$ret$3;
|
|
3381
3381
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3382
|
-
var tmp1_safe_receiver_0 = schema.
|
|
3383
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
3382
|
+
var tmp1_safe_receiver_0 = schema.u1j_1;
|
|
3383
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().o22([name, 'RequestBody']));
|
|
3384
3384
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
3385
3385
|
tmp$ret$3 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
3386
3386
|
|
|
@@ -3413,16 +3413,16 @@
|
|
|
3413
3413
|
}
|
|
3414
3414
|
function OpenApiParser$parseResponseBody$lambda_0(this$0) {
|
|
3415
3415
|
return function (res) {
|
|
3416
|
-
var tmp0_elvis_lhs = toName_1(res.
|
|
3417
|
-
var name = tmp0_elvis_lhs == null ? toName_2(res.
|
|
3418
|
-
var response = res.
|
|
3416
|
+
var tmp0_elvis_lhs = toName_1(res.o23_1, this$0);
|
|
3417
|
+
var name = tmp0_elvis_lhs == null ? toName_2(res.l23_1, this$0) + res.n23_1.b9_1 : tmp0_elvis_lhs;
|
|
3418
|
+
var response = res.q23_1;
|
|
3419
3419
|
var tmp;
|
|
3420
3420
|
if (response instanceof ResponseObject_0) {
|
|
3421
3421
|
var tmp$ret$7;
|
|
3422
3422
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3423
3423
|
var tmp$ret$0;
|
|
3424
3424
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3425
|
-
var tmp0_orEmpty = response.
|
|
3425
|
+
var tmp0_orEmpty = response.y1k_1;
|
|
3426
3426
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
3427
3427
|
tmp$ret$0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
3428
3428
|
var tmp1_flatMap = tmp$ret$0;
|
|
@@ -3431,36 +3431,36 @@
|
|
|
3431
3431
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
3432
3432
|
var tmp$ret$1;
|
|
3433
3433
|
// Inline function 'kotlin.collections.iterator' call
|
|
3434
|
-
tmp$ret$1 = tmp1_flatMap.
|
|
3434
|
+
tmp$ret$1 = tmp1_flatMap.n2().v();
|
|
3435
3435
|
var tmp0_iterator = tmp$ret$1;
|
|
3436
|
-
while (tmp0_iterator.
|
|
3437
|
-
var element = tmp0_iterator.
|
|
3436
|
+
while (tmp0_iterator.w()) {
|
|
3437
|
+
var element = tmp0_iterator.y();
|
|
3438
3438
|
var tmp$ret$5;
|
|
3439
3439
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
3440
3440
|
var tmp$ret$2;
|
|
3441
3441
|
// Inline function 'kotlin.collections.component1' call
|
|
3442
|
-
tmp$ret$2 = element.
|
|
3442
|
+
tmp$ret$2 = element.o2().u1i_1;
|
|
3443
3443
|
var mediaType = tmp$ret$2;
|
|
3444
3444
|
var tmp$ret$3;
|
|
3445
3445
|
// Inline function 'kotlin.collections.component2' call
|
|
3446
|
-
tmp$ret$3 = element.
|
|
3446
|
+
tmp$ret$3 = element.p2();
|
|
3447
3447
|
var mediaObject = tmp$ret$3;
|
|
3448
|
-
var schema = mediaObject.
|
|
3448
|
+
var schema = mediaObject.x1i_1;
|
|
3449
3449
|
var tmp_0;
|
|
3450
3450
|
if (schema instanceof SchemaObject_0) {
|
|
3451
|
-
var tmp0_subject = schema.
|
|
3452
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.
|
|
3451
|
+
var tmp0_subject = schema.p1j_1;
|
|
3452
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.c9_1;
|
|
3453
3453
|
var tmp_1;
|
|
3454
3454
|
switch (tmp0) {
|
|
3455
3455
|
case -1:
|
|
3456
3456
|
case 5:
|
|
3457
|
-
tmp_1 = flatten_1(schema, this$0, Common_getInstance().
|
|
3457
|
+
tmp_1 = flatten_1(schema, this$0, Common_getInstance().o22([name, _StatusCode___get_value__impl__we50mu_0(res.p23_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
3458
3458
|
break;
|
|
3459
3459
|
case 4:
|
|
3460
3460
|
var tmp$ret$4;
|
|
3461
3461
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3462
|
-
var tmp1_safe_receiver = schema.
|
|
3463
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().
|
|
3462
|
+
var tmp1_safe_receiver = schema.u1j_1;
|
|
3463
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().o22([name, _StatusCode___get_value__impl__we50mu_0(res.p23_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
3464
3464
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
3465
3465
|
tmp$ret$4 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
3466
3466
|
|
|
@@ -3506,10 +3506,10 @@
|
|
|
3506
3506
|
tmp$ret$0 = it;
|
|
3507
3507
|
tmp$ret$1 = tmp$ret$0.substring(1, tmp0_substring);
|
|
3508
3508
|
|
|
3509
|
-
tmp = tmp_0.
|
|
3509
|
+
tmp = tmp_0.o22([tmp$ret$1]);
|
|
3510
3510
|
break;
|
|
3511
3511
|
case false:
|
|
3512
|
-
tmp = Common_getInstance().
|
|
3512
|
+
tmp = Common_getInstance().o22([it]);
|
|
3513
3513
|
break;
|
|
3514
3514
|
default:
|
|
3515
3515
|
noWhenBranchMatchedException();
|
|
@@ -3519,22 +3519,22 @@
|
|
|
3519
3519
|
};
|
|
3520
3520
|
}
|
|
3521
3521
|
function OpenApiParser_0(openApi) {
|
|
3522
|
-
|
|
3523
|
-
this.
|
|
3522
|
+
Companion_getInstance_2();
|
|
3523
|
+
this.g23_1 = openApi;
|
|
3524
3524
|
}
|
|
3525
3525
|
function toMap_1(_this__u8e3s4) {
|
|
3526
3526
|
var tmp;
|
|
3527
3527
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3528
|
-
tmp = _this__u8e3s4.
|
|
3528
|
+
tmp = _this__u8e3s4.f21(VOID, VOID, true);
|
|
3529
3529
|
} else {
|
|
3530
3530
|
if (_this__u8e3s4 instanceof Any) {
|
|
3531
|
-
tmp = _this__u8e3s4.
|
|
3531
|
+
tmp = _this__u8e3s4.a21(VOID, true);
|
|
3532
3532
|
} else {
|
|
3533
3533
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3534
|
-
tmp = _this__u8e3s4.
|
|
3534
|
+
tmp = _this__u8e3s4.h21(VOID, VOID, true);
|
|
3535
3535
|
} else {
|
|
3536
3536
|
if (_this__u8e3s4 instanceof Unit) {
|
|
3537
|
-
tmp = _this__u8e3s4.
|
|
3537
|
+
tmp = _this__u8e3s4.d21(VOID, true);
|
|
3538
3538
|
} else {
|
|
3539
3539
|
noWhenBranchMatchedException();
|
|
3540
3540
|
}
|
|
@@ -3545,7 +3545,7 @@
|
|
|
3545
3545
|
}
|
|
3546
3546
|
function isPrimitive_0(_this__u8e3s4) {
|
|
3547
3547
|
var tmp;
|
|
3548
|
-
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.
|
|
3548
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.c9_1) {
|
|
3549
3549
|
case 0:
|
|
3550
3550
|
tmp = true;
|
|
3551
3551
|
break;
|
|
@@ -3576,16 +3576,16 @@
|
|
|
3576
3576
|
function toIterable_0(_this__u8e3s4) {
|
|
3577
3577
|
var tmp;
|
|
3578
3578
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3579
|
-
tmp = _this__u8e3s4.
|
|
3579
|
+
tmp = _this__u8e3s4.f21(VOID, true);
|
|
3580
3580
|
} else {
|
|
3581
3581
|
if (_this__u8e3s4 instanceof Any) {
|
|
3582
|
-
tmp = _this__u8e3s4.
|
|
3582
|
+
tmp = _this__u8e3s4.a21(true);
|
|
3583
3583
|
} else {
|
|
3584
3584
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3585
|
-
tmp = _this__u8e3s4.
|
|
3585
|
+
tmp = _this__u8e3s4.h21(VOID, true);
|
|
3586
3586
|
} else {
|
|
3587
3587
|
if (_this__u8e3s4 instanceof Unit) {
|
|
3588
|
-
tmp = _this__u8e3s4.
|
|
3588
|
+
tmp = _this__u8e3s4.d21(true);
|
|
3589
3589
|
} else {
|
|
3590
3590
|
noWhenBranchMatchedException();
|
|
3591
3591
|
}
|
|
@@ -3600,15 +3600,15 @@
|
|
|
3600
3600
|
var tmp0_mapNotNullTo = ArrayList_init_$Create$();
|
|
3601
3601
|
// Inline function 'kotlin.collections.forEach' call
|
|
3602
3602
|
// Inline function 'kotlin.collections.iterator' call
|
|
3603
|
-
var tmp0_iterator = _this__u8e3s4.
|
|
3604
|
-
while (tmp0_iterator.
|
|
3605
|
-
var element = tmp0_iterator.
|
|
3603
|
+
var tmp0_iterator = _this__u8e3s4.n2().v();
|
|
3604
|
+
while (tmp0_iterator.w()) {
|
|
3605
|
+
var element = tmp0_iterator.y();
|
|
3606
3606
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3607
3607
|
// Inline function 'community.flock.wirespec.openapi.v3.filterNotNullValues.<anonymous>' call
|
|
3608
3608
|
// Inline function 'kotlin.collections.component1' call
|
|
3609
|
-
var key = element.
|
|
3609
|
+
var key = element.o2();
|
|
3610
3610
|
// Inline function 'kotlin.collections.component2' call
|
|
3611
|
-
var value = element.
|
|
3611
|
+
var value = element.p2();
|
|
3612
3612
|
var tmp;
|
|
3613
3613
|
if (value == null) {
|
|
3614
3614
|
tmp = null;
|
|
@@ -3624,15 +3624,15 @@
|
|
|
3624
3624
|
else {
|
|
3625
3625
|
// Inline function 'kotlin.let' call
|
|
3626
3626
|
// Inline function 'kotlin.contracts.contract' call
|
|
3627
|
-
tmp0_mapNotNullTo.
|
|
3627
|
+
tmp0_mapNotNullTo.s(tmp0_safe_receiver);
|
|
3628
3628
|
}
|
|
3629
3629
|
}
|
|
3630
3630
|
return toMap(tmp0_mapNotNullTo);
|
|
3631
3631
|
}
|
|
3632
3632
|
//region block: exports
|
|
3633
3633
|
_.$_$ = _.$_$ || {};
|
|
3634
|
-
_.$_$.a =
|
|
3635
|
-
_.$_$.b =
|
|
3634
|
+
_.$_$.a = Companion_getInstance_1;
|
|
3635
|
+
_.$_$.b = Companion_getInstance_2;
|
|
3636
3636
|
//endregion
|
|
3637
3637
|
return _;
|
|
3638
3638
|
}));
|