@flock/wirespec 0.14.30 → 0.15.1
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 +1125 -1125
- package/colormath-root-colormath.mjs +400 -400
- package/kotlin-kotlin-stdlib.mjs +5 -5
- 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 +1816 -1816
- package/mordant-mordant.mjs +1531 -1531
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +632 -508
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +269 -269
- package/wirespec-src-converter-avro.mjs +263 -263
- package/wirespec-src-converter-openapi.mjs +171 -171
- package/wirespec-src-plugin-arguments.mjs +119 -119
- package/wirespec-src-plugin-cli.mjs +61 -61
- package/wirespec-src-plugin-npm.d.ts +1 -1
- package/wirespec-src-plugin-npm.mjs +13 -12
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- 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.s2e_1 = Json(VOID, Common$json$lambda);
|
|
221
221
|
}
|
|
222
|
-
protoOf(Common).
|
|
222
|
+
protoOf(Common).t2e = 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).u2e = 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).u2e = 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$();
|
|
@@ -689,20 +689,20 @@ function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
|
689
689
|
function OpenAPIV2Emitter() {
|
|
690
690
|
OpenAPIV2Emitter_instance = this;
|
|
691
691
|
Emitter.call(this);
|
|
692
|
-
this.
|
|
693
|
-
this.
|
|
694
|
-
this.
|
|
692
|
+
this.v2e_1 = FileExtension_JSON_getInstance();
|
|
693
|
+
this.w2e_1 = null;
|
|
694
|
+
this.x2e_1 = '';
|
|
695
695
|
}
|
|
696
696
|
protoOf(OpenAPIV2Emitter).j26 = function () {
|
|
697
|
-
return this.
|
|
697
|
+
return this.v2e_1;
|
|
698
698
|
};
|
|
699
699
|
protoOf(OpenAPIV2Emitter).l26 = function () {
|
|
700
|
-
return this.
|
|
700
|
+
return this.x2e_1;
|
|
701
701
|
};
|
|
702
702
|
protoOf(OpenAPIV2Emitter).m26 = function (module_0, logger) {
|
|
703
|
-
var tmp0 = Common_getInstance().
|
|
703
|
+
var tmp0 = Common_getInstance().s2e_1;
|
|
704
704
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
705
|
-
var value = this.
|
|
705
|
+
var value = this.y2e(module_0);
|
|
706
706
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
707
707
|
var this_0 = tmp0.ip();
|
|
708
708
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -712,27 +712,27 @@ protoOf(OpenAPIV2Emitter).m26 = function (module_0, logger) {
|
|
|
712
712
|
return nonEmptyListOf(new Emitted('SwaggerObject', tmp$ret$2), []);
|
|
713
713
|
};
|
|
714
714
|
protoOf(OpenAPIV2Emitter).v26 = function (type, module_0) {
|
|
715
|
-
return this.
|
|
715
|
+
return this.x29();
|
|
716
716
|
};
|
|
717
717
|
protoOf(OpenAPIV2Emitter).q27 = function (enum_0, module_0) {
|
|
718
|
-
return this.
|
|
718
|
+
return this.x29();
|
|
719
719
|
};
|
|
720
720
|
protoOf(OpenAPIV2Emitter).j27 = function (refined) {
|
|
721
|
-
return this.
|
|
721
|
+
return this.x29();
|
|
722
722
|
};
|
|
723
723
|
protoOf(OpenAPIV2Emitter).c28 = function (endpoint) {
|
|
724
|
-
return this.
|
|
724
|
+
return this.x29();
|
|
725
725
|
};
|
|
726
726
|
protoOf(OpenAPIV2Emitter).v27 = function (union) {
|
|
727
|
-
return this.
|
|
727
|
+
return this.x29();
|
|
728
728
|
};
|
|
729
729
|
protoOf(OpenAPIV2Emitter).v25 = function (identifier) {
|
|
730
|
-
return this.
|
|
730
|
+
return this.x29();
|
|
731
731
|
};
|
|
732
732
|
protoOf(OpenAPIV2Emitter).w27 = function (channel) {
|
|
733
|
-
return this.
|
|
733
|
+
return this.x29();
|
|
734
734
|
};
|
|
735
|
-
protoOf(OpenAPIV2Emitter).
|
|
735
|
+
protoOf(OpenAPIV2Emitter).y2e = function (module_0) {
|
|
736
736
|
var tmp = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, '0.0.0');
|
|
737
737
|
var tmp_0 = listOf('application/json');
|
|
738
738
|
var tmp_1 = listOf('application/json');
|
|
@@ -1082,7 +1082,7 @@ function parseEndpoints(_this__u8e3s4, $this) {
|
|
|
1082
1082
|
tmp_1 = toReference(_this__u8e3s4, OpenAPIV2Parser_instance, schema, isNullable);
|
|
1083
1083
|
} else {
|
|
1084
1084
|
if (schema instanceof SchemaObject) {
|
|
1085
|
-
tmp_1 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, schema, Common_getInstance().
|
|
1085
|
+
tmp_1 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, schema, Common_getInstance().t2e([name, 'RequestBody']), isNullable);
|
|
1086
1086
|
} else {
|
|
1087
1087
|
if (schema == null) {
|
|
1088
1088
|
var reason = 'Not yet implemented';
|
|
@@ -1196,7 +1196,7 @@ function parseEndpoints(_this__u8e3s4, $this) {
|
|
|
1196
1196
|
tmp_10 = toReference(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver, false);
|
|
1197
1197
|
} else {
|
|
1198
1198
|
if (tmp1_safe_receiver instanceof SchemaObject) {
|
|
1199
|
-
tmp_10 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
1199
|
+
tmp_10 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver, Common_getInstance().t2e([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']), false);
|
|
1200
1200
|
} else {
|
|
1201
1201
|
noWhenBranchMatchedException();
|
|
1202
1202
|
}
|
|
@@ -1277,7 +1277,7 @@ function parseDefinitions(_this__u8e3s4, $this) {
|
|
|
1277
1277
|
while (_iterator__ex2g4s_1.h()) {
|
|
1278
1278
|
var element_0 = _iterator__ex2g4s_1.i();
|
|
1279
1279
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseDefinitions.<anonymous>' call
|
|
1280
|
-
var list = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, element_0.b1(), Common_getInstance().
|
|
1280
|
+
var list = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, element_0.b1(), Common_getInstance().t2e([element_0.a1()]));
|
|
1281
1281
|
addAll(destination_0, list);
|
|
1282
1282
|
}
|
|
1283
1283
|
return destination_0;
|
|
@@ -1595,7 +1595,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1595
1595
|
tmp_9 = emptyList();
|
|
1596
1596
|
} else {
|
|
1597
1597
|
if (value instanceof SchemaObject) {
|
|
1598
|
-
tmp_9 = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().
|
|
1598
|
+
tmp_9 = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().t2e([name, key_0]));
|
|
1599
1599
|
} else {
|
|
1600
1600
|
noWhenBranchMatchedException();
|
|
1601
1601
|
}
|
|
@@ -1653,7 +1653,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1653
1653
|
var key_1 = element_2.a1();
|
|
1654
1654
|
// Inline function 'kotlin.collections.component2' call
|
|
1655
1655
|
var value_0 = element_2.b1();
|
|
1656
|
-
var list_3 = flatten_0(_this__u8e3s4, OpenAPIV2Parser_instance, value_0, Common_getInstance().
|
|
1656
|
+
var list_3 = flatten_0(_this__u8e3s4, OpenAPIV2Parser_instance, value_0, Common_getInstance().t2e([name, key_1]));
|
|
1657
1657
|
addAll(destination_3, list_3);
|
|
1658
1658
|
}
|
|
1659
1659
|
|
|
@@ -1668,7 +1668,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1668
1668
|
tmp_11 = emptyList();
|
|
1669
1669
|
} else {
|
|
1670
1670
|
if (it_0 instanceof SchemaObject) {
|
|
1671
|
-
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().
|
|
1671
|
+
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().t2e([name, 'Array']));
|
|
1672
1672
|
} else {
|
|
1673
1673
|
if (it_0 == null) {
|
|
1674
1674
|
tmp_11 = emptyList();
|
|
@@ -1725,7 +1725,7 @@ function toReference(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
1725
1725
|
}
|
|
1726
1726
|
tmp = tmp_0;
|
|
1727
1727
|
} else if (!(schema.x1n_1 == null)) {
|
|
1728
|
-
tmp = new Custom(sanitize(Common_getInstance().
|
|
1728
|
+
tmp = new Custom(sanitize(Common_getInstance().t2e([getReference(reference, OpenAPIV2Parser_instance)])), isNullable);
|
|
1729
1729
|
} else if (isPrimitive(schema.y1n_1)) {
|
|
1730
1730
|
tmp = new Primitive(toPrimitive(ensureNotNull(schema.y1n_1), OpenAPIV2Parser_instance, schema.f1n_1), isNullable);
|
|
1731
1731
|
} else {
|
|
@@ -1738,7 +1738,7 @@ function toReference(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
1738
1738
|
tmp_2 = toIterable(toReference(_this__u8e3s4, OpenAPIV2Parser_instance, items, false), isNullable);
|
|
1739
1739
|
} else {
|
|
1740
1740
|
if (items instanceof SchemaObject) {
|
|
1741
|
-
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, items, Common_getInstance().
|
|
1741
|
+
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, items, Common_getInstance().t2e([getReference(reference, OpenAPIV2Parser_instance), 'Array']), isNullable), isNullable);
|
|
1742
1742
|
} else {
|
|
1743
1743
|
if (items == null) {
|
|
1744
1744
|
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.h1o_1);
|
|
@@ -1752,10 +1752,10 @@ function toReference(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
1752
1752
|
} else {
|
|
1753
1753
|
var tmp_3;
|
|
1754
1754
|
if (refOrSchema instanceof SchemaObject) {
|
|
1755
|
-
tmp_3 = new Custom(sanitize(Common_getInstance().
|
|
1755
|
+
tmp_3 = new Custom(sanitize(Common_getInstance().t2e([getReference(reference, OpenAPIV2Parser_instance)])), isNullable);
|
|
1756
1756
|
} else {
|
|
1757
1757
|
if (refOrSchema instanceof ReferenceObject) {
|
|
1758
|
-
tmp_3 = new Custom(sanitize(Common_getInstance().
|
|
1758
|
+
tmp_3 = new Custom(sanitize(Common_getInstance().t2e([getReference(refOrSchema, OpenAPIV2Parser_instance)])), isNullable);
|
|
1759
1759
|
} else {
|
|
1760
1760
|
noWhenBranchMatchedException();
|
|
1761
1761
|
}
|
|
@@ -1923,7 +1923,7 @@ function toOperationList(_this__u8e3s4, $this) {
|
|
|
1923
1923
|
var tmp$ret$0 = tmp_0;
|
|
1924
1924
|
result.n2(element, tmp$ret$0);
|
|
1925
1925
|
}
|
|
1926
|
-
return tmp.
|
|
1926
|
+
return tmp.u2e(result);
|
|
1927
1927
|
}
|
|
1928
1928
|
function getReference(_this__u8e3s4, $this) {
|
|
1929
1929
|
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.h1o_1), ['/']).k(2);
|
|
@@ -2006,7 +2006,7 @@ function toField_0(_this__u8e3s4, $this, schema, name) {
|
|
|
2006
2006
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
2007
2007
|
var tmp;
|
|
2008
2008
|
if (value instanceof SchemaObject) {
|
|
2009
|
-
tmp = new Field(new FieldIdentifier(key), !(value.x1n_1 == null) ? toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().
|
|
2009
|
+
tmp = new Field(new FieldIdentifier(key), !(value.x1n_1 == null) ? toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().t2e([name, key]), isNullable) : equals(value.y1n_1, Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().t2e([name, key, 'Array']), isNullable) : toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().t2e([name, key]), isNullable));
|
|
2010
2010
|
} else {
|
|
2011
2011
|
if (value instanceof ReferenceObject) {
|
|
2012
2012
|
tmp = new Field(new FieldIdentifier(key), toReference(_this__u8e3s4, OpenAPIV2Parser_instance, value, isNullable));
|
|
@@ -2027,7 +2027,7 @@ function toField_1(_this__u8e3s4, $this, parameter, name) {
|
|
|
2027
2027
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
2028
2028
|
var tmp;
|
|
2029
2029
|
if (!(parameter.z1j_1 == null)) {
|
|
2030
|
-
tmp = new Custom(sanitize(Common_getInstance().
|
|
2030
|
+
tmp = new Custom(sanitize(Common_getInstance().t2e([name, 'Parameter', it.e1j_1])), isNullable);
|
|
2031
2031
|
} else {
|
|
2032
2032
|
var type = it.j1j_1;
|
|
2033
2033
|
var tmp_0;
|
|
@@ -2197,7 +2197,7 @@ function toName(_this__u8e3s4, $this) {
|
|
|
2197
2197
|
} else {
|
|
2198
2198
|
// Inline function 'kotlin.let' call
|
|
2199
2199
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.toName.<anonymous>' call
|
|
2200
|
-
tmp = Common_getInstance().
|
|
2200
|
+
tmp = Common_getInstance().t2e([tmp0_safe_receiver]);
|
|
2201
2201
|
}
|
|
2202
2202
|
return tmp;
|
|
2203
2203
|
}
|
|
@@ -2219,21 +2219,21 @@ function toName_0(_this__u8e3s4, $this) {
|
|
|
2219
2219
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenAPIV2Parser$toName$lambda);
|
|
2220
2220
|
}
|
|
2221
2221
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
2222
|
-
this.
|
|
2223
|
-
this.
|
|
2224
|
-
this.
|
|
2225
|
-
this.
|
|
2226
|
-
this.
|
|
2222
|
+
this.z2e_1 = path;
|
|
2223
|
+
this.a2f_1 = pathItem;
|
|
2224
|
+
this.b2f_1 = method;
|
|
2225
|
+
this.c2f_1 = operation;
|
|
2226
|
+
this.d2f_1 = type;
|
|
2227
2227
|
}
|
|
2228
2228
|
protoOf(FlattenRequest).toString = function () {
|
|
2229
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
2229
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.z2e_1) + ', pathItem=' + this.a2f_1.toString() + ', method=' + this.b2f_1.toString() + ', operation=' + this.c2f_1.toString() + ', type=' + this.d2f_1 + ')';
|
|
2230
2230
|
};
|
|
2231
2231
|
protoOf(FlattenRequest).hashCode = function () {
|
|
2232
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2232
|
+
var result = Path__hashCode_impl_go73kd(this.z2e_1);
|
|
2233
|
+
result = imul(result, 31) + this.a2f_1.hashCode() | 0;
|
|
2233
2234
|
result = imul(result, 31) + this.b2f_1.hashCode() | 0;
|
|
2234
2235
|
result = imul(result, 31) + this.c2f_1.hashCode() | 0;
|
|
2235
|
-
result = imul(result, 31) + this.d2f_1
|
|
2236
|
-
result = imul(result, 31) + getStringHashCode(this.e2f_1) | 0;
|
|
2236
|
+
result = imul(result, 31) + getStringHashCode(this.d2f_1) | 0;
|
|
2237
2237
|
return result;
|
|
2238
2238
|
};
|
|
2239
2239
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -2242,15 +2242,15 @@ protoOf(FlattenRequest).equals = function (other) {
|
|
|
2242
2242
|
if (!(other instanceof FlattenRequest))
|
|
2243
2243
|
return false;
|
|
2244
2244
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
2245
|
-
if (!(this.
|
|
2245
|
+
if (!(this.z2e_1 === tmp0_other_with_cast.z2e_1))
|
|
2246
|
+
return false;
|
|
2247
|
+
if (!this.a2f_1.equals(tmp0_other_with_cast.a2f_1))
|
|
2246
2248
|
return false;
|
|
2247
2249
|
if (!this.b2f_1.equals(tmp0_other_with_cast.b2f_1))
|
|
2248
2250
|
return false;
|
|
2249
2251
|
if (!this.c2f_1.equals(tmp0_other_with_cast.c2f_1))
|
|
2250
2252
|
return false;
|
|
2251
|
-
if (!this.d2f_1
|
|
2252
|
-
return false;
|
|
2253
|
-
if (!(this.e2f_1 === tmp0_other_with_cast.e2f_1))
|
|
2253
|
+
if (!(this.d2f_1 === tmp0_other_with_cast.d2f_1))
|
|
2254
2254
|
return false;
|
|
2255
2255
|
return true;
|
|
2256
2256
|
};
|
|
@@ -2312,25 +2312,25 @@ function flatMapRequests(_this__u8e3s4, $this, f) {
|
|
|
2312
2312
|
return destination_2;
|
|
2313
2313
|
}
|
|
2314
2314
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
2315
|
-
this.
|
|
2316
|
-
this.
|
|
2317
|
-
this.
|
|
2318
|
-
this.
|
|
2319
|
-
this.
|
|
2320
|
-
this.
|
|
2321
|
-
this.
|
|
2315
|
+
this.e2f_1 = path;
|
|
2316
|
+
this.f2f_1 = pathItem;
|
|
2317
|
+
this.g2f_1 = method;
|
|
2318
|
+
this.h2f_1 = operation;
|
|
2319
|
+
this.i2f_1 = statusCode;
|
|
2320
|
+
this.j2f_1 = response;
|
|
2321
|
+
this.k2f_1 = type;
|
|
2322
2322
|
}
|
|
2323
2323
|
protoOf(FlattenResponse).toString = function () {
|
|
2324
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
2324
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.e2f_1) + ', pathItem=' + this.f2f_1.toString() + ', method=' + this.g2f_1.toString() + ', operation=' + this.h2f_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy(this.i2f_1) + ', response=' + toString(this.j2f_1) + ', type=' + this.k2f_1 + ')';
|
|
2325
2325
|
};
|
|
2326
2326
|
protoOf(FlattenResponse).hashCode = function () {
|
|
2327
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2327
|
+
var result = Path__hashCode_impl_go73kd(this.e2f_1);
|
|
2328
|
+
result = imul(result, 31) + this.f2f_1.hashCode() | 0;
|
|
2328
2329
|
result = imul(result, 31) + this.g2f_1.hashCode() | 0;
|
|
2329
2330
|
result = imul(result, 31) + this.h2f_1.hashCode() | 0;
|
|
2330
|
-
result = imul(result, 31) + this.i2f_1
|
|
2331
|
-
result = imul(result, 31) +
|
|
2332
|
-
result = imul(result, 31) +
|
|
2333
|
-
result = imul(result, 31) + getStringHashCode(this.l2f_1) | 0;
|
|
2331
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.i2f_1) | 0;
|
|
2332
|
+
result = imul(result, 31) + hashCode(this.j2f_1) | 0;
|
|
2333
|
+
result = imul(result, 31) + getStringHashCode(this.k2f_1) | 0;
|
|
2334
2334
|
return result;
|
|
2335
2335
|
};
|
|
2336
2336
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -2339,19 +2339,19 @@ protoOf(FlattenResponse).equals = function (other) {
|
|
|
2339
2339
|
if (!(other instanceof FlattenResponse))
|
|
2340
2340
|
return false;
|
|
2341
2341
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
2342
|
-
if (!(this.
|
|
2342
|
+
if (!(this.e2f_1 === tmp0_other_with_cast.e2f_1))
|
|
2343
|
+
return false;
|
|
2344
|
+
if (!this.f2f_1.equals(tmp0_other_with_cast.f2f_1))
|
|
2343
2345
|
return false;
|
|
2344
2346
|
if (!this.g2f_1.equals(tmp0_other_with_cast.g2f_1))
|
|
2345
2347
|
return false;
|
|
2346
2348
|
if (!this.h2f_1.equals(tmp0_other_with_cast.h2f_1))
|
|
2347
2349
|
return false;
|
|
2348
|
-
if (!this.i2f_1
|
|
2350
|
+
if (!(this.i2f_1 === tmp0_other_with_cast.i2f_1))
|
|
2349
2351
|
return false;
|
|
2350
|
-
if (!(this.j2f_1
|
|
2352
|
+
if (!equals(this.j2f_1, tmp0_other_with_cast.j2f_1))
|
|
2351
2353
|
return false;
|
|
2352
|
-
if (!
|
|
2353
|
-
return false;
|
|
2354
|
-
if (!(this.l2f_1 === tmp0_other_with_cast.l2f_1))
|
|
2354
|
+
if (!(this.k2f_1 === tmp0_other_with_cast.k2f_1))
|
|
2355
2355
|
return false;
|
|
2356
2356
|
return true;
|
|
2357
2357
|
};
|
|
@@ -2439,9 +2439,9 @@ function OpenAPIV2Parser$parse$lambda($strict) {
|
|
|
2439
2439
|
}
|
|
2440
2440
|
function OpenAPIV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
2441
2441
|
return function ($this$flatMapRequests) {
|
|
2442
|
-
var parameters = plus(resolveParameters_0($this_parseParameters, OpenAPIV2Parser_instance, $this$flatMapRequests.
|
|
2443
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2444
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2442
|
+
var parameters = plus(resolveParameters_0($this_parseParameters, OpenAPIV2Parser_instance, $this$flatMapRequests.a2f_1), resolveParameters($this_parseParameters, OpenAPIV2Parser_instance, $this$flatMapRequests.c2f_1));
|
|
2443
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.c2f_1, OpenAPIV2Parser_instance);
|
|
2444
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.z2e_1, OpenAPIV2Parser_instance) + $this$flatMapRequests.b2f_1.q2_1 : tmp0_elvis_lhs;
|
|
2445
2445
|
// Inline function 'kotlin.collections.filter' call
|
|
2446
2446
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2447
2447
|
var destination = ArrayList_init_$Create$();
|
|
@@ -2467,7 +2467,7 @@ function OpenAPIV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
2467
2467
|
} else {
|
|
2468
2468
|
// Inline function 'kotlin.let' call
|
|
2469
2469
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
2470
|
-
tmp = flatten_0($this_parseParameters, OpenAPIV2Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
2470
|
+
tmp = flatten_0($this_parseParameters, OpenAPIV2Parser_instance, tmp0_safe_receiver, Common_getInstance().t2e([name, 'Parameter', element_0.e1j_1]));
|
|
2471
2471
|
}
|
|
2472
2472
|
var tmp1_elvis_lhs = tmp;
|
|
2473
2473
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -2478,9 +2478,9 @@ function OpenAPIV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
2478
2478
|
}
|
|
2479
2479
|
function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
2480
2480
|
return function ($this$flatMapRequests) {
|
|
2481
|
-
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenAPIV2Parser_instance, $this$flatMapRequests.
|
|
2482
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2483
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2481
|
+
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenAPIV2Parser_instance, $this$flatMapRequests.a2f_1), resolveParameters($this_parseRequestBody, OpenAPIV2Parser_instance, $this$flatMapRequests.c2f_1));
|
|
2482
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.c2f_1, OpenAPIV2Parser_instance);
|
|
2483
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.z2e_1, OpenAPIV2Parser_instance) + $this$flatMapRequests.b2f_1.q2_1 : tmp0_elvis_lhs;
|
|
2484
2484
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2485
2485
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2486
2486
|
var destination = ArrayList_init_$Create$();
|
|
@@ -2490,7 +2490,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2490
2490
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
2491
2491
|
var tmp;
|
|
2492
2492
|
if (!(element.z1j_1 == null)) {
|
|
2493
|
-
var tmp_0 = new DefinitionIdentifier(sanitize(Common_getInstance().
|
|
2493
|
+
var tmp_0 = new DefinitionIdentifier(sanitize(Common_getInstance().t2e([name, 'Parameter', element.e1j_1])));
|
|
2494
2494
|
// Inline function 'kotlin.collections.map' call
|
|
2495
2495
|
var this_0 = ensureNotNull(element.z1j_1);
|
|
2496
2496
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2510,7 +2510,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2510
2510
|
addAll(destination, list);
|
|
2511
2511
|
}
|
|
2512
2512
|
var enums = destination;
|
|
2513
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
2513
|
+
var tmp1_safe_receiver = $this$flatMapRequests.c2f_1.b1m_1;
|
|
2514
2514
|
var tmp_1;
|
|
2515
2515
|
if (tmp1_safe_receiver == null) {
|
|
2516
2516
|
tmp_1 = null;
|
|
@@ -2565,7 +2565,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2565
2565
|
switch (tmp0_subject == null ? -1 : tmp0_subject.r2_1) {
|
|
2566
2566
|
case -1:
|
|
2567
2567
|
case 5:
|
|
2568
|
-
tmp_5 = flatten($this_parseRequestBody, OpenAPIV2Parser_instance, schema, Common_getInstance().
|
|
2568
|
+
tmp_5 = flatten($this_parseRequestBody, OpenAPIV2Parser_instance, schema, Common_getInstance().t2e([name, 'RequestBody']));
|
|
2569
2569
|
break;
|
|
2570
2570
|
case 4:
|
|
2571
2571
|
var tmp1_safe_receiver_0 = schema.z1n_1;
|
|
@@ -2575,7 +2575,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2575
2575
|
} else {
|
|
2576
2576
|
// Inline function 'kotlin.let' call
|
|
2577
2577
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
2578
|
-
tmp_6 = flatten_0($this_parseRequestBody, OpenAPIV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
2578
|
+
tmp_6 = flatten_0($this_parseRequestBody, OpenAPIV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().t2e([name, 'RequestBody']));
|
|
2579
2579
|
}
|
|
2580
2580
|
|
|
2581
2581
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2603,9 +2603,9 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2603
2603
|
}
|
|
2604
2604
|
function OpenAPIV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
2605
2605
|
return function ($this$flatMapResponses) {
|
|
2606
|
-
var schema = resolve_1($this_parseResponseBody, OpenAPIV2Parser_instance, $this$flatMapResponses.
|
|
2607
|
-
var tmp0_elvis_lhs = toName($this$flatMapResponses.
|
|
2608
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
2606
|
+
var schema = resolve_1($this_parseResponseBody, OpenAPIV2Parser_instance, $this$flatMapResponses.j2f_1).g1k_1;
|
|
2607
|
+
var tmp0_elvis_lhs = toName($this$flatMapResponses.h2f_1, OpenAPIV2Parser_instance);
|
|
2608
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.e2f_1, OpenAPIV2Parser_instance) + $this$flatMapResponses.g2f_1.q2_1 : tmp0_elvis_lhs;
|
|
2609
2609
|
var tmp;
|
|
2610
2610
|
if (schema instanceof SchemaObject) {
|
|
2611
2611
|
var tmp2_subject = schema.y1n_1;
|
|
@@ -2613,7 +2613,7 @@ function OpenAPIV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
2613
2613
|
switch (tmp2_subject == null ? -1 : tmp2_subject.r2_1) {
|
|
2614
2614
|
case -1:
|
|
2615
2615
|
case 5:
|
|
2616
|
-
tmp_0 = flatten($this_parseResponseBody, OpenAPIV2Parser_instance, schema, Common_getInstance().
|
|
2616
|
+
tmp_0 = flatten($this_parseResponseBody, OpenAPIV2Parser_instance, schema, Common_getInstance().t2e([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.i2f_1), 'ResponseBody']));
|
|
2617
2617
|
break;
|
|
2618
2618
|
case 4:
|
|
2619
2619
|
var tmp3_safe_receiver = schema.z1n_1;
|
|
@@ -2623,7 +2623,7 @@ function OpenAPIV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
2623
2623
|
} else {
|
|
2624
2624
|
// Inline function 'kotlin.let' call
|
|
2625
2625
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
2626
|
-
tmp_1 = flatten_0($this_parseResponseBody, OpenAPIV2Parser_instance, tmp3_safe_receiver, Common_getInstance().
|
|
2626
|
+
tmp_1 = flatten_0($this_parseResponseBody, OpenAPIV2Parser_instance, tmp3_safe_receiver, Common_getInstance().t2e([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.i2f_1), 'ResponseBody']));
|
|
2627
2627
|
}
|
|
2628
2628
|
|
|
2629
2629
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2653,10 +2653,10 @@ function OpenAPIV2Parser$toName$lambda(it) {
|
|
|
2653
2653
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2654
2654
|
|
|
2655
2655
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
2656
|
-
tmp = tmp_0.
|
|
2656
|
+
tmp = tmp_0.t2e([tmp$ret$1]);
|
|
2657
2657
|
break;
|
|
2658
2658
|
case false:
|
|
2659
|
-
tmp = Common_getInstance().
|
|
2659
|
+
tmp = Common_getInstance().t2e([it]);
|
|
2660
2660
|
break;
|
|
2661
2661
|
default:
|
|
2662
2662
|
noWhenBranchMatchedException();
|
|
@@ -2666,8 +2666,8 @@ function OpenAPIV2Parser$toName$lambda(it) {
|
|
|
2666
2666
|
}
|
|
2667
2667
|
function OpenAPIV2Parser() {
|
|
2668
2668
|
}
|
|
2669
|
-
protoOf(OpenAPIV2Parser).
|
|
2670
|
-
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.
|
|
2669
|
+
protoOf(OpenAPIV2Parser).q2e = function (moduleContent, strict) {
|
|
2670
|
+
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.l2f((new OpenAPI(Json(VOID, OpenAPIV2Parser$parse$lambda(strict)))).c1h(moduleContent.u22_1)));
|
|
2671
2671
|
var tmp;
|
|
2672
2672
|
if (tmp0_elvis_lhs == null) {
|
|
2673
2673
|
var message = 'Cannot yield non empty AST for OpenAPI v2';
|
|
@@ -2677,11 +2677,11 @@ protoOf(OpenAPIV2Parser).r2e = function (moduleContent, strict) {
|
|
|
2677
2677
|
}
|
|
2678
2678
|
return new AST(nonEmptyListOf(new Module(moduleContent.t22_1, tmp), []));
|
|
2679
2679
|
};
|
|
2680
|
-
protoOf(OpenAPIV2Parser).
|
|
2680
|
+
protoOf(OpenAPIV2Parser).m2f = function (moduleContent, strict, $super) {
|
|
2681
2681
|
strict = strict === VOID ? true : strict;
|
|
2682
|
-
return $super === VOID ? this.
|
|
2682
|
+
return $super === VOID ? this.q2e(moduleContent, strict) : $super.q2e.call(this, moduleContent, strict);
|
|
2683
2683
|
};
|
|
2684
|
-
protoOf(OpenAPIV2Parser).
|
|
2684
|
+
protoOf(OpenAPIV2Parser).l2f = function (_this__u8e3s4) {
|
|
2685
2685
|
// Inline function 'kotlin.collections.reduce' call
|
|
2686
2686
|
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();
|
|
2687
2687
|
if (!iterator.h())
|
|
@@ -3443,20 +3443,20 @@ function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
|
3443
3443
|
function OpenAPIV3Emitter() {
|
|
3444
3444
|
OpenAPIV3Emitter_instance = this;
|
|
3445
3445
|
Emitter.call(this);
|
|
3446
|
-
this.
|
|
3447
|
-
this.
|
|
3448
|
-
this.
|
|
3446
|
+
this.n2f_1 = FileExtension_JSON_getInstance();
|
|
3447
|
+
this.o2f_1 = null;
|
|
3448
|
+
this.p2f_1 = '';
|
|
3449
3449
|
}
|
|
3450
3450
|
protoOf(OpenAPIV3Emitter).j26 = function () {
|
|
3451
|
-
return this.
|
|
3451
|
+
return this.n2f_1;
|
|
3452
3452
|
};
|
|
3453
3453
|
protoOf(OpenAPIV3Emitter).l26 = function () {
|
|
3454
|
-
return this.
|
|
3454
|
+
return this.p2f_1;
|
|
3455
3455
|
};
|
|
3456
3456
|
protoOf(OpenAPIV3Emitter).m26 = function (module_0, logger) {
|
|
3457
|
-
var tmp0 = Common_getInstance().
|
|
3457
|
+
var tmp0 = Common_getInstance().s2e_1;
|
|
3458
3458
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
3459
|
-
var value = this.
|
|
3459
|
+
var value = this.q2f(module_0, null);
|
|
3460
3460
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3461
3461
|
var this_0 = tmp0.ip();
|
|
3462
3462
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -3466,30 +3466,30 @@ protoOf(OpenAPIV3Emitter).m26 = function (module_0, logger) {
|
|
|
3466
3466
|
return nonEmptyListOf(new Emitted('OpenAPIObject', tmp$ret$2), []);
|
|
3467
3467
|
};
|
|
3468
3468
|
protoOf(OpenAPIV3Emitter).v26 = function (type, module_0) {
|
|
3469
|
-
return this.
|
|
3469
|
+
return this.x29();
|
|
3470
3470
|
};
|
|
3471
3471
|
protoOf(OpenAPIV3Emitter).q27 = function (enum_0, module_0) {
|
|
3472
|
-
return this.
|
|
3472
|
+
return this.x29();
|
|
3473
3473
|
};
|
|
3474
3474
|
protoOf(OpenAPIV3Emitter).j27 = function (refined) {
|
|
3475
|
-
return this.
|
|
3475
|
+
return this.x29();
|
|
3476
3476
|
};
|
|
3477
3477
|
protoOf(OpenAPIV3Emitter).c28 = function (endpoint) {
|
|
3478
|
-
return this.
|
|
3478
|
+
return this.x29();
|
|
3479
3479
|
};
|
|
3480
3480
|
protoOf(OpenAPIV3Emitter).v27 = function (union) {
|
|
3481
|
-
return this.
|
|
3481
|
+
return this.x29();
|
|
3482
3482
|
};
|
|
3483
3483
|
protoOf(OpenAPIV3Emitter).v25 = function (identifier) {
|
|
3484
|
-
return this.
|
|
3484
|
+
return this.x29();
|
|
3485
3485
|
};
|
|
3486
3486
|
protoOf(OpenAPIV3Emitter).w27 = function (channel) {
|
|
3487
|
-
return this.
|
|
3487
|
+
return this.x29();
|
|
3488
3488
|
};
|
|
3489
|
-
protoOf(OpenAPIV3Emitter).
|
|
3490
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
3489
|
+
protoOf(OpenAPIV3Emitter).q2f = function (module_0, options) {
|
|
3490
|
+
var tmp1_elvis_lhs = options == null ? null : options.r2f_1;
|
|
3491
3491
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
3492
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
3492
|
+
var tmp3_elvis_lhs = options == null ? null : options.s2f_1;
|
|
3493
3493
|
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));
|
|
3494
3494
|
};
|
|
3495
3495
|
var OpenAPIV3Emitter_instance;
|
|
@@ -3547,7 +3547,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3547
3547
|
while (_iterator__ex2g4s_2.h()) {
|
|
3548
3548
|
var item_0 = _iterator__ex2g4s_2.i();
|
|
3549
3549
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3550
|
-
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_0, Common_getInstance().
|
|
3550
|
+
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_0, Common_getInstance().t2e([name, 'Parameter', item_0.q1w_1]));
|
|
3551
3551
|
destination_2.e(tmp$ret$9);
|
|
3552
3552
|
}
|
|
3553
3553
|
var query = destination_2;
|
|
@@ -3569,7 +3569,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3569
3569
|
while (_iterator__ex2g4s_4.h()) {
|
|
3570
3570
|
var item_1 = _iterator__ex2g4s_4.i();
|
|
3571
3571
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3572
|
-
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_1, Common_getInstance().
|
|
3572
|
+
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_1, Common_getInstance().t2e([name, 'Parameter', item_1.q1w_1]));
|
|
3573
3573
|
destination_4.e(tmp$ret$15);
|
|
3574
3574
|
}
|
|
3575
3575
|
var headers = destination_4;
|
|
@@ -3613,7 +3613,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3613
3613
|
tmp_2 = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema, isNullable);
|
|
3614
3614
|
} else {
|
|
3615
3615
|
if (schema instanceof SchemaObject_0) {
|
|
3616
|
-
tmp_2 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema, isNullable, Common_getInstance().
|
|
3616
|
+
tmp_2 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema, isNullable, Common_getInstance().t2e([name, 'RequestBody']));
|
|
3617
3617
|
} else {
|
|
3618
3618
|
if (schema == null) {
|
|
3619
3619
|
tmp_2 = null;
|
|
@@ -3702,7 +3702,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3702
3702
|
while (_iterator__ex2g4s_8.h()) {
|
|
3703
3703
|
var item_4 = _iterator__ex2g4s_8.i();
|
|
3704
3704
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3705
|
-
var tmp$ret$40 = toField_4(_this__u8e3s4, OpenAPIV3Parser_instance, resolve_5(_this__u8e3s4, OpenAPIV3Parser_instance, item_4.b1()), item_4.a1(), Common_getInstance().
|
|
3705
|
+
var tmp$ret$40 = toField_4(_this__u8e3s4, OpenAPIV3Parser_instance, resolve_5(_this__u8e3s4, OpenAPIV3Parser_instance, item_4.b1()), item_4.a1(), Common_getInstance().t2e([name, 'ResponseHeader']));
|
|
3706
3706
|
destination_8.e(tmp$ret$40);
|
|
3707
3707
|
}
|
|
3708
3708
|
tmp_7 = destination_8;
|
|
@@ -3717,7 +3717,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3717
3717
|
tmp_10 = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema_0, isNullable_0);
|
|
3718
3718
|
} else {
|
|
3719
3719
|
if (schema_0 instanceof SchemaObject_0) {
|
|
3720
|
-
tmp_10 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema_0, isNullable_0, Common_getInstance().
|
|
3720
|
+
tmp_10 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema_0, isNullable_0, Common_getInstance().t2e([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
3721
3721
|
} else {
|
|
3722
3722
|
if (schema_0 == null) {
|
|
3723
3723
|
tmp_10 = new Any(isNullable_0);
|
|
@@ -3772,7 +3772,7 @@ function flatMapResponse(_this__u8e3s4, $this, response, name, statusCode) {
|
|
|
3772
3772
|
switch (tmp0_subject == null ? -1 : tmp0_subject.r2_1) {
|
|
3773
3773
|
case -1:
|
|
3774
3774
|
case 5:
|
|
3775
|
-
tmp_0 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema, Common_getInstance().
|
|
3775
|
+
tmp_0 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema, Common_getInstance().t2e([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
3776
3776
|
break;
|
|
3777
3777
|
case 4:
|
|
3778
3778
|
var tmp1_safe_receiver = schema.n1x_1;
|
|
@@ -3782,7 +3782,7 @@ function flatMapResponse(_this__u8e3s4, $this, response, name, statusCode) {
|
|
|
3782
3782
|
} else {
|
|
3783
3783
|
// Inline function 'kotlin.let' call
|
|
3784
3784
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.flatMapResponse.<anonymous>.<anonymous>' call
|
|
3785
|
-
tmp_1 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
3785
|
+
tmp_1 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp1_safe_receiver, Common_getInstance().t2e([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
3786
3786
|
}
|
|
3787
3787
|
|
|
3788
3788
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -3838,7 +3838,7 @@ function parseComponents(_this__u8e3s4, $this) {
|
|
|
3838
3838
|
while (_iterator__ex2g4s_0.h()) {
|
|
3839
3839
|
var element_0 = _iterator__ex2g4s_0.i();
|
|
3840
3840
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseComponents.<anonymous>' call
|
|
3841
|
-
var list = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, element_0.b1(), Common_getInstance().
|
|
3841
|
+
var list = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, element_0.b1(), Common_getInstance().t2e([element_0.a1()]));
|
|
3842
3842
|
addAll(destination_0, list);
|
|
3843
3843
|
}
|
|
3844
3844
|
return destination_0;
|
|
@@ -3854,7 +3854,7 @@ function toName_1(_this__u8e3s4, $this) {
|
|
|
3854
3854
|
} else {
|
|
3855
3855
|
// Inline function 'kotlin.let' call
|
|
3856
3856
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.toName.<anonymous>' call
|
|
3857
|
-
tmp = Common_getInstance().
|
|
3857
|
+
tmp = Common_getInstance().t2e([tmp0_safe_receiver]);
|
|
3858
3858
|
}
|
|
3859
3859
|
return tmp;
|
|
3860
3860
|
}
|
|
@@ -3942,7 +3942,7 @@ function toSegments_0(_this__u8e3s4, $this, path, parameters, operation, method)
|
|
|
3942
3942
|
} else {
|
|
3943
3943
|
// Inline function 'kotlin.let' call
|
|
3944
3944
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.toSegments.<anonymous>.<anonymous>' call
|
|
3945
|
-
tmp_1 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp4_safe_receiver, false, Common_getInstance().
|
|
3945
|
+
tmp_1 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp4_safe_receiver, false, Common_getInstance().t2e([name, 'Parameter', param]));
|
|
3946
3946
|
}
|
|
3947
3947
|
|
|
3948
3948
|
var tmp5_safe_receiver = tmp_1;
|
|
@@ -4343,7 +4343,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4343
4343
|
tmp_6 = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, item, false);
|
|
4344
4344
|
} else {
|
|
4345
4345
|
if (item instanceof SchemaObject_0) {
|
|
4346
|
-
tmp_6 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, item, false, Common_getInstance().
|
|
4346
|
+
tmp_6 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, item, false, Common_getInstance().t2e([name, index_0.toString()]));
|
|
4347
4347
|
} else {
|
|
4348
4348
|
noWhenBranchMatchedException();
|
|
4349
4349
|
}
|
|
@@ -4371,7 +4371,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4371
4371
|
tmp_8 = emptyList();
|
|
4372
4372
|
} else {
|
|
4373
4373
|
if (element instanceof SchemaObject_0) {
|
|
4374
|
-
tmp_8 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, element, Common_getInstance().
|
|
4374
|
+
tmp_8 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, element, Common_getInstance().t2e([name, index_2.toString()]));
|
|
4375
4375
|
} else {
|
|
4376
4376
|
noWhenBranchMatchedException();
|
|
4377
4377
|
}
|
|
@@ -4443,7 +4443,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4443
4443
|
var key_0 = element_2.a1();
|
|
4444
4444
|
// Inline function 'kotlin.collections.component2' call
|
|
4445
4445
|
var value = element_2.b1();
|
|
4446
|
-
var list_2 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, Common_getInstance().
|
|
4446
|
+
var list_2 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, Common_getInstance().t2e([name, key_0]));
|
|
4447
4447
|
addAll(destination_3, list_2);
|
|
4448
4448
|
}
|
|
4449
4449
|
var list_3 = destination_3;
|
|
@@ -4491,7 +4491,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4491
4491
|
var key_1 = element_3.a1();
|
|
4492
4492
|
// Inline function 'kotlin.collections.component2' call
|
|
4493
4493
|
var value_0 = element_3.b1();
|
|
4494
|
-
var list_4 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value_0, Common_getInstance().
|
|
4494
|
+
var list_4 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value_0, Common_getInstance().t2e([name, key_1]));
|
|
4495
4495
|
addAll(destination_5, list_4);
|
|
4496
4496
|
}
|
|
4497
4497
|
|
|
@@ -4512,7 +4512,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4512
4512
|
tmp_14 = emptyList();
|
|
4513
4513
|
} else {
|
|
4514
4514
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
4515
|
-
tmp_14 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, tmp6_safe_receiver, Common_getInstance().
|
|
4515
|
+
tmp_14 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, tmp6_safe_receiver, Common_getInstance().t2e([name, 'array']));
|
|
4516
4516
|
} else {
|
|
4517
4517
|
noWhenBranchMatchedException();
|
|
4518
4518
|
}
|
|
@@ -4573,7 +4573,7 @@ function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
4573
4573
|
}
|
|
4574
4574
|
tmp = tmp_0;
|
|
4575
4575
|
} else if (!(schema.i1y_1 == null)) {
|
|
4576
|
-
tmp = new Custom(sanitize_0(Common_getInstance().
|
|
4576
|
+
tmp = new Custom(sanitize_0(Common_getInstance().t2e([getReference_0(referencingObject, OpenAPIV3Parser_instance)])), isNullable);
|
|
4577
4577
|
} else if (isPrimitive_0(schema.i1x_1)) {
|
|
4578
4578
|
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.i1x_1), OpenAPIV3Parser_instance, schema.r1x_1), isNullable);
|
|
4579
4579
|
} else if (equals(schema.i1x_1, Type_ARRAY_getInstance_0())) {
|
|
@@ -4585,7 +4585,7 @@ function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
4585
4585
|
tmp_3 = toIterable_0(toReference_1(_this__u8e3s4, tmp_4, items, tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs), isNullable);
|
|
4586
4586
|
} else {
|
|
4587
4587
|
if (items instanceof SchemaObject_0) {
|
|
4588
|
-
var tmp_5 = sanitize_0(Common_getInstance().
|
|
4588
|
+
var tmp_5 = sanitize_0(Common_getInstance().t2e([getReference_0(referencingObject, OpenAPIV3Parser_instance), 'Array']));
|
|
4589
4589
|
var tmp3_elvis_lhs = schema.z1w_1;
|
|
4590
4590
|
tmp_3 = toIterable_0(new Custom(tmp_5, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs), isNullable);
|
|
4591
4591
|
} else {
|
|
@@ -4599,7 +4599,7 @@ function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
4599
4599
|
}
|
|
4600
4600
|
tmp = tmp_3;
|
|
4601
4601
|
} else {
|
|
4602
|
-
tmp = new Custom(sanitize_0(Common_getInstance().
|
|
4602
|
+
tmp = new Custom(sanitize_0(Common_getInstance().t2e([getReference_0(referencingObject, OpenAPIV3Parser_instance)])), isNullable);
|
|
4603
4603
|
}
|
|
4604
4604
|
return tmp;
|
|
4605
4605
|
}
|
|
@@ -4782,7 +4782,7 @@ function toOperationList_0(_this__u8e3s4, $this) {
|
|
|
4782
4782
|
var tmp$ret$0 = tmp_0;
|
|
4783
4783
|
result.n2(element, tmp$ret$0);
|
|
4784
4784
|
}
|
|
4785
|
-
return tmp.
|
|
4785
|
+
return tmp.u2e(result);
|
|
4786
4786
|
}
|
|
4787
4787
|
function getReference_0(_this__u8e3s4, $this) {
|
|
4788
4788
|
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.w1w_1), ['/']), 3);
|
|
@@ -4837,7 +4837,7 @@ function toField_2(_this__u8e3s4, $this, schema, name) {
|
|
|
4837
4837
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
4838
4838
|
var tmp;
|
|
4839
4839
|
if (value instanceof SchemaObject_0) {
|
|
4840
|
-
tmp = new Field(new FieldIdentifier(key), !(value.i1y_1 == null) ? toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().
|
|
4840
|
+
tmp = new Field(new FieldIdentifier(key), !(value.i1y_1 == null) ? toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().t2e([name, key])) : equals(value.i1x_1, Type_ARRAY_getInstance_0()) ? toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().t2e([name, key, 'Array'])) : toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().t2e([name, key])));
|
|
4841
4841
|
} else {
|
|
4842
4842
|
if (value instanceof ReferenceObject_0) {
|
|
4843
4843
|
tmp = new Field(new FieldIdentifier(key), toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable));
|
|
@@ -4897,19 +4897,19 @@ function toField_4(_this__u8e3s4, $this, header, identifier, name) {
|
|
|
4897
4897
|
return new Field(new FieldIdentifier(identifier), it);
|
|
4898
4898
|
}
|
|
4899
4899
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
4900
|
-
this.
|
|
4901
|
-
this.
|
|
4902
|
-
this.
|
|
4903
|
-
this.
|
|
4900
|
+
this.t2f_1 = path;
|
|
4901
|
+
this.u2f_1 = pathItem;
|
|
4902
|
+
this.v2f_1 = method;
|
|
4903
|
+
this.w2f_1 = operation;
|
|
4904
4904
|
}
|
|
4905
4905
|
protoOf(FlattenRequest_0).toString = function () {
|
|
4906
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
4906
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.t2f_1) + ', pathItem=' + this.u2f_1.toString() + ', method=' + this.v2f_1.toString() + ', operation=' + this.w2f_1.toString() + ')';
|
|
4907
4907
|
};
|
|
4908
4908
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
4909
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
4909
|
+
var result = Path__hashCode_impl_go73kd_0(this.t2f_1);
|
|
4910
|
+
result = imul(result, 31) + this.u2f_1.hashCode() | 0;
|
|
4910
4911
|
result = imul(result, 31) + this.v2f_1.hashCode() | 0;
|
|
4911
4912
|
result = imul(result, 31) + this.w2f_1.hashCode() | 0;
|
|
4912
|
-
result = imul(result, 31) + this.x2f_1.hashCode() | 0;
|
|
4913
4913
|
return result;
|
|
4914
4914
|
};
|
|
4915
4915
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -4918,14 +4918,14 @@ protoOf(FlattenRequest_0).equals = function (other) {
|
|
|
4918
4918
|
if (!(other instanceof FlattenRequest_0))
|
|
4919
4919
|
return false;
|
|
4920
4920
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
4921
|
-
if (!(this.
|
|
4921
|
+
if (!(this.t2f_1 === tmp0_other_with_cast.t2f_1))
|
|
4922
|
+
return false;
|
|
4923
|
+
if (!this.u2f_1.equals(tmp0_other_with_cast.u2f_1))
|
|
4922
4924
|
return false;
|
|
4923
4925
|
if (!this.v2f_1.equals(tmp0_other_with_cast.v2f_1))
|
|
4924
4926
|
return false;
|
|
4925
4927
|
if (!this.w2f_1.equals(tmp0_other_with_cast.w2f_1))
|
|
4926
4928
|
return false;
|
|
4927
|
-
if (!this.x2f_1.equals(tmp0_other_with_cast.x2f_1))
|
|
4928
|
-
return false;
|
|
4929
4929
|
return true;
|
|
4930
4930
|
};
|
|
4931
4931
|
function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
@@ -4973,23 +4973,23 @@ function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
|
4973
4973
|
return destination_1;
|
|
4974
4974
|
}
|
|
4975
4975
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
4976
|
-
this.
|
|
4977
|
-
this.
|
|
4978
|
-
this.
|
|
4979
|
-
this.
|
|
4980
|
-
this.
|
|
4981
|
-
this.
|
|
4976
|
+
this.x2f_1 = path;
|
|
4977
|
+
this.y2f_1 = pathItem;
|
|
4978
|
+
this.z2f_1 = method;
|
|
4979
|
+
this.a2g_1 = operation;
|
|
4980
|
+
this.b2g_1 = statusCode;
|
|
4981
|
+
this.c2g_1 = response;
|
|
4982
4982
|
}
|
|
4983
4983
|
protoOf(FlattenResponse_0).toString = function () {
|
|
4984
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
4984
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.x2f_1) + ', pathItem=' + this.y2f_1.toString() + ', method=' + this.z2f_1.toString() + ', operation=' + this.a2g_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy_0(this.b2g_1) + ', response=' + toString(this.c2g_1) + ')';
|
|
4985
4985
|
};
|
|
4986
4986
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
4987
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
4987
|
+
var result = Path__hashCode_impl_go73kd_0(this.x2f_1);
|
|
4988
|
+
result = imul(result, 31) + this.y2f_1.hashCode() | 0;
|
|
4988
4989
|
result = imul(result, 31) + this.z2f_1.hashCode() | 0;
|
|
4989
4990
|
result = imul(result, 31) + this.a2g_1.hashCode() | 0;
|
|
4990
|
-
result = imul(result, 31) + this.b2g_1
|
|
4991
|
-
result = imul(result, 31) +
|
|
4992
|
-
result = imul(result, 31) + hashCode(this.d2g_1) | 0;
|
|
4991
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.b2g_1) | 0;
|
|
4992
|
+
result = imul(result, 31) + hashCode(this.c2g_1) | 0;
|
|
4993
4993
|
return result;
|
|
4994
4994
|
};
|
|
4995
4995
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -4998,17 +4998,17 @@ protoOf(FlattenResponse_0).equals = function (other) {
|
|
|
4998
4998
|
if (!(other instanceof FlattenResponse_0))
|
|
4999
4999
|
return false;
|
|
5000
5000
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
5001
|
-
if (!(this.
|
|
5001
|
+
if (!(this.x2f_1 === tmp0_other_with_cast.x2f_1))
|
|
5002
|
+
return false;
|
|
5003
|
+
if (!this.y2f_1.equals(tmp0_other_with_cast.y2f_1))
|
|
5002
5004
|
return false;
|
|
5003
5005
|
if (!this.z2f_1.equals(tmp0_other_with_cast.z2f_1))
|
|
5004
5006
|
return false;
|
|
5005
5007
|
if (!this.a2g_1.equals(tmp0_other_with_cast.a2g_1))
|
|
5006
5008
|
return false;
|
|
5007
|
-
if (!this.b2g_1
|
|
5008
|
-
return false;
|
|
5009
|
-
if (!(this.c2g_1 === tmp0_other_with_cast.c2g_1))
|
|
5009
|
+
if (!(this.b2g_1 === tmp0_other_with_cast.b2g_1))
|
|
5010
5010
|
return false;
|
|
5011
|
-
if (!equals(this.
|
|
5011
|
+
if (!equals(this.c2g_1, tmp0_other_with_cast.c2g_1))
|
|
5012
5012
|
return false;
|
|
5013
5013
|
return true;
|
|
5014
5014
|
};
|
|
@@ -5089,9 +5089,9 @@ function OpenAPIV3Parser$parse$lambda($strict) {
|
|
|
5089
5089
|
}
|
|
5090
5090
|
function OpenAPIV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
5091
5091
|
return function ($this$flatMapRequests) {
|
|
5092
|
-
var parameters = plus(resolveParameters_2($this_parseParameters, OpenAPIV3Parser_instance, $this$flatMapRequests.
|
|
5093
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5094
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5092
|
+
var parameters = plus(resolveParameters_2($this_parseParameters, OpenAPIV3Parser_instance, $this$flatMapRequests.u2f_1), resolveParameters_1($this_parseParameters, OpenAPIV3Parser_instance, $this$flatMapRequests.w2f_1));
|
|
5093
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.w2f_1, OpenAPIV3Parser_instance);
|
|
5094
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.t2f_1, OpenAPIV3Parser_instance) + $this$flatMapRequests.v2f_1.q2_1 : tmp0_elvis_lhs;
|
|
5095
5095
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5096
5096
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5097
5097
|
var destination = ArrayList_init_$Create$();
|
|
@@ -5106,7 +5106,7 @@ function OpenAPIV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
5106
5106
|
} else {
|
|
5107
5107
|
// Inline function 'kotlin.let' call
|
|
5108
5108
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
5109
|
-
tmp = flatten_2($this_parseParameters, OpenAPIV3Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
5109
|
+
tmp = flatten_2($this_parseParameters, OpenAPIV3Parser_instance, tmp0_safe_receiver, Common_getInstance().t2e([name, 'Parameter', element.q1w_1]));
|
|
5110
5110
|
}
|
|
5111
5111
|
var tmp1_elvis_lhs = tmp;
|
|
5112
5112
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -5117,9 +5117,9 @@ function OpenAPIV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
5117
5117
|
}
|
|
5118
5118
|
function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
5119
5119
|
return function ($this$flatMapRequests) {
|
|
5120
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5121
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5122
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
5120
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.w2f_1, OpenAPIV3Parser_instance);
|
|
5121
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.t2f_1, OpenAPIV3Parser_instance) + $this$flatMapRequests.v2f_1.q2_1 : tmp0_elvis_lhs;
|
|
5122
|
+
var tmp1_safe_receiver = $this$flatMapRequests.w2f_1.t1u_1;
|
|
5123
5123
|
var tmp;
|
|
5124
5124
|
if (tmp1_safe_receiver == null) {
|
|
5125
5125
|
tmp = null;
|
|
@@ -5150,7 +5150,7 @@ function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
5150
5150
|
switch (tmp0_subject == null ? -1 : tmp0_subject.r2_1) {
|
|
5151
5151
|
case -1:
|
|
5152
5152
|
case 5:
|
|
5153
|
-
tmp_1 = flatten_1($this_parseRequestBody, OpenAPIV3Parser_instance, schema, Common_getInstance().
|
|
5153
|
+
tmp_1 = flatten_1($this_parseRequestBody, OpenAPIV3Parser_instance, schema, Common_getInstance().t2e([name, 'RequestBody']));
|
|
5154
5154
|
break;
|
|
5155
5155
|
case 4:
|
|
5156
5156
|
var tmp1_safe_receiver_0 = schema.n1x_1;
|
|
@@ -5160,7 +5160,7 @@ function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
5160
5160
|
} else {
|
|
5161
5161
|
// Inline function 'kotlin.let' call
|
|
5162
5162
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
5163
|
-
tmp_2 = flatten_2($this_parseRequestBody, OpenAPIV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
5163
|
+
tmp_2 = flatten_2($this_parseRequestBody, OpenAPIV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().t2e([name, 'RequestBody']));
|
|
5164
5164
|
}
|
|
5165
5165
|
|
|
5166
5166
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -5194,15 +5194,15 @@ function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
5194
5194
|
}
|
|
5195
5195
|
function OpenAPIV3Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
5196
5196
|
return function ($this$flatMapResponses) {
|
|
5197
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.
|
|
5198
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.
|
|
5199
|
-
var response = $this$flatMapResponses.
|
|
5197
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.a2g_1, OpenAPIV3Parser_instance);
|
|
5198
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.x2f_1, OpenAPIV3Parser_instance) + $this$flatMapResponses.z2f_1.q2_1 : tmp0_elvis_lhs;
|
|
5199
|
+
var response = $this$flatMapResponses.c2g_1;
|
|
5200
5200
|
var tmp;
|
|
5201
5201
|
if (response instanceof ResponseObject_0) {
|
|
5202
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, response, name, $this$flatMapResponses.
|
|
5202
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, response, name, $this$flatMapResponses.b2g_1);
|
|
5203
5203
|
} else {
|
|
5204
5204
|
if (response instanceof ReferenceObject_0) {
|
|
5205
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenAPIV3Parser_instance, response).le_1, name, $this$flatMapResponses.
|
|
5205
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenAPIV3Parser_instance, response).le_1, name, $this$flatMapResponses.b2g_1);
|
|
5206
5206
|
} else {
|
|
5207
5207
|
noWhenBranchMatchedException();
|
|
5208
5208
|
}
|
|
@@ -5221,10 +5221,10 @@ function OpenAPIV3Parser$toName$lambda(it) {
|
|
|
5221
5221
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5222
5222
|
|
|
5223
5223
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
5224
|
-
tmp = tmp_0.
|
|
5224
|
+
tmp = tmp_0.t2e([tmp$ret$1]);
|
|
5225
5225
|
break;
|
|
5226
5226
|
case false:
|
|
5227
|
-
tmp = Common_getInstance().
|
|
5227
|
+
tmp = Common_getInstance().t2e([it]);
|
|
5228
5228
|
break;
|
|
5229
5229
|
default:
|
|
5230
5230
|
noWhenBranchMatchedException();
|
|
@@ -5234,8 +5234,8 @@ function OpenAPIV3Parser$toName$lambda(it) {
|
|
|
5234
5234
|
}
|
|
5235
5235
|
function OpenAPIV3Parser() {
|
|
5236
5236
|
}
|
|
5237
|
-
protoOf(OpenAPIV3Parser).
|
|
5238
|
-
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.
|
|
5237
|
+
protoOf(OpenAPIV3Parser).q2e = function (moduleContent, strict) {
|
|
5238
|
+
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.d2g((new OpenAPI_0(Json(VOID, OpenAPIV3Parser$parse$lambda(strict)))).c1h(moduleContent.u22_1)));
|
|
5239
5239
|
var tmp;
|
|
5240
5240
|
if (tmp0_elvis_lhs == null) {
|
|
5241
5241
|
var message = 'Cannot yield non empty List<Node> for OpenAPI v3';
|
|
@@ -5245,11 +5245,11 @@ protoOf(OpenAPIV3Parser).r2e = function (moduleContent, strict) {
|
|
|
5245
5245
|
}
|
|
5246
5246
|
return new AST(nonEmptyListOf(new Module(moduleContent.t22_1, tmp), []));
|
|
5247
5247
|
};
|
|
5248
|
-
protoOf(OpenAPIV3Parser).
|
|
5248
|
+
protoOf(OpenAPIV3Parser).e2g = function (moduleContent, strict, $super) {
|
|
5249
5249
|
strict = strict === VOID ? false : strict;
|
|
5250
|
-
return $super === VOID ? this.
|
|
5250
|
+
return $super === VOID ? this.q2e(moduleContent, strict) : $super.q2e.call(this, moduleContent, strict);
|
|
5251
5251
|
};
|
|
5252
|
-
protoOf(OpenAPIV3Parser).
|
|
5252
|
+
protoOf(OpenAPIV3Parser).d2g = function (_this__u8e3s4) {
|
|
5253
5253
|
// Inline function 'kotlin.collections.reduce' call
|
|
5254
5254
|
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();
|
|
5255
5255
|
if (!iterator.h())
|