@flock/wirespec 0.8.30 → 0.8.31
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 +1357 -1126
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin-openapi-bindings.js +5776 -3627
- 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 +2157 -1566
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.d.ts +340 -0
- package/wirespec-src-compiler-lib.js +1319 -112
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-openapi.js +474 -474
- package/wirespec-src-openapi.js.map +1 -1
package/wirespec-src-openapi.js
CHANGED
|
@@ -19,104 +19,104 @@
|
|
|
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.$_$.x1;
|
|
32
|
+
var plus = kotlin_kotlin.$_$.d6;
|
|
33
|
+
var ParameterLocation_QUERY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y;
|
|
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.$_$.w;
|
|
37
|
+
var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v;
|
|
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.$_$.q1;
|
|
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 ParameterObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
109
|
-
var Ref_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
110
|
-
var RequestBodyObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
111
|
-
var ResponseObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
112
|
-
var BooleanObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
113
|
-
var _Ref___get_value__impl__kxavfe_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
114
|
-
var getOrNull = kotlin_kotlin.$_$.
|
|
115
|
-
var Type_ARRAY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
116
|
-
var Path_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
117
|
-
var Path__hashCode_impl_go73kd_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
118
|
-
var StatusCode_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
119
|
-
var StatusCode__hashCode_impl_fevhvx_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
73
|
+
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.n1;
|
|
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.$_$.z;
|
|
81
|
+
var equals = kotlin_kotlin.$_$.i7;
|
|
82
|
+
var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l1;
|
|
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.$_$.k1;
|
|
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.$_$.p1;
|
|
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.$_$.y1;
|
|
100
|
+
var ParameterLocation_QUERY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h1;
|
|
101
|
+
var ParameterLocation_HEADER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g1;
|
|
102
|
+
var ParameterLocation_COOKIE_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f1;
|
|
103
|
+
var _MediaType___get_value__impl__wy58mp = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r1;
|
|
104
|
+
var SchemaObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t;
|
|
105
|
+
var ReferenceObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.p;
|
|
106
|
+
var _StatusCode___get_value__impl__we50mu_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w1;
|
|
107
|
+
var _Path___get_value__impl__thmflc_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t1;
|
|
108
|
+
var ParameterObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.n;
|
|
109
|
+
var Ref_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.q;
|
|
110
|
+
var RequestBodyObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r;
|
|
111
|
+
var ResponseObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s;
|
|
112
|
+
var BooleanObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m;
|
|
113
|
+
var _Ref___get_value__impl__kxavfe_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.u1;
|
|
114
|
+
var getOrNull = kotlin_kotlin.$_$.j5;
|
|
115
|
+
var Type_ARRAY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i1;
|
|
116
|
+
var Path_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o;
|
|
117
|
+
var Path__hashCode_impl_go73kd_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s1;
|
|
118
|
+
var StatusCode_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.u;
|
|
119
|
+
var StatusCode__hashCode_impl_fevhvx_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v1;
|
|
120
120
|
//endregion
|
|
121
121
|
//region block: pre-declaration
|
|
122
122
|
setMetadataFor(Common, 'Common', objectMeta);
|
|
@@ -130,12 +130,12 @@
|
|
|
130
130
|
setMetadataFor(OpenApiParser_0, 'OpenApiParser', classMeta);
|
|
131
131
|
//endregion
|
|
132
132
|
function Common$className$lambda(it) {
|
|
133
|
-
return Companion_getInstance().
|
|
133
|
+
return Companion_getInstance().z21(it);
|
|
134
134
|
}
|
|
135
135
|
function Common() {
|
|
136
136
|
Common_instance = this;
|
|
137
137
|
}
|
|
138
|
-
protoOf(Common).
|
|
138
|
+
protoOf(Common).p26 = function (arg) {
|
|
139
139
|
// Inline function 'kotlin.collections.flatMap' call
|
|
140
140
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
141
141
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -160,12 +160,12 @@
|
|
|
160
160
|
function Companion() {
|
|
161
161
|
Companion_instance = this;
|
|
162
162
|
}
|
|
163
|
-
protoOf(Companion).
|
|
163
|
+
protoOf(Companion).q26 = function (json) {
|
|
164
164
|
// Inline function 'kotlin.let' call
|
|
165
|
-
var tmp0_let = Default_getInstance().
|
|
165
|
+
var tmp0_let = Default_getInstance().i1d(json);
|
|
166
166
|
// Inline function 'kotlin.contracts.contract' call
|
|
167
167
|
// Inline function 'community.flock.wirespec.openapi.v2.Companion.parse.<anonymous>' call
|
|
168
|
-
return (new OpenApiParser(tmp0_let)).
|
|
168
|
+
return (new OpenApiParser(tmp0_let)).s26();
|
|
169
169
|
};
|
|
170
170
|
var Companion_instance;
|
|
171
171
|
function Companion_getInstance_0() {
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
}
|
|
176
176
|
function parseEndpoints($this) {
|
|
177
177
|
// Inline function 'kotlin.collections.flatMap' call
|
|
178
|
-
var tmp0_flatMap = $this.
|
|
178
|
+
var tmp0_flatMap = $this.r26_1.u1d_1;
|
|
179
179
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
180
180
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
181
181
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
var element = tmp0_iterator.e();
|
|
185
185
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>' call
|
|
186
186
|
// Inline function 'kotlin.collections.component1' call
|
|
187
|
-
var path = element.v().
|
|
187
|
+
var path = element.v().g1e_1;
|
|
188
188
|
// Inline function 'kotlin.collections.component2' call
|
|
189
189
|
var pathItem = element.w();
|
|
190
190
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
while (tmp0_iterator_1.d()) {
|
|
212
212
|
var element_1 = tmp0_iterator_1.e();
|
|
213
213
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
214
|
-
if (element_1.
|
|
214
|
+
if (element_1.t1f_1.equals(ParameterLocation_QUERY_getInstance())) {
|
|
215
215
|
tmp0_filterTo.a(element_1);
|
|
216
216
|
}
|
|
217
217
|
}
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
while (tmp0_iterator_3.d()) {
|
|
235
235
|
var element_2 = tmp0_iterator_3.e();
|
|
236
236
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
237
|
-
if (element_2.
|
|
237
|
+
if (element_2.t1f_1.equals(ParameterLocation_HEADER_getInstance())) {
|
|
238
238
|
tmp0_filterTo_0.a(element_2);
|
|
239
239
|
}
|
|
240
240
|
}
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
while (tmp0_iterator_5.d()) {
|
|
259
259
|
var element_3 = tmp0_iterator_5.e();
|
|
260
260
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
261
|
-
if (element_3.
|
|
261
|
+
if (element_3.t1f_1.equals(ParameterLocation_BODY_getInstance())) {
|
|
262
262
|
tmp0_filterTo_1.a(element_3);
|
|
263
263
|
}
|
|
264
264
|
}
|
|
@@ -270,8 +270,8 @@
|
|
|
270
270
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
271
271
|
// Inline function 'kotlin.collections.map' call
|
|
272
272
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
273
|
-
var tmp0_elvis_lhs = $this.
|
|
274
|
-
var tmp0_elvis_lhs_0 = tmp0_elvis_lhs == null ? operation.
|
|
273
|
+
var tmp0_elvis_lhs = $this.r26_1.s1d_1;
|
|
274
|
+
var tmp0_elvis_lhs_0 = tmp0_elvis_lhs == null ? operation.g1f_1 : tmp0_elvis_lhs;
|
|
275
275
|
var tmp1_map = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
276
276
|
// Inline function 'kotlin.collections.mapTo' call
|
|
277
277
|
var tmp0_mapTo_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -280,13 +280,13 @@
|
|
|
280
280
|
var item_1 = tmp0_iterator_7.e();
|
|
281
281
|
var tmp$ret$22;
|
|
282
282
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
283
|
-
var schema = element_4.
|
|
283
|
+
var schema = element_4.w1f_1;
|
|
284
284
|
var tmp;
|
|
285
285
|
if (schema instanceof ReferenceObject) {
|
|
286
286
|
tmp = toReference(schema, $this);
|
|
287
287
|
} else {
|
|
288
288
|
if (schema instanceof SchemaObject) {
|
|
289
|
-
tmp = toReference_0(schema, $this, Common_getInstance().
|
|
289
|
+
tmp = toReference_0(schema, $this, Common_getInstance().p26([name, 'RequestBody']));
|
|
290
290
|
} else {
|
|
291
291
|
if (schema == null) {
|
|
292
292
|
throw new NotImplementedError();
|
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
298
|
var tmp_0 = tmp;
|
|
299
|
-
var tmp0_elvis_lhs_1 = element_4.
|
|
299
|
+
var tmp0_elvis_lhs_1 = element_4.v1f_1;
|
|
300
300
|
tmp$ret$22 = new Request(new Content(item_1, tmp_0, tmp0_elvis_lhs_1 == null ? false : tmp0_elvis_lhs_1));
|
|
301
301
|
tmp0_mapTo_1.a(tmp$ret$22);
|
|
302
302
|
}
|
|
@@ -313,7 +313,7 @@
|
|
|
313
313
|
var requests = tmp_1;
|
|
314
314
|
// Inline function 'kotlin.collections.flatMap' call
|
|
315
315
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
316
|
-
var tmp0_elvis_lhs_2 = operation.
|
|
316
|
+
var tmp0_elvis_lhs_2 = operation.j1f_1;
|
|
317
317
|
var tmp5_flatMap = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
318
318
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
319
319
|
var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
|
|
@@ -323,13 +323,13 @@
|
|
|
323
323
|
var element_5 = tmp0_iterator_8.e();
|
|
324
324
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
325
325
|
// Inline function 'kotlin.collections.component1' call
|
|
326
|
-
var status = element_5.v().
|
|
326
|
+
var status = element_5.v().f1i_1;
|
|
327
327
|
// Inline function 'kotlin.collections.component2' call
|
|
328
328
|
var res = element_5.w();
|
|
329
329
|
// Inline function 'kotlin.collections.map' call
|
|
330
330
|
// 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.
|
|
331
|
+
var tmp0_elvis_lhs_3 = $this.r26_1.t1d_1;
|
|
332
|
+
var tmp0_elvis_lhs_4 = tmp0_elvis_lhs_3 == null ? operation.h1f_1 : tmp0_elvis_lhs_3;
|
|
333
333
|
var tmp1_map_0 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
334
334
|
// Inline function 'kotlin.collections.mapTo' call
|
|
335
335
|
var tmp0_mapTo_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map_0, 10));
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
var tmp$ret$37;
|
|
340
340
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
341
341
|
var tmp_2 = _StatusCode___get_value__impl__we50mu(status);
|
|
342
|
-
var tmp0_safe_receiver = resolve_1(res, $this).
|
|
342
|
+
var tmp0_safe_receiver = resolve_1(res, $this).k1i_1;
|
|
343
343
|
var tmp_3;
|
|
344
344
|
if (tmp0_safe_receiver == null) {
|
|
345
345
|
tmp_3 = null;
|
|
@@ -352,7 +352,7 @@
|
|
|
352
352
|
tmp_4 = toReference(tmp0_safe_receiver, $this);
|
|
353
353
|
} else {
|
|
354
354
|
if (tmp0_safe_receiver instanceof SchemaObject) {
|
|
355
|
-
tmp_4 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().
|
|
355
|
+
tmp_4 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().p26([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']));
|
|
356
356
|
} else {
|
|
357
357
|
noWhenBranchMatchedException();
|
|
358
358
|
}
|
|
@@ -375,17 +375,17 @@
|
|
|
375
375
|
return tmp0_flatMapTo;
|
|
376
376
|
}
|
|
377
377
|
function parseRequestBody($this) {
|
|
378
|
-
return flatMapRequests($this.
|
|
378
|
+
return flatMapRequests($this.r26_1, $this, OpenApiParser$parseRequestBody$lambda($this));
|
|
379
379
|
}
|
|
380
380
|
function parseResponseBody($this) {
|
|
381
|
-
return flatMapResponses($this.
|
|
381
|
+
return flatMapResponses($this.r26_1, $this, OpenApiParser$parseResponseBody$lambda($this));
|
|
382
382
|
}
|
|
383
383
|
function parseDefinitions($this) {
|
|
384
384
|
// Inline function 'kotlin.collections.flatMap' call
|
|
385
385
|
// Inline function 'kotlin.collections.filter' call
|
|
386
386
|
// Inline function 'arrow.core.filterIsInstance' call
|
|
387
387
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
388
|
-
var tmp0_elvis_lhs = $this.
|
|
388
|
+
var tmp0_elvis_lhs = $this.r26_1.v1d_1;
|
|
389
389
|
var tmp1_filterIsInstance = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
390
390
|
// Inline function 'kotlin.collections.filterValues' call
|
|
391
391
|
var result = LinkedHashMap_init_$Create$();
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
while (tmp0_iterator_0.d()) {
|
|
408
408
|
var element = tmp0_iterator_0.e();
|
|
409
409
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
410
|
-
if (element.w().
|
|
410
|
+
if (element.w().a1i_1 == null) {
|
|
411
411
|
tmp0_filterTo.l3(element.v(), element.w());
|
|
412
412
|
}
|
|
413
413
|
}
|
|
@@ -418,7 +418,7 @@
|
|
|
418
418
|
while (tmp0_iterator_1.d()) {
|
|
419
419
|
var element_0 = tmp0_iterator_1.e();
|
|
420
420
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
421
|
-
var list = flatten(element_0.w(), $this, Common_getInstance().
|
|
421
|
+
var list = flatten(element_0.w(), $this, Common_getInstance().p26([element_0.v()]));
|
|
422
422
|
addAll(tmp0_flatMapTo, list);
|
|
423
423
|
}
|
|
424
424
|
return tmp0_flatMapTo;
|
|
@@ -426,7 +426,7 @@
|
|
|
426
426
|
function resolveParameters(_this__u8e3s4, $this) {
|
|
427
427
|
// Inline function 'kotlin.collections.map' call
|
|
428
428
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
429
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
429
|
+
var tmp0_elvis_lhs = _this__u8e3s4.i1f_1;
|
|
430
430
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
431
431
|
// Inline function 'kotlin.collections.mapTo' call
|
|
432
432
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -453,7 +453,7 @@
|
|
|
453
453
|
function resolveParameters_0(_this__u8e3s4, $this) {
|
|
454
454
|
// Inline function 'kotlin.collections.map' call
|
|
455
455
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
456
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
456
|
+
var tmp0_elvis_lhs = _this__u8e3s4.w1e_1;
|
|
457
457
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
458
458
|
// Inline function 'kotlin.collections.mapTo' call
|
|
459
459
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -478,11 +478,11 @@
|
|
|
478
478
|
return tmp0_mapTo;
|
|
479
479
|
}
|
|
480
480
|
function resolveParameterObject(_this__u8e3s4, $this) {
|
|
481
|
-
var tmp0_safe_receiver = $this.
|
|
481
|
+
var tmp0_safe_receiver = $this.r26_1.w1d_1;
|
|
482
482
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n2(getReference(_this__u8e3s4, $this));
|
|
483
483
|
var tmp;
|
|
484
484
|
if (tmp1_elvis_lhs == null) {
|
|
485
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
485
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.t1g_1);
|
|
486
486
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
487
487
|
} else {
|
|
488
488
|
tmp = tmp1_elvis_lhs;
|
|
@@ -490,11 +490,11 @@
|
|
|
490
490
|
return tmp;
|
|
491
491
|
}
|
|
492
492
|
function resolveResponseObject(_this__u8e3s4, $this) {
|
|
493
|
-
var tmp0_safe_receiver = $this.
|
|
493
|
+
var tmp0_safe_receiver = $this.r26_1.x1d_1;
|
|
494
494
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n2(getReference(_this__u8e3s4, $this));
|
|
495
495
|
var tmp;
|
|
496
496
|
if (tmp1_elvis_lhs == null) {
|
|
497
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
497
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.t1g_1);
|
|
498
498
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
499
499
|
} else {
|
|
500
500
|
tmp = tmp1_elvis_lhs;
|
|
@@ -502,11 +502,11 @@
|
|
|
502
502
|
return tmp;
|
|
503
503
|
}
|
|
504
504
|
function resolveSchemaObject(_this__u8e3s4, $this) {
|
|
505
|
-
var tmp0_safe_receiver = $this.
|
|
505
|
+
var tmp0_safe_receiver = $this.r26_1.v1d_1;
|
|
506
506
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n2(getReference(_this__u8e3s4, $this));
|
|
507
507
|
var tmp;
|
|
508
508
|
if (tmp1_elvis_lhs == null) {
|
|
509
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
509
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.t1g_1);
|
|
510
510
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
511
511
|
} else {
|
|
512
512
|
tmp = tmp1_elvis_lhs;
|
|
@@ -571,12 +571,12 @@
|
|
|
571
571
|
}
|
|
572
572
|
function flatten(_this__u8e3s4, $this, name) {
|
|
573
573
|
var tmp;
|
|
574
|
-
if (!(_this__u8e3s4.
|
|
574
|
+
if (!(_this__u8e3s4.a1i_1 == null)) {
|
|
575
575
|
var tmp_0;
|
|
576
|
-
if (_this__u8e3s4.
|
|
576
|
+
if (_this__u8e3s4.a1i_1 instanceof BooleanObject) {
|
|
577
577
|
tmp_0 = emptyList();
|
|
578
578
|
} else {
|
|
579
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
579
|
+
var tmp1_safe_receiver = _this__u8e3s4.a1i_1;
|
|
580
580
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_0(tmp1_safe_receiver, $this);
|
|
581
581
|
var tmp_1;
|
|
582
582
|
if (tmp2_safe_receiver == null) {
|
|
@@ -586,7 +586,7 @@
|
|
|
586
586
|
// Inline function 'kotlin.contracts.contract' call
|
|
587
587
|
var tmp_2;
|
|
588
588
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
589
|
-
if (!(tmp2_safe_receiver.
|
|
589
|
+
if (!(tmp2_safe_receiver.z1h_1 == null)) {
|
|
590
590
|
tmp_2 = tmp2_safe_receiver;
|
|
591
591
|
} else {
|
|
592
592
|
tmp_2 = null;
|
|
@@ -598,11 +598,11 @@
|
|
|
598
598
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
599
599
|
}
|
|
600
600
|
tmp = tmp_0;
|
|
601
|
-
} else if (!(_this__u8e3s4.
|
|
601
|
+
} else if (!(_this__u8e3s4.y1h_1 == null)) {
|
|
602
602
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
603
603
|
// Inline function 'kotlin.collections.flatMap' call
|
|
604
604
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
605
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
605
|
+
var tmp0_elvis_lhs = _this__u8e3s4.y1h_1;
|
|
606
606
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
607
607
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
608
608
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -619,14 +619,14 @@
|
|
|
619
619
|
while (tmp0_iterator_0.d()) {
|
|
620
620
|
var e = tmp0_iterator_0.e();
|
|
621
621
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
622
|
-
var key = e.
|
|
622
|
+
var key = e.l22_1;
|
|
623
623
|
if (set.a(key)) {
|
|
624
624
|
list_0.a(e);
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
627
|
var tmp_3 = listOf(new Type(name, new Shape(list_0)));
|
|
628
628
|
// Inline function 'kotlin.collections.flatMap' call
|
|
629
|
-
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.
|
|
629
|
+
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.y1h_1);
|
|
630
630
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
631
631
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
632
632
|
var tmp0_iterator_1 = tmp3_flatMap.c();
|
|
@@ -640,7 +640,7 @@
|
|
|
640
640
|
if (element_0 instanceof SchemaObject) {
|
|
641
641
|
// Inline function 'kotlin.collections.flatMap' call
|
|
642
642
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
643
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
643
|
+
var tmp0_elvis_lhs_0 = element_0.z1h_1;
|
|
644
644
|
var tmp1_flatMap_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
645
645
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
646
646
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
@@ -658,7 +658,7 @@
|
|
|
658
658
|
tmp_5 = emptyList();
|
|
659
659
|
} else {
|
|
660
660
|
if (value instanceof SchemaObject) {
|
|
661
|
-
tmp_5 = flatten(value, $this, Common_getInstance().
|
|
661
|
+
tmp_5 = flatten(value, $this, Common_getInstance().p26([name, key_0]));
|
|
662
662
|
} else {
|
|
663
663
|
noWhenBranchMatchedException();
|
|
664
664
|
}
|
|
@@ -675,10 +675,10 @@
|
|
|
675
675
|
addAll(tmp0_flatMapTo_0, list_2);
|
|
676
676
|
}
|
|
677
677
|
tmp = plus(tmp_3, tmp0_flatMapTo_0);
|
|
678
|
-
} else if (!(_this__u8e3s4.
|
|
678
|
+
} else if (!(_this__u8e3s4.v1h_1 == null)) {
|
|
679
679
|
// Inline function 'kotlin.let' call
|
|
680
680
|
// Inline function 'kotlin.collections.map' call
|
|
681
|
-
var tmp4_map = ensureNotNull(_this__u8e3s4.
|
|
681
|
+
var tmp4_map = ensureNotNull(_this__u8e3s4.v1h_1);
|
|
682
682
|
// Inline function 'kotlin.collections.mapTo' call
|
|
683
683
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp4_map, 10));
|
|
684
684
|
var tmp0_iterator_3 = tmp4_map.c();
|
|
@@ -686,7 +686,7 @@
|
|
|
686
686
|
var item = tmp0_iterator_3.e();
|
|
687
687
|
var tmp$ret$18;
|
|
688
688
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
689
|
-
tmp$ret$18 = item.
|
|
689
|
+
tmp$ret$18 = item.t12();
|
|
690
690
|
tmp0_mapTo.a(tmp$ret$18);
|
|
691
691
|
}
|
|
692
692
|
var tmp5_let = toSet(tmp0_mapTo);
|
|
@@ -694,16 +694,16 @@
|
|
|
694
694
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
695
695
|
tmp = listOf(new Enum(name, tmp5_let));
|
|
696
696
|
} else {
|
|
697
|
-
var tmp5_subject = _this__u8e3s4.
|
|
697
|
+
var tmp5_subject = _this__u8e3s4.w1h_1;
|
|
698
698
|
var tmp_6;
|
|
699
|
-
switch (tmp5_subject == null ? -1 : tmp5_subject.
|
|
699
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.w4_1) {
|
|
700
700
|
case -1:
|
|
701
701
|
case 5:
|
|
702
702
|
// Inline function 'kotlin.collections.flatMap' call
|
|
703
703
|
|
|
704
704
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
705
705
|
|
|
706
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
706
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.z1h_1;
|
|
707
707
|
var tmp7_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
708
708
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
709
709
|
|
|
@@ -718,7 +718,7 @@
|
|
|
718
718
|
var key_1 = element_2.v();
|
|
719
719
|
// Inline function 'kotlin.collections.component2' call
|
|
720
720
|
var value_0 = element_2.w();
|
|
721
|
-
var list_3 = flatten_0(value_0, $this, Common_getInstance().
|
|
721
|
+
var list_3 = flatten_0(value_0, $this, Common_getInstance().p26([name, key_1]));
|
|
722
722
|
addAll(tmp0_flatMapTo_2, list_3);
|
|
723
723
|
}
|
|
724
724
|
|
|
@@ -727,13 +727,13 @@
|
|
|
727
727
|
tmp_6 = plus(schema, fields);
|
|
728
728
|
break;
|
|
729
729
|
case 4:
|
|
730
|
-
var it = _this__u8e3s4.
|
|
730
|
+
var it = _this__u8e3s4.x1h_1;
|
|
731
731
|
var tmp_7;
|
|
732
732
|
if (it instanceof ReferenceObject) {
|
|
733
733
|
tmp_7 = emptyList();
|
|
734
734
|
} else {
|
|
735
735
|
if (it instanceof SchemaObject) {
|
|
736
|
-
tmp_7 = flatten(it, $this, Common_getInstance().
|
|
736
|
+
tmp_7 = flatten(it, $this, Common_getInstance().p26([name, 'Array']));
|
|
737
737
|
} else {
|
|
738
738
|
if (it == null) {
|
|
739
739
|
tmp_7 = emptyList();
|
|
@@ -773,8 +773,8 @@
|
|
|
773
773
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
|
|
774
774
|
var schema = resolve(tmp0_let, $this);
|
|
775
775
|
var tmp;
|
|
776
|
-
if (!(schema.
|
|
777
|
-
var additionalProperties = ensureNotNull(schema.
|
|
776
|
+
if (!(schema.a1i_1 == null)) {
|
|
777
|
+
var additionalProperties = ensureNotNull(schema.a1i_1);
|
|
778
778
|
var tmp_0;
|
|
779
779
|
if (additionalProperties instanceof BooleanObject) {
|
|
780
780
|
tmp_0 = new Any(false, true);
|
|
@@ -790,24 +790,24 @@
|
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
792
|
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.
|
|
793
|
+
} else if (!(schema.v1h_1 == null)) {
|
|
794
|
+
tmp = new Custom(Common_getInstance().p26([getReference(_this__u8e3s4, $this)]), false, false);
|
|
795
|
+
} else if (isPrimitive(schema.w1h_1)) {
|
|
796
|
+
tmp = new Primitive(toPrimitive(ensureNotNull(schema.w1h_1), $this), false, false);
|
|
797
797
|
} else {
|
|
798
|
-
var tmp0_subject = schema.
|
|
798
|
+
var tmp0_subject = schema.w1h_1;
|
|
799
799
|
var tmp_1;
|
|
800
|
-
if ((tmp0_subject == null ? -1 : tmp0_subject.
|
|
801
|
-
var items = schema.
|
|
800
|
+
if ((tmp0_subject == null ? -1 : tmp0_subject.w4_1) === 4) {
|
|
801
|
+
var items = schema.x1h_1;
|
|
802
802
|
var tmp_2;
|
|
803
803
|
if (items instanceof ReferenceObject) {
|
|
804
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
804
|
+
tmp_2 = new Custom(Common_getInstance().p26([getReference(items, $this)]), true);
|
|
805
805
|
} else {
|
|
806
806
|
if (items instanceof SchemaObject) {
|
|
807
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
807
|
+
tmp_2 = new Custom(Common_getInstance().p26([getReference(_this__u8e3s4, $this), 'Array']), true);
|
|
808
808
|
} else {
|
|
809
809
|
if (items == null) {
|
|
810
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.
|
|
810
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.t1g_1);
|
|
811
811
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
812
812
|
} else {
|
|
813
813
|
noWhenBranchMatchedException();
|
|
@@ -818,10 +818,10 @@
|
|
|
818
818
|
} else {
|
|
819
819
|
var tmp_3;
|
|
820
820
|
if (tmp0_let instanceof SchemaObject) {
|
|
821
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
821
|
+
tmp_3 = new Custom(Common_getInstance().p26([getReference(_this__u8e3s4, $this)]), false);
|
|
822
822
|
} else {
|
|
823
823
|
if (tmp0_let instanceof ReferenceObject) {
|
|
824
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
824
|
+
tmp_3 = new Custom(Common_getInstance().p26([getReference(tmp0_let, $this)]), false);
|
|
825
825
|
} else {
|
|
826
826
|
noWhenBranchMatchedException();
|
|
827
827
|
}
|
|
@@ -834,8 +834,8 @@
|
|
|
834
834
|
}
|
|
835
835
|
function toReference_0(_this__u8e3s4, $this, name) {
|
|
836
836
|
var tmp;
|
|
837
|
-
if (!(_this__u8e3s4.
|
|
838
|
-
var additionalProperties = ensureNotNull(_this__u8e3s4.
|
|
837
|
+
if (!(_this__u8e3s4.a1i_1 == null)) {
|
|
838
|
+
var additionalProperties = ensureNotNull(_this__u8e3s4.a1i_1);
|
|
839
839
|
var tmp_0;
|
|
840
840
|
if (additionalProperties instanceof BooleanObject) {
|
|
841
841
|
tmp_0 = new Any(false, true);
|
|
@@ -848,7 +848,7 @@
|
|
|
848
848
|
// Inline function 'kotlin.contracts.contract' call
|
|
849
849
|
var tmp_1;
|
|
850
850
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
|
|
851
|
-
if (isPrimitive(additionalProperties.
|
|
851
|
+
if (isPrimitive(additionalProperties.w1h_1) ? true : !(additionalProperties.z1h_1 == null)) {
|
|
852
852
|
tmp_1 = additionalProperties;
|
|
853
853
|
} else {
|
|
854
854
|
tmp_1 = null;
|
|
@@ -871,32 +871,32 @@
|
|
|
871
871
|
}
|
|
872
872
|
}
|
|
873
873
|
tmp = tmp_0;
|
|
874
|
-
} else if (!(_this__u8e3s4.
|
|
875
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
874
|
+
} else if (!(_this__u8e3s4.v1h_1 == null)) {
|
|
875
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.a1i_1 == null));
|
|
876
876
|
} else {
|
|
877
|
-
var type = _this__u8e3s4.
|
|
877
|
+
var type = _this__u8e3s4.w1h_1;
|
|
878
878
|
var tmp_3;
|
|
879
|
-
switch (type == null ? -1 : type.
|
|
879
|
+
switch (type == null ? -1 : type.w4_1) {
|
|
880
880
|
case 0:
|
|
881
881
|
case 2:
|
|
882
882
|
case 1:
|
|
883
883
|
case 3:
|
|
884
|
-
tmp_3 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.
|
|
884
|
+
tmp_3 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.a1i_1 == null));
|
|
885
885
|
break;
|
|
886
886
|
case -1:
|
|
887
887
|
case 5:
|
|
888
888
|
var tmp_4;
|
|
889
|
-
var tmp_5 = _this__u8e3s4.
|
|
889
|
+
var tmp_5 = _this__u8e3s4.a1i_1;
|
|
890
890
|
if (tmp_5 instanceof BooleanObject) {
|
|
891
|
-
tmp_4 = new Any(false, !(_this__u8e3s4.
|
|
891
|
+
tmp_4 = new Any(false, !(_this__u8e3s4.a1i_1 == null));
|
|
892
892
|
} else {
|
|
893
|
-
tmp_4 = new Custom(name, false, !(_this__u8e3s4.
|
|
893
|
+
tmp_4 = new Custom(name, false, !(_this__u8e3s4.a1i_1 == null));
|
|
894
894
|
}
|
|
895
895
|
|
|
896
896
|
tmp_3 = tmp_4;
|
|
897
897
|
break;
|
|
898
898
|
case 4:
|
|
899
|
-
var it = _this__u8e3s4.
|
|
899
|
+
var it = _this__u8e3s4.x1h_1;
|
|
900
900
|
var tmp_6;
|
|
901
901
|
if (it instanceof ReferenceObject) {
|
|
902
902
|
tmp_6 = toIterable(toReference(it, $this));
|
|
@@ -936,30 +936,30 @@
|
|
|
936
936
|
var tmp$ret$0;
|
|
937
937
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toOperationList.<anonymous>' call
|
|
938
938
|
var tmp;
|
|
939
|
-
switch (element.
|
|
939
|
+
switch (element.w4_1) {
|
|
940
940
|
case 0:
|
|
941
|
-
tmp = _this__u8e3s4.
|
|
941
|
+
tmp = _this__u8e3s4.n1e_1;
|
|
942
942
|
break;
|
|
943
943
|
case 1:
|
|
944
|
-
tmp = _this__u8e3s4.
|
|
944
|
+
tmp = _this__u8e3s4.p1e_1;
|
|
945
945
|
break;
|
|
946
946
|
case 2:
|
|
947
|
-
tmp = _this__u8e3s4.
|
|
947
|
+
tmp = _this__u8e3s4.o1e_1;
|
|
948
948
|
break;
|
|
949
949
|
case 3:
|
|
950
|
-
tmp = _this__u8e3s4.
|
|
950
|
+
tmp = _this__u8e3s4.q1e_1;
|
|
951
951
|
break;
|
|
952
952
|
case 4:
|
|
953
|
-
tmp = _this__u8e3s4.
|
|
953
|
+
tmp = _this__u8e3s4.r1e_1;
|
|
954
954
|
break;
|
|
955
955
|
case 5:
|
|
956
|
-
tmp = _this__u8e3s4.
|
|
956
|
+
tmp = _this__u8e3s4.s1e_1;
|
|
957
957
|
break;
|
|
958
958
|
case 6:
|
|
959
|
-
tmp = _this__u8e3s4.
|
|
959
|
+
tmp = _this__u8e3s4.t1e_1;
|
|
960
960
|
break;
|
|
961
961
|
case 7:
|
|
962
|
-
tmp = _this__u8e3s4.
|
|
962
|
+
tmp = _this__u8e3s4.u1e_1;
|
|
963
963
|
break;
|
|
964
964
|
default:
|
|
965
965
|
noWhenBranchMatchedException();
|
|
@@ -971,11 +971,11 @@
|
|
|
971
971
|
return filterNotNullValues(result);
|
|
972
972
|
}
|
|
973
973
|
function getReference(_this__u8e3s4, $this) {
|
|
974
|
-
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
974
|
+
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.t1g_1), ['/']).h(2);
|
|
975
975
|
}
|
|
976
976
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
977
977
|
var tmp;
|
|
978
|
-
switch (_this__u8e3s4.
|
|
978
|
+
switch (_this__u8e3s4.w4_1) {
|
|
979
979
|
case 0:
|
|
980
980
|
tmp = Type_String_getInstance();
|
|
981
981
|
break;
|
|
@@ -996,7 +996,7 @@
|
|
|
996
996
|
function toField(_this__u8e3s4, $this, name) {
|
|
997
997
|
// Inline function 'kotlin.collections.map' call
|
|
998
998
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
999
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
999
|
+
var tmp0_elvis_lhs = _this__u8e3s4.z1h_1;
|
|
1000
1000
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1001
1001
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1002
1002
|
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.f());
|
|
@@ -1013,15 +1013,15 @@
|
|
|
1013
1013
|
var tmp;
|
|
1014
1014
|
if (value instanceof SchemaObject) {
|
|
1015
1015
|
var tmp_0 = new Identifier(key);
|
|
1016
|
-
var tmp_1 = !(value.
|
|
1017
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
1016
|
+
var tmp_1 = !(value.v1h_1 == null) ? toReference_0(value, $this, Common_getInstance().p26([name, key])) : equals(value.w1h_1, Type_ARRAY_getInstance()) ? toReference_0(value, $this, Common_getInstance().p26([name, key, 'Array'])) : toReference_0(value, $this, Common_getInstance().p26([name, key]));
|
|
1017
|
+
var tmp1_safe_receiver = _this__u8e3s4.u1h_1;
|
|
1018
1018
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.j1(key);
|
|
1019
1019
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
1020
1020
|
} else {
|
|
1021
1021
|
if (value instanceof ReferenceObject) {
|
|
1022
1022
|
var tmp_2 = new Identifier(key);
|
|
1023
1023
|
var tmp_3 = toReference(value, $this);
|
|
1024
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
1024
|
+
var tmp3_safe_receiver = _this__u8e3s4.u1h_1;
|
|
1025
1025
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.j1(key);
|
|
1026
1026
|
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
1027
1027
|
} else {
|
|
@@ -1040,12 +1040,12 @@
|
|
|
1040
1040
|
// Inline function 'kotlin.contracts.contract' call
|
|
1041
1041
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1042
1042
|
var tmp;
|
|
1043
|
-
if (!(_this__u8e3s4.
|
|
1044
|
-
tmp = new Custom(Common_getInstance().
|
|
1043
|
+
if (!(_this__u8e3s4.n1g_1 == null)) {
|
|
1044
|
+
tmp = new Custom(Common_getInstance().p26([name, 'Parameter', tmp0_let.s1f_1]), false);
|
|
1045
1045
|
} else {
|
|
1046
|
-
var type = tmp0_let.
|
|
1046
|
+
var type = tmp0_let.x1f_1;
|
|
1047
1047
|
var tmp_0;
|
|
1048
|
-
switch (type == null ? -1 : type.
|
|
1048
|
+
switch (type == null ? -1 : type.w4_1) {
|
|
1049
1049
|
case 0:
|
|
1050
1050
|
case 1:
|
|
1051
1051
|
case 2:
|
|
@@ -1060,9 +1060,9 @@
|
|
|
1060
1060
|
tmp_0 = new Primitive(tmp0_let_0, false);
|
|
1061
1061
|
break;
|
|
1062
1062
|
case 4:
|
|
1063
|
-
var tmp0_safe_receiver = tmp0_let.
|
|
1063
|
+
var tmp0_safe_receiver = tmp0_let.y1f_1;
|
|
1064
1064
|
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.
|
|
1065
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.w1h_1;
|
|
1066
1066
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, $this);
|
|
1067
1067
|
var tmp_1;
|
|
1068
1068
|
if (tmp3_safe_receiver == null) {
|
|
@@ -1099,8 +1099,8 @@
|
|
|
1099
1099
|
var tmp1_let = tmp;
|
|
1100
1100
|
// Inline function 'kotlin.contracts.contract' call
|
|
1101
1101
|
// 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.
|
|
1102
|
+
var tmp_3 = new Identifier(_this__u8e3s4.s1f_1);
|
|
1103
|
+
var tmp0_elvis_lhs = _this__u8e3s4.v1f_1;
|
|
1104
1104
|
return new Field(tmp_3, tmp1_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
1105
1105
|
}
|
|
1106
1106
|
function toSegments(_this__u8e3s4, $this, parameters) {
|
|
@@ -1141,7 +1141,7 @@
|
|
|
1141
1141
|
while (tmp0_iterator_0.d()) {
|
|
1142
1142
|
var element = tmp0_iterator_0.e();
|
|
1143
1143
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1144
|
-
if (element.
|
|
1144
|
+
if (element.s1f_1 === param) {
|
|
1145
1145
|
tmp$ret$4 = element;
|
|
1146
1146
|
break $l$block;
|
|
1147
1147
|
}
|
|
@@ -1156,7 +1156,7 @@
|
|
|
1156
1156
|
// Inline function 'kotlin.let' call
|
|
1157
1157
|
// Inline function 'kotlin.contracts.contract' call
|
|
1158
1158
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1159
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver.
|
|
1159
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver.x1f_1;
|
|
1160
1160
|
tmp_2 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, $this);
|
|
1161
1161
|
}
|
|
1162
1162
|
var tmp1_safe_receiver = tmp_2;
|
|
@@ -1187,7 +1187,7 @@
|
|
|
1187
1187
|
return tmp0_mapTo;
|
|
1188
1188
|
}
|
|
1189
1189
|
function toName(_this__u8e3s4, $this, segments, method) {
|
|
1190
|
-
var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
1190
|
+
var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.f1f_1;
|
|
1191
1191
|
var tmp;
|
|
1192
1192
|
if (tmp1_safe_receiver == null) {
|
|
1193
1193
|
tmp = null;
|
|
@@ -1195,7 +1195,7 @@
|
|
|
1195
1195
|
// Inline function 'kotlin.let' call
|
|
1196
1196
|
// Inline function 'kotlin.contracts.contract' call
|
|
1197
1197
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1198
|
-
tmp = Common_getInstance().
|
|
1198
|
+
tmp = Common_getInstance().p26([tmp1_safe_receiver]);
|
|
1199
1199
|
}
|
|
1200
1200
|
var tmp2_elvis_lhs = tmp;
|
|
1201
1201
|
var tmp_0;
|
|
@@ -1203,28 +1203,28 @@
|
|
|
1203
1203
|
// Inline function 'kotlin.let' call
|
|
1204
1204
|
// Inline function 'kotlin.contracts.contract' call
|
|
1205
1205
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1206
|
-
tmp_0 = joinToString(segments, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda) + method.
|
|
1206
|
+
tmp_0 = joinToString(segments, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda) + method.v4_1;
|
|
1207
1207
|
} else {
|
|
1208
1208
|
tmp_0 = tmp2_elvis_lhs;
|
|
1209
1209
|
}
|
|
1210
1210
|
return tmp_0;
|
|
1211
1211
|
}
|
|
1212
1212
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
1213
|
-
this.
|
|
1214
|
-
this.
|
|
1215
|
-
this.
|
|
1216
|
-
this.
|
|
1217
|
-
this.
|
|
1213
|
+
this.t26_1 = path;
|
|
1214
|
+
this.u26_1 = pathItem;
|
|
1215
|
+
this.v26_1 = method;
|
|
1216
|
+
this.w26_1 = operation;
|
|
1217
|
+
this.x26_1 = type;
|
|
1218
1218
|
}
|
|
1219
1219
|
protoOf(FlattenRequest).toString = function () {
|
|
1220
|
-
return 'FlattenRequest(path=' + new Path(this.
|
|
1220
|
+
return 'FlattenRequest(path=' + new Path(this.t26_1) + ', pathItem=' + this.u26_1 + ', method=' + this.v26_1 + ', operation=' + this.w26_1 + ', type=' + this.x26_1 + ')';
|
|
1221
1221
|
};
|
|
1222
1222
|
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.
|
|
1223
|
+
var result = Path__hashCode_impl_go73kd(this.t26_1);
|
|
1224
|
+
result = imul(result, 31) + this.u26_1.hashCode() | 0;
|
|
1225
|
+
result = imul(result, 31) + this.v26_1.hashCode() | 0;
|
|
1226
|
+
result = imul(result, 31) + this.w26_1.hashCode() | 0;
|
|
1227
|
+
result = imul(result, 31) + getStringHashCode(this.x26_1) | 0;
|
|
1228
1228
|
return result;
|
|
1229
1229
|
};
|
|
1230
1230
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -1233,22 +1233,22 @@
|
|
|
1233
1233
|
if (!(other instanceof FlattenRequest))
|
|
1234
1234
|
return false;
|
|
1235
1235
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
1236
|
-
if (!(this.
|
|
1236
|
+
if (!(this.t26_1 === tmp0_other_with_cast.t26_1))
|
|
1237
1237
|
return false;
|
|
1238
|
-
if (!this.
|
|
1238
|
+
if (!this.u26_1.equals(tmp0_other_with_cast.u26_1))
|
|
1239
1239
|
return false;
|
|
1240
|
-
if (!this.
|
|
1240
|
+
if (!this.v26_1.equals(tmp0_other_with_cast.v26_1))
|
|
1241
1241
|
return false;
|
|
1242
|
-
if (!this.
|
|
1242
|
+
if (!this.w26_1.equals(tmp0_other_with_cast.w26_1))
|
|
1243
1243
|
return false;
|
|
1244
|
-
if (!(this.
|
|
1244
|
+
if (!(this.x26_1 === tmp0_other_with_cast.x26_1))
|
|
1245
1245
|
return false;
|
|
1246
1246
|
return true;
|
|
1247
1247
|
};
|
|
1248
1248
|
function flatMapRequests(_this__u8e3s4, $this, f) {
|
|
1249
1249
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1250
1250
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1251
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
1251
|
+
var tmp0_flatMap = _this__u8e3s4.u1d_1;
|
|
1252
1252
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1253
1253
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1254
1254
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1257,7 +1257,7 @@
|
|
|
1257
1257
|
var element = tmp0_iterator.e();
|
|
1258
1258
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
1259
1259
|
// Inline function 'kotlin.collections.component1' call
|
|
1260
|
-
var path = element.v().
|
|
1260
|
+
var path = element.v().g1e_1;
|
|
1261
1261
|
// Inline function 'kotlin.collections.component2' call
|
|
1262
1262
|
var pathItem = element.w();
|
|
1263
1263
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1275,8 +1275,8 @@
|
|
|
1275
1275
|
var operation = element_0.w();
|
|
1276
1276
|
// Inline function 'kotlin.collections.map' call
|
|
1277
1277
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1278
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1279
|
-
var tmp0_elvis_lhs_0 = tmp0_elvis_lhs == null ? operation.
|
|
1278
|
+
var tmp0_elvis_lhs = _this__u8e3s4.s1d_1;
|
|
1279
|
+
var tmp0_elvis_lhs_0 = tmp0_elvis_lhs == null ? operation.g1f_1 : tmp0_elvis_lhs;
|
|
1280
1280
|
var tmp1_map = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1281
1281
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1282
1282
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1306,25 +1306,25 @@
|
|
|
1306
1306
|
return tmp0_flatMapTo_1;
|
|
1307
1307
|
}
|
|
1308
1308
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
1309
|
-
this.
|
|
1310
|
-
this.
|
|
1311
|
-
this.
|
|
1312
|
-
this.
|
|
1313
|
-
this.
|
|
1314
|
-
this.
|
|
1315
|
-
this.
|
|
1309
|
+
this.y26_1 = path;
|
|
1310
|
+
this.z26_1 = pathItem;
|
|
1311
|
+
this.a27_1 = method;
|
|
1312
|
+
this.b27_1 = operation;
|
|
1313
|
+
this.c27_1 = statusCode;
|
|
1314
|
+
this.d27_1 = response;
|
|
1315
|
+
this.e27_1 = type;
|
|
1316
1316
|
}
|
|
1317
1317
|
protoOf(FlattenResponse).toString = function () {
|
|
1318
|
-
return 'FlattenResponse(path=' + new Path(this.
|
|
1318
|
+
return 'FlattenResponse(path=' + new Path(this.y26_1) + ', pathItem=' + this.z26_1 + ', method=' + this.a27_1 + ', operation=' + this.b27_1 + ', statusCode=' + new StatusCode(this.c27_1) + ', response=' + this.d27_1 + ', type=' + this.e27_1 + ')';
|
|
1319
1319
|
};
|
|
1320
1320
|
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.
|
|
1321
|
+
var result = Path__hashCode_impl_go73kd(this.y26_1);
|
|
1322
|
+
result = imul(result, 31) + this.z26_1.hashCode() | 0;
|
|
1323
|
+
result = imul(result, 31) + this.a27_1.hashCode() | 0;
|
|
1324
|
+
result = imul(result, 31) + this.b27_1.hashCode() | 0;
|
|
1325
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.c27_1) | 0;
|
|
1326
|
+
result = imul(result, 31) + hashCode(this.d27_1) | 0;
|
|
1327
|
+
result = imul(result, 31) + getStringHashCode(this.e27_1) | 0;
|
|
1328
1328
|
return result;
|
|
1329
1329
|
};
|
|
1330
1330
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -1333,26 +1333,26 @@
|
|
|
1333
1333
|
if (!(other instanceof FlattenResponse))
|
|
1334
1334
|
return false;
|
|
1335
1335
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
1336
|
-
if (!(this.
|
|
1336
|
+
if (!(this.y26_1 === tmp0_other_with_cast.y26_1))
|
|
1337
1337
|
return false;
|
|
1338
|
-
if (!this.
|
|
1338
|
+
if (!this.z26_1.equals(tmp0_other_with_cast.z26_1))
|
|
1339
1339
|
return false;
|
|
1340
|
-
if (!this.
|
|
1340
|
+
if (!this.a27_1.equals(tmp0_other_with_cast.a27_1))
|
|
1341
1341
|
return false;
|
|
1342
|
-
if (!this.
|
|
1342
|
+
if (!this.b27_1.equals(tmp0_other_with_cast.b27_1))
|
|
1343
1343
|
return false;
|
|
1344
|
-
if (!(this.
|
|
1344
|
+
if (!(this.c27_1 === tmp0_other_with_cast.c27_1))
|
|
1345
1345
|
return false;
|
|
1346
|
-
if (!equals(this.
|
|
1346
|
+
if (!equals(this.d27_1, tmp0_other_with_cast.d27_1))
|
|
1347
1347
|
return false;
|
|
1348
|
-
if (!(this.
|
|
1348
|
+
if (!(this.e27_1 === tmp0_other_with_cast.e27_1))
|
|
1349
1349
|
return false;
|
|
1350
1350
|
return true;
|
|
1351
1351
|
};
|
|
1352
1352
|
function flatMapResponses(_this__u8e3s4, $this, f) {
|
|
1353
1353
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1354
1354
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1355
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
1355
|
+
var tmp0_flatMap = _this__u8e3s4.u1d_1;
|
|
1356
1356
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1357
1357
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1358
1358
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1361,7 +1361,7 @@
|
|
|
1361
1361
|
var element = tmp0_iterator.e();
|
|
1362
1362
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
1363
1363
|
// Inline function 'kotlin.collections.component1' call
|
|
1364
|
-
var path = element.v().
|
|
1364
|
+
var path = element.v().g1e_1;
|
|
1365
1365
|
// Inline function 'kotlin.collections.component2' call
|
|
1366
1366
|
var pathItem = element.w();
|
|
1367
1367
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1379,7 +1379,7 @@
|
|
|
1379
1379
|
var operation = element_0.w();
|
|
1380
1380
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1381
1381
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1382
|
-
var tmp0_elvis_lhs = operation.
|
|
1382
|
+
var tmp0_elvis_lhs = operation.j1f_1;
|
|
1383
1383
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1384
1384
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1385
1385
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
@@ -1389,13 +1389,13 @@
|
|
|
1389
1389
|
var element_1 = tmp0_iterator_1.e();
|
|
1390
1390
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
1391
1391
|
// Inline function 'kotlin.collections.component1' call
|
|
1392
|
-
var statusCode = element_1.v().
|
|
1392
|
+
var statusCode = element_1.v().f1i_1;
|
|
1393
1393
|
// Inline function 'kotlin.collections.component2' call
|
|
1394
1394
|
var response = element_1.w();
|
|
1395
1395
|
// Inline function 'kotlin.collections.map' call
|
|
1396
1396
|
// 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.
|
|
1397
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.t1d_1;
|
|
1398
|
+
var tmp0_elvis_lhs_1 = tmp0_elvis_lhs_0 == null ? operation.h1f_1 : tmp0_elvis_lhs_0;
|
|
1399
1399
|
var tmp1_map = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1400
1400
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1401
1401
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1429,9 +1429,9 @@
|
|
|
1429
1429
|
}
|
|
1430
1430
|
function OpenApiParser$parseRequestBody$lambda(this$0) {
|
|
1431
1431
|
return function (req) {
|
|
1432
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1433
|
-
var segments = toSegments(req.
|
|
1434
|
-
var name = toName(req.
|
|
1432
|
+
var parameters = plus(resolveParameters_0(req.u26_1, this$0), resolveParameters(req.w26_1, this$0));
|
|
1433
|
+
var segments = toSegments(req.t26_1, this$0, parameters);
|
|
1434
|
+
var name = toName(req.w26_1, this$0, segments, req.v26_1);
|
|
1435
1435
|
var tmp$ret$5;
|
|
1436
1436
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1437
1437
|
var tmp$ret$4;
|
|
@@ -1443,11 +1443,11 @@
|
|
|
1443
1443
|
var tmp$ret$3;
|
|
1444
1444
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1445
1445
|
var tmp;
|
|
1446
|
-
if (!(element.
|
|
1447
|
-
var tmp_0 = Common_getInstance().
|
|
1446
|
+
if (!(element.n1g_1 == null)) {
|
|
1447
|
+
var tmp_0 = Common_getInstance().p26([name, 'Parameter', element.s1f_1]);
|
|
1448
1448
|
var tmp$ret$2;
|
|
1449
1449
|
// Inline function 'kotlin.collections.map' call
|
|
1450
|
-
var tmp0_map = ensureNotNull(element.
|
|
1450
|
+
var tmp0_map = ensureNotNull(element.n1g_1);
|
|
1451
1451
|
var tmp$ret$1;
|
|
1452
1452
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1453
1453
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
@@ -1456,7 +1456,7 @@
|
|
|
1456
1456
|
var item = tmp0_iterator_0.e();
|
|
1457
1457
|
var tmp$ret$0;
|
|
1458
1458
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
1459
|
-
tmp$ret$0 = item.
|
|
1459
|
+
tmp$ret$0 = item.t12();
|
|
1460
1460
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1461
1461
|
}
|
|
1462
1462
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -1472,7 +1472,7 @@
|
|
|
1472
1472
|
tmp$ret$4 = tmp0_flatMapTo;
|
|
1473
1473
|
tmp$ret$5 = tmp$ret$4;
|
|
1474
1474
|
var enums = tmp$ret$5;
|
|
1475
|
-
var tmp0_safe_receiver = req.
|
|
1475
|
+
var tmp0_safe_receiver = req.w26_1.i1f_1;
|
|
1476
1476
|
var tmp_1;
|
|
1477
1477
|
if (tmp0_safe_receiver == null) {
|
|
1478
1478
|
tmp_1 = null;
|
|
@@ -1509,7 +1509,7 @@
|
|
|
1509
1509
|
var element_0 = tmp0_iterator_2.e();
|
|
1510
1510
|
var tmp$ret$9;
|
|
1511
1511
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1512
|
-
tmp$ret$9 = element_0.
|
|
1512
|
+
tmp$ret$9 = element_0.t1f_1.equals(ParameterLocation_BODY_getInstance());
|
|
1513
1513
|
if (tmp$ret$9) {
|
|
1514
1514
|
tmp0_filterTo.a(element_0);
|
|
1515
1515
|
}
|
|
@@ -1533,22 +1533,22 @@
|
|
|
1533
1533
|
var element_1 = tmp0_iterator_3.e();
|
|
1534
1534
|
var tmp$ret$13;
|
|
1535
1535
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1536
|
-
var schema = element_1.
|
|
1536
|
+
var schema = element_1.w1f_1;
|
|
1537
1537
|
var tmp_4;
|
|
1538
1538
|
if (schema instanceof SchemaObject) {
|
|
1539
|
-
var tmp0_subject = schema.
|
|
1540
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.
|
|
1539
|
+
var tmp0_subject = schema.w1h_1;
|
|
1540
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.w4_1;
|
|
1541
1541
|
var tmp_5;
|
|
1542
1542
|
switch (tmp0) {
|
|
1543
1543
|
case -1:
|
|
1544
1544
|
case 5:
|
|
1545
|
-
tmp_5 = flatten(schema, this$0, Common_getInstance().
|
|
1545
|
+
tmp_5 = flatten(schema, this$0, Common_getInstance().p26([name, 'RequestBody']));
|
|
1546
1546
|
break;
|
|
1547
1547
|
case 4:
|
|
1548
1548
|
var tmp$ret$12;
|
|
1549
1549
|
// 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().
|
|
1550
|
+
var tmp1_safe_receiver_0 = schema.x1h_1;
|
|
1551
|
+
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().p26([name, 'RequestBody']));
|
|
1552
1552
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1553
1553
|
tmp$ret$12 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1554
1554
|
|
|
@@ -1577,26 +1577,26 @@
|
|
|
1577
1577
|
}
|
|
1578
1578
|
function OpenApiParser$parseResponseBody$lambda(this$0) {
|
|
1579
1579
|
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.
|
|
1580
|
+
var response = resolve_1(res.d27_1, this$0);
|
|
1581
|
+
var parameters = plus(resolveParameters_0(res.z26_1, this$0), resolveParameters(res.b27_1, this$0));
|
|
1582
|
+
var segments = toSegments(res.y26_1, this$0, parameters);
|
|
1583
|
+
var name = toName(res.b27_1, this$0, segments, res.a27_1);
|
|
1584
|
+
var schema = response.k1i_1;
|
|
1585
1585
|
var tmp;
|
|
1586
1586
|
if (schema instanceof SchemaObject) {
|
|
1587
|
-
var tmp0_subject = schema.
|
|
1588
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.
|
|
1587
|
+
var tmp0_subject = schema.w1h_1;
|
|
1588
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.w4_1;
|
|
1589
1589
|
var tmp_0;
|
|
1590
1590
|
switch (tmp0) {
|
|
1591
1591
|
case -1:
|
|
1592
1592
|
case 5:
|
|
1593
|
-
tmp_0 = flatten(schema, this$0, Common_getInstance().
|
|
1593
|
+
tmp_0 = flatten(schema, this$0, Common_getInstance().p26([name, _StatusCode___get_value__impl__we50mu(res.c27_1), 'ResponseBody']));
|
|
1594
1594
|
break;
|
|
1595
1595
|
case 4:
|
|
1596
1596
|
var tmp$ret$0;
|
|
1597
1597
|
// 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().
|
|
1598
|
+
var tmp1_safe_receiver = schema.x1h_1;
|
|
1599
|
+
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : flatten_0(tmp1_safe_receiver, this$0, Common_getInstance().p26([name, _StatusCode___get_value__impl__we50mu(res.c27_1), 'ResponseBody']));
|
|
1600
1600
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1601
1601
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1602
1602
|
|
|
@@ -1616,10 +1616,10 @@
|
|
|
1616
1616
|
function OpenApiParser$toName$lambda(it) {
|
|
1617
1617
|
var tmp;
|
|
1618
1618
|
if (it instanceof Literal) {
|
|
1619
|
-
tmp = Common_getInstance().
|
|
1619
|
+
tmp = Common_getInstance().p26([it.f23_1]);
|
|
1620
1620
|
} else {
|
|
1621
1621
|
if (it instanceof Param) {
|
|
1622
|
-
tmp = Common_getInstance().
|
|
1622
|
+
tmp = Common_getInstance().p26([it.c22_1.p22_1]);
|
|
1623
1623
|
} else {
|
|
1624
1624
|
noWhenBranchMatchedException();
|
|
1625
1625
|
}
|
|
@@ -1628,21 +1628,21 @@
|
|
|
1628
1628
|
}
|
|
1629
1629
|
function OpenApiParser(openApi) {
|
|
1630
1630
|
Companion_getInstance_0();
|
|
1631
|
-
this.
|
|
1631
|
+
this.r26_1 = openApi;
|
|
1632
1632
|
}
|
|
1633
|
-
protoOf(OpenApiParser).
|
|
1633
|
+
protoOf(OpenApiParser).s26 = function () {
|
|
1634
1634
|
return plus(plus(plus(parseEndpoints(this), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
|
|
1635
1635
|
};
|
|
1636
1636
|
function toMap_0(_this__u8e3s4) {
|
|
1637
1637
|
var tmp;
|
|
1638
1638
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1639
|
-
tmp = _this__u8e3s4.
|
|
1639
|
+
tmp = _this__u8e3s4.g26(VOID, VOID, true);
|
|
1640
1640
|
} else {
|
|
1641
1641
|
if (_this__u8e3s4 instanceof Any) {
|
|
1642
|
-
tmp = _this__u8e3s4.
|
|
1642
|
+
tmp = _this__u8e3s4.e26(VOID, true);
|
|
1643
1643
|
} else {
|
|
1644
1644
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1645
|
-
tmp = _this__u8e3s4.
|
|
1645
|
+
tmp = _this__u8e3s4.i26(VOID, VOID, true);
|
|
1646
1646
|
} else {
|
|
1647
1647
|
noWhenBranchMatchedException();
|
|
1648
1648
|
}
|
|
@@ -1652,7 +1652,7 @@
|
|
|
1652
1652
|
}
|
|
1653
1653
|
function isPrimitive(_this__u8e3s4) {
|
|
1654
1654
|
var tmp;
|
|
1655
|
-
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.
|
|
1655
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.w4_1) {
|
|
1656
1656
|
case 0:
|
|
1657
1657
|
tmp = true;
|
|
1658
1658
|
break;
|
|
@@ -1686,13 +1686,13 @@
|
|
|
1686
1686
|
function toIterable(_this__u8e3s4) {
|
|
1687
1687
|
var tmp;
|
|
1688
1688
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1689
|
-
tmp = _this__u8e3s4.
|
|
1689
|
+
tmp = _this__u8e3s4.g26(VOID, true);
|
|
1690
1690
|
} else {
|
|
1691
1691
|
if (_this__u8e3s4 instanceof Any) {
|
|
1692
|
-
tmp = _this__u8e3s4.
|
|
1692
|
+
tmp = _this__u8e3s4.e26(true);
|
|
1693
1693
|
} else {
|
|
1694
1694
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1695
|
-
tmp = _this__u8e3s4.
|
|
1695
|
+
tmp = _this__u8e3s4.i26(VOID, true);
|
|
1696
1696
|
} else {
|
|
1697
1697
|
noWhenBranchMatchedException();
|
|
1698
1698
|
}
|
|
@@ -1738,9 +1738,9 @@
|
|
|
1738
1738
|
function Companion_0() {
|
|
1739
1739
|
Companion_instance_0 = this;
|
|
1740
1740
|
}
|
|
1741
|
-
protoOf(Companion_0).
|
|
1741
|
+
protoOf(Companion_0).q26 = function (json) {
|
|
1742
1742
|
// Inline function 'kotlin.let' call
|
|
1743
|
-
var tmp0_let = Default_getInstance_0().
|
|
1743
|
+
var tmp0_let = Default_getInstance_0().i1d(json);
|
|
1744
1744
|
// Inline function 'kotlin.contracts.contract' call
|
|
1745
1745
|
// Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
|
|
1746
1746
|
return parse(new OpenApiParser_0(tmp0_let));
|
|
@@ -1756,7 +1756,7 @@
|
|
|
1756
1756
|
}
|
|
1757
1757
|
function parseEndpoint($this) {
|
|
1758
1758
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1759
|
-
var tmp0_flatMap = $this.
|
|
1759
|
+
var tmp0_flatMap = $this.f27_1.q1n_1;
|
|
1760
1760
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1761
1761
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1762
1762
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1765,7 +1765,7 @@
|
|
|
1765
1765
|
var element = tmp0_iterator.e();
|
|
1766
1766
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>' call
|
|
1767
1767
|
// Inline function 'kotlin.collections.component1' call
|
|
1768
|
-
var key = element.v().
|
|
1768
|
+
var key = element.v().z1n_1;
|
|
1769
1769
|
// Inline function 'kotlin.collections.component2' call
|
|
1770
1770
|
var path = element.w();
|
|
1771
1771
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1793,7 +1793,7 @@
|
|
|
1793
1793
|
while (tmp0_iterator_1.d()) {
|
|
1794
1794
|
var element_0 = tmp0_iterator_1.e();
|
|
1795
1795
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1796
|
-
if (element_0.
|
|
1796
|
+
if (element_0.w1p_1.equals(ParameterLocation_QUERY_getInstance_0())) {
|
|
1797
1797
|
tmp0_filterTo.a(element_0);
|
|
1798
1798
|
}
|
|
1799
1799
|
}
|
|
@@ -1804,7 +1804,7 @@
|
|
|
1804
1804
|
var item_0 = tmp0_iterator_2.e();
|
|
1805
1805
|
var tmp$ret$9;
|
|
1806
1806
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1807
|
-
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().
|
|
1807
|
+
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().p26([name, 'Parameter', item_0.v1p_1]));
|
|
1808
1808
|
tmp0_mapTo_0.a(tmp$ret$9);
|
|
1809
1809
|
}
|
|
1810
1810
|
var query = tmp0_mapTo_0;
|
|
@@ -1816,7 +1816,7 @@
|
|
|
1816
1816
|
while (tmp0_iterator_3.d()) {
|
|
1817
1817
|
var element_1 = tmp0_iterator_3.e();
|
|
1818
1818
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1819
|
-
if (element_1.
|
|
1819
|
+
if (element_1.w1p_1.equals(ParameterLocation_HEADER_getInstance_0())) {
|
|
1820
1820
|
tmp0_filterTo_0.a(element_1);
|
|
1821
1821
|
}
|
|
1822
1822
|
}
|
|
@@ -1827,7 +1827,7 @@
|
|
|
1827
1827
|
var item_1 = tmp0_iterator_4.e();
|
|
1828
1828
|
var tmp$ret$15;
|
|
1829
1829
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1830
|
-
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().
|
|
1830
|
+
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().p26([name, 'Parameter', item_1.v1p_1]));
|
|
1831
1831
|
tmp0_mapTo_1.a(tmp$ret$15);
|
|
1832
1832
|
}
|
|
1833
1833
|
var headers = tmp0_mapTo_1;
|
|
@@ -1839,7 +1839,7 @@
|
|
|
1839
1839
|
while (tmp0_iterator_5.d()) {
|
|
1840
1840
|
var element_2 = tmp0_iterator_5.e();
|
|
1841
1841
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1842
|
-
if (element_2.
|
|
1842
|
+
if (element_2.w1p_1.equals(ParameterLocation_COOKIE_getInstance())) {
|
|
1843
1843
|
tmp0_filterTo_1.a(element_2);
|
|
1844
1844
|
}
|
|
1845
1845
|
}
|
|
@@ -1850,11 +1850,11 @@
|
|
|
1850
1850
|
var item_2 = tmp0_iterator_6.e();
|
|
1851
1851
|
var tmp$ret$21;
|
|
1852
1852
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1853
|
-
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().
|
|
1853
|
+
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().p26([name, 'Parameter', item_2.v1p_1]));
|
|
1854
1854
|
tmp0_mapTo_2.a(tmp$ret$21);
|
|
1855
1855
|
}
|
|
1856
1856
|
var cookies = tmp0_mapTo_2;
|
|
1857
|
-
var tmp0_safe_receiver = operation.
|
|
1857
|
+
var tmp0_safe_receiver = operation.a1p_1;
|
|
1858
1858
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, $this);
|
|
1859
1859
|
var tmp;
|
|
1860
1860
|
if (tmp1_safe_receiver == null) {
|
|
@@ -1863,7 +1863,7 @@
|
|
|
1863
1863
|
// Inline function 'kotlin.let' call
|
|
1864
1864
|
// Inline function 'kotlin.contracts.contract' call
|
|
1865
1865
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1866
|
-
var tmp0_safe_receiver_0 = tmp1_safe_receiver.
|
|
1866
|
+
var tmp0_safe_receiver_0 = tmp1_safe_receiver.c1q_1;
|
|
1867
1867
|
var tmp_0;
|
|
1868
1868
|
if (tmp0_safe_receiver_0 == null) {
|
|
1869
1869
|
tmp_0 = null;
|
|
@@ -1878,17 +1878,17 @@
|
|
|
1878
1878
|
var tmp$ret$27;
|
|
1879
1879
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1880
1880
|
// Inline function 'kotlin.collections.component1' call
|
|
1881
|
-
var mediaType = item_3.v().
|
|
1881
|
+
var mediaType = item_3.v().i1q_1;
|
|
1882
1882
|
// Inline function 'kotlin.collections.component2' call
|
|
1883
1883
|
var mediaObject = item_3.w();
|
|
1884
1884
|
var tmp_1 = _MediaType___get_value__impl__wy58mp(mediaType);
|
|
1885
|
-
var schema = mediaObject.
|
|
1885
|
+
var schema = mediaObject.m1q_1;
|
|
1886
1886
|
var tmp_2;
|
|
1887
1887
|
if (schema instanceof ReferenceObject_0) {
|
|
1888
1888
|
tmp_2 = toReference_1(schema, $this);
|
|
1889
1889
|
} else {
|
|
1890
1890
|
if (schema instanceof SchemaObject_0) {
|
|
1891
|
-
tmp_2 = toReference_2(schema, $this, Common_getInstance().
|
|
1891
|
+
tmp_2 = toReference_2(schema, $this, Common_getInstance().p26([name, 'RequestBody']));
|
|
1892
1892
|
} else {
|
|
1893
1893
|
if (schema == null) {
|
|
1894
1894
|
throw new NotImplementedError();
|
|
@@ -1898,7 +1898,7 @@
|
|
|
1898
1898
|
}
|
|
1899
1899
|
}
|
|
1900
1900
|
var tmp_3 = tmp_2;
|
|
1901
|
-
var tmp0_elvis_lhs = tmp1_safe_receiver.
|
|
1901
|
+
var tmp0_elvis_lhs = tmp1_safe_receiver.d1q_1;
|
|
1902
1902
|
tmp$ret$27 = new Request(new Content(tmp_1, tmp_3, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
1903
1903
|
tmp0_mapTo_3.a(tmp$ret$27);
|
|
1904
1904
|
}
|
|
@@ -1910,7 +1910,7 @@
|
|
|
1910
1910
|
var requests = tmp2_elvis_lhs == null ? listOf(new Request(null)) : tmp2_elvis_lhs;
|
|
1911
1911
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1912
1912
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1913
|
-
var tmp0_elvis_lhs_0 = operation.
|
|
1913
|
+
var tmp0_elvis_lhs_0 = operation.b1p_1;
|
|
1914
1914
|
var tmp4_flatMap = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
1915
1915
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1916
1916
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
@@ -1920,10 +1920,10 @@
|
|
|
1920
1920
|
var element_3 = tmp0_iterator_8.e();
|
|
1921
1921
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1922
1922
|
// Inline function 'kotlin.collections.component1' call
|
|
1923
|
-
var status = element_3.v().
|
|
1923
|
+
var status = element_3.v().l1s_1;
|
|
1924
1924
|
// Inline function 'kotlin.collections.component2' call
|
|
1925
1925
|
var res = element_3.w();
|
|
1926
|
-
var tmp0_safe_receiver_1 = resolve_6(res, $this).
|
|
1926
|
+
var tmp0_safe_receiver_1 = resolve_6(res, $this).r1s_1;
|
|
1927
1927
|
var tmp_4;
|
|
1928
1928
|
if (tmp0_safe_receiver_1 == null) {
|
|
1929
1929
|
tmp_4 = null;
|
|
@@ -1938,18 +1938,18 @@
|
|
|
1938
1938
|
var tmp$ret$39;
|
|
1939
1939
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1940
1940
|
// Inline function 'kotlin.collections.component1' call
|
|
1941
|
-
var contentType = item_4.v().
|
|
1941
|
+
var contentType = item_4.v().i1q_1;
|
|
1942
1942
|
// Inline function 'kotlin.collections.component2' call
|
|
1943
1943
|
var media = item_4.w();
|
|
1944
1944
|
var tmp_5 = _StatusCode___get_value__impl__we50mu_0(status);
|
|
1945
1945
|
var tmp_6 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
1946
|
-
var schema_0 = media.
|
|
1946
|
+
var schema_0 = media.m1q_1;
|
|
1947
1947
|
var tmp_7;
|
|
1948
1948
|
if (schema_0 instanceof ReferenceObject_0) {
|
|
1949
1949
|
tmp_7 = toReference_1(schema_0, $this);
|
|
1950
1950
|
} else {
|
|
1951
1951
|
if (schema_0 instanceof SchemaObject_0) {
|
|
1952
|
-
tmp_7 = toReference_2(schema_0, $this, Common_getInstance().
|
|
1952
|
+
tmp_7 = toReference_2(schema_0, $this, Common_getInstance().p26([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
1953
1953
|
} else {
|
|
1954
1954
|
if (schema_0 == null) {
|
|
1955
1955
|
throw new NotImplementedError();
|
|
@@ -1959,9 +1959,9 @@
|
|
|
1959
1959
|
}
|
|
1960
1960
|
}
|
|
1961
1961
|
var tmp_8 = tmp_7;
|
|
1962
|
-
var tmp0_safe_receiver_2 = media.
|
|
1962
|
+
var tmp0_safe_receiver_2 = media.m1q_1;
|
|
1963
1963
|
var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : resolve_3(tmp0_safe_receiver_2, $this);
|
|
1964
|
-
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
1964
|
+
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.x1q_1;
|
|
1965
1965
|
tmp$ret$39 = new Response(tmp_5, new Content(tmp_6, tmp_8, tmp2_elvis_lhs_0 == null ? false : tmp2_elvis_lhs_0));
|
|
1966
1966
|
tmp0_mapTo_4.a(tmp$ret$39);
|
|
1967
1967
|
}
|
|
@@ -1981,20 +1981,20 @@
|
|
|
1981
1981
|
return tmp0_flatMapTo;
|
|
1982
1982
|
}
|
|
1983
1983
|
function parseParameters($this) {
|
|
1984
|
-
return flatMapRequests_0($this.
|
|
1984
|
+
return flatMapRequests_0($this.f27_1, $this, OpenApiParser$parseParameters$lambda($this));
|
|
1985
1985
|
}
|
|
1986
1986
|
function parseRequestBody_0($this) {
|
|
1987
|
-
return flatMapRequests_0($this.
|
|
1987
|
+
return flatMapRequests_0($this.f27_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
|
|
1988
1988
|
}
|
|
1989
1989
|
function parseResponseBody_0($this) {
|
|
1990
|
-
return flatMapResponses_0($this.
|
|
1990
|
+
return flatMapResponses_0($this.f27_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
|
|
1991
1991
|
}
|
|
1992
1992
|
function parseComponents($this) {
|
|
1993
1993
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1994
1994
|
// Inline function 'kotlin.collections.filter' call
|
|
1995
1995
|
// 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.
|
|
1996
|
+
var tmp0_safe_receiver = $this.f27_1.r1n_1;
|
|
1997
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x1s_1;
|
|
1998
1998
|
var tmp1_filter = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1999
1999
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2000
2000
|
var tmp0_filterTo = LinkedHashMap_init_$Create$();
|
|
@@ -2006,7 +2006,7 @@
|
|
|
2006
2006
|
var s = element.w();
|
|
2007
2007
|
var tmp;
|
|
2008
2008
|
if (s instanceof SchemaObject_0) {
|
|
2009
|
-
tmp = s.
|
|
2009
|
+
tmp = s.n1r_1 == null;
|
|
2010
2010
|
} else {
|
|
2011
2011
|
tmp = false;
|
|
2012
2012
|
}
|
|
@@ -2021,7 +2021,7 @@
|
|
|
2021
2021
|
while (tmp0_iterator_0.d()) {
|
|
2022
2022
|
var element_0 = tmp0_iterator_0.e();
|
|
2023
2023
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2024
|
-
var list = flatten_2(element_0.w(), $this, Common_getInstance().
|
|
2024
|
+
var list = flatten_2(element_0.w(), $this, Common_getInstance().p26([element_0.v()]));
|
|
2025
2025
|
addAll(tmp0_flatMapTo, list);
|
|
2026
2026
|
}
|
|
2027
2027
|
return tmp0_flatMapTo;
|
|
@@ -2051,7 +2051,7 @@
|
|
|
2051
2051
|
while (tmp0_iterator_0.d()) {
|
|
2052
2052
|
var element = tmp0_iterator_0.e();
|
|
2053
2053
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2054
|
-
if (element.
|
|
2054
|
+
if (element.v1p_1 === param) {
|
|
2055
2055
|
tmp$ret$3 = element;
|
|
2056
2056
|
break $l$block;
|
|
2057
2057
|
}
|
|
@@ -2059,7 +2059,7 @@
|
|
|
2059
2059
|
tmp$ret$3 = null;
|
|
2060
2060
|
}
|
|
2061
2061
|
var tmp0_safe_receiver = tmp$ret$3;
|
|
2062
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2062
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r1p_1;
|
|
2063
2063
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_3(tmp1_safe_receiver, $this);
|
|
2064
2064
|
var tmp_0;
|
|
2065
2065
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2068,7 +2068,7 @@
|
|
|
2068
2068
|
// Inline function 'kotlin.let' call
|
|
2069
2069
|
// Inline function 'kotlin.contracts.contract' call
|
|
2070
2070
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2071
|
-
var tmp0_safe_receiver_0 = tmp2_safe_receiver.
|
|
2071
|
+
var tmp0_safe_receiver_0 = tmp2_safe_receiver.g1r_1;
|
|
2072
2072
|
tmp_0 = tmp0_safe_receiver_0 == null ? null : toPrimitive_0(tmp0_safe_receiver_0, $this);
|
|
2073
2073
|
}
|
|
2074
2074
|
var tmp3_safe_receiver = tmp_0;
|
|
@@ -2099,7 +2099,7 @@
|
|
|
2099
2099
|
return tmp0_mapTo;
|
|
2100
2100
|
}
|
|
2101
2101
|
function toName_0(_this__u8e3s4, $this, segments, method) {
|
|
2102
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2102
|
+
var tmp0_safe_receiver = _this__u8e3s4.y1o_1;
|
|
2103
2103
|
var tmp;
|
|
2104
2104
|
if (tmp0_safe_receiver == null) {
|
|
2105
2105
|
tmp = null;
|
|
@@ -2107,7 +2107,7 @@
|
|
|
2107
2107
|
// Inline function 'kotlin.let' call
|
|
2108
2108
|
// Inline function 'kotlin.contracts.contract' call
|
|
2109
2109
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2110
|
-
tmp = Common_getInstance().
|
|
2110
|
+
tmp = Common_getInstance().p26([tmp0_safe_receiver]);
|
|
2111
2111
|
}
|
|
2112
2112
|
var tmp1_elvis_lhs = tmp;
|
|
2113
2113
|
var tmp_0;
|
|
@@ -2115,14 +2115,14 @@
|
|
|
2115
2115
|
// Inline function 'kotlin.let' call
|
|
2116
2116
|
// Inline function 'kotlin.contracts.contract' call
|
|
2117
2117
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2118
|
-
tmp_0 = joinToString(segments, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda_0) + method.
|
|
2118
|
+
tmp_0 = joinToString(segments, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda_0) + method.v4_1;
|
|
2119
2119
|
} else {
|
|
2120
2120
|
tmp_0 = tmp1_elvis_lhs;
|
|
2121
2121
|
}
|
|
2122
2122
|
return tmp_0;
|
|
2123
2123
|
}
|
|
2124
2124
|
function resolveParameters_1(_this__u8e3s4, $this) {
|
|
2125
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2125
|
+
var tmp0_safe_receiver = _this__u8e3s4.z1o_1;
|
|
2126
2126
|
var tmp;
|
|
2127
2127
|
if (tmp0_safe_receiver == null) {
|
|
2128
2128
|
tmp = null;
|
|
@@ -2161,7 +2161,7 @@
|
|
|
2161
2161
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2162
2162
|
}
|
|
2163
2163
|
function resolveParameters_2(_this__u8e3s4, $this) {
|
|
2164
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2164
|
+
var tmp0_safe_receiver = _this__u8e3s4.p1o_1;
|
|
2165
2165
|
var tmp;
|
|
2166
2166
|
if (tmp0_safe_receiver == null) {
|
|
2167
2167
|
tmp = null;
|
|
@@ -2200,8 +2200,8 @@
|
|
|
2200
2200
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2201
2201
|
}
|
|
2202
2202
|
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.
|
|
2203
|
+
var tmp0_safe_receiver = $this.f27_1.r1n_1;
|
|
2204
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z1s_1;
|
|
2205
2205
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n2(getReference_0(_this__u8e3s4, $this));
|
|
2206
2206
|
var tmp;
|
|
2207
2207
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2225,8 +2225,8 @@
|
|
|
2225
2225
|
return tmp;
|
|
2226
2226
|
}
|
|
2227
2227
|
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.
|
|
2228
|
+
var tmp0_safe_receiver = $this.f27_1.r1n_1;
|
|
2229
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x1s_1;
|
|
2230
2230
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n2(getReference_0(_this__u8e3s4, $this));
|
|
2231
2231
|
var tmp;
|
|
2232
2232
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2250,7 +2250,7 @@
|
|
|
2250
2250
|
var tmp3_elvis_lhs = tmp;
|
|
2251
2251
|
var tmp_1;
|
|
2252
2252
|
if (tmp3_elvis_lhs == null) {
|
|
2253
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2253
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.t1q_1);
|
|
2254
2254
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2255
2255
|
} else {
|
|
2256
2256
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2258,8 +2258,8 @@
|
|
|
2258
2258
|
return tmp_1;
|
|
2259
2259
|
}
|
|
2260
2260
|
function resolveRequestBodyObject(_this__u8e3s4, $this) {
|
|
2261
|
-
var tmp0_safe_receiver = $this.
|
|
2262
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2261
|
+
var tmp0_safe_receiver = $this.f27_1.r1n_1;
|
|
2262
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b1t_1;
|
|
2263
2263
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n2(getReference_0(_this__u8e3s4, $this));
|
|
2264
2264
|
var tmp;
|
|
2265
2265
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2283,7 +2283,7 @@
|
|
|
2283
2283
|
var tmp3_elvis_lhs = tmp;
|
|
2284
2284
|
var tmp_1;
|
|
2285
2285
|
if (tmp3_elvis_lhs == null) {
|
|
2286
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2286
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.t1q_1);
|
|
2287
2287
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2288
2288
|
} else {
|
|
2289
2289
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2291,8 +2291,8 @@
|
|
|
2291
2291
|
return tmp_1;
|
|
2292
2292
|
}
|
|
2293
2293
|
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.
|
|
2294
|
+
var tmp0_safe_receiver = $this.f27_1.r1n_1;
|
|
2295
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y1s_1;
|
|
2296
2296
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n2(getReference_0(_this__u8e3s4, $this));
|
|
2297
2297
|
var tmp;
|
|
2298
2298
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2316,7 +2316,7 @@
|
|
|
2316
2316
|
var tmp3_elvis_lhs = tmp;
|
|
2317
2317
|
var tmp_1;
|
|
2318
2318
|
if (tmp3_elvis_lhs == null) {
|
|
2319
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2319
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.t1q_1);
|
|
2320
2320
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2321
2321
|
} else {
|
|
2322
2322
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2381,12 +2381,12 @@
|
|
|
2381
2381
|
}
|
|
2382
2382
|
function flatten_1(_this__u8e3s4, $this, name) {
|
|
2383
2383
|
var tmp;
|
|
2384
|
-
if (!(_this__u8e3s4.
|
|
2384
|
+
if (!(_this__u8e3s4.n1r_1 == null)) {
|
|
2385
2385
|
var tmp_0;
|
|
2386
|
-
if (_this__u8e3s4.
|
|
2386
|
+
if (_this__u8e3s4.n1r_1 instanceof BooleanObject_0) {
|
|
2387
2387
|
tmp_0 = emptyList();
|
|
2388
2388
|
} else {
|
|
2389
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
2389
|
+
var tmp1_safe_receiver = _this__u8e3s4.n1r_1;
|
|
2390
2390
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_4(tmp1_safe_receiver, $this);
|
|
2391
2391
|
var tmp_1;
|
|
2392
2392
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2396,7 +2396,7 @@
|
|
|
2396
2396
|
// Inline function 'kotlin.contracts.contract' call
|
|
2397
2397
|
var tmp_2;
|
|
2398
2398
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2399
|
-
if (!(tmp2_safe_receiver.
|
|
2399
|
+
if (!(tmp2_safe_receiver.m1r_1 == null)) {
|
|
2400
2400
|
tmp_2 = tmp2_safe_receiver;
|
|
2401
2401
|
} else {
|
|
2402
2402
|
tmp_2 = null;
|
|
@@ -2408,15 +2408,15 @@
|
|
|
2408
2408
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
2409
2409
|
}
|
|
2410
2410
|
tmp = tmp_0;
|
|
2411
|
-
} else if (!(_this__u8e3s4.
|
|
2411
|
+
} else if (!(_this__u8e3s4.i1r_1 == null)) {
|
|
2412
2412
|
throw new NotImplementedError('An operation is not implemented: oneOf is not implemented');
|
|
2413
|
-
} else if (!(_this__u8e3s4.
|
|
2413
|
+
} else if (!(_this__u8e3s4.j1r_1 == null)) {
|
|
2414
2414
|
throw new NotImplementedError('An operation is not implemented: anyOf is not implemented');
|
|
2415
|
-
} else if (!(_this__u8e3s4.
|
|
2415
|
+
} else if (!(_this__u8e3s4.h1r_1 == null)) {
|
|
2416
2416
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
2417
2417
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2418
2418
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2419
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2419
|
+
var tmp0_elvis_lhs = _this__u8e3s4.h1r_1;
|
|
2420
2420
|
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2421
2421
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2422
2422
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -2433,14 +2433,14 @@
|
|
|
2433
2433
|
while (tmp0_iterator_0.d()) {
|
|
2434
2434
|
var e = tmp0_iterator_0.e();
|
|
2435
2435
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2436
|
-
var key = e.
|
|
2436
|
+
var key = e.l22_1;
|
|
2437
2437
|
if (set.a(key)) {
|
|
2438
2438
|
list_0.a(e);
|
|
2439
2439
|
}
|
|
2440
2440
|
}
|
|
2441
2441
|
var tmp_3 = listOf(new Type(name, new Shape(list_0)));
|
|
2442
2442
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2443
|
-
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.
|
|
2443
|
+
var tmp3_flatMap = ensureNotNull(_this__u8e3s4.h1r_1);
|
|
2444
2444
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2445
2445
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
2446
2446
|
var tmp0_iterator_1 = tmp3_flatMap.c();
|
|
@@ -2454,7 +2454,7 @@
|
|
|
2454
2454
|
if (element_0 instanceof SchemaObject_0) {
|
|
2455
2455
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2456
2456
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2457
|
-
var tmp0_elvis_lhs_0 = element_0.
|
|
2457
|
+
var tmp0_elvis_lhs_0 = element_0.m1r_1;
|
|
2458
2458
|
var tmp1_flatMap_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2459
2459
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2460
2460
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
@@ -2472,7 +2472,7 @@
|
|
|
2472
2472
|
tmp_5 = emptyList();
|
|
2473
2473
|
} else {
|
|
2474
2474
|
if (value instanceof SchemaObject_0) {
|
|
2475
|
-
tmp_5 = flatten_1(value, $this, Common_getInstance().
|
|
2475
|
+
tmp_5 = flatten_1(value, $this, Common_getInstance().p26([name, key_0]));
|
|
2476
2476
|
} else {
|
|
2477
2477
|
noWhenBranchMatchedException();
|
|
2478
2478
|
}
|
|
@@ -2489,10 +2489,10 @@
|
|
|
2489
2489
|
addAll(tmp0_flatMapTo_0, list_2);
|
|
2490
2490
|
}
|
|
2491
2491
|
tmp = plus(tmp_3, tmp0_flatMapTo_0);
|
|
2492
|
-
} else if (!(_this__u8e3s4.
|
|
2492
|
+
} else if (!(_this__u8e3s4.g1s_1 == null)) {
|
|
2493
2493
|
// Inline function 'kotlin.let' call
|
|
2494
2494
|
// Inline function 'kotlin.collections.map' call
|
|
2495
|
-
var tmp4_map = ensureNotNull(_this__u8e3s4.
|
|
2495
|
+
var tmp4_map = ensureNotNull(_this__u8e3s4.g1s_1);
|
|
2496
2496
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2497
2497
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp4_map, 10));
|
|
2498
2498
|
var tmp0_iterator_3 = tmp4_map.c();
|
|
@@ -2500,7 +2500,7 @@
|
|
|
2500
2500
|
var item = tmp0_iterator_3.e();
|
|
2501
2501
|
var tmp$ret$18;
|
|
2502
2502
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2503
|
-
tmp$ret$18 = item.
|
|
2503
|
+
tmp$ret$18 = item.t12();
|
|
2504
2504
|
tmp0_mapTo.a(tmp$ret$18);
|
|
2505
2505
|
}
|
|
2506
2506
|
var tmp5_let = toSet(tmp0_mapTo);
|
|
@@ -2508,16 +2508,16 @@
|
|
|
2508
2508
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2509
2509
|
tmp = listOf(new Enum(name, tmp5_let));
|
|
2510
2510
|
} else {
|
|
2511
|
-
var tmp5_subject = _this__u8e3s4.
|
|
2511
|
+
var tmp5_subject = _this__u8e3s4.g1r_1;
|
|
2512
2512
|
var tmp_6;
|
|
2513
|
-
switch (tmp5_subject == null ? -1 : tmp5_subject.
|
|
2513
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.w4_1) {
|
|
2514
2514
|
case -1:
|
|
2515
2515
|
case 5:
|
|
2516
2516
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2517
2517
|
|
|
2518
2518
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2519
2519
|
|
|
2520
|
-
var tmp0_elvis_lhs_1 = _this__u8e3s4.
|
|
2520
|
+
var tmp0_elvis_lhs_1 = _this__u8e3s4.m1r_1;
|
|
2521
2521
|
var tmp7_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
2522
2522
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2523
2523
|
|
|
@@ -2532,7 +2532,7 @@
|
|
|
2532
2532
|
var key_1 = element_2.v();
|
|
2533
2533
|
// Inline function 'kotlin.collections.component2' call
|
|
2534
2534
|
var value_0 = element_2.w();
|
|
2535
|
-
var list_3 = flatten_2(value_0, $this, Common_getInstance().
|
|
2535
|
+
var list_3 = flatten_2(value_0, $this, Common_getInstance().p26([name, key_1]));
|
|
2536
2536
|
addAll(tmp0_flatMapTo_2, list_3);
|
|
2537
2537
|
}
|
|
2538
2538
|
|
|
@@ -2541,7 +2541,7 @@
|
|
|
2541
2541
|
tmp_6 = plus(schema, fields);
|
|
2542
2542
|
break;
|
|
2543
2543
|
case 4:
|
|
2544
|
-
var tmp6_safe_receiver = _this__u8e3s4.
|
|
2544
|
+
var tmp6_safe_receiver = _this__u8e3s4.l1r_1;
|
|
2545
2545
|
var tmp_7;
|
|
2546
2546
|
if (tmp6_safe_receiver == null) {
|
|
2547
2547
|
tmp_7 = null;
|
|
@@ -2554,7 +2554,7 @@
|
|
|
2554
2554
|
tmp_8 = emptyList();
|
|
2555
2555
|
} else {
|
|
2556
2556
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
2557
|
-
tmp_8 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().
|
|
2557
|
+
tmp_8 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().p26([name, 'array']));
|
|
2558
2558
|
} else {
|
|
2559
2559
|
noWhenBranchMatchedException();
|
|
2560
2560
|
}
|
|
@@ -2594,8 +2594,8 @@
|
|
|
2594
2594
|
var referencingObject = tmp0_let.j3();
|
|
2595
2595
|
var schema = tmp0_let.k3();
|
|
2596
2596
|
var tmp;
|
|
2597
|
-
if (!(schema.
|
|
2598
|
-
var additionalProperties = ensureNotNull(schema.
|
|
2597
|
+
if (!(schema.n1r_1 == null)) {
|
|
2598
|
+
var additionalProperties = ensureNotNull(schema.n1r_1);
|
|
2599
2599
|
var tmp_0;
|
|
2600
2600
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
2601
2601
|
tmp_0 = new Any(false, true);
|
|
@@ -2611,24 +2611,24 @@
|
|
|
2611
2611
|
}
|
|
2612
2612
|
}
|
|
2613
2613
|
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.
|
|
2614
|
+
} else if (!(schema.g1s_1 == null)) {
|
|
2615
|
+
tmp = new Custom(Common_getInstance().p26([getReference_0(referencingObject, $this)]), false, false);
|
|
2616
|
+
} else if (isPrimitive_0(schema.g1r_1)) {
|
|
2617
|
+
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.g1r_1), $this), false, false);
|
|
2618
2618
|
} else {
|
|
2619
|
-
var tmp0_subject = schema.
|
|
2619
|
+
var tmp0_subject = schema.g1r_1;
|
|
2620
2620
|
var tmp_1;
|
|
2621
|
-
if ((tmp0_subject == null ? -1 : tmp0_subject.
|
|
2622
|
-
var items = schema.
|
|
2621
|
+
if ((tmp0_subject == null ? -1 : tmp0_subject.w4_1) === 4) {
|
|
2622
|
+
var items = schema.l1r_1;
|
|
2623
2623
|
var tmp_2;
|
|
2624
2624
|
if (items instanceof ReferenceObject_0) {
|
|
2625
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2625
|
+
tmp_2 = new Custom(Common_getInstance().p26([getReference_0(items, $this)]), true);
|
|
2626
2626
|
} else {
|
|
2627
2627
|
if (items instanceof SchemaObject_0) {
|
|
2628
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2628
|
+
tmp_2 = new Custom(Common_getInstance().p26([getReference_0(referencingObject, $this), 'Array']), true);
|
|
2629
2629
|
} else {
|
|
2630
2630
|
if (items == null) {
|
|
2631
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.
|
|
2631
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.t1q_1);
|
|
2632
2632
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2633
2633
|
} else {
|
|
2634
2634
|
noWhenBranchMatchedException();
|
|
@@ -2637,7 +2637,7 @@
|
|
|
2637
2637
|
}
|
|
2638
2638
|
tmp_1 = tmp_2;
|
|
2639
2639
|
} else {
|
|
2640
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
2640
|
+
tmp_1 = new Custom(Common_getInstance().p26([getReference_0(referencingObject, $this)]), false);
|
|
2641
2641
|
}
|
|
2642
2642
|
tmp = tmp_1;
|
|
2643
2643
|
}
|
|
@@ -2645,8 +2645,8 @@
|
|
|
2645
2645
|
}
|
|
2646
2646
|
function toReference_2(_this__u8e3s4, $this, name) {
|
|
2647
2647
|
var tmp;
|
|
2648
|
-
if (!(_this__u8e3s4.
|
|
2649
|
-
var additionalProperties = ensureNotNull(_this__u8e3s4.
|
|
2648
|
+
if (!(_this__u8e3s4.n1r_1 == null)) {
|
|
2649
|
+
var additionalProperties = ensureNotNull(_this__u8e3s4.n1r_1);
|
|
2650
2650
|
var tmp_0;
|
|
2651
2651
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
2652
2652
|
tmp_0 = new Any(false, true);
|
|
@@ -2659,7 +2659,7 @@
|
|
|
2659
2659
|
// Inline function 'kotlin.contracts.contract' call
|
|
2660
2660
|
var tmp_1;
|
|
2661
2661
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
|
|
2662
|
-
if (isPrimitive_0(additionalProperties.
|
|
2662
|
+
if (isPrimitive_0(additionalProperties.g1r_1) ? true : !(additionalProperties.m1r_1 == null)) {
|
|
2663
2663
|
tmp_1 = additionalProperties;
|
|
2664
2664
|
} else {
|
|
2665
2665
|
tmp_1 = null;
|
|
@@ -2682,32 +2682,32 @@
|
|
|
2682
2682
|
}
|
|
2683
2683
|
}
|
|
2684
2684
|
tmp = tmp_0;
|
|
2685
|
-
} else if (!(_this__u8e3s4.
|
|
2686
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
2685
|
+
} else if (!(_this__u8e3s4.g1s_1 == null)) {
|
|
2686
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.n1r_1 == null));
|
|
2687
2687
|
} else {
|
|
2688
|
-
var type = _this__u8e3s4.
|
|
2688
|
+
var type = _this__u8e3s4.g1r_1;
|
|
2689
2689
|
var tmp_3;
|
|
2690
|
-
switch (type == null ? -1 : type.
|
|
2690
|
+
switch (type == null ? -1 : type.w4_1) {
|
|
2691
2691
|
case 0:
|
|
2692
2692
|
case 1:
|
|
2693
2693
|
case 2:
|
|
2694
2694
|
case 3:
|
|
2695
|
-
tmp_3 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.
|
|
2695
|
+
tmp_3 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.n1r_1 == null));
|
|
2696
2696
|
break;
|
|
2697
2697
|
case -1:
|
|
2698
2698
|
case 5:
|
|
2699
2699
|
var tmp_4;
|
|
2700
|
-
var tmp_5 = _this__u8e3s4.
|
|
2700
|
+
var tmp_5 = _this__u8e3s4.n1r_1;
|
|
2701
2701
|
if (tmp_5 instanceof BooleanObject_0) {
|
|
2702
|
-
tmp_4 = new Any(false, !(_this__u8e3s4.
|
|
2702
|
+
tmp_4 = new Any(false, !(_this__u8e3s4.n1r_1 == null));
|
|
2703
2703
|
} else {
|
|
2704
|
-
tmp_4 = new Custom(name, false, !(_this__u8e3s4.
|
|
2704
|
+
tmp_4 = new Custom(name, false, !(_this__u8e3s4.n1r_1 == null));
|
|
2705
2705
|
}
|
|
2706
2706
|
|
|
2707
2707
|
tmp_3 = tmp_4;
|
|
2708
2708
|
break;
|
|
2709
2709
|
case 4:
|
|
2710
|
-
var it = _this__u8e3s4.
|
|
2710
|
+
var it = _this__u8e3s4.l1r_1;
|
|
2711
2711
|
var tmp_6;
|
|
2712
2712
|
if (it instanceof ReferenceObject_0) {
|
|
2713
2713
|
tmp_6 = toIterable_0(toReference_1(it, $this));
|
|
@@ -2745,30 +2745,30 @@
|
|
|
2745
2745
|
var tmp$ret$0;
|
|
2746
2746
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toOperationList.<anonymous>' call
|
|
2747
2747
|
var tmp;
|
|
2748
|
-
switch (element.
|
|
2748
|
+
switch (element.w4_1) {
|
|
2749
2749
|
case 0:
|
|
2750
|
-
tmp = _this__u8e3s4.
|
|
2750
|
+
tmp = _this__u8e3s4.g1o_1;
|
|
2751
2751
|
break;
|
|
2752
2752
|
case 1:
|
|
2753
|
-
tmp = _this__u8e3s4.
|
|
2753
|
+
tmp = _this__u8e3s4.i1o_1;
|
|
2754
2754
|
break;
|
|
2755
2755
|
case 2:
|
|
2756
|
-
tmp = _this__u8e3s4.
|
|
2756
|
+
tmp = _this__u8e3s4.h1o_1;
|
|
2757
2757
|
break;
|
|
2758
2758
|
case 3:
|
|
2759
|
-
tmp = _this__u8e3s4.
|
|
2759
|
+
tmp = _this__u8e3s4.j1o_1;
|
|
2760
2760
|
break;
|
|
2761
2761
|
case 4:
|
|
2762
|
-
tmp = _this__u8e3s4.
|
|
2762
|
+
tmp = _this__u8e3s4.k1o_1;
|
|
2763
2763
|
break;
|
|
2764
2764
|
case 5:
|
|
2765
|
-
tmp = _this__u8e3s4.
|
|
2765
|
+
tmp = _this__u8e3s4.l1o_1;
|
|
2766
2766
|
break;
|
|
2767
2767
|
case 6:
|
|
2768
|
-
tmp = _this__u8e3s4.
|
|
2768
|
+
tmp = _this__u8e3s4.m1o_1;
|
|
2769
2769
|
break;
|
|
2770
2770
|
case 7:
|
|
2771
|
-
tmp = _this__u8e3s4.
|
|
2771
|
+
tmp = _this__u8e3s4.n1o_1;
|
|
2772
2772
|
break;
|
|
2773
2773
|
default:
|
|
2774
2774
|
noWhenBranchMatchedException();
|
|
@@ -2780,10 +2780,10 @@
|
|
|
2780
2780
|
return filterNotNullValues_0(result);
|
|
2781
2781
|
}
|
|
2782
2782
|
function getReference_0(_this__u8e3s4, $this) {
|
|
2783
|
-
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
2783
|
+
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.t1q_1), ['/']), 3);
|
|
2784
2784
|
var tmp;
|
|
2785
2785
|
if (tmp0_elvis_lhs == null) {
|
|
2786
|
-
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
2786
|
+
var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.t1q_1);
|
|
2787
2787
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2788
2788
|
} else {
|
|
2789
2789
|
tmp = tmp0_elvis_lhs;
|
|
@@ -2792,7 +2792,7 @@
|
|
|
2792
2792
|
}
|
|
2793
2793
|
function toPrimitive_0(_this__u8e3s4, $this) {
|
|
2794
2794
|
var tmp;
|
|
2795
|
-
switch (_this__u8e3s4.
|
|
2795
|
+
switch (_this__u8e3s4.w4_1) {
|
|
2796
2796
|
case 0:
|
|
2797
2797
|
tmp = Type_String_getInstance();
|
|
2798
2798
|
break;
|
|
@@ -2813,7 +2813,7 @@
|
|
|
2813
2813
|
function toField_1(_this__u8e3s4, $this, name) {
|
|
2814
2814
|
// Inline function 'kotlin.collections.map' call
|
|
2815
2815
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2816
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2816
|
+
var tmp0_elvis_lhs = _this__u8e3s4.m1r_1;
|
|
2817
2817
|
var tmp1_map = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2818
2818
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2819
2819
|
var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.f());
|
|
@@ -2830,15 +2830,15 @@
|
|
|
2830
2830
|
var tmp;
|
|
2831
2831
|
if (value instanceof SchemaObject_0) {
|
|
2832
2832
|
var tmp_0 = new Identifier(key);
|
|
2833
|
-
var tmp_1 = !(value.
|
|
2834
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
2833
|
+
var tmp_1 = !(value.g1s_1 == null) ? toReference_2(value, $this, Common_getInstance().p26([name, key])) : equals(value.g1r_1, Type_ARRAY_getInstance_0()) ? toReference_2(value, $this, Common_getInstance().p26([name, key, 'Array'])) : toReference_2(value, $this, Common_getInstance().p26([name, key]));
|
|
2834
|
+
var tmp1_safe_receiver = _this__u8e3s4.f1s_1;
|
|
2835
2835
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.j1(key);
|
|
2836
2836
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
2837
2837
|
} else {
|
|
2838
2838
|
if (value instanceof ReferenceObject_0) {
|
|
2839
2839
|
var tmp_2 = new Identifier(key);
|
|
2840
|
-
var tmp_3 = new Custom(Common_getInstance().
|
|
2841
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
2840
|
+
var tmp_3 = new Custom(Common_getInstance().p26([getReference_0(value, $this)]), false);
|
|
2841
|
+
var tmp3_safe_receiver = _this__u8e3s4.f1s_1;
|
|
2842
2842
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.j1(key);
|
|
2843
2843
|
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
2844
2844
|
} else {
|
|
@@ -2852,7 +2852,7 @@
|
|
|
2852
2852
|
}
|
|
2853
2853
|
function toField_2(_this__u8e3s4, $this, name) {
|
|
2854
2854
|
// Inline function 'kotlin.let' call
|
|
2855
|
-
var s = _this__u8e3s4.
|
|
2855
|
+
var s = _this__u8e3s4.r1p_1;
|
|
2856
2856
|
var tmp;
|
|
2857
2857
|
if (s instanceof ReferenceObject_0) {
|
|
2858
2858
|
tmp = toReference_1(s, $this);
|
|
@@ -2870,24 +2870,24 @@
|
|
|
2870
2870
|
var tmp0_let = tmp;
|
|
2871
2871
|
// Inline function 'kotlin.contracts.contract' call
|
|
2872
2872
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
2873
|
-
var tmp_0 = new Identifier(_this__u8e3s4.
|
|
2874
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2873
|
+
var tmp_0 = new Identifier(_this__u8e3s4.v1p_1);
|
|
2874
|
+
var tmp0_elvis_lhs = _this__u8e3s4.l1p_1;
|
|
2875
2875
|
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
2876
2876
|
}
|
|
2877
2877
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
2878
|
-
this.
|
|
2879
|
-
this.
|
|
2880
|
-
this.
|
|
2881
|
-
this.
|
|
2878
|
+
this.g27_1 = path;
|
|
2879
|
+
this.h27_1 = pathItem;
|
|
2880
|
+
this.i27_1 = method;
|
|
2881
|
+
this.j27_1 = operation;
|
|
2882
2882
|
}
|
|
2883
2883
|
protoOf(FlattenRequest_0).toString = function () {
|
|
2884
|
-
return 'FlattenRequest(path=' + new Path_0(this.
|
|
2884
|
+
return 'FlattenRequest(path=' + new Path_0(this.g27_1) + ', pathItem=' + this.h27_1 + ', method=' + this.i27_1 + ', operation=' + this.j27_1 + ')';
|
|
2885
2885
|
};
|
|
2886
2886
|
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.
|
|
2887
|
+
var result = Path__hashCode_impl_go73kd_0(this.g27_1);
|
|
2888
|
+
result = imul(result, 31) + this.h27_1.hashCode() | 0;
|
|
2889
|
+
result = imul(result, 31) + this.i27_1.hashCode() | 0;
|
|
2890
|
+
result = imul(result, 31) + this.j27_1.hashCode() | 0;
|
|
2891
2891
|
return result;
|
|
2892
2892
|
};
|
|
2893
2893
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -2896,20 +2896,20 @@
|
|
|
2896
2896
|
if (!(other instanceof FlattenRequest_0))
|
|
2897
2897
|
return false;
|
|
2898
2898
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
2899
|
-
if (!(this.
|
|
2899
|
+
if (!(this.g27_1 === tmp0_other_with_cast.g27_1))
|
|
2900
2900
|
return false;
|
|
2901
|
-
if (!this.
|
|
2901
|
+
if (!this.h27_1.equals(tmp0_other_with_cast.h27_1))
|
|
2902
2902
|
return false;
|
|
2903
|
-
if (!this.
|
|
2903
|
+
if (!this.i27_1.equals(tmp0_other_with_cast.i27_1))
|
|
2904
2904
|
return false;
|
|
2905
|
-
if (!this.
|
|
2905
|
+
if (!this.j27_1.equals(tmp0_other_with_cast.j27_1))
|
|
2906
2906
|
return false;
|
|
2907
2907
|
return true;
|
|
2908
2908
|
};
|
|
2909
2909
|
function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
2910
2910
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2911
2911
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2912
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
2912
|
+
var tmp0_flatMap = _this__u8e3s4.q1n_1;
|
|
2913
2913
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2914
2914
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
2915
2915
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -2918,7 +2918,7 @@
|
|
|
2918
2918
|
var element = tmp0_iterator.e();
|
|
2919
2919
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
2920
2920
|
// Inline function 'kotlin.collections.component1' call
|
|
2921
|
-
var path = element.v().
|
|
2921
|
+
var path = element.v().z1n_1;
|
|
2922
2922
|
// Inline function 'kotlin.collections.component2' call
|
|
2923
2923
|
var pathItem = element.w();
|
|
2924
2924
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2953,23 +2953,23 @@
|
|
|
2953
2953
|
return tmp0_flatMapTo_0;
|
|
2954
2954
|
}
|
|
2955
2955
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
2956
|
-
this.
|
|
2957
|
-
this.
|
|
2958
|
-
this.
|
|
2959
|
-
this.
|
|
2960
|
-
this.
|
|
2961
|
-
this.
|
|
2956
|
+
this.k27_1 = path;
|
|
2957
|
+
this.l27_1 = pathItem;
|
|
2958
|
+
this.m27_1 = method;
|
|
2959
|
+
this.n27_1 = operation;
|
|
2960
|
+
this.o27_1 = statusCode;
|
|
2961
|
+
this.p27_1 = response;
|
|
2962
2962
|
}
|
|
2963
2963
|
protoOf(FlattenResponse_0).toString = function () {
|
|
2964
|
-
return 'FlattenResponse(path=' + new Path_0(this.
|
|
2964
|
+
return 'FlattenResponse(path=' + new Path_0(this.k27_1) + ', pathItem=' + this.l27_1 + ', method=' + this.m27_1 + ', operation=' + this.n27_1 + ', statusCode=' + new StatusCode_0(this.o27_1) + ', response=' + this.p27_1 + ')';
|
|
2965
2965
|
};
|
|
2966
2966
|
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.
|
|
2967
|
+
var result = Path__hashCode_impl_go73kd_0(this.k27_1);
|
|
2968
|
+
result = imul(result, 31) + this.l27_1.hashCode() | 0;
|
|
2969
|
+
result = imul(result, 31) + this.m27_1.hashCode() | 0;
|
|
2970
|
+
result = imul(result, 31) + this.n27_1.hashCode() | 0;
|
|
2971
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.o27_1) | 0;
|
|
2972
|
+
result = imul(result, 31) + hashCode(this.p27_1) | 0;
|
|
2973
2973
|
return result;
|
|
2974
2974
|
};
|
|
2975
2975
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -2978,24 +2978,24 @@
|
|
|
2978
2978
|
if (!(other instanceof FlattenResponse_0))
|
|
2979
2979
|
return false;
|
|
2980
2980
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
2981
|
-
if (!(this.
|
|
2981
|
+
if (!(this.k27_1 === tmp0_other_with_cast.k27_1))
|
|
2982
2982
|
return false;
|
|
2983
|
-
if (!this.
|
|
2983
|
+
if (!this.l27_1.equals(tmp0_other_with_cast.l27_1))
|
|
2984
2984
|
return false;
|
|
2985
|
-
if (!this.
|
|
2985
|
+
if (!this.m27_1.equals(tmp0_other_with_cast.m27_1))
|
|
2986
2986
|
return false;
|
|
2987
|
-
if (!this.
|
|
2987
|
+
if (!this.n27_1.equals(tmp0_other_with_cast.n27_1))
|
|
2988
2988
|
return false;
|
|
2989
|
-
if (!(this.
|
|
2989
|
+
if (!(this.o27_1 === tmp0_other_with_cast.o27_1))
|
|
2990
2990
|
return false;
|
|
2991
|
-
if (!equals(this.
|
|
2991
|
+
if (!equals(this.p27_1, tmp0_other_with_cast.p27_1))
|
|
2992
2992
|
return false;
|
|
2993
2993
|
return true;
|
|
2994
2994
|
};
|
|
2995
2995
|
function flatMapResponses_0(_this__u8e3s4, $this, f) {
|
|
2996
2996
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2997
2997
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2998
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
2998
|
+
var tmp0_flatMap = _this__u8e3s4.q1n_1;
|
|
2999
2999
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3000
3000
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
3001
3001
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -3004,7 +3004,7 @@
|
|
|
3004
3004
|
var element = tmp0_iterator.e();
|
|
3005
3005
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
3006
3006
|
// Inline function 'kotlin.collections.component1' call
|
|
3007
|
-
var path = element.v().
|
|
3007
|
+
var path = element.v().z1n_1;
|
|
3008
3008
|
// Inline function 'kotlin.collections.component2' call
|
|
3009
3009
|
var pathItem = element.w();
|
|
3010
3010
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -3021,7 +3021,7 @@
|
|
|
3021
3021
|
// Inline function 'kotlin.collections.component2' call
|
|
3022
3022
|
var operation = element_0.w();
|
|
3023
3023
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3024
|
-
var tmp0_safe_receiver = operation.
|
|
3024
|
+
var tmp0_safe_receiver = operation.b1p_1;
|
|
3025
3025
|
var tmp;
|
|
3026
3026
|
if (tmp0_safe_receiver == null) {
|
|
3027
3027
|
tmp = null;
|
|
@@ -3036,7 +3036,7 @@
|
|
|
3036
3036
|
var tmp$ret$9;
|
|
3037
3037
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
3038
3038
|
// Inline function 'kotlin.collections.component1' call
|
|
3039
|
-
var statusCode = item.v().
|
|
3039
|
+
var statusCode = item.v().l1s_1;
|
|
3040
3040
|
// Inline function 'kotlin.collections.component2' call
|
|
3041
3041
|
var response = item.w();
|
|
3042
3042
|
tmp$ret$9 = new FlattenResponse_0(path, pathItem, method, operation, statusCode, response);
|
|
@@ -3064,9 +3064,9 @@
|
|
|
3064
3064
|
}
|
|
3065
3065
|
function OpenApiParser$parseParameters$lambda(this$0) {
|
|
3066
3066
|
return function (req) {
|
|
3067
|
-
var parameters = plus(resolveParameters_2(req.
|
|
3068
|
-
var segments = toSegments_0(req.
|
|
3069
|
-
var name = toName_0(req.
|
|
3067
|
+
var parameters = plus(resolveParameters_2(req.h27_1, this$0), resolveParameters_1(req.j27_1, this$0));
|
|
3068
|
+
var segments = toSegments_0(req.g27_1, this$0, parameters);
|
|
3069
|
+
var name = toName_0(req.j27_1, this$0, segments, req.i27_1);
|
|
3070
3070
|
var tmp$ret$2;
|
|
3071
3071
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3072
3072
|
var tmp$ret$1;
|
|
@@ -3077,8 +3077,8 @@
|
|
|
3077
3077
|
var element = tmp0_iterator.e();
|
|
3078
3078
|
var tmp$ret$0;
|
|
3079
3079
|
// 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().
|
|
3080
|
+
var tmp0_safe_receiver = element.r1p_1;
|
|
3081
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().p26([name, 'Parameter', element.v1p_1]));
|
|
3082
3082
|
tmp$ret$0 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
3083
3083
|
var list = tmp$ret$0;
|
|
3084
3084
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -3090,16 +3090,16 @@
|
|
|
3090
3090
|
}
|
|
3091
3091
|
function OpenApiParser$parseRequestBody$lambda_0(this$0) {
|
|
3092
3092
|
return function (req) {
|
|
3093
|
-
var parameters = plus(resolveParameters_2(req.
|
|
3094
|
-
var segments = toSegments_0(req.
|
|
3095
|
-
var name = toName_0(req.
|
|
3093
|
+
var parameters = plus(resolveParameters_2(req.h27_1, this$0), resolveParameters_1(req.j27_1, this$0));
|
|
3094
|
+
var segments = toSegments_0(req.g27_1, this$0, parameters);
|
|
3095
|
+
var name = toName_0(req.j27_1, this$0, segments, req.i27_1);
|
|
3096
3096
|
var tmp$ret$6;
|
|
3097
3097
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3098
3098
|
var tmp$ret$0;
|
|
3099
3099
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3100
|
-
var tmp0_safe_receiver = req.
|
|
3100
|
+
var tmp0_safe_receiver = req.j27_1.a1p_1;
|
|
3101
3101
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, this$0);
|
|
3102
|
-
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3102
|
+
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.c1q_1;
|
|
3103
3103
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3104
3104
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3105
3105
|
var tmp1_flatMap = tmp$ret$0;
|
|
@@ -3118,22 +3118,22 @@
|
|
|
3118
3118
|
// Inline function 'kotlin.collections.component2' call
|
|
3119
3119
|
tmp$ret$2 = element.w();
|
|
3120
3120
|
var mediaObject = tmp$ret$2;
|
|
3121
|
-
var schema = mediaObject.
|
|
3121
|
+
var schema = mediaObject.m1q_1;
|
|
3122
3122
|
var tmp;
|
|
3123
3123
|
if (schema instanceof SchemaObject_0) {
|
|
3124
|
-
var tmp0_subject = schema.
|
|
3125
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.
|
|
3124
|
+
var tmp0_subject = schema.g1r_1;
|
|
3125
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.w4_1;
|
|
3126
3126
|
var tmp_0;
|
|
3127
3127
|
switch (tmp0) {
|
|
3128
3128
|
case -1:
|
|
3129
3129
|
case 5:
|
|
3130
|
-
tmp_0 = flatten_1(schema, this$0, Common_getInstance().
|
|
3130
|
+
tmp_0 = flatten_1(schema, this$0, Common_getInstance().p26([name, 'RequestBody']));
|
|
3131
3131
|
break;
|
|
3132
3132
|
case 4:
|
|
3133
3133
|
var tmp$ret$3;
|
|
3134
3134
|
// 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().
|
|
3135
|
+
var tmp1_safe_receiver_0 = schema.l1r_1;
|
|
3136
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().p26([name, 'RequestBody']));
|
|
3137
3137
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
3138
3138
|
tmp$ret$3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
3139
3139
|
|
|
@@ -3166,17 +3166,17 @@
|
|
|
3166
3166
|
}
|
|
3167
3167
|
function OpenApiParser$parseResponseBody$lambda_0(this$0) {
|
|
3168
3168
|
return function (res) {
|
|
3169
|
-
var parameters = plus(resolveParameters_2(res.
|
|
3170
|
-
var segments = toSegments_0(res.
|
|
3171
|
-
var name = toName_0(res.
|
|
3172
|
-
var response = res.
|
|
3169
|
+
var parameters = plus(resolveParameters_2(res.l27_1, this$0), resolveParameters_1(res.n27_1, this$0));
|
|
3170
|
+
var segments = toSegments_0(res.k27_1, this$0, parameters);
|
|
3171
|
+
var name = toName_0(res.n27_1, this$0, segments, res.m27_1);
|
|
3172
|
+
var response = res.p27_1;
|
|
3173
3173
|
var tmp;
|
|
3174
3174
|
if (response instanceof ResponseObject_0) {
|
|
3175
3175
|
var tmp$ret$6;
|
|
3176
3176
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3177
3177
|
var tmp$ret$0;
|
|
3178
3178
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3179
|
-
var tmp0_orEmpty = response.
|
|
3179
|
+
var tmp0_orEmpty = response.r1s_1;
|
|
3180
3180
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3181
3181
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3182
3182
|
var tmp1_flatMap = tmp$ret$0;
|
|
@@ -3195,22 +3195,22 @@
|
|
|
3195
3195
|
// Inline function 'kotlin.collections.component2' call
|
|
3196
3196
|
tmp$ret$2 = element.w();
|
|
3197
3197
|
var mediaObject = tmp$ret$2;
|
|
3198
|
-
var schema = mediaObject.
|
|
3198
|
+
var schema = mediaObject.m1q_1;
|
|
3199
3199
|
var tmp_0;
|
|
3200
3200
|
if (schema instanceof SchemaObject_0) {
|
|
3201
|
-
var tmp0_subject = schema.
|
|
3202
|
-
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.
|
|
3201
|
+
var tmp0_subject = schema.g1r_1;
|
|
3202
|
+
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.w4_1;
|
|
3203
3203
|
var tmp_1;
|
|
3204
3204
|
switch (tmp0) {
|
|
3205
3205
|
case -1:
|
|
3206
3206
|
case 5:
|
|
3207
|
-
tmp_1 = flatten_1(schema, this$0, Common_getInstance().
|
|
3207
|
+
tmp_1 = flatten_1(schema, this$0, Common_getInstance().p26([name, _StatusCode___get_value__impl__we50mu_0(res.o27_1), 'ResponseBody']));
|
|
3208
3208
|
break;
|
|
3209
3209
|
case 4:
|
|
3210
3210
|
var tmp$ret$3;
|
|
3211
3211
|
// 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().
|
|
3212
|
+
var tmp1_safe_receiver = schema.l1r_1;
|
|
3213
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().p26([name, _StatusCode___get_value__impl__we50mu_0(res.o27_1), 'ResponseBody']));
|
|
3214
3214
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
|
|
3215
3215
|
tmp$ret$3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
3216
3216
|
|
|
@@ -3244,10 +3244,10 @@
|
|
|
3244
3244
|
function OpenApiParser$toName$lambda_0(it) {
|
|
3245
3245
|
var tmp;
|
|
3246
3246
|
if (it instanceof Literal) {
|
|
3247
|
-
tmp = Common_getInstance().
|
|
3247
|
+
tmp = Common_getInstance().p26([it.f23_1]);
|
|
3248
3248
|
} else {
|
|
3249
3249
|
if (it instanceof Param) {
|
|
3250
|
-
tmp = Common_getInstance().
|
|
3250
|
+
tmp = Common_getInstance().p26([it.c22_1.p22_1]);
|
|
3251
3251
|
} else {
|
|
3252
3252
|
noWhenBranchMatchedException();
|
|
3253
3253
|
}
|
|
@@ -3256,18 +3256,18 @@
|
|
|
3256
3256
|
}
|
|
3257
3257
|
function OpenApiParser_0(openApi) {
|
|
3258
3258
|
Companion_getInstance_1();
|
|
3259
|
-
this.
|
|
3259
|
+
this.f27_1 = openApi;
|
|
3260
3260
|
}
|
|
3261
3261
|
function toMap_1(_this__u8e3s4) {
|
|
3262
3262
|
var tmp;
|
|
3263
3263
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3264
|
-
tmp = _this__u8e3s4.
|
|
3264
|
+
tmp = _this__u8e3s4.g26(VOID, VOID, true);
|
|
3265
3265
|
} else {
|
|
3266
3266
|
if (_this__u8e3s4 instanceof Any) {
|
|
3267
|
-
tmp = _this__u8e3s4.
|
|
3267
|
+
tmp = _this__u8e3s4.e26(VOID, true);
|
|
3268
3268
|
} else {
|
|
3269
3269
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3270
|
-
tmp = _this__u8e3s4.
|
|
3270
|
+
tmp = _this__u8e3s4.i26(VOID, VOID, true);
|
|
3271
3271
|
} else {
|
|
3272
3272
|
noWhenBranchMatchedException();
|
|
3273
3273
|
}
|
|
@@ -3277,7 +3277,7 @@
|
|
|
3277
3277
|
}
|
|
3278
3278
|
function isPrimitive_0(_this__u8e3s4) {
|
|
3279
3279
|
var tmp;
|
|
3280
|
-
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.
|
|
3280
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.w4_1) {
|
|
3281
3281
|
case 0:
|
|
3282
3282
|
tmp = true;
|
|
3283
3283
|
break;
|
|
@@ -3308,13 +3308,13 @@
|
|
|
3308
3308
|
function toIterable_0(_this__u8e3s4) {
|
|
3309
3309
|
var tmp;
|
|
3310
3310
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3311
|
-
tmp = _this__u8e3s4.
|
|
3311
|
+
tmp = _this__u8e3s4.g26(VOID, true);
|
|
3312
3312
|
} else {
|
|
3313
3313
|
if (_this__u8e3s4 instanceof Any) {
|
|
3314
|
-
tmp = _this__u8e3s4.
|
|
3314
|
+
tmp = _this__u8e3s4.e26(true);
|
|
3315
3315
|
} else {
|
|
3316
3316
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3317
|
-
tmp = _this__u8e3s4.
|
|
3317
|
+
tmp = _this__u8e3s4.i26(VOID, true);
|
|
3318
3318
|
} else {
|
|
3319
3319
|
noWhenBranchMatchedException();
|
|
3320
3320
|
}
|