@flock/wirespec 0.15.11 → 0.15.13
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.mjs +1160 -1160
- package/colormath-root-colormath.mjs +425 -425
- package/kotlin-kotlin-stdlib.mjs +19 -19
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1767 -1767
- package/kotlinx-io-kotlinx-io-core.mjs +378 -378
- package/markdown.mjs +1871 -1871
- package/mordant-mordant.mjs +1637 -1637
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +2496 -1471
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +262 -262
- package/wirespec-src-converter-avro.mjs +264 -264
- package/wirespec-src-converter-openapi.mjs +179 -179
- package/wirespec-src-plugin-arguments.mjs +124 -124
- package/wirespec-src-plugin-cli.mjs +70 -70
- package/wirespec-src-plugin-npm.mjs +7 -7
- package/wirespec-src-tools-generator.mjs +3 -3
|
@@ -217,9 +217,9 @@ function Common$json$lambda($this$Json) {
|
|
|
217
217
|
function Common() {
|
|
218
218
|
Common_instance = this;
|
|
219
219
|
var tmp = this;
|
|
220
|
-
tmp.
|
|
220
|
+
tmp.m2e_1 = Json(VOID, Common$json$lambda);
|
|
221
221
|
}
|
|
222
|
-
protoOf(Common).
|
|
222
|
+
protoOf(Common).n2e = function (arg) {
|
|
223
223
|
// Inline function 'kotlin.collections.flatMap' call
|
|
224
224
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
225
225
|
var destination = ArrayList_init_$Create$();
|
|
@@ -235,7 +235,7 @@ protoOf(Common).f2e = function (arg) {
|
|
|
235
235
|
var tmp = destination;
|
|
236
236
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, Common$className$lambda);
|
|
237
237
|
};
|
|
238
|
-
protoOf(Common).
|
|
238
|
+
protoOf(Common).o2e = function (_this__u8e3s4) {
|
|
239
239
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
240
240
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
241
241
|
var destination = ArrayList_init_$Create$();
|
|
@@ -694,20 +694,20 @@ function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
|
694
694
|
function OpenAPIV2Emitter() {
|
|
695
695
|
OpenAPIV2Emitter_instance = this;
|
|
696
696
|
Emitter.call(this);
|
|
697
|
-
this.
|
|
698
|
-
this.
|
|
699
|
-
this.
|
|
697
|
+
this.p2e_1 = FileExtension_JSON_getInstance();
|
|
698
|
+
this.q2e_1 = null;
|
|
699
|
+
this.r2e_1 = '';
|
|
700
700
|
}
|
|
701
701
|
protoOf(OpenAPIV2Emitter).y25 = function () {
|
|
702
|
-
return this.
|
|
702
|
+
return this.p2e_1;
|
|
703
703
|
};
|
|
704
704
|
protoOf(OpenAPIV2Emitter).a26 = function () {
|
|
705
|
-
return this.
|
|
705
|
+
return this.r2e_1;
|
|
706
706
|
};
|
|
707
707
|
protoOf(OpenAPIV2Emitter).b26 = function (module_0, logger) {
|
|
708
708
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
709
|
-
var this_0 = Common_getInstance().
|
|
710
|
-
var value = this.
|
|
709
|
+
var this_0 = Common_getInstance().m2e_1;
|
|
710
|
+
var value = this.s2e(module_0);
|
|
711
711
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
712
712
|
var this_1 = this_0.wo();
|
|
713
713
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -717,27 +717,27 @@ protoOf(OpenAPIV2Emitter).b26 = function (module_0, logger) {
|
|
|
717
717
|
return nonEmptyListOf(new Emitted('SwaggerObject', tmp$ret$2), []);
|
|
718
718
|
};
|
|
719
719
|
protoOf(OpenAPIV2Emitter).k26 = function (type, module_0) {
|
|
720
|
-
return this.
|
|
720
|
+
return this.l29();
|
|
721
721
|
};
|
|
722
722
|
protoOf(OpenAPIV2Emitter).f27 = function (enum_0, module_0) {
|
|
723
|
-
return this.
|
|
723
|
+
return this.l29();
|
|
724
724
|
};
|
|
725
725
|
protoOf(OpenAPIV2Emitter).y26 = function (refined) {
|
|
726
|
-
return this.
|
|
726
|
+
return this.l29();
|
|
727
727
|
};
|
|
728
728
|
protoOf(OpenAPIV2Emitter).p27 = function (endpoint) {
|
|
729
|
-
return this.
|
|
729
|
+
return this.l29();
|
|
730
730
|
};
|
|
731
731
|
protoOf(OpenAPIV2Emitter).k27 = function (union) {
|
|
732
|
-
return this.
|
|
732
|
+
return this.l29();
|
|
733
733
|
};
|
|
734
734
|
protoOf(OpenAPIV2Emitter).k25 = function (identifier) {
|
|
735
|
-
return this.
|
|
735
|
+
return this.l29();
|
|
736
736
|
};
|
|
737
737
|
protoOf(OpenAPIV2Emitter).l27 = function (channel) {
|
|
738
|
-
return this.
|
|
738
|
+
return this.l29();
|
|
739
739
|
};
|
|
740
|
-
protoOf(OpenAPIV2Emitter).
|
|
740
|
+
protoOf(OpenAPIV2Emitter).s2e = function (module_0) {
|
|
741
741
|
var tmp = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, '0.0.0');
|
|
742
742
|
var tmp_0 = listOf('application/json');
|
|
743
743
|
var tmp_1 = listOf('application/json');
|
|
@@ -1090,7 +1090,7 @@ function parseEndpoints(_this__u8e3s4, $this) {
|
|
|
1090
1090
|
tmp_1 = toReference(_this__u8e3s4, OpenAPIV2Parser_instance, schema, isNullable);
|
|
1091
1091
|
} else {
|
|
1092
1092
|
if (schema instanceof SchemaObject) {
|
|
1093
|
-
tmp_1 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, schema, Common_getInstance().
|
|
1093
|
+
tmp_1 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, schema, Common_getInstance().n2e([name, 'RequestBody']), isNullable);
|
|
1094
1094
|
} else {
|
|
1095
1095
|
if (schema == null) {
|
|
1096
1096
|
var reason = 'Not yet implemented';
|
|
@@ -1207,7 +1207,7 @@ function parseEndpoints(_this__u8e3s4, $this) {
|
|
|
1207
1207
|
tmp_10 = toReference(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver, false);
|
|
1208
1208
|
} else {
|
|
1209
1209
|
if (tmp1_safe_receiver instanceof SchemaObject) {
|
|
1210
|
-
tmp_10 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
1210
|
+
tmp_10 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver, Common_getInstance().n2e([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']), false);
|
|
1211
1211
|
} else {
|
|
1212
1212
|
noWhenBranchMatchedException();
|
|
1213
1213
|
}
|
|
@@ -1287,7 +1287,7 @@ function parseDefinitions(_this__u8e3s4, $this) {
|
|
|
1287
1287
|
while (tmp0_iterator_1.h()) {
|
|
1288
1288
|
var element_0 = tmp0_iterator_1.i();
|
|
1289
1289
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseDefinitions.<anonymous>' call
|
|
1290
|
-
var list = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, element_0.b1(), Common_getInstance().
|
|
1290
|
+
var list = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, element_0.b1(), Common_getInstance().n2e([element_0.a1()]));
|
|
1291
1291
|
addAll(destination_0, list);
|
|
1292
1292
|
}
|
|
1293
1293
|
return destination_0;
|
|
@@ -1607,7 +1607,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1607
1607
|
tmp_9 = emptyList();
|
|
1608
1608
|
} else {
|
|
1609
1609
|
if (value instanceof SchemaObject) {
|
|
1610
|
-
tmp_9 = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().
|
|
1610
|
+
tmp_9 = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().n2e([name, key_0]));
|
|
1611
1611
|
} else {
|
|
1612
1612
|
noWhenBranchMatchedException();
|
|
1613
1613
|
}
|
|
@@ -1666,7 +1666,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1666
1666
|
var key_1 = element_2.a1();
|
|
1667
1667
|
// Inline function 'kotlin.collections.component2' call
|
|
1668
1668
|
var value_0 = element_2.b1();
|
|
1669
|
-
var list_3 = flatten_0(_this__u8e3s4, OpenAPIV2Parser_instance, value_0, Common_getInstance().
|
|
1669
|
+
var list_3 = flatten_0(_this__u8e3s4, OpenAPIV2Parser_instance, value_0, Common_getInstance().n2e([name, key_1]));
|
|
1670
1670
|
addAll(destination_3, list_3);
|
|
1671
1671
|
}
|
|
1672
1672
|
|
|
@@ -1681,7 +1681,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1681
1681
|
tmp_11 = emptyList();
|
|
1682
1682
|
} else {
|
|
1683
1683
|
if (it_0 instanceof SchemaObject) {
|
|
1684
|
-
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().
|
|
1684
|
+
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().n2e([name, 'Array']));
|
|
1685
1685
|
} else {
|
|
1686
1686
|
if (it_0 == null) {
|
|
1687
1687
|
tmp_11 = emptyList();
|
|
@@ -1739,7 +1739,7 @@ function toReference(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
1739
1739
|
}
|
|
1740
1740
|
tmp = tmp_0;
|
|
1741
1741
|
} else if (!(schema.l1n_1 == null)) {
|
|
1742
|
-
tmp = new Custom(sanitize(Common_getInstance().
|
|
1742
|
+
tmp = new Custom(sanitize(Common_getInstance().n2e([getReference(reference, OpenAPIV2Parser_instance)])), isNullable);
|
|
1743
1743
|
} else if (isPrimitive(schema.m1n_1)) {
|
|
1744
1744
|
tmp = new Primitive(toPrimitive(ensureNotNull(schema.m1n_1), OpenAPIV2Parser_instance, schema.t1m_1), isNullable);
|
|
1745
1745
|
} else {
|
|
@@ -1752,7 +1752,7 @@ function toReference(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
1752
1752
|
tmp_2 = toIterable(toReference(_this__u8e3s4, OpenAPIV2Parser_instance, items, false), isNullable);
|
|
1753
1753
|
} else {
|
|
1754
1754
|
if (items instanceof SchemaObject) {
|
|
1755
|
-
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, items, Common_getInstance().
|
|
1755
|
+
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, items, Common_getInstance().n2e([getReference(reference, OpenAPIV2Parser_instance), 'Array']), isNullable), isNullable);
|
|
1756
1756
|
} else {
|
|
1757
1757
|
if (items == null) {
|
|
1758
1758
|
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.v1n_1);
|
|
@@ -1766,10 +1766,10 @@ function toReference(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
1766
1766
|
} else {
|
|
1767
1767
|
var tmp_3;
|
|
1768
1768
|
if (refOrSchema instanceof SchemaObject) {
|
|
1769
|
-
tmp_3 = new Custom(sanitize(Common_getInstance().
|
|
1769
|
+
tmp_3 = new Custom(sanitize(Common_getInstance().n2e([getReference(reference, OpenAPIV2Parser_instance)])), isNullable);
|
|
1770
1770
|
} else {
|
|
1771
1771
|
if (refOrSchema instanceof ReferenceObject) {
|
|
1772
|
-
tmp_3 = new Custom(sanitize(Common_getInstance().
|
|
1772
|
+
tmp_3 = new Custom(sanitize(Common_getInstance().n2e([getReference(refOrSchema, OpenAPIV2Parser_instance)])), isNullable);
|
|
1773
1773
|
} else {
|
|
1774
1774
|
noWhenBranchMatchedException();
|
|
1775
1775
|
}
|
|
@@ -1939,7 +1939,7 @@ function toOperationList(_this__u8e3s4, $this) {
|
|
|
1939
1939
|
var tmp$ret$0 = tmp_0;
|
|
1940
1940
|
result.n2(element, tmp$ret$0);
|
|
1941
1941
|
}
|
|
1942
|
-
return tmp.
|
|
1942
|
+
return tmp.o2e(result);
|
|
1943
1943
|
}
|
|
1944
1944
|
function getReference(_this__u8e3s4, $this) {
|
|
1945
1945
|
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.v1n_1), ['/']).k(2);
|
|
@@ -2024,7 +2024,7 @@ function toField_0(_this__u8e3s4, $this, schema, name) {
|
|
|
2024
2024
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
2025
2025
|
var tmp;
|
|
2026
2026
|
if (value instanceof SchemaObject) {
|
|
2027
|
-
tmp = new Field(new FieldIdentifier(key), !(value.l1n_1 == null) ? toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().
|
|
2027
|
+
tmp = new Field(new FieldIdentifier(key), !(value.l1n_1 == null) ? toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().n2e([name, key]), isNullable) : equals(value.m1n_1, Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().n2e([name, key, 'Array']), isNullable) : toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().n2e([name, key]), isNullable));
|
|
2028
2028
|
} else {
|
|
2029
2029
|
if (value instanceof ReferenceObject) {
|
|
2030
2030
|
tmp = new Field(new FieldIdentifier(key), toReference(_this__u8e3s4, OpenAPIV2Parser_instance, value, isNullable));
|
|
@@ -2047,7 +2047,7 @@ function toField_1(_this__u8e3s4, $this, parameter, name) {
|
|
|
2047
2047
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
2048
2048
|
var tmp;
|
|
2049
2049
|
if (!(parameter.n1j_1 == null)) {
|
|
2050
|
-
tmp = new Custom(sanitize(Common_getInstance().
|
|
2050
|
+
tmp = new Custom(sanitize(Common_getInstance().n2e([name, 'Parameter', it.s1i_1])), isNullable);
|
|
2051
2051
|
} else {
|
|
2052
2052
|
var type = it.x1i_1;
|
|
2053
2053
|
var tmp_0;
|
|
@@ -2225,7 +2225,7 @@ function toName(_this__u8e3s4, $this) {
|
|
|
2225
2225
|
// Inline function 'kotlin.let' call
|
|
2226
2226
|
// Inline function 'kotlin.contracts.contract' call
|
|
2227
2227
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.toName.<anonymous>' call
|
|
2228
|
-
tmp = Common_getInstance().
|
|
2228
|
+
tmp = Common_getInstance().n2e([tmp0_safe_receiver]);
|
|
2229
2229
|
}
|
|
2230
2230
|
return tmp;
|
|
2231
2231
|
}
|
|
@@ -2247,21 +2247,21 @@ function toName_0(_this__u8e3s4, $this) {
|
|
|
2247
2247
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenAPIV2Parser$toName$lambda);
|
|
2248
2248
|
}
|
|
2249
2249
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
2250
|
-
this.
|
|
2251
|
-
this.
|
|
2252
|
-
this.
|
|
2253
|
-
this.
|
|
2254
|
-
this.
|
|
2250
|
+
this.t2e_1 = path;
|
|
2251
|
+
this.u2e_1 = pathItem;
|
|
2252
|
+
this.v2e_1 = method;
|
|
2253
|
+
this.w2e_1 = operation;
|
|
2254
|
+
this.x2e_1 = type;
|
|
2255
2255
|
}
|
|
2256
2256
|
protoOf(FlattenRequest).toString = function () {
|
|
2257
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
2257
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.t2e_1) + ', pathItem=' + this.u2e_1.toString() + ', method=' + this.v2e_1.toString() + ', operation=' + this.w2e_1.toString() + ', type=' + this.x2e_1 + ')';
|
|
2258
2258
|
};
|
|
2259
2259
|
protoOf(FlattenRequest).hashCode = function () {
|
|
2260
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2261
|
-
result = imul(result, 31) + this.
|
|
2262
|
-
result = imul(result, 31) + this.
|
|
2263
|
-
result = imul(result, 31) + this.
|
|
2264
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2260
|
+
var result = Path__hashCode_impl_go73kd(this.t2e_1);
|
|
2261
|
+
result = imul(result, 31) + this.u2e_1.hashCode() | 0;
|
|
2262
|
+
result = imul(result, 31) + this.v2e_1.hashCode() | 0;
|
|
2263
|
+
result = imul(result, 31) + this.w2e_1.hashCode() | 0;
|
|
2264
|
+
result = imul(result, 31) + getStringHashCode(this.x2e_1) | 0;
|
|
2265
2265
|
return result;
|
|
2266
2266
|
};
|
|
2267
2267
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -2270,15 +2270,15 @@ protoOf(FlattenRequest).equals = function (other) {
|
|
|
2270
2270
|
if (!(other instanceof FlattenRequest))
|
|
2271
2271
|
return false;
|
|
2272
2272
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
2273
|
-
if (!(this.
|
|
2273
|
+
if (!(this.t2e_1 === tmp0_other_with_cast.t2e_1))
|
|
2274
2274
|
return false;
|
|
2275
|
-
if (!this.
|
|
2275
|
+
if (!this.u2e_1.equals(tmp0_other_with_cast.u2e_1))
|
|
2276
2276
|
return false;
|
|
2277
|
-
if (!this.
|
|
2277
|
+
if (!this.v2e_1.equals(tmp0_other_with_cast.v2e_1))
|
|
2278
2278
|
return false;
|
|
2279
|
-
if (!this.
|
|
2279
|
+
if (!this.w2e_1.equals(tmp0_other_with_cast.w2e_1))
|
|
2280
2280
|
return false;
|
|
2281
|
-
if (!(this.
|
|
2281
|
+
if (!(this.x2e_1 === tmp0_other_with_cast.x2e_1))
|
|
2282
2282
|
return false;
|
|
2283
2283
|
return true;
|
|
2284
2284
|
};
|
|
@@ -2340,25 +2340,25 @@ function flatMapRequests(_this__u8e3s4, $this, f) {
|
|
|
2340
2340
|
return destination_2;
|
|
2341
2341
|
}
|
|
2342
2342
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
2343
|
-
this.
|
|
2344
|
-
this.
|
|
2345
|
-
this.
|
|
2346
|
-
this.
|
|
2347
|
-
this.
|
|
2348
|
-
this.
|
|
2349
|
-
this.
|
|
2343
|
+
this.y2e_1 = path;
|
|
2344
|
+
this.z2e_1 = pathItem;
|
|
2345
|
+
this.a2f_1 = method;
|
|
2346
|
+
this.b2f_1 = operation;
|
|
2347
|
+
this.c2f_1 = statusCode;
|
|
2348
|
+
this.d2f_1 = response;
|
|
2349
|
+
this.e2f_1 = type;
|
|
2350
2350
|
}
|
|
2351
2351
|
protoOf(FlattenResponse).toString = function () {
|
|
2352
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
2352
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.y2e_1) + ', pathItem=' + this.z2e_1.toString() + ', method=' + this.a2f_1.toString() + ', operation=' + this.b2f_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy(this.c2f_1) + ', response=' + toString(this.d2f_1) + ', type=' + this.e2f_1 + ')';
|
|
2353
2353
|
};
|
|
2354
2354
|
protoOf(FlattenResponse).hashCode = function () {
|
|
2355
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2356
|
-
result = imul(result, 31) + this.
|
|
2357
|
-
result = imul(result, 31) + this.
|
|
2358
|
-
result = imul(result, 31) + this.
|
|
2359
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
2360
|
-
result = imul(result, 31) + hashCode(this.
|
|
2361
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2355
|
+
var result = Path__hashCode_impl_go73kd(this.y2e_1);
|
|
2356
|
+
result = imul(result, 31) + this.z2e_1.hashCode() | 0;
|
|
2357
|
+
result = imul(result, 31) + this.a2f_1.hashCode() | 0;
|
|
2358
|
+
result = imul(result, 31) + this.b2f_1.hashCode() | 0;
|
|
2359
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.c2f_1) | 0;
|
|
2360
|
+
result = imul(result, 31) + hashCode(this.d2f_1) | 0;
|
|
2361
|
+
result = imul(result, 31) + getStringHashCode(this.e2f_1) | 0;
|
|
2362
2362
|
return result;
|
|
2363
2363
|
};
|
|
2364
2364
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -2367,19 +2367,19 @@ protoOf(FlattenResponse).equals = function (other) {
|
|
|
2367
2367
|
if (!(other instanceof FlattenResponse))
|
|
2368
2368
|
return false;
|
|
2369
2369
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
2370
|
-
if (!(this.
|
|
2370
|
+
if (!(this.y2e_1 === tmp0_other_with_cast.y2e_1))
|
|
2371
2371
|
return false;
|
|
2372
|
-
if (!this.
|
|
2372
|
+
if (!this.z2e_1.equals(tmp0_other_with_cast.z2e_1))
|
|
2373
2373
|
return false;
|
|
2374
|
-
if (!this.
|
|
2374
|
+
if (!this.a2f_1.equals(tmp0_other_with_cast.a2f_1))
|
|
2375
2375
|
return false;
|
|
2376
|
-
if (!this.
|
|
2376
|
+
if (!this.b2f_1.equals(tmp0_other_with_cast.b2f_1))
|
|
2377
2377
|
return false;
|
|
2378
|
-
if (!(this.
|
|
2378
|
+
if (!(this.c2f_1 === tmp0_other_with_cast.c2f_1))
|
|
2379
2379
|
return false;
|
|
2380
|
-
if (!equals(this.
|
|
2380
|
+
if (!equals(this.d2f_1, tmp0_other_with_cast.d2f_1))
|
|
2381
2381
|
return false;
|
|
2382
|
-
if (!(this.
|
|
2382
|
+
if (!(this.e2f_1 === tmp0_other_with_cast.e2f_1))
|
|
2383
2383
|
return false;
|
|
2384
2384
|
return true;
|
|
2385
2385
|
};
|
|
@@ -2467,9 +2467,9 @@ function OpenAPIV2Parser$parse$lambda($strict) {
|
|
|
2467
2467
|
}
|
|
2468
2468
|
function OpenAPIV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
2469
2469
|
return function ($this$flatMapRequests) {
|
|
2470
|
-
var parameters = plus(resolveParameters_0($this_parseParameters, OpenAPIV2Parser_instance, $this$flatMapRequests.
|
|
2471
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2472
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2470
|
+
var parameters = plus(resolveParameters_0($this_parseParameters, OpenAPIV2Parser_instance, $this$flatMapRequests.u2e_1), resolveParameters($this_parseParameters, OpenAPIV2Parser_instance, $this$flatMapRequests.w2e_1));
|
|
2471
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.w2e_1, OpenAPIV2Parser_instance);
|
|
2472
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.t2e_1, OpenAPIV2Parser_instance) + $this$flatMapRequests.v2e_1.q2_1 : tmp0_elvis_lhs;
|
|
2473
2473
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2474
2474
|
// Inline function 'kotlin.collections.filter' call
|
|
2475
2475
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -2496,7 +2496,7 @@ function OpenAPIV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
2496
2496
|
// Inline function 'kotlin.let' call
|
|
2497
2497
|
// Inline function 'kotlin.contracts.contract' call
|
|
2498
2498
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
2499
|
-
tmp = flatten_0($this_parseParameters, OpenAPIV2Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
2499
|
+
tmp = flatten_0($this_parseParameters, OpenAPIV2Parser_instance, tmp0_safe_receiver, Common_getInstance().n2e([name, 'Parameter', element_0.s1i_1]));
|
|
2500
2500
|
}
|
|
2501
2501
|
var tmp1_elvis_lhs = tmp;
|
|
2502
2502
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -2507,9 +2507,9 @@ function OpenAPIV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
2507
2507
|
}
|
|
2508
2508
|
function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
2509
2509
|
return function ($this$flatMapRequests) {
|
|
2510
|
-
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenAPIV2Parser_instance, $this$flatMapRequests.
|
|
2511
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2512
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2510
|
+
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenAPIV2Parser_instance, $this$flatMapRequests.u2e_1), resolveParameters($this_parseRequestBody, OpenAPIV2Parser_instance, $this$flatMapRequests.w2e_1));
|
|
2511
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.w2e_1, OpenAPIV2Parser_instance);
|
|
2512
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.t2e_1, OpenAPIV2Parser_instance) + $this$flatMapRequests.v2e_1.q2_1 : tmp0_elvis_lhs;
|
|
2513
2513
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2514
2514
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2515
2515
|
var destination = ArrayList_init_$Create$();
|
|
@@ -2519,7 +2519,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2519
2519
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
2520
2520
|
var tmp;
|
|
2521
2521
|
if (!(element.n1j_1 == null)) {
|
|
2522
|
-
var tmp_0 = new DefinitionIdentifier(sanitize(Common_getInstance().
|
|
2522
|
+
var tmp_0 = new DefinitionIdentifier(sanitize(Common_getInstance().n2e([name, 'Parameter', element.s1i_1])));
|
|
2523
2523
|
// Inline function 'kotlin.collections.map' call
|
|
2524
2524
|
var this_0 = ensureNotNull(element.n1j_1);
|
|
2525
2525
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2539,7 +2539,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2539
2539
|
addAll(destination, list);
|
|
2540
2540
|
}
|
|
2541
2541
|
var enums = destination;
|
|
2542
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
2542
|
+
var tmp1_safe_receiver = $this$flatMapRequests.w2e_1.p1l_1;
|
|
2543
2543
|
var tmp_1;
|
|
2544
2544
|
if (tmp1_safe_receiver == null) {
|
|
2545
2545
|
tmp_1 = null;
|
|
@@ -2594,7 +2594,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2594
2594
|
switch (tmp0_subject == null ? -1 : tmp0_subject.r2_1) {
|
|
2595
2595
|
case -1:
|
|
2596
2596
|
case 5:
|
|
2597
|
-
tmp_5 = flatten($this_parseRequestBody, OpenAPIV2Parser_instance, schema, Common_getInstance().
|
|
2597
|
+
tmp_5 = flatten($this_parseRequestBody, OpenAPIV2Parser_instance, schema, Common_getInstance().n2e([name, 'RequestBody']));
|
|
2598
2598
|
break;
|
|
2599
2599
|
case 4:
|
|
2600
2600
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2607,7 +2607,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2607
2607
|
// Inline function 'kotlin.let' call
|
|
2608
2608
|
// Inline function 'kotlin.contracts.contract' call
|
|
2609
2609
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
2610
|
-
tmp_6 = flatten_0($this_parseRequestBody, OpenAPIV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
2610
|
+
tmp_6 = flatten_0($this_parseRequestBody, OpenAPIV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().n2e([name, 'RequestBody']));
|
|
2611
2611
|
}
|
|
2612
2612
|
|
|
2613
2613
|
var tmp0_elvis_lhs_0 = tmp_6;
|
|
@@ -2633,9 +2633,9 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2633
2633
|
}
|
|
2634
2634
|
function OpenAPIV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
2635
2635
|
return function ($this$flatMapResponses) {
|
|
2636
|
-
var schema = resolve_1($this_parseResponseBody, OpenAPIV2Parser_instance, $this$flatMapResponses.
|
|
2637
|
-
var tmp0_elvis_lhs = toName($this$flatMapResponses.
|
|
2638
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
2636
|
+
var schema = resolve_1($this_parseResponseBody, OpenAPIV2Parser_instance, $this$flatMapResponses.d2f_1).u1j_1;
|
|
2637
|
+
var tmp0_elvis_lhs = toName($this$flatMapResponses.b2f_1, OpenAPIV2Parser_instance);
|
|
2638
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.y2e_1, OpenAPIV2Parser_instance) + $this$flatMapResponses.a2f_1.q2_1 : tmp0_elvis_lhs;
|
|
2639
2639
|
var tmp;
|
|
2640
2640
|
if (schema instanceof SchemaObject) {
|
|
2641
2641
|
var tmp2_subject = schema.m1n_1;
|
|
@@ -2643,7 +2643,7 @@ function OpenAPIV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
2643
2643
|
switch (tmp2_subject == null ? -1 : tmp2_subject.r2_1) {
|
|
2644
2644
|
case -1:
|
|
2645
2645
|
case 5:
|
|
2646
|
-
tmp_0 = flatten($this_parseResponseBody, OpenAPIV2Parser_instance, schema, Common_getInstance().
|
|
2646
|
+
tmp_0 = flatten($this_parseResponseBody, OpenAPIV2Parser_instance, schema, Common_getInstance().n2e([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.c2f_1), 'ResponseBody']));
|
|
2647
2647
|
break;
|
|
2648
2648
|
case 4:
|
|
2649
2649
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2656,7 +2656,7 @@ function OpenAPIV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
2656
2656
|
// Inline function 'kotlin.let' call
|
|
2657
2657
|
// Inline function 'kotlin.contracts.contract' call
|
|
2658
2658
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
2659
|
-
tmp_1 = flatten_0($this_parseResponseBody, OpenAPIV2Parser_instance, tmp3_safe_receiver, Common_getInstance().
|
|
2659
|
+
tmp_1 = flatten_0($this_parseResponseBody, OpenAPIV2Parser_instance, tmp3_safe_receiver, Common_getInstance().n2e([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.c2f_1), 'ResponseBody']));
|
|
2660
2660
|
}
|
|
2661
2661
|
|
|
2662
2662
|
var tmp0_elvis_lhs_0 = tmp_1;
|
|
@@ -2684,10 +2684,10 @@ function OpenAPIV2Parser$toName$lambda(it) {
|
|
|
2684
2684
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2685
2685
|
|
|
2686
2686
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
2687
|
-
tmp = tmp_0.
|
|
2687
|
+
tmp = tmp_0.n2e([tmp$ret$1]);
|
|
2688
2688
|
break;
|
|
2689
2689
|
case false:
|
|
2690
|
-
tmp = Common_getInstance().
|
|
2690
|
+
tmp = Common_getInstance().n2e([it]);
|
|
2691
2691
|
break;
|
|
2692
2692
|
default:
|
|
2693
2693
|
noWhenBranchMatchedException();
|
|
@@ -2697,8 +2697,8 @@ function OpenAPIV2Parser$toName$lambda(it) {
|
|
|
2697
2697
|
}
|
|
2698
2698
|
function OpenAPIV2Parser() {
|
|
2699
2699
|
}
|
|
2700
|
-
protoOf(OpenAPIV2Parser).
|
|
2701
|
-
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.
|
|
2700
|
+
protoOf(OpenAPIV2Parser).l2e = function (moduleContent, strict) {
|
|
2701
|
+
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.f2f((new OpenAPI(Json(VOID, OpenAPIV2Parser$parse$lambda(strict)))).q1g(moduleContent.i22_1)));
|
|
2702
2702
|
var tmp;
|
|
2703
2703
|
if (tmp0_elvis_lhs == null) {
|
|
2704
2704
|
var message = 'Cannot yield non empty AST for OpenAPI v2';
|
|
@@ -2708,7 +2708,7 @@ protoOf(OpenAPIV2Parser).d2e = function (moduleContent, strict) {
|
|
|
2708
2708
|
}
|
|
2709
2709
|
return new AST(nonEmptyListOf(new Module(moduleContent.h22_1, tmp), []));
|
|
2710
2710
|
};
|
|
2711
|
-
protoOf(OpenAPIV2Parser).
|
|
2711
|
+
protoOf(OpenAPIV2Parser).f2f = function (_this__u8e3s4) {
|
|
2712
2712
|
// Inline function 'kotlin.collections.reduce' call
|
|
2713
2713
|
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();
|
|
2714
2714
|
if (!iterator.h())
|
|
@@ -3475,20 +3475,20 @@ function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
|
3475
3475
|
function OpenAPIV3Emitter() {
|
|
3476
3476
|
OpenAPIV3Emitter_instance = this;
|
|
3477
3477
|
Emitter.call(this);
|
|
3478
|
-
this.
|
|
3479
|
-
this.
|
|
3480
|
-
this.
|
|
3478
|
+
this.g2f_1 = FileExtension_JSON_getInstance();
|
|
3479
|
+
this.h2f_1 = null;
|
|
3480
|
+
this.i2f_1 = '';
|
|
3481
3481
|
}
|
|
3482
3482
|
protoOf(OpenAPIV3Emitter).y25 = function () {
|
|
3483
|
-
return this.
|
|
3483
|
+
return this.g2f_1;
|
|
3484
3484
|
};
|
|
3485
3485
|
protoOf(OpenAPIV3Emitter).a26 = function () {
|
|
3486
|
-
return this.
|
|
3486
|
+
return this.i2f_1;
|
|
3487
3487
|
};
|
|
3488
3488
|
protoOf(OpenAPIV3Emitter).b26 = function (module_0, logger) {
|
|
3489
3489
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
3490
|
-
var this_0 = Common_getInstance().
|
|
3491
|
-
var value = this.
|
|
3490
|
+
var this_0 = Common_getInstance().m2e_1;
|
|
3491
|
+
var value = this.j2f(module_0, null);
|
|
3492
3492
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3493
3493
|
var this_1 = this_0.wo();
|
|
3494
3494
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -3498,30 +3498,30 @@ protoOf(OpenAPIV3Emitter).b26 = function (module_0, logger) {
|
|
|
3498
3498
|
return nonEmptyListOf(new Emitted('OpenAPIObject', tmp$ret$2), []);
|
|
3499
3499
|
};
|
|
3500
3500
|
protoOf(OpenAPIV3Emitter).k26 = function (type, module_0) {
|
|
3501
|
-
return this.
|
|
3501
|
+
return this.l29();
|
|
3502
3502
|
};
|
|
3503
3503
|
protoOf(OpenAPIV3Emitter).f27 = function (enum_0, module_0) {
|
|
3504
|
-
return this.
|
|
3504
|
+
return this.l29();
|
|
3505
3505
|
};
|
|
3506
3506
|
protoOf(OpenAPIV3Emitter).y26 = function (refined) {
|
|
3507
|
-
return this.
|
|
3507
|
+
return this.l29();
|
|
3508
3508
|
};
|
|
3509
3509
|
protoOf(OpenAPIV3Emitter).p27 = function (endpoint) {
|
|
3510
|
-
return this.
|
|
3510
|
+
return this.l29();
|
|
3511
3511
|
};
|
|
3512
3512
|
protoOf(OpenAPIV3Emitter).k27 = function (union) {
|
|
3513
|
-
return this.
|
|
3513
|
+
return this.l29();
|
|
3514
3514
|
};
|
|
3515
3515
|
protoOf(OpenAPIV3Emitter).k25 = function (identifier) {
|
|
3516
|
-
return this.
|
|
3516
|
+
return this.l29();
|
|
3517
3517
|
};
|
|
3518
3518
|
protoOf(OpenAPIV3Emitter).l27 = function (channel) {
|
|
3519
|
-
return this.
|
|
3519
|
+
return this.l29();
|
|
3520
3520
|
};
|
|
3521
|
-
protoOf(OpenAPIV3Emitter).
|
|
3522
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
3521
|
+
protoOf(OpenAPIV3Emitter).j2f = function (module_0, options) {
|
|
3522
|
+
var tmp1_elvis_lhs = options == null ? null : options.k2f_1;
|
|
3523
3523
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
3524
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
3524
|
+
var tmp3_elvis_lhs = options == null ? null : options.l2f_1;
|
|
3525
3525
|
return new OpenAPIObject('3.0.0', new InfoObject_0(tmp, VOID, VOID, VOID, VOID, tmp3_elvis_lhs == null ? '0.0.0' : tmp3_elvis_lhs), VOID, emitPaths(module_0, this), emitComponents(module_0, this));
|
|
3526
3526
|
};
|
|
3527
3527
|
var OpenAPIV3Emitter_instance;
|
|
@@ -3579,7 +3579,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3579
3579
|
while (tmp0_iterator_2.h()) {
|
|
3580
3580
|
var item_0 = tmp0_iterator_2.i();
|
|
3581
3581
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3582
|
-
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_0, Common_getInstance().
|
|
3582
|
+
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_0, Common_getInstance().n2e([name, 'Parameter', item_0.e1w_1]));
|
|
3583
3583
|
destination_2.e(tmp$ret$9);
|
|
3584
3584
|
}
|
|
3585
3585
|
var query = destination_2;
|
|
@@ -3601,7 +3601,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3601
3601
|
while (tmp0_iterator_4.h()) {
|
|
3602
3602
|
var item_1 = tmp0_iterator_4.i();
|
|
3603
3603
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3604
|
-
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_1, Common_getInstance().
|
|
3604
|
+
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_1, Common_getInstance().n2e([name, 'Parameter', item_1.e1w_1]));
|
|
3605
3605
|
destination_4.e(tmp$ret$15);
|
|
3606
3606
|
}
|
|
3607
3607
|
var headers = destination_4;
|
|
@@ -3647,7 +3647,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3647
3647
|
tmp_2 = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema, isNullable);
|
|
3648
3648
|
} else {
|
|
3649
3649
|
if (schema instanceof SchemaObject_0) {
|
|
3650
|
-
tmp_2 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema, isNullable, Common_getInstance().
|
|
3650
|
+
tmp_2 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema, isNullable, Common_getInstance().n2e([name, 'RequestBody']));
|
|
3651
3651
|
} else {
|
|
3652
3652
|
if (schema == null) {
|
|
3653
3653
|
tmp_2 = null;
|
|
@@ -3740,7 +3740,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3740
3740
|
while (tmp0_iterator_8.h()) {
|
|
3741
3741
|
var item_4 = tmp0_iterator_8.i();
|
|
3742
3742
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3743
|
-
var tmp$ret$40 = toField_4(_this__u8e3s4, OpenAPIV3Parser_instance, resolve_5(_this__u8e3s4, OpenAPIV3Parser_instance, item_4.b1()), item_4.a1(), Common_getInstance().
|
|
3743
|
+
var tmp$ret$40 = toField_4(_this__u8e3s4, OpenAPIV3Parser_instance, resolve_5(_this__u8e3s4, OpenAPIV3Parser_instance, item_4.b1()), item_4.a1(), Common_getInstance().n2e([name, 'ResponseHeader']));
|
|
3744
3744
|
destination_8.e(tmp$ret$40);
|
|
3745
3745
|
}
|
|
3746
3746
|
tmp_7 = destination_8;
|
|
@@ -3754,7 +3754,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3754
3754
|
tmp_10 = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema_0, isNullable_0);
|
|
3755
3755
|
} else {
|
|
3756
3756
|
if (schema_0 instanceof SchemaObject_0) {
|
|
3757
|
-
tmp_10 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema_0, isNullable_0, Common_getInstance().
|
|
3757
|
+
tmp_10 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema_0, isNullable_0, Common_getInstance().n2e([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
3758
3758
|
} else {
|
|
3759
3759
|
if (schema_0 == null) {
|
|
3760
3760
|
tmp_10 = new Any(isNullable_0);
|
|
@@ -3809,7 +3809,7 @@ function flatMapResponse(_this__u8e3s4, $this, response, name, statusCode) {
|
|
|
3809
3809
|
switch (tmp0_subject == null ? -1 : tmp0_subject.r2_1) {
|
|
3810
3810
|
case -1:
|
|
3811
3811
|
case 5:
|
|
3812
|
-
tmp_0 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema, Common_getInstance().
|
|
3812
|
+
tmp_0 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema, Common_getInstance().n2e([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
3813
3813
|
break;
|
|
3814
3814
|
case 4:
|
|
3815
3815
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -3822,7 +3822,7 @@ function flatMapResponse(_this__u8e3s4, $this, response, name, statusCode) {
|
|
|
3822
3822
|
// Inline function 'kotlin.let' call
|
|
3823
3823
|
// Inline function 'kotlin.contracts.contract' call
|
|
3824
3824
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.flatMapResponse.<anonymous>.<anonymous>' call
|
|
3825
|
-
tmp_1 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
3825
|
+
tmp_1 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp1_safe_receiver, Common_getInstance().n2e([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
3826
3826
|
}
|
|
3827
3827
|
|
|
3828
3828
|
var tmp0_elvis_lhs_0 = tmp_1;
|
|
@@ -3876,7 +3876,7 @@ function parseComponents(_this__u8e3s4, $this) {
|
|
|
3876
3876
|
while (tmp0_iterator_0.h()) {
|
|
3877
3877
|
var element_0 = tmp0_iterator_0.i();
|
|
3878
3878
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseComponents.<anonymous>' call
|
|
3879
|
-
var list = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, element_0.b1(), Common_getInstance().
|
|
3879
|
+
var list = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, element_0.b1(), Common_getInstance().n2e([element_0.a1()]));
|
|
3880
3880
|
addAll(destination_0, list);
|
|
3881
3881
|
}
|
|
3882
3882
|
return destination_0;
|
|
@@ -3893,7 +3893,7 @@ function toName_1(_this__u8e3s4, $this) {
|
|
|
3893
3893
|
// Inline function 'kotlin.let' call
|
|
3894
3894
|
// Inline function 'kotlin.contracts.contract' call
|
|
3895
3895
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.toName.<anonymous>' call
|
|
3896
|
-
tmp = Common_getInstance().
|
|
3896
|
+
tmp = Common_getInstance().n2e([tmp0_safe_receiver]);
|
|
3897
3897
|
}
|
|
3898
3898
|
return tmp;
|
|
3899
3899
|
}
|
|
@@ -3983,7 +3983,7 @@ function toSegments_0(_this__u8e3s4, $this, path, parameters, operation, method)
|
|
|
3983
3983
|
// Inline function 'kotlin.let' call
|
|
3984
3984
|
// Inline function 'kotlin.contracts.contract' call
|
|
3985
3985
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.toSegments.<anonymous>.<anonymous>' call
|
|
3986
|
-
tmp_1 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp4_safe_receiver, false, Common_getInstance().
|
|
3986
|
+
tmp_1 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp4_safe_receiver, false, Common_getInstance().n2e([name, 'Parameter', param]));
|
|
3987
3987
|
}
|
|
3988
3988
|
|
|
3989
3989
|
var tmp5_safe_receiver = tmp_1;
|
|
@@ -4393,7 +4393,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4393
4393
|
tmp_6 = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, item, false);
|
|
4394
4394
|
} else {
|
|
4395
4395
|
if (item instanceof SchemaObject_0) {
|
|
4396
|
-
tmp_6 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, item, false, Common_getInstance().
|
|
4396
|
+
tmp_6 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, item, false, Common_getInstance().n2e([name, index_0.toString()]));
|
|
4397
4397
|
} else {
|
|
4398
4398
|
noWhenBranchMatchedException();
|
|
4399
4399
|
}
|
|
@@ -4421,7 +4421,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4421
4421
|
tmp_8 = emptyList();
|
|
4422
4422
|
} else {
|
|
4423
4423
|
if (element instanceof SchemaObject_0) {
|
|
4424
|
-
tmp_8 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, element, Common_getInstance().
|
|
4424
|
+
tmp_8 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, element, Common_getInstance().n2e([name, index_2.toString()]));
|
|
4425
4425
|
} else {
|
|
4426
4426
|
noWhenBranchMatchedException();
|
|
4427
4427
|
}
|
|
@@ -4493,7 +4493,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4493
4493
|
var key_0 = element_2.a1();
|
|
4494
4494
|
// Inline function 'kotlin.collections.component2' call
|
|
4495
4495
|
var value = element_2.b1();
|
|
4496
|
-
var list_2 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, Common_getInstance().
|
|
4496
|
+
var list_2 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, Common_getInstance().n2e([name, key_0]));
|
|
4497
4497
|
addAll(destination_3, list_2);
|
|
4498
4498
|
}
|
|
4499
4499
|
var list_3 = destination_3;
|
|
@@ -4542,7 +4542,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4542
4542
|
var key_1 = element_3.a1();
|
|
4543
4543
|
// Inline function 'kotlin.collections.component2' call
|
|
4544
4544
|
var value_0 = element_3.b1();
|
|
4545
|
-
var list_4 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value_0, Common_getInstance().
|
|
4545
|
+
var list_4 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value_0, Common_getInstance().n2e([name, key_1]));
|
|
4546
4546
|
addAll(destination_5, list_4);
|
|
4547
4547
|
}
|
|
4548
4548
|
|
|
@@ -4564,7 +4564,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4564
4564
|
tmp_14 = emptyList();
|
|
4565
4565
|
} else {
|
|
4566
4566
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
4567
|
-
tmp_14 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, tmp6_safe_receiver, Common_getInstance().
|
|
4567
|
+
tmp_14 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, tmp6_safe_receiver, Common_getInstance().n2e([name, 'array']));
|
|
4568
4568
|
} else {
|
|
4569
4569
|
noWhenBranchMatchedException();
|
|
4570
4570
|
}
|
|
@@ -4626,7 +4626,7 @@ function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
4626
4626
|
}
|
|
4627
4627
|
tmp = tmp_0;
|
|
4628
4628
|
} else if (!(schema.w1x_1 == null)) {
|
|
4629
|
-
tmp = new Custom(sanitize_0(Common_getInstance().
|
|
4629
|
+
tmp = new Custom(sanitize_0(Common_getInstance().n2e([getReference_0(referencingObject, OpenAPIV3Parser_instance)])), isNullable);
|
|
4630
4630
|
} else if (isPrimitive_0(schema.w1w_1)) {
|
|
4631
4631
|
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.w1w_1), OpenAPIV3Parser_instance, schema.f1x_1), isNullable);
|
|
4632
4632
|
} else if (equals(schema.w1w_1, Type_ARRAY_getInstance_0())) {
|
|
@@ -4638,7 +4638,7 @@ function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
4638
4638
|
tmp_3 = toIterable_0(toReference_1(_this__u8e3s4, tmp_4, items, tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs), isNullable);
|
|
4639
4639
|
} else {
|
|
4640
4640
|
if (items instanceof SchemaObject_0) {
|
|
4641
|
-
var tmp_5 = sanitize_0(Common_getInstance().
|
|
4641
|
+
var tmp_5 = sanitize_0(Common_getInstance().n2e([getReference_0(referencingObject, OpenAPIV3Parser_instance), 'Array']));
|
|
4642
4642
|
var tmp3_elvis_lhs = schema.n1w_1;
|
|
4643
4643
|
tmp_3 = toIterable_0(new Custom(tmp_5, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs), isNullable);
|
|
4644
4644
|
} else {
|
|
@@ -4652,7 +4652,7 @@ function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
4652
4652
|
}
|
|
4653
4653
|
tmp = tmp_3;
|
|
4654
4654
|
} else {
|
|
4655
|
-
tmp = new Custom(sanitize_0(Common_getInstance().
|
|
4655
|
+
tmp = new Custom(sanitize_0(Common_getInstance().n2e([getReference_0(referencingObject, OpenAPIV3Parser_instance)])), isNullable);
|
|
4656
4656
|
}
|
|
4657
4657
|
return tmp;
|
|
4658
4658
|
}
|
|
@@ -4842,7 +4842,7 @@ function toOperationList_0(_this__u8e3s4, $this) {
|
|
|
4842
4842
|
var tmp$ret$0 = tmp_0;
|
|
4843
4843
|
result.n2(element, tmp$ret$0);
|
|
4844
4844
|
}
|
|
4845
|
-
return tmp.
|
|
4845
|
+
return tmp.o2e(result);
|
|
4846
4846
|
}
|
|
4847
4847
|
function getReference_0(_this__u8e3s4, $this) {
|
|
4848
4848
|
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.k1w_1), ['/']), 3);
|
|
@@ -4897,7 +4897,7 @@ function toField_2(_this__u8e3s4, $this, schema, name) {
|
|
|
4897
4897
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
4898
4898
|
var tmp;
|
|
4899
4899
|
if (value instanceof SchemaObject_0) {
|
|
4900
|
-
tmp = new Field(new FieldIdentifier(key), !(value.w1x_1 == null) ? toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().
|
|
4900
|
+
tmp = new Field(new FieldIdentifier(key), !(value.w1x_1 == null) ? toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().n2e([name, key])) : equals(value.w1w_1, Type_ARRAY_getInstance_0()) ? toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().n2e([name, key, 'Array'])) : toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().n2e([name, key])));
|
|
4901
4901
|
} else {
|
|
4902
4902
|
if (value instanceof ReferenceObject_0) {
|
|
4903
4903
|
tmp = new Field(new FieldIdentifier(key), toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable));
|
|
@@ -4959,19 +4959,19 @@ function toField_4(_this__u8e3s4, $this, header, identifier, name) {
|
|
|
4959
4959
|
return new Field(new FieldIdentifier(identifier), it);
|
|
4960
4960
|
}
|
|
4961
4961
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
4962
|
-
this.
|
|
4963
|
-
this.
|
|
4964
|
-
this.
|
|
4965
|
-
this.
|
|
4962
|
+
this.m2f_1 = path;
|
|
4963
|
+
this.n2f_1 = pathItem;
|
|
4964
|
+
this.o2f_1 = method;
|
|
4965
|
+
this.p2f_1 = operation;
|
|
4966
4966
|
}
|
|
4967
4967
|
protoOf(FlattenRequest_0).toString = function () {
|
|
4968
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
4968
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.m2f_1) + ', pathItem=' + this.n2f_1.toString() + ', method=' + this.o2f_1.toString() + ', operation=' + this.p2f_1.toString() + ')';
|
|
4969
4969
|
};
|
|
4970
4970
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
4971
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
4972
|
-
result = imul(result, 31) + this.
|
|
4973
|
-
result = imul(result, 31) + this.
|
|
4974
|
-
result = imul(result, 31) + this.
|
|
4971
|
+
var result = Path__hashCode_impl_go73kd_0(this.m2f_1);
|
|
4972
|
+
result = imul(result, 31) + this.n2f_1.hashCode() | 0;
|
|
4973
|
+
result = imul(result, 31) + this.o2f_1.hashCode() | 0;
|
|
4974
|
+
result = imul(result, 31) + this.p2f_1.hashCode() | 0;
|
|
4975
4975
|
return result;
|
|
4976
4976
|
};
|
|
4977
4977
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -4980,13 +4980,13 @@ protoOf(FlattenRequest_0).equals = function (other) {
|
|
|
4980
4980
|
if (!(other instanceof FlattenRequest_0))
|
|
4981
4981
|
return false;
|
|
4982
4982
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
4983
|
-
if (!(this.
|
|
4983
|
+
if (!(this.m2f_1 === tmp0_other_with_cast.m2f_1))
|
|
4984
4984
|
return false;
|
|
4985
|
-
if (!this.
|
|
4985
|
+
if (!this.n2f_1.equals(tmp0_other_with_cast.n2f_1))
|
|
4986
4986
|
return false;
|
|
4987
|
-
if (!this.
|
|
4987
|
+
if (!this.o2f_1.equals(tmp0_other_with_cast.o2f_1))
|
|
4988
4988
|
return false;
|
|
4989
|
-
if (!this.
|
|
4989
|
+
if (!this.p2f_1.equals(tmp0_other_with_cast.p2f_1))
|
|
4990
4990
|
return false;
|
|
4991
4991
|
return true;
|
|
4992
4992
|
};
|
|
@@ -5035,23 +5035,23 @@ function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
|
5035
5035
|
return destination_1;
|
|
5036
5036
|
}
|
|
5037
5037
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
5038
|
-
this.
|
|
5039
|
-
this.
|
|
5040
|
-
this.
|
|
5041
|
-
this.
|
|
5042
|
-
this.
|
|
5043
|
-
this.
|
|
5038
|
+
this.q2f_1 = path;
|
|
5039
|
+
this.r2f_1 = pathItem;
|
|
5040
|
+
this.s2f_1 = method;
|
|
5041
|
+
this.t2f_1 = operation;
|
|
5042
|
+
this.u2f_1 = statusCode;
|
|
5043
|
+
this.v2f_1 = response;
|
|
5044
5044
|
}
|
|
5045
5045
|
protoOf(FlattenResponse_0).toString = function () {
|
|
5046
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
5046
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.q2f_1) + ', pathItem=' + this.r2f_1.toString() + ', method=' + this.s2f_1.toString() + ', operation=' + this.t2f_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy_0(this.u2f_1) + ', response=' + toString(this.v2f_1) + ')';
|
|
5047
5047
|
};
|
|
5048
5048
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
5049
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
5050
|
-
result = imul(result, 31) + this.
|
|
5051
|
-
result = imul(result, 31) + this.
|
|
5052
|
-
result = imul(result, 31) + this.
|
|
5053
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.
|
|
5054
|
-
result = imul(result, 31) + hashCode(this.
|
|
5049
|
+
var result = Path__hashCode_impl_go73kd_0(this.q2f_1);
|
|
5050
|
+
result = imul(result, 31) + this.r2f_1.hashCode() | 0;
|
|
5051
|
+
result = imul(result, 31) + this.s2f_1.hashCode() | 0;
|
|
5052
|
+
result = imul(result, 31) + this.t2f_1.hashCode() | 0;
|
|
5053
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.u2f_1) | 0;
|
|
5054
|
+
result = imul(result, 31) + hashCode(this.v2f_1) | 0;
|
|
5055
5055
|
return result;
|
|
5056
5056
|
};
|
|
5057
5057
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -5060,17 +5060,17 @@ protoOf(FlattenResponse_0).equals = function (other) {
|
|
|
5060
5060
|
if (!(other instanceof FlattenResponse_0))
|
|
5061
5061
|
return false;
|
|
5062
5062
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
5063
|
-
if (!(this.
|
|
5063
|
+
if (!(this.q2f_1 === tmp0_other_with_cast.q2f_1))
|
|
5064
5064
|
return false;
|
|
5065
|
-
if (!this.
|
|
5065
|
+
if (!this.r2f_1.equals(tmp0_other_with_cast.r2f_1))
|
|
5066
5066
|
return false;
|
|
5067
|
-
if (!this.
|
|
5067
|
+
if (!this.s2f_1.equals(tmp0_other_with_cast.s2f_1))
|
|
5068
5068
|
return false;
|
|
5069
|
-
if (!this.
|
|
5069
|
+
if (!this.t2f_1.equals(tmp0_other_with_cast.t2f_1))
|
|
5070
5070
|
return false;
|
|
5071
|
-
if (!(this.
|
|
5071
|
+
if (!(this.u2f_1 === tmp0_other_with_cast.u2f_1))
|
|
5072
5072
|
return false;
|
|
5073
|
-
if (!equals(this.
|
|
5073
|
+
if (!equals(this.v2f_1, tmp0_other_with_cast.v2f_1))
|
|
5074
5074
|
return false;
|
|
5075
5075
|
return true;
|
|
5076
5076
|
};
|
|
@@ -5151,9 +5151,9 @@ function OpenAPIV3Parser$parse$lambda($strict) {
|
|
|
5151
5151
|
}
|
|
5152
5152
|
function OpenAPIV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
5153
5153
|
return function ($this$flatMapRequests) {
|
|
5154
|
-
var parameters = plus(resolveParameters_2($this_parseParameters, OpenAPIV3Parser_instance, $this$flatMapRequests.
|
|
5155
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5156
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5154
|
+
var parameters = plus(resolveParameters_2($this_parseParameters, OpenAPIV3Parser_instance, $this$flatMapRequests.n2f_1), resolveParameters_1($this_parseParameters, OpenAPIV3Parser_instance, $this$flatMapRequests.p2f_1));
|
|
5155
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.p2f_1, OpenAPIV3Parser_instance);
|
|
5156
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.m2f_1, OpenAPIV3Parser_instance) + $this$flatMapRequests.o2f_1.q2_1 : tmp0_elvis_lhs;
|
|
5157
5157
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5158
5158
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5159
5159
|
var destination = ArrayList_init_$Create$();
|
|
@@ -5169,7 +5169,7 @@ function OpenAPIV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
5169
5169
|
// Inline function 'kotlin.let' call
|
|
5170
5170
|
// Inline function 'kotlin.contracts.contract' call
|
|
5171
5171
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
5172
|
-
tmp = flatten_2($this_parseParameters, OpenAPIV3Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
5172
|
+
tmp = flatten_2($this_parseParameters, OpenAPIV3Parser_instance, tmp0_safe_receiver, Common_getInstance().n2e([name, 'Parameter', element.e1w_1]));
|
|
5173
5173
|
}
|
|
5174
5174
|
var tmp1_elvis_lhs = tmp;
|
|
5175
5175
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -5180,11 +5180,11 @@ function OpenAPIV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
5180
5180
|
}
|
|
5181
5181
|
function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
5182
5182
|
return function ($this$flatMapRequests) {
|
|
5183
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5184
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5183
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.p2f_1, OpenAPIV3Parser_instance);
|
|
5184
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.m2f_1, OpenAPIV3Parser_instance) + $this$flatMapRequests.o2f_1.q2_1 : tmp0_elvis_lhs;
|
|
5185
5185
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5186
5186
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5187
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
5187
|
+
var tmp1_safe_receiver = $this$flatMapRequests.p2f_1.h1u_1;
|
|
5188
5188
|
var tmp;
|
|
5189
5189
|
if (tmp1_safe_receiver == null) {
|
|
5190
5190
|
tmp = null;
|
|
@@ -5214,7 +5214,7 @@ function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
5214
5214
|
switch (tmp0_subject == null ? -1 : tmp0_subject.r2_1) {
|
|
5215
5215
|
case -1:
|
|
5216
5216
|
case 5:
|
|
5217
|
-
tmp_1 = flatten_1($this_parseRequestBody, OpenAPIV3Parser_instance, schema, Common_getInstance().
|
|
5217
|
+
tmp_1 = flatten_1($this_parseRequestBody, OpenAPIV3Parser_instance, schema, Common_getInstance().n2e([name, 'RequestBody']));
|
|
5218
5218
|
break;
|
|
5219
5219
|
case 4:
|
|
5220
5220
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -5227,7 +5227,7 @@ function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
5227
5227
|
// Inline function 'kotlin.let' call
|
|
5228
5228
|
// Inline function 'kotlin.contracts.contract' call
|
|
5229
5229
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
5230
|
-
tmp_2 = flatten_2($this_parseRequestBody, OpenAPIV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
5230
|
+
tmp_2 = flatten_2($this_parseRequestBody, OpenAPIV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().n2e([name, 'RequestBody']));
|
|
5231
5231
|
}
|
|
5232
5232
|
|
|
5233
5233
|
var tmp0_elvis_lhs_1 = tmp_2;
|
|
@@ -5259,15 +5259,15 @@ function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
5259
5259
|
}
|
|
5260
5260
|
function OpenAPIV3Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
5261
5261
|
return function ($this$flatMapResponses) {
|
|
5262
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.
|
|
5263
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.
|
|
5264
|
-
var response = $this$flatMapResponses.
|
|
5262
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.t2f_1, OpenAPIV3Parser_instance);
|
|
5263
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.q2f_1, OpenAPIV3Parser_instance) + $this$flatMapResponses.s2f_1.q2_1 : tmp0_elvis_lhs;
|
|
5264
|
+
var response = $this$flatMapResponses.v2f_1;
|
|
5265
5265
|
var tmp;
|
|
5266
5266
|
if (response instanceof ResponseObject_0) {
|
|
5267
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, response, name, $this$flatMapResponses.
|
|
5267
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, response, name, $this$flatMapResponses.u2f_1);
|
|
5268
5268
|
} else {
|
|
5269
5269
|
if (response instanceof ReferenceObject_0) {
|
|
5270
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenAPIV3Parser_instance, response).fe_1, name, $this$flatMapResponses.
|
|
5270
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenAPIV3Parser_instance, response).fe_1, name, $this$flatMapResponses.u2f_1);
|
|
5271
5271
|
} else {
|
|
5272
5272
|
noWhenBranchMatchedException();
|
|
5273
5273
|
}
|
|
@@ -5286,10 +5286,10 @@ function OpenAPIV3Parser$toName$lambda(it) {
|
|
|
5286
5286
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5287
5287
|
|
|
5288
5288
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
5289
|
-
tmp = tmp_0.
|
|
5289
|
+
tmp = tmp_0.n2e([tmp$ret$1]);
|
|
5290
5290
|
break;
|
|
5291
5291
|
case false:
|
|
5292
|
-
tmp = Common_getInstance().
|
|
5292
|
+
tmp = Common_getInstance().n2e([it]);
|
|
5293
5293
|
break;
|
|
5294
5294
|
default:
|
|
5295
5295
|
noWhenBranchMatchedException();
|
|
@@ -5299,8 +5299,8 @@ function OpenAPIV3Parser$toName$lambda(it) {
|
|
|
5299
5299
|
}
|
|
5300
5300
|
function OpenAPIV3Parser() {
|
|
5301
5301
|
}
|
|
5302
|
-
protoOf(OpenAPIV3Parser).
|
|
5303
|
-
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.
|
|
5302
|
+
protoOf(OpenAPIV3Parser).l2e = function (moduleContent, strict) {
|
|
5303
|
+
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.w2f((new OpenAPI_0(Json(VOID, OpenAPIV3Parser$parse$lambda(strict)))).q1g(moduleContent.i22_1)));
|
|
5304
5304
|
var tmp;
|
|
5305
5305
|
if (tmp0_elvis_lhs == null) {
|
|
5306
5306
|
var message = 'Cannot yield non empty List<Node> for OpenAPI v3';
|
|
@@ -5310,7 +5310,7 @@ protoOf(OpenAPIV3Parser).d2e = function (moduleContent, strict) {
|
|
|
5310
5310
|
}
|
|
5311
5311
|
return new AST(nonEmptyListOf(new Module(moduleContent.h22_1, tmp), []));
|
|
5312
5312
|
};
|
|
5313
|
-
protoOf(OpenAPIV3Parser).
|
|
5313
|
+
protoOf(OpenAPIV3Parser).w2f = function (_this__u8e3s4) {
|
|
5314
5314
|
// Inline function 'kotlin.collections.reduce' call
|
|
5315
5315
|
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();
|
|
5316
5316
|
if (!iterator.h())
|