@flock/wirespec 0.9.1 → 0.9.3
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 +1222 -1222
- package/colormath-root-colormath.js +390 -390
- package/kotlin-kotlin-stdlib.js +223 -197
- 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 +1903 -1903
- package/mordant-mordant.js +1651 -1651
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +1266 -1132
- 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 +335 -291
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-generator.js +42 -39
- package/wirespec-src-generator.js.map +1 -1
- package/wirespec-src-plugin-arguments.js +92 -92
- 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).r22 = 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).s22 = 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)).u22();
|
|
183
185
|
};
|
|
184
|
-
protoOf(Companion).
|
|
186
|
+
protoOf(Companion).v22 = function (json, ignoreUnknown, $super) {
|
|
185
187
|
ignoreUnknown = ignoreUnknown === VOID ? false : ignoreUnknown;
|
|
186
|
-
return $super === VOID ? this.
|
|
188
|
+
return $super === VOID ? this.s22(json, ignoreUnknown) : $super.s22.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.t22_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.t22_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().r22([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.t22_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().r22([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.a1z_1, e.c1z_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.t22_1, $this, OpenApiParser$parseParameters$lambda($this));
|
|
409
411
|
}
|
|
410
412
|
function parseRequestBody($this) {
|
|
411
|
-
return flatMapRequests($this.
|
|
413
|
+
return flatMapRequests($this.t22_1, $this, OpenApiParser$parseRequestBody$lambda($this));
|
|
412
414
|
}
|
|
413
415
|
function parseResponseBody($this) {
|
|
414
|
-
return flatMapResponses($this.
|
|
416
|
+
return flatMapResponses($this.t22_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.t22_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().r22([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.t22_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.t22_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.t22_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) {
|
|
@@ -662,7 +664,7 @@
|
|
|
662
664
|
while (tmp0_iterator_0.w()) {
|
|
663
665
|
var e = tmp0_iterator_0.y();
|
|
664
666
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
665
|
-
var key = e.
|
|
667
|
+
var key = e.f1y_1;
|
|
666
668
|
if (set.s(key)) {
|
|
667
669
|
list_0.s(e);
|
|
668
670
|
}
|
|
@@ -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().r22([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().r22([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().r22([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().r22([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().r22([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().r22([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().r22([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().r22([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().o1z(key);
|
|
1061
|
+
var tmp_1 = !(value.n1b_1 == null) ? toReference_0(value, $this, Common_getInstance().r22([name, key])) : equals(value.o1b_1, Type_ARRAY_getInstance()) ? toReference_0(value, $this, Common_getInstance().r22([name, key, 'Array'])) : toReference_0(value, $this, Common_getInstance().r22([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().o1z(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().r22([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().o1z(_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().o1z(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().r22([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.w22_1 = path;
|
|
1269
|
+
this.x22_1 = pathItem;
|
|
1270
|
+
this.y22_1 = method;
|
|
1271
|
+
this.z22_1 = operation;
|
|
1272
|
+
this.a23_1 = type;
|
|
1271
1273
|
}
|
|
1272
1274
|
protoOf(FlattenRequest).toString = function () {
|
|
1273
|
-
return 'FlattenRequest(path=' + new Path(this.
|
|
1275
|
+
return 'FlattenRequest(path=' + new Path(this.w22_1) + ', pathItem=' + this.x22_1 + ', method=' + this.y22_1 + ', operation=' + this.z22_1 + ', type=' + this.a23_1 + ')';
|
|
1274
1276
|
};
|
|
1275
1277
|
protoOf(FlattenRequest).hashCode = function () {
|
|
1276
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1277
|
-
result = imul(result, 31) + this.
|
|
1278
|
-
result = imul(result, 31) + this.
|
|
1279
|
-
result = imul(result, 31) + this.
|
|
1280
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1278
|
+
var result = Path__hashCode_impl_go73kd(this.w22_1);
|
|
1279
|
+
result = imul(result, 31) + this.x22_1.hashCode() | 0;
|
|
1280
|
+
result = imul(result, 31) + this.y22_1.hashCode() | 0;
|
|
1281
|
+
result = imul(result, 31) + this.z22_1.hashCode() | 0;
|
|
1282
|
+
result = imul(result, 31) + getStringHashCode(this.a23_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.w22_1 === tmp0_other_with_cast.w22_1))
|
|
1290
1292
|
return false;
|
|
1291
|
-
if (!this.
|
|
1293
|
+
if (!this.x22_1.equals(tmp0_other_with_cast.x22_1))
|
|
1292
1294
|
return false;
|
|
1293
|
-
if (!this.
|
|
1295
|
+
if (!this.y22_1.equals(tmp0_other_with_cast.y22_1))
|
|
1294
1296
|
return false;
|
|
1295
|
-
if (!this.
|
|
1297
|
+
if (!this.z22_1.equals(tmp0_other_with_cast.z22_1))
|
|
1296
1298
|
return false;
|
|
1297
|
-
if (!(this.
|
|
1299
|
+
if (!(this.a23_1 === tmp0_other_with_cast.a23_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.t22_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.b23_1 = path;
|
|
1364
|
+
this.c23_1 = pathItem;
|
|
1365
|
+
this.d23_1 = method;
|
|
1366
|
+
this.e23_1 = operation;
|
|
1367
|
+
this.f23_1 = statusCode;
|
|
1368
|
+
this.g23_1 = response;
|
|
1369
|
+
this.h23_1 = type;
|
|
1368
1370
|
}
|
|
1369
1371
|
protoOf(FlattenResponse).toString = function () {
|
|
1370
|
-
return 'FlattenResponse(path=' + new Path(this.
|
|
1372
|
+
return 'FlattenResponse(path=' + new Path(this.b23_1) + ', pathItem=' + this.c23_1 + ', method=' + this.d23_1 + ', operation=' + this.e23_1 + ', statusCode=' + new StatusCode(this.f23_1) + ', response=' + this.g23_1 + ', type=' + this.h23_1 + ')';
|
|
1371
1373
|
};
|
|
1372
1374
|
protoOf(FlattenResponse).hashCode = function () {
|
|
1373
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1374
|
-
result = imul(result, 31) + this.
|
|
1375
|
-
result = imul(result, 31) + this.
|
|
1376
|
-
result = imul(result, 31) + this.
|
|
1377
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
1378
|
-
result = imul(result, 31) + hashCode(this.
|
|
1379
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1375
|
+
var result = Path__hashCode_impl_go73kd(this.b23_1);
|
|
1376
|
+
result = imul(result, 31) + this.c23_1.hashCode() | 0;
|
|
1377
|
+
result = imul(result, 31) + this.d23_1.hashCode() | 0;
|
|
1378
|
+
result = imul(result, 31) + this.e23_1.hashCode() | 0;
|
|
1379
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.f23_1) | 0;
|
|
1380
|
+
result = imul(result, 31) + hashCode(this.g23_1) | 0;
|
|
1381
|
+
result = imul(result, 31) + getStringHashCode(this.h23_1) | 0;
|
|
1380
1382
|
return result;
|
|
1381
1383
|
};
|
|
1382
1384
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -1385,19 +1387,19 @@
|
|
|
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.
|
|
1390
|
+
if (!(this.b23_1 === tmp0_other_with_cast.b23_1))
|
|
1389
1391
|
return false;
|
|
1390
|
-
if (!this.
|
|
1392
|
+
if (!this.c23_1.equals(tmp0_other_with_cast.c23_1))
|
|
1391
1393
|
return false;
|
|
1392
|
-
if (!this.
|
|
1394
|
+
if (!this.d23_1.equals(tmp0_other_with_cast.d23_1))
|
|
1393
1395
|
return false;
|
|
1394
|
-
if (!this.
|
|
1396
|
+
if (!this.e23_1.equals(tmp0_other_with_cast.e23_1))
|
|
1395
1397
|
return false;
|
|
1396
|
-
if (!(this.
|
|
1398
|
+
if (!(this.f23_1 === tmp0_other_with_cast.f23_1))
|
|
1397
1399
|
return false;
|
|
1398
|
-
if (!equals(this.
|
|
1400
|
+
if (!equals(this.g23_1, tmp0_other_with_cast.g23_1))
|
|
1399
1401
|
return false;
|
|
1400
|
-
if (!(this.
|
|
1402
|
+
if (!(this.h23_1 === tmp0_other_with_cast.h23_1))
|
|
1401
1403
|
return false;
|
|
1402
1404
|
return true;
|
|
1403
1405
|
};
|
|
@@ -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.x22_1, this$0), resolveParameters(req.z22_1, this$0));
|
|
1486
|
+
var tmp0_elvis_lhs = toName(req.z22_1, this$0);
|
|
1487
|
+
var name = tmp0_elvis_lhs == null ? toName_0(req.w22_1, this$0) + req.y22_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().r22([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.x22_1, this$0), resolveParameters(req.z22_1, this$0));
|
|
1530
|
+
var tmp0_elvis_lhs = toName(req.z22_1, this$0);
|
|
1531
|
+
var name = tmp0_elvis_lhs == null ? toName_0(req.w22_1, this$0) + req.y22_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().r22([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.z22_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().r22([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().r22([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.g23_1, this$0);
|
|
1678
|
+
var tmp0_elvis_lhs = toName(res.e23_1, this$0);
|
|
1679
|
+
var name = tmp0_elvis_lhs == null ? toName_0(res.b23_1, this$0) + res.d23_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().r22([name, _StatusCode___get_value__impl__we50mu(res.f23_1), res.h23_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().r22([name, _StatusCode___get_value__impl__we50mu(res.f23_1), res.h23_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.r22([tmp$ret$1]);
|
|
1726
1728
|
break;
|
|
1727
1729
|
case false:
|
|
1728
|
-
tmp = Common_getInstance().
|
|
1730
|
+
tmp = Common_getInstance().r22([it]);
|
|
1729
1731
|
break;
|
|
1730
1732
|
default:
|
|
1731
1733
|
noWhenBranchMatchedException();
|
|
@@ -1736,21 +1738,21 @@
|
|
|
1736
1738
|
}
|
|
1737
1739
|
function OpenApiParser(openApi) {
|
|
1738
1740
|
Companion_getInstance_1();
|
|
1739
|
-
this.
|
|
1741
|
+
this.t22_1 = openApi;
|
|
1740
1742
|
}
|
|
1741
|
-
protoOf(OpenApiParser).
|
|
1743
|
+
protoOf(OpenApiParser).u22 = 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.i21(VOID, VOID, true);
|
|
1748
1750
|
} else {
|
|
1749
1751
|
if (_this__u8e3s4 instanceof Any) {
|
|
1750
1752
|
tmp = _this__u8e3s4.a21(VOID, true);
|
|
1751
1753
|
} else {
|
|
1752
1754
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1753
|
-
tmp = _this__u8e3s4.
|
|
1755
|
+
tmp = _this__u8e3s4.k21(VOID, VOID, true);
|
|
1754
1756
|
} else {
|
|
1755
1757
|
if (_this__u8e3s4 instanceof Unit) {
|
|
1756
1758
|
tmp = _this__u8e3s4.d21(VOID, true);
|
|
@@ -1798,13 +1800,13 @@
|
|
|
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.i21(VOID, true);
|
|
1802
1804
|
} else {
|
|
1803
1805
|
if (_this__u8e3s4 instanceof Any) {
|
|
1804
1806
|
tmp = _this__u8e3s4.a21(true);
|
|
1805
1807
|
} else {
|
|
1806
1808
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1807
|
-
tmp = _this__u8e3s4.
|
|
1809
|
+
tmp = _this__u8e3s4.k21(VOID, true);
|
|
1808
1810
|
} else {
|
|
1809
1811
|
if (_this__u8e3s4 instanceof Unit) {
|
|
1810
1812
|
tmp = _this__u8e3s4.d21(true);
|
|
@@ -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).s22 = 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).i23 = function (json, strict, $super) {
|
|
1872
1874
|
strict = strict === VOID ? false : strict;
|
|
1873
|
-
return $super === VOID ? this.
|
|
1875
|
+
return $super === VOID ? this.s22(json, strict) : $super.s22.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.j23_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().r22([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().r22([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().r22([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().r22([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().r22([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().r22([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.j23_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.j23_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.j23_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.j23_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().r22([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().r22([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().r22([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().o1z(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.j23_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.j23_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.j23_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.j23_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.j23_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,150 @@
|
|
|
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().r22([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().r22([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
|
-
var key = e.
|
|
2712
|
+
var key = e.f1y_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
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2726
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
2727
|
+
var tmp_7;
|
|
2728
|
+
if (element_1 instanceof ReferenceObject_0) {
|
|
2729
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
2730
|
+
var tmp0_elvis_lhs_0 = resolveSchemaObject_0(element_1, $this).sd_1.v1j_1;
|
|
2731
|
+
tmp_7 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2677
2732
|
} else {
|
|
2678
|
-
if (
|
|
2679
|
-
// Inline function 'kotlin.collections.flatMap' call
|
|
2733
|
+
if (element_1 instanceof SchemaObject_0) {
|
|
2680
2734
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2681
|
-
var
|
|
2682
|
-
|
|
2683
|
-
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2684
|
-
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
2685
|
-
// Inline function 'kotlin.collections.iterator' call
|
|
2686
|
-
var tmp0_iterator_2 = tmp1_flatMap_0.n2().v();
|
|
2687
|
-
while (tmp0_iterator_2.w()) {
|
|
2688
|
-
var element_1 = tmp0_iterator_2.y();
|
|
2689
|
-
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>.<anonymous>' call
|
|
2690
|
-
// Inline function 'kotlin.collections.component1' call
|
|
2691
|
-
var key_0 = element_1.o2();
|
|
2692
|
-
// Inline function 'kotlin.collections.component2' call
|
|
2693
|
-
var value = element_1.p2();
|
|
2694
|
-
var tmp_5;
|
|
2695
|
-
if (value instanceof ReferenceObject_0) {
|
|
2696
|
-
tmp_5 = emptyList();
|
|
2697
|
-
} else {
|
|
2698
|
-
if (value instanceof SchemaObject_0) {
|
|
2699
|
-
tmp_5 = flatten_1(value, $this, Common_getInstance().o22([name, key_0]));
|
|
2700
|
-
} else {
|
|
2701
|
-
noWhenBranchMatchedException();
|
|
2702
|
-
}
|
|
2703
|
-
}
|
|
2704
|
-
var list_1 = tmp_5;
|
|
2705
|
-
addAll(tmp0_flatMapTo_1, list_1);
|
|
2706
|
-
}
|
|
2707
|
-
tmp_4 = tmp0_flatMapTo_1;
|
|
2735
|
+
var tmp0_elvis_lhs_1 = element_1.v1j_1;
|
|
2736
|
+
tmp_7 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
2708
2737
|
} else {
|
|
2709
2738
|
noWhenBranchMatchedException();
|
|
2710
2739
|
}
|
|
2711
2740
|
}
|
|
2712
|
-
var
|
|
2713
|
-
|
|
2741
|
+
var tmp2_flatMap = tmp_7;
|
|
2742
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2743
|
+
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
2744
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
2745
|
+
var tmp0_iterator_4 = tmp2_flatMap.n2().v();
|
|
2746
|
+
while (tmp0_iterator_4.w()) {
|
|
2747
|
+
var element_2 = tmp0_iterator_4.y();
|
|
2748
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>.<anonymous>' call
|
|
2749
|
+
// Inline function 'kotlin.collections.component1' call
|
|
2750
|
+
var key_0 = element_2.o2();
|
|
2751
|
+
// Inline function 'kotlin.collections.component2' call
|
|
2752
|
+
var value = element_2.p2();
|
|
2753
|
+
var list_2 = flatten_2(value, $this, Common_getInstance().r22([name, key_0]));
|
|
2754
|
+
addAll(tmp0_flatMapTo_1, list_2);
|
|
2755
|
+
}
|
|
2756
|
+
var list_3 = tmp0_flatMapTo_1;
|
|
2757
|
+
addAll(tmp0_flatMapTo_0, list_3);
|
|
2714
2758
|
}
|
|
2715
|
-
tmp = plus(
|
|
2759
|
+
tmp = plus(tmp_6, tmp0_flatMapTo_0);
|
|
2716
2760
|
} else if (!(_this__u8e3s4.p1k_1 == null)) {
|
|
2717
2761
|
// Inline function 'kotlin.let' call
|
|
2718
2762
|
// Inline function 'kotlin.collections.map' call
|
|
2719
|
-
var
|
|
2763
|
+
var tmp8_map = ensureNotNull(_this__u8e3s4.p1k_1);
|
|
2720
2764
|
// 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$
|
|
2765
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp8_map, 10));
|
|
2766
|
+
var tmp0_iterator_5 = tmp8_map.v();
|
|
2767
|
+
while (tmp0_iterator_5.w()) {
|
|
2768
|
+
var item_0 = tmp0_iterator_5.y();
|
|
2769
|
+
var tmp$ret$25;
|
|
2726
2770
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2727
|
-
tmp$ret$
|
|
2728
|
-
tmp0_mapTo.s(tmp$ret$
|
|
2771
|
+
tmp$ret$25 = item_0.n10();
|
|
2772
|
+
tmp0_mapTo.s(tmp$ret$25);
|
|
2729
2773
|
}
|
|
2730
|
-
var
|
|
2774
|
+
var tmp9_let = toSet(tmp0_mapTo);
|
|
2731
2775
|
// Inline function 'kotlin.contracts.contract' call
|
|
2732
2776
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2733
|
-
tmp = listOf(new Enum(name,
|
|
2777
|
+
tmp = listOf(new Enum(name, tmp9_let));
|
|
2734
2778
|
} else {
|
|
2735
2779
|
var tmp5_subject = _this__u8e3s4.p1j_1;
|
|
2736
|
-
var
|
|
2780
|
+
var tmp_8;
|
|
2737
2781
|
switch (tmp5_subject == null ? -1 : tmp5_subject.c9_1) {
|
|
2738
2782
|
case -1:
|
|
2739
2783
|
case 5:
|
|
@@ -2741,59 +2785,59 @@
|
|
|
2741
2785
|
|
|
2742
2786
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2743
2787
|
|
|
2744
|
-
var
|
|
2745
|
-
var
|
|
2788
|
+
var tmp0_elvis_lhs_2 = _this__u8e3s4.v1j_1;
|
|
2789
|
+
var tmp11_flatMap = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
2746
2790
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2747
2791
|
|
|
2748
2792
|
var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
|
|
2749
2793
|
// Inline function 'kotlin.collections.iterator' call
|
|
2750
2794
|
|
|
2751
|
-
var
|
|
2752
|
-
while (
|
|
2753
|
-
var
|
|
2795
|
+
var tmp0_iterator_6 = tmp11_flatMap.n2().v();
|
|
2796
|
+
while (tmp0_iterator_6.w()) {
|
|
2797
|
+
var element_3 = tmp0_iterator_6.y();
|
|
2754
2798
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2755
2799
|
// Inline function 'kotlin.collections.component1' call
|
|
2756
|
-
var key_1 =
|
|
2800
|
+
var key_1 = element_3.o2();
|
|
2757
2801
|
// Inline function 'kotlin.collections.component2' call
|
|
2758
|
-
var value_0 =
|
|
2759
|
-
var
|
|
2760
|
-
addAll(tmp0_flatMapTo_2,
|
|
2802
|
+
var value_0 = element_3.p2();
|
|
2803
|
+
var list_4 = flatten_2(value_0, $this, Common_getInstance().r22([name, key_1]));
|
|
2804
|
+
addAll(tmp0_flatMapTo_2, list_4);
|
|
2761
2805
|
}
|
|
2762
2806
|
|
|
2763
2807
|
var fields = tmp0_flatMapTo_2;
|
|
2764
2808
|
var schema = listOf(new Type(name, new Shape(toField_1(_this__u8e3s4, $this, name))));
|
|
2765
|
-
|
|
2809
|
+
tmp_8 = plus(schema, fields);
|
|
2766
2810
|
break;
|
|
2767
2811
|
case 4:
|
|
2768
2812
|
var tmp6_safe_receiver = _this__u8e3s4.u1j_1;
|
|
2769
|
-
var
|
|
2813
|
+
var tmp_9;
|
|
2770
2814
|
if (tmp6_safe_receiver == null) {
|
|
2771
|
-
|
|
2815
|
+
tmp_9 = null;
|
|
2772
2816
|
} else {
|
|
2773
2817
|
// Inline function 'kotlin.let' call
|
|
2774
2818
|
// Inline function 'kotlin.contracts.contract' call
|
|
2775
2819
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2776
|
-
var
|
|
2820
|
+
var tmp_10;
|
|
2777
2821
|
if (tmp6_safe_receiver instanceof ReferenceObject_0) {
|
|
2778
|
-
|
|
2822
|
+
tmp_10 = emptyList();
|
|
2779
2823
|
} else {
|
|
2780
2824
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
2781
|
-
|
|
2825
|
+
tmp_10 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().r22([name, 'array']));
|
|
2782
2826
|
} else {
|
|
2783
2827
|
noWhenBranchMatchedException();
|
|
2784
2828
|
}
|
|
2785
2829
|
}
|
|
2786
|
-
|
|
2830
|
+
tmp_9 = tmp_10;
|
|
2787
2831
|
}
|
|
2788
2832
|
|
|
2789
|
-
var tmp7_elvis_lhs =
|
|
2790
|
-
|
|
2833
|
+
var tmp7_elvis_lhs = tmp_9;
|
|
2834
|
+
tmp_8 = tmp7_elvis_lhs == null ? emptyList() : tmp7_elvis_lhs;
|
|
2791
2835
|
break;
|
|
2792
2836
|
default:
|
|
2793
|
-
|
|
2837
|
+
tmp_8 = emptyList();
|
|
2794
2838
|
break;
|
|
2795
2839
|
}
|
|
2796
|
-
tmp =
|
|
2840
|
+
tmp = tmp_8;
|
|
2797
2841
|
}
|
|
2798
2842
|
return tmp;
|
|
2799
2843
|
}
|
|
@@ -2836,7 +2880,7 @@
|
|
|
2836
2880
|
}
|
|
2837
2881
|
tmp = tmp_0;
|
|
2838
2882
|
} else if (!(schema.p1k_1 == null)) {
|
|
2839
|
-
tmp = new Custom(Common_getInstance().
|
|
2883
|
+
tmp = new Custom(Common_getInstance().r22([getReference_0(referencingObject, $this)]), false, false);
|
|
2840
2884
|
} else if (isPrimitive_0(schema.p1j_1)) {
|
|
2841
2885
|
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.p1j_1), $this), false, false);
|
|
2842
2886
|
} else {
|
|
@@ -2846,10 +2890,10 @@
|
|
|
2846
2890
|
var items = schema.u1j_1;
|
|
2847
2891
|
var tmp_2;
|
|
2848
2892
|
if (items instanceof ReferenceObject_0) {
|
|
2849
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2893
|
+
tmp_2 = new Custom(Common_getInstance().r22([getReference_0(items, $this)]), true);
|
|
2850
2894
|
} else {
|
|
2851
2895
|
if (items instanceof SchemaObject_0) {
|
|
2852
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2896
|
+
tmp_2 = new Custom(Common_getInstance().r22([getReference_0(referencingObject, $this), 'Array']), true);
|
|
2853
2897
|
} else {
|
|
2854
2898
|
if (items == null) {
|
|
2855
2899
|
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.d1j_1);
|
|
@@ -2861,7 +2905,7 @@
|
|
|
2861
2905
|
}
|
|
2862
2906
|
tmp_1 = tmp_2;
|
|
2863
2907
|
} else {
|
|
2864
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
2908
|
+
tmp_1 = new Custom(Common_getInstance().r22([getReference_0(referencingObject, $this)]), false);
|
|
2865
2909
|
}
|
|
2866
2910
|
tmp = tmp_1;
|
|
2867
2911
|
}
|
|
@@ -3053,15 +3097,15 @@
|
|
|
3053
3097
|
var value = item.p2();
|
|
3054
3098
|
var tmp;
|
|
3055
3099
|
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().
|
|
3100
|
+
var tmp_0 = Companion_getInstance_0().o1z(key);
|
|
3101
|
+
var tmp_1 = !(value.p1k_1 == null) ? toReference_2(value, $this, Common_getInstance().r22([name, key])) : equals(value.p1j_1, Type_ARRAY_getInstance_0()) ? toReference_2(value, $this, Common_getInstance().r22([name, key, 'Array'])) : toReference_2(value, $this, Common_getInstance().r22([name, key]));
|
|
3058
3102
|
var tmp1_safe_receiver = _this__u8e3s4.o1k_1;
|
|
3059
3103
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r(key);
|
|
3060
3104
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
3061
3105
|
} else {
|
|
3062
3106
|
if (value instanceof ReferenceObject_0) {
|
|
3063
|
-
var tmp_2 = Companion_getInstance_0().
|
|
3064
|
-
var tmp_3 = new Custom(Common_getInstance().
|
|
3107
|
+
var tmp_2 = Companion_getInstance_0().o1z(key);
|
|
3108
|
+
var tmp_3 = new Custom(Common_getInstance().r22([getReference_0(value, $this)]), false);
|
|
3065
3109
|
var tmp3_safe_receiver = _this__u8e3s4.o1k_1;
|
|
3066
3110
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.r(key);
|
|
3067
3111
|
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
@@ -3094,7 +3138,7 @@
|
|
|
3094
3138
|
var tmp0_let = tmp;
|
|
3095
3139
|
// Inline function 'kotlin.contracts.contract' call
|
|
3096
3140
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3097
|
-
var tmp_0 = Companion_getInstance_0().
|
|
3141
|
+
var tmp_0 = Companion_getInstance_0().o1z(_this__u8e3s4.j1i_1);
|
|
3098
3142
|
var tmp0_elvis_lhs = _this__u8e3s4.z1h_1;
|
|
3099
3143
|
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3100
3144
|
}
|
|
@@ -3118,24 +3162,24 @@
|
|
|
3118
3162
|
var tmp0_let = tmp;
|
|
3119
3163
|
// Inline function 'kotlin.contracts.contract' call
|
|
3120
3164
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3121
|
-
var tmp_0 = Companion_getInstance_0().
|
|
3165
|
+
var tmp_0 = Companion_getInstance_0().o1z(identifier);
|
|
3122
3166
|
var tmp0_elvis_lhs = _this__u8e3s4.e1l_1;
|
|
3123
3167
|
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3124
3168
|
}
|
|
3125
3169
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
3126
|
-
this.
|
|
3127
|
-
this.
|
|
3128
|
-
this.
|
|
3129
|
-
this.
|
|
3170
|
+
this.k23_1 = path;
|
|
3171
|
+
this.l23_1 = pathItem;
|
|
3172
|
+
this.m23_1 = method;
|
|
3173
|
+
this.n23_1 = operation;
|
|
3130
3174
|
}
|
|
3131
3175
|
protoOf(FlattenRequest_0).toString = function () {
|
|
3132
|
-
return 'FlattenRequest(path=' + new Path_0(this.
|
|
3176
|
+
return 'FlattenRequest(path=' + new Path_0(this.k23_1) + ', pathItem=' + this.l23_1 + ', method=' + this.m23_1 + ', operation=' + this.n23_1 + ')';
|
|
3133
3177
|
};
|
|
3134
3178
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
3135
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3136
|
-
result = imul(result, 31) + this.
|
|
3137
|
-
result = imul(result, 31) + this.
|
|
3138
|
-
result = imul(result, 31) + this.
|
|
3179
|
+
var result = Path__hashCode_impl_go73kd_0(this.k23_1);
|
|
3180
|
+
result = imul(result, 31) + this.l23_1.hashCode() | 0;
|
|
3181
|
+
result = imul(result, 31) + this.m23_1.hashCode() | 0;
|
|
3182
|
+
result = imul(result, 31) + this.n23_1.hashCode() | 0;
|
|
3139
3183
|
return result;
|
|
3140
3184
|
};
|
|
3141
3185
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -3144,13 +3188,13 @@
|
|
|
3144
3188
|
if (!(other instanceof FlattenRequest_0))
|
|
3145
3189
|
return false;
|
|
3146
3190
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
3147
|
-
if (!(this.
|
|
3191
|
+
if (!(this.k23_1 === tmp0_other_with_cast.k23_1))
|
|
3148
3192
|
return false;
|
|
3149
|
-
if (!this.
|
|
3193
|
+
if (!this.l23_1.equals(tmp0_other_with_cast.l23_1))
|
|
3150
3194
|
return false;
|
|
3151
|
-
if (!this.
|
|
3195
|
+
if (!this.m23_1.equals(tmp0_other_with_cast.m23_1))
|
|
3152
3196
|
return false;
|
|
3153
|
-
if (!this.
|
|
3197
|
+
if (!this.n23_1.equals(tmp0_other_with_cast.n23_1))
|
|
3154
3198
|
return false;
|
|
3155
3199
|
return true;
|
|
3156
3200
|
};
|
|
@@ -3201,23 +3245,23 @@
|
|
|
3201
3245
|
return tmp0_flatMapTo_0;
|
|
3202
3246
|
}
|
|
3203
3247
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
3204
|
-
this.
|
|
3205
|
-
this.
|
|
3206
|
-
this.
|
|
3207
|
-
this.
|
|
3208
|
-
this.
|
|
3209
|
-
this.
|
|
3248
|
+
this.o23_1 = path;
|
|
3249
|
+
this.p23_1 = pathItem;
|
|
3250
|
+
this.q23_1 = method;
|
|
3251
|
+
this.r23_1 = operation;
|
|
3252
|
+
this.s23_1 = statusCode;
|
|
3253
|
+
this.t23_1 = response;
|
|
3210
3254
|
}
|
|
3211
3255
|
protoOf(FlattenResponse_0).toString = function () {
|
|
3212
|
-
return 'FlattenResponse(path=' + new Path_0(this.
|
|
3256
|
+
return 'FlattenResponse(path=' + new Path_0(this.o23_1) + ', pathItem=' + this.p23_1 + ', method=' + this.q23_1 + ', operation=' + this.r23_1 + ', statusCode=' + new StatusCode_0(this.s23_1) + ', response=' + this.t23_1 + ')';
|
|
3213
3257
|
};
|
|
3214
3258
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
3215
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3216
|
-
result = imul(result, 31) + this.
|
|
3217
|
-
result = imul(result, 31) + this.
|
|
3218
|
-
result = imul(result, 31) + this.
|
|
3219
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.
|
|
3220
|
-
result = imul(result, 31) + hashCode(this.
|
|
3259
|
+
var result = Path__hashCode_impl_go73kd_0(this.o23_1);
|
|
3260
|
+
result = imul(result, 31) + this.p23_1.hashCode() | 0;
|
|
3261
|
+
result = imul(result, 31) + this.q23_1.hashCode() | 0;
|
|
3262
|
+
result = imul(result, 31) + this.r23_1.hashCode() | 0;
|
|
3263
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.s23_1) | 0;
|
|
3264
|
+
result = imul(result, 31) + hashCode(this.t23_1) | 0;
|
|
3221
3265
|
return result;
|
|
3222
3266
|
};
|
|
3223
3267
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -3226,17 +3270,17 @@
|
|
|
3226
3270
|
if (!(other instanceof FlattenResponse_0))
|
|
3227
3271
|
return false;
|
|
3228
3272
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
3229
|
-
if (!(this.
|
|
3273
|
+
if (!(this.o23_1 === tmp0_other_with_cast.o23_1))
|
|
3230
3274
|
return false;
|
|
3231
|
-
if (!this.
|
|
3275
|
+
if (!this.p23_1.equals(tmp0_other_with_cast.p23_1))
|
|
3232
3276
|
return false;
|
|
3233
|
-
if (!this.
|
|
3277
|
+
if (!this.q23_1.equals(tmp0_other_with_cast.q23_1))
|
|
3234
3278
|
return false;
|
|
3235
|
-
if (!this.
|
|
3279
|
+
if (!this.r23_1.equals(tmp0_other_with_cast.r23_1))
|
|
3236
3280
|
return false;
|
|
3237
|
-
if (!(this.
|
|
3281
|
+
if (!(this.s23_1 === tmp0_other_with_cast.s23_1))
|
|
3238
3282
|
return false;
|
|
3239
|
-
if (!equals(this.
|
|
3283
|
+
if (!equals(this.t23_1, tmp0_other_with_cast.t23_1))
|
|
3240
3284
|
return false;
|
|
3241
3285
|
return true;
|
|
3242
3286
|
};
|
|
@@ -3312,9 +3356,9 @@
|
|
|
3312
3356
|
}
|
|
3313
3357
|
function OpenApiParser$parseParameters$lambda_0(this$0) {
|
|
3314
3358
|
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.
|
|
3359
|
+
var parameters = plus(resolveParameters_2(req.l23_1, this$0), resolveParameters_1(req.n23_1, this$0));
|
|
3360
|
+
var tmp0_elvis_lhs = toName_1(req.n23_1, this$0);
|
|
3361
|
+
var name = tmp0_elvis_lhs == null ? toName_2(req.k23_1, this$0) + req.m23_1.b9_1 : tmp0_elvis_lhs;
|
|
3318
3362
|
var tmp$ret$2;
|
|
3319
3363
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3320
3364
|
var tmp$ret$1;
|
|
@@ -3326,7 +3370,7 @@
|
|
|
3326
3370
|
var tmp$ret$0;
|
|
3327
3371
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
3328
3372
|
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().
|
|
3373
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().r22([name, 'Parameter', element.j1i_1]));
|
|
3330
3374
|
tmp$ret$0 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
3331
3375
|
var list = tmp$ret$0;
|
|
3332
3376
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -3338,13 +3382,13 @@
|
|
|
3338
3382
|
}
|
|
3339
3383
|
function OpenApiParser$parseRequestBody$lambda_0(this$0) {
|
|
3340
3384
|
return function (req) {
|
|
3341
|
-
var tmp0_elvis_lhs = toName_1(req.
|
|
3342
|
-
var name = tmp0_elvis_lhs == null ? toName_2(req.
|
|
3385
|
+
var tmp0_elvis_lhs = toName_1(req.n23_1, this$0);
|
|
3386
|
+
var name = tmp0_elvis_lhs == null ? toName_2(req.k23_1, this$0) + req.m23_1.b9_1 : tmp0_elvis_lhs;
|
|
3343
3387
|
var tmp$ret$6;
|
|
3344
3388
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3345
3389
|
var tmp$ret$0;
|
|
3346
3390
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3347
|
-
var tmp1_safe_receiver = req.
|
|
3391
|
+
var tmp1_safe_receiver = req.n23_1.p1h_1;
|
|
3348
3392
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_6(tmp1_safe_receiver, this$0);
|
|
3349
3393
|
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.p1i_1;
|
|
3350
3394
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
@@ -3374,13 +3418,13 @@
|
|
|
3374
3418
|
switch (tmp0) {
|
|
3375
3419
|
case -1:
|
|
3376
3420
|
case 5:
|
|
3377
|
-
tmp_0 = flatten_1(schema, this$0, Common_getInstance().
|
|
3421
|
+
tmp_0 = flatten_1(schema, this$0, Common_getInstance().r22([name, 'RequestBody']));
|
|
3378
3422
|
break;
|
|
3379
3423
|
case 4:
|
|
3380
3424
|
var tmp$ret$3;
|
|
3381
3425
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3382
3426
|
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().
|
|
3427
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().r22([name, 'RequestBody']));
|
|
3384
3428
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
3385
3429
|
tmp$ret$3 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
3386
3430
|
|
|
@@ -3413,9 +3457,9 @@
|
|
|
3413
3457
|
}
|
|
3414
3458
|
function OpenApiParser$parseResponseBody$lambda_0(this$0) {
|
|
3415
3459
|
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.
|
|
3460
|
+
var tmp0_elvis_lhs = toName_1(res.r23_1, this$0);
|
|
3461
|
+
var name = tmp0_elvis_lhs == null ? toName_2(res.o23_1, this$0) + res.q23_1.b9_1 : tmp0_elvis_lhs;
|
|
3462
|
+
var response = res.t23_1;
|
|
3419
3463
|
var tmp;
|
|
3420
3464
|
if (response instanceof ResponseObject_0) {
|
|
3421
3465
|
var tmp$ret$7;
|
|
@@ -3454,13 +3498,13 @@
|
|
|
3454
3498
|
switch (tmp0) {
|
|
3455
3499
|
case -1:
|
|
3456
3500
|
case 5:
|
|
3457
|
-
tmp_1 = flatten_1(schema, this$0, Common_getInstance().
|
|
3501
|
+
tmp_1 = flatten_1(schema, this$0, Common_getInstance().r22([name, _StatusCode___get_value__impl__we50mu_0(res.s23_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
3458
3502
|
break;
|
|
3459
3503
|
case 4:
|
|
3460
3504
|
var tmp$ret$4;
|
|
3461
3505
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3462
3506
|
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().
|
|
3507
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().r22([name, _StatusCode___get_value__impl__we50mu_0(res.s23_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
3464
3508
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
3465
3509
|
tmp$ret$4 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
3466
3510
|
|
|
@@ -3506,10 +3550,10 @@
|
|
|
3506
3550
|
tmp$ret$0 = it;
|
|
3507
3551
|
tmp$ret$1 = tmp$ret$0.substring(1, tmp0_substring);
|
|
3508
3552
|
|
|
3509
|
-
tmp = tmp_0.
|
|
3553
|
+
tmp = tmp_0.r22([tmp$ret$1]);
|
|
3510
3554
|
break;
|
|
3511
3555
|
case false:
|
|
3512
|
-
tmp = Common_getInstance().
|
|
3556
|
+
tmp = Common_getInstance().r22([it]);
|
|
3513
3557
|
break;
|
|
3514
3558
|
default:
|
|
3515
3559
|
noWhenBranchMatchedException();
|
|
@@ -3520,18 +3564,18 @@
|
|
|
3520
3564
|
}
|
|
3521
3565
|
function OpenApiParser_0(openApi) {
|
|
3522
3566
|
Companion_getInstance_2();
|
|
3523
|
-
this.
|
|
3567
|
+
this.j23_1 = openApi;
|
|
3524
3568
|
}
|
|
3525
3569
|
function toMap_1(_this__u8e3s4) {
|
|
3526
3570
|
var tmp;
|
|
3527
3571
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3528
|
-
tmp = _this__u8e3s4.
|
|
3572
|
+
tmp = _this__u8e3s4.i21(VOID, VOID, true);
|
|
3529
3573
|
} else {
|
|
3530
3574
|
if (_this__u8e3s4 instanceof Any) {
|
|
3531
3575
|
tmp = _this__u8e3s4.a21(VOID, true);
|
|
3532
3576
|
} else {
|
|
3533
3577
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3534
|
-
tmp = _this__u8e3s4.
|
|
3578
|
+
tmp = _this__u8e3s4.k21(VOID, VOID, true);
|
|
3535
3579
|
} else {
|
|
3536
3580
|
if (_this__u8e3s4 instanceof Unit) {
|
|
3537
3581
|
tmp = _this__u8e3s4.d21(VOID, true);
|
|
@@ -3576,13 +3620,13 @@
|
|
|
3576
3620
|
function toIterable_0(_this__u8e3s4) {
|
|
3577
3621
|
var tmp;
|
|
3578
3622
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3579
|
-
tmp = _this__u8e3s4.
|
|
3623
|
+
tmp = _this__u8e3s4.i21(VOID, true);
|
|
3580
3624
|
} else {
|
|
3581
3625
|
if (_this__u8e3s4 instanceof Any) {
|
|
3582
3626
|
tmp = _this__u8e3s4.a21(true);
|
|
3583
3627
|
} else {
|
|
3584
3628
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3585
|
-
tmp = _this__u8e3s4.
|
|
3629
|
+
tmp = _this__u8e3s4.k21(VOID, true);
|
|
3586
3630
|
} else {
|
|
3587
3631
|
if (_this__u8e3s4 instanceof Unit) {
|
|
3588
3632
|
tmp = _this__u8e3s4.d21(true);
|