@flock/wirespec 0.17.16 → 0.17.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clikt-clikt.mjs +1129 -1129
- package/colormath-root-colormath.mjs +400 -400
- package/kotlin-kotlin-stdlib.mjs +9 -9
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1764 -1764
- package/kotlinx-io-kotlinx-io-core.mjs +371 -371
- package/markdown.mjs +1796 -1796
- package/mordant-mordant.mjs +1531 -1531
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +24 -12
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +112 -101
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +81 -70
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +92 -81
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +77 -77
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +34 -34
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +246 -246
- package/wirespec-src-converter-avro.mjs +262 -262
- package/wirespec-src-converter-openapi.mjs +74 -74
- package/wirespec-src-plugin-arguments.mjs +117 -117
- package/wirespec-src-plugin-cli.mjs +66 -66
- package/wirespec-src-plugin-npm.mjs +10 -10
- package/wirespec-src-tools-generator.mjs +2 -2
|
@@ -394,19 +394,19 @@ function flatMapRequests(_this__u8e3s4, f) {
|
|
|
394
394
|
return destination_1;
|
|
395
395
|
}
|
|
396
396
|
function FlattenRequest(path, pathItem, method, operation) {
|
|
397
|
-
this.
|
|
398
|
-
this.
|
|
399
|
-
this.
|
|
400
|
-
this.
|
|
397
|
+
this.r2e_1 = path;
|
|
398
|
+
this.s2e_1 = pathItem;
|
|
399
|
+
this.t2e_1 = method;
|
|
400
|
+
this.u2e_1 = operation;
|
|
401
401
|
}
|
|
402
402
|
protoOf(FlattenRequest).toString = function () {
|
|
403
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
403
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.r2e_1) + ', pathItem=' + toString(this.s2e_1) + ', method=' + this.t2e_1.toString() + ', operation=' + toString(this.u2e_1) + ')';
|
|
404
404
|
};
|
|
405
405
|
protoOf(FlattenRequest).hashCode = function () {
|
|
406
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
407
|
-
result = imul(result, 31) + hashCode(this.
|
|
408
|
-
result = imul(result, 31) + this.
|
|
409
|
-
result = imul(result, 31) + hashCode(this.
|
|
406
|
+
var result = Path__hashCode_impl_go73kd(this.r2e_1);
|
|
407
|
+
result = imul(result, 31) + hashCode(this.s2e_1) | 0;
|
|
408
|
+
result = imul(result, 31) + this.t2e_1.hashCode() | 0;
|
|
409
|
+
result = imul(result, 31) + hashCode(this.u2e_1) | 0;
|
|
410
410
|
return result;
|
|
411
411
|
};
|
|
412
412
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -415,13 +415,13 @@ protoOf(FlattenRequest).equals = function (other) {
|
|
|
415
415
|
if (!(other instanceof FlattenRequest))
|
|
416
416
|
return false;
|
|
417
417
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
418
|
-
if (!(this.
|
|
418
|
+
if (!(this.r2e_1 === tmp0_other_with_cast.r2e_1))
|
|
419
419
|
return false;
|
|
420
|
-
if (!equals(this.
|
|
420
|
+
if (!equals(this.s2e_1, tmp0_other_with_cast.s2e_1))
|
|
421
421
|
return false;
|
|
422
|
-
if (!this.
|
|
422
|
+
if (!this.t2e_1.equals(tmp0_other_with_cast.t2e_1))
|
|
423
423
|
return false;
|
|
424
|
-
if (!equals(this.
|
|
424
|
+
if (!equals(this.u2e_1, tmp0_other_with_cast.u2e_1))
|
|
425
425
|
return false;
|
|
426
426
|
return true;
|
|
427
427
|
};
|
|
@@ -488,23 +488,23 @@ function flatMapResponses(_this__u8e3s4, f) {
|
|
|
488
488
|
return destination_2;
|
|
489
489
|
}
|
|
490
490
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response) {
|
|
491
|
-
this.
|
|
492
|
-
this.
|
|
493
|
-
this.
|
|
494
|
-
this.
|
|
495
|
-
this.
|
|
496
|
-
this.
|
|
491
|
+
this.v2e_1 = path;
|
|
492
|
+
this.w2e_1 = pathItem;
|
|
493
|
+
this.x2e_1 = method;
|
|
494
|
+
this.y2e_1 = operation;
|
|
495
|
+
this.z2e_1 = statusCode;
|
|
496
|
+
this.a2f_1 = response;
|
|
497
497
|
}
|
|
498
498
|
protoOf(FlattenResponse).toString = function () {
|
|
499
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
499
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.v2e_1) + ', pathItem=' + toString(this.w2e_1) + ', method=' + this.x2e_1.toString() + ', operation=' + toString(this.y2e_1) + ', statusCode=' + StatusCode__toString_impl_6caewy(this.z2e_1) + ', response=' + toString(this.a2f_1) + ')';
|
|
500
500
|
};
|
|
501
501
|
protoOf(FlattenResponse).hashCode = function () {
|
|
502
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
503
|
-
result = imul(result, 31) + hashCode(this.
|
|
504
|
-
result = imul(result, 31) + this.
|
|
505
|
-
result = imul(result, 31) + hashCode(this.
|
|
506
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
507
|
-
result = imul(result, 31) + hashCode(this.
|
|
502
|
+
var result = Path__hashCode_impl_go73kd(this.v2e_1);
|
|
503
|
+
result = imul(result, 31) + hashCode(this.w2e_1) | 0;
|
|
504
|
+
result = imul(result, 31) + this.x2e_1.hashCode() | 0;
|
|
505
|
+
result = imul(result, 31) + hashCode(this.y2e_1) | 0;
|
|
506
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.z2e_1) | 0;
|
|
507
|
+
result = imul(result, 31) + hashCode(this.a2f_1) | 0;
|
|
508
508
|
return result;
|
|
509
509
|
};
|
|
510
510
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -513,17 +513,17 @@ protoOf(FlattenResponse).equals = function (other) {
|
|
|
513
513
|
if (!(other instanceof FlattenResponse))
|
|
514
514
|
return false;
|
|
515
515
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
516
|
-
if (!(this.
|
|
516
|
+
if (!(this.v2e_1 === tmp0_other_with_cast.v2e_1))
|
|
517
517
|
return false;
|
|
518
|
-
if (!equals(this.
|
|
518
|
+
if (!equals(this.w2e_1, tmp0_other_with_cast.w2e_1))
|
|
519
519
|
return false;
|
|
520
|
-
if (!this.
|
|
520
|
+
if (!this.x2e_1.equals(tmp0_other_with_cast.x2e_1))
|
|
521
521
|
return false;
|
|
522
|
-
if (!equals(this.
|
|
522
|
+
if (!equals(this.y2e_1, tmp0_other_with_cast.y2e_1))
|
|
523
523
|
return false;
|
|
524
|
-
if (!(this.
|
|
524
|
+
if (!(this.z2e_1 === tmp0_other_with_cast.z2e_1))
|
|
525
525
|
return false;
|
|
526
|
-
if (!equals(this.
|
|
526
|
+
if (!equals(this.a2f_1, tmp0_other_with_cast.a2f_1))
|
|
527
527
|
return false;
|
|
528
528
|
return true;
|
|
529
529
|
};
|
|
@@ -1513,7 +1513,7 @@ function OpenAPIV2Emitter$emitSegment$lambda(it) {
|
|
|
1513
1513
|
}
|
|
1514
1514
|
function OpenAPIV2Emitter() {
|
|
1515
1515
|
OpenAPIV2Emitter_instance = this;
|
|
1516
|
-
this.
|
|
1516
|
+
this.b2f_1 = FileExtension_JSON_getInstance();
|
|
1517
1517
|
}
|
|
1518
1518
|
protoOf(OpenAPIV2Emitter).q22 = function (ast, logger) {
|
|
1519
1519
|
// Inline function 'kotlin.let' call
|
|
@@ -1539,10 +1539,10 @@ protoOf(OpenAPIV2Emitter).q22 = function (ast, logger) {
|
|
|
1539
1539
|
// Inline function 'kotlin.contracts.contract' call
|
|
1540
1540
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenAPIV2Emitter.emit.<anonymous>' call
|
|
1541
1541
|
var it = tmp.uk(destination);
|
|
1542
|
-
var tmp_0 = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().
|
|
1542
|
+
var tmp_0 = 'OpenAPI.' + OpenAPIV2Emitter_getInstance().b2f_1.p25_1;
|
|
1543
1543
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
1544
1544
|
var this_2 = get_json();
|
|
1545
|
-
var value = OpenAPIV2Emitter_getInstance().
|
|
1545
|
+
var value = OpenAPIV2Emitter_getInstance().c2f(it, logger);
|
|
1546
1546
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
1547
1547
|
var this_3 = this_2.zo();
|
|
1548
1548
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -1554,7 +1554,7 @@ protoOf(OpenAPIV2Emitter).q22 = function (ast, logger) {
|
|
|
1554
1554
|
var it_0 = new Emitted(tmp_0, tmp$ret$7);
|
|
1555
1555
|
return nonEmptyListOf(it_0, []);
|
|
1556
1556
|
};
|
|
1557
|
-
protoOf(OpenAPIV2Emitter).
|
|
1557
|
+
protoOf(OpenAPIV2Emitter).c2f = function (statements, logger) {
|
|
1558
1558
|
var tmp0_info = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, '0.0.0');
|
|
1559
1559
|
var tmp1_consumes = listOf('application/json');
|
|
1560
1560
|
var tmp2_produces = listOf('application/json');
|
|
@@ -1570,15 +1570,15 @@ function OpenAPIV2Emitter_getInstance() {
|
|
|
1570
1570
|
}
|
|
1571
1571
|
function OpenAPIV2Parser$parse$lambda($strict) {
|
|
1572
1572
|
return function (it) {
|
|
1573
|
-
return OpenAPIV2Parser_instance.
|
|
1573
|
+
return OpenAPIV2Parser_instance.d2f((new OpenAPIV2(jsonDefault($strict))).f1j(it));
|
|
1574
1574
|
};
|
|
1575
1575
|
}
|
|
1576
1576
|
function OpenAPIV2Parser() {
|
|
1577
1577
|
}
|
|
1578
|
-
protoOf(OpenAPIV2Parser).
|
|
1578
|
+
protoOf(OpenAPIV2Parser).q2e = function (moduleContent, strict) {
|
|
1579
1579
|
return parseOpenApi(moduleContent, OpenAPIV2Parser$parse$lambda(strict));
|
|
1580
1580
|
};
|
|
1581
|
-
protoOf(OpenAPIV2Parser).
|
|
1581
|
+
protoOf(OpenAPIV2Parser).d2f = function (_this__u8e3s4) {
|
|
1582
1582
|
// Inline function 'kotlin.let' call
|
|
1583
1583
|
// Inline function 'kotlin.collections.reduce' call
|
|
1584
1584
|
var iterator = listOf_0([parseEndpoints(_this__u8e3s4), parseParameters(_this__u8e3s4), parseRequestBody(_this__u8e3s4), parseResponseBody(_this__u8e3s4), parseDefinitions(_this__u8e3s4)]).g();
|
|
@@ -2941,12 +2941,12 @@ function toField_1(_this__u8e3s4, schema, name) {
|
|
|
2941
2941
|
}
|
|
2942
2942
|
function parseParameters$lambda($this_parseParameters) {
|
|
2943
2943
|
return function ($this$flatMapRequests) {
|
|
2944
|
-
var tmp = $this$flatMapRequests.
|
|
2944
|
+
var tmp = $this$flatMapRequests.s2e_1;
|
|
2945
2945
|
var tmp_0 = resolveParameters($this_parseParameters, (tmp instanceof OpenAPIV2PathItem ? tmp : THROW_CCE()).e1m_1);
|
|
2946
|
-
var tmp_1 = $this$flatMapRequests.
|
|
2946
|
+
var tmp_1 = $this$flatMapRequests.u2e_1;
|
|
2947
2947
|
var parameters = plus_0(tmp_0, resolveParameters($this_parseParameters, (tmp_1 instanceof OpenAPIV2Operation ? tmp_1 : THROW_CCE()).i1n_1));
|
|
2948
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2949
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2948
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.u2e_1);
|
|
2949
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.r2e_1) + $this$flatMapRequests.t2e_1.q2_1 : tmp0_elvis_lhs;
|
|
2950
2950
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2951
2951
|
// Inline function 'kotlin.collections.filter' call
|
|
2952
2952
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -2984,12 +2984,12 @@ function parseParameters$lambda($this_parseParameters) {
|
|
|
2984
2984
|
}
|
|
2985
2985
|
function parseRequestBody$lambda($this_parseRequestBody) {
|
|
2986
2986
|
return function ($this$flatMapRequests) {
|
|
2987
|
-
var tmp = $this$flatMapRequests.
|
|
2987
|
+
var tmp = $this$flatMapRequests.s2e_1;
|
|
2988
2988
|
var tmp_0 = resolveParameters($this_parseRequestBody, (tmp instanceof OpenAPIV2PathItem ? tmp : THROW_CCE()).e1m_1);
|
|
2989
|
-
var tmp_1 = $this$flatMapRequests.
|
|
2989
|
+
var tmp_1 = $this$flatMapRequests.u2e_1;
|
|
2990
2990
|
var parameters = plus_0(tmp_0, resolveParameters($this_parseRequestBody, (tmp_1 instanceof OpenAPIV2Operation ? tmp_1 : THROW_CCE()).i1n_1));
|
|
2991
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2992
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2991
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.u2e_1);
|
|
2992
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.r2e_1) + $this$flatMapRequests.t2e_1.q2_1 : tmp0_elvis_lhs;
|
|
2993
2993
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2994
2994
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2995
2995
|
var destination = ArrayList_init_$Create$();
|
|
@@ -3020,7 +3020,7 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3020
3020
|
addAll(destination, list);
|
|
3021
3021
|
}
|
|
3022
3022
|
var enums = destination;
|
|
3023
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
3023
|
+
var tmp1_safe_receiver = $this$flatMapRequests.u2e_1.i1n_1;
|
|
3024
3024
|
var tmp_5;
|
|
3025
3025
|
if (tmp1_safe_receiver == null) {
|
|
3026
3026
|
tmp_5 = null;
|
|
@@ -3114,11 +3114,11 @@ function parseRequestBody$lambda($this_parseRequestBody) {
|
|
|
3114
3114
|
}
|
|
3115
3115
|
function parseResponseBody$lambda($this_parseResponseBody) {
|
|
3116
3116
|
return function ($this$flatMapResponses) {
|
|
3117
|
-
var tmp = $this$flatMapResponses.
|
|
3117
|
+
var tmp = $this$flatMapResponses.a2f_1;
|
|
3118
3118
|
var schema = resolve_0($this_parseResponseBody, tmp instanceof OpenAPIV2Response ? tmp : THROW_CCE()).j1l_1;
|
|
3119
|
-
var tmp_0 = $this$flatMapResponses.
|
|
3119
|
+
var tmp_0 = $this$flatMapResponses.y2e_1;
|
|
3120
3120
|
var tmp0_elvis_lhs = toName(tmp_0 instanceof OpenAPIV2Operation ? tmp_0 : THROW_CCE());
|
|
3121
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
3121
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.v2e_1) + $this$flatMapResponses.x2e_1.q2_1 : tmp0_elvis_lhs;
|
|
3122
3122
|
var tmp_1;
|
|
3123
3123
|
if (schema instanceof OpenAPIV2Schema) {
|
|
3124
3124
|
var tmp2_subject = schema.b1o_1;
|
|
@@ -3126,7 +3126,7 @@ function parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
3126
3126
|
switch (tmp2_subject == null ? -1 : tmp2_subject.r2_1) {
|
|
3127
3127
|
case -1:
|
|
3128
3128
|
case 5:
|
|
3129
|
-
tmp_2 = flatten_0($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
3129
|
+
tmp_2 = flatten_0($this_parseResponseBody, schema, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.z2e_1), 'ResponseBody']));
|
|
3130
3130
|
break;
|
|
3131
3131
|
case 4:
|
|
3132
3132
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -3139,7 +3139,7 @@ function parseResponseBody$lambda($this_parseResponseBody) {
|
|
|
3139
3139
|
// Inline function 'kotlin.let' call
|
|
3140
3140
|
// Inline function 'kotlin.contracts.contract' call
|
|
3141
3141
|
// Inline function 'community.flock.wirespec.openapi.v2.parseResponseBody.<anonymous>.<anonymous>' call
|
|
3142
|
-
tmp_3 = flatten($this_parseResponseBody, tmp3_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.
|
|
3142
|
+
tmp_3 = flatten($this_parseResponseBody, tmp3_safe_receiver, className([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.z2e_1), 'ResponseBody']));
|
|
3143
3143
|
}
|
|
3144
3144
|
|
|
3145
3145
|
var tmp0_elvis_lhs_0 = tmp_3;
|
|
@@ -3979,7 +3979,7 @@ function OpenAPIV3Emitter$emitSegment$lambda(it) {
|
|
|
3979
3979
|
}
|
|
3980
3980
|
function OpenAPIV3Emitter() {
|
|
3981
3981
|
OpenAPIV3Emitter_instance = this;
|
|
3982
|
-
this.
|
|
3982
|
+
this.e2f_1 = FileExtension_JSON_getInstance();
|
|
3983
3983
|
}
|
|
3984
3984
|
protoOf(OpenAPIV3Emitter).q22 = function (ast, logger) {
|
|
3985
3985
|
// Inline function 'kotlin.let' call
|
|
@@ -4005,10 +4005,10 @@ protoOf(OpenAPIV3Emitter).q22 = function (ast, logger) {
|
|
|
4005
4005
|
// Inline function 'kotlin.contracts.contract' call
|
|
4006
4006
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenAPIV3Emitter.emit.<anonymous>' call
|
|
4007
4007
|
var it = tmp.uk(destination);
|
|
4008
|
-
var tmp_0 = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().
|
|
4008
|
+
var tmp_0 = 'OpenAPI.' + OpenAPIV3Emitter_getInstance().e2f_1.p25_1;
|
|
4009
4009
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
4010
4010
|
var this_2 = get_json();
|
|
4011
|
-
var value = OpenAPIV3Emitter_getInstance().
|
|
4011
|
+
var value = OpenAPIV3Emitter_getInstance().f2f(it, null, logger);
|
|
4012
4012
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
4013
4013
|
var this_3 = this_2.zo();
|
|
4014
4014
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -4020,10 +4020,10 @@ protoOf(OpenAPIV3Emitter).q22 = function (ast, logger) {
|
|
|
4020
4020
|
var it_0 = new Emitted(tmp_0, tmp$ret$7);
|
|
4021
4021
|
return nonEmptyListOf(it_0, []);
|
|
4022
4022
|
};
|
|
4023
|
-
protoOf(OpenAPIV3Emitter).
|
|
4024
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
4023
|
+
protoOf(OpenAPIV3Emitter).f2f = function (statements, options, logger) {
|
|
4024
|
+
var tmp1_elvis_lhs = options == null ? null : options.g2f_1;
|
|
4025
4025
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
4026
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
4026
|
+
var tmp3_elvis_lhs = options == null ? null : options.h2f_1;
|
|
4027
4027
|
var tmp4_info = new InfoObject(tmp, VOID, VOID, VOID, VOID, tmp3_elvis_lhs == null ? '0.0.0' : tmp3_elvis_lhs);
|
|
4028
4028
|
var tmp5_paths = emitPaths_0(statements, this, logger);
|
|
4029
4029
|
var tmp6_components = emitComponents(statements, this, logger);
|
|
@@ -4037,15 +4037,15 @@ function OpenAPIV3Emitter_getInstance() {
|
|
|
4037
4037
|
}
|
|
4038
4038
|
function OpenAPIV3Parser$parse$lambda($strict) {
|
|
4039
4039
|
return function (it) {
|
|
4040
|
-
return OpenAPIV3Parser_instance.
|
|
4040
|
+
return OpenAPIV3Parser_instance.i2f((new OpenAPIV3(jsonDefault($strict))).f1j(it));
|
|
4041
4041
|
};
|
|
4042
4042
|
}
|
|
4043
4043
|
function OpenAPIV3Parser() {
|
|
4044
4044
|
}
|
|
4045
|
-
protoOf(OpenAPIV3Parser).
|
|
4045
|
+
protoOf(OpenAPIV3Parser).q2e = function (moduleContent, strict) {
|
|
4046
4046
|
return parseOpenApi(moduleContent, OpenAPIV3Parser$parse$lambda(strict));
|
|
4047
4047
|
};
|
|
4048
|
-
protoOf(OpenAPIV3Parser).
|
|
4048
|
+
protoOf(OpenAPIV3Parser).i2f = function (_this__u8e3s4) {
|
|
4049
4049
|
// Inline function 'kotlin.let' call
|
|
4050
4050
|
// Inline function 'kotlin.collections.reduce' call
|
|
4051
4051
|
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();
|
|
@@ -5503,12 +5503,12 @@ function toField_4(_this__u8e3s4, schema, name) {
|
|
|
5503
5503
|
}
|
|
5504
5504
|
function parseParameters$lambda_0($this_parseParameters) {
|
|
5505
5505
|
return function ($this$flatMapRequests) {
|
|
5506
|
-
var tmp = $this$flatMapRequests.
|
|
5506
|
+
var tmp = $this$flatMapRequests.s2e_1;
|
|
5507
5507
|
var tmp_0 = resolveParameters_0($this_parseParameters, (tmp instanceof OpenAPIV3PathItem ? tmp : THROW_CCE()).o1t_1);
|
|
5508
|
-
var tmp_1 = $this$flatMapRequests.
|
|
5508
|
+
var tmp_1 = $this$flatMapRequests.u2e_1;
|
|
5509
5509
|
var parameters = plus_0(tmp_0, resolveParameters_0($this_parseParameters, (tmp_1 instanceof OpenAPIV3Operation ? tmp_1 : THROW_CCE()).f1u_1));
|
|
5510
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
5511
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
5510
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.u2e_1);
|
|
5511
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.r2e_1) + $this$flatMapRequests.t2e_1.q2_1 : tmp0_elvis_lhs;
|
|
5512
5512
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5513
5513
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5514
5514
|
var destination = ArrayList_init_$Create$();
|
|
@@ -5535,12 +5535,12 @@ function parseParameters$lambda_0($this_parseParameters) {
|
|
|
5535
5535
|
}
|
|
5536
5536
|
function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
5537
5537
|
return function ($this$flatMapRequests) {
|
|
5538
|
-
var tmp = $this$flatMapRequests.
|
|
5538
|
+
var tmp = $this$flatMapRequests.u2e_1;
|
|
5539
5539
|
var tmp0_elvis_lhs = toName(tmp instanceof OpenAPIV3Operation ? tmp : THROW_CCE());
|
|
5540
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
5540
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.r2e_1) + $this$flatMapRequests.t2e_1.q2_1 : tmp0_elvis_lhs;
|
|
5541
5541
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5542
5542
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5543
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
5543
|
+
var tmp1_safe_receiver = $this$flatMapRequests.u2e_1.g1u_1;
|
|
5544
5544
|
var tmp_0;
|
|
5545
5545
|
if (tmp1_safe_receiver == null) {
|
|
5546
5546
|
tmp_0 = null;
|
|
@@ -5615,17 +5615,17 @@ function parseRequestBody$lambda_0($this_parseRequestBody) {
|
|
|
5615
5615
|
}
|
|
5616
5616
|
function parseResponseBody$lambda_0($this_parseResponseBody) {
|
|
5617
5617
|
return function ($this$flatMapResponses) {
|
|
5618
|
-
var tmp = $this$flatMapResponses.
|
|
5618
|
+
var tmp = $this$flatMapResponses.y2e_1;
|
|
5619
5619
|
var tmp0_elvis_lhs = toName(tmp instanceof OpenAPIV3Operation ? tmp : THROW_CCE());
|
|
5620
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
5621
|
-
var tmp_0 = $this$flatMapResponses.
|
|
5620
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.v2e_1) + $this$flatMapResponses.x2e_1.q2_1 : tmp0_elvis_lhs;
|
|
5621
|
+
var tmp_0 = $this$flatMapResponses.a2f_1;
|
|
5622
5622
|
var response = isInterface(tmp_0, OpenAPIV3ResponseOrReference) ? tmp_0 : THROW_CCE();
|
|
5623
5623
|
var tmp_1;
|
|
5624
5624
|
if (response instanceof OpenAPIV3Response) {
|
|
5625
|
-
tmp_1 = flatMapResponse($this_parseResponseBody, response, name, $this$flatMapResponses.
|
|
5625
|
+
tmp_1 = flatMapResponse($this_parseResponseBody, response, name, $this$flatMapResponses.z2e_1);
|
|
5626
5626
|
} else {
|
|
5627
5627
|
if (response instanceof OpenAPIV3Reference) {
|
|
5628
|
-
tmp_1 = flatMapResponse($this_parseResponseBody, resolveOpenAPIV3Response($this_parseResponseBody, response).fe_1, name, $this$flatMapResponses.
|
|
5628
|
+
tmp_1 = flatMapResponse($this_parseResponseBody, resolveOpenAPIV3Response($this_parseResponseBody, response).fe_1, name, $this$flatMapResponses.z2e_1);
|
|
5629
5629
|
} else {
|
|
5630
5630
|
noWhenBranchMatchedException();
|
|
5631
5631
|
}
|