@flock/wirespec 0.8.30 → 0.8.32
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 +363 -363
- package/arrow-arrow-atomic.js +15 -15
- package/arrow-arrow-atomic.js.map +1 -1
- package/arrow-arrow-continuations.js +3 -3
- package/arrow-arrow-core.js +86 -86
- package/arrow-arrow-core.js.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js +1360 -1129
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin-openapi-bindings.js +6649 -4499
- package/kotlin-openapi-bindings.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +2523 -1493
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +2323 -1186
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-cli.js +305 -258
- package/wirespec-src-compiler-cli.js.map +1 -1
- package/wirespec-src-compiler-core.js +2357 -1632
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.d.ts +347 -0
- package/wirespec-src-compiler-lib.js +1385 -112
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-openapi.js +742 -606
- package/wirespec-src-openapi.js.map +1 -1
package/wirespec-src-openapi.js
CHANGED
|
@@ -19,104 +19,106 @@
|
|
|
19
19
|
'use strict';
|
|
20
20
|
//region block: imports
|
|
21
21
|
var imul = Math.imul;
|
|
22
|
-
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
22
|
+
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.f1;
|
|
23
23
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
|
|
24
|
-
var split = kotlin_kotlin.$_$.
|
|
25
|
-
var addAll = kotlin_kotlin.$_$.
|
|
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 Default_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
32
|
-
var plus = kotlin_kotlin.$_$.
|
|
33
|
-
var ParameterLocation_QUERY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
34
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
24
|
+
var split = kotlin_kotlin.$_$.q9;
|
|
25
|
+
var addAll = kotlin_kotlin.$_$.i4;
|
|
26
|
+
var VOID = kotlin_kotlin.$_$.vb;
|
|
27
|
+
var joinToString = kotlin_kotlin.$_$.o5;
|
|
28
|
+
var protoOf = kotlin_kotlin.$_$.j8;
|
|
29
|
+
var objectMeta = kotlin_kotlin.$_$.i8;
|
|
30
|
+
var setMetadataFor = kotlin_kotlin.$_$.k8;
|
|
31
|
+
var Default_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y1;
|
|
32
|
+
var plus = kotlin_kotlin.$_$.d6;
|
|
33
|
+
var ParameterLocation_QUERY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.z;
|
|
34
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.l4;
|
|
35
35
|
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 emptyList = kotlin_kotlin.$_$.
|
|
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.$_$.
|
|
43
|
-
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
44
|
-
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
45
|
-
var listOf = kotlin_kotlin.$_$.
|
|
46
|
-
var emptyMap = kotlin_kotlin.$_$.
|
|
47
|
-
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
48
|
-
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
49
|
-
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
36
|
+
var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.x;
|
|
37
|
+
var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w;
|
|
38
|
+
var emptyList = kotlin_kotlin.$_$.b5;
|
|
39
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.qb;
|
|
40
|
+
var NotImplementedError = kotlin_kotlin.$_$.ra;
|
|
41
|
+
var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j;
|
|
42
|
+
var ReferenceObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
|
|
43
|
+
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.h;
|
|
44
|
+
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.j;
|
|
45
|
+
var listOf = kotlin_kotlin.$_$.v5;
|
|
46
|
+
var emptyMap = kotlin_kotlin.$_$.c5;
|
|
47
|
+
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r1;
|
|
48
|
+
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.k;
|
|
49
|
+
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.n;
|
|
50
50
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
51
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
52
|
-
var Map = kotlin_kotlin.$_$.
|
|
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.$_$.
|
|
57
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
51
|
+
var THROW_CCE = kotlin_kotlin.$_$.va;
|
|
52
|
+
var Map = kotlin_kotlin.$_$.d4;
|
|
53
|
+
var isInterface = kotlin_kotlin.$_$.y7;
|
|
54
|
+
var ParameterObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d;
|
|
55
|
+
var Ref = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h;
|
|
56
|
+
var toString = kotlin_kotlin.$_$.o8;
|
|
57
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.f1;
|
|
58
58
|
var BooleanObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a;
|
|
59
|
-
var ResponseObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
60
|
-
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
61
|
-
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
62
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
63
|
-
var toSet = kotlin_kotlin.$_$.
|
|
64
|
-
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
59
|
+
var ResponseObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i;
|
|
60
|
+
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.v;
|
|
61
|
+
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.w;
|
|
62
|
+
var ensureNotNull = kotlin_kotlin.$_$.kb;
|
|
63
|
+
var toSet = kotlin_kotlin.$_$.q6;
|
|
64
|
+
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.o;
|
|
65
65
|
var HashSet_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
66
|
-
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
67
|
-
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
68
|
-
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
69
|
-
var get_entries = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
70
|
-
var mapCapacity = kotlin_kotlin.$_$.
|
|
71
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
66
|
+
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.s;
|
|
67
|
+
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.t;
|
|
68
|
+
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.r;
|
|
69
|
+
var get_entries = kotlin_community_flock_wirespec_compiler_core.$_$.i;
|
|
70
|
+
var mapCapacity = kotlin_kotlin.$_$.x5;
|
|
71
|
+
var coerceAtLeast = kotlin_kotlin.$_$.p8;
|
|
72
72
|
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.o;
|
|
73
|
-
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
74
|
-
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
75
|
-
var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
76
|
-
var Type_Number_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
77
|
-
var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
78
|
-
var Identifier = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
79
|
-
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
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.$_$.
|
|
86
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
87
|
-
var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
88
|
-
var Param = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
89
|
-
var Path = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
90
|
-
var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
91
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
92
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
93
|
-
var StatusCode = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
94
|
-
var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
95
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
96
|
-
var to = kotlin_kotlin.$_$.
|
|
97
|
-
var Unit_getInstance = kotlin_kotlin.$_$.
|
|
98
|
-
var toMap = kotlin_kotlin.$_$.
|
|
99
|
-
var Default_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
100
|
-
var ParameterLocation_QUERY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
101
|
-
var ParameterLocation_HEADER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
102
|
-
var ParameterLocation_COOKIE_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
103
|
-
var _MediaType___get_value__impl__wy58mp = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
104
|
-
var SchemaObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
105
|
-
var ReferenceObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
106
|
-
var _StatusCode___get_value__impl__we50mu_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
107
|
-
var _Path___get_value__impl__thmflc_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
108
|
-
var
|
|
109
|
-
var
|
|
110
|
-
var
|
|
111
|
-
var
|
|
112
|
-
var
|
|
113
|
-
var
|
|
114
|
-
var
|
|
115
|
-
var
|
|
116
|
-
var
|
|
117
|
-
var
|
|
118
|
-
var
|
|
119
|
-
var
|
|
73
|
+
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o1;
|
|
74
|
+
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.e1;
|
|
75
|
+
var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.c1;
|
|
76
|
+
var Type_Number_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.d1;
|
|
77
|
+
var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.b1;
|
|
78
|
+
var Identifier = kotlin_community_flock_wirespec_compiler_core.$_$.q;
|
|
79
|
+
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.u;
|
|
80
|
+
var Type_ARRAY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a1;
|
|
81
|
+
var equals = kotlin_kotlin.$_$.i7;
|
|
82
|
+
var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m1;
|
|
83
|
+
var drop = kotlin_kotlin.$_$.a5;
|
|
84
|
+
var charSequenceLength = kotlin_kotlin.$_$.e7;
|
|
85
|
+
var charSequenceGet = kotlin_kotlin.$_$.d7;
|
|
86
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.j1;
|
|
87
|
+
var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.l;
|
|
88
|
+
var Param = kotlin_community_flock_wirespec_compiler_core.$_$.m;
|
|
89
|
+
var Path = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f;
|
|
90
|
+
var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l1;
|
|
91
|
+
var getStringHashCode = kotlin_kotlin.$_$.n7;
|
|
92
|
+
var classMeta = kotlin_kotlin.$_$.g7;
|
|
93
|
+
var StatusCode = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k;
|
|
94
|
+
var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.q1;
|
|
95
|
+
var hashCode = kotlin_kotlin.$_$.o7;
|
|
96
|
+
var to = kotlin_kotlin.$_$.ub;
|
|
97
|
+
var Unit_getInstance = kotlin_kotlin.$_$.r3;
|
|
98
|
+
var toMap = kotlin_kotlin.$_$.p6;
|
|
99
|
+
var Default_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.z1;
|
|
100
|
+
var ParameterLocation_QUERY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i1;
|
|
101
|
+
var ParameterLocation_HEADER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h1;
|
|
102
|
+
var ParameterLocation_COOKIE_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g1;
|
|
103
|
+
var _MediaType___get_value__impl__wy58mp = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s1;
|
|
104
|
+
var SchemaObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.u;
|
|
105
|
+
var ReferenceObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.q;
|
|
106
|
+
var _StatusCode___get_value__impl__we50mu_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.x1;
|
|
107
|
+
var _Path___get_value__impl__thmflc_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.u1;
|
|
108
|
+
var isBlank = kotlin_kotlin.$_$.i9;
|
|
109
|
+
var ParameterObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o;
|
|
110
|
+
var Ref_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r;
|
|
111
|
+
var HeaderObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.n;
|
|
112
|
+
var RequestBodyObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s;
|
|
113
|
+
var ResponseObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t;
|
|
114
|
+
var BooleanObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m;
|
|
115
|
+
var _Ref___get_value__impl__kxavfe_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v1;
|
|
116
|
+
var getOrNull = kotlin_kotlin.$_$.j5;
|
|
117
|
+
var Type_ARRAY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j1;
|
|
118
|
+
var Path_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.p;
|
|
119
|
+
var Path__hashCode_impl_go73kd_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t1;
|
|
120
|
+
var StatusCode_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v;
|
|
121
|
+
var StatusCode__hashCode_impl_fevhvx_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w1;
|
|
120
122
|
//endregion
|
|
121
123
|
//region block: pre-declaration
|
|
122
124
|
setMetadataFor(Common, 'Common', objectMeta);
|
|
@@ -130,12 +132,12 @@
|
|
|
130
132
|
setMetadataFor(OpenApiParser_0, 'OpenApiParser', classMeta);
|
|
131
133
|
//endregion
|
|
132
134
|
function Common$className$lambda(it) {
|
|
133
|
-
return Companion_getInstance().
|
|
135
|
+
return Companion_getInstance().a22(it);
|
|
134
136
|
}
|
|
135
137
|
function Common() {
|
|
136
138
|
Common_instance = this;
|
|
137
139
|
}
|
|
138
|
-
protoOf(Common).
|
|
140
|
+
protoOf(Common).r26 = function (arg) {
|
|
139
141
|
// Inline function 'kotlin.collections.flatMap' call
|
|
140
142
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
141
143
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -145,7 +147,7 @@
|
|
|
145
147
|
var element = arg[inductionVariable];
|
|
146
148
|
inductionVariable = inductionVariable + 1 | 0;
|
|
147
149
|
// Inline function 'community.flock.wirespec.openapi.Common.className.<anonymous>' call
|
|
148
|
-
var list = split(element, ['-']);
|
|
150
|
+
var list = split(element, ['-', '/']);
|
|
149
151
|
addAll(tmp0_flatMapTo, list);
|
|
150
152
|
}
|
|
151
153
|
var tmp = tmp0_flatMapTo;
|
|
@@ -160,12 +162,12 @@
|
|
|
160
162
|
function Companion() {
|
|
161
163
|
Companion_instance = this;
|
|
162
164
|
}
|
|
163
|
-
protoOf(Companion).
|
|
165
|
+
protoOf(Companion).s26 = function (json) {
|
|
164
166
|
// Inline function 'kotlin.let' call
|
|
165
|
-
var tmp0_let = Default_getInstance().
|
|
167
|
+
var tmp0_let = Default_getInstance().i1d(json);
|
|
166
168
|
// Inline function 'kotlin.contracts.contract' call
|
|
167
169
|
// Inline function 'community.flock.wirespec.openapi.v2.Companion.parse.<anonymous>' call
|
|
168
|
-
return (new OpenApiParser(tmp0_let)).
|
|
170
|
+
return (new OpenApiParser(tmp0_let)).u26();
|
|
169
171
|
};
|
|
170
172
|
var Companion_instance;
|
|
171
173
|
function Companion_getInstance_0() {
|
|
@@ -175,7 +177,7 @@
|
|
|
175
177
|
}
|
|
176
178
|
function parseEndpoints($this) {
|
|
177
179
|
// Inline function 'kotlin.collections.flatMap' call
|
|
178
|
-
var tmp0_flatMap = $this.
|
|
180
|
+
var tmp0_flatMap = $this.t26_1.u1d_1;
|
|
179
181
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
180
182
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
181
183
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -184,7 +186,7 @@
|
|
|
184
186
|
var element = tmp0_iterator.e();
|
|
185
187
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>' call
|
|
186
188
|
// Inline function 'kotlin.collections.component1' call
|
|
187
|
-
var path = element.v().
|
|
189
|
+
var path = element.v().g1e_1;
|
|
188
190
|
// Inline function 'kotlin.collections.component2' call
|
|
189
191
|
var pathItem = element.w();
|
|
190
192
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -211,7 +213,7 @@
|
|
|
211
213
|
while (tmp0_iterator_1.d()) {
|
|
212
214
|
var element_1 = tmp0_iterator_1.e();
|
|
213
215
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
214
|
-
if (element_1.
|
|
216
|
+
if (element_1.t1f_1.equals(ParameterLocation_QUERY_getInstance())) {
|
|
215
217
|
tmp0_filterTo.a(element_1);
|
|
216
218
|
}
|
|
217
219
|
}
|
|
@@ -234,7 +236,7 @@
|
|
|
234
236
|
while (tmp0_iterator_3.d()) {
|
|
235
237
|
var element_2 = tmp0_iterator_3.e();
|
|
236
238
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
237
|
-
if (element_2.
|
|
239
|
+
if (element_2.t1f_1.equals(ParameterLocation_HEADER_getInstance())) {
|
|
238
240
|
tmp0_filterTo_0.a(element_2);
|
|
239
241
|
}
|
|
240
242
|
}
|
|
@@ -258,7 +260,7 @@
|
|
|
258
260
|
while (tmp0_iterator_5.d()) {
|
|
259
261
|
var element_3 = tmp0_iterator_5.e();
|
|
260
262
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
261
|
-
if (element_3.
|
|
263
|
+
if (element_3.t1f_1.equals(ParameterLocation_BODY_getInstance())) {
|
|
262
264
|
tmp0_filterTo_1.a(element_3);
|
|
263
265
|
}
|
|
264
266
|
}
|
|
@@ -270,8 +272,8 @@
|
|
|
270
272
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
271
273
|
// Inline function 'kotlin.collections.map' call
|
|
272
274
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
273
|
-
var tmp0_elvis_lhs = $this.
|
|
274
|
-
var tmp0_elvis_lhs_0 = tmp0_elvis_lhs == null ? operation.
|
|
275
|
+
var tmp0_elvis_lhs = $this.t26_1.s1d_1;
|
|
276
|
+
var tmp0_elvis_lhs_0 = tmp0_elvis_lhs == null ? operation.g1f_1 : tmp0_elvis_lhs;
|
|
275
277
|
var tmp1_map = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
276
278
|
// Inline function 'kotlin.collections.mapTo' call
|
|
277
279
|
var tmp0_mapTo_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -280,13 +282,13 @@
|
|
|
280
282
|
var item_1 = tmp0_iterator_7.e();
|
|
281
283
|
var tmp$ret$22;
|
|
282
284
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
283
|
-
var schema = element_4.
|
|
285
|
+
var schema = element_4.w1f_1;
|
|
284
286
|
var tmp;
|
|
285
287
|
if (schema instanceof ReferenceObject) {
|
|
286
288
|
tmp = toReference(schema, $this);
|
|
287
289
|
} else {
|
|
288
290
|
if (schema instanceof SchemaObject) {
|
|
289
|
-
tmp = toReference_0(schema, $this, Common_getInstance().
|
|
291
|
+
tmp = toReference_0(schema, $this, Common_getInstance().r26([name, 'RequestBody']));
|
|
290
292
|
} else {
|
|
291
293
|
if (schema == null) {
|
|
292
294
|
throw new NotImplementedError();
|
|
@@ -296,7 +298,7 @@
|
|
|
296
298
|
}
|
|
297
299
|
}
|
|
298
300
|
var tmp_0 = tmp;
|
|
299
|
-
var tmp0_elvis_lhs_1 = element_4.
|
|
301
|
+
var tmp0_elvis_lhs_1 = element_4.v1f_1;
|
|
300
302
|
tmp$ret$22 = new Request(new Content(item_1, tmp_0, tmp0_elvis_lhs_1 == null ? false : tmp0_elvis_lhs_1));
|
|
301
303
|
tmp0_mapTo_1.a(tmp$ret$22);
|
|
302
304
|
}
|
|
@@ -313,7 +315,7 @@
|
|
|
313
315
|
var requests = tmp_1;
|
|
314
316
|
// Inline function 'kotlin.collections.flatMap' call
|
|
315
317
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
316
|
-
var tmp0_elvis_lhs_2 = operation.
|
|
318
|
+
var tmp0_elvis_lhs_2 = operation.j1f_1;
|
|
317
319
|
var tmp5_flatMap = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
318
320
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
319
321
|
var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
|
|
@@ -323,13 +325,13 @@
|
|
|
323
325
|
var element_5 = tmp0_iterator_8.e();
|
|
324
326
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
325
327
|
// Inline function 'kotlin.collections.component1' call
|
|
326
|
-
var status = element_5.v().
|
|
328
|
+
var status = element_5.v().f1i_1;
|
|
327
329
|
// Inline function 'kotlin.collections.component2' call
|
|
328
330
|
var res = element_5.w();
|
|
329
331
|
// Inline function 'kotlin.collections.map' call
|
|
330
332
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
331
|
-
var tmp0_elvis_lhs_3 = $this.
|
|
332
|
-
var tmp0_elvis_lhs_4 = tmp0_elvis_lhs_3 == null ? operation.
|
|
333
|
+
var tmp0_elvis_lhs_3 = $this.t26_1.t1d_1;
|
|
334
|
+
var tmp0_elvis_lhs_4 = tmp0_elvis_lhs_3 == null ? operation.h1f_1 : tmp0_elvis_lhs_3;
|
|
333
335
|
var tmp1_map_0 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
334
336
|
// Inline function 'kotlin.collections.mapTo' call
|
|
335
337
|
var tmp0_mapTo_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map_0, 10));
|
|
@@ -339,27 +341,28 @@
|
|
|
339
341
|
var tmp$ret$37;
|
|
340
342
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
341
343
|
var tmp_2 = _StatusCode___get_value__impl__we50mu(status);
|
|
342
|
-
var
|
|
343
|
-
var
|
|
344
|
+
var tmp_3 = emptyList();
|
|
345
|
+
var tmp0_safe_receiver = resolve_1(res, $this).k1i_1;
|
|
346
|
+
var tmp_4;
|
|
344
347
|
if (tmp0_safe_receiver == null) {
|
|
345
|
-
|
|
348
|
+
tmp_4 = null;
|
|
346
349
|
} else {
|
|
347
350
|
// Inline function 'kotlin.let' call
|
|
348
351
|
// Inline function 'kotlin.contracts.contract' call
|
|
349
352
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
350
|
-
var
|
|
353
|
+
var tmp_5;
|
|
351
354
|
if (tmp0_safe_receiver instanceof ReferenceObject) {
|
|
352
|
-
|
|
355
|
+
tmp_5 = toReference(tmp0_safe_receiver, $this);
|
|
353
356
|
} else {
|
|
354
357
|
if (tmp0_safe_receiver instanceof SchemaObject) {
|
|
355
|
-
|
|
358
|
+
tmp_5 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().r26([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']));
|
|
356
359
|
} else {
|
|
357
360
|
noWhenBranchMatchedException();
|
|
358
361
|
}
|
|
359
362
|
}
|
|
360
|
-
|
|
363
|
+
tmp_4 = new Content(item_2, tmp_5, false);
|
|
361
364
|
}
|
|
362
|
-
tmp$ret$37 = new Response(tmp_2, tmp_3);
|
|
365
|
+
tmp$ret$37 = new Response(tmp_2, tmp_3, tmp_4);
|
|
363
366
|
tmp0_mapTo_2.a(tmp$ret$37);
|
|
364
367
|
}
|
|
365
368
|
var list_0 = tmp0_mapTo_2;
|
|
@@ -375,17 +378,17 @@
|
|
|
375
378
|
return tmp0_flatMapTo;
|
|
376
379
|
}
|
|
377
380
|
function parseRequestBody($this) {
|
|
378
|
-
return flatMapRequests($this.
|
|
381
|
+
return flatMapRequests($this.t26_1, $this, OpenApiParser$parseRequestBody$lambda($this));
|
|
379
382
|
}
|
|
380
383
|
function parseResponseBody($this) {
|
|
381
|
-
return flatMapResponses($this.
|
|
384
|
+
return flatMapResponses($this.t26_1, $this, OpenApiParser$parseResponseBody$lambda($this));
|
|
382
385
|
}
|
|
383
386
|
function parseDefinitions($this) {
|
|
384
387
|
// Inline function 'kotlin.collections.flatMap' call
|
|
385
388
|
// Inline function 'kotlin.collections.filter' call
|
|
386
389
|
// Inline function 'arrow.core.filterIsInstance' call
|
|
387
390
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
388
|
-
var tmp0_elvis_lhs = $this.
|
|
391
|
+
var tmp0_elvis_lhs = $this.t26_1.v1d_1;
|
|
389
392
|
var tmp1_filterIsInstance = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
390
393
|
// Inline function 'kotlin.collections.filterValues' call
|
|
391
394
|
var result = LinkedHashMap_init_$Create$();
|
|
@@ -407,7 +410,7 @@
|
|
|
407
410
|
while (tmp0_iterator_0.d()) {
|
|
408
411
|
var element = tmp0_iterator_0.e();
|
|
409
412
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
410
|
-
if (element.w().
|
|
413
|
+
if (element.w().a1i_1 == null) {
|
|
411
414
|
tmp0_filterTo.l3(element.v(), element.w());
|
|
412
415
|
}
|
|
413
416
|
}
|
|
@@ -418,7 +421,7 @@
|
|
|
418
421
|
while (tmp0_iterator_1.d()) {
|
|
419
422
|
var element_0 = tmp0_iterator_1.e();
|
|
420
423
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
421
|
-
var list = flatten(element_0.w(), $this, Common_getInstance().
|
|
424
|
+
var list = flatten(element_0.w(), $this, Common_getInstance().r26([element_0.v()]));
|
|
422
425
|
addAll(tmp0_flatMapTo, list);
|
|
423
426
|
}
|
|
424
427
|
return tmp0_flatMapTo;
|
|
@@ -426,7 +429,7 @@
|
|
|
426
429
|
function resolveParameters(_this__u8e3s4, $this) {
|
|
427
430
|
// Inline function 'kotlin.collections.map' call
|
|
428
431
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
429
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
432
|
+
var tmp0_elvis_lhs = _this__u8e3s4.i1f_1;
|
|
430
433
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
431
434
|
// Inline function 'kotlin.collections.mapTo' call
|
|
432
435
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -453,7 +456,7 @@
|
|
|
453
456
|
function resolveParameters_0(_this__u8e3s4, $this) {
|
|
454
457
|
// Inline function 'kotlin.collections.map' call
|
|
455
458
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
456
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
459
|
+
var tmp0_elvis_lhs = _this__u8e3s4.w1e_1;
|
|
457
460
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
458
461
|
// Inline function 'kotlin.collections.mapTo' call
|
|
459
462
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -478,11 +481,11 @@
|
|
|
478
481
|
return tmp0_mapTo;
|
|
479
482
|
}
|
|
480
483
|
function resolveParameterObject(_this__u8e3s4, $this) {
|
|
481
|
-
var tmp0_safe_receiver = $this.
|
|
484
|
+
var tmp0_safe_receiver = $this.t26_1.w1d_1;
|
|
482
485
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n2(getReference(_this__u8e3s4, $this));
|
|
483
486
|
var tmp;
|
|
484
487
|
if (tmp1_elvis_lhs == null) {
|
|
485
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
488
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.t1g_1);
|
|
486
489
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
487
490
|
} else {
|
|
488
491
|
tmp = tmp1_elvis_lhs;
|
|
@@ -490,11 +493,11 @@
|
|
|
490
493
|
return tmp;
|
|
491
494
|
}
|
|
492
495
|
function resolveResponseObject(_this__u8e3s4, $this) {
|
|
493
|
-
var tmp0_safe_receiver = $this.
|
|
496
|
+
var tmp0_safe_receiver = $this.t26_1.x1d_1;
|
|
494
497
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n2(getReference(_this__u8e3s4, $this));
|
|
495
498
|
var tmp;
|
|
496
499
|
if (tmp1_elvis_lhs == null) {
|
|
497
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
500
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.t1g_1);
|
|
498
501
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
499
502
|
} else {
|
|
500
503
|
tmp = tmp1_elvis_lhs;
|
|
@@ -502,11 +505,11 @@
|
|
|
502
505
|
return tmp;
|
|
503
506
|
}
|
|
504
507
|
function resolveSchemaObject(_this__u8e3s4, $this) {
|
|
505
|
-
var tmp0_safe_receiver = $this.
|
|
508
|
+
var tmp0_safe_receiver = $this.t26_1.v1d_1;
|
|
506
509
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n2(getReference(_this__u8e3s4, $this));
|
|
507
510
|
var tmp;
|
|
508
511
|
if (tmp1_elvis_lhs == null) {
|
|
509
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
512
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.t1g_1);
|
|
510
513
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
511
514
|
} else {
|
|
512
515
|
tmp = tmp1_elvis_lhs;
|
|
@@ -571,12 +574,12 @@
|
|
|
571
574
|
}
|
|
572
575
|
function flatten(_this__u8e3s4, $this, name) {
|
|
573
576
|
var tmp;
|
|
574
|
-
if (!(_this__u8e3s4.
|
|
577
|
+
if (!(_this__u8e3s4.a1i_1 == null)) {
|
|
575
578
|
var tmp_0;
|
|
576
|
-
if (_this__u8e3s4.
|
|
579
|
+
if (_this__u8e3s4.a1i_1 instanceof BooleanObject) {
|
|
577
580
|
tmp_0 = emptyList();
|
|
578
581
|
} else {
|
|
579
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
582
|
+
var tmp1_safe_receiver = _this__u8e3s4.a1i_1;
|
|
580
583
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_0(tmp1_safe_receiver, $this);
|
|
581
584
|
var tmp_1;
|
|
582
585
|
if (tmp2_safe_receiver == null) {
|
|
@@ -586,7 +589,7 @@
|
|
|
586
589
|
// Inline function 'kotlin.contracts.contract' call
|
|
587
590
|
var tmp_2;
|
|
588
591
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
589
|
-
if (!(tmp2_safe_receiver.
|
|
592
|
+
if (!(tmp2_safe_receiver.z1h_1 == null)) {
|
|
590
593
|
tmp_2 = tmp2_safe_receiver;
|
|
591
594
|
} else {
|
|
592
595
|
tmp_2 = null;
|
|
@@ -598,11 +601,11 @@
|
|
|
598
601
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
599
602
|
}
|
|
600
603
|
tmp = tmp_0;
|
|
601
|
-
} else if (!(_this__u8e3s4.
|
|
604
|
+
} else if (!(_this__u8e3s4.y1h_1 == null)) {
|
|
602
605
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
603
606
|
// Inline function 'kotlin.collections.flatMap' call
|
|
604
607
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
605
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
608
|
+
var tmp0_elvis_lhs = _this__u8e3s4.y1h_1;
|
|
606
609
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
607
610
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
608
611
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -619,14 +622,14 @@
|
|
|
619
622
|
while (tmp0_iterator_0.d()) {
|
|
620
623
|
var e = tmp0_iterator_0.e();
|
|
621
624
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
622
|
-
var key = e.
|
|
625
|
+
var key = e.m22_1;
|
|
623
626
|
if (set.a(key)) {
|
|
624
627
|
list_0.a(e);
|
|
625
628
|
}
|
|
626
629
|
}
|
|
627
630
|
var tmp_3 = listOf(new Type(name, new Shape(list_0)));
|
|
628
631
|
// Inline function 'kotlin.collections.flatMap' call
|
|
629
|
-
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.
|
|
632
|
+
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.y1h_1);
|
|
630
633
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
631
634
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
632
635
|
var tmp0_iterator_1 = tmp3_flatMap.c();
|
|
@@ -640,7 +643,7 @@
|
|
|
640
643
|
if (element_0 instanceof SchemaObject) {
|
|
641
644
|
// Inline function 'kotlin.collections.flatMap' call
|
|
642
645
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
643
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
646
|
+
var tmp0_elvis_lhs_0 = element_0.z1h_1;
|
|
644
647
|
var tmp1_flatMap_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
645
648
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
646
649
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
@@ -658,7 +661,7 @@
|
|
|
658
661
|
tmp_5 = emptyList();
|
|
659
662
|
} else {
|
|
660
663
|
if (value instanceof SchemaObject) {
|
|
661
|
-
tmp_5 = flatten(value, $this, Common_getInstance().
|
|
664
|
+
tmp_5 = flatten(value, $this, Common_getInstance().r26([name, key_0]));
|
|
662
665
|
} else {
|
|
663
666
|
noWhenBranchMatchedException();
|
|
664
667
|
}
|
|
@@ -675,10 +678,10 @@
|
|
|
675
678
|
addAll(tmp0_flatMapTo_0, list_2);
|
|
676
679
|
}
|
|
677
680
|
tmp = plus(tmp_3, tmp0_flatMapTo_0);
|
|
678
|
-
} else if (!(_this__u8e3s4.
|
|
681
|
+
} else if (!(_this__u8e3s4.v1h_1 == null)) {
|
|
679
682
|
// Inline function 'kotlin.let' call
|
|
680
683
|
// Inline function 'kotlin.collections.map' call
|
|
681
|
-
var tmp4_map = ensureNotNull(_this__u8e3s4.
|
|
684
|
+
var tmp4_map = ensureNotNull(_this__u8e3s4.v1h_1);
|
|
682
685
|
// Inline function 'kotlin.collections.mapTo' call
|
|
683
686
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp4_map, 10));
|
|
684
687
|
var tmp0_iterator_3 = tmp4_map.c();
|
|
@@ -686,7 +689,7 @@
|
|
|
686
689
|
var item = tmp0_iterator_3.e();
|
|
687
690
|
var tmp$ret$18;
|
|
688
691
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
689
|
-
tmp$ret$18 = item.
|
|
692
|
+
tmp$ret$18 = item.t12();
|
|
690
693
|
tmp0_mapTo.a(tmp$ret$18);
|
|
691
694
|
}
|
|
692
695
|
var tmp5_let = toSet(tmp0_mapTo);
|
|
@@ -694,16 +697,16 @@
|
|
|
694
697
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
695
698
|
tmp = listOf(new Enum(name, tmp5_let));
|
|
696
699
|
} else {
|
|
697
|
-
var tmp5_subject = _this__u8e3s4.
|
|
700
|
+
var tmp5_subject = _this__u8e3s4.w1h_1;
|
|
698
701
|
var tmp_6;
|
|
699
|
-
switch (tmp5_subject == null ? -1 : tmp5_subject.
|
|
702
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.w4_1) {
|
|
700
703
|
case -1:
|
|
701
704
|
case 5:
|
|
702
705
|
// Inline function 'kotlin.collections.flatMap' call
|
|
703
706
|
|
|
704
707
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
705
708
|
|
|
706
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
709
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.z1h_1;
|
|
707
710
|
var tmp7_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
708
711
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
709
712
|
|
|
@@ -718,7 +721,7 @@
|
|
|
718
721
|
var key_1 = element_2.v();
|
|
719
722
|
// Inline function 'kotlin.collections.component2' call
|
|
720
723
|
var value_0 = element_2.w();
|
|
721
|
-
var list_3 = flatten_0(value_0, $this, Common_getInstance().
|
|
724
|
+
var list_3 = flatten_0(value_0, $this, Common_getInstance().r26([name, key_1]));
|
|
722
725
|
addAll(tmp0_flatMapTo_2, list_3);
|
|
723
726
|
}
|
|
724
727
|
|
|
@@ -727,13 +730,13 @@
|
|
|
727
730
|
tmp_6 = plus(schema, fields);
|
|
728
731
|
break;
|
|
729
732
|
case 4:
|
|
730
|
-
var it = _this__u8e3s4.
|
|
733
|
+
var it = _this__u8e3s4.x1h_1;
|
|
731
734
|
var tmp_7;
|
|
732
735
|
if (it instanceof ReferenceObject) {
|
|
733
736
|
tmp_7 = emptyList();
|
|
734
737
|
} else {
|
|
735
738
|
if (it instanceof SchemaObject) {
|
|
736
|
-
tmp_7 = flatten(it, $this, Common_getInstance().
|
|
739
|
+
tmp_7 = flatten(it, $this, Common_getInstance().r26([name, 'Array']));
|
|
737
740
|
} else {
|
|
738
741
|
if (it == null) {
|
|
739
742
|
tmp_7 = emptyList();
|
|
@@ -773,8 +776,8 @@
|
|
|
773
776
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
|
|
774
777
|
var schema = resolve(tmp0_let, $this);
|
|
775
778
|
var tmp;
|
|
776
|
-
if (!(schema.
|
|
777
|
-
var additionalProperties = ensureNotNull(schema.
|
|
779
|
+
if (!(schema.a1i_1 == null)) {
|
|
780
|
+
var additionalProperties = ensureNotNull(schema.a1i_1);
|
|
778
781
|
var tmp_0;
|
|
779
782
|
if (additionalProperties instanceof BooleanObject) {
|
|
780
783
|
tmp_0 = new Any(false, true);
|
|
@@ -790,24 +793,24 @@
|
|
|
790
793
|
}
|
|
791
794
|
}
|
|
792
795
|
tmp = tmp_0;
|
|
793
|
-
} else if (!(schema.
|
|
794
|
-
tmp = new Custom(Common_getInstance().
|
|
795
|
-
} else if (isPrimitive(schema.
|
|
796
|
-
tmp = new Primitive(toPrimitive(ensureNotNull(schema.
|
|
796
|
+
} else if (!(schema.v1h_1 == null)) {
|
|
797
|
+
tmp = new Custom(Common_getInstance().r26([getReference(_this__u8e3s4, $this)]), false, false);
|
|
798
|
+
} else if (isPrimitive(schema.w1h_1)) {
|
|
799
|
+
tmp = new Primitive(toPrimitive(ensureNotNull(schema.w1h_1), $this), false, false);
|
|
797
800
|
} else {
|
|
798
|
-
var tmp0_subject = schema.
|
|
801
|
+
var tmp0_subject = schema.w1h_1;
|
|
799
802
|
var tmp_1;
|
|
800
|
-
if ((tmp0_subject == null ? -1 : tmp0_subject.
|
|
801
|
-
var items = schema.
|
|
803
|
+
if ((tmp0_subject == null ? -1 : tmp0_subject.w4_1) === 4) {
|
|
804
|
+
var items = schema.x1h_1;
|
|
802
805
|
var tmp_2;
|
|
803
806
|
if (items instanceof ReferenceObject) {
|
|
804
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
807
|
+
tmp_2 = new Custom(Common_getInstance().r26([getReference(items, $this)]), true);
|
|
805
808
|
} else {
|
|
806
809
|
if (items instanceof SchemaObject) {
|
|
807
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
810
|
+
tmp_2 = new Custom(Common_getInstance().r26([getReference(_this__u8e3s4, $this), 'Array']), true);
|
|
808
811
|
} else {
|
|
809
812
|
if (items == null) {
|
|
810
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.
|
|
813
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.t1g_1);
|
|
811
814
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
812
815
|
} else {
|
|
813
816
|
noWhenBranchMatchedException();
|
|
@@ -818,10 +821,10 @@
|
|
|
818
821
|
} else {
|
|
819
822
|
var tmp_3;
|
|
820
823
|
if (tmp0_let instanceof SchemaObject) {
|
|
821
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
824
|
+
tmp_3 = new Custom(Common_getInstance().r26([getReference(_this__u8e3s4, $this)]), false);
|
|
822
825
|
} else {
|
|
823
826
|
if (tmp0_let instanceof ReferenceObject) {
|
|
824
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
827
|
+
tmp_3 = new Custom(Common_getInstance().r26([getReference(tmp0_let, $this)]), false);
|
|
825
828
|
} else {
|
|
826
829
|
noWhenBranchMatchedException();
|
|
827
830
|
}
|
|
@@ -834,8 +837,8 @@
|
|
|
834
837
|
}
|
|
835
838
|
function toReference_0(_this__u8e3s4, $this, name) {
|
|
836
839
|
var tmp;
|
|
837
|
-
if (!(_this__u8e3s4.
|
|
838
|
-
var additionalProperties = ensureNotNull(_this__u8e3s4.
|
|
840
|
+
if (!(_this__u8e3s4.a1i_1 == null)) {
|
|
841
|
+
var additionalProperties = ensureNotNull(_this__u8e3s4.a1i_1);
|
|
839
842
|
var tmp_0;
|
|
840
843
|
if (additionalProperties instanceof BooleanObject) {
|
|
841
844
|
tmp_0 = new Any(false, true);
|
|
@@ -848,7 +851,7 @@
|
|
|
848
851
|
// Inline function 'kotlin.contracts.contract' call
|
|
849
852
|
var tmp_1;
|
|
850
853
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
|
|
851
|
-
if (isPrimitive(additionalProperties.
|
|
854
|
+
if (isPrimitive(additionalProperties.w1h_1) ? true : !(additionalProperties.z1h_1 == null)) {
|
|
852
855
|
tmp_1 = additionalProperties;
|
|
853
856
|
} else {
|
|
854
857
|
tmp_1 = null;
|
|
@@ -871,32 +874,32 @@
|
|
|
871
874
|
}
|
|
872
875
|
}
|
|
873
876
|
tmp = tmp_0;
|
|
874
|
-
} else if (!(_this__u8e3s4.
|
|
875
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
877
|
+
} else if (!(_this__u8e3s4.v1h_1 == null)) {
|
|
878
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.a1i_1 == null));
|
|
876
879
|
} else {
|
|
877
|
-
var type = _this__u8e3s4.
|
|
880
|
+
var type = _this__u8e3s4.w1h_1;
|
|
878
881
|
var tmp_3;
|
|
879
|
-
switch (type == null ? -1 : type.
|
|
882
|
+
switch (type == null ? -1 : type.w4_1) {
|
|
880
883
|
case 0:
|
|
881
884
|
case 2:
|
|
882
885
|
case 1:
|
|
883
886
|
case 3:
|
|
884
|
-
tmp_3 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.
|
|
887
|
+
tmp_3 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.a1i_1 == null));
|
|
885
888
|
break;
|
|
886
889
|
case -1:
|
|
887
890
|
case 5:
|
|
888
891
|
var tmp_4;
|
|
889
|
-
var tmp_5 = _this__u8e3s4.
|
|
892
|
+
var tmp_5 = _this__u8e3s4.a1i_1;
|
|
890
893
|
if (tmp_5 instanceof BooleanObject) {
|
|
891
|
-
tmp_4 = new Any(false, !(_this__u8e3s4.
|
|
894
|
+
tmp_4 = new Any(false, !(_this__u8e3s4.a1i_1 == null));
|
|
892
895
|
} else {
|
|
893
|
-
tmp_4 = new Custom(name, false, !(_this__u8e3s4.
|
|
896
|
+
tmp_4 = new Custom(name, false, !(_this__u8e3s4.a1i_1 == null));
|
|
894
897
|
}
|
|
895
898
|
|
|
896
899
|
tmp_3 = tmp_4;
|
|
897
900
|
break;
|
|
898
901
|
case 4:
|
|
899
|
-
var it = _this__u8e3s4.
|
|
902
|
+
var it = _this__u8e3s4.x1h_1;
|
|
900
903
|
var tmp_6;
|
|
901
904
|
if (it instanceof ReferenceObject) {
|
|
902
905
|
tmp_6 = toIterable(toReference(it, $this));
|
|
@@ -936,30 +939,30 @@
|
|
|
936
939
|
var tmp$ret$0;
|
|
937
940
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toOperationList.<anonymous>' call
|
|
938
941
|
var tmp;
|
|
939
|
-
switch (element.
|
|
942
|
+
switch (element.w4_1) {
|
|
940
943
|
case 0:
|
|
941
|
-
tmp = _this__u8e3s4.
|
|
944
|
+
tmp = _this__u8e3s4.n1e_1;
|
|
942
945
|
break;
|
|
943
946
|
case 1:
|
|
944
|
-
tmp = _this__u8e3s4.
|
|
947
|
+
tmp = _this__u8e3s4.p1e_1;
|
|
945
948
|
break;
|
|
946
949
|
case 2:
|
|
947
|
-
tmp = _this__u8e3s4.
|
|
950
|
+
tmp = _this__u8e3s4.o1e_1;
|
|
948
951
|
break;
|
|
949
952
|
case 3:
|
|
950
|
-
tmp = _this__u8e3s4.
|
|
953
|
+
tmp = _this__u8e3s4.q1e_1;
|
|
951
954
|
break;
|
|
952
955
|
case 4:
|
|
953
|
-
tmp = _this__u8e3s4.
|
|
956
|
+
tmp = _this__u8e3s4.r1e_1;
|
|
954
957
|
break;
|
|
955
958
|
case 5:
|
|
956
|
-
tmp = _this__u8e3s4.
|
|
959
|
+
tmp = _this__u8e3s4.s1e_1;
|
|
957
960
|
break;
|
|
958
961
|
case 6:
|
|
959
|
-
tmp = _this__u8e3s4.
|
|
962
|
+
tmp = _this__u8e3s4.t1e_1;
|
|
960
963
|
break;
|
|
961
964
|
case 7:
|
|
962
|
-
tmp = _this__u8e3s4.
|
|
965
|
+
tmp = _this__u8e3s4.u1e_1;
|
|
963
966
|
break;
|
|
964
967
|
default:
|
|
965
968
|
noWhenBranchMatchedException();
|
|
@@ -971,11 +974,11 @@
|
|
|
971
974
|
return filterNotNullValues(result);
|
|
972
975
|
}
|
|
973
976
|
function getReference(_this__u8e3s4, $this) {
|
|
974
|
-
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
977
|
+
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.t1g_1), ['/']).h(2);
|
|
975
978
|
}
|
|
976
979
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
977
980
|
var tmp;
|
|
978
|
-
switch (_this__u8e3s4.
|
|
981
|
+
switch (_this__u8e3s4.w4_1) {
|
|
979
982
|
case 0:
|
|
980
983
|
tmp = Type_String_getInstance();
|
|
981
984
|
break;
|
|
@@ -996,7 +999,7 @@
|
|
|
996
999
|
function toField(_this__u8e3s4, $this, name) {
|
|
997
1000
|
// Inline function 'kotlin.collections.map' call
|
|
998
1001
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
999
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1002
|
+
var tmp0_elvis_lhs = _this__u8e3s4.z1h_1;
|
|
1000
1003
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1001
1004
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1002
1005
|
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.f());
|
|
@@ -1013,15 +1016,15 @@
|
|
|
1013
1016
|
var tmp;
|
|
1014
1017
|
if (value instanceof SchemaObject) {
|
|
1015
1018
|
var tmp_0 = new Identifier(key);
|
|
1016
|
-
var tmp_1 = !(value.
|
|
1017
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
1019
|
+
var tmp_1 = !(value.v1h_1 == null) ? toReference_0(value, $this, Common_getInstance().r26([name, key])) : equals(value.w1h_1, Type_ARRAY_getInstance()) ? toReference_0(value, $this, Common_getInstance().r26([name, key, 'Array'])) : toReference_0(value, $this, Common_getInstance().r26([name, key]));
|
|
1020
|
+
var tmp1_safe_receiver = _this__u8e3s4.u1h_1;
|
|
1018
1021
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.j1(key);
|
|
1019
1022
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
1020
1023
|
} else {
|
|
1021
1024
|
if (value instanceof ReferenceObject) {
|
|
1022
1025
|
var tmp_2 = new Identifier(key);
|
|
1023
1026
|
var tmp_3 = toReference(value, $this);
|
|
1024
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
1027
|
+
var tmp3_safe_receiver = _this__u8e3s4.u1h_1;
|
|
1025
1028
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.j1(key);
|
|
1026
1029
|
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
1027
1030
|
} else {
|
|
@@ -1040,12 +1043,12 @@
|
|
|
1040
1043
|
// Inline function 'kotlin.contracts.contract' call
|
|
1041
1044
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1042
1045
|
var tmp;
|
|
1043
|
-
if (!(_this__u8e3s4.
|
|
1044
|
-
tmp = new Custom(Common_getInstance().
|
|
1046
|
+
if (!(_this__u8e3s4.n1g_1 == null)) {
|
|
1047
|
+
tmp = new Custom(Common_getInstance().r26([name, 'Parameter', tmp0_let.s1f_1]), false);
|
|
1045
1048
|
} else {
|
|
1046
|
-
var type = tmp0_let.
|
|
1049
|
+
var type = tmp0_let.x1f_1;
|
|
1047
1050
|
var tmp_0;
|
|
1048
|
-
switch (type == null ? -1 : type.
|
|
1051
|
+
switch (type == null ? -1 : type.w4_1) {
|
|
1049
1052
|
case 0:
|
|
1050
1053
|
case 1:
|
|
1051
1054
|
case 2:
|
|
@@ -1060,9 +1063,9 @@
|
|
|
1060
1063
|
tmp_0 = new Primitive(tmp0_let_0, false);
|
|
1061
1064
|
break;
|
|
1062
1065
|
case 4:
|
|
1063
|
-
var tmp0_safe_receiver = tmp0_let.
|
|
1066
|
+
var tmp0_safe_receiver = tmp0_let.y1f_1;
|
|
1064
1067
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve(tmp0_safe_receiver, $this);
|
|
1065
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1068
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.w1h_1;
|
|
1066
1069
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, $this);
|
|
1067
1070
|
var tmp_1;
|
|
1068
1071
|
if (tmp3_safe_receiver == null) {
|
|
@@ -1099,8 +1102,8 @@
|
|
|
1099
1102
|
var tmp1_let = tmp;
|
|
1100
1103
|
// Inline function 'kotlin.contracts.contract' call
|
|
1101
1104
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1102
|
-
var tmp_3 = new Identifier(_this__u8e3s4.
|
|
1103
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1105
|
+
var tmp_3 = new Identifier(_this__u8e3s4.s1f_1);
|
|
1106
|
+
var tmp0_elvis_lhs = _this__u8e3s4.v1f_1;
|
|
1104
1107
|
return new Field(tmp_3, tmp1_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
1105
1108
|
}
|
|
1106
1109
|
function toSegments(_this__u8e3s4, $this, parameters) {
|
|
@@ -1141,7 +1144,7 @@
|
|
|
1141
1144
|
while (tmp0_iterator_0.d()) {
|
|
1142
1145
|
var element = tmp0_iterator_0.e();
|
|
1143
1146
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1144
|
-
if (element.
|
|
1147
|
+
if (element.s1f_1 === param) {
|
|
1145
1148
|
tmp$ret$4 = element;
|
|
1146
1149
|
break $l$block;
|
|
1147
1150
|
}
|
|
@@ -1156,7 +1159,7 @@
|
|
|
1156
1159
|
// Inline function 'kotlin.let' call
|
|
1157
1160
|
// Inline function 'kotlin.contracts.contract' call
|
|
1158
1161
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1159
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver.
|
|
1162
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver.x1f_1;
|
|
1160
1163
|
tmp_2 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, $this);
|
|
1161
1164
|
}
|
|
1162
1165
|
var tmp1_safe_receiver = tmp_2;
|
|
@@ -1187,7 +1190,7 @@
|
|
|
1187
1190
|
return tmp0_mapTo;
|
|
1188
1191
|
}
|
|
1189
1192
|
function toName(_this__u8e3s4, $this, segments, method) {
|
|
1190
|
-
var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
1193
|
+
var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.f1f_1;
|
|
1191
1194
|
var tmp;
|
|
1192
1195
|
if (tmp1_safe_receiver == null) {
|
|
1193
1196
|
tmp = null;
|
|
@@ -1195,7 +1198,7 @@
|
|
|
1195
1198
|
// Inline function 'kotlin.let' call
|
|
1196
1199
|
// Inline function 'kotlin.contracts.contract' call
|
|
1197
1200
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1198
|
-
tmp = Common_getInstance().
|
|
1201
|
+
tmp = Common_getInstance().r26([tmp1_safe_receiver]);
|
|
1199
1202
|
}
|
|
1200
1203
|
var tmp2_elvis_lhs = tmp;
|
|
1201
1204
|
var tmp_0;
|
|
@@ -1203,28 +1206,28 @@
|
|
|
1203
1206
|
// Inline function 'kotlin.let' call
|
|
1204
1207
|
// Inline function 'kotlin.contracts.contract' call
|
|
1205
1208
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1206
|
-
tmp_0 = joinToString(segments, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda) + method.
|
|
1209
|
+
tmp_0 = joinToString(segments, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda) + method.v4_1;
|
|
1207
1210
|
} else {
|
|
1208
1211
|
tmp_0 = tmp2_elvis_lhs;
|
|
1209
1212
|
}
|
|
1210
1213
|
return tmp_0;
|
|
1211
1214
|
}
|
|
1212
1215
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
1213
|
-
this.
|
|
1214
|
-
this.
|
|
1215
|
-
this.
|
|
1216
|
-
this.
|
|
1217
|
-
this.
|
|
1216
|
+
this.v26_1 = path;
|
|
1217
|
+
this.w26_1 = pathItem;
|
|
1218
|
+
this.x26_1 = method;
|
|
1219
|
+
this.y26_1 = operation;
|
|
1220
|
+
this.z26_1 = type;
|
|
1218
1221
|
}
|
|
1219
1222
|
protoOf(FlattenRequest).toString = function () {
|
|
1220
|
-
return 'FlattenRequest(path=' + new Path(this.
|
|
1223
|
+
return 'FlattenRequest(path=' + new Path(this.v26_1) + ', pathItem=' + this.w26_1 + ', method=' + this.x26_1 + ', operation=' + this.y26_1 + ', type=' + this.z26_1 + ')';
|
|
1221
1224
|
};
|
|
1222
1225
|
protoOf(FlattenRequest).hashCode = function () {
|
|
1223
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1224
|
-
result = imul(result, 31) + this.
|
|
1225
|
-
result = imul(result, 31) + this.
|
|
1226
|
-
result = imul(result, 31) + this.
|
|
1227
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1226
|
+
var result = Path__hashCode_impl_go73kd(this.v26_1);
|
|
1227
|
+
result = imul(result, 31) + this.w26_1.hashCode() | 0;
|
|
1228
|
+
result = imul(result, 31) + this.x26_1.hashCode() | 0;
|
|
1229
|
+
result = imul(result, 31) + this.y26_1.hashCode() | 0;
|
|
1230
|
+
result = imul(result, 31) + getStringHashCode(this.z26_1) | 0;
|
|
1228
1231
|
return result;
|
|
1229
1232
|
};
|
|
1230
1233
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -1233,22 +1236,22 @@
|
|
|
1233
1236
|
if (!(other instanceof FlattenRequest))
|
|
1234
1237
|
return false;
|
|
1235
1238
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
1236
|
-
if (!(this.
|
|
1239
|
+
if (!(this.v26_1 === tmp0_other_with_cast.v26_1))
|
|
1237
1240
|
return false;
|
|
1238
|
-
if (!this.
|
|
1241
|
+
if (!this.w26_1.equals(tmp0_other_with_cast.w26_1))
|
|
1239
1242
|
return false;
|
|
1240
|
-
if (!this.
|
|
1243
|
+
if (!this.x26_1.equals(tmp0_other_with_cast.x26_1))
|
|
1241
1244
|
return false;
|
|
1242
|
-
if (!this.
|
|
1245
|
+
if (!this.y26_1.equals(tmp0_other_with_cast.y26_1))
|
|
1243
1246
|
return false;
|
|
1244
|
-
if (!(this.
|
|
1247
|
+
if (!(this.z26_1 === tmp0_other_with_cast.z26_1))
|
|
1245
1248
|
return false;
|
|
1246
1249
|
return true;
|
|
1247
1250
|
};
|
|
1248
1251
|
function flatMapRequests(_this__u8e3s4, $this, f) {
|
|
1249
1252
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1250
1253
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1251
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
1254
|
+
var tmp0_flatMap = _this__u8e3s4.u1d_1;
|
|
1252
1255
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1253
1256
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1254
1257
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1257,7 +1260,7 @@
|
|
|
1257
1260
|
var element = tmp0_iterator.e();
|
|
1258
1261
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
1259
1262
|
// Inline function 'kotlin.collections.component1' call
|
|
1260
|
-
var path = element.v().
|
|
1263
|
+
var path = element.v().g1e_1;
|
|
1261
1264
|
// Inline function 'kotlin.collections.component2' call
|
|
1262
1265
|
var pathItem = element.w();
|
|
1263
1266
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1275,8 +1278,8 @@
|
|
|
1275
1278
|
var operation = element_0.w();
|
|
1276
1279
|
// Inline function 'kotlin.collections.map' call
|
|
1277
1280
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1278
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1279
|
-
var tmp0_elvis_lhs_0 = tmp0_elvis_lhs == null ? operation.
|
|
1281
|
+
var tmp0_elvis_lhs = _this__u8e3s4.s1d_1;
|
|
1282
|
+
var tmp0_elvis_lhs_0 = tmp0_elvis_lhs == null ? operation.g1f_1 : tmp0_elvis_lhs;
|
|
1280
1283
|
var tmp1_map = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1281
1284
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1282
1285
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1306,25 +1309,25 @@
|
|
|
1306
1309
|
return tmp0_flatMapTo_1;
|
|
1307
1310
|
}
|
|
1308
1311
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
1309
|
-
this.
|
|
1310
|
-
this.
|
|
1311
|
-
this.
|
|
1312
|
-
this.
|
|
1313
|
-
this.
|
|
1314
|
-
this.
|
|
1315
|
-
this.
|
|
1312
|
+
this.a27_1 = path;
|
|
1313
|
+
this.b27_1 = pathItem;
|
|
1314
|
+
this.c27_1 = method;
|
|
1315
|
+
this.d27_1 = operation;
|
|
1316
|
+
this.e27_1 = statusCode;
|
|
1317
|
+
this.f27_1 = response;
|
|
1318
|
+
this.g27_1 = type;
|
|
1316
1319
|
}
|
|
1317
1320
|
protoOf(FlattenResponse).toString = function () {
|
|
1318
|
-
return 'FlattenResponse(path=' + new Path(this.
|
|
1321
|
+
return 'FlattenResponse(path=' + new Path(this.a27_1) + ', pathItem=' + this.b27_1 + ', method=' + this.c27_1 + ', operation=' + this.d27_1 + ', statusCode=' + new StatusCode(this.e27_1) + ', response=' + this.f27_1 + ', type=' + this.g27_1 + ')';
|
|
1319
1322
|
};
|
|
1320
1323
|
protoOf(FlattenResponse).hashCode = function () {
|
|
1321
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1322
|
-
result = imul(result, 31) + this.
|
|
1323
|
-
result = imul(result, 31) + this.
|
|
1324
|
-
result = imul(result, 31) + this.
|
|
1325
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
1326
|
-
result = imul(result, 31) + hashCode(this.
|
|
1327
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1324
|
+
var result = Path__hashCode_impl_go73kd(this.a27_1);
|
|
1325
|
+
result = imul(result, 31) + this.b27_1.hashCode() | 0;
|
|
1326
|
+
result = imul(result, 31) + this.c27_1.hashCode() | 0;
|
|
1327
|
+
result = imul(result, 31) + this.d27_1.hashCode() | 0;
|
|
1328
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.e27_1) | 0;
|
|
1329
|
+
result = imul(result, 31) + hashCode(this.f27_1) | 0;
|
|
1330
|
+
result = imul(result, 31) + getStringHashCode(this.g27_1) | 0;
|
|
1328
1331
|
return result;
|
|
1329
1332
|
};
|
|
1330
1333
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -1333,26 +1336,26 @@
|
|
|
1333
1336
|
if (!(other instanceof FlattenResponse))
|
|
1334
1337
|
return false;
|
|
1335
1338
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
1336
|
-
if (!(this.
|
|
1339
|
+
if (!(this.a27_1 === tmp0_other_with_cast.a27_1))
|
|
1337
1340
|
return false;
|
|
1338
|
-
if (!this.
|
|
1341
|
+
if (!this.b27_1.equals(tmp0_other_with_cast.b27_1))
|
|
1339
1342
|
return false;
|
|
1340
|
-
if (!this.
|
|
1343
|
+
if (!this.c27_1.equals(tmp0_other_with_cast.c27_1))
|
|
1341
1344
|
return false;
|
|
1342
|
-
if (!this.
|
|
1345
|
+
if (!this.d27_1.equals(tmp0_other_with_cast.d27_1))
|
|
1343
1346
|
return false;
|
|
1344
|
-
if (!(this.
|
|
1347
|
+
if (!(this.e27_1 === tmp0_other_with_cast.e27_1))
|
|
1345
1348
|
return false;
|
|
1346
|
-
if (!equals(this.
|
|
1349
|
+
if (!equals(this.f27_1, tmp0_other_with_cast.f27_1))
|
|
1347
1350
|
return false;
|
|
1348
|
-
if (!(this.
|
|
1351
|
+
if (!(this.g27_1 === tmp0_other_with_cast.g27_1))
|
|
1349
1352
|
return false;
|
|
1350
1353
|
return true;
|
|
1351
1354
|
};
|
|
1352
1355
|
function flatMapResponses(_this__u8e3s4, $this, f) {
|
|
1353
1356
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1354
1357
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1355
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
1358
|
+
var tmp0_flatMap = _this__u8e3s4.u1d_1;
|
|
1356
1359
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1357
1360
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1358
1361
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1361,7 +1364,7 @@
|
|
|
1361
1364
|
var element = tmp0_iterator.e();
|
|
1362
1365
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
1363
1366
|
// Inline function 'kotlin.collections.component1' call
|
|
1364
|
-
var path = element.v().
|
|
1367
|
+
var path = element.v().g1e_1;
|
|
1365
1368
|
// Inline function 'kotlin.collections.component2' call
|
|
1366
1369
|
var pathItem = element.w();
|
|
1367
1370
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1379,7 +1382,7 @@
|
|
|
1379
1382
|
var operation = element_0.w();
|
|
1380
1383
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1381
1384
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1382
|
-
var tmp0_elvis_lhs = operation.
|
|
1385
|
+
var tmp0_elvis_lhs = operation.j1f_1;
|
|
1383
1386
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1384
1387
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1385
1388
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
@@ -1389,13 +1392,13 @@
|
|
|
1389
1392
|
var element_1 = tmp0_iterator_1.e();
|
|
1390
1393
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
1391
1394
|
// Inline function 'kotlin.collections.component1' call
|
|
1392
|
-
var statusCode = element_1.v().
|
|
1395
|
+
var statusCode = element_1.v().f1i_1;
|
|
1393
1396
|
// Inline function 'kotlin.collections.component2' call
|
|
1394
1397
|
var response = element_1.w();
|
|
1395
1398
|
// Inline function 'kotlin.collections.map' call
|
|
1396
1399
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1397
|
-
var tmp0_elvis_lhs_0 = _this__u8e3s4.
|
|
1398
|
-
var tmp0_elvis_lhs_1 = tmp0_elvis_lhs_0 == null ? operation.
|
|
1400
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.t1d_1;
|
|
1401
|
+
var tmp0_elvis_lhs_1 = tmp0_elvis_lhs_0 == null ? operation.h1f_1 : tmp0_elvis_lhs_0;
|
|
1399
1402
|
var tmp1_map = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1400
1403
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1401
1404
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1429,9 +1432,9 @@
|
|
|
1429
1432
|
}
|
|
1430
1433
|
function OpenApiParser$parseRequestBody$lambda(this$0) {
|
|
1431
1434
|
return function (req) {
|
|
1432
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1433
|
-
var segments = toSegments(req.
|
|
1434
|
-
var name = toName(req.
|
|
1435
|
+
var parameters = plus(resolveParameters_0(req.w26_1, this$0), resolveParameters(req.y26_1, this$0));
|
|
1436
|
+
var segments = toSegments(req.v26_1, this$0, parameters);
|
|
1437
|
+
var name = toName(req.y26_1, this$0, segments, req.x26_1);
|
|
1435
1438
|
var tmp$ret$5;
|
|
1436
1439
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1437
1440
|
var tmp$ret$4;
|
|
@@ -1443,11 +1446,11 @@
|
|
|
1443
1446
|
var tmp$ret$3;
|
|
1444
1447
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1445
1448
|
var tmp;
|
|
1446
|
-
if (!(element.
|
|
1447
|
-
var tmp_0 = Common_getInstance().
|
|
1449
|
+
if (!(element.n1g_1 == null)) {
|
|
1450
|
+
var tmp_0 = Common_getInstance().r26([name, 'Parameter', element.s1f_1]);
|
|
1448
1451
|
var tmp$ret$2;
|
|
1449
1452
|
// Inline function 'kotlin.collections.map' call
|
|
1450
|
-
var tmp0_map = ensureNotNull(element.
|
|
1453
|
+
var tmp0_map = ensureNotNull(element.n1g_1);
|
|
1451
1454
|
var tmp$ret$1;
|
|
1452
1455
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1453
1456
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
@@ -1456,7 +1459,7 @@
|
|
|
1456
1459
|
var item = tmp0_iterator_0.e();
|
|
1457
1460
|
var tmp$ret$0;
|
|
1458
1461
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
1459
|
-
tmp$ret$0 = item.
|
|
1462
|
+
tmp$ret$0 = item.t12();
|
|
1460
1463
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1461
1464
|
}
|
|
1462
1465
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -1472,7 +1475,7 @@
|
|
|
1472
1475
|
tmp$ret$4 = tmp0_flatMapTo;
|
|
1473
1476
|
tmp$ret$5 = tmp$ret$4;
|
|
1474
1477
|
var enums = tmp$ret$5;
|
|
1475
|
-
var tmp0_safe_receiver = req.
|
|
1478
|
+
var tmp0_safe_receiver = req.y26_1.i1f_1;
|
|
1476
1479
|
var tmp_1;
|
|
1477
1480
|
if (tmp0_safe_receiver == null) {
|
|
1478
1481
|
tmp_1 = null;
|
|
@@ -1509,7 +1512,7 @@
|
|
|
1509
1512
|
var element_0 = tmp0_iterator_2.e();
|
|
1510
1513
|
var tmp$ret$9;
|
|
1511
1514
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1512
|
-
tmp$ret$9 = element_0.
|
|
1515
|
+
tmp$ret$9 = element_0.t1f_1.equals(ParameterLocation_BODY_getInstance());
|
|
1513
1516
|
if (tmp$ret$9) {
|
|
1514
1517
|
tmp0_filterTo.a(element_0);
|
|
1515
1518
|
}
|
|
@@ -1533,22 +1536,22 @@
|
|
|
1533
1536
|
var element_1 = tmp0_iterator_3.e();
|
|
1534
1537
|
var tmp$ret$13;
|
|
1535
1538
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1536
|
-
var schema = element_1.
|
|
1539
|
+
var schema = element_1.w1f_1;
|
|
1537
1540
|
var tmp_4;
|
|
1538
1541
|
if (schema instanceof SchemaObject) {
|
|
1539
|
-
var tmp0_subject = schema.
|
|
1540
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.
|
|
1542
|
+
var tmp0_subject = schema.w1h_1;
|
|
1543
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.w4_1;
|
|
1541
1544
|
var tmp_5;
|
|
1542
1545
|
switch (tmp0) {
|
|
1543
1546
|
case -1:
|
|
1544
1547
|
case 5:
|
|
1545
|
-
tmp_5 = flatten(schema, this$0, Common_getInstance().
|
|
1548
|
+
tmp_5 = flatten(schema, this$0, Common_getInstance().r26([name, 'RequestBody']));
|
|
1546
1549
|
break;
|
|
1547
1550
|
case 4:
|
|
1548
1551
|
var tmp$ret$12;
|
|
1549
1552
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1550
|
-
var tmp1_safe_receiver_0 = schema.
|
|
1551
|
-
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
1553
|
+
var tmp1_safe_receiver_0 = schema.x1h_1;
|
|
1554
|
+
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().r26([name, 'RequestBody']));
|
|
1552
1555
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1553
1556
|
tmp$ret$12 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1554
1557
|
|
|
@@ -1577,26 +1580,26 @@
|
|
|
1577
1580
|
}
|
|
1578
1581
|
function OpenApiParser$parseResponseBody$lambda(this$0) {
|
|
1579
1582
|
return function (res) {
|
|
1580
|
-
var response = resolve_1(res.
|
|
1581
|
-
var parameters = plus(resolveParameters_0(res.
|
|
1582
|
-
var segments = toSegments(res.
|
|
1583
|
-
var name = toName(res.
|
|
1584
|
-
var schema = response.
|
|
1583
|
+
var response = resolve_1(res.f27_1, this$0);
|
|
1584
|
+
var parameters = plus(resolveParameters_0(res.b27_1, this$0), resolveParameters(res.d27_1, this$0));
|
|
1585
|
+
var segments = toSegments(res.a27_1, this$0, parameters);
|
|
1586
|
+
var name = toName(res.d27_1, this$0, segments, res.c27_1);
|
|
1587
|
+
var schema = response.k1i_1;
|
|
1585
1588
|
var tmp;
|
|
1586
1589
|
if (schema instanceof SchemaObject) {
|
|
1587
|
-
var tmp0_subject = schema.
|
|
1588
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.
|
|
1590
|
+
var tmp0_subject = schema.w1h_1;
|
|
1591
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.w4_1;
|
|
1589
1592
|
var tmp_0;
|
|
1590
1593
|
switch (tmp0) {
|
|
1591
1594
|
case -1:
|
|
1592
1595
|
case 5:
|
|
1593
|
-
tmp_0 = flatten(schema, this$0, Common_getInstance().
|
|
1596
|
+
tmp_0 = flatten(schema, this$0, Common_getInstance().r26([name, _StatusCode___get_value__impl__we50mu(res.e27_1), 'ResponseBody']));
|
|
1594
1597
|
break;
|
|
1595
1598
|
case 4:
|
|
1596
1599
|
var tmp$ret$0;
|
|
1597
1600
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1598
|
-
var tmp1_safe_receiver = schema.
|
|
1599
|
-
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : flatten_0(tmp1_safe_receiver, this$0, Common_getInstance().
|
|
1601
|
+
var tmp1_safe_receiver = schema.x1h_1;
|
|
1602
|
+
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : flatten_0(tmp1_safe_receiver, this$0, Common_getInstance().r26([name, _StatusCode___get_value__impl__we50mu(res.e27_1), 'ResponseBody']));
|
|
1600
1603
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1601
1604
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1602
1605
|
|
|
@@ -1616,10 +1619,10 @@
|
|
|
1616
1619
|
function OpenApiParser$toName$lambda(it) {
|
|
1617
1620
|
var tmp;
|
|
1618
1621
|
if (it instanceof Literal) {
|
|
1619
|
-
tmp = Common_getInstance().
|
|
1622
|
+
tmp = Common_getInstance().r26([it.g23_1]);
|
|
1620
1623
|
} else {
|
|
1621
1624
|
if (it instanceof Param) {
|
|
1622
|
-
tmp = Common_getInstance().
|
|
1625
|
+
tmp = Common_getInstance().r26([it.d22_1.q22_1]);
|
|
1623
1626
|
} else {
|
|
1624
1627
|
noWhenBranchMatchedException();
|
|
1625
1628
|
}
|
|
@@ -1628,21 +1631,21 @@
|
|
|
1628
1631
|
}
|
|
1629
1632
|
function OpenApiParser(openApi) {
|
|
1630
1633
|
Companion_getInstance_0();
|
|
1631
|
-
this.
|
|
1634
|
+
this.t26_1 = openApi;
|
|
1632
1635
|
}
|
|
1633
|
-
protoOf(OpenApiParser).
|
|
1636
|
+
protoOf(OpenApiParser).u26 = function () {
|
|
1634
1637
|
return plus(plus(plus(parseEndpoints(this), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
|
|
1635
1638
|
};
|
|
1636
1639
|
function toMap_0(_this__u8e3s4) {
|
|
1637
1640
|
var tmp;
|
|
1638
1641
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1639
|
-
tmp = _this__u8e3s4.
|
|
1642
|
+
tmp = _this__u8e3s4.h26(VOID, VOID, true);
|
|
1640
1643
|
} else {
|
|
1641
1644
|
if (_this__u8e3s4 instanceof Any) {
|
|
1642
|
-
tmp = _this__u8e3s4.
|
|
1645
|
+
tmp = _this__u8e3s4.f26(VOID, true);
|
|
1643
1646
|
} else {
|
|
1644
1647
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1645
|
-
tmp = _this__u8e3s4.
|
|
1648
|
+
tmp = _this__u8e3s4.j26(VOID, VOID, true);
|
|
1646
1649
|
} else {
|
|
1647
1650
|
noWhenBranchMatchedException();
|
|
1648
1651
|
}
|
|
@@ -1652,7 +1655,7 @@
|
|
|
1652
1655
|
}
|
|
1653
1656
|
function isPrimitive(_this__u8e3s4) {
|
|
1654
1657
|
var tmp;
|
|
1655
|
-
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.
|
|
1658
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.w4_1) {
|
|
1656
1659
|
case 0:
|
|
1657
1660
|
tmp = true;
|
|
1658
1661
|
break;
|
|
@@ -1686,13 +1689,13 @@
|
|
|
1686
1689
|
function toIterable(_this__u8e3s4) {
|
|
1687
1690
|
var tmp;
|
|
1688
1691
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1689
|
-
tmp = _this__u8e3s4.
|
|
1692
|
+
tmp = _this__u8e3s4.h26(VOID, true);
|
|
1690
1693
|
} else {
|
|
1691
1694
|
if (_this__u8e3s4 instanceof Any) {
|
|
1692
|
-
tmp = _this__u8e3s4.
|
|
1695
|
+
tmp = _this__u8e3s4.f26(true);
|
|
1693
1696
|
} else {
|
|
1694
1697
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1695
|
-
tmp = _this__u8e3s4.
|
|
1698
|
+
tmp = _this__u8e3s4.j26(VOID, true);
|
|
1696
1699
|
} else {
|
|
1697
1700
|
noWhenBranchMatchedException();
|
|
1698
1701
|
}
|
|
@@ -1738,9 +1741,9 @@
|
|
|
1738
1741
|
function Companion_0() {
|
|
1739
1742
|
Companion_instance_0 = this;
|
|
1740
1743
|
}
|
|
1741
|
-
protoOf(Companion_0).
|
|
1744
|
+
protoOf(Companion_0).s26 = function (json) {
|
|
1742
1745
|
// Inline function 'kotlin.let' call
|
|
1743
|
-
var tmp0_let = Default_getInstance_0().
|
|
1746
|
+
var tmp0_let = Default_getInstance_0().i1d(json);
|
|
1744
1747
|
// Inline function 'kotlin.contracts.contract' call
|
|
1745
1748
|
// Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
|
|
1746
1749
|
return parse(new OpenApiParser_0(tmp0_let));
|
|
@@ -1756,7 +1759,7 @@
|
|
|
1756
1759
|
}
|
|
1757
1760
|
function parseEndpoint($this) {
|
|
1758
1761
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1759
|
-
var tmp0_flatMap = $this.
|
|
1762
|
+
var tmp0_flatMap = $this.h27_1.q1n_1;
|
|
1760
1763
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1761
1764
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1762
1765
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1765,7 +1768,7 @@
|
|
|
1765
1768
|
var element = tmp0_iterator.e();
|
|
1766
1769
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>' call
|
|
1767
1770
|
// Inline function 'kotlin.collections.component1' call
|
|
1768
|
-
var key = element.v().
|
|
1771
|
+
var key = element.v().z1n_1;
|
|
1769
1772
|
// Inline function 'kotlin.collections.component2' call
|
|
1770
1773
|
var path = element.w();
|
|
1771
1774
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1776,7 +1779,7 @@
|
|
|
1776
1779
|
var tmp0_iterator_0 = tmp0_map.u().c();
|
|
1777
1780
|
while (tmp0_iterator_0.d()) {
|
|
1778
1781
|
var item = tmp0_iterator_0.e();
|
|
1779
|
-
var tmp$ret$
|
|
1782
|
+
var tmp$ret$52;
|
|
1780
1783
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>' call
|
|
1781
1784
|
// Inline function 'kotlin.collections.component1' call
|
|
1782
1785
|
var method = item.v();
|
|
@@ -1784,7 +1787,8 @@
|
|
|
1784
1787
|
var operation = item.w();
|
|
1785
1788
|
var parameters = plus(resolveParameters_2(path, $this), resolveParameters_1(operation, $this));
|
|
1786
1789
|
var segments = toSegments_0(key, $this, parameters);
|
|
1787
|
-
var
|
|
1790
|
+
var tmp0_elvis_lhs = toName_0(operation, $this);
|
|
1791
|
+
var name = tmp0_elvis_lhs == null ? toName_1(key, $this) + method.v4_1 : tmp0_elvis_lhs;
|
|
1788
1792
|
// Inline function 'kotlin.collections.map' call
|
|
1789
1793
|
// Inline function 'kotlin.collections.filter' call
|
|
1790
1794
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -1793,7 +1797,7 @@
|
|
|
1793
1797
|
while (tmp0_iterator_1.d()) {
|
|
1794
1798
|
var element_0 = tmp0_iterator_1.e();
|
|
1795
1799
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1796
|
-
if (element_0.
|
|
1800
|
+
if (element_0.w1p_1.equals(ParameterLocation_QUERY_getInstance_0())) {
|
|
1797
1801
|
tmp0_filterTo.a(element_0);
|
|
1798
1802
|
}
|
|
1799
1803
|
}
|
|
@@ -1804,7 +1808,7 @@
|
|
|
1804
1808
|
var item_0 = tmp0_iterator_2.e();
|
|
1805
1809
|
var tmp$ret$9;
|
|
1806
1810
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1807
|
-
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().
|
|
1811
|
+
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().r26([name, 'Parameter', item_0.v1p_1]));
|
|
1808
1812
|
tmp0_mapTo_0.a(tmp$ret$9);
|
|
1809
1813
|
}
|
|
1810
1814
|
var query = tmp0_mapTo_0;
|
|
@@ -1816,7 +1820,7 @@
|
|
|
1816
1820
|
while (tmp0_iterator_3.d()) {
|
|
1817
1821
|
var element_1 = tmp0_iterator_3.e();
|
|
1818
1822
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1819
|
-
if (element_1.
|
|
1823
|
+
if (element_1.w1p_1.equals(ParameterLocation_HEADER_getInstance_0())) {
|
|
1820
1824
|
tmp0_filterTo_0.a(element_1);
|
|
1821
1825
|
}
|
|
1822
1826
|
}
|
|
@@ -1827,7 +1831,7 @@
|
|
|
1827
1831
|
var item_1 = tmp0_iterator_4.e();
|
|
1828
1832
|
var tmp$ret$15;
|
|
1829
1833
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1830
|
-
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().
|
|
1834
|
+
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().r26([name, 'Parameter', item_1.v1p_1]));
|
|
1831
1835
|
tmp0_mapTo_1.a(tmp$ret$15);
|
|
1832
1836
|
}
|
|
1833
1837
|
var headers = tmp0_mapTo_1;
|
|
@@ -1839,7 +1843,7 @@
|
|
|
1839
1843
|
while (tmp0_iterator_5.d()) {
|
|
1840
1844
|
var element_2 = tmp0_iterator_5.e();
|
|
1841
1845
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1842
|
-
if (element_2.
|
|
1846
|
+
if (element_2.w1p_1.equals(ParameterLocation_COOKIE_getInstance())) {
|
|
1843
1847
|
tmp0_filterTo_1.a(element_2);
|
|
1844
1848
|
}
|
|
1845
1849
|
}
|
|
@@ -1850,45 +1854,45 @@
|
|
|
1850
1854
|
var item_2 = tmp0_iterator_6.e();
|
|
1851
1855
|
var tmp$ret$21;
|
|
1852
1856
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1853
|
-
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().
|
|
1857
|
+
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().r26([name, 'Parameter', item_2.v1p_1]));
|
|
1854
1858
|
tmp0_mapTo_2.a(tmp$ret$21);
|
|
1855
1859
|
}
|
|
1856
1860
|
var cookies = tmp0_mapTo_2;
|
|
1857
|
-
var
|
|
1858
|
-
var
|
|
1861
|
+
var tmp1_safe_receiver = operation.a1p_1;
|
|
1862
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_6(tmp1_safe_receiver, $this);
|
|
1859
1863
|
var tmp;
|
|
1860
|
-
if (
|
|
1864
|
+
if (tmp2_safe_receiver == null) {
|
|
1861
1865
|
tmp = null;
|
|
1862
1866
|
} else {
|
|
1863
1867
|
// Inline function 'kotlin.let' call
|
|
1864
1868
|
// Inline function 'kotlin.contracts.contract' call
|
|
1865
1869
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1866
|
-
var
|
|
1870
|
+
var tmp0_safe_receiver = tmp2_safe_receiver.c1q_1;
|
|
1867
1871
|
var tmp_0;
|
|
1868
|
-
if (
|
|
1872
|
+
if (tmp0_safe_receiver == null) {
|
|
1869
1873
|
tmp_0 = null;
|
|
1870
1874
|
} else {
|
|
1871
1875
|
// Inline function 'kotlin.collections.map' call
|
|
1872
1876
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1873
|
-
var tmp0_mapTo_3 = ArrayList_init_$Create$_0(
|
|
1877
|
+
var tmp0_mapTo_3 = ArrayList_init_$Create$_0(tmp0_safe_receiver.f());
|
|
1874
1878
|
// Inline function 'kotlin.collections.iterator' call
|
|
1875
|
-
var tmp0_iterator_7 =
|
|
1879
|
+
var tmp0_iterator_7 = tmp0_safe_receiver.u().c();
|
|
1876
1880
|
while (tmp0_iterator_7.d()) {
|
|
1877
1881
|
var item_3 = tmp0_iterator_7.e();
|
|
1878
1882
|
var tmp$ret$27;
|
|
1879
1883
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1880
1884
|
// Inline function 'kotlin.collections.component1' call
|
|
1881
|
-
var mediaType = item_3.v().
|
|
1885
|
+
var mediaType = item_3.v().i1q_1;
|
|
1882
1886
|
// Inline function 'kotlin.collections.component2' call
|
|
1883
1887
|
var mediaObject = item_3.w();
|
|
1884
1888
|
var tmp_1 = _MediaType___get_value__impl__wy58mp(mediaType);
|
|
1885
|
-
var schema = mediaObject.
|
|
1889
|
+
var schema = mediaObject.m1q_1;
|
|
1886
1890
|
var tmp_2;
|
|
1887
1891
|
if (schema instanceof ReferenceObject_0) {
|
|
1888
1892
|
tmp_2 = toReference_1(schema, $this);
|
|
1889
1893
|
} else {
|
|
1890
1894
|
if (schema instanceof SchemaObject_0) {
|
|
1891
|
-
tmp_2 = toReference_2(schema, $this, Common_getInstance().
|
|
1895
|
+
tmp_2 = toReference_2(schema, $this, Common_getInstance().r26([name, 'RequestBody']));
|
|
1892
1896
|
} else {
|
|
1893
1897
|
if (schema == null) {
|
|
1894
1898
|
throw new NotImplementedError();
|
|
@@ -1898,20 +1902,20 @@
|
|
|
1898
1902
|
}
|
|
1899
1903
|
}
|
|
1900
1904
|
var tmp_3 = tmp_2;
|
|
1901
|
-
var
|
|
1902
|
-
tmp$ret$27 = new Request(new Content(tmp_1, tmp_3,
|
|
1905
|
+
var tmp0_elvis_lhs_0 = tmp2_safe_receiver.d1q_1;
|
|
1906
|
+
tmp$ret$27 = new Request(new Content(tmp_1, tmp_3, tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0));
|
|
1903
1907
|
tmp0_mapTo_3.a(tmp$ret$27);
|
|
1904
1908
|
}
|
|
1905
1909
|
tmp_0 = tmp0_mapTo_3;
|
|
1906
1910
|
}
|
|
1907
1911
|
tmp = tmp_0;
|
|
1908
1912
|
}
|
|
1909
|
-
var
|
|
1910
|
-
var requests =
|
|
1913
|
+
var tmp3_elvis_lhs = tmp;
|
|
1914
|
+
var requests = tmp3_elvis_lhs == null ? listOf(new Request(null)) : tmp3_elvis_lhs;
|
|
1911
1915
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1912
1916
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1913
|
-
var
|
|
1914
|
-
var tmp4_flatMap =
|
|
1917
|
+
var tmp0_elvis_lhs_1 = operation.b1p_1;
|
|
1918
|
+
var tmp4_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
1915
1919
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1916
1920
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
1917
1921
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1920,36 +1924,62 @@
|
|
|
1920
1924
|
var element_3 = tmp0_iterator_8.e();
|
|
1921
1925
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1922
1926
|
// Inline function 'kotlin.collections.component1' call
|
|
1923
|
-
var status = element_3.v().
|
|
1927
|
+
var status = element_3.v().l1s_1;
|
|
1924
1928
|
// Inline function 'kotlin.collections.component2' call
|
|
1925
1929
|
var res = element_3.w();
|
|
1926
|
-
|
|
1930
|
+
// Inline function 'kotlin.let' call
|
|
1931
|
+
var tmp0_let = resolve_7(res, $this);
|
|
1932
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1933
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1934
|
+
var tmp0_safe_receiver_0 = tmp0_let.r1s_1;
|
|
1927
1935
|
var tmp_4;
|
|
1928
|
-
if (
|
|
1936
|
+
if (tmp0_safe_receiver_0 == null) {
|
|
1929
1937
|
tmp_4 = null;
|
|
1930
1938
|
} else {
|
|
1931
1939
|
// Inline function 'kotlin.collections.map' call
|
|
1932
1940
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1933
|
-
var tmp0_mapTo_4 = ArrayList_init_$Create$_0(
|
|
1941
|
+
var tmp0_mapTo_4 = ArrayList_init_$Create$_0(tmp0_safe_receiver_0.f());
|
|
1934
1942
|
// Inline function 'kotlin.collections.iterator' call
|
|
1935
|
-
var tmp0_iterator_9 =
|
|
1943
|
+
var tmp0_iterator_9 = tmp0_safe_receiver_0.u().c();
|
|
1936
1944
|
while (tmp0_iterator_9.d()) {
|
|
1937
1945
|
var item_4 = tmp0_iterator_9.e();
|
|
1938
|
-
var tmp$ret$
|
|
1939
|
-
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1946
|
+
var tmp$ret$44;
|
|
1947
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1940
1948
|
// Inline function 'kotlin.collections.component1' call
|
|
1941
|
-
var contentType = item_4.v().
|
|
1949
|
+
var contentType = item_4.v().i1q_1;
|
|
1942
1950
|
// Inline function 'kotlin.collections.component2' call
|
|
1943
1951
|
var media = item_4.w();
|
|
1944
1952
|
var tmp_5 = _StatusCode___get_value__impl__we50mu_0(status);
|
|
1945
|
-
|
|
1946
|
-
var
|
|
1947
|
-
var
|
|
1953
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
1954
|
+
var tmp0_safe_receiver_1 = tmp0_let.q1s_1;
|
|
1955
|
+
var tmp_6;
|
|
1956
|
+
if (tmp0_safe_receiver_1 == null) {
|
|
1957
|
+
tmp_6 = null;
|
|
1958
|
+
} else {
|
|
1959
|
+
// Inline function 'kotlin.collections.map' call
|
|
1960
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
1961
|
+
var tmp0_mapTo_5 = ArrayList_init_$Create$_0(tmp0_safe_receiver_1.f());
|
|
1962
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
1963
|
+
var tmp0_iterator_10 = tmp0_safe_receiver_1.u().c();
|
|
1964
|
+
while (tmp0_iterator_10.d()) {
|
|
1965
|
+
var item_5 = tmp0_iterator_10.e();
|
|
1966
|
+
var tmp$ret$40;
|
|
1967
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1968
|
+
tmp$ret$40 = toField_3(resolve_4(item_5.w(), $this), $this, item_5.v(), Common_getInstance().r26([name, 'ResponseHeader']));
|
|
1969
|
+
tmp0_mapTo_5.a(tmp$ret$40);
|
|
1970
|
+
}
|
|
1971
|
+
tmp_6 = tmp0_mapTo_5;
|
|
1972
|
+
}
|
|
1973
|
+
var tmp0_elvis_lhs_2 = tmp_6;
|
|
1974
|
+
var tmp_7 = tmp0_elvis_lhs_2 == null ? emptyList() : tmp0_elvis_lhs_2;
|
|
1975
|
+
var tmp_8 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
1976
|
+
var schema_0 = media.m1q_1;
|
|
1977
|
+
var tmp_9;
|
|
1948
1978
|
if (schema_0 instanceof ReferenceObject_0) {
|
|
1949
|
-
|
|
1979
|
+
tmp_9 = toReference_1(schema_0, $this);
|
|
1950
1980
|
} else {
|
|
1951
1981
|
if (schema_0 instanceof SchemaObject_0) {
|
|
1952
|
-
|
|
1982
|
+
tmp_9 = toReference_2(schema_0, $this, Common_getInstance().r26([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
1953
1983
|
} else {
|
|
1954
1984
|
if (schema_0 == null) {
|
|
1955
1985
|
throw new NotImplementedError();
|
|
@@ -1958,22 +1988,22 @@
|
|
|
1958
1988
|
}
|
|
1959
1989
|
}
|
|
1960
1990
|
}
|
|
1961
|
-
var
|
|
1962
|
-
var
|
|
1963
|
-
var
|
|
1964
|
-
var
|
|
1965
|
-
tmp$ret$
|
|
1966
|
-
tmp0_mapTo_4.a(tmp$ret$
|
|
1991
|
+
var tmp_10 = tmp_9;
|
|
1992
|
+
var tmp1_safe_receiver_0 = media.m1q_1;
|
|
1993
|
+
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : resolve_3(tmp1_safe_receiver_0, $this);
|
|
1994
|
+
var tmp3_elvis_lhs_0 = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.x1q_1;
|
|
1995
|
+
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));
|
|
1996
|
+
tmp0_mapTo_4.a(tmp$ret$44);
|
|
1967
1997
|
}
|
|
1968
1998
|
tmp_4 = tmp0_mapTo_4;
|
|
1969
1999
|
}
|
|
1970
|
-
var
|
|
1971
|
-
var list =
|
|
2000
|
+
var tmp0_elvis_lhs_3 = tmp_4;
|
|
2001
|
+
var list = tmp0_elvis_lhs_3 == null ? listOf(new Response(_StatusCode___get_value__impl__we50mu_0(status), emptyList(), null)) : tmp0_elvis_lhs_3;
|
|
1972
2002
|
addAll(tmp0_flatMapTo_0, list);
|
|
1973
2003
|
}
|
|
1974
2004
|
var responses = tmp0_flatMapTo_0;
|
|
1975
|
-
tmp$ret$
|
|
1976
|
-
tmp0_mapTo.a(tmp$ret$
|
|
2005
|
+
tmp$ret$52 = new Endpoint(name, method, segments, query, headers, cookies, requests, responses);
|
|
2006
|
+
tmp0_mapTo.a(tmp$ret$52);
|
|
1977
2007
|
}
|
|
1978
2008
|
var list_0 = tmp0_mapTo;
|
|
1979
2009
|
addAll(tmp0_flatMapTo, list_0);
|
|
@@ -1981,20 +2011,20 @@
|
|
|
1981
2011
|
return tmp0_flatMapTo;
|
|
1982
2012
|
}
|
|
1983
2013
|
function parseParameters($this) {
|
|
1984
|
-
return flatMapRequests_0($this.
|
|
2014
|
+
return flatMapRequests_0($this.h27_1, $this, OpenApiParser$parseParameters$lambda($this));
|
|
1985
2015
|
}
|
|
1986
2016
|
function parseRequestBody_0($this) {
|
|
1987
|
-
return flatMapRequests_0($this.
|
|
2017
|
+
return flatMapRequests_0($this.h27_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
|
|
1988
2018
|
}
|
|
1989
2019
|
function parseResponseBody_0($this) {
|
|
1990
|
-
return flatMapResponses_0($this.
|
|
2020
|
+
return flatMapResponses_0($this.h27_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
|
|
1991
2021
|
}
|
|
1992
2022
|
function parseComponents($this) {
|
|
1993
2023
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1994
2024
|
// Inline function 'kotlin.collections.filter' call
|
|
1995
2025
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1996
|
-
var tmp0_safe_receiver = $this.
|
|
1997
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2026
|
+
var tmp0_safe_receiver = $this.h27_1.r1n_1;
|
|
2027
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m1t_1;
|
|
1998
2028
|
var tmp1_filter = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1999
2029
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2000
2030
|
var tmp0_filterTo = LinkedHashMap_init_$Create$();
|
|
@@ -2006,7 +2036,7 @@
|
|
|
2006
2036
|
var s = element.w();
|
|
2007
2037
|
var tmp;
|
|
2008
2038
|
if (s instanceof SchemaObject_0) {
|
|
2009
|
-
tmp = s.
|
|
2039
|
+
tmp = s.n1r_1 == null;
|
|
2010
2040
|
} else {
|
|
2011
2041
|
tmp = false;
|
|
2012
2042
|
}
|
|
@@ -2021,85 +2051,16 @@
|
|
|
2021
2051
|
while (tmp0_iterator_0.d()) {
|
|
2022
2052
|
var element_0 = tmp0_iterator_0.e();
|
|
2023
2053
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2024
|
-
var list = flatten_2(element_0.w(), $this, Common_getInstance().
|
|
2054
|
+
var list = flatten_2(element_0.w(), $this, Common_getInstance().r26([element_0.v()]));
|
|
2025
2055
|
addAll(tmp0_flatMapTo, list);
|
|
2026
2056
|
}
|
|
2027
2057
|
return tmp0_flatMapTo;
|
|
2028
2058
|
}
|
|
2029
|
-
function
|
|
2030
|
-
|
|
2031
|
-
var tmp0_map = drop(split(_Path___get_value__impl__thmflc_0(_this__u8e3s4), ['/']), 1);
|
|
2032
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
2033
|
-
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
2034
|
-
var tmp0_iterator = tmp0_map.c();
|
|
2035
|
-
while (tmp0_iterator.d()) {
|
|
2036
|
-
var item = tmp0_iterator.e();
|
|
2037
|
-
var tmp$ret$9;
|
|
2038
|
-
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>' call
|
|
2039
|
-
var isParam = charSequenceGet(item, 0) === _Char___init__impl__6a9atx(123) ? charSequenceGet(item, item.length - 1 | 0) === _Char___init__impl__6a9atx(125) : false;
|
|
2040
|
-
var tmp;
|
|
2041
|
-
if (isParam) {
|
|
2042
|
-
// Inline function 'kotlin.text.substring' call
|
|
2043
|
-
var tmp0_substring = item.length - 1 | 0;
|
|
2044
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2045
|
-
var param = item.substring(1, tmp0_substring);
|
|
2046
|
-
// Inline function 'kotlin.collections.find' call
|
|
2047
|
-
var tmp$ret$3;
|
|
2048
|
-
$l$block: {
|
|
2049
|
-
// Inline function 'kotlin.collections.firstOrNull' call
|
|
2050
|
-
var tmp0_iterator_0 = parameters.c();
|
|
2051
|
-
while (tmp0_iterator_0.d()) {
|
|
2052
|
-
var element = tmp0_iterator_0.e();
|
|
2053
|
-
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2054
|
-
if (element.r1m_1 === param) {
|
|
2055
|
-
tmp$ret$3 = element;
|
|
2056
|
-
break $l$block;
|
|
2057
|
-
}
|
|
2058
|
-
}
|
|
2059
|
-
tmp$ret$3 = null;
|
|
2060
|
-
}
|
|
2061
|
-
var tmp0_safe_receiver = tmp$ret$3;
|
|
2062
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n1m_1;
|
|
2063
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_3(tmp1_safe_receiver, $this);
|
|
2064
|
-
var tmp_0;
|
|
2065
|
-
if (tmp2_safe_receiver == null) {
|
|
2066
|
-
tmp_0 = null;
|
|
2067
|
-
} else {
|
|
2068
|
-
// Inline function 'kotlin.let' call
|
|
2069
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2070
|
-
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2071
|
-
var tmp0_safe_receiver_0 = tmp2_safe_receiver.x1n_1;
|
|
2072
|
-
tmp_0 = tmp0_safe_receiver_0 == null ? null : toPrimitive_0(tmp0_safe_receiver_0, $this);
|
|
2073
|
-
}
|
|
2074
|
-
var tmp3_safe_receiver = tmp_0;
|
|
2075
|
-
var tmp_1;
|
|
2076
|
-
if (tmp3_safe_receiver == null) {
|
|
2077
|
-
tmp_1 = null;
|
|
2078
|
-
} else {
|
|
2079
|
-
// Inline function 'kotlin.let' call
|
|
2080
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2081
|
-
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2082
|
-
tmp_1 = new Param(new Identifier(param), new Primitive(tmp3_safe_receiver, false));
|
|
2083
|
-
}
|
|
2084
|
-
var tmp4_elvis_lhs = tmp_1;
|
|
2085
|
-
var tmp_2;
|
|
2086
|
-
if (tmp4_elvis_lhs == null) {
|
|
2087
|
-
var tmp1_error = ' Declared path parameter ' + param + ' needs to be defined as a path parameter in path or operation level';
|
|
2088
|
-
throw IllegalStateException_init_$Create$(toString(tmp1_error));
|
|
2089
|
-
} else {
|
|
2090
|
-
tmp_2 = tmp4_elvis_lhs;
|
|
2091
|
-
}
|
|
2092
|
-
tmp = tmp_2;
|
|
2093
|
-
} else {
|
|
2094
|
-
tmp = new Literal(item);
|
|
2095
|
-
}
|
|
2096
|
-
tmp$ret$9 = tmp;
|
|
2097
|
-
tmp0_mapTo.a(tmp$ret$9);
|
|
2098
|
-
}
|
|
2099
|
-
return tmp0_mapTo;
|
|
2059
|
+
function isParam(_this__u8e3s4, $this) {
|
|
2060
|
+
return charSequenceGet(_this__u8e3s4, 0) === _Char___init__impl__6a9atx(123) ? charSequenceGet(_this__u8e3s4, _this__u8e3s4.length - 1 | 0) === _Char___init__impl__6a9atx(125) : false;
|
|
2100
2061
|
}
|
|
2101
|
-
function toName_0(_this__u8e3s4, $this
|
|
2102
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2062
|
+
function toName_0(_this__u8e3s4, $this) {
|
|
2063
|
+
var tmp0_safe_receiver = _this__u8e3s4.y1o_1;
|
|
2103
2064
|
var tmp;
|
|
2104
2065
|
if (tmp0_safe_receiver == null) {
|
|
2105
2066
|
tmp = null;
|
|
@@ -2107,22 +2068,115 @@
|
|
|
2107
2068
|
// Inline function 'kotlin.let' call
|
|
2108
2069
|
// Inline function 'kotlin.contracts.contract' call
|
|
2109
2070
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2110
|
-
tmp = Common_getInstance().
|
|
2071
|
+
tmp = Common_getInstance().r26([tmp0_safe_receiver]);
|
|
2111
2072
|
}
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2073
|
+
return tmp;
|
|
2074
|
+
}
|
|
2075
|
+
function toName_1(_this__u8e3s4, $this) {
|
|
2076
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2077
|
+
var tmp0_filter = drop(split(_Path___get_value__impl__thmflc_0(_this__u8e3s4), ['/']), 1);
|
|
2078
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2079
|
+
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
2080
|
+
var tmp0_iterator = tmp0_filter.c();
|
|
2081
|
+
while (tmp0_iterator.d()) {
|
|
2082
|
+
var element = tmp0_iterator.e();
|
|
2117
2083
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2084
|
+
// Inline function 'kotlin.text.isNotBlank' call
|
|
2085
|
+
if (!isBlank(element)) {
|
|
2086
|
+
tmp0_filterTo.a(element);
|
|
2087
|
+
}
|
|
2121
2088
|
}
|
|
2122
|
-
|
|
2089
|
+
var tmp = tmp0_filterTo;
|
|
2090
|
+
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda_0($this));
|
|
2091
|
+
}
|
|
2092
|
+
function toSegments_0(_this__u8e3s4, $this, parameters) {
|
|
2093
|
+
// Inline function 'kotlin.collections.map' call
|
|
2094
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2095
|
+
var tmp0_filter = drop(split(_Path___get_value__impl__thmflc_0(_this__u8e3s4), ['/']), 1);
|
|
2096
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2097
|
+
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
2098
|
+
var tmp0_iterator = tmp0_filter.c();
|
|
2099
|
+
while (tmp0_iterator.d()) {
|
|
2100
|
+
var element = tmp0_iterator.e();
|
|
2101
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>' call
|
|
2102
|
+
// Inline function 'kotlin.text.isNotBlank' call
|
|
2103
|
+
if (!isBlank(element)) {
|
|
2104
|
+
tmp0_filterTo.a(element);
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2107
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
2108
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_filterTo, 10));
|
|
2109
|
+
var tmp0_iterator_0 = tmp0_filterTo.c();
|
|
2110
|
+
while (tmp0_iterator_0.d()) {
|
|
2111
|
+
var item = tmp0_iterator_0.e();
|
|
2112
|
+
var tmp$ret$11;
|
|
2113
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>' call
|
|
2114
|
+
var tmp;
|
|
2115
|
+
switch (isParam(item, $this)) {
|
|
2116
|
+
case true:
|
|
2117
|
+
// Inline function 'kotlin.text.substring' call
|
|
2118
|
+
|
|
2119
|
+
var tmp0_substring = item.length - 1 | 0;
|
|
2120
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2121
|
+
|
|
2122
|
+
var param = item.substring(1, tmp0_substring);
|
|
2123
|
+
var name = toName_1(_this__u8e3s4, $this);
|
|
2124
|
+
// Inline function 'kotlin.collections.find' call
|
|
2125
|
+
|
|
2126
|
+
var tmp$ret$7;
|
|
2127
|
+
$l$block: {
|
|
2128
|
+
// Inline function 'kotlin.collections.firstOrNull' call
|
|
2129
|
+
var tmp0_iterator_1 = parameters.c();
|
|
2130
|
+
while (tmp0_iterator_1.d()) {
|
|
2131
|
+
var element_0 = tmp0_iterator_1.e();
|
|
2132
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2133
|
+
if (element_0.v1p_1 === param) {
|
|
2134
|
+
tmp$ret$7 = element_0;
|
|
2135
|
+
break $l$block;
|
|
2136
|
+
}
|
|
2137
|
+
}
|
|
2138
|
+
tmp$ret$7 = null;
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
var tmp1_safe_receiver = tmp$ret$7;
|
|
2142
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r1p_1;
|
|
2143
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : resolve_3(tmp2_safe_receiver, $this);
|
|
2144
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : toReference_2(tmp3_safe_receiver, $this, Common_getInstance().r26([name, 'Parameter', param]));
|
|
2145
|
+
var tmp_0;
|
|
2146
|
+
if (tmp4_safe_receiver == null) {
|
|
2147
|
+
tmp_0 = null;
|
|
2148
|
+
} else {
|
|
2149
|
+
// Inline function 'kotlin.let' call
|
|
2150
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2151
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2152
|
+
tmp_0 = new Param(new Identifier(param), tmp4_safe_receiver);
|
|
2153
|
+
}
|
|
2154
|
+
|
|
2155
|
+
var tmp5_elvis_lhs = tmp_0;
|
|
2156
|
+
var tmp_1;
|
|
2157
|
+
if (tmp5_elvis_lhs == null) {
|
|
2158
|
+
var tmp1_error = ' Declared path parameter ' + param + ' needs to be defined as a path parameter in path or operation level';
|
|
2159
|
+
throw IllegalStateException_init_$Create$(toString(tmp1_error));
|
|
2160
|
+
} else {
|
|
2161
|
+
tmp_1 = tmp5_elvis_lhs;
|
|
2162
|
+
}
|
|
2163
|
+
|
|
2164
|
+
tmp = tmp_1;
|
|
2165
|
+
break;
|
|
2166
|
+
case false:
|
|
2167
|
+
tmp = new Literal(item);
|
|
2168
|
+
break;
|
|
2169
|
+
default:
|
|
2170
|
+
noWhenBranchMatchedException();
|
|
2171
|
+
break;
|
|
2172
|
+
}
|
|
2173
|
+
tmp$ret$11 = tmp;
|
|
2174
|
+
tmp0_mapTo.a(tmp$ret$11);
|
|
2175
|
+
}
|
|
2176
|
+
return tmp0_mapTo;
|
|
2123
2177
|
}
|
|
2124
2178
|
function resolveParameters_1(_this__u8e3s4, $this) {
|
|
2125
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2179
|
+
var tmp0_safe_receiver = _this__u8e3s4.z1o_1;
|
|
2126
2180
|
var tmp;
|
|
2127
2181
|
if (tmp0_safe_receiver == null) {
|
|
2128
2182
|
tmp = null;
|
|
@@ -2161,7 +2215,7 @@
|
|
|
2161
2215
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2162
2216
|
}
|
|
2163
2217
|
function resolveParameters_2(_this__u8e3s4, $this) {
|
|
2164
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2218
|
+
var tmp0_safe_receiver = _this__u8e3s4.p1o_1;
|
|
2165
2219
|
var tmp;
|
|
2166
2220
|
if (tmp0_safe_receiver == null) {
|
|
2167
2221
|
tmp = null;
|
|
@@ -2200,8 +2254,8 @@
|
|
|
2200
2254
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2201
2255
|
}
|
|
2202
2256
|
function resolveParameterObject_0(_this__u8e3s4, $this) {
|
|
2203
|
-
var tmp0_safe_receiver = $this.
|
|
2204
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2257
|
+
var tmp0_safe_receiver = $this.h27_1.r1n_1;
|
|
2258
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o1t_1;
|
|
2205
2259
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n2(getReference_0(_this__u8e3s4, $this));
|
|
2206
2260
|
var tmp;
|
|
2207
2261
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2225,8 +2279,8 @@
|
|
|
2225
2279
|
return tmp;
|
|
2226
2280
|
}
|
|
2227
2281
|
function resolveSchemaObject_0(_this__u8e3s4, $this) {
|
|
2228
|
-
var tmp0_safe_receiver = $this.
|
|
2229
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2282
|
+
var tmp0_safe_receiver = $this.h27_1.r1n_1;
|
|
2283
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m1t_1;
|
|
2230
2284
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n2(getReference_0(_this__u8e3s4, $this));
|
|
2231
2285
|
var tmp;
|
|
2232
2286
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2250,7 +2304,40 @@
|
|
|
2250
2304
|
var tmp3_elvis_lhs = tmp;
|
|
2251
2305
|
var tmp_1;
|
|
2252
2306
|
if (tmp3_elvis_lhs == null) {
|
|
2253
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2307
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.t1q_1);
|
|
2308
|
+
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2309
|
+
} else {
|
|
2310
|
+
tmp_1 = tmp3_elvis_lhs;
|
|
2311
|
+
}
|
|
2312
|
+
return tmp_1;
|
|
2313
|
+
}
|
|
2314
|
+
function resolveHeaderObject(_this__u8e3s4, $this) {
|
|
2315
|
+
var tmp0_safe_receiver = $this.h27_1.r1n_1;
|
|
2316
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r1t_1;
|
|
2317
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n2(getReference_0(_this__u8e3s4, $this));
|
|
2318
|
+
var tmp;
|
|
2319
|
+
if (tmp2_safe_receiver == null) {
|
|
2320
|
+
tmp = null;
|
|
2321
|
+
} else {
|
|
2322
|
+
// Inline function 'kotlin.let' call
|
|
2323
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2324
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.resolveHeaderObject.<anonymous>' call
|
|
2325
|
+
var tmp_0;
|
|
2326
|
+
if (tmp2_safe_receiver instanceof HeaderObject) {
|
|
2327
|
+
tmp_0 = to(_this__u8e3s4, tmp2_safe_receiver);
|
|
2328
|
+
} else {
|
|
2329
|
+
if (tmp2_safe_receiver instanceof ReferenceObject_0) {
|
|
2330
|
+
tmp_0 = resolveHeaderObject(tmp2_safe_receiver, $this);
|
|
2331
|
+
} else {
|
|
2332
|
+
noWhenBranchMatchedException();
|
|
2333
|
+
}
|
|
2334
|
+
}
|
|
2335
|
+
tmp = tmp_0;
|
|
2336
|
+
}
|
|
2337
|
+
var tmp3_elvis_lhs = tmp;
|
|
2338
|
+
var tmp_1;
|
|
2339
|
+
if (tmp3_elvis_lhs == null) {
|
|
2340
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.t1q_1);
|
|
2254
2341
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2255
2342
|
} else {
|
|
2256
2343
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2258,8 +2345,8 @@
|
|
|
2258
2345
|
return tmp_1;
|
|
2259
2346
|
}
|
|
2260
2347
|
function resolveRequestBodyObject(_this__u8e3s4, $this) {
|
|
2261
|
-
var tmp0_safe_receiver = $this.
|
|
2262
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2348
|
+
var tmp0_safe_receiver = $this.h27_1.r1n_1;
|
|
2349
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q1t_1;
|
|
2263
2350
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n2(getReference_0(_this__u8e3s4, $this));
|
|
2264
2351
|
var tmp;
|
|
2265
2352
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2283,7 +2370,7 @@
|
|
|
2283
2370
|
var tmp3_elvis_lhs = tmp;
|
|
2284
2371
|
var tmp_1;
|
|
2285
2372
|
if (tmp3_elvis_lhs == null) {
|
|
2286
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2373
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.t1q_1);
|
|
2287
2374
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2288
2375
|
} else {
|
|
2289
2376
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2291,8 +2378,8 @@
|
|
|
2291
2378
|
return tmp_1;
|
|
2292
2379
|
}
|
|
2293
2380
|
function resolveResponseObject_0(_this__u8e3s4, $this) {
|
|
2294
|
-
var tmp0_safe_receiver = $this.
|
|
2295
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2381
|
+
var tmp0_safe_receiver = $this.h27_1.r1n_1;
|
|
2382
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n1t_1;
|
|
2296
2383
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n2(getReference_0(_this__u8e3s4, $this));
|
|
2297
2384
|
var tmp;
|
|
2298
2385
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2316,7 +2403,7 @@
|
|
|
2316
2403
|
var tmp3_elvis_lhs = tmp;
|
|
2317
2404
|
var tmp_1;
|
|
2318
2405
|
if (tmp3_elvis_lhs == null) {
|
|
2319
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2406
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.t1q_1);
|
|
2320
2407
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2321
2408
|
} else {
|
|
2322
2409
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2337,6 +2424,19 @@
|
|
|
2337
2424
|
return tmp;
|
|
2338
2425
|
}
|
|
2339
2426
|
function resolve_4(_this__u8e3s4, $this) {
|
|
2427
|
+
var tmp;
|
|
2428
|
+
if (_this__u8e3s4 instanceof HeaderObject) {
|
|
2429
|
+
tmp = _this__u8e3s4;
|
|
2430
|
+
} else {
|
|
2431
|
+
if (_this__u8e3s4 instanceof ReferenceObject_0) {
|
|
2432
|
+
tmp = resolveHeaderObject(_this__u8e3s4, $this).i3_1;
|
|
2433
|
+
} else {
|
|
2434
|
+
noWhenBranchMatchedException();
|
|
2435
|
+
}
|
|
2436
|
+
}
|
|
2437
|
+
return tmp;
|
|
2438
|
+
}
|
|
2439
|
+
function resolve_5(_this__u8e3s4, $this) {
|
|
2340
2440
|
var tmp;
|
|
2341
2441
|
if (_this__u8e3s4 instanceof SchemaObject_0) {
|
|
2342
2442
|
tmp = _this__u8e3s4;
|
|
@@ -2353,7 +2453,7 @@
|
|
|
2353
2453
|
}
|
|
2354
2454
|
return tmp;
|
|
2355
2455
|
}
|
|
2356
|
-
function
|
|
2456
|
+
function resolve_6(_this__u8e3s4, $this) {
|
|
2357
2457
|
var tmp;
|
|
2358
2458
|
if (_this__u8e3s4 instanceof RequestBodyObject) {
|
|
2359
2459
|
tmp = _this__u8e3s4;
|
|
@@ -2366,7 +2466,7 @@
|
|
|
2366
2466
|
}
|
|
2367
2467
|
return tmp;
|
|
2368
2468
|
}
|
|
2369
|
-
function
|
|
2469
|
+
function resolve_7(_this__u8e3s4, $this) {
|
|
2370
2470
|
var tmp;
|
|
2371
2471
|
if (_this__u8e3s4 instanceof ResponseObject_0) {
|
|
2372
2472
|
tmp = _this__u8e3s4;
|
|
@@ -2381,13 +2481,13 @@
|
|
|
2381
2481
|
}
|
|
2382
2482
|
function flatten_1(_this__u8e3s4, $this, name) {
|
|
2383
2483
|
var tmp;
|
|
2384
|
-
if (!(_this__u8e3s4.
|
|
2484
|
+
if (!(_this__u8e3s4.n1r_1 == null)) {
|
|
2385
2485
|
var tmp_0;
|
|
2386
|
-
if (_this__u8e3s4.
|
|
2486
|
+
if (_this__u8e3s4.n1r_1 instanceof BooleanObject_0) {
|
|
2387
2487
|
tmp_0 = emptyList();
|
|
2388
2488
|
} else {
|
|
2389
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
2390
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null :
|
|
2489
|
+
var tmp1_safe_receiver = _this__u8e3s4.n1r_1;
|
|
2490
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_5(tmp1_safe_receiver, $this);
|
|
2391
2491
|
var tmp_1;
|
|
2392
2492
|
if (tmp2_safe_receiver == null) {
|
|
2393
2493
|
tmp_1 = null;
|
|
@@ -2396,7 +2496,7 @@
|
|
|
2396
2496
|
// Inline function 'kotlin.contracts.contract' call
|
|
2397
2497
|
var tmp_2;
|
|
2398
2498
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2399
|
-
if (!(tmp2_safe_receiver.
|
|
2499
|
+
if (!(tmp2_safe_receiver.m1r_1 == null)) {
|
|
2400
2500
|
tmp_2 = tmp2_safe_receiver;
|
|
2401
2501
|
} else {
|
|
2402
2502
|
tmp_2 = null;
|
|
@@ -2408,15 +2508,15 @@
|
|
|
2408
2508
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
2409
2509
|
}
|
|
2410
2510
|
tmp = tmp_0;
|
|
2411
|
-
} else if (!(_this__u8e3s4.
|
|
2511
|
+
} else if (!(_this__u8e3s4.i1r_1 == null)) {
|
|
2412
2512
|
throw new NotImplementedError('An operation is not implemented: oneOf is not implemented');
|
|
2413
|
-
} else if (!(_this__u8e3s4.
|
|
2513
|
+
} else if (!(_this__u8e3s4.j1r_1 == null)) {
|
|
2414
2514
|
throw new NotImplementedError('An operation is not implemented: anyOf is not implemented');
|
|
2415
|
-
} else if (!(_this__u8e3s4.
|
|
2515
|
+
} else if (!(_this__u8e3s4.h1r_1 == null)) {
|
|
2416
2516
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
2417
2517
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2418
2518
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2419
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2519
|
+
var tmp0_elvis_lhs = _this__u8e3s4.h1r_1;
|
|
2420
2520
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2421
2521
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2422
2522
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -2433,14 +2533,14 @@
|
|
|
2433
2533
|
while (tmp0_iterator_0.d()) {
|
|
2434
2534
|
var e = tmp0_iterator_0.e();
|
|
2435
2535
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2436
|
-
var key = e.
|
|
2536
|
+
var key = e.m22_1;
|
|
2437
2537
|
if (set.a(key)) {
|
|
2438
2538
|
list_0.a(e);
|
|
2439
2539
|
}
|
|
2440
2540
|
}
|
|
2441
2541
|
var tmp_3 = listOf(new Type(name, new Shape(list_0)));
|
|
2442
2542
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2443
|
-
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.
|
|
2543
|
+
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.h1r_1);
|
|
2444
2544
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2445
2545
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
2446
2546
|
var tmp0_iterator_1 = tmp3_flatMap.c();
|
|
@@ -2454,7 +2554,7 @@
|
|
|
2454
2554
|
if (element_0 instanceof SchemaObject_0) {
|
|
2455
2555
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2456
2556
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2457
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
2557
|
+
var tmp0_elvis_lhs_0 = element_0.m1r_1;
|
|
2458
2558
|
var tmp1_flatMap_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2459
2559
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2460
2560
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
@@ -2472,7 +2572,7 @@
|
|
|
2472
2572
|
tmp_5 = emptyList();
|
|
2473
2573
|
} else {
|
|
2474
2574
|
if (value instanceof SchemaObject_0) {
|
|
2475
|
-
tmp_5 = flatten_1(value, $this, Common_getInstance().
|
|
2575
|
+
tmp_5 = flatten_1(value, $this, Common_getInstance().r26([name, key_0]));
|
|
2476
2576
|
} else {
|
|
2477
2577
|
noWhenBranchMatchedException();
|
|
2478
2578
|
}
|
|
@@ -2489,10 +2589,10 @@
|
|
|
2489
2589
|
addAll(tmp0_flatMapTo_0, list_2);
|
|
2490
2590
|
}
|
|
2491
2591
|
tmp = plus(tmp_3, tmp0_flatMapTo_0);
|
|
2492
|
-
} else if (!(_this__u8e3s4.
|
|
2592
|
+
} else if (!(_this__u8e3s4.g1s_1 == null)) {
|
|
2493
2593
|
// Inline function 'kotlin.let' call
|
|
2494
2594
|
// Inline function 'kotlin.collections.map' call
|
|
2495
|
-
var tmp4_map = ensureNotNull(_this__u8e3s4.
|
|
2595
|
+
var tmp4_map = ensureNotNull(_this__u8e3s4.g1s_1);
|
|
2496
2596
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2497
2597
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp4_map, 10));
|
|
2498
2598
|
var tmp0_iterator_3 = tmp4_map.c();
|
|
@@ -2500,7 +2600,7 @@
|
|
|
2500
2600
|
var item = tmp0_iterator_3.e();
|
|
2501
2601
|
var tmp$ret$18;
|
|
2502
2602
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2503
|
-
tmp$ret$18 = item.
|
|
2603
|
+
tmp$ret$18 = item.t12();
|
|
2504
2604
|
tmp0_mapTo.a(tmp$ret$18);
|
|
2505
2605
|
}
|
|
2506
2606
|
var tmp5_let = toSet(tmp0_mapTo);
|
|
@@ -2508,16 +2608,16 @@
|
|
|
2508
2608
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2509
2609
|
tmp = listOf(new Enum(name, tmp5_let));
|
|
2510
2610
|
} else {
|
|
2511
|
-
var tmp5_subject = _this__u8e3s4.
|
|
2611
|
+
var tmp5_subject = _this__u8e3s4.g1r_1;
|
|
2512
2612
|
var tmp_6;
|
|
2513
|
-
switch (tmp5_subject == null ? -1 : tmp5_subject.
|
|
2613
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.w4_1) {
|
|
2514
2614
|
case -1:
|
|
2515
2615
|
case 5:
|
|
2516
2616
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2517
2617
|
|
|
2518
2618
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2519
2619
|
|
|
2520
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
2620
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.m1r_1;
|
|
2521
2621
|
var tmp7_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
2522
2622
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2523
2623
|
|
|
@@ -2532,7 +2632,7 @@
|
|
|
2532
2632
|
var key_1 = element_2.v();
|
|
2533
2633
|
// Inline function 'kotlin.collections.component2' call
|
|
2534
2634
|
var value_0 = element_2.w();
|
|
2535
|
-
var list_3 = flatten_2(value_0, $this, Common_getInstance().
|
|
2635
|
+
var list_3 = flatten_2(value_0, $this, Common_getInstance().r26([name, key_1]));
|
|
2536
2636
|
addAll(tmp0_flatMapTo_2, list_3);
|
|
2537
2637
|
}
|
|
2538
2638
|
|
|
@@ -2541,7 +2641,7 @@
|
|
|
2541
2641
|
tmp_6 = plus(schema, fields);
|
|
2542
2642
|
break;
|
|
2543
2643
|
case 4:
|
|
2544
|
-
var tmp6_safe_receiver = _this__u8e3s4.
|
|
2644
|
+
var tmp6_safe_receiver = _this__u8e3s4.l1r_1;
|
|
2545
2645
|
var tmp_7;
|
|
2546
2646
|
if (tmp6_safe_receiver == null) {
|
|
2547
2647
|
tmp_7 = null;
|
|
@@ -2554,7 +2654,7 @@
|
|
|
2554
2654
|
tmp_8 = emptyList();
|
|
2555
2655
|
} else {
|
|
2556
2656
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
2557
|
-
tmp_8 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().
|
|
2657
|
+
tmp_8 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().r26([name, 'array']));
|
|
2558
2658
|
} else {
|
|
2559
2659
|
noWhenBranchMatchedException();
|
|
2560
2660
|
}
|
|
@@ -2594,8 +2694,8 @@
|
|
|
2594
2694
|
var referencingObject = tmp0_let.j3();
|
|
2595
2695
|
var schema = tmp0_let.k3();
|
|
2596
2696
|
var tmp;
|
|
2597
|
-
if (!(schema.
|
|
2598
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2697
|
+
if (!(schema.n1r_1 == null)) {
|
|
2698
|
+
var additionalProperties = ensureNotNull(schema.n1r_1);
|
|
2599
2699
|
var tmp_0;
|
|
2600
2700
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
2601
2701
|
tmp_0 = new Any(false, true);
|
|
@@ -2611,24 +2711,24 @@
|
|
|
2611
2711
|
}
|
|
2612
2712
|
}
|
|
2613
2713
|
tmp = tmp_0;
|
|
2614
|
-
} else if (!(schema.
|
|
2615
|
-
tmp = new Custom(Common_getInstance().
|
|
2616
|
-
} else if (isPrimitive_0(schema.
|
|
2617
|
-
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.
|
|
2714
|
+
} else if (!(schema.g1s_1 == null)) {
|
|
2715
|
+
tmp = new Custom(Common_getInstance().r26([getReference_0(referencingObject, $this)]), false, false);
|
|
2716
|
+
} else if (isPrimitive_0(schema.g1r_1)) {
|
|
2717
|
+
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.g1r_1), $this), false, false);
|
|
2618
2718
|
} else {
|
|
2619
|
-
var tmp0_subject = schema.
|
|
2719
|
+
var tmp0_subject = schema.g1r_1;
|
|
2620
2720
|
var tmp_1;
|
|
2621
|
-
if ((tmp0_subject == null ? -1 : tmp0_subject.
|
|
2622
|
-
var items = schema.
|
|
2721
|
+
if ((tmp0_subject == null ? -1 : tmp0_subject.w4_1) === 4) {
|
|
2722
|
+
var items = schema.l1r_1;
|
|
2623
2723
|
var tmp_2;
|
|
2624
2724
|
if (items instanceof ReferenceObject_0) {
|
|
2625
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2725
|
+
tmp_2 = new Custom(Common_getInstance().r26([getReference_0(items, $this)]), true);
|
|
2626
2726
|
} else {
|
|
2627
2727
|
if (items instanceof SchemaObject_0) {
|
|
2628
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2728
|
+
tmp_2 = new Custom(Common_getInstance().r26([getReference_0(referencingObject, $this), 'Array']), true);
|
|
2629
2729
|
} else {
|
|
2630
2730
|
if (items == null) {
|
|
2631
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.
|
|
2731
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.t1q_1);
|
|
2632
2732
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2633
2733
|
} else {
|
|
2634
2734
|
noWhenBranchMatchedException();
|
|
@@ -2637,7 +2737,7 @@
|
|
|
2637
2737
|
}
|
|
2638
2738
|
tmp_1 = tmp_2;
|
|
2639
2739
|
} else {
|
|
2640
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
2740
|
+
tmp_1 = new Custom(Common_getInstance().r26([getReference_0(referencingObject, $this)]), false);
|
|
2641
2741
|
}
|
|
2642
2742
|
tmp = tmp_1;
|
|
2643
2743
|
}
|
|
@@ -2645,8 +2745,8 @@
|
|
|
2645
2745
|
}
|
|
2646
2746
|
function toReference_2(_this__u8e3s4, $this, name) {
|
|
2647
2747
|
var tmp;
|
|
2648
|
-
if (!(_this__u8e3s4.
|
|
2649
|
-
var additionalProperties = ensureNotNull(_this__u8e3s4.
|
|
2748
|
+
if (!(_this__u8e3s4.n1r_1 == null)) {
|
|
2749
|
+
var additionalProperties = ensureNotNull(_this__u8e3s4.n1r_1);
|
|
2650
2750
|
var tmp_0;
|
|
2651
2751
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
2652
2752
|
tmp_0 = new Any(false, true);
|
|
@@ -2659,7 +2759,7 @@
|
|
|
2659
2759
|
// Inline function 'kotlin.contracts.contract' call
|
|
2660
2760
|
var tmp_1;
|
|
2661
2761
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
|
|
2662
|
-
if (isPrimitive_0(additionalProperties.
|
|
2762
|
+
if (isPrimitive_0(additionalProperties.g1r_1) ? true : !(additionalProperties.m1r_1 == null)) {
|
|
2663
2763
|
tmp_1 = additionalProperties;
|
|
2664
2764
|
} else {
|
|
2665
2765
|
tmp_1 = null;
|
|
@@ -2682,32 +2782,32 @@
|
|
|
2682
2782
|
}
|
|
2683
2783
|
}
|
|
2684
2784
|
tmp = tmp_0;
|
|
2685
|
-
} else if (!(_this__u8e3s4.
|
|
2686
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
2785
|
+
} else if (!(_this__u8e3s4.g1s_1 == null)) {
|
|
2786
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.n1r_1 == null));
|
|
2687
2787
|
} else {
|
|
2688
|
-
var type = _this__u8e3s4.
|
|
2788
|
+
var type = _this__u8e3s4.g1r_1;
|
|
2689
2789
|
var tmp_3;
|
|
2690
|
-
switch (type == null ? -1 : type.
|
|
2790
|
+
switch (type == null ? -1 : type.w4_1) {
|
|
2691
2791
|
case 0:
|
|
2692
2792
|
case 1:
|
|
2693
2793
|
case 2:
|
|
2694
2794
|
case 3:
|
|
2695
|
-
tmp_3 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.
|
|
2795
|
+
tmp_3 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.n1r_1 == null));
|
|
2696
2796
|
break;
|
|
2697
2797
|
case -1:
|
|
2698
2798
|
case 5:
|
|
2699
2799
|
var tmp_4;
|
|
2700
|
-
var tmp_5 = _this__u8e3s4.
|
|
2800
|
+
var tmp_5 = _this__u8e3s4.n1r_1;
|
|
2701
2801
|
if (tmp_5 instanceof BooleanObject_0) {
|
|
2702
|
-
tmp_4 = new Any(false, !(_this__u8e3s4.
|
|
2802
|
+
tmp_4 = new Any(false, !(_this__u8e3s4.n1r_1 == null));
|
|
2703
2803
|
} else {
|
|
2704
|
-
tmp_4 = new Custom(name, false, !(_this__u8e3s4.
|
|
2804
|
+
tmp_4 = new Custom(name, false, !(_this__u8e3s4.n1r_1 == null));
|
|
2705
2805
|
}
|
|
2706
2806
|
|
|
2707
2807
|
tmp_3 = tmp_4;
|
|
2708
2808
|
break;
|
|
2709
2809
|
case 4:
|
|
2710
|
-
var it = _this__u8e3s4.
|
|
2810
|
+
var it = _this__u8e3s4.l1r_1;
|
|
2711
2811
|
var tmp_6;
|
|
2712
2812
|
if (it instanceof ReferenceObject_0) {
|
|
2713
2813
|
tmp_6 = toIterable_0(toReference_1(it, $this));
|
|
@@ -2745,30 +2845,30 @@
|
|
|
2745
2845
|
var tmp$ret$0;
|
|
2746
2846
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toOperationList.<anonymous>' call
|
|
2747
2847
|
var tmp;
|
|
2748
|
-
switch (element.
|
|
2848
|
+
switch (element.w4_1) {
|
|
2749
2849
|
case 0:
|
|
2750
|
-
tmp = _this__u8e3s4.
|
|
2850
|
+
tmp = _this__u8e3s4.g1o_1;
|
|
2751
2851
|
break;
|
|
2752
2852
|
case 1:
|
|
2753
|
-
tmp = _this__u8e3s4.
|
|
2853
|
+
tmp = _this__u8e3s4.i1o_1;
|
|
2754
2854
|
break;
|
|
2755
2855
|
case 2:
|
|
2756
|
-
tmp = _this__u8e3s4.
|
|
2856
|
+
tmp = _this__u8e3s4.h1o_1;
|
|
2757
2857
|
break;
|
|
2758
2858
|
case 3:
|
|
2759
|
-
tmp = _this__u8e3s4.
|
|
2859
|
+
tmp = _this__u8e3s4.j1o_1;
|
|
2760
2860
|
break;
|
|
2761
2861
|
case 4:
|
|
2762
|
-
tmp = _this__u8e3s4.
|
|
2862
|
+
tmp = _this__u8e3s4.k1o_1;
|
|
2763
2863
|
break;
|
|
2764
2864
|
case 5:
|
|
2765
|
-
tmp = _this__u8e3s4.
|
|
2865
|
+
tmp = _this__u8e3s4.l1o_1;
|
|
2766
2866
|
break;
|
|
2767
2867
|
case 6:
|
|
2768
|
-
tmp = _this__u8e3s4.
|
|
2868
|
+
tmp = _this__u8e3s4.m1o_1;
|
|
2769
2869
|
break;
|
|
2770
2870
|
case 7:
|
|
2771
|
-
tmp = _this__u8e3s4.
|
|
2871
|
+
tmp = _this__u8e3s4.n1o_1;
|
|
2772
2872
|
break;
|
|
2773
2873
|
default:
|
|
2774
2874
|
noWhenBranchMatchedException();
|
|
@@ -2780,10 +2880,10 @@
|
|
|
2780
2880
|
return filterNotNullValues_0(result);
|
|
2781
2881
|
}
|
|
2782
2882
|
function getReference_0(_this__u8e3s4, $this) {
|
|
2783
|
-
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
2883
|
+
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.t1q_1), ['/']), 3);
|
|
2784
2884
|
var tmp;
|
|
2785
2885
|
if (tmp0_elvis_lhs == null) {
|
|
2786
|
-
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
2886
|
+
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.t1q_1);
|
|
2787
2887
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2788
2888
|
} else {
|
|
2789
2889
|
tmp = tmp0_elvis_lhs;
|
|
@@ -2792,7 +2892,7 @@
|
|
|
2792
2892
|
}
|
|
2793
2893
|
function toPrimitive_0(_this__u8e3s4, $this) {
|
|
2794
2894
|
var tmp;
|
|
2795
|
-
switch (_this__u8e3s4.
|
|
2895
|
+
switch (_this__u8e3s4.w4_1) {
|
|
2796
2896
|
case 0:
|
|
2797
2897
|
tmp = Type_String_getInstance();
|
|
2798
2898
|
break;
|
|
@@ -2813,7 +2913,7 @@
|
|
|
2813
2913
|
function toField_1(_this__u8e3s4, $this, name) {
|
|
2814
2914
|
// Inline function 'kotlin.collections.map' call
|
|
2815
2915
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2816
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2916
|
+
var tmp0_elvis_lhs = _this__u8e3s4.m1r_1;
|
|
2817
2917
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2818
2918
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2819
2919
|
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.f());
|
|
@@ -2830,15 +2930,15 @@
|
|
|
2830
2930
|
var tmp;
|
|
2831
2931
|
if (value instanceof SchemaObject_0) {
|
|
2832
2932
|
var tmp_0 = new Identifier(key);
|
|
2833
|
-
var tmp_1 = !(value.
|
|
2834
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
2933
|
+
var tmp_1 = !(value.g1s_1 == null) ? toReference_2(value, $this, Common_getInstance().r26([name, key])) : equals(value.g1r_1, Type_ARRAY_getInstance_0()) ? toReference_2(value, $this, Common_getInstance().r26([name, key, 'Array'])) : toReference_2(value, $this, Common_getInstance().r26([name, key]));
|
|
2934
|
+
var tmp1_safe_receiver = _this__u8e3s4.f1s_1;
|
|
2835
2935
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.j1(key);
|
|
2836
2936
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
2837
2937
|
} else {
|
|
2838
2938
|
if (value instanceof ReferenceObject_0) {
|
|
2839
2939
|
var tmp_2 = new Identifier(key);
|
|
2840
|
-
var tmp_3 = new Custom(Common_getInstance().
|
|
2841
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
2940
|
+
var tmp_3 = new Custom(Common_getInstance().r26([getReference_0(value, $this)]), false);
|
|
2941
|
+
var tmp3_safe_receiver = _this__u8e3s4.f1s_1;
|
|
2842
2942
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.j1(key);
|
|
2843
2943
|
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
2844
2944
|
} else {
|
|
@@ -2852,7 +2952,31 @@
|
|
|
2852
2952
|
}
|
|
2853
2953
|
function toField_2(_this__u8e3s4, $this, name) {
|
|
2854
2954
|
// Inline function 'kotlin.let' call
|
|
2855
|
-
var s = _this__u8e3s4.
|
|
2955
|
+
var s = _this__u8e3s4.r1p_1;
|
|
2956
|
+
var tmp;
|
|
2957
|
+
if (s instanceof ReferenceObject_0) {
|
|
2958
|
+
tmp = toReference_1(s, $this);
|
|
2959
|
+
} else {
|
|
2960
|
+
if (s instanceof SchemaObject_0) {
|
|
2961
|
+
tmp = toReference_2(s, $this, name);
|
|
2962
|
+
} else {
|
|
2963
|
+
if (s == null) {
|
|
2964
|
+
throw new NotImplementedError();
|
|
2965
|
+
} else {
|
|
2966
|
+
noWhenBranchMatchedException();
|
|
2967
|
+
}
|
|
2968
|
+
}
|
|
2969
|
+
}
|
|
2970
|
+
var tmp0_let = tmp;
|
|
2971
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2972
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
2973
|
+
var tmp_0 = new Identifier(_this__u8e3s4.v1p_1);
|
|
2974
|
+
var tmp0_elvis_lhs = _this__u8e3s4.l1p_1;
|
|
2975
|
+
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
2976
|
+
}
|
|
2977
|
+
function toField_3(_this__u8e3s4, $this, identifier, name) {
|
|
2978
|
+
// Inline function 'kotlin.let' call
|
|
2979
|
+
var s = _this__u8e3s4.e1t_1;
|
|
2856
2980
|
var tmp;
|
|
2857
2981
|
if (s instanceof ReferenceObject_0) {
|
|
2858
2982
|
tmp = toReference_1(s, $this);
|
|
@@ -2870,24 +2994,24 @@
|
|
|
2870
2994
|
var tmp0_let = tmp;
|
|
2871
2995
|
// Inline function 'kotlin.contracts.contract' call
|
|
2872
2996
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
2873
|
-
var tmp_0 = new Identifier(
|
|
2874
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2997
|
+
var tmp_0 = new Identifier(identifier);
|
|
2998
|
+
var tmp0_elvis_lhs = _this__u8e3s4.y1s_1;
|
|
2875
2999
|
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
2876
3000
|
}
|
|
2877
3001
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
2878
|
-
this.
|
|
2879
|
-
this.
|
|
2880
|
-
this.
|
|
2881
|
-
this.
|
|
3002
|
+
this.i27_1 = path;
|
|
3003
|
+
this.j27_1 = pathItem;
|
|
3004
|
+
this.k27_1 = method;
|
|
3005
|
+
this.l27_1 = operation;
|
|
2882
3006
|
}
|
|
2883
3007
|
protoOf(FlattenRequest_0).toString = function () {
|
|
2884
|
-
return 'FlattenRequest(path=' + new Path_0(this.
|
|
3008
|
+
return 'FlattenRequest(path=' + new Path_0(this.i27_1) + ', pathItem=' + this.j27_1 + ', method=' + this.k27_1 + ', operation=' + this.l27_1 + ')';
|
|
2885
3009
|
};
|
|
2886
3010
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
2887
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
2888
|
-
result = imul(result, 31) + this.
|
|
2889
|
-
result = imul(result, 31) + this.
|
|
2890
|
-
result = imul(result, 31) + this.
|
|
3011
|
+
var result = Path__hashCode_impl_go73kd_0(this.i27_1);
|
|
3012
|
+
result = imul(result, 31) + this.j27_1.hashCode() | 0;
|
|
3013
|
+
result = imul(result, 31) + this.k27_1.hashCode() | 0;
|
|
3014
|
+
result = imul(result, 31) + this.l27_1.hashCode() | 0;
|
|
2891
3015
|
return result;
|
|
2892
3016
|
};
|
|
2893
3017
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -2896,20 +3020,20 @@
|
|
|
2896
3020
|
if (!(other instanceof FlattenRequest_0))
|
|
2897
3021
|
return false;
|
|
2898
3022
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
2899
|
-
if (!(this.
|
|
3023
|
+
if (!(this.i27_1 === tmp0_other_with_cast.i27_1))
|
|
2900
3024
|
return false;
|
|
2901
|
-
if (!this.
|
|
3025
|
+
if (!this.j27_1.equals(tmp0_other_with_cast.j27_1))
|
|
2902
3026
|
return false;
|
|
2903
|
-
if (!this.
|
|
3027
|
+
if (!this.k27_1.equals(tmp0_other_with_cast.k27_1))
|
|
2904
3028
|
return false;
|
|
2905
|
-
if (!this.
|
|
3029
|
+
if (!this.l27_1.equals(tmp0_other_with_cast.l27_1))
|
|
2906
3030
|
return false;
|
|
2907
3031
|
return true;
|
|
2908
3032
|
};
|
|
2909
3033
|
function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
2910
3034
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2911
3035
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2912
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
3036
|
+
var tmp0_flatMap = _this__u8e3s4.q1n_1;
|
|
2913
3037
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2914
3038
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
2915
3039
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -2918,7 +3042,7 @@
|
|
|
2918
3042
|
var element = tmp0_iterator.e();
|
|
2919
3043
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
2920
3044
|
// Inline function 'kotlin.collections.component1' call
|
|
2921
|
-
var path = element.v().
|
|
3045
|
+
var path = element.v().z1n_1;
|
|
2922
3046
|
// Inline function 'kotlin.collections.component2' call
|
|
2923
3047
|
var pathItem = element.w();
|
|
2924
3048
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2953,23 +3077,23 @@
|
|
|
2953
3077
|
return tmp0_flatMapTo_0;
|
|
2954
3078
|
}
|
|
2955
3079
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
2956
|
-
this.
|
|
2957
|
-
this.
|
|
2958
|
-
this.
|
|
2959
|
-
this.
|
|
2960
|
-
this.
|
|
2961
|
-
this.
|
|
3080
|
+
this.m27_1 = path;
|
|
3081
|
+
this.n27_1 = pathItem;
|
|
3082
|
+
this.o27_1 = method;
|
|
3083
|
+
this.p27_1 = operation;
|
|
3084
|
+
this.q27_1 = statusCode;
|
|
3085
|
+
this.r27_1 = response;
|
|
2962
3086
|
}
|
|
2963
3087
|
protoOf(FlattenResponse_0).toString = function () {
|
|
2964
|
-
return 'FlattenResponse(path=' + new Path_0(this.
|
|
3088
|
+
return 'FlattenResponse(path=' + new Path_0(this.m27_1) + ', pathItem=' + this.n27_1 + ', method=' + this.o27_1 + ', operation=' + this.p27_1 + ', statusCode=' + new StatusCode_0(this.q27_1) + ', response=' + this.r27_1 + ')';
|
|
2965
3089
|
};
|
|
2966
3090
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
2967
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
2968
|
-
result = imul(result, 31) + this.
|
|
2969
|
-
result = imul(result, 31) + this.
|
|
2970
|
-
result = imul(result, 31) + this.
|
|
2971
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.
|
|
2972
|
-
result = imul(result, 31) + hashCode(this.
|
|
3091
|
+
var result = Path__hashCode_impl_go73kd_0(this.m27_1);
|
|
3092
|
+
result = imul(result, 31) + this.n27_1.hashCode() | 0;
|
|
3093
|
+
result = imul(result, 31) + this.o27_1.hashCode() | 0;
|
|
3094
|
+
result = imul(result, 31) + this.p27_1.hashCode() | 0;
|
|
3095
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.q27_1) | 0;
|
|
3096
|
+
result = imul(result, 31) + hashCode(this.r27_1) | 0;
|
|
2973
3097
|
return result;
|
|
2974
3098
|
};
|
|
2975
3099
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -2978,24 +3102,24 @@
|
|
|
2978
3102
|
if (!(other instanceof FlattenResponse_0))
|
|
2979
3103
|
return false;
|
|
2980
3104
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
2981
|
-
if (!(this.
|
|
3105
|
+
if (!(this.m27_1 === tmp0_other_with_cast.m27_1))
|
|
2982
3106
|
return false;
|
|
2983
|
-
if (!this.
|
|
3107
|
+
if (!this.n27_1.equals(tmp0_other_with_cast.n27_1))
|
|
2984
3108
|
return false;
|
|
2985
|
-
if (!this.
|
|
3109
|
+
if (!this.o27_1.equals(tmp0_other_with_cast.o27_1))
|
|
2986
3110
|
return false;
|
|
2987
|
-
if (!this.
|
|
3111
|
+
if (!this.p27_1.equals(tmp0_other_with_cast.p27_1))
|
|
2988
3112
|
return false;
|
|
2989
|
-
if (!(this.
|
|
3113
|
+
if (!(this.q27_1 === tmp0_other_with_cast.q27_1))
|
|
2990
3114
|
return false;
|
|
2991
|
-
if (!equals(this.
|
|
3115
|
+
if (!equals(this.r27_1, tmp0_other_with_cast.r27_1))
|
|
2992
3116
|
return false;
|
|
2993
3117
|
return true;
|
|
2994
3118
|
};
|
|
2995
3119
|
function flatMapResponses_0(_this__u8e3s4, $this, f) {
|
|
2996
3120
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2997
3121
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2998
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
3122
|
+
var tmp0_flatMap = _this__u8e3s4.q1n_1;
|
|
2999
3123
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3000
3124
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
3001
3125
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -3004,7 +3128,7 @@
|
|
|
3004
3128
|
var element = tmp0_iterator.e();
|
|
3005
3129
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
3006
3130
|
// Inline function 'kotlin.collections.component1' call
|
|
3007
|
-
var path = element.v().
|
|
3131
|
+
var path = element.v().z1n_1;
|
|
3008
3132
|
// Inline function 'kotlin.collections.component2' call
|
|
3009
3133
|
var pathItem = element.w();
|
|
3010
3134
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -3021,7 +3145,7 @@
|
|
|
3021
3145
|
// Inline function 'kotlin.collections.component2' call
|
|
3022
3146
|
var operation = element_0.w();
|
|
3023
3147
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3024
|
-
var tmp0_safe_receiver = operation.
|
|
3148
|
+
var tmp0_safe_receiver = operation.b1p_1;
|
|
3025
3149
|
var tmp;
|
|
3026
3150
|
if (tmp0_safe_receiver == null) {
|
|
3027
3151
|
tmp = null;
|
|
@@ -3036,7 +3160,7 @@
|
|
|
3036
3160
|
var tmp$ret$9;
|
|
3037
3161
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
3038
3162
|
// Inline function 'kotlin.collections.component1' call
|
|
3039
|
-
var statusCode = item.v().
|
|
3163
|
+
var statusCode = item.v().l1s_1;
|
|
3040
3164
|
// Inline function 'kotlin.collections.component2' call
|
|
3041
3165
|
var response = item.w();
|
|
3042
3166
|
tmp$ret$9 = new FlattenResponse_0(path, pathItem, method, operation, statusCode, response);
|
|
@@ -3064,9 +3188,9 @@
|
|
|
3064
3188
|
}
|
|
3065
3189
|
function OpenApiParser$parseParameters$lambda(this$0) {
|
|
3066
3190
|
return function (req) {
|
|
3067
|
-
var parameters = plus(resolveParameters_2(req.
|
|
3068
|
-
var
|
|
3069
|
-
var name =
|
|
3191
|
+
var parameters = plus(resolveParameters_2(req.j27_1, this$0), resolveParameters_1(req.l27_1, this$0));
|
|
3192
|
+
var tmp0_elvis_lhs = toName_0(req.l27_1, this$0);
|
|
3193
|
+
var name = tmp0_elvis_lhs == null ? toName_1(req.i27_1, this$0) + req.k27_1.v4_1 : tmp0_elvis_lhs;
|
|
3070
3194
|
var tmp$ret$2;
|
|
3071
3195
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3072
3196
|
var tmp$ret$1;
|
|
@@ -3077,8 +3201,8 @@
|
|
|
3077
3201
|
var element = tmp0_iterator.e();
|
|
3078
3202
|
var tmp$ret$0;
|
|
3079
3203
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
3080
|
-
var tmp0_safe_receiver = element.
|
|
3081
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().
|
|
3204
|
+
var tmp0_safe_receiver = element.r1p_1;
|
|
3205
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().r26([name, 'Parameter', element.v1p_1]));
|
|
3082
3206
|
tmp$ret$0 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
3083
3207
|
var list = tmp$ret$0;
|
|
3084
3208
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -3090,18 +3214,17 @@
|
|
|
3090
3214
|
}
|
|
3091
3215
|
function OpenApiParser$parseRequestBody$lambda_0(this$0) {
|
|
3092
3216
|
return function (req) {
|
|
3093
|
-
var
|
|
3094
|
-
var
|
|
3095
|
-
var name = toName_0(req.e1v_1, this$0, segments, req.d1v_1);
|
|
3217
|
+
var tmp0_elvis_lhs = toName_0(req.l27_1, this$0);
|
|
3218
|
+
var name = tmp0_elvis_lhs == null ? toName_1(req.i27_1, this$0) + req.k27_1.v4_1 : tmp0_elvis_lhs;
|
|
3096
3219
|
var tmp$ret$6;
|
|
3097
3220
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3098
3221
|
var tmp$ret$0;
|
|
3099
3222
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3100
|
-
var
|
|
3101
|
-
var
|
|
3102
|
-
var tmp0_orEmpty =
|
|
3103
|
-
var
|
|
3104
|
-
tmp$ret$0 =
|
|
3223
|
+
var tmp1_safe_receiver = req.l27_1.a1p_1;
|
|
3224
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_6(tmp1_safe_receiver, this$0);
|
|
3225
|
+
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.c1q_1;
|
|
3226
|
+
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
3227
|
+
tmp$ret$0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
3105
3228
|
var tmp1_flatMap = tmp$ret$0;
|
|
3106
3229
|
var tmp$ret$5;
|
|
3107
3230
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -3118,24 +3241,24 @@
|
|
|
3118
3241
|
// Inline function 'kotlin.collections.component2' call
|
|
3119
3242
|
tmp$ret$2 = element.w();
|
|
3120
3243
|
var mediaObject = tmp$ret$2;
|
|
3121
|
-
var schema = mediaObject.
|
|
3244
|
+
var schema = mediaObject.m1q_1;
|
|
3122
3245
|
var tmp;
|
|
3123
3246
|
if (schema instanceof SchemaObject_0) {
|
|
3124
|
-
var tmp0_subject = schema.
|
|
3125
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.
|
|
3247
|
+
var tmp0_subject = schema.g1r_1;
|
|
3248
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.w4_1;
|
|
3126
3249
|
var tmp_0;
|
|
3127
3250
|
switch (tmp0) {
|
|
3128
3251
|
case -1:
|
|
3129
3252
|
case 5:
|
|
3130
|
-
tmp_0 = flatten_1(schema, this$0, Common_getInstance().
|
|
3253
|
+
tmp_0 = flatten_1(schema, this$0, Common_getInstance().r26([name, 'RequestBody']));
|
|
3131
3254
|
break;
|
|
3132
3255
|
case 4:
|
|
3133
3256
|
var tmp$ret$3;
|
|
3134
3257
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3135
|
-
var tmp1_safe_receiver_0 = schema.
|
|
3136
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
3137
|
-
var
|
|
3138
|
-
tmp$ret$3 =
|
|
3258
|
+
var tmp1_safe_receiver_0 = schema.l1r_1;
|
|
3259
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().r26([name, 'RequestBody']));
|
|
3260
|
+
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
3261
|
+
tmp$ret$3 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
3139
3262
|
|
|
3140
3263
|
tmp_0 = tmp$ret$3;
|
|
3141
3264
|
break;
|
|
@@ -3166,19 +3289,18 @@
|
|
|
3166
3289
|
}
|
|
3167
3290
|
function OpenApiParser$parseResponseBody$lambda_0(this$0) {
|
|
3168
3291
|
return function (res) {
|
|
3169
|
-
var
|
|
3170
|
-
var
|
|
3171
|
-
var
|
|
3172
|
-
var response = res.k1v_1;
|
|
3292
|
+
var tmp0_elvis_lhs = toName_0(res.p27_1, this$0);
|
|
3293
|
+
var name = tmp0_elvis_lhs == null ? toName_1(res.m27_1, this$0) + res.o27_1.v4_1 : tmp0_elvis_lhs;
|
|
3294
|
+
var response = res.r27_1;
|
|
3173
3295
|
var tmp;
|
|
3174
3296
|
if (response instanceof ResponseObject_0) {
|
|
3175
3297
|
var tmp$ret$6;
|
|
3176
3298
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3177
3299
|
var tmp$ret$0;
|
|
3178
3300
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3179
|
-
var tmp0_orEmpty = response.
|
|
3180
|
-
var
|
|
3181
|
-
tmp$ret$0 =
|
|
3301
|
+
var tmp0_orEmpty = response.r1s_1;
|
|
3302
|
+
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
3303
|
+
tmp$ret$0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
3182
3304
|
var tmp1_flatMap = tmp$ret$0;
|
|
3183
3305
|
var tmp$ret$5;
|
|
3184
3306
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -3195,24 +3317,24 @@
|
|
|
3195
3317
|
// Inline function 'kotlin.collections.component2' call
|
|
3196
3318
|
tmp$ret$2 = element.w();
|
|
3197
3319
|
var mediaObject = tmp$ret$2;
|
|
3198
|
-
var schema = mediaObject.
|
|
3320
|
+
var schema = mediaObject.m1q_1;
|
|
3199
3321
|
var tmp_0;
|
|
3200
3322
|
if (schema instanceof SchemaObject_0) {
|
|
3201
|
-
var tmp0_subject = schema.
|
|
3202
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.
|
|
3323
|
+
var tmp0_subject = schema.g1r_1;
|
|
3324
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.w4_1;
|
|
3203
3325
|
var tmp_1;
|
|
3204
3326
|
switch (tmp0) {
|
|
3205
3327
|
case -1:
|
|
3206
3328
|
case 5:
|
|
3207
|
-
tmp_1 = flatten_1(schema, this$0, Common_getInstance().
|
|
3329
|
+
tmp_1 = flatten_1(schema, this$0, Common_getInstance().r26([name, _StatusCode___get_value__impl__we50mu_0(res.q27_1), 'ResponseBody']));
|
|
3208
3330
|
break;
|
|
3209
3331
|
case 4:
|
|
3210
3332
|
var tmp$ret$3;
|
|
3211
3333
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3212
|
-
var tmp1_safe_receiver = schema.
|
|
3213
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().
|
|
3214
|
-
var
|
|
3215
|
-
tmp$ret$3 =
|
|
3334
|
+
var tmp1_safe_receiver = schema.l1r_1;
|
|
3335
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().r26([name, _StatusCode___get_value__impl__we50mu_0(res.q27_1), 'ResponseBody']));
|
|
3336
|
+
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
3337
|
+
tmp$ret$3 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
3216
3338
|
|
|
3217
3339
|
tmp_1 = tmp$ret$3;
|
|
3218
3340
|
break;
|
|
@@ -3241,33 +3363,47 @@
|
|
|
3241
3363
|
return tmp;
|
|
3242
3364
|
};
|
|
3243
3365
|
}
|
|
3244
|
-
function OpenApiParser$toName$lambda_0(
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
tmp
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3366
|
+
function OpenApiParser$toName$lambda_0(this$0) {
|
|
3367
|
+
return function (it) {
|
|
3368
|
+
var tmp0_subject = isParam(it, this$0);
|
|
3369
|
+
var tmp;
|
|
3370
|
+
switch (tmp0_subject) {
|
|
3371
|
+
case true:
|
|
3372
|
+
var tmp_0 = Common_getInstance();
|
|
3373
|
+
var tmp$ret$1;
|
|
3374
|
+
// Inline function 'kotlin.text.substring' call
|
|
3375
|
+
var tmp0_substring = it.length - 1 | 0;
|
|
3376
|
+
var tmp$ret$0;
|
|
3377
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3378
|
+
tmp$ret$0 = it;
|
|
3379
|
+
tmp$ret$1 = tmp$ret$0.substring(1, tmp0_substring);
|
|
3380
|
+
|
|
3381
|
+
tmp = tmp_0.r26([tmp$ret$1]);
|
|
3382
|
+
break;
|
|
3383
|
+
case false:
|
|
3384
|
+
tmp = Common_getInstance().r26([it]);
|
|
3385
|
+
break;
|
|
3386
|
+
default:
|
|
3387
|
+
noWhenBranchMatchedException();
|
|
3388
|
+
break;
|
|
3253
3389
|
}
|
|
3254
|
-
|
|
3255
|
-
|
|
3390
|
+
return tmp;
|
|
3391
|
+
};
|
|
3256
3392
|
}
|
|
3257
3393
|
function OpenApiParser_0(openApi) {
|
|
3258
3394
|
Companion_getInstance_1();
|
|
3259
|
-
this.
|
|
3395
|
+
this.h27_1 = openApi;
|
|
3260
3396
|
}
|
|
3261
3397
|
function toMap_1(_this__u8e3s4) {
|
|
3262
3398
|
var tmp;
|
|
3263
3399
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3264
|
-
tmp = _this__u8e3s4.
|
|
3400
|
+
tmp = _this__u8e3s4.h26(VOID, VOID, true);
|
|
3265
3401
|
} else {
|
|
3266
3402
|
if (_this__u8e3s4 instanceof Any) {
|
|
3267
|
-
tmp = _this__u8e3s4.
|
|
3403
|
+
tmp = _this__u8e3s4.f26(VOID, true);
|
|
3268
3404
|
} else {
|
|
3269
3405
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3270
|
-
tmp = _this__u8e3s4.
|
|
3406
|
+
tmp = _this__u8e3s4.j26(VOID, VOID, true);
|
|
3271
3407
|
} else {
|
|
3272
3408
|
noWhenBranchMatchedException();
|
|
3273
3409
|
}
|
|
@@ -3277,7 +3413,7 @@
|
|
|
3277
3413
|
}
|
|
3278
3414
|
function isPrimitive_0(_this__u8e3s4) {
|
|
3279
3415
|
var tmp;
|
|
3280
|
-
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.
|
|
3416
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.w4_1) {
|
|
3281
3417
|
case 0:
|
|
3282
3418
|
tmp = true;
|
|
3283
3419
|
break;
|
|
@@ -3308,13 +3444,13 @@
|
|
|
3308
3444
|
function toIterable_0(_this__u8e3s4) {
|
|
3309
3445
|
var tmp;
|
|
3310
3446
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3311
|
-
tmp = _this__u8e3s4.
|
|
3447
|
+
tmp = _this__u8e3s4.h26(VOID, true);
|
|
3312
3448
|
} else {
|
|
3313
3449
|
if (_this__u8e3s4 instanceof Any) {
|
|
3314
|
-
tmp = _this__u8e3s4.
|
|
3450
|
+
tmp = _this__u8e3s4.f26(true);
|
|
3315
3451
|
} else {
|
|
3316
3452
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3317
|
-
tmp = _this__u8e3s4.
|
|
3453
|
+
tmp = _this__u8e3s4.j26(VOID, true);
|
|
3318
3454
|
} else {
|
|
3319
3455
|
noWhenBranchMatchedException();
|
|
3320
3456
|
}
|