@flock/wirespec 0.12.9 → 0.13.0
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/arrow-arrow-core.mjs +4 -4
- package/clikt-clikt.mjs +1309 -1309
- package/colormath-root-colormath.mjs +430 -430
- package/kotlin-kotlin-stdlib.mjs +934 -916
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +4 -4
- package/kotlin-rgxgen.mjs +1803 -1803
- package/kotlinx-io-kotlinx-io-core.mjs +397 -397
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +30 -30
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +94 -94
- package/markdown.mjs +1895 -1895
- package/mordant-mordant.mjs +1688 -1688
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1805 -750
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +293 -293
- package/wirespec-src-converter-avro.mjs +273 -270
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +245 -239
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +582 -263
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +183 -307
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-npm.d.ts +9 -5
- package/wirespec-src-plugin-npm.mjs +37 -24
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +4 -4
|
@@ -218,9 +218,9 @@ function Common$json$lambda($this$Json) {
|
|
|
218
218
|
function Common() {
|
|
219
219
|
Common_instance = this;
|
|
220
220
|
var tmp = this;
|
|
221
|
-
tmp.
|
|
221
|
+
tmp.s2e_1 = Json(VOID, Common$json$lambda);
|
|
222
222
|
}
|
|
223
|
-
protoOf(Common).
|
|
223
|
+
protoOf(Common).t2e = function (arg) {
|
|
224
224
|
// Inline function 'kotlin.collections.flatMap' call
|
|
225
225
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
226
226
|
var destination = ArrayList_init_$Create$();
|
|
@@ -236,7 +236,7 @@ protoOf(Common).e2e = function (arg) {
|
|
|
236
236
|
var tmp = destination;
|
|
237
237
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, Common$className$lambda);
|
|
238
238
|
};
|
|
239
|
-
protoOf(Common).
|
|
239
|
+
protoOf(Common).u2e = function (_this__u8e3s4) {
|
|
240
240
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
241
241
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
242
242
|
var destination = ArrayList_init_$Create$();
|
|
@@ -462,14 +462,14 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
462
462
|
var element_3 = _iterator__ex2g4s_6.i();
|
|
463
463
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
464
464
|
var tmp_8 = element_3.n25_1.b1();
|
|
465
|
-
var tmp_9 = emitType_0(element_3.o25_1, OpenAPIV2Emitter_getInstance()).
|
|
465
|
+
var tmp_9 = emitType_0(element_3.o25_1, OpenAPIV2Emitter_getInstance()).q2_1;
|
|
466
466
|
var tmp_10 = emitFormat(element_3.o25_1, OpenAPIV2Emitter_getInstance());
|
|
467
467
|
var tmp_11 = element_3.o25_1;
|
|
468
468
|
var tmp0_safe_receiver_6 = tmp_11 instanceof Iterable ? tmp_11 : null;
|
|
469
469
|
var tmp1_safe_receiver = tmp0_safe_receiver_6 == null ? null : tmp0_safe_receiver_6.x23_1;
|
|
470
470
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
471
471
|
var pair = to(tmp_8, new HeaderObject(VOID, tmp_9, tmp_10, tmp1_safe_receiver == null ? null : toSchemaOrReference(tmp1_safe_receiver, OpenAPIV2Emitter_getInstance())));
|
|
472
|
-
destination_6.
|
|
472
|
+
destination_6.n2(pair.ke_1, pair.le_1);
|
|
473
473
|
}
|
|
474
474
|
var tmp2_safe_receiver = element_2.c25_1;
|
|
475
475
|
var tmp_12;
|
|
@@ -506,7 +506,7 @@ function emit_0(_this__u8e3s4, $this) {
|
|
|
506
506
|
var tmp6_schema = tmp_15;
|
|
507
507
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
508
508
|
var pair_0 = to(new StatusCode(tmp_5), new ResponseObject(tmp4_description, tmp6_schema, destination_6));
|
|
509
|
-
destination_5.
|
|
509
|
+
destination_5.n2(pair_0.ke_1, pair_0.le_1);
|
|
510
510
|
}
|
|
511
511
|
return new OperationObject(VOID, VOID, tmp2_description, VOID, tmp1_operationId, tmp3_consumes, tmp4_produces, tmp5_parameters, destination_5);
|
|
512
512
|
}
|
|
@@ -633,7 +633,7 @@ function emitFormat(_this__u8e3s4, $this) {
|
|
|
633
633
|
var tmp_0;
|
|
634
634
|
if (t instanceof Number_0) {
|
|
635
635
|
var tmp_1;
|
|
636
|
-
switch (t.n24_1.
|
|
636
|
+
switch (t.n24_1.r2_1) {
|
|
637
637
|
case 0:
|
|
638
638
|
tmp_1 = 'float';
|
|
639
639
|
break;
|
|
@@ -648,7 +648,7 @@ function emitFormat(_this__u8e3s4, $this) {
|
|
|
648
648
|
} else {
|
|
649
649
|
if (t instanceof Integer) {
|
|
650
650
|
var tmp_2;
|
|
651
|
-
switch (t.p24_1.
|
|
651
|
+
switch (t.p24_1.r2_1) {
|
|
652
652
|
case 0:
|
|
653
653
|
tmp_2 = 'int32';
|
|
654
654
|
break;
|
|
@@ -690,23 +690,26 @@ function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
|
690
690
|
function OpenAPIV2Emitter() {
|
|
691
691
|
OpenAPIV2Emitter_instance = this;
|
|
692
692
|
Emitter.call(this);
|
|
693
|
-
this.
|
|
694
|
-
this.
|
|
695
|
-
this.
|
|
693
|
+
this.w2e_1 = FileExtension_JSON_getInstance();
|
|
694
|
+
this.x2e_1 = null;
|
|
695
|
+
this.y2e_1 = '';
|
|
696
696
|
}
|
|
697
697
|
protoOf(OpenAPIV2Emitter).d26 = function () {
|
|
698
|
-
return this.
|
|
698
|
+
return this.w2e_1;
|
|
699
699
|
};
|
|
700
700
|
protoOf(OpenAPIV2Emitter).e26 = function () {
|
|
701
|
-
return this.
|
|
701
|
+
return this.x2e_1;
|
|
702
|
+
};
|
|
703
|
+
protoOf(OpenAPIV2Emitter).f26 = function (_this__u8e3s4) {
|
|
704
|
+
return this.z28();
|
|
702
705
|
};
|
|
703
706
|
protoOf(OpenAPIV2Emitter).w26 = function () {
|
|
704
|
-
return this.
|
|
707
|
+
return this.y2e_1;
|
|
705
708
|
};
|
|
706
709
|
protoOf(OpenAPIV2Emitter).x26 = function (module_0, logger) {
|
|
707
|
-
var tmp0 = Common_getInstance().
|
|
710
|
+
var tmp0 = Common_getInstance().s2e_1;
|
|
708
711
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
709
|
-
var value = this.
|
|
712
|
+
var value = this.z2e(module_0);
|
|
710
713
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
711
714
|
var this_0 = tmp0.ip();
|
|
712
715
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -716,24 +719,24 @@ protoOf(OpenAPIV2Emitter).x26 = function (module_0, logger) {
|
|
|
716
719
|
return nonEmptyListOf(new Emitted('SwaggerObject', tmp$ret$2), []);
|
|
717
720
|
};
|
|
718
721
|
protoOf(OpenAPIV2Emitter).b27 = function (type, module_0) {
|
|
719
|
-
return this.
|
|
722
|
+
return this.z28();
|
|
720
723
|
};
|
|
721
724
|
protoOf(OpenAPIV2Emitter).l27 = function (enum_0, module_0) {
|
|
722
|
-
return this.
|
|
725
|
+
return this.z28();
|
|
723
726
|
};
|
|
724
727
|
protoOf(OpenAPIV2Emitter).h27 = function (refined) {
|
|
725
|
-
return this.
|
|
728
|
+
return this.z28();
|
|
726
729
|
};
|
|
727
730
|
protoOf(OpenAPIV2Emitter).p27 = function (endpoint) {
|
|
728
|
-
return this.
|
|
731
|
+
return this.z28();
|
|
729
732
|
};
|
|
730
733
|
protoOf(OpenAPIV2Emitter).n27 = function (union) {
|
|
731
|
-
return this.
|
|
734
|
+
return this.z28();
|
|
732
735
|
};
|
|
733
736
|
protoOf(OpenAPIV2Emitter).o27 = function (channel) {
|
|
734
|
-
return this.
|
|
737
|
+
return this.z28();
|
|
735
738
|
};
|
|
736
|
-
protoOf(OpenAPIV2Emitter).
|
|
739
|
+
protoOf(OpenAPIV2Emitter).z2e = function (module_0) {
|
|
737
740
|
var tmp = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, '0.0.0');
|
|
738
741
|
var tmp_0 = listOf('application/json');
|
|
739
742
|
var tmp_1 = listOf('application/json');
|
|
@@ -757,12 +760,12 @@ protoOf(OpenAPIV2Emitter).k2e = function (module_0) {
|
|
|
757
760
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
758
761
|
var key = element_0.u24_1;
|
|
759
762
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
760
|
-
var value = destination_0.
|
|
763
|
+
var value = destination_0.g2(key);
|
|
761
764
|
var tmp_2;
|
|
762
765
|
if (value == null) {
|
|
763
766
|
// Inline function 'kotlin.collections.groupByTo.<anonymous>' call
|
|
764
767
|
var answer = ArrayList_init_$Create$();
|
|
765
|
-
destination_0.
|
|
768
|
+
destination_0.n2(key, answer);
|
|
766
769
|
tmp_2 = answer;
|
|
767
770
|
} else {
|
|
768
771
|
tmp_2 = value;
|
|
@@ -843,7 +846,7 @@ protoOf(OpenAPIV2Emitter).k2e = function (module_0) {
|
|
|
843
846
|
var tmp1_pattern = element_3.p26_1.j27_1;
|
|
844
847
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
845
848
|
var pair = to(tmp_5, new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_pattern, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_type));
|
|
846
|
-
destination_5.
|
|
849
|
+
destination_5.n2(pair.ke_1, pair.le_1);
|
|
847
850
|
}
|
|
848
851
|
var tmp_6 = destination_5;
|
|
849
852
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
@@ -877,7 +880,7 @@ protoOf(OpenAPIV2Emitter).k2e = function (module_0) {
|
|
|
877
880
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
878
881
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
879
882
|
var pair_0 = toProperties(element_6, OpenAPIV2Emitter_getInstance());
|
|
880
|
-
destination_8.
|
|
883
|
+
destination_8.n2(pair_0.ke_1, pair_0.le_1);
|
|
881
884
|
}
|
|
882
885
|
// Inline function 'kotlin.collections.filter' call
|
|
883
886
|
var tmp0_2 = element_5.l26_1.g27_1;
|
|
@@ -913,7 +916,7 @@ protoOf(OpenAPIV2Emitter).k2e = function (module_0) {
|
|
|
913
916
|
var tmp1_required = tmp_8;
|
|
914
917
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
915
918
|
var pair_1 = to(tmp_7, new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_required, VOID, VOID, VOID, VOID, destination_8));
|
|
916
|
-
destination_7.
|
|
919
|
+
destination_7.n2(pair_1.ke_1, pair_1.le_1);
|
|
917
920
|
}
|
|
918
921
|
var tmp_9 = plus_0(tmp_6, destination_7);
|
|
919
922
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
@@ -950,7 +953,7 @@ protoOf(OpenAPIV2Emitter).k2e = function (module_0) {
|
|
|
950
953
|
}
|
|
951
954
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
952
955
|
var pair_2 = to(tmp_10, new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, destination_13, tmp0_type_0));
|
|
953
|
-
destination_12.
|
|
956
|
+
destination_12.n2(pair_2.ke_1, pair_2.le_1);
|
|
954
957
|
}
|
|
955
958
|
return new SwaggerObject('2.0', tmp, VOID, VOID, VOID, tmp_0, tmp_1, tmp_4, plus_0(tmp_9, destination_12));
|
|
956
959
|
};
|
|
@@ -990,7 +993,7 @@ function parseEndpoints(_this__u8e3s4, $this) {
|
|
|
990
993
|
var parameters = plus(resolveParameters_0(_this__u8e3s4, OpenAPIV2Parser_instance, pathItem), resolveParameters(_this__u8e3s4, OpenAPIV2Parser_instance, operation));
|
|
991
994
|
var segments = toSegments(path, OpenAPIV2Parser_instance, parameters);
|
|
992
995
|
var tmp0_elvis_lhs = toName(operation, OpenAPIV2Parser_instance);
|
|
993
|
-
var name = tmp0_elvis_lhs == null ? toName_0(path, OpenAPIV2Parser_instance) + method.
|
|
996
|
+
var name = tmp0_elvis_lhs == null ? toName_0(path, OpenAPIV2Parser_instance) + method.q2_1 : tmp0_elvis_lhs;
|
|
994
997
|
// Inline function 'kotlin.collections.filter' call
|
|
995
998
|
// Inline function 'kotlin.collections.filterTo' call
|
|
996
999
|
var destination_1 = ArrayList_init_$Create$();
|
|
@@ -1083,7 +1086,7 @@ function parseEndpoints(_this__u8e3s4, $this) {
|
|
|
1083
1086
|
tmp_1 = toReference(_this__u8e3s4, OpenAPIV2Parser_instance, schema, isNullable);
|
|
1084
1087
|
} else {
|
|
1085
1088
|
if (schema instanceof SchemaObject) {
|
|
1086
|
-
tmp_1 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, schema, Common_getInstance().
|
|
1089
|
+
tmp_1 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, schema, Common_getInstance().t2e([name, 'RequestBody']), isNullable);
|
|
1087
1090
|
} else {
|
|
1088
1091
|
if (schema == null) {
|
|
1089
1092
|
var reason = 'Not yet implemented';
|
|
@@ -1122,7 +1125,7 @@ function parseEndpoints(_this__u8e3s4, $this) {
|
|
|
1122
1125
|
var tmp_3 = element_5.a1();
|
|
1123
1126
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
1124
1127
|
var tmp$ret$35 = resolve_1(_this__u8e3s4, OpenAPIV2Parser_instance, element_5.b1());
|
|
1125
|
-
destination_8.
|
|
1128
|
+
destination_8.n2(tmp_3, tmp$ret$35);
|
|
1126
1129
|
}
|
|
1127
1130
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1128
1131
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -1197,7 +1200,7 @@ function parseEndpoints(_this__u8e3s4, $this) {
|
|
|
1197
1200
|
tmp_10 = toReference(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver, false);
|
|
1198
1201
|
} else {
|
|
1199
1202
|
if (tmp1_safe_receiver instanceof SchemaObject) {
|
|
1200
|
-
tmp_10 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
1203
|
+
tmp_10 = toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, tmp1_safe_receiver, Common_getInstance().t2e([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']), false);
|
|
1201
1204
|
} else {
|
|
1202
1205
|
noWhenBranchMatchedException();
|
|
1203
1206
|
}
|
|
@@ -1253,7 +1256,7 @@ function parseDefinitions(_this__u8e3s4, $this) {
|
|
|
1253
1256
|
var entry = _iterator__ex2g4s.i();
|
|
1254
1257
|
// Inline function 'arrow.core.filterIsInstance.<anonymous>' call
|
|
1255
1258
|
if (entry.b1() instanceof SchemaObject) {
|
|
1256
|
-
result.
|
|
1259
|
+
result.n2(entry.a1(), entry.b1());
|
|
1257
1260
|
}
|
|
1258
1261
|
}
|
|
1259
1262
|
var tmp = result;
|
|
@@ -1267,7 +1270,7 @@ function parseDefinitions(_this__u8e3s4, $this) {
|
|
|
1267
1270
|
var element = _iterator__ex2g4s_0.i();
|
|
1268
1271
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseDefinitions.<anonymous>' call
|
|
1269
1272
|
if (element.b1().c1o_1 == null) {
|
|
1270
|
-
destination.
|
|
1273
|
+
destination.n2(element.a1(), element.b1());
|
|
1271
1274
|
}
|
|
1272
1275
|
}
|
|
1273
1276
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1278,7 +1281,7 @@ function parseDefinitions(_this__u8e3s4, $this) {
|
|
|
1278
1281
|
while (_iterator__ex2g4s_1.h()) {
|
|
1279
1282
|
var element_0 = _iterator__ex2g4s_1.i();
|
|
1280
1283
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseDefinitions.<anonymous>' call
|
|
1281
|
-
var list = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, element_0.b1(), Common_getInstance().
|
|
1284
|
+
var list = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, element_0.b1(), Common_getInstance().t2e([element_0.a1()]));
|
|
1282
1285
|
addAll(destination_0, list);
|
|
1283
1286
|
}
|
|
1284
1287
|
return destination_0;
|
|
@@ -1360,7 +1363,7 @@ function resolveParameters_0(_this__u8e3s4, $this, itemObject) {
|
|
|
1360
1363
|
}
|
|
1361
1364
|
function resolveParameterObject(_this__u8e3s4, $this, reference) {
|
|
1362
1365
|
var tmp0_safe_receiver = _this__u8e3s4.p1h_1;
|
|
1363
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1366
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g2(getReference(reference, $this));
|
|
1364
1367
|
var tmp;
|
|
1365
1368
|
if (tmp1_elvis_lhs == null) {
|
|
1366
1369
|
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.h1o_1);
|
|
@@ -1372,7 +1375,7 @@ function resolveParameterObject(_this__u8e3s4, $this, reference) {
|
|
|
1372
1375
|
}
|
|
1373
1376
|
function resolveResponseObject(_this__u8e3s4, $this, reference) {
|
|
1374
1377
|
var tmp0_safe_receiver = _this__u8e3s4.q1h_1;
|
|
1375
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1378
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g2(getReference(reference, $this));
|
|
1376
1379
|
var tmp;
|
|
1377
1380
|
if (tmp1_elvis_lhs == null) {
|
|
1378
1381
|
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.h1o_1);
|
|
@@ -1384,7 +1387,7 @@ function resolveResponseObject(_this__u8e3s4, $this, reference) {
|
|
|
1384
1387
|
}
|
|
1385
1388
|
function resolveSchemaObject(_this__u8e3s4, $this, reference) {
|
|
1386
1389
|
var tmp0_safe_receiver = _this__u8e3s4.o1h_1;
|
|
1387
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1390
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g2(getReference(reference, $this));
|
|
1388
1391
|
var tmp;
|
|
1389
1392
|
if (tmp1_elvis_lhs == null) {
|
|
1390
1393
|
var message = 'Cannot resolve ref: ' + Ref__toString_impl_irb7zi(reference.h1o_1);
|
|
@@ -1596,7 +1599,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1596
1599
|
tmp_9 = emptyList();
|
|
1597
1600
|
} else {
|
|
1598
1601
|
if (value instanceof SchemaObject) {
|
|
1599
|
-
tmp_9 = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().
|
|
1602
|
+
tmp_9 = flatten(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().t2e([name, key_0]));
|
|
1600
1603
|
} else {
|
|
1601
1604
|
noWhenBranchMatchedException();
|
|
1602
1605
|
}
|
|
@@ -1632,7 +1635,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1632
1635
|
} else {
|
|
1633
1636
|
var tmp5_subject = schemaObject.y1n_1;
|
|
1634
1637
|
var tmp_10;
|
|
1635
|
-
switch (tmp5_subject == null ? -1 : tmp5_subject.
|
|
1638
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.r2_1) {
|
|
1636
1639
|
case -1:
|
|
1637
1640
|
case 5:
|
|
1638
1641
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -1654,7 +1657,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1654
1657
|
var key_1 = element_2.a1();
|
|
1655
1658
|
// Inline function 'kotlin.collections.component2' call
|
|
1656
1659
|
var value_0 = element_2.b1();
|
|
1657
|
-
var list_3 = flatten_0(_this__u8e3s4, OpenAPIV2Parser_instance, value_0, Common_getInstance().
|
|
1660
|
+
var list_3 = flatten_0(_this__u8e3s4, OpenAPIV2Parser_instance, value_0, Common_getInstance().t2e([name, key_1]));
|
|
1658
1661
|
addAll(destination_3, list_3);
|
|
1659
1662
|
}
|
|
1660
1663
|
|
|
@@ -1669,7 +1672,7 @@ function flatten(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
1669
1672
|
tmp_11 = emptyList();
|
|
1670
1673
|
} else {
|
|
1671
1674
|
if (it_0 instanceof SchemaObject) {
|
|
1672
|
-
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().
|
|
1675
|
+
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().t2e([name, 'Array']));
|
|
1673
1676
|
} else {
|
|
1674
1677
|
if (it_0 == null) {
|
|
1675
1678
|
tmp_11 = emptyList();
|
|
@@ -1726,20 +1729,20 @@ function toReference(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
1726
1729
|
}
|
|
1727
1730
|
tmp = tmp_0;
|
|
1728
1731
|
} else if (!(schema.x1n_1 == null)) {
|
|
1729
|
-
tmp = new Custom(sanitize(Common_getInstance().
|
|
1732
|
+
tmp = new Custom(sanitize(Common_getInstance().t2e([getReference(reference, OpenAPIV2Parser_instance)])), isNullable);
|
|
1730
1733
|
} else if (isPrimitive(schema.y1n_1)) {
|
|
1731
1734
|
tmp = new Primitive(toPrimitive(ensureNotNull(schema.y1n_1), OpenAPIV2Parser_instance, schema.f1n_1), isNullable);
|
|
1732
1735
|
} else {
|
|
1733
1736
|
var tmp0_subject = schema.y1n_1;
|
|
1734
1737
|
var tmp_1;
|
|
1735
|
-
if ((tmp0_subject == null ? -1 : tmp0_subject.
|
|
1738
|
+
if ((tmp0_subject == null ? -1 : tmp0_subject.r2_1) === 4) {
|
|
1736
1739
|
var items = schema.z1n_1;
|
|
1737
1740
|
var tmp_2;
|
|
1738
1741
|
if (items instanceof ReferenceObject) {
|
|
1739
1742
|
tmp_2 = toIterable(toReference(_this__u8e3s4, OpenAPIV2Parser_instance, items, false), isNullable);
|
|
1740
1743
|
} else {
|
|
1741
1744
|
if (items instanceof SchemaObject) {
|
|
1742
|
-
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, items, Common_getInstance().
|
|
1745
|
+
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, items, Common_getInstance().t2e([getReference(reference, OpenAPIV2Parser_instance), 'Array']), isNullable), isNullable);
|
|
1743
1746
|
} else {
|
|
1744
1747
|
if (items == null) {
|
|
1745
1748
|
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.h1o_1);
|
|
@@ -1753,10 +1756,10 @@ function toReference(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
1753
1756
|
} else {
|
|
1754
1757
|
var tmp_3;
|
|
1755
1758
|
if (refOrSchema instanceof SchemaObject) {
|
|
1756
|
-
tmp_3 = new Custom(sanitize(Common_getInstance().
|
|
1759
|
+
tmp_3 = new Custom(sanitize(Common_getInstance().t2e([getReference(reference, OpenAPIV2Parser_instance)])), isNullable);
|
|
1757
1760
|
} else {
|
|
1758
1761
|
if (refOrSchema instanceof ReferenceObject) {
|
|
1759
|
-
tmp_3 = new Custom(sanitize(Common_getInstance().
|
|
1762
|
+
tmp_3 = new Custom(sanitize(Common_getInstance().t2e([getReference(refOrSchema, OpenAPIV2Parser_instance)])), isNullable);
|
|
1760
1763
|
} else {
|
|
1761
1764
|
noWhenBranchMatchedException();
|
|
1762
1765
|
}
|
|
@@ -1815,7 +1818,7 @@ function toReference_0(_this__u8e3s4, $this, schema, name, isNullable) {
|
|
|
1815
1818
|
} else {
|
|
1816
1819
|
var type = schema.y1n_1;
|
|
1817
1820
|
var tmp_4;
|
|
1818
|
-
switch (type == null ? -1 : type.
|
|
1821
|
+
switch (type == null ? -1 : type.r2_1) {
|
|
1819
1822
|
case 0:
|
|
1820
1823
|
case 2:
|
|
1821
1824
|
case 1:
|
|
@@ -1892,7 +1895,7 @@ function toOperationList(_this__u8e3s4, $this) {
|
|
|
1892
1895
|
var element = _iterator__ex2g4s.i();
|
|
1893
1896
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.toOperationList.<anonymous>' call
|
|
1894
1897
|
var tmp_0;
|
|
1895
|
-
switch (element.
|
|
1898
|
+
switch (element.r2_1) {
|
|
1896
1899
|
case 0:
|
|
1897
1900
|
tmp_0 = _this__u8e3s4.q1i_1;
|
|
1898
1901
|
break;
|
|
@@ -1922,16 +1925,16 @@ function toOperationList(_this__u8e3s4, $this) {
|
|
|
1922
1925
|
break;
|
|
1923
1926
|
}
|
|
1924
1927
|
var tmp$ret$0 = tmp_0;
|
|
1925
|
-
result.
|
|
1928
|
+
result.n2(element, tmp$ret$0);
|
|
1926
1929
|
}
|
|
1927
|
-
return tmp.
|
|
1930
|
+
return tmp.u2e(result);
|
|
1928
1931
|
}
|
|
1929
1932
|
function getReference(_this__u8e3s4, $this) {
|
|
1930
1933
|
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.h1o_1), ['/']).k(2);
|
|
1931
1934
|
}
|
|
1932
1935
|
function toPrimitive(_this__u8e3s4, $this, format) {
|
|
1933
1936
|
var tmp;
|
|
1934
|
-
switch (_this__u8e3s4.
|
|
1937
|
+
switch (_this__u8e3s4.r2_1) {
|
|
1935
1938
|
case 0:
|
|
1936
1939
|
tmp = String_instance;
|
|
1937
1940
|
break;
|
|
@@ -2007,7 +2010,7 @@ function toField_0(_this__u8e3s4, $this, schema, name) {
|
|
|
2007
2010
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
2008
2011
|
var tmp;
|
|
2009
2012
|
if (value instanceof SchemaObject) {
|
|
2010
|
-
tmp = new Field(new FieldIdentifier(key), !(value.x1n_1 == null) ? toReference_0(_this__u8e3s4, OpenAPIV2Parser_instance, value, Common_getInstance().
|
|
2013
|
+
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));
|
|
2011
2014
|
} else {
|
|
2012
2015
|
if (value instanceof ReferenceObject) {
|
|
2013
2016
|
tmp = new Field(new FieldIdentifier(key), toReference(_this__u8e3s4, OpenAPIV2Parser_instance, value, isNullable));
|
|
@@ -2028,11 +2031,11 @@ function toField_1(_this__u8e3s4, $this, parameter, name) {
|
|
|
2028
2031
|
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
2029
2032
|
var tmp;
|
|
2030
2033
|
if (!(parameter.z1j_1 == null)) {
|
|
2031
|
-
tmp = new Custom(sanitize(Common_getInstance().
|
|
2034
|
+
tmp = new Custom(sanitize(Common_getInstance().t2e([name, 'Parameter', it.e1j_1])), isNullable);
|
|
2032
2035
|
} else {
|
|
2033
2036
|
var type = it.j1j_1;
|
|
2034
2037
|
var tmp_0;
|
|
2035
|
-
switch (type == null ? -1 : type.
|
|
2038
|
+
switch (type == null ? -1 : type.r2_1) {
|
|
2036
2039
|
case 0:
|
|
2037
2040
|
case 1:
|
|
2038
2041
|
case 2:
|
|
@@ -2198,7 +2201,7 @@ function toName(_this__u8e3s4, $this) {
|
|
|
2198
2201
|
} else {
|
|
2199
2202
|
// Inline function 'kotlin.let' call
|
|
2200
2203
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.toName.<anonymous>' call
|
|
2201
|
-
tmp = Common_getInstance().
|
|
2204
|
+
tmp = Common_getInstance().t2e([tmp0_safe_receiver]);
|
|
2202
2205
|
}
|
|
2203
2206
|
return tmp;
|
|
2204
2207
|
}
|
|
@@ -2220,21 +2223,21 @@ function toName_0(_this__u8e3s4, $this) {
|
|
|
2220
2223
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenAPIV2Parser$toName$lambda);
|
|
2221
2224
|
}
|
|
2222
2225
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
2223
|
-
this.
|
|
2224
|
-
this.
|
|
2225
|
-
this.
|
|
2226
|
-
this.
|
|
2227
|
-
this.
|
|
2226
|
+
this.a2f_1 = path;
|
|
2227
|
+
this.b2f_1 = pathItem;
|
|
2228
|
+
this.c2f_1 = method;
|
|
2229
|
+
this.d2f_1 = operation;
|
|
2230
|
+
this.e2f_1 = type;
|
|
2228
2231
|
}
|
|
2229
2232
|
protoOf(FlattenRequest).toString = function () {
|
|
2230
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
2233
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.a2f_1) + ', pathItem=' + this.b2f_1.toString() + ', method=' + this.c2f_1.toString() + ', operation=' + this.d2f_1.toString() + ', type=' + this.e2f_1 + ')';
|
|
2231
2234
|
};
|
|
2232
2235
|
protoOf(FlattenRequest).hashCode = function () {
|
|
2233
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2234
|
-
result = imul(result, 31) + this.
|
|
2235
|
-
result = imul(result, 31) + this.
|
|
2236
|
-
result = imul(result, 31) + this.
|
|
2237
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2236
|
+
var result = Path__hashCode_impl_go73kd(this.a2f_1);
|
|
2237
|
+
result = imul(result, 31) + this.b2f_1.hashCode() | 0;
|
|
2238
|
+
result = imul(result, 31) + this.c2f_1.hashCode() | 0;
|
|
2239
|
+
result = imul(result, 31) + this.d2f_1.hashCode() | 0;
|
|
2240
|
+
result = imul(result, 31) + getStringHashCode(this.e2f_1) | 0;
|
|
2238
2241
|
return result;
|
|
2239
2242
|
};
|
|
2240
2243
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -2243,15 +2246,15 @@ protoOf(FlattenRequest).equals = function (other) {
|
|
|
2243
2246
|
if (!(other instanceof FlattenRequest))
|
|
2244
2247
|
return false;
|
|
2245
2248
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
2246
|
-
if (!(this.
|
|
2249
|
+
if (!(this.a2f_1 === tmp0_other_with_cast.a2f_1))
|
|
2247
2250
|
return false;
|
|
2248
|
-
if (!this.
|
|
2251
|
+
if (!this.b2f_1.equals(tmp0_other_with_cast.b2f_1))
|
|
2249
2252
|
return false;
|
|
2250
|
-
if (!this.
|
|
2253
|
+
if (!this.c2f_1.equals(tmp0_other_with_cast.c2f_1))
|
|
2251
2254
|
return false;
|
|
2252
|
-
if (!this.
|
|
2255
|
+
if (!this.d2f_1.equals(tmp0_other_with_cast.d2f_1))
|
|
2253
2256
|
return false;
|
|
2254
|
-
if (!(this.
|
|
2257
|
+
if (!(this.e2f_1 === tmp0_other_with_cast.e2f_1))
|
|
2255
2258
|
return false;
|
|
2256
2259
|
return true;
|
|
2257
2260
|
};
|
|
@@ -2313,25 +2316,25 @@ function flatMapRequests(_this__u8e3s4, $this, f) {
|
|
|
2313
2316
|
return destination_2;
|
|
2314
2317
|
}
|
|
2315
2318
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
2316
|
-
this.
|
|
2317
|
-
this.
|
|
2318
|
-
this.
|
|
2319
|
-
this.
|
|
2320
|
-
this.
|
|
2321
|
-
this.
|
|
2322
|
-
this.
|
|
2319
|
+
this.f2f_1 = path;
|
|
2320
|
+
this.g2f_1 = pathItem;
|
|
2321
|
+
this.h2f_1 = method;
|
|
2322
|
+
this.i2f_1 = operation;
|
|
2323
|
+
this.j2f_1 = statusCode;
|
|
2324
|
+
this.k2f_1 = response;
|
|
2325
|
+
this.l2f_1 = type;
|
|
2323
2326
|
}
|
|
2324
2327
|
protoOf(FlattenResponse).toString = function () {
|
|
2325
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
2328
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.f2f_1) + ', pathItem=' + this.g2f_1.toString() + ', method=' + this.h2f_1.toString() + ', operation=' + this.i2f_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy(this.j2f_1) + ', response=' + toString(this.k2f_1) + ', type=' + this.l2f_1 + ')';
|
|
2326
2329
|
};
|
|
2327
2330
|
protoOf(FlattenResponse).hashCode = function () {
|
|
2328
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2329
|
-
result = imul(result, 31) + this.
|
|
2330
|
-
result = imul(result, 31) + this.
|
|
2331
|
-
result = imul(result, 31) + this.
|
|
2332
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
2333
|
-
result = imul(result, 31) + hashCode(this.
|
|
2334
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2331
|
+
var result = Path__hashCode_impl_go73kd(this.f2f_1);
|
|
2332
|
+
result = imul(result, 31) + this.g2f_1.hashCode() | 0;
|
|
2333
|
+
result = imul(result, 31) + this.h2f_1.hashCode() | 0;
|
|
2334
|
+
result = imul(result, 31) + this.i2f_1.hashCode() | 0;
|
|
2335
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.j2f_1) | 0;
|
|
2336
|
+
result = imul(result, 31) + hashCode(this.k2f_1) | 0;
|
|
2337
|
+
result = imul(result, 31) + getStringHashCode(this.l2f_1) | 0;
|
|
2335
2338
|
return result;
|
|
2336
2339
|
};
|
|
2337
2340
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -2340,19 +2343,19 @@ protoOf(FlattenResponse).equals = function (other) {
|
|
|
2340
2343
|
if (!(other instanceof FlattenResponse))
|
|
2341
2344
|
return false;
|
|
2342
2345
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
2343
|
-
if (!(this.
|
|
2346
|
+
if (!(this.f2f_1 === tmp0_other_with_cast.f2f_1))
|
|
2344
2347
|
return false;
|
|
2345
|
-
if (!this.
|
|
2348
|
+
if (!this.g2f_1.equals(tmp0_other_with_cast.g2f_1))
|
|
2346
2349
|
return false;
|
|
2347
|
-
if (!this.
|
|
2350
|
+
if (!this.h2f_1.equals(tmp0_other_with_cast.h2f_1))
|
|
2348
2351
|
return false;
|
|
2349
|
-
if (!this.
|
|
2352
|
+
if (!this.i2f_1.equals(tmp0_other_with_cast.i2f_1))
|
|
2350
2353
|
return false;
|
|
2351
|
-
if (!(this.
|
|
2354
|
+
if (!(this.j2f_1 === tmp0_other_with_cast.j2f_1))
|
|
2352
2355
|
return false;
|
|
2353
|
-
if (!equals(this.
|
|
2356
|
+
if (!equals(this.k2f_1, tmp0_other_with_cast.k2f_1))
|
|
2354
2357
|
return false;
|
|
2355
|
-
if (!(this.
|
|
2358
|
+
if (!(this.l2f_1 === tmp0_other_with_cast.l2f_1))
|
|
2356
2359
|
return false;
|
|
2357
2360
|
return true;
|
|
2358
2361
|
};
|
|
@@ -2440,9 +2443,9 @@ function OpenAPIV2Parser$parse$lambda($strict) {
|
|
|
2440
2443
|
}
|
|
2441
2444
|
function OpenAPIV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
2442
2445
|
return function ($this$flatMapRequests) {
|
|
2443
|
-
var parameters = plus(resolveParameters_0($this_parseParameters, OpenAPIV2Parser_instance, $this$flatMapRequests.
|
|
2444
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2445
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2446
|
+
var parameters = plus(resolveParameters_0($this_parseParameters, OpenAPIV2Parser_instance, $this$flatMapRequests.b2f_1), resolveParameters($this_parseParameters, OpenAPIV2Parser_instance, $this$flatMapRequests.d2f_1));
|
|
2447
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.d2f_1, OpenAPIV2Parser_instance);
|
|
2448
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.a2f_1, OpenAPIV2Parser_instance) + $this$flatMapRequests.c2f_1.q2_1 : tmp0_elvis_lhs;
|
|
2446
2449
|
// Inline function 'kotlin.collections.filter' call
|
|
2447
2450
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2448
2451
|
var destination = ArrayList_init_$Create$();
|
|
@@ -2468,7 +2471,7 @@ function OpenAPIV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
2468
2471
|
} else {
|
|
2469
2472
|
// Inline function 'kotlin.let' call
|
|
2470
2473
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
2471
|
-
tmp = flatten_0($this_parseParameters, OpenAPIV2Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
2474
|
+
tmp = flatten_0($this_parseParameters, OpenAPIV2Parser_instance, tmp0_safe_receiver, Common_getInstance().t2e([name, 'Parameter', element_0.e1j_1]));
|
|
2472
2475
|
}
|
|
2473
2476
|
var tmp1_elvis_lhs = tmp;
|
|
2474
2477
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -2479,9 +2482,9 @@ function OpenAPIV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
2479
2482
|
}
|
|
2480
2483
|
function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
2481
2484
|
return function ($this$flatMapRequests) {
|
|
2482
|
-
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenAPIV2Parser_instance, $this$flatMapRequests.
|
|
2483
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2484
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2485
|
+
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenAPIV2Parser_instance, $this$flatMapRequests.b2f_1), resolveParameters($this_parseRequestBody, OpenAPIV2Parser_instance, $this$flatMapRequests.d2f_1));
|
|
2486
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.d2f_1, OpenAPIV2Parser_instance);
|
|
2487
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.a2f_1, OpenAPIV2Parser_instance) + $this$flatMapRequests.c2f_1.q2_1 : tmp0_elvis_lhs;
|
|
2485
2488
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2486
2489
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2487
2490
|
var destination = ArrayList_init_$Create$();
|
|
@@ -2491,7 +2494,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2491
2494
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
2492
2495
|
var tmp;
|
|
2493
2496
|
if (!(element.z1j_1 == null)) {
|
|
2494
|
-
var tmp_0 = new DefinitionIdentifier(sanitize(Common_getInstance().
|
|
2497
|
+
var tmp_0 = new DefinitionIdentifier(sanitize(Common_getInstance().t2e([name, 'Parameter', element.e1j_1])));
|
|
2495
2498
|
// Inline function 'kotlin.collections.map' call
|
|
2496
2499
|
var this_0 = ensureNotNull(element.z1j_1);
|
|
2497
2500
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2511,7 +2514,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2511
2514
|
addAll(destination, list);
|
|
2512
2515
|
}
|
|
2513
2516
|
var enums = destination;
|
|
2514
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
2517
|
+
var tmp1_safe_receiver = $this$flatMapRequests.d2f_1.b1m_1;
|
|
2515
2518
|
var tmp_1;
|
|
2516
2519
|
if (tmp1_safe_receiver == null) {
|
|
2517
2520
|
tmp_1 = null;
|
|
@@ -2563,10 +2566,10 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2563
2566
|
if (schema instanceof SchemaObject) {
|
|
2564
2567
|
var tmp0_subject = schema.y1n_1;
|
|
2565
2568
|
var tmp_5;
|
|
2566
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
2569
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.r2_1) {
|
|
2567
2570
|
case -1:
|
|
2568
2571
|
case 5:
|
|
2569
|
-
tmp_5 = flatten($this_parseRequestBody, OpenAPIV2Parser_instance, schema, Common_getInstance().
|
|
2572
|
+
tmp_5 = flatten($this_parseRequestBody, OpenAPIV2Parser_instance, schema, Common_getInstance().t2e([name, 'RequestBody']));
|
|
2570
2573
|
break;
|
|
2571
2574
|
case 4:
|
|
2572
2575
|
var tmp1_safe_receiver_0 = schema.z1n_1;
|
|
@@ -2576,7 +2579,7 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2576
2579
|
} else {
|
|
2577
2580
|
// Inline function 'kotlin.let' call
|
|
2578
2581
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
2579
|
-
tmp_6 = flatten_0($this_parseRequestBody, OpenAPIV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
2582
|
+
tmp_6 = flatten_0($this_parseRequestBody, OpenAPIV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().t2e([name, 'RequestBody']));
|
|
2580
2583
|
}
|
|
2581
2584
|
|
|
2582
2585
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2604,17 +2607,17 @@ function OpenAPIV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2604
2607
|
}
|
|
2605
2608
|
function OpenAPIV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
2606
2609
|
return function ($this$flatMapResponses) {
|
|
2607
|
-
var schema = resolve_1($this_parseResponseBody, OpenAPIV2Parser_instance, $this$flatMapResponses.
|
|
2608
|
-
var tmp0_elvis_lhs = toName($this$flatMapResponses.
|
|
2609
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
2610
|
+
var schema = resolve_1($this_parseResponseBody, OpenAPIV2Parser_instance, $this$flatMapResponses.k2f_1).g1k_1;
|
|
2611
|
+
var tmp0_elvis_lhs = toName($this$flatMapResponses.i2f_1, OpenAPIV2Parser_instance);
|
|
2612
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.f2f_1, OpenAPIV2Parser_instance) + $this$flatMapResponses.h2f_1.q2_1 : tmp0_elvis_lhs;
|
|
2610
2613
|
var tmp;
|
|
2611
2614
|
if (schema instanceof SchemaObject) {
|
|
2612
2615
|
var tmp2_subject = schema.y1n_1;
|
|
2613
2616
|
var tmp_0;
|
|
2614
|
-
switch (tmp2_subject == null ? -1 : tmp2_subject.
|
|
2617
|
+
switch (tmp2_subject == null ? -1 : tmp2_subject.r2_1) {
|
|
2615
2618
|
case -1:
|
|
2616
2619
|
case 5:
|
|
2617
|
-
tmp_0 = flatten($this_parseResponseBody, OpenAPIV2Parser_instance, schema, Common_getInstance().
|
|
2620
|
+
tmp_0 = flatten($this_parseResponseBody, OpenAPIV2Parser_instance, schema, Common_getInstance().t2e([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.j2f_1), 'ResponseBody']));
|
|
2618
2621
|
break;
|
|
2619
2622
|
case 4:
|
|
2620
2623
|
var tmp3_safe_receiver = schema.z1n_1;
|
|
@@ -2624,7 +2627,7 @@ function OpenAPIV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
2624
2627
|
} else {
|
|
2625
2628
|
// Inline function 'kotlin.let' call
|
|
2626
2629
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Parser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
2627
|
-
tmp_1 = flatten_0($this_parseResponseBody, OpenAPIV2Parser_instance, tmp3_safe_receiver, Common_getInstance().
|
|
2630
|
+
tmp_1 = flatten_0($this_parseResponseBody, OpenAPIV2Parser_instance, tmp3_safe_receiver, Common_getInstance().t2e([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.j2f_1), 'ResponseBody']));
|
|
2628
2631
|
}
|
|
2629
2632
|
|
|
2630
2633
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2654,10 +2657,10 @@ function OpenAPIV2Parser$toName$lambda(it) {
|
|
|
2654
2657
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2655
2658
|
|
|
2656
2659
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
2657
|
-
tmp = tmp_0.
|
|
2660
|
+
tmp = tmp_0.t2e([tmp$ret$1]);
|
|
2658
2661
|
break;
|
|
2659
2662
|
case false:
|
|
2660
|
-
tmp = Common_getInstance().
|
|
2663
|
+
tmp = Common_getInstance().t2e([it]);
|
|
2661
2664
|
break;
|
|
2662
2665
|
default:
|
|
2663
2666
|
noWhenBranchMatchedException();
|
|
@@ -2667,8 +2670,8 @@ function OpenAPIV2Parser$toName$lambda(it) {
|
|
|
2667
2670
|
}
|
|
2668
2671
|
function OpenAPIV2Parser() {
|
|
2669
2672
|
}
|
|
2670
|
-
protoOf(OpenAPIV2Parser).
|
|
2671
|
-
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.
|
|
2673
|
+
protoOf(OpenAPIV2Parser).q2e = function (json, strict) {
|
|
2674
|
+
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.m2f((new OpenAPI(Json(VOID, OpenAPIV2Parser$parse$lambda(strict)))).c1h(json)));
|
|
2672
2675
|
var tmp;
|
|
2673
2676
|
if (tmp0_elvis_lhs == null) {
|
|
2674
2677
|
var message = 'Cannot yield non empty AST for OpenAPI v2';
|
|
@@ -2678,11 +2681,11 @@ protoOf(OpenAPIV2Parser).b2e = function (json, strict) {
|
|
|
2678
2681
|
}
|
|
2679
2682
|
return new AST(nonEmptyListOf(new Module('', tmp), []));
|
|
2680
2683
|
};
|
|
2681
|
-
protoOf(OpenAPIV2Parser).
|
|
2684
|
+
protoOf(OpenAPIV2Parser).n2f = function (json, strict, $super) {
|
|
2682
2685
|
strict = strict === VOID ? true : strict;
|
|
2683
|
-
return $super === VOID ? this.
|
|
2686
|
+
return $super === VOID ? this.q2e(json, strict) : $super.q2e.call(this, json, strict);
|
|
2684
2687
|
};
|
|
2685
|
-
protoOf(OpenAPIV2Parser).
|
|
2688
|
+
protoOf(OpenAPIV2Parser).m2f = function (_this__u8e3s4) {
|
|
2686
2689
|
// Inline function 'kotlin.collections.reduce' call
|
|
2687
2690
|
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();
|
|
2688
2691
|
if (!iterator.h())
|
|
@@ -2723,7 +2726,7 @@ function toDict(_this__u8e3s4, isNullable) {
|
|
|
2723
2726
|
}
|
|
2724
2727
|
function isPrimitive(_this__u8e3s4) {
|
|
2725
2728
|
var tmp;
|
|
2726
|
-
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.
|
|
2729
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.r2_1) {
|
|
2727
2730
|
case 0:
|
|
2728
2731
|
tmp = true;
|
|
2729
2732
|
break;
|
|
@@ -2781,7 +2784,7 @@ function emitComponents(_this__u8e3s4, $this) {
|
|
|
2781
2784
|
while (_iterator__ex2g4s_0.h()) {
|
|
2782
2785
|
var element_0 = _iterator__ex2g4s_0.i();
|
|
2783
2786
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emitComponents.<anonymous>' call
|
|
2784
|
-
var tmp = element_0.
|
|
2787
|
+
var tmp = element_0.i2b().b1();
|
|
2785
2788
|
var tmp_0;
|
|
2786
2789
|
if (element_0 instanceof Enum) {
|
|
2787
2790
|
tmp_0 = emit_3(element_0, OpenAPIV3Emitter_getInstance());
|
|
@@ -2812,7 +2815,7 @@ function emitComponents(_this__u8e3s4, $this) {
|
|
|
2812
2815
|
}
|
|
2813
2816
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2814
2817
|
var pair = to(tmp, tmp_0);
|
|
2815
|
-
destination_0.
|
|
2818
|
+
destination_0.n2(pair.ke_1, pair.le_1);
|
|
2816
2819
|
}
|
|
2817
2820
|
// Inline function 'kotlin.let' call
|
|
2818
2821
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emitComponents.<anonymous>' call
|
|
@@ -2839,12 +2842,12 @@ function emitPaths(_this__u8e3s4, $this) {
|
|
|
2839
2842
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emitPaths.<anonymous>' call
|
|
2840
2843
|
var key = element_0.u24_1;
|
|
2841
2844
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
2842
|
-
var value = destination_0.
|
|
2845
|
+
var value = destination_0.g2(key);
|
|
2843
2846
|
var tmp;
|
|
2844
2847
|
if (value == null) {
|
|
2845
2848
|
// Inline function 'kotlin.collections.groupByTo.<anonymous>' call
|
|
2846
2849
|
var answer = ArrayList_init_$Create$();
|
|
2847
|
-
destination_0.
|
|
2850
|
+
destination_0.n2(key, answer);
|
|
2848
2851
|
tmp = answer;
|
|
2849
2852
|
} else {
|
|
2850
2853
|
tmp = value;
|
|
@@ -2931,7 +2934,7 @@ function emit_2(_this__u8e3s4, $this) {
|
|
|
2931
2934
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
2932
2935
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2933
2936
|
var pair = emitSchema(element, OpenAPIV3Emitter_getInstance());
|
|
2934
|
-
destination.
|
|
2937
|
+
destination.n2(pair.ke_1, pair.le_1);
|
|
2935
2938
|
}
|
|
2936
2939
|
// Inline function 'kotlin.collections.filter' call
|
|
2937
2940
|
var tmp0 = _this__u8e3s4.l26_1.g27_1;
|
|
@@ -3173,12 +3176,12 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3173
3176
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
3174
3177
|
var key = element_2.a25_1;
|
|
3175
3178
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
3176
|
-
var value = destination_4.
|
|
3179
|
+
var value = destination_4.g2(key);
|
|
3177
3180
|
var tmp_6;
|
|
3178
3181
|
if (value == null) {
|
|
3179
3182
|
// Inline function 'kotlin.collections.groupByTo.<anonymous>' call
|
|
3180
3183
|
var answer = ArrayList_init_$Create$();
|
|
3181
|
-
destination_4.
|
|
3184
|
+
destination_4.n2(key, answer);
|
|
3182
3185
|
tmp_6 = answer;
|
|
3183
3186
|
} else {
|
|
3184
3187
|
tmp_6 = value;
|
|
@@ -3219,7 +3222,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3219
3222
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3220
3223
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3221
3224
|
var pair = emitHeader(element_4, OpenAPIV3Emitter_getInstance());
|
|
3222
|
-
destination_7.
|
|
3225
|
+
destination_7.n2(pair.ke_1, pair.le_1);
|
|
3223
3226
|
}
|
|
3224
3227
|
var tmp1_description = _this__u8e3s4.s24_1.b1() + ' ' + statusCode + ' response';
|
|
3225
3228
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -3250,7 +3253,7 @@ function emit_6(_this__u8e3s4, $this) {
|
|
|
3250
3253
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3251
3254
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3252
3255
|
var pair_0 = emit_7(element_6, OpenAPIV3Emitter_getInstance());
|
|
3253
|
-
destination_9.
|
|
3256
|
+
destination_9.n2(pair_0.ke_1, pair_0.le_1);
|
|
3254
3257
|
}
|
|
3255
3258
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
3256
3259
|
var tmp_8;
|
|
@@ -3387,7 +3390,7 @@ function emitFormat_0(_this__u8e3s4, $this) {
|
|
|
3387
3390
|
var tmp_0;
|
|
3388
3391
|
if (t instanceof Number_0) {
|
|
3389
3392
|
var tmp_1;
|
|
3390
|
-
switch (t.n24_1.
|
|
3393
|
+
switch (t.n24_1.r2_1) {
|
|
3391
3394
|
case 0:
|
|
3392
3395
|
tmp_1 = 'float';
|
|
3393
3396
|
break;
|
|
@@ -3402,7 +3405,7 @@ function emitFormat_0(_this__u8e3s4, $this) {
|
|
|
3402
3405
|
} else {
|
|
3403
3406
|
if (t instanceof Integer) {
|
|
3404
3407
|
var tmp_2;
|
|
3405
|
-
switch (t.p24_1.
|
|
3408
|
+
switch (t.p24_1.r2_1) {
|
|
3406
3409
|
case 0:
|
|
3407
3410
|
tmp_2 = 'int32';
|
|
3408
3411
|
break;
|
|
@@ -3444,23 +3447,26 @@ function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
|
3444
3447
|
function OpenAPIV3Emitter() {
|
|
3445
3448
|
OpenAPIV3Emitter_instance = this;
|
|
3446
3449
|
Emitter.call(this);
|
|
3447
|
-
this.
|
|
3448
|
-
this.
|
|
3449
|
-
this.
|
|
3450
|
+
this.p2f_1 = FileExtension_JSON_getInstance();
|
|
3451
|
+
this.q2f_1 = null;
|
|
3452
|
+
this.r2f_1 = '';
|
|
3450
3453
|
}
|
|
3451
3454
|
protoOf(OpenAPIV3Emitter).d26 = function () {
|
|
3452
|
-
return this.
|
|
3455
|
+
return this.p2f_1;
|
|
3453
3456
|
};
|
|
3454
3457
|
protoOf(OpenAPIV3Emitter).e26 = function () {
|
|
3455
|
-
return this.
|
|
3458
|
+
return this.q2f_1;
|
|
3459
|
+
};
|
|
3460
|
+
protoOf(OpenAPIV3Emitter).f26 = function (_this__u8e3s4) {
|
|
3461
|
+
return this.z28();
|
|
3456
3462
|
};
|
|
3457
3463
|
protoOf(OpenAPIV3Emitter).w26 = function () {
|
|
3458
|
-
return this.
|
|
3464
|
+
return this.r2f_1;
|
|
3459
3465
|
};
|
|
3460
3466
|
protoOf(OpenAPIV3Emitter).x26 = function (module_0, logger) {
|
|
3461
|
-
var tmp0 = Common_getInstance().
|
|
3467
|
+
var tmp0 = Common_getInstance().s2e_1;
|
|
3462
3468
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
3463
|
-
var value = this.
|
|
3469
|
+
var value = this.s2f(module_0, null);
|
|
3464
3470
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3465
3471
|
var this_0 = tmp0.ip();
|
|
3466
3472
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -3470,27 +3476,27 @@ protoOf(OpenAPIV3Emitter).x26 = function (module_0, logger) {
|
|
|
3470
3476
|
return nonEmptyListOf(new Emitted('OpenAPIObject', tmp$ret$2), []);
|
|
3471
3477
|
};
|
|
3472
3478
|
protoOf(OpenAPIV3Emitter).b27 = function (type, module_0) {
|
|
3473
|
-
return this.
|
|
3479
|
+
return this.z28();
|
|
3474
3480
|
};
|
|
3475
3481
|
protoOf(OpenAPIV3Emitter).l27 = function (enum_0, module_0) {
|
|
3476
|
-
return this.
|
|
3482
|
+
return this.z28();
|
|
3477
3483
|
};
|
|
3478
3484
|
protoOf(OpenAPIV3Emitter).h27 = function (refined) {
|
|
3479
|
-
return this.
|
|
3485
|
+
return this.z28();
|
|
3480
3486
|
};
|
|
3481
3487
|
protoOf(OpenAPIV3Emitter).p27 = function (endpoint) {
|
|
3482
|
-
return this.
|
|
3488
|
+
return this.z28();
|
|
3483
3489
|
};
|
|
3484
3490
|
protoOf(OpenAPIV3Emitter).n27 = function (union) {
|
|
3485
|
-
return this.
|
|
3491
|
+
return this.z28();
|
|
3486
3492
|
};
|
|
3487
3493
|
protoOf(OpenAPIV3Emitter).o27 = function (channel) {
|
|
3488
|
-
return this.
|
|
3494
|
+
return this.z28();
|
|
3489
3495
|
};
|
|
3490
|
-
protoOf(OpenAPIV3Emitter).
|
|
3491
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
3496
|
+
protoOf(OpenAPIV3Emitter).s2f = function (module_0, options) {
|
|
3497
|
+
var tmp1_elvis_lhs = options == null ? null : options.t2f_1;
|
|
3492
3498
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
3493
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
3499
|
+
var tmp3_elvis_lhs = options == null ? null : options.u2f_1;
|
|
3494
3500
|
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));
|
|
3495
3501
|
};
|
|
3496
3502
|
var OpenAPIV3Emitter_instance;
|
|
@@ -3529,7 +3535,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3529
3535
|
var parameters = plus(resolveParameters_2(_this__u8e3s4, OpenAPIV3Parser_instance, path), resolveParameters_1(_this__u8e3s4, OpenAPIV3Parser_instance, operation));
|
|
3530
3536
|
var segments = toSegments_0(_this__u8e3s4, OpenAPIV3Parser_instance, key, parameters, operation, method);
|
|
3531
3537
|
var tmp0_elvis_lhs = toName_1(operation, OpenAPIV3Parser_instance);
|
|
3532
|
-
var name = tmp0_elvis_lhs == null ? toName_2(key, OpenAPIV3Parser_instance) + method.
|
|
3538
|
+
var name = tmp0_elvis_lhs == null ? toName_2(key, OpenAPIV3Parser_instance) + method.q2_1 : tmp0_elvis_lhs;
|
|
3533
3539
|
// Inline function 'kotlin.collections.filter' call
|
|
3534
3540
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3535
3541
|
var destination_1 = ArrayList_init_$Create$();
|
|
@@ -3548,7 +3554,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3548
3554
|
while (_iterator__ex2g4s_2.h()) {
|
|
3549
3555
|
var item_0 = _iterator__ex2g4s_2.i();
|
|
3550
3556
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3551
|
-
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_0, Common_getInstance().
|
|
3557
|
+
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_0, Common_getInstance().t2e([name, 'Parameter', item_0.q1w_1]));
|
|
3552
3558
|
destination_2.e(tmp$ret$9);
|
|
3553
3559
|
}
|
|
3554
3560
|
var query = destination_2;
|
|
@@ -3570,7 +3576,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3570
3576
|
while (_iterator__ex2g4s_4.h()) {
|
|
3571
3577
|
var item_1 = _iterator__ex2g4s_4.i();
|
|
3572
3578
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3573
|
-
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_1, Common_getInstance().
|
|
3579
|
+
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_1, Common_getInstance().t2e([name, 'Parameter', item_1.q1w_1]));
|
|
3574
3580
|
destination_4.e(tmp$ret$15);
|
|
3575
3581
|
}
|
|
3576
3582
|
var headers = destination_4;
|
|
@@ -3592,7 +3598,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3592
3598
|
while (_iterator__ex2g4s_6.h()) {
|
|
3593
3599
|
var item_2 = _iterator__ex2g4s_6.i();
|
|
3594
3600
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3595
|
-
var tmp$ret$21 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_2, Common_getInstance().
|
|
3601
|
+
var tmp$ret$21 = toField_3(_this__u8e3s4, OpenAPIV3Parser_instance, item_2, Common_getInstance().t2e([name, 'Parameter', item_2.q1w_1]));
|
|
3596
3602
|
destination_6.e(tmp$ret$21);
|
|
3597
3603
|
}
|
|
3598
3604
|
var cookies = destination_6;
|
|
@@ -3636,7 +3642,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3636
3642
|
tmp_2 = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema, isNullable);
|
|
3637
3643
|
} else {
|
|
3638
3644
|
if (schema instanceof SchemaObject_0) {
|
|
3639
|
-
tmp_2 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema, isNullable, Common_getInstance().
|
|
3645
|
+
tmp_2 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema, isNullable, Common_getInstance().t2e([name, 'RequestBody']));
|
|
3640
3646
|
} else {
|
|
3641
3647
|
if (schema == null) {
|
|
3642
3648
|
tmp_2 = null;
|
|
@@ -3725,7 +3731,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3725
3731
|
while (_iterator__ex2g4s_10.h()) {
|
|
3726
3732
|
var item_5 = _iterator__ex2g4s_10.i();
|
|
3727
3733
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3728
|
-
var tmp$ret$46 = toField_4(_this__u8e3s4, OpenAPIV3Parser_instance, resolve_5(_this__u8e3s4, OpenAPIV3Parser_instance, item_5.b1()), item_5.a1(), Common_getInstance().
|
|
3734
|
+
var tmp$ret$46 = toField_4(_this__u8e3s4, OpenAPIV3Parser_instance, resolve_5(_this__u8e3s4, OpenAPIV3Parser_instance, item_5.b1()), item_5.a1(), Common_getInstance().t2e([name, 'ResponseHeader']));
|
|
3729
3735
|
destination_10.e(tmp$ret$46);
|
|
3730
3736
|
}
|
|
3731
3737
|
tmp_7 = destination_10;
|
|
@@ -3740,7 +3746,7 @@ function parseEndpoint(_this__u8e3s4, $this) {
|
|
|
3740
3746
|
tmp_10 = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema_0, isNullable_0);
|
|
3741
3747
|
} else {
|
|
3742
3748
|
if (schema_0 instanceof SchemaObject_0) {
|
|
3743
|
-
tmp_10 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema_0, isNullable_0, Common_getInstance().
|
|
3749
|
+
tmp_10 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, schema_0, isNullable_0, Common_getInstance().t2e([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
3744
3750
|
} else {
|
|
3745
3751
|
if (schema_0 == null) {
|
|
3746
3752
|
tmp_10 = new Any(isNullable_0);
|
|
@@ -3792,10 +3798,10 @@ function flatMapResponse(_this__u8e3s4, $this, response, name, statusCode) {
|
|
|
3792
3798
|
if (schema instanceof SchemaObject_0) {
|
|
3793
3799
|
var tmp0_subject = schema.i1x_1;
|
|
3794
3800
|
var tmp_0;
|
|
3795
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
3801
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.r2_1) {
|
|
3796
3802
|
case -1:
|
|
3797
3803
|
case 5:
|
|
3798
|
-
tmp_0 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema, Common_getInstance().
|
|
3804
|
+
tmp_0 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, schema, Common_getInstance().t2e([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
3799
3805
|
break;
|
|
3800
3806
|
case 4:
|
|
3801
3807
|
var tmp1_safe_receiver = schema.n1x_1;
|
|
@@ -3805,7 +3811,7 @@ function flatMapResponse(_this__u8e3s4, $this, response, name, statusCode) {
|
|
|
3805
3811
|
} else {
|
|
3806
3812
|
// Inline function 'kotlin.let' call
|
|
3807
3813
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.flatMapResponse.<anonymous>.<anonymous>' call
|
|
3808
|
-
tmp_1 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
3814
|
+
tmp_1 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp1_safe_receiver, Common_getInstance().t2e([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
3809
3815
|
}
|
|
3810
3816
|
|
|
3811
3817
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -3850,7 +3856,7 @@ function parseComponents(_this__u8e3s4, $this) {
|
|
|
3850
3856
|
tmp = false;
|
|
3851
3857
|
}
|
|
3852
3858
|
if (tmp) {
|
|
3853
|
-
destination.
|
|
3859
|
+
destination.n2(element.a1(), element.b1());
|
|
3854
3860
|
}
|
|
3855
3861
|
}
|
|
3856
3862
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -3861,7 +3867,7 @@ function parseComponents(_this__u8e3s4, $this) {
|
|
|
3861
3867
|
while (_iterator__ex2g4s_0.h()) {
|
|
3862
3868
|
var element_0 = _iterator__ex2g4s_0.i();
|
|
3863
3869
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseComponents.<anonymous>' call
|
|
3864
|
-
var list = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, element_0.b1(), Common_getInstance().
|
|
3870
|
+
var list = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, element_0.b1(), Common_getInstance().t2e([element_0.a1()]));
|
|
3865
3871
|
addAll(destination_0, list);
|
|
3866
3872
|
}
|
|
3867
3873
|
return destination_0;
|
|
@@ -3877,7 +3883,7 @@ function toName_1(_this__u8e3s4, $this) {
|
|
|
3877
3883
|
} else {
|
|
3878
3884
|
// Inline function 'kotlin.let' call
|
|
3879
3885
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.toName.<anonymous>' call
|
|
3880
|
-
tmp = Common_getInstance().
|
|
3886
|
+
tmp = Common_getInstance().t2e([tmp0_safe_receiver]);
|
|
3881
3887
|
}
|
|
3882
3888
|
return tmp;
|
|
3883
3889
|
}
|
|
@@ -3929,7 +3935,7 @@ function toSegments_0(_this__u8e3s4, $this, path, parameters, operation, method)
|
|
|
3929
3935
|
|
|
3930
3936
|
var param = item.substring(1, endIndex);
|
|
3931
3937
|
var tmp1_elvis_lhs = toName_1(operation, OpenAPIV3Parser_instance);
|
|
3932
|
-
var name = tmp1_elvis_lhs == null ? toName_2(path, OpenAPIV3Parser_instance) + method.
|
|
3938
|
+
var name = tmp1_elvis_lhs == null ? toName_2(path, OpenAPIV3Parser_instance) + method.q2_1 : tmp1_elvis_lhs;
|
|
3933
3939
|
// Inline function 'kotlin.collections.find' call
|
|
3934
3940
|
|
|
3935
3941
|
var tmp$ret$7;
|
|
@@ -3965,7 +3971,7 @@ function toSegments_0(_this__u8e3s4, $this, path, parameters, operation, method)
|
|
|
3965
3971
|
} else {
|
|
3966
3972
|
// Inline function 'kotlin.let' call
|
|
3967
3973
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.toSegments.<anonymous>.<anonymous>' call
|
|
3968
|
-
tmp_1 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp4_safe_receiver, false, Common_getInstance().
|
|
3974
|
+
tmp_1 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, tmp4_safe_receiver, false, Common_getInstance().t2e([name, 'Parameter', param]));
|
|
3969
3975
|
}
|
|
3970
3976
|
|
|
3971
3977
|
var tmp5_safe_receiver = tmp_1;
|
|
@@ -4082,7 +4088,7 @@ function resolveParameters_2(_this__u8e3s4, $this, pathItem) {
|
|
|
4082
4088
|
function resolveParameterObject_0(_this__u8e3s4, $this, reference) {
|
|
4083
4089
|
var tmp0_safe_receiver = _this__u8e3s4.k1r_1;
|
|
4084
4090
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f1t_1;
|
|
4085
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4091
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g2(getReference_0(reference, $this));
|
|
4086
4092
|
var tmp;
|
|
4087
4093
|
if (tmp2_safe_receiver == null) {
|
|
4088
4094
|
tmp = null;
|
|
@@ -4106,7 +4112,7 @@ function resolveParameterObject_0(_this__u8e3s4, $this, reference) {
|
|
|
4106
4112
|
function resolveSchemaObject_0(_this__u8e3s4, $this, reference) {
|
|
4107
4113
|
var tmp0_safe_receiver = _this__u8e3s4.k1r_1;
|
|
4108
4114
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d1t_1;
|
|
4109
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4115
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g2(getReference_0(reference, $this));
|
|
4110
4116
|
var tmp;
|
|
4111
4117
|
if (tmp2_safe_receiver == null) {
|
|
4112
4118
|
tmp = null;
|
|
@@ -4138,7 +4144,7 @@ function resolveSchemaObject_0(_this__u8e3s4, $this, reference) {
|
|
|
4138
4144
|
function resolveHeaderObject(_this__u8e3s4, $this, reference) {
|
|
4139
4145
|
var tmp0_safe_receiver = _this__u8e3s4.k1r_1;
|
|
4140
4146
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i1t_1;
|
|
4141
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4147
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g2(getReference_0(reference, $this));
|
|
4142
4148
|
var tmp;
|
|
4143
4149
|
if (tmp2_safe_receiver == null) {
|
|
4144
4150
|
tmp = null;
|
|
@@ -4170,7 +4176,7 @@ function resolveHeaderObject(_this__u8e3s4, $this, reference) {
|
|
|
4170
4176
|
function resolveRequestBodyObject(_this__u8e3s4, $this, reference) {
|
|
4171
4177
|
var tmp0_safe_receiver = _this__u8e3s4.k1r_1;
|
|
4172
4178
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h1t_1;
|
|
4173
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4179
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g2(getReference_0(reference, $this));
|
|
4174
4180
|
var tmp;
|
|
4175
4181
|
if (tmp2_safe_receiver == null) {
|
|
4176
4182
|
tmp = null;
|
|
@@ -4202,7 +4208,7 @@ function resolveRequestBodyObject(_this__u8e3s4, $this, reference) {
|
|
|
4202
4208
|
function resolveResponseObject_0(_this__u8e3s4, $this, reference) {
|
|
4203
4209
|
var tmp0_safe_receiver = _this__u8e3s4.k1r_1;
|
|
4204
4210
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e1t_1;
|
|
4205
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
4211
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g2(getReference_0(reference, $this));
|
|
4206
4212
|
var tmp;
|
|
4207
4213
|
if (tmp2_safe_receiver == null) {
|
|
4208
4214
|
tmp = null;
|
|
@@ -4366,7 +4372,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4366
4372
|
tmp_6 = toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, item, false);
|
|
4367
4373
|
} else {
|
|
4368
4374
|
if (item instanceof SchemaObject_0) {
|
|
4369
|
-
tmp_6 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, item, false, Common_getInstance().
|
|
4375
|
+
tmp_6 = toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, item, false, Common_getInstance().t2e([name, index_0.toString()]));
|
|
4370
4376
|
} else {
|
|
4371
4377
|
noWhenBranchMatchedException();
|
|
4372
4378
|
}
|
|
@@ -4394,7 +4400,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4394
4400
|
tmp_8 = emptyList();
|
|
4395
4401
|
} else {
|
|
4396
4402
|
if (element instanceof SchemaObject_0) {
|
|
4397
|
-
tmp_8 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, element, Common_getInstance().
|
|
4403
|
+
tmp_8 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, element, Common_getInstance().t2e([name, index_2.toString()]));
|
|
4398
4404
|
} else {
|
|
4399
4405
|
noWhenBranchMatchedException();
|
|
4400
4406
|
}
|
|
@@ -4466,7 +4472,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4466
4472
|
var key_0 = element_2.a1();
|
|
4467
4473
|
// Inline function 'kotlin.collections.component2' call
|
|
4468
4474
|
var value = element_2.b1();
|
|
4469
|
-
var list_2 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, Common_getInstance().
|
|
4475
|
+
var list_2 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, Common_getInstance().t2e([name, key_0]));
|
|
4470
4476
|
addAll(destination_3, list_2);
|
|
4471
4477
|
}
|
|
4472
4478
|
var list_3 = destination_3;
|
|
@@ -4492,7 +4498,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4492
4498
|
} else {
|
|
4493
4499
|
var tmp5_subject = schemaObject.i1x_1;
|
|
4494
4500
|
var tmp_12;
|
|
4495
|
-
switch (tmp5_subject == null ? -1 : tmp5_subject.
|
|
4501
|
+
switch (tmp5_subject == null ? -1 : tmp5_subject.r2_1) {
|
|
4496
4502
|
case -1:
|
|
4497
4503
|
case 5:
|
|
4498
4504
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -4514,7 +4520,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4514
4520
|
var key_1 = element_3.a1();
|
|
4515
4521
|
// Inline function 'kotlin.collections.component2' call
|
|
4516
4522
|
var value_0 = element_3.b1();
|
|
4517
|
-
var list_4 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value_0, Common_getInstance().
|
|
4523
|
+
var list_4 = flatten_2(_this__u8e3s4, OpenAPIV3Parser_instance, value_0, Common_getInstance().t2e([name, key_1]));
|
|
4518
4524
|
addAll(destination_5, list_4);
|
|
4519
4525
|
}
|
|
4520
4526
|
|
|
@@ -4535,7 +4541,7 @@ function flatten_1(_this__u8e3s4, $this, schemaObject, name) {
|
|
|
4535
4541
|
tmp_14 = emptyList();
|
|
4536
4542
|
} else {
|
|
4537
4543
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
4538
|
-
tmp_14 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, tmp6_safe_receiver, Common_getInstance().
|
|
4544
|
+
tmp_14 = flatten_1(_this__u8e3s4, OpenAPIV3Parser_instance, tmp6_safe_receiver, Common_getInstance().t2e([name, 'array']));
|
|
4539
4545
|
} else {
|
|
4540
4546
|
noWhenBranchMatchedException();
|
|
4541
4547
|
}
|
|
@@ -4596,7 +4602,7 @@ function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
4596
4602
|
}
|
|
4597
4603
|
tmp = tmp_0;
|
|
4598
4604
|
} else if (!(schema.i1y_1 == null)) {
|
|
4599
|
-
tmp = new Custom(sanitize_0(Common_getInstance().
|
|
4605
|
+
tmp = new Custom(sanitize_0(Common_getInstance().t2e([getReference_0(referencingObject, OpenAPIV3Parser_instance)])), isNullable);
|
|
4600
4606
|
} else if (isPrimitive_0(schema.i1x_1)) {
|
|
4601
4607
|
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.i1x_1), OpenAPIV3Parser_instance, schema.r1x_1), isNullable);
|
|
4602
4608
|
} else if (equals(schema.i1x_1, Type_ARRAY_getInstance_0())) {
|
|
@@ -4608,7 +4614,7 @@ function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
4608
4614
|
tmp_3 = toIterable_0(toReference_1(_this__u8e3s4, tmp_4, items, tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs), isNullable);
|
|
4609
4615
|
} else {
|
|
4610
4616
|
if (items instanceof SchemaObject_0) {
|
|
4611
|
-
var tmp_5 = sanitize_0(Common_getInstance().
|
|
4617
|
+
var tmp_5 = sanitize_0(Common_getInstance().t2e([getReference_0(referencingObject, OpenAPIV3Parser_instance), 'Array']));
|
|
4612
4618
|
var tmp3_elvis_lhs = schema.z1w_1;
|
|
4613
4619
|
tmp_3 = toIterable_0(new Custom(tmp_5, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs), isNullable);
|
|
4614
4620
|
} else {
|
|
@@ -4622,7 +4628,7 @@ function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
|
4622
4628
|
}
|
|
4623
4629
|
tmp = tmp_3;
|
|
4624
4630
|
} else {
|
|
4625
|
-
tmp = new Custom(sanitize_0(Common_getInstance().
|
|
4631
|
+
tmp = new Custom(sanitize_0(Common_getInstance().t2e([getReference_0(referencingObject, OpenAPIV3Parser_instance)])), isNullable);
|
|
4626
4632
|
}
|
|
4627
4633
|
return tmp;
|
|
4628
4634
|
}
|
|
@@ -4702,7 +4708,7 @@ function toReference_2(_this__u8e3s4, $this, schema, isNullable, name) {
|
|
|
4702
4708
|
} else {
|
|
4703
4709
|
var type = schema.i1x_1;
|
|
4704
4710
|
var tmp_6;
|
|
4705
|
-
switch (type == null ? -1 : type.
|
|
4711
|
+
switch (type == null ? -1 : type.r2_1) {
|
|
4706
4712
|
case 0:
|
|
4707
4713
|
case 1:
|
|
4708
4714
|
case 2:
|
|
@@ -4773,7 +4779,7 @@ function toOperationList_0(_this__u8e3s4, $this) {
|
|
|
4773
4779
|
var element = _iterator__ex2g4s.i();
|
|
4774
4780
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.toOperationList.<anonymous>' call
|
|
4775
4781
|
var tmp_0;
|
|
4776
|
-
switch (element.
|
|
4782
|
+
switch (element.r2_1) {
|
|
4777
4783
|
case 0:
|
|
4778
4784
|
tmp_0 = _this__u8e3s4.p1s_1;
|
|
4779
4785
|
break;
|
|
@@ -4803,9 +4809,9 @@ function toOperationList_0(_this__u8e3s4, $this) {
|
|
|
4803
4809
|
break;
|
|
4804
4810
|
}
|
|
4805
4811
|
var tmp$ret$0 = tmp_0;
|
|
4806
|
-
result.
|
|
4812
|
+
result.n2(element, tmp$ret$0);
|
|
4807
4813
|
}
|
|
4808
|
-
return tmp.
|
|
4814
|
+
return tmp.u2e(result);
|
|
4809
4815
|
}
|
|
4810
4816
|
function getReference_0(_this__u8e3s4, $this) {
|
|
4811
4817
|
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.w1w_1), ['/']), 3);
|
|
@@ -4820,7 +4826,7 @@ function getReference_0(_this__u8e3s4, $this) {
|
|
|
4820
4826
|
}
|
|
4821
4827
|
function toPrimitive_0(_this__u8e3s4, $this, format) {
|
|
4822
4828
|
var tmp;
|
|
4823
|
-
switch (_this__u8e3s4.
|
|
4829
|
+
switch (_this__u8e3s4.r2_1) {
|
|
4824
4830
|
case 0:
|
|
4825
4831
|
tmp = String_instance;
|
|
4826
4832
|
break;
|
|
@@ -4860,7 +4866,7 @@ function toField_2(_this__u8e3s4, $this, schema, name) {
|
|
|
4860
4866
|
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
4861
4867
|
var tmp;
|
|
4862
4868
|
if (value instanceof SchemaObject_0) {
|
|
4863
|
-
tmp = new Field(new FieldIdentifier(key), !(value.i1y_1 == null) ? toReference_2(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable, Common_getInstance().
|
|
4869
|
+
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])));
|
|
4864
4870
|
} else {
|
|
4865
4871
|
if (value instanceof ReferenceObject_0) {
|
|
4866
4872
|
tmp = new Field(new FieldIdentifier(key), toReference_1(_this__u8e3s4, OpenAPIV3Parser_instance, value, isNullable));
|
|
@@ -4920,19 +4926,19 @@ function toField_4(_this__u8e3s4, $this, header, identifier, name) {
|
|
|
4920
4926
|
return new Field(new FieldIdentifier(identifier), it);
|
|
4921
4927
|
}
|
|
4922
4928
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
4923
|
-
this.
|
|
4924
|
-
this.
|
|
4925
|
-
this.
|
|
4926
|
-
this.
|
|
4929
|
+
this.v2f_1 = path;
|
|
4930
|
+
this.w2f_1 = pathItem;
|
|
4931
|
+
this.x2f_1 = method;
|
|
4932
|
+
this.y2f_1 = operation;
|
|
4927
4933
|
}
|
|
4928
4934
|
protoOf(FlattenRequest_0).toString = function () {
|
|
4929
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
4935
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.v2f_1) + ', pathItem=' + this.w2f_1.toString() + ', method=' + this.x2f_1.toString() + ', operation=' + this.y2f_1.toString() + ')';
|
|
4930
4936
|
};
|
|
4931
4937
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
4932
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
4933
|
-
result = imul(result, 31) + this.
|
|
4934
|
-
result = imul(result, 31) + this.
|
|
4935
|
-
result = imul(result, 31) + this.
|
|
4938
|
+
var result = Path__hashCode_impl_go73kd_0(this.v2f_1);
|
|
4939
|
+
result = imul(result, 31) + this.w2f_1.hashCode() | 0;
|
|
4940
|
+
result = imul(result, 31) + this.x2f_1.hashCode() | 0;
|
|
4941
|
+
result = imul(result, 31) + this.y2f_1.hashCode() | 0;
|
|
4936
4942
|
return result;
|
|
4937
4943
|
};
|
|
4938
4944
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -4941,13 +4947,13 @@ protoOf(FlattenRequest_0).equals = function (other) {
|
|
|
4941
4947
|
if (!(other instanceof FlattenRequest_0))
|
|
4942
4948
|
return false;
|
|
4943
4949
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
4944
|
-
if (!(this.
|
|
4950
|
+
if (!(this.v2f_1 === tmp0_other_with_cast.v2f_1))
|
|
4945
4951
|
return false;
|
|
4946
|
-
if (!this.
|
|
4952
|
+
if (!this.w2f_1.equals(tmp0_other_with_cast.w2f_1))
|
|
4947
4953
|
return false;
|
|
4948
|
-
if (!this.
|
|
4954
|
+
if (!this.x2f_1.equals(tmp0_other_with_cast.x2f_1))
|
|
4949
4955
|
return false;
|
|
4950
|
-
if (!this.
|
|
4956
|
+
if (!this.y2f_1.equals(tmp0_other_with_cast.y2f_1))
|
|
4951
4957
|
return false;
|
|
4952
4958
|
return true;
|
|
4953
4959
|
};
|
|
@@ -4996,23 +5002,23 @@ function flatMapRequests_0(_this__u8e3s4, $this, f) {
|
|
|
4996
5002
|
return destination_1;
|
|
4997
5003
|
}
|
|
4998
5004
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
4999
|
-
this.
|
|
5000
|
-
this.
|
|
5001
|
-
this.
|
|
5002
|
-
this.
|
|
5003
|
-
this.
|
|
5004
|
-
this.
|
|
5005
|
+
this.z2f_1 = path;
|
|
5006
|
+
this.a2g_1 = pathItem;
|
|
5007
|
+
this.b2g_1 = method;
|
|
5008
|
+
this.c2g_1 = operation;
|
|
5009
|
+
this.d2g_1 = statusCode;
|
|
5010
|
+
this.e2g_1 = response;
|
|
5005
5011
|
}
|
|
5006
5012
|
protoOf(FlattenResponse_0).toString = function () {
|
|
5007
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
5013
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.z2f_1) + ', pathItem=' + this.a2g_1.toString() + ', method=' + this.b2g_1.toString() + ', operation=' + this.c2g_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy_0(this.d2g_1) + ', response=' + toString(this.e2g_1) + ')';
|
|
5008
5014
|
};
|
|
5009
5015
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
5010
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
5011
|
-
result = imul(result, 31) + this.
|
|
5012
|
-
result = imul(result, 31) + this.
|
|
5013
|
-
result = imul(result, 31) + this.
|
|
5014
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.
|
|
5015
|
-
result = imul(result, 31) + hashCode(this.
|
|
5016
|
+
var result = Path__hashCode_impl_go73kd_0(this.z2f_1);
|
|
5017
|
+
result = imul(result, 31) + this.a2g_1.hashCode() | 0;
|
|
5018
|
+
result = imul(result, 31) + this.b2g_1.hashCode() | 0;
|
|
5019
|
+
result = imul(result, 31) + this.c2g_1.hashCode() | 0;
|
|
5020
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.d2g_1) | 0;
|
|
5021
|
+
result = imul(result, 31) + hashCode(this.e2g_1) | 0;
|
|
5016
5022
|
return result;
|
|
5017
5023
|
};
|
|
5018
5024
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -5021,17 +5027,17 @@ protoOf(FlattenResponse_0).equals = function (other) {
|
|
|
5021
5027
|
if (!(other instanceof FlattenResponse_0))
|
|
5022
5028
|
return false;
|
|
5023
5029
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
5024
|
-
if (!(this.
|
|
5030
|
+
if (!(this.z2f_1 === tmp0_other_with_cast.z2f_1))
|
|
5025
5031
|
return false;
|
|
5026
|
-
if (!this.
|
|
5032
|
+
if (!this.a2g_1.equals(tmp0_other_with_cast.a2g_1))
|
|
5027
5033
|
return false;
|
|
5028
|
-
if (!this.
|
|
5034
|
+
if (!this.b2g_1.equals(tmp0_other_with_cast.b2g_1))
|
|
5029
5035
|
return false;
|
|
5030
|
-
if (!this.
|
|
5036
|
+
if (!this.c2g_1.equals(tmp0_other_with_cast.c2g_1))
|
|
5031
5037
|
return false;
|
|
5032
|
-
if (!(this.
|
|
5038
|
+
if (!(this.d2g_1 === tmp0_other_with_cast.d2g_1))
|
|
5033
5039
|
return false;
|
|
5034
|
-
if (!equals(this.
|
|
5040
|
+
if (!equals(this.e2g_1, tmp0_other_with_cast.e2g_1))
|
|
5035
5041
|
return false;
|
|
5036
5042
|
return true;
|
|
5037
5043
|
};
|
|
@@ -5112,9 +5118,9 @@ function OpenAPIV3Parser$parse$lambda($strict) {
|
|
|
5112
5118
|
}
|
|
5113
5119
|
function OpenAPIV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
5114
5120
|
return function ($this$flatMapRequests) {
|
|
5115
|
-
var parameters = plus(resolveParameters_2($this_parseParameters, OpenAPIV3Parser_instance, $this$flatMapRequests.
|
|
5116
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5117
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5121
|
+
var parameters = plus(resolveParameters_2($this_parseParameters, OpenAPIV3Parser_instance, $this$flatMapRequests.w2f_1), resolveParameters_1($this_parseParameters, OpenAPIV3Parser_instance, $this$flatMapRequests.y2f_1));
|
|
5122
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.y2f_1, OpenAPIV3Parser_instance);
|
|
5123
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.v2f_1, OpenAPIV3Parser_instance) + $this$flatMapRequests.x2f_1.q2_1 : tmp0_elvis_lhs;
|
|
5118
5124
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5119
5125
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5120
5126
|
var destination = ArrayList_init_$Create$();
|
|
@@ -5129,7 +5135,7 @@ function OpenAPIV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
5129
5135
|
} else {
|
|
5130
5136
|
// Inline function 'kotlin.let' call
|
|
5131
5137
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
5132
|
-
tmp = flatten_2($this_parseParameters, OpenAPIV3Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
5138
|
+
tmp = flatten_2($this_parseParameters, OpenAPIV3Parser_instance, tmp0_safe_receiver, Common_getInstance().t2e([name, 'Parameter', element.q1w_1]));
|
|
5133
5139
|
}
|
|
5134
5140
|
var tmp1_elvis_lhs = tmp;
|
|
5135
5141
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -5140,9 +5146,9 @@ function OpenAPIV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
|
5140
5146
|
}
|
|
5141
5147
|
function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
5142
5148
|
return function ($this$flatMapRequests) {
|
|
5143
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5144
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5145
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
5149
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.y2f_1, OpenAPIV3Parser_instance);
|
|
5150
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.v2f_1, OpenAPIV3Parser_instance) + $this$flatMapRequests.x2f_1.q2_1 : tmp0_elvis_lhs;
|
|
5151
|
+
var tmp1_safe_receiver = $this$flatMapRequests.y2f_1.t1u_1;
|
|
5146
5152
|
var tmp;
|
|
5147
5153
|
if (tmp1_safe_receiver == null) {
|
|
5148
5154
|
tmp = null;
|
|
@@ -5170,10 +5176,10 @@ function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
5170
5176
|
if (schema instanceof SchemaObject_0) {
|
|
5171
5177
|
var tmp0_subject = schema.i1x_1;
|
|
5172
5178
|
var tmp_1;
|
|
5173
|
-
switch (tmp0_subject == null ? -1 : tmp0_subject.
|
|
5179
|
+
switch (tmp0_subject == null ? -1 : tmp0_subject.r2_1) {
|
|
5174
5180
|
case -1:
|
|
5175
5181
|
case 5:
|
|
5176
|
-
tmp_1 = flatten_1($this_parseRequestBody, OpenAPIV3Parser_instance, schema, Common_getInstance().
|
|
5182
|
+
tmp_1 = flatten_1($this_parseRequestBody, OpenAPIV3Parser_instance, schema, Common_getInstance().t2e([name, 'RequestBody']));
|
|
5177
5183
|
break;
|
|
5178
5184
|
case 4:
|
|
5179
5185
|
var tmp1_safe_receiver_0 = schema.n1x_1;
|
|
@@ -5183,7 +5189,7 @@ function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
5183
5189
|
} else {
|
|
5184
5190
|
// Inline function 'kotlin.let' call
|
|
5185
5191
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
5186
|
-
tmp_2 = flatten_2($this_parseRequestBody, OpenAPIV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
5192
|
+
tmp_2 = flatten_2($this_parseRequestBody, OpenAPIV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().t2e([name, 'RequestBody']));
|
|
5187
5193
|
}
|
|
5188
5194
|
|
|
5189
5195
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -5217,15 +5223,15 @@ function OpenAPIV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
5217
5223
|
}
|
|
5218
5224
|
function OpenAPIV3Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
5219
5225
|
return function ($this$flatMapResponses) {
|
|
5220
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.
|
|
5221
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.
|
|
5222
|
-
var response = $this$flatMapResponses.
|
|
5226
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.c2g_1, OpenAPIV3Parser_instance);
|
|
5227
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.z2f_1, OpenAPIV3Parser_instance) + $this$flatMapResponses.b2g_1.q2_1 : tmp0_elvis_lhs;
|
|
5228
|
+
var response = $this$flatMapResponses.e2g_1;
|
|
5223
5229
|
var tmp;
|
|
5224
5230
|
if (response instanceof ResponseObject_0) {
|
|
5225
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, response, name, $this$flatMapResponses.
|
|
5231
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, response, name, $this$flatMapResponses.d2g_1);
|
|
5226
5232
|
} else {
|
|
5227
5233
|
if (response instanceof ReferenceObject_0) {
|
|
5228
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenAPIV3Parser_instance, response).le_1, name, $this$flatMapResponses.
|
|
5234
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenAPIV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenAPIV3Parser_instance, response).le_1, name, $this$flatMapResponses.d2g_1);
|
|
5229
5235
|
} else {
|
|
5230
5236
|
noWhenBranchMatchedException();
|
|
5231
5237
|
}
|
|
@@ -5244,10 +5250,10 @@ function OpenAPIV3Parser$toName$lambda(it) {
|
|
|
5244
5250
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5245
5251
|
|
|
5246
5252
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
5247
|
-
tmp = tmp_0.
|
|
5253
|
+
tmp = tmp_0.t2e([tmp$ret$1]);
|
|
5248
5254
|
break;
|
|
5249
5255
|
case false:
|
|
5250
|
-
tmp = Common_getInstance().
|
|
5256
|
+
tmp = Common_getInstance().t2e([it]);
|
|
5251
5257
|
break;
|
|
5252
5258
|
default:
|
|
5253
5259
|
noWhenBranchMatchedException();
|
|
@@ -5257,8 +5263,8 @@ function OpenAPIV3Parser$toName$lambda(it) {
|
|
|
5257
5263
|
}
|
|
5258
5264
|
function OpenAPIV3Parser() {
|
|
5259
5265
|
}
|
|
5260
|
-
protoOf(OpenAPIV3Parser).
|
|
5261
|
-
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.
|
|
5266
|
+
protoOf(OpenAPIV3Parser).q2e = function (json, strict) {
|
|
5267
|
+
var tmp0_elvis_lhs = toNonEmptyListOrNull(this.f2g((new OpenAPI_0(Json(VOID, OpenAPIV3Parser$parse$lambda(strict)))).c1h(json)));
|
|
5262
5268
|
var tmp;
|
|
5263
5269
|
if (tmp0_elvis_lhs == null) {
|
|
5264
5270
|
var message = 'Cannot yield non empty List<Node> for OpenAPI v3';
|
|
@@ -5268,11 +5274,11 @@ protoOf(OpenAPIV3Parser).b2e = function (json, strict) {
|
|
|
5268
5274
|
}
|
|
5269
5275
|
return new AST(nonEmptyListOf(new Module('', tmp), []));
|
|
5270
5276
|
};
|
|
5271
|
-
protoOf(OpenAPIV3Parser).
|
|
5277
|
+
protoOf(OpenAPIV3Parser).g2g = function (json, strict, $super) {
|
|
5272
5278
|
strict = strict === VOID ? false : strict;
|
|
5273
|
-
return $super === VOID ? this.
|
|
5279
|
+
return $super === VOID ? this.q2e(json, strict) : $super.q2e.call(this, json, strict);
|
|
5274
5280
|
};
|
|
5275
|
-
protoOf(OpenAPIV3Parser).
|
|
5281
|
+
protoOf(OpenAPIV3Parser).f2g = function (_this__u8e3s4) {
|
|
5276
5282
|
// Inline function 'kotlin.collections.reduce' call
|
|
5277
5283
|
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();
|
|
5278
5284
|
if (!iterator.h())
|
|
@@ -5313,7 +5319,7 @@ function toDict_0(_this__u8e3s4, isNullable) {
|
|
|
5313
5319
|
}
|
|
5314
5320
|
function isPrimitive_0(_this__u8e3s4) {
|
|
5315
5321
|
var tmp;
|
|
5316
|
-
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.
|
|
5322
|
+
switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.r2_1) {
|
|
5317
5323
|
case 0:
|
|
5318
5324
|
tmp = true;
|
|
5319
5325
|
break;
|