@flock/wirespec 0.16.6 → 0.16.7
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 +1129 -1129
- package/colormath-root-colormath.mjs +400 -400
- package/kotlin-kotlin-stdlib.mjs +6 -6
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1764 -1764
- package/kotlinx-io-kotlinx-io-core.mjs +371 -371
- package/markdown.mjs +1796 -1796
- package/mordant-mordant.mjs +1531 -1531
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +6 -92
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +31 -31
- package/wirespec-src-compiler-emitters-typescript.mjs +23 -23
- package/wirespec-src-compiler-emitters-wirespec.mjs +8 -8
- package/wirespec-src-compiler-lib.mjs +247 -247
- package/wirespec-src-converter-avro.mjs +261 -261
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +153 -153
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +115 -115
- package/wirespec-src-plugin-cli.mjs +69 -69
- package/wirespec-src-plugin-npm.d.ts +1 -1
- package/wirespec-src-plugin-npm.mjs +10 -9
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +2 -2
|
@@ -222,9 +222,9 @@ function Common$json$lambda($this$Json) {
|
|
|
222
222
|
function Common() {
|
|
223
223
|
Common_instance = this;
|
|
224
224
|
var tmp = this;
|
|
225
|
-
tmp.
|
|
225
|
+
tmp.w2e_1 = Json(VOID, Common$json$lambda);
|
|
226
226
|
}
|
|
227
|
-
protoOf(Common).
|
|
227
|
+
protoOf(Common).x2e = function (arg) {
|
|
228
228
|
// Inline function 'kotlin.collections.flatMap' call
|
|
229
229
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
230
230
|
var destination = ArrayList_init_$Create$();
|
|
@@ -240,7 +240,7 @@ protoOf(Common).y2e = function (arg) {
|
|
|
240
240
|
var tmp = destination;
|
|
241
241
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, Common$className$lambda);
|
|
242
242
|
};
|
|
243
|
-
protoOf(Common).
|
|
243
|
+
protoOf(Common).y2e = function (_this__u8e3s4) {
|
|
244
244
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
245
245
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
246
246
|
var destination = ArrayList_init_$Create$();
|
|
@@ -751,20 +751,20 @@ function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
|
751
751
|
function OpenAPIV2Emitter() {
|
|
752
752
|
OpenAPIV2Emitter_instance = this;
|
|
753
753
|
Emitter.call(this);
|
|
754
|
-
this.
|
|
755
|
-
this.
|
|
756
|
-
this.
|
|
754
|
+
this.z2e_1 = FileExtension_JSON_getInstance();
|
|
755
|
+
this.a2f_1 = null;
|
|
756
|
+
this.b2f_1 = '';
|
|
757
757
|
}
|
|
758
758
|
protoOf(OpenAPIV2Emitter).k24 = function () {
|
|
759
|
-
return this.
|
|
759
|
+
return this.z2e_1;
|
|
760
760
|
};
|
|
761
761
|
protoOf(OpenAPIV2Emitter).b26 = function () {
|
|
762
|
-
return this.
|
|
762
|
+
return this.b2f_1;
|
|
763
763
|
};
|
|
764
764
|
protoOf(OpenAPIV2Emitter).g24 = function (module_0, logger) {
|
|
765
765
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
766
|
-
var this_0 = Common_getInstance().
|
|
767
|
-
var value = this.
|
|
766
|
+
var this_0 = Common_getInstance().w2e_1;
|
|
767
|
+
var value = this.c2f(module_0);
|
|
768
768
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
769
769
|
var this_1 = this_0.xo();
|
|
770
770
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -794,7 +794,7 @@ protoOf(OpenAPIV2Emitter).s24 = function (identifier) {
|
|
|
794
794
|
protoOf(OpenAPIV2Emitter).t24 = function (channel) {
|
|
795
795
|
return this.c26();
|
|
796
796
|
};
|
|
797
|
-
protoOf(OpenAPIV2Emitter).
|
|
797
|
+
protoOf(OpenAPIV2Emitter).c2f = function (module_0) {
|
|
798
798
|
var tmp = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, '0.0.0');
|
|
799
799
|
var tmp_0 = listOf('application/json');
|
|
800
800
|
var tmp_1 = listOf('application/json');
|
|
@@ -1201,7 +1201,7 @@ function parseEndpoints(_this__u8e3s4, $this) {
|
|
|
1201
1201
|
tmp_1 = toReference(_this__u8e3s4, OpenAPIV2Parser_instance, schema, isNullable);
|
|
1202
1202
|
} else {
|
|
1203
1203
|
if (schema instanceof SchemaObject) {
|
|
1204
|
-
tmp_1 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, schema, Common_getInstance().
|
|
1204
|
+
tmp_1 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, schema, Common_getInstance().x2e([name, 'RequestBody']), isNullable);
|
|
1205
1205
|
} else {
|
|
1206
1206
|
if (schema == null) {
|
|
1207
1207
|
var reason = 'Not yet implemented';
|
|
@@ -1318,7 +1318,7 @@ function parseEndpoints(_this__u8e3s4, $this) {
|
|
|
1318
1318
|
tmp_10 = toReference(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver, false);
|
|
1319
1319
|
} else {
|
|
1320
1320
|
if (tmp1_safe_receiver instanceof SchemaObject) {
|
|
1321
|
-
tmp_10 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
1321
|
+
tmp_10 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver, Common_getInstance().x2e([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']), false);
|
|
1322
1322
|
} else {
|
|
1323
1323
|
noWhenBranchMatchedException();
|
|
1324
1324
|
}
|
|
@@ -1398,7 +1398,7 @@ function parseDefinitions(_this__u8e3s4, $this) {
|
|
|
1398
1398
|
while (tmp0_iterator_1.h()) {
|
|
1399
1399
|
var element_0 = tmp0_iterator_1.i();
|
|
1400
1400
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseDefinitions.<anonymous>' call
|
|
1401
|
-
var list = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, element_0.b1(), Common_getInstance().
|
|
1401
|
+
var list = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, element_0.b1(), Common_getInstance().x2e([element_0.a1()]));
|
|
1402
1402
|
addAll(destination_0, list);
|
|
1403
1403
|
}
|
|
1404
1404
|
return destination_0;
|
|
@@ -1695,7 +1695,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1695
1695
|
tmp_9 = emptyList();
|
|
1696
1696
|
} else {
|
|
1697
1697
|
if (value instanceof SchemaObject) {
|
|
1698
|
-
tmp_9 = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().
|
|
1698
|
+
tmp_9 = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().x2e([name, key_0]));
|
|
1699
1699
|
} else {
|
|
1700
1700
|
noWhenBranchMatchedException();
|
|
1701
1701
|
}
|
|
@@ -1754,7 +1754,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1754
1754
|
var key_1 = element_2.a1();
|
|
1755
1755
|
// Inline function 'kotlin.collections.component2' call
|
|
1756
1756
|
var value_0 = element_2.b1();
|
|
1757
|
-
var list_3 = flatten_0(_this__u8e3s4, OpenAPIV2Parser_instance, value_0, Common_getInstance().
|
|
1757
|
+
var list_3 = flatten_0(_this__u8e3s4, OpenAPIV2Parser_instance, value_0, Common_getInstance().x2e([name, key_1]));
|
|
1758
1758
|
addAll(destination_3, list_3);
|
|
1759
1759
|
}
|
|
1760
1760
|
|
|
@@ -1769,7 +1769,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1769
1769
|
tmp_11 = emptyList();
|
|
1770
1770
|
} else {
|
|
1771
1771
|
if (it_0 instanceof SchemaObject) {
|
|
1772
|
-
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().
|
|
1772
|
+
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().x2e([name, 'Array']));
|
|
1773
1773
|
} else {
|
|
1774
1774
|
if (it_0 == null) {
|
|
1775
1775
|
tmp_11 = emptyList();
|
|
@@ -1827,7 +1827,7 @@ function toReference(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
1827
1827
|
}
|
|
1828
1828
|
tmp = tmp_0;
|
|
1829
1829
|
} else if (!(schema.s1n_1 == null)) {
|
|
1830
|
-
tmp = new Custom(sanitize(Common_getInstance().
|
|
1830
|
+
tmp = new Custom(sanitize(Common_getInstance().x2e([getReference(reference, OpenAPIV2Parser_instance)])), isNullable);
|
|
1831
1831
|
} else if (isPrimitive(schema.t1n_1)) {
|
|
1832
1832
|
tmp = new Primitive(toPrimitive(schema, OpenAPIV2Parser_instance), isNullable);
|
|
1833
1833
|
} else {
|
|
@@ -1840,7 +1840,7 @@ function toReference(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
1840
1840
|
tmp_2 = toIterable(toReference(_this__u8e3s4, OpenAPIV2Parser_instance, items, false), isNullable);
|
|
1841
1841
|
} else {
|
|
1842
1842
|
if (items instanceof SchemaObject) {
|
|
1843
|
-
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, items, Common_getInstance().
|
|
1843
|
+
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, items, Common_getInstance().x2e([getReference(reference, OpenAPIV2Parser_instance), 'Array']), isNullable), isNullable);
|
|
1844
1844
|
} else {
|
|
1845
1845
|
if (items == null) {
|
|
1846
1846
|
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.c1o_1);
|
|
@@ -1854,10 +1854,10 @@ function toReference(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
1854
1854
|
} else {
|
|
1855
1855
|
var tmp_3;
|
|
1856
1856
|
if (refOrSchema instanceof SchemaObject) {
|
|
1857
|
-
tmp_3 = new Custom(sanitize(Common_getInstance().
|
|
1857
|
+
tmp_3 = new Custom(sanitize(Common_getInstance().x2e([getReference(reference, OpenAPIV2Parser_instance)])), isNullable);
|
|
1858
1858
|
} else {
|
|
1859
1859
|
if (refOrSchema instanceof ReferenceObject) {
|
|
1860
|
-
tmp_3 = new Custom(sanitize(Common_getInstance().
|
|
1860
|
+
tmp_3 = new Custom(sanitize(Common_getInstance().x2e([getReference(refOrSchema, OpenAPIV2Parser_instance)])), isNullable);
|
|
1861
1861
|
} else {
|
|
1862
1862
|
noWhenBranchMatchedException();
|
|
1863
1863
|
}
|
|
@@ -2027,7 +2027,7 @@ function toOperationList(_this__u8e3s4, $this) {
|
|
|
2027
2027
|
var tmp$ret$0 = tmp_0;
|
|
2028
2028
|
result.n2(element, tmp$ret$0);
|
|
2029
2029
|
}
|
|
2030
|
-
return tmp.
|
|
2030
|
+
return tmp.y2e(result);
|
|
2031
2031
|
}
|
|
2032
2032
|
function getReference(_this__u8e3s4, $this) {
|
|
2033
2033
|
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.c1o_1), ['/']).k(2);
|
|
@@ -2113,7 +2113,7 @@ function toField_0(_this__u8e3s4, $this, schema, name) {
|
|
|
2113
2113
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
2114
2114
|
var tmp;
|
|
2115
2115
|
if (value instanceof SchemaObject) {
|
|
2116
|
-
tmp = new Field(new FieldIdentifier(key), !(value.s1n_1 == null) ? toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().
|
|
2116
|
+
tmp = new Field(new FieldIdentifier(key), !(value.s1n_1 == null) ? toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().x2e([name, key]), isNullable) : equals(value.t1n_1, Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().x2e([name, key, 'Array']), isNullable) : toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().x2e([name, key]), isNullable));
|
|
2117
2117
|
} else {
|
|
2118
2118
|
if (value instanceof ReferenceObject) {
|
|
2119
2119
|
tmp = new Field(new FieldIdentifier(key), toReference(_this__u8e3s4, OpenAPIV2Parser_instance, value, isNullable));
|
|
@@ -2136,7 +2136,7 @@ function toField_1(_this__u8e3s4, $this, parameter, name) {
|
|
|
2136
2136
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
2137
2137
|
var tmp;
|
|
2138
2138
|
if (!(parameter.q1j_1 == null)) {
|
|
2139
|
-
tmp = new Custom(sanitize(Common_getInstance().
|
|
2139
|
+
tmp = new Custom(sanitize(Common_getInstance().x2e([name, 'Parameter', schema.v1i_1])), isNullable);
|
|
2140
2140
|
} else {
|
|
2141
2141
|
var tmp1_subject = schema.a1j_1;
|
|
2142
2142
|
var tmp_0;
|
|
@@ -2293,7 +2293,7 @@ function toName(_this__u8e3s4, $this) {
|
|
|
2293
2293
|
// Inline function 'kotlin.let' call
|
|
2294
2294
|
// Inline function 'kotlin.contracts.contract' call
|
|
2295
2295
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.toName.<anonymous>' call
|
|
2296
|
-
tmp = Common_getInstance().
|
|
2296
|
+
tmp = Common_getInstance().x2e([tmp0_safe_receiver]);
|
|
2297
2297
|
}
|
|
2298
2298
|
return tmp;
|
|
2299
2299
|
}
|
|
@@ -2315,21 +2315,21 @@ function toName_0(_this__u8e3s4, $this) {
|
|
|
2315
2315
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenAPIV2Parser$toName$lambda);
|
|
2316
2316
|
}
|
|
2317
2317
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
2318
|
-
this.
|
|
2319
|
-
this.
|
|
2320
|
-
this.
|
|
2321
|
-
this.
|
|
2322
|
-
this.
|
|
2318
|
+
this.d2f_1 = path;
|
|
2319
|
+
this.e2f_1 = pathItem;
|
|
2320
|
+
this.f2f_1 = method;
|
|
2321
|
+
this.g2f_1 = operation;
|
|
2322
|
+
this.h2f_1 = type;
|
|
2323
2323
|
}
|
|
2324
2324
|
protoOf(FlattenRequest).toString = function () {
|
|
2325
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
2325
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.d2f_1) + ', pathItem=' + this.e2f_1.toString() + ', method=' + this.f2f_1.toString() + ', operation=' + this.g2f_1.toString() + ', type=' + this.h2f_1 + ')';
|
|
2326
2326
|
};
|
|
2327
2327
|
protoOf(FlattenRequest).hashCode = function () {
|
|
2328
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2328
|
+
var result = Path__hashCode_impl_go73kd(this.d2f_1);
|
|
2329
|
+
result = imul(result, 31) + this.e2f_1.hashCode() | 0;
|
|
2329
2330
|
result = imul(result, 31) + this.f2f_1.hashCode() | 0;
|
|
2330
2331
|
result = imul(result, 31) + this.g2f_1.hashCode() | 0;
|
|
2331
|
-
result = imul(result, 31) + this.h2f_1
|
|
2332
|
-
result = imul(result, 31) + getStringHashCode(this.i2f_1) | 0;
|
|
2332
|
+
result = imul(result, 31) + getStringHashCode(this.h2f_1) | 0;
|
|
2333
2333
|
return result;
|
|
2334
2334
|
};
|
|
2335
2335
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -2338,15 +2338,15 @@ protoOf(FlattenRequest).equals = function (other) {
|
|
|
2338
2338
|
if (!(other instanceof FlattenRequest))
|
|
2339
2339
|
return false;
|
|
2340
2340
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
2341
|
-
if (!(this.
|
|
2341
|
+
if (!(this.d2f_1 === tmp0_other_with_cast.d2f_1))
|
|
2342
|
+
return false;
|
|
2343
|
+
if (!this.e2f_1.equals(tmp0_other_with_cast.e2f_1))
|
|
2342
2344
|
return false;
|
|
2343
2345
|
if (!this.f2f_1.equals(tmp0_other_with_cast.f2f_1))
|
|
2344
2346
|
return false;
|
|
2345
2347
|
if (!this.g2f_1.equals(tmp0_other_with_cast.g2f_1))
|
|
2346
2348
|
return false;
|
|
2347
|
-
if (!this.h2f_1
|
|
2348
|
-
return false;
|
|
2349
|
-
if (!(this.i2f_1 === tmp0_other_with_cast.i2f_1))
|
|
2349
|
+
if (!(this.h2f_1 === tmp0_other_with_cast.h2f_1))
|
|
2350
2350
|
return false;
|
|
2351
2351
|
return true;
|
|
2352
2352
|
};
|
|
@@ -2408,25 +2408,25 @@ function flatMapRequests(_this__u8e3s4, $this, f) {
|
|
|
2408
2408
|
return destination_2;
|
|
2409
2409
|
}
|
|
2410
2410
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
2411
|
-
this.
|
|
2412
|
-
this.
|
|
2413
|
-
this.
|
|
2414
|
-
this.
|
|
2415
|
-
this.
|
|
2416
|
-
this.
|
|
2417
|
-
this.
|
|
2411
|
+
this.i2f_1 = path;
|
|
2412
|
+
this.j2f_1 = pathItem;
|
|
2413
|
+
this.k2f_1 = method;
|
|
2414
|
+
this.l2f_1 = operation;
|
|
2415
|
+
this.m2f_1 = statusCode;
|
|
2416
|
+
this.n2f_1 = response;
|
|
2417
|
+
this.o2f_1 = type;
|
|
2418
2418
|
}
|
|
2419
2419
|
protoOf(FlattenResponse).toString = function () {
|
|
2420
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
2420
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.i2f_1) + ', pathItem=' + this.j2f_1.toString() + ', method=' + this.k2f_1.toString() + ', operation=' + this.l2f_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy(this.m2f_1) + ', response=' + toString(this.n2f_1) + ', type=' + this.o2f_1 + ')';
|
|
2421
2421
|
};
|
|
2422
2422
|
protoOf(FlattenResponse).hashCode = function () {
|
|
2423
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2423
|
+
var result = Path__hashCode_impl_go73kd(this.i2f_1);
|
|
2424
|
+
result = imul(result, 31) + this.j2f_1.hashCode() | 0;
|
|
2424
2425
|
result = imul(result, 31) + this.k2f_1.hashCode() | 0;
|
|
2425
2426
|
result = imul(result, 31) + this.l2f_1.hashCode() | 0;
|
|
2426
|
-
result = imul(result, 31) + this.m2f_1
|
|
2427
|
-
result = imul(result, 31) +
|
|
2428
|
-
result = imul(result, 31) +
|
|
2429
|
-
result = imul(result, 31) + getStringHashCode(this.p2f_1) | 0;
|
|
2427
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.m2f_1) | 0;
|
|
2428
|
+
result = imul(result, 31) + hashCode(this.n2f_1) | 0;
|
|
2429
|
+
result = imul(result, 31) + getStringHashCode(this.o2f_1) | 0;
|
|
2430
2430
|
return result;
|
|
2431
2431
|
};
|
|
2432
2432
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -2435,19 +2435,19 @@ protoOf(FlattenResponse).equals = function (other) {
|
|
|
2435
2435
|
if (!(other instanceof FlattenResponse))
|
|
2436
2436
|
return false;
|
|
2437
2437
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
2438
|
-
if (!(this.
|
|
2438
|
+
if (!(this.i2f_1 === tmp0_other_with_cast.i2f_1))
|
|
2439
|
+
return false;
|
|
2440
|
+
if (!this.j2f_1.equals(tmp0_other_with_cast.j2f_1))
|
|
2439
2441
|
return false;
|
|
2440
2442
|
if (!this.k2f_1.equals(tmp0_other_with_cast.k2f_1))
|
|
2441
2443
|
return false;
|
|
2442
2444
|
if (!this.l2f_1.equals(tmp0_other_with_cast.l2f_1))
|
|
2443
2445
|
return false;
|
|
2444
|
-
if (!this.m2f_1
|
|
2446
|
+
if (!(this.m2f_1 === tmp0_other_with_cast.m2f_1))
|
|
2445
2447
|
return false;
|
|
2446
|
-
if (!(this.n2f_1
|
|
2448
|
+
if (!equals(this.n2f_1, tmp0_other_with_cast.n2f_1))
|
|
2447
2449
|
return false;
|
|
2448
|
-
if (!
|
|
2449
|
-
return false;
|
|
2450
|
-
if (!(this.p2f_1 === tmp0_other_with_cast.p2f_1))
|
|
2450
|
+
if (!(this.o2f_1 === tmp0_other_with_cast.o2f_1))
|
|
2451
2451
|
return false;
|
|
2452
2452
|
return true;
|
|
2453
2453
|
};
|
|
@@ -2535,9 +2535,9 @@ function OpenAPIV2Parser$parse$lambda($strict) {
|
|
|
2535
2535
|
}
|
|
2536
2536
|
function OpenAPIV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
2537
2537
|
return function ($this$flatMapRequests) {
|
|
2538
|
-
var parameters = plus(resolveParameters_0($this_parseParameters, OpenAPIV2Parser_instance, $this$flatMapRequests.
|
|
2539
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2540
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2538
|
+
var parameters = plus(resolveParameters_0($this_parseParameters, OpenAPIV2Parser_instance, $this$flatMapRequests.e2f_1), resolveParameters($this_parseParameters, OpenAPIV2Parser_instance, $this$flatMapRequests.g2f_1));
|
|
2539
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.g2f_1, OpenAPIV2Parser_instance);
|
|
2540
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.d2f_1, OpenAPIV2Parser_instance) + $this$flatMapRequests.f2f_1.q2_1 : tmp0_elvis_lhs;
|
|
2541
2541
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2542
2542
|
// Inline function 'kotlin.collections.filter' call
|
|
2543
2543
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -2564,7 +2564,7 @@ function OpenAPIV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
2564
2564
|
// Inline function 'kotlin.let' call
|
|
2565
2565
|
// Inline function 'kotlin.contracts.contract' call
|
|
2566
2566
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
2567
|
-
tmp = flatten_0($this_parseParameters, OpenAPIV2Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
2567
|
+
tmp = flatten_0($this_parseParameters, OpenAPIV2Parser_instance, tmp0_safe_receiver, Common_getInstance().x2e([name, 'Parameter', element_0.v1i_1]));
|
|
2568
2568
|
}
|
|
2569
2569
|
var tmp1_elvis_lhs = tmp;
|
|
2570
2570
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -2575,9 +2575,9 @@ function OpenAPIV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
2575
2575
|
}
|
|
2576
2576
|
function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
2577
2577
|
return function ($this$flatMapRequests) {
|
|
2578
|
-
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenAPIV2Parser_instance, $this$flatMapRequests.
|
|
2579
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2580
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2578
|
+
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenAPIV2Parser_instance, $this$flatMapRequests.e2f_1), resolveParameters($this_parseRequestBody, OpenAPIV2Parser_instance, $this$flatMapRequests.g2f_1));
|
|
2579
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.g2f_1, OpenAPIV2Parser_instance);
|
|
2580
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.d2f_1, OpenAPIV2Parser_instance) + $this$flatMapRequests.f2f_1.q2_1 : tmp0_elvis_lhs;
|
|
2581
2581
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2582
2582
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2583
2583
|
var destination = ArrayList_init_$Create$();
|
|
@@ -2587,7 +2587,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2587
2587
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
2588
2588
|
var tmp;
|
|
2589
2589
|
if (!(element.q1j_1 == null)) {
|
|
2590
|
-
var tmp_0 = new DefinitionIdentifier(sanitize(Common_getInstance().
|
|
2590
|
+
var tmp_0 = new DefinitionIdentifier(sanitize(Common_getInstance().x2e([name, 'Parameter', element.v1i_1])));
|
|
2591
2591
|
// Inline function 'kotlin.collections.map' call
|
|
2592
2592
|
var this_0 = ensureNotNull(element.q1j_1);
|
|
2593
2593
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2607,7 +2607,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2607
2607
|
addAll(destination, list);
|
|
2608
2608
|
}
|
|
2609
2609
|
var enums = destination;
|
|
2610
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
2610
|
+
var tmp1_safe_receiver = $this$flatMapRequests.g2f_1.w1l_1;
|
|
2611
2611
|
var tmp_1;
|
|
2612
2612
|
if (tmp1_safe_receiver == null) {
|
|
2613
2613
|
tmp_1 = null;
|
|
@@ -2662,7 +2662,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2662
2662
|
switch (tmp0_subject == null ? -1 : tmp0_subject.r2_1) {
|
|
2663
2663
|
case -1:
|
|
2664
2664
|
case 5:
|
|
2665
|
-
tmp_5 = flatten($this_parseRequestBody, OpenAPIV2Parser_instance, schema, Common_getInstance().
|
|
2665
|
+
tmp_5 = flatten($this_parseRequestBody, OpenAPIV2Parser_instance, schema, Common_getInstance().x2e([name, 'RequestBody']));
|
|
2666
2666
|
break;
|
|
2667
2667
|
case 4:
|
|
2668
2668
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2675,7 +2675,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2675
2675
|
// Inline function 'kotlin.let' call
|
|
2676
2676
|
// Inline function 'kotlin.contracts.contract' call
|
|
2677
2677
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
2678
|
-
tmp_6 = flatten_0($this_parseRequestBody, OpenAPIV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
2678
|
+
tmp_6 = flatten_0($this_parseRequestBody, OpenAPIV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().x2e([name, 'RequestBody']));
|
|
2679
2679
|
}
|
|
2680
2680
|
|
|
2681
2681
|
var tmp0_elvis_lhs_0 = tmp_6;
|
|
@@ -2701,9 +2701,9 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2701
2701
|
}
|
|
2702
2702
|
function OpenAPIV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
2703
2703
|
return function ($this$flatMapResponses) {
|
|
2704
|
-
var schema = resolve_1($this_parseResponseBody, OpenAPIV2Parser_instance, $this$flatMapResponses.
|
|
2705
|
-
var tmp0_elvis_lhs = toName($this$flatMapResponses.
|
|
2706
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
2704
|
+
var schema = resolve_1($this_parseResponseBody, OpenAPIV2Parser_instance, $this$flatMapResponses.n2f_1).a1k_1;
|
|
2705
|
+
var tmp0_elvis_lhs = toName($this$flatMapResponses.l2f_1, OpenAPIV2Parser_instance);
|
|
2706
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.i2f_1, OpenAPIV2Parser_instance) + $this$flatMapResponses.k2f_1.q2_1 : tmp0_elvis_lhs;
|
|
2707
2707
|
var tmp;
|
|
2708
2708
|
if (schema instanceof SchemaObject) {
|
|
2709
2709
|
var tmp2_subject = schema.t1n_1;
|
|
@@ -2711,7 +2711,7 @@ function OpenAPIV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
2711
2711
|
switch (tmp2_subject == null ? -1 : tmp2_subject.r2_1) {
|
|
2712
2712
|
case -1:
|
|
2713
2713
|
case 5:
|
|
2714
|
-
tmp_0 = flatten($this_parseResponseBody, OpenAPIV2Parser_instance, schema, Common_getInstance().
|
|
2714
|
+
tmp_0 = flatten($this_parseResponseBody, OpenAPIV2Parser_instance, schema, Common_getInstance().x2e([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.m2f_1), 'ResponseBody']));
|
|
2715
2715
|
break;
|
|
2716
2716
|
case 4:
|
|
2717
2717
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2724,7 +2724,7 @@ function OpenAPIV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
2724
2724
|
// Inline function 'kotlin.let' call
|
|
2725
2725
|
// Inline function 'kotlin.contracts.contract' call
|
|
2726
2726
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
2727
|
-
tmp_1 = flatten_0($this_parseResponseBody, OpenAPIV2Parser_instance, tmp3_safe_receiver, Common_getInstance().
|
|
2727
|
+
tmp_1 = flatten_0($this_parseResponseBody, OpenAPIV2Parser_instance, tmp3_safe_receiver, Common_getInstance().x2e([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.m2f_1), 'ResponseBody']));
|
|
2728
2728
|
}
|
|
2729
2729
|
|
|
2730
2730
|
var tmp0_elvis_lhs_0 = tmp_1;
|
|
@@ -2752,10 +2752,10 @@ function OpenAPIV2Parser$toName$lambda(it) {
|
|
|
2752
2752
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2753
2753
|
|
|
2754
2754
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
2755
|
-
tmp = tmp_0.
|
|
2755
|
+
tmp = tmp_0.x2e([tmp$ret$1]);
|
|
2756
2756
|
break;
|
|
2757
2757
|
case false:
|
|
2758
|
-
tmp = Common_getInstance().
|
|
2758
|
+
tmp = Common_getInstance().x2e([it]);
|
|
2759
2759
|
break;
|
|
2760
2760
|
default:
|
|
2761
2761
|
noWhenBranchMatchedException();
|
|
@@ -2765,8 +2765,8 @@ function OpenAPIV2Parser$toName$lambda(it) {
|
|
|
2765
2765
|
}
|
|
2766
2766
|
function OpenAPIV2Parser() {
|
|
2767
2767
|
}
|
|
2768
|
-
protoOf(OpenAPIV2Parser).
|
|
2769
|
-
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.
|
|
2768
|
+
protoOf(OpenAPIV2Parser).v2e = function (moduleContent, strict) {
|
|
2769
|
+
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.p2f((new OpenAPI(Json(VOID, OpenAPIV2Parser$parse$lambda(strict)))).r1g(moduleContent.o22_1)));
|
|
2770
2770
|
var tmp;
|
|
2771
2771
|
if (tmp0_elvis_lhs == null) {
|
|
2772
2772
|
var message = 'Cannot yield non empty AST for OpenAPI v2';
|
|
@@ -2776,7 +2776,7 @@ protoOf(OpenAPIV2Parser).w2e = function (moduleContent, strict) {
|
|
|
2776
2776
|
}
|
|
2777
2777
|
return new AST(nonEmptyListOf(new Module(moduleContent.n22_1, tmp), []));
|
|
2778
2778
|
};
|
|
2779
|
-
protoOf(OpenAPIV2Parser).
|
|
2779
|
+
protoOf(OpenAPIV2Parser).p2f = function (_this__u8e3s4) {
|
|
2780
2780
|
// Inline function 'kotlin.collections.reduce' call
|
|
2781
2781
|
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();
|
|
2782
2782
|
if (!iterator.h())
|
|
@@ -3670,20 +3670,20 @@ function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
|
3670
3670
|
function OpenAPIV3Emitter() {
|
|
3671
3671
|
OpenAPIV3Emitter_instance = this;
|
|
3672
3672
|
Emitter.call(this);
|
|
3673
|
-
this.
|
|
3674
|
-
this.
|
|
3675
|
-
this.
|
|
3673
|
+
this.q2f_1 = FileExtension_JSON_getInstance();
|
|
3674
|
+
this.r2f_1 = null;
|
|
3675
|
+
this.s2f_1 = '';
|
|
3676
3676
|
}
|
|
3677
3677
|
protoOf(OpenAPIV3Emitter).k24 = function () {
|
|
3678
|
-
return this.
|
|
3678
|
+
return this.q2f_1;
|
|
3679
3679
|
};
|
|
3680
3680
|
protoOf(OpenAPIV3Emitter).b26 = function () {
|
|
3681
|
-
return this.
|
|
3681
|
+
return this.s2f_1;
|
|
3682
3682
|
};
|
|
3683
3683
|
protoOf(OpenAPIV3Emitter).g24 = function (module_0, logger) {
|
|
3684
3684
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
3685
|
-
var this_0 = Common_getInstance().
|
|
3686
|
-
var value = this.
|
|
3685
|
+
var this_0 = Common_getInstance().w2e_1;
|
|
3686
|
+
var value = this.t2f(module_0, null);
|
|
3687
3687
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3688
3688
|
var this_1 = this_0.xo();
|
|
3689
3689
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -3713,10 +3713,10 @@ protoOf(OpenAPIV3Emitter).s24 = function (identifier) {
|
|
|
3713
3713
|
protoOf(OpenAPIV3Emitter).t24 = function (channel) {
|
|
3714
3714
|
return this.c26();
|
|
3715
3715
|
};
|
|
3716
|
-
protoOf(OpenAPIV3Emitter).
|
|
3717
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
3716
|
+
protoOf(OpenAPIV3Emitter).t2f = function (module_0, options) {
|
|
3717
|
+
var tmp1_elvis_lhs = options == null ? null : options.u2f_1;
|
|
3718
3718
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
3719
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
3719
|
+
var tmp3_elvis_lhs = options == null ? null : options.v2f_1;
|
|
3720
3720
|
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));
|
|
3721
3721
|
};
|
|
3722
3722
|
var OpenAPIV3Emitter_instance;
|
|
@@ -3774,7 +3774,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3774
3774
|
while (tmp0_iterator_2.h()) {
|
|
3775
3775
|
var item_0 = tmp0_iterator_2.i();
|
|
3776
3776
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3777
|
-
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_0, Common_getInstance().
|
|
3777
|
+
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_0, Common_getInstance().x2e([name, 'Parameter', item_0.i1w_1]));
|
|
3778
3778
|
destination_2.e(tmp$ret$9);
|
|
3779
3779
|
}
|
|
3780
3780
|
var query = destination_2;
|
|
@@ -3796,7 +3796,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3796
3796
|
while (tmp0_iterator_4.h()) {
|
|
3797
3797
|
var item_1 = tmp0_iterator_4.i();
|
|
3798
3798
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3799
|
-
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_1, Common_getInstance().
|
|
3799
|
+
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_1, Common_getInstance().x2e([name, 'Parameter', item_1.i1w_1]));
|
|
3800
3800
|
destination_4.e(tmp$ret$15);
|
|
3801
3801
|
}
|
|
3802
3802
|
var headers = destination_4;
|
|
@@ -3842,7 +3842,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3842
3842
|
tmp_2 = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema, isNullable);
|
|
3843
3843
|
} else {
|
|
3844
3844
|
if (schema instanceof SchemaObject_0) {
|
|
3845
|
-
tmp_2 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema, isNullable, Common_getInstance().
|
|
3845
|
+
tmp_2 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema, isNullable, Common_getInstance().x2e([name, 'RequestBody']));
|
|
3846
3846
|
} else {
|
|
3847
3847
|
if (schema == null) {
|
|
3848
3848
|
tmp_2 = null;
|
|
@@ -3935,7 +3935,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3935
3935
|
while (tmp0_iterator_8.h()) {
|
|
3936
3936
|
var item_4 = tmp0_iterator_8.i();
|
|
3937
3937
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3938
|
-
var tmp$ret$40 = toField_4(_this__u8e3s4, OpenAPIV3Parser_instance, resolve_5(_this__u8e3s4, OpenAPIV3Parser_instance, item_4.b1()), item_4.a1(), Common_getInstance().
|
|
3938
|
+
var tmp$ret$40 = toField_4(_this__u8e3s4, OpenAPIV3Parser_instance, resolve_5(_this__u8e3s4, OpenAPIV3Parser_instance, item_4.b1()), item_4.a1(), Common_getInstance().x2e([name, 'ResponseHeader']));
|
|
3939
3939
|
destination_8.e(tmp$ret$40);
|
|
3940
3940
|
}
|
|
3941
3941
|
tmp_7 = destination_8;
|
|
@@ -3949,7 +3949,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3949
3949
|
tmp_10 = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema_0, isNullable_0);
|
|
3950
3950
|
} else {
|
|
3951
3951
|
if (schema_0 instanceof SchemaObject_0) {
|
|
3952
|
-
tmp_10 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema_0, isNullable_0, Common_getInstance().
|
|
3952
|
+
tmp_10 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema_0, isNullable_0, Common_getInstance().x2e([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
3953
3953
|
} else {
|
|
3954
3954
|
if (schema_0 == null) {
|
|
3955
3955
|
tmp_10 = new Any(isNullable_0);
|
|
@@ -4004,7 +4004,7 @@ function flatMapResponse(_this__u8e3s4, $this, response, name, statusCode) {
|
|
|
4004
4004
|
switch (tmp0_subject == null ? -1 : tmp0_subject.r2_1) {
|
|
4005
4005
|
case -1:
|
|
4006
4006
|
case 5:
|
|
4007
|
-
tmp_0 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema, Common_getInstance().
|
|
4007
|
+
tmp_0 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema, Common_getInstance().x2e([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
4008
4008
|
break;
|
|
4009
4009
|
case 4:
|
|
4010
4010
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -4017,7 +4017,7 @@ function flatMapResponse(_this__u8e3s4, $this, response, name, statusCode) {
|
|
|
4017
4017
|
// Inline function 'kotlin.let' call
|
|
4018
4018
|
// Inline function 'kotlin.contracts.contract' call
|
|
4019
4019
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.flatMapResponse.<anonymous>.<anonymous>' call
|
|
4020
|
-
tmp_1 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
4020
|
+
tmp_1 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp1_safe_receiver, Common_getInstance().x2e([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
4021
4021
|
}
|
|
4022
4022
|
|
|
4023
4023
|
var tmp0_elvis_lhs_0 = tmp_1;
|
|
@@ -4071,7 +4071,7 @@ function parseComponents(_this__u8e3s4, $this) {
|
|
|
4071
4071
|
while (tmp0_iterator_0.h()) {
|
|
4072
4072
|
var element_0 = tmp0_iterator_0.i();
|
|
4073
4073
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseComponents.<anonymous>' call
|
|
4074
|
-
var list = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, element_0.b1(), Common_getInstance().
|
|
4074
|
+
var list = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, element_0.b1(), Common_getInstance().x2e([element_0.a1()]));
|
|
4075
4075
|
addAll(destination_0, list);
|
|
4076
4076
|
}
|
|
4077
4077
|
return destination_0;
|
|
@@ -4088,7 +4088,7 @@ function toName_1(_this__u8e3s4, $this) {
|
|
|
4088
4088
|
// Inline function 'kotlin.let' call
|
|
4089
4089
|
// Inline function 'kotlin.contracts.contract' call
|
|
4090
4090
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.toName.<anonymous>' call
|
|
4091
|
-
tmp = Common_getInstance().
|
|
4091
|
+
tmp = Common_getInstance().x2e([tmp0_safe_receiver]);
|
|
4092
4092
|
}
|
|
4093
4093
|
return tmp;
|
|
4094
4094
|
}
|
|
@@ -4178,7 +4178,7 @@ function toSegments_0(_this__u8e3s4, $this, path, parameters, operation, method)
|
|
|
4178
4178
|
// Inline function 'kotlin.let' call
|
|
4179
4179
|
// Inline function 'kotlin.contracts.contract' call
|
|
4180
4180
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.toSegments.<anonymous>.<anonymous>' call
|
|
4181
|
-
tmp_1 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp4_safe_receiver, false, Common_getInstance().
|
|
4181
|
+
tmp_1 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp4_safe_receiver, false, Common_getInstance().x2e([name, 'Parameter', param]));
|
|
4182
4182
|
}
|
|
4183
4183
|
|
|
4184
4184
|
var tmp5_safe_receiver = tmp_1;
|
|
@@ -4588,7 +4588,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4588
4588
|
tmp_6 = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, item, false);
|
|
4589
4589
|
} else {
|
|
4590
4590
|
if (item instanceof SchemaObject_0) {
|
|
4591
|
-
tmp_6 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, item, false, Common_getInstance().
|
|
4591
|
+
tmp_6 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, item, false, Common_getInstance().x2e([name, index_0.toString()]));
|
|
4592
4592
|
} else {
|
|
4593
4593
|
noWhenBranchMatchedException();
|
|
4594
4594
|
}
|
|
@@ -4616,7 +4616,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4616
4616
|
tmp_8 = emptyList();
|
|
4617
4617
|
} else {
|
|
4618
4618
|
if (element instanceof SchemaObject_0) {
|
|
4619
|
-
tmp_8 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, element, Common_getInstance().
|
|
4619
|
+
tmp_8 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, element, Common_getInstance().x2e([name, index_2.toString()]));
|
|
4620
4620
|
} else {
|
|
4621
4621
|
noWhenBranchMatchedException();
|
|
4622
4622
|
}
|
|
@@ -4688,7 +4688,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4688
4688
|
var key_0 = element_2.a1();
|
|
4689
4689
|
// Inline function 'kotlin.collections.component2' call
|
|
4690
4690
|
var value = element_2.b1();
|
|
4691
|
-
var list_2 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, Common_getInstance().
|
|
4691
|
+
var list_2 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, Common_getInstance().x2e([name, key_0]));
|
|
4692
4692
|
addAll(destination_3, list_2);
|
|
4693
4693
|
}
|
|
4694
4694
|
var list_3 = destination_3;
|
|
@@ -4737,7 +4737,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4737
4737
|
var key_1 = element_3.a1();
|
|
4738
4738
|
// Inline function 'kotlin.collections.component2' call
|
|
4739
4739
|
var value_0 = element_3.b1();
|
|
4740
|
-
var list_4 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value_0, Common_getInstance().
|
|
4740
|
+
var list_4 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value_0, Common_getInstance().x2e([name, key_1]));
|
|
4741
4741
|
addAll(destination_5, list_4);
|
|
4742
4742
|
}
|
|
4743
4743
|
|
|
@@ -4759,7 +4759,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4759
4759
|
tmp_14 = emptyList();
|
|
4760
4760
|
} else {
|
|
4761
4761
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
4762
|
-
tmp_14 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, tmp6_safe_receiver, Common_getInstance().
|
|
4762
|
+
tmp_14 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, tmp6_safe_receiver, Common_getInstance().x2e([name, 'array']));
|
|
4763
4763
|
} else {
|
|
4764
4764
|
noWhenBranchMatchedException();
|
|
4765
4765
|
}
|
|
@@ -4821,7 +4821,7 @@ function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
4821
4821
|
}
|
|
4822
4822
|
tmp = tmp_0;
|
|
4823
4823
|
} else if (!(schema.b1y_1 == null)) {
|
|
4824
|
-
tmp = new Custom(sanitize_0(Common_getInstance().
|
|
4824
|
+
tmp = new Custom(sanitize_0(Common_getInstance().x2e([getReference_0(referencingObject, OpenAPIV3Parser_instance)])), isNullable);
|
|
4825
4825
|
} else if (isPrimitive_0(schema.b1x_1)) {
|
|
4826
4826
|
tmp = new Primitive(toPrimitive_0(schema, OpenAPIV3Parser_instance), isNullable);
|
|
4827
4827
|
} else if (equals(schema.b1x_1, Type_ARRAY_getInstance_0())) {
|
|
@@ -4833,7 +4833,7 @@ function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
4833
4833
|
tmp_3 = toIterable_0(toReference_1(_this__u8e3s4, tmp_4, items, tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs), isNullable);
|
|
4834
4834
|
} else {
|
|
4835
4835
|
if (items instanceof SchemaObject_0) {
|
|
4836
|
-
var tmp_5 = sanitize_0(Common_getInstance().
|
|
4836
|
+
var tmp_5 = sanitize_0(Common_getInstance().x2e([getReference_0(referencingObject, OpenAPIV3Parser_instance), 'Array']));
|
|
4837
4837
|
var tmp3_elvis_lhs = schema.s1w_1;
|
|
4838
4838
|
tmp_3 = toIterable_0(new Custom(tmp_5, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs), isNullable);
|
|
4839
4839
|
} else {
|
|
@@ -4847,7 +4847,7 @@ function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
4847
4847
|
}
|
|
4848
4848
|
tmp = tmp_3;
|
|
4849
4849
|
} else {
|
|
4850
|
-
tmp = new Custom(sanitize_0(Common_getInstance().
|
|
4850
|
+
tmp = new Custom(sanitize_0(Common_getInstance().x2e([getReference_0(referencingObject, OpenAPIV3Parser_instance)])), isNullable);
|
|
4851
4851
|
}
|
|
4852
4852
|
return tmp;
|
|
4853
4853
|
}
|
|
@@ -5037,7 +5037,7 @@ function toOperationList_0(_this__u8e3s4, $this) {
|
|
|
5037
5037
|
var tmp$ret$0 = tmp_0;
|
|
5038
5038
|
result.n2(element, tmp$ret$0);
|
|
5039
5039
|
}
|
|
5040
|
-
return tmp.
|
|
5040
|
+
return tmp.y2e(result);
|
|
5041
5041
|
}
|
|
5042
5042
|
function getReference_0(_this__u8e3s4, $this) {
|
|
5043
5043
|
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.o1w_1), ['/']), 3);
|
|
@@ -5093,7 +5093,7 @@ function toField_2(_this__u8e3s4, $this, schema, name) {
|
|
|
5093
5093
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
5094
5094
|
var tmp;
|
|
5095
5095
|
if (value instanceof SchemaObject_0) {
|
|
5096
|
-
tmp = new Field(new FieldIdentifier(key), !(value.b1y_1 == null) ? toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().
|
|
5096
|
+
tmp = new Field(new FieldIdentifier(key), !(value.b1y_1 == null) ? toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().x2e([name, key])) : equals(value.b1x_1, Type_ARRAY_getInstance_0()) ? toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().x2e([name, key, 'Array'])) : toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().x2e([name, key])));
|
|
5097
5097
|
} else {
|
|
5098
5098
|
if (value instanceof ReferenceObject_0) {
|
|
5099
5099
|
tmp = new Field(new FieldIdentifier(key), toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable));
|
|
@@ -5155,19 +5155,19 @@ function toField_4(_this__u8e3s4, $this, header, identifier, name) {
|
|
|
5155
5155
|
return new Field(new FieldIdentifier(identifier), it);
|
|
5156
5156
|
}
|
|
5157
5157
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
5158
|
-
this.
|
|
5159
|
-
this.
|
|
5160
|
-
this.
|
|
5161
|
-
this.
|
|
5158
|
+
this.w2f_1 = path;
|
|
5159
|
+
this.x2f_1 = pathItem;
|
|
5160
|
+
this.y2f_1 = method;
|
|
5161
|
+
this.z2f_1 = operation;
|
|
5162
5162
|
}
|
|
5163
5163
|
protoOf(FlattenRequest_0).toString = function () {
|
|
5164
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
5164
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.w2f_1) + ', pathItem=' + this.x2f_1.toString() + ', method=' + this.y2f_1.toString() + ', operation=' + this.z2f_1.toString() + ')';
|
|
5165
5165
|
};
|
|
5166
5166
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
5167
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
5167
|
+
var result = Path__hashCode_impl_go73kd_0(this.w2f_1);
|
|
5168
|
+
result = imul(result, 31) + this.x2f_1.hashCode() | 0;
|
|
5168
5169
|
result = imul(result, 31) + this.y2f_1.hashCode() | 0;
|
|
5169
5170
|
result = imul(result, 31) + this.z2f_1.hashCode() | 0;
|
|
5170
|
-
result = imul(result, 31) + this.a2g_1.hashCode() | 0;
|
|
5171
5171
|
return result;
|
|
5172
5172
|
};
|
|
5173
5173
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -5176,14 +5176,14 @@ protoOf(FlattenRequest_0).equals = function (other) {
|
|
|
5176
5176
|
if (!(other instanceof FlattenRequest_0))
|
|
5177
5177
|
return false;
|
|
5178
5178
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
5179
|
-
if (!(this.
|
|
5179
|
+
if (!(this.w2f_1 === tmp0_other_with_cast.w2f_1))
|
|
5180
|
+
return false;
|
|
5181
|
+
if (!this.x2f_1.equals(tmp0_other_with_cast.x2f_1))
|
|
5180
5182
|
return false;
|
|
5181
5183
|
if (!this.y2f_1.equals(tmp0_other_with_cast.y2f_1))
|
|
5182
5184
|
return false;
|
|
5183
5185
|
if (!this.z2f_1.equals(tmp0_other_with_cast.z2f_1))
|
|
5184
5186
|
return false;
|
|
5185
|
-
if (!this.a2g_1.equals(tmp0_other_with_cast.a2g_1))
|
|
5186
|
-
return false;
|
|
5187
5187
|
return true;
|
|
5188
5188
|
};
|
|
5189
5189
|
function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
@@ -5231,23 +5231,23 @@ function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
|
5231
5231
|
return destination_1;
|
|
5232
5232
|
}
|
|
5233
5233
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
5234
|
-
this.
|
|
5235
|
-
this.
|
|
5236
|
-
this.
|
|
5237
|
-
this.
|
|
5238
|
-
this.
|
|
5239
|
-
this.
|
|
5234
|
+
this.a2g_1 = path;
|
|
5235
|
+
this.b2g_1 = pathItem;
|
|
5236
|
+
this.c2g_1 = method;
|
|
5237
|
+
this.d2g_1 = operation;
|
|
5238
|
+
this.e2g_1 = statusCode;
|
|
5239
|
+
this.f2g_1 = response;
|
|
5240
5240
|
}
|
|
5241
5241
|
protoOf(FlattenResponse_0).toString = function () {
|
|
5242
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
5242
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.a2g_1) + ', pathItem=' + this.b2g_1.toString() + ', method=' + this.c2g_1.toString() + ', operation=' + this.d2g_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy_0(this.e2g_1) + ', response=' + toString(this.f2g_1) + ')';
|
|
5243
5243
|
};
|
|
5244
5244
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
5245
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
5245
|
+
var result = Path__hashCode_impl_go73kd_0(this.a2g_1);
|
|
5246
|
+
result = imul(result, 31) + this.b2g_1.hashCode() | 0;
|
|
5246
5247
|
result = imul(result, 31) + this.c2g_1.hashCode() | 0;
|
|
5247
5248
|
result = imul(result, 31) + this.d2g_1.hashCode() | 0;
|
|
5248
|
-
result = imul(result, 31) + this.e2g_1
|
|
5249
|
-
result = imul(result, 31) +
|
|
5250
|
-
result = imul(result, 31) + hashCode(this.g2g_1) | 0;
|
|
5249
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.e2g_1) | 0;
|
|
5250
|
+
result = imul(result, 31) + hashCode(this.f2g_1) | 0;
|
|
5251
5251
|
return result;
|
|
5252
5252
|
};
|
|
5253
5253
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -5256,17 +5256,17 @@ protoOf(FlattenResponse_0).equals = function (other) {
|
|
|
5256
5256
|
if (!(other instanceof FlattenResponse_0))
|
|
5257
5257
|
return false;
|
|
5258
5258
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
5259
|
-
if (!(this.
|
|
5259
|
+
if (!(this.a2g_1 === tmp0_other_with_cast.a2g_1))
|
|
5260
|
+
return false;
|
|
5261
|
+
if (!this.b2g_1.equals(tmp0_other_with_cast.b2g_1))
|
|
5260
5262
|
return false;
|
|
5261
5263
|
if (!this.c2g_1.equals(tmp0_other_with_cast.c2g_1))
|
|
5262
5264
|
return false;
|
|
5263
5265
|
if (!this.d2g_1.equals(tmp0_other_with_cast.d2g_1))
|
|
5264
5266
|
return false;
|
|
5265
|
-
if (!this.e2g_1
|
|
5266
|
-
return false;
|
|
5267
|
-
if (!(this.f2g_1 === tmp0_other_with_cast.f2g_1))
|
|
5267
|
+
if (!(this.e2g_1 === tmp0_other_with_cast.e2g_1))
|
|
5268
5268
|
return false;
|
|
5269
|
-
if (!equals(this.
|
|
5269
|
+
if (!equals(this.f2g_1, tmp0_other_with_cast.f2g_1))
|
|
5270
5270
|
return false;
|
|
5271
5271
|
return true;
|
|
5272
5272
|
};
|
|
@@ -5347,9 +5347,9 @@ function OpenAPIV3Parser$parse$lambda($strict) {
|
|
|
5347
5347
|
}
|
|
5348
5348
|
function OpenAPIV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
5349
5349
|
return function ($this$flatMapRequests) {
|
|
5350
|
-
var parameters = plus(resolveParameters_2($this_parseParameters, OpenAPIV3Parser_instance, $this$flatMapRequests.
|
|
5351
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5352
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5350
|
+
var parameters = plus(resolveParameters_2($this_parseParameters, OpenAPIV3Parser_instance, $this$flatMapRequests.x2f_1), resolveParameters_1($this_parseParameters, OpenAPIV3Parser_instance, $this$flatMapRequests.z2f_1));
|
|
5351
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.z2f_1, OpenAPIV3Parser_instance);
|
|
5352
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.w2f_1, OpenAPIV3Parser_instance) + $this$flatMapRequests.y2f_1.q2_1 : tmp0_elvis_lhs;
|
|
5353
5353
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5354
5354
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5355
5355
|
var destination = ArrayList_init_$Create$();
|
|
@@ -5365,7 +5365,7 @@ function OpenAPIV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
5365
5365
|
// Inline function 'kotlin.let' call
|
|
5366
5366
|
// Inline function 'kotlin.contracts.contract' call
|
|
5367
5367
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
5368
|
-
tmp = flatten_2($this_parseParameters, OpenAPIV3Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
5368
|
+
tmp = flatten_2($this_parseParameters, OpenAPIV3Parser_instance, tmp0_safe_receiver, Common_getInstance().x2e([name, 'Parameter', element.i1w_1]));
|
|
5369
5369
|
}
|
|
5370
5370
|
var tmp1_elvis_lhs = tmp;
|
|
5371
5371
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -5376,11 +5376,11 @@ function OpenAPIV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
5376
5376
|
}
|
|
5377
5377
|
function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
5378
5378
|
return function ($this$flatMapRequests) {
|
|
5379
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5380
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5379
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.z2f_1, OpenAPIV3Parser_instance);
|
|
5380
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.w2f_1, OpenAPIV3Parser_instance) + $this$flatMapRequests.y2f_1.q2_1 : tmp0_elvis_lhs;
|
|
5381
5381
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5382
5382
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5383
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
5383
|
+
var tmp1_safe_receiver = $this$flatMapRequests.z2f_1.j1u_1;
|
|
5384
5384
|
var tmp;
|
|
5385
5385
|
if (tmp1_safe_receiver == null) {
|
|
5386
5386
|
tmp = null;
|
|
@@ -5410,7 +5410,7 @@ function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
5410
5410
|
switch (tmp0_subject == null ? -1 : tmp0_subject.r2_1) {
|
|
5411
5411
|
case -1:
|
|
5412
5412
|
case 5:
|
|
5413
|
-
tmp_1 = flatten_1($this_parseRequestBody, OpenAPIV3Parser_instance, schema, Common_getInstance().
|
|
5413
|
+
tmp_1 = flatten_1($this_parseRequestBody, OpenAPIV3Parser_instance, schema, Common_getInstance().x2e([name, 'RequestBody']));
|
|
5414
5414
|
break;
|
|
5415
5415
|
case 4:
|
|
5416
5416
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -5423,7 +5423,7 @@ function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
5423
5423
|
// Inline function 'kotlin.let' call
|
|
5424
5424
|
// Inline function 'kotlin.contracts.contract' call
|
|
5425
5425
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
5426
|
-
tmp_2 = flatten_2($this_parseRequestBody, OpenAPIV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
5426
|
+
tmp_2 = flatten_2($this_parseRequestBody, OpenAPIV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().x2e([name, 'RequestBody']));
|
|
5427
5427
|
}
|
|
5428
5428
|
|
|
5429
5429
|
var tmp0_elvis_lhs_1 = tmp_2;
|
|
@@ -5455,15 +5455,15 @@ function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
5455
5455
|
}
|
|
5456
5456
|
function OpenAPIV3Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
5457
5457
|
return function ($this$flatMapResponses) {
|
|
5458
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.
|
|
5459
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.
|
|
5460
|
-
var response = $this$flatMapResponses.
|
|
5458
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.d2g_1, OpenAPIV3Parser_instance);
|
|
5459
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.a2g_1, OpenAPIV3Parser_instance) + $this$flatMapResponses.c2g_1.q2_1 : tmp0_elvis_lhs;
|
|
5460
|
+
var response = $this$flatMapResponses.f2g_1;
|
|
5461
5461
|
var tmp;
|
|
5462
5462
|
if (response instanceof ResponseObject_0) {
|
|
5463
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, response, name, $this$flatMapResponses.
|
|
5463
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, response, name, $this$flatMapResponses.e2g_1);
|
|
5464
5464
|
} else {
|
|
5465
5465
|
if (response instanceof ReferenceObject_0) {
|
|
5466
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenAPIV3Parser_instance, response).fe_1, name, $this$flatMapResponses.
|
|
5466
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenAPIV3Parser_instance, response).fe_1, name, $this$flatMapResponses.e2g_1);
|
|
5467
5467
|
} else {
|
|
5468
5468
|
noWhenBranchMatchedException();
|
|
5469
5469
|
}
|
|
@@ -5482,10 +5482,10 @@ function OpenAPIV3Parser$toName$lambda(it) {
|
|
|
5482
5482
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5483
5483
|
|
|
5484
5484
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
5485
|
-
tmp = tmp_0.
|
|
5485
|
+
tmp = tmp_0.x2e([tmp$ret$1]);
|
|
5486
5486
|
break;
|
|
5487
5487
|
case false:
|
|
5488
|
-
tmp = Common_getInstance().
|
|
5488
|
+
tmp = Common_getInstance().x2e([it]);
|
|
5489
5489
|
break;
|
|
5490
5490
|
default:
|
|
5491
5491
|
noWhenBranchMatchedException();
|
|
@@ -5495,8 +5495,8 @@ function OpenAPIV3Parser$toName$lambda(it) {
|
|
|
5495
5495
|
}
|
|
5496
5496
|
function OpenAPIV3Parser() {
|
|
5497
5497
|
}
|
|
5498
|
-
protoOf(OpenAPIV3Parser).
|
|
5499
|
-
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.
|
|
5498
|
+
protoOf(OpenAPIV3Parser).v2e = function (moduleContent, strict) {
|
|
5499
|
+
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.g2g((new OpenAPI_0(Json(VOID, OpenAPIV3Parser$parse$lambda(strict)))).r1g(moduleContent.o22_1)));
|
|
5500
5500
|
var tmp;
|
|
5501
5501
|
if (tmp0_elvis_lhs == null) {
|
|
5502
5502
|
var message = 'Cannot yield non empty List<Node> for OpenAPI v3';
|
|
@@ -5506,7 +5506,7 @@ protoOf(OpenAPIV3Parser).w2e = function (moduleContent, strict) {
|
|
|
5506
5506
|
}
|
|
5507
5507
|
return new AST(nonEmptyListOf(new Module(moduleContent.n22_1, tmp), []));
|
|
5508
5508
|
};
|
|
5509
|
-
protoOf(OpenAPIV3Parser).
|
|
5509
|
+
protoOf(OpenAPIV3Parser).g2g = function (_this__u8e3s4) {
|
|
5510
5510
|
// Inline function 'kotlin.collections.reduce' call
|
|
5511
5511
|
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();
|
|
5512
5512
|
if (!iterator.h())
|