@flock/wirespec 0.17.12 → 0.17.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clikt-clikt.mjs +1129 -1129
- package/colormath-root-colormath.mjs +400 -400
- package/kotlin-rgxgen.mjs +1764 -1764
- package/kotlinx-io-kotlinx-io-core.mjs +373 -373
- package/markdown.mjs +1796 -1796
- package/mordant-mordant.mjs +1531 -1531
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +61 -70
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +103 -103
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +95 -95
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +101 -101
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +73 -73
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +27 -27
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +250 -250
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +262 -262
- package/wirespec-src-converter-openapi.mjs +76 -76
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +116 -116
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +74 -74
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-npm.mjs +14 -14
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +2 -2
|
@@ -393,19 +393,19 @@ function flatMapRequests(_this__u8e3s4, f) {
|
|
|
393
393
|
return destination_1;
|
|
394
394
|
}
|
|
395
395
|
function FlattenRequest(path, pathItem, method, operation) {
|
|
396
|
-
this.
|
|
397
|
-
this.
|
|
398
|
-
this.
|
|
399
|
-
this.
|
|
396
|
+
this.s2e_1 = path;
|
|
397
|
+
this.t2e_1 = pathItem;
|
|
398
|
+
this.u2e_1 = method;
|
|
399
|
+
this.v2e_1 = operation;
|
|
400
400
|
}
|
|
401
401
|
protoOf(FlattenRequest).toString = function () {
|
|
402
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
402
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.s2e_1) + ', pathItem=' + toString(this.t2e_1) + ', method=' + this.u2e_1.toString() + ', operation=' + toString(this.v2e_1) + ')';
|
|
403
403
|
};
|
|
404
404
|
protoOf(FlattenRequest).hashCode = function () {
|
|
405
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
406
|
-
result = imul(result, 31) + hashCode(this.
|
|
407
|
-
result = imul(result, 31) + this.
|
|
408
|
-
result = imul(result, 31) + hashCode(this.
|
|
405
|
+
var result = Path__hashCode_impl_go73kd(this.s2e_1);
|
|
406
|
+
result = imul(result, 31) + hashCode(this.t2e_1) | 0;
|
|
407
|
+
result = imul(result, 31) + this.u2e_1.hashCode() | 0;
|
|
408
|
+
result = imul(result, 31) + hashCode(this.v2e_1) | 0;
|
|
409
409
|
return result;
|
|
410
410
|
};
|
|
411
411
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -414,13 +414,13 @@ protoOf(FlattenRequest).equals = function (other) {
|
|
|
414
414
|
if (!(other instanceof FlattenRequest))
|
|
415
415
|
return false;
|
|
416
416
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
417
|
-
if (!(this.
|
|
417
|
+
if (!(this.s2e_1 === tmp0_other_with_cast.s2e_1))
|
|
418
418
|
return false;
|
|
419
|
-
if (!equals(this.
|
|
419
|
+
if (!equals(this.t2e_1, tmp0_other_with_cast.t2e_1))
|
|
420
420
|
return false;
|
|
421
|
-
if (!this.
|
|
421
|
+
if (!this.u2e_1.equals(tmp0_other_with_cast.u2e_1))
|
|
422
422
|
return false;
|
|
423
|
-
if (!equals(this.
|
|
423
|
+
if (!equals(this.v2e_1, tmp0_other_with_cast.v2e_1))
|
|
424
424
|
return false;
|
|
425
425
|
return true;
|
|
426
426
|
};
|
|
@@ -487,23 +487,23 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
487
487
|
return destination_2;
|
|
488
488
|
}
|
|
489
489
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response) {
|
|
490
|
-
this.
|
|
491
|
-
this.
|
|
492
|
-
this.
|
|
493
|
-
this.
|
|
494
|
-
this.
|
|
495
|
-
this.
|
|
490
|
+
this.w2e_1 = path;
|
|
491
|
+
this.x2e_1 = pathItem;
|
|
492
|
+
this.y2e_1 = method;
|
|
493
|
+
this.z2e_1 = operation;
|
|
494
|
+
this.a2f_1 = statusCode;
|
|
495
|
+
this.b2f_1 = response;
|
|
496
496
|
}
|
|
497
497
|
protoOf(FlattenResponse).toString = function () {
|
|
498
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
498
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.w2e_1) + ', pathItem=' + toString(this.x2e_1) + ', method=' + this.y2e_1.toString() + ', operation=' + toString(this.z2e_1) + ', statusCode=' + StatusCode__toString_impl_6caewy(this.a2f_1) + ', response=' + toString(this.b2f_1) + ')';
|
|
499
499
|
};
|
|
500
500
|
protoOf(FlattenResponse).hashCode = function () {
|
|
501
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
502
|
-
result = imul(result, 31) + hashCode(this.
|
|
503
|
-
result = imul(result, 31) + this.
|
|
504
|
-
result = imul(result, 31) + hashCode(this.
|
|
505
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
506
|
-
result = imul(result, 31) + hashCode(this.
|
|
501
|
+
var result = Path__hashCode_impl_go73kd(this.w2e_1);
|
|
502
|
+
result = imul(result, 31) + hashCode(this.x2e_1) | 0;
|
|
503
|
+
result = imul(result, 31) + this.y2e_1.hashCode() | 0;
|
|
504
|
+
result = imul(result, 31) + hashCode(this.z2e_1) | 0;
|
|
505
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.a2f_1) | 0;
|
|
506
|
+
result = imul(result, 31) + hashCode(this.b2f_1) | 0;
|
|
507
507
|
return result;
|
|
508
508
|
};
|
|
509
509
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -512,17 +512,17 @@ protoOf(FlattenResponse).equals = function (other) {
|
|
|
512
512
|
if (!(other instanceof FlattenResponse))
|
|
513
513
|
return false;
|
|
514
514
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
515
|
-
if (!(this.
|
|
515
|
+
if (!(this.w2e_1 === tmp0_other_with_cast.w2e_1))
|
|
516
516
|
return false;
|
|
517
|
-
if (!equals(this.
|
|
517
|
+
if (!equals(this.x2e_1, tmp0_other_with_cast.x2e_1))
|
|
518
518
|
return false;
|
|
519
|
-
if (!this.
|
|
519
|
+
if (!this.y2e_1.equals(tmp0_other_with_cast.y2e_1))
|
|
520
520
|
return false;
|
|
521
|
-
if (!equals(this.
|
|
521
|
+
if (!equals(this.z2e_1, tmp0_other_with_cast.z2e_1))
|
|
522
522
|
return false;
|
|
523
|
-
if (!(this.
|
|
523
|
+
if (!(this.a2f_1 === tmp0_other_with_cast.a2f_1))
|
|
524
524
|
return false;
|
|
525
|
-
if (!equals(this.
|
|
525
|
+
if (!equals(this.b2f_1, tmp0_other_with_cast.b2f_1))
|
|
526
526
|
return false;
|
|
527
527
|
return true;
|
|
528
528
|
};
|
|
@@ -1209,7 +1209,7 @@ function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
|
1209
1209
|
}
|
|
1210
1210
|
function OpenAPIV2Emitter() {
|
|
1211
1211
|
OpenAPIV2Emitter_instance = this;
|
|
1212
|
-
this.
|
|
1212
|
+
this.c2f_1 = FileExtension_JSON_getInstance();
|
|
1213
1213
|
}
|
|
1214
1214
|
protoOf(OpenAPIV2Emitter).q22 = function (ast, logger) {
|
|
1215
1215
|
// Inline function 'kotlin.let' call
|
|
@@ -1232,10 +1232,10 @@ protoOf(OpenAPIV2Emitter).q22 = function (ast, logger) {
|
|
|
1232
1232
|
// Inline function 'kotlin.contracts.contract' call
|
|
1233
1233
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
1234
1234
|
var it = tmp.uk(destination);
|
|
1235
|
-
var tmp_0 = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().
|
|
1235
|
+
var tmp_0 = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().c2f_1.p25_1;
|
|
1236
1236
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
1237
1237
|
var this_2 = get_json();
|
|
1238
|
-
var value = OpenAPIV2Emitter_getInstance().
|
|
1238
|
+
var value = OpenAPIV2Emitter_getInstance().d2f(it);
|
|
1239
1239
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
1240
1240
|
var this_3 = this_2.zo();
|
|
1241
1241
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -1247,7 +1247,7 @@ protoOf(OpenAPIV2Emitter).q22 = function (ast, logger) {
|
|
|
1247
1247
|
var it_0 = new Emitted(tmp_0, tmp$ret$7);
|
|
1248
1248
|
return nonEmptyListOf(it_0, []);
|
|
1249
1249
|
};
|
|
1250
|
-
protoOf(OpenAPIV2Emitter).
|
|
1250
|
+
protoOf(OpenAPIV2Emitter).d2f = function (statements) {
|
|
1251
1251
|
var tmp0_info = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, '0.0.0');
|
|
1252
1252
|
var tmp1_consumes = listOf('application/json');
|
|
1253
1253
|
var tmp2_produces = listOf('application/json');
|
|
@@ -1544,15 +1544,15 @@ function OpenAPIV2Emitter_getInstance() {
|
|
|
1544
1544
|
}
|
|
1545
1545
|
function OpenAPIV2Parser$parse$lambda($strict) {
|
|
1546
1546
|
return function (it) {
|
|
1547
|
-
return OpenAPIV2Parser_instance.
|
|
1547
|
+
return OpenAPIV2Parser_instance.e2f((new OpenAPIV2(jsonDefault($strict))).f1j(it));
|
|
1548
1548
|
};
|
|
1549
1549
|
}
|
|
1550
1550
|
function OpenAPIV2Parser() {
|
|
1551
1551
|
}
|
|
1552
|
-
protoOf(OpenAPIV2Parser).
|
|
1552
|
+
protoOf(OpenAPIV2Parser).r2e = function (moduleContent, strict) {
|
|
1553
1553
|
return parseOpenApi(moduleContent, OpenAPIV2Parser$parse$lambda(strict));
|
|
1554
1554
|
};
|
|
1555
|
-
protoOf(OpenAPIV2Parser).
|
|
1555
|
+
protoOf(OpenAPIV2Parser).e2f = function (_this__u8e3s4) {
|
|
1556
1556
|
// Inline function 'kotlin.let' call
|
|
1557
1557
|
// Inline function 'kotlin.collections.reduce' call
|
|
1558
1558
|
var iterator = listOf_0([parseEndpoints(_this__u8e3s4), parseParameters(_this__u8e3s4), parseRequestBody(_this__u8e3s4), parseResponseBody(_this__u8e3s4), parseDefinitions(_this__u8e3s4)]).g();
|
|
@@ -2738,7 +2738,7 @@ function toPrimitive(_this__u8e3s4) {
|
|
|
2738
2738
|
var tmp;
|
|
2739
2739
|
switch (tmp0_subject == null ? -1 : tmp0_subject.r2_1) {
|
|
2740
2740
|
case 0:
|
|
2741
|
-
tmp = !(_this__u8e3s4.f1l() == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.f1l()))) : new String_0(null);
|
|
2741
|
+
tmp = !(_this__u8e3s4.f1l() == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.f1l()))) : _this__u8e3s4.e1l() === 'binary' ? Bytes_instance : new String_0(null);
|
|
2742
2742
|
break;
|
|
2743
2743
|
case 2:
|
|
2744
2744
|
tmp = new Integer(_this__u8e3s4.e1l() === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
@@ -2915,12 +2915,12 @@ function toField_1(_this__u8e3s4, schema, name) {
|
|
|
2915
2915
|
}
|
|
2916
2916
|
function parseParameters$lambda($this_parseParameters) {
|
|
2917
2917
|
return function ($this$flatMapRequests) {
|
|
2918
|
-
var tmp = $this$flatMapRequests.
|
|
2918
|
+
var tmp = $this$flatMapRequests.t2e_1;
|
|
2919
2919
|
var tmp_0 = resolveParameters($this_parseParameters, (tmp instanceof OpenAPIV2PathItem ? tmp : THROW_CCE()).e1m_1);
|
|
2920
|
-
var tmp_1 = $this$flatMapRequests.
|
|
2920
|
+
var tmp_1 = $this$flatMapRequests.v2e_1;
|
|
2921
2921
|
var parameters = plus(tmp_0, resolveParameters($this_parseParameters, (tmp_1 instanceof OpenAPIV2Operation ? tmp_1 : THROW_CCE()).i1n_1));
|
|
2922
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2923
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2922
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.v2e_1);
|
|
2923
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.s2e_1) + $this$flatMapRequests.u2e_1.q2_1 : tmp0_elvis_lhs;
|
|
2924
2924
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2925
2925
|
// Inline function 'kotlin.collections.filter' call
|
|
2926
2926
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -2958,12 +2958,12 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
2958
2958
|
}
|
|
2959
2959
|
function parseRequestBody$lambda($this_parseRequestBody) {
|
|
2960
2960
|
return function ($this$flatMapRequests) {
|
|
2961
|
-
var tmp = $this$flatMapRequests.
|
|
2961
|
+
var tmp = $this$flatMapRequests.t2e_1;
|
|
2962
2962
|
var tmp_0 = resolveParameters($this_parseRequestBody, (tmp instanceof OpenAPIV2PathItem ? tmp : THROW_CCE()).e1m_1);
|
|
2963
|
-
var tmp_1 = $this$flatMapRequests.
|
|
2963
|
+
var tmp_1 = $this$flatMapRequests.v2e_1;
|
|
2964
2964
|
var parameters = plus(tmp_0, resolveParameters($this_parseRequestBody, (tmp_1 instanceof OpenAPIV2Operation ? tmp_1 : THROW_CCE()).i1n_1));
|
|
2965
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2966
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2965
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.v2e_1);
|
|
2966
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.s2e_1) + $this$flatMapRequests.u2e_1.q2_1 : tmp0_elvis_lhs;
|
|
2967
2967
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2968
2968
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2969
2969
|
var destination = ArrayList_init_$Create$();
|
|
@@ -2994,7 +2994,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
2994
2994
|
addAll(destination, list);
|
|
2995
2995
|
}
|
|
2996
2996
|
var enums = destination;
|
|
2997
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
2997
|
+
var tmp1_safe_receiver = $this$flatMapRequests.v2e_1.i1n_1;
|
|
2998
2998
|
var tmp_5;
|
|
2999
2999
|
if (tmp1_safe_receiver == null) {
|
|
3000
3000
|
tmp_5 = null;
|
|
@@ -3088,11 +3088,11 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3088
3088
|
}
|
|
3089
3089
|
function parseResponseBody$lambda($this_parseResponseBody) {
|
|
3090
3090
|
return function ($this$flatMapResponses) {
|
|
3091
|
-
var tmp = $this$flatMapResponses.
|
|
3091
|
+
var tmp = $this$flatMapResponses.b2f_1;
|
|
3092
3092
|
var schema = resolve_0($this_parseResponseBody, tmp instanceof OpenAPIV2Response ? tmp : THROW_CCE()).j1l_1;
|
|
3093
|
-
var tmp_0 = $this$flatMapResponses.
|
|
3093
|
+
var tmp_0 = $this$flatMapResponses.z2e_1;
|
|
3094
3094
|
var tmp0_elvis_lhs = toName(tmp_0 instanceof OpenAPIV2Operation ? tmp_0 : THROW_CCE());
|
|
3095
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
3095
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.w2e_1) + $this$flatMapResponses.y2e_1.q2_1 : tmp0_elvis_lhs;
|
|
3096
3096
|
var tmp_1;
|
|
3097
3097
|
if (schema instanceof OpenAPIV2Schema) {
|
|
3098
3098
|
var tmp2_subject = schema.b1o_1;
|
|
@@ -3100,7 +3100,7 @@ function parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
3100
3100
|
switch (tmp2_subject == null ? -1 : tmp2_subject.r2_1) {
|
|
3101
3101
|
case -1:
|
|
3102
3102
|
case 5:
|
|
3103
|
-
tmp_2 = flatten_0($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
3103
|
+
tmp_2 = flatten_0($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.a2f_1), 'ResponseBody']));
|
|
3104
3104
|
break;
|
|
3105
3105
|
case 4:
|
|
3106
3106
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -3113,7 +3113,7 @@ function parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
3113
3113
|
// Inline function 'kotlin.let' call
|
|
3114
3114
|
// Inline function 'kotlin.contracts.contract' call
|
|
3115
3115
|
// Inline function 'community.flock.wirespec.openapi.v2.parseResponseBody.<anonymous>.<anonymous>' call
|
|
3116
|
-
tmp_3 = flatten($this_parseResponseBody, tmp3_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
3116
|
+
tmp_3 = flatten($this_parseResponseBody, tmp3_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.a2f_1), 'ResponseBody']));
|
|
3117
3117
|
}
|
|
3118
3118
|
|
|
3119
3119
|
var tmp0_elvis_lhs_0 = tmp_3;
|
|
@@ -3936,7 +3936,7 @@ function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
|
3936
3936
|
}
|
|
3937
3937
|
function OpenAPIV3Emitter() {
|
|
3938
3938
|
OpenAPIV3Emitter_instance = this;
|
|
3939
|
-
this.
|
|
3939
|
+
this.f2f_1 = FileExtension_JSON_getInstance();
|
|
3940
3940
|
}
|
|
3941
3941
|
protoOf(OpenAPIV3Emitter).q22 = function (ast, logger) {
|
|
3942
3942
|
// Inline function 'kotlin.let' call
|
|
@@ -3959,10 +3959,10 @@ protoOf(OpenAPIV3Emitter).q22 = function (ast, logger) {
|
|
|
3959
3959
|
// Inline function 'kotlin.contracts.contract' call
|
|
3960
3960
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
3961
3961
|
var it = tmp.uk(destination);
|
|
3962
|
-
var tmp_0 = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().
|
|
3962
|
+
var tmp_0 = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().f2f_1.p25_1;
|
|
3963
3963
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
3964
3964
|
var this_2 = get_json();
|
|
3965
|
-
var value = OpenAPIV3Emitter_getInstance().
|
|
3965
|
+
var value = OpenAPIV3Emitter_getInstance().g2f(it, null);
|
|
3966
3966
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3967
3967
|
var this_3 = this_2.zo();
|
|
3968
3968
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -3974,10 +3974,10 @@ protoOf(OpenAPIV3Emitter).q22 = function (ast, logger) {
|
|
|
3974
3974
|
var it_0 = new Emitted(tmp_0, tmp$ret$7);
|
|
3975
3975
|
return nonEmptyListOf(it_0, []);
|
|
3976
3976
|
};
|
|
3977
|
-
protoOf(OpenAPIV3Emitter).
|
|
3978
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
3977
|
+
protoOf(OpenAPIV3Emitter).g2f = function (statements, options) {
|
|
3978
|
+
var tmp1_elvis_lhs = options == null ? null : options.h2f_1;
|
|
3979
3979
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
3980
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
3980
|
+
var tmp3_elvis_lhs = options == null ? null : options.i2f_1;
|
|
3981
3981
|
var tmp4_info = new InfoObject(tmp, VOID, VOID, VOID, VOID, tmp3_elvis_lhs == null ? '0.0.0' : tmp3_elvis_lhs);
|
|
3982
3982
|
var tmp5_paths = emitPaths(statements, this);
|
|
3983
3983
|
var tmp6_components = emitComponents(statements, this);
|
|
@@ -3991,15 +3991,15 @@ function OpenAPIV3Emitter_getInstance() {
|
|
|
3991
3991
|
}
|
|
3992
3992
|
function OpenAPIV3Parser$parse$lambda($strict) {
|
|
3993
3993
|
return function (it) {
|
|
3994
|
-
return OpenAPIV3Parser_instance.
|
|
3994
|
+
return OpenAPIV3Parser_instance.j2f((new OpenAPIV3(jsonDefault($strict))).f1j(it));
|
|
3995
3995
|
};
|
|
3996
3996
|
}
|
|
3997
3997
|
function OpenAPIV3Parser() {
|
|
3998
3998
|
}
|
|
3999
|
-
protoOf(OpenAPIV3Parser).
|
|
3999
|
+
protoOf(OpenAPIV3Parser).r2e = function (moduleContent, strict) {
|
|
4000
4000
|
return parseOpenApi(moduleContent, OpenAPIV3Parser$parse$lambda(strict));
|
|
4001
4001
|
};
|
|
4002
|
-
protoOf(OpenAPIV3Parser).
|
|
4002
|
+
protoOf(OpenAPIV3Parser).j2f = function (_this__u8e3s4) {
|
|
4003
4003
|
// Inline function 'kotlin.let' call
|
|
4004
4004
|
// Inline function 'kotlin.collections.reduce' call
|
|
4005
4005
|
var iterator = listOf_0([parseEndpoints_0(_this__u8e3s4), parseParameters_0(_this__u8e3s4), parseRequestBody_0(_this__u8e3s4), parseResponseBody_0(_this__u8e3s4), parseDefinitions_0(_this__u8e3s4)]).g();
|
|
@@ -5314,7 +5314,7 @@ function toPrimitive_0(_this__u8e3s4) {
|
|
|
5314
5314
|
var tmp;
|
|
5315
5315
|
switch (tmp0_subject == null ? -1 : tmp0_subject.r2_1) {
|
|
5316
5316
|
case 0:
|
|
5317
|
-
tmp = !(_this__u8e3s4.e1w_1 == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.e1w_1))) : new String_0(null);
|
|
5317
|
+
tmp = !(_this__u8e3s4.e1w_1 == null) ? new String_0(_RegExp___init__impl__p22noo(ensureNotNull(_this__u8e3s4.e1w_1))) : _this__u8e3s4.x1v_1 === 'binary' ? Bytes_instance : new String_0(null);
|
|
5318
5318
|
break;
|
|
5319
5319
|
case 2:
|
|
5320
5320
|
tmp = new Integer(_this__u8e3s4.x1v_1 === 'int32' ? Precision_P32_getInstance() : Precision_P64_getInstance(), null);
|
|
@@ -5457,12 +5457,12 @@ function toField_4(_this__u8e3s4, schema, name) {
|
|
|
5457
5457
|
}
|
|
5458
5458
|
function parseParameters$lambda_0($this_parseParameters) {
|
|
5459
5459
|
return function ($this$flatMapRequests) {
|
|
5460
|
-
var tmp = $this$flatMapRequests.
|
|
5460
|
+
var tmp = $this$flatMapRequests.t2e_1;
|
|
5461
5461
|
var tmp_0 = resolveParameters_0($this_parseParameters, (tmp instanceof OpenAPIV3PathItem ? tmp : THROW_CCE()).o1t_1);
|
|
5462
|
-
var tmp_1 = $this$flatMapRequests.
|
|
5462
|
+
var tmp_1 = $this$flatMapRequests.v2e_1;
|
|
5463
5463
|
var parameters = plus(tmp_0, resolveParameters_0($this_parseParameters, (tmp_1 instanceof OpenAPIV3Operation ? tmp_1 : THROW_CCE()).f1u_1));
|
|
5464
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
5465
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
5464
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.v2e_1);
|
|
5465
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.s2e_1) + $this$flatMapRequests.u2e_1.q2_1 : tmp0_elvis_lhs;
|
|
5466
5466
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5467
5467
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5468
5468
|
var destination = ArrayList_init_$Create$();
|
|
@@ -5489,12 +5489,12 @@ function parseParameters$lambda_0($this_parseParameters) {
|
|
|
5489
5489
|
}
|
|
5490
5490
|
function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
5491
5491
|
return function ($this$flatMapRequests) {
|
|
5492
|
-
var tmp = $this$flatMapRequests.
|
|
5492
|
+
var tmp = $this$flatMapRequests.v2e_1;
|
|
5493
5493
|
var tmp0_elvis_lhs = toName(tmp instanceof OpenAPIV3Operation ? tmp : THROW_CCE());
|
|
5494
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
5494
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.s2e_1) + $this$flatMapRequests.u2e_1.q2_1 : tmp0_elvis_lhs;
|
|
5495
5495
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5496
5496
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5497
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
5497
|
+
var tmp1_safe_receiver = $this$flatMapRequests.v2e_1.g1u_1;
|
|
5498
5498
|
var tmp_0;
|
|
5499
5499
|
if (tmp1_safe_receiver == null) {
|
|
5500
5500
|
tmp_0 = null;
|
|
@@ -5569,17 +5569,17 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
5569
5569
|
}
|
|
5570
5570
|
function parseResponseBody$lambda_0($this_parseResponseBody) {
|
|
5571
5571
|
return function ($this$flatMapResponses) {
|
|
5572
|
-
var tmp = $this$flatMapResponses.
|
|
5572
|
+
var tmp = $this$flatMapResponses.z2e_1;
|
|
5573
5573
|
var tmp0_elvis_lhs = toName(tmp instanceof OpenAPIV3Operation ? tmp : THROW_CCE());
|
|
5574
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
5575
|
-
var tmp_0 = $this$flatMapResponses.
|
|
5574
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.w2e_1) + $this$flatMapResponses.y2e_1.q2_1 : tmp0_elvis_lhs;
|
|
5575
|
+
var tmp_0 = $this$flatMapResponses.b2f_1;
|
|
5576
5576
|
var response = isInterface(tmp_0, OpenAPIV3ResponseOrReference) ? tmp_0 : THROW_CCE();
|
|
5577
5577
|
var tmp_1;
|
|
5578
5578
|
if (response instanceof OpenAPIV3Response) {
|
|
5579
|
-
tmp_1 = flatMapResponse($this_parseResponseBody, response, name, $this$flatMapResponses.
|
|
5579
|
+
tmp_1 = flatMapResponse($this_parseResponseBody, response, name, $this$flatMapResponses.a2f_1);
|
|
5580
5580
|
} else {
|
|
5581
5581
|
if (response instanceof OpenAPIV3Reference) {
|
|
5582
|
-
tmp_1 = flatMapResponse($this_parseResponseBody, resolveOpenAPIV3Response($this_parseResponseBody, response).fe_1, name, $this$flatMapResponses.
|
|
5582
|
+
tmp_1 = flatMapResponse($this_parseResponseBody, resolveOpenAPIV3Response($this_parseResponseBody, response).fe_1, name, $this$flatMapResponses.a2f_1);
|
|
5583
5583
|
} else {
|
|
5584
5584
|
noWhenBranchMatchedException();
|
|
5585
5585
|
}
|