@flock/wirespec 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clikt-clikt.js +1126 -1126
- package/colormath-root-colormath.js +335 -335
- package/kotlin-kotlin-stdlib.js +8 -8
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-rgxgen.js +1760 -1760
- package/markdown.js +1792 -1792
- package/mordant-mordant.js +1498 -1498
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +1125 -1107
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +231 -231
- package/wirespec-src-converter-openapi.js +223 -231
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-generator.js +18 -18
- package/wirespec-src-plugin-arguments.js +72 -72
- package/wirespec-src-plugin-cli.js +105 -105
- package/wirespec-src-plugin-npm.js +1 -1
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
function Common() {
|
|
145
145
|
Common_instance = this;
|
|
146
146
|
}
|
|
147
|
-
protoOf(Common).
|
|
147
|
+
protoOf(Common).r22 = function (arg) {
|
|
148
148
|
// Inline function 'kotlin.collections.flatMap' call
|
|
149
149
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
150
150
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -176,16 +176,16 @@
|
|
|
176
176
|
function Companion() {
|
|
177
177
|
Companion_instance = this;
|
|
178
178
|
}
|
|
179
|
-
protoOf(Companion).
|
|
179
|
+
protoOf(Companion).s22 = function (json, ignoreUnknown) {
|
|
180
180
|
// Inline function 'kotlin.let' call
|
|
181
181
|
var tmp0_let = (new OpenAPI(Json(VOID, OpenApiParser$Companion$parse$lambda(ignoreUnknown)))).i17(json);
|
|
182
182
|
// Inline function 'kotlin.contracts.contract' call
|
|
183
183
|
// Inline function 'community.flock.wirespec.openapi.v2.Companion.parse.<anonymous>' call
|
|
184
|
-
return (new OpenApiParser(tmp0_let)).
|
|
184
|
+
return (new OpenApiParser(tmp0_let)).u22();
|
|
185
185
|
};
|
|
186
|
-
protoOf(Companion).
|
|
186
|
+
protoOf(Companion).v22 = function (json, ignoreUnknown, $super) {
|
|
187
187
|
ignoreUnknown = ignoreUnknown === VOID ? false : ignoreUnknown;
|
|
188
|
-
return $super === VOID ? this.
|
|
188
|
+
return $super === VOID ? this.s22(json, ignoreUnknown) : $super.s22.call(this, json, ignoreUnknown);
|
|
189
189
|
};
|
|
190
190
|
var Companion_instance;
|
|
191
191
|
function Companion_getInstance_1() {
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
}
|
|
196
196
|
function parseEndpoints($this) {
|
|
197
197
|
// Inline function 'kotlin.collections.flatMap' call
|
|
198
|
-
var tmp0_flatMap = $this.
|
|
198
|
+
var tmp0_flatMap = $this.t22_1.s17_1;
|
|
199
199
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
200
200
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
201
201
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -290,7 +290,7 @@
|
|
|
290
290
|
var element_4 = tmp0_iterator_6.y();
|
|
291
291
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
292
292
|
// Inline function 'kotlin.collections.map' call
|
|
293
|
-
var tmp0_elvis_lhs_0 = $this.
|
|
293
|
+
var tmp0_elvis_lhs_0 = $this.t22_1.q17_1;
|
|
294
294
|
var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.b19_1 : tmp0_elvis_lhs_0;
|
|
295
295
|
var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
296
296
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -306,7 +306,7 @@
|
|
|
306
306
|
tmp = toReference(schema, $this);
|
|
307
307
|
} else {
|
|
308
308
|
if (schema instanceof SchemaObject) {
|
|
309
|
-
tmp = toReference_0(schema, $this, Common_getInstance().
|
|
309
|
+
tmp = toReference_0(schema, $this, Common_getInstance().r22([name, 'RequestBody']));
|
|
310
310
|
} else {
|
|
311
311
|
if (schema == null) {
|
|
312
312
|
throw new NotImplementedError('An operation is not implemented: Not yet implemented');
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
// Inline function 'kotlin.collections.component2' call
|
|
349
349
|
var res = element_5.p2();
|
|
350
350
|
// Inline function 'kotlin.collections.map' call
|
|
351
|
-
var tmp0_elvis_lhs_3 = $this.
|
|
351
|
+
var tmp0_elvis_lhs_3 = $this.t22_1.r17_1;
|
|
352
352
|
var tmp1_elvis_lhs_0 = tmp0_elvis_lhs_3 == null ? operation.c19_1 : tmp0_elvis_lhs_3;
|
|
353
353
|
var tmp0_map_0 = tmp1_elvis_lhs_0 == null ? listOf('application/json') : tmp1_elvis_lhs_0;
|
|
354
354
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -373,7 +373,7 @@
|
|
|
373
373
|
tmp_5 = toReference(tmp0_safe_receiver, $this);
|
|
374
374
|
} else {
|
|
375
375
|
if (tmp0_safe_receiver instanceof SchemaObject) {
|
|
376
|
-
tmp_5 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().
|
|
376
|
+
tmp_5 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().r22([name, _StatusCode___get_value__impl__we50mu(status), item_2, 'ResponseBody']));
|
|
377
377
|
} else {
|
|
378
378
|
noWhenBranchMatchedException();
|
|
379
379
|
}
|
|
@@ -392,7 +392,7 @@
|
|
|
392
392
|
while (tmp0_iterator_10.w()) {
|
|
393
393
|
var e = tmp0_iterator_10.y();
|
|
394
394
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
395
|
-
var key = to(e.
|
|
395
|
+
var key = to(e.a1z_1, e.c1z_1);
|
|
396
396
|
if (set.s(key)) {
|
|
397
397
|
list_1.s(e);
|
|
398
398
|
}
|
|
@@ -407,20 +407,20 @@
|
|
|
407
407
|
return tmp0_flatMapTo;
|
|
408
408
|
}
|
|
409
409
|
function parseParameters($this) {
|
|
410
|
-
return flatMapRequests($this.
|
|
410
|
+
return flatMapRequests($this.t22_1, $this, OpenApiParser$parseParameters$lambda($this));
|
|
411
411
|
}
|
|
412
412
|
function parseRequestBody($this) {
|
|
413
|
-
return flatMapRequests($this.
|
|
413
|
+
return flatMapRequests($this.t22_1, $this, OpenApiParser$parseRequestBody$lambda($this));
|
|
414
414
|
}
|
|
415
415
|
function parseResponseBody($this) {
|
|
416
|
-
return flatMapResponses($this.
|
|
416
|
+
return flatMapResponses($this.t22_1, $this, OpenApiParser$parseResponseBody$lambda($this));
|
|
417
417
|
}
|
|
418
418
|
function parseDefinitions($this) {
|
|
419
419
|
// Inline function 'kotlin.collections.flatMap' call
|
|
420
420
|
// Inline function 'kotlin.collections.filter' call
|
|
421
421
|
// Inline function 'arrow.core.filterIsInstance' call
|
|
422
422
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
423
|
-
var tmp0_elvis_lhs = $this.
|
|
423
|
+
var tmp0_elvis_lhs = $this.t22_1.t17_1;
|
|
424
424
|
var tmp1_filterIsInstance = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
425
425
|
// Inline function 'kotlin.collections.filterValues' call
|
|
426
426
|
var result = LinkedHashMap_init_$Create$();
|
|
@@ -453,7 +453,7 @@
|
|
|
453
453
|
while (tmp0_iterator_1.w()) {
|
|
454
454
|
var element_0 = tmp0_iterator_1.y();
|
|
455
455
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
456
|
-
var list = flatten(element_0.p2(), $this, Common_getInstance().
|
|
456
|
+
var list = flatten(element_0.p2(), $this, Common_getInstance().r22([element_0.o2()]));
|
|
457
457
|
addAll(tmp0_flatMapTo, list);
|
|
458
458
|
}
|
|
459
459
|
return tmp0_flatMapTo;
|
|
@@ -513,7 +513,7 @@
|
|
|
513
513
|
return tmp0_mapTo;
|
|
514
514
|
}
|
|
515
515
|
function resolveParameterObject(_this__u8e3s4, $this) {
|
|
516
|
-
var tmp0_safe_receiver = $this.
|
|
516
|
+
var tmp0_safe_receiver = $this.t22_1.u17_1;
|
|
517
517
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u2(getReference(_this__u8e3s4, $this));
|
|
518
518
|
var tmp;
|
|
519
519
|
if (tmp1_elvis_lhs == null) {
|
|
@@ -525,7 +525,7 @@
|
|
|
525
525
|
return tmp;
|
|
526
526
|
}
|
|
527
527
|
function resolveResponseObject(_this__u8e3s4, $this) {
|
|
528
|
-
var tmp0_safe_receiver = $this.
|
|
528
|
+
var tmp0_safe_receiver = $this.t22_1.v17_1;
|
|
529
529
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u2(getReference(_this__u8e3s4, $this));
|
|
530
530
|
var tmp;
|
|
531
531
|
if (tmp1_elvis_lhs == null) {
|
|
@@ -537,7 +537,7 @@
|
|
|
537
537
|
return tmp;
|
|
538
538
|
}
|
|
539
539
|
function resolveSchemaObject(_this__u8e3s4, $this) {
|
|
540
|
-
var tmp0_safe_receiver = $this.
|
|
540
|
+
var tmp0_safe_receiver = $this.t22_1.t17_1;
|
|
541
541
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u2(getReference(_this__u8e3s4, $this));
|
|
542
542
|
var tmp;
|
|
543
543
|
if (tmp1_elvis_lhs == null) {
|
|
@@ -664,7 +664,7 @@
|
|
|
664
664
|
while (tmp0_iterator_0.w()) {
|
|
665
665
|
var e = tmp0_iterator_0.y();
|
|
666
666
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
|
|
667
|
-
var key = e.
|
|
667
|
+
var key = e.f1y_1;
|
|
668
668
|
if (set.s(key)) {
|
|
669
669
|
list_0.s(e);
|
|
670
670
|
}
|
|
@@ -703,7 +703,7 @@
|
|
|
703
703
|
tmp_6 = emptyList();
|
|
704
704
|
} else {
|
|
705
705
|
if (value instanceof SchemaObject) {
|
|
706
|
-
tmp_6 = flatten(value, $this, Common_getInstance().
|
|
706
|
+
tmp_6 = flatten(value, $this, Common_getInstance().r22([name, key_0]));
|
|
707
707
|
} else {
|
|
708
708
|
noWhenBranchMatchedException();
|
|
709
709
|
}
|
|
@@ -763,7 +763,7 @@
|
|
|
763
763
|
var key_1 = element_2.o2();
|
|
764
764
|
// Inline function 'kotlin.collections.component2' call
|
|
765
765
|
var value_0 = element_2.p2();
|
|
766
|
-
var list_3 = flatten_0(value_0, $this, Common_getInstance().
|
|
766
|
+
var list_3 = flatten_0(value_0, $this, Common_getInstance().r22([name, key_1]));
|
|
767
767
|
addAll(tmp0_flatMapTo_2, list_3);
|
|
768
768
|
}
|
|
769
769
|
|
|
@@ -778,7 +778,7 @@
|
|
|
778
778
|
tmp_8 = emptyList();
|
|
779
779
|
} else {
|
|
780
780
|
if (it instanceof SchemaObject) {
|
|
781
|
-
tmp_8 = flatten(it, $this, Common_getInstance().
|
|
781
|
+
tmp_8 = flatten(it, $this, Common_getInstance().r22([name, 'Array']));
|
|
782
782
|
} else {
|
|
783
783
|
if (it == null) {
|
|
784
784
|
tmp_8 = emptyList();
|
|
@@ -836,7 +836,7 @@
|
|
|
836
836
|
}
|
|
837
837
|
tmp = tmp_0;
|
|
838
838
|
} else if (!(schema.n1b_1 == null)) {
|
|
839
|
-
tmp = new Custom(Common_getInstance().
|
|
839
|
+
tmp = new Custom(Common_getInstance().r22([getReference(_this__u8e3s4, $this)]), false, false);
|
|
840
840
|
} else if (isPrimitive(schema.o1b_1)) {
|
|
841
841
|
tmp = new Primitive(toPrimitive(ensureNotNull(schema.o1b_1), $this), false, false);
|
|
842
842
|
} else {
|
|
@@ -846,10 +846,10 @@
|
|
|
846
846
|
var items = schema.p1b_1;
|
|
847
847
|
var tmp_2;
|
|
848
848
|
if (items instanceof ReferenceObject) {
|
|
849
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
849
|
+
tmp_2 = new Custom(Common_getInstance().r22([getReference(items, $this)]), true);
|
|
850
850
|
} else {
|
|
851
851
|
if (items instanceof SchemaObject) {
|
|
852
|
-
tmp_2 = toIterable(toReference_0(items, $this, Common_getInstance().
|
|
852
|
+
tmp_2 = toIterable(toReference_0(items, $this, Common_getInstance().r22([getReference(_this__u8e3s4, $this), 'Array'])));
|
|
853
853
|
} else {
|
|
854
854
|
if (items == null) {
|
|
855
855
|
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.m1a_1);
|
|
@@ -863,10 +863,10 @@
|
|
|
863
863
|
} else {
|
|
864
864
|
var tmp_3;
|
|
865
865
|
if (tmp0_let instanceof SchemaObject) {
|
|
866
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
866
|
+
tmp_3 = new Custom(Common_getInstance().r22([getReference(_this__u8e3s4, $this)]), false);
|
|
867
867
|
} else {
|
|
868
868
|
if (tmp0_let instanceof ReferenceObject) {
|
|
869
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
869
|
+
tmp_3 = new Custom(Common_getInstance().r22([getReference(tmp0_let, $this)]), false);
|
|
870
870
|
} else {
|
|
871
871
|
noWhenBranchMatchedException();
|
|
872
872
|
}
|
|
@@ -1057,14 +1057,14 @@
|
|
|
1057
1057
|
var value = item.p2();
|
|
1058
1058
|
var tmp;
|
|
1059
1059
|
if (value instanceof SchemaObject) {
|
|
1060
|
-
var tmp_0 = Companion_getInstance_0().
|
|
1061
|
-
var tmp_1 = !(value.n1b_1 == null) ? toReference_0(value, $this, Common_getInstance().
|
|
1060
|
+
var tmp_0 = Companion_getInstance_0().o1z(key);
|
|
1061
|
+
var tmp_1 = !(value.n1b_1 == null) ? toReference_0(value, $this, Common_getInstance().r22([name, key])) : equals(value.o1b_1, Type_ARRAY_getInstance()) ? toReference_0(value, $this, Common_getInstance().r22([name, key, 'Array'])) : toReference_0(value, $this, Common_getInstance().r22([name, key]));
|
|
1062
1062
|
var tmp1_safe_receiver = _this__u8e3s4.m1b_1;
|
|
1063
1063
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r(key);
|
|
1064
1064
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
1065
1065
|
} else {
|
|
1066
1066
|
if (value instanceof ReferenceObject) {
|
|
1067
|
-
var tmp_2 = Companion_getInstance_0().
|
|
1067
|
+
var tmp_2 = Companion_getInstance_0().o1z(key);
|
|
1068
1068
|
var tmp_3 = toReference(value, $this);
|
|
1069
1069
|
var tmp3_safe_receiver = _this__u8e3s4.m1b_1;
|
|
1070
1070
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.r(key);
|
|
@@ -1086,7 +1086,7 @@
|
|
|
1086
1086
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1087
1087
|
var tmp;
|
|
1088
1088
|
if (!(_this__u8e3s4.h1a_1 == null)) {
|
|
1089
|
-
tmp = new Custom(Common_getInstance().
|
|
1089
|
+
tmp = new Custom(Common_getInstance().r22([name, 'Parameter', tmp0_let.m19_1]), false);
|
|
1090
1090
|
} else {
|
|
1091
1091
|
var type = tmp0_let.r19_1;
|
|
1092
1092
|
var tmp_0;
|
|
@@ -1144,7 +1144,7 @@
|
|
|
1144
1144
|
var tmp1_let = tmp;
|
|
1145
1145
|
// Inline function 'kotlin.contracts.contract' call
|
|
1146
1146
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1147
|
-
var tmp_3 = Companion_getInstance_0().
|
|
1147
|
+
var tmp_3 = Companion_getInstance_0().o1z(_this__u8e3s4.m19_1);
|
|
1148
1148
|
var tmp0_elvis_lhs = _this__u8e3s4.p19_1;
|
|
1149
1149
|
return new Field(tmp_3, tmp1_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
1150
1150
|
}
|
|
@@ -1212,7 +1212,7 @@
|
|
|
1212
1212
|
// Inline function 'kotlin.let' call
|
|
1213
1213
|
// Inline function 'kotlin.contracts.contract' call
|
|
1214
1214
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1215
|
-
tmp_3 = new Param(Companion_getInstance_0().
|
|
1215
|
+
tmp_3 = new Param(Companion_getInstance_0().o1z(param), new Primitive(tmp1_safe_receiver, false));
|
|
1216
1216
|
}
|
|
1217
1217
|
var tmp2_elvis_lhs = tmp_3;
|
|
1218
1218
|
var tmp_4;
|
|
@@ -1243,7 +1243,7 @@
|
|
|
1243
1243
|
// Inline function 'kotlin.let' call
|
|
1244
1244
|
// Inline function 'kotlin.contracts.contract' call
|
|
1245
1245
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1246
|
-
tmp = Common_getInstance().
|
|
1246
|
+
tmp = Common_getInstance().r22([tmp0_safe_receiver]);
|
|
1247
1247
|
}
|
|
1248
1248
|
return tmp;
|
|
1249
1249
|
}
|
|
@@ -1265,21 +1265,21 @@
|
|
|
1265
1265
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda($this));
|
|
1266
1266
|
}
|
|
1267
1267
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
1268
|
-
this.
|
|
1269
|
-
this.
|
|
1270
|
-
this.
|
|
1271
|
-
this.
|
|
1272
|
-
this.
|
|
1268
|
+
this.w22_1 = path;
|
|
1269
|
+
this.x22_1 = pathItem;
|
|
1270
|
+
this.y22_1 = method;
|
|
1271
|
+
this.z22_1 = operation;
|
|
1272
|
+
this.a23_1 = type;
|
|
1273
1273
|
}
|
|
1274
1274
|
protoOf(FlattenRequest).toString = function () {
|
|
1275
|
-
return 'FlattenRequest(path=' + new Path(this.
|
|
1275
|
+
return 'FlattenRequest(path=' + new Path(this.w22_1) + ', pathItem=' + this.x22_1 + ', method=' + this.y22_1 + ', operation=' + this.z22_1 + ', type=' + this.a23_1 + ')';
|
|
1276
1276
|
};
|
|
1277
1277
|
protoOf(FlattenRequest).hashCode = function () {
|
|
1278
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1279
|
-
result = imul(result, 31) + this.w22_1.hashCode() | 0;
|
|
1278
|
+
var result = Path__hashCode_impl_go73kd(this.w22_1);
|
|
1280
1279
|
result = imul(result, 31) + this.x22_1.hashCode() | 0;
|
|
1281
1280
|
result = imul(result, 31) + this.y22_1.hashCode() | 0;
|
|
1282
|
-
result = imul(result, 31) +
|
|
1281
|
+
result = imul(result, 31) + this.z22_1.hashCode() | 0;
|
|
1282
|
+
result = imul(result, 31) + getStringHashCode(this.a23_1) | 0;
|
|
1283
1283
|
return result;
|
|
1284
1284
|
};
|
|
1285
1285
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -1288,15 +1288,15 @@
|
|
|
1288
1288
|
if (!(other instanceof FlattenRequest))
|
|
1289
1289
|
return false;
|
|
1290
1290
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
1291
|
-
if (!(this.
|
|
1292
|
-
return false;
|
|
1293
|
-
if (!this.w22_1.equals(tmp0_other_with_cast.w22_1))
|
|
1291
|
+
if (!(this.w22_1 === tmp0_other_with_cast.w22_1))
|
|
1294
1292
|
return false;
|
|
1295
1293
|
if (!this.x22_1.equals(tmp0_other_with_cast.x22_1))
|
|
1296
1294
|
return false;
|
|
1297
1295
|
if (!this.y22_1.equals(tmp0_other_with_cast.y22_1))
|
|
1298
1296
|
return false;
|
|
1299
|
-
if (!
|
|
1297
|
+
if (!this.z22_1.equals(tmp0_other_with_cast.z22_1))
|
|
1298
|
+
return false;
|
|
1299
|
+
if (!(this.a23_1 === tmp0_other_with_cast.a23_1))
|
|
1300
1300
|
return false;
|
|
1301
1301
|
return true;
|
|
1302
1302
|
};
|
|
@@ -1329,7 +1329,7 @@
|
|
|
1329
1329
|
// Inline function 'kotlin.collections.component2' call
|
|
1330
1330
|
var operation = element_0.p2();
|
|
1331
1331
|
// Inline function 'kotlin.collections.map' call
|
|
1332
|
-
var tmp0_elvis_lhs = $this.
|
|
1332
|
+
var tmp0_elvis_lhs = $this.t22_1.q17_1;
|
|
1333
1333
|
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? operation.b19_1 : tmp0_elvis_lhs;
|
|
1334
1334
|
var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
|
|
1335
1335
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1360,25 +1360,25 @@
|
|
|
1360
1360
|
return tmp0_flatMapTo_1;
|
|
1361
1361
|
}
|
|
1362
1362
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
1363
|
-
this.
|
|
1364
|
-
this.
|
|
1365
|
-
this.
|
|
1366
|
-
this.
|
|
1367
|
-
this.
|
|
1368
|
-
this.
|
|
1369
|
-
this.
|
|
1363
|
+
this.b23_1 = path;
|
|
1364
|
+
this.c23_1 = pathItem;
|
|
1365
|
+
this.d23_1 = method;
|
|
1366
|
+
this.e23_1 = operation;
|
|
1367
|
+
this.f23_1 = statusCode;
|
|
1368
|
+
this.g23_1 = response;
|
|
1369
|
+
this.h23_1 = type;
|
|
1370
1370
|
}
|
|
1371
1371
|
protoOf(FlattenResponse).toString = function () {
|
|
1372
|
-
return 'FlattenResponse(path=' + new Path(this.
|
|
1372
|
+
return 'FlattenResponse(path=' + new Path(this.b23_1) + ', pathItem=' + this.c23_1 + ', method=' + this.d23_1 + ', operation=' + this.e23_1 + ', statusCode=' + new StatusCode(this.f23_1) + ', response=' + this.g23_1 + ', type=' + this.h23_1 + ')';
|
|
1373
1373
|
};
|
|
1374
1374
|
protoOf(FlattenResponse).hashCode = function () {
|
|
1375
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1376
|
-
result = imul(result, 31) + this.b23_1.hashCode() | 0;
|
|
1375
|
+
var result = Path__hashCode_impl_go73kd(this.b23_1);
|
|
1377
1376
|
result = imul(result, 31) + this.c23_1.hashCode() | 0;
|
|
1378
1377
|
result = imul(result, 31) + this.d23_1.hashCode() | 0;
|
|
1379
|
-
result = imul(result, 31) +
|
|
1380
|
-
result = imul(result, 31) +
|
|
1381
|
-
result = imul(result, 31) +
|
|
1378
|
+
result = imul(result, 31) + this.e23_1.hashCode() | 0;
|
|
1379
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.f23_1) | 0;
|
|
1380
|
+
result = imul(result, 31) + hashCode(this.g23_1) | 0;
|
|
1381
|
+
result = imul(result, 31) + getStringHashCode(this.h23_1) | 0;
|
|
1382
1382
|
return result;
|
|
1383
1383
|
};
|
|
1384
1384
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -1387,19 +1387,19 @@
|
|
|
1387
1387
|
if (!(other instanceof FlattenResponse))
|
|
1388
1388
|
return false;
|
|
1389
1389
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
1390
|
-
if (!(this.
|
|
1391
|
-
return false;
|
|
1392
|
-
if (!this.b23_1.equals(tmp0_other_with_cast.b23_1))
|
|
1390
|
+
if (!(this.b23_1 === tmp0_other_with_cast.b23_1))
|
|
1393
1391
|
return false;
|
|
1394
1392
|
if (!this.c23_1.equals(tmp0_other_with_cast.c23_1))
|
|
1395
1393
|
return false;
|
|
1396
1394
|
if (!this.d23_1.equals(tmp0_other_with_cast.d23_1))
|
|
1397
1395
|
return false;
|
|
1398
|
-
if (!
|
|
1396
|
+
if (!this.e23_1.equals(tmp0_other_with_cast.e23_1))
|
|
1399
1397
|
return false;
|
|
1400
|
-
if (!
|
|
1398
|
+
if (!(this.f23_1 === tmp0_other_with_cast.f23_1))
|
|
1401
1399
|
return false;
|
|
1402
|
-
if (!(this.g23_1
|
|
1400
|
+
if (!equals(this.g23_1, tmp0_other_with_cast.g23_1))
|
|
1401
|
+
return false;
|
|
1402
|
+
if (!(this.h23_1 === tmp0_other_with_cast.h23_1))
|
|
1403
1403
|
return false;
|
|
1404
1404
|
return true;
|
|
1405
1405
|
};
|
|
@@ -1482,9 +1482,9 @@
|
|
|
1482
1482
|
}
|
|
1483
1483
|
function OpenApiParser$parseParameters$lambda(this$0) {
|
|
1484
1484
|
return function (req) {
|
|
1485
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1486
|
-
var tmp0_elvis_lhs = toName(req.
|
|
1487
|
-
var name = tmp0_elvis_lhs == null ? toName_0(req.
|
|
1485
|
+
var parameters = plus(resolveParameters_0(req.x22_1, this$0), resolveParameters(req.z22_1, this$0));
|
|
1486
|
+
var tmp0_elvis_lhs = toName(req.z22_1, this$0);
|
|
1487
|
+
var name = tmp0_elvis_lhs == null ? toName_0(req.w22_1, this$0) + req.y22_1.b9_1 : tmp0_elvis_lhs;
|
|
1488
1488
|
var tmp$ret$5;
|
|
1489
1489
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1490
1490
|
var tmp$ret$2;
|
|
@@ -1514,7 +1514,7 @@
|
|
|
1514
1514
|
var tmp$ret$3;
|
|
1515
1515
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
1516
1516
|
var tmp0_safe_receiver = element_0.q19_1;
|
|
1517
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_0(tmp0_safe_receiver, this$0, Common_getInstance().
|
|
1517
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_0(tmp0_safe_receiver, this$0, Common_getInstance().r22([name, 'Parameter', element_0.m19_1]));
|
|
1518
1518
|
tmp$ret$3 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
1519
1519
|
var list = tmp$ret$3;
|
|
1520
1520
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -1526,9 +1526,9 @@
|
|
|
1526
1526
|
}
|
|
1527
1527
|
function OpenApiParser$parseRequestBody$lambda(this$0) {
|
|
1528
1528
|
return function (req) {
|
|
1529
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1530
|
-
var tmp0_elvis_lhs = toName(req.
|
|
1531
|
-
var name = tmp0_elvis_lhs == null ? toName_0(req.
|
|
1529
|
+
var parameters = plus(resolveParameters_0(req.x22_1, this$0), resolveParameters(req.z22_1, this$0));
|
|
1530
|
+
var tmp0_elvis_lhs = toName(req.z22_1, this$0);
|
|
1531
|
+
var name = tmp0_elvis_lhs == null ? toName_0(req.w22_1, this$0) + req.y22_1.b9_1 : tmp0_elvis_lhs;
|
|
1532
1532
|
var tmp$ret$5;
|
|
1533
1533
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1534
1534
|
var tmp$ret$4;
|
|
@@ -1541,7 +1541,7 @@
|
|
|
1541
1541
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1542
1542
|
var tmp;
|
|
1543
1543
|
if (!(element.h1a_1 == null)) {
|
|
1544
|
-
var tmp_0 = Common_getInstance().
|
|
1544
|
+
var tmp_0 = Common_getInstance().r22([name, 'Parameter', element.m19_1]);
|
|
1545
1545
|
var tmp$ret$2;
|
|
1546
1546
|
// Inline function 'kotlin.collections.map' call
|
|
1547
1547
|
var tmp0_map = ensureNotNull(element.h1a_1);
|
|
@@ -1569,7 +1569,7 @@
|
|
|
1569
1569
|
tmp$ret$4 = tmp0_flatMapTo;
|
|
1570
1570
|
tmp$ret$5 = tmp$ret$4;
|
|
1571
1571
|
var enums = tmp$ret$5;
|
|
1572
|
-
var tmp1_safe_receiver = req.
|
|
1572
|
+
var tmp1_safe_receiver = req.z22_1.d19_1;
|
|
1573
1573
|
var tmp_1;
|
|
1574
1574
|
if (tmp1_safe_receiver == null) {
|
|
1575
1575
|
tmp_1 = null;
|
|
@@ -1639,13 +1639,13 @@
|
|
|
1639
1639
|
switch (tmp0) {
|
|
1640
1640
|
case -1:
|
|
1641
1641
|
case 5:
|
|
1642
|
-
tmp_5 = flatten(schema, this$0, Common_getInstance().
|
|
1642
|
+
tmp_5 = flatten(schema, this$0, Common_getInstance().r22([name, 'RequestBody']));
|
|
1643
1643
|
break;
|
|
1644
1644
|
case 4:
|
|
1645
1645
|
var tmp$ret$12;
|
|
1646
1646
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1647
1647
|
var tmp1_safe_receiver_0 = schema.p1b_1;
|
|
1648
|
-
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
1648
|
+
var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().r22([name, 'RequestBody']));
|
|
1649
1649
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1650
1650
|
tmp$ret$12 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1651
1651
|
|
|
@@ -1674,9 +1674,9 @@
|
|
|
1674
1674
|
}
|
|
1675
1675
|
function OpenApiParser$parseResponseBody$lambda(this$0) {
|
|
1676
1676
|
return function (res) {
|
|
1677
|
-
var response = resolve_1(res.
|
|
1678
|
-
var tmp0_elvis_lhs = toName(res.
|
|
1679
|
-
var name = tmp0_elvis_lhs == null ? toName_0(res.
|
|
1677
|
+
var response = resolve_1(res.g23_1, this$0);
|
|
1678
|
+
var tmp0_elvis_lhs = toName(res.e23_1, this$0);
|
|
1679
|
+
var name = tmp0_elvis_lhs == null ? toName_0(res.b23_1, this$0) + res.d23_1.b9_1 : tmp0_elvis_lhs;
|
|
1680
1680
|
var schema = response.a1c_1;
|
|
1681
1681
|
var tmp;
|
|
1682
1682
|
if (schema instanceof SchemaObject) {
|
|
@@ -1686,13 +1686,13 @@
|
|
|
1686
1686
|
switch (tmp0) {
|
|
1687
1687
|
case -1:
|
|
1688
1688
|
case 5:
|
|
1689
|
-
tmp_0 = flatten(schema, this$0, Common_getInstance().
|
|
1689
|
+
tmp_0 = flatten(schema, this$0, Common_getInstance().r22([name, _StatusCode___get_value__impl__we50mu(res.f23_1), res.h23_1, 'ResponseBody']));
|
|
1690
1690
|
break;
|
|
1691
1691
|
case 4:
|
|
1692
1692
|
var tmp$ret$0;
|
|
1693
1693
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1694
1694
|
var tmp2_safe_receiver = schema.p1b_1;
|
|
1695
|
-
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : flatten_0(tmp2_safe_receiver, this$0, Common_getInstance().
|
|
1695
|
+
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : flatten_0(tmp2_safe_receiver, this$0, Common_getInstance().r22([name, _StatusCode___get_value__impl__we50mu(res.f23_1), res.h23_1, 'ResponseBody']));
|
|
1696
1696
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1697
1697
|
tmp$ret$0 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1698
1698
|
|
|
@@ -1724,10 +1724,10 @@
|
|
|
1724
1724
|
tmp$ret$0 = it;
|
|
1725
1725
|
tmp$ret$1 = tmp$ret$0.substring(1, tmp0_substring);
|
|
1726
1726
|
|
|
1727
|
-
tmp = tmp_0.
|
|
1727
|
+
tmp = tmp_0.r22([tmp$ret$1]);
|
|
1728
1728
|
break;
|
|
1729
1729
|
case false:
|
|
1730
|
-
tmp = Common_getInstance().
|
|
1730
|
+
tmp = Common_getInstance().r22([it]);
|
|
1731
1731
|
break;
|
|
1732
1732
|
default:
|
|
1733
1733
|
noWhenBranchMatchedException();
|
|
@@ -1738,24 +1738,24 @@
|
|
|
1738
1738
|
}
|
|
1739
1739
|
function OpenApiParser(openApi) {
|
|
1740
1740
|
Companion_getInstance_1();
|
|
1741
|
-
this.
|
|
1741
|
+
this.t22_1 = openApi;
|
|
1742
1742
|
}
|
|
1743
|
-
protoOf(OpenApiParser).
|
|
1743
|
+
protoOf(OpenApiParser).u22 = function () {
|
|
1744
1744
|
return plus(plus(plus(plus(parseEndpoints(this), parseParameters(this)), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
|
|
1745
1745
|
};
|
|
1746
1746
|
function toMap_0(_this__u8e3s4) {
|
|
1747
1747
|
var tmp;
|
|
1748
1748
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1749
|
-
tmp = _this__u8e3s4.
|
|
1749
|
+
tmp = _this__u8e3s4.i21(VOID, VOID, true);
|
|
1750
1750
|
} else {
|
|
1751
1751
|
if (_this__u8e3s4 instanceof Any) {
|
|
1752
|
-
tmp = _this__u8e3s4.
|
|
1752
|
+
tmp = _this__u8e3s4.a21(VOID, true);
|
|
1753
1753
|
} else {
|
|
1754
1754
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1755
|
-
tmp = _this__u8e3s4.
|
|
1755
|
+
tmp = _this__u8e3s4.k21(VOID, VOID, true);
|
|
1756
1756
|
} else {
|
|
1757
1757
|
if (_this__u8e3s4 instanceof Unit) {
|
|
1758
|
-
tmp = _this__u8e3s4.
|
|
1758
|
+
tmp = _this__u8e3s4.d21(VOID, true);
|
|
1759
1759
|
} else {
|
|
1760
1760
|
noWhenBranchMatchedException();
|
|
1761
1761
|
}
|
|
@@ -1800,16 +1800,16 @@
|
|
|
1800
1800
|
function toIterable(_this__u8e3s4) {
|
|
1801
1801
|
var tmp;
|
|
1802
1802
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1803
|
-
tmp = _this__u8e3s4.
|
|
1803
|
+
tmp = _this__u8e3s4.i21(VOID, true);
|
|
1804
1804
|
} else {
|
|
1805
1805
|
if (_this__u8e3s4 instanceof Any) {
|
|
1806
|
-
tmp = _this__u8e3s4.
|
|
1806
|
+
tmp = _this__u8e3s4.a21(true);
|
|
1807
1807
|
} else {
|
|
1808
1808
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
1809
|
-
tmp = _this__u8e3s4.
|
|
1809
|
+
tmp = _this__u8e3s4.k21(VOID, true);
|
|
1810
1810
|
} else {
|
|
1811
1811
|
if (_this__u8e3s4 instanceof Unit) {
|
|
1812
|
-
tmp = _this__u8e3s4.
|
|
1812
|
+
tmp = _this__u8e3s4.d21(true);
|
|
1813
1813
|
} else {
|
|
1814
1814
|
noWhenBranchMatchedException();
|
|
1815
1815
|
}
|
|
@@ -1863,16 +1863,16 @@
|
|
|
1863
1863
|
function Companion_0() {
|
|
1864
1864
|
Companion_instance_0 = this;
|
|
1865
1865
|
}
|
|
1866
|
-
protoOf(Companion_0).
|
|
1866
|
+
protoOf(Companion_0).s22 = function (json, strict) {
|
|
1867
1867
|
// Inline function 'kotlin.let' call
|
|
1868
1868
|
var tmp0_let = (new OpenAPI_0(Json(VOID, OpenApiParser$Companion$parse$lambda_0(strict)))).i17(json);
|
|
1869
1869
|
// Inline function 'kotlin.contracts.contract' call
|
|
1870
1870
|
// Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
|
|
1871
1871
|
return parse(new OpenApiParser_0(tmp0_let));
|
|
1872
1872
|
};
|
|
1873
|
-
protoOf(Companion_0).
|
|
1873
|
+
protoOf(Companion_0).i23 = function (json, strict, $super) {
|
|
1874
1874
|
strict = strict === VOID ? false : strict;
|
|
1875
|
-
return $super === VOID ? this.
|
|
1875
|
+
return $super === VOID ? this.s22(json, strict) : $super.s22.call(this, json, strict);
|
|
1876
1876
|
};
|
|
1877
1877
|
var Companion_instance_0;
|
|
1878
1878
|
function Companion_getInstance_2() {
|
|
@@ -1885,7 +1885,7 @@
|
|
|
1885
1885
|
}
|
|
1886
1886
|
function parseEndpoint($this) {
|
|
1887
1887
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1888
|
-
var tmp0_flatMap = $this.
|
|
1888
|
+
var tmp0_flatMap = $this.j23_1.i1g_1;
|
|
1889
1889
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1890
1890
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
1891
1891
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -1934,7 +1934,7 @@
|
|
|
1934
1934
|
var item_0 = tmp0_iterator_2.y();
|
|
1935
1935
|
var tmp$ret$9;
|
|
1936
1936
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1937
|
-
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().
|
|
1937
|
+
tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().r22([name, 'Parameter', item_0.j1i_1]));
|
|
1938
1938
|
tmp0_mapTo_0.s(tmp$ret$9);
|
|
1939
1939
|
}
|
|
1940
1940
|
var query = tmp0_mapTo_0;
|
|
@@ -1957,7 +1957,7 @@
|
|
|
1957
1957
|
var item_1 = tmp0_iterator_4.y();
|
|
1958
1958
|
var tmp$ret$15;
|
|
1959
1959
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1960
|
-
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().
|
|
1960
|
+
tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().r22([name, 'Parameter', item_1.j1i_1]));
|
|
1961
1961
|
tmp0_mapTo_1.s(tmp$ret$15);
|
|
1962
1962
|
}
|
|
1963
1963
|
var headers = tmp0_mapTo_1;
|
|
@@ -1980,7 +1980,7 @@
|
|
|
1980
1980
|
var item_2 = tmp0_iterator_6.y();
|
|
1981
1981
|
var tmp$ret$21;
|
|
1982
1982
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1983
|
-
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().
|
|
1983
|
+
tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().r22([name, 'Parameter', item_2.j1i_1]));
|
|
1984
1984
|
tmp0_mapTo_2.s(tmp$ret$21);
|
|
1985
1985
|
}
|
|
1986
1986
|
var cookies = tmp0_mapTo_2;
|
|
@@ -2018,7 +2018,7 @@
|
|
|
2018
2018
|
tmp_2 = toReference_1(schema, $this);
|
|
2019
2019
|
} else {
|
|
2020
2020
|
if (schema instanceof SchemaObject_0) {
|
|
2021
|
-
tmp_2 = toReference_2(schema, $this, Common_getInstance().
|
|
2021
|
+
tmp_2 = toReference_2(schema, $this, Common_getInstance().r22([name, 'RequestBody']));
|
|
2022
2022
|
} else {
|
|
2023
2023
|
if (schema == null) {
|
|
2024
2024
|
throw new NotImplementedError('An operation is not implemented: Not yet implemented');
|
|
@@ -2091,7 +2091,7 @@
|
|
|
2091
2091
|
var item_5 = tmp0_iterator_10.y();
|
|
2092
2092
|
var tmp$ret$40;
|
|
2093
2093
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2094
|
-
tmp$ret$40 = toField_3(resolve_4(item_5.p2(), $this), $this, item_5.o2(), Common_getInstance().
|
|
2094
|
+
tmp$ret$40 = toField_3(resolve_4(item_5.p2(), $this), $this, item_5.o2(), Common_getInstance().r22([name, 'ResponseHeader']));
|
|
2095
2095
|
tmp0_mapTo_5.s(tmp$ret$40);
|
|
2096
2096
|
}
|
|
2097
2097
|
tmp_6 = tmp0_mapTo_5;
|
|
@@ -2105,7 +2105,7 @@
|
|
|
2105
2105
|
tmp_9 = toReference_1(schema_0, $this);
|
|
2106
2106
|
} else {
|
|
2107
2107
|
if (schema_0 instanceof SchemaObject_0) {
|
|
2108
|
-
tmp_9 = toReference_2(schema_0, $this, Common_getInstance().
|
|
2108
|
+
tmp_9 = toReference_2(schema_0, $this, Common_getInstance().r22([name, _StatusCode___get_value__impl__we50mu_0(status), _MediaType___get_value__impl__wy58mp(contentType), 'ResponseBody']));
|
|
2109
2109
|
} else {
|
|
2110
2110
|
if (schema_0 == null) {
|
|
2111
2111
|
tmp_9 = new Any(false);
|
|
@@ -2137,19 +2137,19 @@
|
|
|
2137
2137
|
return tmp0_flatMapTo;
|
|
2138
2138
|
}
|
|
2139
2139
|
function parseParameters_0($this) {
|
|
2140
|
-
return flatMapRequests_0($this.
|
|
2140
|
+
return flatMapRequests_0($this.j23_1, $this, OpenApiParser$parseParameters$lambda_0($this));
|
|
2141
2141
|
}
|
|
2142
2142
|
function parseRequestBody_0($this) {
|
|
2143
|
-
return flatMapRequests_0($this.
|
|
2143
|
+
return flatMapRequests_0($this.j23_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
|
|
2144
2144
|
}
|
|
2145
2145
|
function parseResponseBody_0($this) {
|
|
2146
|
-
return flatMapResponses_0($this.
|
|
2146
|
+
return flatMapResponses_0($this.j23_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
|
|
2147
2147
|
}
|
|
2148
2148
|
function parseComponents($this) {
|
|
2149
2149
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2150
2150
|
// Inline function 'kotlin.collections.filter' call
|
|
2151
2151
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2152
|
-
var tmp0_safe_receiver = $this.
|
|
2152
|
+
var tmp0_safe_receiver = $this.j23_1.j1g_1;
|
|
2153
2153
|
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r1l_1;
|
|
2154
2154
|
var tmp1_filter = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2155
2155
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -2177,7 +2177,7 @@
|
|
|
2177
2177
|
while (tmp0_iterator_0.w()) {
|
|
2178
2178
|
var element_0 = tmp0_iterator_0.y();
|
|
2179
2179
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2180
|
-
var list = flatten_2(element_0.p2(), $this, Common_getInstance().
|
|
2180
|
+
var list = flatten_2(element_0.p2(), $this, Common_getInstance().r22([element_0.o2()]));
|
|
2181
2181
|
addAll(tmp0_flatMapTo, list);
|
|
2182
2182
|
}
|
|
2183
2183
|
return tmp0_flatMapTo;
|
|
@@ -2194,7 +2194,7 @@
|
|
|
2194
2194
|
// Inline function 'kotlin.let' call
|
|
2195
2195
|
// Inline function 'kotlin.contracts.contract' call
|
|
2196
2196
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2197
|
-
tmp = Common_getInstance().
|
|
2197
|
+
tmp = Common_getInstance().r22([tmp0_safe_receiver]);
|
|
2198
2198
|
}
|
|
2199
2199
|
return tmp;
|
|
2200
2200
|
}
|
|
@@ -2267,7 +2267,7 @@
|
|
|
2267
2267
|
var tmp1_safe_receiver = tmp$ret$7;
|
|
2268
2268
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f1i_1;
|
|
2269
2269
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : resolve_3(tmp2_safe_receiver, $this);
|
|
2270
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : toReference_2(tmp3_safe_receiver, $this, Common_getInstance().
|
|
2270
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : toReference_2(tmp3_safe_receiver, $this, Common_getInstance().r22([name, 'Parameter', param]));
|
|
2271
2271
|
var tmp_0;
|
|
2272
2272
|
if (tmp4_safe_receiver == null) {
|
|
2273
2273
|
tmp_0 = null;
|
|
@@ -2275,7 +2275,7 @@
|
|
|
2275
2275
|
// Inline function 'kotlin.let' call
|
|
2276
2276
|
// Inline function 'kotlin.contracts.contract' call
|
|
2277
2277
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2278
|
-
tmp_0 = new Param(Companion_getInstance_0().
|
|
2278
|
+
tmp_0 = new Param(Companion_getInstance_0().o1z(param), tmp4_safe_receiver);
|
|
2279
2279
|
}
|
|
2280
2280
|
|
|
2281
2281
|
var tmp5_elvis_lhs = tmp_0;
|
|
@@ -2380,7 +2380,7 @@
|
|
|
2380
2380
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2381
2381
|
}
|
|
2382
2382
|
function resolveParameterObject_0(_this__u8e3s4, $this) {
|
|
2383
|
-
var tmp0_safe_receiver = $this.
|
|
2383
|
+
var tmp0_safe_receiver = $this.j23_1.j1g_1;
|
|
2384
2384
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t1l_1;
|
|
2385
2385
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
|
|
2386
2386
|
var tmp;
|
|
@@ -2405,7 +2405,7 @@
|
|
|
2405
2405
|
return tmp;
|
|
2406
2406
|
}
|
|
2407
2407
|
function resolveSchemaObject_0(_this__u8e3s4, $this) {
|
|
2408
|
-
var tmp0_safe_receiver = $this.
|
|
2408
|
+
var tmp0_safe_receiver = $this.j23_1.j1g_1;
|
|
2409
2409
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r1l_1;
|
|
2410
2410
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
|
|
2411
2411
|
var tmp;
|
|
@@ -2438,7 +2438,7 @@
|
|
|
2438
2438
|
return tmp_1;
|
|
2439
2439
|
}
|
|
2440
2440
|
function resolveHeaderObject(_this__u8e3s4, $this) {
|
|
2441
|
-
var tmp0_safe_receiver = $this.
|
|
2441
|
+
var tmp0_safe_receiver = $this.j23_1.j1g_1;
|
|
2442
2442
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w1l_1;
|
|
2443
2443
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
|
|
2444
2444
|
var tmp;
|
|
@@ -2471,7 +2471,7 @@
|
|
|
2471
2471
|
return tmp_1;
|
|
2472
2472
|
}
|
|
2473
2473
|
function resolveRequestBodyObject(_this__u8e3s4, $this) {
|
|
2474
|
-
var tmp0_safe_receiver = $this.
|
|
2474
|
+
var tmp0_safe_receiver = $this.j23_1.j1g_1;
|
|
2475
2475
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v1l_1;
|
|
2476
2476
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
|
|
2477
2477
|
var tmp;
|
|
@@ -2504,7 +2504,7 @@
|
|
|
2504
2504
|
return tmp_1;
|
|
2505
2505
|
}
|
|
2506
2506
|
function resolveResponseObject_0(_this__u8e3s4, $this) {
|
|
2507
|
-
var tmp0_safe_receiver = $this.
|
|
2507
|
+
var tmp0_safe_receiver = $this.j23_1.j1g_1;
|
|
2508
2508
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s1l_1;
|
|
2509
2509
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
|
|
2510
2510
|
var tmp;
|
|
@@ -2653,7 +2653,7 @@
|
|
|
2653
2653
|
tmp_3 = toReference_1(item, $this);
|
|
2654
2654
|
} else {
|
|
2655
2655
|
if (item instanceof SchemaObject_0) {
|
|
2656
|
-
tmp_3 = toReference_2(item, $this, Common_getInstance().
|
|
2656
|
+
tmp_3 = toReference_2(item, $this, Common_getInstance().r22([name, tmp1_anonymous.toString()]));
|
|
2657
2657
|
} else {
|
|
2658
2658
|
noWhenBranchMatchedException();
|
|
2659
2659
|
}
|
|
@@ -2679,7 +2679,7 @@
|
|
|
2679
2679
|
tmp_5 = emptyList();
|
|
2680
2680
|
} else {
|
|
2681
2681
|
if (element instanceof SchemaObject_0) {
|
|
2682
|
-
tmp_5 = flatten_1(element, $this, Common_getInstance().
|
|
2682
|
+
tmp_5 = flatten_1(element, $this, Common_getInstance().r22([name, tmp3_anonymous.toString()]));
|
|
2683
2683
|
} else {
|
|
2684
2684
|
noWhenBranchMatchedException();
|
|
2685
2685
|
}
|
|
@@ -2709,7 +2709,7 @@
|
|
|
2709
2709
|
while (tmp0_iterator_2.w()) {
|
|
2710
2710
|
var e = tmp0_iterator_2.y();
|
|
2711
2711
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2712
|
-
var key = e.
|
|
2712
|
+
var key = e.f1y_1;
|
|
2713
2713
|
if (set.s(key)) {
|
|
2714
2714
|
list_1.s(e);
|
|
2715
2715
|
}
|
|
@@ -2723,45 +2723,37 @@
|
|
|
2723
2723
|
while (tmp0_iterator_3.w()) {
|
|
2724
2724
|
var element_1 = tmp0_iterator_3.y();
|
|
2725
2725
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2726
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
2726
2727
|
var tmp_7;
|
|
2727
2728
|
if (element_1 instanceof ReferenceObject_0) {
|
|
2728
|
-
|
|
2729
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
2730
|
+
var tmp0_elvis_lhs_0 = resolveSchemaObject_0(element_1, $this).sd_1.v1j_1;
|
|
2731
|
+
tmp_7 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
2729
2732
|
} else {
|
|
2730
2733
|
if (element_1 instanceof SchemaObject_0) {
|
|
2731
|
-
// Inline function 'kotlin.collections.flatMap' call
|
|
2732
2734
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2733
|
-
var
|
|
2734
|
-
|
|
2735
|
-
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2736
|
-
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
2737
|
-
// Inline function 'kotlin.collections.iterator' call
|
|
2738
|
-
var tmp0_iterator_4 = tmp1_flatMap.n2().v();
|
|
2739
|
-
while (tmp0_iterator_4.w()) {
|
|
2740
|
-
var element_2 = tmp0_iterator_4.y();
|
|
2741
|
-
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>.<anonymous>' call
|
|
2742
|
-
// Inline function 'kotlin.collections.component1' call
|
|
2743
|
-
var key_0 = element_2.o2();
|
|
2744
|
-
// Inline function 'kotlin.collections.component2' call
|
|
2745
|
-
var value = element_2.p2();
|
|
2746
|
-
var tmp_8;
|
|
2747
|
-
if (value instanceof ReferenceObject_0) {
|
|
2748
|
-
tmp_8 = emptyList();
|
|
2749
|
-
} else {
|
|
2750
|
-
if (value instanceof SchemaObject_0) {
|
|
2751
|
-
tmp_8 = flatten_1(value, $this, Common_getInstance().q22([name, key_0]));
|
|
2752
|
-
} else {
|
|
2753
|
-
noWhenBranchMatchedException();
|
|
2754
|
-
}
|
|
2755
|
-
}
|
|
2756
|
-
var list_2 = tmp_8;
|
|
2757
|
-
addAll(tmp0_flatMapTo_1, list_2);
|
|
2758
|
-
}
|
|
2759
|
-
tmp_7 = tmp0_flatMapTo_1;
|
|
2735
|
+
var tmp0_elvis_lhs_1 = element_1.v1j_1;
|
|
2736
|
+
tmp_7 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
2760
2737
|
} else {
|
|
2761
2738
|
noWhenBranchMatchedException();
|
|
2762
2739
|
}
|
|
2763
2740
|
}
|
|
2764
|
-
var
|
|
2741
|
+
var tmp2_flatMap = tmp_7;
|
|
2742
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2743
|
+
var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
|
|
2744
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
2745
|
+
var tmp0_iterator_4 = tmp2_flatMap.n2().v();
|
|
2746
|
+
while (tmp0_iterator_4.w()) {
|
|
2747
|
+
var element_2 = tmp0_iterator_4.y();
|
|
2748
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>.<anonymous>' call
|
|
2749
|
+
// Inline function 'kotlin.collections.component1' call
|
|
2750
|
+
var key_0 = element_2.o2();
|
|
2751
|
+
// Inline function 'kotlin.collections.component2' call
|
|
2752
|
+
var value = element_2.p2();
|
|
2753
|
+
var list_2 = flatten_2(value, $this, Common_getInstance().r22([name, key_0]));
|
|
2754
|
+
addAll(tmp0_flatMapTo_1, list_2);
|
|
2755
|
+
}
|
|
2756
|
+
var list_3 = tmp0_flatMapTo_1;
|
|
2765
2757
|
addAll(tmp0_flatMapTo_0, list_3);
|
|
2766
2758
|
}
|
|
2767
2759
|
tmp = plus(tmp_6, tmp0_flatMapTo_0);
|
|
@@ -2774,10 +2766,10 @@
|
|
|
2774
2766
|
var tmp0_iterator_5 = tmp8_map.v();
|
|
2775
2767
|
while (tmp0_iterator_5.w()) {
|
|
2776
2768
|
var item_0 = tmp0_iterator_5.y();
|
|
2777
|
-
var tmp$ret$
|
|
2769
|
+
var tmp$ret$25;
|
|
2778
2770
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2779
|
-
tmp$ret$
|
|
2780
|
-
tmp0_mapTo.s(tmp$ret$
|
|
2771
|
+
tmp$ret$25 = item_0.n10();
|
|
2772
|
+
tmp0_mapTo.s(tmp$ret$25);
|
|
2781
2773
|
}
|
|
2782
2774
|
var tmp9_let = toSet(tmp0_mapTo);
|
|
2783
2775
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -2785,7 +2777,7 @@
|
|
|
2785
2777
|
tmp = listOf(new Enum(name, tmp9_let));
|
|
2786
2778
|
} else {
|
|
2787
2779
|
var tmp5_subject = _this__u8e3s4.p1j_1;
|
|
2788
|
-
var
|
|
2780
|
+
var tmp_8;
|
|
2789
2781
|
switch (tmp5_subject == null ? -1 : tmp5_subject.c9_1) {
|
|
2790
2782
|
case -1:
|
|
2791
2783
|
case 5:
|
|
@@ -2793,8 +2785,8 @@
|
|
|
2793
2785
|
|
|
2794
2786
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2795
2787
|
|
|
2796
|
-
var
|
|
2797
|
-
var tmp11_flatMap =
|
|
2788
|
+
var tmp0_elvis_lhs_2 = _this__u8e3s4.v1j_1;
|
|
2789
|
+
var tmp11_flatMap = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
2798
2790
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2799
2791
|
|
|
2800
2792
|
var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
|
|
@@ -2808,44 +2800,44 @@
|
|
|
2808
2800
|
var key_1 = element_3.o2();
|
|
2809
2801
|
// Inline function 'kotlin.collections.component2' call
|
|
2810
2802
|
var value_0 = element_3.p2();
|
|
2811
|
-
var list_4 = flatten_2(value_0, $this, Common_getInstance().
|
|
2803
|
+
var list_4 = flatten_2(value_0, $this, Common_getInstance().r22([name, key_1]));
|
|
2812
2804
|
addAll(tmp0_flatMapTo_2, list_4);
|
|
2813
2805
|
}
|
|
2814
2806
|
|
|
2815
2807
|
var fields = tmp0_flatMapTo_2;
|
|
2816
2808
|
var schema = listOf(new Type(name, new Shape(toField_1(_this__u8e3s4, $this, name))));
|
|
2817
|
-
|
|
2809
|
+
tmp_8 = plus(schema, fields);
|
|
2818
2810
|
break;
|
|
2819
2811
|
case 4:
|
|
2820
2812
|
var tmp6_safe_receiver = _this__u8e3s4.u1j_1;
|
|
2821
|
-
var
|
|
2813
|
+
var tmp_9;
|
|
2822
2814
|
if (tmp6_safe_receiver == null) {
|
|
2823
|
-
|
|
2815
|
+
tmp_9 = null;
|
|
2824
2816
|
} else {
|
|
2825
2817
|
// Inline function 'kotlin.let' call
|
|
2826
2818
|
// Inline function 'kotlin.contracts.contract' call
|
|
2827
2819
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
|
|
2828
|
-
var
|
|
2820
|
+
var tmp_10;
|
|
2829
2821
|
if (tmp6_safe_receiver instanceof ReferenceObject_0) {
|
|
2830
|
-
|
|
2822
|
+
tmp_10 = emptyList();
|
|
2831
2823
|
} else {
|
|
2832
2824
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
2833
|
-
|
|
2825
|
+
tmp_10 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().r22([name, 'array']));
|
|
2834
2826
|
} else {
|
|
2835
2827
|
noWhenBranchMatchedException();
|
|
2836
2828
|
}
|
|
2837
2829
|
}
|
|
2838
|
-
|
|
2830
|
+
tmp_9 = tmp_10;
|
|
2839
2831
|
}
|
|
2840
2832
|
|
|
2841
|
-
var tmp7_elvis_lhs =
|
|
2842
|
-
|
|
2833
|
+
var tmp7_elvis_lhs = tmp_9;
|
|
2834
|
+
tmp_8 = tmp7_elvis_lhs == null ? emptyList() : tmp7_elvis_lhs;
|
|
2843
2835
|
break;
|
|
2844
2836
|
default:
|
|
2845
|
-
|
|
2837
|
+
tmp_8 = emptyList();
|
|
2846
2838
|
break;
|
|
2847
2839
|
}
|
|
2848
|
-
tmp =
|
|
2840
|
+
tmp = tmp_8;
|
|
2849
2841
|
}
|
|
2850
2842
|
return tmp;
|
|
2851
2843
|
}
|
|
@@ -2888,7 +2880,7 @@
|
|
|
2888
2880
|
}
|
|
2889
2881
|
tmp = tmp_0;
|
|
2890
2882
|
} else if (!(schema.p1k_1 == null)) {
|
|
2891
|
-
tmp = new Custom(Common_getInstance().
|
|
2883
|
+
tmp = new Custom(Common_getInstance().r22([getReference_0(referencingObject, $this)]), false, false);
|
|
2892
2884
|
} else if (isPrimitive_0(schema.p1j_1)) {
|
|
2893
2885
|
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.p1j_1), $this), false, false);
|
|
2894
2886
|
} else {
|
|
@@ -2898,10 +2890,10 @@
|
|
|
2898
2890
|
var items = schema.u1j_1;
|
|
2899
2891
|
var tmp_2;
|
|
2900
2892
|
if (items instanceof ReferenceObject_0) {
|
|
2901
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2893
|
+
tmp_2 = new Custom(Common_getInstance().r22([getReference_0(items, $this)]), true);
|
|
2902
2894
|
} else {
|
|
2903
2895
|
if (items instanceof SchemaObject_0) {
|
|
2904
|
-
tmp_2 = new Custom(Common_getInstance().
|
|
2896
|
+
tmp_2 = new Custom(Common_getInstance().r22([getReference_0(referencingObject, $this), 'Array']), true);
|
|
2905
2897
|
} else {
|
|
2906
2898
|
if (items == null) {
|
|
2907
2899
|
var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.d1j_1);
|
|
@@ -2913,7 +2905,7 @@
|
|
|
2913
2905
|
}
|
|
2914
2906
|
tmp_1 = tmp_2;
|
|
2915
2907
|
} else {
|
|
2916
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
2908
|
+
tmp_1 = new Custom(Common_getInstance().r22([getReference_0(referencingObject, $this)]), false);
|
|
2917
2909
|
}
|
|
2918
2910
|
tmp = tmp_1;
|
|
2919
2911
|
}
|
|
@@ -3105,15 +3097,15 @@
|
|
|
3105
3097
|
var value = item.p2();
|
|
3106
3098
|
var tmp;
|
|
3107
3099
|
if (value instanceof SchemaObject_0) {
|
|
3108
|
-
var tmp_0 = Companion_getInstance_0().
|
|
3109
|
-
var tmp_1 = !(value.p1k_1 == null) ? toReference_2(value, $this, Common_getInstance().
|
|
3100
|
+
var tmp_0 = Companion_getInstance_0().o1z(key);
|
|
3101
|
+
var tmp_1 = !(value.p1k_1 == null) ? toReference_2(value, $this, Common_getInstance().r22([name, key])) : equals(value.p1j_1, Type_ARRAY_getInstance_0()) ? toReference_2(value, $this, Common_getInstance().r22([name, key, 'Array'])) : toReference_2(value, $this, Common_getInstance().r22([name, key]));
|
|
3110
3102
|
var tmp1_safe_receiver = _this__u8e3s4.o1k_1;
|
|
3111
3103
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r(key);
|
|
3112
3104
|
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
3113
3105
|
} else {
|
|
3114
3106
|
if (value instanceof ReferenceObject_0) {
|
|
3115
|
-
var tmp_2 = Companion_getInstance_0().
|
|
3116
|
-
var tmp_3 = new Custom(Common_getInstance().
|
|
3107
|
+
var tmp_2 = Companion_getInstance_0().o1z(key);
|
|
3108
|
+
var tmp_3 = new Custom(Common_getInstance().r22([getReference_0(value, $this)]), false);
|
|
3117
3109
|
var tmp3_safe_receiver = _this__u8e3s4.o1k_1;
|
|
3118
3110
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.r(key);
|
|
3119
3111
|
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
@@ -3146,7 +3138,7 @@
|
|
|
3146
3138
|
var tmp0_let = tmp;
|
|
3147
3139
|
// Inline function 'kotlin.contracts.contract' call
|
|
3148
3140
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3149
|
-
var tmp_0 = Companion_getInstance_0().
|
|
3141
|
+
var tmp_0 = Companion_getInstance_0().o1z(_this__u8e3s4.j1i_1);
|
|
3150
3142
|
var tmp0_elvis_lhs = _this__u8e3s4.z1h_1;
|
|
3151
3143
|
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3152
3144
|
}
|
|
@@ -3170,24 +3162,24 @@
|
|
|
3170
3162
|
var tmp0_let = tmp;
|
|
3171
3163
|
// Inline function 'kotlin.contracts.contract' call
|
|
3172
3164
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3173
|
-
var tmp_0 = Companion_getInstance_0().
|
|
3165
|
+
var tmp_0 = Companion_getInstance_0().o1z(identifier);
|
|
3174
3166
|
var tmp0_elvis_lhs = _this__u8e3s4.e1l_1;
|
|
3175
3167
|
return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3176
3168
|
}
|
|
3177
3169
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
3178
|
-
this.
|
|
3179
|
-
this.
|
|
3180
|
-
this.
|
|
3181
|
-
this.
|
|
3170
|
+
this.k23_1 = path;
|
|
3171
|
+
this.l23_1 = pathItem;
|
|
3172
|
+
this.m23_1 = method;
|
|
3173
|
+
this.n23_1 = operation;
|
|
3182
3174
|
}
|
|
3183
3175
|
protoOf(FlattenRequest_0).toString = function () {
|
|
3184
|
-
return 'FlattenRequest(path=' + new Path_0(this.
|
|
3176
|
+
return 'FlattenRequest(path=' + new Path_0(this.k23_1) + ', pathItem=' + this.l23_1 + ', method=' + this.m23_1 + ', operation=' + this.n23_1 + ')';
|
|
3185
3177
|
};
|
|
3186
3178
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
3187
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3188
|
-
result = imul(result, 31) + this.k23_1.hashCode() | 0;
|
|
3179
|
+
var result = Path__hashCode_impl_go73kd_0(this.k23_1);
|
|
3189
3180
|
result = imul(result, 31) + this.l23_1.hashCode() | 0;
|
|
3190
3181
|
result = imul(result, 31) + this.m23_1.hashCode() | 0;
|
|
3182
|
+
result = imul(result, 31) + this.n23_1.hashCode() | 0;
|
|
3191
3183
|
return result;
|
|
3192
3184
|
};
|
|
3193
3185
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -3196,14 +3188,14 @@
|
|
|
3196
3188
|
if (!(other instanceof FlattenRequest_0))
|
|
3197
3189
|
return false;
|
|
3198
3190
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
3199
|
-
if (!(this.
|
|
3200
|
-
return false;
|
|
3201
|
-
if (!this.k23_1.equals(tmp0_other_with_cast.k23_1))
|
|
3191
|
+
if (!(this.k23_1 === tmp0_other_with_cast.k23_1))
|
|
3202
3192
|
return false;
|
|
3203
3193
|
if (!this.l23_1.equals(tmp0_other_with_cast.l23_1))
|
|
3204
3194
|
return false;
|
|
3205
3195
|
if (!this.m23_1.equals(tmp0_other_with_cast.m23_1))
|
|
3206
3196
|
return false;
|
|
3197
|
+
if (!this.n23_1.equals(tmp0_other_with_cast.n23_1))
|
|
3198
|
+
return false;
|
|
3207
3199
|
return true;
|
|
3208
3200
|
};
|
|
3209
3201
|
function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
@@ -3253,23 +3245,23 @@
|
|
|
3253
3245
|
return tmp0_flatMapTo_0;
|
|
3254
3246
|
}
|
|
3255
3247
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
3256
|
-
this.
|
|
3257
|
-
this.
|
|
3258
|
-
this.
|
|
3259
|
-
this.
|
|
3260
|
-
this.
|
|
3261
|
-
this.
|
|
3248
|
+
this.o23_1 = path;
|
|
3249
|
+
this.p23_1 = pathItem;
|
|
3250
|
+
this.q23_1 = method;
|
|
3251
|
+
this.r23_1 = operation;
|
|
3252
|
+
this.s23_1 = statusCode;
|
|
3253
|
+
this.t23_1 = response;
|
|
3262
3254
|
}
|
|
3263
3255
|
protoOf(FlattenResponse_0).toString = function () {
|
|
3264
|
-
return 'FlattenResponse(path=' + new Path_0(this.
|
|
3256
|
+
return 'FlattenResponse(path=' + new Path_0(this.o23_1) + ', pathItem=' + this.p23_1 + ', method=' + this.q23_1 + ', operation=' + this.r23_1 + ', statusCode=' + new StatusCode_0(this.s23_1) + ', response=' + this.t23_1 + ')';
|
|
3265
3257
|
};
|
|
3266
3258
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
3267
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3268
|
-
result = imul(result, 31) + this.o23_1.hashCode() | 0;
|
|
3259
|
+
var result = Path__hashCode_impl_go73kd_0(this.o23_1);
|
|
3269
3260
|
result = imul(result, 31) + this.p23_1.hashCode() | 0;
|
|
3270
3261
|
result = imul(result, 31) + this.q23_1.hashCode() | 0;
|
|
3271
|
-
result = imul(result, 31) +
|
|
3272
|
-
result = imul(result, 31) +
|
|
3262
|
+
result = imul(result, 31) + this.r23_1.hashCode() | 0;
|
|
3263
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.s23_1) | 0;
|
|
3264
|
+
result = imul(result, 31) + hashCode(this.t23_1) | 0;
|
|
3273
3265
|
return result;
|
|
3274
3266
|
};
|
|
3275
3267
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -3278,17 +3270,17 @@
|
|
|
3278
3270
|
if (!(other instanceof FlattenResponse_0))
|
|
3279
3271
|
return false;
|
|
3280
3272
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
3281
|
-
if (!(this.
|
|
3282
|
-
return false;
|
|
3283
|
-
if (!this.o23_1.equals(tmp0_other_with_cast.o23_1))
|
|
3273
|
+
if (!(this.o23_1 === tmp0_other_with_cast.o23_1))
|
|
3284
3274
|
return false;
|
|
3285
3275
|
if (!this.p23_1.equals(tmp0_other_with_cast.p23_1))
|
|
3286
3276
|
return false;
|
|
3287
3277
|
if (!this.q23_1.equals(tmp0_other_with_cast.q23_1))
|
|
3288
3278
|
return false;
|
|
3289
|
-
if (!
|
|
3279
|
+
if (!this.r23_1.equals(tmp0_other_with_cast.r23_1))
|
|
3280
|
+
return false;
|
|
3281
|
+
if (!(this.s23_1 === tmp0_other_with_cast.s23_1))
|
|
3290
3282
|
return false;
|
|
3291
|
-
if (!equals(this.
|
|
3283
|
+
if (!equals(this.t23_1, tmp0_other_with_cast.t23_1))
|
|
3292
3284
|
return false;
|
|
3293
3285
|
return true;
|
|
3294
3286
|
};
|
|
@@ -3364,9 +3356,9 @@
|
|
|
3364
3356
|
}
|
|
3365
3357
|
function OpenApiParser$parseParameters$lambda_0(this$0) {
|
|
3366
3358
|
return function (req) {
|
|
3367
|
-
var parameters = plus(resolveParameters_2(req.
|
|
3368
|
-
var tmp0_elvis_lhs = toName_1(req.
|
|
3369
|
-
var name = tmp0_elvis_lhs == null ? toName_2(req.
|
|
3359
|
+
var parameters = plus(resolveParameters_2(req.l23_1, this$0), resolveParameters_1(req.n23_1, this$0));
|
|
3360
|
+
var tmp0_elvis_lhs = toName_1(req.n23_1, this$0);
|
|
3361
|
+
var name = tmp0_elvis_lhs == null ? toName_2(req.k23_1, this$0) + req.m23_1.b9_1 : tmp0_elvis_lhs;
|
|
3370
3362
|
var tmp$ret$2;
|
|
3371
3363
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3372
3364
|
var tmp$ret$1;
|
|
@@ -3378,7 +3370,7 @@
|
|
|
3378
3370
|
var tmp$ret$0;
|
|
3379
3371
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
|
|
3380
3372
|
var tmp0_safe_receiver = element.f1i_1;
|
|
3381
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().
|
|
3373
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().r22([name, 'Parameter', element.j1i_1]));
|
|
3382
3374
|
tmp$ret$0 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
3383
3375
|
var list = tmp$ret$0;
|
|
3384
3376
|
addAll(tmp0_flatMapTo, list);
|
|
@@ -3390,13 +3382,13 @@
|
|
|
3390
3382
|
}
|
|
3391
3383
|
function OpenApiParser$parseRequestBody$lambda_0(this$0) {
|
|
3392
3384
|
return function (req) {
|
|
3393
|
-
var tmp0_elvis_lhs = toName_1(req.
|
|
3394
|
-
var name = tmp0_elvis_lhs == null ? toName_2(req.
|
|
3385
|
+
var tmp0_elvis_lhs = toName_1(req.n23_1, this$0);
|
|
3386
|
+
var name = tmp0_elvis_lhs == null ? toName_2(req.k23_1, this$0) + req.m23_1.b9_1 : tmp0_elvis_lhs;
|
|
3395
3387
|
var tmp$ret$6;
|
|
3396
3388
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3397
3389
|
var tmp$ret$0;
|
|
3398
3390
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3399
|
-
var tmp1_safe_receiver = req.
|
|
3391
|
+
var tmp1_safe_receiver = req.n23_1.p1h_1;
|
|
3400
3392
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_6(tmp1_safe_receiver, this$0);
|
|
3401
3393
|
var tmp0_orEmpty = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.p1i_1;
|
|
3402
3394
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
@@ -3426,13 +3418,13 @@
|
|
|
3426
3418
|
switch (tmp0) {
|
|
3427
3419
|
case -1:
|
|
3428
3420
|
case 5:
|
|
3429
|
-
tmp_0 = flatten_1(schema, this$0, Common_getInstance().
|
|
3421
|
+
tmp_0 = flatten_1(schema, this$0, Common_getInstance().r22([name, 'RequestBody']));
|
|
3430
3422
|
break;
|
|
3431
3423
|
case 4:
|
|
3432
3424
|
var tmp$ret$3;
|
|
3433
3425
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3434
3426
|
var tmp1_safe_receiver_0 = schema.u1j_1;
|
|
3435
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().
|
|
3427
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().r22([name, 'RequestBody']));
|
|
3436
3428
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
3437
3429
|
tmp$ret$3 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
3438
3430
|
|
|
@@ -3465,9 +3457,9 @@
|
|
|
3465
3457
|
}
|
|
3466
3458
|
function OpenApiParser$parseResponseBody$lambda_0(this$0) {
|
|
3467
3459
|
return function (res) {
|
|
3468
|
-
var tmp0_elvis_lhs = toName_1(res.
|
|
3469
|
-
var name = tmp0_elvis_lhs == null ? toName_2(res.
|
|
3470
|
-
var response = res.
|
|
3460
|
+
var tmp0_elvis_lhs = toName_1(res.r23_1, this$0);
|
|
3461
|
+
var name = tmp0_elvis_lhs == null ? toName_2(res.o23_1, this$0) + res.q23_1.b9_1 : tmp0_elvis_lhs;
|
|
3462
|
+
var response = res.t23_1;
|
|
3471
3463
|
var tmp;
|
|
3472
3464
|
if (response instanceof ResponseObject_0) {
|
|
3473
3465
|
var tmp$ret$7;
|
|
@@ -3506,13 +3498,13 @@
|
|
|
3506
3498
|
switch (tmp0) {
|
|
3507
3499
|
case -1:
|
|
3508
3500
|
case 5:
|
|
3509
|
-
tmp_1 = flatten_1(schema, this$0, Common_getInstance().
|
|
3501
|
+
tmp_1 = flatten_1(schema, this$0, Common_getInstance().r22([name, _StatusCode___get_value__impl__we50mu_0(res.s23_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
3510
3502
|
break;
|
|
3511
3503
|
case 4:
|
|
3512
3504
|
var tmp$ret$4;
|
|
3513
3505
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3514
3506
|
var tmp1_safe_receiver = schema.u1j_1;
|
|
3515
|
-
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().
|
|
3507
|
+
var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().r22([name, _StatusCode___get_value__impl__we50mu_0(res.s23_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
|
|
3516
3508
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
3517
3509
|
tmp$ret$4 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
3518
3510
|
|
|
@@ -3558,10 +3550,10 @@
|
|
|
3558
3550
|
tmp$ret$0 = it;
|
|
3559
3551
|
tmp$ret$1 = tmp$ret$0.substring(1, tmp0_substring);
|
|
3560
3552
|
|
|
3561
|
-
tmp = tmp_0.
|
|
3553
|
+
tmp = tmp_0.r22([tmp$ret$1]);
|
|
3562
3554
|
break;
|
|
3563
3555
|
case false:
|
|
3564
|
-
tmp = Common_getInstance().
|
|
3556
|
+
tmp = Common_getInstance().r22([it]);
|
|
3565
3557
|
break;
|
|
3566
3558
|
default:
|
|
3567
3559
|
noWhenBranchMatchedException();
|
|
@@ -3572,21 +3564,21 @@
|
|
|
3572
3564
|
}
|
|
3573
3565
|
function OpenApiParser_0(openApi) {
|
|
3574
3566
|
Companion_getInstance_2();
|
|
3575
|
-
this.
|
|
3567
|
+
this.j23_1 = openApi;
|
|
3576
3568
|
}
|
|
3577
3569
|
function toMap_1(_this__u8e3s4) {
|
|
3578
3570
|
var tmp;
|
|
3579
3571
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3580
|
-
tmp = _this__u8e3s4.
|
|
3572
|
+
tmp = _this__u8e3s4.i21(VOID, VOID, true);
|
|
3581
3573
|
} else {
|
|
3582
3574
|
if (_this__u8e3s4 instanceof Any) {
|
|
3583
|
-
tmp = _this__u8e3s4.
|
|
3575
|
+
tmp = _this__u8e3s4.a21(VOID, true);
|
|
3584
3576
|
} else {
|
|
3585
3577
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3586
|
-
tmp = _this__u8e3s4.
|
|
3578
|
+
tmp = _this__u8e3s4.k21(VOID, VOID, true);
|
|
3587
3579
|
} else {
|
|
3588
3580
|
if (_this__u8e3s4 instanceof Unit) {
|
|
3589
|
-
tmp = _this__u8e3s4.
|
|
3581
|
+
tmp = _this__u8e3s4.d21(VOID, true);
|
|
3590
3582
|
} else {
|
|
3591
3583
|
noWhenBranchMatchedException();
|
|
3592
3584
|
}
|
|
@@ -3628,16 +3620,16 @@
|
|
|
3628
3620
|
function toIterable_0(_this__u8e3s4) {
|
|
3629
3621
|
var tmp;
|
|
3630
3622
|
if (_this__u8e3s4 instanceof Custom) {
|
|
3631
|
-
tmp = _this__u8e3s4.
|
|
3623
|
+
tmp = _this__u8e3s4.i21(VOID, true);
|
|
3632
3624
|
} else {
|
|
3633
3625
|
if (_this__u8e3s4 instanceof Any) {
|
|
3634
|
-
tmp = _this__u8e3s4.
|
|
3626
|
+
tmp = _this__u8e3s4.a21(true);
|
|
3635
3627
|
} else {
|
|
3636
3628
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3637
|
-
tmp = _this__u8e3s4.
|
|
3629
|
+
tmp = _this__u8e3s4.k21(VOID, true);
|
|
3638
3630
|
} else {
|
|
3639
3631
|
if (_this__u8e3s4 instanceof Unit) {
|
|
3640
|
-
tmp = _this__u8e3s4.
|
|
3632
|
+
tmp = _this__u8e3s4.d21(true);
|
|
3641
3633
|
} else {
|
|
3642
3634
|
noWhenBranchMatchedException();
|
|
3643
3635
|
}
|