@flock/wirespec 0.9.0 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arrow-arrow-atomic.js +4 -4
- package/arrow-arrow-continuations.js +3 -3
- package/arrow-arrow-core.js +15 -15
- package/clikt-clikt.js +1218 -1218
- package/colormath-root-colormath.js +388 -388
- package/kotlin-kotlin-stdlib.js +216 -190
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-openapi-bindings.js +19 -19
- package/kotlin-rgxgen.js +1810 -1810
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +67 -67
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +57 -57
- package/markdown.js +1884 -1884
- package/mordant-mordant.js +1643 -1643
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +782 -666
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +303 -243
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-converter-openapi.js +329 -277
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-generator.js +37 -34
- package/wirespec-src-generator.js.map +1 -1
- package/wirespec-src-plugin-arguments.js +91 -91
- package/wirespec-src-plugin-cli.js +141 -141
- package/wirespec-src-plugin-npm.d.ts +10 -0
- package/wirespec-src-plugin-npm.js +3 -3
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
var imul = Math.imul;
|
|
25
25
|
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.k1;
|
|
26
26
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k;
|
|
27
|
-
var split = kotlin_kotlin.$_$.
|
|
27
|
+
var split = kotlin_kotlin.$_$.tc;
|
|
28
28
|
var addAll = kotlin_kotlin.$_$.o4;
|
|
29
|
-
var VOID = kotlin_kotlin.$_$.
|
|
29
|
+
var VOID = kotlin_kotlin.$_$.hf;
|
|
30
30
|
var joinToString = kotlin_kotlin.$_$.f6;
|
|
31
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
32
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
33
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
31
|
+
var protoOf = kotlin_kotlin.$_$.da;
|
|
32
|
+
var objectMeta = kotlin_kotlin.$_$.ca;
|
|
33
|
+
var setMetadataFor = kotlin_kotlin.$_$.ea;
|
|
34
34
|
var Unit_getInstance = kotlin_kotlin.$_$.x3;
|
|
35
35
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.k;
|
|
36
36
|
var OpenAPI = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b;
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v;
|
|
42
42
|
var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.u;
|
|
43
43
|
var listOf = kotlin_kotlin.$_$.s6;
|
|
44
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
45
|
-
var NotImplementedError = kotlin_kotlin.$_$.
|
|
44
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.df;
|
|
45
|
+
var NotImplementedError = kotlin_kotlin.$_$.de;
|
|
46
46
|
var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h;
|
|
47
47
|
var ReferenceObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e;
|
|
48
48
|
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.i;
|
|
@@ -52,21 +52,21 @@
|
|
|
52
52
|
var emptyList = kotlin_kotlin.$_$.o5;
|
|
53
53
|
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.l;
|
|
54
54
|
var HashSet_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
55
|
-
var to = kotlin_kotlin.$_$.
|
|
55
|
+
var to = kotlin_kotlin.$_$.gf;
|
|
56
56
|
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.o;
|
|
57
57
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
58
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
58
|
+
var THROW_CCE = kotlin_kotlin.$_$.ie;
|
|
59
59
|
var Map = kotlin_kotlin.$_$.j4;
|
|
60
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
60
|
+
var isInterface = kotlin_kotlin.$_$.q9;
|
|
61
61
|
var ParameterObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c;
|
|
62
62
|
var Ref = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f;
|
|
63
|
-
var toString = kotlin_kotlin.$_$.
|
|
63
|
+
var toString = kotlin_kotlin.$_$.ia;
|
|
64
64
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.l1;
|
|
65
65
|
var BooleanObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a;
|
|
66
66
|
var ResponseObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
|
|
67
67
|
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.x;
|
|
68
68
|
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.y;
|
|
69
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
69
|
+
var ensureNotNull = kotlin_kotlin.$_$.xe;
|
|
70
70
|
var toSet = kotlin_kotlin.$_$.a8;
|
|
71
71
|
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.p;
|
|
72
72
|
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.t;
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.s;
|
|
75
75
|
var get_entries = kotlin_community_flock_wirespec_compiler_core.$_$.j;
|
|
76
76
|
var mapCapacity = kotlin_kotlin.$_$.u6;
|
|
77
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
77
|
+
var coerceAtLeast = kotlin_kotlin.$_$.oa;
|
|
78
78
|
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.s;
|
|
79
79
|
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e1;
|
|
80
80
|
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.j1;
|
|
@@ -84,22 +84,22 @@
|
|
|
84
84
|
var Companion_getInstance_0 = kotlin_community_flock_wirespec_compiler_core.$_$.l1;
|
|
85
85
|
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.w;
|
|
86
86
|
var Type_ARRAY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.x;
|
|
87
|
-
var equals = kotlin_kotlin.$_$.
|
|
87
|
+
var equals = kotlin_kotlin.$_$.b9;
|
|
88
88
|
var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d1;
|
|
89
89
|
var drop = kotlin_kotlin.$_$.n5;
|
|
90
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
91
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
90
|
+
var charSequenceLength = kotlin_kotlin.$_$.w8;
|
|
91
|
+
var charSequenceGet = kotlin_kotlin.$_$.v8;
|
|
92
92
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.t1;
|
|
93
93
|
var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.m;
|
|
94
94
|
var Param = kotlin_community_flock_wirespec_compiler_core.$_$.n;
|
|
95
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
95
|
+
var isBlank = kotlin_kotlin.$_$.yb;
|
|
96
96
|
var Path = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d;
|
|
97
97
|
var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c1;
|
|
98
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
99
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
98
|
+
var getStringHashCode = kotlin_kotlin.$_$.f9;
|
|
99
|
+
var classMeta = kotlin_kotlin.$_$.y8;
|
|
100
100
|
var StatusCode = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i;
|
|
101
101
|
var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f1;
|
|
102
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
102
|
+
var hashCode = kotlin_kotlin.$_$.g9;
|
|
103
103
|
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.v;
|
|
104
104
|
var toMap = kotlin_kotlin.$_$.x7;
|
|
105
105
|
var OpenAPI_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l;
|
|
@@ -117,6 +117,8 @@
|
|
|
117
117
|
var RequestBodyObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.q;
|
|
118
118
|
var ResponseObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r;
|
|
119
119
|
var BooleanObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j;
|
|
120
|
+
var checkIndexOverflow = kotlin_kotlin.$_$.v4;
|
|
121
|
+
var Union = kotlin_community_flock_wirespec_compiler_core.$_$.z;
|
|
120
122
|
var _Ref___get_value__impl__kxavfe_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k1;
|
|
121
123
|
var getOrNull = kotlin_kotlin.$_$.z5;
|
|
122
124
|
var Type_ARRAY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b1;
|
|
@@ -142,7 +144,7 @@
|
|
|
142
144
|
function Common() {
|
|
143
145
|
Common_instance = this;
|
|
144
146
|
}
|
|
145
|
-
protoOf(Common).
|
|
147
|
+
protoOf(Common).q22 = function (arg) {
|
|
146
148
|
// Inline function 'kotlin.collections.flatMap' call
|
|
147
149
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
148
150
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -174,16 +176,16 @@
|
|
|
174
176
|
function Companion() {
|
|
175
177
|
Companion_instance = this;
|
|
176
178
|
}
|
|
177
|
-
protoOf(Companion).
|
|
179
|
+
protoOf(Companion).r22 = function (json, ignoreUnknown) {
|
|
178
180
|
// Inline function 'kotlin.let' call
|
|
179
181
|
var tmp0_let = (new OpenAPI(Json(VOID, OpenApiParser$Companion$parse$lambda(ignoreUnknown)))).i17(json);
|
|
180
182
|
// Inline function 'kotlin.contracts.contract' call
|
|
181
183
|
// Inline function 'community.flock.wirespec.openapi.v2.Companion.parse.<anonymous>' call
|
|
182
|
-
return (new OpenApiParser(tmp0_let)).
|
|
184
|
+
return (new OpenApiParser(tmp0_let)).t22();
|
|
183
185
|
};
|
|
184
|
-
protoOf(Companion).
|
|
186
|
+
protoOf(Companion).u22 = function (json, ignoreUnknown, $super) {
|
|
185
187
|
ignoreUnknown = ignoreUnknown === VOID ? false : ignoreUnknown;
|
|
186
|
-
return $super === VOID ? this.
|
|
188
|
+
return $super === VOID ? this.r22(json, ignoreUnknown) : $super.r22.call(this, json, ignoreUnknown);
|
|
187
189
|
};
|
|
188
190
|
var Companion_instance;
|
|
189
191
|
function Companion_getInstance_1() {
|
|
@@ -193,7 +195,7 @@
|
|
|
193
195
|
}
|
|
194
196
|
function parseEndpoints($this) {
|
|
195
197
|
// Inline function 'kotlin.collections.flatMap' call
|
|
196
|
-
var tmp0_flatMap = $this.
|
|
198
|
+
var tmp0_flatMap = $this.s22_1.s17_1;
|
|
197
199
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
198
200
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
199
201
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -288,7 +290,7 @@
|
|
|
288
290
|
var element_4 = tmp0_iterator_6.y();
|
|
289
291
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
290
292
|
// Inline function 'kotlin.collections.map' call
|
|
291
|
-
var tmp0_elvis_lhs_0 = $this.
|
|
293
|
+
var tmp0_elvis_lhs_0 = $this.s22_1.q17_1;
|
|
292
294
|
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.b19_1 : tmp0_elvis_lhs_0;
|
|
293
295
|
var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
294
296
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -304,7 +306,7 @@
|
|
|
304
306
|
tmp = toReference(schema, $this);
|
|
305
307
|
} else {
|
|
306
308
|
if (schema instanceof SchemaObject) {
|
|
307
|
-
tmp = toReference_0(schema, $this, Common_getInstance().
|
|
309
|
+
tmp = toReference_0(schema, $this, Common_getInstance().q22([name, 'RequestBody']));
|
|
308
310
|
} else {
|
|
309
311
|
if (schema == null) {
|
|
310
312
|
throw new NotImplementedError('An operation is not implemented: Not yet implemented');
|
|
@@ -346,7 +348,7 @@
|
|
|
346
348
|
// Inline function 'kotlin.collections.component2' call
|
|
347
349
|
var res = element_5.p2();
|
|
348
350
|
// Inline function 'kotlin.collections.map' call
|
|
349
|
-
var tmp0_elvis_lhs_3 = $this.
|
|
351
|
+
var tmp0_elvis_lhs_3 = $this.s22_1.r17_1;
|
|
350
352
|
var tmp1_elvis_lhs_0 = tmp0_elvis_lhs_3 == null ? operation.c19_1 : tmp0_elvis_lhs_3;
|
|
351
353
|
var tmp0_map_0 = tmp1_elvis_lhs_0 == null ? listOf('application/json') : tmp1_elvis_lhs_0;
|
|
352
354
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -371,7 +373,7 @@
|
|
|
371
373
|
tmp_5 = toReference(tmp0_safe_receiver, $this);
|
|
372
374
|
} else {
|
|
373
375
|
if (tmp0_safe_receiver instanceof SchemaObject) {
|
|
374
|
-
tmp_5 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().
|
|
376
|
+
tmp_5 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().q22([name, _StatusCode___get_value__impl__we50mu(status), item_2, 'ResponseBody']));
|
|
375
377
|
} else {
|
|
376
378
|
noWhenBranchMatchedException();
|
|
377
379
|
}
|
|
@@ -390,7 +392,7 @@
|
|
|
390
392
|
while (tmp0_iterator_10.w()) {
|
|
391
393
|
var e = tmp0_iterator_10.y();
|
|
392
394
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
393
|
-
var key = to(e.
|
|
395
|
+
var key = to(e.z1y_1, e.b1z_1);
|
|
394
396
|
if (set.s(key)) {
|
|
395
397
|
list_1.s(e);
|
|
396
398
|
}
|
|
@@ -405,20 +407,20 @@
|
|
|
405
407
|
return tmp0_flatMapTo;
|
|
406
408
|
}
|
|
407
409
|
function parseParameters($this) {
|
|
408
|
-
return flatMapRequests($this.
|
|
410
|
+
return flatMapRequests($this.s22_1, $this, OpenApiParser$parseParameters$lambda($this));
|
|
409
411
|
}
|
|
410
412
|
function parseRequestBody($this) {
|
|
411
|
-
return flatMapRequests($this.
|
|
413
|
+
return flatMapRequests($this.s22_1, $this, OpenApiParser$parseRequestBody$lambda($this));
|
|
412
414
|
}
|
|
413
415
|
function parseResponseBody($this) {
|
|
414
|
-
return flatMapResponses($this.
|
|
416
|
+
return flatMapResponses($this.s22_1, $this, OpenApiParser$parseResponseBody$lambda($this));
|
|
415
417
|
}
|
|
416
418
|
function parseDefinitions($this) {
|
|
417
419
|
// Inline function 'kotlin.collections.flatMap' call
|
|
418
420
|
// Inline function 'kotlin.collections.filter' call
|
|
419
421
|
// Inline function 'arrow.core.filterIsInstance' call
|
|
420
422
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
421
|
-
var tmp0_elvis_lhs = $this.
|
|
423
|
+
var tmp0_elvis_lhs = $this.s22_1.t17_1;
|
|
422
424
|
var tmp1_filterIsInstance = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
423
425
|
// Inline function 'kotlin.collections.filterValues' call
|
|
424
426
|
var result = LinkedHashMap_init_$Create$();
|
|
@@ -451,7 +453,7 @@
|
|
|
451
453
|
while (tmp0_iterator_1.w()) {
|
|
452
454
|
var element_0 = tmp0_iterator_1.y();
|
|
453
455
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
454
|
-
var list = flatten(element_0.p2(), $this, Common_getInstance().
|
|
456
|
+
var list = flatten(element_0.p2(), $this, Common_getInstance().q22([element_0.o2()]));
|
|
455
457
|
addAll(tmp0_flatMapTo, list);
|
|
456
458
|
}
|
|
457
459
|
return tmp0_flatMapTo;
|
|
@@ -511,7 +513,7 @@
|
|
|
511
513
|
return tmp0_mapTo;
|
|
512
514
|
}
|
|
513
515
|
function resolveParameterObject(_this__u8e3s4, $this) {
|
|
514
|
-
var tmp0_safe_receiver = $this.
|
|
516
|
+
var tmp0_safe_receiver = $this.s22_1.u17_1;
|
|
515
517
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u2(getReference(_this__u8e3s4, $this));
|
|
516
518
|
var tmp;
|
|
517
519
|
if (tmp1_elvis_lhs == null) {
|
|
@@ -523,7 +525,7 @@
|
|
|
523
525
|
return tmp;
|
|
524
526
|
}
|
|
525
527
|
function resolveResponseObject(_this__u8e3s4, $this) {
|
|
526
|
-
var tmp0_safe_receiver = $this.
|
|
528
|
+
var tmp0_safe_receiver = $this.s22_1.v17_1;
|
|
527
529
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u2(getReference(_this__u8e3s4, $this));
|
|
528
530
|
var tmp;
|
|
529
531
|
if (tmp1_elvis_lhs == null) {
|
|
@@ -535,7 +537,7 @@
|
|
|
535
537
|
return tmp;
|
|
536
538
|
}
|
|
537
539
|
function resolveSchemaObject(_this__u8e3s4, $this) {
|
|
538
|
-
var tmp0_safe_receiver = $this.
|
|
540
|
+
var tmp0_safe_receiver = $this.s22_1.t17_1;
|
|
539
541
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u2(getReference(_this__u8e3s4, $this));
|
|
540
542
|
var tmp;
|
|
541
543
|
if (tmp1_elvis_lhs == null) {
|
|
@@ -701,7 +703,7 @@
|
|
|
701
703
|
tmp_6 = emptyList();
|
|
702
704
|
} else {
|
|
703
705
|
if (value instanceof SchemaObject) {
|
|
704
|
-
tmp_6 = flatten(value, $this, Common_getInstance().
|
|
706
|
+
tmp_6 = flatten(value, $this, Common_getInstance().q22([name, key_0]));
|
|
705
707
|
} else {
|
|
706
708
|
noWhenBranchMatchedException();
|
|
707
709
|
}
|
|
@@ -761,7 +763,7 @@
|
|
|
761
763
|
var key_1 = element_2.o2();
|
|
762
764
|
// Inline function 'kotlin.collections.component2' call
|
|
763
765
|
var value_0 = element_2.p2();
|
|
764
|
-
var list_3 = flatten_0(value_0, $this, Common_getInstance().
|
|
766
|
+
var list_3 = flatten_0(value_0, $this, Common_getInstance().q22([name, key_1]));
|
|
765
767
|
addAll(tmp0_flatMapTo_2, list_3);
|
|
766
768
|
}
|
|
767
769
|
|
|
@@ -776,7 +778,7 @@
|
|
|
776
778
|
tmp_8 = emptyList();
|
|
777
779
|
} else {
|
|
778
780
|
if (it instanceof SchemaObject) {
|
|
779
|
-
tmp_8 = flatten(it, $this, Common_getInstance().
|
|
781
|
+
tmp_8 = flatten(it, $this, Common_getInstance().q22([name, 'Array']));
|
|
780
782
|
} else {
|
|
781
783
|
if (it == null) {
|
|
782
784
|
tmp_8 = emptyList();
|
|
@@ -834,7 +836,7 @@
|
|
|
834
836
|
}
|
|
835
837
|
tmp = tmp_0;
|
|
836
838
|
} else if (!(schema.n1b_1 == null)) {
|
|
837
|
-
tmp = new Custom(Common_getInstance().
|
|
839
|
+
tmp = new Custom(Common_getInstance().q22([getReference(_this__u8e3s4, $this)]), false, false);
|
|
838
840
|
} else if (isPrimitive(schema.o1b_1)) {
|
|
839
841
|
tmp = new Primitive(toPrimitive(ensureNotNull(schema.o1b_1), $this), false, false);
|
|
840
842
|
} else {
|
|
@@ -844,10 +846,10 @@
|
|
|
844
846
|
var items = schema.p1b_1;
|
|
845
847
|
var tmp_2;
|
|
846
848
|
if (items instanceof ReferenceObject) {
|
|
847
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
849
|
+
tmp_2 = new Custom(Common_getInstance().q22([getReference(items, $this)]), true);
|
|
848
850
|
} else {
|
|
849
851
|
if (items instanceof SchemaObject) {
|
|
850
|
-
tmp_2 = toIterable(toReference_0(items, $this, Common_getInstance().
|
|
852
|
+
tmp_2 = toIterable(toReference_0(items, $this, Common_getInstance().q22([getReference(_this__u8e3s4, $this), 'Array'])));
|
|
851
853
|
} else {
|
|
852
854
|
if (items == null) {
|
|
853
855
|
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.m1a_1);
|
|
@@ -861,10 +863,10 @@
|
|
|
861
863
|
} else {
|
|
862
864
|
var tmp_3;
|
|
863
865
|
if (tmp0_let instanceof SchemaObject) {
|
|
864
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
866
|
+
tmp_3 = new Custom(Common_getInstance().q22([getReference(_this__u8e3s4, $this)]), false);
|
|
865
867
|
} else {
|
|
866
868
|
if (tmp0_let instanceof ReferenceObject) {
|
|
867
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
869
|
+
tmp_3 = new Custom(Common_getInstance().q22([getReference(tmp0_let, $this)]), false);
|
|
868
870
|
} else {
|
|
869
871
|
noWhenBranchMatchedException();
|
|
870
872
|
}
|
|
@@ -1055,14 +1057,14 @@
|
|
|
1055
1057
|
var value = item.p2();
|
|
1056
1058
|
var tmp;
|
|
1057
1059
|
if (value instanceof SchemaObject) {
|
|
1058
|
-
var tmp_0 = Companion_getInstance_0().
|
|
1059
|
-
var tmp_1 = !(value.n1b_1 == null) ? toReference_0(value, $this, Common_getInstance().
|
|
1060
|
+
var tmp_0 = Companion_getInstance_0().n1z(key);
|
|
1061
|
+
var tmp_1 = !(value.n1b_1 == null) ? toReference_0(value, $this, Common_getInstance().q22([name, key])) : equals(value.o1b_1, Type_ARRAY_getInstance()) ? toReference_0(value, $this, Common_getInstance().q22([name, key, 'Array'])) : toReference_0(value, $this, Common_getInstance().q22([name, key]));
|
|
1060
1062
|
var tmp1_safe_receiver = _this__u8e3s4.m1b_1;
|
|
1061
1063
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r(key);
|
|
1062
1064
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
1063
1065
|
} else {
|
|
1064
1066
|
if (value instanceof ReferenceObject) {
|
|
1065
|
-
var tmp_2 = Companion_getInstance_0().
|
|
1067
|
+
var tmp_2 = Companion_getInstance_0().n1z(key);
|
|
1066
1068
|
var tmp_3 = toReference(value, $this);
|
|
1067
1069
|
var tmp3_safe_receiver = _this__u8e3s4.m1b_1;
|
|
1068
1070
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.r(key);
|
|
@@ -1084,7 +1086,7 @@
|
|
|
1084
1086
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1085
1087
|
var tmp;
|
|
1086
1088
|
if (!(_this__u8e3s4.h1a_1 == null)) {
|
|
1087
|
-
tmp = new Custom(Common_getInstance().
|
|
1089
|
+
tmp = new Custom(Common_getInstance().q22([name, 'Parameter', tmp0_let.m19_1]), false);
|
|
1088
1090
|
} else {
|
|
1089
1091
|
var type = tmp0_let.r19_1;
|
|
1090
1092
|
var tmp_0;
|
|
@@ -1142,7 +1144,7 @@
|
|
|
1142
1144
|
var tmp1_let = tmp;
|
|
1143
1145
|
// Inline function 'kotlin.contracts.contract' call
|
|
1144
1146
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1145
|
-
var tmp_3 = Companion_getInstance_0().
|
|
1147
|
+
var tmp_3 = Companion_getInstance_0().n1z(_this__u8e3s4.m19_1);
|
|
1146
1148
|
var tmp0_elvis_lhs = _this__u8e3s4.p19_1;
|
|
1147
1149
|
return new Field(tmp_3, tmp1_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
1148
1150
|
}
|
|
@@ -1210,7 +1212,7 @@
|
|
|
1210
1212
|
// Inline function 'kotlin.let' call
|
|
1211
1213
|
// Inline function 'kotlin.contracts.contract' call
|
|
1212
1214
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1213
|
-
tmp_3 = new Param(Companion_getInstance_0().
|
|
1215
|
+
tmp_3 = new Param(Companion_getInstance_0().n1z(param), new Primitive(tmp1_safe_receiver, false));
|
|
1214
1216
|
}
|
|
1215
1217
|
var tmp2_elvis_lhs = tmp_3;
|
|
1216
1218
|
var tmp_4;
|
|
@@ -1241,7 +1243,7 @@
|
|
|
1241
1243
|
// Inline function 'kotlin.let' call
|
|
1242
1244
|
// Inline function 'kotlin.contracts.contract' call
|
|
1243
1245
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1244
|
-
tmp = Common_getInstance().
|
|
1246
|
+
tmp = Common_getInstance().q22([tmp0_safe_receiver]);
|
|
1245
1247
|
}
|
|
1246
1248
|
return tmp;
|
|
1247
1249
|
}
|
|
@@ -1263,21 +1265,21 @@
|
|
|
1263
1265
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda($this));
|
|
1264
1266
|
}
|
|
1265
1267
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
1266
|
-
this.
|
|
1267
|
-
this.
|
|
1268
|
-
this.
|
|
1269
|
-
this.
|
|
1270
|
-
this.
|
|
1268
|
+
this.v22_1 = path;
|
|
1269
|
+
this.w22_1 = pathItem;
|
|
1270
|
+
this.x22_1 = method;
|
|
1271
|
+
this.y22_1 = operation;
|
|
1272
|
+
this.z22_1 = type;
|
|
1271
1273
|
}
|
|
1272
1274
|
protoOf(FlattenRequest).toString = function () {
|
|
1273
|
-
return 'FlattenRequest(path=' + new Path(this.
|
|
1275
|
+
return 'FlattenRequest(path=' + new Path(this.v22_1) + ', pathItem=' + this.w22_1 + ', method=' + this.x22_1 + ', operation=' + this.y22_1 + ', type=' + this.z22_1 + ')';
|
|
1274
1276
|
};
|
|
1275
1277
|
protoOf(FlattenRequest).hashCode = function () {
|
|
1276
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1277
|
-
result = imul(result, 31) + this.u22_1.hashCode() | 0;
|
|
1278
|
-
result = imul(result, 31) + this.v22_1.hashCode() | 0;
|
|
1278
|
+
var result = Path__hashCode_impl_go73kd(this.v22_1);
|
|
1279
1279
|
result = imul(result, 31) + this.w22_1.hashCode() | 0;
|
|
1280
|
-
result = imul(result, 31) +
|
|
1280
|
+
result = imul(result, 31) + this.x22_1.hashCode() | 0;
|
|
1281
|
+
result = imul(result, 31) + this.y22_1.hashCode() | 0;
|
|
1282
|
+
result = imul(result, 31) + getStringHashCode(this.z22_1) | 0;
|
|
1281
1283
|
return result;
|
|
1282
1284
|
};
|
|
1283
1285
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -1286,15 +1288,15 @@
|
|
|
1286
1288
|
if (!(other instanceof FlattenRequest))
|
|
1287
1289
|
return false;
|
|
1288
1290
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
1289
|
-
if (!(this.
|
|
1291
|
+
if (!(this.v22_1 === tmp0_other_with_cast.v22_1))
|
|
1290
1292
|
return false;
|
|
1291
|
-
if (!this.
|
|
1293
|
+
if (!this.w22_1.equals(tmp0_other_with_cast.w22_1))
|
|
1292
1294
|
return false;
|
|
1293
|
-
if (!this.
|
|
1295
|
+
if (!this.x22_1.equals(tmp0_other_with_cast.x22_1))
|
|
1294
1296
|
return false;
|
|
1295
|
-
if (!this.
|
|
1297
|
+
if (!this.y22_1.equals(tmp0_other_with_cast.y22_1))
|
|
1296
1298
|
return false;
|
|
1297
|
-
if (!(this.
|
|
1299
|
+
if (!(this.z22_1 === tmp0_other_with_cast.z22_1))
|
|
1298
1300
|
return false;
|
|
1299
1301
|
return true;
|
|
1300
1302
|
};
|
|
@@ -1327,7 +1329,7 @@
|
|
|
1327
1329
|
// Inline function 'kotlin.collections.component2' call
|
|
1328
1330
|
var operation = element_0.p2();
|
|
1329
1331
|
// Inline function 'kotlin.collections.map' call
|
|
1330
|
-
var tmp0_elvis_lhs = $this.
|
|
1332
|
+
var tmp0_elvis_lhs = $this.s22_1.q17_1;
|
|
1331
1333
|
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? operation.b19_1 : tmp0_elvis_lhs;
|
|
1332
1334
|
var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
1333
1335
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1358,25 +1360,25 @@
|
|
|
1358
1360
|
return tmp0_flatMapTo_1;
|
|
1359
1361
|
}
|
|
1360
1362
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1363
|
-
this.
|
|
1364
|
-
this.
|
|
1365
|
-
this.
|
|
1366
|
-
this.
|
|
1367
|
-
this.
|
|
1363
|
+
this.a23_1 = path;
|
|
1364
|
+
this.b23_1 = pathItem;
|
|
1365
|
+
this.c23_1 = method;
|
|
1366
|
+
this.d23_1 = operation;
|
|
1367
|
+
this.e23_1 = statusCode;
|
|
1368
|
+
this.f23_1 = response;
|
|
1369
|
+
this.g23_1 = type;
|
|
1368
1370
|
}
|
|
1369
1371
|
protoOf(FlattenResponse).toString = function () {
|
|
1370
|
-
return 'FlattenResponse(path=' + new Path(this.
|
|
1372
|
+
return 'FlattenResponse(path=' + new Path(this.a23_1) + ', pathItem=' + this.b23_1 + ', method=' + this.c23_1 + ', operation=' + this.d23_1 + ', statusCode=' + new StatusCode(this.e23_1) + ', response=' + this.f23_1 + ', type=' + this.g23_1 + ')';
|
|
1371
1373
|
};
|
|
1372
1374
|
protoOf(FlattenResponse).hashCode = function () {
|
|
1373
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1374
|
-
result = imul(result, 31) + this.z22_1.hashCode() | 0;
|
|
1375
|
-
result = imul(result, 31) + this.a23_1.hashCode() | 0;
|
|
1375
|
+
var result = Path__hashCode_impl_go73kd(this.a23_1);
|
|
1376
1376
|
result = imul(result, 31) + this.b23_1.hashCode() | 0;
|
|
1377
|
-
result = imul(result, 31) +
|
|
1378
|
-
result = imul(result, 31) +
|
|
1379
|
-
result = imul(result, 31) +
|
|
1377
|
+
result = imul(result, 31) + this.c23_1.hashCode() | 0;
|
|
1378
|
+
result = imul(result, 31) + this.d23_1.hashCode() | 0;
|
|
1379
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.e23_1) | 0;
|
|
1380
|
+
result = imul(result, 31) + hashCode(this.f23_1) | 0;
|
|
1381
|
+
result = imul(result, 31) + getStringHashCode(this.g23_1) | 0;
|
|
1380
1382
|
return result;
|
|
1381
1383
|
};
|
|
1382
1384
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -1385,20 +1387,20 @@
|
|
|
1385
1387
|
if (!(other instanceof FlattenResponse))
|
|
1386
1388
|
return false;
|
|
1387
1389
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
1388
|
-
if (!(this.
|
|
1389
|
-
return false;
|
|
1390
|
-
if (!this.z22_1.equals(tmp0_other_with_cast.z22_1))
|
|
1391
|
-
return false;
|
|
1392
|
-
if (!this.a23_1.equals(tmp0_other_with_cast.a23_1))
|
|
1390
|
+
if (!(this.a23_1 === tmp0_other_with_cast.a23_1))
|
|
1393
1391
|
return false;
|
|
1394
1392
|
if (!this.b23_1.equals(tmp0_other_with_cast.b23_1))
|
|
1395
1393
|
return false;
|
|
1396
|
-
if (!
|
|
1394
|
+
if (!this.c23_1.equals(tmp0_other_with_cast.c23_1))
|
|
1397
1395
|
return false;
|
|
1398
|
-
if (!
|
|
1396
|
+
if (!this.d23_1.equals(tmp0_other_with_cast.d23_1))
|
|
1399
1397
|
return false;
|
|
1400
1398
|
if (!(this.e23_1 === tmp0_other_with_cast.e23_1))
|
|
1401
1399
|
return false;
|
|
1400
|
+
if (!equals(this.f23_1, tmp0_other_with_cast.f23_1))
|
|
1401
|
+
return false;
|
|
1402
|
+
if (!(this.g23_1 === tmp0_other_with_cast.g23_1))
|
|
1403
|
+
return false;
|
|
1402
1404
|
return true;
|
|
1403
1405
|
};
|
|
1404
1406
|
function flatMapResponses(_this__u8e3s4, $this, f) {
|
|
@@ -1480,9 +1482,9 @@
|
|
|
1480
1482
|
}
|
|
1481
1483
|
function OpenApiParser$parseParameters$lambda(this$0) {
|
|
1482
1484
|
return function (req) {
|
|
1483
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1484
|
-
var tmp0_elvis_lhs = toName(req.
|
|
1485
|
-
var name = tmp0_elvis_lhs == null ? toName_0(req.
|
|
1485
|
+
var parameters = plus(resolveParameters_0(req.w22_1, this$0), resolveParameters(req.y22_1, this$0));
|
|
1486
|
+
var tmp0_elvis_lhs = toName(req.y22_1, this$0);
|
|
1487
|
+
var name = tmp0_elvis_lhs == null ? toName_0(req.v22_1, this$0) + req.x22_1.b9_1 : tmp0_elvis_lhs;
|
|
1486
1488
|
var tmp$ret$5;
|
|
1487
1489
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1488
1490
|
var tmp$ret$2;
|
|
@@ -1512,7 +1514,7 @@
|
|
|
1512
1514
|
var tmp$ret$3;
|
|
1513
1515
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
1514
1516
|
var tmp0_safe_receiver = element_0.q19_1;
|
|
1515
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_0(tmp0_safe_receiver, this$0, Common_getInstance().
|
|
1517
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_0(tmp0_safe_receiver, this$0, Common_getInstance().q22([name, 'Parameter', element_0.m19_1]));
|
|
1516
1518
|
tmp$ret$3 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
1517
1519
|
var list = tmp$ret$3;
|
|
1518
1520
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -1524,9 +1526,9 @@
|
|
|
1524
1526
|
}
|
|
1525
1527
|
function OpenApiParser$parseRequestBody$lambda(this$0) {
|
|
1526
1528
|
return function (req) {
|
|
1527
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1528
|
-
var tmp0_elvis_lhs = toName(req.
|
|
1529
|
-
var name = tmp0_elvis_lhs == null ? toName_0(req.
|
|
1529
|
+
var parameters = plus(resolveParameters_0(req.w22_1, this$0), resolveParameters(req.y22_1, this$0));
|
|
1530
|
+
var tmp0_elvis_lhs = toName(req.y22_1, this$0);
|
|
1531
|
+
var name = tmp0_elvis_lhs == null ? toName_0(req.v22_1, this$0) + req.x22_1.b9_1 : tmp0_elvis_lhs;
|
|
1530
1532
|
var tmp$ret$5;
|
|
1531
1533
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1532
1534
|
var tmp$ret$4;
|
|
@@ -1539,7 +1541,7 @@
|
|
|
1539
1541
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1540
1542
|
var tmp;
|
|
1541
1543
|
if (!(element.h1a_1 == null)) {
|
|
1542
|
-
var tmp_0 = Common_getInstance().
|
|
1544
|
+
var tmp_0 = Common_getInstance().q22([name, 'Parameter', element.m19_1]);
|
|
1543
1545
|
var tmp$ret$2;
|
|
1544
1546
|
// Inline function 'kotlin.collections.map' call
|
|
1545
1547
|
var tmp0_map = ensureNotNull(element.h1a_1);
|
|
@@ -1567,7 +1569,7 @@
|
|
|
1567
1569
|
tmp$ret$4 = tmp0_flatMapTo;
|
|
1568
1570
|
tmp$ret$5 = tmp$ret$4;
|
|
1569
1571
|
var enums = tmp$ret$5;
|
|
1570
|
-
var tmp1_safe_receiver = req.
|
|
1572
|
+
var tmp1_safe_receiver = req.y22_1.d19_1;
|
|
1571
1573
|
var tmp_1;
|
|
1572
1574
|
if (tmp1_safe_receiver == null) {
|
|
1573
1575
|
tmp_1 = null;
|
|
@@ -1637,13 +1639,13 @@
|
|
|
1637
1639
|
switch (tmp0) {
|
|
1638
1640
|
case -1:
|
|
1639
1641
|
case 5:
|
|
1640
|
-
tmp_5 = flatten(schema, this$0, Common_getInstance().
|
|
1642
|
+
tmp_5 = flatten(schema, this$0, Common_getInstance().q22([name, 'RequestBody']));
|
|
1641
1643
|
break;
|
|
1642
1644
|
case 4:
|
|
1643
1645
|
var tmp$ret$12;
|
|
1644
1646
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1645
1647
|
var tmp1_safe_receiver_0 = schema.p1b_1;
|
|
1646
|
-
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
1648
|
+
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().q22([name, 'RequestBody']));
|
|
1647
1649
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1648
1650
|
tmp$ret$12 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1649
1651
|
|
|
@@ -1672,9 +1674,9 @@
|
|
|
1672
1674
|
}
|
|
1673
1675
|
function OpenApiParser$parseResponseBody$lambda(this$0) {
|
|
1674
1676
|
return function (res) {
|
|
1675
|
-
var response = resolve_1(res.
|
|
1676
|
-
var tmp0_elvis_lhs = toName(res.
|
|
1677
|
-
var name = tmp0_elvis_lhs == null ? toName_0(res.
|
|
1677
|
+
var response = resolve_1(res.f23_1, this$0);
|
|
1678
|
+
var tmp0_elvis_lhs = toName(res.d23_1, this$0);
|
|
1679
|
+
var name = tmp0_elvis_lhs == null ? toName_0(res.a23_1, this$0) + res.c23_1.b9_1 : tmp0_elvis_lhs;
|
|
1678
1680
|
var schema = response.a1c_1;
|
|
1679
1681
|
var tmp;
|
|
1680
1682
|
if (schema instanceof SchemaObject) {
|
|
@@ -1684,13 +1686,13 @@
|
|
|
1684
1686
|
switch (tmp0) {
|
|
1685
1687
|
case -1:
|
|
1686
1688
|
case 5:
|
|
1687
|
-
tmp_0 = flatten(schema, this$0, Common_getInstance().
|
|
1689
|
+
tmp_0 = flatten(schema, this$0, Common_getInstance().q22([name, _StatusCode___get_value__impl__we50mu(res.e23_1), res.g23_1, 'ResponseBody']));
|
|
1688
1690
|
break;
|
|
1689
1691
|
case 4:
|
|
1690
1692
|
var tmp$ret$0;
|
|
1691
1693
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1692
1694
|
var tmp2_safe_receiver = schema.p1b_1;
|
|
1693
|
-
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : flatten_0(tmp2_safe_receiver, this$0, Common_getInstance().
|
|
1695
|
+
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : flatten_0(tmp2_safe_receiver, this$0, Common_getInstance().q22([name, _StatusCode___get_value__impl__we50mu(res.e23_1), res.g23_1, 'ResponseBody']));
|
|
1694
1696
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1695
1697
|
tmp$ret$0 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1696
1698
|
|
|
@@ -1722,10 +1724,10 @@
|
|
|
1722
1724
|
tmp$ret$0 = it;
|
|
1723
1725
|
tmp$ret$1 = tmp$ret$0.substring(1, tmp0_substring);
|
|
1724
1726
|
|
|
1725
|
-
tmp = tmp_0.
|
|
1727
|
+
tmp = tmp_0.q22([tmp$ret$1]);
|
|
1726
1728
|
break;
|
|
1727
1729
|
case false:
|
|
1728
|
-
tmp = Common_getInstance().
|
|
1730
|
+
tmp = Common_getInstance().q22([it]);
|
|
1729
1731
|
break;
|
|
1730
1732
|
default:
|
|
1731
1733
|
noWhenBranchMatchedException();
|
|
@@ -1736,24 +1738,24 @@
|
|
|
1736
1738
|
}
|
|
1737
1739
|
function OpenApiParser(openApi) {
|
|
1738
1740
|
Companion_getInstance_1();
|
|
1739
|
-
this.
|
|
1741
|
+
this.s22_1 = openApi;
|
|
1740
1742
|
}
|
|
1741
|
-
protoOf(OpenApiParser).
|
|
1743
|
+
protoOf(OpenApiParser).t22 = function () {
|
|
1742
1744
|
return plus(plus(plus(plus(parseEndpoints(this), parseParameters(this)), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
|
|
1743
1745
|
};
|
|
1744
1746
|
function toMap_0(_this__u8e3s4) {
|
|
1745
1747
|
var tmp;
|
|
1746
1748
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1747
|
-
tmp = _this__u8e3s4.
|
|
1749
|
+
tmp = _this__u8e3s4.h21(VOID, VOID, true);
|
|
1748
1750
|
} else {
|
|
1749
1751
|
if (_this__u8e3s4 instanceof Any) {
|
|
1750
|
-
tmp = _this__u8e3s4.
|
|
1752
|
+
tmp = _this__u8e3s4.z20(VOID, true);
|
|
1751
1753
|
} else {
|
|
1752
1754
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1753
|
-
tmp = _this__u8e3s4.
|
|
1755
|
+
tmp = _this__u8e3s4.j21(VOID, VOID, true);
|
|
1754
1756
|
} else {
|
|
1755
1757
|
if (_this__u8e3s4 instanceof Unit) {
|
|
1756
|
-
tmp = _this__u8e3s4.
|
|
1758
|
+
tmp = _this__u8e3s4.c21(VOID, true);
|
|
1757
1759
|
} else {
|
|
1758
1760
|
noWhenBranchMatchedException();
|
|
1759
1761
|
}
|
|
@@ -1798,16 +1800,16 @@
|
|
|
1798
1800
|
function toIterable(_this__u8e3s4) {
|
|
1799
1801
|
var tmp;
|
|
1800
1802
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1801
|
-
tmp = _this__u8e3s4.
|
|
1803
|
+
tmp = _this__u8e3s4.h21(VOID, true);
|
|
1802
1804
|
} else {
|
|
1803
1805
|
if (_this__u8e3s4 instanceof Any) {
|
|
1804
|
-
tmp = _this__u8e3s4.
|
|
1806
|
+
tmp = _this__u8e3s4.z20(true);
|
|
1805
1807
|
} else {
|
|
1806
1808
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1807
|
-
tmp = _this__u8e3s4.
|
|
1809
|
+
tmp = _this__u8e3s4.j21(VOID, true);
|
|
1808
1810
|
} else {
|
|
1809
1811
|
if (_this__u8e3s4 instanceof Unit) {
|
|
1810
|
-
tmp = _this__u8e3s4.
|
|
1812
|
+
tmp = _this__u8e3s4.c21(true);
|
|
1811
1813
|
} else {
|
|
1812
1814
|
noWhenBranchMatchedException();
|
|
1813
1815
|
}
|
|
@@ -1861,16 +1863,16 @@
|
|
|
1861
1863
|
function Companion_0() {
|
|
1862
1864
|
Companion_instance_0 = this;
|
|
1863
1865
|
}
|
|
1864
|
-
protoOf(Companion_0).
|
|
1866
|
+
protoOf(Companion_0).r22 = function (json, strict) {
|
|
1865
1867
|
// Inline function 'kotlin.let' call
|
|
1866
1868
|
var tmp0_let = (new OpenAPI_0(Json(VOID, OpenApiParser$Companion$parse$lambda_0(strict)))).i17(json);
|
|
1867
1869
|
// Inline function 'kotlin.contracts.contract' call
|
|
1868
1870
|
// Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
|
|
1869
1871
|
return parse(new OpenApiParser_0(tmp0_let));
|
|
1870
1872
|
};
|
|
1871
|
-
protoOf(Companion_0).
|
|
1873
|
+
protoOf(Companion_0).h23 = function (json, strict, $super) {
|
|
1872
1874
|
strict = strict === VOID ? false : strict;
|
|
1873
|
-
return $super === VOID ? this.
|
|
1875
|
+
return $super === VOID ? this.r22(json, strict) : $super.r22.call(this, json, strict);
|
|
1874
1876
|
};
|
|
1875
1877
|
var Companion_instance_0;
|
|
1876
1878
|
function Companion_getInstance_2() {
|
|
@@ -1883,7 +1885,7 @@
|
|
|
1883
1885
|
}
|
|
1884
1886
|
function parseEndpoint($this) {
|
|
1885
1887
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1886
|
-
var tmp0_flatMap = $this.
|
|
1888
|
+
var tmp0_flatMap = $this.i23_1.i1g_1;
|
|
1887
1889
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1888
1890
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1889
1891
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1932,7 +1934,7 @@
|
|
|
1932
1934
|
var item_0 = tmp0_iterator_2.y();
|
|
1933
1935
|
var tmp$ret$9;
|
|
1934
1936
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1935
|
-
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().
|
|
1937
|
+
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().q22([name, 'Parameter', item_0.j1i_1]));
|
|
1936
1938
|
tmp0_mapTo_0.s(tmp$ret$9);
|
|
1937
1939
|
}
|
|
1938
1940
|
var query = tmp0_mapTo_0;
|
|
@@ -1955,7 +1957,7 @@
|
|
|
1955
1957
|
var item_1 = tmp0_iterator_4.y();
|
|
1956
1958
|
var tmp$ret$15;
|
|
1957
1959
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1958
|
-
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().
|
|
1960
|
+
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().q22([name, 'Parameter', item_1.j1i_1]));
|
|
1959
1961
|
tmp0_mapTo_1.s(tmp$ret$15);
|
|
1960
1962
|
}
|
|
1961
1963
|
var headers = tmp0_mapTo_1;
|
|
@@ -1978,7 +1980,7 @@
|
|
|
1978
1980
|
var item_2 = tmp0_iterator_6.y();
|
|
1979
1981
|
var tmp$ret$21;
|
|
1980
1982
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1981
|
-
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().
|
|
1983
|
+
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().q22([name, 'Parameter', item_2.j1i_1]));
|
|
1982
1984
|
tmp0_mapTo_2.s(tmp$ret$21);
|
|
1983
1985
|
}
|
|
1984
1986
|
var cookies = tmp0_mapTo_2;
|
|
@@ -2016,7 +2018,7 @@
|
|
|
2016
2018
|
tmp_2 = toReference_1(schema, $this);
|
|
2017
2019
|
} else {
|
|
2018
2020
|
if (schema instanceof SchemaObject_0) {
|
|
2019
|
-
tmp_2 = toReference_2(schema, $this, Common_getInstance().
|
|
2021
|
+
tmp_2 = toReference_2(schema, $this, Common_getInstance().q22([name, 'RequestBody']));
|
|
2020
2022
|
} else {
|
|
2021
2023
|
if (schema == null) {
|
|
2022
2024
|
throw new NotImplementedError('An operation is not implemented: Not yet implemented');
|
|
@@ -2089,7 +2091,7 @@
|
|
|
2089
2091
|
var item_5 = tmp0_iterator_10.y();
|
|
2090
2092
|
var tmp$ret$40;
|
|
2091
2093
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2092
|
-
tmp$ret$40 = toField_3(resolve_4(item_5.p2(), $this), $this, item_5.o2(), Common_getInstance().
|
|
2094
|
+
tmp$ret$40 = toField_3(resolve_4(item_5.p2(), $this), $this, item_5.o2(), Common_getInstance().q22([name, 'ResponseHeader']));
|
|
2093
2095
|
tmp0_mapTo_5.s(tmp$ret$40);
|
|
2094
2096
|
}
|
|
2095
2097
|
tmp_6 = tmp0_mapTo_5;
|
|
@@ -2103,7 +2105,7 @@
|
|
|
2103
2105
|
tmp_9 = toReference_1(schema_0, $this);
|
|
2104
2106
|
} else {
|
|
2105
2107
|
if (schema_0 instanceof SchemaObject_0) {
|
|
2106
|
-
tmp_9 = toReference_2(schema_0, $this, Common_getInstance().
|
|
2108
|
+
tmp_9 = toReference_2(schema_0, $this, Common_getInstance().q22([name, _StatusCode___get_value__impl__we50mu_0(status), _MediaType___get_value__impl__wy58mp(contentType), 'ResponseBody']));
|
|
2107
2109
|
} else {
|
|
2108
2110
|
if (schema_0 == null) {
|
|
2109
2111
|
tmp_9 = new Any(false);
|
|
@@ -2135,19 +2137,19 @@
|
|
|
2135
2137
|
return tmp0_flatMapTo;
|
|
2136
2138
|
}
|
|
2137
2139
|
function parseParameters_0($this) {
|
|
2138
|
-
return flatMapRequests_0($this.
|
|
2140
|
+
return flatMapRequests_0($this.i23_1, $this, OpenApiParser$parseParameters$lambda_0($this));
|
|
2139
2141
|
}
|
|
2140
2142
|
function parseRequestBody_0($this) {
|
|
2141
|
-
return flatMapRequests_0($this.
|
|
2143
|
+
return flatMapRequests_0($this.i23_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
|
|
2142
2144
|
}
|
|
2143
2145
|
function parseResponseBody_0($this) {
|
|
2144
|
-
return flatMapResponses_0($this.
|
|
2146
|
+
return flatMapResponses_0($this.i23_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
|
|
2145
2147
|
}
|
|
2146
2148
|
function parseComponents($this) {
|
|
2147
2149
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2148
2150
|
// Inline function 'kotlin.collections.filter' call
|
|
2149
2151
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2150
|
-
var tmp0_safe_receiver = $this.
|
|
2152
|
+
var tmp0_safe_receiver = $this.i23_1.j1g_1;
|
|
2151
2153
|
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r1l_1;
|
|
2152
2154
|
var tmp1_filter = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2153
2155
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -2175,7 +2177,7 @@
|
|
|
2175
2177
|
while (tmp0_iterator_0.w()) {
|
|
2176
2178
|
var element_0 = tmp0_iterator_0.y();
|
|
2177
2179
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2178
|
-
var list = flatten_2(element_0.p2(), $this, Common_getInstance().
|
|
2180
|
+
var list = flatten_2(element_0.p2(), $this, Common_getInstance().q22([element_0.o2()]));
|
|
2179
2181
|
addAll(tmp0_flatMapTo, list);
|
|
2180
2182
|
}
|
|
2181
2183
|
return tmp0_flatMapTo;
|
|
@@ -2192,7 +2194,7 @@
|
|
|
2192
2194
|
// Inline function 'kotlin.let' call
|
|
2193
2195
|
// Inline function 'kotlin.contracts.contract' call
|
|
2194
2196
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2195
|
-
tmp = Common_getInstance().
|
|
2197
|
+
tmp = Common_getInstance().q22([tmp0_safe_receiver]);
|
|
2196
2198
|
}
|
|
2197
2199
|
return tmp;
|
|
2198
2200
|
}
|
|
@@ -2265,7 +2267,7 @@
|
|
|
2265
2267
|
var tmp1_safe_receiver = tmp$ret$7;
|
|
2266
2268
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f1i_1;
|
|
2267
2269
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : resolve_3(tmp2_safe_receiver, $this);
|
|
2268
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : toReference_2(tmp3_safe_receiver, $this, Common_getInstance().
|
|
2270
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : toReference_2(tmp3_safe_receiver, $this, Common_getInstance().q22([name, 'Parameter', param]));
|
|
2269
2271
|
var tmp_0;
|
|
2270
2272
|
if (tmp4_safe_receiver == null) {
|
|
2271
2273
|
tmp_0 = null;
|
|
@@ -2273,7 +2275,7 @@
|
|
|
2273
2275
|
// Inline function 'kotlin.let' call
|
|
2274
2276
|
// Inline function 'kotlin.contracts.contract' call
|
|
2275
2277
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2276
|
-
tmp_0 = new Param(Companion_getInstance_0().
|
|
2278
|
+
tmp_0 = new Param(Companion_getInstance_0().n1z(param), tmp4_safe_receiver);
|
|
2277
2279
|
}
|
|
2278
2280
|
|
|
2279
2281
|
var tmp5_elvis_lhs = tmp_0;
|
|
@@ -2378,7 +2380,7 @@
|
|
|
2378
2380
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2379
2381
|
}
|
|
2380
2382
|
function resolveParameterObject_0(_this__u8e3s4, $this) {
|
|
2381
|
-
var tmp0_safe_receiver = $this.
|
|
2383
|
+
var tmp0_safe_receiver = $this.i23_1.j1g_1;
|
|
2382
2384
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t1l_1;
|
|
2383
2385
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
|
|
2384
2386
|
var tmp;
|
|
@@ -2403,7 +2405,7 @@
|
|
|
2403
2405
|
return tmp;
|
|
2404
2406
|
}
|
|
2405
2407
|
function resolveSchemaObject_0(_this__u8e3s4, $this) {
|
|
2406
|
-
var tmp0_safe_receiver = $this.
|
|
2408
|
+
var tmp0_safe_receiver = $this.i23_1.j1g_1;
|
|
2407
2409
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r1l_1;
|
|
2408
2410
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
|
|
2409
2411
|
var tmp;
|
|
@@ -2436,7 +2438,7 @@
|
|
|
2436
2438
|
return tmp_1;
|
|
2437
2439
|
}
|
|
2438
2440
|
function resolveHeaderObject(_this__u8e3s4, $this) {
|
|
2439
|
-
var tmp0_safe_receiver = $this.
|
|
2441
|
+
var tmp0_safe_receiver = $this.i23_1.j1g_1;
|
|
2440
2442
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w1l_1;
|
|
2441
2443
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
|
|
2442
2444
|
var tmp;
|
|
@@ -2469,7 +2471,7 @@
|
|
|
2469
2471
|
return tmp_1;
|
|
2470
2472
|
}
|
|
2471
2473
|
function resolveRequestBodyObject(_this__u8e3s4, $this) {
|
|
2472
|
-
var tmp0_safe_receiver = $this.
|
|
2474
|
+
var tmp0_safe_receiver = $this.i23_1.j1g_1;
|
|
2473
2475
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v1l_1;
|
|
2474
2476
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
|
|
2475
2477
|
var tmp;
|
|
@@ -2502,7 +2504,7 @@
|
|
|
2502
2504
|
return tmp_1;
|
|
2503
2505
|
}
|
|
2504
2506
|
function resolveResponseObject_0(_this__u8e3s4, $this) {
|
|
2505
|
-
var tmp0_safe_receiver = $this.
|
|
2507
|
+
var tmp0_safe_receiver = $this.i23_1.j1g_1;
|
|
2506
2508
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s1l_1;
|
|
2507
2509
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
|
|
2508
2510
|
var tmp;
|
|
@@ -2632,108 +2634,158 @@
|
|
|
2632
2634
|
tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
|
|
2633
2635
|
}
|
|
2634
2636
|
tmp = tmp_0;
|
|
2635
|
-
} else if (!(_this__u8e3s4.r1j_1 == null)) {
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2637
|
+
} else if (!(_this__u8e3s4.r1j_1 == null) ? true : !(_this__u8e3s4.s1j_1 == null)) {
|
|
2638
|
+
// Inline function 'kotlin.collections.mapIndexed' call
|
|
2639
|
+
var tmp0_mapIndexed = ensureNotNull(_this__u8e3s4.r1j_1);
|
|
2640
|
+
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
2641
|
+
var tmp0_mapIndexedTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_mapIndexed, 10));
|
|
2642
|
+
var index = 0;
|
|
2643
|
+
var tmp0_iterator = tmp0_mapIndexed.v();
|
|
2644
|
+
while (tmp0_iterator.w()) {
|
|
2645
|
+
var item = tmp0_iterator.y();
|
|
2646
|
+
var tmp$ret$2;
|
|
2647
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2648
|
+
var tmp1 = index;
|
|
2649
|
+
index = tmp1 + 1 | 0;
|
|
2650
|
+
var tmp1_anonymous = checkIndexOverflow(tmp1);
|
|
2651
|
+
var tmp_3;
|
|
2652
|
+
if (item instanceof ReferenceObject_0) {
|
|
2653
|
+
tmp_3 = toReference_1(item, $this);
|
|
2654
|
+
} else {
|
|
2655
|
+
if (item instanceof SchemaObject_0) {
|
|
2656
|
+
tmp_3 = toReference_2(item, $this, Common_getInstance().q22([name, tmp1_anonymous.toString()]));
|
|
2657
|
+
} else {
|
|
2658
|
+
noWhenBranchMatchedException();
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2661
|
+
tmp$ret$2 = tmp_3;
|
|
2662
|
+
tmp0_mapIndexedTo.s(tmp$ret$2);
|
|
2663
|
+
}
|
|
2664
|
+
var tmp_4 = listOf(new Union(name, toSet(tmp0_mapIndexedTo)));
|
|
2665
|
+
// Inline function 'kotlin.collections.flatMapIndexed' call
|
|
2666
|
+
var tmp2_flatMapIndexed = ensureNotNull(_this__u8e3s4.r1j_1);
|
|
2667
|
+
// Inline function 'kotlin.collections.flatMapIndexedTo' call
|
|
2668
|
+
var tmp0_flatMapIndexedTo = ArrayList_init_$Create$();
|
|
2669
|
+
var index_0 = 0;
|
|
2670
|
+
var tmp0_iterator_0 = tmp2_flatMapIndexed.v();
|
|
2671
|
+
while (tmp0_iterator_0.w()) {
|
|
2672
|
+
var element = tmp0_iterator_0.y();
|
|
2673
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2674
|
+
var tmp1_0 = index_0;
|
|
2675
|
+
index_0 = tmp1_0 + 1 | 0;
|
|
2676
|
+
var tmp3_anonymous = checkIndexOverflow(tmp1_0);
|
|
2677
|
+
var tmp_5;
|
|
2678
|
+
if (element instanceof ReferenceObject_0) {
|
|
2679
|
+
tmp_5 = emptyList();
|
|
2680
|
+
} else {
|
|
2681
|
+
if (element instanceof SchemaObject_0) {
|
|
2682
|
+
tmp_5 = flatten_1(element, $this, Common_getInstance().q22([name, tmp3_anonymous.toString()]));
|
|
2683
|
+
} else {
|
|
2684
|
+
noWhenBranchMatchedException();
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
var list = tmp_5;
|
|
2688
|
+
addAll(tmp0_flatMapIndexedTo, list);
|
|
2689
|
+
}
|
|
2690
|
+
tmp = plus(tmp_4, tmp0_flatMapIndexedTo);
|
|
2639
2691
|
} else if (!(_this__u8e3s4.q1j_1 == null)) {
|
|
2640
2692
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
2641
2693
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2642
2694
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2643
2695
|
var tmp0_elvis_lhs = _this__u8e3s4.q1j_1;
|
|
2644
|
-
var
|
|
2696
|
+
var tmp5_flatMap = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2645
2697
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2646
2698
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
2647
|
-
var
|
|
2648
|
-
while (
|
|
2649
|
-
var
|
|
2699
|
+
var tmp0_iterator_1 = tmp5_flatMap.v();
|
|
2700
|
+
while (tmp0_iterator_1.w()) {
|
|
2701
|
+
var element_0 = tmp0_iterator_1.y();
|
|
2650
2702
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2651
|
-
var
|
|
2652
|
-
addAll(tmp0_flatMapTo,
|
|
2703
|
+
var list_0 = toField_1(resolve_3(element_0, $this), $this, name);
|
|
2704
|
+
addAll(tmp0_flatMapTo, list_0);
|
|
2653
2705
|
}
|
|
2654
2706
|
var set = HashSet_init_$Create$();
|
|
2655
|
-
var
|
|
2656
|
-
var
|
|
2657
|
-
while (
|
|
2658
|
-
var e =
|
|
2707
|
+
var list_1 = ArrayList_init_$Create$();
|
|
2708
|
+
var tmp0_iterator_2 = tmp0_flatMapTo.v();
|
|
2709
|
+
while (tmp0_iterator_2.w()) {
|
|
2710
|
+
var e = tmp0_iterator_2.y();
|
|
2659
2711
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2660
2712
|
var key = e.e1y_1;
|
|
2661
2713
|
if (set.s(key)) {
|
|
2662
|
-
|
|
2714
|
+
list_1.s(e);
|
|
2663
2715
|
}
|
|
2664
2716
|
}
|
|
2665
|
-
var
|
|
2717
|
+
var tmp_6 = listOf(new Type(name, new Shape(list_1)));
|
|
2666
2718
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2667
|
-
var
|
|
2719
|
+
var tmp7_flatMap = ensureNotNull(_this__u8e3s4.q1j_1);
|
|
2668
2720
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2669
2721
|
var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
|
|
2670
|
-
var
|
|
2671
|
-
while (
|
|
2672
|
-
var
|
|
2722
|
+
var tmp0_iterator_3 = tmp7_flatMap.v();
|
|
2723
|
+
while (tmp0_iterator_3.w()) {
|
|
2724
|
+
var element_1 = tmp0_iterator_3.y();
|
|
2673
2725
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2674
|
-
var
|
|
2675
|
-
if (
|
|
2676
|
-
|
|
2726
|
+
var tmp_7;
|
|
2727
|
+
if (element_1 instanceof ReferenceObject_0) {
|
|
2728
|
+
tmp_7 = emptyList();
|
|
2677
2729
|
} else {
|
|
2678
|
-
if (
|
|
2730
|
+
if (element_1 instanceof SchemaObject_0) {
|
|
2679
2731
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2680
2732
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2681
|
-
var tmp0_elvis_lhs_0 =
|
|
2682
|
-
var
|
|
2733
|
+
var tmp0_elvis_lhs_0 = element_1.v1j_1;
|
|
2734
|
+
var tmp1_flatMap = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2683
2735
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2684
2736
|
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
2685
2737
|
// Inline function 'kotlin.collections.iterator' call
|
|
2686
|
-
var
|
|
2687
|
-
while (
|
|
2688
|
-
var
|
|
2738
|
+
var tmp0_iterator_4 = tmp1_flatMap.n2().v();
|
|
2739
|
+
while (tmp0_iterator_4.w()) {
|
|
2740
|
+
var element_2 = tmp0_iterator_4.y();
|
|
2689
2741
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>.<anonymous>' call
|
|
2690
2742
|
// Inline function 'kotlin.collections.component1' call
|
|
2691
|
-
var key_0 =
|
|
2743
|
+
var key_0 = element_2.o2();
|
|
2692
2744
|
// Inline function 'kotlin.collections.component2' call
|
|
2693
|
-
var value =
|
|
2694
|
-
var
|
|
2745
|
+
var value = element_2.p2();
|
|
2746
|
+
var tmp_8;
|
|
2695
2747
|
if (value instanceof ReferenceObject_0) {
|
|
2696
|
-
|
|
2748
|
+
tmp_8 = emptyList();
|
|
2697
2749
|
} else {
|
|
2698
2750
|
if (value instanceof SchemaObject_0) {
|
|
2699
|
-
|
|
2751
|
+
tmp_8 = flatten_1(value, $this, Common_getInstance().q22([name, key_0]));
|
|
2700
2752
|
} else {
|
|
2701
2753
|
noWhenBranchMatchedException();
|
|
2702
2754
|
}
|
|
2703
2755
|
}
|
|
2704
|
-
var
|
|
2705
|
-
addAll(tmp0_flatMapTo_1,
|
|
2756
|
+
var list_2 = tmp_8;
|
|
2757
|
+
addAll(tmp0_flatMapTo_1, list_2);
|
|
2706
2758
|
}
|
|
2707
|
-
|
|
2759
|
+
tmp_7 = tmp0_flatMapTo_1;
|
|
2708
2760
|
} else {
|
|
2709
2761
|
noWhenBranchMatchedException();
|
|
2710
2762
|
}
|
|
2711
2763
|
}
|
|
2712
|
-
var
|
|
2713
|
-
addAll(tmp0_flatMapTo_0,
|
|
2764
|
+
var list_3 = tmp_7;
|
|
2765
|
+
addAll(tmp0_flatMapTo_0, list_3);
|
|
2714
2766
|
}
|
|
2715
|
-
tmp = plus(
|
|
2767
|
+
tmp = plus(tmp_6, tmp0_flatMapTo_0);
|
|
2716
2768
|
} else if (!(_this__u8e3s4.p1k_1 == null)) {
|
|
2717
2769
|
// Inline function 'kotlin.let' call
|
|
2718
2770
|
// Inline function 'kotlin.collections.map' call
|
|
2719
|
-
var
|
|
2771
|
+
var tmp8_map = ensureNotNull(_this__u8e3s4.p1k_1);
|
|
2720
2772
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2721
|
-
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(
|
|
2722
|
-
var
|
|
2723
|
-
while (
|
|
2724
|
-
var
|
|
2725
|
-
var tmp$ret$
|
|
2773
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp8_map, 10));
|
|
2774
|
+
var tmp0_iterator_5 = tmp8_map.v();
|
|
2775
|
+
while (tmp0_iterator_5.w()) {
|
|
2776
|
+
var item_0 = tmp0_iterator_5.y();
|
|
2777
|
+
var tmp$ret$24;
|
|
2726
2778
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2727
|
-
tmp$ret$
|
|
2728
|
-
tmp0_mapTo.s(tmp$ret$
|
|
2779
|
+
tmp$ret$24 = item_0.n10();
|
|
2780
|
+
tmp0_mapTo.s(tmp$ret$24);
|
|
2729
2781
|
}
|
|
2730
|
-
var
|
|
2782
|
+
var tmp9_let = toSet(tmp0_mapTo);
|
|
2731
2783
|
// Inline function 'kotlin.contracts.contract' call
|
|
2732
2784
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2733
|
-
tmp = listOf(new Enum(name,
|
|
2785
|
+
tmp = listOf(new Enum(name, tmp9_let));
|
|
2734
2786
|
} else {
|
|
2735
2787
|
var tmp5_subject = _this__u8e3s4.p1j_1;
|
|
2736
|
-
var
|
|
2788
|
+
var tmp_9;
|
|
2737
2789
|
switch (tmp5_subject == null ? -1 : tmp5_subject.c9_1) {
|
|
2738
2790
|
case -1:
|
|
2739
2791
|
case 5:
|
|
@@ -2742,58 +2794,58 @@
|
|
|
2742
2794
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2743
2795
|
|
|
2744
2796
|
var tmp0_elvis_lhs_1 = _this__u8e3s4.v1j_1;
|
|
2745
|
-
var
|
|
2797
|
+
var tmp11_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
2746
2798
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2747
2799
|
|
|
2748
2800
|
var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
|
|
2749
2801
|
// Inline function 'kotlin.collections.iterator' call
|
|
2750
2802
|
|
|
2751
|
-
var
|
|
2752
|
-
while (
|
|
2753
|
-
var
|
|
2803
|
+
var tmp0_iterator_6 = tmp11_flatMap.n2().v();
|
|
2804
|
+
while (tmp0_iterator_6.w()) {
|
|
2805
|
+
var element_3 = tmp0_iterator_6.y();
|
|
2754
2806
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2755
2807
|
// Inline function 'kotlin.collections.component1' call
|
|
2756
|
-
var key_1 =
|
|
2808
|
+
var key_1 = element_3.o2();
|
|
2757
2809
|
// Inline function 'kotlin.collections.component2' call
|
|
2758
|
-
var value_0 =
|
|
2759
|
-
var
|
|
2760
|
-
addAll(tmp0_flatMapTo_2,
|
|
2810
|
+
var value_0 = element_3.p2();
|
|
2811
|
+
var list_4 = flatten_2(value_0, $this, Common_getInstance().q22([name, key_1]));
|
|
2812
|
+
addAll(tmp0_flatMapTo_2, list_4);
|
|
2761
2813
|
}
|
|
2762
2814
|
|
|
2763
2815
|
var fields = tmp0_flatMapTo_2;
|
|
2764
2816
|
var schema = listOf(new Type(name, new Shape(toField_1(_this__u8e3s4, $this, name))));
|
|
2765
|
-
|
|
2817
|
+
tmp_9 = plus(schema, fields);
|
|
2766
2818
|
break;
|
|
2767
2819
|
case 4:
|
|
2768
2820
|
var tmp6_safe_receiver = _this__u8e3s4.u1j_1;
|
|
2769
|
-
var
|
|
2821
|
+
var tmp_10;
|
|
2770
2822
|
if (tmp6_safe_receiver == null) {
|
|
2771
|
-
|
|
2823
|
+
tmp_10 = null;
|
|
2772
2824
|
} else {
|
|
2773
2825
|
// Inline function 'kotlin.let' call
|
|
2774
2826
|
// Inline function 'kotlin.contracts.contract' call
|
|
2775
2827
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2776
|
-
var
|
|
2828
|
+
var tmp_11;
|
|
2777
2829
|
if (tmp6_safe_receiver instanceof ReferenceObject_0) {
|
|
2778
|
-
|
|
2830
|
+
tmp_11 = emptyList();
|
|
2779
2831
|
} else {
|
|
2780
2832
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
2781
|
-
|
|
2833
|
+
tmp_11 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().q22([name, 'array']));
|
|
2782
2834
|
} else {
|
|
2783
2835
|
noWhenBranchMatchedException();
|
|
2784
2836
|
}
|
|
2785
2837
|
}
|
|
2786
|
-
|
|
2838
|
+
tmp_10 = tmp_11;
|
|
2787
2839
|
}
|
|
2788
2840
|
|
|
2789
|
-
var tmp7_elvis_lhs =
|
|
2790
|
-
|
|
2841
|
+
var tmp7_elvis_lhs = tmp_10;
|
|
2842
|
+
tmp_9 = tmp7_elvis_lhs == null ? emptyList() : tmp7_elvis_lhs;
|
|
2791
2843
|
break;
|
|
2792
2844
|
default:
|
|
2793
|
-
|
|
2845
|
+
tmp_9 = emptyList();
|
|
2794
2846
|
break;
|
|
2795
2847
|
}
|
|
2796
|
-
tmp =
|
|
2848
|
+
tmp = tmp_9;
|
|
2797
2849
|
}
|
|
2798
2850
|
return tmp;
|
|
2799
2851
|
}
|
|
@@ -2836,7 +2888,7 @@
|
|
|
2836
2888
|
}
|
|
2837
2889
|
tmp = tmp_0;
|
|
2838
2890
|
} else if (!(schema.p1k_1 == null)) {
|
|
2839
|
-
tmp = new Custom(Common_getInstance().
|
|
2891
|
+
tmp = new Custom(Common_getInstance().q22([getReference_0(referencingObject, $this)]), false, false);
|
|
2840
2892
|
} else if (isPrimitive_0(schema.p1j_1)) {
|
|
2841
2893
|
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.p1j_1), $this), false, false);
|
|
2842
2894
|
} else {
|
|
@@ -2846,10 +2898,10 @@
|
|
|
2846
2898
|
var items = schema.u1j_1;
|
|
2847
2899
|
var tmp_2;
|
|
2848
2900
|
if (items instanceof ReferenceObject_0) {
|
|
2849
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2901
|
+
tmp_2 = new Custom(Common_getInstance().q22([getReference_0(items, $this)]), true);
|
|
2850
2902
|
} else {
|
|
2851
2903
|
if (items instanceof SchemaObject_0) {
|
|
2852
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2904
|
+
tmp_2 = new Custom(Common_getInstance().q22([getReference_0(referencingObject, $this), 'Array']), true);
|
|
2853
2905
|
} else {
|
|
2854
2906
|
if (items == null) {
|
|
2855
2907
|
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.d1j_1);
|
|
@@ -2861,7 +2913,7 @@
|
|
|
2861
2913
|
}
|
|
2862
2914
|
tmp_1 = tmp_2;
|
|
2863
2915
|
} else {
|
|
2864
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
2916
|
+
tmp_1 = new Custom(Common_getInstance().q22([getReference_0(referencingObject, $this)]), false);
|
|
2865
2917
|
}
|
|
2866
2918
|
tmp = tmp_1;
|
|
2867
2919
|
}
|
|
@@ -3053,15 +3105,15 @@
|
|
|
3053
3105
|
var value = item.p2();
|
|
3054
3106
|
var tmp;
|
|
3055
3107
|
if (value instanceof SchemaObject_0) {
|
|
3056
|
-
var tmp_0 = Companion_getInstance_0().
|
|
3057
|
-
var tmp_1 = !(value.p1k_1 == null) ? toReference_2(value, $this, Common_getInstance().
|
|
3108
|
+
var tmp_0 = Companion_getInstance_0().n1z(key);
|
|
3109
|
+
var tmp_1 = !(value.p1k_1 == null) ? toReference_2(value, $this, Common_getInstance().q22([name, key])) : equals(value.p1j_1, Type_ARRAY_getInstance_0()) ? toReference_2(value, $this, Common_getInstance().q22([name, key, 'Array'])) : toReference_2(value, $this, Common_getInstance().q22([name, key]));
|
|
3058
3110
|
var tmp1_safe_receiver = _this__u8e3s4.o1k_1;
|
|
3059
3111
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r(key);
|
|
3060
3112
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
3061
3113
|
} else {
|
|
3062
3114
|
if (value instanceof ReferenceObject_0) {
|
|
3063
|
-
var tmp_2 = Companion_getInstance_0().
|
|
3064
|
-
var tmp_3 = new Custom(Common_getInstance().
|
|
3115
|
+
var tmp_2 = Companion_getInstance_0().n1z(key);
|
|
3116
|
+
var tmp_3 = new Custom(Common_getInstance().q22([getReference_0(value, $this)]), false);
|
|
3065
3117
|
var tmp3_safe_receiver = _this__u8e3s4.o1k_1;
|
|
3066
3118
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.r(key);
|
|
3067
3119
|
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
@@ -3094,7 +3146,7 @@
|
|
|
3094
3146
|
var tmp0_let = tmp;
|
|
3095
3147
|
// Inline function 'kotlin.contracts.contract' call
|
|
3096
3148
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3097
|
-
var tmp_0 = Companion_getInstance_0().
|
|
3149
|
+
var tmp_0 = Companion_getInstance_0().n1z(_this__u8e3s4.j1i_1);
|
|
3098
3150
|
var tmp0_elvis_lhs = _this__u8e3s4.z1h_1;
|
|
3099
3151
|
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3100
3152
|
}
|
|
@@ -3118,24 +3170,24 @@
|
|
|
3118
3170
|
var tmp0_let = tmp;
|
|
3119
3171
|
// Inline function 'kotlin.contracts.contract' call
|
|
3120
3172
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3121
|
-
var tmp_0 = Companion_getInstance_0().
|
|
3173
|
+
var tmp_0 = Companion_getInstance_0().n1z(identifier);
|
|
3122
3174
|
var tmp0_elvis_lhs = _this__u8e3s4.e1l_1;
|
|
3123
3175
|
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3124
3176
|
}
|
|
3125
3177
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
3126
|
-
this.
|
|
3127
|
-
this.
|
|
3128
|
-
this.
|
|
3129
|
-
this.
|
|
3178
|
+
this.j23_1 = path;
|
|
3179
|
+
this.k23_1 = pathItem;
|
|
3180
|
+
this.l23_1 = method;
|
|
3181
|
+
this.m23_1 = operation;
|
|
3130
3182
|
}
|
|
3131
3183
|
protoOf(FlattenRequest_0).toString = function () {
|
|
3132
|
-
return 'FlattenRequest(path=' + new Path_0(this.
|
|
3184
|
+
return 'FlattenRequest(path=' + new Path_0(this.j23_1) + ', pathItem=' + this.k23_1 + ', method=' + this.l23_1 + ', operation=' + this.m23_1 + ')';
|
|
3133
3185
|
};
|
|
3134
3186
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
3135
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3136
|
-
result = imul(result, 31) + this.i23_1.hashCode() | 0;
|
|
3137
|
-
result = imul(result, 31) + this.j23_1.hashCode() | 0;
|
|
3187
|
+
var result = Path__hashCode_impl_go73kd_0(this.j23_1);
|
|
3138
3188
|
result = imul(result, 31) + this.k23_1.hashCode() | 0;
|
|
3189
|
+
result = imul(result, 31) + this.l23_1.hashCode() | 0;
|
|
3190
|
+
result = imul(result, 31) + this.m23_1.hashCode() | 0;
|
|
3139
3191
|
return result;
|
|
3140
3192
|
};
|
|
3141
3193
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -3144,13 +3196,13 @@
|
|
|
3144
3196
|
if (!(other instanceof FlattenRequest_0))
|
|
3145
3197
|
return false;
|
|
3146
3198
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
3147
|
-
if (!(this.
|
|
3199
|
+
if (!(this.j23_1 === tmp0_other_with_cast.j23_1))
|
|
3148
3200
|
return false;
|
|
3149
|
-
if (!this.
|
|
3201
|
+
if (!this.k23_1.equals(tmp0_other_with_cast.k23_1))
|
|
3150
3202
|
return false;
|
|
3151
|
-
if (!this.
|
|
3203
|
+
if (!this.l23_1.equals(tmp0_other_with_cast.l23_1))
|
|
3152
3204
|
return false;
|
|
3153
|
-
if (!this.
|
|
3205
|
+
if (!this.m23_1.equals(tmp0_other_with_cast.m23_1))
|
|
3154
3206
|
return false;
|
|
3155
3207
|
return true;
|
|
3156
3208
|
};
|
|
@@ -3201,23 +3253,23 @@
|
|
|
3201
3253
|
return tmp0_flatMapTo_0;
|
|
3202
3254
|
}
|
|
3203
3255
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
3204
|
-
this.
|
|
3205
|
-
this.
|
|
3206
|
-
this.
|
|
3207
|
-
this.
|
|
3208
|
-
this.
|
|
3209
|
-
this.
|
|
3256
|
+
this.n23_1 = path;
|
|
3257
|
+
this.o23_1 = pathItem;
|
|
3258
|
+
this.p23_1 = method;
|
|
3259
|
+
this.q23_1 = operation;
|
|
3260
|
+
this.r23_1 = statusCode;
|
|
3261
|
+
this.s23_1 = response;
|
|
3210
3262
|
}
|
|
3211
3263
|
protoOf(FlattenResponse_0).toString = function () {
|
|
3212
|
-
return 'FlattenResponse(path=' + new Path_0(this.
|
|
3264
|
+
return 'FlattenResponse(path=' + new Path_0(this.n23_1) + ', pathItem=' + this.o23_1 + ', method=' + this.p23_1 + ', operation=' + this.q23_1 + ', statusCode=' + new StatusCode_0(this.r23_1) + ', response=' + this.s23_1 + ')';
|
|
3213
3265
|
};
|
|
3214
3266
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
3215
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3216
|
-
result = imul(result, 31) + this.m23_1.hashCode() | 0;
|
|
3217
|
-
result = imul(result, 31) + this.n23_1.hashCode() | 0;
|
|
3267
|
+
var result = Path__hashCode_impl_go73kd_0(this.n23_1);
|
|
3218
3268
|
result = imul(result, 31) + this.o23_1.hashCode() | 0;
|
|
3219
|
-
result = imul(result, 31) +
|
|
3220
|
-
result = imul(result, 31) +
|
|
3269
|
+
result = imul(result, 31) + this.p23_1.hashCode() | 0;
|
|
3270
|
+
result = imul(result, 31) + this.q23_1.hashCode() | 0;
|
|
3271
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.r23_1) | 0;
|
|
3272
|
+
result = imul(result, 31) + hashCode(this.s23_1) | 0;
|
|
3221
3273
|
return result;
|
|
3222
3274
|
};
|
|
3223
3275
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -3226,17 +3278,17 @@
|
|
|
3226
3278
|
if (!(other instanceof FlattenResponse_0))
|
|
3227
3279
|
return false;
|
|
3228
3280
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
3229
|
-
if (!(this.
|
|
3281
|
+
if (!(this.n23_1 === tmp0_other_with_cast.n23_1))
|
|
3230
3282
|
return false;
|
|
3231
|
-
if (!this.
|
|
3283
|
+
if (!this.o23_1.equals(tmp0_other_with_cast.o23_1))
|
|
3232
3284
|
return false;
|
|
3233
|
-
if (!this.
|
|
3285
|
+
if (!this.p23_1.equals(tmp0_other_with_cast.p23_1))
|
|
3234
3286
|
return false;
|
|
3235
|
-
if (!this.
|
|
3287
|
+
if (!this.q23_1.equals(tmp0_other_with_cast.q23_1))
|
|
3236
3288
|
return false;
|
|
3237
|
-
if (!(this.
|
|
3289
|
+
if (!(this.r23_1 === tmp0_other_with_cast.r23_1))
|
|
3238
3290
|
return false;
|
|
3239
|
-
if (!equals(this.
|
|
3291
|
+
if (!equals(this.s23_1, tmp0_other_with_cast.s23_1))
|
|
3240
3292
|
return false;
|
|
3241
3293
|
return true;
|
|
3242
3294
|
};
|
|
@@ -3312,9 +3364,9 @@
|
|
|
3312
3364
|
}
|
|
3313
3365
|
function OpenApiParser$parseParameters$lambda_0(this$0) {
|
|
3314
3366
|
return function (req) {
|
|
3315
|
-
var parameters = plus(resolveParameters_2(req.
|
|
3316
|
-
var tmp0_elvis_lhs = toName_1(req.
|
|
3317
|
-
var name = tmp0_elvis_lhs == null ? toName_2(req.
|
|
3367
|
+
var parameters = plus(resolveParameters_2(req.k23_1, this$0), resolveParameters_1(req.m23_1, this$0));
|
|
3368
|
+
var tmp0_elvis_lhs = toName_1(req.m23_1, this$0);
|
|
3369
|
+
var name = tmp0_elvis_lhs == null ? toName_2(req.j23_1, this$0) + req.l23_1.b9_1 : tmp0_elvis_lhs;
|
|
3318
3370
|
var tmp$ret$2;
|
|
3319
3371
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3320
3372
|
var tmp$ret$1;
|
|
@@ -3326,7 +3378,7 @@
|
|
|
3326
3378
|
var tmp$ret$0;
|
|
3327
3379
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
3328
3380
|
var tmp0_safe_receiver = element.f1i_1;
|
|
3329
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().
|
|
3381
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().q22([name, 'Parameter', element.j1i_1]));
|
|
3330
3382
|
tmp$ret$0 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
3331
3383
|
var list = tmp$ret$0;
|
|
3332
3384
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -3338,13 +3390,13 @@
|
|
|
3338
3390
|
}
|
|
3339
3391
|
function OpenApiParser$parseRequestBody$lambda_0(this$0) {
|
|
3340
3392
|
return function (req) {
|
|
3341
|
-
var tmp0_elvis_lhs = toName_1(req.
|
|
3342
|
-
var name = tmp0_elvis_lhs == null ? toName_2(req.
|
|
3393
|
+
var tmp0_elvis_lhs = toName_1(req.m23_1, this$0);
|
|
3394
|
+
var name = tmp0_elvis_lhs == null ? toName_2(req.j23_1, this$0) + req.l23_1.b9_1 : tmp0_elvis_lhs;
|
|
3343
3395
|
var tmp$ret$6;
|
|
3344
3396
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3345
3397
|
var tmp$ret$0;
|
|
3346
3398
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3347
|
-
var tmp1_safe_receiver = req.
|
|
3399
|
+
var tmp1_safe_receiver = req.m23_1.p1h_1;
|
|
3348
3400
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_6(tmp1_safe_receiver, this$0);
|
|
3349
3401
|
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.p1i_1;
|
|
3350
3402
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
@@ -3374,13 +3426,13 @@
|
|
|
3374
3426
|
switch (tmp0) {
|
|
3375
3427
|
case -1:
|
|
3376
3428
|
case 5:
|
|
3377
|
-
tmp_0 = flatten_1(schema, this$0, Common_getInstance().
|
|
3429
|
+
tmp_0 = flatten_1(schema, this$0, Common_getInstance().q22([name, 'RequestBody']));
|
|
3378
3430
|
break;
|
|
3379
3431
|
case 4:
|
|
3380
3432
|
var tmp$ret$3;
|
|
3381
3433
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3382
3434
|
var tmp1_safe_receiver_0 = schema.u1j_1;
|
|
3383
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
3435
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().q22([name, 'RequestBody']));
|
|
3384
3436
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
3385
3437
|
tmp$ret$3 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
3386
3438
|
|
|
@@ -3413,9 +3465,9 @@
|
|
|
3413
3465
|
}
|
|
3414
3466
|
function OpenApiParser$parseResponseBody$lambda_0(this$0) {
|
|
3415
3467
|
return function (res) {
|
|
3416
|
-
var tmp0_elvis_lhs = toName_1(res.
|
|
3417
|
-
var name = tmp0_elvis_lhs == null ? toName_2(res.
|
|
3418
|
-
var response = res.
|
|
3468
|
+
var tmp0_elvis_lhs = toName_1(res.q23_1, this$0);
|
|
3469
|
+
var name = tmp0_elvis_lhs == null ? toName_2(res.n23_1, this$0) + res.p23_1.b9_1 : tmp0_elvis_lhs;
|
|
3470
|
+
var response = res.s23_1;
|
|
3419
3471
|
var tmp;
|
|
3420
3472
|
if (response instanceof ResponseObject_0) {
|
|
3421
3473
|
var tmp$ret$7;
|
|
@@ -3454,13 +3506,13 @@
|
|
|
3454
3506
|
switch (tmp0) {
|
|
3455
3507
|
case -1:
|
|
3456
3508
|
case 5:
|
|
3457
|
-
tmp_1 = flatten_1(schema, this$0, Common_getInstance().
|
|
3509
|
+
tmp_1 = flatten_1(schema, this$0, Common_getInstance().q22([name, _StatusCode___get_value__impl__we50mu_0(res.r23_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
3458
3510
|
break;
|
|
3459
3511
|
case 4:
|
|
3460
3512
|
var tmp$ret$4;
|
|
3461
3513
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3462
3514
|
var tmp1_safe_receiver = schema.u1j_1;
|
|
3463
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().
|
|
3515
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().q22([name, _StatusCode___get_value__impl__we50mu_0(res.r23_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
3464
3516
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
3465
3517
|
tmp$ret$4 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
3466
3518
|
|
|
@@ -3506,10 +3558,10 @@
|
|
|
3506
3558
|
tmp$ret$0 = it;
|
|
3507
3559
|
tmp$ret$1 = tmp$ret$0.substring(1, tmp0_substring);
|
|
3508
3560
|
|
|
3509
|
-
tmp = tmp_0.
|
|
3561
|
+
tmp = tmp_0.q22([tmp$ret$1]);
|
|
3510
3562
|
break;
|
|
3511
3563
|
case false:
|
|
3512
|
-
tmp = Common_getInstance().
|
|
3564
|
+
tmp = Common_getInstance().q22([it]);
|
|
3513
3565
|
break;
|
|
3514
3566
|
default:
|
|
3515
3567
|
noWhenBranchMatchedException();
|
|
@@ -3520,21 +3572,21 @@
|
|
|
3520
3572
|
}
|
|
3521
3573
|
function OpenApiParser_0(openApi) {
|
|
3522
3574
|
Companion_getInstance_2();
|
|
3523
|
-
this.
|
|
3575
|
+
this.i23_1 = openApi;
|
|
3524
3576
|
}
|
|
3525
3577
|
function toMap_1(_this__u8e3s4) {
|
|
3526
3578
|
var tmp;
|
|
3527
3579
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3528
|
-
tmp = _this__u8e3s4.
|
|
3580
|
+
tmp = _this__u8e3s4.h21(VOID, VOID, true);
|
|
3529
3581
|
} else {
|
|
3530
3582
|
if (_this__u8e3s4 instanceof Any) {
|
|
3531
|
-
tmp = _this__u8e3s4.
|
|
3583
|
+
tmp = _this__u8e3s4.z20(VOID, true);
|
|
3532
3584
|
} else {
|
|
3533
3585
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3534
|
-
tmp = _this__u8e3s4.
|
|
3586
|
+
tmp = _this__u8e3s4.j21(VOID, VOID, true);
|
|
3535
3587
|
} else {
|
|
3536
3588
|
if (_this__u8e3s4 instanceof Unit) {
|
|
3537
|
-
tmp = _this__u8e3s4.
|
|
3589
|
+
tmp = _this__u8e3s4.c21(VOID, true);
|
|
3538
3590
|
} else {
|
|
3539
3591
|
noWhenBranchMatchedException();
|
|
3540
3592
|
}
|
|
@@ -3576,16 +3628,16 @@
|
|
|
3576
3628
|
function toIterable_0(_this__u8e3s4) {
|
|
3577
3629
|
var tmp;
|
|
3578
3630
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3579
|
-
tmp = _this__u8e3s4.
|
|
3631
|
+
tmp = _this__u8e3s4.h21(VOID, true);
|
|
3580
3632
|
} else {
|
|
3581
3633
|
if (_this__u8e3s4 instanceof Any) {
|
|
3582
|
-
tmp = _this__u8e3s4.
|
|
3634
|
+
tmp = _this__u8e3s4.z20(true);
|
|
3583
3635
|
} else {
|
|
3584
3636
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3585
|
-
tmp = _this__u8e3s4.
|
|
3637
|
+
tmp = _this__u8e3s4.j21(VOID, true);
|
|
3586
3638
|
} else {
|
|
3587
3639
|
if (_this__u8e3s4 instanceof Unit) {
|
|
3588
|
-
tmp = _this__u8e3s4.
|
|
3640
|
+
tmp = _this__u8e3s4.c21(true);
|
|
3589
3641
|
} else {
|
|
3590
3642
|
noWhenBranchMatchedException();
|
|
3591
3643
|
}
|