@flock/wirespec 0.8.35 → 0.8.36
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/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js +354 -354
- package/arrow-arrow-atomic.js +15 -15
- package/arrow-arrow-continuations.js +3 -3
- package/arrow-arrow-core.js +80 -80
- package/kotlin-kotlin-stdlib-js-ir.js +1514 -1371
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin-openapi-bindings.js +5242 -5241
- package/kotlin-openapi-bindings.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1908 -1908
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1624 -1624
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-cli.js +192 -175
- package/wirespec-src-compiler-cli.js.map +1 -1
- package/wirespec-src-compiler-core.js +1549 -1469
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +271 -271
- package/wirespec-src-openapi.js +700 -593
- package/wirespec-src-openapi.js.map +1 -1
package/wirespec-src-openapi.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (root, factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './wirespec-src-compiler-core.js', './kotlin-kotlin-stdlib-js-ir.js', './kotlin-openapi-bindings.js'], factory);
|
|
3
|
+
define(['exports', './wirespec-src-compiler-core.js', './kotlin-kotlin-stdlib-js-ir.js', './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-js-ir.js'), require('./kotlin-openapi-bindings.js'));
|
|
5
|
+
factory(module.exports, require('./wirespec-src-compiler-core.js'), require('./kotlin-kotlin-stdlib-js-ir.js'), require('./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-openapi'. Its dependency 'wirespec-src-compiler-core' was not found. Please, check whether 'wirespec-src-compiler-core' is loaded prior to 'wirespec-src-openapi'.");
|
|
@@ -10,116 +10,120 @@
|
|
|
10
10
|
if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') {
|
|
11
11
|
throw new Error("Error loading module 'wirespec-src-openapi'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to 'wirespec-src-openapi'.");
|
|
12
12
|
}
|
|
13
|
+
if (typeof this['kotlinx-serialization-kotlinx-serialization-json-js-ir'] === 'undefined') {
|
|
14
|
+
throw new Error("Error loading module 'wirespec-src-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-openapi'.");
|
|
15
|
+
}
|
|
13
16
|
if (typeof this['kotlin-openapi-bindings'] === 'undefined') {
|
|
14
17
|
throw new Error("Error loading module 'wirespec-src-openapi'. Its dependency 'kotlin-openapi-bindings' was not found. Please, check whether 'kotlin-openapi-bindings' is loaded prior to 'wirespec-src-openapi'.");
|
|
15
18
|
}
|
|
16
|
-
root['wirespec-src-openapi'] = factory(typeof this['wirespec-src-openapi'] === 'undefined' ? {} : this['wirespec-src-openapi'], this['wirespec-src-compiler-core'], this['kotlin-kotlin-stdlib-js-ir'], this['kotlin-openapi-bindings']);
|
|
19
|
+
root['wirespec-src-openapi'] = factory(typeof this['wirespec-src-openapi'] === 'undefined' ? {} : this['wirespec-src-openapi'], this['wirespec-src-compiler-core'], this['kotlin-kotlin-stdlib-js-ir'], this['kotlinx-serialization-kotlinx-serialization-json-js-ir'], this['kotlin-openapi-bindings']);
|
|
17
20
|
}
|
|
18
|
-
}(this, function (_, kotlin_community_flock_wirespec_compiler_core, kotlin_kotlin, kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings) {
|
|
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) {
|
|
19
22
|
'use strict';
|
|
20
23
|
//region block: imports
|
|
21
24
|
var imul = Math.imul;
|
|
22
25
|
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.g1;
|
|
23
26
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
|
|
24
|
-
var split = kotlin_kotlin.$_$.
|
|
27
|
+
var split = kotlin_kotlin.$_$.v9;
|
|
25
28
|
var addAll = kotlin_kotlin.$_$.i4;
|
|
26
|
-
var VOID = kotlin_kotlin.$_$.
|
|
27
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
28
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
29
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
30
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
29
|
+
var VOID = kotlin_kotlin.$_$.bc;
|
|
30
|
+
var joinToString = kotlin_kotlin.$_$.p5;
|
|
31
|
+
var protoOf = kotlin_kotlin.$_$.k8;
|
|
32
|
+
var objectMeta = kotlin_kotlin.$_$.j8;
|
|
33
|
+
var setMetadataFor = kotlin_kotlin.$_$.l8;
|
|
34
|
+
var Unit_getInstance = kotlin_kotlin.$_$.r3;
|
|
35
|
+
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.h;
|
|
36
|
+
var OpenAPI = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c;
|
|
37
|
+
var plus = kotlin_kotlin.$_$.e6;
|
|
38
|
+
var ParameterLocation_QUERY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b1;
|
|
34
39
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.l4;
|
|
35
40
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.f;
|
|
36
|
-
var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
37
|
-
var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
38
|
-
var
|
|
39
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
40
|
-
var NotImplementedError = kotlin_kotlin.$_$.
|
|
41
|
-
var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
42
|
-
var ReferenceObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
41
|
+
var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.z;
|
|
42
|
+
var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y;
|
|
43
|
+
var listOf = kotlin_kotlin.$_$.w5;
|
|
44
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.wb;
|
|
45
|
+
var NotImplementedError = kotlin_kotlin.$_$.xa;
|
|
46
|
+
var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k;
|
|
47
|
+
var ReferenceObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h;
|
|
43
48
|
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.h;
|
|
44
49
|
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.j;
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
50
|
+
var emptyMap = kotlin_kotlin.$_$.d5;
|
|
51
|
+
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t1;
|
|
52
|
+
var emptyList = kotlin_kotlin.$_$.c5;
|
|
48
53
|
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.k;
|
|
49
54
|
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.n;
|
|
50
55
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
51
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
56
|
+
var THROW_CCE = kotlin_kotlin.$_$.bb;
|
|
52
57
|
var Map = kotlin_kotlin.$_$.d4;
|
|
53
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
54
|
-
var ParameterObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
55
|
-
var Ref = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
56
|
-
var toString = kotlin_kotlin.$_$.
|
|
58
|
+
var isInterface = kotlin_kotlin.$_$.z7;
|
|
59
|
+
var ParameterObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e;
|
|
60
|
+
var Ref = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i;
|
|
61
|
+
var toString = kotlin_kotlin.$_$.p8;
|
|
57
62
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.f1;
|
|
58
63
|
var BooleanObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a;
|
|
59
|
-
var ResponseObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
64
|
+
var ResponseObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j;
|
|
60
65
|
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.w;
|
|
61
66
|
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.x;
|
|
62
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
63
|
-
var toSet = kotlin_kotlin.$_$.
|
|
67
|
+
var ensureNotNull = kotlin_kotlin.$_$.qb;
|
|
68
|
+
var toSet = kotlin_kotlin.$_$.r6;
|
|
64
69
|
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.o;
|
|
65
70
|
var HashSet_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
66
71
|
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.s;
|
|
67
72
|
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.t;
|
|
68
73
|
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.r;
|
|
69
74
|
var get_entries = kotlin_community_flock_wirespec_compiler_core.$_$.i;
|
|
70
|
-
var mapCapacity = kotlin_kotlin.$_$.
|
|
71
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
75
|
+
var mapCapacity = kotlin_kotlin.$_$.y5;
|
|
76
|
+
var coerceAtLeast = kotlin_kotlin.$_$.q8;
|
|
72
77
|
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.o;
|
|
73
|
-
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
78
|
+
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.q1;
|
|
74
79
|
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.f1;
|
|
75
80
|
var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.d1;
|
|
76
81
|
var Type_Number_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.e1;
|
|
77
82
|
var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.c1;
|
|
78
83
|
var Identifier = kotlin_community_flock_wirespec_compiler_core.$_$.q;
|
|
79
84
|
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.v;
|
|
80
|
-
var Type_ARRAY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
81
|
-
var equals = kotlin_kotlin.$_$.
|
|
82
|
-
var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
83
|
-
var drop = kotlin_kotlin.$_$.
|
|
84
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
85
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
85
|
+
var Type_ARRAY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c1;
|
|
86
|
+
var equals = kotlin_kotlin.$_$.j7;
|
|
87
|
+
var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o1;
|
|
88
|
+
var drop = kotlin_kotlin.$_$.b5;
|
|
89
|
+
var charSequenceLength = kotlin_kotlin.$_$.f7;
|
|
90
|
+
var charSequenceGet = kotlin_kotlin.$_$.e7;
|
|
86
91
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.j1;
|
|
87
92
|
var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.l;
|
|
88
93
|
var Param = kotlin_community_flock_wirespec_compiler_core.$_$.m;
|
|
89
|
-
var
|
|
90
|
-
var
|
|
91
|
-
var
|
|
92
|
-
var
|
|
93
|
-
var
|
|
94
|
-
var
|
|
95
|
-
var
|
|
94
|
+
var isBlank = kotlin_kotlin.$_$.m9;
|
|
95
|
+
var Path = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
|
|
96
|
+
var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.n1;
|
|
97
|
+
var getStringHashCode = kotlin_kotlin.$_$.o7;
|
|
98
|
+
var classMeta = kotlin_kotlin.$_$.h7;
|
|
99
|
+
var StatusCode = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l;
|
|
100
|
+
var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s1;
|
|
101
|
+
var hashCode = kotlin_kotlin.$_$.p7;
|
|
96
102
|
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.u;
|
|
97
|
-
var to = kotlin_kotlin.$_$.
|
|
98
|
-
var
|
|
99
|
-
var
|
|
100
|
-
var
|
|
101
|
-
var
|
|
102
|
-
var
|
|
103
|
-
var
|
|
104
|
-
var
|
|
105
|
-
var
|
|
106
|
-
var
|
|
107
|
-
var
|
|
108
|
-
var
|
|
109
|
-
var
|
|
110
|
-
var
|
|
111
|
-
var
|
|
112
|
-
var
|
|
113
|
-
var
|
|
114
|
-
var
|
|
115
|
-
var
|
|
116
|
-
var
|
|
117
|
-
var
|
|
118
|
-
var
|
|
119
|
-
var
|
|
120
|
-
var
|
|
121
|
-
var StatusCode_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v;
|
|
122
|
-
var StatusCode__hashCode_impl_fevhvx_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w1;
|
|
103
|
+
var to = kotlin_kotlin.$_$.ac;
|
|
104
|
+
var toMap = kotlin_kotlin.$_$.q6;
|
|
105
|
+
var OpenAPI_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.p;
|
|
106
|
+
var ParameterLocation_QUERY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k1;
|
|
107
|
+
var ParameterLocation_HEADER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j1;
|
|
108
|
+
var ParameterLocation_COOKIE_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i1;
|
|
109
|
+
var _MediaType___get_value__impl__wy58mp = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.u1;
|
|
110
|
+
var SchemaObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w;
|
|
111
|
+
var ReferenceObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s;
|
|
112
|
+
var _StatusCode___get_value__impl__we50mu_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.z1;
|
|
113
|
+
var _Path___get_value__impl__thmflc_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w1;
|
|
114
|
+
var ParameterObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.q;
|
|
115
|
+
var Ref_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t;
|
|
116
|
+
var HeaderObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o;
|
|
117
|
+
var RequestBodyObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.u;
|
|
118
|
+
var ResponseObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v;
|
|
119
|
+
var BooleanObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.n;
|
|
120
|
+
var _Ref___get_value__impl__kxavfe_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.x1;
|
|
121
|
+
var getOrNull = kotlin_kotlin.$_$.k5;
|
|
122
|
+
var Type_ARRAY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l1;
|
|
123
|
+
var Path_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r;
|
|
124
|
+
var Path__hashCode_impl_go73kd_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v1;
|
|
125
|
+
var StatusCode_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.x;
|
|
126
|
+
var StatusCode__hashCode_impl_fevhvx_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y1;
|
|
123
127
|
//endregion
|
|
124
128
|
//region block: pre-declaration
|
|
125
129
|
setMetadataFor(Common, 'Common', objectMeta);
|
|
@@ -133,12 +137,12 @@
|
|
|
133
137
|
setMetadataFor(OpenApiParser_0, 'OpenApiParser', classMeta);
|
|
134
138
|
//endregion
|
|
135
139
|
function Common$className$lambda(it) {
|
|
136
|
-
return Companion_getInstance().
|
|
140
|
+
return Companion_getInstance().g22(it);
|
|
137
141
|
}
|
|
138
142
|
function Common() {
|
|
139
143
|
Common_instance = this;
|
|
140
144
|
}
|
|
141
|
-
protoOf(Common).
|
|
145
|
+
protoOf(Common).b27 = function (arg) {
|
|
142
146
|
// Inline function 'kotlin.collections.flatMap' call
|
|
143
147
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
144
148
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -160,15 +164,26 @@
|
|
|
160
164
|
new Common();
|
|
161
165
|
return Common_instance;
|
|
162
166
|
}
|
|
167
|
+
function OpenApiParser$Companion$parse$lambda($ignoreUnknown) {
|
|
168
|
+
return function ($this$Json) {
|
|
169
|
+
$this$Json.a12_1 = true;
|
|
170
|
+
$this$Json.x11_1 = $ignoreUnknown;
|
|
171
|
+
return Unit_getInstance();
|
|
172
|
+
};
|
|
173
|
+
}
|
|
163
174
|
function Companion() {
|
|
164
175
|
Companion_instance = this;
|
|
165
176
|
}
|
|
166
|
-
protoOf(Companion).
|
|
177
|
+
protoOf(Companion).c27 = function (json, ignoreUnknown) {
|
|
167
178
|
// Inline function 'kotlin.let' call
|
|
168
|
-
var tmp0_let =
|
|
179
|
+
var tmp0_let = (new OpenAPI(Json(VOID, OpenApiParser$Companion$parse$lambda(ignoreUnknown)))).n1d(json);
|
|
169
180
|
// Inline function 'kotlin.contracts.contract' call
|
|
170
181
|
// Inline function 'community.flock.wirespec.openapi.v2.Companion.parse.<anonymous>' call
|
|
171
|
-
return (new OpenApiParser(tmp0_let)).
|
|
182
|
+
return (new OpenApiParser(tmp0_let)).e27();
|
|
183
|
+
};
|
|
184
|
+
protoOf(Companion).f27 = function (json, ignoreUnknown, $super) {
|
|
185
|
+
ignoreUnknown = ignoreUnknown === VOID ? false : ignoreUnknown;
|
|
186
|
+
return $super === VOID ? this.c27(json, ignoreUnknown) : $super.c27.call(this, json, ignoreUnknown);
|
|
172
187
|
};
|
|
173
188
|
var Companion_instance;
|
|
174
189
|
function Companion_getInstance_0() {
|
|
@@ -178,7 +193,7 @@
|
|
|
178
193
|
}
|
|
179
194
|
function parseEndpoints($this) {
|
|
180
195
|
// Inline function 'kotlin.collections.flatMap' call
|
|
181
|
-
var tmp0_flatMap = $this.
|
|
196
|
+
var tmp0_flatMap = $this.d27_1.z1d_1;
|
|
182
197
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
183
198
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
184
199
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -187,7 +202,7 @@
|
|
|
187
202
|
var element = tmp0_iterator.e();
|
|
188
203
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>' call
|
|
189
204
|
// Inline function 'kotlin.collections.component1' call
|
|
190
|
-
var path = element.v().
|
|
205
|
+
var path = element.v().l1e_1;
|
|
191
206
|
// Inline function 'kotlin.collections.component2' call
|
|
192
207
|
var pathItem = element.w();
|
|
193
208
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -205,7 +220,8 @@
|
|
|
205
220
|
var operation = element_0.w();
|
|
206
221
|
var parameters = plus(resolveParameters_0(pathItem, $this), resolveParameters(operation, $this));
|
|
207
222
|
var segments = toSegments(path, $this, parameters);
|
|
208
|
-
var
|
|
223
|
+
var tmp0_elvis_lhs = toName(operation, $this);
|
|
224
|
+
var name = tmp0_elvis_lhs == null ? toName_0(path, $this) + method.y4_1 : tmp0_elvis_lhs;
|
|
209
225
|
// Inline function 'kotlin.collections.map' call
|
|
210
226
|
// Inline function 'kotlin.collections.filter' call
|
|
211
227
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -214,7 +230,7 @@
|
|
|
214
230
|
while (tmp0_iterator_1.d()) {
|
|
215
231
|
var element_1 = tmp0_iterator_1.e();
|
|
216
232
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
217
|
-
if (element_1.
|
|
233
|
+
if (element_1.y1f_1.equals(ParameterLocation_QUERY_getInstance())) {
|
|
218
234
|
tmp0_filterTo.a(element_1);
|
|
219
235
|
}
|
|
220
236
|
}
|
|
@@ -237,7 +253,7 @@
|
|
|
237
253
|
while (tmp0_iterator_3.d()) {
|
|
238
254
|
var element_2 = tmp0_iterator_3.e();
|
|
239
255
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
240
|
-
if (element_2.
|
|
256
|
+
if (element_2.y1f_1.equals(ParameterLocation_HEADER_getInstance())) {
|
|
241
257
|
tmp0_filterTo_0.a(element_2);
|
|
242
258
|
}
|
|
243
259
|
}
|
|
@@ -261,7 +277,7 @@
|
|
|
261
277
|
while (tmp0_iterator_5.d()) {
|
|
262
278
|
var element_3 = tmp0_iterator_5.e();
|
|
263
279
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
264
|
-
if (element_3.
|
|
280
|
+
if (element_3.y1f_1.equals(ParameterLocation_BODY_getInstance())) {
|
|
265
281
|
tmp0_filterTo_1.a(element_3);
|
|
266
282
|
}
|
|
267
283
|
}
|
|
@@ -272,24 +288,23 @@
|
|
|
272
288
|
var element_4 = tmp0_iterator_6.e();
|
|
273
289
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
274
290
|
// Inline function 'kotlin.collections.map' call
|
|
275
|
-
|
|
276
|
-
var
|
|
277
|
-
var
|
|
278
|
-
var tmp1_map = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
291
|
+
var tmp0_elvis_lhs_0 = $this.d27_1.x1d_1;
|
|
292
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.l1f_1 : tmp0_elvis_lhs_0;
|
|
293
|
+
var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
279
294
|
// Inline function 'kotlin.collections.mapTo' call
|
|
280
|
-
var tmp0_mapTo_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(
|
|
281
|
-
var tmp0_iterator_7 =
|
|
295
|
+
var tmp0_mapTo_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
296
|
+
var tmp0_iterator_7 = tmp0_map.c();
|
|
282
297
|
while (tmp0_iterator_7.d()) {
|
|
283
298
|
var item_1 = tmp0_iterator_7.e();
|
|
284
|
-
var tmp$ret$
|
|
299
|
+
var tmp$ret$21;
|
|
285
300
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
286
|
-
var schema = element_4.
|
|
301
|
+
var schema = element_4.b1g_1;
|
|
287
302
|
var tmp;
|
|
288
303
|
if (schema instanceof ReferenceObject) {
|
|
289
304
|
tmp = toReference(schema, $this);
|
|
290
305
|
} else {
|
|
291
306
|
if (schema instanceof SchemaObject) {
|
|
292
|
-
tmp = toReference_0(schema, $this, Common_getInstance().
|
|
307
|
+
tmp = toReference_0(schema, $this, Common_getInstance().b27([name, 'RequestBody']));
|
|
293
308
|
} else {
|
|
294
309
|
if (schema == null) {
|
|
295
310
|
throw new NotImplementedError();
|
|
@@ -299,9 +314,9 @@
|
|
|
299
314
|
}
|
|
300
315
|
}
|
|
301
316
|
var tmp_0 = tmp;
|
|
302
|
-
var tmp0_elvis_lhs_1 = element_4.
|
|
303
|
-
tmp$ret$
|
|
304
|
-
tmp0_mapTo_1.a(tmp$ret$
|
|
317
|
+
var tmp0_elvis_lhs_1 = element_4.a1g_1;
|
|
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.a(tmp$ret$21);
|
|
305
320
|
}
|
|
306
321
|
var list = tmp0_mapTo_1;
|
|
307
322
|
addAll(tmp0_flatMapTo_1, list);
|
|
@@ -316,7 +331,7 @@
|
|
|
316
331
|
var requests = tmp_1;
|
|
317
332
|
// Inline function 'kotlin.collections.flatMap' call
|
|
318
333
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
319
|
-
var tmp0_elvis_lhs_2 = operation.
|
|
334
|
+
var tmp0_elvis_lhs_2 = operation.o1f_1;
|
|
320
335
|
var tmp5_flatMap = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
321
336
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
322
337
|
var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
|
|
@@ -326,24 +341,23 @@
|
|
|
326
341
|
var element_5 = tmp0_iterator_8.e();
|
|
327
342
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
328
343
|
// Inline function 'kotlin.collections.component1' call
|
|
329
|
-
var status = element_5.v().
|
|
344
|
+
var status = element_5.v().k1i_1;
|
|
330
345
|
// Inline function 'kotlin.collections.component2' call
|
|
331
346
|
var res = element_5.w();
|
|
332
347
|
// Inline function 'kotlin.collections.map' call
|
|
333
|
-
|
|
334
|
-
var
|
|
335
|
-
var
|
|
336
|
-
var tmp1_map_0 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
348
|
+
var tmp0_elvis_lhs_3 = $this.d27_1.y1d_1;
|
|
349
|
+
var tmp1_elvis_lhs_0 = tmp0_elvis_lhs_3 == null ? operation.m1f_1 : tmp0_elvis_lhs_3;
|
|
350
|
+
var tmp0_map_0 = tmp1_elvis_lhs_0 == null ? listOf('application/json') : tmp1_elvis_lhs_0;
|
|
337
351
|
// Inline function 'kotlin.collections.mapTo' call
|
|
338
|
-
var tmp0_mapTo_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(
|
|
339
|
-
var tmp0_iterator_9 =
|
|
352
|
+
var tmp0_mapTo_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map_0, 10));
|
|
353
|
+
var tmp0_iterator_9 = tmp0_map_0.c();
|
|
340
354
|
while (tmp0_iterator_9.d()) {
|
|
341
355
|
var item_2 = tmp0_iterator_9.e();
|
|
342
|
-
var tmp$ret$
|
|
356
|
+
var tmp$ret$35;
|
|
343
357
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
344
358
|
var tmp_2 = _StatusCode___get_value__impl__we50mu(status);
|
|
345
359
|
var tmp_3 = emptyList();
|
|
346
|
-
var tmp0_safe_receiver = resolve_1(res, $this).
|
|
360
|
+
var tmp0_safe_receiver = resolve_1(res, $this).p1i_1;
|
|
347
361
|
var tmp_4;
|
|
348
362
|
if (tmp0_safe_receiver == null) {
|
|
349
363
|
tmp_4 = null;
|
|
@@ -356,15 +370,15 @@
|
|
|
356
370
|
tmp_5 = toReference(tmp0_safe_receiver, $this);
|
|
357
371
|
} else {
|
|
358
372
|
if (tmp0_safe_receiver instanceof SchemaObject) {
|
|
359
|
-
tmp_5 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().
|
|
373
|
+
tmp_5 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().b27([name, _StatusCode___get_value__impl__we50mu(status), item_2, 'ResponseBody']));
|
|
360
374
|
} else {
|
|
361
375
|
noWhenBranchMatchedException();
|
|
362
376
|
}
|
|
363
377
|
}
|
|
364
378
|
tmp_4 = new Content(item_2, tmp_5, false);
|
|
365
379
|
}
|
|
366
|
-
tmp$ret$
|
|
367
|
-
tmp0_mapTo_2.a(tmp$ret$
|
|
380
|
+
tmp$ret$35 = new Response(tmp_2, tmp_3, tmp_4);
|
|
381
|
+
tmp0_mapTo_2.a(tmp$ret$35);
|
|
368
382
|
}
|
|
369
383
|
var list_0 = tmp0_mapTo_2;
|
|
370
384
|
addAll(tmp0_flatMapTo_2, list_0);
|
|
@@ -378,18 +392,21 @@
|
|
|
378
392
|
}
|
|
379
393
|
return tmp0_flatMapTo;
|
|
380
394
|
}
|
|
395
|
+
function parseParameters($this) {
|
|
396
|
+
return flatMapRequests($this.d27_1, $this, OpenApiParser$parseParameters$lambda($this));
|
|
397
|
+
}
|
|
381
398
|
function parseRequestBody($this) {
|
|
382
|
-
return flatMapRequests($this.
|
|
399
|
+
return flatMapRequests($this.d27_1, $this, OpenApiParser$parseRequestBody$lambda($this));
|
|
383
400
|
}
|
|
384
401
|
function parseResponseBody($this) {
|
|
385
|
-
return flatMapResponses($this.
|
|
402
|
+
return flatMapResponses($this.d27_1, $this, OpenApiParser$parseResponseBody$lambda($this));
|
|
386
403
|
}
|
|
387
404
|
function parseDefinitions($this) {
|
|
388
405
|
// Inline function 'kotlin.collections.flatMap' call
|
|
389
406
|
// Inline function 'kotlin.collections.filter' call
|
|
390
407
|
// Inline function 'arrow.core.filterIsInstance' call
|
|
391
408
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
392
|
-
var tmp0_elvis_lhs = $this.
|
|
409
|
+
var tmp0_elvis_lhs = $this.d27_1.a1e_1;
|
|
393
410
|
var tmp1_filterIsInstance = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
394
411
|
// Inline function 'kotlin.collections.filterValues' call
|
|
395
412
|
var result = LinkedHashMap_init_$Create$();
|
|
@@ -399,7 +416,7 @@
|
|
|
399
416
|
var entry = tmp0_iterator.e();
|
|
400
417
|
// Inline function 'arrow.core.filterIsInstance.<anonymous>' call
|
|
401
418
|
if (entry.w() instanceof SchemaObject) {
|
|
402
|
-
result.
|
|
419
|
+
result.m3(entry.v(), entry.w());
|
|
403
420
|
}
|
|
404
421
|
}
|
|
405
422
|
var tmp = result;
|
|
@@ -411,8 +428,8 @@
|
|
|
411
428
|
while (tmp0_iterator_0.d()) {
|
|
412
429
|
var element = tmp0_iterator_0.e();
|
|
413
430
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
414
|
-
if (element.w().
|
|
415
|
-
tmp0_filterTo.
|
|
431
|
+
if (element.w().f1i_1 == null) {
|
|
432
|
+
tmp0_filterTo.m3(element.v(), element.w());
|
|
416
433
|
}
|
|
417
434
|
}
|
|
418
435
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -422,7 +439,7 @@
|
|
|
422
439
|
while (tmp0_iterator_1.d()) {
|
|
423
440
|
var element_0 = tmp0_iterator_1.e();
|
|
424
441
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
425
|
-
var list = flatten(element_0.w(), $this, Common_getInstance().
|
|
442
|
+
var list = flatten(element_0.w(), $this, Common_getInstance().b27([element_0.v()]));
|
|
426
443
|
addAll(tmp0_flatMapTo, list);
|
|
427
444
|
}
|
|
428
445
|
return tmp0_flatMapTo;
|
|
@@ -430,7 +447,7 @@
|
|
|
430
447
|
function resolveParameters(_this__u8e3s4, $this) {
|
|
431
448
|
// Inline function 'kotlin.collections.map' call
|
|
432
449
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
433
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
450
|
+
var tmp0_elvis_lhs = _this__u8e3s4.n1f_1;
|
|
434
451
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
435
452
|
// Inline function 'kotlin.collections.mapTo' call
|
|
436
453
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -457,7 +474,7 @@
|
|
|
457
474
|
function resolveParameters_0(_this__u8e3s4, $this) {
|
|
458
475
|
// Inline function 'kotlin.collections.map' call
|
|
459
476
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
460
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
477
|
+
var tmp0_elvis_lhs = _this__u8e3s4.b1f_1;
|
|
461
478
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
462
479
|
// Inline function 'kotlin.collections.mapTo' call
|
|
463
480
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -482,11 +499,11 @@
|
|
|
482
499
|
return tmp0_mapTo;
|
|
483
500
|
}
|
|
484
501
|
function resolveParameterObject(_this__u8e3s4, $this) {
|
|
485
|
-
var tmp0_safe_receiver = $this.
|
|
486
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
502
|
+
var tmp0_safe_receiver = $this.d27_1.b1e_1;
|
|
503
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o2(getReference(_this__u8e3s4, $this));
|
|
487
504
|
var tmp;
|
|
488
505
|
if (tmp1_elvis_lhs == null) {
|
|
489
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
506
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.y1g_1);
|
|
490
507
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
491
508
|
} else {
|
|
492
509
|
tmp = tmp1_elvis_lhs;
|
|
@@ -494,11 +511,11 @@
|
|
|
494
511
|
return tmp;
|
|
495
512
|
}
|
|
496
513
|
function resolveResponseObject(_this__u8e3s4, $this) {
|
|
497
|
-
var tmp0_safe_receiver = $this.
|
|
498
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
514
|
+
var tmp0_safe_receiver = $this.d27_1.c1e_1;
|
|
515
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o2(getReference(_this__u8e3s4, $this));
|
|
499
516
|
var tmp;
|
|
500
517
|
if (tmp1_elvis_lhs == null) {
|
|
501
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
518
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.y1g_1);
|
|
502
519
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
503
520
|
} else {
|
|
504
521
|
tmp = tmp1_elvis_lhs;
|
|
@@ -506,11 +523,11 @@
|
|
|
506
523
|
return tmp;
|
|
507
524
|
}
|
|
508
525
|
function resolveSchemaObject(_this__u8e3s4, $this) {
|
|
509
|
-
var tmp0_safe_receiver = $this.
|
|
510
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
526
|
+
var tmp0_safe_receiver = $this.d27_1.a1e_1;
|
|
527
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o2(getReference(_this__u8e3s4, $this));
|
|
511
528
|
var tmp;
|
|
512
529
|
if (tmp1_elvis_lhs == null) {
|
|
513
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
530
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.y1g_1);
|
|
514
531
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
515
532
|
} else {
|
|
516
533
|
tmp = tmp1_elvis_lhs;
|
|
@@ -575,12 +592,12 @@
|
|
|
575
592
|
}
|
|
576
593
|
function flatten(_this__u8e3s4, $this, name) {
|
|
577
594
|
var tmp;
|
|
578
|
-
if (!(_this__u8e3s4.
|
|
595
|
+
if (!(_this__u8e3s4.f1i_1 == null)) {
|
|
579
596
|
var tmp_0;
|
|
580
|
-
if (_this__u8e3s4.
|
|
597
|
+
if (_this__u8e3s4.f1i_1 instanceof BooleanObject) {
|
|
581
598
|
tmp_0 = emptyList();
|
|
582
599
|
} else {
|
|
583
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
600
|
+
var tmp1_safe_receiver = _this__u8e3s4.f1i_1;
|
|
584
601
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_0(tmp1_safe_receiver, $this);
|
|
585
602
|
var tmp_1;
|
|
586
603
|
if (tmp2_safe_receiver == null) {
|
|
@@ -590,7 +607,7 @@
|
|
|
590
607
|
// Inline function 'kotlin.contracts.contract' call
|
|
591
608
|
var tmp_2;
|
|
592
609
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
593
|
-
if (!(tmp2_safe_receiver.
|
|
610
|
+
if (!(tmp2_safe_receiver.e1i_1 == null)) {
|
|
594
611
|
tmp_2 = tmp2_safe_receiver;
|
|
595
612
|
} else {
|
|
596
613
|
tmp_2 = null;
|
|
@@ -602,11 +619,11 @@
|
|
|
602
619
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
603
620
|
}
|
|
604
621
|
tmp = tmp_0;
|
|
605
|
-
} else if (!(_this__u8e3s4.
|
|
622
|
+
} else if (!(_this__u8e3s4.d1i_1 == null)) {
|
|
606
623
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
607
624
|
// Inline function 'kotlin.collections.flatMap' call
|
|
608
625
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
609
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
626
|
+
var tmp0_elvis_lhs = _this__u8e3s4.d1i_1;
|
|
610
627
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
611
628
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
612
629
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -614,7 +631,17 @@
|
|
|
614
631
|
while (tmp0_iterator.d()) {
|
|
615
632
|
var element = tmp0_iterator.e();
|
|
616
633
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
617
|
-
var
|
|
634
|
+
var tmp_3;
|
|
635
|
+
if (element instanceof SchemaObject) {
|
|
636
|
+
tmp_3 = toField(element, $this, name);
|
|
637
|
+
} else {
|
|
638
|
+
if (element instanceof ReferenceObject) {
|
|
639
|
+
tmp_3 = toField(resolve(resolveSchemaObject(element, $this), $this), $this, getReference(element, $this));
|
|
640
|
+
} else {
|
|
641
|
+
noWhenBranchMatchedException();
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
var list = tmp_3;
|
|
618
645
|
addAll(tmp0_flatMapTo, list);
|
|
619
646
|
}
|
|
620
647
|
var set = HashSet_init_$Create$();
|
|
@@ -623,28 +650,28 @@
|
|
|
623
650
|
while (tmp0_iterator_0.d()) {
|
|
624
651
|
var e = tmp0_iterator_0.e();
|
|
625
652
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
626
|
-
var key = e.
|
|
653
|
+
var key = e.s22_1;
|
|
627
654
|
if (set.a(key)) {
|
|
628
655
|
list_0.a(e);
|
|
629
656
|
}
|
|
630
657
|
}
|
|
631
|
-
var
|
|
658
|
+
var tmp_4 = listOf(new Type(name, new Shape(list_0)));
|
|
632
659
|
// Inline function 'kotlin.collections.flatMap' call
|
|
633
|
-
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.
|
|
660
|
+
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.d1i_1);
|
|
634
661
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
635
662
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
636
663
|
var tmp0_iterator_1 = tmp3_flatMap.c();
|
|
637
664
|
while (tmp0_iterator_1.d()) {
|
|
638
665
|
var element_0 = tmp0_iterator_1.e();
|
|
639
666
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
640
|
-
var
|
|
667
|
+
var tmp_5;
|
|
641
668
|
if (element_0 instanceof ReferenceObject) {
|
|
642
|
-
|
|
669
|
+
tmp_5 = emptyList();
|
|
643
670
|
} else {
|
|
644
671
|
if (element_0 instanceof SchemaObject) {
|
|
645
672
|
// Inline function 'kotlin.collections.flatMap' call
|
|
646
673
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
647
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
674
|
+
var tmp0_elvis_lhs_0 = element_0.e1i_1;
|
|
648
675
|
var tmp1_flatMap_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
649
676
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
650
677
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
@@ -657,32 +684,32 @@
|
|
|
657
684
|
var key_0 = element_1.v();
|
|
658
685
|
// Inline function 'kotlin.collections.component2' call
|
|
659
686
|
var value = element_1.w();
|
|
660
|
-
var
|
|
687
|
+
var tmp_6;
|
|
661
688
|
if (value instanceof ReferenceObject) {
|
|
662
|
-
|
|
689
|
+
tmp_6 = emptyList();
|
|
663
690
|
} else {
|
|
664
691
|
if (value instanceof SchemaObject) {
|
|
665
|
-
|
|
692
|
+
tmp_6 = flatten(value, $this, Common_getInstance().b27([name, key_0]));
|
|
666
693
|
} else {
|
|
667
694
|
noWhenBranchMatchedException();
|
|
668
695
|
}
|
|
669
696
|
}
|
|
670
|
-
var list_1 =
|
|
697
|
+
var list_1 = tmp_6;
|
|
671
698
|
addAll(tmp0_flatMapTo_1, list_1);
|
|
672
699
|
}
|
|
673
|
-
|
|
700
|
+
tmp_5 = tmp0_flatMapTo_1;
|
|
674
701
|
} else {
|
|
675
702
|
noWhenBranchMatchedException();
|
|
676
703
|
}
|
|
677
704
|
}
|
|
678
|
-
var list_2 =
|
|
705
|
+
var list_2 = tmp_5;
|
|
679
706
|
addAll(tmp0_flatMapTo_0, list_2);
|
|
680
707
|
}
|
|
681
|
-
tmp = plus(
|
|
682
|
-
} else if (!(_this__u8e3s4.
|
|
708
|
+
tmp = plus(tmp_4, tmp0_flatMapTo_0);
|
|
709
|
+
} else if (!(_this__u8e3s4.a1i_1 == null)) {
|
|
683
710
|
// Inline function 'kotlin.let' call
|
|
684
711
|
// Inline function 'kotlin.collections.map' call
|
|
685
|
-
var tmp4_map = ensureNotNull(_this__u8e3s4.
|
|
712
|
+
var tmp4_map = ensureNotNull(_this__u8e3s4.a1i_1);
|
|
686
713
|
// Inline function 'kotlin.collections.mapTo' call
|
|
687
714
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp4_map, 10));
|
|
688
715
|
var tmp0_iterator_3 = tmp4_map.c();
|
|
@@ -690,7 +717,7 @@
|
|
|
690
717
|
var item = tmp0_iterator_3.e();
|
|
691
718
|
var tmp$ret$18;
|
|
692
719
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
693
|
-
tmp$ret$18 = item.
|
|
720
|
+
tmp$ret$18 = item.y12();
|
|
694
721
|
tmp0_mapTo.a(tmp$ret$18);
|
|
695
722
|
}
|
|
696
723
|
var tmp5_let = toSet(tmp0_mapTo);
|
|
@@ -698,16 +725,16 @@
|
|
|
698
725
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
699
726
|
tmp = listOf(new Enum(name, tmp5_let));
|
|
700
727
|
} else {
|
|
701
|
-
var tmp5_subject = _this__u8e3s4.
|
|
702
|
-
var
|
|
703
|
-
switch (tmp5_subject == null ? -1 : tmp5_subject.
|
|
728
|
+
var tmp5_subject = _this__u8e3s4.b1i_1;
|
|
729
|
+
var tmp_7;
|
|
730
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.z4_1) {
|
|
704
731
|
case -1:
|
|
705
732
|
case 5:
|
|
706
733
|
// Inline function 'kotlin.collections.flatMap' call
|
|
707
734
|
|
|
708
735
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
709
736
|
|
|
710
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
737
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.e1i_1;
|
|
711
738
|
var tmp7_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
712
739
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
713
740
|
|
|
@@ -722,38 +749,38 @@
|
|
|
722
749
|
var key_1 = element_2.v();
|
|
723
750
|
// Inline function 'kotlin.collections.component2' call
|
|
724
751
|
var value_0 = element_2.w();
|
|
725
|
-
var list_3 = flatten_0(value_0, $this, Common_getInstance().
|
|
752
|
+
var list_3 = flatten_0(value_0, $this, Common_getInstance().b27([name, key_1]));
|
|
726
753
|
addAll(tmp0_flatMapTo_2, list_3);
|
|
727
754
|
}
|
|
728
755
|
|
|
729
756
|
var fields = tmp0_flatMapTo_2;
|
|
730
757
|
var schema = listOf(new Type(name, new Shape(toField(_this__u8e3s4, $this, name))));
|
|
731
|
-
|
|
758
|
+
tmp_7 = plus(schema, fields);
|
|
732
759
|
break;
|
|
733
760
|
case 4:
|
|
734
|
-
var it = _this__u8e3s4.
|
|
735
|
-
var
|
|
761
|
+
var it = _this__u8e3s4.c1i_1;
|
|
762
|
+
var tmp_8;
|
|
736
763
|
if (it instanceof ReferenceObject) {
|
|
737
|
-
|
|
764
|
+
tmp_8 = emptyList();
|
|
738
765
|
} else {
|
|
739
766
|
if (it instanceof SchemaObject) {
|
|
740
|
-
|
|
767
|
+
tmp_8 = flatten(it, $this, Common_getInstance().b27([name, 'Array']));
|
|
741
768
|
} else {
|
|
742
769
|
if (it == null) {
|
|
743
|
-
|
|
770
|
+
tmp_8 = emptyList();
|
|
744
771
|
} else {
|
|
745
772
|
noWhenBranchMatchedException();
|
|
746
773
|
}
|
|
747
774
|
}
|
|
748
775
|
}
|
|
749
776
|
|
|
750
|
-
|
|
777
|
+
tmp_7 = tmp_8;
|
|
751
778
|
break;
|
|
752
779
|
default:
|
|
753
|
-
|
|
780
|
+
tmp_7 = emptyList();
|
|
754
781
|
break;
|
|
755
782
|
}
|
|
756
|
-
tmp =
|
|
783
|
+
tmp = tmp_7;
|
|
757
784
|
}
|
|
758
785
|
return tmp;
|
|
759
786
|
}
|
|
@@ -777,8 +804,8 @@
|
|
|
777
804
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
|
|
778
805
|
var schema = resolve(tmp0_let, $this);
|
|
779
806
|
var tmp;
|
|
780
|
-
if (!(schema.
|
|
781
|
-
var additionalProperties = ensureNotNull(schema.
|
|
807
|
+
if (!(schema.f1i_1 == null)) {
|
|
808
|
+
var additionalProperties = ensureNotNull(schema.f1i_1);
|
|
782
809
|
var tmp_0;
|
|
783
810
|
if (additionalProperties instanceof BooleanObject) {
|
|
784
811
|
tmp_0 = new Any(false, true);
|
|
@@ -794,24 +821,24 @@
|
|
|
794
821
|
}
|
|
795
822
|
}
|
|
796
823
|
tmp = tmp_0;
|
|
797
|
-
} else if (!(schema.
|
|
798
|
-
tmp = new Custom(Common_getInstance().
|
|
799
|
-
} else if (isPrimitive(schema.
|
|
800
|
-
tmp = new Primitive(toPrimitive(ensureNotNull(schema.
|
|
824
|
+
} else if (!(schema.a1i_1 == null)) {
|
|
825
|
+
tmp = new Custom(Common_getInstance().b27([getReference(_this__u8e3s4, $this)]), false, false);
|
|
826
|
+
} else if (isPrimitive(schema.b1i_1)) {
|
|
827
|
+
tmp = new Primitive(toPrimitive(ensureNotNull(schema.b1i_1), $this), false, false);
|
|
801
828
|
} else {
|
|
802
|
-
var tmp0_subject = schema.
|
|
829
|
+
var tmp0_subject = schema.b1i_1;
|
|
803
830
|
var tmp_1;
|
|
804
|
-
if ((tmp0_subject == null ? -1 : tmp0_subject.
|
|
805
|
-
var items = schema.
|
|
831
|
+
if ((tmp0_subject == null ? -1 : tmp0_subject.z4_1) === 4) {
|
|
832
|
+
var items = schema.c1i_1;
|
|
806
833
|
var tmp_2;
|
|
807
834
|
if (items instanceof ReferenceObject) {
|
|
808
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
835
|
+
tmp_2 = new Custom(Common_getInstance().b27([getReference(items, $this)]), true);
|
|
809
836
|
} else {
|
|
810
837
|
if (items instanceof SchemaObject) {
|
|
811
|
-
tmp_2 =
|
|
838
|
+
tmp_2 = toIterable(toReference_0(items, $this, Common_getInstance().b27([getReference(_this__u8e3s4, $this), 'Array'])));
|
|
812
839
|
} else {
|
|
813
840
|
if (items == null) {
|
|
814
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.
|
|
841
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.y1g_1);
|
|
815
842
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
816
843
|
} else {
|
|
817
844
|
noWhenBranchMatchedException();
|
|
@@ -822,10 +849,10 @@
|
|
|
822
849
|
} else {
|
|
823
850
|
var tmp_3;
|
|
824
851
|
if (tmp0_let instanceof SchemaObject) {
|
|
825
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
852
|
+
tmp_3 = new Custom(Common_getInstance().b27([getReference(_this__u8e3s4, $this)]), false);
|
|
826
853
|
} else {
|
|
827
854
|
if (tmp0_let instanceof ReferenceObject) {
|
|
828
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
855
|
+
tmp_3 = new Custom(Common_getInstance().b27([getReference(tmp0_let, $this)]), false);
|
|
829
856
|
} else {
|
|
830
857
|
noWhenBranchMatchedException();
|
|
831
858
|
}
|
|
@@ -838,8 +865,8 @@
|
|
|
838
865
|
}
|
|
839
866
|
function toReference_0(_this__u8e3s4, $this, name) {
|
|
840
867
|
var tmp;
|
|
841
|
-
if (!(_this__u8e3s4.
|
|
842
|
-
var additionalProperties = ensureNotNull(_this__u8e3s4.
|
|
868
|
+
if (!(_this__u8e3s4.f1i_1 == null)) {
|
|
869
|
+
var additionalProperties = ensureNotNull(_this__u8e3s4.f1i_1);
|
|
843
870
|
var tmp_0;
|
|
844
871
|
if (additionalProperties instanceof BooleanObject) {
|
|
845
872
|
tmp_0 = new Any(false, true);
|
|
@@ -852,7 +879,7 @@
|
|
|
852
879
|
// Inline function 'kotlin.contracts.contract' call
|
|
853
880
|
var tmp_1;
|
|
854
881
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
|
|
855
|
-
if (isPrimitive(additionalProperties.
|
|
882
|
+
if (isPrimitive(additionalProperties.b1i_1) ? true : !(additionalProperties.e1i_1 == null)) {
|
|
856
883
|
tmp_1 = additionalProperties;
|
|
857
884
|
} else {
|
|
858
885
|
tmp_1 = null;
|
|
@@ -875,32 +902,32 @@
|
|
|
875
902
|
}
|
|
876
903
|
}
|
|
877
904
|
tmp = tmp_0;
|
|
878
|
-
} else if (!(_this__u8e3s4.
|
|
879
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
905
|
+
} else if (!(_this__u8e3s4.a1i_1 == null)) {
|
|
906
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.f1i_1 == null));
|
|
880
907
|
} else {
|
|
881
|
-
var type = _this__u8e3s4.
|
|
908
|
+
var type = _this__u8e3s4.b1i_1;
|
|
882
909
|
var tmp_3;
|
|
883
|
-
switch (type == null ? -1 : type.
|
|
910
|
+
switch (type == null ? -1 : type.z4_1) {
|
|
884
911
|
case 0:
|
|
885
912
|
case 2:
|
|
886
913
|
case 1:
|
|
887
914
|
case 3:
|
|
888
|
-
tmp_3 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.
|
|
915
|
+
tmp_3 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.f1i_1 == null));
|
|
889
916
|
break;
|
|
890
917
|
case -1:
|
|
891
918
|
case 5:
|
|
892
919
|
var tmp_4;
|
|
893
|
-
var tmp_5 = _this__u8e3s4.
|
|
920
|
+
var tmp_5 = _this__u8e3s4.f1i_1;
|
|
894
921
|
if (tmp_5 instanceof BooleanObject) {
|
|
895
|
-
tmp_4 = new Any(false, !(_this__u8e3s4.
|
|
922
|
+
tmp_4 = new Any(false, !(_this__u8e3s4.f1i_1 == null));
|
|
896
923
|
} else {
|
|
897
|
-
tmp_4 = new Custom(name, false, !(_this__u8e3s4.
|
|
924
|
+
tmp_4 = new Custom(name, false, !(_this__u8e3s4.f1i_1 == null));
|
|
898
925
|
}
|
|
899
926
|
|
|
900
927
|
tmp_3 = tmp_4;
|
|
901
928
|
break;
|
|
902
929
|
case 4:
|
|
903
|
-
var it = _this__u8e3s4.
|
|
930
|
+
var it = _this__u8e3s4.c1i_1;
|
|
904
931
|
var tmp_6;
|
|
905
932
|
if (it instanceof ReferenceObject) {
|
|
906
933
|
tmp_6 = toIterable(toReference(it, $this));
|
|
@@ -940,46 +967,46 @@
|
|
|
940
967
|
var tmp$ret$0;
|
|
941
968
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toOperationList.<anonymous>' call
|
|
942
969
|
var tmp;
|
|
943
|
-
switch (element.
|
|
970
|
+
switch (element.z4_1) {
|
|
944
971
|
case 0:
|
|
945
|
-
tmp = _this__u8e3s4.
|
|
972
|
+
tmp = _this__u8e3s4.s1e_1;
|
|
946
973
|
break;
|
|
947
974
|
case 1:
|
|
948
|
-
tmp = _this__u8e3s4.
|
|
975
|
+
tmp = _this__u8e3s4.u1e_1;
|
|
949
976
|
break;
|
|
950
977
|
case 2:
|
|
951
|
-
tmp = _this__u8e3s4.
|
|
978
|
+
tmp = _this__u8e3s4.t1e_1;
|
|
952
979
|
break;
|
|
953
980
|
case 3:
|
|
954
|
-
tmp = _this__u8e3s4.
|
|
981
|
+
tmp = _this__u8e3s4.v1e_1;
|
|
955
982
|
break;
|
|
956
983
|
case 4:
|
|
957
|
-
tmp = _this__u8e3s4.
|
|
984
|
+
tmp = _this__u8e3s4.w1e_1;
|
|
958
985
|
break;
|
|
959
986
|
case 5:
|
|
960
|
-
tmp = _this__u8e3s4.
|
|
987
|
+
tmp = _this__u8e3s4.x1e_1;
|
|
961
988
|
break;
|
|
962
989
|
case 6:
|
|
963
|
-
tmp = _this__u8e3s4.
|
|
990
|
+
tmp = _this__u8e3s4.y1e_1;
|
|
964
991
|
break;
|
|
965
992
|
case 7:
|
|
966
|
-
tmp = _this__u8e3s4.
|
|
993
|
+
tmp = _this__u8e3s4.z1e_1;
|
|
967
994
|
break;
|
|
968
995
|
default:
|
|
969
996
|
noWhenBranchMatchedException();
|
|
970
997
|
break;
|
|
971
998
|
}
|
|
972
999
|
tmp$ret$0 = tmp;
|
|
973
|
-
result.
|
|
1000
|
+
result.m3(element, tmp$ret$0);
|
|
974
1001
|
}
|
|
975
1002
|
return filterNotNullValues(result);
|
|
976
1003
|
}
|
|
977
1004
|
function getReference(_this__u8e3s4, $this) {
|
|
978
|
-
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
1005
|
+
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.y1g_1), ['/']).h(2);
|
|
979
1006
|
}
|
|
980
1007
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
981
1008
|
var tmp;
|
|
982
|
-
switch (_this__u8e3s4.
|
|
1009
|
+
switch (_this__u8e3s4.z4_1) {
|
|
983
1010
|
case 0:
|
|
984
1011
|
tmp = Type_String_getInstance();
|
|
985
1012
|
break;
|
|
@@ -1000,7 +1027,7 @@
|
|
|
1000
1027
|
function toField(_this__u8e3s4, $this, name) {
|
|
1001
1028
|
// Inline function 'kotlin.collections.map' call
|
|
1002
1029
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1003
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1030
|
+
var tmp0_elvis_lhs = _this__u8e3s4.e1i_1;
|
|
1004
1031
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1005
1032
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1006
1033
|
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.f());
|
|
@@ -1017,16 +1044,16 @@
|
|
|
1017
1044
|
var tmp;
|
|
1018
1045
|
if (value instanceof SchemaObject) {
|
|
1019
1046
|
var tmp_0 = new Identifier(key);
|
|
1020
|
-
var tmp_1 = !(value.
|
|
1021
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
1022
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1047
|
+
var tmp_1 = !(value.a1i_1 == null) ? toReference_0(value, $this, Common_getInstance().b27([name, key])) : equals(value.b1i_1, Type_ARRAY_getInstance()) ? toReference_0(value, $this, Common_getInstance().b27([name, key, 'Array'])) : toReference_0(value, $this, Common_getInstance().b27([name, key]));
|
|
1048
|
+
var tmp1_safe_receiver = _this__u8e3s4.z1h_1;
|
|
1049
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k1(key);
|
|
1023
1050
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
1024
1051
|
} else {
|
|
1025
1052
|
if (value instanceof ReferenceObject) {
|
|
1026
1053
|
var tmp_2 = new Identifier(key);
|
|
1027
1054
|
var tmp_3 = toReference(value, $this);
|
|
1028
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
1029
|
-
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
1055
|
+
var tmp3_safe_receiver = _this__u8e3s4.z1h_1;
|
|
1056
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.k1(key);
|
|
1030
1057
|
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
1031
1058
|
} else {
|
|
1032
1059
|
noWhenBranchMatchedException();
|
|
@@ -1044,12 +1071,12 @@
|
|
|
1044
1071
|
// Inline function 'kotlin.contracts.contract' call
|
|
1045
1072
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1046
1073
|
var tmp;
|
|
1047
|
-
if (!(_this__u8e3s4.
|
|
1048
|
-
tmp = new Custom(Common_getInstance().
|
|
1074
|
+
if (!(_this__u8e3s4.s1g_1 == null)) {
|
|
1075
|
+
tmp = new Custom(Common_getInstance().b27([name, 'Parameter', tmp0_let.x1f_1]), false);
|
|
1049
1076
|
} else {
|
|
1050
|
-
var type = tmp0_let.
|
|
1077
|
+
var type = tmp0_let.c1g_1;
|
|
1051
1078
|
var tmp_0;
|
|
1052
|
-
switch (type == null ? -1 : type.
|
|
1079
|
+
switch (type == null ? -1 : type.z4_1) {
|
|
1053
1080
|
case 0:
|
|
1054
1081
|
case 1:
|
|
1055
1082
|
case 2:
|
|
@@ -1064,9 +1091,9 @@
|
|
|
1064
1091
|
tmp_0 = new Primitive(tmp0_let_0, false);
|
|
1065
1092
|
break;
|
|
1066
1093
|
case 4:
|
|
1067
|
-
var tmp0_safe_receiver = tmp0_let.
|
|
1094
|
+
var tmp0_safe_receiver = tmp0_let.d1g_1;
|
|
1068
1095
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve(tmp0_safe_receiver, $this);
|
|
1069
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1096
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.b1i_1;
|
|
1070
1097
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, $this);
|
|
1071
1098
|
var tmp_1;
|
|
1072
1099
|
if (tmp3_safe_receiver == null) {
|
|
@@ -1103,8 +1130,8 @@
|
|
|
1103
1130
|
var tmp1_let = tmp;
|
|
1104
1131
|
// Inline function 'kotlin.contracts.contract' call
|
|
1105
1132
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1106
|
-
var tmp_3 = new Identifier(_this__u8e3s4.
|
|
1107
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1133
|
+
var tmp_3 = new Identifier(_this__u8e3s4.x1f_1);
|
|
1134
|
+
var tmp0_elvis_lhs = _this__u8e3s4.a1g_1;
|
|
1108
1135
|
return new Field(tmp_3, tmp1_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
1109
1136
|
}
|
|
1110
1137
|
function toSegments(_this__u8e3s4, $this, parameters) {
|
|
@@ -1145,7 +1172,7 @@
|
|
|
1145
1172
|
while (tmp0_iterator_0.d()) {
|
|
1146
1173
|
var element = tmp0_iterator_0.e();
|
|
1147
1174
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1148
|
-
if (element.
|
|
1175
|
+
if (element.x1f_1 === param) {
|
|
1149
1176
|
tmp$ret$4 = element;
|
|
1150
1177
|
break $l$block;
|
|
1151
1178
|
}
|
|
@@ -1160,7 +1187,7 @@
|
|
|
1160
1187
|
// Inline function 'kotlin.let' call
|
|
1161
1188
|
// Inline function 'kotlin.contracts.contract' call
|
|
1162
1189
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1163
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver.
|
|
1190
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver.c1g_1;
|
|
1164
1191
|
tmp_2 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, $this);
|
|
1165
1192
|
}
|
|
1166
1193
|
var tmp1_safe_receiver = tmp_2;
|
|
@@ -1190,45 +1217,55 @@
|
|
|
1190
1217
|
}
|
|
1191
1218
|
return tmp0_mapTo;
|
|
1192
1219
|
}
|
|
1193
|
-
function
|
|
1194
|
-
|
|
1220
|
+
function isParam(_this__u8e3s4, $this) {
|
|
1221
|
+
return charSequenceGet(_this__u8e3s4, 0) === _Char___init__impl__6a9atx(123) ? charSequenceGet(_this__u8e3s4, _this__u8e3s4.length - 1 | 0) === _Char___init__impl__6a9atx(125) : false;
|
|
1222
|
+
}
|
|
1223
|
+
function toName(_this__u8e3s4, $this) {
|
|
1224
|
+
var tmp0_safe_receiver = _this__u8e3s4.k1f_1;
|
|
1195
1225
|
var tmp;
|
|
1196
|
-
if (
|
|
1226
|
+
if (tmp0_safe_receiver == null) {
|
|
1197
1227
|
tmp = null;
|
|
1198
1228
|
} else {
|
|
1199
1229
|
// Inline function 'kotlin.let' call
|
|
1200
1230
|
// Inline function 'kotlin.contracts.contract' call
|
|
1201
1231
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1202
|
-
tmp = Common_getInstance().
|
|
1232
|
+
tmp = Common_getInstance().b27([tmp0_safe_receiver]);
|
|
1203
1233
|
}
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1234
|
+
return tmp;
|
|
1235
|
+
}
|
|
1236
|
+
function toName_0(_this__u8e3s4, $this) {
|
|
1237
|
+
// Inline function 'kotlin.collections.filter' call
|
|
1238
|
+
var tmp0_filter = drop(split(_Path___get_value__impl__thmflc(_this__u8e3s4), ['/']), 1);
|
|
1239
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
1240
|
+
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
1241
|
+
var tmp0_iterator = tmp0_filter.c();
|
|
1242
|
+
while (tmp0_iterator.d()) {
|
|
1243
|
+
var element = tmp0_iterator.e();
|
|
1209
1244
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1245
|
+
// Inline function 'kotlin.text.isNotBlank' call
|
|
1246
|
+
if (!isBlank(element)) {
|
|
1247
|
+
tmp0_filterTo.a(element);
|
|
1248
|
+
}
|
|
1213
1249
|
}
|
|
1214
|
-
|
|
1250
|
+
var tmp = tmp0_filterTo;
|
|
1251
|
+
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda($this));
|
|
1215
1252
|
}
|
|
1216
1253
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
1217
|
-
this.
|
|
1218
|
-
this.
|
|
1219
|
-
this.
|
|
1220
|
-
this.
|
|
1221
|
-
this.
|
|
1254
|
+
this.g27_1 = path;
|
|
1255
|
+
this.h27_1 = pathItem;
|
|
1256
|
+
this.i27_1 = method;
|
|
1257
|
+
this.j27_1 = operation;
|
|
1258
|
+
this.k27_1 = type;
|
|
1222
1259
|
}
|
|
1223
1260
|
protoOf(FlattenRequest).toString = function () {
|
|
1224
|
-
return 'FlattenRequest(path=' + new Path(this.
|
|
1261
|
+
return 'FlattenRequest(path=' + new Path(this.g27_1) + ', pathItem=' + this.h27_1 + ', method=' + this.i27_1 + ', operation=' + this.j27_1 + ', type=' + this.k27_1 + ')';
|
|
1225
1262
|
};
|
|
1226
1263
|
protoOf(FlattenRequest).hashCode = function () {
|
|
1227
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1228
|
-
result = imul(result, 31) + this.
|
|
1229
|
-
result = imul(result, 31) + this.
|
|
1230
|
-
result = imul(result, 31) + this.
|
|
1231
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1264
|
+
var result = Path__hashCode_impl_go73kd(this.g27_1);
|
|
1265
|
+
result = imul(result, 31) + this.h27_1.hashCode() | 0;
|
|
1266
|
+
result = imul(result, 31) + this.i27_1.hashCode() | 0;
|
|
1267
|
+
result = imul(result, 31) + this.j27_1.hashCode() | 0;
|
|
1268
|
+
result = imul(result, 31) + getStringHashCode(this.k27_1) | 0;
|
|
1232
1269
|
return result;
|
|
1233
1270
|
};
|
|
1234
1271
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -1237,22 +1274,22 @@
|
|
|
1237
1274
|
if (!(other instanceof FlattenRequest))
|
|
1238
1275
|
return false;
|
|
1239
1276
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
1240
|
-
if (!(this.
|
|
1277
|
+
if (!(this.g27_1 === tmp0_other_with_cast.g27_1))
|
|
1241
1278
|
return false;
|
|
1242
|
-
if (!this.
|
|
1279
|
+
if (!this.h27_1.equals(tmp0_other_with_cast.h27_1))
|
|
1243
1280
|
return false;
|
|
1244
|
-
if (!this.
|
|
1281
|
+
if (!this.i27_1.equals(tmp0_other_with_cast.i27_1))
|
|
1245
1282
|
return false;
|
|
1246
|
-
if (!this.
|
|
1283
|
+
if (!this.j27_1.equals(tmp0_other_with_cast.j27_1))
|
|
1247
1284
|
return false;
|
|
1248
|
-
if (!(this.
|
|
1285
|
+
if (!(this.k27_1 === tmp0_other_with_cast.k27_1))
|
|
1249
1286
|
return false;
|
|
1250
1287
|
return true;
|
|
1251
1288
|
};
|
|
1252
1289
|
function flatMapRequests(_this__u8e3s4, $this, f) {
|
|
1253
1290
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1254
1291
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1255
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
1292
|
+
var tmp0_flatMap = _this__u8e3s4.z1d_1;
|
|
1256
1293
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1257
1294
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1258
1295
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1261,7 +1298,7 @@
|
|
|
1261
1298
|
var element = tmp0_iterator.e();
|
|
1262
1299
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
1263
1300
|
// Inline function 'kotlin.collections.component1' call
|
|
1264
|
-
var path = element.v().
|
|
1301
|
+
var path = element.v().l1e_1;
|
|
1265
1302
|
// Inline function 'kotlin.collections.component2' call
|
|
1266
1303
|
var pathItem = element.w();
|
|
1267
1304
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1278,19 +1315,18 @@
|
|
|
1278
1315
|
// Inline function 'kotlin.collections.component2' call
|
|
1279
1316
|
var operation = element_0.w();
|
|
1280
1317
|
// Inline function 'kotlin.collections.map' call
|
|
1281
|
-
|
|
1282
|
-
var
|
|
1283
|
-
var
|
|
1284
|
-
var tmp1_map = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1318
|
+
var tmp0_elvis_lhs = $this.d27_1.x1d_1;
|
|
1319
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? operation.l1f_1 : tmp0_elvis_lhs;
|
|
1320
|
+
var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
1285
1321
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1286
|
-
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(
|
|
1287
|
-
var tmp0_iterator_1 =
|
|
1322
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
1323
|
+
var tmp0_iterator_1 = tmp0_map.c();
|
|
1288
1324
|
while (tmp0_iterator_1.d()) {
|
|
1289
1325
|
var item = tmp0_iterator_1.e();
|
|
1290
|
-
var tmp$ret$
|
|
1326
|
+
var tmp$ret$6;
|
|
1291
1327
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>.<anonymous>.<anonymous>' call
|
|
1292
|
-
tmp$ret$
|
|
1293
|
-
tmp0_mapTo.a(tmp$ret$
|
|
1328
|
+
tmp$ret$6 = new FlattenRequest(path, pathItem, method, operation, item);
|
|
1329
|
+
tmp0_mapTo.a(tmp$ret$6);
|
|
1294
1330
|
}
|
|
1295
1331
|
var list = tmp0_mapTo;
|
|
1296
1332
|
addAll(tmp0_flatMapTo_0, list);
|
|
@@ -1310,25 +1346,25 @@
|
|
|
1310
1346
|
return tmp0_flatMapTo_1;
|
|
1311
1347
|
}
|
|
1312
1348
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
1313
|
-
this.
|
|
1314
|
-
this.
|
|
1315
|
-
this.
|
|
1316
|
-
this.
|
|
1317
|
-
this.
|
|
1318
|
-
this.
|
|
1319
|
-
this.
|
|
1349
|
+
this.l27_1 = path;
|
|
1350
|
+
this.m27_1 = pathItem;
|
|
1351
|
+
this.n27_1 = method;
|
|
1352
|
+
this.o27_1 = operation;
|
|
1353
|
+
this.p27_1 = statusCode;
|
|
1354
|
+
this.q27_1 = response;
|
|
1355
|
+
this.r27_1 = type;
|
|
1320
1356
|
}
|
|
1321
1357
|
protoOf(FlattenResponse).toString = function () {
|
|
1322
|
-
return 'FlattenResponse(path=' + new Path(this.
|
|
1358
|
+
return 'FlattenResponse(path=' + new Path(this.l27_1) + ', pathItem=' + this.m27_1 + ', method=' + this.n27_1 + ', operation=' + this.o27_1 + ', statusCode=' + new StatusCode(this.p27_1) + ', response=' + this.q27_1 + ', type=' + this.r27_1 + ')';
|
|
1323
1359
|
};
|
|
1324
1360
|
protoOf(FlattenResponse).hashCode = function () {
|
|
1325
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1326
|
-
result = imul(result, 31) + this.
|
|
1327
|
-
result = imul(result, 31) + this.
|
|
1328
|
-
result = imul(result, 31) + this.
|
|
1329
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
1330
|
-
result = imul(result, 31) + hashCode(this.
|
|
1331
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1361
|
+
var result = Path__hashCode_impl_go73kd(this.l27_1);
|
|
1362
|
+
result = imul(result, 31) + this.m27_1.hashCode() | 0;
|
|
1363
|
+
result = imul(result, 31) + this.n27_1.hashCode() | 0;
|
|
1364
|
+
result = imul(result, 31) + this.o27_1.hashCode() | 0;
|
|
1365
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.p27_1) | 0;
|
|
1366
|
+
result = imul(result, 31) + hashCode(this.q27_1) | 0;
|
|
1367
|
+
result = imul(result, 31) + getStringHashCode(this.r27_1) | 0;
|
|
1332
1368
|
return result;
|
|
1333
1369
|
};
|
|
1334
1370
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -1337,26 +1373,26 @@
|
|
|
1337
1373
|
if (!(other instanceof FlattenResponse))
|
|
1338
1374
|
return false;
|
|
1339
1375
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
1340
|
-
if (!(this.
|
|
1376
|
+
if (!(this.l27_1 === tmp0_other_with_cast.l27_1))
|
|
1341
1377
|
return false;
|
|
1342
|
-
if (!this.
|
|
1378
|
+
if (!this.m27_1.equals(tmp0_other_with_cast.m27_1))
|
|
1343
1379
|
return false;
|
|
1344
|
-
if (!this.
|
|
1380
|
+
if (!this.n27_1.equals(tmp0_other_with_cast.n27_1))
|
|
1345
1381
|
return false;
|
|
1346
|
-
if (!this.
|
|
1382
|
+
if (!this.o27_1.equals(tmp0_other_with_cast.o27_1))
|
|
1347
1383
|
return false;
|
|
1348
|
-
if (!(this.
|
|
1384
|
+
if (!(this.p27_1 === tmp0_other_with_cast.p27_1))
|
|
1349
1385
|
return false;
|
|
1350
|
-
if (!equals(this.
|
|
1386
|
+
if (!equals(this.q27_1, tmp0_other_with_cast.q27_1))
|
|
1351
1387
|
return false;
|
|
1352
|
-
if (!(this.
|
|
1388
|
+
if (!(this.r27_1 === tmp0_other_with_cast.r27_1))
|
|
1353
1389
|
return false;
|
|
1354
1390
|
return true;
|
|
1355
1391
|
};
|
|
1356
1392
|
function flatMapResponses(_this__u8e3s4, $this, f) {
|
|
1357
1393
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1358
1394
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1359
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
1395
|
+
var tmp0_flatMap = _this__u8e3s4.z1d_1;
|
|
1360
1396
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1361
1397
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1362
1398
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1365,7 +1401,7 @@
|
|
|
1365
1401
|
var element = tmp0_iterator.e();
|
|
1366
1402
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
1367
1403
|
// Inline function 'kotlin.collections.component1' call
|
|
1368
|
-
var path = element.v().
|
|
1404
|
+
var path = element.v().l1e_1;
|
|
1369
1405
|
// Inline function 'kotlin.collections.component2' call
|
|
1370
1406
|
var pathItem = element.w();
|
|
1371
1407
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1383,7 +1419,7 @@
|
|
|
1383
1419
|
var operation = element_0.w();
|
|
1384
1420
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1385
1421
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1386
|
-
var tmp0_elvis_lhs = operation.
|
|
1422
|
+
var tmp0_elvis_lhs = operation.o1f_1;
|
|
1387
1423
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1388
1424
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1389
1425
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
@@ -1393,23 +1429,22 @@
|
|
|
1393
1429
|
var element_1 = tmp0_iterator_1.e();
|
|
1394
1430
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
1395
1431
|
// Inline function 'kotlin.collections.component1' call
|
|
1396
|
-
var statusCode = element_1.v().
|
|
1432
|
+
var statusCode = element_1.v().k1i_1;
|
|
1397
1433
|
// Inline function 'kotlin.collections.component2' call
|
|
1398
1434
|
var response = element_1.w();
|
|
1399
1435
|
// Inline function 'kotlin.collections.map' call
|
|
1400
|
-
|
|
1401
|
-
var
|
|
1402
|
-
var
|
|
1403
|
-
var tmp1_map = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1436
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.y1d_1;
|
|
1437
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.m1f_1 : tmp0_elvis_lhs_0;
|
|
1438
|
+
var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
1404
1439
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1405
|
-
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(
|
|
1406
|
-
var tmp0_iterator_2 =
|
|
1440
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
1441
|
+
var tmp0_iterator_2 = tmp0_map.c();
|
|
1407
1442
|
while (tmp0_iterator_2.d()) {
|
|
1408
1443
|
var item = tmp0_iterator_2.e();
|
|
1409
|
-
var tmp$ret$
|
|
1444
|
+
var tmp$ret$10;
|
|
1410
1445
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1411
|
-
tmp$ret$
|
|
1412
|
-
tmp0_mapTo.a(tmp$ret$
|
|
1446
|
+
tmp$ret$10 = new FlattenResponse(path, pathItem, method, operation, statusCode, response, item);
|
|
1447
|
+
tmp0_mapTo.a(tmp$ret$10);
|
|
1413
1448
|
}
|
|
1414
1449
|
var list = tmp0_mapTo;
|
|
1415
1450
|
addAll(tmp0_flatMapTo_1, list);
|
|
@@ -1431,11 +1466,55 @@
|
|
|
1431
1466
|
}
|
|
1432
1467
|
return tmp0_flatMapTo_2;
|
|
1433
1468
|
}
|
|
1469
|
+
function OpenApiParser$parseParameters$lambda(this$0) {
|
|
1470
|
+
return function (req) {
|
|
1471
|
+
var parameters = plus(resolveParameters_0(req.h27_1, this$0), resolveParameters(req.j27_1, this$0));
|
|
1472
|
+
var tmp0_elvis_lhs = toName(req.j27_1, this$0);
|
|
1473
|
+
var name = tmp0_elvis_lhs == null ? toName_0(req.g27_1, this$0) + req.i27_1.y4_1 : tmp0_elvis_lhs;
|
|
1474
|
+
var tmp$ret$5;
|
|
1475
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
1476
|
+
var tmp$ret$2;
|
|
1477
|
+
// Inline function 'kotlin.collections.filter' call
|
|
1478
|
+
var tmp$ret$1;
|
|
1479
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
1480
|
+
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
1481
|
+
var tmp0_iterator = parameters.c();
|
|
1482
|
+
while (tmp0_iterator.d()) {
|
|
1483
|
+
var element = tmp0_iterator.e();
|
|
1484
|
+
var tmp$ret$0;
|
|
1485
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
1486
|
+
tmp$ret$0 = !element.y1f_1.equals(ParameterLocation_BODY_getInstance());
|
|
1487
|
+
if (tmp$ret$0) {
|
|
1488
|
+
tmp0_filterTo.a(element);
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
tmp$ret$1 = tmp0_filterTo;
|
|
1492
|
+
tmp$ret$2 = tmp$ret$1;
|
|
1493
|
+
var tmp0_flatMap = tmp$ret$2;
|
|
1494
|
+
var tmp$ret$4;
|
|
1495
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1496
|
+
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1497
|
+
var tmp0_iterator_0 = tmp0_flatMap.c();
|
|
1498
|
+
while (tmp0_iterator_0.d()) {
|
|
1499
|
+
var element_0 = tmp0_iterator_0.e();
|
|
1500
|
+
var tmp$ret$3;
|
|
1501
|
+
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
1502
|
+
var tmp0_safe_receiver = element_0.b1g_1;
|
|
1503
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_0(tmp0_safe_receiver, this$0, Common_getInstance().b27([name, 'Parameter', element_0.x1f_1]));
|
|
1504
|
+
tmp$ret$3 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
1505
|
+
var list = tmp$ret$3;
|
|
1506
|
+
addAll(tmp0_flatMapTo, list);
|
|
1507
|
+
}
|
|
1508
|
+
tmp$ret$4 = tmp0_flatMapTo;
|
|
1509
|
+
tmp$ret$5 = tmp$ret$4;
|
|
1510
|
+
return tmp$ret$5;
|
|
1511
|
+
};
|
|
1512
|
+
}
|
|
1434
1513
|
function OpenApiParser$parseRequestBody$lambda(this$0) {
|
|
1435
1514
|
return function (req) {
|
|
1436
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1437
|
-
var
|
|
1438
|
-
var name =
|
|
1515
|
+
var parameters = plus(resolveParameters_0(req.h27_1, this$0), resolveParameters(req.j27_1, this$0));
|
|
1516
|
+
var tmp0_elvis_lhs = toName(req.j27_1, this$0);
|
|
1517
|
+
var name = tmp0_elvis_lhs == null ? toName_0(req.g27_1, this$0) + req.i27_1.y4_1 : tmp0_elvis_lhs;
|
|
1439
1518
|
var tmp$ret$5;
|
|
1440
1519
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1441
1520
|
var tmp$ret$4;
|
|
@@ -1447,11 +1526,11 @@
|
|
|
1447
1526
|
var tmp$ret$3;
|
|
1448
1527
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1449
1528
|
var tmp;
|
|
1450
|
-
if (!(element.
|
|
1451
|
-
var tmp_0 = Common_getInstance().
|
|
1529
|
+
if (!(element.s1g_1 == null)) {
|
|
1530
|
+
var tmp_0 = Common_getInstance().b27([name, 'Parameter', element.x1f_1]);
|
|
1452
1531
|
var tmp$ret$2;
|
|
1453
1532
|
// Inline function 'kotlin.collections.map' call
|
|
1454
|
-
var tmp0_map = ensureNotNull(element.
|
|
1533
|
+
var tmp0_map = ensureNotNull(element.s1g_1);
|
|
1455
1534
|
var tmp$ret$1;
|
|
1456
1535
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1457
1536
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
@@ -1460,7 +1539,7 @@
|
|
|
1460
1539
|
var item = tmp0_iterator_0.e();
|
|
1461
1540
|
var tmp$ret$0;
|
|
1462
1541
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
1463
|
-
tmp$ret$0 = item.
|
|
1542
|
+
tmp$ret$0 = item.y12();
|
|
1464
1543
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1465
1544
|
}
|
|
1466
1545
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -1476,17 +1555,17 @@
|
|
|
1476
1555
|
tmp$ret$4 = tmp0_flatMapTo;
|
|
1477
1556
|
tmp$ret$5 = tmp$ret$4;
|
|
1478
1557
|
var enums = tmp$ret$5;
|
|
1479
|
-
var
|
|
1558
|
+
var tmp1_safe_receiver = req.j27_1.n1f_1;
|
|
1480
1559
|
var tmp_1;
|
|
1481
|
-
if (
|
|
1560
|
+
if (tmp1_safe_receiver == null) {
|
|
1482
1561
|
tmp_1 = null;
|
|
1483
1562
|
} else {
|
|
1484
1563
|
var tmp$ret$8;
|
|
1485
1564
|
// Inline function 'kotlin.collections.map' call
|
|
1486
1565
|
var tmp$ret$7;
|
|
1487
1566
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1488
|
-
var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(
|
|
1489
|
-
var tmp0_iterator_1 =
|
|
1567
|
+
var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_safe_receiver, 10));
|
|
1568
|
+
var tmp0_iterator_1 = tmp1_safe_receiver.c();
|
|
1490
1569
|
while (tmp0_iterator_1.d()) {
|
|
1491
1570
|
var item_0 = tmp0_iterator_1.e();
|
|
1492
1571
|
var tmp$ret$6;
|
|
@@ -1498,9 +1577,9 @@
|
|
|
1498
1577
|
tmp$ret$8 = tmp$ret$7;
|
|
1499
1578
|
tmp_1 = tmp$ret$8;
|
|
1500
1579
|
}
|
|
1501
|
-
var
|
|
1580
|
+
var tmp2_safe_receiver = tmp_1;
|
|
1502
1581
|
var tmp_2;
|
|
1503
|
-
if (
|
|
1582
|
+
if (tmp2_safe_receiver == null) {
|
|
1504
1583
|
tmp_2 = null;
|
|
1505
1584
|
} else {
|
|
1506
1585
|
var tmp$ret$11;
|
|
@@ -1508,12 +1587,12 @@
|
|
|
1508
1587
|
var tmp$ret$10;
|
|
1509
1588
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1510
1589
|
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
1511
|
-
var tmp0_iterator_2 =
|
|
1590
|
+
var tmp0_iterator_2 = tmp2_safe_receiver.c();
|
|
1512
1591
|
while (tmp0_iterator_2.d()) {
|
|
1513
1592
|
var element_0 = tmp0_iterator_2.e();
|
|
1514
1593
|
var tmp$ret$9;
|
|
1515
1594
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1516
|
-
tmp$ret$9 = element_0.
|
|
1595
|
+
tmp$ret$9 = element_0.y1f_1.equals(ParameterLocation_BODY_getInstance());
|
|
1517
1596
|
if (tmp$ret$9) {
|
|
1518
1597
|
tmp0_filterTo.a(element_0);
|
|
1519
1598
|
}
|
|
@@ -1522,9 +1601,9 @@
|
|
|
1522
1601
|
tmp$ret$11 = tmp$ret$10;
|
|
1523
1602
|
tmp_2 = tmp$ret$11;
|
|
1524
1603
|
}
|
|
1525
|
-
var
|
|
1604
|
+
var tmp3_safe_receiver = tmp_2;
|
|
1526
1605
|
var tmp_3;
|
|
1527
|
-
if (
|
|
1606
|
+
if (tmp3_safe_receiver == null) {
|
|
1528
1607
|
tmp_3 = null;
|
|
1529
1608
|
} else {
|
|
1530
1609
|
var tmp$ret$15;
|
|
@@ -1532,29 +1611,29 @@
|
|
|
1532
1611
|
var tmp$ret$14;
|
|
1533
1612
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1534
1613
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
1535
|
-
var tmp0_iterator_3 =
|
|
1614
|
+
var tmp0_iterator_3 = tmp3_safe_receiver.c();
|
|
1536
1615
|
while (tmp0_iterator_3.d()) {
|
|
1537
1616
|
var element_1 = tmp0_iterator_3.e();
|
|
1538
1617
|
var tmp$ret$13;
|
|
1539
1618
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1540
|
-
var schema = element_1.
|
|
1619
|
+
var schema = element_1.b1g_1;
|
|
1541
1620
|
var tmp_4;
|
|
1542
1621
|
if (schema instanceof SchemaObject) {
|
|
1543
|
-
var tmp0_subject = schema.
|
|
1544
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.
|
|
1622
|
+
var tmp0_subject = schema.b1i_1;
|
|
1623
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.z4_1;
|
|
1545
1624
|
var tmp_5;
|
|
1546
1625
|
switch (tmp0) {
|
|
1547
1626
|
case -1:
|
|
1548
1627
|
case 5:
|
|
1549
|
-
tmp_5 = flatten(schema, this$0, Common_getInstance().
|
|
1628
|
+
tmp_5 = flatten(schema, this$0, Common_getInstance().b27([name, 'RequestBody']));
|
|
1550
1629
|
break;
|
|
1551
1630
|
case 4:
|
|
1552
1631
|
var tmp$ret$12;
|
|
1553
1632
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1554
|
-
var tmp1_safe_receiver_0 = schema.
|
|
1555
|
-
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
1556
|
-
var
|
|
1557
|
-
tmp$ret$12 =
|
|
1633
|
+
var tmp1_safe_receiver_0 = schema.c1i_1;
|
|
1634
|
+
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().b27([name, 'RequestBody']));
|
|
1635
|
+
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1636
|
+
tmp$ret$12 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1558
1637
|
|
|
1559
1638
|
tmp_5 = tmp$ret$12;
|
|
1560
1639
|
break;
|
|
@@ -1574,35 +1653,34 @@
|
|
|
1574
1653
|
tmp$ret$15 = tmp$ret$14;
|
|
1575
1654
|
tmp_3 = tmp$ret$15;
|
|
1576
1655
|
}
|
|
1577
|
-
var
|
|
1578
|
-
var types =
|
|
1656
|
+
var tmp4_elvis_lhs = tmp_3;
|
|
1657
|
+
var types = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
1579
1658
|
return plus(enums, types);
|
|
1580
1659
|
};
|
|
1581
1660
|
}
|
|
1582
1661
|
function OpenApiParser$parseResponseBody$lambda(this$0) {
|
|
1583
1662
|
return function (res) {
|
|
1584
|
-
var response = resolve_1(res.
|
|
1585
|
-
var
|
|
1586
|
-
var
|
|
1587
|
-
var
|
|
1588
|
-
var schema = response.k1i_1;
|
|
1663
|
+
var response = resolve_1(res.q27_1, this$0);
|
|
1664
|
+
var tmp0_elvis_lhs = toName(res.o27_1, this$0);
|
|
1665
|
+
var name = tmp0_elvis_lhs == null ? toName_0(res.l27_1, this$0) + res.n27_1.y4_1 : tmp0_elvis_lhs;
|
|
1666
|
+
var schema = response.p1i_1;
|
|
1589
1667
|
var tmp;
|
|
1590
1668
|
if (schema instanceof SchemaObject) {
|
|
1591
|
-
var
|
|
1592
|
-
var tmp0 =
|
|
1669
|
+
var tmp1_subject = schema.b1i_1;
|
|
1670
|
+
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.z4_1;
|
|
1593
1671
|
var tmp_0;
|
|
1594
1672
|
switch (tmp0) {
|
|
1595
1673
|
case -1:
|
|
1596
1674
|
case 5:
|
|
1597
|
-
tmp_0 = flatten(schema, this$0, Common_getInstance().
|
|
1675
|
+
tmp_0 = flatten(schema, this$0, Common_getInstance().b27([name, _StatusCode___get_value__impl__we50mu(res.p27_1), res.r27_1, 'ResponseBody']));
|
|
1598
1676
|
break;
|
|
1599
1677
|
case 4:
|
|
1600
1678
|
var tmp$ret$0;
|
|
1601
1679
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1602
|
-
var
|
|
1603
|
-
var tmp0_orEmpty =
|
|
1604
|
-
var
|
|
1605
|
-
tmp$ret$0 =
|
|
1680
|
+
var tmp2_safe_receiver = schema.c1i_1;
|
|
1681
|
+
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : flatten_0(tmp2_safe_receiver, this$0, Common_getInstance().b27([name, _StatusCode___get_value__impl__we50mu(res.p27_1), res.r27_1, 'ResponseBody']));
|
|
1682
|
+
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1683
|
+
tmp$ret$0 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1606
1684
|
|
|
1607
1685
|
tmp_0 = tmp$ret$0;
|
|
1608
1686
|
break;
|
|
@@ -1617,39 +1695,53 @@
|
|
|
1617
1695
|
return tmp;
|
|
1618
1696
|
};
|
|
1619
1697
|
}
|
|
1620
|
-
function OpenApiParser$toName$lambda(
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
tmp
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1698
|
+
function OpenApiParser$toName$lambda(this$0) {
|
|
1699
|
+
return function (it) {
|
|
1700
|
+
var tmp0_subject = isParam(it, this$0);
|
|
1701
|
+
var tmp;
|
|
1702
|
+
switch (tmp0_subject) {
|
|
1703
|
+
case true:
|
|
1704
|
+
var tmp_0 = Common_getInstance();
|
|
1705
|
+
var tmp$ret$1;
|
|
1706
|
+
// Inline function 'kotlin.text.substring' call
|
|
1707
|
+
var tmp0_substring = it.length - 1 | 0;
|
|
1708
|
+
var tmp$ret$0;
|
|
1709
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1710
|
+
tmp$ret$0 = it;
|
|
1711
|
+
tmp$ret$1 = tmp$ret$0.substring(1, tmp0_substring);
|
|
1712
|
+
|
|
1713
|
+
tmp = tmp_0.b27([tmp$ret$1]);
|
|
1714
|
+
break;
|
|
1715
|
+
case false:
|
|
1716
|
+
tmp = Common_getInstance().b27([it]);
|
|
1717
|
+
break;
|
|
1718
|
+
default:
|
|
1719
|
+
noWhenBranchMatchedException();
|
|
1720
|
+
break;
|
|
1629
1721
|
}
|
|
1630
|
-
|
|
1631
|
-
|
|
1722
|
+
return tmp;
|
|
1723
|
+
};
|
|
1632
1724
|
}
|
|
1633
1725
|
function OpenApiParser(openApi) {
|
|
1634
1726
|
Companion_getInstance_0();
|
|
1635
|
-
this.
|
|
1727
|
+
this.d27_1 = openApi;
|
|
1636
1728
|
}
|
|
1637
|
-
protoOf(OpenApiParser).
|
|
1638
|
-
return plus(plus(plus(parseEndpoints(this), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
|
|
1729
|
+
protoOf(OpenApiParser).e27 = function () {
|
|
1730
|
+
return plus(plus(plus(plus(parseEndpoints(this), parseParameters(this)), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
|
|
1639
1731
|
};
|
|
1640
1732
|
function toMap_0(_this__u8e3s4) {
|
|
1641
1733
|
var tmp;
|
|
1642
1734
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1643
|
-
tmp = _this__u8e3s4.
|
|
1735
|
+
tmp = _this__u8e3s4.r26(VOID, VOID, true);
|
|
1644
1736
|
} else {
|
|
1645
1737
|
if (_this__u8e3s4 instanceof Any) {
|
|
1646
|
-
tmp = _this__u8e3s4.
|
|
1738
|
+
tmp = _this__u8e3s4.m26(VOID, true);
|
|
1647
1739
|
} else {
|
|
1648
1740
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1649
|
-
tmp = _this__u8e3s4.
|
|
1741
|
+
tmp = _this__u8e3s4.t26(VOID, VOID, true);
|
|
1650
1742
|
} else {
|
|
1651
1743
|
if (_this__u8e3s4 instanceof Unit) {
|
|
1652
|
-
tmp = _this__u8e3s4.
|
|
1744
|
+
tmp = _this__u8e3s4.p26(VOID, true);
|
|
1653
1745
|
} else {
|
|
1654
1746
|
noWhenBranchMatchedException();
|
|
1655
1747
|
}
|
|
@@ -1660,7 +1752,7 @@
|
|
|
1660
1752
|
}
|
|
1661
1753
|
function isPrimitive(_this__u8e3s4) {
|
|
1662
1754
|
var tmp;
|
|
1663
|
-
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.
|
|
1755
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.z4_1) {
|
|
1664
1756
|
case 0:
|
|
1665
1757
|
tmp = true;
|
|
1666
1758
|
break;
|
|
@@ -1694,16 +1786,16 @@
|
|
|
1694
1786
|
function toIterable(_this__u8e3s4) {
|
|
1695
1787
|
var tmp;
|
|
1696
1788
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1697
|
-
tmp = _this__u8e3s4.
|
|
1789
|
+
tmp = _this__u8e3s4.r26(VOID, true);
|
|
1698
1790
|
} else {
|
|
1699
1791
|
if (_this__u8e3s4 instanceof Any) {
|
|
1700
|
-
tmp = _this__u8e3s4.
|
|
1792
|
+
tmp = _this__u8e3s4.m26(true);
|
|
1701
1793
|
} else {
|
|
1702
1794
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1703
|
-
tmp = _this__u8e3s4.
|
|
1795
|
+
tmp = _this__u8e3s4.t26(VOID, true);
|
|
1704
1796
|
} else {
|
|
1705
1797
|
if (_this__u8e3s4 instanceof Unit) {
|
|
1706
|
-
tmp = _this__u8e3s4.
|
|
1798
|
+
tmp = _this__u8e3s4.p26(true);
|
|
1707
1799
|
} else {
|
|
1708
1800
|
noWhenBranchMatchedException();
|
|
1709
1801
|
}
|
|
@@ -1747,16 +1839,27 @@
|
|
|
1747
1839
|
}
|
|
1748
1840
|
return toMap(tmp0_mapNotNullTo);
|
|
1749
1841
|
}
|
|
1842
|
+
function OpenApiParser$Companion$parse$lambda_0($strict) {
|
|
1843
|
+
return function ($this$Json) {
|
|
1844
|
+
$this$Json.a12_1 = true;
|
|
1845
|
+
$this$Json.x11_1 = $strict;
|
|
1846
|
+
return Unit_getInstance();
|
|
1847
|
+
};
|
|
1848
|
+
}
|
|
1750
1849
|
function Companion_0() {
|
|
1751
1850
|
Companion_instance_0 = this;
|
|
1752
1851
|
}
|
|
1753
|
-
protoOf(Companion_0).
|
|
1852
|
+
protoOf(Companion_0).c27 = function (json, strict) {
|
|
1754
1853
|
// Inline function 'kotlin.let' call
|
|
1755
|
-
var tmp0_let =
|
|
1854
|
+
var tmp0_let = (new OpenAPI_0(Json(VOID, OpenApiParser$Companion$parse$lambda_0(strict)))).n1d(json);
|
|
1756
1855
|
// Inline function 'kotlin.contracts.contract' call
|
|
1757
1856
|
// Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
|
|
1758
1857
|
return parse(new OpenApiParser_0(tmp0_let));
|
|
1759
1858
|
};
|
|
1859
|
+
protoOf(Companion_0).s27 = function (json, strict, $super) {
|
|
1860
|
+
strict = strict === VOID ? false : strict;
|
|
1861
|
+
return $super === VOID ? this.c27(json, strict) : $super.c27.call(this, json, strict);
|
|
1862
|
+
};
|
|
1760
1863
|
var Companion_instance_0;
|
|
1761
1864
|
function Companion_getInstance_1() {
|
|
1762
1865
|
if (Companion_instance_0 == null)
|
|
@@ -1764,11 +1867,11 @@
|
|
|
1764
1867
|
return Companion_instance_0;
|
|
1765
1868
|
}
|
|
1766
1869
|
function parse($this) {
|
|
1767
|
-
return plus(plus(plus(plus(parseEndpoint($this),
|
|
1870
|
+
return plus(plus(plus(plus(parseEndpoint($this), parseParameters_0($this)), parseRequestBody_0($this)), parseResponseBody_0($this)), parseComponents($this));
|
|
1768
1871
|
}
|
|
1769
1872
|
function parseEndpoint($this) {
|
|
1770
1873
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1771
|
-
var tmp0_flatMap = $this.
|
|
1874
|
+
var tmp0_flatMap = $this.t27_1.v1n_1;
|
|
1772
1875
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1773
1876
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1774
1877
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1777,7 +1880,7 @@
|
|
|
1777
1880
|
var element = tmp0_iterator.e();
|
|
1778
1881
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>' call
|
|
1779
1882
|
// Inline function 'kotlin.collections.component1' call
|
|
1780
|
-
var key = element.v().
|
|
1883
|
+
var key = element.v().e1o_1;
|
|
1781
1884
|
// Inline function 'kotlin.collections.component2' call
|
|
1782
1885
|
var path = element.w();
|
|
1783
1886
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1796,8 +1899,8 @@
|
|
|
1796
1899
|
var operation = item.w();
|
|
1797
1900
|
var parameters = plus(resolveParameters_2(path, $this), resolveParameters_1(operation, $this));
|
|
1798
1901
|
var segments = toSegments_0(key, $this, parameters);
|
|
1799
|
-
var tmp0_elvis_lhs =
|
|
1800
|
-
var name = tmp0_elvis_lhs == null ?
|
|
1902
|
+
var tmp0_elvis_lhs = toName_1(operation, $this);
|
|
1903
|
+
var name = tmp0_elvis_lhs == null ? toName_2(key, $this) + method.y4_1 : tmp0_elvis_lhs;
|
|
1801
1904
|
// Inline function 'kotlin.collections.map' call
|
|
1802
1905
|
// Inline function 'kotlin.collections.filter' call
|
|
1803
1906
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -1806,7 +1909,7 @@
|
|
|
1806
1909
|
while (tmp0_iterator_1.d()) {
|
|
1807
1910
|
var element_0 = tmp0_iterator_1.e();
|
|
1808
1911
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1809
|
-
if (element_0.
|
|
1912
|
+
if (element_0.b1q_1.equals(ParameterLocation_QUERY_getInstance_0())) {
|
|
1810
1913
|
tmp0_filterTo.a(element_0);
|
|
1811
1914
|
}
|
|
1812
1915
|
}
|
|
@@ -1817,7 +1920,7 @@
|
|
|
1817
1920
|
var item_0 = tmp0_iterator_2.e();
|
|
1818
1921
|
var tmp$ret$9;
|
|
1819
1922
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1820
|
-
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().
|
|
1923
|
+
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().b27([name, 'Parameter', item_0.a1q_1]));
|
|
1821
1924
|
tmp0_mapTo_0.a(tmp$ret$9);
|
|
1822
1925
|
}
|
|
1823
1926
|
var query = tmp0_mapTo_0;
|
|
@@ -1829,7 +1932,7 @@
|
|
|
1829
1932
|
while (tmp0_iterator_3.d()) {
|
|
1830
1933
|
var element_1 = tmp0_iterator_3.e();
|
|
1831
1934
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1832
|
-
if (element_1.
|
|
1935
|
+
if (element_1.b1q_1.equals(ParameterLocation_HEADER_getInstance_0())) {
|
|
1833
1936
|
tmp0_filterTo_0.a(element_1);
|
|
1834
1937
|
}
|
|
1835
1938
|
}
|
|
@@ -1840,7 +1943,7 @@
|
|
|
1840
1943
|
var item_1 = tmp0_iterator_4.e();
|
|
1841
1944
|
var tmp$ret$15;
|
|
1842
1945
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1843
|
-
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().
|
|
1946
|
+
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().b27([name, 'Parameter', item_1.a1q_1]));
|
|
1844
1947
|
tmp0_mapTo_1.a(tmp$ret$15);
|
|
1845
1948
|
}
|
|
1846
1949
|
var headers = tmp0_mapTo_1;
|
|
@@ -1852,7 +1955,7 @@
|
|
|
1852
1955
|
while (tmp0_iterator_5.d()) {
|
|
1853
1956
|
var element_2 = tmp0_iterator_5.e();
|
|
1854
1957
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1855
|
-
if (element_2.
|
|
1958
|
+
if (element_2.b1q_1.equals(ParameterLocation_COOKIE_getInstance())) {
|
|
1856
1959
|
tmp0_filterTo_1.a(element_2);
|
|
1857
1960
|
}
|
|
1858
1961
|
}
|
|
@@ -1863,11 +1966,11 @@
|
|
|
1863
1966
|
var item_2 = tmp0_iterator_6.e();
|
|
1864
1967
|
var tmp$ret$21;
|
|
1865
1968
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1866
|
-
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().
|
|
1969
|
+
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().b27([name, 'Parameter', item_2.a1q_1]));
|
|
1867
1970
|
tmp0_mapTo_2.a(tmp$ret$21);
|
|
1868
1971
|
}
|
|
1869
1972
|
var cookies = tmp0_mapTo_2;
|
|
1870
|
-
var tmp1_safe_receiver = operation.
|
|
1973
|
+
var tmp1_safe_receiver = operation.f1p_1;
|
|
1871
1974
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_6(tmp1_safe_receiver, $this);
|
|
1872
1975
|
var tmp;
|
|
1873
1976
|
if (tmp2_safe_receiver == null) {
|
|
@@ -1876,7 +1979,7 @@
|
|
|
1876
1979
|
// Inline function 'kotlin.let' call
|
|
1877
1980
|
// Inline function 'kotlin.contracts.contract' call
|
|
1878
1981
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1879
|
-
var tmp0_safe_receiver = tmp2_safe_receiver.
|
|
1982
|
+
var tmp0_safe_receiver = tmp2_safe_receiver.h1q_1;
|
|
1880
1983
|
var tmp_0;
|
|
1881
1984
|
if (tmp0_safe_receiver == null) {
|
|
1882
1985
|
tmp_0 = null;
|
|
@@ -1891,17 +1994,17 @@
|
|
|
1891
1994
|
var tmp$ret$27;
|
|
1892
1995
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1893
1996
|
// Inline function 'kotlin.collections.component1' call
|
|
1894
|
-
var mediaType = item_3.v().
|
|
1997
|
+
var mediaType = item_3.v().n1q_1;
|
|
1895
1998
|
// Inline function 'kotlin.collections.component2' call
|
|
1896
1999
|
var mediaObject = item_3.w();
|
|
1897
2000
|
var tmp_1 = _MediaType___get_value__impl__wy58mp(mediaType);
|
|
1898
|
-
var schema = mediaObject.
|
|
2001
|
+
var schema = mediaObject.r1q_1;
|
|
1899
2002
|
var tmp_2;
|
|
1900
2003
|
if (schema instanceof ReferenceObject_0) {
|
|
1901
2004
|
tmp_2 = toReference_1(schema, $this);
|
|
1902
2005
|
} else {
|
|
1903
2006
|
if (schema instanceof SchemaObject_0) {
|
|
1904
|
-
tmp_2 = toReference_2(schema, $this, Common_getInstance().
|
|
2007
|
+
tmp_2 = toReference_2(schema, $this, Common_getInstance().b27([name, 'RequestBody']));
|
|
1905
2008
|
} else {
|
|
1906
2009
|
if (schema == null) {
|
|
1907
2010
|
throw new NotImplementedError();
|
|
@@ -1911,7 +2014,7 @@
|
|
|
1911
2014
|
}
|
|
1912
2015
|
}
|
|
1913
2016
|
var tmp_3 = tmp_2;
|
|
1914
|
-
var tmp0_elvis_lhs_0 = tmp2_safe_receiver.
|
|
2017
|
+
var tmp0_elvis_lhs_0 = tmp2_safe_receiver.i1q_1;
|
|
1915
2018
|
tmp$ret$27 = new Request(new Content(tmp_1, tmp_3, tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0));
|
|
1916
2019
|
tmp0_mapTo_3.a(tmp$ret$27);
|
|
1917
2020
|
}
|
|
@@ -1923,7 +2026,7 @@
|
|
|
1923
2026
|
var requests = tmp3_elvis_lhs == null ? listOf(new Request(null)) : tmp3_elvis_lhs;
|
|
1924
2027
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1925
2028
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1926
|
-
var tmp0_elvis_lhs_1 = operation.
|
|
2029
|
+
var tmp0_elvis_lhs_1 = operation.g1p_1;
|
|
1927
2030
|
var tmp4_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
1928
2031
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1929
2032
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
@@ -1933,14 +2036,14 @@
|
|
|
1933
2036
|
var element_3 = tmp0_iterator_8.e();
|
|
1934
2037
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1935
2038
|
// Inline function 'kotlin.collections.component1' call
|
|
1936
|
-
var status = element_3.v().
|
|
2039
|
+
var status = element_3.v().q1s_1;
|
|
1937
2040
|
// Inline function 'kotlin.collections.component2' call
|
|
1938
2041
|
var res = element_3.w();
|
|
1939
2042
|
// Inline function 'kotlin.let' call
|
|
1940
2043
|
var tmp0_let = resolve_7(res, $this);
|
|
1941
2044
|
// Inline function 'kotlin.contracts.contract' call
|
|
1942
2045
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1943
|
-
var tmp0_safe_receiver_0 = tmp0_let.
|
|
2046
|
+
var tmp0_safe_receiver_0 = tmp0_let.w1s_1;
|
|
1944
2047
|
var tmp_4;
|
|
1945
2048
|
if (tmp0_safe_receiver_0 == null) {
|
|
1946
2049
|
tmp_4 = null;
|
|
@@ -1955,12 +2058,12 @@
|
|
|
1955
2058
|
var tmp$ret$44;
|
|
1956
2059
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1957
2060
|
// Inline function 'kotlin.collections.component1' call
|
|
1958
|
-
var contentType = item_4.v().
|
|
2061
|
+
var contentType = item_4.v().n1q_1;
|
|
1959
2062
|
// Inline function 'kotlin.collections.component2' call
|
|
1960
2063
|
var media = item_4.w();
|
|
1961
2064
|
var tmp_5 = _StatusCode___get_value__impl__we50mu_0(status);
|
|
1962
2065
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1963
|
-
var tmp0_safe_receiver_1 = tmp0_let.
|
|
2066
|
+
var tmp0_safe_receiver_1 = tmp0_let.v1s_1;
|
|
1964
2067
|
var tmp_6;
|
|
1965
2068
|
if (tmp0_safe_receiver_1 == null) {
|
|
1966
2069
|
tmp_6 = null;
|
|
@@ -1974,7 +2077,7 @@
|
|
|
1974
2077
|
var item_5 = tmp0_iterator_10.e();
|
|
1975
2078
|
var tmp$ret$40;
|
|
1976
2079
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1977
|
-
tmp$ret$40 = toField_3(resolve_4(item_5.w(), $this), $this, item_5.v(), Common_getInstance().
|
|
2080
|
+
tmp$ret$40 = toField_3(resolve_4(item_5.w(), $this), $this, item_5.v(), Common_getInstance().b27([name, 'ResponseHeader']));
|
|
1978
2081
|
tmp0_mapTo_5.a(tmp$ret$40);
|
|
1979
2082
|
}
|
|
1980
2083
|
tmp_6 = tmp0_mapTo_5;
|
|
@@ -1982,13 +2085,13 @@
|
|
|
1982
2085
|
var tmp0_elvis_lhs_2 = tmp_6;
|
|
1983
2086
|
var tmp_7 = tmp0_elvis_lhs_2 == null ? emptyList() : tmp0_elvis_lhs_2;
|
|
1984
2087
|
var tmp_8 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
1985
|
-
var schema_0 = media.
|
|
2088
|
+
var schema_0 = media.r1q_1;
|
|
1986
2089
|
var tmp_9;
|
|
1987
2090
|
if (schema_0 instanceof ReferenceObject_0) {
|
|
1988
2091
|
tmp_9 = toReference_1(schema_0, $this);
|
|
1989
2092
|
} else {
|
|
1990
2093
|
if (schema_0 instanceof SchemaObject_0) {
|
|
1991
|
-
tmp_9 = toReference_2(schema_0, $this, Common_getInstance().
|
|
2094
|
+
tmp_9 = toReference_2(schema_0, $this, Common_getInstance().b27([name, _StatusCode___get_value__impl__we50mu_0(status), _MediaType___get_value__impl__wy58mp(contentType), 'ResponseBody']));
|
|
1992
2095
|
} else {
|
|
1993
2096
|
if (schema_0 == null) {
|
|
1994
2097
|
throw new NotImplementedError();
|
|
@@ -1998,9 +2101,9 @@
|
|
|
1998
2101
|
}
|
|
1999
2102
|
}
|
|
2000
2103
|
var tmp_10 = tmp_9;
|
|
2001
|
-
var tmp1_safe_receiver_0 = media.
|
|
2104
|
+
var tmp1_safe_receiver_0 = media.r1q_1;
|
|
2002
2105
|
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : resolve_3(tmp1_safe_receiver_0, $this);
|
|
2003
|
-
var tmp3_elvis_lhs_0 = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.
|
|
2106
|
+
var tmp3_elvis_lhs_0 = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.c1r_1;
|
|
2004
2107
|
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));
|
|
2005
2108
|
tmp0_mapTo_4.a(tmp$ret$44);
|
|
2006
2109
|
}
|
|
@@ -2019,21 +2122,21 @@
|
|
|
2019
2122
|
}
|
|
2020
2123
|
return tmp0_flatMapTo;
|
|
2021
2124
|
}
|
|
2022
|
-
function
|
|
2023
|
-
return flatMapRequests_0($this.
|
|
2125
|
+
function parseParameters_0($this) {
|
|
2126
|
+
return flatMapRequests_0($this.t27_1, $this, OpenApiParser$parseParameters$lambda_0($this));
|
|
2024
2127
|
}
|
|
2025
2128
|
function parseRequestBody_0($this) {
|
|
2026
|
-
return flatMapRequests_0($this.
|
|
2129
|
+
return flatMapRequests_0($this.t27_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
|
|
2027
2130
|
}
|
|
2028
2131
|
function parseResponseBody_0($this) {
|
|
2029
|
-
return flatMapResponses_0($this.
|
|
2132
|
+
return flatMapResponses_0($this.t27_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
|
|
2030
2133
|
}
|
|
2031
2134
|
function parseComponents($this) {
|
|
2032
2135
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2033
2136
|
// Inline function 'kotlin.collections.filter' call
|
|
2034
2137
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2035
|
-
var tmp0_safe_receiver = $this.
|
|
2036
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2138
|
+
var tmp0_safe_receiver = $this.t27_1.w1n_1;
|
|
2139
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r1t_1;
|
|
2037
2140
|
var tmp1_filter = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2038
2141
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2039
2142
|
var tmp0_filterTo = LinkedHashMap_init_$Create$();
|
|
@@ -2045,12 +2148,12 @@
|
|
|
2045
2148
|
var s = element.w();
|
|
2046
2149
|
var tmp;
|
|
2047
2150
|
if (s instanceof SchemaObject_0) {
|
|
2048
|
-
tmp = s.
|
|
2151
|
+
tmp = s.s1r_1 == null;
|
|
2049
2152
|
} else {
|
|
2050
2153
|
tmp = false;
|
|
2051
2154
|
}
|
|
2052
2155
|
if (tmp) {
|
|
2053
|
-
tmp0_filterTo.
|
|
2156
|
+
tmp0_filterTo.m3(element.v(), element.w());
|
|
2054
2157
|
}
|
|
2055
2158
|
}
|
|
2056
2159
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -2060,16 +2163,16 @@
|
|
|
2060
2163
|
while (tmp0_iterator_0.d()) {
|
|
2061
2164
|
var element_0 = tmp0_iterator_0.e();
|
|
2062
2165
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2063
|
-
var list = flatten_2(element_0.w(), $this, Common_getInstance().
|
|
2166
|
+
var list = flatten_2(element_0.w(), $this, Common_getInstance().b27([element_0.v()]));
|
|
2064
2167
|
addAll(tmp0_flatMapTo, list);
|
|
2065
2168
|
}
|
|
2066
2169
|
return tmp0_flatMapTo;
|
|
2067
2170
|
}
|
|
2068
|
-
function
|
|
2171
|
+
function isParam_0(_this__u8e3s4, $this) {
|
|
2069
2172
|
return charSequenceGet(_this__u8e3s4, 0) === _Char___init__impl__6a9atx(123) ? charSequenceGet(_this__u8e3s4, _this__u8e3s4.length - 1 | 0) === _Char___init__impl__6a9atx(125) : false;
|
|
2070
2173
|
}
|
|
2071
|
-
function
|
|
2072
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2174
|
+
function toName_1(_this__u8e3s4, $this) {
|
|
2175
|
+
var tmp0_safe_receiver = _this__u8e3s4.d1p_1;
|
|
2073
2176
|
var tmp;
|
|
2074
2177
|
if (tmp0_safe_receiver == null) {
|
|
2075
2178
|
tmp = null;
|
|
@@ -2077,11 +2180,11 @@
|
|
|
2077
2180
|
// Inline function 'kotlin.let' call
|
|
2078
2181
|
// Inline function 'kotlin.contracts.contract' call
|
|
2079
2182
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2080
|
-
tmp = Common_getInstance().
|
|
2183
|
+
tmp = Common_getInstance().b27([tmp0_safe_receiver]);
|
|
2081
2184
|
}
|
|
2082
2185
|
return tmp;
|
|
2083
2186
|
}
|
|
2084
|
-
function
|
|
2187
|
+
function toName_2(_this__u8e3s4, $this) {
|
|
2085
2188
|
// Inline function 'kotlin.collections.filter' call
|
|
2086
2189
|
var tmp0_filter = drop(split(_Path___get_value__impl__thmflc_0(_this__u8e3s4), ['/']), 1);
|
|
2087
2190
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -2121,7 +2224,7 @@
|
|
|
2121
2224
|
var tmp$ret$11;
|
|
2122
2225
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>' call
|
|
2123
2226
|
var tmp;
|
|
2124
|
-
switch (
|
|
2227
|
+
switch (isParam_0(item, $this)) {
|
|
2125
2228
|
case true:
|
|
2126
2229
|
// Inline function 'kotlin.text.substring' call
|
|
2127
2230
|
|
|
@@ -2129,7 +2232,7 @@
|
|
|
2129
2232
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2130
2233
|
|
|
2131
2234
|
var param = item.substring(1, tmp0_substring);
|
|
2132
|
-
var name =
|
|
2235
|
+
var name = toName_2(_this__u8e3s4, $this);
|
|
2133
2236
|
// Inline function 'kotlin.collections.find' call
|
|
2134
2237
|
|
|
2135
2238
|
var tmp$ret$7;
|
|
@@ -2139,7 +2242,7 @@
|
|
|
2139
2242
|
while (tmp0_iterator_1.d()) {
|
|
2140
2243
|
var element_0 = tmp0_iterator_1.e();
|
|
2141
2244
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2142
|
-
if (element_0.
|
|
2245
|
+
if (element_0.a1q_1 === param) {
|
|
2143
2246
|
tmp$ret$7 = element_0;
|
|
2144
2247
|
break $l$block;
|
|
2145
2248
|
}
|
|
@@ -2148,9 +2251,9 @@
|
|
|
2148
2251
|
}
|
|
2149
2252
|
|
|
2150
2253
|
var tmp1_safe_receiver = tmp$ret$7;
|
|
2151
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2254
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.w1p_1;
|
|
2152
2255
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : resolve_3(tmp2_safe_receiver, $this);
|
|
2153
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : toReference_2(tmp3_safe_receiver, $this, Common_getInstance().
|
|
2256
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : toReference_2(tmp3_safe_receiver, $this, Common_getInstance().b27([name, 'Parameter', param]));
|
|
2154
2257
|
var tmp_0;
|
|
2155
2258
|
if (tmp4_safe_receiver == null) {
|
|
2156
2259
|
tmp_0 = null;
|
|
@@ -2185,7 +2288,7 @@
|
|
|
2185
2288
|
return tmp0_mapTo;
|
|
2186
2289
|
}
|
|
2187
2290
|
function resolveParameters_1(_this__u8e3s4, $this) {
|
|
2188
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2291
|
+
var tmp0_safe_receiver = _this__u8e3s4.e1p_1;
|
|
2189
2292
|
var tmp;
|
|
2190
2293
|
if (tmp0_safe_receiver == null) {
|
|
2191
2294
|
tmp = null;
|
|
@@ -2224,7 +2327,7 @@
|
|
|
2224
2327
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2225
2328
|
}
|
|
2226
2329
|
function resolveParameters_2(_this__u8e3s4, $this) {
|
|
2227
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2330
|
+
var tmp0_safe_receiver = _this__u8e3s4.u1o_1;
|
|
2228
2331
|
var tmp;
|
|
2229
2332
|
if (tmp0_safe_receiver == null) {
|
|
2230
2333
|
tmp = null;
|
|
@@ -2263,9 +2366,9 @@
|
|
|
2263
2366
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2264
2367
|
}
|
|
2265
2368
|
function resolveParameterObject_0(_this__u8e3s4, $this) {
|
|
2266
|
-
var tmp0_safe_receiver = $this.
|
|
2267
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2268
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2369
|
+
var tmp0_safe_receiver = $this.t27_1.w1n_1;
|
|
2370
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t1t_1;
|
|
2371
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o2(getReference_0(_this__u8e3s4, $this));
|
|
2269
2372
|
var tmp;
|
|
2270
2373
|
if (tmp2_safe_receiver == null) {
|
|
2271
2374
|
tmp = null;
|
|
@@ -2288,9 +2391,9 @@
|
|
|
2288
2391
|
return tmp;
|
|
2289
2392
|
}
|
|
2290
2393
|
function resolveSchemaObject_0(_this__u8e3s4, $this) {
|
|
2291
|
-
var tmp0_safe_receiver = $this.
|
|
2292
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2293
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2394
|
+
var tmp0_safe_receiver = $this.t27_1.w1n_1;
|
|
2395
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r1t_1;
|
|
2396
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o2(getReference_0(_this__u8e3s4, $this));
|
|
2294
2397
|
var tmp;
|
|
2295
2398
|
if (tmp2_safe_receiver == null) {
|
|
2296
2399
|
tmp = null;
|
|
@@ -2313,7 +2416,7 @@
|
|
|
2313
2416
|
var tmp3_elvis_lhs = tmp;
|
|
2314
2417
|
var tmp_1;
|
|
2315
2418
|
if (tmp3_elvis_lhs == null) {
|
|
2316
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2419
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.y1q_1);
|
|
2317
2420
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2318
2421
|
} else {
|
|
2319
2422
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2321,9 +2424,9 @@
|
|
|
2321
2424
|
return tmp_1;
|
|
2322
2425
|
}
|
|
2323
2426
|
function resolveHeaderObject(_this__u8e3s4, $this) {
|
|
2324
|
-
var tmp0_safe_receiver = $this.
|
|
2325
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2326
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2427
|
+
var tmp0_safe_receiver = $this.t27_1.w1n_1;
|
|
2428
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w1t_1;
|
|
2429
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o2(getReference_0(_this__u8e3s4, $this));
|
|
2327
2430
|
var tmp;
|
|
2328
2431
|
if (tmp2_safe_receiver == null) {
|
|
2329
2432
|
tmp = null;
|
|
@@ -2346,7 +2449,7 @@
|
|
|
2346
2449
|
var tmp3_elvis_lhs = tmp;
|
|
2347
2450
|
var tmp_1;
|
|
2348
2451
|
if (tmp3_elvis_lhs == null) {
|
|
2349
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2452
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.y1q_1);
|
|
2350
2453
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2351
2454
|
} else {
|
|
2352
2455
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2354,9 +2457,9 @@
|
|
|
2354
2457
|
return tmp_1;
|
|
2355
2458
|
}
|
|
2356
2459
|
function resolveRequestBodyObject(_this__u8e3s4, $this) {
|
|
2357
|
-
var tmp0_safe_receiver = $this.
|
|
2358
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2359
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2460
|
+
var tmp0_safe_receiver = $this.t27_1.w1n_1;
|
|
2461
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v1t_1;
|
|
2462
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o2(getReference_0(_this__u8e3s4, $this));
|
|
2360
2463
|
var tmp;
|
|
2361
2464
|
if (tmp2_safe_receiver == null) {
|
|
2362
2465
|
tmp = null;
|
|
@@ -2379,7 +2482,7 @@
|
|
|
2379
2482
|
var tmp3_elvis_lhs = tmp;
|
|
2380
2483
|
var tmp_1;
|
|
2381
2484
|
if (tmp3_elvis_lhs == null) {
|
|
2382
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2485
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.y1q_1);
|
|
2383
2486
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2384
2487
|
} else {
|
|
2385
2488
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2387,9 +2490,9 @@
|
|
|
2387
2490
|
return tmp_1;
|
|
2388
2491
|
}
|
|
2389
2492
|
function resolveResponseObject_0(_this__u8e3s4, $this) {
|
|
2390
|
-
var tmp0_safe_receiver = $this.
|
|
2391
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2392
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2493
|
+
var tmp0_safe_receiver = $this.t27_1.w1n_1;
|
|
2494
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s1t_1;
|
|
2495
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o2(getReference_0(_this__u8e3s4, $this));
|
|
2393
2496
|
var tmp;
|
|
2394
2497
|
if (tmp2_safe_receiver == null) {
|
|
2395
2498
|
tmp = null;
|
|
@@ -2412,7 +2515,7 @@
|
|
|
2412
2515
|
var tmp3_elvis_lhs = tmp;
|
|
2413
2516
|
var tmp_1;
|
|
2414
2517
|
if (tmp3_elvis_lhs == null) {
|
|
2415
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2518
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.y1q_1);
|
|
2416
2519
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2417
2520
|
} else {
|
|
2418
2521
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2425,7 +2528,7 @@
|
|
|
2425
2528
|
tmp = _this__u8e3s4;
|
|
2426
2529
|
} else {
|
|
2427
2530
|
if (_this__u8e3s4 instanceof ReferenceObject_0) {
|
|
2428
|
-
tmp = resolveSchemaObject_0(_this__u8e3s4, $this).
|
|
2531
|
+
tmp = resolveSchemaObject_0(_this__u8e3s4, $this).j3_1;
|
|
2429
2532
|
} else {
|
|
2430
2533
|
noWhenBranchMatchedException();
|
|
2431
2534
|
}
|
|
@@ -2438,7 +2541,7 @@
|
|
|
2438
2541
|
tmp = _this__u8e3s4;
|
|
2439
2542
|
} else {
|
|
2440
2543
|
if (_this__u8e3s4 instanceof ReferenceObject_0) {
|
|
2441
|
-
tmp = resolveHeaderObject(_this__u8e3s4, $this).
|
|
2544
|
+
tmp = resolveHeaderObject(_this__u8e3s4, $this).j3_1;
|
|
2442
2545
|
} else {
|
|
2443
2546
|
noWhenBranchMatchedException();
|
|
2444
2547
|
}
|
|
@@ -2451,7 +2554,7 @@
|
|
|
2451
2554
|
tmp = _this__u8e3s4;
|
|
2452
2555
|
} else {
|
|
2453
2556
|
if (_this__u8e3s4 instanceof ReferenceObject_0) {
|
|
2454
|
-
tmp = resolveSchemaObject_0(_this__u8e3s4, $this).
|
|
2557
|
+
tmp = resolveSchemaObject_0(_this__u8e3s4, $this).j3_1;
|
|
2455
2558
|
} else {
|
|
2456
2559
|
if (_this__u8e3s4 instanceof BooleanObject_0) {
|
|
2457
2560
|
throw new NotImplementedError();
|
|
@@ -2468,7 +2571,7 @@
|
|
|
2468
2571
|
tmp = _this__u8e3s4;
|
|
2469
2572
|
} else {
|
|
2470
2573
|
if (_this__u8e3s4 instanceof ReferenceObject_0) {
|
|
2471
|
-
tmp = resolveRequestBodyObject(_this__u8e3s4, $this).
|
|
2574
|
+
tmp = resolveRequestBodyObject(_this__u8e3s4, $this).j3_1;
|
|
2472
2575
|
} else {
|
|
2473
2576
|
noWhenBranchMatchedException();
|
|
2474
2577
|
}
|
|
@@ -2481,7 +2584,7 @@
|
|
|
2481
2584
|
tmp = _this__u8e3s4;
|
|
2482
2585
|
} else {
|
|
2483
2586
|
if (_this__u8e3s4 instanceof ReferenceObject_0) {
|
|
2484
|
-
tmp = resolveResponseObject_0(_this__u8e3s4, $this).
|
|
2587
|
+
tmp = resolveResponseObject_0(_this__u8e3s4, $this).j3_1;
|
|
2485
2588
|
} else {
|
|
2486
2589
|
noWhenBranchMatchedException();
|
|
2487
2590
|
}
|
|
@@ -2490,12 +2593,12 @@
|
|
|
2490
2593
|
}
|
|
2491
2594
|
function flatten_1(_this__u8e3s4, $this, name) {
|
|
2492
2595
|
var tmp;
|
|
2493
|
-
if (!(_this__u8e3s4.
|
|
2596
|
+
if (!(_this__u8e3s4.s1r_1 == null)) {
|
|
2494
2597
|
var tmp_0;
|
|
2495
|
-
if (_this__u8e3s4.
|
|
2598
|
+
if (_this__u8e3s4.s1r_1 instanceof BooleanObject_0) {
|
|
2496
2599
|
tmp_0 = emptyList();
|
|
2497
2600
|
} else {
|
|
2498
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
2601
|
+
var tmp1_safe_receiver = _this__u8e3s4.s1r_1;
|
|
2499
2602
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_5(tmp1_safe_receiver, $this);
|
|
2500
2603
|
var tmp_1;
|
|
2501
2604
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2505,7 +2608,7 @@
|
|
|
2505
2608
|
// Inline function 'kotlin.contracts.contract' call
|
|
2506
2609
|
var tmp_2;
|
|
2507
2610
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2508
|
-
if (!(tmp2_safe_receiver.
|
|
2611
|
+
if (!(tmp2_safe_receiver.r1r_1 == null)) {
|
|
2509
2612
|
tmp_2 = tmp2_safe_receiver;
|
|
2510
2613
|
} else {
|
|
2511
2614
|
tmp_2 = null;
|
|
@@ -2517,15 +2620,15 @@
|
|
|
2517
2620
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
2518
2621
|
}
|
|
2519
2622
|
tmp = tmp_0;
|
|
2520
|
-
} else if (!(_this__u8e3s4.
|
|
2623
|
+
} else if (!(_this__u8e3s4.n1r_1 == null)) {
|
|
2521
2624
|
throw new NotImplementedError('An operation is not implemented: oneOf is not implemented');
|
|
2522
|
-
} else if (!(_this__u8e3s4.
|
|
2625
|
+
} else if (!(_this__u8e3s4.o1r_1 == null)) {
|
|
2523
2626
|
throw new NotImplementedError('An operation is not implemented: anyOf is not implemented');
|
|
2524
|
-
} else if (!(_this__u8e3s4.
|
|
2627
|
+
} else if (!(_this__u8e3s4.m1r_1 == null)) {
|
|
2525
2628
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
2526
2629
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2527
2630
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2528
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2631
|
+
var tmp0_elvis_lhs = _this__u8e3s4.m1r_1;
|
|
2529
2632
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2530
2633
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2531
2634
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -2542,14 +2645,14 @@
|
|
|
2542
2645
|
while (tmp0_iterator_0.d()) {
|
|
2543
2646
|
var e = tmp0_iterator_0.e();
|
|
2544
2647
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2545
|
-
var key = e.
|
|
2648
|
+
var key = e.s22_1;
|
|
2546
2649
|
if (set.a(key)) {
|
|
2547
2650
|
list_0.a(e);
|
|
2548
2651
|
}
|
|
2549
2652
|
}
|
|
2550
2653
|
var tmp_3 = listOf(new Type(name, new Shape(list_0)));
|
|
2551
2654
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2552
|
-
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.
|
|
2655
|
+
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.m1r_1);
|
|
2553
2656
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2554
2657
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
2555
2658
|
var tmp0_iterator_1 = tmp3_flatMap.c();
|
|
@@ -2563,7 +2666,7 @@
|
|
|
2563
2666
|
if (element_0 instanceof SchemaObject_0) {
|
|
2564
2667
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2565
2668
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2566
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
2669
|
+
var tmp0_elvis_lhs_0 = element_0.r1r_1;
|
|
2567
2670
|
var tmp1_flatMap_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2568
2671
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2569
2672
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
@@ -2581,7 +2684,7 @@
|
|
|
2581
2684
|
tmp_5 = emptyList();
|
|
2582
2685
|
} else {
|
|
2583
2686
|
if (value instanceof SchemaObject_0) {
|
|
2584
|
-
tmp_5 = flatten_1(value, $this, Common_getInstance().
|
|
2687
|
+
tmp_5 = flatten_1(value, $this, Common_getInstance().b27([name, key_0]));
|
|
2585
2688
|
} else {
|
|
2586
2689
|
noWhenBranchMatchedException();
|
|
2587
2690
|
}
|
|
@@ -2598,10 +2701,10 @@
|
|
|
2598
2701
|
addAll(tmp0_flatMapTo_0, list_2);
|
|
2599
2702
|
}
|
|
2600
2703
|
tmp = plus(tmp_3, tmp0_flatMapTo_0);
|
|
2601
|
-
} else if (!(_this__u8e3s4.
|
|
2704
|
+
} else if (!(_this__u8e3s4.l1s_1 == null)) {
|
|
2602
2705
|
// Inline function 'kotlin.let' call
|
|
2603
2706
|
// Inline function 'kotlin.collections.map' call
|
|
2604
|
-
var tmp4_map = ensureNotNull(_this__u8e3s4.
|
|
2707
|
+
var tmp4_map = ensureNotNull(_this__u8e3s4.l1s_1);
|
|
2605
2708
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2606
2709
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp4_map, 10));
|
|
2607
2710
|
var tmp0_iterator_3 = tmp4_map.c();
|
|
@@ -2609,7 +2712,7 @@
|
|
|
2609
2712
|
var item = tmp0_iterator_3.e();
|
|
2610
2713
|
var tmp$ret$18;
|
|
2611
2714
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2612
|
-
tmp$ret$18 = item.
|
|
2715
|
+
tmp$ret$18 = item.y12();
|
|
2613
2716
|
tmp0_mapTo.a(tmp$ret$18);
|
|
2614
2717
|
}
|
|
2615
2718
|
var tmp5_let = toSet(tmp0_mapTo);
|
|
@@ -2617,16 +2720,16 @@
|
|
|
2617
2720
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2618
2721
|
tmp = listOf(new Enum(name, tmp5_let));
|
|
2619
2722
|
} else {
|
|
2620
|
-
var tmp5_subject = _this__u8e3s4.
|
|
2723
|
+
var tmp5_subject = _this__u8e3s4.l1r_1;
|
|
2621
2724
|
var tmp_6;
|
|
2622
|
-
switch (tmp5_subject == null ? -1 : tmp5_subject.
|
|
2725
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.z4_1) {
|
|
2623
2726
|
case -1:
|
|
2624
2727
|
case 5:
|
|
2625
2728
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2626
2729
|
|
|
2627
2730
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2628
2731
|
|
|
2629
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
2732
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.r1r_1;
|
|
2630
2733
|
var tmp7_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
2631
2734
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2632
2735
|
|
|
@@ -2641,7 +2744,7 @@
|
|
|
2641
2744
|
var key_1 = element_2.v();
|
|
2642
2745
|
// Inline function 'kotlin.collections.component2' call
|
|
2643
2746
|
var value_0 = element_2.w();
|
|
2644
|
-
var list_3 = flatten_2(value_0, $this, Common_getInstance().
|
|
2747
|
+
var list_3 = flatten_2(value_0, $this, Common_getInstance().b27([name, key_1]));
|
|
2645
2748
|
addAll(tmp0_flatMapTo_2, list_3);
|
|
2646
2749
|
}
|
|
2647
2750
|
|
|
@@ -2650,7 +2753,7 @@
|
|
|
2650
2753
|
tmp_6 = plus(schema, fields);
|
|
2651
2754
|
break;
|
|
2652
2755
|
case 4:
|
|
2653
|
-
var tmp6_safe_receiver = _this__u8e3s4.
|
|
2756
|
+
var tmp6_safe_receiver = _this__u8e3s4.q1r_1;
|
|
2654
2757
|
var tmp_7;
|
|
2655
2758
|
if (tmp6_safe_receiver == null) {
|
|
2656
2759
|
tmp_7 = null;
|
|
@@ -2663,7 +2766,7 @@
|
|
|
2663
2766
|
tmp_8 = emptyList();
|
|
2664
2767
|
} else {
|
|
2665
2768
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
2666
|
-
tmp_8 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().
|
|
2769
|
+
tmp_8 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().b27([name, 'array']));
|
|
2667
2770
|
} else {
|
|
2668
2771
|
noWhenBranchMatchedException();
|
|
2669
2772
|
}
|
|
@@ -2700,11 +2803,11 @@
|
|
|
2700
2803
|
var tmp0_let = resolveSchemaObject_0(_this__u8e3s4, $this);
|
|
2701
2804
|
// Inline function 'kotlin.contracts.contract' call
|
|
2702
2805
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
|
|
2703
|
-
var referencingObject = tmp0_let.
|
|
2704
|
-
var schema = tmp0_let.
|
|
2806
|
+
var referencingObject = tmp0_let.k3();
|
|
2807
|
+
var schema = tmp0_let.l3();
|
|
2705
2808
|
var tmp;
|
|
2706
|
-
if (!(schema.
|
|
2707
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2809
|
+
if (!(schema.s1r_1 == null)) {
|
|
2810
|
+
var additionalProperties = ensureNotNull(schema.s1r_1);
|
|
2708
2811
|
var tmp_0;
|
|
2709
2812
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
2710
2813
|
tmp_0 = new Any(false, true);
|
|
@@ -2720,24 +2823,24 @@
|
|
|
2720
2823
|
}
|
|
2721
2824
|
}
|
|
2722
2825
|
tmp = tmp_0;
|
|
2723
|
-
} else if (!(schema.
|
|
2724
|
-
tmp = new Custom(Common_getInstance().
|
|
2725
|
-
} else if (isPrimitive_0(schema.
|
|
2726
|
-
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.
|
|
2826
|
+
} else if (!(schema.l1s_1 == null)) {
|
|
2827
|
+
tmp = new Custom(Common_getInstance().b27([getReference_0(referencingObject, $this)]), false, false);
|
|
2828
|
+
} else if (isPrimitive_0(schema.l1r_1)) {
|
|
2829
|
+
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.l1r_1), $this), false, false);
|
|
2727
2830
|
} else {
|
|
2728
|
-
var tmp0_subject = schema.
|
|
2831
|
+
var tmp0_subject = schema.l1r_1;
|
|
2729
2832
|
var tmp_1;
|
|
2730
|
-
if ((tmp0_subject == null ? -1 : tmp0_subject.
|
|
2731
|
-
var items = schema.
|
|
2833
|
+
if ((tmp0_subject == null ? -1 : tmp0_subject.z4_1) === 4) {
|
|
2834
|
+
var items = schema.q1r_1;
|
|
2732
2835
|
var tmp_2;
|
|
2733
2836
|
if (items instanceof ReferenceObject_0) {
|
|
2734
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2837
|
+
tmp_2 = new Custom(Common_getInstance().b27([getReference_0(items, $this)]), true);
|
|
2735
2838
|
} else {
|
|
2736
2839
|
if (items instanceof SchemaObject_0) {
|
|
2737
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2840
|
+
tmp_2 = new Custom(Common_getInstance().b27([getReference_0(referencingObject, $this), 'Array']), true);
|
|
2738
2841
|
} else {
|
|
2739
2842
|
if (items == null) {
|
|
2740
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.
|
|
2843
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.y1q_1);
|
|
2741
2844
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2742
2845
|
} else {
|
|
2743
2846
|
noWhenBranchMatchedException();
|
|
@@ -2746,7 +2849,7 @@
|
|
|
2746
2849
|
}
|
|
2747
2850
|
tmp_1 = tmp_2;
|
|
2748
2851
|
} else {
|
|
2749
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
2852
|
+
tmp_1 = new Custom(Common_getInstance().b27([getReference_0(referencingObject, $this)]), false);
|
|
2750
2853
|
}
|
|
2751
2854
|
tmp = tmp_1;
|
|
2752
2855
|
}
|
|
@@ -2754,8 +2857,8 @@
|
|
|
2754
2857
|
}
|
|
2755
2858
|
function toReference_2(_this__u8e3s4, $this, name) {
|
|
2756
2859
|
var tmp;
|
|
2757
|
-
if (!(_this__u8e3s4.
|
|
2758
|
-
var additionalProperties = ensureNotNull(_this__u8e3s4.
|
|
2860
|
+
if (!(_this__u8e3s4.s1r_1 == null)) {
|
|
2861
|
+
var additionalProperties = ensureNotNull(_this__u8e3s4.s1r_1);
|
|
2759
2862
|
var tmp_0;
|
|
2760
2863
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
2761
2864
|
tmp_0 = new Any(false, true);
|
|
@@ -2768,7 +2871,7 @@
|
|
|
2768
2871
|
// Inline function 'kotlin.contracts.contract' call
|
|
2769
2872
|
var tmp_1;
|
|
2770
2873
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
|
|
2771
|
-
if (isPrimitive_0(additionalProperties.
|
|
2874
|
+
if (isPrimitive_0(additionalProperties.l1r_1) ? true : !(additionalProperties.r1r_1 == null)) {
|
|
2772
2875
|
tmp_1 = additionalProperties;
|
|
2773
2876
|
} else {
|
|
2774
2877
|
tmp_1 = null;
|
|
@@ -2791,32 +2894,32 @@
|
|
|
2791
2894
|
}
|
|
2792
2895
|
}
|
|
2793
2896
|
tmp = tmp_0;
|
|
2794
|
-
} else if (!(_this__u8e3s4.
|
|
2795
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
2897
|
+
} else if (!(_this__u8e3s4.l1s_1 == null)) {
|
|
2898
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.s1r_1 == null));
|
|
2796
2899
|
} else {
|
|
2797
|
-
var type = _this__u8e3s4.
|
|
2900
|
+
var type = _this__u8e3s4.l1r_1;
|
|
2798
2901
|
var tmp_3;
|
|
2799
|
-
switch (type == null ? -1 : type.
|
|
2902
|
+
switch (type == null ? -1 : type.z4_1) {
|
|
2800
2903
|
case 0:
|
|
2801
2904
|
case 1:
|
|
2802
2905
|
case 2:
|
|
2803
2906
|
case 3:
|
|
2804
|
-
tmp_3 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.
|
|
2907
|
+
tmp_3 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.s1r_1 == null));
|
|
2805
2908
|
break;
|
|
2806
2909
|
case -1:
|
|
2807
2910
|
case 5:
|
|
2808
2911
|
var tmp_4;
|
|
2809
|
-
var tmp_5 = _this__u8e3s4.
|
|
2912
|
+
var tmp_5 = _this__u8e3s4.s1r_1;
|
|
2810
2913
|
if (tmp_5 instanceof BooleanObject_0) {
|
|
2811
|
-
tmp_4 = new Any(false, !(_this__u8e3s4.
|
|
2914
|
+
tmp_4 = new Any(false, !(_this__u8e3s4.s1r_1 == null));
|
|
2812
2915
|
} else {
|
|
2813
|
-
tmp_4 = new Custom(name, false, !(_this__u8e3s4.
|
|
2916
|
+
tmp_4 = new Custom(name, false, !(_this__u8e3s4.s1r_1 == null));
|
|
2814
2917
|
}
|
|
2815
2918
|
|
|
2816
2919
|
tmp_3 = tmp_4;
|
|
2817
2920
|
break;
|
|
2818
2921
|
case 4:
|
|
2819
|
-
var it = _this__u8e3s4.
|
|
2922
|
+
var it = _this__u8e3s4.q1r_1;
|
|
2820
2923
|
var tmp_6;
|
|
2821
2924
|
if (it instanceof ReferenceObject_0) {
|
|
2822
2925
|
tmp_6 = toIterable_0(toReference_1(it, $this));
|
|
@@ -2854,45 +2957,45 @@
|
|
|
2854
2957
|
var tmp$ret$0;
|
|
2855
2958
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toOperationList.<anonymous>' call
|
|
2856
2959
|
var tmp;
|
|
2857
|
-
switch (element.
|
|
2960
|
+
switch (element.z4_1) {
|
|
2858
2961
|
case 0:
|
|
2859
|
-
tmp = _this__u8e3s4.
|
|
2962
|
+
tmp = _this__u8e3s4.l1o_1;
|
|
2860
2963
|
break;
|
|
2861
2964
|
case 1:
|
|
2862
|
-
tmp = _this__u8e3s4.
|
|
2965
|
+
tmp = _this__u8e3s4.n1o_1;
|
|
2863
2966
|
break;
|
|
2864
2967
|
case 2:
|
|
2865
|
-
tmp = _this__u8e3s4.
|
|
2968
|
+
tmp = _this__u8e3s4.m1o_1;
|
|
2866
2969
|
break;
|
|
2867
2970
|
case 3:
|
|
2868
|
-
tmp = _this__u8e3s4.
|
|
2971
|
+
tmp = _this__u8e3s4.o1o_1;
|
|
2869
2972
|
break;
|
|
2870
2973
|
case 4:
|
|
2871
|
-
tmp = _this__u8e3s4.
|
|
2974
|
+
tmp = _this__u8e3s4.p1o_1;
|
|
2872
2975
|
break;
|
|
2873
2976
|
case 5:
|
|
2874
|
-
tmp = _this__u8e3s4.
|
|
2977
|
+
tmp = _this__u8e3s4.q1o_1;
|
|
2875
2978
|
break;
|
|
2876
2979
|
case 6:
|
|
2877
|
-
tmp = _this__u8e3s4.
|
|
2980
|
+
tmp = _this__u8e3s4.r1o_1;
|
|
2878
2981
|
break;
|
|
2879
2982
|
case 7:
|
|
2880
|
-
tmp = _this__u8e3s4.
|
|
2983
|
+
tmp = _this__u8e3s4.s1o_1;
|
|
2881
2984
|
break;
|
|
2882
2985
|
default:
|
|
2883
2986
|
noWhenBranchMatchedException();
|
|
2884
2987
|
break;
|
|
2885
2988
|
}
|
|
2886
2989
|
tmp$ret$0 = tmp;
|
|
2887
|
-
result.
|
|
2990
|
+
result.m3(element, tmp$ret$0);
|
|
2888
2991
|
}
|
|
2889
2992
|
return filterNotNullValues_0(result);
|
|
2890
2993
|
}
|
|
2891
2994
|
function getReference_0(_this__u8e3s4, $this) {
|
|
2892
|
-
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
2995
|
+
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.y1q_1), ['/']), 3);
|
|
2893
2996
|
var tmp;
|
|
2894
2997
|
if (tmp0_elvis_lhs == null) {
|
|
2895
|
-
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
2998
|
+
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.y1q_1);
|
|
2896
2999
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2897
3000
|
} else {
|
|
2898
3001
|
tmp = tmp0_elvis_lhs;
|
|
@@ -2901,7 +3004,7 @@
|
|
|
2901
3004
|
}
|
|
2902
3005
|
function toPrimitive_0(_this__u8e3s4, $this) {
|
|
2903
3006
|
var tmp;
|
|
2904
|
-
switch (_this__u8e3s4.
|
|
3007
|
+
switch (_this__u8e3s4.z4_1) {
|
|
2905
3008
|
case 0:
|
|
2906
3009
|
tmp = Type_String_getInstance();
|
|
2907
3010
|
break;
|
|
@@ -2922,7 +3025,7 @@
|
|
|
2922
3025
|
function toField_1(_this__u8e3s4, $this, name) {
|
|
2923
3026
|
// Inline function 'kotlin.collections.map' call
|
|
2924
3027
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2925
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3028
|
+
var tmp0_elvis_lhs = _this__u8e3s4.r1r_1;
|
|
2926
3029
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2927
3030
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2928
3031
|
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.f());
|
|
@@ -2939,16 +3042,16 @@
|
|
|
2939
3042
|
var tmp;
|
|
2940
3043
|
if (value instanceof SchemaObject_0) {
|
|
2941
3044
|
var tmp_0 = new Identifier(key);
|
|
2942
|
-
var tmp_1 = !(value.
|
|
2943
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
2944
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3045
|
+
var tmp_1 = !(value.l1s_1 == null) ? toReference_2(value, $this, Common_getInstance().b27([name, key])) : equals(value.l1r_1, Type_ARRAY_getInstance_0()) ? toReference_2(value, $this, Common_getInstance().b27([name, key, 'Array'])) : toReference_2(value, $this, Common_getInstance().b27([name, key]));
|
|
3046
|
+
var tmp1_safe_receiver = _this__u8e3s4.k1s_1;
|
|
3047
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k1(key);
|
|
2945
3048
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
2946
3049
|
} else {
|
|
2947
3050
|
if (value instanceof ReferenceObject_0) {
|
|
2948
3051
|
var tmp_2 = new Identifier(key);
|
|
2949
|
-
var tmp_3 = new Custom(Common_getInstance().
|
|
2950
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
2951
|
-
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
3052
|
+
var tmp_3 = new Custom(Common_getInstance().b27([getReference_0(value, $this)]), false);
|
|
3053
|
+
var tmp3_safe_receiver = _this__u8e3s4.k1s_1;
|
|
3054
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.k1(key);
|
|
2952
3055
|
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
2953
3056
|
} else {
|
|
2954
3057
|
noWhenBranchMatchedException();
|
|
@@ -2961,7 +3064,7 @@
|
|
|
2961
3064
|
}
|
|
2962
3065
|
function toField_2(_this__u8e3s4, $this, name) {
|
|
2963
3066
|
// Inline function 'kotlin.let' call
|
|
2964
|
-
var s = _this__u8e3s4.
|
|
3067
|
+
var s = _this__u8e3s4.w1p_1;
|
|
2965
3068
|
var tmp;
|
|
2966
3069
|
if (s instanceof ReferenceObject_0) {
|
|
2967
3070
|
tmp = toReference_1(s, $this);
|
|
@@ -2979,13 +3082,13 @@
|
|
|
2979
3082
|
var tmp0_let = tmp;
|
|
2980
3083
|
// Inline function 'kotlin.contracts.contract' call
|
|
2981
3084
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
2982
|
-
var tmp_0 = new Identifier(_this__u8e3s4.
|
|
2983
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3085
|
+
var tmp_0 = new Identifier(_this__u8e3s4.a1q_1);
|
|
3086
|
+
var tmp0_elvis_lhs = _this__u8e3s4.q1p_1;
|
|
2984
3087
|
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
2985
3088
|
}
|
|
2986
3089
|
function toField_3(_this__u8e3s4, $this, identifier, name) {
|
|
2987
3090
|
// Inline function 'kotlin.let' call
|
|
2988
|
-
var s = _this__u8e3s4.
|
|
3091
|
+
var s = _this__u8e3s4.j1t_1;
|
|
2989
3092
|
var tmp;
|
|
2990
3093
|
if (s instanceof ReferenceObject_0) {
|
|
2991
3094
|
tmp = toReference_1(s, $this);
|
|
@@ -3004,23 +3107,23 @@
|
|
|
3004
3107
|
// Inline function 'kotlin.contracts.contract' call
|
|
3005
3108
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3006
3109
|
var tmp_0 = new Identifier(identifier);
|
|
3007
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3110
|
+
var tmp0_elvis_lhs = _this__u8e3s4.d1t_1;
|
|
3008
3111
|
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3009
3112
|
}
|
|
3010
3113
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
3011
|
-
this.
|
|
3012
|
-
this.
|
|
3013
|
-
this.
|
|
3014
|
-
this.
|
|
3114
|
+
this.u27_1 = path;
|
|
3115
|
+
this.v27_1 = pathItem;
|
|
3116
|
+
this.w27_1 = method;
|
|
3117
|
+
this.x27_1 = operation;
|
|
3015
3118
|
}
|
|
3016
3119
|
protoOf(FlattenRequest_0).toString = function () {
|
|
3017
|
-
return 'FlattenRequest(path=' + new Path_0(this.
|
|
3120
|
+
return 'FlattenRequest(path=' + new Path_0(this.u27_1) + ', pathItem=' + this.v27_1 + ', method=' + this.w27_1 + ', operation=' + this.x27_1 + ')';
|
|
3018
3121
|
};
|
|
3019
3122
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
3020
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3021
|
-
result = imul(result, 31) + this.
|
|
3022
|
-
result = imul(result, 31) + this.
|
|
3023
|
-
result = imul(result, 31) + this.
|
|
3123
|
+
var result = Path__hashCode_impl_go73kd_0(this.u27_1);
|
|
3124
|
+
result = imul(result, 31) + this.v27_1.hashCode() | 0;
|
|
3125
|
+
result = imul(result, 31) + this.w27_1.hashCode() | 0;
|
|
3126
|
+
result = imul(result, 31) + this.x27_1.hashCode() | 0;
|
|
3024
3127
|
return result;
|
|
3025
3128
|
};
|
|
3026
3129
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -3029,20 +3132,20 @@
|
|
|
3029
3132
|
if (!(other instanceof FlattenRequest_0))
|
|
3030
3133
|
return false;
|
|
3031
3134
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
3032
|
-
if (!(this.
|
|
3135
|
+
if (!(this.u27_1 === tmp0_other_with_cast.u27_1))
|
|
3033
3136
|
return false;
|
|
3034
|
-
if (!this.
|
|
3137
|
+
if (!this.v27_1.equals(tmp0_other_with_cast.v27_1))
|
|
3035
3138
|
return false;
|
|
3036
|
-
if (!this.
|
|
3139
|
+
if (!this.w27_1.equals(tmp0_other_with_cast.w27_1))
|
|
3037
3140
|
return false;
|
|
3038
|
-
if (!this.
|
|
3141
|
+
if (!this.x27_1.equals(tmp0_other_with_cast.x27_1))
|
|
3039
3142
|
return false;
|
|
3040
3143
|
return true;
|
|
3041
3144
|
};
|
|
3042
3145
|
function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
3043
3146
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3044
3147
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3045
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
3148
|
+
var tmp0_flatMap = _this__u8e3s4.v1n_1;
|
|
3046
3149
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3047
3150
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
3048
3151
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -3051,7 +3154,7 @@
|
|
|
3051
3154
|
var element = tmp0_iterator.e();
|
|
3052
3155
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
3053
3156
|
// Inline function 'kotlin.collections.component1' call
|
|
3054
|
-
var path = element.v().
|
|
3157
|
+
var path = element.v().e1o_1;
|
|
3055
3158
|
// Inline function 'kotlin.collections.component2' call
|
|
3056
3159
|
var pathItem = element.w();
|
|
3057
3160
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3086,23 +3189,23 @@
|
|
|
3086
3189
|
return tmp0_flatMapTo_0;
|
|
3087
3190
|
}
|
|
3088
3191
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
3089
|
-
this.
|
|
3090
|
-
this.
|
|
3091
|
-
this.
|
|
3092
|
-
this.
|
|
3093
|
-
this.
|
|
3094
|
-
this.
|
|
3192
|
+
this.y27_1 = path;
|
|
3193
|
+
this.z27_1 = pathItem;
|
|
3194
|
+
this.a28_1 = method;
|
|
3195
|
+
this.b28_1 = operation;
|
|
3196
|
+
this.c28_1 = statusCode;
|
|
3197
|
+
this.d28_1 = response;
|
|
3095
3198
|
}
|
|
3096
3199
|
protoOf(FlattenResponse_0).toString = function () {
|
|
3097
|
-
return 'FlattenResponse(path=' + new Path_0(this.
|
|
3200
|
+
return 'FlattenResponse(path=' + new Path_0(this.y27_1) + ', pathItem=' + this.z27_1 + ', method=' + this.a28_1 + ', operation=' + this.b28_1 + ', statusCode=' + new StatusCode_0(this.c28_1) + ', response=' + this.d28_1 + ')';
|
|
3098
3201
|
};
|
|
3099
3202
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
3100
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3101
|
-
result = imul(result, 31) + this.
|
|
3102
|
-
result = imul(result, 31) + this.
|
|
3103
|
-
result = imul(result, 31) + this.
|
|
3104
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.
|
|
3105
|
-
result = imul(result, 31) + hashCode(this.
|
|
3203
|
+
var result = Path__hashCode_impl_go73kd_0(this.y27_1);
|
|
3204
|
+
result = imul(result, 31) + this.z27_1.hashCode() | 0;
|
|
3205
|
+
result = imul(result, 31) + this.a28_1.hashCode() | 0;
|
|
3206
|
+
result = imul(result, 31) + this.b28_1.hashCode() | 0;
|
|
3207
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.c28_1) | 0;
|
|
3208
|
+
result = imul(result, 31) + hashCode(this.d28_1) | 0;
|
|
3106
3209
|
return result;
|
|
3107
3210
|
};
|
|
3108
3211
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -3111,24 +3214,24 @@
|
|
|
3111
3214
|
if (!(other instanceof FlattenResponse_0))
|
|
3112
3215
|
return false;
|
|
3113
3216
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
3114
|
-
if (!(this.
|
|
3217
|
+
if (!(this.y27_1 === tmp0_other_with_cast.y27_1))
|
|
3115
3218
|
return false;
|
|
3116
|
-
if (!this.
|
|
3219
|
+
if (!this.z27_1.equals(tmp0_other_with_cast.z27_1))
|
|
3117
3220
|
return false;
|
|
3118
|
-
if (!this.
|
|
3221
|
+
if (!this.a28_1.equals(tmp0_other_with_cast.a28_1))
|
|
3119
3222
|
return false;
|
|
3120
|
-
if (!this.
|
|
3223
|
+
if (!this.b28_1.equals(tmp0_other_with_cast.b28_1))
|
|
3121
3224
|
return false;
|
|
3122
|
-
if (!(this.
|
|
3225
|
+
if (!(this.c28_1 === tmp0_other_with_cast.c28_1))
|
|
3123
3226
|
return false;
|
|
3124
|
-
if (!equals(this.
|
|
3227
|
+
if (!equals(this.d28_1, tmp0_other_with_cast.d28_1))
|
|
3125
3228
|
return false;
|
|
3126
3229
|
return true;
|
|
3127
3230
|
};
|
|
3128
3231
|
function flatMapResponses_0(_this__u8e3s4, $this, f) {
|
|
3129
3232
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3130
3233
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3131
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
3234
|
+
var tmp0_flatMap = _this__u8e3s4.v1n_1;
|
|
3132
3235
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3133
3236
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
3134
3237
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -3137,7 +3240,7 @@
|
|
|
3137
3240
|
var element = tmp0_iterator.e();
|
|
3138
3241
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
3139
3242
|
// Inline function 'kotlin.collections.component1' call
|
|
3140
|
-
var path = element.v().
|
|
3243
|
+
var path = element.v().e1o_1;
|
|
3141
3244
|
// Inline function 'kotlin.collections.component2' call
|
|
3142
3245
|
var pathItem = element.w();
|
|
3143
3246
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -3154,7 +3257,7 @@
|
|
|
3154
3257
|
// Inline function 'kotlin.collections.component2' call
|
|
3155
3258
|
var operation = element_0.w();
|
|
3156
3259
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3157
|
-
var tmp0_safe_receiver = operation.
|
|
3260
|
+
var tmp0_safe_receiver = operation.g1p_1;
|
|
3158
3261
|
var tmp;
|
|
3159
3262
|
if (tmp0_safe_receiver == null) {
|
|
3160
3263
|
tmp = null;
|
|
@@ -3169,7 +3272,7 @@
|
|
|
3169
3272
|
var tmp$ret$9;
|
|
3170
3273
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
3171
3274
|
// Inline function 'kotlin.collections.component1' call
|
|
3172
|
-
var statusCode = item.v().
|
|
3275
|
+
var statusCode = item.v().q1s_1;
|
|
3173
3276
|
// Inline function 'kotlin.collections.component2' call
|
|
3174
3277
|
var response = item.w();
|
|
3175
3278
|
tmp$ret$9 = new FlattenResponse_0(path, pathItem, method, operation, statusCode, response);
|
|
@@ -3195,11 +3298,11 @@
|
|
|
3195
3298
|
}
|
|
3196
3299
|
return tmp0_flatMapTo_1;
|
|
3197
3300
|
}
|
|
3198
|
-
function OpenApiParser$parseParameters$
|
|
3301
|
+
function OpenApiParser$parseParameters$lambda_0(this$0) {
|
|
3199
3302
|
return function (req) {
|
|
3200
|
-
var parameters = plus(resolveParameters_2(req.
|
|
3201
|
-
var tmp0_elvis_lhs =
|
|
3202
|
-
var name = tmp0_elvis_lhs == null ?
|
|
3303
|
+
var parameters = plus(resolveParameters_2(req.v27_1, this$0), resolveParameters_1(req.x27_1, this$0));
|
|
3304
|
+
var tmp0_elvis_lhs = toName_1(req.x27_1, this$0);
|
|
3305
|
+
var name = tmp0_elvis_lhs == null ? toName_2(req.u27_1, this$0) + req.w27_1.y4_1 : tmp0_elvis_lhs;
|
|
3203
3306
|
var tmp$ret$2;
|
|
3204
3307
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3205
3308
|
var tmp$ret$1;
|
|
@@ -3210,8 +3313,8 @@
|
|
|
3210
3313
|
var element = tmp0_iterator.e();
|
|
3211
3314
|
var tmp$ret$0;
|
|
3212
3315
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
3213
|
-
var tmp0_safe_receiver = element.
|
|
3214
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().
|
|
3316
|
+
var tmp0_safe_receiver = element.w1p_1;
|
|
3317
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().b27([name, 'Parameter', element.a1q_1]));
|
|
3215
3318
|
tmp$ret$0 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
3216
3319
|
var list = tmp$ret$0;
|
|
3217
3320
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -3223,15 +3326,15 @@
|
|
|
3223
3326
|
}
|
|
3224
3327
|
function OpenApiParser$parseRequestBody$lambda_0(this$0) {
|
|
3225
3328
|
return function (req) {
|
|
3226
|
-
var tmp0_elvis_lhs =
|
|
3227
|
-
var name = tmp0_elvis_lhs == null ?
|
|
3329
|
+
var tmp0_elvis_lhs = toName_1(req.x27_1, this$0);
|
|
3330
|
+
var name = tmp0_elvis_lhs == null ? toName_2(req.u27_1, this$0) + req.w27_1.y4_1 : tmp0_elvis_lhs;
|
|
3228
3331
|
var tmp$ret$6;
|
|
3229
3332
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3230
3333
|
var tmp$ret$0;
|
|
3231
3334
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3232
|
-
var tmp1_safe_receiver = req.
|
|
3335
|
+
var tmp1_safe_receiver = req.x27_1.f1p_1;
|
|
3233
3336
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_6(tmp1_safe_receiver, this$0);
|
|
3234
|
-
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
3337
|
+
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.h1q_1;
|
|
3235
3338
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
3236
3339
|
tmp$ret$0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
3237
3340
|
var tmp1_flatMap = tmp$ret$0;
|
|
@@ -3250,22 +3353,22 @@
|
|
|
3250
3353
|
// Inline function 'kotlin.collections.component2' call
|
|
3251
3354
|
tmp$ret$2 = element.w();
|
|
3252
3355
|
var mediaObject = tmp$ret$2;
|
|
3253
|
-
var schema = mediaObject.
|
|
3356
|
+
var schema = mediaObject.r1q_1;
|
|
3254
3357
|
var tmp;
|
|
3255
3358
|
if (schema instanceof SchemaObject_0) {
|
|
3256
|
-
var tmp0_subject = schema.
|
|
3257
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.
|
|
3359
|
+
var tmp0_subject = schema.l1r_1;
|
|
3360
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.z4_1;
|
|
3258
3361
|
var tmp_0;
|
|
3259
3362
|
switch (tmp0) {
|
|
3260
3363
|
case -1:
|
|
3261
3364
|
case 5:
|
|
3262
|
-
tmp_0 = flatten_1(schema, this$0, Common_getInstance().
|
|
3365
|
+
tmp_0 = flatten_1(schema, this$0, Common_getInstance().b27([name, 'RequestBody']));
|
|
3263
3366
|
break;
|
|
3264
3367
|
case 4:
|
|
3265
3368
|
var tmp$ret$3;
|
|
3266
3369
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3267
|
-
var tmp1_safe_receiver_0 = schema.
|
|
3268
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
3370
|
+
var tmp1_safe_receiver_0 = schema.q1r_1;
|
|
3371
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().b27([name, 'RequestBody']));
|
|
3269
3372
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
3270
3373
|
tmp$ret$3 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
3271
3374
|
|
|
@@ -3298,20 +3401,20 @@
|
|
|
3298
3401
|
}
|
|
3299
3402
|
function OpenApiParser$parseResponseBody$lambda_0(this$0) {
|
|
3300
3403
|
return function (res) {
|
|
3301
|
-
var tmp0_elvis_lhs =
|
|
3302
|
-
var name = tmp0_elvis_lhs == null ?
|
|
3303
|
-
var response = res.
|
|
3404
|
+
var tmp0_elvis_lhs = toName_1(res.b28_1, this$0);
|
|
3405
|
+
var name = tmp0_elvis_lhs == null ? toName_2(res.y27_1, this$0) + res.a28_1.y4_1 : tmp0_elvis_lhs;
|
|
3406
|
+
var response = res.d28_1;
|
|
3304
3407
|
var tmp;
|
|
3305
3408
|
if (response instanceof ResponseObject_0) {
|
|
3306
|
-
var tmp$ret$
|
|
3409
|
+
var tmp$ret$7;
|
|
3307
3410
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3308
3411
|
var tmp$ret$0;
|
|
3309
3412
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3310
|
-
var tmp0_orEmpty = response.
|
|
3413
|
+
var tmp0_orEmpty = response.w1s_1;
|
|
3311
3414
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
3312
3415
|
tmp$ret$0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
3313
3416
|
var tmp1_flatMap = tmp$ret$0;
|
|
3314
|
-
var tmp$ret$
|
|
3417
|
+
var tmp$ret$6;
|
|
3315
3418
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3316
3419
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
3317
3420
|
var tmp$ret$1;
|
|
@@ -3320,32 +3423,36 @@
|
|
|
3320
3423
|
var tmp0_iterator = tmp$ret$1;
|
|
3321
3424
|
while (tmp0_iterator.d()) {
|
|
3322
3425
|
var element = tmp0_iterator.e();
|
|
3323
|
-
var tmp$ret$
|
|
3426
|
+
var tmp$ret$5;
|
|
3324
3427
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
3325
3428
|
var tmp$ret$2;
|
|
3429
|
+
// Inline function 'kotlin.collections.component1' call
|
|
3430
|
+
tmp$ret$2 = element.v().n1q_1;
|
|
3431
|
+
var mediaType = tmp$ret$2;
|
|
3432
|
+
var tmp$ret$3;
|
|
3326
3433
|
// Inline function 'kotlin.collections.component2' call
|
|
3327
|
-
tmp$ret$
|
|
3328
|
-
var mediaObject = tmp$ret$
|
|
3329
|
-
var schema = mediaObject.
|
|
3434
|
+
tmp$ret$3 = element.w();
|
|
3435
|
+
var mediaObject = tmp$ret$3;
|
|
3436
|
+
var schema = mediaObject.r1q_1;
|
|
3330
3437
|
var tmp_0;
|
|
3331
3438
|
if (schema instanceof SchemaObject_0) {
|
|
3332
|
-
var tmp0_subject = schema.
|
|
3333
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.
|
|
3439
|
+
var tmp0_subject = schema.l1r_1;
|
|
3440
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.z4_1;
|
|
3334
3441
|
var tmp_1;
|
|
3335
3442
|
switch (tmp0) {
|
|
3336
3443
|
case -1:
|
|
3337
3444
|
case 5:
|
|
3338
|
-
tmp_1 = flatten_1(schema, this$0, Common_getInstance().
|
|
3445
|
+
tmp_1 = flatten_1(schema, this$0, Common_getInstance().b27([name, _StatusCode___get_value__impl__we50mu_0(res.c28_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
3339
3446
|
break;
|
|
3340
3447
|
case 4:
|
|
3341
|
-
var tmp$ret$
|
|
3448
|
+
var tmp$ret$4;
|
|
3342
3449
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3343
|
-
var tmp1_safe_receiver = schema.
|
|
3344
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().
|
|
3450
|
+
var tmp1_safe_receiver = schema.q1r_1;
|
|
3451
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().b27([name, _StatusCode___get_value__impl__we50mu_0(res.c28_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
3345
3452
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
3346
|
-
tmp$ret$
|
|
3453
|
+
tmp$ret$4 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
3347
3454
|
|
|
3348
|
-
tmp_1 = tmp$ret$
|
|
3455
|
+
tmp_1 = tmp$ret$4;
|
|
3349
3456
|
break;
|
|
3350
3457
|
default:
|
|
3351
3458
|
tmp_1 = emptyList();
|
|
@@ -3355,13 +3462,13 @@
|
|
|
3355
3462
|
} else {
|
|
3356
3463
|
tmp_0 = emptyList();
|
|
3357
3464
|
}
|
|
3358
|
-
tmp$ret$
|
|
3359
|
-
var list = tmp$ret$
|
|
3465
|
+
tmp$ret$5 = tmp_0;
|
|
3466
|
+
var list = tmp$ret$5;
|
|
3360
3467
|
addAll(tmp0_flatMapTo, list);
|
|
3361
3468
|
}
|
|
3362
|
-
tmp$ret$
|
|
3363
|
-
tmp$ret$
|
|
3364
|
-
tmp = tmp$ret$
|
|
3469
|
+
tmp$ret$6 = tmp0_flatMapTo;
|
|
3470
|
+
tmp$ret$7 = tmp$ret$6;
|
|
3471
|
+
tmp = tmp$ret$7;
|
|
3365
3472
|
} else {
|
|
3366
3473
|
if (response instanceof ReferenceObject_0) {
|
|
3367
3474
|
tmp = emptyList();
|
|
@@ -3374,7 +3481,7 @@
|
|
|
3374
3481
|
}
|
|
3375
3482
|
function OpenApiParser$toName$lambda_0(this$0) {
|
|
3376
3483
|
return function (it) {
|
|
3377
|
-
var tmp0_subject =
|
|
3484
|
+
var tmp0_subject = isParam_0(it, this$0);
|
|
3378
3485
|
var tmp;
|
|
3379
3486
|
switch (tmp0_subject) {
|
|
3380
3487
|
case true:
|
|
@@ -3387,10 +3494,10 @@
|
|
|
3387
3494
|
tmp$ret$0 = it;
|
|
3388
3495
|
tmp$ret$1 = tmp$ret$0.substring(1, tmp0_substring);
|
|
3389
3496
|
|
|
3390
|
-
tmp = tmp_0.
|
|
3497
|
+
tmp = tmp_0.b27([tmp$ret$1]);
|
|
3391
3498
|
break;
|
|
3392
3499
|
case false:
|
|
3393
|
-
tmp = Common_getInstance().
|
|
3500
|
+
tmp = Common_getInstance().b27([it]);
|
|
3394
3501
|
break;
|
|
3395
3502
|
default:
|
|
3396
3503
|
noWhenBranchMatchedException();
|
|
@@ -3401,21 +3508,21 @@
|
|
|
3401
3508
|
}
|
|
3402
3509
|
function OpenApiParser_0(openApi) {
|
|
3403
3510
|
Companion_getInstance_1();
|
|
3404
|
-
this.
|
|
3511
|
+
this.t27_1 = openApi;
|
|
3405
3512
|
}
|
|
3406
3513
|
function toMap_1(_this__u8e3s4) {
|
|
3407
3514
|
var tmp;
|
|
3408
3515
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3409
|
-
tmp = _this__u8e3s4.
|
|
3516
|
+
tmp = _this__u8e3s4.r26(VOID, VOID, true);
|
|
3410
3517
|
} else {
|
|
3411
3518
|
if (_this__u8e3s4 instanceof Any) {
|
|
3412
|
-
tmp = _this__u8e3s4.
|
|
3519
|
+
tmp = _this__u8e3s4.m26(VOID, true);
|
|
3413
3520
|
} else {
|
|
3414
3521
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3415
|
-
tmp = _this__u8e3s4.
|
|
3522
|
+
tmp = _this__u8e3s4.t26(VOID, VOID, true);
|
|
3416
3523
|
} else {
|
|
3417
3524
|
if (_this__u8e3s4 instanceof Unit) {
|
|
3418
|
-
tmp = _this__u8e3s4.
|
|
3525
|
+
tmp = _this__u8e3s4.p26(VOID, true);
|
|
3419
3526
|
} else {
|
|
3420
3527
|
noWhenBranchMatchedException();
|
|
3421
3528
|
}
|
|
@@ -3426,7 +3533,7 @@
|
|
|
3426
3533
|
}
|
|
3427
3534
|
function isPrimitive_0(_this__u8e3s4) {
|
|
3428
3535
|
var tmp;
|
|
3429
|
-
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.
|
|
3536
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.z4_1) {
|
|
3430
3537
|
case 0:
|
|
3431
3538
|
tmp = true;
|
|
3432
3539
|
break;
|
|
@@ -3457,16 +3564,16 @@
|
|
|
3457
3564
|
function toIterable_0(_this__u8e3s4) {
|
|
3458
3565
|
var tmp;
|
|
3459
3566
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3460
|
-
tmp = _this__u8e3s4.
|
|
3567
|
+
tmp = _this__u8e3s4.r26(VOID, true);
|
|
3461
3568
|
} else {
|
|
3462
3569
|
if (_this__u8e3s4 instanceof Any) {
|
|
3463
|
-
tmp = _this__u8e3s4.
|
|
3570
|
+
tmp = _this__u8e3s4.m26(true);
|
|
3464
3571
|
} else {
|
|
3465
3572
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3466
|
-
tmp = _this__u8e3s4.
|
|
3573
|
+
tmp = _this__u8e3s4.t26(VOID, true);
|
|
3467
3574
|
} else {
|
|
3468
3575
|
if (_this__u8e3s4 instanceof Unit) {
|
|
3469
|
-
tmp = _this__u8e3s4.
|
|
3576
|
+
tmp = _this__u8e3s4.p26(true);
|
|
3470
3577
|
} else {
|
|
3471
3578
|
noWhenBranchMatchedException();
|
|
3472
3579
|
}
|