@flock/wirespec 0.8.46 → 0.8.49
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-core.js +68 -47
- package/arrow-arrow-core.js.map +1 -1
- package/clikt-clikt.js +1207 -1207
- package/clikt-clikt.js.map +1 -1
- package/colormath-root-colormath.js +363 -363
- package/colormath-root-colormath.js.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js +223 -223
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin-openapi-bindings.js +2 -2
- package/kotlin-openapi-bindings.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +16 -16
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +9 -9
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/markdown.js +1896 -1896
- package/markdown.js.map +1 -1
- package/mordant-mordant.js +1650 -1650
- package/mordant-mordant.js.map +1 -1
- package/package.json +3 -3
- package/wirespec-bin.js +2 -2
- package/wirespec-src-compiler-core.js +1525 -1520
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +403 -380
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-converter-openapi.js +211 -211
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-plugin-arguments.js +543 -0
- package/wirespec-src-plugin-arguments.js.map +1 -0
- package/{wirespec-src-compiler-cli.js → wirespec-src-plugin-cli.js} +431 -812
- package/wirespec-src-plugin-cli.js.map +1 -0
- package/wirespec-src-compiler-cli.js.map +0 -1
- package/wirespec-src-compiler-lib.d.ts +0 -357
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
'use strict';
|
|
23
23
|
//region block: imports
|
|
24
24
|
var imul = Math.imul;
|
|
25
|
-
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
25
|
+
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.j1;
|
|
26
26
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
27
27
|
var split = kotlin_kotlin.$_$.bc;
|
|
28
28
|
var addAll = kotlin_kotlin.$_$.k4;
|
|
@@ -45,15 +45,15 @@
|
|
|
45
45
|
var NotImplementedError = kotlin_kotlin.$_$.hd;
|
|
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
|
-
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
49
|
-
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
48
|
+
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.i;
|
|
49
|
+
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.k;
|
|
50
50
|
var emptyMap = kotlin_kotlin.$_$.i5;
|
|
51
51
|
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g1;
|
|
52
52
|
var emptyList = kotlin_kotlin.$_$.h5;
|
|
53
|
-
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
53
|
+
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.l;
|
|
54
54
|
var HashSet_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
55
55
|
var to = kotlin_kotlin.$_$.je;
|
|
56
|
-
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
56
|
+
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.o;
|
|
57
57
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
58
58
|
var THROW_CCE = kotlin_kotlin.$_$.ld;
|
|
59
59
|
var Map = kotlin_kotlin.$_$.f4;
|
|
@@ -64,25 +64,25 @@
|
|
|
64
64
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.j1;
|
|
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
|
-
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
68
|
-
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
67
|
+
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.x;
|
|
68
|
+
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.y;
|
|
69
69
|
var ensureNotNull = kotlin_kotlin.$_$.ae;
|
|
70
70
|
var toSet = kotlin_kotlin.$_$.o7;
|
|
71
|
-
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
72
|
-
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
73
|
-
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
74
|
-
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
75
|
-
var get_entries = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
71
|
+
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.p;
|
|
72
|
+
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.t;
|
|
73
|
+
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.u;
|
|
74
|
+
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.s;
|
|
75
|
+
var get_entries = kotlin_community_flock_wirespec_compiler_core.$_$.j;
|
|
76
76
|
var mapCapacity = kotlin_kotlin.$_$.m6;
|
|
77
77
|
var coerceAtLeast = kotlin_kotlin.$_$.aa;
|
|
78
78
|
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.r;
|
|
79
79
|
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e1;
|
|
80
|
-
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
81
|
-
var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
82
|
-
var Type_Number_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
83
|
-
var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
84
|
-
var Identifier = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
85
|
-
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
80
|
+
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.i1;
|
|
81
|
+
var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.g1;
|
|
82
|
+
var Type_Number_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.h1;
|
|
83
|
+
var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.f1;
|
|
84
|
+
var Identifier = kotlin_community_flock_wirespec_compiler_core.$_$.r;
|
|
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
87
|
var equals = kotlin_kotlin.$_$.o8;
|
|
88
88
|
var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d1;
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
var charSequenceLength = kotlin_kotlin.$_$.j8;
|
|
91
91
|
var charSequenceGet = kotlin_kotlin.$_$.i8;
|
|
92
92
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.r1;
|
|
93
|
-
var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
94
|
-
var Param = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
93
|
+
var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.m;
|
|
94
|
+
var Param = kotlin_community_flock_wirespec_compiler_core.$_$.n;
|
|
95
95
|
var isBlank = kotlin_kotlin.$_$.hb;
|
|
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;
|
|
@@ -100,7 +100,7 @@
|
|
|
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
102
|
var hashCode = kotlin_kotlin.$_$.t8;
|
|
103
|
-
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
103
|
+
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.v;
|
|
104
104
|
var toMap = kotlin_kotlin.$_$.m7;
|
|
105
105
|
var OpenAPI_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l;
|
|
106
106
|
var ParameterLocation_QUERY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a1;
|
|
@@ -137,12 +137,12 @@
|
|
|
137
137
|
setMetadataFor(OpenApiParser_0, 'OpenApiParser', classMeta);
|
|
138
138
|
//endregion
|
|
139
139
|
function Common$className$lambda(it) {
|
|
140
|
-
return Companion_getInstance().
|
|
140
|
+
return Companion_getInstance().z1r(it);
|
|
141
141
|
}
|
|
142
142
|
function Common() {
|
|
143
143
|
Common_instance = this;
|
|
144
144
|
}
|
|
145
|
-
protoOf(Common).
|
|
145
|
+
protoOf(Common).l22 = function (arg) {
|
|
146
146
|
// Inline function 'kotlin.collections.flatMap' call
|
|
147
147
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
148
148
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -174,16 +174,16 @@
|
|
|
174
174
|
function Companion() {
|
|
175
175
|
Companion_instance = this;
|
|
176
176
|
}
|
|
177
|
-
protoOf(Companion).
|
|
177
|
+
protoOf(Companion).m22 = function (json, ignoreUnknown) {
|
|
178
178
|
// Inline function 'kotlin.let' call
|
|
179
179
|
var tmp0_let = (new OpenAPI(Json(VOID, OpenApiParser$Companion$parse$lambda(ignoreUnknown)))).q16(json);
|
|
180
180
|
// Inline function 'kotlin.contracts.contract' call
|
|
181
181
|
// Inline function 'community.flock.wirespec.openapi.v2.Companion.parse.<anonymous>' call
|
|
182
|
-
return (new OpenApiParser(tmp0_let)).
|
|
182
|
+
return (new OpenApiParser(tmp0_let)).o22();
|
|
183
183
|
};
|
|
184
|
-
protoOf(Companion).
|
|
184
|
+
protoOf(Companion).p22 = function (json, ignoreUnknown, $super) {
|
|
185
185
|
ignoreUnknown = ignoreUnknown === VOID ? false : ignoreUnknown;
|
|
186
|
-
return $super === VOID ? this.
|
|
186
|
+
return $super === VOID ? this.m22(json, ignoreUnknown) : $super.m22.call(this, json, ignoreUnknown);
|
|
187
187
|
};
|
|
188
188
|
var Companion_instance;
|
|
189
189
|
function Companion_getInstance_0() {
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
}
|
|
194
194
|
function parseEndpoints($this) {
|
|
195
195
|
// Inline function 'kotlin.collections.flatMap' call
|
|
196
|
-
var tmp0_flatMap = $this.
|
|
196
|
+
var tmp0_flatMap = $this.n22_1.a17_1;
|
|
197
197
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
198
198
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
199
199
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
var element_4 = tmp0_iterator_6.e();
|
|
289
289
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
290
290
|
// Inline function 'kotlin.collections.map' call
|
|
291
|
-
var tmp0_elvis_lhs_0 = $this.
|
|
291
|
+
var tmp0_elvis_lhs_0 = $this.n22_1.y16_1;
|
|
292
292
|
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.j18_1 : tmp0_elvis_lhs_0;
|
|
293
293
|
var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
294
294
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
tmp = toReference(schema, $this);
|
|
305
305
|
} else {
|
|
306
306
|
if (schema instanceof SchemaObject) {
|
|
307
|
-
tmp = toReference_0(schema, $this, Common_getInstance().
|
|
307
|
+
tmp = toReference_0(schema, $this, Common_getInstance().l22([name, 'RequestBody']));
|
|
308
308
|
} else {
|
|
309
309
|
if (schema == null) {
|
|
310
310
|
throw new NotImplementedError();
|
|
@@ -322,7 +322,7 @@
|
|
|
322
322
|
addAll(tmp0_flatMapTo_1, list);
|
|
323
323
|
}
|
|
324
324
|
var tmp_1;
|
|
325
|
-
if (tmp0_flatMapTo_1.
|
|
325
|
+
if (tmp0_flatMapTo_1.g()) {
|
|
326
326
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
327
327
|
tmp_1 = listOf(new Request(null));
|
|
328
328
|
} else {
|
|
@@ -346,7 +346,7 @@
|
|
|
346
346
|
// Inline function 'kotlin.collections.component2' call
|
|
347
347
|
var res = element_5.y();
|
|
348
348
|
// Inline function 'kotlin.collections.map' call
|
|
349
|
-
var tmp0_elvis_lhs_3 = $this.
|
|
349
|
+
var tmp0_elvis_lhs_3 = $this.n22_1.z16_1;
|
|
350
350
|
var tmp1_elvis_lhs_0 = tmp0_elvis_lhs_3 == null ? operation.k18_1 : tmp0_elvis_lhs_3;
|
|
351
351
|
var tmp0_map_0 = tmp1_elvis_lhs_0 == null ? listOf('application/json') : tmp1_elvis_lhs_0;
|
|
352
352
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -371,7 +371,7 @@
|
|
|
371
371
|
tmp_5 = toReference(tmp0_safe_receiver, $this);
|
|
372
372
|
} else {
|
|
373
373
|
if (tmp0_safe_receiver instanceof SchemaObject) {
|
|
374
|
-
tmp_5 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().
|
|
374
|
+
tmp_5 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().l22([name, _StatusCode___get_value__impl__we50mu(status), item_2, 'ResponseBody']));
|
|
375
375
|
} else {
|
|
376
376
|
noWhenBranchMatchedException();
|
|
377
377
|
}
|
|
@@ -390,7 +390,7 @@
|
|
|
390
390
|
while (tmp0_iterator_10.d()) {
|
|
391
391
|
var e = tmp0_iterator_10.e();
|
|
392
392
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
393
|
-
var key = to(e.
|
|
393
|
+
var key = to(e.x1y_1, e.z1y_1);
|
|
394
394
|
if (set.a(key)) {
|
|
395
395
|
list_1.a(e);
|
|
396
396
|
}
|
|
@@ -405,20 +405,20 @@
|
|
|
405
405
|
return tmp0_flatMapTo;
|
|
406
406
|
}
|
|
407
407
|
function parseParameters($this) {
|
|
408
|
-
return flatMapRequests($this.
|
|
408
|
+
return flatMapRequests($this.n22_1, $this, OpenApiParser$parseParameters$lambda($this));
|
|
409
409
|
}
|
|
410
410
|
function parseRequestBody($this) {
|
|
411
|
-
return flatMapRequests($this.
|
|
411
|
+
return flatMapRequests($this.n22_1, $this, OpenApiParser$parseRequestBody$lambda($this));
|
|
412
412
|
}
|
|
413
413
|
function parseResponseBody($this) {
|
|
414
|
-
return flatMapResponses($this.
|
|
414
|
+
return flatMapResponses($this.n22_1, $this, OpenApiParser$parseResponseBody$lambda($this));
|
|
415
415
|
}
|
|
416
416
|
function parseDefinitions($this) {
|
|
417
417
|
// Inline function 'kotlin.collections.flatMap' call
|
|
418
418
|
// Inline function 'kotlin.collections.filter' call
|
|
419
419
|
// Inline function 'arrow.core.filterIsInstance' call
|
|
420
420
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
421
|
-
var tmp0_elvis_lhs = $this.
|
|
421
|
+
var tmp0_elvis_lhs = $this.n22_1.b17_1;
|
|
422
422
|
var tmp1_filterIsInstance = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
423
423
|
// Inline function 'kotlin.collections.filterValues' call
|
|
424
424
|
var result = LinkedHashMap_init_$Create$();
|
|
@@ -451,7 +451,7 @@
|
|
|
451
451
|
while (tmp0_iterator_1.d()) {
|
|
452
452
|
var element_0 = tmp0_iterator_1.e();
|
|
453
453
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
454
|
-
var list = flatten(element_0.y(), $this, Common_getInstance().
|
|
454
|
+
var list = flatten(element_0.y(), $this, Common_getInstance().l22([element_0.x()]));
|
|
455
455
|
addAll(tmp0_flatMapTo, list);
|
|
456
456
|
}
|
|
457
457
|
return tmp0_flatMapTo;
|
|
@@ -511,7 +511,7 @@
|
|
|
511
511
|
return tmp0_mapTo;
|
|
512
512
|
}
|
|
513
513
|
function resolveParameterObject(_this__u8e3s4, $this) {
|
|
514
|
-
var tmp0_safe_receiver = $this.
|
|
514
|
+
var tmp0_safe_receiver = $this.n22_1.c17_1;
|
|
515
515
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q2(getReference(_this__u8e3s4, $this));
|
|
516
516
|
var tmp;
|
|
517
517
|
if (tmp1_elvis_lhs == null) {
|
|
@@ -523,7 +523,7 @@
|
|
|
523
523
|
return tmp;
|
|
524
524
|
}
|
|
525
525
|
function resolveResponseObject(_this__u8e3s4, $this) {
|
|
526
|
-
var tmp0_safe_receiver = $this.
|
|
526
|
+
var tmp0_safe_receiver = $this.n22_1.d17_1;
|
|
527
527
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q2(getReference(_this__u8e3s4, $this));
|
|
528
528
|
var tmp;
|
|
529
529
|
if (tmp1_elvis_lhs == null) {
|
|
@@ -535,7 +535,7 @@
|
|
|
535
535
|
return tmp;
|
|
536
536
|
}
|
|
537
537
|
function resolveSchemaObject(_this__u8e3s4, $this) {
|
|
538
|
-
var tmp0_safe_receiver = $this.
|
|
538
|
+
var tmp0_safe_receiver = $this.n22_1.b17_1;
|
|
539
539
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q2(getReference(_this__u8e3s4, $this));
|
|
540
540
|
var tmp;
|
|
541
541
|
if (tmp1_elvis_lhs == null) {
|
|
@@ -662,7 +662,7 @@
|
|
|
662
662
|
while (tmp0_iterator_0.d()) {
|
|
663
663
|
var e = tmp0_iterator_0.e();
|
|
664
664
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
665
|
-
var key = e.
|
|
665
|
+
var key = e.e1x_1;
|
|
666
666
|
if (set.a(key)) {
|
|
667
667
|
list_0.a(e);
|
|
668
668
|
}
|
|
@@ -701,7 +701,7 @@
|
|
|
701
701
|
tmp_6 = emptyList();
|
|
702
702
|
} else {
|
|
703
703
|
if (value instanceof SchemaObject) {
|
|
704
|
-
tmp_6 = flatten(value, $this, Common_getInstance().
|
|
704
|
+
tmp_6 = flatten(value, $this, Common_getInstance().l22([name, key_0]));
|
|
705
705
|
} else {
|
|
706
706
|
noWhenBranchMatchedException();
|
|
707
707
|
}
|
|
@@ -761,7 +761,7 @@
|
|
|
761
761
|
var key_1 = element_2.x();
|
|
762
762
|
// Inline function 'kotlin.collections.component2' call
|
|
763
763
|
var value_0 = element_2.y();
|
|
764
|
-
var list_3 = flatten_0(value_0, $this, Common_getInstance().
|
|
764
|
+
var list_3 = flatten_0(value_0, $this, Common_getInstance().l22([name, key_1]));
|
|
765
765
|
addAll(tmp0_flatMapTo_2, list_3);
|
|
766
766
|
}
|
|
767
767
|
|
|
@@ -776,7 +776,7 @@
|
|
|
776
776
|
tmp_8 = emptyList();
|
|
777
777
|
} else {
|
|
778
778
|
if (it instanceof SchemaObject) {
|
|
779
|
-
tmp_8 = flatten(it, $this, Common_getInstance().
|
|
779
|
+
tmp_8 = flatten(it, $this, Common_getInstance().l22([name, 'Array']));
|
|
780
780
|
} else {
|
|
781
781
|
if (it == null) {
|
|
782
782
|
tmp_8 = emptyList();
|
|
@@ -834,7 +834,7 @@
|
|
|
834
834
|
}
|
|
835
835
|
tmp = tmp_0;
|
|
836
836
|
} else if (!(schema.v1a_1 == null)) {
|
|
837
|
-
tmp = new Custom(Common_getInstance().
|
|
837
|
+
tmp = new Custom(Common_getInstance().l22([getReference(_this__u8e3s4, $this)]), false, false);
|
|
838
838
|
} else if (isPrimitive(schema.w1a_1)) {
|
|
839
839
|
tmp = new Primitive(toPrimitive(ensureNotNull(schema.w1a_1), $this), false, false);
|
|
840
840
|
} else {
|
|
@@ -844,10 +844,10 @@
|
|
|
844
844
|
var items = schema.x1a_1;
|
|
845
845
|
var tmp_2;
|
|
846
846
|
if (items instanceof ReferenceObject) {
|
|
847
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
847
|
+
tmp_2 = new Custom(Common_getInstance().l22([getReference(items, $this)]), true);
|
|
848
848
|
} else {
|
|
849
849
|
if (items instanceof SchemaObject) {
|
|
850
|
-
tmp_2 = toIterable(toReference_0(items, $this, Common_getInstance().
|
|
850
|
+
tmp_2 = toIterable(toReference_0(items, $this, Common_getInstance().l22([getReference(_this__u8e3s4, $this), 'Array'])));
|
|
851
851
|
} else {
|
|
852
852
|
if (items == null) {
|
|
853
853
|
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.u19_1);
|
|
@@ -861,10 +861,10 @@
|
|
|
861
861
|
} else {
|
|
862
862
|
var tmp_3;
|
|
863
863
|
if (tmp0_let instanceof SchemaObject) {
|
|
864
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
864
|
+
tmp_3 = new Custom(Common_getInstance().l22([getReference(_this__u8e3s4, $this)]), false);
|
|
865
865
|
} else {
|
|
866
866
|
if (tmp0_let instanceof ReferenceObject) {
|
|
867
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
867
|
+
tmp_3 = new Custom(Common_getInstance().l22([getReference(tmp0_let, $this)]), false);
|
|
868
868
|
} else {
|
|
869
869
|
noWhenBranchMatchedException();
|
|
870
870
|
}
|
|
@@ -1014,7 +1014,7 @@
|
|
|
1014
1014
|
return filterNotNullValues(result);
|
|
1015
1015
|
}
|
|
1016
1016
|
function getReference(_this__u8e3s4, $this) {
|
|
1017
|
-
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.u19_1), ['/']).
|
|
1017
|
+
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.u19_1), ['/']).h(2);
|
|
1018
1018
|
}
|
|
1019
1019
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
1020
1020
|
var tmp;
|
|
@@ -1056,7 +1056,7 @@
|
|
|
1056
1056
|
var tmp;
|
|
1057
1057
|
if (value instanceof SchemaObject) {
|
|
1058
1058
|
var tmp_0 = new Identifier(key);
|
|
1059
|
-
var tmp_1 = !(value.v1a_1 == null) ? toReference_0(value, $this, Common_getInstance().
|
|
1059
|
+
var tmp_1 = !(value.v1a_1 == null) ? toReference_0(value, $this, Common_getInstance().l22([name, key])) : equals(value.w1a_1, Type_ARRAY_getInstance()) ? toReference_0(value, $this, Common_getInstance().l22([name, key, 'Array'])) : toReference_0(value, $this, Common_getInstance().l22([name, key]));
|
|
1060
1060
|
var tmp1_safe_receiver = _this__u8e3s4.u1a_1;
|
|
1061
1061
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t(key);
|
|
1062
1062
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
@@ -1084,7 +1084,7 @@
|
|
|
1084
1084
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1085
1085
|
var tmp;
|
|
1086
1086
|
if (!(_this__u8e3s4.p19_1 == null)) {
|
|
1087
|
-
tmp = new Custom(Common_getInstance().
|
|
1087
|
+
tmp = new Custom(Common_getInstance().l22([name, 'Parameter', tmp0_let.u18_1]), false);
|
|
1088
1088
|
} else {
|
|
1089
1089
|
var type = tmp0_let.z18_1;
|
|
1090
1090
|
var tmp_0;
|
|
@@ -1241,7 +1241,7 @@
|
|
|
1241
1241
|
// Inline function 'kotlin.let' call
|
|
1242
1242
|
// Inline function 'kotlin.contracts.contract' call
|
|
1243
1243
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1244
|
-
tmp = Common_getInstance().
|
|
1244
|
+
tmp = Common_getInstance().l22([tmp0_safe_receiver]);
|
|
1245
1245
|
}
|
|
1246
1246
|
return tmp;
|
|
1247
1247
|
}
|
|
@@ -1263,21 +1263,21 @@
|
|
|
1263
1263
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda($this));
|
|
1264
1264
|
}
|
|
1265
1265
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
1266
|
-
this.
|
|
1267
|
-
this.
|
|
1268
|
-
this.
|
|
1269
|
-
this.
|
|
1270
|
-
this.
|
|
1266
|
+
this.q22_1 = path;
|
|
1267
|
+
this.r22_1 = pathItem;
|
|
1268
|
+
this.s22_1 = method;
|
|
1269
|
+
this.t22_1 = operation;
|
|
1270
|
+
this.u22_1 = type;
|
|
1271
1271
|
}
|
|
1272
1272
|
protoOf(FlattenRequest).toString = function () {
|
|
1273
|
-
return 'FlattenRequest(path=' + new Path(this.
|
|
1273
|
+
return 'FlattenRequest(path=' + new Path(this.q22_1) + ', pathItem=' + this.r22_1 + ', method=' + this.s22_1 + ', operation=' + this.t22_1 + ', type=' + this.u22_1 + ')';
|
|
1274
1274
|
};
|
|
1275
1275
|
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.
|
|
1276
|
+
var result = Path__hashCode_impl_go73kd(this.q22_1);
|
|
1277
|
+
result = imul(result, 31) + this.r22_1.hashCode() | 0;
|
|
1278
|
+
result = imul(result, 31) + this.s22_1.hashCode() | 0;
|
|
1279
|
+
result = imul(result, 31) + this.t22_1.hashCode() | 0;
|
|
1280
|
+
result = imul(result, 31) + getStringHashCode(this.u22_1) | 0;
|
|
1281
1281
|
return result;
|
|
1282
1282
|
};
|
|
1283
1283
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -1286,15 +1286,15 @@
|
|
|
1286
1286
|
if (!(other instanceof FlattenRequest))
|
|
1287
1287
|
return false;
|
|
1288
1288
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
1289
|
-
if (!(this.
|
|
1289
|
+
if (!(this.q22_1 === tmp0_other_with_cast.q22_1))
|
|
1290
1290
|
return false;
|
|
1291
|
-
if (!this.
|
|
1291
|
+
if (!this.r22_1.equals(tmp0_other_with_cast.r22_1))
|
|
1292
1292
|
return false;
|
|
1293
|
-
if (!this.
|
|
1293
|
+
if (!this.s22_1.equals(tmp0_other_with_cast.s22_1))
|
|
1294
1294
|
return false;
|
|
1295
|
-
if (!this.
|
|
1295
|
+
if (!this.t22_1.equals(tmp0_other_with_cast.t22_1))
|
|
1296
1296
|
return false;
|
|
1297
|
-
if (!(this.
|
|
1297
|
+
if (!(this.u22_1 === tmp0_other_with_cast.u22_1))
|
|
1298
1298
|
return false;
|
|
1299
1299
|
return true;
|
|
1300
1300
|
};
|
|
@@ -1327,7 +1327,7 @@
|
|
|
1327
1327
|
// Inline function 'kotlin.collections.component2' call
|
|
1328
1328
|
var operation = element_0.y();
|
|
1329
1329
|
// Inline function 'kotlin.collections.map' call
|
|
1330
|
-
var tmp0_elvis_lhs = $this.
|
|
1330
|
+
var tmp0_elvis_lhs = $this.n22_1.y16_1;
|
|
1331
1331
|
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? operation.j18_1 : tmp0_elvis_lhs;
|
|
1332
1332
|
var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
1333
1333
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1358,25 +1358,25 @@
|
|
|
1358
1358
|
return tmp0_flatMapTo_1;
|
|
1359
1359
|
}
|
|
1360
1360
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1363
|
-
this.
|
|
1364
|
-
this.
|
|
1365
|
-
this.
|
|
1366
|
-
this.
|
|
1367
|
-
this.
|
|
1361
|
+
this.v22_1 = path;
|
|
1362
|
+
this.w22_1 = pathItem;
|
|
1363
|
+
this.x22_1 = method;
|
|
1364
|
+
this.y22_1 = operation;
|
|
1365
|
+
this.z22_1 = statusCode;
|
|
1366
|
+
this.a23_1 = response;
|
|
1367
|
+
this.b23_1 = type;
|
|
1368
1368
|
}
|
|
1369
1369
|
protoOf(FlattenResponse).toString = function () {
|
|
1370
|
-
return 'FlattenResponse(path=' + new Path(this.
|
|
1370
|
+
return 'FlattenResponse(path=' + new Path(this.v22_1) + ', pathItem=' + this.w22_1 + ', method=' + this.x22_1 + ', operation=' + this.y22_1 + ', statusCode=' + new StatusCode(this.z22_1) + ', response=' + this.a23_1 + ', type=' + this.b23_1 + ')';
|
|
1371
1371
|
};
|
|
1372
1372
|
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.
|
|
1373
|
+
var result = Path__hashCode_impl_go73kd(this.v22_1);
|
|
1374
|
+
result = imul(result, 31) + this.w22_1.hashCode() | 0;
|
|
1375
|
+
result = imul(result, 31) + this.x22_1.hashCode() | 0;
|
|
1376
|
+
result = imul(result, 31) + this.y22_1.hashCode() | 0;
|
|
1377
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.z22_1) | 0;
|
|
1378
|
+
result = imul(result, 31) + hashCode(this.a23_1) | 0;
|
|
1379
|
+
result = imul(result, 31) + getStringHashCode(this.b23_1) | 0;
|
|
1380
1380
|
return result;
|
|
1381
1381
|
};
|
|
1382
1382
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -1385,19 +1385,19 @@
|
|
|
1385
1385
|
if (!(other instanceof FlattenResponse))
|
|
1386
1386
|
return false;
|
|
1387
1387
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
1388
|
-
if (!(this.
|
|
1388
|
+
if (!(this.v22_1 === tmp0_other_with_cast.v22_1))
|
|
1389
1389
|
return false;
|
|
1390
|
-
if (!this.
|
|
1390
|
+
if (!this.w22_1.equals(tmp0_other_with_cast.w22_1))
|
|
1391
1391
|
return false;
|
|
1392
|
-
if (!this.
|
|
1392
|
+
if (!this.x22_1.equals(tmp0_other_with_cast.x22_1))
|
|
1393
1393
|
return false;
|
|
1394
|
-
if (!this.
|
|
1394
|
+
if (!this.y22_1.equals(tmp0_other_with_cast.y22_1))
|
|
1395
1395
|
return false;
|
|
1396
|
-
if (!(this.
|
|
1396
|
+
if (!(this.z22_1 === tmp0_other_with_cast.z22_1))
|
|
1397
1397
|
return false;
|
|
1398
|
-
if (!equals(this.
|
|
1398
|
+
if (!equals(this.a23_1, tmp0_other_with_cast.a23_1))
|
|
1399
1399
|
return false;
|
|
1400
|
-
if (!(this.
|
|
1400
|
+
if (!(this.b23_1 === tmp0_other_with_cast.b23_1))
|
|
1401
1401
|
return false;
|
|
1402
1402
|
return true;
|
|
1403
1403
|
};
|
|
@@ -1480,9 +1480,9 @@
|
|
|
1480
1480
|
}
|
|
1481
1481
|
function OpenApiParser$parseParameters$lambda(this$0) {
|
|
1482
1482
|
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.
|
|
1483
|
+
var parameters = plus(resolveParameters_0(req.r22_1, this$0), resolveParameters(req.t22_1, this$0));
|
|
1484
|
+
var tmp0_elvis_lhs = toName(req.t22_1, this$0);
|
|
1485
|
+
var name = tmp0_elvis_lhs == null ? toName_0(req.q22_1, this$0) + req.s22_1.o5_1 : tmp0_elvis_lhs;
|
|
1486
1486
|
var tmp$ret$5;
|
|
1487
1487
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1488
1488
|
var tmp$ret$2;
|
|
@@ -1512,7 +1512,7 @@
|
|
|
1512
1512
|
var tmp$ret$3;
|
|
1513
1513
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
1514
1514
|
var tmp0_safe_receiver = element_0.y18_1;
|
|
1515
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_0(tmp0_safe_receiver, this$0, Common_getInstance().
|
|
1515
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_0(tmp0_safe_receiver, this$0, Common_getInstance().l22([name, 'Parameter', element_0.u18_1]));
|
|
1516
1516
|
tmp$ret$3 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
1517
1517
|
var list = tmp$ret$3;
|
|
1518
1518
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -1524,9 +1524,9 @@
|
|
|
1524
1524
|
}
|
|
1525
1525
|
function OpenApiParser$parseRequestBody$lambda(this$0) {
|
|
1526
1526
|
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.
|
|
1527
|
+
var parameters = plus(resolveParameters_0(req.r22_1, this$0), resolveParameters(req.t22_1, this$0));
|
|
1528
|
+
var tmp0_elvis_lhs = toName(req.t22_1, this$0);
|
|
1529
|
+
var name = tmp0_elvis_lhs == null ? toName_0(req.q22_1, this$0) + req.s22_1.o5_1 : tmp0_elvis_lhs;
|
|
1530
1530
|
var tmp$ret$5;
|
|
1531
1531
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1532
1532
|
var tmp$ret$4;
|
|
@@ -1539,7 +1539,7 @@
|
|
|
1539
1539
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1540
1540
|
var tmp;
|
|
1541
1541
|
if (!(element.p19_1 == null)) {
|
|
1542
|
-
var tmp_0 = Common_getInstance().
|
|
1542
|
+
var tmp_0 = Common_getInstance().l22([name, 'Parameter', element.u18_1]);
|
|
1543
1543
|
var tmp$ret$2;
|
|
1544
1544
|
// Inline function 'kotlin.collections.map' call
|
|
1545
1545
|
var tmp0_map = ensureNotNull(element.p19_1);
|
|
@@ -1567,7 +1567,7 @@
|
|
|
1567
1567
|
tmp$ret$4 = tmp0_flatMapTo;
|
|
1568
1568
|
tmp$ret$5 = tmp$ret$4;
|
|
1569
1569
|
var enums = tmp$ret$5;
|
|
1570
|
-
var tmp1_safe_receiver = req.
|
|
1570
|
+
var tmp1_safe_receiver = req.t22_1.l18_1;
|
|
1571
1571
|
var tmp_1;
|
|
1572
1572
|
if (tmp1_safe_receiver == null) {
|
|
1573
1573
|
tmp_1 = null;
|
|
@@ -1637,13 +1637,13 @@
|
|
|
1637
1637
|
switch (tmp0) {
|
|
1638
1638
|
case -1:
|
|
1639
1639
|
case 5:
|
|
1640
|
-
tmp_5 = flatten(schema, this$0, Common_getInstance().
|
|
1640
|
+
tmp_5 = flatten(schema, this$0, Common_getInstance().l22([name, 'RequestBody']));
|
|
1641
1641
|
break;
|
|
1642
1642
|
case 4:
|
|
1643
1643
|
var tmp$ret$12;
|
|
1644
1644
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1645
1645
|
var tmp1_safe_receiver_0 = schema.x1a_1;
|
|
1646
|
-
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
1646
|
+
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().l22([name, 'RequestBody']));
|
|
1647
1647
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1648
1648
|
tmp$ret$12 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1649
1649
|
|
|
@@ -1672,9 +1672,9 @@
|
|
|
1672
1672
|
}
|
|
1673
1673
|
function OpenApiParser$parseResponseBody$lambda(this$0) {
|
|
1674
1674
|
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.
|
|
1675
|
+
var response = resolve_1(res.a23_1, this$0);
|
|
1676
|
+
var tmp0_elvis_lhs = toName(res.y22_1, this$0);
|
|
1677
|
+
var name = tmp0_elvis_lhs == null ? toName_0(res.v22_1, this$0) + res.x22_1.o5_1 : tmp0_elvis_lhs;
|
|
1678
1678
|
var schema = response.i1b_1;
|
|
1679
1679
|
var tmp;
|
|
1680
1680
|
if (schema instanceof SchemaObject) {
|
|
@@ -1684,13 +1684,13 @@
|
|
|
1684
1684
|
switch (tmp0) {
|
|
1685
1685
|
case -1:
|
|
1686
1686
|
case 5:
|
|
1687
|
-
tmp_0 = flatten(schema, this$0, Common_getInstance().
|
|
1687
|
+
tmp_0 = flatten(schema, this$0, Common_getInstance().l22([name, _StatusCode___get_value__impl__we50mu(res.z22_1), res.b23_1, 'ResponseBody']));
|
|
1688
1688
|
break;
|
|
1689
1689
|
case 4:
|
|
1690
1690
|
var tmp$ret$0;
|
|
1691
1691
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1692
1692
|
var tmp2_safe_receiver = schema.x1a_1;
|
|
1693
|
-
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : flatten_0(tmp2_safe_receiver, this$0, Common_getInstance().
|
|
1693
|
+
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : flatten_0(tmp2_safe_receiver, this$0, Common_getInstance().l22([name, _StatusCode___get_value__impl__we50mu(res.z22_1), res.b23_1, 'ResponseBody']));
|
|
1694
1694
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1695
1695
|
tmp$ret$0 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1696
1696
|
|
|
@@ -1722,10 +1722,10 @@
|
|
|
1722
1722
|
tmp$ret$0 = it;
|
|
1723
1723
|
tmp$ret$1 = tmp$ret$0.substring(1, tmp0_substring);
|
|
1724
1724
|
|
|
1725
|
-
tmp = tmp_0.
|
|
1725
|
+
tmp = tmp_0.l22([tmp$ret$1]);
|
|
1726
1726
|
break;
|
|
1727
1727
|
case false:
|
|
1728
|
-
tmp = Common_getInstance().
|
|
1728
|
+
tmp = Common_getInstance().l22([it]);
|
|
1729
1729
|
break;
|
|
1730
1730
|
default:
|
|
1731
1731
|
noWhenBranchMatchedException();
|
|
@@ -1736,24 +1736,24 @@
|
|
|
1736
1736
|
}
|
|
1737
1737
|
function OpenApiParser(openApi) {
|
|
1738
1738
|
Companion_getInstance_0();
|
|
1739
|
-
this.
|
|
1739
|
+
this.n22_1 = openApi;
|
|
1740
1740
|
}
|
|
1741
|
-
protoOf(OpenApiParser).
|
|
1741
|
+
protoOf(OpenApiParser).o22 = function () {
|
|
1742
1742
|
return plus(plus(plus(plus(parseEndpoints(this), parseParameters(this)), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
|
|
1743
1743
|
};
|
|
1744
1744
|
function toMap_0(_this__u8e3s4) {
|
|
1745
1745
|
var tmp;
|
|
1746
1746
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1747
|
-
tmp = _this__u8e3s4.
|
|
1747
|
+
tmp = _this__u8e3s4.h21(VOID, VOID, true);
|
|
1748
1748
|
} else {
|
|
1749
1749
|
if (_this__u8e3s4 instanceof Any) {
|
|
1750
|
-
tmp = _this__u8e3s4.
|
|
1750
|
+
tmp = _this__u8e3s4.c21(VOID, true);
|
|
1751
1751
|
} else {
|
|
1752
1752
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1753
|
-
tmp = _this__u8e3s4.
|
|
1753
|
+
tmp = _this__u8e3s4.j21(VOID, VOID, true);
|
|
1754
1754
|
} else {
|
|
1755
1755
|
if (_this__u8e3s4 instanceof Unit) {
|
|
1756
|
-
tmp = _this__u8e3s4.
|
|
1756
|
+
tmp = _this__u8e3s4.f21(VOID, true);
|
|
1757
1757
|
} else {
|
|
1758
1758
|
noWhenBranchMatchedException();
|
|
1759
1759
|
}
|
|
@@ -1798,16 +1798,16 @@
|
|
|
1798
1798
|
function toIterable(_this__u8e3s4) {
|
|
1799
1799
|
var tmp;
|
|
1800
1800
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1801
|
-
tmp = _this__u8e3s4.
|
|
1801
|
+
tmp = _this__u8e3s4.h21(VOID, true);
|
|
1802
1802
|
} else {
|
|
1803
1803
|
if (_this__u8e3s4 instanceof Any) {
|
|
1804
|
-
tmp = _this__u8e3s4.
|
|
1804
|
+
tmp = _this__u8e3s4.c21(true);
|
|
1805
1805
|
} else {
|
|
1806
1806
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1807
|
-
tmp = _this__u8e3s4.
|
|
1807
|
+
tmp = _this__u8e3s4.j21(VOID, true);
|
|
1808
1808
|
} else {
|
|
1809
1809
|
if (_this__u8e3s4 instanceof Unit) {
|
|
1810
|
-
tmp = _this__u8e3s4.
|
|
1810
|
+
tmp = _this__u8e3s4.f21(true);
|
|
1811
1811
|
} else {
|
|
1812
1812
|
noWhenBranchMatchedException();
|
|
1813
1813
|
}
|
|
@@ -1861,16 +1861,16 @@
|
|
|
1861
1861
|
function Companion_0() {
|
|
1862
1862
|
Companion_instance_0 = this;
|
|
1863
1863
|
}
|
|
1864
|
-
protoOf(Companion_0).
|
|
1864
|
+
protoOf(Companion_0).m22 = function (json, strict) {
|
|
1865
1865
|
// Inline function 'kotlin.let' call
|
|
1866
1866
|
var tmp0_let = (new OpenAPI_0(Json(VOID, OpenApiParser$Companion$parse$lambda_0(strict)))).q16(json);
|
|
1867
1867
|
// Inline function 'kotlin.contracts.contract' call
|
|
1868
1868
|
// Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
|
|
1869
1869
|
return parse(new OpenApiParser_0(tmp0_let));
|
|
1870
1870
|
};
|
|
1871
|
-
protoOf(Companion_0).
|
|
1871
|
+
protoOf(Companion_0).c23 = function (json, strict, $super) {
|
|
1872
1872
|
strict = strict === VOID ? false : strict;
|
|
1873
|
-
return $super === VOID ? this.
|
|
1873
|
+
return $super === VOID ? this.m22(json, strict) : $super.m22.call(this, json, strict);
|
|
1874
1874
|
};
|
|
1875
1875
|
var Companion_instance_0;
|
|
1876
1876
|
function Companion_getInstance_1() {
|
|
@@ -1883,7 +1883,7 @@
|
|
|
1883
1883
|
}
|
|
1884
1884
|
function parseEndpoint($this) {
|
|
1885
1885
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1886
|
-
var tmp0_flatMap = $this.
|
|
1886
|
+
var tmp0_flatMap = $this.d23_1.q1f_1;
|
|
1887
1887
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1888
1888
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1889
1889
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1932,7 +1932,7 @@
|
|
|
1932
1932
|
var item_0 = tmp0_iterator_2.e();
|
|
1933
1933
|
var tmp$ret$9;
|
|
1934
1934
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1935
|
-
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().
|
|
1935
|
+
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().l22([name, 'Parameter', item_0.r1h_1]));
|
|
1936
1936
|
tmp0_mapTo_0.a(tmp$ret$9);
|
|
1937
1937
|
}
|
|
1938
1938
|
var query = tmp0_mapTo_0;
|
|
@@ -1955,7 +1955,7 @@
|
|
|
1955
1955
|
var item_1 = tmp0_iterator_4.e();
|
|
1956
1956
|
var tmp$ret$15;
|
|
1957
1957
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1958
|
-
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().
|
|
1958
|
+
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().l22([name, 'Parameter', item_1.r1h_1]));
|
|
1959
1959
|
tmp0_mapTo_1.a(tmp$ret$15);
|
|
1960
1960
|
}
|
|
1961
1961
|
var headers = tmp0_mapTo_1;
|
|
@@ -1978,7 +1978,7 @@
|
|
|
1978
1978
|
var item_2 = tmp0_iterator_6.e();
|
|
1979
1979
|
var tmp$ret$21;
|
|
1980
1980
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1981
|
-
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().
|
|
1981
|
+
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().l22([name, 'Parameter', item_2.r1h_1]));
|
|
1982
1982
|
tmp0_mapTo_2.a(tmp$ret$21);
|
|
1983
1983
|
}
|
|
1984
1984
|
var cookies = tmp0_mapTo_2;
|
|
@@ -2016,7 +2016,7 @@
|
|
|
2016
2016
|
tmp_2 = toReference_1(schema, $this);
|
|
2017
2017
|
} else {
|
|
2018
2018
|
if (schema instanceof SchemaObject_0) {
|
|
2019
|
-
tmp_2 = toReference_2(schema, $this, Common_getInstance().
|
|
2019
|
+
tmp_2 = toReference_2(schema, $this, Common_getInstance().l22([name, 'RequestBody']));
|
|
2020
2020
|
} else {
|
|
2021
2021
|
if (schema == null) {
|
|
2022
2022
|
throw new NotImplementedError();
|
|
@@ -2089,7 +2089,7 @@
|
|
|
2089
2089
|
var item_5 = tmp0_iterator_10.e();
|
|
2090
2090
|
var tmp$ret$40;
|
|
2091
2091
|
// 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.y(), $this), $this, item_5.x(), Common_getInstance().
|
|
2092
|
+
tmp$ret$40 = toField_3(resolve_4(item_5.y(), $this), $this, item_5.x(), Common_getInstance().l22([name, 'ResponseHeader']));
|
|
2093
2093
|
tmp0_mapTo_5.a(tmp$ret$40);
|
|
2094
2094
|
}
|
|
2095
2095
|
tmp_6 = tmp0_mapTo_5;
|
|
@@ -2103,7 +2103,7 @@
|
|
|
2103
2103
|
tmp_9 = toReference_1(schema_0, $this);
|
|
2104
2104
|
} else {
|
|
2105
2105
|
if (schema_0 instanceof SchemaObject_0) {
|
|
2106
|
-
tmp_9 = toReference_2(schema_0, $this, Common_getInstance().
|
|
2106
|
+
tmp_9 = toReference_2(schema_0, $this, Common_getInstance().l22([name, _StatusCode___get_value__impl__we50mu_0(status), _MediaType___get_value__impl__wy58mp(contentType), 'ResponseBody']));
|
|
2107
2107
|
} else {
|
|
2108
2108
|
if (schema_0 == null) {
|
|
2109
2109
|
tmp_9 = new Any(false);
|
|
@@ -2135,19 +2135,19 @@
|
|
|
2135
2135
|
return tmp0_flatMapTo;
|
|
2136
2136
|
}
|
|
2137
2137
|
function parseParameters_0($this) {
|
|
2138
|
-
return flatMapRequests_0($this.
|
|
2138
|
+
return flatMapRequests_0($this.d23_1, $this, OpenApiParser$parseParameters$lambda_0($this));
|
|
2139
2139
|
}
|
|
2140
2140
|
function parseRequestBody_0($this) {
|
|
2141
|
-
return flatMapRequests_0($this.
|
|
2141
|
+
return flatMapRequests_0($this.d23_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
|
|
2142
2142
|
}
|
|
2143
2143
|
function parseResponseBody_0($this) {
|
|
2144
|
-
return flatMapResponses_0($this.
|
|
2144
|
+
return flatMapResponses_0($this.d23_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
|
|
2145
2145
|
}
|
|
2146
2146
|
function parseComponents($this) {
|
|
2147
2147
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2148
2148
|
// Inline function 'kotlin.collections.filter' call
|
|
2149
2149
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2150
|
-
var tmp0_safe_receiver = $this.
|
|
2150
|
+
var tmp0_safe_receiver = $this.d23_1.r1f_1;
|
|
2151
2151
|
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z1k_1;
|
|
2152
2152
|
var tmp1_filter = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2153
2153
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -2175,7 +2175,7 @@
|
|
|
2175
2175
|
while (tmp0_iterator_0.d()) {
|
|
2176
2176
|
var element_0 = tmp0_iterator_0.e();
|
|
2177
2177
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2178
|
-
var list = flatten_2(element_0.y(), $this, Common_getInstance().
|
|
2178
|
+
var list = flatten_2(element_0.y(), $this, Common_getInstance().l22([element_0.x()]));
|
|
2179
2179
|
addAll(tmp0_flatMapTo, list);
|
|
2180
2180
|
}
|
|
2181
2181
|
return tmp0_flatMapTo;
|
|
@@ -2192,7 +2192,7 @@
|
|
|
2192
2192
|
// Inline function 'kotlin.let' call
|
|
2193
2193
|
// Inline function 'kotlin.contracts.contract' call
|
|
2194
2194
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2195
|
-
tmp = Common_getInstance().
|
|
2195
|
+
tmp = Common_getInstance().l22([tmp0_safe_receiver]);
|
|
2196
2196
|
}
|
|
2197
2197
|
return tmp;
|
|
2198
2198
|
}
|
|
@@ -2265,7 +2265,7 @@
|
|
|
2265
2265
|
var tmp1_safe_receiver = tmp$ret$7;
|
|
2266
2266
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n1h_1;
|
|
2267
2267
|
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().
|
|
2268
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : toReference_2(tmp3_safe_receiver, $this, Common_getInstance().l22([name, 'Parameter', param]));
|
|
2269
2269
|
var tmp_0;
|
|
2270
2270
|
if (tmp4_safe_receiver == null) {
|
|
2271
2271
|
tmp_0 = null;
|
|
@@ -2378,7 +2378,7 @@
|
|
|
2378
2378
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2379
2379
|
}
|
|
2380
2380
|
function resolveParameterObject_0(_this__u8e3s4, $this) {
|
|
2381
|
-
var tmp0_safe_receiver = $this.
|
|
2381
|
+
var tmp0_safe_receiver = $this.d23_1.r1f_1;
|
|
2382
2382
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b1l_1;
|
|
2383
2383
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference_0(_this__u8e3s4, $this));
|
|
2384
2384
|
var tmp;
|
|
@@ -2403,7 +2403,7 @@
|
|
|
2403
2403
|
return tmp;
|
|
2404
2404
|
}
|
|
2405
2405
|
function resolveSchemaObject_0(_this__u8e3s4, $this) {
|
|
2406
|
-
var tmp0_safe_receiver = $this.
|
|
2406
|
+
var tmp0_safe_receiver = $this.d23_1.r1f_1;
|
|
2407
2407
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z1k_1;
|
|
2408
2408
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference_0(_this__u8e3s4, $this));
|
|
2409
2409
|
var tmp;
|
|
@@ -2436,7 +2436,7 @@
|
|
|
2436
2436
|
return tmp_1;
|
|
2437
2437
|
}
|
|
2438
2438
|
function resolveHeaderObject(_this__u8e3s4, $this) {
|
|
2439
|
-
var tmp0_safe_receiver = $this.
|
|
2439
|
+
var tmp0_safe_receiver = $this.d23_1.r1f_1;
|
|
2440
2440
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e1l_1;
|
|
2441
2441
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference_0(_this__u8e3s4, $this));
|
|
2442
2442
|
var tmp;
|
|
@@ -2469,7 +2469,7 @@
|
|
|
2469
2469
|
return tmp_1;
|
|
2470
2470
|
}
|
|
2471
2471
|
function resolveRequestBodyObject(_this__u8e3s4, $this) {
|
|
2472
|
-
var tmp0_safe_receiver = $this.
|
|
2472
|
+
var tmp0_safe_receiver = $this.d23_1.r1f_1;
|
|
2473
2473
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d1l_1;
|
|
2474
2474
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference_0(_this__u8e3s4, $this));
|
|
2475
2475
|
var tmp;
|
|
@@ -2502,7 +2502,7 @@
|
|
|
2502
2502
|
return tmp_1;
|
|
2503
2503
|
}
|
|
2504
2504
|
function resolveResponseObject_0(_this__u8e3s4, $this) {
|
|
2505
|
-
var tmp0_safe_receiver = $this.
|
|
2505
|
+
var tmp0_safe_receiver = $this.d23_1.r1f_1;
|
|
2506
2506
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1l_1;
|
|
2507
2507
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2(getReference_0(_this__u8e3s4, $this));
|
|
2508
2508
|
var tmp;
|
|
@@ -2657,7 +2657,7 @@
|
|
|
2657
2657
|
while (tmp0_iterator_0.d()) {
|
|
2658
2658
|
var e = tmp0_iterator_0.e();
|
|
2659
2659
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2660
|
-
var key = e.
|
|
2660
|
+
var key = e.e1x_1;
|
|
2661
2661
|
if (set.a(key)) {
|
|
2662
2662
|
list_0.a(e);
|
|
2663
2663
|
}
|
|
@@ -2696,7 +2696,7 @@
|
|
|
2696
2696
|
tmp_5 = emptyList();
|
|
2697
2697
|
} else {
|
|
2698
2698
|
if (value instanceof SchemaObject_0) {
|
|
2699
|
-
tmp_5 = flatten_1(value, $this, Common_getInstance().
|
|
2699
|
+
tmp_5 = flatten_1(value, $this, Common_getInstance().l22([name, key_0]));
|
|
2700
2700
|
} else {
|
|
2701
2701
|
noWhenBranchMatchedException();
|
|
2702
2702
|
}
|
|
@@ -2756,7 +2756,7 @@
|
|
|
2756
2756
|
var key_1 = element_2.x();
|
|
2757
2757
|
// Inline function 'kotlin.collections.component2' call
|
|
2758
2758
|
var value_0 = element_2.y();
|
|
2759
|
-
var list_3 = flatten_2(value_0, $this, Common_getInstance().
|
|
2759
|
+
var list_3 = flatten_2(value_0, $this, Common_getInstance().l22([name, key_1]));
|
|
2760
2760
|
addAll(tmp0_flatMapTo_2, list_3);
|
|
2761
2761
|
}
|
|
2762
2762
|
|
|
@@ -2778,7 +2778,7 @@
|
|
|
2778
2778
|
tmp_8 = emptyList();
|
|
2779
2779
|
} else {
|
|
2780
2780
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
2781
|
-
tmp_8 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().
|
|
2781
|
+
tmp_8 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().l22([name, 'array']));
|
|
2782
2782
|
} else {
|
|
2783
2783
|
noWhenBranchMatchedException();
|
|
2784
2784
|
}
|
|
@@ -2836,7 +2836,7 @@
|
|
|
2836
2836
|
}
|
|
2837
2837
|
tmp = tmp_0;
|
|
2838
2838
|
} else if (!(schema.x1j_1 == null)) {
|
|
2839
|
-
tmp = new Custom(Common_getInstance().
|
|
2839
|
+
tmp = new Custom(Common_getInstance().l22([getReference_0(referencingObject, $this)]), false, false);
|
|
2840
2840
|
} else if (isPrimitive_0(schema.x1i_1)) {
|
|
2841
2841
|
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.x1i_1), $this), false, false);
|
|
2842
2842
|
} else {
|
|
@@ -2846,10 +2846,10 @@
|
|
|
2846
2846
|
var items = schema.c1j_1;
|
|
2847
2847
|
var tmp_2;
|
|
2848
2848
|
if (items instanceof ReferenceObject_0) {
|
|
2849
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2849
|
+
tmp_2 = new Custom(Common_getInstance().l22([getReference_0(items, $this)]), true);
|
|
2850
2850
|
} else {
|
|
2851
2851
|
if (items instanceof SchemaObject_0) {
|
|
2852
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2852
|
+
tmp_2 = new Custom(Common_getInstance().l22([getReference_0(referencingObject, $this), 'Array']), true);
|
|
2853
2853
|
} else {
|
|
2854
2854
|
if (items == null) {
|
|
2855
2855
|
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.l1i_1);
|
|
@@ -2861,7 +2861,7 @@
|
|
|
2861
2861
|
}
|
|
2862
2862
|
tmp_1 = tmp_2;
|
|
2863
2863
|
} else {
|
|
2864
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
2864
|
+
tmp_1 = new Custom(Common_getInstance().l22([getReference_0(referencingObject, $this)]), false);
|
|
2865
2865
|
}
|
|
2866
2866
|
tmp = tmp_1;
|
|
2867
2867
|
}
|
|
@@ -3054,14 +3054,14 @@
|
|
|
3054
3054
|
var tmp;
|
|
3055
3055
|
if (value instanceof SchemaObject_0) {
|
|
3056
3056
|
var tmp_0 = new Identifier(key);
|
|
3057
|
-
var tmp_1 = !(value.x1j_1 == null) ? toReference_2(value, $this, Common_getInstance().
|
|
3057
|
+
var tmp_1 = !(value.x1j_1 == null) ? toReference_2(value, $this, Common_getInstance().l22([name, key])) : equals(value.x1i_1, Type_ARRAY_getInstance_0()) ? toReference_2(value, $this, Common_getInstance().l22([name, key, 'Array'])) : toReference_2(value, $this, Common_getInstance().l22([name, key]));
|
|
3058
3058
|
var tmp1_safe_receiver = _this__u8e3s4.w1j_1;
|
|
3059
3059
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t(key);
|
|
3060
3060
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
3061
3061
|
} else {
|
|
3062
3062
|
if (value instanceof ReferenceObject_0) {
|
|
3063
3063
|
var tmp_2 = new Identifier(key);
|
|
3064
|
-
var tmp_3 = new Custom(Common_getInstance().
|
|
3064
|
+
var tmp_3 = new Custom(Common_getInstance().l22([getReference_0(value, $this)]), false);
|
|
3065
3065
|
var tmp3_safe_receiver = _this__u8e3s4.w1j_1;
|
|
3066
3066
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.t(key);
|
|
3067
3067
|
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
@@ -3123,19 +3123,19 @@
|
|
|
3123
3123
|
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3124
3124
|
}
|
|
3125
3125
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
3126
|
-
this.
|
|
3127
|
-
this.
|
|
3128
|
-
this.
|
|
3129
|
-
this.
|
|
3126
|
+
this.e23_1 = path;
|
|
3127
|
+
this.f23_1 = pathItem;
|
|
3128
|
+
this.g23_1 = method;
|
|
3129
|
+
this.h23_1 = operation;
|
|
3130
3130
|
}
|
|
3131
3131
|
protoOf(FlattenRequest_0).toString = function () {
|
|
3132
|
-
return 'FlattenRequest(path=' + new Path_0(this.
|
|
3132
|
+
return 'FlattenRequest(path=' + new Path_0(this.e23_1) + ', pathItem=' + this.f23_1 + ', method=' + this.g23_1 + ', operation=' + this.h23_1 + ')';
|
|
3133
3133
|
};
|
|
3134
3134
|
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.
|
|
3135
|
+
var result = Path__hashCode_impl_go73kd_0(this.e23_1);
|
|
3136
|
+
result = imul(result, 31) + this.f23_1.hashCode() | 0;
|
|
3137
|
+
result = imul(result, 31) + this.g23_1.hashCode() | 0;
|
|
3138
|
+
result = imul(result, 31) + this.h23_1.hashCode() | 0;
|
|
3139
3139
|
return result;
|
|
3140
3140
|
};
|
|
3141
3141
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -3144,13 +3144,13 @@
|
|
|
3144
3144
|
if (!(other instanceof FlattenRequest_0))
|
|
3145
3145
|
return false;
|
|
3146
3146
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
3147
|
-
if (!(this.
|
|
3147
|
+
if (!(this.e23_1 === tmp0_other_with_cast.e23_1))
|
|
3148
3148
|
return false;
|
|
3149
|
-
if (!this.
|
|
3149
|
+
if (!this.f23_1.equals(tmp0_other_with_cast.f23_1))
|
|
3150
3150
|
return false;
|
|
3151
|
-
if (!this.
|
|
3151
|
+
if (!this.g23_1.equals(tmp0_other_with_cast.g23_1))
|
|
3152
3152
|
return false;
|
|
3153
|
-
if (!this.
|
|
3153
|
+
if (!this.h23_1.equals(tmp0_other_with_cast.h23_1))
|
|
3154
3154
|
return false;
|
|
3155
3155
|
return true;
|
|
3156
3156
|
};
|
|
@@ -3201,23 +3201,23 @@
|
|
|
3201
3201
|
return tmp0_flatMapTo_0;
|
|
3202
3202
|
}
|
|
3203
3203
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
3204
|
-
this.
|
|
3205
|
-
this.
|
|
3206
|
-
this.
|
|
3207
|
-
this.
|
|
3208
|
-
this.
|
|
3209
|
-
this.
|
|
3204
|
+
this.i23_1 = path;
|
|
3205
|
+
this.j23_1 = pathItem;
|
|
3206
|
+
this.k23_1 = method;
|
|
3207
|
+
this.l23_1 = operation;
|
|
3208
|
+
this.m23_1 = statusCode;
|
|
3209
|
+
this.n23_1 = response;
|
|
3210
3210
|
}
|
|
3211
3211
|
protoOf(FlattenResponse_0).toString = function () {
|
|
3212
|
-
return 'FlattenResponse(path=' + new Path_0(this.
|
|
3212
|
+
return 'FlattenResponse(path=' + new Path_0(this.i23_1) + ', pathItem=' + this.j23_1 + ', method=' + this.k23_1 + ', operation=' + this.l23_1 + ', statusCode=' + new StatusCode_0(this.m23_1) + ', response=' + this.n23_1 + ')';
|
|
3213
3213
|
};
|
|
3214
3214
|
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.
|
|
3215
|
+
var result = Path__hashCode_impl_go73kd_0(this.i23_1);
|
|
3216
|
+
result = imul(result, 31) + this.j23_1.hashCode() | 0;
|
|
3217
|
+
result = imul(result, 31) + this.k23_1.hashCode() | 0;
|
|
3218
|
+
result = imul(result, 31) + this.l23_1.hashCode() | 0;
|
|
3219
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.m23_1) | 0;
|
|
3220
|
+
result = imul(result, 31) + hashCode(this.n23_1) | 0;
|
|
3221
3221
|
return result;
|
|
3222
3222
|
};
|
|
3223
3223
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -3226,17 +3226,17 @@
|
|
|
3226
3226
|
if (!(other instanceof FlattenResponse_0))
|
|
3227
3227
|
return false;
|
|
3228
3228
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
3229
|
-
if (!(this.
|
|
3229
|
+
if (!(this.i23_1 === tmp0_other_with_cast.i23_1))
|
|
3230
3230
|
return false;
|
|
3231
|
-
if (!this.
|
|
3231
|
+
if (!this.j23_1.equals(tmp0_other_with_cast.j23_1))
|
|
3232
3232
|
return false;
|
|
3233
|
-
if (!this.
|
|
3233
|
+
if (!this.k23_1.equals(tmp0_other_with_cast.k23_1))
|
|
3234
3234
|
return false;
|
|
3235
|
-
if (!this.
|
|
3235
|
+
if (!this.l23_1.equals(tmp0_other_with_cast.l23_1))
|
|
3236
3236
|
return false;
|
|
3237
|
-
if (!(this.
|
|
3237
|
+
if (!(this.m23_1 === tmp0_other_with_cast.m23_1))
|
|
3238
3238
|
return false;
|
|
3239
|
-
if (!equals(this.
|
|
3239
|
+
if (!equals(this.n23_1, tmp0_other_with_cast.n23_1))
|
|
3240
3240
|
return false;
|
|
3241
3241
|
return true;
|
|
3242
3242
|
};
|
|
@@ -3312,9 +3312,9 @@
|
|
|
3312
3312
|
}
|
|
3313
3313
|
function OpenApiParser$parseParameters$lambda_0(this$0) {
|
|
3314
3314
|
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.
|
|
3315
|
+
var parameters = plus(resolveParameters_2(req.f23_1, this$0), resolveParameters_1(req.h23_1, this$0));
|
|
3316
|
+
var tmp0_elvis_lhs = toName_1(req.h23_1, this$0);
|
|
3317
|
+
var name = tmp0_elvis_lhs == null ? toName_2(req.e23_1, this$0) + req.g23_1.o5_1 : tmp0_elvis_lhs;
|
|
3318
3318
|
var tmp$ret$2;
|
|
3319
3319
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3320
3320
|
var tmp$ret$1;
|
|
@@ -3326,7 +3326,7 @@
|
|
|
3326
3326
|
var tmp$ret$0;
|
|
3327
3327
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
3328
3328
|
var tmp0_safe_receiver = element.n1h_1;
|
|
3329
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().
|
|
3329
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().l22([name, 'Parameter', element.r1h_1]));
|
|
3330
3330
|
tmp$ret$0 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
3331
3331
|
var list = tmp$ret$0;
|
|
3332
3332
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -3338,13 +3338,13 @@
|
|
|
3338
3338
|
}
|
|
3339
3339
|
function OpenApiParser$parseRequestBody$lambda_0(this$0) {
|
|
3340
3340
|
return function (req) {
|
|
3341
|
-
var tmp0_elvis_lhs = toName_1(req.
|
|
3342
|
-
var name = tmp0_elvis_lhs == null ? toName_2(req.
|
|
3341
|
+
var tmp0_elvis_lhs = toName_1(req.h23_1, this$0);
|
|
3342
|
+
var name = tmp0_elvis_lhs == null ? toName_2(req.e23_1, this$0) + req.g23_1.o5_1 : tmp0_elvis_lhs;
|
|
3343
3343
|
var tmp$ret$6;
|
|
3344
3344
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3345
3345
|
var tmp$ret$0;
|
|
3346
3346
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3347
|
-
var tmp1_safe_receiver = req.
|
|
3347
|
+
var tmp1_safe_receiver = req.h23_1.x1g_1;
|
|
3348
3348
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_6(tmp1_safe_receiver, this$0);
|
|
3349
3349
|
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.x1h_1;
|
|
3350
3350
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
@@ -3374,13 +3374,13 @@
|
|
|
3374
3374
|
switch (tmp0) {
|
|
3375
3375
|
case -1:
|
|
3376
3376
|
case 5:
|
|
3377
|
-
tmp_0 = flatten_1(schema, this$0, Common_getInstance().
|
|
3377
|
+
tmp_0 = flatten_1(schema, this$0, Common_getInstance().l22([name, 'RequestBody']));
|
|
3378
3378
|
break;
|
|
3379
3379
|
case 4:
|
|
3380
3380
|
var tmp$ret$3;
|
|
3381
3381
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3382
3382
|
var tmp1_safe_receiver_0 = schema.c1j_1;
|
|
3383
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
3383
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().l22([name, 'RequestBody']));
|
|
3384
3384
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
3385
3385
|
tmp$ret$3 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
3386
3386
|
|
|
@@ -3413,9 +3413,9 @@
|
|
|
3413
3413
|
}
|
|
3414
3414
|
function OpenApiParser$parseResponseBody$lambda_0(this$0) {
|
|
3415
3415
|
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.
|
|
3416
|
+
var tmp0_elvis_lhs = toName_1(res.l23_1, this$0);
|
|
3417
|
+
var name = tmp0_elvis_lhs == null ? toName_2(res.i23_1, this$0) + res.k23_1.o5_1 : tmp0_elvis_lhs;
|
|
3418
|
+
var response = res.n23_1;
|
|
3419
3419
|
var tmp;
|
|
3420
3420
|
if (response instanceof ResponseObject_0) {
|
|
3421
3421
|
var tmp$ret$7;
|
|
@@ -3454,13 +3454,13 @@
|
|
|
3454
3454
|
switch (tmp0) {
|
|
3455
3455
|
case -1:
|
|
3456
3456
|
case 5:
|
|
3457
|
-
tmp_1 = flatten_1(schema, this$0, Common_getInstance().
|
|
3457
|
+
tmp_1 = flatten_1(schema, this$0, Common_getInstance().l22([name, _StatusCode___get_value__impl__we50mu_0(res.m23_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
3458
3458
|
break;
|
|
3459
3459
|
case 4:
|
|
3460
3460
|
var tmp$ret$4;
|
|
3461
3461
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3462
3462
|
var tmp1_safe_receiver = schema.c1j_1;
|
|
3463
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().
|
|
3463
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().l22([name, _StatusCode___get_value__impl__we50mu_0(res.m23_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
3464
3464
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
3465
3465
|
tmp$ret$4 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
3466
3466
|
|
|
@@ -3506,10 +3506,10 @@
|
|
|
3506
3506
|
tmp$ret$0 = it;
|
|
3507
3507
|
tmp$ret$1 = tmp$ret$0.substring(1, tmp0_substring);
|
|
3508
3508
|
|
|
3509
|
-
tmp = tmp_0.
|
|
3509
|
+
tmp = tmp_0.l22([tmp$ret$1]);
|
|
3510
3510
|
break;
|
|
3511
3511
|
case false:
|
|
3512
|
-
tmp = Common_getInstance().
|
|
3512
|
+
tmp = Common_getInstance().l22([it]);
|
|
3513
3513
|
break;
|
|
3514
3514
|
default:
|
|
3515
3515
|
noWhenBranchMatchedException();
|
|
@@ -3520,21 +3520,21 @@
|
|
|
3520
3520
|
}
|
|
3521
3521
|
function OpenApiParser_0(openApi) {
|
|
3522
3522
|
Companion_getInstance_1();
|
|
3523
|
-
this.
|
|
3523
|
+
this.d23_1 = openApi;
|
|
3524
3524
|
}
|
|
3525
3525
|
function toMap_1(_this__u8e3s4) {
|
|
3526
3526
|
var tmp;
|
|
3527
3527
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3528
|
-
tmp = _this__u8e3s4.
|
|
3528
|
+
tmp = _this__u8e3s4.h21(VOID, VOID, true);
|
|
3529
3529
|
} else {
|
|
3530
3530
|
if (_this__u8e3s4 instanceof Any) {
|
|
3531
|
-
tmp = _this__u8e3s4.
|
|
3531
|
+
tmp = _this__u8e3s4.c21(VOID, true);
|
|
3532
3532
|
} else {
|
|
3533
3533
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3534
|
-
tmp = _this__u8e3s4.
|
|
3534
|
+
tmp = _this__u8e3s4.j21(VOID, VOID, true);
|
|
3535
3535
|
} else {
|
|
3536
3536
|
if (_this__u8e3s4 instanceof Unit) {
|
|
3537
|
-
tmp = _this__u8e3s4.
|
|
3537
|
+
tmp = _this__u8e3s4.f21(VOID, true);
|
|
3538
3538
|
} else {
|
|
3539
3539
|
noWhenBranchMatchedException();
|
|
3540
3540
|
}
|
|
@@ -3576,16 +3576,16 @@
|
|
|
3576
3576
|
function toIterable_0(_this__u8e3s4) {
|
|
3577
3577
|
var tmp;
|
|
3578
3578
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3579
|
-
tmp = _this__u8e3s4.
|
|
3579
|
+
tmp = _this__u8e3s4.h21(VOID, true);
|
|
3580
3580
|
} else {
|
|
3581
3581
|
if (_this__u8e3s4 instanceof Any) {
|
|
3582
|
-
tmp = _this__u8e3s4.
|
|
3582
|
+
tmp = _this__u8e3s4.c21(true);
|
|
3583
3583
|
} else {
|
|
3584
3584
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3585
|
-
tmp = _this__u8e3s4.
|
|
3585
|
+
tmp = _this__u8e3s4.j21(VOID, true);
|
|
3586
3586
|
} else {
|
|
3587
3587
|
if (_this__u8e3s4 instanceof Unit) {
|
|
3588
|
-
tmp = _this__u8e3s4.
|
|
3588
|
+
tmp = _this__u8e3s4.f21(true);
|
|
3589
3589
|
} else {
|
|
3590
3590
|
noWhenBranchMatchedException();
|
|
3591
3591
|
}
|