@flock/wirespec 0.10.3 → 0.10.4
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/clikt-clikt.js +1139 -1139
- package/colormath-root-colormath.js +423 -423
- package/kotlin-kotlin-stdlib.js +19 -19
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-rgxgen.js +1762 -1762
- package/markdown.js +1850 -1850
- package/mordant-mordant.js +1584 -1584
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +1132 -1168
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +250 -249
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-converter-openapi.js +203 -203
- package/wirespec-src-plugin-arguments.js +78 -78
- package/wirespec-src-plugin-cli.js +118 -118
- package/wirespec-src-plugin-npm.js +6 -6
- package/wirespec-src-tools-generator.js +3 -3
|
@@ -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.$_$.d2;
|
|
26
26
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
27
27
|
var split = kotlin_kotlin.$_$.nd;
|
|
28
28
|
var addAll = kotlin_kotlin.$_$.y4;
|
|
@@ -72,14 +72,14 @@
|
|
|
72
72
|
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.u;
|
|
73
73
|
var _Path___init__impl__6uf4pw = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y1;
|
|
74
74
|
var ParameterLocation_PATH_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g1;
|
|
75
|
-
var Method_GET_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
76
|
-
var Method_POST_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
77
|
-
var Method_PUT_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
78
|
-
var Method_DELETE_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
79
|
-
var Method_PATCH_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
80
|
-
var Method_OPTIONS_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
81
|
-
var Method_TRACE_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
82
|
-
var Method_HEAD_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
75
|
+
var Method_GET_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.m1;
|
|
76
|
+
var Method_POST_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.q1;
|
|
77
|
+
var Method_PUT_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.r1;
|
|
78
|
+
var Method_DELETE_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.l1;
|
|
79
|
+
var Method_PATCH_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.p1;
|
|
80
|
+
var Method_OPTIONS_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.o1;
|
|
81
|
+
var Method_TRACE_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.s1;
|
|
82
|
+
var Method_HEAD_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.n1;
|
|
83
83
|
var Path = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h;
|
|
84
84
|
var PathItemObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
|
|
85
85
|
var Refined = kotlin_community_flock_wirespec_compiler_core.$_$.a1;
|
|
@@ -99,14 +99,14 @@
|
|
|
99
99
|
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i2;
|
|
100
100
|
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.o;
|
|
101
101
|
var HashSet_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
102
|
-
var Companion_instance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
102
|
+
var Companion_instance = kotlin_community_flock_wirespec_compiler_core.$_$.e2;
|
|
103
103
|
var THROW_CCE = kotlin_kotlin.$_$.hf;
|
|
104
104
|
var KtMap = kotlin_kotlin.$_$.t4;
|
|
105
105
|
var isInterface = kotlin_kotlin.$_$.ka;
|
|
106
|
-
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
107
|
-
var Type_Number_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
108
|
-
var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
109
|
-
var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
106
|
+
var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.w1;
|
|
107
|
+
var Type_Number_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.v1;
|
|
108
|
+
var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.u1;
|
|
109
|
+
var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.t1;
|
|
110
110
|
var Ref__toString_impl_irb7zi = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d2;
|
|
111
111
|
var BooleanObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a;
|
|
112
112
|
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.b1;
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
}
|
|
197
197
|
function Common() {
|
|
198
198
|
}
|
|
199
|
-
protoOf(Common).
|
|
199
|
+
protoOf(Common).f2f = function (arg) {
|
|
200
200
|
// Inline function 'kotlin.collections.flatMap' call
|
|
201
201
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
202
202
|
var destination = ArrayList_init_$Create$();
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
var tmp = destination;
|
|
213
213
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, Common$className$lambda);
|
|
214
214
|
};
|
|
215
|
-
protoOf(Common).
|
|
215
|
+
protoOf(Common).g2f = function (_this__u8e3s4) {
|
|
216
216
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
217
217
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
218
218
|
var destination = ArrayList_init_$Create$();
|
|
@@ -935,7 +935,7 @@
|
|
|
935
935
|
tmp_1 = toReference(_this__u8e3s4, OpenApiV2Parser_instance, schema);
|
|
936
936
|
} else {
|
|
937
937
|
if (schema instanceof SchemaObject) {
|
|
938
|
-
tmp_1 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, schema, Common_instance.
|
|
938
|
+
tmp_1 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, schema, Common_instance.f2f([name, 'RequestBody']));
|
|
939
939
|
} else {
|
|
940
940
|
if (schema == null) {
|
|
941
941
|
var reason = 'Not yet implemented';
|
|
@@ -1054,7 +1054,7 @@
|
|
|
1054
1054
|
tmp_11 = toReference(_this__u8e3s4, OpenApiV2Parser_instance, tmp40_safe_receiver);
|
|
1055
1055
|
} else {
|
|
1056
1056
|
if (tmp40_safe_receiver instanceof SchemaObject) {
|
|
1057
|
-
tmp_11 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, tmp40_safe_receiver, Common_instance.
|
|
1057
|
+
tmp_11 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, tmp40_safe_receiver, Common_instance.f2f([name, _StatusCode___get_value__impl__we50mu(status), item_2, 'ResponseBody']));
|
|
1058
1058
|
} else {
|
|
1059
1059
|
noWhenBranchMatchedException();
|
|
1060
1060
|
}
|
|
@@ -1079,7 +1079,7 @@
|
|
|
1079
1079
|
}
|
|
1080
1080
|
}
|
|
1081
1081
|
var responses = list_1;
|
|
1082
|
-
var list_2 = listOf(new Endpoint(null, Companion_instance.
|
|
1082
|
+
var list_2 = listOf(new Endpoint(null, Companion_instance.e2c(name), method, segments, query, headers, emptyList(), requests, responses));
|
|
1083
1083
|
addAll(destination_0, list_2);
|
|
1084
1084
|
}
|
|
1085
1085
|
var list_3 = destination_0;
|
|
@@ -1134,7 +1134,7 @@
|
|
|
1134
1134
|
while (tmp0_iterator_1.h()) {
|
|
1135
1135
|
var element_0 = tmp0_iterator_1.i();
|
|
1136
1136
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseDefinitions.<anonymous>' call
|
|
1137
|
-
var list = flatten(_this__u8e3s4, OpenApiV2Parser_instance, element_0.b1(), Common_instance.
|
|
1137
|
+
var list = flatten(_this__u8e3s4, OpenApiV2Parser_instance, element_0.b1(), Common_instance.f2f([element_0.a1()]));
|
|
1138
1138
|
addAll(destination_0, list);
|
|
1139
1139
|
}
|
|
1140
1140
|
return destination_0;
|
|
@@ -1384,7 +1384,7 @@
|
|
|
1384
1384
|
}
|
|
1385
1385
|
tmp = tmp_0;
|
|
1386
1386
|
} else if (!(schemaObject.f1n_1 == null)) {
|
|
1387
|
-
var tmp_5 = Companion_instance.
|
|
1387
|
+
var tmp_5 = Companion_instance.e2c(name);
|
|
1388
1388
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
1389
1389
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1390
1390
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -1454,7 +1454,7 @@
|
|
|
1454
1454
|
tmp_9 = emptyList();
|
|
1455
1455
|
} else {
|
|
1456
1456
|
if (value instanceof SchemaObject) {
|
|
1457
|
-
tmp_9 = flatten(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_instance.
|
|
1457
|
+
tmp_9 = flatten(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_instance.f2f([name, key_0]));
|
|
1458
1458
|
} else {
|
|
1459
1459
|
noWhenBranchMatchedException();
|
|
1460
1460
|
}
|
|
@@ -1487,7 +1487,7 @@
|
|
|
1487
1487
|
// Inline function 'kotlin.contracts.contract' call
|
|
1488
1488
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
|
|
1489
1489
|
var it = toSet(destination_2);
|
|
1490
|
-
tmp = listOf(new Enum(null, Companion_instance.
|
|
1490
|
+
tmp = listOf(new Enum(null, Companion_instance.e2c(name), it));
|
|
1491
1491
|
} else {
|
|
1492
1492
|
var tmp69_subject = schemaObject.d1n_1;
|
|
1493
1493
|
var tmp_10;
|
|
@@ -1513,12 +1513,12 @@
|
|
|
1513
1513
|
var key_1 = element_2.a1();
|
|
1514
1514
|
// Inline function 'kotlin.collections.component2' call
|
|
1515
1515
|
var value_0 = element_2.b1();
|
|
1516
|
-
var list_3 = flatten_0(_this__u8e3s4, OpenApiV2Parser_instance, value_0, Common_instance.
|
|
1516
|
+
var list_3 = flatten_0(_this__u8e3s4, OpenApiV2Parser_instance, value_0, Common_instance.f2f([name, key_1]));
|
|
1517
1517
|
addAll(destination_3, list_3);
|
|
1518
1518
|
}
|
|
1519
1519
|
|
|
1520
1520
|
var fields = destination_3;
|
|
1521
|
-
var schema = listOf(new Type(null, Companion_instance.
|
|
1521
|
+
var schema = listOf(new Type(null, Companion_instance.e2c(name), new Shape(toField_0(_this__u8e3s4, $this, schemaObject, name)), emptyList()));
|
|
1522
1522
|
tmp_10 = plus(schema, fields);
|
|
1523
1523
|
break;
|
|
1524
1524
|
case 4:
|
|
@@ -1528,7 +1528,7 @@
|
|
|
1528
1528
|
tmp_11 = emptyList();
|
|
1529
1529
|
} else {
|
|
1530
1530
|
if (it_0 instanceof SchemaObject) {
|
|
1531
|
-
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_instance.
|
|
1531
|
+
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_instance.f2f([name, 'Array']));
|
|
1532
1532
|
} else {
|
|
1533
1533
|
if (it_0 == null) {
|
|
1534
1534
|
tmp_11 = emptyList();
|
|
@@ -1586,7 +1586,7 @@
|
|
|
1586
1586
|
}
|
|
1587
1587
|
tmp = tmp_0;
|
|
1588
1588
|
} else if (!(schema.c1n_1 == null)) {
|
|
1589
|
-
tmp = new Custom(Common_instance.
|
|
1589
|
+
tmp = new Custom(Common_instance.f2f([getReference(reference, OpenApiV2Parser_instance)]), false, false);
|
|
1590
1590
|
} else if (isPrimitive(schema.d1n_1)) {
|
|
1591
1591
|
tmp = new Primitive(toPrimitive(ensureNotNull(schema.d1n_1), OpenApiV2Parser_instance), false, false);
|
|
1592
1592
|
} else {
|
|
@@ -1596,10 +1596,10 @@
|
|
|
1596
1596
|
var items = schema.e1n_1;
|
|
1597
1597
|
var tmp_2;
|
|
1598
1598
|
if (items instanceof ReferenceObject) {
|
|
1599
|
-
tmp_2 = new Custom(Common_instance.
|
|
1599
|
+
tmp_2 = new Custom(Common_instance.f2f([getReference(items, OpenApiV2Parser_instance)]), true);
|
|
1600
1600
|
} else {
|
|
1601
1601
|
if (items instanceof SchemaObject) {
|
|
1602
|
-
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, items, Common_instance.
|
|
1602
|
+
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, items, Common_instance.f2f([getReference(reference, OpenApiV2Parser_instance), 'Array'])));
|
|
1603
1603
|
} else {
|
|
1604
1604
|
if (items == null) {
|
|
1605
1605
|
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.m1n_1);
|
|
@@ -1613,10 +1613,10 @@
|
|
|
1613
1613
|
} else {
|
|
1614
1614
|
var tmp_3;
|
|
1615
1615
|
if (refOrSchema instanceof SchemaObject) {
|
|
1616
|
-
tmp_3 = new Custom(Common_instance.
|
|
1616
|
+
tmp_3 = new Custom(Common_instance.f2f([getReference(reference, OpenApiV2Parser_instance)]), false);
|
|
1617
1617
|
} else {
|
|
1618
1618
|
if (refOrSchema instanceof ReferenceObject) {
|
|
1619
|
-
tmp_3 = new Custom(Common_instance.
|
|
1619
|
+
tmp_3 = new Custom(Common_instance.f2f([getReference(refOrSchema, OpenApiV2Parser_instance)]), false);
|
|
1620
1620
|
} else {
|
|
1621
1621
|
noWhenBranchMatchedException();
|
|
1622
1622
|
}
|
|
@@ -1764,7 +1764,7 @@
|
|
|
1764
1764
|
var tmp$ret$0 = tmp_0;
|
|
1765
1765
|
result.m2(element, tmp$ret$0);
|
|
1766
1766
|
}
|
|
1767
|
-
return tmp.
|
|
1767
|
+
return tmp.g2f(result);
|
|
1768
1768
|
}
|
|
1769
1769
|
function getReference(_this__u8e3s4, $this) {
|
|
1770
1770
|
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.m1n_1), ['/']).k(2);
|
|
@@ -1791,7 +1791,7 @@
|
|
|
1791
1791
|
return tmp;
|
|
1792
1792
|
}
|
|
1793
1793
|
function toField(_this__u8e3s4, $this, header, identifier) {
|
|
1794
|
-
var tmp = Companion_instance.
|
|
1794
|
+
var tmp = Companion_instance.e2c(identifier);
|
|
1795
1795
|
var tmp_0;
|
|
1796
1796
|
if (header.f1o_1 === 'array') {
|
|
1797
1797
|
var tmp77_safe_receiver = header.h1o_1;
|
|
@@ -1846,14 +1846,14 @@
|
|
|
1846
1846
|
var value = item.b1();
|
|
1847
1847
|
var tmp;
|
|
1848
1848
|
if (value instanceof SchemaObject) {
|
|
1849
|
-
var tmp_0 = Companion_instance.
|
|
1850
|
-
var tmp_1 = !(value.c1n_1 == null) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_instance.
|
|
1849
|
+
var tmp_0 = Companion_instance.e2c(key);
|
|
1850
|
+
var tmp_1 = !(value.c1n_1 == null) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_instance.f2f([name, key])) : equals(value.d1n_1, Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_instance.f2f([name, key, 'Array'])) : toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_instance.f2f([name, key]));
|
|
1851
1851
|
var tmp80_safe_receiver = schema.b1n_1;
|
|
1852
1852
|
var tmp0_elvis_lhs_0 = tmp80_safe_receiver == null ? null : tmp80_safe_receiver.p1(key);
|
|
1853
1853
|
tmp = new Field(tmp_0, tmp_1, !(tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0));
|
|
1854
1854
|
} else {
|
|
1855
1855
|
if (value instanceof ReferenceObject) {
|
|
1856
|
-
var tmp_2 = Companion_instance.
|
|
1856
|
+
var tmp_2 = Companion_instance.e2c(key);
|
|
1857
1857
|
var tmp_3 = toReference(_this__u8e3s4, OpenApiV2Parser_instance, value);
|
|
1858
1858
|
var tmp81_safe_receiver = schema.b1n_1;
|
|
1859
1859
|
var tmp1_elvis_lhs = tmp81_safe_receiver == null ? null : tmp81_safe_receiver.p1(key);
|
|
@@ -1875,7 +1875,7 @@
|
|
|
1875
1875
|
var it = resolve_3(_this__u8e3s4, $this, parameter);
|
|
1876
1876
|
var tmp;
|
|
1877
1877
|
if (!(parameter.e1j_1 == null)) {
|
|
1878
|
-
tmp = new Custom(Common_instance.
|
|
1878
|
+
tmp = new Custom(Common_instance.f2f([name, 'Parameter', it.j1i_1]), false);
|
|
1879
1879
|
} else {
|
|
1880
1880
|
var type = it.o1i_1;
|
|
1881
1881
|
var tmp_0;
|
|
@@ -1947,7 +1947,7 @@
|
|
|
1947
1947
|
// Inline function 'kotlin.contracts.contract' call
|
|
1948
1948
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>' call
|
|
1949
1949
|
var it_0 = tmp;
|
|
1950
|
-
var tmp_4 = Companion_instance.
|
|
1950
|
+
var tmp_4 = Companion_instance.e2c(parameter.j1i_1);
|
|
1951
1951
|
var tmp0_elvis_lhs_0 = parameter.m1i_1;
|
|
1952
1952
|
return new Field(tmp_4, it_0, !(tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0));
|
|
1953
1953
|
}
|
|
@@ -2014,7 +2014,7 @@
|
|
|
2014
2014
|
// Inline function 'kotlin.let' call
|
|
2015
2015
|
// Inline function 'kotlin.contracts.contract' call
|
|
2016
2016
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toSegments.<anonymous>.<anonymous>' call
|
|
2017
|
-
tmp_3 = new Param(Companion_instance.
|
|
2017
|
+
tmp_3 = new Param(Companion_instance.e2c(param), new Primitive(tmp88_safe_receiver, false));
|
|
2018
2018
|
}
|
|
2019
2019
|
var tmp0_elvis_lhs = tmp_3;
|
|
2020
2020
|
var tmp_4;
|
|
@@ -2045,7 +2045,7 @@
|
|
|
2045
2045
|
// Inline function 'kotlin.let' call
|
|
2046
2046
|
// Inline function 'kotlin.contracts.contract' call
|
|
2047
2047
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toName.<anonymous>' call
|
|
2048
|
-
tmp = Common_instance.
|
|
2048
|
+
tmp = Common_instance.f2f([tmp89_safe_receiver]);
|
|
2049
2049
|
}
|
|
2050
2050
|
return tmp;
|
|
2051
2051
|
}
|
|
@@ -2067,21 +2067,21 @@
|
|
|
2067
2067
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenApiV2Parser$toName$lambda);
|
|
2068
2068
|
}
|
|
2069
2069
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
2070
|
-
this.
|
|
2071
|
-
this.
|
|
2072
|
-
this.
|
|
2073
|
-
this.
|
|
2074
|
-
this.
|
|
2070
|
+
this.h2f_1 = path;
|
|
2071
|
+
this.i2f_1 = pathItem;
|
|
2072
|
+
this.j2f_1 = method;
|
|
2073
|
+
this.k2f_1 = operation;
|
|
2074
|
+
this.l2f_1 = type;
|
|
2075
2075
|
}
|
|
2076
2076
|
protoOf(FlattenRequest).toString = function () {
|
|
2077
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
2077
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.h2f_1) + ', pathItem=' + this.i2f_1.toString() + ', method=' + this.j2f_1.toString() + ', operation=' + this.k2f_1.toString() + ', type=' + this.l2f_1 + ')';
|
|
2078
2078
|
};
|
|
2079
2079
|
protoOf(FlattenRequest).hashCode = function () {
|
|
2080
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2080
|
+
var result = Path__hashCode_impl_go73kd(this.h2f_1);
|
|
2081
|
+
result = imul(result, 31) + this.i2f_1.hashCode() | 0;
|
|
2082
|
+
result = imul(result, 31) + this.j2f_1.hashCode() | 0;
|
|
2081
2083
|
result = imul(result, 31) + this.k2f_1.hashCode() | 0;
|
|
2082
|
-
result = imul(result, 31) + this.l2f_1
|
|
2083
|
-
result = imul(result, 31) + this.m2f_1.hashCode() | 0;
|
|
2084
|
-
result = imul(result, 31) + getStringHashCode(this.n2f_1) | 0;
|
|
2084
|
+
result = imul(result, 31) + getStringHashCode(this.l2f_1) | 0;
|
|
2085
2085
|
return result;
|
|
2086
2086
|
};
|
|
2087
2087
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -2090,15 +2090,15 @@
|
|
|
2090
2090
|
if (!(other instanceof FlattenRequest))
|
|
2091
2091
|
return false;
|
|
2092
2092
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
2093
|
-
if (!(this.
|
|
2093
|
+
if (!(this.h2f_1 === tmp0_other_with_cast.h2f_1))
|
|
2094
2094
|
return false;
|
|
2095
|
-
if (!this.
|
|
2095
|
+
if (!this.i2f_1.equals(tmp0_other_with_cast.i2f_1))
|
|
2096
2096
|
return false;
|
|
2097
|
-
if (!this.
|
|
2097
|
+
if (!this.j2f_1.equals(tmp0_other_with_cast.j2f_1))
|
|
2098
2098
|
return false;
|
|
2099
|
-
if (!this.
|
|
2099
|
+
if (!this.k2f_1.equals(tmp0_other_with_cast.k2f_1))
|
|
2100
2100
|
return false;
|
|
2101
|
-
if (!(this.
|
|
2101
|
+
if (!(this.l2f_1 === tmp0_other_with_cast.l2f_1))
|
|
2102
2102
|
return false;
|
|
2103
2103
|
return true;
|
|
2104
2104
|
};
|
|
@@ -2160,25 +2160,25 @@
|
|
|
2160
2160
|
return destination_2;
|
|
2161
2161
|
}
|
|
2162
2162
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
2163
|
-
this.
|
|
2164
|
-
this.
|
|
2165
|
-
this.
|
|
2166
|
-
this.
|
|
2167
|
-
this.
|
|
2168
|
-
this.
|
|
2169
|
-
this.
|
|
2163
|
+
this.m2f_1 = path;
|
|
2164
|
+
this.n2f_1 = pathItem;
|
|
2165
|
+
this.o2f_1 = method;
|
|
2166
|
+
this.p2f_1 = operation;
|
|
2167
|
+
this.q2f_1 = statusCode;
|
|
2168
|
+
this.r2f_1 = response;
|
|
2169
|
+
this.s2f_1 = type;
|
|
2170
2170
|
}
|
|
2171
2171
|
protoOf(FlattenResponse).toString = function () {
|
|
2172
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
2172
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.m2f_1) + ', pathItem=' + this.n2f_1.toString() + ', method=' + this.o2f_1.toString() + ', operation=' + this.p2f_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy(this.q2f_1) + ', response=' + toString(this.r2f_1) + ', type=' + this.s2f_1 + ')';
|
|
2173
2173
|
};
|
|
2174
2174
|
protoOf(FlattenResponse).hashCode = function () {
|
|
2175
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2175
|
+
var result = Path__hashCode_impl_go73kd(this.m2f_1);
|
|
2176
|
+
result = imul(result, 31) + this.n2f_1.hashCode() | 0;
|
|
2177
|
+
result = imul(result, 31) + this.o2f_1.hashCode() | 0;
|
|
2176
2178
|
result = imul(result, 31) + this.p2f_1.hashCode() | 0;
|
|
2177
|
-
result = imul(result, 31) + this.q2f_1
|
|
2178
|
-
result = imul(result, 31) + this.r2f_1
|
|
2179
|
-
result = imul(result, 31) +
|
|
2180
|
-
result = imul(result, 31) + hashCode(this.t2f_1) | 0;
|
|
2181
|
-
result = imul(result, 31) + getStringHashCode(this.u2f_1) | 0;
|
|
2179
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.q2f_1) | 0;
|
|
2180
|
+
result = imul(result, 31) + hashCode(this.r2f_1) | 0;
|
|
2181
|
+
result = imul(result, 31) + getStringHashCode(this.s2f_1) | 0;
|
|
2182
2182
|
return result;
|
|
2183
2183
|
};
|
|
2184
2184
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -2187,19 +2187,19 @@
|
|
|
2187
2187
|
if (!(other instanceof FlattenResponse))
|
|
2188
2188
|
return false;
|
|
2189
2189
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
2190
|
-
if (!(this.
|
|
2190
|
+
if (!(this.m2f_1 === tmp0_other_with_cast.m2f_1))
|
|
2191
2191
|
return false;
|
|
2192
|
-
if (!this.
|
|
2192
|
+
if (!this.n2f_1.equals(tmp0_other_with_cast.n2f_1))
|
|
2193
2193
|
return false;
|
|
2194
|
-
if (!this.
|
|
2194
|
+
if (!this.o2f_1.equals(tmp0_other_with_cast.o2f_1))
|
|
2195
2195
|
return false;
|
|
2196
|
-
if (!this.
|
|
2196
|
+
if (!this.p2f_1.equals(tmp0_other_with_cast.p2f_1))
|
|
2197
2197
|
return false;
|
|
2198
|
-
if (!(this.
|
|
2198
|
+
if (!(this.q2f_1 === tmp0_other_with_cast.q2f_1))
|
|
2199
2199
|
return false;
|
|
2200
|
-
if (!equals(this.
|
|
2200
|
+
if (!equals(this.r2f_1, tmp0_other_with_cast.r2f_1))
|
|
2201
2201
|
return false;
|
|
2202
|
-
if (!(this.
|
|
2202
|
+
if (!(this.s2f_1 === tmp0_other_with_cast.s2f_1))
|
|
2203
2203
|
return false;
|
|
2204
2204
|
return true;
|
|
2205
2205
|
};
|
|
@@ -2287,9 +2287,9 @@
|
|
|
2287
2287
|
}
|
|
2288
2288
|
function OpenApiV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
2289
2289
|
return function ($this$flatMapRequests) {
|
|
2290
|
-
var parameters = plus(resolveParameters_0($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.
|
|
2291
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2292
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2290
|
+
var parameters = plus(resolveParameters_0($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.i2f_1), resolveParameters($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.k2f_1));
|
|
2291
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.k2f_1, OpenApiV2Parser_instance);
|
|
2292
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.h2f_1, OpenApiV2Parser_instance) + $this$flatMapRequests.j2f_1.p2_1 : tmp0_elvis_lhs;
|
|
2293
2293
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2294
2294
|
// Inline function 'kotlin.collections.filter' call
|
|
2295
2295
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -2316,7 +2316,7 @@
|
|
|
2316
2316
|
// Inline function 'kotlin.let' call
|
|
2317
2317
|
// Inline function 'kotlin.contracts.contract' call
|
|
2318
2318
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
2319
|
-
tmp = flatten_0($this_parseParameters, OpenApiV2Parser_instance, tmp42_safe_receiver, Common_instance.
|
|
2319
|
+
tmp = flatten_0($this_parseParameters, OpenApiV2Parser_instance, tmp42_safe_receiver, Common_instance.f2f([name, 'Parameter', element_0.j1i_1]));
|
|
2320
2320
|
}
|
|
2321
2321
|
var tmp0_elvis_lhs_0 = tmp;
|
|
2322
2322
|
var list = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
@@ -2327,9 +2327,9 @@
|
|
|
2327
2327
|
}
|
|
2328
2328
|
function OpenApiV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
2329
2329
|
return function ($this$flatMapRequests) {
|
|
2330
|
-
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.
|
|
2331
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2332
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2330
|
+
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.i2f_1), resolveParameters($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.k2f_1));
|
|
2331
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.k2f_1, OpenApiV2Parser_instance);
|
|
2332
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.h2f_1, OpenApiV2Parser_instance) + $this$flatMapRequests.j2f_1.p2_1 : tmp0_elvis_lhs;
|
|
2333
2333
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2334
2334
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2335
2335
|
var destination = ArrayList_init_$Create$();
|
|
@@ -2339,7 +2339,7 @@
|
|
|
2339
2339
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
2340
2340
|
var tmp;
|
|
2341
2341
|
if (!(element.e1j_1 == null)) {
|
|
2342
|
-
var tmp_0 = Companion_instance.
|
|
2342
|
+
var tmp_0 = Companion_instance.e2c(Common_instance.f2f([name, 'Parameter', element.j1i_1]));
|
|
2343
2343
|
// Inline function 'kotlin.collections.map' call
|
|
2344
2344
|
var this_0 = ensureNotNull(element.e1j_1);
|
|
2345
2345
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2359,7 +2359,7 @@
|
|
|
2359
2359
|
addAll(destination, list);
|
|
2360
2360
|
}
|
|
2361
2361
|
var enums = destination;
|
|
2362
|
-
var tmp43_safe_receiver = $this$flatMapRequests.
|
|
2362
|
+
var tmp43_safe_receiver = $this$flatMapRequests.k2f_1.g1l_1;
|
|
2363
2363
|
var tmp_1;
|
|
2364
2364
|
if (tmp43_safe_receiver == null) {
|
|
2365
2365
|
tmp_1 = null;
|
|
@@ -2414,7 +2414,7 @@
|
|
|
2414
2414
|
switch (tmp46_subject == null ? -1 : tmp46_subject.q2_1) {
|
|
2415
2415
|
case -1:
|
|
2416
2416
|
case 5:
|
|
2417
|
-
tmp_5 = flatten($this_parseRequestBody, OpenApiV2Parser_instance, schema, Common_instance.
|
|
2417
|
+
tmp_5 = flatten($this_parseRequestBody, OpenApiV2Parser_instance, schema, Common_instance.f2f([name, 'RequestBody']));
|
|
2418
2418
|
break;
|
|
2419
2419
|
case 4:
|
|
2420
2420
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2427,7 +2427,7 @@
|
|
|
2427
2427
|
// Inline function 'kotlin.let' call
|
|
2428
2428
|
// Inline function 'kotlin.contracts.contract' call
|
|
2429
2429
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
2430
|
-
tmp_6 = flatten_0($this_parseRequestBody, OpenApiV2Parser_instance, tmp47_safe_receiver, Common_instance.
|
|
2430
|
+
tmp_6 = flatten_0($this_parseRequestBody, OpenApiV2Parser_instance, tmp47_safe_receiver, Common_instance.f2f([name, 'RequestBody']));
|
|
2431
2431
|
}
|
|
2432
2432
|
|
|
2433
2433
|
var tmp0_elvis_lhs_0 = tmp_6;
|
|
@@ -2453,9 +2453,9 @@
|
|
|
2453
2453
|
}
|
|
2454
2454
|
function OpenApiV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
2455
2455
|
return function ($this$flatMapResponses) {
|
|
2456
|
-
var schema = resolve_1($this_parseResponseBody, OpenApiV2Parser_instance, $this$flatMapResponses.
|
|
2457
|
-
var tmp0_elvis_lhs = toName($this$flatMapResponses.
|
|
2458
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
2456
|
+
var schema = resolve_1($this_parseResponseBody, OpenApiV2Parser_instance, $this$flatMapResponses.r2f_1).l1j_1;
|
|
2457
|
+
var tmp0_elvis_lhs = toName($this$flatMapResponses.p2f_1, OpenApiV2Parser_instance);
|
|
2458
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.m2f_1, OpenApiV2Parser_instance) + $this$flatMapResponses.o2f_1.p2_1 : tmp0_elvis_lhs;
|
|
2459
2459
|
var tmp;
|
|
2460
2460
|
if (schema instanceof SchemaObject) {
|
|
2461
2461
|
var tmp49_subject = schema.d1n_1;
|
|
@@ -2463,7 +2463,7 @@
|
|
|
2463
2463
|
switch (tmp49_subject == null ? -1 : tmp49_subject.q2_1) {
|
|
2464
2464
|
case -1:
|
|
2465
2465
|
case 5:
|
|
2466
|
-
tmp_0 = flatten($this_parseResponseBody, OpenApiV2Parser_instance, schema, Common_instance.
|
|
2466
|
+
tmp_0 = flatten($this_parseResponseBody, OpenApiV2Parser_instance, schema, Common_instance.f2f([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.q2f_1), $this$flatMapResponses.s2f_1, 'ResponseBody']));
|
|
2467
2467
|
break;
|
|
2468
2468
|
case 4:
|
|
2469
2469
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2476,7 +2476,7 @@
|
|
|
2476
2476
|
// Inline function 'kotlin.let' call
|
|
2477
2477
|
// Inline function 'kotlin.contracts.contract' call
|
|
2478
2478
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
2479
|
-
tmp_1 = flatten_0($this_parseResponseBody, OpenApiV2Parser_instance, tmp50_safe_receiver, Common_instance.
|
|
2479
|
+
tmp_1 = flatten_0($this_parseResponseBody, OpenApiV2Parser_instance, tmp50_safe_receiver, Common_instance.f2f([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.q2f_1), $this$flatMapResponses.s2f_1, 'ResponseBody']));
|
|
2480
2480
|
}
|
|
2481
2481
|
|
|
2482
2482
|
var tmp0_elvis_lhs_0 = tmp_1;
|
|
@@ -2504,10 +2504,10 @@
|
|
|
2504
2504
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2505
2505
|
|
|
2506
2506
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
2507
|
-
tmp = tmp_0.
|
|
2507
|
+
tmp = tmp_0.f2f([tmp$ret$1]);
|
|
2508
2508
|
break;
|
|
2509
2509
|
case false:
|
|
2510
|
-
tmp = Common_instance.
|
|
2510
|
+
tmp = Common_instance.f2f([it]);
|
|
2511
2511
|
break;
|
|
2512
2512
|
default:
|
|
2513
2513
|
noWhenBranchMatchedException();
|
|
@@ -2517,14 +2517,14 @@
|
|
|
2517
2517
|
}
|
|
2518
2518
|
function OpenApiV2Parser() {
|
|
2519
2519
|
}
|
|
2520
|
-
protoOf(OpenApiV2Parser).
|
|
2521
|
-
return this.
|
|
2520
|
+
protoOf(OpenApiV2Parser).t2f = function (json, ignoreUnknown) {
|
|
2521
|
+
return this.u2f((new OpenAPI(Json(VOID, OpenApiV2Parser$parse$lambda(ignoreUnknown)))).h1g(json));
|
|
2522
2522
|
};
|
|
2523
|
-
protoOf(OpenApiV2Parser).
|
|
2523
|
+
protoOf(OpenApiV2Parser).v2f = function (json, ignoreUnknown, $super) {
|
|
2524
2524
|
ignoreUnknown = ignoreUnknown === VOID ? false : ignoreUnknown;
|
|
2525
|
-
return $super === VOID ? this.
|
|
2525
|
+
return $super === VOID ? this.t2f(json, ignoreUnknown) : $super.t2f.call(this, json, ignoreUnknown);
|
|
2526
2526
|
};
|
|
2527
|
-
protoOf(OpenApiV2Parser).
|
|
2527
|
+
protoOf(OpenApiV2Parser).u2f = function (_this__u8e3s4) {
|
|
2528
2528
|
// Inline function 'kotlin.collections.reduce' call
|
|
2529
2529
|
var iterator = listOf_0([parseEndpoints(_this__u8e3s4, this), parseParameters(_this__u8e3s4, this), parseRequestBody(_this__u8e3s4, this), parseResponseBody(_this__u8e3s4, this), parseDefinitions(_this__u8e3s4, this)]).g();
|
|
2530
2530
|
if (!iterator.h())
|
|
@@ -2542,16 +2542,16 @@
|
|
|
2542
2542
|
function toMap_0(_this__u8e3s4) {
|
|
2543
2543
|
var tmp;
|
|
2544
2544
|
if (_this__u8e3s4 instanceof Custom) {
|
|
2545
|
-
tmp = _this__u8e3s4.
|
|
2545
|
+
tmp = _this__u8e3s4.v2d(VOID, VOID, true);
|
|
2546
2546
|
} else {
|
|
2547
2547
|
if (_this__u8e3s4 instanceof Any) {
|
|
2548
|
-
tmp = _this__u8e3s4.
|
|
2548
|
+
tmp = _this__u8e3s4.s2d(VOID, true);
|
|
2549
2549
|
} else {
|
|
2550
2550
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
2551
|
-
tmp = _this__u8e3s4.
|
|
2551
|
+
tmp = _this__u8e3s4.x2d(VOID, VOID, true);
|
|
2552
2552
|
} else {
|
|
2553
2553
|
if (_this__u8e3s4 instanceof Unit) {
|
|
2554
|
-
tmp = _this__u8e3s4.
|
|
2554
|
+
tmp = _this__u8e3s4.t2d(VOID, true);
|
|
2555
2555
|
} else {
|
|
2556
2556
|
noWhenBranchMatchedException();
|
|
2557
2557
|
}
|
|
@@ -2596,16 +2596,16 @@
|
|
|
2596
2596
|
function toIterable(_this__u8e3s4) {
|
|
2597
2597
|
var tmp;
|
|
2598
2598
|
if (_this__u8e3s4 instanceof Custom) {
|
|
2599
|
-
tmp = _this__u8e3s4.
|
|
2599
|
+
tmp = _this__u8e3s4.v2d(VOID, true);
|
|
2600
2600
|
} else {
|
|
2601
2601
|
if (_this__u8e3s4 instanceof Any) {
|
|
2602
|
-
tmp = _this__u8e3s4.
|
|
2602
|
+
tmp = _this__u8e3s4.s2d(true);
|
|
2603
2603
|
} else {
|
|
2604
2604
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
2605
|
-
tmp = _this__u8e3s4.
|
|
2605
|
+
tmp = _this__u8e3s4.x2d(VOID, true);
|
|
2606
2606
|
} else {
|
|
2607
2607
|
if (_this__u8e3s4 instanceof Unit) {
|
|
2608
|
-
tmp = _this__u8e3s4.
|
|
2608
|
+
tmp = _this__u8e3s4.t2d(true);
|
|
2609
2609
|
} else {
|
|
2610
2610
|
noWhenBranchMatchedException();
|
|
2611
2611
|
}
|
|
@@ -2646,7 +2646,7 @@
|
|
|
2646
2646
|
var element_1 = tmp0_iterator_1.i();
|
|
2647
2647
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2648
2648
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitComponents.<anonymous>' call
|
|
2649
|
-
var tmp = element_1.
|
|
2649
|
+
var tmp = element_1.n2d().e24_1;
|
|
2650
2650
|
var tmp_0;
|
|
2651
2651
|
if (element_1 instanceof Enum) {
|
|
2652
2652
|
tmp_0 = emit_3(element_1, OpenApiV3Emitter_instance);
|
|
@@ -3197,15 +3197,15 @@
|
|
|
3197
3197
|
}
|
|
3198
3198
|
function OpenApiV3Emitter() {
|
|
3199
3199
|
}
|
|
3200
|
-
protoOf(OpenApiV3Emitter).
|
|
3201
|
-
var tmp0_elvis_lhs = options == null ? null : options.
|
|
3200
|
+
protoOf(OpenApiV3Emitter).w2f = function (ast, options) {
|
|
3201
|
+
var tmp0_elvis_lhs = options == null ? null : options.x2f_1;
|
|
3202
3202
|
var tmp = tmp0_elvis_lhs == null ? 'Wirespec' : tmp0_elvis_lhs;
|
|
3203
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
3203
|
+
var tmp1_elvis_lhs = options == null ? null : options.y2f_1;
|
|
3204
3204
|
return new OpenAPIObject('3.0.0', new InfoObject_0(tmp, VOID, VOID, VOID, VOID, tmp1_elvis_lhs == null ? '0.0.0' : tmp1_elvis_lhs), VOID, emitPaths(ast, this), emitComponents(ast, this));
|
|
3205
3205
|
};
|
|
3206
|
-
protoOf(OpenApiV3Emitter).
|
|
3206
|
+
protoOf(OpenApiV3Emitter).z2f = function (ast, options, $super) {
|
|
3207
3207
|
options = options === VOID ? null : options;
|
|
3208
|
-
return $super === VOID ? this.
|
|
3208
|
+
return $super === VOID ? this.w2f(ast, options) : $super.w2f.call(this, ast, options);
|
|
3209
3209
|
};
|
|
3210
3210
|
var OpenApiV3Emitter_instance;
|
|
3211
3211
|
function OpenApiV3Emitter_getInstance() {
|
|
@@ -3260,7 +3260,7 @@
|
|
|
3260
3260
|
while (tmp0_iterator_2.h()) {
|
|
3261
3261
|
var item_0 = tmp0_iterator_2.i();
|
|
3262
3262
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3263
|
-
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_0, Common_instance.
|
|
3263
|
+
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_0, Common_instance.f2f([name, 'Parameter', item_0.v1v_1]));
|
|
3264
3264
|
destination_2.e(tmp$ret$9);
|
|
3265
3265
|
}
|
|
3266
3266
|
var query = destination_2;
|
|
@@ -3282,7 +3282,7 @@
|
|
|
3282
3282
|
while (tmp0_iterator_4.h()) {
|
|
3283
3283
|
var item_1 = tmp0_iterator_4.i();
|
|
3284
3284
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3285
|
-
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_1, Common_instance.
|
|
3285
|
+
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_1, Common_instance.f2f([name, 'Parameter', item_1.v1v_1]));
|
|
3286
3286
|
destination_4.e(tmp$ret$15);
|
|
3287
3287
|
}
|
|
3288
3288
|
var headers = destination_4;
|
|
@@ -3304,7 +3304,7 @@
|
|
|
3304
3304
|
while (tmp0_iterator_6.h()) {
|
|
3305
3305
|
var item_2 = tmp0_iterator_6.i();
|
|
3306
3306
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3307
|
-
var tmp$ret$21 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_2, Common_instance.
|
|
3307
|
+
var tmp$ret$21 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_2, Common_instance.f2f([name, 'Parameter', item_2.v1v_1]));
|
|
3308
3308
|
destination_6.e(tmp$ret$21);
|
|
3309
3309
|
}
|
|
3310
3310
|
var cookies = destination_6;
|
|
@@ -3350,7 +3350,7 @@
|
|
|
3350
3350
|
tmp_3 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, schema);
|
|
3351
3351
|
} else {
|
|
3352
3352
|
if (schema instanceof SchemaObject_0) {
|
|
3353
|
-
tmp_3 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_instance.
|
|
3353
|
+
tmp_3 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_instance.f2f([name, 'RequestBody']));
|
|
3354
3354
|
} else {
|
|
3355
3355
|
if (schema == null) {
|
|
3356
3356
|
var reason = 'Not yet implemented';
|
|
@@ -3422,7 +3422,7 @@
|
|
|
3422
3422
|
while (tmp0_iterator_10.h()) {
|
|
3423
3423
|
var item_5 = tmp0_iterator_10.i();
|
|
3424
3424
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3425
|
-
var tmp$ret$42 = toField_4(_this__u8e3s4, OpenApiV3Parser_instance, resolve_5(_this__u8e3s4, OpenApiV3Parser_instance, item_5.b1()), item_5.a1(), Common_instance.
|
|
3425
|
+
var tmp$ret$42 = toField_4(_this__u8e3s4, OpenApiV3Parser_instance, resolve_5(_this__u8e3s4, OpenApiV3Parser_instance, item_5.b1()), item_5.a1(), Common_instance.f2f([name, 'ResponseHeader']));
|
|
3426
3426
|
destination_10.e(tmp$ret$42);
|
|
3427
3427
|
}
|
|
3428
3428
|
tmp_7 = destination_10;
|
|
@@ -3436,7 +3436,7 @@
|
|
|
3436
3436
|
tmp_10 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, schema_0);
|
|
3437
3437
|
} else {
|
|
3438
3438
|
if (schema_0 instanceof SchemaObject_0) {
|
|
3439
|
-
tmp_10 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema_0, Common_instance.
|
|
3439
|
+
tmp_10 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema_0, Common_instance.f2f([name, _StatusCode___get_value__impl__we50mu_0(status), _MediaType___get_value__impl__wy58mp(contentType), 'ResponseBody']));
|
|
3440
3440
|
} else {
|
|
3441
3441
|
if (schema_0 == null) {
|
|
3442
3442
|
tmp_10 = new Any(false);
|
|
@@ -3468,7 +3468,7 @@
|
|
|
3468
3468
|
addAll(destination_8, list);
|
|
3469
3469
|
}
|
|
3470
3470
|
var responses = destination_8;
|
|
3471
|
-
var tmp$ret$56 = new Endpoint(null, Companion_instance.
|
|
3471
|
+
var tmp$ret$56 = new Endpoint(null, Companion_instance.e2c(name), method, segments, query, headers, cookies, requests, responses);
|
|
3472
3472
|
destination_0.e(tmp$ret$56);
|
|
3473
3473
|
}
|
|
3474
3474
|
var list_0 = destination_0;
|
|
@@ -3517,7 +3517,7 @@
|
|
|
3517
3517
|
while (tmp0_iterator_0.h()) {
|
|
3518
3518
|
var element_0 = tmp0_iterator_0.i();
|
|
3519
3519
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseComponents.<anonymous>' call
|
|
3520
|
-
var list = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, element_0.b1(), Common_instance.
|
|
3520
|
+
var list = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, element_0.b1(), Common_instance.f2f([element_0.a1()]));
|
|
3521
3521
|
addAll(destination_0, list);
|
|
3522
3522
|
}
|
|
3523
3523
|
return destination_0;
|
|
@@ -3534,7 +3534,7 @@
|
|
|
3534
3534
|
// Inline function 'kotlin.let' call
|
|
3535
3535
|
// Inline function 'kotlin.contracts.contract' call
|
|
3536
3536
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toName.<anonymous>' call
|
|
3537
|
-
tmp = Common_instance.
|
|
3537
|
+
tmp = Common_instance.f2f([tmp135_safe_receiver]);
|
|
3538
3538
|
}
|
|
3539
3539
|
return tmp;
|
|
3540
3540
|
}
|
|
@@ -3623,7 +3623,7 @@
|
|
|
3623
3623
|
// Inline function 'kotlin.let' call
|
|
3624
3624
|
// Inline function 'kotlin.contracts.contract' call
|
|
3625
3625
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toSegments.<anonymous>.<anonymous>' call
|
|
3626
|
-
tmp_1 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp140_safe_receiver, Common_instance.
|
|
3626
|
+
tmp_1 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp140_safe_receiver, Common_instance.f2f([name, 'Parameter', param]));
|
|
3627
3627
|
}
|
|
3628
3628
|
|
|
3629
3629
|
var tmp141_safe_receiver = tmp_1;
|
|
@@ -3634,7 +3634,7 @@
|
|
|
3634
3634
|
// Inline function 'kotlin.let' call
|
|
3635
3635
|
// Inline function 'kotlin.contracts.contract' call
|
|
3636
3636
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toSegments.<anonymous>.<anonymous>' call
|
|
3637
|
-
tmp_2 = new Param(Companion_instance.
|
|
3637
|
+
tmp_2 = new Param(Companion_instance.e2c(param), tmp141_safe_receiver);
|
|
3638
3638
|
}
|
|
3639
3639
|
|
|
3640
3640
|
var tmp0_elvis_lhs = tmp_2;
|
|
@@ -4013,7 +4013,7 @@
|
|
|
4013
4013
|
}
|
|
4014
4014
|
tmp = tmp_0;
|
|
4015
4015
|
} else if (!(schemaObject.p1w_1 == null) || !(schemaObject.q1w_1 == null)) {
|
|
4016
|
-
var tmp_5 = Companion_instance.
|
|
4016
|
+
var tmp_5 = Companion_instance.e2c(name);
|
|
4017
4017
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
4018
4018
|
var this_0 = ensureNotNull(schemaObject.p1w_1);
|
|
4019
4019
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
@@ -4031,7 +4031,7 @@
|
|
|
4031
4031
|
tmp_6 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, item);
|
|
4032
4032
|
} else {
|
|
4033
4033
|
if (item instanceof SchemaObject_0) {
|
|
4034
|
-
tmp_6 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, item, Common_instance.
|
|
4034
|
+
tmp_6 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, item, Common_instance.f2f([name, index_0.toString()]));
|
|
4035
4035
|
} else {
|
|
4036
4036
|
noWhenBranchMatchedException();
|
|
4037
4037
|
}
|
|
@@ -4057,7 +4057,7 @@
|
|
|
4057
4057
|
tmp_8 = emptyList();
|
|
4058
4058
|
} else {
|
|
4059
4059
|
if (element instanceof SchemaObject_0) {
|
|
4060
|
-
tmp_8 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, element, Common_instance.
|
|
4060
|
+
tmp_8 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, element, Common_instance.f2f([name, index_2.toString()]));
|
|
4061
4061
|
} else {
|
|
4062
4062
|
noWhenBranchMatchedException();
|
|
4063
4063
|
}
|
|
@@ -4067,7 +4067,7 @@
|
|
|
4067
4067
|
}
|
|
4068
4068
|
tmp = plus(tmp_7, destination_0);
|
|
4069
4069
|
} else if (!(schemaObject.o1w_1 == null)) {
|
|
4070
|
-
var tmp_9 = Companion_instance.
|
|
4070
|
+
var tmp_9 = Companion_instance.e2c(name);
|
|
4071
4071
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
4072
4072
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4073
4073
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -4129,7 +4129,7 @@
|
|
|
4129
4129
|
var key_0 = element_2.a1();
|
|
4130
4130
|
// Inline function 'kotlin.collections.component2' call
|
|
4131
4131
|
var value = element_2.b1();
|
|
4132
|
-
var list_2 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_instance.
|
|
4132
|
+
var list_2 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_instance.f2f([name, key_0]));
|
|
4133
4133
|
addAll(destination_3, list_2);
|
|
4134
4134
|
}
|
|
4135
4135
|
var list_3 = destination_3;
|
|
@@ -4152,7 +4152,7 @@
|
|
|
4152
4152
|
// Inline function 'kotlin.contracts.contract' call
|
|
4153
4153
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
|
|
4154
4154
|
var it = toSet(destination_4);
|
|
4155
|
-
tmp = listOf(new Enum(null, Companion_instance.
|
|
4155
|
+
tmp = listOf(new Enum(null, Companion_instance.e2c(name), it));
|
|
4156
4156
|
} else {
|
|
4157
4157
|
var tmp178_subject = schemaObject.n1w_1;
|
|
4158
4158
|
var tmp_12;
|
|
@@ -4178,12 +4178,12 @@
|
|
|
4178
4178
|
var key_1 = element_3.a1();
|
|
4179
4179
|
// Inline function 'kotlin.collections.component2' call
|
|
4180
4180
|
var value_0 = element_3.b1();
|
|
4181
|
-
var list_4 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value_0, Common_instance.
|
|
4181
|
+
var list_4 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value_0, Common_instance.f2f([name, key_1]));
|
|
4182
4182
|
addAll(destination_5, list_4);
|
|
4183
4183
|
}
|
|
4184
4184
|
|
|
4185
4185
|
var fields = destination_5;
|
|
4186
|
-
var schema = listOf(new Type(null, Companion_instance.
|
|
4186
|
+
var schema = listOf(new Type(null, Companion_instance.e2c(name), new Shape(toField_2(_this__u8e3s4, $this, schemaObject, name)), emptyList()));
|
|
4187
4187
|
tmp_12 = plus(schema, fields);
|
|
4188
4188
|
break;
|
|
4189
4189
|
case 4:
|
|
@@ -4200,7 +4200,7 @@
|
|
|
4200
4200
|
tmp_14 = emptyList();
|
|
4201
4201
|
} else {
|
|
4202
4202
|
if (tmp179_safe_receiver instanceof SchemaObject_0) {
|
|
4203
|
-
tmp_14 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, tmp179_safe_receiver, Common_instance.
|
|
4203
|
+
tmp_14 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, tmp179_safe_receiver, Common_instance.f2f([name, 'array']));
|
|
4204
4204
|
} else {
|
|
4205
4205
|
noWhenBranchMatchedException();
|
|
4206
4206
|
}
|
|
@@ -4258,7 +4258,7 @@
|
|
|
4258
4258
|
}
|
|
4259
4259
|
tmp = tmp_0;
|
|
4260
4260
|
} else if (!(schema.n1x_1 == null)) {
|
|
4261
|
-
tmp = new Custom(Common_instance.
|
|
4261
|
+
tmp = new Custom(Common_instance.f2f([getReference_0(referencingObject, OpenApiV3Parser_instance)]), false, false);
|
|
4262
4262
|
} else if (isPrimitive_0(schema.n1w_1)) {
|
|
4263
4263
|
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.n1w_1), OpenApiV3Parser_instance), false, false);
|
|
4264
4264
|
} else {
|
|
@@ -4268,10 +4268,10 @@
|
|
|
4268
4268
|
var items = schema.s1w_1;
|
|
4269
4269
|
var tmp_2;
|
|
4270
4270
|
if (items instanceof ReferenceObject_0) {
|
|
4271
|
-
tmp_2 = new Custom(Common_instance.
|
|
4271
|
+
tmp_2 = new Custom(Common_instance.f2f([getReference_0(items, OpenApiV3Parser_instance)]), true);
|
|
4272
4272
|
} else {
|
|
4273
4273
|
if (items instanceof SchemaObject_0) {
|
|
4274
|
-
tmp_2 = new Custom(Common_instance.
|
|
4274
|
+
tmp_2 = new Custom(Common_instance.f2f([getReference_0(referencingObject, OpenApiV3Parser_instance), 'Array']), true);
|
|
4275
4275
|
} else {
|
|
4276
4276
|
if (items == null) {
|
|
4277
4277
|
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi_0(reference.b1w_1);
|
|
@@ -4283,7 +4283,7 @@
|
|
|
4283
4283
|
}
|
|
4284
4284
|
tmp_1 = tmp_2;
|
|
4285
4285
|
} else {
|
|
4286
|
-
tmp_1 = new Custom(Common_instance.
|
|
4286
|
+
tmp_1 = new Custom(Common_instance.f2f([getReference_0(referencingObject, OpenApiV3Parser_instance)]), false);
|
|
4287
4287
|
}
|
|
4288
4288
|
tmp = tmp_1;
|
|
4289
4289
|
}
|
|
@@ -4423,7 +4423,7 @@
|
|
|
4423
4423
|
var tmp$ret$0 = tmp_0;
|
|
4424
4424
|
result.m2(element, tmp$ret$0);
|
|
4425
4425
|
}
|
|
4426
|
-
return tmp.
|
|
4426
|
+
return tmp.g2f(result);
|
|
4427
4427
|
}
|
|
4428
4428
|
function getReference_0(_this__u8e3s4, $this) {
|
|
4429
4429
|
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.b1w_1), ['/']), 3);
|
|
@@ -4475,15 +4475,15 @@
|
|
|
4475
4475
|
var value = item.b1();
|
|
4476
4476
|
var tmp;
|
|
4477
4477
|
if (value instanceof SchemaObject_0) {
|
|
4478
|
-
var tmp_0 = Companion_instance.
|
|
4479
|
-
var tmp_1 = !(value.n1x_1 == null) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_instance.
|
|
4478
|
+
var tmp_0 = Companion_instance.e2c(key);
|
|
4479
|
+
var tmp_1 = !(value.n1x_1 == null) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_instance.f2f([name, key])) : equals(value.n1w_1, Type_ARRAY_getInstance_0()) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_instance.f2f([name, key, 'Array'])) : toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_instance.f2f([name, key]));
|
|
4480
4480
|
var tmp187_safe_receiver = schema.m1x_1;
|
|
4481
4481
|
var tmp0_elvis_lhs_0 = tmp187_safe_receiver == null ? null : tmp187_safe_receiver.p1(key);
|
|
4482
4482
|
tmp = new Field(tmp_0, tmp_1, !(tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0));
|
|
4483
4483
|
} else {
|
|
4484
4484
|
if (value instanceof ReferenceObject_0) {
|
|
4485
|
-
var tmp_2 = Companion_instance.
|
|
4486
|
-
var tmp_3 = new Custom(Common_instance.
|
|
4485
|
+
var tmp_2 = Companion_instance.e2c(key);
|
|
4486
|
+
var tmp_3 = new Custom(Common_instance.f2f([getReference_0(value, OpenApiV3Parser_instance)]), false);
|
|
4487
4487
|
var tmp188_safe_receiver = schema.m1x_1;
|
|
4488
4488
|
var tmp1_elvis_lhs = tmp188_safe_receiver == null ? null : tmp188_safe_receiver.p1(key);
|
|
4489
4489
|
tmp = new Field(tmp_2, tmp_3, !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs));
|
|
@@ -4517,7 +4517,7 @@
|
|
|
4517
4517
|
// Inline function 'kotlin.contracts.contract' call
|
|
4518
4518
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toField.<anonymous>' call
|
|
4519
4519
|
var it = tmp;
|
|
4520
|
-
var tmp_0 = Companion_instance.
|
|
4520
|
+
var tmp_0 = Companion_instance.e2c(parameter.v1v_1);
|
|
4521
4521
|
var tmp0_elvis_lhs = parameter.l1v_1;
|
|
4522
4522
|
return new Field(tmp_0, it, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
4523
4523
|
}
|
|
@@ -4542,24 +4542,24 @@
|
|
|
4542
4542
|
// Inline function 'kotlin.contracts.contract' call
|
|
4543
4543
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toField.<anonymous>' call
|
|
4544
4544
|
var it = tmp;
|
|
4545
|
-
var tmp_0 = Companion_instance.
|
|
4545
|
+
var tmp_0 = Companion_instance.e2c(identifier);
|
|
4546
4546
|
var tmp0_elvis_lhs = header.l1y_1;
|
|
4547
4547
|
return new Field(tmp_0, it, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
4548
4548
|
}
|
|
4549
4549
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
4550
|
-
this.
|
|
4551
|
-
this.
|
|
4552
|
-
this.
|
|
4553
|
-
this.
|
|
4550
|
+
this.a2g_1 = path;
|
|
4551
|
+
this.b2g_1 = pathItem;
|
|
4552
|
+
this.c2g_1 = method;
|
|
4553
|
+
this.d2g_1 = operation;
|
|
4554
4554
|
}
|
|
4555
4555
|
protoOf(FlattenRequest_0).toString = function () {
|
|
4556
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
4556
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.a2g_1) + ', pathItem=' + this.b2g_1.toString() + ', method=' + this.c2g_1.toString() + ', operation=' + this.d2g_1.toString() + ')';
|
|
4557
4557
|
};
|
|
4558
4558
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
4559
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
4559
|
+
var result = Path__hashCode_impl_go73kd_0(this.a2g_1);
|
|
4560
|
+
result = imul(result, 31) + this.b2g_1.hashCode() | 0;
|
|
4561
|
+
result = imul(result, 31) + this.c2g_1.hashCode() | 0;
|
|
4560
4562
|
result = imul(result, 31) + this.d2g_1.hashCode() | 0;
|
|
4561
|
-
result = imul(result, 31) + this.e2g_1.hashCode() | 0;
|
|
4562
|
-
result = imul(result, 31) + this.f2g_1.hashCode() | 0;
|
|
4563
4563
|
return result;
|
|
4564
4564
|
};
|
|
4565
4565
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -4568,13 +4568,13 @@
|
|
|
4568
4568
|
if (!(other instanceof FlattenRequest_0))
|
|
4569
4569
|
return false;
|
|
4570
4570
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
4571
|
-
if (!(this.
|
|
4571
|
+
if (!(this.a2g_1 === tmp0_other_with_cast.a2g_1))
|
|
4572
4572
|
return false;
|
|
4573
|
-
if (!this.
|
|
4573
|
+
if (!this.b2g_1.equals(tmp0_other_with_cast.b2g_1))
|
|
4574
4574
|
return false;
|
|
4575
|
-
if (!this.
|
|
4575
|
+
if (!this.c2g_1.equals(tmp0_other_with_cast.c2g_1))
|
|
4576
4576
|
return false;
|
|
4577
|
-
if (!this.
|
|
4577
|
+
if (!this.d2g_1.equals(tmp0_other_with_cast.d2g_1))
|
|
4578
4578
|
return false;
|
|
4579
4579
|
return true;
|
|
4580
4580
|
};
|
|
@@ -4623,23 +4623,23 @@
|
|
|
4623
4623
|
return destination_1;
|
|
4624
4624
|
}
|
|
4625
4625
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
4626
|
-
this.
|
|
4627
|
-
this.
|
|
4628
|
-
this.
|
|
4629
|
-
this.
|
|
4630
|
-
this.
|
|
4631
|
-
this.
|
|
4626
|
+
this.e2g_1 = path;
|
|
4627
|
+
this.f2g_1 = pathItem;
|
|
4628
|
+
this.g2g_1 = method;
|
|
4629
|
+
this.h2g_1 = operation;
|
|
4630
|
+
this.i2g_1 = statusCode;
|
|
4631
|
+
this.j2g_1 = response;
|
|
4632
4632
|
}
|
|
4633
4633
|
protoOf(FlattenResponse_0).toString = function () {
|
|
4634
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
4634
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.e2g_1) + ', pathItem=' + this.f2g_1.toString() + ', method=' + this.g2g_1.toString() + ', operation=' + this.h2g_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy_0(this.i2g_1) + ', response=' + toString(this.j2g_1) + ')';
|
|
4635
4635
|
};
|
|
4636
4636
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
4637
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
4637
|
+
var result = Path__hashCode_impl_go73kd_0(this.e2g_1);
|
|
4638
|
+
result = imul(result, 31) + this.f2g_1.hashCode() | 0;
|
|
4639
|
+
result = imul(result, 31) + this.g2g_1.hashCode() | 0;
|
|
4638
4640
|
result = imul(result, 31) + this.h2g_1.hashCode() | 0;
|
|
4639
|
-
result = imul(result, 31) + this.i2g_1
|
|
4640
|
-
result = imul(result, 31) + this.j2g_1
|
|
4641
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.k2g_1) | 0;
|
|
4642
|
-
result = imul(result, 31) + hashCode(this.l2g_1) | 0;
|
|
4641
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.i2g_1) | 0;
|
|
4642
|
+
result = imul(result, 31) + hashCode(this.j2g_1) | 0;
|
|
4643
4643
|
return result;
|
|
4644
4644
|
};
|
|
4645
4645
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -4648,17 +4648,17 @@
|
|
|
4648
4648
|
if (!(other instanceof FlattenResponse_0))
|
|
4649
4649
|
return false;
|
|
4650
4650
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
4651
|
-
if (!(this.
|
|
4651
|
+
if (!(this.e2g_1 === tmp0_other_with_cast.e2g_1))
|
|
4652
4652
|
return false;
|
|
4653
|
-
if (!this.
|
|
4653
|
+
if (!this.f2g_1.equals(tmp0_other_with_cast.f2g_1))
|
|
4654
4654
|
return false;
|
|
4655
|
-
if (!this.
|
|
4655
|
+
if (!this.g2g_1.equals(tmp0_other_with_cast.g2g_1))
|
|
4656
4656
|
return false;
|
|
4657
|
-
if (!this.
|
|
4657
|
+
if (!this.h2g_1.equals(tmp0_other_with_cast.h2g_1))
|
|
4658
4658
|
return false;
|
|
4659
|
-
if (!(this.
|
|
4659
|
+
if (!(this.i2g_1 === tmp0_other_with_cast.i2g_1))
|
|
4660
4660
|
return false;
|
|
4661
|
-
if (!equals(this.
|
|
4661
|
+
if (!equals(this.j2g_1, tmp0_other_with_cast.j2g_1))
|
|
4662
4662
|
return false;
|
|
4663
4663
|
return true;
|
|
4664
4664
|
};
|
|
@@ -4739,9 +4739,9 @@
|
|
|
4739
4739
|
}
|
|
4740
4740
|
function OpenApiV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
4741
4741
|
return function ($this$flatMapRequests) {
|
|
4742
|
-
var parameters = plus(resolveParameters_2($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.
|
|
4743
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
4744
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
4742
|
+
var parameters = plus(resolveParameters_2($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.b2g_1), resolveParameters_1($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.d2g_1));
|
|
4743
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.d2g_1, OpenApiV3Parser_instance);
|
|
4744
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.a2g_1, OpenApiV3Parser_instance) + $this$flatMapRequests.c2g_1.p2_1 : tmp0_elvis_lhs;
|
|
4745
4745
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4746
4746
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4747
4747
|
var destination = ArrayList_init_$Create$();
|
|
@@ -4757,7 +4757,7 @@
|
|
|
4757
4757
|
// Inline function 'kotlin.let' call
|
|
4758
4758
|
// Inline function 'kotlin.contracts.contract' call
|
|
4759
4759
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
4760
|
-
tmp = flatten_2($this_parseParameters, OpenApiV3Parser_instance, tmp127_safe_receiver, Common_instance.
|
|
4760
|
+
tmp = flatten_2($this_parseParameters, OpenApiV3Parser_instance, tmp127_safe_receiver, Common_instance.f2f([name, 'Parameter', element.v1v_1]));
|
|
4761
4761
|
}
|
|
4762
4762
|
var tmp0_elvis_lhs_0 = tmp;
|
|
4763
4763
|
var list = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
@@ -4768,11 +4768,11 @@
|
|
|
4768
4768
|
}
|
|
4769
4769
|
function OpenApiV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
4770
4770
|
return function ($this$flatMapRequests) {
|
|
4771
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
4772
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
4771
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.d2g_1, OpenApiV3Parser_instance);
|
|
4772
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.a2g_1, OpenApiV3Parser_instance) + $this$flatMapRequests.c2g_1.p2_1 : tmp0_elvis_lhs;
|
|
4773
4773
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4774
4774
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
4775
|
-
var tmp128_safe_receiver = $this$flatMapRequests.
|
|
4775
|
+
var tmp128_safe_receiver = $this$flatMapRequests.d2g_1.y1t_1;
|
|
4776
4776
|
var tmp;
|
|
4777
4777
|
if (tmp128_safe_receiver == null) {
|
|
4778
4778
|
tmp = null;
|
|
@@ -4802,7 +4802,7 @@
|
|
|
4802
4802
|
switch (tmp130_subject == null ? -1 : tmp130_subject.q2_1) {
|
|
4803
4803
|
case -1:
|
|
4804
4804
|
case 5:
|
|
4805
|
-
tmp_1 = flatten_1($this_parseRequestBody, OpenApiV3Parser_instance, schema, Common_instance.
|
|
4805
|
+
tmp_1 = flatten_1($this_parseRequestBody, OpenApiV3Parser_instance, schema, Common_instance.f2f([name, 'RequestBody']));
|
|
4806
4806
|
break;
|
|
4807
4807
|
case 4:
|
|
4808
4808
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -4815,7 +4815,7 @@
|
|
|
4815
4815
|
// Inline function 'kotlin.let' call
|
|
4816
4816
|
// Inline function 'kotlin.contracts.contract' call
|
|
4817
4817
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
4818
|
-
tmp_2 = flatten_2($this_parseRequestBody, OpenApiV3Parser_instance, tmp131_safe_receiver, Common_instance.
|
|
4818
|
+
tmp_2 = flatten_2($this_parseRequestBody, OpenApiV3Parser_instance, tmp131_safe_receiver, Common_instance.f2f([name, 'RequestBody']));
|
|
4819
4819
|
}
|
|
4820
4820
|
|
|
4821
4821
|
var tmp0_elvis_lhs_1 = tmp_2;
|
|
@@ -4847,9 +4847,9 @@
|
|
|
4847
4847
|
}
|
|
4848
4848
|
function OpenApiV3Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
4849
4849
|
return function ($this$flatMapResponses) {
|
|
4850
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.
|
|
4851
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.
|
|
4852
|
-
var response = $this$flatMapResponses.
|
|
4850
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.h2g_1, OpenApiV3Parser_instance);
|
|
4851
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.e2g_1, OpenApiV3Parser_instance) + $this$flatMapResponses.g2g_1.p2_1 : tmp0_elvis_lhs;
|
|
4852
|
+
var response = $this$flatMapResponses.j2g_1;
|
|
4853
4853
|
var tmp;
|
|
4854
4854
|
if (response instanceof ResponseObject_0) {
|
|
4855
4855
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -4875,7 +4875,7 @@
|
|
|
4875
4875
|
switch (tmp132_subject == null ? -1 : tmp132_subject.q2_1) {
|
|
4876
4876
|
case -1:
|
|
4877
4877
|
case 5:
|
|
4878
|
-
tmp_1 = flatten_1($this_parseResponseBody, OpenApiV3Parser_instance, schema, Common_instance.
|
|
4878
|
+
tmp_1 = flatten_1($this_parseResponseBody, OpenApiV3Parser_instance, schema, Common_instance.f2f([name, _StatusCode___get_value__impl__we50mu_0($this$flatMapResponses.i2g_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
4879
4879
|
break;
|
|
4880
4880
|
case 4:
|
|
4881
4881
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -4888,7 +4888,7 @@
|
|
|
4888
4888
|
// Inline function 'kotlin.let' call
|
|
4889
4889
|
// Inline function 'kotlin.contracts.contract' call
|
|
4890
4890
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseResponseBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
4891
|
-
tmp_2 = flatten_2($this_parseResponseBody, OpenApiV3Parser_instance, tmp133_safe_receiver, Common_instance.
|
|
4891
|
+
tmp_2 = flatten_2($this_parseResponseBody, OpenApiV3Parser_instance, tmp133_safe_receiver, Common_instance.f2f([name, _StatusCode___get_value__impl__we50mu_0($this$flatMapResponses.i2g_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
4892
4892
|
}
|
|
4893
4893
|
|
|
4894
4894
|
var tmp0_elvis_lhs_1 = tmp_2;
|
|
@@ -4927,10 +4927,10 @@
|
|
|
4927
4927
|
// Inline function 'kotlin.js.asDynamic' call
|
|
4928
4928
|
|
|
4929
4929
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
4930
|
-
tmp = tmp_0.
|
|
4930
|
+
tmp = tmp_0.f2f([tmp$ret$1]);
|
|
4931
4931
|
break;
|
|
4932
4932
|
case false:
|
|
4933
|
-
tmp = Common_instance.
|
|
4933
|
+
tmp = Common_instance.f2f([it]);
|
|
4934
4934
|
break;
|
|
4935
4935
|
default:
|
|
4936
4936
|
noWhenBranchMatchedException();
|
|
@@ -4940,14 +4940,14 @@
|
|
|
4940
4940
|
}
|
|
4941
4941
|
function OpenApiV3Parser() {
|
|
4942
4942
|
}
|
|
4943
|
-
protoOf(OpenApiV3Parser).
|
|
4944
|
-
return this.
|
|
4943
|
+
protoOf(OpenApiV3Parser).t2f = function (json, strict) {
|
|
4944
|
+
return this.k2g((new OpenAPI_0(Json(VOID, OpenApiV3Parser$parse$lambda(strict)))).h1g(json));
|
|
4945
4945
|
};
|
|
4946
|
-
protoOf(OpenApiV3Parser).
|
|
4946
|
+
protoOf(OpenApiV3Parser).l2g = function (json, strict, $super) {
|
|
4947
4947
|
strict = strict === VOID ? false : strict;
|
|
4948
|
-
return $super === VOID ? this.
|
|
4948
|
+
return $super === VOID ? this.t2f(json, strict) : $super.t2f.call(this, json, strict);
|
|
4949
4949
|
};
|
|
4950
|
-
protoOf(OpenApiV3Parser).
|
|
4950
|
+
protoOf(OpenApiV3Parser).k2g = function (_this__u8e3s4) {
|
|
4951
4951
|
// Inline function 'kotlin.collections.reduce' call
|
|
4952
4952
|
var iterator = listOf_0([parseEndpoint(_this__u8e3s4, this), parseParameters_0(_this__u8e3s4, this), parseRequestBody_0(_this__u8e3s4, this), parseResponseBody_0(_this__u8e3s4, this), parseComponents(_this__u8e3s4, this)]).g();
|
|
4953
4953
|
if (!iterator.h())
|
|
@@ -4965,16 +4965,16 @@
|
|
|
4965
4965
|
function toMap_1(_this__u8e3s4) {
|
|
4966
4966
|
var tmp;
|
|
4967
4967
|
if (_this__u8e3s4 instanceof Custom) {
|
|
4968
|
-
tmp = _this__u8e3s4.
|
|
4968
|
+
tmp = _this__u8e3s4.v2d(VOID, VOID, true);
|
|
4969
4969
|
} else {
|
|
4970
4970
|
if (_this__u8e3s4 instanceof Any) {
|
|
4971
|
-
tmp = _this__u8e3s4.
|
|
4971
|
+
tmp = _this__u8e3s4.s2d(VOID, true);
|
|
4972
4972
|
} else {
|
|
4973
4973
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
4974
|
-
tmp = _this__u8e3s4.
|
|
4974
|
+
tmp = _this__u8e3s4.x2d(VOID, VOID, true);
|
|
4975
4975
|
} else {
|
|
4976
4976
|
if (_this__u8e3s4 instanceof Unit) {
|
|
4977
|
-
tmp = _this__u8e3s4.
|
|
4977
|
+
tmp = _this__u8e3s4.t2d(VOID, true);
|
|
4978
4978
|
} else {
|
|
4979
4979
|
noWhenBranchMatchedException();
|
|
4980
4980
|
}
|
|
@@ -5016,16 +5016,16 @@
|
|
|
5016
5016
|
function toIterable_0(_this__u8e3s4) {
|
|
5017
5017
|
var tmp;
|
|
5018
5018
|
if (_this__u8e3s4 instanceof Custom) {
|
|
5019
|
-
tmp = _this__u8e3s4.
|
|
5019
|
+
tmp = _this__u8e3s4.v2d(VOID, true);
|
|
5020
5020
|
} else {
|
|
5021
5021
|
if (_this__u8e3s4 instanceof Any) {
|
|
5022
|
-
tmp = _this__u8e3s4.
|
|
5022
|
+
tmp = _this__u8e3s4.s2d(true);
|
|
5023
5023
|
} else {
|
|
5024
5024
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
5025
|
-
tmp = _this__u8e3s4.
|
|
5025
|
+
tmp = _this__u8e3s4.x2d(VOID, true);
|
|
5026
5026
|
} else {
|
|
5027
5027
|
if (_this__u8e3s4 instanceof Unit) {
|
|
5028
|
-
tmp = _this__u8e3s4.
|
|
5028
|
+
tmp = _this__u8e3s4.t2d(true);
|
|
5029
5029
|
} else {
|
|
5030
5030
|
noWhenBranchMatchedException();
|
|
5031
5031
|
}
|