@flock/wirespec 0.10.9 → 0.10.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arrow-arrow-annotations.js +3 -3
- package/arrow-arrow-atomic.js +15 -15
- package/arrow-arrow-continuations.js +4 -4
- package/arrow-arrow-core.js +74 -73
- package/arrow-arrow-core.js.map +1 -1
- package/clikt-clikt.js +1444 -1355
- package/clikt-clikt.js.map +1 -1
- package/colormath-root-colormath.js +442 -466
- package/colormath-root-colormath.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +1380 -1352
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-kotlin-test.js +3 -3
- package/kotlin-openapi-bindings.js +4678 -4678
- package/kotlin-rgxgen.js +1867 -1822
- package/kotlin-rgxgen.js.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +3 -3
- package/kotlinx-serialization-kotlinx-serialization-core.js +1670 -1670
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1404 -1400
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/markdown.js +1954 -1944
- package/markdown.js.map +1 -1
- package/mordant-mordant.js +1853 -1793
- package/mordant-mordant.js.map +1 -1
- package/package.json +2 -2
- package/resources-library.js +3 -3
- package/wirespec-src-compiler-core.js +2871 -5219
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +435 -435
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-converter-openapi.js +846 -842
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-plugin-arguments.js +93 -105
- package/wirespec-src-plugin-arguments.js.map +1 -1
- package/wirespec-src-plugin-cli.js +206 -230
- package/wirespec-src-plugin-cli.js.map +1 -1
- package/wirespec-src-plugin-npm.js +46 -47
- package/wirespec-src-plugin-npm.js.map +1 -1
- package/wirespec-src-tools-generator.js +57 -53
- package/wirespec-src-tools-generator.js.map +1 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
(function (
|
|
1
|
+
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
3
|
define(['exports', './wirespec-src-compiler-core.js', './kotlin-kotlin-stdlib.js', './kotlin-openapi-bindings.js', './kotlinx-serialization-kotlinx-serialization-json.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
5
|
factory(module.exports, require('./wirespec-src-compiler-core.js'), require('./kotlin-kotlin-stdlib.js'), require('./kotlin-openapi-bindings.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'));
|
|
6
6
|
else {
|
|
7
|
-
if (typeof
|
|
7
|
+
if (typeof globalThis['wirespec-src-compiler-core'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module 'wirespec-src-converter-openapi'. Its dependency 'wirespec-src-compiler-core' was not found. Please, check whether 'wirespec-src-compiler-core' is loaded prior to 'wirespec-src-converter-openapi'.");
|
|
9
9
|
}
|
|
10
|
-
if (typeof
|
|
10
|
+
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
11
11
|
throw new Error("Error loading module 'wirespec-src-converter-openapi'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'wirespec-src-converter-openapi'.");
|
|
12
12
|
}
|
|
13
|
-
if (typeof
|
|
13
|
+
if (typeof globalThis['kotlin-openapi-bindings'] === 'undefined') {
|
|
14
14
|
throw new Error("Error loading module 'wirespec-src-converter-openapi'. Its dependency 'kotlin-openapi-bindings' was not found. Please, check whether 'kotlin-openapi-bindings' is loaded prior to 'wirespec-src-converter-openapi'.");
|
|
15
15
|
}
|
|
16
|
-
if (typeof
|
|
16
|
+
if (typeof globalThis['kotlinx-serialization-kotlinx-serialization-json'] === 'undefined') {
|
|
17
17
|
throw new Error("Error loading module 'wirespec-src-converter-openapi'. Its dependency 'kotlinx-serialization-kotlinx-serialization-json' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-json' is loaded prior to 'wirespec-src-converter-openapi'.");
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
globalThis['wirespec-src-converter-openapi'] = factory(typeof globalThis['wirespec-src-converter-openapi'] === 'undefined' ? {} : globalThis['wirespec-src-converter-openapi'], globalThis['wirespec-src-compiler-core'], globalThis['kotlin-kotlin-stdlib'], globalThis['kotlin-openapi-bindings'], globalThis['kotlinx-serialization-kotlinx-serialization-json']);
|
|
20
20
|
}
|
|
21
|
-
}(
|
|
21
|
+
}(function (_, kotlin_community_flock_wirespec_compiler_core, kotlin_kotlin, kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json) {
|
|
22
22
|
'use strict';
|
|
23
23
|
//region block: imports
|
|
24
24
|
var imul = Math.imul;
|
|
25
|
-
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
25
|
+
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.b2;
|
|
26
26
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
27
27
|
var split = kotlin_kotlin.$_$.od;
|
|
28
28
|
var addAll = kotlin_kotlin.$_$.y4;
|
|
@@ -31,24 +31,24 @@
|
|
|
31
31
|
var joinToString = kotlin_kotlin.$_$.s6;
|
|
32
32
|
var protoOf = kotlin_kotlin.$_$.xa;
|
|
33
33
|
var to = kotlin_kotlin.$_$.hg;
|
|
34
|
-
var toMap = kotlin_kotlin.$_$.
|
|
34
|
+
var toMap = kotlin_kotlin.$_$.m8;
|
|
35
35
|
var initMetadataForObject = kotlin_kotlin.$_$.ca;
|
|
36
36
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.i5;
|
|
37
37
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.k;
|
|
38
38
|
var firstOrNull = kotlin_kotlin.$_$.g6;
|
|
39
39
|
var distinct = kotlin_kotlin.$_$.y5;
|
|
40
|
-
var take = kotlin_kotlin.$_$.
|
|
40
|
+
var take = kotlin_kotlin.$_$.f8;
|
|
41
41
|
var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e1;
|
|
42
42
|
var ParameterObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f;
|
|
43
43
|
var ParameterLocation_QUERY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h1;
|
|
44
|
-
var plus = kotlin_kotlin.$_$.
|
|
44
|
+
var plus = kotlin_kotlin.$_$.r7;
|
|
45
45
|
var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f1;
|
|
46
|
-
var mapCapacity = kotlin_kotlin.$_$.
|
|
46
|
+
var mapCapacity = kotlin_kotlin.$_$.i7;
|
|
47
47
|
var coerceAtLeast = kotlin_kotlin.$_$.ib;
|
|
48
48
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
49
49
|
var _StatusCode___init__impl__t1yi9q = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f2;
|
|
50
50
|
var HeaderObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b;
|
|
51
|
-
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
51
|
+
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.w;
|
|
52
52
|
var Type_ARRAY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i1;
|
|
53
53
|
var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k;
|
|
54
54
|
var noWhenBranchMatchedException = kotlin_kotlin.$_$.eg;
|
|
@@ -61,31 +61,31 @@
|
|
|
61
61
|
var Type_NUMBER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l1;
|
|
62
62
|
var Type_BOOLEAN_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j1;
|
|
63
63
|
var Type_OBJECT_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m1;
|
|
64
|
-
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
65
|
-
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
66
|
-
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
67
|
-
var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
68
|
-
var Param = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
64
|
+
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.t;
|
|
65
|
+
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.u;
|
|
66
|
+
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.v;
|
|
67
|
+
var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.n;
|
|
68
|
+
var Param = kotlin_community_flock_wirespec_compiler_core.$_$.o;
|
|
69
69
|
var InfoObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c;
|
|
70
|
-
var listOf = kotlin_kotlin.$_$.
|
|
71
|
-
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
70
|
+
var listOf = kotlin_kotlin.$_$.g7;
|
|
71
|
+
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.p;
|
|
72
72
|
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.u;
|
|
73
73
|
var _Path___init__impl__6uf4pw = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y1;
|
|
74
74
|
var ParameterLocation_PATH_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g1;
|
|
75
|
-
var Method_GET_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
76
|
-
var Method_POST_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
77
|
-
var Method_PUT_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
78
|
-
var Method_DELETE_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
79
|
-
var Method_PATCH_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
80
|
-
var Method_OPTIONS_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
81
|
-
var Method_TRACE_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
82
|
-
var Method_HEAD_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
75
|
+
var Method_GET_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.k1;
|
|
76
|
+
var Method_POST_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.o1;
|
|
77
|
+
var Method_PUT_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.p1;
|
|
78
|
+
var Method_DELETE_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.j1;
|
|
79
|
+
var Method_PATCH_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.n1;
|
|
80
|
+
var Method_OPTIONS_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.m1;
|
|
81
|
+
var Method_TRACE_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.q1;
|
|
82
|
+
var Method_HEAD_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.l1;
|
|
83
83
|
var Path = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h;
|
|
84
84
|
var PathItemObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
|
|
85
|
-
var Refined = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
86
|
-
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
87
|
-
var plus_0 = kotlin_kotlin.$_$.
|
|
88
|
-
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
85
|
+
var Refined = kotlin_community_flock_wirespec_compiler_core.$_$.y;
|
|
86
|
+
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.a1;
|
|
87
|
+
var plus_0 = kotlin_kotlin.$_$.n7;
|
|
88
|
+
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.q;
|
|
89
89
|
var JsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.h;
|
|
90
90
|
var SwaggerObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m;
|
|
91
91
|
var toString = kotlin_kotlin.$_$.bb;
|
|
@@ -93,28 +93,28 @@
|
|
|
93
93
|
var _Ref___init__impl__7qfl46 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c2;
|
|
94
94
|
var emptyList = kotlin_kotlin.$_$.b6;
|
|
95
95
|
var NotImplementedError = kotlin_kotlin.$_$.df;
|
|
96
|
-
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
97
|
-
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
96
|
+
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.j;
|
|
97
|
+
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.l;
|
|
98
98
|
var emptyMap = kotlin_kotlin.$_$.c6;
|
|
99
99
|
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i2;
|
|
100
|
-
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
100
|
+
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.m;
|
|
101
101
|
var HashSet_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
102
|
-
var Companion_instance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
102
|
+
var Companion_instance = kotlin_community_flock_wirespec_compiler_core.$_$.c2;
|
|
103
103
|
var THROW_CCE = kotlin_kotlin.$_$.if;
|
|
104
104
|
var KtMap = kotlin_kotlin.$_$.t4;
|
|
105
105
|
var isInterface = kotlin_kotlin.$_$.la;
|
|
106
|
-
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
107
|
-
var Type_Number_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
108
|
-
var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
109
|
-
var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
106
|
+
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.u1;
|
|
107
|
+
var Type_Number_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.t1;
|
|
108
|
+
var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.s1;
|
|
109
|
+
var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.r1;
|
|
110
110
|
var Ref__toString_impl_irb7zi = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d2;
|
|
111
111
|
var BooleanObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a;
|
|
112
|
-
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
112
|
+
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.z;
|
|
113
113
|
var ensureNotNull = kotlin_kotlin.$_$.yf;
|
|
114
|
-
var toSet = kotlin_kotlin.$_$.
|
|
115
|
-
var get_entries = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
114
|
+
var toSet = kotlin_kotlin.$_$.p8;
|
|
115
|
+
var get_entries = kotlin_community_flock_wirespec_compiler_core.$_$.k;
|
|
116
116
|
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e2;
|
|
117
|
-
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
117
|
+
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.r;
|
|
118
118
|
var equals = kotlin_kotlin.$_$.q9;
|
|
119
119
|
var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b2;
|
|
120
120
|
var drop = kotlin_kotlin.$_$.a6;
|
|
@@ -131,11 +131,11 @@
|
|
|
131
131
|
var hashCode = kotlin_kotlin.$_$.w9;
|
|
132
132
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.l;
|
|
133
133
|
var OpenAPI = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d;
|
|
134
|
-
var listOf_0 = kotlin_kotlin.$_$.
|
|
134
|
+
var listOf_0 = kotlin_kotlin.$_$.h7;
|
|
135
135
|
var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.t1;
|
|
136
|
-
var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
137
|
-
var Channel = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
138
|
-
var Union = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
136
|
+
var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.i;
|
|
137
|
+
var Channel = kotlin_community_flock_wirespec_compiler_core.$_$.g;
|
|
138
|
+
var Union = kotlin_community_flock_wirespec_compiler_core.$_$.b1;
|
|
139
139
|
var ComponentsObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o;
|
|
140
140
|
var _Path___init__impl__6uf4pw_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l2;
|
|
141
141
|
var Path_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y;
|
|
@@ -192,11 +192,11 @@
|
|
|
192
192
|
initMetadataForObject(OpenApiV3Parser, 'OpenApiV3Parser');
|
|
193
193
|
//endregion
|
|
194
194
|
function Common$className$lambda(it) {
|
|
195
|
-
return Companion_getInstance().
|
|
195
|
+
return Companion_getInstance().h24(it);
|
|
196
196
|
}
|
|
197
197
|
function Common() {
|
|
198
198
|
}
|
|
199
|
-
protoOf(Common).
|
|
199
|
+
protoOf(Common).b2a = function (arg) {
|
|
200
200
|
// Inline function 'kotlin.collections.flatMap' call
|
|
201
201
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
202
202
|
var destination = ArrayList_init_$Create$();
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
var tmp = destination;
|
|
213
213
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, Common$className$lambda);
|
|
214
214
|
};
|
|
215
|
-
protoOf(Common).
|
|
215
|
+
protoOf(Common).c2a = function (_this__u8e3s4) {
|
|
216
216
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
217
217
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
218
218
|
var destination = ArrayList_init_$Create$();
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
while (tmp0_iterator.h()) {
|
|
261
261
|
var element = tmp0_iterator.i();
|
|
262
262
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
263
|
-
if (element.
|
|
263
|
+
if (element.o23_1.equals(method)) {
|
|
264
264
|
destination.e(element);
|
|
265
265
|
}
|
|
266
266
|
}
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
280
280
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
281
281
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
282
|
-
var this_0 = _this__u8e3s4.
|
|
282
|
+
var this_0 = _this__u8e3s4.t23_1;
|
|
283
283
|
var destination = ArrayList_init_$Create$();
|
|
284
284
|
// Inline function 'kotlin.collections.forEach' call
|
|
285
285
|
var tmp0_iterator = this_0.g();
|
|
@@ -287,14 +287,14 @@
|
|
|
287
287
|
var element = tmp0_iterator.i();
|
|
288
288
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
289
289
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
290
|
-
var
|
|
291
|
-
var
|
|
292
|
-
if (
|
|
290
|
+
var tmp0_safe_receiver = element.a24_1;
|
|
291
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b24_1;
|
|
292
|
+
if (tmp0_safe_receiver_0 == null)
|
|
293
293
|
null;
|
|
294
294
|
else {
|
|
295
295
|
// Inline function 'kotlin.let' call
|
|
296
296
|
// Inline function 'kotlin.contracts.contract' call
|
|
297
|
-
destination.e(
|
|
297
|
+
destination.e(tmp0_safe_receiver_0);
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
var this_1 = distinct(destination);
|
|
@@ -310,7 +310,7 @@
|
|
|
310
310
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
311
311
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
312
312
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
313
|
-
var this_2 = _this__u8e3s4.
|
|
313
|
+
var this_2 = _this__u8e3s4.u23_1;
|
|
314
314
|
var destination_0 = ArrayList_init_$Create$();
|
|
315
315
|
// Inline function 'kotlin.collections.forEach' call
|
|
316
316
|
var tmp0_iterator_0 = this_2.g();
|
|
@@ -318,14 +318,14 @@
|
|
|
318
318
|
var element_0 = tmp0_iterator_0.i();
|
|
319
319
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
320
320
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
321
|
-
var
|
|
322
|
-
var
|
|
323
|
-
if (
|
|
321
|
+
var tmp0_safe_receiver_1 = element_0.x23_1;
|
|
322
|
+
var tmp0_safe_receiver_2 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.b24_1;
|
|
323
|
+
if (tmp0_safe_receiver_2 == null)
|
|
324
324
|
null;
|
|
325
325
|
else {
|
|
326
326
|
// Inline function 'kotlin.let' call
|
|
327
327
|
// Inline function 'kotlin.contracts.contract' call
|
|
328
|
-
destination_0.e(
|
|
328
|
+
destination_0.e(tmp0_safe_receiver_2);
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
var this_3 = distinct(destination_0);
|
|
@@ -341,7 +341,7 @@
|
|
|
341
341
|
// Inline function 'kotlin.collections.map' call
|
|
342
342
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
343
343
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
344
|
-
var this_4 = _this__u8e3s4.
|
|
344
|
+
var this_4 = _this__u8e3s4.t23_1;
|
|
345
345
|
var destination_1 = ArrayList_init_$Create$();
|
|
346
346
|
// Inline function 'kotlin.collections.forEach' call
|
|
347
347
|
var tmp0_iterator_1 = this_4.g();
|
|
@@ -349,13 +349,13 @@
|
|
|
349
349
|
var element_1 = tmp0_iterator_1.i();
|
|
350
350
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
351
351
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
352
|
-
var
|
|
353
|
-
if (
|
|
352
|
+
var tmp0_safe_receiver_3 = element_1.a24_1;
|
|
353
|
+
if (tmp0_safe_receiver_3 == null)
|
|
354
354
|
null;
|
|
355
355
|
else {
|
|
356
356
|
// Inline function 'kotlin.let' call
|
|
357
357
|
// Inline function 'kotlin.contracts.contract' call
|
|
358
|
-
destination_1.e(
|
|
358
|
+
destination_1.e(tmp0_safe_receiver_3);
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
var this_5 = take(destination_1, 1);
|
|
@@ -365,15 +365,15 @@
|
|
|
365
365
|
while (tmp0_iterator_2.h()) {
|
|
366
366
|
var item = tmp0_iterator_2.i();
|
|
367
367
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
368
|
-
var
|
|
369
|
-
var
|
|
370
|
-
var
|
|
371
|
-
var tmp$ret$16 = new ParameterObject('RequestBody',
|
|
368
|
+
var tmp0_in = ParameterLocation_BODY_getInstance();
|
|
369
|
+
var tmp1_schema = OpenApiV2Emitter_instance.o24(item.c24_1);
|
|
370
|
+
var tmp2_required = !item.d24_1;
|
|
371
|
+
var tmp$ret$16 = new ParameterObject('RequestBody', tmp0_in, VOID, tmp2_required, tmp1_schema);
|
|
372
372
|
destination_2.e(tmp$ret$16);
|
|
373
373
|
}
|
|
374
374
|
var tmp_3 = destination_2;
|
|
375
375
|
// Inline function 'kotlin.collections.map' call
|
|
376
|
-
var this_6 = _this__u8e3s4.
|
|
376
|
+
var this_6 = _this__u8e3s4.q23_1;
|
|
377
377
|
// Inline function 'kotlin.collections.mapTo' call
|
|
378
378
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_6, 10));
|
|
379
379
|
var tmp0_iterator_3 = this_6.g();
|
|
@@ -385,7 +385,7 @@
|
|
|
385
385
|
}
|
|
386
386
|
var tmp_4 = plus(tmp_3, destination_3);
|
|
387
387
|
// Inline function 'kotlin.collections.map' call
|
|
388
|
-
var this_7 = _this__u8e3s4.
|
|
388
|
+
var this_7 = _this__u8e3s4.r23_1;
|
|
389
389
|
// Inline function 'kotlin.collections.mapTo' call
|
|
390
390
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_7, 10));
|
|
391
391
|
var tmp0_iterator_4 = this_7.g();
|
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
}
|
|
398
398
|
var tmp_5 = plus(tmp_4, destination_4);
|
|
399
399
|
// Inline function 'kotlin.collections.associate' call
|
|
400
|
-
var this_8 = _this__u8e3s4.
|
|
400
|
+
var this_8 = _this__u8e3s4.u23_1;
|
|
401
401
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_8, 10)), 16);
|
|
402
402
|
// Inline function 'kotlin.collections.associateTo' call
|
|
403
403
|
var destination_5 = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -406,10 +406,10 @@
|
|
|
406
406
|
var element_2 = tmp0_iterator_5.i();
|
|
407
407
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
408
408
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
409
|
-
var tmp_6 = _StatusCode___init__impl__t1yi9q(element_2.
|
|
410
|
-
var
|
|
409
|
+
var tmp_6 = _StatusCode___init__impl__t1yi9q(element_2.v23_1);
|
|
410
|
+
var tmp2_description = _this__u8e3s4.n23_1.toString() + ' ' + element_2.v23_1 + ' response';
|
|
411
411
|
// Inline function 'kotlin.collections.associate' call
|
|
412
|
-
var this_9 = element_2.
|
|
412
|
+
var this_9 = element_2.w23_1;
|
|
413
413
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_9, 10)), 16);
|
|
414
414
|
// Inline function 'kotlin.collections.associateTo' call
|
|
415
415
|
var destination_6 = LinkedHashMap_init_$Create$(capacity_0);
|
|
@@ -418,41 +418,41 @@
|
|
|
418
418
|
var element_3 = tmp0_iterator_6.i();
|
|
419
419
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
420
420
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
421
|
-
var pair = to(element_3.
|
|
422
|
-
destination_6.m2(pair.
|
|
421
|
+
var pair = to(element_3.i24_1.y22_1, new HeaderObject(VOID, element_3.j24_1.b1(), VOID, element_3.j24_1.e24() ? OpenApiV2Emitter_instance.o24(element_3.j24_1) : null));
|
|
422
|
+
destination_6.m2(pair.ce_1, pair.de_1);
|
|
423
423
|
}
|
|
424
|
-
var
|
|
424
|
+
var tmp0_safe_receiver_4 = element_2.x23_1;
|
|
425
425
|
var tmp_7;
|
|
426
|
-
if (
|
|
426
|
+
if (tmp0_safe_receiver_4 == null) {
|
|
427
427
|
tmp_7 = null;
|
|
428
428
|
} else {
|
|
429
429
|
// Inline function 'kotlin.takeIf' call
|
|
430
430
|
// Inline function 'kotlin.contracts.contract' call
|
|
431
431
|
var tmp_8;
|
|
432
432
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
433
|
-
var tmp_9 =
|
|
433
|
+
var tmp_9 = tmp0_safe_receiver_4.c24_1;
|
|
434
434
|
if (!(tmp_9 instanceof Unit)) {
|
|
435
|
-
tmp_8 =
|
|
435
|
+
tmp_8 = tmp0_safe_receiver_4;
|
|
436
436
|
} else {
|
|
437
437
|
tmp_8 = null;
|
|
438
438
|
}
|
|
439
439
|
tmp_7 = tmp_8;
|
|
440
440
|
}
|
|
441
|
-
var
|
|
441
|
+
var tmp1_safe_receiver = tmp_7;
|
|
442
442
|
var tmp_10;
|
|
443
|
-
if (
|
|
443
|
+
if (tmp1_safe_receiver == null) {
|
|
444
444
|
tmp_10 = null;
|
|
445
445
|
} else {
|
|
446
446
|
// Inline function 'kotlin.let' call
|
|
447
447
|
// Inline function 'kotlin.contracts.contract' call
|
|
448
448
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
449
449
|
var tmp_11;
|
|
450
|
-
switch (
|
|
450
|
+
switch (tmp1_safe_receiver.c24_1.e24()) {
|
|
451
451
|
case false:
|
|
452
|
-
tmp_11 = OpenApiV2Emitter_instance.
|
|
452
|
+
tmp_11 = OpenApiV2Emitter_instance.o24(tmp1_safe_receiver.c24_1);
|
|
453
453
|
break;
|
|
454
454
|
case true:
|
|
455
|
-
tmp_11 = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), OpenApiV2Emitter_instance.
|
|
455
|
+
tmp_11 = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), OpenApiV2Emitter_instance.o24(tmp1_safe_receiver.c24_1));
|
|
456
456
|
break;
|
|
457
457
|
default:
|
|
458
458
|
noWhenBranchMatchedException();
|
|
@@ -460,28 +460,28 @@
|
|
|
460
460
|
}
|
|
461
461
|
tmp_10 = tmp_11;
|
|
462
462
|
}
|
|
463
|
-
var
|
|
464
|
-
var pair_0 = to(new StatusCode(tmp_6), new ResponseObject(
|
|
465
|
-
destination_5.m2(pair_0.
|
|
463
|
+
var tmp4_schema = tmp_10;
|
|
464
|
+
var pair_0 = to(new StatusCode(tmp_6), new ResponseObject(tmp2_description, tmp4_schema, destination_6));
|
|
465
|
+
destination_5.m2(pair_0.ce_1, pair_0.de_1);
|
|
466
466
|
}
|
|
467
|
-
return new OperationObject(VOID, VOID, VOID, VOID, _this__u8e3s4.
|
|
467
|
+
return new OperationObject(VOID, VOID, VOID, VOID, _this__u8e3s4.n23_1.y22_1, tmp_0, tmp_2, tmp_5, destination_5);
|
|
468
468
|
}
|
|
469
469
|
function emitSegment(_this__u8e3s4, $this) {
|
|
470
470
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenApiV2Emitter$emitSegment$lambda);
|
|
471
471
|
}
|
|
472
472
|
function emitParameter(_this__u8e3s4, $this, location) {
|
|
473
|
-
var
|
|
474
|
-
var
|
|
473
|
+
var tmp1_name = _this__u8e3s4.i24_1.y22_1;
|
|
474
|
+
var tmp2_type = emitType_0(_this__u8e3s4.j24_1, $this);
|
|
475
475
|
var tmp;
|
|
476
|
-
switch (_this__u8e3s4.
|
|
476
|
+
switch (_this__u8e3s4.j24_1.e24()) {
|
|
477
477
|
case true:
|
|
478
|
-
var emit = $this.
|
|
478
|
+
var emit = $this.o24(_this__u8e3s4.j24_1);
|
|
479
479
|
var tmp_0;
|
|
480
480
|
if (emit instanceof ReferenceObject) {
|
|
481
481
|
tmp_0 = emit;
|
|
482
482
|
} else {
|
|
483
483
|
if (emit instanceof SchemaObject) {
|
|
484
|
-
tmp_0 = emit.
|
|
484
|
+
tmp_0 = emit.f1n_1;
|
|
485
485
|
} else {
|
|
486
486
|
noWhenBranchMatchedException();
|
|
487
487
|
}
|
|
@@ -496,9 +496,9 @@
|
|
|
496
496
|
noWhenBranchMatchedException();
|
|
497
497
|
break;
|
|
498
498
|
}
|
|
499
|
-
var
|
|
500
|
-
var
|
|
501
|
-
return new ParameterObject(
|
|
499
|
+
var tmp3_items = tmp;
|
|
500
|
+
var tmp4_required = !_this__u8e3s4.k24_1;
|
|
501
|
+
return new ParameterObject(tmp1_name, location, VOID, tmp4_required, VOID, tmp2_type, tmp3_items);
|
|
502
502
|
}
|
|
503
503
|
function emitType(_this__u8e3s4, $this) {
|
|
504
504
|
var tmp;
|
|
@@ -523,12 +523,12 @@
|
|
|
523
523
|
}
|
|
524
524
|
function emitType_0(_this__u8e3s4, $this) {
|
|
525
525
|
var tmp;
|
|
526
|
-
if (_this__u8e3s4.
|
|
526
|
+
if (_this__u8e3s4.e24()) {
|
|
527
527
|
tmp = Type_ARRAY_getInstance();
|
|
528
528
|
} else {
|
|
529
529
|
var tmp_0;
|
|
530
530
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
531
|
-
tmp_0 = emitType(_this__u8e3s4.
|
|
531
|
+
tmp_0 = emitType(_this__u8e3s4.i23_1, $this);
|
|
532
532
|
} else {
|
|
533
533
|
if (_this__u8e3s4 instanceof Custom) {
|
|
534
534
|
tmp_0 = Type_OBJECT_getInstance();
|
|
@@ -551,7 +551,7 @@
|
|
|
551
551
|
function OpenApiV2Emitter$emitSegment$lambda(it) {
|
|
552
552
|
var tmp;
|
|
553
553
|
if (it instanceof Param) {
|
|
554
|
-
tmp = '{' + it.
|
|
554
|
+
tmp = '{' + it.m24_1.y22_1 + '}';
|
|
555
555
|
} else {
|
|
556
556
|
if (it instanceof Literal) {
|
|
557
557
|
tmp = it.v24_1;
|
|
@@ -563,7 +563,7 @@
|
|
|
563
563
|
}
|
|
564
564
|
function OpenApiV2Emitter() {
|
|
565
565
|
}
|
|
566
|
-
protoOf(OpenApiV2Emitter).
|
|
566
|
+
protoOf(OpenApiV2Emitter).p22 = function (ast) {
|
|
567
567
|
var tmp = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, '0.0.0');
|
|
568
568
|
var tmp_0 = listOf('application/json');
|
|
569
569
|
var tmp_1 = listOf('application/json');
|
|
@@ -585,7 +585,7 @@
|
|
|
585
585
|
while (tmp0_iterator_0.h()) {
|
|
586
586
|
var element_0 = tmp0_iterator_0.i();
|
|
587
587
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
588
|
-
var key = element_0.
|
|
588
|
+
var key = element_0.p23_1;
|
|
589
589
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
590
590
|
var value = destination_0.f2(key);
|
|
591
591
|
var tmp_2;
|
|
@@ -629,21 +629,21 @@
|
|
|
629
629
|
while (tmp0_iterator_3.h()) {
|
|
630
630
|
var item_0 = tmp0_iterator_3.i();
|
|
631
631
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
632
|
-
var
|
|
633
|
-
var
|
|
634
|
-
var
|
|
635
|
-
var tmp$ret$12 = new ParameterObject(
|
|
632
|
+
var tmp0_in = ParameterLocation_PATH_getInstance();
|
|
633
|
+
var tmp1_name = item_0.m24_1.y22_1;
|
|
634
|
+
var tmp2_type = emitType_0(item_0.n24_1, OpenApiV2Emitter_instance);
|
|
635
|
+
var tmp$ret$12 = new ParameterObject(tmp1_name, tmp0_in, VOID, VOID, VOID, tmp2_type);
|
|
636
636
|
destination_3.e(tmp$ret$12);
|
|
637
637
|
}
|
|
638
|
-
var
|
|
639
|
-
var
|
|
640
|
-
var
|
|
641
|
-
var
|
|
642
|
-
var
|
|
643
|
-
var
|
|
644
|
-
var
|
|
645
|
-
var
|
|
646
|
-
var tmp$ret$15 = to(new Path(tmp_3), new PathItemObject(VOID, VOID, VOID,
|
|
638
|
+
var tmp1_get = emit(endpoints, OpenApiV2Emitter_instance, Method_GET_getInstance());
|
|
639
|
+
var tmp2_post = emit(endpoints, OpenApiV2Emitter_instance, Method_POST_getInstance());
|
|
640
|
+
var tmp3_put = emit(endpoints, OpenApiV2Emitter_instance, Method_PUT_getInstance());
|
|
641
|
+
var tmp4_delete = emit(endpoints, OpenApiV2Emitter_instance, Method_DELETE_getInstance());
|
|
642
|
+
var tmp5_patch = emit(endpoints, OpenApiV2Emitter_instance, Method_PATCH_getInstance());
|
|
643
|
+
var tmp6_options = emit(endpoints, OpenApiV2Emitter_instance, Method_OPTIONS_getInstance());
|
|
644
|
+
var tmp7_trace = emit(endpoints, OpenApiV2Emitter_instance, Method_TRACE_getInstance());
|
|
645
|
+
var tmp8_head = emit(endpoints, OpenApiV2Emitter_instance, Method_HEAD_getInstance());
|
|
646
|
+
var tmp$ret$15 = to(new Path(tmp_3), new PathItemObject(VOID, VOID, VOID, tmp1_get, tmp3_put, tmp2_post, tmp4_delete, tmp6_options, tmp8_head, tmp5_patch, tmp7_trace, VOID, destination_3));
|
|
647
647
|
destination_1.e(tmp$ret$15);
|
|
648
648
|
}
|
|
649
649
|
var tmp_4 = toMap(destination_1);
|
|
@@ -666,10 +666,10 @@
|
|
|
666
666
|
var element_3 = tmp0_iterator_5.i();
|
|
667
667
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
668
668
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
669
|
-
var
|
|
670
|
-
var
|
|
671
|
-
var pair = to(element_3.
|
|
672
|
-
destination_5.m2(pair.
|
|
669
|
+
var tmp0_type = Type_STRING_getInstance();
|
|
670
|
+
var tmp1_pattern = element_3.a25_1.q25_1;
|
|
671
|
+
var pair = to(element_3.z24_1.y22_1, new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_pattern, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_type));
|
|
672
|
+
destination_5.m2(pair.ce_1, pair.de_1);
|
|
673
673
|
}
|
|
674
674
|
var tmp_5 = destination_5;
|
|
675
675
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -692,7 +692,7 @@
|
|
|
692
692
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
693
693
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
694
694
|
// Inline function 'kotlin.collections.associate' call
|
|
695
|
-
var this_0 = element_5.
|
|
695
|
+
var this_0 = element_5.b23_1.n25_1;
|
|
696
696
|
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
697
697
|
// Inline function 'kotlin.collections.associateTo' call
|
|
698
698
|
var destination_8 = LinkedHashMap_init_$Create$(capacity_1);
|
|
@@ -701,20 +701,20 @@
|
|
|
701
701
|
var element_6 = tmp0_iterator_8.i();
|
|
702
702
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
703
703
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
704
|
-
var pair_0 = OpenApiV2Emitter_instance.
|
|
705
|
-
destination_8.m2(pair_0.
|
|
704
|
+
var pair_0 = OpenApiV2Emitter_instance.s24(element_6);
|
|
705
|
+
destination_8.m2(pair_0.ce_1, pair_0.de_1);
|
|
706
706
|
}
|
|
707
707
|
// Inline function 'kotlin.takeIf' call
|
|
708
708
|
// Inline function 'kotlin.collections.map' call
|
|
709
709
|
// Inline function 'kotlin.collections.filter' call
|
|
710
710
|
// Inline function 'kotlin.collections.filterTo' call
|
|
711
|
-
var this_1 = element_5.
|
|
711
|
+
var this_1 = element_5.b23_1.n25_1;
|
|
712
712
|
var destination_9 = ArrayList_init_$Create$();
|
|
713
713
|
var tmp0_iterator_9 = this_1.g();
|
|
714
714
|
while (tmp0_iterator_9.h()) {
|
|
715
715
|
var element_7 = tmp0_iterator_9.i();
|
|
716
716
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
717
|
-
if (!element_7.
|
|
717
|
+
if (!element_7.k24_1) {
|
|
718
718
|
destination_9.e(element_7);
|
|
719
719
|
}
|
|
720
720
|
}
|
|
@@ -724,7 +724,7 @@
|
|
|
724
724
|
while (tmp0_iterator_10.h()) {
|
|
725
725
|
var item_1 = tmp0_iterator_10.i();
|
|
726
726
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
727
|
-
var tmp$ret$31 = item_1.
|
|
727
|
+
var tmp$ret$31 = item_1.i24_1.y22_1;
|
|
728
728
|
destination_10.e(tmp$ret$31);
|
|
729
729
|
}
|
|
730
730
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -736,9 +736,9 @@
|
|
|
736
736
|
} else {
|
|
737
737
|
tmp_6 = null;
|
|
738
738
|
}
|
|
739
|
-
var
|
|
740
|
-
var pair_1 = to(element_5.
|
|
741
|
-
destination_7.m2(pair_1.
|
|
739
|
+
var tmp1_required = tmp_6;
|
|
740
|
+
var pair_1 = to(element_5.a23_1.y22_1, new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_required, VOID, VOID, VOID, VOID, destination_8));
|
|
741
|
+
destination_7.m2(pair_1.ce_1, pair_1.de_1);
|
|
742
742
|
}
|
|
743
743
|
var tmp_7 = plus_0(tmp_5, destination_7);
|
|
744
744
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -760,9 +760,9 @@
|
|
|
760
760
|
var element_9 = tmp0_iterator_12.i();
|
|
761
761
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
762
762
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
763
|
-
var
|
|
763
|
+
var tmp0_type_0 = Type_STRING_getInstance();
|
|
764
764
|
// Inline function 'kotlin.collections.map' call
|
|
765
|
-
var this_2 = element_9.
|
|
765
|
+
var this_2 = element_9.d25_1;
|
|
766
766
|
// Inline function 'kotlin.collections.mapTo' call
|
|
767
767
|
var destination_13 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
|
|
768
768
|
var tmp0_iterator_13 = this_2.g();
|
|
@@ -772,22 +772,22 @@
|
|
|
772
772
|
var tmp$ret$42 = JsonPrimitive(item_2);
|
|
773
773
|
destination_13.e(tmp$ret$42);
|
|
774
774
|
}
|
|
775
|
-
var pair_2 = to(element_9.
|
|
776
|
-
destination_12.m2(pair_2.
|
|
775
|
+
var pair_2 = to(element_9.c25_1.y22_1, new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, destination_13, tmp0_type_0));
|
|
776
|
+
destination_12.m2(pair_2.ce_1, pair_2.de_1);
|
|
777
777
|
}
|
|
778
778
|
return new SwaggerObject('2.0', tmp, VOID, VOID, VOID, tmp_0, tmp_1, tmp_4, plus_0(tmp_7, destination_12));
|
|
779
779
|
};
|
|
780
|
-
protoOf(OpenApiV2Emitter).
|
|
781
|
-
return to(_this__u8e3s4.
|
|
780
|
+
protoOf(OpenApiV2Emitter).s24 = function (_this__u8e3s4) {
|
|
781
|
+
return to(_this__u8e3s4.i24_1.y22_1, this.o24(_this__u8e3s4.j24_1));
|
|
782
782
|
};
|
|
783
|
-
protoOf(OpenApiV2Emitter).
|
|
783
|
+
protoOf(OpenApiV2Emitter).o24 = function (_this__u8e3s4) {
|
|
784
784
|
// Inline function 'kotlin.let' call
|
|
785
785
|
var tmp;
|
|
786
786
|
if (_this__u8e3s4 instanceof Custom) {
|
|
787
|
-
tmp = new ReferenceObject(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.
|
|
787
|
+
tmp = new ReferenceObject(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.v22_1));
|
|
788
788
|
} else {
|
|
789
789
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
790
|
-
tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType(_this__u8e3s4.
|
|
790
|
+
tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType(_this__u8e3s4.i23_1, this));
|
|
791
791
|
} else {
|
|
792
792
|
if (_this__u8e3s4 instanceof Any) {
|
|
793
793
|
var message = 'Cannot map Any';
|
|
@@ -805,7 +805,7 @@
|
|
|
805
805
|
// Inline function 'kotlin.contracts.contract' call
|
|
806
806
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
807
807
|
var it = tmp;
|
|
808
|
-
return _this__u8e3s4.
|
|
808
|
+
return _this__u8e3s4.e24() ? new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), it) : it;
|
|
809
809
|
};
|
|
810
810
|
var OpenApiV2Emitter_instance;
|
|
811
811
|
function OpenApiV2Emitter_getInstance() {
|
|
@@ -814,7 +814,7 @@
|
|
|
814
814
|
function parseEndpoints(_this__u8e3s4, $this) {
|
|
815
815
|
// Inline function 'kotlin.collections.flatMap' call
|
|
816
816
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
817
|
-
var this_0 = _this__u8e3s4.
|
|
817
|
+
var this_0 = _this__u8e3s4.t1g_1;
|
|
818
818
|
var destination = ArrayList_init_$Create$();
|
|
819
819
|
// Inline function 'kotlin.collections.iterator' call
|
|
820
820
|
var tmp0_iterator = this_0.z().g();
|
|
@@ -822,7 +822,7 @@
|
|
|
822
822
|
var element = tmp0_iterator.i();
|
|
823
823
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>' call
|
|
824
824
|
// Inline function 'kotlin.collections.component1' call
|
|
825
|
-
var path = element.a1().
|
|
825
|
+
var path = element.a1().p1h_1;
|
|
826
826
|
// Inline function 'kotlin.collections.component2' call
|
|
827
827
|
var pathItem = element.b1();
|
|
828
828
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -850,7 +850,7 @@
|
|
|
850
850
|
while (tmp0_iterator_1.h()) {
|
|
851
851
|
var element_1 = tmp0_iterator_1.i();
|
|
852
852
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
853
|
-
if (element_1.
|
|
853
|
+
if (element_1.l1i_1.equals(ParameterLocation_QUERY_getInstance())) {
|
|
854
854
|
destination_1.e(element_1);
|
|
855
855
|
}
|
|
856
856
|
}
|
|
@@ -872,7 +872,7 @@
|
|
|
872
872
|
while (tmp0_iterator_3.h()) {
|
|
873
873
|
var element_2 = tmp0_iterator_3.i();
|
|
874
874
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
875
|
-
if (element_2.
|
|
875
|
+
if (element_2.l1i_1.equals(ParameterLocation_HEADER_getInstance())) {
|
|
876
876
|
destination_3.e(element_2);
|
|
877
877
|
}
|
|
878
878
|
}
|
|
@@ -895,7 +895,7 @@
|
|
|
895
895
|
while (tmp0_iterator_5.h()) {
|
|
896
896
|
var element_3 = tmp0_iterator_5.i();
|
|
897
897
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
898
|
-
if (element_3.
|
|
898
|
+
if (element_3.l1i_1.equals(ParameterLocation_BODY_getInstance())) {
|
|
899
899
|
destination_5.e(element_3);
|
|
900
900
|
}
|
|
901
901
|
}
|
|
@@ -908,10 +908,10 @@
|
|
|
908
908
|
// Inline function 'kotlin.collections.map' call
|
|
909
909
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
910
910
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
911
|
-
var tmp0_elvis_lhs_0 = _this__u8e3s4.
|
|
911
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.r1g_1;
|
|
912
912
|
var tmp = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
913
913
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
914
|
-
var tmp0_elvis_lhs_1 = operation.
|
|
914
|
+
var tmp0_elvis_lhs_1 = operation.f1l_1;
|
|
915
915
|
var tmp$ret$22 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
916
916
|
var this_2 = distinct(plus(tmp, tmp$ret$22));
|
|
917
917
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -929,13 +929,13 @@
|
|
|
929
929
|
while (tmp0_iterator_7.h()) {
|
|
930
930
|
var item_1 = tmp0_iterator_7.i();
|
|
931
931
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
932
|
-
var schema = element_4.
|
|
932
|
+
var schema = element_4.o1i_1;
|
|
933
933
|
var tmp_1;
|
|
934
934
|
if (schema instanceof ReferenceObject) {
|
|
935
935
|
tmp_1 = toReference(_this__u8e3s4, OpenApiV2Parser_instance, schema);
|
|
936
936
|
} else {
|
|
937
937
|
if (schema instanceof SchemaObject) {
|
|
938
|
-
tmp_1 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, schema, Common_instance.
|
|
938
|
+
tmp_1 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, schema, Common_instance.b2a([name, 'RequestBody']));
|
|
939
939
|
} else {
|
|
940
940
|
if (schema == null) {
|
|
941
941
|
var reason = 'Not yet implemented';
|
|
@@ -946,7 +946,7 @@
|
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
948
|
var tmp_2 = tmp_1;
|
|
949
|
-
var tmp0_elvis_lhs_2 = element_4.
|
|
949
|
+
var tmp0_elvis_lhs_2 = element_4.n1i_1;
|
|
950
950
|
var tmp$ret$25 = new Request(new Content(item_1, tmp_2, !(tmp0_elvis_lhs_2 == null ? false : tmp0_elvis_lhs_2)));
|
|
951
951
|
destination_7.e(tmp$ret$25);
|
|
952
952
|
}
|
|
@@ -966,7 +966,7 @@
|
|
|
966
966
|
// Inline function 'kotlin.collections.flatMap' call
|
|
967
967
|
// Inline function 'kotlin.collections.mapValues' call
|
|
968
968
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
969
|
-
var tmp0_elvis_lhs_3 = operation.
|
|
969
|
+
var tmp0_elvis_lhs_3 = operation.i1l_1;
|
|
970
970
|
var this_4 = tmp0_elvis_lhs_3 == null ? emptyMap() : tmp0_elvis_lhs_3;
|
|
971
971
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
972
972
|
var destination_8 = LinkedHashMap_init_$Create$(mapCapacity(this_4.j()));
|
|
@@ -988,16 +988,16 @@
|
|
|
988
988
|
var element_6 = tmp0_iterator_9.i();
|
|
989
989
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
990
990
|
// Inline function 'kotlin.collections.component1' call
|
|
991
|
-
var status = element_6.a1().
|
|
991
|
+
var status = element_6.a1().s1n_1;
|
|
992
992
|
// Inline function 'kotlin.collections.component2' call
|
|
993
993
|
var res = element_6.b1();
|
|
994
994
|
// Inline function 'kotlin.collections.map' call
|
|
995
995
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
996
996
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
997
|
-
var tmp0_elvis_lhs_4 = _this__u8e3s4.
|
|
997
|
+
var tmp0_elvis_lhs_4 = _this__u8e3s4.s1g_1;
|
|
998
998
|
var tmp_5 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
999
999
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1000
|
-
var tmp0_elvis_lhs_5 = operation.
|
|
1000
|
+
var tmp0_elvis_lhs_5 = operation.g1l_1;
|
|
1001
1001
|
var tmp$ret$43 = tmp0_elvis_lhs_5 == null ? emptyList() : tmp0_elvis_lhs_5;
|
|
1002
1002
|
var this_5 = distinct(plus(tmp_5, tmp$ret$43));
|
|
1003
1003
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -1017,16 +1017,16 @@
|
|
|
1017
1017
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1018
1018
|
var tmp_7 = _StatusCode___get_value__impl__we50mu(status);
|
|
1019
1019
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1020
|
-
var
|
|
1020
|
+
var tmp0_safe_receiver = res.n1j_1;
|
|
1021
1021
|
var tmp_8;
|
|
1022
|
-
if (
|
|
1022
|
+
if (tmp0_safe_receiver == null) {
|
|
1023
1023
|
tmp_8 = null;
|
|
1024
1024
|
} else {
|
|
1025
1025
|
// Inline function 'kotlin.collections.map' call
|
|
1026
1026
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1027
|
-
var destination_11 = ArrayList_init_$Create$_0(
|
|
1027
|
+
var destination_11 = ArrayList_init_$Create$_0(tmp0_safe_receiver.j());
|
|
1028
1028
|
// Inline function 'kotlin.collections.iterator' call
|
|
1029
|
-
var tmp0_iterator_11 =
|
|
1029
|
+
var tmp0_iterator_11 = tmp0_safe_receiver.z().g();
|
|
1030
1030
|
while (tmp0_iterator_11.h()) {
|
|
1031
1031
|
var item_3 = tmp0_iterator_11.i();
|
|
1032
1032
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
@@ -1041,20 +1041,20 @@
|
|
|
1041
1041
|
}
|
|
1042
1042
|
var tmp0_elvis_lhs_6 = tmp_8;
|
|
1043
1043
|
var tmp_9 = tmp0_elvis_lhs_6 == null ? emptyList() : tmp0_elvis_lhs_6;
|
|
1044
|
-
var
|
|
1044
|
+
var tmp1_safe_receiver = res.m1j_1;
|
|
1045
1045
|
var tmp_10;
|
|
1046
|
-
if (
|
|
1046
|
+
if (tmp1_safe_receiver == null) {
|
|
1047
1047
|
tmp_10 = null;
|
|
1048
1048
|
} else {
|
|
1049
1049
|
// Inline function 'kotlin.let' call
|
|
1050
1050
|
// Inline function 'kotlin.contracts.contract' call
|
|
1051
1051
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1052
1052
|
var tmp_11;
|
|
1053
|
-
if (
|
|
1054
|
-
tmp_11 = toReference(_this__u8e3s4, OpenApiV2Parser_instance,
|
|
1053
|
+
if (tmp1_safe_receiver instanceof ReferenceObject) {
|
|
1054
|
+
tmp_11 = toReference(_this__u8e3s4, OpenApiV2Parser_instance, tmp1_safe_receiver);
|
|
1055
1055
|
} else {
|
|
1056
|
-
if (
|
|
1057
|
-
tmp_11 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance,
|
|
1056
|
+
if (tmp1_safe_receiver instanceof SchemaObject) {
|
|
1057
|
+
tmp_11 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, tmp1_safe_receiver, Common_instance.b2a([name, _StatusCode___get_value__impl__we50mu(status), item_2, 'ResponseBody']));
|
|
1058
1058
|
} else {
|
|
1059
1059
|
noWhenBranchMatchedException();
|
|
1060
1060
|
}
|
|
@@ -1073,13 +1073,13 @@
|
|
|
1073
1073
|
while (tmp0_iterator_12.h()) {
|
|
1074
1074
|
var e = tmp0_iterator_12.i();
|
|
1075
1075
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
1076
|
-
var key = to(e.
|
|
1076
|
+
var key = to(e.v23_1, e.x23_1);
|
|
1077
1077
|
if (set.e(key)) {
|
|
1078
1078
|
list_1.e(e);
|
|
1079
1079
|
}
|
|
1080
1080
|
}
|
|
1081
1081
|
var responses = list_1;
|
|
1082
|
-
var list_2 = listOf(new Endpoint(null, Companion_instance.
|
|
1082
|
+
var list_2 = listOf(new Endpoint(null, Companion_instance.b27(name), method, segments, query, headers, emptyList(), requests, responses));
|
|
1083
1083
|
addAll(destination_0, list_2);
|
|
1084
1084
|
}
|
|
1085
1085
|
var list_3 = destination_0;
|
|
@@ -1101,7 +1101,7 @@
|
|
|
1101
1101
|
// Inline function 'kotlin.collections.filter' call
|
|
1102
1102
|
// Inline function 'arrow.core.filterIsInstance' call
|
|
1103
1103
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1104
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1104
|
+
var tmp0_elvis_lhs = _this__u8e3s4.u1g_1;
|
|
1105
1105
|
// Inline function 'kotlin.collections.filterValues' call
|
|
1106
1106
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1107
1107
|
var result = LinkedHashMap_init_$Create$_0();
|
|
@@ -1123,7 +1123,7 @@
|
|
|
1123
1123
|
while (tmp0_iterator_0.h()) {
|
|
1124
1124
|
var element = tmp0_iterator_0.i();
|
|
1125
1125
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseDefinitions.<anonymous>' call
|
|
1126
|
-
if (element.b1().
|
|
1126
|
+
if (element.b1().i1n_1 == null) {
|
|
1127
1127
|
destination.m2(element.a1(), element.b1());
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
@@ -1134,7 +1134,7 @@
|
|
|
1134
1134
|
while (tmp0_iterator_1.h()) {
|
|
1135
1135
|
var element_0 = tmp0_iterator_1.i();
|
|
1136
1136
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseDefinitions.<anonymous>' call
|
|
1137
|
-
var list = flatten(_this__u8e3s4, OpenApiV2Parser_instance, element_0.b1(), Common_instance.
|
|
1137
|
+
var list = flatten(_this__u8e3s4, OpenApiV2Parser_instance, element_0.b1(), Common_instance.b2a([element_0.a1()]));
|
|
1138
1138
|
addAll(destination_0, list);
|
|
1139
1139
|
}
|
|
1140
1140
|
return destination_0;
|
|
@@ -1165,7 +1165,7 @@
|
|
|
1165
1165
|
function resolveParameters(_this__u8e3s4, $this, operation) {
|
|
1166
1166
|
// Inline function 'kotlin.collections.map' call
|
|
1167
1167
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1168
|
-
var tmp0_elvis_lhs = operation.
|
|
1168
|
+
var tmp0_elvis_lhs = operation.h1l_1;
|
|
1169
1169
|
var this_0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1170
1170
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1171
1171
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
@@ -1191,7 +1191,7 @@
|
|
|
1191
1191
|
function resolveParameters_0(_this__u8e3s4, $this, itemObject) {
|
|
1192
1192
|
// Inline function 'kotlin.collections.map' call
|
|
1193
1193
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1194
|
-
var tmp0_elvis_lhs = itemObject.
|
|
1194
|
+
var tmp0_elvis_lhs = itemObject.f1i_1;
|
|
1195
1195
|
var this_0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1196
1196
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1197
1197
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
@@ -1215,38 +1215,38 @@
|
|
|
1215
1215
|
return destination;
|
|
1216
1216
|
}
|
|
1217
1217
|
function resolveParameterObject(_this__u8e3s4, $this, reference) {
|
|
1218
|
-
var
|
|
1219
|
-
var
|
|
1218
|
+
var tmp0_safe_receiver = _this__u8e3s4.v1g_1;
|
|
1219
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f2(getReference(reference, $this));
|
|
1220
1220
|
var tmp;
|
|
1221
|
-
if (
|
|
1222
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
1221
|
+
if (tmp1_elvis_lhs == null) {
|
|
1222
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.n1n_1);
|
|
1223
1223
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1224
1224
|
} else {
|
|
1225
|
-
tmp =
|
|
1225
|
+
tmp = tmp1_elvis_lhs;
|
|
1226
1226
|
}
|
|
1227
1227
|
return tmp;
|
|
1228
1228
|
}
|
|
1229
1229
|
function resolveResponseObject(_this__u8e3s4, $this, reference) {
|
|
1230
|
-
var
|
|
1231
|
-
var
|
|
1230
|
+
var tmp0_safe_receiver = _this__u8e3s4.w1g_1;
|
|
1231
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f2(getReference(reference, $this));
|
|
1232
1232
|
var tmp;
|
|
1233
|
-
if (
|
|
1234
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
1233
|
+
if (tmp1_elvis_lhs == null) {
|
|
1234
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.n1n_1);
|
|
1235
1235
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1236
1236
|
} else {
|
|
1237
|
-
tmp =
|
|
1237
|
+
tmp = tmp1_elvis_lhs;
|
|
1238
1238
|
}
|
|
1239
1239
|
return tmp;
|
|
1240
1240
|
}
|
|
1241
1241
|
function resolveSchemaObject(_this__u8e3s4, $this, reference) {
|
|
1242
|
-
var
|
|
1243
|
-
var
|
|
1242
|
+
var tmp0_safe_receiver = _this__u8e3s4.u1g_1;
|
|
1243
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f2(getReference(reference, $this));
|
|
1244
1244
|
var tmp;
|
|
1245
|
-
if (
|
|
1246
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.
|
|
1245
|
+
if (tmp1_elvis_lhs == null) {
|
|
1246
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.n1n_1);
|
|
1247
1247
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1248
1248
|
} else {
|
|
1249
|
-
tmp =
|
|
1249
|
+
tmp = tmp1_elvis_lhs;
|
|
1250
1250
|
}
|
|
1251
1251
|
return tmp;
|
|
1252
1252
|
}
|
|
@@ -1256,12 +1256,12 @@
|
|
|
1256
1256
|
var schemaOrReference_0 = schemaOrReference;
|
|
1257
1257
|
$l$1: do {
|
|
1258
1258
|
$l$0: do {
|
|
1259
|
-
var
|
|
1259
|
+
var tmp0_subject = schemaOrReference_0;
|
|
1260
1260
|
var tmp;
|
|
1261
|
-
if (
|
|
1261
|
+
if (tmp0_subject instanceof SchemaObject) {
|
|
1262
1262
|
tmp = schemaOrReference_0;
|
|
1263
1263
|
} else {
|
|
1264
|
-
if (
|
|
1264
|
+
if (tmp0_subject instanceof ReferenceObject) {
|
|
1265
1265
|
var tmp0 = $this_0;
|
|
1266
1266
|
var tmp2 = resolveSchemaObject($this_1, $this_0, schemaOrReference_0);
|
|
1267
1267
|
$this_0 = tmp0;
|
|
@@ -1338,59 +1338,59 @@
|
|
|
1338
1338
|
}
|
|
1339
1339
|
function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
1340
1340
|
var tmp;
|
|
1341
|
-
if (!(schemaObject.
|
|
1341
|
+
if (!(schemaObject.i1n_1 == null)) {
|
|
1342
1342
|
var tmp_0;
|
|
1343
|
-
if (schemaObject.
|
|
1343
|
+
if (schemaObject.i1n_1 instanceof BooleanObject) {
|
|
1344
1344
|
tmp_0 = emptyList();
|
|
1345
1345
|
} else {
|
|
1346
|
-
var
|
|
1346
|
+
var tmp1_safe_receiver = schemaObject.i1n_1;
|
|
1347
1347
|
var tmp_1;
|
|
1348
|
-
if (
|
|
1348
|
+
if (tmp1_safe_receiver == null) {
|
|
1349
1349
|
tmp_1 = null;
|
|
1350
1350
|
} else {
|
|
1351
1351
|
// Inline function 'kotlin.let' call
|
|
1352
1352
|
// Inline function 'kotlin.contracts.contract' call
|
|
1353
1353
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
|
|
1354
|
-
tmp_1 = resolve_0(_this__u8e3s4, OpenApiV2Parser_instance,
|
|
1354
|
+
tmp_1 = resolve_0(_this__u8e3s4, OpenApiV2Parser_instance, tmp1_safe_receiver);
|
|
1355
1355
|
}
|
|
1356
|
-
var
|
|
1356
|
+
var tmp2_safe_receiver = tmp_1;
|
|
1357
1357
|
var tmp_2;
|
|
1358
|
-
if (
|
|
1358
|
+
if (tmp2_safe_receiver == null) {
|
|
1359
1359
|
tmp_2 = null;
|
|
1360
1360
|
} else {
|
|
1361
1361
|
// Inline function 'kotlin.takeIf' call
|
|
1362
1362
|
// Inline function 'kotlin.contracts.contract' call
|
|
1363
1363
|
var tmp_3;
|
|
1364
1364
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
|
|
1365
|
-
if (!(
|
|
1366
|
-
tmp_3 =
|
|
1365
|
+
if (!(tmp2_safe_receiver.h1n_1 == null)) {
|
|
1366
|
+
tmp_3 = tmp2_safe_receiver;
|
|
1367
1367
|
} else {
|
|
1368
1368
|
tmp_3 = null;
|
|
1369
1369
|
}
|
|
1370
1370
|
tmp_2 = tmp_3;
|
|
1371
1371
|
}
|
|
1372
|
-
var
|
|
1372
|
+
var tmp3_safe_receiver = tmp_2;
|
|
1373
1373
|
var tmp_4;
|
|
1374
|
-
if (
|
|
1374
|
+
if (tmp3_safe_receiver == null) {
|
|
1375
1375
|
tmp_4 = null;
|
|
1376
1376
|
} else {
|
|
1377
1377
|
// Inline function 'kotlin.let' call
|
|
1378
1378
|
// Inline function 'kotlin.contracts.contract' call
|
|
1379
1379
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
|
|
1380
|
-
tmp_4 = flatten(_this__u8e3s4, OpenApiV2Parser_instance,
|
|
1380
|
+
tmp_4 = flatten(_this__u8e3s4, OpenApiV2Parser_instance, tmp3_safe_receiver, name);
|
|
1381
1381
|
}
|
|
1382
|
-
var
|
|
1383
|
-
tmp_0 =
|
|
1382
|
+
var tmp4_elvis_lhs = tmp_4;
|
|
1383
|
+
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
1384
1384
|
}
|
|
1385
1385
|
tmp = tmp_0;
|
|
1386
|
-
} else if (!(schemaObject.
|
|
1387
|
-
var tmp_5 = Companion_instance.
|
|
1386
|
+
} else if (!(schemaObject.g1n_1 == null)) {
|
|
1387
|
+
var tmp_5 = Companion_instance.b27(name);
|
|
1388
1388
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
1389
1389
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1390
1390
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1391
|
-
var
|
|
1391
|
+
var tmp0_elvis_lhs = schemaObject.g1n_1;
|
|
1392
1392
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1393
|
-
var this_0 =
|
|
1393
|
+
var this_0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1394
1394
|
var destination = ArrayList_init_$Create$();
|
|
1395
1395
|
var tmp0_iterator = this_0.g();
|
|
1396
1396
|
while (tmp0_iterator.h()) {
|
|
@@ -1415,7 +1415,7 @@
|
|
|
1415
1415
|
while (tmp0_iterator_0.h()) {
|
|
1416
1416
|
var e = tmp0_iterator_0.i();
|
|
1417
1417
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
|
|
1418
|
-
var key = e.
|
|
1418
|
+
var key = e.i24_1;
|
|
1419
1419
|
if (set.e(key)) {
|
|
1420
1420
|
list_0.e(e);
|
|
1421
1421
|
}
|
|
@@ -1423,7 +1423,7 @@
|
|
|
1423
1423
|
var tmp_7 = listOf(new Type(null, tmp_5, new Shape(list_0), emptyList()));
|
|
1424
1424
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1425
1425
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1426
|
-
var this_1 = ensureNotNull(schemaObject.
|
|
1426
|
+
var this_1 = ensureNotNull(schemaObject.g1n_1);
|
|
1427
1427
|
var destination_0 = ArrayList_init_$Create$();
|
|
1428
1428
|
var tmp0_iterator_1 = this_1.g();
|
|
1429
1429
|
while (tmp0_iterator_1.h()) {
|
|
@@ -1436,9 +1436,9 @@
|
|
|
1436
1436
|
if (element_0 instanceof SchemaObject) {
|
|
1437
1437
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1438
1438
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1439
|
-
var
|
|
1439
|
+
var tmp0_elvis_lhs_0 = element_0.h1n_1;
|
|
1440
1440
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1441
|
-
var this_2 =
|
|
1441
|
+
var this_2 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
1442
1442
|
var destination_1 = ArrayList_init_$Create$();
|
|
1443
1443
|
// Inline function 'kotlin.collections.iterator' call
|
|
1444
1444
|
var tmp0_iterator_2 = this_2.z().g();
|
|
@@ -1454,7 +1454,7 @@
|
|
|
1454
1454
|
tmp_9 = emptyList();
|
|
1455
1455
|
} else {
|
|
1456
1456
|
if (value instanceof SchemaObject) {
|
|
1457
|
-
tmp_9 = flatten(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_instance.
|
|
1457
|
+
tmp_9 = flatten(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_instance.b2a([name, key_0]));
|
|
1458
1458
|
} else {
|
|
1459
1459
|
noWhenBranchMatchedException();
|
|
1460
1460
|
}
|
|
@@ -1471,37 +1471,37 @@
|
|
|
1471
1471
|
addAll(destination_0, list_2);
|
|
1472
1472
|
}
|
|
1473
1473
|
tmp = plus(tmp_7, destination_0);
|
|
1474
|
-
} else if (!(schemaObject.
|
|
1474
|
+
} else if (!(schemaObject.d1n_1 == null)) {
|
|
1475
1475
|
// Inline function 'kotlin.let' call
|
|
1476
1476
|
// Inline function 'kotlin.collections.map' call
|
|
1477
|
-
var this_3 = ensureNotNull(schemaObject.
|
|
1477
|
+
var this_3 = ensureNotNull(schemaObject.d1n_1);
|
|
1478
1478
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1479
1479
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_3, 10));
|
|
1480
1480
|
var tmp0_iterator_3 = this_3.g();
|
|
1481
1481
|
while (tmp0_iterator_3.h()) {
|
|
1482
1482
|
var item = tmp0_iterator_3.i();
|
|
1483
1483
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
|
|
1484
|
-
var tmp$ret$22 = item.
|
|
1484
|
+
var tmp$ret$22 = item.f17();
|
|
1485
1485
|
destination_2.e(tmp$ret$22);
|
|
1486
1486
|
}
|
|
1487
1487
|
// Inline function 'kotlin.contracts.contract' call
|
|
1488
1488
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
|
|
1489
1489
|
var it = toSet(destination_2);
|
|
1490
|
-
tmp = listOf(new Enum(null, Companion_instance.
|
|
1490
|
+
tmp = listOf(new Enum(null, Companion_instance.b27(name), it));
|
|
1491
1491
|
} else {
|
|
1492
|
-
var
|
|
1492
|
+
var tmp5_subject = schemaObject.e1n_1;
|
|
1493
1493
|
var tmp_10;
|
|
1494
|
-
switch (
|
|
1494
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.q2_1) {
|
|
1495
1495
|
case -1:
|
|
1496
1496
|
case 5:
|
|
1497
1497
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1498
1498
|
|
|
1499
1499
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1500
1500
|
|
|
1501
|
-
var
|
|
1501
|
+
var tmp0_elvis_lhs_1 = schemaObject.h1n_1;
|
|
1502
1502
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1503
1503
|
|
|
1504
|
-
var this_4 =
|
|
1504
|
+
var this_4 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
1505
1505
|
var destination_3 = ArrayList_init_$Create$();
|
|
1506
1506
|
// Inline function 'kotlin.collections.iterator' call
|
|
1507
1507
|
|
|
@@ -1513,22 +1513,22 @@
|
|
|
1513
1513
|
var key_1 = element_2.a1();
|
|
1514
1514
|
// Inline function 'kotlin.collections.component2' call
|
|
1515
1515
|
var value_0 = element_2.b1();
|
|
1516
|
-
var list_3 = flatten_0(_this__u8e3s4, OpenApiV2Parser_instance, value_0, Common_instance.
|
|
1516
|
+
var list_3 = flatten_0(_this__u8e3s4, OpenApiV2Parser_instance, value_0, Common_instance.b2a([name, key_1]));
|
|
1517
1517
|
addAll(destination_3, list_3);
|
|
1518
1518
|
}
|
|
1519
1519
|
|
|
1520
1520
|
var fields = destination_3;
|
|
1521
|
-
var schema = listOf(new Type(null, Companion_instance.
|
|
1521
|
+
var schema = listOf(new Type(null, Companion_instance.b27(name), new Shape(toField_0(_this__u8e3s4, $this, schemaObject, name)), emptyList()));
|
|
1522
1522
|
tmp_10 = plus(schema, fields);
|
|
1523
1523
|
break;
|
|
1524
1524
|
case 4:
|
|
1525
|
-
var it_0 = schemaObject.
|
|
1525
|
+
var it_0 = schemaObject.f1n_1;
|
|
1526
1526
|
var tmp_11;
|
|
1527
1527
|
if (it_0 instanceof ReferenceObject) {
|
|
1528
1528
|
tmp_11 = emptyList();
|
|
1529
1529
|
} else {
|
|
1530
1530
|
if (it_0 instanceof SchemaObject) {
|
|
1531
|
-
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_instance.
|
|
1531
|
+
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_instance.b2a([name, 'Array']));
|
|
1532
1532
|
} else {
|
|
1533
1533
|
if (it_0 == null) {
|
|
1534
1534
|
tmp_11 = emptyList();
|
|
@@ -1568,8 +1568,8 @@
|
|
|
1568
1568
|
var refOrSchema = resolveSchemaObject(_this__u8e3s4, $this, reference);
|
|
1569
1569
|
var schema = resolve(_this__u8e3s4, OpenApiV2Parser_instance, refOrSchema);
|
|
1570
1570
|
var tmp;
|
|
1571
|
-
if (!(schema.
|
|
1572
|
-
var additionalProperties = ensureNotNull(schema.
|
|
1571
|
+
if (!(schema.i1n_1 == null)) {
|
|
1572
|
+
var additionalProperties = ensureNotNull(schema.i1n_1);
|
|
1573
1573
|
var tmp_0;
|
|
1574
1574
|
if (additionalProperties instanceof BooleanObject) {
|
|
1575
1575
|
tmp_0 = new Any(false, true);
|
|
@@ -1585,24 +1585,24 @@
|
|
|
1585
1585
|
}
|
|
1586
1586
|
}
|
|
1587
1587
|
tmp = tmp_0;
|
|
1588
|
-
} else if (!(schema.
|
|
1589
|
-
tmp = new Custom(Common_instance.
|
|
1590
|
-
} else if (isPrimitive(schema.
|
|
1591
|
-
tmp = new Primitive(toPrimitive(ensureNotNull(schema.
|
|
1588
|
+
} else if (!(schema.d1n_1 == null)) {
|
|
1589
|
+
tmp = new Custom(Common_instance.b2a([getReference(reference, OpenApiV2Parser_instance)]), false, false);
|
|
1590
|
+
} else if (isPrimitive(schema.e1n_1)) {
|
|
1591
|
+
tmp = new Primitive(toPrimitive(ensureNotNull(schema.e1n_1), OpenApiV2Parser_instance), false, false);
|
|
1592
1592
|
} else {
|
|
1593
|
-
var
|
|
1593
|
+
var tmp0_subject = schema.e1n_1;
|
|
1594
1594
|
var tmp_1;
|
|
1595
|
-
if ((
|
|
1596
|
-
var items = schema.
|
|
1595
|
+
if ((tmp0_subject == null ? -1 : tmp0_subject.q2_1) === 4) {
|
|
1596
|
+
var items = schema.f1n_1;
|
|
1597
1597
|
var tmp_2;
|
|
1598
1598
|
if (items instanceof ReferenceObject) {
|
|
1599
|
-
tmp_2 = new Custom(Common_instance.
|
|
1599
|
+
tmp_2 = new Custom(Common_instance.b2a([getReference(items, OpenApiV2Parser_instance)]), true);
|
|
1600
1600
|
} else {
|
|
1601
1601
|
if (items instanceof SchemaObject) {
|
|
1602
|
-
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, items, Common_instance.
|
|
1602
|
+
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, items, Common_instance.b2a([getReference(reference, OpenApiV2Parser_instance), 'Array'])));
|
|
1603
1603
|
} else {
|
|
1604
1604
|
if (items == null) {
|
|
1605
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.
|
|
1605
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.n1n_1);
|
|
1606
1606
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1607
1607
|
} else {
|
|
1608
1608
|
noWhenBranchMatchedException();
|
|
@@ -1613,10 +1613,10 @@
|
|
|
1613
1613
|
} else {
|
|
1614
1614
|
var tmp_3;
|
|
1615
1615
|
if (refOrSchema instanceof SchemaObject) {
|
|
1616
|
-
tmp_3 = new Custom(Common_instance.
|
|
1616
|
+
tmp_3 = new Custom(Common_instance.b2a([getReference(reference, OpenApiV2Parser_instance)]), false);
|
|
1617
1617
|
} else {
|
|
1618
1618
|
if (refOrSchema instanceof ReferenceObject) {
|
|
1619
|
-
tmp_3 = new Custom(Common_instance.
|
|
1619
|
+
tmp_3 = new Custom(Common_instance.b2a([getReference(refOrSchema, OpenApiV2Parser_instance)]), false);
|
|
1620
1620
|
} else {
|
|
1621
1621
|
noWhenBranchMatchedException();
|
|
1622
1622
|
}
|
|
@@ -1629,8 +1629,8 @@
|
|
|
1629
1629
|
}
|
|
1630
1630
|
function toReference_0(_this__u8e3s4, $this, schema, name) {
|
|
1631
1631
|
var tmp;
|
|
1632
|
-
if (!(schema.
|
|
1633
|
-
var additionalProperties = ensureNotNull(schema.
|
|
1632
|
+
if (!(schema.i1n_1 == null)) {
|
|
1633
|
+
var additionalProperties = ensureNotNull(schema.i1n_1);
|
|
1634
1634
|
var tmp_0;
|
|
1635
1635
|
if (additionalProperties instanceof BooleanObject) {
|
|
1636
1636
|
tmp_0 = new Any(false, true);
|
|
@@ -1643,55 +1643,55 @@
|
|
|
1643
1643
|
// Inline function 'kotlin.contracts.contract' call
|
|
1644
1644
|
var tmp_1;
|
|
1645
1645
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toReference.<anonymous>' call
|
|
1646
|
-
if (isPrimitive(additionalProperties.
|
|
1646
|
+
if (isPrimitive(additionalProperties.e1n_1) || !(additionalProperties.h1n_1 == null)) {
|
|
1647
1647
|
tmp_1 = additionalProperties;
|
|
1648
1648
|
} else {
|
|
1649
1649
|
tmp_1 = null;
|
|
1650
1650
|
}
|
|
1651
|
-
var
|
|
1651
|
+
var tmp0_safe_receiver = tmp_1;
|
|
1652
1652
|
var tmp_2;
|
|
1653
|
-
if (
|
|
1653
|
+
if (tmp0_safe_receiver == null) {
|
|
1654
1654
|
tmp_2 = null;
|
|
1655
1655
|
} else {
|
|
1656
1656
|
// Inline function 'kotlin.let' call
|
|
1657
1657
|
// Inline function 'kotlin.contracts.contract' call
|
|
1658
1658
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toReference.<anonymous>' call
|
|
1659
|
-
tmp_2 = toMap_0(toReference_0(_this__u8e3s4, OpenApiV2Parser_instance,
|
|
1659
|
+
tmp_2 = toMap_0(toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, tmp0_safe_receiver, name));
|
|
1660
1660
|
}
|
|
1661
|
-
var
|
|
1662
|
-
tmp_0 =
|
|
1661
|
+
var tmp1_elvis_lhs = tmp_2;
|
|
1662
|
+
tmp_0 = tmp1_elvis_lhs == null ? new Any(false, true) : tmp1_elvis_lhs;
|
|
1663
1663
|
} else {
|
|
1664
1664
|
noWhenBranchMatchedException();
|
|
1665
1665
|
}
|
|
1666
1666
|
}
|
|
1667
1667
|
}
|
|
1668
1668
|
tmp = tmp_0;
|
|
1669
|
-
} else if (!(schema.
|
|
1670
|
-
tmp = new Custom(name, false, !(schema.
|
|
1669
|
+
} else if (!(schema.d1n_1 == null)) {
|
|
1670
|
+
tmp = new Custom(name, false, !(schema.i1n_1 == null));
|
|
1671
1671
|
} else {
|
|
1672
|
-
var type = schema.
|
|
1672
|
+
var type = schema.e1n_1;
|
|
1673
1673
|
var tmp_3;
|
|
1674
1674
|
switch (type == null ? -1 : type.q2_1) {
|
|
1675
1675
|
case 0:
|
|
1676
1676
|
case 2:
|
|
1677
1677
|
case 1:
|
|
1678
1678
|
case 3:
|
|
1679
|
-
tmp_3 = new Primitive(toPrimitive(type, $this), false, !(schema.
|
|
1679
|
+
tmp_3 = new Primitive(toPrimitive(type, $this), false, !(schema.i1n_1 == null));
|
|
1680
1680
|
break;
|
|
1681
1681
|
case -1:
|
|
1682
1682
|
case 5:
|
|
1683
1683
|
var tmp_4;
|
|
1684
|
-
var tmp_5 = schema.
|
|
1684
|
+
var tmp_5 = schema.i1n_1;
|
|
1685
1685
|
if (tmp_5 instanceof BooleanObject) {
|
|
1686
|
-
tmp_4 = new Any(false, !(schema.
|
|
1686
|
+
tmp_4 = new Any(false, !(schema.i1n_1 == null));
|
|
1687
1687
|
} else {
|
|
1688
|
-
tmp_4 = new Custom(name, false, !(schema.
|
|
1688
|
+
tmp_4 = new Custom(name, false, !(schema.i1n_1 == null));
|
|
1689
1689
|
}
|
|
1690
1690
|
|
|
1691
1691
|
tmp_3 = tmp_4;
|
|
1692
1692
|
break;
|
|
1693
1693
|
case 4:
|
|
1694
|
-
var items = schema.
|
|
1694
|
+
var items = schema.f1n_1;
|
|
1695
1695
|
var tmp_6;
|
|
1696
1696
|
if (items instanceof ReferenceObject) {
|
|
1697
1697
|
tmp_6 = toIterable(toReference(_this__u8e3s4, $this, items));
|
|
@@ -1734,28 +1734,28 @@
|
|
|
1734
1734
|
var tmp_0;
|
|
1735
1735
|
switch (element.q2_1) {
|
|
1736
1736
|
case 0:
|
|
1737
|
-
tmp_0 = _this__u8e3s4.
|
|
1737
|
+
tmp_0 = _this__u8e3s4.w1h_1;
|
|
1738
1738
|
break;
|
|
1739
1739
|
case 1:
|
|
1740
|
-
tmp_0 = _this__u8e3s4.
|
|
1740
|
+
tmp_0 = _this__u8e3s4.y1h_1;
|
|
1741
1741
|
break;
|
|
1742
1742
|
case 2:
|
|
1743
|
-
tmp_0 = _this__u8e3s4.
|
|
1743
|
+
tmp_0 = _this__u8e3s4.x1h_1;
|
|
1744
1744
|
break;
|
|
1745
1745
|
case 3:
|
|
1746
|
-
tmp_0 = _this__u8e3s4.
|
|
1746
|
+
tmp_0 = _this__u8e3s4.z1h_1;
|
|
1747
1747
|
break;
|
|
1748
1748
|
case 4:
|
|
1749
|
-
tmp_0 = _this__u8e3s4.
|
|
1749
|
+
tmp_0 = _this__u8e3s4.a1i_1;
|
|
1750
1750
|
break;
|
|
1751
1751
|
case 5:
|
|
1752
|
-
tmp_0 = _this__u8e3s4.
|
|
1752
|
+
tmp_0 = _this__u8e3s4.b1i_1;
|
|
1753
1753
|
break;
|
|
1754
1754
|
case 6:
|
|
1755
|
-
tmp_0 = _this__u8e3s4.
|
|
1755
|
+
tmp_0 = _this__u8e3s4.c1i_1;
|
|
1756
1756
|
break;
|
|
1757
1757
|
case 7:
|
|
1758
|
-
tmp_0 = _this__u8e3s4.
|
|
1758
|
+
tmp_0 = _this__u8e3s4.d1i_1;
|
|
1759
1759
|
break;
|
|
1760
1760
|
default:
|
|
1761
1761
|
noWhenBranchMatchedException();
|
|
@@ -1764,10 +1764,10 @@
|
|
|
1764
1764
|
var tmp$ret$0 = tmp_0;
|
|
1765
1765
|
result.m2(element, tmp$ret$0);
|
|
1766
1766
|
}
|
|
1767
|
-
return tmp.
|
|
1767
|
+
return tmp.c2a(result);
|
|
1768
1768
|
}
|
|
1769
1769
|
function getReference(_this__u8e3s4, $this) {
|
|
1770
|
-
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
1770
|
+
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.n1n_1), ['/']).k(2);
|
|
1771
1771
|
}
|
|
1772
1772
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
1773
1773
|
var tmp;
|
|
@@ -1791,47 +1791,47 @@
|
|
|
1791
1791
|
return tmp;
|
|
1792
1792
|
}
|
|
1793
1793
|
function toField(_this__u8e3s4, $this, header, identifier) {
|
|
1794
|
-
var tmp = Companion_instance.
|
|
1794
|
+
var tmp = Companion_instance.b27(identifier);
|
|
1795
1795
|
var tmp_0;
|
|
1796
|
-
if (header.
|
|
1797
|
-
var
|
|
1796
|
+
if (header.g1o_1 === 'array') {
|
|
1797
|
+
var tmp1_safe_receiver = header.i1o_1;
|
|
1798
1798
|
var tmp_1;
|
|
1799
|
-
if (
|
|
1799
|
+
if (tmp1_safe_receiver == null) {
|
|
1800
1800
|
tmp_1 = null;
|
|
1801
1801
|
} else {
|
|
1802
1802
|
// Inline function 'kotlin.let' call
|
|
1803
1803
|
// Inline function 'kotlin.contracts.contract' call
|
|
1804
1804
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>' call
|
|
1805
|
-
tmp_1 = resolve(_this__u8e3s4, OpenApiV2Parser_instance,
|
|
1805
|
+
tmp_1 = resolve(_this__u8e3s4, OpenApiV2Parser_instance, tmp1_safe_receiver);
|
|
1806
1806
|
}
|
|
1807
|
-
var
|
|
1807
|
+
var tmp2_safe_receiver = tmp_1;
|
|
1808
1808
|
var tmp_2;
|
|
1809
|
-
if (
|
|
1809
|
+
if (tmp2_safe_receiver == null) {
|
|
1810
1810
|
tmp_2 = null;
|
|
1811
1811
|
} else {
|
|
1812
1812
|
// Inline function 'kotlin.let' call
|
|
1813
1813
|
// Inline function 'kotlin.contracts.contract' call
|
|
1814
1814
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>' call
|
|
1815
|
-
tmp_2 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance,
|
|
1815
|
+
tmp_2 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, tmp2_safe_receiver, identifier);
|
|
1816
1816
|
}
|
|
1817
|
-
var
|
|
1817
|
+
var tmp3_elvis_lhs = tmp_2;
|
|
1818
1818
|
var tmp_3;
|
|
1819
|
-
if (
|
|
1819
|
+
if (tmp3_elvis_lhs == null) {
|
|
1820
1820
|
var message = 'Item cannot be null';
|
|
1821
1821
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1822
1822
|
} else {
|
|
1823
|
-
tmp_3 =
|
|
1823
|
+
tmp_3 = tmp3_elvis_lhs;
|
|
1824
1824
|
}
|
|
1825
1825
|
tmp_0 = tmp_3;
|
|
1826
1826
|
} else {
|
|
1827
|
-
tmp_0 = new Primitive(mapType(header.
|
|
1827
|
+
tmp_0 = new Primitive(mapType(header.g1o_1, $this), false, false);
|
|
1828
1828
|
}
|
|
1829
1829
|
return new Field(tmp, tmp_0, true);
|
|
1830
1830
|
}
|
|
1831
1831
|
function toField_0(_this__u8e3s4, $this, schema, name) {
|
|
1832
1832
|
// Inline function 'kotlin.collections.map' call
|
|
1833
1833
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1834
|
-
var tmp0_elvis_lhs = schema.
|
|
1834
|
+
var tmp0_elvis_lhs = schema.h1n_1;
|
|
1835
1835
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1836
1836
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1837
1837
|
var destination = ArrayList_init_$Create$_0(this_0.j());
|
|
@@ -1846,18 +1846,18 @@
|
|
|
1846
1846
|
var value = item.b1();
|
|
1847
1847
|
var tmp;
|
|
1848
1848
|
if (value instanceof SchemaObject) {
|
|
1849
|
-
var tmp_0 = Companion_instance.
|
|
1850
|
-
var tmp_1 = !(value.
|
|
1851
|
-
var
|
|
1852
|
-
var
|
|
1853
|
-
tmp = new Field(tmp_0, tmp_1, !(
|
|
1849
|
+
var tmp_0 = Companion_instance.b27(key);
|
|
1850
|
+
var tmp_1 = !(value.d1n_1 == null) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_instance.b2a([name, key])) : equals(value.e1n_1, Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_instance.b2a([name, key, 'Array'])) : toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_instance.b2a([name, key]));
|
|
1851
|
+
var tmp1_safe_receiver = schema.c1n_1;
|
|
1852
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p1(key);
|
|
1853
|
+
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
1854
1854
|
} else {
|
|
1855
1855
|
if (value instanceof ReferenceObject) {
|
|
1856
|
-
var tmp_2 = Companion_instance.
|
|
1856
|
+
var tmp_2 = Companion_instance.b27(key);
|
|
1857
1857
|
var tmp_3 = toReference(_this__u8e3s4, OpenApiV2Parser_instance, value);
|
|
1858
|
-
var
|
|
1859
|
-
var
|
|
1860
|
-
tmp = new Field(tmp_2, tmp_3, !(
|
|
1858
|
+
var tmp3_safe_receiver = schema.c1n_1;
|
|
1859
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.p1(key);
|
|
1860
|
+
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
1861
1861
|
} else {
|
|
1862
1862
|
noWhenBranchMatchedException();
|
|
1863
1863
|
}
|
|
@@ -1874,10 +1874,10 @@
|
|
|
1874
1874
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>' call
|
|
1875
1875
|
var it = resolve_3(_this__u8e3s4, $this, parameter);
|
|
1876
1876
|
var tmp;
|
|
1877
|
-
if (!(parameter.
|
|
1878
|
-
tmp = new Custom(Common_instance.
|
|
1877
|
+
if (!(parameter.f1j_1 == null)) {
|
|
1878
|
+
tmp = new Custom(Common_instance.b2a([name, 'Parameter', it.k1i_1]), false);
|
|
1879
1879
|
} else {
|
|
1880
|
-
var type = it.
|
|
1880
|
+
var type = it.p1i_1;
|
|
1881
1881
|
var tmp_0;
|
|
1882
1882
|
switch (type == null ? -1 : type.q2_1) {
|
|
1883
1883
|
case 0:
|
|
@@ -1894,37 +1894,37 @@
|
|
|
1894
1894
|
tmp_0 = new Primitive(primitive, false);
|
|
1895
1895
|
break;
|
|
1896
1896
|
case 4:
|
|
1897
|
-
var
|
|
1897
|
+
var tmp0_safe_receiver = it.q1i_1;
|
|
1898
1898
|
var tmp_1;
|
|
1899
|
-
if (
|
|
1899
|
+
if (tmp0_safe_receiver == null) {
|
|
1900
1900
|
tmp_1 = null;
|
|
1901
1901
|
} else {
|
|
1902
1902
|
// Inline function 'kotlin.let' call
|
|
1903
1903
|
// Inline function 'kotlin.contracts.contract' call
|
|
1904
1904
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>.<anonymous>' call
|
|
1905
|
-
tmp_1 = resolve(_this__u8e3s4, OpenApiV2Parser_instance,
|
|
1905
|
+
tmp_1 = resolve(_this__u8e3s4, OpenApiV2Parser_instance, tmp0_safe_receiver);
|
|
1906
1906
|
}
|
|
1907
1907
|
|
|
1908
|
-
var
|
|
1909
|
-
var
|
|
1910
|
-
var
|
|
1908
|
+
var tmp1_safe_receiver = tmp_1;
|
|
1909
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.e1n_1;
|
|
1910
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, OpenApiV2Parser_instance);
|
|
1911
1911
|
var tmp_2;
|
|
1912
|
-
if (
|
|
1912
|
+
if (tmp3_safe_receiver == null) {
|
|
1913
1913
|
tmp_2 = null;
|
|
1914
1914
|
} else {
|
|
1915
1915
|
// Inline function 'kotlin.let' call
|
|
1916
1916
|
// Inline function 'kotlin.contracts.contract' call
|
|
1917
1917
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>.<anonymous>' call
|
|
1918
|
-
tmp_2 = new Primitive(
|
|
1918
|
+
tmp_2 = new Primitive(tmp3_safe_receiver, true);
|
|
1919
1919
|
}
|
|
1920
1920
|
|
|
1921
|
-
var
|
|
1921
|
+
var tmp4_elvis_lhs = tmp_2;
|
|
1922
1922
|
var tmp_3;
|
|
1923
|
-
if (
|
|
1923
|
+
if (tmp4_elvis_lhs == null) {
|
|
1924
1924
|
var reason = 'Not yet implemented';
|
|
1925
1925
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
1926
1926
|
} else {
|
|
1927
|
-
tmp_3 =
|
|
1927
|
+
tmp_3 = tmp4_elvis_lhs;
|
|
1928
1928
|
}
|
|
1929
1929
|
|
|
1930
1930
|
tmp_0 = tmp_3;
|
|
@@ -1947,9 +1947,9 @@
|
|
|
1947
1947
|
// Inline function 'kotlin.contracts.contract' call
|
|
1948
1948
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>' call
|
|
1949
1949
|
var it_0 = tmp;
|
|
1950
|
-
var tmp_4 = Companion_instance.
|
|
1951
|
-
var
|
|
1952
|
-
return new Field(tmp_4, it_0, !(
|
|
1950
|
+
var tmp_4 = Companion_instance.b27(parameter.k1i_1);
|
|
1951
|
+
var tmp0_elvis_lhs = parameter.n1i_1;
|
|
1952
|
+
return new Field(tmp_4, it_0, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
1953
1953
|
}
|
|
1954
1954
|
function toSegments(_this__u8e3s4, $this, parameters) {
|
|
1955
1955
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1988,41 +1988,41 @@
|
|
|
1988
1988
|
while (tmp0_iterator_0.h()) {
|
|
1989
1989
|
var element = tmp0_iterator_0.i();
|
|
1990
1990
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toSegments.<anonymous>.<anonymous>' call
|
|
1991
|
-
if (element.
|
|
1991
|
+
if (element.k1i_1 === param) {
|
|
1992
1992
|
tmp$ret$4 = element;
|
|
1993
1993
|
break $l$block;
|
|
1994
1994
|
}
|
|
1995
1995
|
}
|
|
1996
1996
|
tmp$ret$4 = null;
|
|
1997
1997
|
}
|
|
1998
|
-
var
|
|
1998
|
+
var tmp0_safe_receiver = tmp$ret$4;
|
|
1999
1999
|
var tmp_2;
|
|
2000
|
-
if (
|
|
2000
|
+
if (tmp0_safe_receiver == null) {
|
|
2001
2001
|
tmp_2 = null;
|
|
2002
2002
|
} else {
|
|
2003
2003
|
// Inline function 'kotlin.let' call
|
|
2004
2004
|
// Inline function 'kotlin.contracts.contract' call
|
|
2005
2005
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toSegments.<anonymous>.<anonymous>' call
|
|
2006
|
-
var
|
|
2007
|
-
tmp_2 =
|
|
2006
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver.p1i_1;
|
|
2007
|
+
tmp_2 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, OpenApiV2Parser_instance);
|
|
2008
2008
|
}
|
|
2009
|
-
var
|
|
2009
|
+
var tmp1_safe_receiver = tmp_2;
|
|
2010
2010
|
var tmp_3;
|
|
2011
|
-
if (
|
|
2011
|
+
if (tmp1_safe_receiver == null) {
|
|
2012
2012
|
tmp_3 = null;
|
|
2013
2013
|
} else {
|
|
2014
2014
|
// Inline function 'kotlin.let' call
|
|
2015
2015
|
// Inline function 'kotlin.contracts.contract' call
|
|
2016
2016
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toSegments.<anonymous>.<anonymous>' call
|
|
2017
|
-
tmp_3 = new Param(Companion_instance.
|
|
2017
|
+
tmp_3 = new Param(Companion_instance.b27(param), new Primitive(tmp1_safe_receiver, false));
|
|
2018
2018
|
}
|
|
2019
|
-
var
|
|
2019
|
+
var tmp2_elvis_lhs = tmp_3;
|
|
2020
2020
|
var tmp_4;
|
|
2021
|
-
if (
|
|
2021
|
+
if (tmp2_elvis_lhs == null) {
|
|
2022
2022
|
var message = ' Declared path parameter ' + param + ' needs to be defined as a path parameter in path or operation level';
|
|
2023
2023
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2024
2024
|
} else {
|
|
2025
|
-
tmp_4 =
|
|
2025
|
+
tmp_4 = tmp2_elvis_lhs;
|
|
2026
2026
|
}
|
|
2027
2027
|
tmp_1 = tmp_4;
|
|
2028
2028
|
} else {
|
|
@@ -2037,15 +2037,15 @@
|
|
|
2037
2037
|
return charSequenceGet(_this__u8e3s4, 0) === _Char___init__impl__6a9atx(123) && charSequenceGet(_this__u8e3s4, _this__u8e3s4.length - 1 | 0) === _Char___init__impl__6a9atx(125);
|
|
2038
2038
|
}
|
|
2039
2039
|
function toName(_this__u8e3s4, $this) {
|
|
2040
|
-
var
|
|
2040
|
+
var tmp0_safe_receiver = _this__u8e3s4.e1l_1;
|
|
2041
2041
|
var tmp;
|
|
2042
|
-
if (
|
|
2042
|
+
if (tmp0_safe_receiver == null) {
|
|
2043
2043
|
tmp = null;
|
|
2044
2044
|
} else {
|
|
2045
2045
|
// Inline function 'kotlin.let' call
|
|
2046
2046
|
// Inline function 'kotlin.contracts.contract' call
|
|
2047
2047
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toName.<anonymous>' call
|
|
2048
|
-
tmp = Common_instance.
|
|
2048
|
+
tmp = Common_instance.b2a([tmp0_safe_receiver]);
|
|
2049
2049
|
}
|
|
2050
2050
|
return tmp;
|
|
2051
2051
|
}
|
|
@@ -2067,21 +2067,21 @@
|
|
|
2067
2067
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenApiV2Parser$toName$lambda);
|
|
2068
2068
|
}
|
|
2069
2069
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
2070
|
-
this.
|
|
2071
|
-
this.
|
|
2072
|
-
this.
|
|
2073
|
-
this.
|
|
2074
|
-
this.
|
|
2070
|
+
this.d2a_1 = path;
|
|
2071
|
+
this.e2a_1 = pathItem;
|
|
2072
|
+
this.f2a_1 = method;
|
|
2073
|
+
this.g2a_1 = operation;
|
|
2074
|
+
this.h2a_1 = type;
|
|
2075
2075
|
}
|
|
2076
2076
|
protoOf(FlattenRequest).toString = function () {
|
|
2077
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
2077
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.d2a_1) + ', pathItem=' + this.e2a_1.toString() + ', method=' + this.f2a_1.toString() + ', operation=' + this.g2a_1.toString() + ', type=' + this.h2a_1 + ')';
|
|
2078
2078
|
};
|
|
2079
2079
|
protoOf(FlattenRequest).hashCode = function () {
|
|
2080
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2081
|
-
result = imul(result, 31) + this.
|
|
2082
|
-
result = imul(result, 31) + this.
|
|
2083
|
-
result = imul(result, 31) + this.
|
|
2084
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2080
|
+
var result = Path__hashCode_impl_go73kd(this.d2a_1);
|
|
2081
|
+
result = imul(result, 31) + this.e2a_1.hashCode() | 0;
|
|
2082
|
+
result = imul(result, 31) + this.f2a_1.hashCode() | 0;
|
|
2083
|
+
result = imul(result, 31) + this.g2a_1.hashCode() | 0;
|
|
2084
|
+
result = imul(result, 31) + getStringHashCode(this.h2a_1) | 0;
|
|
2085
2085
|
return result;
|
|
2086
2086
|
};
|
|
2087
2087
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -2090,15 +2090,15 @@
|
|
|
2090
2090
|
if (!(other instanceof FlattenRequest))
|
|
2091
2091
|
return false;
|
|
2092
2092
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
2093
|
-
if (!(this.
|
|
2093
|
+
if (!(this.d2a_1 === tmp0_other_with_cast.d2a_1))
|
|
2094
2094
|
return false;
|
|
2095
|
-
if (!this.
|
|
2095
|
+
if (!this.e2a_1.equals(tmp0_other_with_cast.e2a_1))
|
|
2096
2096
|
return false;
|
|
2097
|
-
if (!this.
|
|
2097
|
+
if (!this.f2a_1.equals(tmp0_other_with_cast.f2a_1))
|
|
2098
2098
|
return false;
|
|
2099
|
-
if (!this.
|
|
2099
|
+
if (!this.g2a_1.equals(tmp0_other_with_cast.g2a_1))
|
|
2100
2100
|
return false;
|
|
2101
|
-
if (!(this.
|
|
2101
|
+
if (!(this.h2a_1 === tmp0_other_with_cast.h2a_1))
|
|
2102
2102
|
return false;
|
|
2103
2103
|
return true;
|
|
2104
2104
|
};
|
|
@@ -2106,7 +2106,7 @@
|
|
|
2106
2106
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2107
2107
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2108
2108
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2109
|
-
var this_0 = _this__u8e3s4.
|
|
2109
|
+
var this_0 = _this__u8e3s4.t1g_1;
|
|
2110
2110
|
var destination = ArrayList_init_$Create$();
|
|
2111
2111
|
// Inline function 'kotlin.collections.iterator' call
|
|
2112
2112
|
var tmp0_iterator = this_0.z().g();
|
|
@@ -2114,7 +2114,7 @@
|
|
|
2114
2114
|
var element = tmp0_iterator.i();
|
|
2115
2115
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatMapRequests.<anonymous>' call
|
|
2116
2116
|
// Inline function 'kotlin.collections.component1' call
|
|
2117
|
-
var path = element.a1().
|
|
2117
|
+
var path = element.a1().p1h_1;
|
|
2118
2118
|
// Inline function 'kotlin.collections.component2' call
|
|
2119
2119
|
var pathItem = element.b1();
|
|
2120
2120
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -2131,8 +2131,8 @@
|
|
|
2131
2131
|
// Inline function 'kotlin.collections.component2' call
|
|
2132
2132
|
var operation = element_0.b1();
|
|
2133
2133
|
// Inline function 'kotlin.collections.map' call
|
|
2134
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2135
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? operation.
|
|
2134
|
+
var tmp0_elvis_lhs = _this__u8e3s4.r1g_1;
|
|
2135
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? operation.f1l_1 : tmp0_elvis_lhs;
|
|
2136
2136
|
var this_2 = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
2137
2137
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2138
2138
|
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
|
|
@@ -2160,25 +2160,25 @@
|
|
|
2160
2160
|
return destination_2;
|
|
2161
2161
|
}
|
|
2162
2162
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
2163
|
-
this.
|
|
2164
|
-
this.
|
|
2165
|
-
this.
|
|
2166
|
-
this.
|
|
2167
|
-
this.
|
|
2168
|
-
this.
|
|
2169
|
-
this.
|
|
2163
|
+
this.i2a_1 = path;
|
|
2164
|
+
this.j2a_1 = pathItem;
|
|
2165
|
+
this.k2a_1 = method;
|
|
2166
|
+
this.l2a_1 = operation;
|
|
2167
|
+
this.m2a_1 = statusCode;
|
|
2168
|
+
this.n2a_1 = response;
|
|
2169
|
+
this.o2a_1 = type;
|
|
2170
2170
|
}
|
|
2171
2171
|
protoOf(FlattenResponse).toString = function () {
|
|
2172
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
2172
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.i2a_1) + ', pathItem=' + this.j2a_1.toString() + ', method=' + this.k2a_1.toString() + ', operation=' + this.l2a_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy(this.m2a_1) + ', response=' + toString(this.n2a_1) + ', type=' + this.o2a_1 + ')';
|
|
2173
2173
|
};
|
|
2174
2174
|
protoOf(FlattenResponse).hashCode = function () {
|
|
2175
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2176
|
-
result = imul(result, 31) + this.
|
|
2177
|
-
result = imul(result, 31) + this.
|
|
2178
|
-
result = imul(result, 31) + this.
|
|
2179
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
2180
|
-
result = imul(result, 31) + hashCode(this.
|
|
2181
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2175
|
+
var result = Path__hashCode_impl_go73kd(this.i2a_1);
|
|
2176
|
+
result = imul(result, 31) + this.j2a_1.hashCode() | 0;
|
|
2177
|
+
result = imul(result, 31) + this.k2a_1.hashCode() | 0;
|
|
2178
|
+
result = imul(result, 31) + this.l2a_1.hashCode() | 0;
|
|
2179
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.m2a_1) | 0;
|
|
2180
|
+
result = imul(result, 31) + hashCode(this.n2a_1) | 0;
|
|
2181
|
+
result = imul(result, 31) + getStringHashCode(this.o2a_1) | 0;
|
|
2182
2182
|
return result;
|
|
2183
2183
|
};
|
|
2184
2184
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -2187,19 +2187,19 @@
|
|
|
2187
2187
|
if (!(other instanceof FlattenResponse))
|
|
2188
2188
|
return false;
|
|
2189
2189
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
2190
|
-
if (!(this.
|
|
2190
|
+
if (!(this.i2a_1 === tmp0_other_with_cast.i2a_1))
|
|
2191
2191
|
return false;
|
|
2192
|
-
if (!this.
|
|
2192
|
+
if (!this.j2a_1.equals(tmp0_other_with_cast.j2a_1))
|
|
2193
2193
|
return false;
|
|
2194
|
-
if (!this.
|
|
2194
|
+
if (!this.k2a_1.equals(tmp0_other_with_cast.k2a_1))
|
|
2195
2195
|
return false;
|
|
2196
|
-
if (!this.
|
|
2196
|
+
if (!this.l2a_1.equals(tmp0_other_with_cast.l2a_1))
|
|
2197
2197
|
return false;
|
|
2198
|
-
if (!(this.
|
|
2198
|
+
if (!(this.m2a_1 === tmp0_other_with_cast.m2a_1))
|
|
2199
2199
|
return false;
|
|
2200
|
-
if (!equals(this.
|
|
2200
|
+
if (!equals(this.n2a_1, tmp0_other_with_cast.n2a_1))
|
|
2201
2201
|
return false;
|
|
2202
|
-
if (!(this.
|
|
2202
|
+
if (!(this.o2a_1 === tmp0_other_with_cast.o2a_1))
|
|
2203
2203
|
return false;
|
|
2204
2204
|
return true;
|
|
2205
2205
|
};
|
|
@@ -2207,7 +2207,7 @@
|
|
|
2207
2207
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2208
2208
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2209
2209
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2210
|
-
var this_0 = _this__u8e3s4.
|
|
2210
|
+
var this_0 = _this__u8e3s4.t1g_1;
|
|
2211
2211
|
var destination = ArrayList_init_$Create$();
|
|
2212
2212
|
// Inline function 'kotlin.collections.iterator' call
|
|
2213
2213
|
var tmp0_iterator = this_0.z().g();
|
|
@@ -2215,7 +2215,7 @@
|
|
|
2215
2215
|
var element = tmp0_iterator.i();
|
|
2216
2216
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatMapResponses.<anonymous>' call
|
|
2217
2217
|
// Inline function 'kotlin.collections.component1' call
|
|
2218
|
-
var path = element.a1().
|
|
2218
|
+
var path = element.a1().p1h_1;
|
|
2219
2219
|
// Inline function 'kotlin.collections.component2' call
|
|
2220
2220
|
var pathItem = element.b1();
|
|
2221
2221
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -2233,7 +2233,7 @@
|
|
|
2233
2233
|
var operation = element_0.b1();
|
|
2234
2234
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2235
2235
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2236
|
-
var tmp0_elvis_lhs = operation.
|
|
2236
|
+
var tmp0_elvis_lhs = operation.i1l_1;
|
|
2237
2237
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2238
2238
|
var this_2 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2239
2239
|
var destination_1 = ArrayList_init_$Create$();
|
|
@@ -2243,12 +2243,12 @@
|
|
|
2243
2243
|
var element_1 = tmp0_iterator_1.i();
|
|
2244
2244
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
2245
2245
|
// Inline function 'kotlin.collections.component1' call
|
|
2246
|
-
var statusCode = element_1.a1().
|
|
2246
|
+
var statusCode = element_1.a1().s1n_1;
|
|
2247
2247
|
// Inline function 'kotlin.collections.component2' call
|
|
2248
2248
|
var response = element_1.b1();
|
|
2249
2249
|
// Inline function 'kotlin.collections.map' call
|
|
2250
|
-
var tmp0_elvis_lhs_0 = _this__u8e3s4.
|
|
2251
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.
|
|
2250
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.s1g_1;
|
|
2251
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.g1l_1 : tmp0_elvis_lhs_0;
|
|
2252
2252
|
var this_3 = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
2253
2253
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2254
2254
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_3, 10));
|
|
@@ -2280,16 +2280,16 @@
|
|
|
2280
2280
|
}
|
|
2281
2281
|
function OpenApiV2Parser$parse$lambda($ignoreUnknown) {
|
|
2282
2282
|
return function ($this$Json) {
|
|
2283
|
-
$this$Json.
|
|
2284
|
-
$this$Json.
|
|
2283
|
+
$this$Json.x15_1 = true;
|
|
2284
|
+
$this$Json.v15_1 = $ignoreUnknown;
|
|
2285
2285
|
return Unit_instance;
|
|
2286
2286
|
};
|
|
2287
2287
|
}
|
|
2288
2288
|
function OpenApiV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
2289
2289
|
return function ($this$flatMapRequests) {
|
|
2290
|
-
var parameters = plus(resolveParameters_0($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.
|
|
2291
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2292
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2290
|
+
var parameters = plus(resolveParameters_0($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.e2a_1), resolveParameters($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.g2a_1));
|
|
2291
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.g2a_1, OpenApiV2Parser_instance);
|
|
2292
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.d2a_1, OpenApiV2Parser_instance) + $this$flatMapRequests.f2a_1.p2_1 : tmp0_elvis_lhs;
|
|
2293
2293
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2294
2294
|
// Inline function 'kotlin.collections.filter' call
|
|
2295
2295
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -2298,7 +2298,7 @@
|
|
|
2298
2298
|
while (tmp0_iterator.h()) {
|
|
2299
2299
|
var element = tmp0_iterator.i();
|
|
2300
2300
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseParameters.<anonymous>.<anonymous>' call
|
|
2301
|
-
if (!element.
|
|
2301
|
+
if (!element.l1i_1.equals(ParameterLocation_BODY_getInstance())) {
|
|
2302
2302
|
destination.e(element);
|
|
2303
2303
|
}
|
|
2304
2304
|
}
|
|
@@ -2308,18 +2308,18 @@
|
|
|
2308
2308
|
while (tmp0_iterator_0.h()) {
|
|
2309
2309
|
var element_0 = tmp0_iterator_0.i();
|
|
2310
2310
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseParameters.<anonymous>.<anonymous>' call
|
|
2311
|
-
var
|
|
2311
|
+
var tmp0_safe_receiver = element_0.o1i_1;
|
|
2312
2312
|
var tmp;
|
|
2313
|
-
if (
|
|
2313
|
+
if (tmp0_safe_receiver == null) {
|
|
2314
2314
|
tmp = null;
|
|
2315
2315
|
} else {
|
|
2316
2316
|
// Inline function 'kotlin.let' call
|
|
2317
2317
|
// Inline function 'kotlin.contracts.contract' call
|
|
2318
2318
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
2319
|
-
tmp = flatten_0($this_parseParameters, OpenApiV2Parser_instance,
|
|
2319
|
+
tmp = flatten_0($this_parseParameters, OpenApiV2Parser_instance, tmp0_safe_receiver, Common_instance.b2a([name, 'Parameter', element_0.k1i_1]));
|
|
2320
2320
|
}
|
|
2321
|
-
var
|
|
2322
|
-
var list =
|
|
2321
|
+
var tmp1_elvis_lhs = tmp;
|
|
2322
|
+
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2323
2323
|
addAll(destination_0, list);
|
|
2324
2324
|
}
|
|
2325
2325
|
return destination_0;
|
|
@@ -2327,9 +2327,9 @@
|
|
|
2327
2327
|
}
|
|
2328
2328
|
function OpenApiV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
2329
2329
|
return function ($this$flatMapRequests) {
|
|
2330
|
-
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.
|
|
2331
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2332
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2330
|
+
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.e2a_1), resolveParameters($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.g2a_1));
|
|
2331
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.g2a_1, OpenApiV2Parser_instance);
|
|
2332
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.d2a_1, OpenApiV2Parser_instance) + $this$flatMapRequests.f2a_1.p2_1 : tmp0_elvis_lhs;
|
|
2333
2333
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2334
2334
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2335
2335
|
var destination = ArrayList_init_$Create$();
|
|
@@ -2338,17 +2338,17 @@
|
|
|
2338
2338
|
var element = tmp0_iterator.i();
|
|
2339
2339
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
2340
2340
|
var tmp;
|
|
2341
|
-
if (!(element.
|
|
2342
|
-
var tmp_0 = Companion_instance.
|
|
2341
|
+
if (!(element.f1j_1 == null)) {
|
|
2342
|
+
var tmp_0 = Companion_instance.b27(Common_instance.b2a([name, 'Parameter', element.k1i_1]));
|
|
2343
2343
|
// Inline function 'kotlin.collections.map' call
|
|
2344
|
-
var this_0 = ensureNotNull(element.
|
|
2344
|
+
var this_0 = ensureNotNull(element.f1j_1);
|
|
2345
2345
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2346
2346
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2347
2347
|
var tmp0_iterator_0 = this_0.g();
|
|
2348
2348
|
while (tmp0_iterator_0.h()) {
|
|
2349
2349
|
var item = tmp0_iterator_0.i();
|
|
2350
2350
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
2351
|
-
var tmp$ret$0 = item.
|
|
2351
|
+
var tmp$ret$0 = item.f17();
|
|
2352
2352
|
destination_0.e(tmp$ret$0);
|
|
2353
2353
|
}
|
|
2354
2354
|
tmp = listOf(new Enum(null, tmp_0, toSet(destination_0)));
|
|
@@ -2359,15 +2359,15 @@
|
|
|
2359
2359
|
addAll(destination, list);
|
|
2360
2360
|
}
|
|
2361
2361
|
var enums = destination;
|
|
2362
|
-
var
|
|
2362
|
+
var tmp1_safe_receiver = $this$flatMapRequests.g2a_1.h1l_1;
|
|
2363
2363
|
var tmp_1;
|
|
2364
|
-
if (
|
|
2364
|
+
if (tmp1_safe_receiver == null) {
|
|
2365
2365
|
tmp_1 = null;
|
|
2366
2366
|
} else {
|
|
2367
2367
|
// Inline function 'kotlin.collections.map' call
|
|
2368
2368
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2369
|
-
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(
|
|
2370
|
-
var tmp0_iterator_1 =
|
|
2369
|
+
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_safe_receiver, 10));
|
|
2370
|
+
var tmp0_iterator_1 = tmp1_safe_receiver.g();
|
|
2371
2371
|
while (tmp0_iterator_1.h()) {
|
|
2372
2372
|
var item_0 = tmp0_iterator_1.i();
|
|
2373
2373
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
@@ -2376,58 +2376,58 @@
|
|
|
2376
2376
|
}
|
|
2377
2377
|
tmp_1 = destination_1;
|
|
2378
2378
|
}
|
|
2379
|
-
var
|
|
2379
|
+
var tmp2_safe_receiver = tmp_1;
|
|
2380
2380
|
var tmp_2;
|
|
2381
|
-
if (
|
|
2381
|
+
if (tmp2_safe_receiver == null) {
|
|
2382
2382
|
tmp_2 = null;
|
|
2383
2383
|
} else {
|
|
2384
2384
|
// Inline function 'kotlin.collections.filter' call
|
|
2385
2385
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2386
2386
|
var destination_2 = ArrayList_init_$Create$();
|
|
2387
|
-
var tmp0_iterator_2 =
|
|
2387
|
+
var tmp0_iterator_2 = tmp2_safe_receiver.g();
|
|
2388
2388
|
while (tmp0_iterator_2.h()) {
|
|
2389
2389
|
var element_0 = tmp0_iterator_2.i();
|
|
2390
2390
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
2391
|
-
if (element_0.
|
|
2391
|
+
if (element_0.l1i_1.equals(ParameterLocation_BODY_getInstance())) {
|
|
2392
2392
|
destination_2.e(element_0);
|
|
2393
2393
|
}
|
|
2394
2394
|
}
|
|
2395
2395
|
tmp_2 = destination_2;
|
|
2396
2396
|
}
|
|
2397
|
-
var
|
|
2397
|
+
var tmp3_safe_receiver = tmp_2;
|
|
2398
2398
|
var tmp_3;
|
|
2399
|
-
if (
|
|
2399
|
+
if (tmp3_safe_receiver == null) {
|
|
2400
2400
|
tmp_3 = null;
|
|
2401
2401
|
} else {
|
|
2402
2402
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2403
2403
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2404
2404
|
var destination_3 = ArrayList_init_$Create$();
|
|
2405
|
-
var tmp0_iterator_3 =
|
|
2405
|
+
var tmp0_iterator_3 = tmp3_safe_receiver.g();
|
|
2406
2406
|
while (tmp0_iterator_3.h()) {
|
|
2407
2407
|
var element_1 = tmp0_iterator_3.i();
|
|
2408
2408
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
2409
|
-
var schema = element_1.
|
|
2409
|
+
var schema = element_1.o1i_1;
|
|
2410
2410
|
var tmp_4;
|
|
2411
2411
|
if (schema instanceof SchemaObject) {
|
|
2412
|
-
var
|
|
2412
|
+
var tmp0_subject = schema.e1n_1;
|
|
2413
2413
|
var tmp_5;
|
|
2414
|
-
switch (
|
|
2414
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.q2_1) {
|
|
2415
2415
|
case -1:
|
|
2416
2416
|
case 5:
|
|
2417
|
-
tmp_5 = flatten($this_parseRequestBody, OpenApiV2Parser_instance, schema, Common_instance.
|
|
2417
|
+
tmp_5 = flatten($this_parseRequestBody, OpenApiV2Parser_instance, schema, Common_instance.b2a([name, 'RequestBody']));
|
|
2418
2418
|
break;
|
|
2419
2419
|
case 4:
|
|
2420
2420
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2421
2421
|
|
|
2422
|
-
var
|
|
2422
|
+
var tmp1_safe_receiver_0 = schema.f1n_1;
|
|
2423
2423
|
var tmp_6;
|
|
2424
|
-
if (
|
|
2424
|
+
if (tmp1_safe_receiver_0 == null) {
|
|
2425
2425
|
tmp_6 = null;
|
|
2426
2426
|
} else {
|
|
2427
2427
|
// Inline function 'kotlin.let' call
|
|
2428
2428
|
// Inline function 'kotlin.contracts.contract' call
|
|
2429
2429
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
2430
|
-
tmp_6 = flatten_0($this_parseRequestBody, OpenApiV2Parser_instance,
|
|
2430
|
+
tmp_6 = flatten_0($this_parseRequestBody, OpenApiV2Parser_instance, tmp1_safe_receiver_0, Common_instance.b2a([name, 'RequestBody']));
|
|
2431
2431
|
}
|
|
2432
2432
|
|
|
2433
2433
|
var tmp0_elvis_lhs_0 = tmp_6;
|
|
@@ -2446,37 +2446,37 @@
|
|
|
2446
2446
|
}
|
|
2447
2447
|
tmp_3 = destination_3;
|
|
2448
2448
|
}
|
|
2449
|
-
var
|
|
2450
|
-
var types =
|
|
2449
|
+
var tmp4_elvis_lhs = tmp_3;
|
|
2450
|
+
var types = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
2451
2451
|
return plus(enums, types);
|
|
2452
2452
|
};
|
|
2453
2453
|
}
|
|
2454
2454
|
function OpenApiV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
2455
2455
|
return function ($this$flatMapResponses) {
|
|
2456
|
-
var schema = resolve_1($this_parseResponseBody, OpenApiV2Parser_instance, $this$flatMapResponses.
|
|
2457
|
-
var tmp0_elvis_lhs = toName($this$flatMapResponses.
|
|
2458
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
2456
|
+
var schema = resolve_1($this_parseResponseBody, OpenApiV2Parser_instance, $this$flatMapResponses.n2a_1).m1j_1;
|
|
2457
|
+
var tmp0_elvis_lhs = toName($this$flatMapResponses.l2a_1, OpenApiV2Parser_instance);
|
|
2458
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.i2a_1, OpenApiV2Parser_instance) + $this$flatMapResponses.k2a_1.p2_1 : tmp0_elvis_lhs;
|
|
2459
2459
|
var tmp;
|
|
2460
2460
|
if (schema instanceof SchemaObject) {
|
|
2461
|
-
var
|
|
2461
|
+
var tmp2_subject = schema.e1n_1;
|
|
2462
2462
|
var tmp_0;
|
|
2463
|
-
switch (
|
|
2463
|
+
switch (tmp2_subject == null ? -1 : tmp2_subject.q2_1) {
|
|
2464
2464
|
case -1:
|
|
2465
2465
|
case 5:
|
|
2466
|
-
tmp_0 = flatten($this_parseResponseBody, OpenApiV2Parser_instance, schema, Common_instance.
|
|
2466
|
+
tmp_0 = flatten($this_parseResponseBody, OpenApiV2Parser_instance, schema, Common_instance.b2a([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.m2a_1), $this$flatMapResponses.o2a_1, 'ResponseBody']));
|
|
2467
2467
|
break;
|
|
2468
2468
|
case 4:
|
|
2469
2469
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2470
2470
|
|
|
2471
|
-
var
|
|
2471
|
+
var tmp3_safe_receiver = schema.f1n_1;
|
|
2472
2472
|
var tmp_1;
|
|
2473
|
-
if (
|
|
2473
|
+
if (tmp3_safe_receiver == null) {
|
|
2474
2474
|
tmp_1 = null;
|
|
2475
2475
|
} else {
|
|
2476
2476
|
// Inline function 'kotlin.let' call
|
|
2477
2477
|
// Inline function 'kotlin.contracts.contract' call
|
|
2478
2478
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
2479
|
-
tmp_1 = flatten_0($this_parseResponseBody, OpenApiV2Parser_instance,
|
|
2479
|
+
tmp_1 = flatten_0($this_parseResponseBody, OpenApiV2Parser_instance, tmp3_safe_receiver, Common_instance.b2a([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.m2a_1), $this$flatMapResponses.o2a_1, 'ResponseBody']));
|
|
2480
2480
|
}
|
|
2481
2481
|
|
|
2482
2482
|
var tmp0_elvis_lhs_0 = tmp_1;
|
|
@@ -2504,10 +2504,10 @@
|
|
|
2504
2504
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2505
2505
|
|
|
2506
2506
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
2507
|
-
tmp = tmp_0.
|
|
2507
|
+
tmp = tmp_0.b2a([tmp$ret$1]);
|
|
2508
2508
|
break;
|
|
2509
2509
|
case false:
|
|
2510
|
-
tmp = Common_instance.
|
|
2510
|
+
tmp = Common_instance.b2a([it]);
|
|
2511
2511
|
break;
|
|
2512
2512
|
default:
|
|
2513
2513
|
noWhenBranchMatchedException();
|
|
@@ -2517,21 +2517,23 @@
|
|
|
2517
2517
|
}
|
|
2518
2518
|
function OpenApiV2Parser() {
|
|
2519
2519
|
}
|
|
2520
|
-
protoOf(OpenApiV2Parser).
|
|
2521
|
-
return this.
|
|
2520
|
+
protoOf(OpenApiV2Parser).p2a = function (json, ignoreUnknown) {
|
|
2521
|
+
return this.q2a((new OpenAPI(Json(VOID, OpenApiV2Parser$parse$lambda(ignoreUnknown)))).i1g(json));
|
|
2522
2522
|
};
|
|
2523
|
-
protoOf(OpenApiV2Parser).
|
|
2523
|
+
protoOf(OpenApiV2Parser).r2a = function (json, ignoreUnknown, $super) {
|
|
2524
2524
|
ignoreUnknown = ignoreUnknown === VOID ? false : ignoreUnknown;
|
|
2525
|
-
return $super === VOID ? this.
|
|
2525
|
+
return $super === VOID ? this.p2a(json, ignoreUnknown) : $super.p2a.call(this, json, ignoreUnknown);
|
|
2526
2526
|
};
|
|
2527
|
-
protoOf(OpenApiV2Parser).
|
|
2527
|
+
protoOf(OpenApiV2Parser).q2a = function (_this__u8e3s4) {
|
|
2528
2528
|
// Inline function 'kotlin.collections.reduce' call
|
|
2529
2529
|
var iterator = listOf_0([parseEndpoints(_this__u8e3s4, this), parseParameters(_this__u8e3s4, this), parseRequestBody(_this__u8e3s4, this), parseResponseBody(_this__u8e3s4, this), parseDefinitions(_this__u8e3s4, this)]).g();
|
|
2530
2530
|
if (!iterator.h())
|
|
2531
2531
|
throw UnsupportedOperationException_init_$Create$("Empty collection can't be reduced.");
|
|
2532
2532
|
var accumulator = iterator.i();
|
|
2533
2533
|
while (iterator.h()) {
|
|
2534
|
-
|
|
2534
|
+
var p0 = accumulator;
|
|
2535
|
+
var p1 = iterator.i();
|
|
2536
|
+
accumulator = plus(p0, p1);
|
|
2535
2537
|
}
|
|
2536
2538
|
return accumulator;
|
|
2537
2539
|
};
|
|
@@ -2542,16 +2544,16 @@
|
|
|
2542
2544
|
function toMap_0(_this__u8e3s4) {
|
|
2543
2545
|
var tmp;
|
|
2544
2546
|
if (_this__u8e3s4 instanceof Custom) {
|
|
2545
|
-
tmp = _this__u8e3s4.
|
|
2547
|
+
tmp = _this__u8e3s4.p28(VOID, VOID, true);
|
|
2546
2548
|
} else {
|
|
2547
2549
|
if (_this__u8e3s4 instanceof Any) {
|
|
2548
|
-
tmp = _this__u8e3s4.
|
|
2550
|
+
tmp = _this__u8e3s4.j28(VOID, true);
|
|
2549
2551
|
} else {
|
|
2550
2552
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
2551
|
-
tmp = _this__u8e3s4.
|
|
2553
|
+
tmp = _this__u8e3s4.r28(VOID, VOID, true);
|
|
2552
2554
|
} else {
|
|
2553
2555
|
if (_this__u8e3s4 instanceof Unit) {
|
|
2554
|
-
tmp = _this__u8e3s4.
|
|
2556
|
+
tmp = _this__u8e3s4.n28(VOID, true);
|
|
2555
2557
|
} else {
|
|
2556
2558
|
noWhenBranchMatchedException();
|
|
2557
2559
|
}
|
|
@@ -2596,16 +2598,16 @@
|
|
|
2596
2598
|
function toIterable(_this__u8e3s4) {
|
|
2597
2599
|
var tmp;
|
|
2598
2600
|
if (_this__u8e3s4 instanceof Custom) {
|
|
2599
|
-
tmp = _this__u8e3s4.
|
|
2601
|
+
tmp = _this__u8e3s4.p28(VOID, true);
|
|
2600
2602
|
} else {
|
|
2601
2603
|
if (_this__u8e3s4 instanceof Any) {
|
|
2602
|
-
tmp = _this__u8e3s4.
|
|
2604
|
+
tmp = _this__u8e3s4.j28(true);
|
|
2603
2605
|
} else {
|
|
2604
2606
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
2605
|
-
tmp = _this__u8e3s4.
|
|
2607
|
+
tmp = _this__u8e3s4.r28(VOID, true);
|
|
2606
2608
|
} else {
|
|
2607
2609
|
if (_this__u8e3s4 instanceof Unit) {
|
|
2608
|
-
tmp = _this__u8e3s4.
|
|
2610
|
+
tmp = _this__u8e3s4.n28(true);
|
|
2609
2611
|
} else {
|
|
2610
2612
|
noWhenBranchMatchedException();
|
|
2611
2613
|
}
|
|
@@ -2646,7 +2648,7 @@
|
|
|
2646
2648
|
var element_1 = tmp0_iterator_1.i();
|
|
2647
2649
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2648
2650
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitComponents.<anonymous>' call
|
|
2649
|
-
var tmp = element_1.
|
|
2651
|
+
var tmp = element_1.d28().y22_1;
|
|
2650
2652
|
var tmp_0;
|
|
2651
2653
|
if (element_1 instanceof Enum) {
|
|
2652
2654
|
tmp_0 = emit_3(element_1, OpenApiV3Emitter_instance);
|
|
@@ -2676,7 +2678,7 @@
|
|
|
2676
2678
|
}
|
|
2677
2679
|
}
|
|
2678
2680
|
var pair = to(tmp, tmp_0);
|
|
2679
|
-
destination_1.m2(pair.
|
|
2681
|
+
destination_1.m2(pair.ce_1, pair.de_1);
|
|
2680
2682
|
}
|
|
2681
2683
|
// Inline function 'kotlin.contracts.contract' call
|
|
2682
2684
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitComponents.<anonymous>' call
|
|
@@ -2701,7 +2703,7 @@
|
|
|
2701
2703
|
while (tmp0_iterator_0.h()) {
|
|
2702
2704
|
var element_0 = tmp0_iterator_0.i();
|
|
2703
2705
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitPaths.<anonymous>' call
|
|
2704
|
-
var key = element_0.
|
|
2706
|
+
var key = element_0.p23_1;
|
|
2705
2707
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
2706
2708
|
var value = destination_0.f2(key);
|
|
2707
2709
|
var tmp;
|
|
@@ -2757,26 +2759,26 @@
|
|
|
2757
2759
|
} else {
|
|
2758
2760
|
tmp_1 = destination_3;
|
|
2759
2761
|
}
|
|
2760
|
-
var
|
|
2761
|
-
var
|
|
2762
|
-
var
|
|
2763
|
-
var
|
|
2764
|
-
var
|
|
2765
|
-
var
|
|
2766
|
-
var
|
|
2767
|
-
var
|
|
2768
|
-
var
|
|
2769
|
-
var tmp$ret$17 = to(new Path_0(tmp_0), new PathItemObject_0(VOID, VOID, VOID,
|
|
2762
|
+
var tmp0_parameters = tmp_1;
|
|
2763
|
+
var tmp1_get = emit_5(endpoints, OpenApiV3Emitter_instance, Method_GET_getInstance());
|
|
2764
|
+
var tmp2_post = emit_5(endpoints, OpenApiV3Emitter_instance, Method_POST_getInstance());
|
|
2765
|
+
var tmp3_put = emit_5(endpoints, OpenApiV3Emitter_instance, Method_PUT_getInstance());
|
|
2766
|
+
var tmp4_delete = emit_5(endpoints, OpenApiV3Emitter_instance, Method_DELETE_getInstance());
|
|
2767
|
+
var tmp5_patch = emit_5(endpoints, OpenApiV3Emitter_instance, Method_PATCH_getInstance());
|
|
2768
|
+
var tmp6_options = emit_5(endpoints, OpenApiV3Emitter_instance, Method_OPTIONS_getInstance());
|
|
2769
|
+
var tmp7_trace = emit_5(endpoints, OpenApiV3Emitter_instance, Method_TRACE_getInstance());
|
|
2770
|
+
var tmp8_head = emit_5(endpoints, OpenApiV3Emitter_instance, Method_HEAD_getInstance());
|
|
2771
|
+
var tmp$ret$17 = to(new Path_0(tmp_0), new PathItemObject_0(VOID, VOID, VOID, tmp1_get, tmp3_put, tmp2_post, tmp4_delete, tmp6_options, tmp8_head, tmp5_patch, tmp7_trace, VOID, tmp0_parameters));
|
|
2770
2772
|
destination_1.e(tmp$ret$17);
|
|
2771
2773
|
}
|
|
2772
2774
|
return toMap(destination_1);
|
|
2773
2775
|
}
|
|
2774
2776
|
function emit_1(_this__u8e3s4, $this) {
|
|
2775
|
-
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_STRING_getInstance_0(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, _this__u8e3s4.
|
|
2777
|
+
return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_STRING_getInstance_0(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, _this__u8e3s4.a25_1.q25_1);
|
|
2776
2778
|
}
|
|
2777
2779
|
function emit_2(_this__u8e3s4, $this) {
|
|
2778
2780
|
// Inline function 'kotlin.collections.associate' call
|
|
2779
|
-
var this_0 = _this__u8e3s4.
|
|
2781
|
+
var this_0 = _this__u8e3s4.b23_1.n25_1;
|
|
2780
2782
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2781
2783
|
// Inline function 'kotlin.collections.associateTo' call
|
|
2782
2784
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -2786,20 +2788,20 @@
|
|
|
2786
2788
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2787
2789
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2788
2790
|
var pair = emitSchema(element, OpenApiV3Emitter_instance);
|
|
2789
|
-
destination.m2(pair.
|
|
2791
|
+
destination.m2(pair.ce_1, pair.de_1);
|
|
2790
2792
|
}
|
|
2791
2793
|
var tmp = destination;
|
|
2792
2794
|
// Inline function 'kotlin.takeIf' call
|
|
2793
2795
|
// Inline function 'kotlin.collections.map' call
|
|
2794
2796
|
// Inline function 'kotlin.collections.filter' call
|
|
2795
2797
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2796
|
-
var this_1 = _this__u8e3s4.
|
|
2798
|
+
var this_1 = _this__u8e3s4.b23_1.n25_1;
|
|
2797
2799
|
var destination_0 = ArrayList_init_$Create$();
|
|
2798
2800
|
var tmp0_iterator_0 = this_1.g();
|
|
2799
2801
|
while (tmp0_iterator_0.h()) {
|
|
2800
2802
|
var element_0 = tmp0_iterator_0.i();
|
|
2801
2803
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2802
|
-
if (!element_0.
|
|
2804
|
+
if (!element_0.k24_1) {
|
|
2803
2805
|
destination_0.e(element_0);
|
|
2804
2806
|
}
|
|
2805
2807
|
}
|
|
@@ -2809,7 +2811,7 @@
|
|
|
2809
2811
|
while (tmp0_iterator_1.h()) {
|
|
2810
2812
|
var item = tmp0_iterator_1.i();
|
|
2811
2813
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2812
|
-
var tmp$ret$6 = item.
|
|
2814
|
+
var tmp$ret$6 = item.i24_1.y22_1;
|
|
2813
2815
|
destination_1.e(tmp$ret$6);
|
|
2814
2816
|
}
|
|
2815
2817
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -2827,7 +2829,7 @@
|
|
|
2827
2829
|
function emit_3(_this__u8e3s4, $this) {
|
|
2828
2830
|
var tmp = Type_STRING_getInstance_0();
|
|
2829
2831
|
// Inline function 'kotlin.collections.map' call
|
|
2830
|
-
var this_0 = _this__u8e3s4.
|
|
2832
|
+
var this_0 = _this__u8e3s4.d25_1;
|
|
2831
2833
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2832
2834
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2833
2835
|
var tmp0_iterator = this_0.g();
|
|
@@ -2842,7 +2844,7 @@
|
|
|
2842
2844
|
function emit_4(_this__u8e3s4, $this) {
|
|
2843
2845
|
var tmp = Type_STRING_getInstance_0();
|
|
2844
2846
|
// Inline function 'kotlin.collections.map' call
|
|
2845
|
-
var this_0 = _this__u8e3s4.
|
|
2847
|
+
var this_0 = _this__u8e3s4.u22_1;
|
|
2846
2848
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2847
2849
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2848
2850
|
var tmp0_iterator = this_0.g();
|
|
@@ -2863,7 +2865,7 @@
|
|
|
2863
2865
|
while (tmp0_iterator.h()) {
|
|
2864
2866
|
var element = tmp0_iterator.i();
|
|
2865
2867
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2866
|
-
if (element.
|
|
2868
|
+
if (element.o23_1.equals(method)) {
|
|
2867
2869
|
destination.e(element);
|
|
2868
2870
|
}
|
|
2869
2871
|
}
|
|
@@ -2882,7 +2884,7 @@
|
|
|
2882
2884
|
// Inline function 'kotlin.collections.map' call
|
|
2883
2885
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
2884
2886
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
2885
|
-
var this_0 = _this__u8e3s4.
|
|
2887
|
+
var this_0 = _this__u8e3s4.p23_1;
|
|
2886
2888
|
var destination = ArrayList_init_$Create$();
|
|
2887
2889
|
var tmp0_iterator = this_0.g();
|
|
2888
2890
|
while (tmp0_iterator.h()) {
|
|
@@ -2902,7 +2904,7 @@
|
|
|
2902
2904
|
}
|
|
2903
2905
|
var tmp = destination_0;
|
|
2904
2906
|
// Inline function 'kotlin.collections.map' call
|
|
2905
|
-
var this_1 = _this__u8e3s4.
|
|
2907
|
+
var this_1 = _this__u8e3s4.q23_1;
|
|
2906
2908
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2907
2909
|
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
2908
2910
|
var tmp0_iterator_1 = this_1.g();
|
|
@@ -2914,7 +2916,7 @@
|
|
|
2914
2916
|
}
|
|
2915
2917
|
var tmp_0 = plus(tmp, destination_1);
|
|
2916
2918
|
// Inline function 'kotlin.collections.map' call
|
|
2917
|
-
var this_2 = _this__u8e3s4.
|
|
2919
|
+
var this_2 = _this__u8e3s4.r23_1;
|
|
2918
2920
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2919
2921
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
|
|
2920
2922
|
var tmp0_iterator_2 = this_2.g();
|
|
@@ -2928,7 +2930,7 @@
|
|
|
2928
2930
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
2929
2931
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2930
2932
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2931
|
-
var this_3 = _this__u8e3s4.
|
|
2933
|
+
var this_3 = _this__u8e3s4.t23_1;
|
|
2932
2934
|
var destination_3 = ArrayList_init_$Create$();
|
|
2933
2935
|
// Inline function 'kotlin.collections.forEach' call
|
|
2934
2936
|
var tmp0_iterator_3 = this_3.g();
|
|
@@ -2936,14 +2938,14 @@
|
|
|
2936
2938
|
var element_0 = tmp0_iterator_3.i();
|
|
2937
2939
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2938
2940
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2939
|
-
var
|
|
2940
|
-
var
|
|
2941
|
-
if (
|
|
2941
|
+
var tmp0_safe_receiver = element_0.a24_1;
|
|
2942
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : emit_7(tmp0_safe_receiver, OpenApiV3Emitter_instance);
|
|
2943
|
+
if (tmp0_safe_receiver_0 == null)
|
|
2942
2944
|
null;
|
|
2943
2945
|
else {
|
|
2944
2946
|
// Inline function 'kotlin.let' call
|
|
2945
2947
|
// Inline function 'kotlin.contracts.contract' call
|
|
2946
|
-
destination_3.e(
|
|
2948
|
+
destination_3.e(tmp0_safe_receiver_0);
|
|
2947
2949
|
}
|
|
2948
2950
|
}
|
|
2949
2951
|
var this_4 = toMap(destination_3);
|
|
@@ -2959,7 +2961,7 @@
|
|
|
2959
2961
|
var tmp$ret$17;
|
|
2960
2962
|
$l$block_0: {
|
|
2961
2963
|
// Inline function 'kotlin.collections.any' call
|
|
2962
|
-
var this_5 = _this__u8e3s4.
|
|
2964
|
+
var this_5 = _this__u8e3s4.t23_1;
|
|
2963
2965
|
var tmp_4;
|
|
2964
2966
|
if (isInterface(this_5, Collection)) {
|
|
2965
2967
|
tmp_4 = this_5.l();
|
|
@@ -2974,9 +2976,9 @@
|
|
|
2974
2976
|
while (tmp0_iterator_4.h()) {
|
|
2975
2977
|
var element_1 = tmp0_iterator_4.i();
|
|
2976
2978
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2977
|
-
var
|
|
2978
|
-
var
|
|
2979
|
-
if (
|
|
2979
|
+
var tmp0_safe_receiver_1 = element_1.a24_1;
|
|
2980
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.d24_1;
|
|
2981
|
+
if (tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs) {
|
|
2980
2982
|
tmp$ret$17 = true;
|
|
2981
2983
|
break $l$block_0;
|
|
2982
2984
|
}
|
|
@@ -2987,13 +2989,13 @@
|
|
|
2987
2989
|
// Inline function 'kotlin.collections.map' call
|
|
2988
2990
|
// Inline function 'kotlin.collections.groupBy' call
|
|
2989
2991
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
2990
|
-
var this_6 = _this__u8e3s4.
|
|
2992
|
+
var this_6 = _this__u8e3s4.u23_1;
|
|
2991
2993
|
var destination_4 = LinkedHashMap_init_$Create$_0();
|
|
2992
2994
|
var tmp0_iterator_5 = this_6.g();
|
|
2993
2995
|
while (tmp0_iterator_5.h()) {
|
|
2994
2996
|
var element_2 = tmp0_iterator_5.i();
|
|
2995
2997
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2996
|
-
var key = element_2.
|
|
2998
|
+
var key = element_2.v23_1;
|
|
2997
2999
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
2998
3000
|
var value = destination_4.f2(key);
|
|
2999
3001
|
var tmp_6;
|
|
@@ -3028,7 +3030,7 @@
|
|
|
3028
3030
|
while (tmp0_iterator_7.h()) {
|
|
3029
3031
|
var element_3 = tmp0_iterator_7.i();
|
|
3030
3032
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3031
|
-
var list_0 = element_3.
|
|
3033
|
+
var list_0 = element_3.w23_1;
|
|
3032
3034
|
addAll(destination_6, list_0);
|
|
3033
3035
|
}
|
|
3034
3036
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_6, 10)), 16);
|
|
@@ -3040,9 +3042,9 @@
|
|
|
3040
3042
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3041
3043
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3042
3044
|
var pair = emitHeader(element_4, OpenApiV3Emitter_instance);
|
|
3043
|
-
destination_7.m2(pair.
|
|
3045
|
+
destination_7.m2(pair.ce_1, pair.de_1);
|
|
3044
3046
|
}
|
|
3045
|
-
var
|
|
3047
|
+
var tmp1_description = _this__u8e3s4.n23_1.toString() + ' ' + statusCode + ' response';
|
|
3046
3048
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
3047
3049
|
// Inline function 'kotlin.collections.associate' call
|
|
3048
3050
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -3054,13 +3056,13 @@
|
|
|
3054
3056
|
var element_5 = tmp0_iterator_9.i();
|
|
3055
3057
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3056
3058
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3057
|
-
var
|
|
3058
|
-
if (
|
|
3059
|
+
var tmp0_safe_receiver_2 = element_5.x23_1;
|
|
3060
|
+
if (tmp0_safe_receiver_2 == null)
|
|
3059
3061
|
null;
|
|
3060
3062
|
else {
|
|
3061
3063
|
// Inline function 'kotlin.let' call
|
|
3062
3064
|
// Inline function 'kotlin.contracts.contract' call
|
|
3063
|
-
destination_8.e(
|
|
3065
|
+
destination_8.e(tmp0_safe_receiver_2);
|
|
3064
3066
|
}
|
|
3065
3067
|
}
|
|
3066
3068
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_8, 10)), 16);
|
|
@@ -3072,7 +3074,7 @@
|
|
|
3072
3074
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3073
3075
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3074
3076
|
var pair_0 = emit_7(element_6, OpenApiV3Emitter_instance);
|
|
3075
|
-
destination_9.m2(pair_0.
|
|
3077
|
+
destination_9.m2(pair_0.ce_1, pair_0.de_1);
|
|
3076
3078
|
}
|
|
3077
3079
|
// Inline function 'kotlin.contracts.contract' call
|
|
3078
3080
|
var tmp_8;
|
|
@@ -3082,36 +3084,36 @@
|
|
|
3082
3084
|
} else {
|
|
3083
3085
|
tmp_8 = destination_9;
|
|
3084
3086
|
}
|
|
3085
|
-
var
|
|
3086
|
-
var tmp$ret$42 = to(new StatusCode_0(tmp_7), new ResponseObject_0(
|
|
3087
|
+
var tmp2_content = tmp_8;
|
|
3088
|
+
var tmp$ret$42 = to(new StatusCode_0(tmp_7), new ResponseObject_0(tmp1_description, destination_7, tmp2_content));
|
|
3087
3089
|
destination_5.e(tmp$ret$42);
|
|
3088
3090
|
}
|
|
3089
|
-
return new OperationObject_0(VOID, VOID, VOID, VOID, _this__u8e3s4.
|
|
3091
|
+
return new OperationObject_0(VOID, VOID, VOID, VOID, _this__u8e3s4.n23_1.y22_1, tmp_1, tmp_5, toMap(destination_5));
|
|
3090
3092
|
}
|
|
3091
3093
|
function emitSegment_0(_this__u8e3s4, $this) {
|
|
3092
3094
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenApiV3Emitter$emitSegment$lambda);
|
|
3093
3095
|
}
|
|
3094
3096
|
function emitParameter_0(_this__u8e3s4, $this, location) {
|
|
3095
|
-
var
|
|
3096
|
-
var
|
|
3097
|
-
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID,
|
|
3097
|
+
var tmp0_name = _this__u8e3s4.i24_1.y22_1;
|
|
3098
|
+
var tmp1_schema = emitSchema_0(_this__u8e3s4.j24_1, $this);
|
|
3099
|
+
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_schema, VOID, VOID, VOID, tmp0_name, location);
|
|
3098
3100
|
}
|
|
3099
3101
|
function emitParameter_1(_this__u8e3s4, $this) {
|
|
3100
|
-
var
|
|
3101
|
-
var
|
|
3102
|
-
var
|
|
3103
|
-
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID,
|
|
3102
|
+
var tmp0_in = ParameterLocation_PATH_getInstance_0();
|
|
3103
|
+
var tmp1_name = _this__u8e3s4.m24_1.y22_1;
|
|
3104
|
+
var tmp2_schema = emitSchema_0(_this__u8e3s4.n24_1, $this);
|
|
3105
|
+
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_schema, VOID, VOID, VOID, tmp1_name, tmp0_in);
|
|
3104
3106
|
}
|
|
3105
3107
|
function emitHeader(_this__u8e3s4, $this) {
|
|
3106
|
-
return to(_this__u8e3s4.
|
|
3108
|
+
return to(_this__u8e3s4.i24_1.y22_1, emitHeader_0(_this__u8e3s4.j24_1, $this));
|
|
3107
3109
|
}
|
|
3108
3110
|
function emitSchema(_this__u8e3s4, $this) {
|
|
3109
|
-
return to(_this__u8e3s4.
|
|
3111
|
+
return to(_this__u8e3s4.i24_1.y22_1, emitSchema_0(_this__u8e3s4.j24_1, $this));
|
|
3110
3112
|
}
|
|
3111
3113
|
function emitHeader_0(_this__u8e3s4, $this) {
|
|
3112
3114
|
var tmp;
|
|
3113
3115
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3114
|
-
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.
|
|
3116
|
+
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.v22_1));
|
|
3115
3117
|
} else {
|
|
3116
3118
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3117
3119
|
tmp = new HeaderObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitSchema_0(_this__u8e3s4, $this));
|
|
@@ -3135,10 +3137,10 @@
|
|
|
3135
3137
|
// Inline function 'kotlin.let' call
|
|
3136
3138
|
var tmp;
|
|
3137
3139
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3138
|
-
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/schemas/' + _this__u8e3s4.
|
|
3140
|
+
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/schemas/' + _this__u8e3s4.v22_1));
|
|
3139
3141
|
} else {
|
|
3140
3142
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3141
|
-
tmp = new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType_1(_this__u8e3s4.
|
|
3143
|
+
tmp = new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType_1(_this__u8e3s4.i23_1, $this));
|
|
3142
3144
|
} else {
|
|
3143
3145
|
if (_this__u8e3s4 instanceof Any) {
|
|
3144
3146
|
var message = 'Cannot map Any';
|
|
@@ -3156,7 +3158,7 @@
|
|
|
3156
3158
|
// Inline function 'kotlin.contracts.contract' call
|
|
3157
3159
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitSchema.<anonymous>' call
|
|
3158
3160
|
var it = tmp;
|
|
3159
|
-
return _this__u8e3s4.
|
|
3161
|
+
return _this__u8e3s4.q24() ? new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_OBJECT_getInstance_0(), VOID, VOID, VOID, VOID, VOID, VOID, it) : _this__u8e3s4.e24() ? new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance_0(), VOID, VOID, VOID, VOID, it) : it;
|
|
3160
3162
|
}
|
|
3161
3163
|
function emitType_1(_this__u8e3s4, $this) {
|
|
3162
3164
|
var tmp;
|
|
@@ -3180,12 +3182,12 @@
|
|
|
3180
3182
|
return tmp;
|
|
3181
3183
|
}
|
|
3182
3184
|
function emit_7(_this__u8e3s4, $this) {
|
|
3183
|
-
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.
|
|
3185
|
+
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.b24_1)), new MediaTypeObject(emitSchema_0(_this__u8e3s4.c24_1, $this)));
|
|
3184
3186
|
}
|
|
3185
3187
|
function OpenApiV3Emitter$emitSegment$lambda(it) {
|
|
3186
3188
|
var tmp;
|
|
3187
3189
|
if (it instanceof Param) {
|
|
3188
|
-
tmp = '{' + it.
|
|
3190
|
+
tmp = '{' + it.m24_1.y22_1 + '}';
|
|
3189
3191
|
} else {
|
|
3190
3192
|
if (it instanceof Literal) {
|
|
3191
3193
|
tmp = it.v24_1;
|
|
@@ -3197,15 +3199,15 @@
|
|
|
3197
3199
|
}
|
|
3198
3200
|
function OpenApiV3Emitter() {
|
|
3199
3201
|
}
|
|
3200
|
-
protoOf(OpenApiV3Emitter).
|
|
3201
|
-
var
|
|
3202
|
-
var tmp =
|
|
3203
|
-
var
|
|
3204
|
-
return new OpenAPIObject('3.0.0', new InfoObject_0(tmp, VOID, VOID, VOID, VOID,
|
|
3202
|
+
protoOf(OpenApiV3Emitter).s2a = function (ast, options) {
|
|
3203
|
+
var tmp1_elvis_lhs = options == null ? null : options.t2a_1;
|
|
3204
|
+
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
3205
|
+
var tmp3_elvis_lhs = options == null ? null : options.u2a_1;
|
|
3206
|
+
return new OpenAPIObject('3.0.0', new InfoObject_0(tmp, VOID, VOID, VOID, VOID, tmp3_elvis_lhs == null ? '0.0.0' : tmp3_elvis_lhs), VOID, emitPaths(ast, this), emitComponents(ast, this));
|
|
3205
3207
|
};
|
|
3206
|
-
protoOf(OpenApiV3Emitter).
|
|
3208
|
+
protoOf(OpenApiV3Emitter).v2a = function (ast, options, $super) {
|
|
3207
3209
|
options = options === VOID ? null : options;
|
|
3208
|
-
return $super === VOID ? this.
|
|
3210
|
+
return $super === VOID ? this.s2a(ast, options) : $super.s2a.call(this, ast, options);
|
|
3209
3211
|
};
|
|
3210
3212
|
var OpenApiV3Emitter_instance;
|
|
3211
3213
|
function OpenApiV3Emitter_getInstance() {
|
|
@@ -3214,7 +3216,7 @@
|
|
|
3214
3216
|
function parseEndpoint(_this__u8e3s4, $this) {
|
|
3215
3217
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3216
3218
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3217
|
-
var this_0 = _this__u8e3s4.
|
|
3219
|
+
var this_0 = _this__u8e3s4.p1q_1;
|
|
3218
3220
|
var destination = ArrayList_init_$Create$();
|
|
3219
3221
|
// Inline function 'kotlin.collections.iterator' call
|
|
3220
3222
|
var tmp0_iterator = this_0.z().g();
|
|
@@ -3222,7 +3224,7 @@
|
|
|
3222
3224
|
var element = tmp0_iterator.i();
|
|
3223
3225
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>' call
|
|
3224
3226
|
// Inline function 'kotlin.collections.component1' call
|
|
3225
|
-
var key = element.a1().
|
|
3227
|
+
var key = element.a1().o1r_1;
|
|
3226
3228
|
// Inline function 'kotlin.collections.component2' call
|
|
3227
3229
|
var path = element.b1();
|
|
3228
3230
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3250,7 +3252,7 @@
|
|
|
3250
3252
|
while (tmp0_iterator_1.h()) {
|
|
3251
3253
|
var element_0 = tmp0_iterator_1.i();
|
|
3252
3254
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3253
|
-
if (element_0.
|
|
3255
|
+
if (element_0.x1v_1.equals(ParameterLocation_QUERY_getInstance_0())) {
|
|
3254
3256
|
destination_1.e(element_0);
|
|
3255
3257
|
}
|
|
3256
3258
|
}
|
|
@@ -3260,7 +3262,7 @@
|
|
|
3260
3262
|
while (tmp0_iterator_2.h()) {
|
|
3261
3263
|
var item_0 = tmp0_iterator_2.i();
|
|
3262
3264
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3263
|
-
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_0, Common_instance.
|
|
3265
|
+
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_0, Common_instance.b2a([name, 'Parameter', item_0.w1v_1]));
|
|
3264
3266
|
destination_2.e(tmp$ret$9);
|
|
3265
3267
|
}
|
|
3266
3268
|
var query = destination_2;
|
|
@@ -3272,7 +3274,7 @@
|
|
|
3272
3274
|
while (tmp0_iterator_3.h()) {
|
|
3273
3275
|
var element_1 = tmp0_iterator_3.i();
|
|
3274
3276
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3275
|
-
if (element_1.
|
|
3277
|
+
if (element_1.x1v_1.equals(ParameterLocation_HEADER_getInstance_0())) {
|
|
3276
3278
|
destination_3.e(element_1);
|
|
3277
3279
|
}
|
|
3278
3280
|
}
|
|
@@ -3282,7 +3284,7 @@
|
|
|
3282
3284
|
while (tmp0_iterator_4.h()) {
|
|
3283
3285
|
var item_1 = tmp0_iterator_4.i();
|
|
3284
3286
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3285
|
-
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_1, Common_instance.
|
|
3287
|
+
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_1, Common_instance.b2a([name, 'Parameter', item_1.w1v_1]));
|
|
3286
3288
|
destination_4.e(tmp$ret$15);
|
|
3287
3289
|
}
|
|
3288
3290
|
var headers = destination_4;
|
|
@@ -3294,7 +3296,7 @@
|
|
|
3294
3296
|
while (tmp0_iterator_5.h()) {
|
|
3295
3297
|
var element_2 = tmp0_iterator_5.i();
|
|
3296
3298
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3297
|
-
if (element_2.
|
|
3299
|
+
if (element_2.x1v_1.equals(ParameterLocation_COOKIE_getInstance())) {
|
|
3298
3300
|
destination_5.e(element_2);
|
|
3299
3301
|
}
|
|
3300
3302
|
}
|
|
@@ -3304,53 +3306,53 @@
|
|
|
3304
3306
|
while (tmp0_iterator_6.h()) {
|
|
3305
3307
|
var item_2 = tmp0_iterator_6.i();
|
|
3306
3308
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3307
|
-
var tmp$ret$21 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_2, Common_instance.
|
|
3309
|
+
var tmp$ret$21 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_2, Common_instance.b2a([name, 'Parameter', item_2.w1v_1]));
|
|
3308
3310
|
destination_6.e(tmp$ret$21);
|
|
3309
3311
|
}
|
|
3310
3312
|
var cookies = destination_6;
|
|
3311
|
-
var
|
|
3313
|
+
var tmp1_safe_receiver = operation.z1t_1;
|
|
3312
3314
|
var tmp;
|
|
3313
|
-
if (
|
|
3315
|
+
if (tmp1_safe_receiver == null) {
|
|
3314
3316
|
tmp = null;
|
|
3315
3317
|
} else {
|
|
3316
3318
|
// Inline function 'kotlin.let' call
|
|
3317
3319
|
// Inline function 'kotlin.contracts.contract' call
|
|
3318
3320
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3319
|
-
tmp = resolve_7(_this__u8e3s4, OpenApiV3Parser_instance,
|
|
3321
|
+
tmp = resolve_7(_this__u8e3s4, OpenApiV3Parser_instance, tmp1_safe_receiver);
|
|
3320
3322
|
}
|
|
3321
|
-
var
|
|
3323
|
+
var tmp2_safe_receiver = tmp;
|
|
3322
3324
|
var tmp_0;
|
|
3323
|
-
if (
|
|
3325
|
+
if (tmp2_safe_receiver == null) {
|
|
3324
3326
|
tmp_0 = null;
|
|
3325
3327
|
} else {
|
|
3326
3328
|
// Inline function 'kotlin.let' call
|
|
3327
3329
|
// Inline function 'kotlin.contracts.contract' call
|
|
3328
3330
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3329
|
-
var
|
|
3331
|
+
var tmp0_safe_receiver = tmp2_safe_receiver.g1y_1;
|
|
3330
3332
|
var tmp_1;
|
|
3331
|
-
if (
|
|
3333
|
+
if (tmp0_safe_receiver == null) {
|
|
3332
3334
|
tmp_1 = null;
|
|
3333
3335
|
} else {
|
|
3334
3336
|
// Inline function 'kotlin.collections.map' call
|
|
3335
3337
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3336
|
-
var destination_7 = ArrayList_init_$Create$_0(
|
|
3338
|
+
var destination_7 = ArrayList_init_$Create$_0(tmp0_safe_receiver.j());
|
|
3337
3339
|
// Inline function 'kotlin.collections.iterator' call
|
|
3338
|
-
var tmp0_iterator_7 =
|
|
3340
|
+
var tmp0_iterator_7 = tmp0_safe_receiver.z().g();
|
|
3339
3341
|
while (tmp0_iterator_7.h()) {
|
|
3340
3342
|
var item_3 = tmp0_iterator_7.i();
|
|
3341
3343
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3342
3344
|
// Inline function 'kotlin.collections.component1' call
|
|
3343
|
-
var mediaType = item_3.a1().
|
|
3345
|
+
var mediaType = item_3.a1().v1z_1;
|
|
3344
3346
|
// Inline function 'kotlin.collections.component2' call
|
|
3345
3347
|
var mediaObject = item_3.b1();
|
|
3346
3348
|
var tmp_2 = _MediaType___get_value__impl__wy58mp(mediaType);
|
|
3347
|
-
var schema = mediaObject.
|
|
3349
|
+
var schema = mediaObject.z1z_1;
|
|
3348
3350
|
var tmp_3;
|
|
3349
3351
|
if (schema instanceof ReferenceObject_0) {
|
|
3350
3352
|
tmp_3 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, schema);
|
|
3351
3353
|
} else {
|
|
3352
3354
|
if (schema instanceof SchemaObject_0) {
|
|
3353
|
-
tmp_3 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_instance.
|
|
3355
|
+
tmp_3 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_instance.b2a([name, 'RequestBody']));
|
|
3354
3356
|
} else {
|
|
3355
3357
|
if (schema == null) {
|
|
3356
3358
|
var reason = 'Not yet implemented';
|
|
@@ -3361,7 +3363,7 @@
|
|
|
3361
3363
|
}
|
|
3362
3364
|
}
|
|
3363
3365
|
var tmp_4 = tmp_3;
|
|
3364
|
-
var tmp0_elvis_lhs_0 =
|
|
3366
|
+
var tmp0_elvis_lhs_0 = tmp2_safe_receiver.h1y_1;
|
|
3365
3367
|
var tmp$ret$29 = new Request(new Content(tmp_2, tmp_4, !(tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0)));
|
|
3366
3368
|
destination_7.e(tmp$ret$29);
|
|
3367
3369
|
}
|
|
@@ -3369,11 +3371,11 @@
|
|
|
3369
3371
|
}
|
|
3370
3372
|
tmp_0 = tmp_1;
|
|
3371
3373
|
}
|
|
3372
|
-
var
|
|
3373
|
-
var requests =
|
|
3374
|
+
var tmp3_elvis_lhs = tmp_0;
|
|
3375
|
+
var requests = tmp3_elvis_lhs == null ? listOf(new Request(null)) : tmp3_elvis_lhs;
|
|
3374
3376
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3375
3377
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3376
|
-
var tmp0_elvis_lhs_1 = operation.
|
|
3378
|
+
var tmp0_elvis_lhs_1 = operation.a1u_1;
|
|
3377
3379
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3378
3380
|
var this_2 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
3379
3381
|
var destination_8 = ArrayList_init_$Create$();
|
|
@@ -3383,46 +3385,46 @@
|
|
|
3383
3385
|
var element_3 = tmp0_iterator_8.i();
|
|
3384
3386
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3385
3387
|
// Inline function 'kotlin.collections.component1' call
|
|
3386
|
-
var status = element_3.a1().
|
|
3388
|
+
var status = element_3.a1().i1v_1;
|
|
3387
3389
|
// Inline function 'kotlin.collections.component2' call
|
|
3388
3390
|
var res = element_3.b1();
|
|
3389
3391
|
// Inline function 'kotlin.let' call
|
|
3390
3392
|
// Inline function 'kotlin.contracts.contract' call
|
|
3391
3393
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3392
3394
|
var response = resolve_8(_this__u8e3s4, OpenApiV3Parser_instance, res);
|
|
3393
|
-
var
|
|
3395
|
+
var tmp0_safe_receiver_0 = response.u1x_1;
|
|
3394
3396
|
var tmp_5;
|
|
3395
|
-
if (
|
|
3397
|
+
if (tmp0_safe_receiver_0 == null) {
|
|
3396
3398
|
tmp_5 = null;
|
|
3397
3399
|
} else {
|
|
3398
3400
|
// Inline function 'kotlin.collections.map' call
|
|
3399
3401
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3400
|
-
var destination_9 = ArrayList_init_$Create$_0(
|
|
3402
|
+
var destination_9 = ArrayList_init_$Create$_0(tmp0_safe_receiver_0.j());
|
|
3401
3403
|
// Inline function 'kotlin.collections.iterator' call
|
|
3402
|
-
var tmp0_iterator_9 =
|
|
3404
|
+
var tmp0_iterator_9 = tmp0_safe_receiver_0.z().g();
|
|
3403
3405
|
while (tmp0_iterator_9.h()) {
|
|
3404
3406
|
var item_4 = tmp0_iterator_9.i();
|
|
3405
3407
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3406
3408
|
// Inline function 'kotlin.collections.component1' call
|
|
3407
|
-
var contentType = item_4.a1().
|
|
3409
|
+
var contentType = item_4.a1().v1z_1;
|
|
3408
3410
|
// Inline function 'kotlin.collections.component2' call
|
|
3409
3411
|
var media = item_4.b1();
|
|
3410
3412
|
var tmp_6 = _StatusCode___get_value__impl__we50mu_0(status);
|
|
3411
3413
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3412
|
-
var
|
|
3414
|
+
var tmp0_safe_receiver_1 = response.t1x_1;
|
|
3413
3415
|
var tmp_7;
|
|
3414
|
-
if (
|
|
3416
|
+
if (tmp0_safe_receiver_1 == null) {
|
|
3415
3417
|
tmp_7 = null;
|
|
3416
3418
|
} else {
|
|
3417
3419
|
// Inline function 'kotlin.collections.map' call
|
|
3418
3420
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3419
|
-
var destination_10 = ArrayList_init_$Create$_0(
|
|
3421
|
+
var destination_10 = ArrayList_init_$Create$_0(tmp0_safe_receiver_1.j());
|
|
3420
3422
|
// Inline function 'kotlin.collections.iterator' call
|
|
3421
|
-
var tmp0_iterator_10 =
|
|
3423
|
+
var tmp0_iterator_10 = tmp0_safe_receiver_1.z().g();
|
|
3422
3424
|
while (tmp0_iterator_10.h()) {
|
|
3423
3425
|
var item_5 = tmp0_iterator_10.i();
|
|
3424
3426
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3425
|
-
var tmp$ret$42 = toField_4(_this__u8e3s4, OpenApiV3Parser_instance, resolve_5(_this__u8e3s4, OpenApiV3Parser_instance, item_5.b1()), item_5.a1(), Common_instance.
|
|
3427
|
+
var tmp$ret$42 = toField_4(_this__u8e3s4, OpenApiV3Parser_instance, resolve_5(_this__u8e3s4, OpenApiV3Parser_instance, item_5.b1()), item_5.a1(), Common_instance.b2a([name, 'ResponseHeader']));
|
|
3426
3428
|
destination_10.e(tmp$ret$42);
|
|
3427
3429
|
}
|
|
3428
3430
|
tmp_7 = destination_10;
|
|
@@ -3430,13 +3432,13 @@
|
|
|
3430
3432
|
var tmp0_elvis_lhs_2 = tmp_7;
|
|
3431
3433
|
var tmp_8 = tmp0_elvis_lhs_2 == null ? emptyList() : tmp0_elvis_lhs_2;
|
|
3432
3434
|
var tmp_9 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
3433
|
-
var schema_0 = media.
|
|
3435
|
+
var schema_0 = media.z1z_1;
|
|
3434
3436
|
var tmp_10;
|
|
3435
3437
|
if (schema_0 instanceof ReferenceObject_0) {
|
|
3436
3438
|
tmp_10 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, schema_0);
|
|
3437
3439
|
} else {
|
|
3438
3440
|
if (schema_0 instanceof SchemaObject_0) {
|
|
3439
|
-
tmp_10 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema_0, Common_instance.
|
|
3441
|
+
tmp_10 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema_0, Common_instance.b2a([name, _StatusCode___get_value__impl__we50mu_0(status), _MediaType___get_value__impl__wy58mp(contentType), 'ResponseBody']));
|
|
3440
3442
|
} else {
|
|
3441
3443
|
if (schema_0 == null) {
|
|
3442
3444
|
tmp_10 = new Any(false);
|
|
@@ -3446,29 +3448,29 @@
|
|
|
3446
3448
|
}
|
|
3447
3449
|
}
|
|
3448
3450
|
var tmp_11 = tmp_10;
|
|
3449
|
-
var
|
|
3451
|
+
var tmp1_safe_receiver_0 = media.z1z_1;
|
|
3450
3452
|
var tmp_12;
|
|
3451
|
-
if (
|
|
3453
|
+
if (tmp1_safe_receiver_0 == null) {
|
|
3452
3454
|
tmp_12 = null;
|
|
3453
3455
|
} else {
|
|
3454
3456
|
// Inline function 'kotlin.let' call
|
|
3455
3457
|
// Inline function 'kotlin.contracts.contract' call
|
|
3456
3458
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3457
|
-
tmp_12 = resolve_4(_this__u8e3s4, OpenApiV3Parser_instance,
|
|
3459
|
+
tmp_12 = resolve_4(_this__u8e3s4, OpenApiV3Parser_instance, tmp1_safe_receiver_0);
|
|
3458
3460
|
}
|
|
3459
|
-
var
|
|
3460
|
-
var
|
|
3461
|
-
var tmp$ret$48 = new Response(tmp_6, tmp_8, new Content(tmp_9, tmp_11,
|
|
3461
|
+
var tmp2_safe_receiver_0 = tmp_12;
|
|
3462
|
+
var tmp3_elvis_lhs_0 = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.f1w_1;
|
|
3463
|
+
var tmp$ret$48 = new Response(tmp_6, tmp_8, new Content(tmp_9, tmp_11, tmp3_elvis_lhs_0 == null ? false : tmp3_elvis_lhs_0));
|
|
3462
3464
|
destination_9.e(tmp$ret$48);
|
|
3463
3465
|
}
|
|
3464
3466
|
tmp_5 = destination_9;
|
|
3465
3467
|
}
|
|
3466
|
-
var
|
|
3467
|
-
var list =
|
|
3468
|
+
var tmp0_elvis_lhs_3 = tmp_5;
|
|
3469
|
+
var list = tmp0_elvis_lhs_3 == null ? listOf(new Response(_StatusCode___get_value__impl__we50mu_0(status), emptyList(), null)) : tmp0_elvis_lhs_3;
|
|
3468
3470
|
addAll(destination_8, list);
|
|
3469
3471
|
}
|
|
3470
3472
|
var responses = destination_8;
|
|
3471
|
-
var tmp$ret$56 = new Endpoint(null, Companion_instance.
|
|
3473
|
+
var tmp$ret$56 = new Endpoint(null, Companion_instance.b27(name), method, segments, query, headers, cookies, requests, responses);
|
|
3472
3474
|
destination_0.e(tmp$ret$56);
|
|
3473
3475
|
}
|
|
3474
3476
|
var list_0 = destination_0;
|
|
@@ -3489,8 +3491,8 @@
|
|
|
3489
3491
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3490
3492
|
// Inline function 'kotlin.collections.filter' call
|
|
3491
3493
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3492
|
-
var
|
|
3493
|
-
var tmp0_elvis_lhs =
|
|
3494
|
+
var tmp0_safe_receiver = _this__u8e3s4.q1q_1;
|
|
3495
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j1s_1;
|
|
3494
3496
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3495
3497
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3496
3498
|
var destination = LinkedHashMap_init_$Create$_0();
|
|
@@ -3502,7 +3504,7 @@
|
|
|
3502
3504
|
var s = element.b1();
|
|
3503
3505
|
var tmp;
|
|
3504
3506
|
if (s instanceof SchemaObject_0) {
|
|
3505
|
-
tmp = s.
|
|
3507
|
+
tmp = s.v1w_1 == null;
|
|
3506
3508
|
} else {
|
|
3507
3509
|
tmp = false;
|
|
3508
3510
|
}
|
|
@@ -3517,7 +3519,7 @@
|
|
|
3517
3519
|
while (tmp0_iterator_0.h()) {
|
|
3518
3520
|
var element_0 = tmp0_iterator_0.i();
|
|
3519
3521
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseComponents.<anonymous>' call
|
|
3520
|
-
var list = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, element_0.b1(), Common_instance.
|
|
3522
|
+
var list = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, element_0.b1(), Common_instance.b2a([element_0.a1()]));
|
|
3521
3523
|
addAll(destination_0, list);
|
|
3522
3524
|
}
|
|
3523
3525
|
return destination_0;
|
|
@@ -3526,15 +3528,15 @@
|
|
|
3526
3528
|
return charSequenceGet(_this__u8e3s4, 0) === _Char___init__impl__6a9atx(123) && charSequenceGet(_this__u8e3s4, _this__u8e3s4.length - 1 | 0) === _Char___init__impl__6a9atx(125);
|
|
3527
3529
|
}
|
|
3528
3530
|
function toName_1(_this__u8e3s4, $this) {
|
|
3529
|
-
var
|
|
3531
|
+
var tmp0_safe_receiver = _this__u8e3s4.x1t_1;
|
|
3530
3532
|
var tmp;
|
|
3531
|
-
if (
|
|
3533
|
+
if (tmp0_safe_receiver == null) {
|
|
3532
3534
|
tmp = null;
|
|
3533
3535
|
} else {
|
|
3534
3536
|
// Inline function 'kotlin.let' call
|
|
3535
3537
|
// Inline function 'kotlin.contracts.contract' call
|
|
3536
3538
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toName.<anonymous>' call
|
|
3537
|
-
tmp = Common_instance.
|
|
3539
|
+
tmp = Common_instance.b2a([tmp0_safe_receiver]);
|
|
3538
3540
|
}
|
|
3539
3541
|
return tmp;
|
|
3540
3542
|
}
|
|
@@ -3585,8 +3587,8 @@
|
|
|
3585
3587
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3586
3588
|
|
|
3587
3589
|
var param = item.substring(1, endIndex);
|
|
3588
|
-
var
|
|
3589
|
-
var name =
|
|
3590
|
+
var tmp1_elvis_lhs = toName_1(operation, OpenApiV3Parser_instance);
|
|
3591
|
+
var name = tmp1_elvis_lhs == null ? toName_2(path, OpenApiV3Parser_instance) + method.p2_1 : tmp1_elvis_lhs;
|
|
3590
3592
|
// Inline function 'kotlin.collections.find' call
|
|
3591
3593
|
|
|
3592
3594
|
var tmp$ret$7;
|
|
@@ -3596,7 +3598,7 @@
|
|
|
3596
3598
|
while (tmp0_iterator_1.h()) {
|
|
3597
3599
|
var element_0 = tmp0_iterator_1.i();
|
|
3598
3600
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toSegments.<anonymous>.<anonymous>' call
|
|
3599
|
-
if (element_0.
|
|
3601
|
+
if (element_0.w1v_1 === param) {
|
|
3600
3602
|
tmp$ret$7 = element_0;
|
|
3601
3603
|
break $l$block;
|
|
3602
3604
|
}
|
|
@@ -3604,47 +3606,47 @@
|
|
|
3604
3606
|
tmp$ret$7 = null;
|
|
3605
3607
|
}
|
|
3606
3608
|
|
|
3607
|
-
var
|
|
3608
|
-
var
|
|
3609
|
+
var tmp2_safe_receiver = tmp$ret$7;
|
|
3610
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.s1v_1;
|
|
3609
3611
|
var tmp_0;
|
|
3610
|
-
if (
|
|
3612
|
+
if (tmp3_safe_receiver == null) {
|
|
3611
3613
|
tmp_0 = null;
|
|
3612
3614
|
} else {
|
|
3613
3615
|
// Inline function 'kotlin.let' call
|
|
3614
3616
|
// Inline function 'kotlin.contracts.contract' call
|
|
3615
3617
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toSegments.<anonymous>.<anonymous>' call
|
|
3616
|
-
tmp_0 = resolve_4(_this__u8e3s4, OpenApiV3Parser_instance,
|
|
3618
|
+
tmp_0 = resolve_4(_this__u8e3s4, OpenApiV3Parser_instance, tmp3_safe_receiver);
|
|
3617
3619
|
}
|
|
3618
3620
|
|
|
3619
|
-
var
|
|
3621
|
+
var tmp4_safe_receiver = tmp_0;
|
|
3620
3622
|
var tmp_1;
|
|
3621
|
-
if (
|
|
3623
|
+
if (tmp4_safe_receiver == null) {
|
|
3622
3624
|
tmp_1 = null;
|
|
3623
3625
|
} else {
|
|
3624
3626
|
// Inline function 'kotlin.let' call
|
|
3625
3627
|
// Inline function 'kotlin.contracts.contract' call
|
|
3626
3628
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toSegments.<anonymous>.<anonymous>' call
|
|
3627
|
-
tmp_1 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance,
|
|
3629
|
+
tmp_1 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp4_safe_receiver, Common_instance.b2a([name, 'Parameter', param]));
|
|
3628
3630
|
}
|
|
3629
3631
|
|
|
3630
|
-
var
|
|
3632
|
+
var tmp5_safe_receiver = tmp_1;
|
|
3631
3633
|
var tmp_2;
|
|
3632
|
-
if (
|
|
3634
|
+
if (tmp5_safe_receiver == null) {
|
|
3633
3635
|
tmp_2 = null;
|
|
3634
3636
|
} else {
|
|
3635
3637
|
// Inline function 'kotlin.let' call
|
|
3636
3638
|
// Inline function 'kotlin.contracts.contract' call
|
|
3637
3639
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toSegments.<anonymous>.<anonymous>' call
|
|
3638
|
-
tmp_2 = new Param(Companion_instance.
|
|
3640
|
+
tmp_2 = new Param(Companion_instance.b27(param), tmp5_safe_receiver);
|
|
3639
3641
|
}
|
|
3640
3642
|
|
|
3641
|
-
var
|
|
3643
|
+
var tmp6_elvis_lhs = tmp_2;
|
|
3642
3644
|
var tmp_3;
|
|
3643
|
-
if (
|
|
3645
|
+
if (tmp6_elvis_lhs == null) {
|
|
3644
3646
|
var message = ' Declared path parameter ' + param + ' needs to be defined as a path parameter in path or operation level';
|
|
3645
3647
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
3646
3648
|
} else {
|
|
3647
|
-
tmp_3 =
|
|
3649
|
+
tmp_3 = tmp6_elvis_lhs;
|
|
3648
3650
|
}
|
|
3649
3651
|
|
|
3650
3652
|
tmp = tmp_3;
|
|
@@ -3662,16 +3664,16 @@
|
|
|
3662
3664
|
return destination_0;
|
|
3663
3665
|
}
|
|
3664
3666
|
function resolveParameters_1(_this__u8e3s4, $this, operation) {
|
|
3665
|
-
var
|
|
3667
|
+
var tmp0_safe_receiver = operation.y1t_1;
|
|
3666
3668
|
var tmp;
|
|
3667
|
-
if (
|
|
3669
|
+
if (tmp0_safe_receiver == null) {
|
|
3668
3670
|
tmp = null;
|
|
3669
3671
|
} else {
|
|
3670
3672
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3671
3673
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3672
3674
|
var destination = ArrayList_init_$Create$();
|
|
3673
3675
|
// Inline function 'kotlin.collections.forEach' call
|
|
3674
|
-
var tmp0_iterator =
|
|
3676
|
+
var tmp0_iterator = tmp0_safe_receiver.g();
|
|
3675
3677
|
while (tmp0_iterator.h()) {
|
|
3676
3678
|
var element = tmp0_iterator.i();
|
|
3677
3679
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
@@ -3686,31 +3688,31 @@
|
|
|
3686
3688
|
noWhenBranchMatchedException();
|
|
3687
3689
|
}
|
|
3688
3690
|
}
|
|
3689
|
-
var
|
|
3690
|
-
if (
|
|
3691
|
+
var tmp0_safe_receiver_0 = tmp_0;
|
|
3692
|
+
if (tmp0_safe_receiver_0 == null)
|
|
3691
3693
|
null;
|
|
3692
3694
|
else {
|
|
3693
3695
|
// Inline function 'kotlin.let' call
|
|
3694
3696
|
// Inline function 'kotlin.contracts.contract' call
|
|
3695
|
-
destination.e(
|
|
3697
|
+
destination.e(tmp0_safe_receiver_0);
|
|
3696
3698
|
}
|
|
3697
3699
|
}
|
|
3698
3700
|
tmp = destination;
|
|
3699
3701
|
}
|
|
3700
|
-
var
|
|
3701
|
-
return
|
|
3702
|
+
var tmp1_elvis_lhs = tmp;
|
|
3703
|
+
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
3702
3704
|
}
|
|
3703
3705
|
function resolveParameters_2(_this__u8e3s4, $this, pathItem) {
|
|
3704
|
-
var
|
|
3706
|
+
var tmp0_safe_receiver = pathItem.e1s_1;
|
|
3705
3707
|
var tmp;
|
|
3706
|
-
if (
|
|
3708
|
+
if (tmp0_safe_receiver == null) {
|
|
3707
3709
|
tmp = null;
|
|
3708
3710
|
} else {
|
|
3709
3711
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3710
3712
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3711
3713
|
var destination = ArrayList_init_$Create$();
|
|
3712
3714
|
// Inline function 'kotlin.collections.forEach' call
|
|
3713
|
-
var tmp0_iterator =
|
|
3715
|
+
var tmp0_iterator = tmp0_safe_receiver.g();
|
|
3714
3716
|
while (tmp0_iterator.h()) {
|
|
3715
3717
|
var element = tmp0_iterator.i();
|
|
3716
3718
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
@@ -3725,37 +3727,37 @@
|
|
|
3725
3727
|
noWhenBranchMatchedException();
|
|
3726
3728
|
}
|
|
3727
3729
|
}
|
|
3728
|
-
var
|
|
3729
|
-
if (
|
|
3730
|
+
var tmp0_safe_receiver_0 = tmp_0;
|
|
3731
|
+
if (tmp0_safe_receiver_0 == null)
|
|
3730
3732
|
null;
|
|
3731
3733
|
else {
|
|
3732
3734
|
// Inline function 'kotlin.let' call
|
|
3733
3735
|
// Inline function 'kotlin.contracts.contract' call
|
|
3734
|
-
destination.e(
|
|
3736
|
+
destination.e(tmp0_safe_receiver_0);
|
|
3735
3737
|
}
|
|
3736
3738
|
}
|
|
3737
3739
|
tmp = destination;
|
|
3738
3740
|
}
|
|
3739
|
-
var
|
|
3740
|
-
return
|
|
3741
|
+
var tmp1_elvis_lhs = tmp;
|
|
3742
|
+
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
3741
3743
|
}
|
|
3742
3744
|
function resolveParameterObject_0(_this__u8e3s4, $this, reference) {
|
|
3743
|
-
var
|
|
3744
|
-
var
|
|
3745
|
-
var
|
|
3745
|
+
var tmp0_safe_receiver = _this__u8e3s4.q1q_1;
|
|
3746
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l1s_1;
|
|
3747
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f2(getReference_0(reference, $this));
|
|
3746
3748
|
var tmp;
|
|
3747
|
-
if (
|
|
3749
|
+
if (tmp2_safe_receiver == null) {
|
|
3748
3750
|
tmp = null;
|
|
3749
3751
|
} else {
|
|
3750
3752
|
// Inline function 'kotlin.let' call
|
|
3751
3753
|
// Inline function 'kotlin.contracts.contract' call
|
|
3752
3754
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.resolveParameterObject.<anonymous>' call
|
|
3753
3755
|
var tmp_0;
|
|
3754
|
-
if (
|
|
3755
|
-
tmp_0 =
|
|
3756
|
+
if (tmp2_safe_receiver instanceof ParameterObject_0) {
|
|
3757
|
+
tmp_0 = tmp2_safe_receiver;
|
|
3756
3758
|
} else {
|
|
3757
|
-
if (
|
|
3758
|
-
tmp_0 = resolveParameterObject_0(_this__u8e3s4, OpenApiV3Parser_instance,
|
|
3759
|
+
if (tmp2_safe_receiver instanceof ReferenceObject_0) {
|
|
3760
|
+
tmp_0 = resolveParameterObject_0(_this__u8e3s4, OpenApiV3Parser_instance, tmp2_safe_receiver);
|
|
3759
3761
|
} else {
|
|
3760
3762
|
noWhenBranchMatchedException();
|
|
3761
3763
|
}
|
|
@@ -3765,134 +3767,134 @@
|
|
|
3765
3767
|
return tmp;
|
|
3766
3768
|
}
|
|
3767
3769
|
function resolveSchemaObject_0(_this__u8e3s4, $this, reference) {
|
|
3768
|
-
var
|
|
3769
|
-
var
|
|
3770
|
-
var
|
|
3770
|
+
var tmp0_safe_receiver = _this__u8e3s4.q1q_1;
|
|
3771
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j1s_1;
|
|
3772
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f2(getReference_0(reference, $this));
|
|
3771
3773
|
var tmp;
|
|
3772
|
-
if (
|
|
3774
|
+
if (tmp2_safe_receiver == null) {
|
|
3773
3775
|
tmp = null;
|
|
3774
3776
|
} else {
|
|
3775
3777
|
// Inline function 'kotlin.let' call
|
|
3776
3778
|
// Inline function 'kotlin.contracts.contract' call
|
|
3777
3779
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.resolveSchemaObject.<anonymous>' call
|
|
3778
3780
|
var tmp_0;
|
|
3779
|
-
if (
|
|
3780
|
-
tmp_0 = to(reference,
|
|
3781
|
+
if (tmp2_safe_receiver instanceof SchemaObject_0) {
|
|
3782
|
+
tmp_0 = to(reference, tmp2_safe_receiver);
|
|
3781
3783
|
} else {
|
|
3782
|
-
if (
|
|
3783
|
-
tmp_0 = resolveSchemaObject_0(_this__u8e3s4, OpenApiV3Parser_instance,
|
|
3784
|
+
if (tmp2_safe_receiver instanceof ReferenceObject_0) {
|
|
3785
|
+
tmp_0 = resolveSchemaObject_0(_this__u8e3s4, OpenApiV3Parser_instance, tmp2_safe_receiver);
|
|
3784
3786
|
} else {
|
|
3785
3787
|
noWhenBranchMatchedException();
|
|
3786
3788
|
}
|
|
3787
3789
|
}
|
|
3788
3790
|
tmp = tmp_0;
|
|
3789
3791
|
}
|
|
3790
|
-
var
|
|
3792
|
+
var tmp3_elvis_lhs = tmp;
|
|
3791
3793
|
var tmp_1;
|
|
3792
|
-
if (
|
|
3793
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi_0(reference.
|
|
3794
|
+
if (tmp3_elvis_lhs == null) {
|
|
3795
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi_0(reference.c1w_1);
|
|
3794
3796
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
3795
3797
|
} else {
|
|
3796
|
-
tmp_1 =
|
|
3798
|
+
tmp_1 = tmp3_elvis_lhs;
|
|
3797
3799
|
}
|
|
3798
3800
|
return tmp_1;
|
|
3799
3801
|
}
|
|
3800
3802
|
function resolveHeaderObject(_this__u8e3s4, $this, reference) {
|
|
3801
|
-
var
|
|
3802
|
-
var
|
|
3803
|
-
var
|
|
3803
|
+
var tmp0_safe_receiver = _this__u8e3s4.q1q_1;
|
|
3804
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o1s_1;
|
|
3805
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f2(getReference_0(reference, $this));
|
|
3804
3806
|
var tmp;
|
|
3805
|
-
if (
|
|
3807
|
+
if (tmp2_safe_receiver == null) {
|
|
3806
3808
|
tmp = null;
|
|
3807
3809
|
} else {
|
|
3808
3810
|
// Inline function 'kotlin.let' call
|
|
3809
3811
|
// Inline function 'kotlin.contracts.contract' call
|
|
3810
3812
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.resolveHeaderObject.<anonymous>' call
|
|
3811
3813
|
var tmp_0;
|
|
3812
|
-
if (
|
|
3813
|
-
tmp_0 = to(reference,
|
|
3814
|
+
if (tmp2_safe_receiver instanceof HeaderObject_0) {
|
|
3815
|
+
tmp_0 = to(reference, tmp2_safe_receiver);
|
|
3814
3816
|
} else {
|
|
3815
|
-
if (
|
|
3816
|
-
tmp_0 = resolveHeaderObject(_this__u8e3s4, OpenApiV3Parser_instance,
|
|
3817
|
+
if (tmp2_safe_receiver instanceof ReferenceObject_0) {
|
|
3818
|
+
tmp_0 = resolveHeaderObject(_this__u8e3s4, OpenApiV3Parser_instance, tmp2_safe_receiver);
|
|
3817
3819
|
} else {
|
|
3818
3820
|
noWhenBranchMatchedException();
|
|
3819
3821
|
}
|
|
3820
3822
|
}
|
|
3821
3823
|
tmp = tmp_0;
|
|
3822
3824
|
}
|
|
3823
|
-
var
|
|
3825
|
+
var tmp3_elvis_lhs = tmp;
|
|
3824
3826
|
var tmp_1;
|
|
3825
|
-
if (
|
|
3826
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi_0(reference.
|
|
3827
|
+
if (tmp3_elvis_lhs == null) {
|
|
3828
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi_0(reference.c1w_1);
|
|
3827
3829
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
3828
3830
|
} else {
|
|
3829
|
-
tmp_1 =
|
|
3831
|
+
tmp_1 = tmp3_elvis_lhs;
|
|
3830
3832
|
}
|
|
3831
3833
|
return tmp_1;
|
|
3832
3834
|
}
|
|
3833
3835
|
function resolveRequestBodyObject(_this__u8e3s4, $this, reference) {
|
|
3834
|
-
var
|
|
3835
|
-
var
|
|
3836
|
-
var
|
|
3836
|
+
var tmp0_safe_receiver = _this__u8e3s4.q1q_1;
|
|
3837
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n1s_1;
|
|
3838
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f2(getReference_0(reference, $this));
|
|
3837
3839
|
var tmp;
|
|
3838
|
-
if (
|
|
3840
|
+
if (tmp2_safe_receiver == null) {
|
|
3839
3841
|
tmp = null;
|
|
3840
3842
|
} else {
|
|
3841
3843
|
// Inline function 'kotlin.let' call
|
|
3842
3844
|
// Inline function 'kotlin.contracts.contract' call
|
|
3843
3845
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.resolveRequestBodyObject.<anonymous>' call
|
|
3844
3846
|
var tmp_0;
|
|
3845
|
-
if (
|
|
3846
|
-
tmp_0 = to(reference,
|
|
3847
|
+
if (tmp2_safe_receiver instanceof RequestBodyObject) {
|
|
3848
|
+
tmp_0 = to(reference, tmp2_safe_receiver);
|
|
3847
3849
|
} else {
|
|
3848
|
-
if (
|
|
3849
|
-
tmp_0 = resolveRequestBodyObject(_this__u8e3s4, OpenApiV3Parser_instance,
|
|
3850
|
+
if (tmp2_safe_receiver instanceof ReferenceObject_0) {
|
|
3851
|
+
tmp_0 = resolveRequestBodyObject(_this__u8e3s4, OpenApiV3Parser_instance, tmp2_safe_receiver);
|
|
3850
3852
|
} else {
|
|
3851
3853
|
noWhenBranchMatchedException();
|
|
3852
3854
|
}
|
|
3853
3855
|
}
|
|
3854
3856
|
tmp = tmp_0;
|
|
3855
3857
|
}
|
|
3856
|
-
var
|
|
3858
|
+
var tmp3_elvis_lhs = tmp;
|
|
3857
3859
|
var tmp_1;
|
|
3858
|
-
if (
|
|
3859
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi_0(reference.
|
|
3860
|
+
if (tmp3_elvis_lhs == null) {
|
|
3861
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi_0(reference.c1w_1);
|
|
3860
3862
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
3861
3863
|
} else {
|
|
3862
|
-
tmp_1 =
|
|
3864
|
+
tmp_1 = tmp3_elvis_lhs;
|
|
3863
3865
|
}
|
|
3864
3866
|
return tmp_1;
|
|
3865
3867
|
}
|
|
3866
3868
|
function resolveResponseObject_0(_this__u8e3s4, $this, reference) {
|
|
3867
|
-
var
|
|
3868
|
-
var
|
|
3869
|
-
var
|
|
3869
|
+
var tmp0_safe_receiver = _this__u8e3s4.q1q_1;
|
|
3870
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k1s_1;
|
|
3871
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f2(getReference_0(reference, $this));
|
|
3870
3872
|
var tmp;
|
|
3871
|
-
if (
|
|
3873
|
+
if (tmp2_safe_receiver == null) {
|
|
3872
3874
|
tmp = null;
|
|
3873
3875
|
} else {
|
|
3874
3876
|
// Inline function 'kotlin.let' call
|
|
3875
3877
|
// Inline function 'kotlin.contracts.contract' call
|
|
3876
3878
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.resolveResponseObject.<anonymous>' call
|
|
3877
3879
|
var tmp_0;
|
|
3878
|
-
if (
|
|
3879
|
-
tmp_0 = to(reference,
|
|
3880
|
+
if (tmp2_safe_receiver instanceof ResponseObject_0) {
|
|
3881
|
+
tmp_0 = to(reference, tmp2_safe_receiver);
|
|
3880
3882
|
} else {
|
|
3881
|
-
if (
|
|
3882
|
-
tmp_0 = resolveResponseObject_0(_this__u8e3s4, OpenApiV3Parser_instance,
|
|
3883
|
+
if (tmp2_safe_receiver instanceof ReferenceObject_0) {
|
|
3884
|
+
tmp_0 = resolveResponseObject_0(_this__u8e3s4, OpenApiV3Parser_instance, tmp2_safe_receiver);
|
|
3883
3885
|
} else {
|
|
3884
3886
|
noWhenBranchMatchedException();
|
|
3885
3887
|
}
|
|
3886
3888
|
}
|
|
3887
3889
|
tmp = tmp_0;
|
|
3888
3890
|
}
|
|
3889
|
-
var
|
|
3891
|
+
var tmp3_elvis_lhs = tmp;
|
|
3890
3892
|
var tmp_1;
|
|
3891
|
-
if (
|
|
3892
|
-
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi_0(reference.
|
|
3893
|
+
if (tmp3_elvis_lhs == null) {
|
|
3894
|
+
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi_0(reference.c1w_1);
|
|
3893
3895
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
3894
3896
|
} else {
|
|
3895
|
-
tmp_1 =
|
|
3897
|
+
tmp_1 = tmp3_elvis_lhs;
|
|
3896
3898
|
}
|
|
3897
3899
|
return tmp_1;
|
|
3898
3900
|
}
|
|
@@ -3902,7 +3904,7 @@
|
|
|
3902
3904
|
tmp = schemaOrReference;
|
|
3903
3905
|
} else {
|
|
3904
3906
|
if (schemaOrReference instanceof ReferenceObject_0) {
|
|
3905
|
-
tmp = resolveSchemaObject_0(_this__u8e3s4, $this, schemaOrReference).
|
|
3907
|
+
tmp = resolveSchemaObject_0(_this__u8e3s4, $this, schemaOrReference).de_1;
|
|
3906
3908
|
} else {
|
|
3907
3909
|
noWhenBranchMatchedException();
|
|
3908
3910
|
}
|
|
@@ -3915,7 +3917,7 @@
|
|
|
3915
3917
|
tmp = headerOrReference;
|
|
3916
3918
|
} else {
|
|
3917
3919
|
if (headerOrReference instanceof ReferenceObject_0) {
|
|
3918
|
-
tmp = resolveHeaderObject(_this__u8e3s4, $this, headerOrReference).
|
|
3920
|
+
tmp = resolveHeaderObject(_this__u8e3s4, $this, headerOrReference).de_1;
|
|
3919
3921
|
} else {
|
|
3920
3922
|
noWhenBranchMatchedException();
|
|
3921
3923
|
}
|
|
@@ -3928,7 +3930,7 @@
|
|
|
3928
3930
|
tmp = schemaOrReferenceOrBoolean;
|
|
3929
3931
|
} else {
|
|
3930
3932
|
if (schemaOrReferenceOrBoolean instanceof ReferenceObject_0) {
|
|
3931
|
-
tmp = resolveSchemaObject_0(_this__u8e3s4, $this, schemaOrReferenceOrBoolean).
|
|
3933
|
+
tmp = resolveSchemaObject_0(_this__u8e3s4, $this, schemaOrReferenceOrBoolean).de_1;
|
|
3932
3934
|
} else {
|
|
3933
3935
|
if (schemaOrReferenceOrBoolean instanceof BooleanObject_0) {
|
|
3934
3936
|
var reason = 'Not yet implemented';
|
|
@@ -3946,7 +3948,7 @@
|
|
|
3946
3948
|
tmp = requestBodyOrReference;
|
|
3947
3949
|
} else {
|
|
3948
3950
|
if (requestBodyOrReference instanceof ReferenceObject_0) {
|
|
3949
|
-
tmp = resolveRequestBodyObject(_this__u8e3s4, $this, requestBodyOrReference).
|
|
3951
|
+
tmp = resolveRequestBodyObject(_this__u8e3s4, $this, requestBodyOrReference).de_1;
|
|
3950
3952
|
} else {
|
|
3951
3953
|
noWhenBranchMatchedException();
|
|
3952
3954
|
}
|
|
@@ -3959,7 +3961,7 @@
|
|
|
3959
3961
|
tmp = responseOrReferenceObject;
|
|
3960
3962
|
} else {
|
|
3961
3963
|
if (responseOrReferenceObject instanceof ReferenceObject_0) {
|
|
3962
|
-
tmp = resolveResponseObject_0(_this__u8e3s4, $this, responseOrReferenceObject).
|
|
3964
|
+
tmp = resolveResponseObject_0(_this__u8e3s4, $this, responseOrReferenceObject).de_1;
|
|
3963
3965
|
} else {
|
|
3964
3966
|
noWhenBranchMatchedException();
|
|
3965
3967
|
}
|
|
@@ -3968,55 +3970,55 @@
|
|
|
3968
3970
|
}
|
|
3969
3971
|
function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
3970
3972
|
var tmp;
|
|
3971
|
-
if (!(schemaObject.
|
|
3973
|
+
if (!(schemaObject.v1w_1 == null)) {
|
|
3972
3974
|
var tmp_0;
|
|
3973
|
-
if (schemaObject.
|
|
3975
|
+
if (schemaObject.v1w_1 instanceof BooleanObject_0) {
|
|
3974
3976
|
tmp_0 = emptyList();
|
|
3975
3977
|
} else {
|
|
3976
|
-
var
|
|
3978
|
+
var tmp1_safe_receiver = schemaObject.v1w_1;
|
|
3977
3979
|
var tmp_1;
|
|
3978
|
-
if (
|
|
3980
|
+
if (tmp1_safe_receiver == null) {
|
|
3979
3981
|
tmp_1 = null;
|
|
3980
3982
|
} else {
|
|
3981
3983
|
// Inline function 'kotlin.let' call
|
|
3982
3984
|
// Inline function 'kotlin.contracts.contract' call
|
|
3983
3985
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
|
|
3984
|
-
tmp_1 = resolve_6(_this__u8e3s4, OpenApiV3Parser_instance,
|
|
3986
|
+
tmp_1 = resolve_6(_this__u8e3s4, OpenApiV3Parser_instance, tmp1_safe_receiver);
|
|
3985
3987
|
}
|
|
3986
|
-
var
|
|
3988
|
+
var tmp2_safe_receiver = tmp_1;
|
|
3987
3989
|
var tmp_2;
|
|
3988
|
-
if (
|
|
3990
|
+
if (tmp2_safe_receiver == null) {
|
|
3989
3991
|
tmp_2 = null;
|
|
3990
3992
|
} else {
|
|
3991
3993
|
// Inline function 'kotlin.takeIf' call
|
|
3992
3994
|
// Inline function 'kotlin.contracts.contract' call
|
|
3993
3995
|
var tmp_3;
|
|
3994
3996
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
|
|
3995
|
-
if (!(
|
|
3996
|
-
tmp_3 =
|
|
3997
|
+
if (!(tmp2_safe_receiver.u1w_1 == null)) {
|
|
3998
|
+
tmp_3 = tmp2_safe_receiver;
|
|
3997
3999
|
} else {
|
|
3998
4000
|
tmp_3 = null;
|
|
3999
4001
|
}
|
|
4000
4002
|
tmp_2 = tmp_3;
|
|
4001
4003
|
}
|
|
4002
|
-
var
|
|
4004
|
+
var tmp3_safe_receiver = tmp_2;
|
|
4003
4005
|
var tmp_4;
|
|
4004
|
-
if (
|
|
4006
|
+
if (tmp3_safe_receiver == null) {
|
|
4005
4007
|
tmp_4 = null;
|
|
4006
4008
|
} else {
|
|
4007
4009
|
// Inline function 'kotlin.let' call
|
|
4008
4010
|
// Inline function 'kotlin.contracts.contract' call
|
|
4009
4011
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
|
|
4010
|
-
tmp_4 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance,
|
|
4012
|
+
tmp_4 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, tmp3_safe_receiver, name);
|
|
4011
4013
|
}
|
|
4012
|
-
var
|
|
4013
|
-
tmp_0 =
|
|
4014
|
+
var tmp4_elvis_lhs = tmp_4;
|
|
4015
|
+
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
4014
4016
|
}
|
|
4015
4017
|
tmp = tmp_0;
|
|
4016
|
-
} else if (!(schemaObject.
|
|
4017
|
-
var tmp_5 = Companion_instance.
|
|
4018
|
+
} else if (!(schemaObject.q1w_1 == null) || !(schemaObject.r1w_1 == null)) {
|
|
4019
|
+
var tmp_5 = Companion_instance.b27(name);
|
|
4018
4020
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
4019
|
-
var this_0 = ensureNotNull(schemaObject.
|
|
4021
|
+
var this_0 = ensureNotNull(schemaObject.q1w_1);
|
|
4020
4022
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
4021
4023
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
4022
4024
|
var index = 0;
|
|
@@ -4032,7 +4034,7 @@
|
|
|
4032
4034
|
tmp_6 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, item);
|
|
4033
4035
|
} else {
|
|
4034
4036
|
if (item instanceof SchemaObject_0) {
|
|
4035
|
-
tmp_6 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, item, Common_instance.
|
|
4037
|
+
tmp_6 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, item, Common_instance.b2a([name, index_0.toString()]));
|
|
4036
4038
|
} else {
|
|
4037
4039
|
noWhenBranchMatchedException();
|
|
4038
4040
|
}
|
|
@@ -4043,7 +4045,7 @@
|
|
|
4043
4045
|
var tmp_7 = listOf(new Union(null, tmp_5, toSet(destination)));
|
|
4044
4046
|
// Inline function 'kotlin.collections.flatMapIndexed' call
|
|
4045
4047
|
// Inline function 'kotlin.collections.flatMapIndexedTo' call
|
|
4046
|
-
var this_1 = ensureNotNull(schemaObject.
|
|
4048
|
+
var this_1 = ensureNotNull(schemaObject.q1w_1);
|
|
4047
4049
|
var destination_0 = ArrayList_init_$Create$();
|
|
4048
4050
|
var index_1 = 0;
|
|
4049
4051
|
var tmp0_iterator_0 = this_1.g();
|
|
@@ -4058,7 +4060,7 @@
|
|
|
4058
4060
|
tmp_8 = emptyList();
|
|
4059
4061
|
} else {
|
|
4060
4062
|
if (element instanceof SchemaObject_0) {
|
|
4061
|
-
tmp_8 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, element, Common_instance.
|
|
4063
|
+
tmp_8 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, element, Common_instance.b2a([name, index_2.toString()]));
|
|
4062
4064
|
} else {
|
|
4063
4065
|
noWhenBranchMatchedException();
|
|
4064
4066
|
}
|
|
@@ -4067,14 +4069,14 @@
|
|
|
4067
4069
|
addAll(destination_0, list);
|
|
4068
4070
|
}
|
|
4069
4071
|
tmp = plus(tmp_7, destination_0);
|
|
4070
|
-
} else if (!(schemaObject.
|
|
4071
|
-
var tmp_9 = Companion_instance.
|
|
4072
|
+
} else if (!(schemaObject.p1w_1 == null)) {
|
|
4073
|
+
var tmp_9 = Companion_instance.b27(name);
|
|
4072
4074
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
4073
4075
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4074
4076
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4075
|
-
var
|
|
4077
|
+
var tmp0_elvis_lhs = schemaObject.p1w_1;
|
|
4076
4078
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4077
|
-
var this_2 =
|
|
4079
|
+
var this_2 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
4078
4080
|
var destination_1 = ArrayList_init_$Create$();
|
|
4079
4081
|
var tmp0_iterator_1 = this_2.g();
|
|
4080
4082
|
while (tmp0_iterator_1.h()) {
|
|
@@ -4089,7 +4091,7 @@
|
|
|
4089
4091
|
while (tmp0_iterator_2.h()) {
|
|
4090
4092
|
var e = tmp0_iterator_2.i();
|
|
4091
4093
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
|
|
4092
|
-
var key = e.
|
|
4094
|
+
var key = e.i24_1;
|
|
4093
4095
|
if (set.e(key)) {
|
|
4094
4096
|
list_1.e(e);
|
|
4095
4097
|
}
|
|
@@ -4097,7 +4099,7 @@
|
|
|
4097
4099
|
var tmp_10 = listOf(new Type(null, tmp_9, new Shape(list_1), emptyList()));
|
|
4098
4100
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4099
4101
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4100
|
-
var this_3 = ensureNotNull(schemaObject.
|
|
4102
|
+
var this_3 = ensureNotNull(schemaObject.p1w_1);
|
|
4101
4103
|
var destination_2 = ArrayList_init_$Create$();
|
|
4102
4104
|
var tmp0_iterator_3 = this_3.g();
|
|
4103
4105
|
while (tmp0_iterator_3.h()) {
|
|
@@ -4107,13 +4109,13 @@
|
|
|
4107
4109
|
var tmp_11;
|
|
4108
4110
|
if (element_1 instanceof ReferenceObject_0) {
|
|
4109
4111
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4110
|
-
var
|
|
4111
|
-
tmp_11 =
|
|
4112
|
+
var tmp0_elvis_lhs_0 = resolveSchemaObject_0(_this__u8e3s4, OpenApiV3Parser_instance, element_1).de_1.u1w_1;
|
|
4113
|
+
tmp_11 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
4112
4114
|
} else {
|
|
4113
4115
|
if (element_1 instanceof SchemaObject_0) {
|
|
4114
4116
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4115
|
-
var
|
|
4116
|
-
tmp_11 =
|
|
4117
|
+
var tmp0_elvis_lhs_1 = element_1.u1w_1;
|
|
4118
|
+
tmp_11 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
4117
4119
|
} else {
|
|
4118
4120
|
noWhenBranchMatchedException();
|
|
4119
4121
|
}
|
|
@@ -4130,44 +4132,44 @@
|
|
|
4130
4132
|
var key_0 = element_2.a1();
|
|
4131
4133
|
// Inline function 'kotlin.collections.component2' call
|
|
4132
4134
|
var value = element_2.b1();
|
|
4133
|
-
var list_2 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_instance.
|
|
4135
|
+
var list_2 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_instance.b2a([name, key_0]));
|
|
4134
4136
|
addAll(destination_3, list_2);
|
|
4135
4137
|
}
|
|
4136
4138
|
var list_3 = destination_3;
|
|
4137
4139
|
addAll(destination_2, list_3);
|
|
4138
4140
|
}
|
|
4139
4141
|
tmp = plus(tmp_10, destination_2);
|
|
4140
|
-
} else if (!(schemaObject.
|
|
4142
|
+
} else if (!(schemaObject.o1x_1 == null)) {
|
|
4141
4143
|
// Inline function 'kotlin.let' call
|
|
4142
4144
|
// Inline function 'kotlin.collections.map' call
|
|
4143
|
-
var this_5 = ensureNotNull(schemaObject.
|
|
4145
|
+
var this_5 = ensureNotNull(schemaObject.o1x_1);
|
|
4144
4146
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4145
4147
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_5, 10));
|
|
4146
4148
|
var tmp0_iterator_5 = this_5.g();
|
|
4147
4149
|
while (tmp0_iterator_5.h()) {
|
|
4148
4150
|
var item_0 = tmp0_iterator_5.i();
|
|
4149
4151
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
|
|
4150
|
-
var tmp$ret$29 = item_0.
|
|
4152
|
+
var tmp$ret$29 = item_0.f17();
|
|
4151
4153
|
destination_4.e(tmp$ret$29);
|
|
4152
4154
|
}
|
|
4153
4155
|
// Inline function 'kotlin.contracts.contract' call
|
|
4154
4156
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
|
|
4155
4157
|
var it = toSet(destination_4);
|
|
4156
|
-
tmp = listOf(new Enum(null, Companion_instance.
|
|
4158
|
+
tmp = listOf(new Enum(null, Companion_instance.b27(name), it));
|
|
4157
4159
|
} else {
|
|
4158
|
-
var
|
|
4160
|
+
var tmp5_subject = schemaObject.o1w_1;
|
|
4159
4161
|
var tmp_12;
|
|
4160
|
-
switch (
|
|
4162
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.q2_1) {
|
|
4161
4163
|
case -1:
|
|
4162
4164
|
case 5:
|
|
4163
4165
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4164
4166
|
|
|
4165
4167
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4166
4168
|
|
|
4167
|
-
var
|
|
4169
|
+
var tmp0_elvis_lhs_2 = schemaObject.u1w_1;
|
|
4168
4170
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4169
4171
|
|
|
4170
|
-
var this_6 =
|
|
4172
|
+
var this_6 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
4171
4173
|
var destination_5 = ArrayList_init_$Create$();
|
|
4172
4174
|
// Inline function 'kotlin.collections.iterator' call
|
|
4173
4175
|
|
|
@@ -4179,29 +4181,29 @@
|
|
|
4179
4181
|
var key_1 = element_3.a1();
|
|
4180
4182
|
// Inline function 'kotlin.collections.component2' call
|
|
4181
4183
|
var value_0 = element_3.b1();
|
|
4182
|
-
var list_4 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value_0, Common_instance.
|
|
4184
|
+
var list_4 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value_0, Common_instance.b2a([name, key_1]));
|
|
4183
4185
|
addAll(destination_5, list_4);
|
|
4184
4186
|
}
|
|
4185
4187
|
|
|
4186
4188
|
var fields = destination_5;
|
|
4187
|
-
var schema = listOf(new Type(null, Companion_instance.
|
|
4189
|
+
var schema = listOf(new Type(null, Companion_instance.b27(name), new Shape(toField_2(_this__u8e3s4, $this, schemaObject, name)), emptyList()));
|
|
4188
4190
|
tmp_12 = plus(schema, fields);
|
|
4189
4191
|
break;
|
|
4190
4192
|
case 4:
|
|
4191
|
-
var
|
|
4193
|
+
var tmp6_safe_receiver = schemaObject.t1w_1;
|
|
4192
4194
|
var tmp_13;
|
|
4193
|
-
if (
|
|
4195
|
+
if (tmp6_safe_receiver == null) {
|
|
4194
4196
|
tmp_13 = null;
|
|
4195
4197
|
} else {
|
|
4196
4198
|
// Inline function 'kotlin.let' call
|
|
4197
4199
|
// Inline function 'kotlin.contracts.contract' call
|
|
4198
4200
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
|
|
4199
4201
|
var tmp_14;
|
|
4200
|
-
if (
|
|
4202
|
+
if (tmp6_safe_receiver instanceof ReferenceObject_0) {
|
|
4201
4203
|
tmp_14 = emptyList();
|
|
4202
4204
|
} else {
|
|
4203
|
-
if (
|
|
4204
|
-
tmp_14 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance,
|
|
4205
|
+
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
4206
|
+
tmp_14 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, tmp6_safe_receiver, Common_instance.b2a([name, 'array']));
|
|
4205
4207
|
} else {
|
|
4206
4208
|
noWhenBranchMatchedException();
|
|
4207
4209
|
}
|
|
@@ -4209,8 +4211,8 @@
|
|
|
4209
4211
|
tmp_13 = tmp_14;
|
|
4210
4212
|
}
|
|
4211
4213
|
|
|
4212
|
-
var
|
|
4213
|
-
tmp_12 =
|
|
4214
|
+
var tmp7_elvis_lhs = tmp_13;
|
|
4215
|
+
tmp_12 = tmp7_elvis_lhs == null ? emptyList() : tmp7_elvis_lhs;
|
|
4214
4216
|
break;
|
|
4215
4217
|
default:
|
|
4216
4218
|
tmp_12 = emptyList();
|
|
@@ -4238,11 +4240,11 @@
|
|
|
4238
4240
|
// Inline function 'kotlin.contracts.contract' call
|
|
4239
4241
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toReference.<anonymous>' call
|
|
4240
4242
|
var destruct = resolveSchemaObject_0(_this__u8e3s4, $this, reference);
|
|
4241
|
-
var referencingObject = destruct.
|
|
4242
|
-
var schema = destruct.
|
|
4243
|
+
var referencingObject = destruct.qd();
|
|
4244
|
+
var schema = destruct.rd();
|
|
4243
4245
|
var tmp;
|
|
4244
|
-
if (!(schema.
|
|
4245
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4246
|
+
if (!(schema.v1w_1 == null)) {
|
|
4247
|
+
var additionalProperties = ensureNotNull(schema.v1w_1);
|
|
4246
4248
|
var tmp_0;
|
|
4247
4249
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
4248
4250
|
tmp_0 = new Any(false, true);
|
|
@@ -4258,24 +4260,24 @@
|
|
|
4258
4260
|
}
|
|
4259
4261
|
}
|
|
4260
4262
|
tmp = tmp_0;
|
|
4261
|
-
} else if (!(schema.
|
|
4262
|
-
tmp = new Custom(Common_instance.
|
|
4263
|
-
} else if (isPrimitive_0(schema.
|
|
4264
|
-
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.
|
|
4263
|
+
} else if (!(schema.o1x_1 == null)) {
|
|
4264
|
+
tmp = new Custom(Common_instance.b2a([getReference_0(referencingObject, OpenApiV3Parser_instance)]), false, false);
|
|
4265
|
+
} else if (isPrimitive_0(schema.o1w_1)) {
|
|
4266
|
+
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.o1w_1), OpenApiV3Parser_instance), false, false);
|
|
4265
4267
|
} else {
|
|
4266
|
-
var
|
|
4268
|
+
var tmp0_subject = schema.o1w_1;
|
|
4267
4269
|
var tmp_1;
|
|
4268
|
-
if ((
|
|
4269
|
-
var items = schema.
|
|
4270
|
+
if ((tmp0_subject == null ? -1 : tmp0_subject.q2_1) === 4) {
|
|
4271
|
+
var items = schema.t1w_1;
|
|
4270
4272
|
var tmp_2;
|
|
4271
4273
|
if (items instanceof ReferenceObject_0) {
|
|
4272
|
-
tmp_2 = new Custom(Common_instance.
|
|
4274
|
+
tmp_2 = new Custom(Common_instance.b2a([getReference_0(items, OpenApiV3Parser_instance)]), true);
|
|
4273
4275
|
} else {
|
|
4274
4276
|
if (items instanceof SchemaObject_0) {
|
|
4275
|
-
tmp_2 = new Custom(Common_instance.
|
|
4277
|
+
tmp_2 = new Custom(Common_instance.b2a([getReference_0(referencingObject, OpenApiV3Parser_instance), 'Array']), true);
|
|
4276
4278
|
} else {
|
|
4277
4279
|
if (items == null) {
|
|
4278
|
-
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi_0(reference.
|
|
4280
|
+
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi_0(reference.c1w_1);
|
|
4279
4281
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4280
4282
|
} else {
|
|
4281
4283
|
noWhenBranchMatchedException();
|
|
@@ -4284,7 +4286,7 @@
|
|
|
4284
4286
|
}
|
|
4285
4287
|
tmp_1 = tmp_2;
|
|
4286
4288
|
} else {
|
|
4287
|
-
tmp_1 = new Custom(Common_instance.
|
|
4289
|
+
tmp_1 = new Custom(Common_instance.b2a([getReference_0(referencingObject, OpenApiV3Parser_instance)]), false);
|
|
4288
4290
|
}
|
|
4289
4291
|
tmp = tmp_1;
|
|
4290
4292
|
}
|
|
@@ -4292,8 +4294,8 @@
|
|
|
4292
4294
|
}
|
|
4293
4295
|
function toReference_2(_this__u8e3s4, $this, schema, name) {
|
|
4294
4296
|
var tmp;
|
|
4295
|
-
if (!(schema.
|
|
4296
|
-
var additionalProperties = ensureNotNull(schema.
|
|
4297
|
+
if (!(schema.v1w_1 == null)) {
|
|
4298
|
+
var additionalProperties = ensureNotNull(schema.v1w_1);
|
|
4297
4299
|
var tmp_0;
|
|
4298
4300
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
4299
4301
|
tmp_0 = new Any(false, true);
|
|
@@ -4306,55 +4308,55 @@
|
|
|
4306
4308
|
// Inline function 'kotlin.contracts.contract' call
|
|
4307
4309
|
var tmp_1;
|
|
4308
4310
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toReference.<anonymous>' call
|
|
4309
|
-
if (isPrimitive_0(additionalProperties.
|
|
4311
|
+
if (isPrimitive_0(additionalProperties.o1w_1) || !(additionalProperties.u1w_1 == null)) {
|
|
4310
4312
|
tmp_1 = additionalProperties;
|
|
4311
4313
|
} else {
|
|
4312
4314
|
tmp_1 = null;
|
|
4313
4315
|
}
|
|
4314
|
-
var
|
|
4316
|
+
var tmp0_safe_receiver = tmp_1;
|
|
4315
4317
|
var tmp_2;
|
|
4316
|
-
if (
|
|
4318
|
+
if (tmp0_safe_receiver == null) {
|
|
4317
4319
|
tmp_2 = null;
|
|
4318
4320
|
} else {
|
|
4319
4321
|
// Inline function 'kotlin.let' call
|
|
4320
4322
|
// Inline function 'kotlin.contracts.contract' call
|
|
4321
4323
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toReference.<anonymous>' call
|
|
4322
|
-
tmp_2 = toMap_1(toReference_2(_this__u8e3s4, OpenApiV3Parser_instance,
|
|
4324
|
+
tmp_2 = toMap_1(toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp0_safe_receiver, name));
|
|
4323
4325
|
}
|
|
4324
|
-
var
|
|
4325
|
-
tmp_0 =
|
|
4326
|
+
var tmp1_elvis_lhs = tmp_2;
|
|
4327
|
+
tmp_0 = tmp1_elvis_lhs == null ? new Any(false, true) : tmp1_elvis_lhs;
|
|
4326
4328
|
} else {
|
|
4327
4329
|
noWhenBranchMatchedException();
|
|
4328
4330
|
}
|
|
4329
4331
|
}
|
|
4330
4332
|
}
|
|
4331
4333
|
tmp = tmp_0;
|
|
4332
|
-
} else if (!(schema.
|
|
4333
|
-
tmp = new Custom(name, false, !(schema.
|
|
4334
|
+
} else if (!(schema.o1x_1 == null)) {
|
|
4335
|
+
tmp = new Custom(name, false, !(schema.v1w_1 == null));
|
|
4334
4336
|
} else {
|
|
4335
|
-
var type = schema.
|
|
4337
|
+
var type = schema.o1w_1;
|
|
4336
4338
|
var tmp_3;
|
|
4337
4339
|
switch (type == null ? -1 : type.q2_1) {
|
|
4338
4340
|
case 0:
|
|
4339
4341
|
case 1:
|
|
4340
4342
|
case 2:
|
|
4341
4343
|
case 3:
|
|
4342
|
-
tmp_3 = new Primitive(toPrimitive_0(type, $this), false, !(schema.
|
|
4344
|
+
tmp_3 = new Primitive(toPrimitive_0(type, $this), false, !(schema.v1w_1 == null));
|
|
4343
4345
|
break;
|
|
4344
4346
|
case -1:
|
|
4345
4347
|
case 5:
|
|
4346
4348
|
var tmp_4;
|
|
4347
|
-
var tmp_5 = schema.
|
|
4349
|
+
var tmp_5 = schema.v1w_1;
|
|
4348
4350
|
if (tmp_5 instanceof BooleanObject_0) {
|
|
4349
|
-
tmp_4 = new Any(false, !(schema.
|
|
4351
|
+
tmp_4 = new Any(false, !(schema.v1w_1 == null));
|
|
4350
4352
|
} else {
|
|
4351
|
-
tmp_4 = new Custom(name, false, !(schema.
|
|
4353
|
+
tmp_4 = new Custom(name, false, !(schema.v1w_1 == null));
|
|
4352
4354
|
}
|
|
4353
4355
|
|
|
4354
4356
|
tmp_3 = tmp_4;
|
|
4355
4357
|
break;
|
|
4356
4358
|
case 4:
|
|
4357
|
-
var it = schema.
|
|
4359
|
+
var it = schema.t1w_1;
|
|
4358
4360
|
var tmp_6;
|
|
4359
4361
|
if (it instanceof ReferenceObject_0) {
|
|
4360
4362
|
tmp_6 = toIterable_0(toReference_1(_this__u8e3s4, $this, it));
|
|
@@ -4394,28 +4396,28 @@
|
|
|
4394
4396
|
var tmp_0;
|
|
4395
4397
|
switch (element.q2_1) {
|
|
4396
4398
|
case 0:
|
|
4397
|
-
tmp_0 = _this__u8e3s4.
|
|
4399
|
+
tmp_0 = _this__u8e3s4.v1r_1;
|
|
4398
4400
|
break;
|
|
4399
4401
|
case 1:
|
|
4400
|
-
tmp_0 = _this__u8e3s4.
|
|
4402
|
+
tmp_0 = _this__u8e3s4.x1r_1;
|
|
4401
4403
|
break;
|
|
4402
4404
|
case 2:
|
|
4403
|
-
tmp_0 = _this__u8e3s4.
|
|
4405
|
+
tmp_0 = _this__u8e3s4.w1r_1;
|
|
4404
4406
|
break;
|
|
4405
4407
|
case 3:
|
|
4406
|
-
tmp_0 = _this__u8e3s4.
|
|
4408
|
+
tmp_0 = _this__u8e3s4.y1r_1;
|
|
4407
4409
|
break;
|
|
4408
4410
|
case 4:
|
|
4409
|
-
tmp_0 = _this__u8e3s4.
|
|
4411
|
+
tmp_0 = _this__u8e3s4.z1r_1;
|
|
4410
4412
|
break;
|
|
4411
4413
|
case 5:
|
|
4412
|
-
tmp_0 = _this__u8e3s4.
|
|
4414
|
+
tmp_0 = _this__u8e3s4.a1s_1;
|
|
4413
4415
|
break;
|
|
4414
4416
|
case 6:
|
|
4415
|
-
tmp_0 = _this__u8e3s4.
|
|
4417
|
+
tmp_0 = _this__u8e3s4.b1s_1;
|
|
4416
4418
|
break;
|
|
4417
4419
|
case 7:
|
|
4418
|
-
tmp_0 = _this__u8e3s4.
|
|
4420
|
+
tmp_0 = _this__u8e3s4.c1s_1;
|
|
4419
4421
|
break;
|
|
4420
4422
|
default:
|
|
4421
4423
|
noWhenBranchMatchedException();
|
|
@@ -4424,13 +4426,13 @@
|
|
|
4424
4426
|
var tmp$ret$0 = tmp_0;
|
|
4425
4427
|
result.m2(element, tmp$ret$0);
|
|
4426
4428
|
}
|
|
4427
|
-
return tmp.
|
|
4429
|
+
return tmp.c2a(result);
|
|
4428
4430
|
}
|
|
4429
4431
|
function getReference_0(_this__u8e3s4, $this) {
|
|
4430
|
-
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
4432
|
+
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.c1w_1), ['/']), 3);
|
|
4431
4433
|
var tmp;
|
|
4432
4434
|
if (tmp0_elvis_lhs == null) {
|
|
4433
|
-
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
4435
|
+
var message = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.c1w_1);
|
|
4434
4436
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4435
4437
|
} else {
|
|
4436
4438
|
tmp = tmp0_elvis_lhs;
|
|
@@ -4461,7 +4463,7 @@
|
|
|
4461
4463
|
function toField_2(_this__u8e3s4, $this, schema, name) {
|
|
4462
4464
|
// Inline function 'kotlin.collections.map' call
|
|
4463
4465
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4464
|
-
var tmp0_elvis_lhs = schema.
|
|
4466
|
+
var tmp0_elvis_lhs = schema.u1w_1;
|
|
4465
4467
|
var this_0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
4466
4468
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4467
4469
|
var destination = ArrayList_init_$Create$_0(this_0.j());
|
|
@@ -4476,18 +4478,18 @@
|
|
|
4476
4478
|
var value = item.b1();
|
|
4477
4479
|
var tmp;
|
|
4478
4480
|
if (value instanceof SchemaObject_0) {
|
|
4479
|
-
var tmp_0 = Companion_instance.
|
|
4480
|
-
var tmp_1 = !(value.
|
|
4481
|
-
var
|
|
4482
|
-
var
|
|
4483
|
-
tmp = new Field(tmp_0, tmp_1, !(
|
|
4481
|
+
var tmp_0 = Companion_instance.b27(key);
|
|
4482
|
+
var tmp_1 = !(value.o1x_1 == null) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_instance.b2a([name, key])) : equals(value.o1w_1, Type_ARRAY_getInstance_0()) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_instance.b2a([name, key, 'Array'])) : toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_instance.b2a([name, key]));
|
|
4483
|
+
var tmp1_safe_receiver = schema.n1x_1;
|
|
4484
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p1(key);
|
|
4485
|
+
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
4484
4486
|
} else {
|
|
4485
4487
|
if (value instanceof ReferenceObject_0) {
|
|
4486
|
-
var tmp_2 = Companion_instance.
|
|
4487
|
-
var tmp_3 = new Custom(Common_instance.
|
|
4488
|
-
var
|
|
4489
|
-
var
|
|
4490
|
-
tmp = new Field(tmp_2, tmp_3, !(
|
|
4488
|
+
var tmp_2 = Companion_instance.b27(key);
|
|
4489
|
+
var tmp_3 = new Custom(Common_instance.b2a([getReference_0(value, OpenApiV3Parser_instance)]), false);
|
|
4490
|
+
var tmp3_safe_receiver = schema.n1x_1;
|
|
4491
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.p1(key);
|
|
4492
|
+
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
4491
4493
|
} else {
|
|
4492
4494
|
noWhenBranchMatchedException();
|
|
4493
4495
|
}
|
|
@@ -4499,7 +4501,7 @@
|
|
|
4499
4501
|
}
|
|
4500
4502
|
function toField_3(_this__u8e3s4, $this, parameter, name) {
|
|
4501
4503
|
// Inline function 'kotlin.let' call
|
|
4502
|
-
var s = parameter.
|
|
4504
|
+
var s = parameter.s1v_1;
|
|
4503
4505
|
var tmp;
|
|
4504
4506
|
if (s instanceof ReferenceObject_0) {
|
|
4505
4507
|
tmp = toReference_1(_this__u8e3s4, $this, s);
|
|
@@ -4517,13 +4519,13 @@
|
|
|
4517
4519
|
// Inline function 'kotlin.contracts.contract' call
|
|
4518
4520
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toField.<anonymous>' call
|
|
4519
4521
|
var it = tmp;
|
|
4520
|
-
var tmp_0 = Companion_instance.
|
|
4521
|
-
var tmp0_elvis_lhs = parameter.
|
|
4522
|
+
var tmp_0 = Companion_instance.b27(parameter.w1v_1);
|
|
4523
|
+
var tmp0_elvis_lhs = parameter.m1v_1;
|
|
4522
4524
|
return new Field(tmp_0, it, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
4523
4525
|
}
|
|
4524
4526
|
function toField_4(_this__u8e3s4, $this, header, identifier, name) {
|
|
4525
4527
|
// Inline function 'kotlin.let' call
|
|
4526
|
-
var s = header.
|
|
4528
|
+
var s = header.s1y_1;
|
|
4527
4529
|
var tmp;
|
|
4528
4530
|
if (s instanceof ReferenceObject_0) {
|
|
4529
4531
|
tmp = toReference_1(_this__u8e3s4, $this, s);
|
|
@@ -4541,24 +4543,24 @@
|
|
|
4541
4543
|
// Inline function 'kotlin.contracts.contract' call
|
|
4542
4544
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toField.<anonymous>' call
|
|
4543
4545
|
var it = tmp;
|
|
4544
|
-
var tmp_0 = Companion_instance.
|
|
4545
|
-
var tmp0_elvis_lhs = header.
|
|
4546
|
+
var tmp_0 = Companion_instance.b27(identifier);
|
|
4547
|
+
var tmp0_elvis_lhs = header.m1y_1;
|
|
4546
4548
|
return new Field(tmp_0, it, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
4547
4549
|
}
|
|
4548
4550
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
4549
|
-
this.
|
|
4550
|
-
this.
|
|
4551
|
-
this.
|
|
4552
|
-
this.
|
|
4551
|
+
this.w2a_1 = path;
|
|
4552
|
+
this.x2a_1 = pathItem;
|
|
4553
|
+
this.y2a_1 = method;
|
|
4554
|
+
this.z2a_1 = operation;
|
|
4553
4555
|
}
|
|
4554
4556
|
protoOf(FlattenRequest_0).toString = function () {
|
|
4555
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
4557
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.w2a_1) + ', pathItem=' + this.x2a_1.toString() + ', method=' + this.y2a_1.toString() + ', operation=' + this.z2a_1.toString() + ')';
|
|
4556
4558
|
};
|
|
4557
4559
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
4558
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
4559
|
-
result = imul(result, 31) + this.
|
|
4560
|
-
result = imul(result, 31) + this.
|
|
4561
|
-
result = imul(result, 31) + this.
|
|
4560
|
+
var result = Path__hashCode_impl_go73kd_0(this.w2a_1);
|
|
4561
|
+
result = imul(result, 31) + this.x2a_1.hashCode() | 0;
|
|
4562
|
+
result = imul(result, 31) + this.y2a_1.hashCode() | 0;
|
|
4563
|
+
result = imul(result, 31) + this.z2a_1.hashCode() | 0;
|
|
4562
4564
|
return result;
|
|
4563
4565
|
};
|
|
4564
4566
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -4567,13 +4569,13 @@
|
|
|
4567
4569
|
if (!(other instanceof FlattenRequest_0))
|
|
4568
4570
|
return false;
|
|
4569
4571
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
4570
|
-
if (!(this.
|
|
4572
|
+
if (!(this.w2a_1 === tmp0_other_with_cast.w2a_1))
|
|
4571
4573
|
return false;
|
|
4572
|
-
if (!this.
|
|
4574
|
+
if (!this.x2a_1.equals(tmp0_other_with_cast.x2a_1))
|
|
4573
4575
|
return false;
|
|
4574
|
-
if (!this.
|
|
4576
|
+
if (!this.y2a_1.equals(tmp0_other_with_cast.y2a_1))
|
|
4575
4577
|
return false;
|
|
4576
|
-
if (!this.
|
|
4578
|
+
if (!this.z2a_1.equals(tmp0_other_with_cast.z2a_1))
|
|
4577
4579
|
return false;
|
|
4578
4580
|
return true;
|
|
4579
4581
|
};
|
|
@@ -4581,7 +4583,7 @@
|
|
|
4581
4583
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4582
4584
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4583
4585
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4584
|
-
var this_0 = _this__u8e3s4.
|
|
4586
|
+
var this_0 = _this__u8e3s4.p1q_1;
|
|
4585
4587
|
var destination = ArrayList_init_$Create$();
|
|
4586
4588
|
// Inline function 'kotlin.collections.iterator' call
|
|
4587
4589
|
var tmp0_iterator = this_0.z().g();
|
|
@@ -4589,7 +4591,7 @@
|
|
|
4589
4591
|
var element = tmp0_iterator.i();
|
|
4590
4592
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatMapRequests.<anonymous>' call
|
|
4591
4593
|
// Inline function 'kotlin.collections.component1' call
|
|
4592
|
-
var path = element.a1().
|
|
4594
|
+
var path = element.a1().o1r_1;
|
|
4593
4595
|
// Inline function 'kotlin.collections.component2' call
|
|
4594
4596
|
var pathItem = element.b1();
|
|
4595
4597
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -4622,23 +4624,23 @@
|
|
|
4622
4624
|
return destination_1;
|
|
4623
4625
|
}
|
|
4624
4626
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
4625
|
-
this.
|
|
4626
|
-
this.
|
|
4627
|
-
this.
|
|
4628
|
-
this.
|
|
4629
|
-
this.
|
|
4630
|
-
this.
|
|
4627
|
+
this.a2b_1 = path;
|
|
4628
|
+
this.b2b_1 = pathItem;
|
|
4629
|
+
this.c2b_1 = method;
|
|
4630
|
+
this.d2b_1 = operation;
|
|
4631
|
+
this.e2b_1 = statusCode;
|
|
4632
|
+
this.f2b_1 = response;
|
|
4631
4633
|
}
|
|
4632
4634
|
protoOf(FlattenResponse_0).toString = function () {
|
|
4633
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
4635
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.a2b_1) + ', pathItem=' + this.b2b_1.toString() + ', method=' + this.c2b_1.toString() + ', operation=' + this.d2b_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy_0(this.e2b_1) + ', response=' + toString(this.f2b_1) + ')';
|
|
4634
4636
|
};
|
|
4635
4637
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
4636
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
4637
|
-
result = imul(result, 31) + this.
|
|
4638
|
-
result = imul(result, 31) + this.
|
|
4639
|
-
result = imul(result, 31) + this.
|
|
4640
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.
|
|
4641
|
-
result = imul(result, 31) + hashCode(this.
|
|
4638
|
+
var result = Path__hashCode_impl_go73kd_0(this.a2b_1);
|
|
4639
|
+
result = imul(result, 31) + this.b2b_1.hashCode() | 0;
|
|
4640
|
+
result = imul(result, 31) + this.c2b_1.hashCode() | 0;
|
|
4641
|
+
result = imul(result, 31) + this.d2b_1.hashCode() | 0;
|
|
4642
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.e2b_1) | 0;
|
|
4643
|
+
result = imul(result, 31) + hashCode(this.f2b_1) | 0;
|
|
4642
4644
|
return result;
|
|
4643
4645
|
};
|
|
4644
4646
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -4647,17 +4649,17 @@
|
|
|
4647
4649
|
if (!(other instanceof FlattenResponse_0))
|
|
4648
4650
|
return false;
|
|
4649
4651
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
4650
|
-
if (!(this.
|
|
4652
|
+
if (!(this.a2b_1 === tmp0_other_with_cast.a2b_1))
|
|
4651
4653
|
return false;
|
|
4652
|
-
if (!this.
|
|
4654
|
+
if (!this.b2b_1.equals(tmp0_other_with_cast.b2b_1))
|
|
4653
4655
|
return false;
|
|
4654
|
-
if (!this.
|
|
4656
|
+
if (!this.c2b_1.equals(tmp0_other_with_cast.c2b_1))
|
|
4655
4657
|
return false;
|
|
4656
|
-
if (!this.
|
|
4658
|
+
if (!this.d2b_1.equals(tmp0_other_with_cast.d2b_1))
|
|
4657
4659
|
return false;
|
|
4658
|
-
if (!(this.
|
|
4660
|
+
if (!(this.e2b_1 === tmp0_other_with_cast.e2b_1))
|
|
4659
4661
|
return false;
|
|
4660
|
-
if (!equals(this.
|
|
4662
|
+
if (!equals(this.f2b_1, tmp0_other_with_cast.f2b_1))
|
|
4661
4663
|
return false;
|
|
4662
4664
|
return true;
|
|
4663
4665
|
};
|
|
@@ -4665,7 +4667,7 @@
|
|
|
4665
4667
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4666
4668
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4667
4669
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4668
|
-
var this_0 = _this__u8e3s4.
|
|
4670
|
+
var this_0 = _this__u8e3s4.p1q_1;
|
|
4669
4671
|
var destination = ArrayList_init_$Create$();
|
|
4670
4672
|
// Inline function 'kotlin.collections.iterator' call
|
|
4671
4673
|
var tmp0_iterator = this_0.z().g();
|
|
@@ -4673,7 +4675,7 @@
|
|
|
4673
4675
|
var element = tmp0_iterator.i();
|
|
4674
4676
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatMapResponses.<anonymous>' call
|
|
4675
4677
|
// Inline function 'kotlin.collections.component1' call
|
|
4676
|
-
var path = element.a1().
|
|
4678
|
+
var path = element.a1().o1r_1;
|
|
4677
4679
|
// Inline function 'kotlin.collections.component2' call
|
|
4678
4680
|
var pathItem = element.b1();
|
|
4679
4681
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -4690,21 +4692,21 @@
|
|
|
4690
4692
|
// Inline function 'kotlin.collections.component2' call
|
|
4691
4693
|
var operation = element_0.b1();
|
|
4692
4694
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4693
|
-
var
|
|
4695
|
+
var tmp0_safe_receiver = operation.a1u_1;
|
|
4694
4696
|
var tmp;
|
|
4695
|
-
if (
|
|
4697
|
+
if (tmp0_safe_receiver == null) {
|
|
4696
4698
|
tmp = null;
|
|
4697
4699
|
} else {
|
|
4698
4700
|
// Inline function 'kotlin.collections.map' call
|
|
4699
4701
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4700
|
-
var destination_1 = ArrayList_init_$Create$_0(
|
|
4702
|
+
var destination_1 = ArrayList_init_$Create$_0(tmp0_safe_receiver.j());
|
|
4701
4703
|
// Inline function 'kotlin.collections.iterator' call
|
|
4702
|
-
var tmp0_iterator_1 =
|
|
4704
|
+
var tmp0_iterator_1 = tmp0_safe_receiver.z().g();
|
|
4703
4705
|
while (tmp0_iterator_1.h()) {
|
|
4704
4706
|
var item = tmp0_iterator_1.i();
|
|
4705
4707
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
4706
4708
|
// Inline function 'kotlin.collections.component1' call
|
|
4707
|
-
var statusCode = item.a1().
|
|
4709
|
+
var statusCode = item.a1().i1v_1;
|
|
4708
4710
|
// Inline function 'kotlin.collections.component2' call
|
|
4709
4711
|
var response = item.b1();
|
|
4710
4712
|
var tmp$ret$9 = new FlattenResponse_0(path, pathItem, method, operation, statusCode, response);
|
|
@@ -4731,16 +4733,16 @@
|
|
|
4731
4733
|
}
|
|
4732
4734
|
function OpenApiV3Parser$parse$lambda($strict) {
|
|
4733
4735
|
return function ($this$Json) {
|
|
4734
|
-
$this$Json.
|
|
4735
|
-
$this$Json.
|
|
4736
|
+
$this$Json.x15_1 = true;
|
|
4737
|
+
$this$Json.v15_1 = $strict;
|
|
4736
4738
|
return Unit_instance;
|
|
4737
4739
|
};
|
|
4738
4740
|
}
|
|
4739
4741
|
function OpenApiV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
4740
4742
|
return function ($this$flatMapRequests) {
|
|
4741
|
-
var parameters = plus(resolveParameters_2($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.
|
|
4742
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
4743
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
4743
|
+
var parameters = plus(resolveParameters_2($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.x2a_1), resolveParameters_1($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.z2a_1));
|
|
4744
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.z2a_1, OpenApiV3Parser_instance);
|
|
4745
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.w2a_1, OpenApiV3Parser_instance) + $this$flatMapRequests.y2a_1.p2_1 : tmp0_elvis_lhs;
|
|
4744
4746
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4745
4747
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4746
4748
|
var destination = ArrayList_init_$Create$();
|
|
@@ -4748,18 +4750,18 @@
|
|
|
4748
4750
|
while (tmp0_iterator.h()) {
|
|
4749
4751
|
var element = tmp0_iterator.i();
|
|
4750
4752
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseParameters.<anonymous>.<anonymous>' call
|
|
4751
|
-
var
|
|
4753
|
+
var tmp0_safe_receiver = element.s1v_1;
|
|
4752
4754
|
var tmp;
|
|
4753
|
-
if (
|
|
4755
|
+
if (tmp0_safe_receiver == null) {
|
|
4754
4756
|
tmp = null;
|
|
4755
4757
|
} else {
|
|
4756
4758
|
// Inline function 'kotlin.let' call
|
|
4757
4759
|
// Inline function 'kotlin.contracts.contract' call
|
|
4758
4760
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
4759
|
-
tmp = flatten_2($this_parseParameters, OpenApiV3Parser_instance,
|
|
4761
|
+
tmp = flatten_2($this_parseParameters, OpenApiV3Parser_instance, tmp0_safe_receiver, Common_instance.b2a([name, 'Parameter', element.w1v_1]));
|
|
4760
4762
|
}
|
|
4761
|
-
var
|
|
4762
|
-
var list =
|
|
4763
|
+
var tmp1_elvis_lhs = tmp;
|
|
4764
|
+
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
4763
4765
|
addAll(destination, list);
|
|
4764
4766
|
}
|
|
4765
4767
|
return destination;
|
|
@@ -4767,22 +4769,22 @@
|
|
|
4767
4769
|
}
|
|
4768
4770
|
function OpenApiV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
4769
4771
|
return function ($this$flatMapRequests) {
|
|
4770
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
4771
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
4772
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.z2a_1, OpenApiV3Parser_instance);
|
|
4773
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.w2a_1, OpenApiV3Parser_instance) + $this$flatMapRequests.y2a_1.p2_1 : tmp0_elvis_lhs;
|
|
4772
4774
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4773
4775
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4774
|
-
var
|
|
4776
|
+
var tmp1_safe_receiver = $this$flatMapRequests.z2a_1.z1t_1;
|
|
4775
4777
|
var tmp;
|
|
4776
|
-
if (
|
|
4778
|
+
if (tmp1_safe_receiver == null) {
|
|
4777
4779
|
tmp = null;
|
|
4778
4780
|
} else {
|
|
4779
4781
|
// Inline function 'kotlin.let' call
|
|
4780
4782
|
// Inline function 'kotlin.contracts.contract' call
|
|
4781
4783
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
4782
|
-
tmp = resolve_7($this_parseRequestBody, OpenApiV3Parser_instance,
|
|
4784
|
+
tmp = resolve_7($this_parseRequestBody, OpenApiV3Parser_instance, tmp1_safe_receiver);
|
|
4783
4785
|
}
|
|
4784
|
-
var
|
|
4785
|
-
var tmp0_elvis_lhs_0 =
|
|
4786
|
+
var tmp2_safe_receiver = tmp;
|
|
4787
|
+
var tmp0_elvis_lhs_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.g1y_1;
|
|
4786
4788
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4787
4789
|
var this_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
4788
4790
|
var destination = ArrayList_init_$Create$();
|
|
@@ -4793,28 +4795,28 @@
|
|
|
4793
4795
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
4794
4796
|
// Inline function 'kotlin.collections.component2' call
|
|
4795
4797
|
var mediaObject = element.b1();
|
|
4796
|
-
var schema = mediaObject.
|
|
4798
|
+
var schema = mediaObject.z1z_1;
|
|
4797
4799
|
var tmp_0;
|
|
4798
4800
|
if (schema instanceof SchemaObject_0) {
|
|
4799
|
-
var
|
|
4801
|
+
var tmp0_subject = schema.o1w_1;
|
|
4800
4802
|
var tmp_1;
|
|
4801
|
-
switch (
|
|
4803
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.q2_1) {
|
|
4802
4804
|
case -1:
|
|
4803
4805
|
case 5:
|
|
4804
|
-
tmp_1 = flatten_1($this_parseRequestBody, OpenApiV3Parser_instance, schema, Common_instance.
|
|
4806
|
+
tmp_1 = flatten_1($this_parseRequestBody, OpenApiV3Parser_instance, schema, Common_instance.b2a([name, 'RequestBody']));
|
|
4805
4807
|
break;
|
|
4806
4808
|
case 4:
|
|
4807
4809
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4808
4810
|
|
|
4809
|
-
var
|
|
4811
|
+
var tmp1_safe_receiver_0 = schema.t1w_1;
|
|
4810
4812
|
var tmp_2;
|
|
4811
|
-
if (
|
|
4813
|
+
if (tmp1_safe_receiver_0 == null) {
|
|
4812
4814
|
tmp_2 = null;
|
|
4813
4815
|
} else {
|
|
4814
4816
|
// Inline function 'kotlin.let' call
|
|
4815
4817
|
// Inline function 'kotlin.contracts.contract' call
|
|
4816
4818
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
4817
|
-
tmp_2 = flatten_2($this_parseRequestBody, OpenApiV3Parser_instance,
|
|
4819
|
+
tmp_2 = flatten_2($this_parseRequestBody, OpenApiV3Parser_instance, tmp1_safe_receiver_0, Common_instance.b2a([name, 'RequestBody']));
|
|
4818
4820
|
}
|
|
4819
4821
|
|
|
4820
4822
|
var tmp0_elvis_lhs_1 = tmp_2;
|
|
@@ -4846,14 +4848,14 @@
|
|
|
4846
4848
|
}
|
|
4847
4849
|
function OpenApiV3Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
4848
4850
|
return function ($this$flatMapResponses) {
|
|
4849
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.
|
|
4850
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.
|
|
4851
|
-
var response = $this$flatMapResponses.
|
|
4851
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.d2b_1, OpenApiV3Parser_instance);
|
|
4852
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.a2b_1, OpenApiV3Parser_instance) + $this$flatMapResponses.c2b_1.p2_1 : tmp0_elvis_lhs;
|
|
4853
|
+
var response = $this$flatMapResponses.f2b_1;
|
|
4852
4854
|
var tmp;
|
|
4853
4855
|
if (response instanceof ResponseObject_0) {
|
|
4854
4856
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4855
4857
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4856
|
-
var tmp0_elvis_lhs_0 = response.
|
|
4858
|
+
var tmp0_elvis_lhs_0 = response.u1x_1;
|
|
4857
4859
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4858
4860
|
var this_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
4859
4861
|
var destination = ArrayList_init_$Create$();
|
|
@@ -4863,31 +4865,31 @@
|
|
|
4863
4865
|
var element = tmp0_iterator.i();
|
|
4864
4866
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
4865
4867
|
// Inline function 'kotlin.collections.component1' call
|
|
4866
|
-
var mediaType = element.a1().
|
|
4868
|
+
var mediaType = element.a1().v1z_1;
|
|
4867
4869
|
// Inline function 'kotlin.collections.component2' call
|
|
4868
4870
|
var mediaObject = element.b1();
|
|
4869
|
-
var schema = mediaObject.
|
|
4871
|
+
var schema = mediaObject.z1z_1;
|
|
4870
4872
|
var tmp_0;
|
|
4871
4873
|
if (schema instanceof SchemaObject_0) {
|
|
4872
|
-
var
|
|
4874
|
+
var tmp0_subject = schema.o1w_1;
|
|
4873
4875
|
var tmp_1;
|
|
4874
|
-
switch (
|
|
4876
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.q2_1) {
|
|
4875
4877
|
case -1:
|
|
4876
4878
|
case 5:
|
|
4877
|
-
tmp_1 = flatten_1($this_parseResponseBody, OpenApiV3Parser_instance, schema, Common_instance.
|
|
4879
|
+
tmp_1 = flatten_1($this_parseResponseBody, OpenApiV3Parser_instance, schema, Common_instance.b2a([name, _StatusCode___get_value__impl__we50mu_0($this$flatMapResponses.e2b_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
4878
4880
|
break;
|
|
4879
4881
|
case 4:
|
|
4880
4882
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4881
4883
|
|
|
4882
|
-
var
|
|
4884
|
+
var tmp1_safe_receiver = schema.t1w_1;
|
|
4883
4885
|
var tmp_2;
|
|
4884
|
-
if (
|
|
4886
|
+
if (tmp1_safe_receiver == null) {
|
|
4885
4887
|
tmp_2 = null;
|
|
4886
4888
|
} else {
|
|
4887
4889
|
// Inline function 'kotlin.let' call
|
|
4888
4890
|
// Inline function 'kotlin.contracts.contract' call
|
|
4889
4891
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseResponseBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
4890
|
-
tmp_2 = flatten_2($this_parseResponseBody, OpenApiV3Parser_instance,
|
|
4892
|
+
tmp_2 = flatten_2($this_parseResponseBody, OpenApiV3Parser_instance, tmp1_safe_receiver, Common_instance.b2a([name, _StatusCode___get_value__impl__we50mu_0($this$flatMapResponses.e2b_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
4891
4893
|
}
|
|
4892
4894
|
|
|
4893
4895
|
var tmp0_elvis_lhs_1 = tmp_2;
|
|
@@ -4926,10 +4928,10 @@
|
|
|
4926
4928
|
// Inline function 'kotlin.js.asDynamic' call
|
|
4927
4929
|
|
|
4928
4930
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
4929
|
-
tmp = tmp_0.
|
|
4931
|
+
tmp = tmp_0.b2a([tmp$ret$1]);
|
|
4930
4932
|
break;
|
|
4931
4933
|
case false:
|
|
4932
|
-
tmp = Common_instance.
|
|
4934
|
+
tmp = Common_instance.b2a([it]);
|
|
4933
4935
|
break;
|
|
4934
4936
|
default:
|
|
4935
4937
|
noWhenBranchMatchedException();
|
|
@@ -4939,21 +4941,23 @@
|
|
|
4939
4941
|
}
|
|
4940
4942
|
function OpenApiV3Parser() {
|
|
4941
4943
|
}
|
|
4942
|
-
protoOf(OpenApiV3Parser).
|
|
4943
|
-
return this.
|
|
4944
|
+
protoOf(OpenApiV3Parser).p2a = function (json, strict) {
|
|
4945
|
+
return this.g2b((new OpenAPI_0(Json(VOID, OpenApiV3Parser$parse$lambda(strict)))).i1g(json));
|
|
4944
4946
|
};
|
|
4945
|
-
protoOf(OpenApiV3Parser).
|
|
4947
|
+
protoOf(OpenApiV3Parser).h2b = function (json, strict, $super) {
|
|
4946
4948
|
strict = strict === VOID ? false : strict;
|
|
4947
|
-
return $super === VOID ? this.
|
|
4949
|
+
return $super === VOID ? this.p2a(json, strict) : $super.p2a.call(this, json, strict);
|
|
4948
4950
|
};
|
|
4949
|
-
protoOf(OpenApiV3Parser).
|
|
4951
|
+
protoOf(OpenApiV3Parser).g2b = function (_this__u8e3s4) {
|
|
4950
4952
|
// Inline function 'kotlin.collections.reduce' call
|
|
4951
4953
|
var iterator = listOf_0([parseEndpoint(_this__u8e3s4, this), parseParameters_0(_this__u8e3s4, this), parseRequestBody_0(_this__u8e3s4, this), parseResponseBody_0(_this__u8e3s4, this), parseComponents(_this__u8e3s4, this)]).g();
|
|
4952
4954
|
if (!iterator.h())
|
|
4953
4955
|
throw UnsupportedOperationException_init_$Create$("Empty collection can't be reduced.");
|
|
4954
4956
|
var accumulator = iterator.i();
|
|
4955
4957
|
while (iterator.h()) {
|
|
4956
|
-
|
|
4958
|
+
var p0 = accumulator;
|
|
4959
|
+
var p1 = iterator.i();
|
|
4960
|
+
accumulator = plus(p0, p1);
|
|
4957
4961
|
}
|
|
4958
4962
|
return accumulator;
|
|
4959
4963
|
};
|
|
@@ -4964,16 +4968,16 @@
|
|
|
4964
4968
|
function toMap_1(_this__u8e3s4) {
|
|
4965
4969
|
var tmp;
|
|
4966
4970
|
if (_this__u8e3s4 instanceof Custom) {
|
|
4967
|
-
tmp = _this__u8e3s4.
|
|
4971
|
+
tmp = _this__u8e3s4.p28(VOID, VOID, true);
|
|
4968
4972
|
} else {
|
|
4969
4973
|
if (_this__u8e3s4 instanceof Any) {
|
|
4970
|
-
tmp = _this__u8e3s4.
|
|
4974
|
+
tmp = _this__u8e3s4.j28(VOID, true);
|
|
4971
4975
|
} else {
|
|
4972
4976
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
4973
|
-
tmp = _this__u8e3s4.
|
|
4977
|
+
tmp = _this__u8e3s4.r28(VOID, VOID, true);
|
|
4974
4978
|
} else {
|
|
4975
4979
|
if (_this__u8e3s4 instanceof Unit) {
|
|
4976
|
-
tmp = _this__u8e3s4.
|
|
4980
|
+
tmp = _this__u8e3s4.n28(VOID, true);
|
|
4977
4981
|
} else {
|
|
4978
4982
|
noWhenBranchMatchedException();
|
|
4979
4983
|
}
|
|
@@ -5015,16 +5019,16 @@
|
|
|
5015
5019
|
function toIterable_0(_this__u8e3s4) {
|
|
5016
5020
|
var tmp;
|
|
5017
5021
|
if (_this__u8e3s4 instanceof Custom) {
|
|
5018
|
-
tmp = _this__u8e3s4.
|
|
5022
|
+
tmp = _this__u8e3s4.p28(VOID, true);
|
|
5019
5023
|
} else {
|
|
5020
5024
|
if (_this__u8e3s4 instanceof Any) {
|
|
5021
|
-
tmp = _this__u8e3s4.
|
|
5025
|
+
tmp = _this__u8e3s4.j28(true);
|
|
5022
5026
|
} else {
|
|
5023
5027
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
5024
|
-
tmp = _this__u8e3s4.
|
|
5028
|
+
tmp = _this__u8e3s4.r28(VOID, true);
|
|
5025
5029
|
} else {
|
|
5026
5030
|
if (_this__u8e3s4 instanceof Unit) {
|
|
5027
|
-
tmp = _this__u8e3s4.
|
|
5031
|
+
tmp = _this__u8e3s4.n28(true);
|
|
5028
5032
|
} else {
|
|
5029
5033
|
noWhenBranchMatchedException();
|
|
5030
5034
|
}
|