@flock/wirespec 0.5.2 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js +294 -294
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js +6 -6
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin/kotlin-openapi-bindings.js +3290 -3290
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1238 -1238
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +979 -979
- package/kotlin/wirespec-cli.js +80 -80
- package/kotlin/wirespec-core.js +379 -232
- package/kotlin/wirespec-core.js.map +1 -1
- package/kotlin/wirespec-lib.js +38 -38
- package/kotlin/wirespec-openapi.js +346 -317
- package/kotlin/wirespec-openapi.js.map +1 -1
- package/package.json +1 -1
- package/sync-hashes/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.hash +1 -1
- package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.hash +1 -1
- package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.map.hash +1 -1
- package/sync-hashes/kotlin-openapi-bindings.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +1 -1
- package/sync-hashes/wirespec-cli.js.hash +1 -1
- package/sync-hashes/wirespec-core.js.hash +1 -1
- package/sync-hashes/wirespec-core.js.map.hash +1 -1
- package/sync-hashes/wirespec-lib.js.hash +1 -1
- package/sync-hashes/wirespec-openapi.js.hash +1 -1
- package/sync-hashes/wirespec-openapi.js.map.hash +1 -1
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
function Common() {
|
|
129
129
|
Common_instance = this;
|
|
130
130
|
}
|
|
131
|
-
protoOf(Common).
|
|
131
|
+
protoOf(Common).x1s = function (arg) {
|
|
132
132
|
return joinToString(arg, '', VOID, VOID, VOID, VOID, Common$className$lambda);
|
|
133
133
|
};
|
|
134
134
|
var Common_instance;
|
|
@@ -140,14 +140,14 @@
|
|
|
140
140
|
function Companion() {
|
|
141
141
|
Companion_instance = this;
|
|
142
142
|
}
|
|
143
|
-
protoOf(Companion).
|
|
143
|
+
protoOf(Companion).y1s = function (json) {
|
|
144
144
|
var tmp$ret$1;
|
|
145
145
|
// Inline function 'kotlin.let' call
|
|
146
|
-
var tmp0_let = Default_getInstance().
|
|
146
|
+
var tmp0_let = Default_getInstance().e1a(json);
|
|
147
147
|
// Inline function 'kotlin.contracts.contract' call
|
|
148
148
|
var tmp$ret$0;
|
|
149
149
|
// Inline function 'community.flock.wirespec.openapi.v2.Companion.parse.<anonymous>' call
|
|
150
|
-
tmp$ret$0 = (new OpenApiParser(tmp0_let)).
|
|
150
|
+
tmp$ret$0 = (new OpenApiParser(tmp0_let)).a1t();
|
|
151
151
|
tmp$ret$1 = tmp$ret$0;
|
|
152
152
|
return tmp$ret$1;
|
|
153
153
|
};
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
function parseEndpoints($this) {
|
|
161
161
|
var tmp$ret$48;
|
|
162
162
|
// Inline function 'kotlin.collections.flatMap' call
|
|
163
|
-
var tmp1_flatMap = $this.
|
|
163
|
+
var tmp1_flatMap = $this.z1s_1.o1a_1;
|
|
164
164
|
var tmp$ret$47;
|
|
165
165
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
166
166
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>' call
|
|
175
175
|
var tmp$ret$1;
|
|
176
176
|
// Inline function 'kotlin.collections.component1' call
|
|
177
|
-
tmp$ret$1 = element.v().
|
|
177
|
+
tmp$ret$1 = element.v().z1a_1;
|
|
178
178
|
var path = tmp$ret$1;
|
|
179
179
|
var tmp$ret$2;
|
|
180
180
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
var element_1 = tmp0_iterator_1.e();
|
|
218
218
|
var tmp$ret$6;
|
|
219
219
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
220
|
-
tmp$ret$6 = element_1.
|
|
220
|
+
tmp$ret$6 = element_1.j1c_1.equals(ParameterLocation_QUERY_getInstance());
|
|
221
221
|
if (tmp$ret$6) {
|
|
222
222
|
tmp0_filterTo.a(element_1);
|
|
223
223
|
}
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
var element_2 = tmp0_iterator_3.e();
|
|
252
252
|
var tmp$ret$12;
|
|
253
253
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
254
|
-
tmp$ret$12 = element_2.
|
|
254
|
+
tmp$ret$12 = element_2.j1c_1.equals(ParameterLocation_HEADER_getInstance());
|
|
255
255
|
if (tmp$ret$12) {
|
|
256
256
|
tmp3_filterTo.a(element_2);
|
|
257
257
|
}
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
var element_3 = tmp0_iterator_5.e();
|
|
288
288
|
var tmp$ret$18;
|
|
289
289
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
290
|
-
tmp$ret$18 = element_3.
|
|
290
|
+
tmp$ret$18 = element_3.j1c_1.equals(ParameterLocation_BODY_getInstance());
|
|
291
291
|
if (tmp$ret$18) {
|
|
292
292
|
tmp6_filterTo.a(element_3);
|
|
293
293
|
}
|
|
@@ -307,8 +307,8 @@
|
|
|
307
307
|
// Inline function 'kotlin.collections.map' call
|
|
308
308
|
var tmp$ret$21;
|
|
309
309
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
310
|
-
var tmp0_elvis_lhs = $this.
|
|
311
|
-
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.
|
|
310
|
+
var tmp0_elvis_lhs = $this.z1s_1.m1a_1;
|
|
311
|
+
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.x1b_1 : tmp0_elvis_lhs;
|
|
312
312
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
313
313
|
tmp$ret$21 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
314
314
|
var tmp2_map_0 = tmp$ret$21;
|
|
@@ -320,13 +320,13 @@
|
|
|
320
320
|
var item_1 = tmp0_iterator_7.e();
|
|
321
321
|
var tmp$ret$22;
|
|
322
322
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
323
|
-
var schema = element_4.
|
|
323
|
+
var schema = element_4.m1c_1;
|
|
324
324
|
var tmp;
|
|
325
325
|
if (schema instanceof ReferenceObject) {
|
|
326
326
|
tmp = toReference(schema, $this);
|
|
327
327
|
} else {
|
|
328
328
|
if (schema instanceof SchemaObject) {
|
|
329
|
-
tmp = toReference_0(schema, $this, Common_getInstance().
|
|
329
|
+
tmp = toReference_0(schema, $this, Common_getInstance().x1s([name, 'RequestBody']));
|
|
330
330
|
} else {
|
|
331
331
|
if (schema == null) {
|
|
332
332
|
throw new NotImplementedError();
|
|
@@ -336,7 +336,7 @@
|
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
var tmp_0 = tmp;
|
|
339
|
-
var tmp0_elvis_lhs_1 = element_4.
|
|
339
|
+
var tmp0_elvis_lhs_1 = element_4.l1c_1;
|
|
340
340
|
tmp$ret$22 = new Request(new Content(item_1, tmp_0, tmp0_elvis_lhs_1 == null ? false : tmp0_elvis_lhs_1));
|
|
341
341
|
tmp1_mapTo_0.a(tmp$ret$22);
|
|
342
342
|
}
|
|
@@ -364,7 +364,7 @@
|
|
|
364
364
|
// Inline function 'kotlin.collections.flatMap' call
|
|
365
365
|
var tmp$ret$30;
|
|
366
366
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
367
|
-
var tmp10_orEmpty = operation.
|
|
367
|
+
var tmp10_orEmpty = operation.a1c_1;
|
|
368
368
|
var tmp0_elvis_lhs_2 = tmp10_orEmpty;
|
|
369
369
|
tmp$ret$30 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
370
370
|
var tmp12_flatMap = tmp$ret$30;
|
|
@@ -381,7 +381,7 @@
|
|
|
381
381
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
382
382
|
var tmp$ret$32;
|
|
383
383
|
// Inline function 'kotlin.collections.component1' call
|
|
384
|
-
tmp$ret$32 = element_5.v().
|
|
384
|
+
tmp$ret$32 = element_5.v().s1e_1;
|
|
385
385
|
var status = tmp$ret$32;
|
|
386
386
|
var tmp$ret$33;
|
|
387
387
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -391,8 +391,8 @@
|
|
|
391
391
|
// Inline function 'kotlin.collections.map' call
|
|
392
392
|
var tmp$ret$34;
|
|
393
393
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
394
|
-
var tmp0_elvis_lhs_3 = $this.
|
|
395
|
-
var tmp0_orEmpty_0 = tmp0_elvis_lhs_3 == null ? operation.
|
|
394
|
+
var tmp0_elvis_lhs_3 = $this.z1s_1.n1a_1;
|
|
395
|
+
var tmp0_orEmpty_0 = tmp0_elvis_lhs_3 == null ? operation.y1b_1 : tmp0_elvis_lhs_3;
|
|
396
396
|
var tmp0_elvis_lhs_4 = tmp0_orEmpty_0;
|
|
397
397
|
tmp$ret$34 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
398
398
|
var tmp2_map_1 = tmp$ret$34;
|
|
@@ -405,7 +405,7 @@
|
|
|
405
405
|
var tmp$ret$37;
|
|
406
406
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
407
407
|
var tmp_2 = _StatusCode___get_value__impl__we50mu(status);
|
|
408
|
-
var tmp0_safe_receiver = resolve_1(res, $this).
|
|
408
|
+
var tmp0_safe_receiver = resolve_1(res, $this).w1e_1;
|
|
409
409
|
var tmp_3;
|
|
410
410
|
if (tmp0_safe_receiver == null) {
|
|
411
411
|
tmp_3 = null;
|
|
@@ -421,7 +421,7 @@
|
|
|
421
421
|
tmp_4 = toReference(tmp0_safe_receiver, $this);
|
|
422
422
|
} else {
|
|
423
423
|
if (tmp0_subject instanceof SchemaObject) {
|
|
424
|
-
tmp_4 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().
|
|
424
|
+
tmp_4 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().x1s([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']));
|
|
425
425
|
} else {
|
|
426
426
|
noWhenBranchMatchedException();
|
|
427
427
|
}
|
|
@@ -457,13 +457,13 @@
|
|
|
457
457
|
return tmp$ret$48;
|
|
458
458
|
}
|
|
459
459
|
function parseRequestBody($this) {
|
|
460
|
-
return flatMapRequests($this.
|
|
460
|
+
return flatMapRequests($this.z1s_1, $this, OpenApiParser$parseRequestBody$lambda($this));
|
|
461
461
|
}
|
|
462
462
|
function parseResponseBody($this) {
|
|
463
|
-
return flatMapResponses($this.
|
|
463
|
+
return flatMapResponses($this.z1s_1, $this, OpenApiParser$parseResponseBody$lambda($this));
|
|
464
464
|
}
|
|
465
465
|
function parseDefinitions($this) {
|
|
466
|
-
var tmp0_safe_receiver = $this.
|
|
466
|
+
var tmp0_safe_receiver = $this.z1s_1.p1a_1;
|
|
467
467
|
var tmp;
|
|
468
468
|
if (tmp0_safe_receiver == null) {
|
|
469
469
|
tmp = null;
|
|
@@ -481,7 +481,7 @@
|
|
|
481
481
|
var element = tmp0_iterator.e();
|
|
482
482
|
var tmp$ret$1;
|
|
483
483
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
484
|
-
tmp$ret$1 = flatten(element.w(), $this, Common_getInstance().
|
|
484
|
+
tmp$ret$1 = flatten(element.w(), $this, Common_getInstance().x1s([element.v()]));
|
|
485
485
|
var list = tmp$ret$1;
|
|
486
486
|
addAll(tmp0_flatMapTo, list);
|
|
487
487
|
}
|
|
@@ -504,7 +504,7 @@
|
|
|
504
504
|
var item = tmp0_iterator_0.e();
|
|
505
505
|
var tmp$ret$4;
|
|
506
506
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
|
|
507
|
-
tmp$ret$4 = new Type(item.
|
|
507
|
+
tmp$ret$4 = new Type(item.b1t_1, new Shape(item.c1t_1));
|
|
508
508
|
tmp1_mapTo.a(tmp$ret$4);
|
|
509
509
|
}
|
|
510
510
|
tmp$ret$5 = tmp1_mapTo;
|
|
@@ -519,7 +519,7 @@
|
|
|
519
519
|
// Inline function 'kotlin.collections.map' call
|
|
520
520
|
var tmp$ret$0;
|
|
521
521
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
522
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
522
|
+
var tmp0_orEmpty = _this__u8e3s4.z1b_1;
|
|
523
523
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
524
524
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
525
525
|
var tmp2_map = tmp$ret$0;
|
|
@@ -554,7 +554,7 @@
|
|
|
554
554
|
// Inline function 'kotlin.collections.map' call
|
|
555
555
|
var tmp$ret$0;
|
|
556
556
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
557
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
557
|
+
var tmp0_orEmpty = _this__u8e3s4.o1b_1;
|
|
558
558
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
559
559
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
560
560
|
var tmp2_map = tmp$ret$0;
|
|
@@ -585,11 +585,11 @@
|
|
|
585
585
|
return tmp$ret$3;
|
|
586
586
|
}
|
|
587
587
|
function resolveParameterObject(_this__u8e3s4, $this) {
|
|
588
|
-
var tmp0_safe_receiver = $this.
|
|
588
|
+
var tmp0_safe_receiver = $this.z1s_1.q1a_1;
|
|
589
589
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
|
|
590
590
|
var tmp;
|
|
591
591
|
if (tmp1_elvis_lhs == null) {
|
|
592
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
592
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.i1d_1);
|
|
593
593
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
594
594
|
} else {
|
|
595
595
|
tmp = tmp1_elvis_lhs;
|
|
@@ -597,11 +597,11 @@
|
|
|
597
597
|
return tmp;
|
|
598
598
|
}
|
|
599
599
|
function resolveResponseObject(_this__u8e3s4, $this) {
|
|
600
|
-
var tmp0_safe_receiver = $this.
|
|
600
|
+
var tmp0_safe_receiver = $this.z1s_1.r1a_1;
|
|
601
601
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
|
|
602
602
|
var tmp;
|
|
603
603
|
if (tmp1_elvis_lhs == null) {
|
|
604
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
604
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.i1d_1);
|
|
605
605
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
606
606
|
} else {
|
|
607
607
|
tmp = tmp1_elvis_lhs;
|
|
@@ -609,7 +609,7 @@
|
|
|
609
609
|
return tmp;
|
|
610
610
|
}
|
|
611
611
|
function resolveSchemaObject(_this__u8e3s4, $this) {
|
|
612
|
-
var tmp0_safe_receiver = $this.
|
|
612
|
+
var tmp0_safe_receiver = $this.z1s_1.p1a_1;
|
|
613
613
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
|
|
614
614
|
var tmp;
|
|
615
615
|
if (tmp1_safe_receiver == null) {
|
|
@@ -627,7 +627,7 @@
|
|
|
627
627
|
var tmp2_elvis_lhs = tmp;
|
|
628
628
|
var tmp_0;
|
|
629
629
|
if (tmp2_elvis_lhs == null) {
|
|
630
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.
|
|
630
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.i1d_1);
|
|
631
631
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
632
632
|
} else {
|
|
633
633
|
tmp_0 = tmp2_elvis_lhs;
|
|
@@ -695,13 +695,13 @@
|
|
|
695
695
|
return tmp;
|
|
696
696
|
}
|
|
697
697
|
function flatten(_this__u8e3s4, $this, name) {
|
|
698
|
-
var tmp0_subject = _this__u8e3s4.
|
|
698
|
+
var tmp0_subject = _this__u8e3s4.k1e_1;
|
|
699
699
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
700
700
|
var tmp;
|
|
701
701
|
switch (tmp0) {
|
|
702
702
|
case -1:
|
|
703
703
|
case 5:
|
|
704
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
704
|
+
var tmp1_safe_receiver = _this__u8e3s4.n1e_1;
|
|
705
705
|
var tmp_0;
|
|
706
706
|
if (tmp1_safe_receiver == null) {
|
|
707
707
|
tmp_0 = null;
|
|
@@ -730,9 +730,9 @@
|
|
|
730
730
|
var tmp0_subject_0 = value;
|
|
731
731
|
var tmp_1;
|
|
732
732
|
if (tmp0_subject_0 instanceof SchemaObject) {
|
|
733
|
-
var tmp1_subject = value.
|
|
733
|
+
var tmp1_subject = value.k1e_1;
|
|
734
734
|
var tmp0_0 = tmp1_subject == null ? -1 : tmp1_subject.q4_1;
|
|
735
|
-
tmp_1 = tmp0_0 === 4 ? emptyList() : flatten(value, $this, Common_getInstance().
|
|
735
|
+
tmp_1 = tmp0_0 === 4 ? emptyList() : flatten(value, $this, Common_getInstance().x1s([name, key]));
|
|
736
736
|
} else {
|
|
737
737
|
if (tmp0_subject_0 instanceof ReferenceObject) {
|
|
738
738
|
tmp_1 = emptyList();
|
|
@@ -751,10 +751,10 @@
|
|
|
751
751
|
|
|
752
752
|
var tmp2_elvis_lhs = tmp_0;
|
|
753
753
|
var fields = tmp2_elvis_lhs == null ? emptyList() : tmp2_elvis_lhs;
|
|
754
|
-
var tmp3_subject = _this__u8e3s4.
|
|
754
|
+
var tmp3_subject = _this__u8e3s4.o1e_1;
|
|
755
755
|
var tmp_2;
|
|
756
756
|
if (tmp3_subject == null) {
|
|
757
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
757
|
+
var tmp4_safe_receiver = _this__u8e3s4.n1e_1;
|
|
758
758
|
var tmp_3;
|
|
759
759
|
if (tmp4_safe_receiver == null) {
|
|
760
760
|
tmp_3 = null;
|
|
@@ -784,15 +784,15 @@
|
|
|
784
784
|
var tmp_4;
|
|
785
785
|
if (tmp0_subject_1 instanceof SchemaObject) {
|
|
786
786
|
var tmp_5 = new Identifier(key_0);
|
|
787
|
-
var tmp_6 = toReference_0(value_0, $this, Common_getInstance().
|
|
788
|
-
var tmp1_safe_receiver_0 = _this__u8e3s4.
|
|
787
|
+
var tmp_6 = toReference_0(value_0, $this, Common_getInstance().x1s([name, key_0]));
|
|
788
|
+
var tmp1_safe_receiver_0 = _this__u8e3s4.i1e_1;
|
|
789
789
|
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : contains(tmp1_safe_receiver_0, key_0);
|
|
790
790
|
tmp_4 = new Field(tmp_5, tmp_6, !(tmp2_elvis_lhs_0 == null ? false : tmp2_elvis_lhs_0));
|
|
791
791
|
} else {
|
|
792
792
|
if (tmp0_subject_1 instanceof ReferenceObject) {
|
|
793
793
|
var tmp_7 = new Identifier(key_0);
|
|
794
794
|
var tmp_8 = new Custom(getReference(value_0, $this), false);
|
|
795
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
795
|
+
var tmp3_safe_receiver = _this__u8e3s4.i1e_1;
|
|
796
796
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : contains(tmp3_safe_receiver, key_0);
|
|
797
797
|
tmp_4 = new Field(tmp_7, tmp_8, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
798
798
|
} else {
|
|
@@ -816,7 +816,7 @@
|
|
|
816
816
|
tmp = plus(schema, fields);
|
|
817
817
|
break;
|
|
818
818
|
case 4:
|
|
819
|
-
var tmp6_safe_receiver = _this__u8e3s4.
|
|
819
|
+
var tmp6_safe_receiver = _this__u8e3s4.l1e_1;
|
|
820
820
|
var tmp_9;
|
|
821
821
|
if (tmp6_safe_receiver == null) {
|
|
822
822
|
tmp_9 = null;
|
|
@@ -832,8 +832,8 @@
|
|
|
832
832
|
tmp_10 = emptyList();
|
|
833
833
|
} else {
|
|
834
834
|
if (tmp0_subject_2 instanceof SchemaObject) {
|
|
835
|
-
var tmp1_safe_receiver_1 = tmp6_safe_receiver.
|
|
836
|
-
tmp_10 = tmp1_safe_receiver_1 == null ? null : flatten_0(tmp1_safe_receiver_1, $this, Common_getInstance().
|
|
835
|
+
var tmp1_safe_receiver_1 = tmp6_safe_receiver.l1e_1;
|
|
836
|
+
tmp_10 = tmp1_safe_receiver_1 == null ? null : flatten_0(tmp1_safe_receiver_1, $this, Common_getInstance().x1s([name, 'array']));
|
|
837
837
|
} else {
|
|
838
838
|
noWhenBranchMatchedException();
|
|
839
839
|
}
|
|
@@ -867,15 +867,15 @@
|
|
|
867
867
|
return tmp;
|
|
868
868
|
}
|
|
869
869
|
function SimpleSchema(name, properties) {
|
|
870
|
-
this.
|
|
871
|
-
this.
|
|
870
|
+
this.b1t_1 = name;
|
|
871
|
+
this.c1t_1 = properties;
|
|
872
872
|
}
|
|
873
873
|
protoOf(SimpleSchema).toString = function () {
|
|
874
|
-
return 'SimpleSchema(name=' + this.
|
|
874
|
+
return 'SimpleSchema(name=' + this.b1t_1 + ', properties=' + this.c1t_1 + ')';
|
|
875
875
|
};
|
|
876
876
|
protoOf(SimpleSchema).hashCode = function () {
|
|
877
|
-
var result = getStringHashCode(this.
|
|
878
|
-
result = imul(result, 31) + hashCode(this.
|
|
877
|
+
var result = getStringHashCode(this.b1t_1);
|
|
878
|
+
result = imul(result, 31) + hashCode(this.c1t_1) | 0;
|
|
879
879
|
return result;
|
|
880
880
|
};
|
|
881
881
|
protoOf(SimpleSchema).equals = function (other) {
|
|
@@ -884,9 +884,9 @@
|
|
|
884
884
|
if (!(other instanceof SimpleSchema))
|
|
885
885
|
return false;
|
|
886
886
|
var tmp0_other_with_cast = other instanceof SimpleSchema ? other : THROW_CCE();
|
|
887
|
-
if (!(this.
|
|
887
|
+
if (!(this.b1t_1 === tmp0_other_with_cast.b1t_1))
|
|
888
888
|
return false;
|
|
889
|
-
if (!equals(this.
|
|
889
|
+
if (!equals(this.c1t_1, tmp0_other_with_cast.c1t_1))
|
|
890
890
|
return false;
|
|
891
891
|
return true;
|
|
892
892
|
};
|
|
@@ -899,32 +899,32 @@
|
|
|
899
899
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
|
|
900
900
|
var referencingObject = tmp0_let.i3();
|
|
901
901
|
var schema = tmp0_let.j3();
|
|
902
|
-
var additionalProperties = schema.
|
|
902
|
+
var additionalProperties = schema.o1e_1;
|
|
903
903
|
var tmp;
|
|
904
904
|
if (additionalProperties instanceof BooleanObject) {
|
|
905
905
|
throw new NotImplementedError('An operation is not implemented: additionalProperties = true not implemented');
|
|
906
906
|
} else {
|
|
907
907
|
if (additionalProperties instanceof ReferenceObject) {
|
|
908
|
-
tmp = new Custom(Common_getInstance().
|
|
908
|
+
tmp = new Custom(Common_getInstance().x1s([getReference(additionalProperties, $this)]), false, true);
|
|
909
909
|
} else {
|
|
910
910
|
if (additionalProperties instanceof SchemaObject) {
|
|
911
|
-
tmp = new Custom(Common_getInstance().
|
|
911
|
+
tmp = new Custom(Common_getInstance().x1s([getReference(referencingObject, $this)]), false, true);
|
|
912
912
|
} else {
|
|
913
913
|
if (additionalProperties == null) {
|
|
914
|
-
var tmp0_subject = schema.
|
|
914
|
+
var tmp0_subject = schema.k1e_1;
|
|
915
915
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
916
916
|
var tmp_0;
|
|
917
917
|
if (tmp0 === 4) {
|
|
918
|
-
var items = schema.
|
|
918
|
+
var items = schema.l1e_1;
|
|
919
919
|
var tmp_1;
|
|
920
920
|
if (items instanceof ReferenceObject) {
|
|
921
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
921
|
+
tmp_1 = new Custom(Common_getInstance().x1s([getReference(items, $this)]), true);
|
|
922
922
|
} else {
|
|
923
923
|
if (items instanceof SchemaObject) {
|
|
924
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
924
|
+
tmp_1 = new Custom(Common_getInstance().x1s([getReference(referencingObject, $this), 'Array']), true);
|
|
925
925
|
} else {
|
|
926
926
|
if (items == null) {
|
|
927
|
-
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.
|
|
927
|
+
var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.i1d_1);
|
|
928
928
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
929
929
|
} else {
|
|
930
930
|
noWhenBranchMatchedException();
|
|
@@ -933,7 +933,7 @@
|
|
|
933
933
|
}
|
|
934
934
|
tmp_0 = tmp_1;
|
|
935
935
|
} else {
|
|
936
|
-
tmp_0 = new Custom(Common_getInstance().
|
|
936
|
+
tmp_0 = new Custom(Common_getInstance().x1s([getReference(referencingObject, $this)]), false);
|
|
937
937
|
}
|
|
938
938
|
tmp = tmp_0;
|
|
939
939
|
} else {
|
|
@@ -947,7 +947,7 @@
|
|
|
947
947
|
return tmp$ret$1;
|
|
948
948
|
}
|
|
949
949
|
function toReference_0(_this__u8e3s4, $this, name) {
|
|
950
|
-
var type = _this__u8e3s4.
|
|
950
|
+
var type = _this__u8e3s4.k1e_1;
|
|
951
951
|
var tmp0 = type == null ? -1 : type.q4_1;
|
|
952
952
|
var tmp;
|
|
953
953
|
switch (tmp0) {
|
|
@@ -959,27 +959,42 @@
|
|
|
959
959
|
break;
|
|
960
960
|
case -1:
|
|
961
961
|
case 5:
|
|
962
|
-
|
|
962
|
+
var tmp0_safe_receiver = _this__u8e3s4.o1e_1;
|
|
963
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_0(tmp0_safe_receiver, $this);
|
|
964
|
+
var t = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k1e_1;
|
|
965
|
+
var tmp0_0 = t == null ? -1 : t.q4_1;
|
|
966
|
+
switch (tmp0_0) {
|
|
967
|
+
case 0:
|
|
968
|
+
case 2:
|
|
969
|
+
case 1:
|
|
970
|
+
case 3:
|
|
971
|
+
tmp = new Primitive(toPrimitive(t, $this), false, !(_this__u8e3s4.o1e_1 == null));
|
|
972
|
+
break;
|
|
973
|
+
default:
|
|
974
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.o1e_1 == null));
|
|
975
|
+
break;
|
|
976
|
+
}
|
|
977
|
+
|
|
963
978
|
break;
|
|
964
979
|
case 4:
|
|
965
|
-
var
|
|
966
|
-
var
|
|
967
|
-
var
|
|
968
|
-
var
|
|
969
|
-
var
|
|
980
|
+
var tmp2_safe_receiver = _this__u8e3s4.l1e_1;
|
|
981
|
+
var resolve_1 = tmp2_safe_receiver == null ? null : resolve(tmp2_safe_receiver, $this);
|
|
982
|
+
var tmp3_safe_receiver = resolve_1;
|
|
983
|
+
var t_0 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.k1e_1;
|
|
984
|
+
var tmp0_1 = t_0 == null ? -1 : t_0.q4_1;
|
|
970
985
|
var tmp_0;
|
|
971
|
-
switch (
|
|
986
|
+
switch (tmp0_1) {
|
|
972
987
|
case 0:
|
|
973
988
|
case 1:
|
|
974
989
|
case 2:
|
|
975
990
|
case 3:
|
|
976
|
-
tmp_0 = new Primitive(toPrimitive(
|
|
991
|
+
tmp_0 = new Primitive(toPrimitive(t_0, $this), true);
|
|
977
992
|
break;
|
|
978
993
|
default:
|
|
979
|
-
var it = _this__u8e3s4.
|
|
994
|
+
var it = _this__u8e3s4.l1e_1;
|
|
980
995
|
var tmp_1;
|
|
981
996
|
if (it instanceof ReferenceObject) {
|
|
982
|
-
tmp_1 = toReference(it, $this).
|
|
997
|
+
tmp_1 = toReference(it, $this).dl(VOID, true);
|
|
983
998
|
} else {
|
|
984
999
|
if (it instanceof SchemaObject) {
|
|
985
1000
|
tmp_1 = toReference_0(it, $this, name);
|
|
@@ -1027,28 +1042,28 @@
|
|
|
1027
1042
|
var tmp;
|
|
1028
1043
|
switch (tmp0) {
|
|
1029
1044
|
case 0:
|
|
1030
|
-
tmp = _this__u8e3s4.
|
|
1045
|
+
tmp = _this__u8e3s4.f1b_1;
|
|
1031
1046
|
break;
|
|
1032
1047
|
case 1:
|
|
1033
|
-
tmp = _this__u8e3s4.
|
|
1048
|
+
tmp = _this__u8e3s4.h1b_1;
|
|
1034
1049
|
break;
|
|
1035
1050
|
case 2:
|
|
1036
|
-
tmp = _this__u8e3s4.
|
|
1051
|
+
tmp = _this__u8e3s4.g1b_1;
|
|
1037
1052
|
break;
|
|
1038
1053
|
case 3:
|
|
1039
|
-
tmp = _this__u8e3s4.
|
|
1054
|
+
tmp = _this__u8e3s4.i1b_1;
|
|
1040
1055
|
break;
|
|
1041
1056
|
case 4:
|
|
1042
|
-
tmp = _this__u8e3s4.
|
|
1057
|
+
tmp = _this__u8e3s4.j1b_1;
|
|
1043
1058
|
break;
|
|
1044
1059
|
case 5:
|
|
1045
|
-
tmp = _this__u8e3s4.
|
|
1060
|
+
tmp = _this__u8e3s4.k1b_1;
|
|
1046
1061
|
break;
|
|
1047
1062
|
case 6:
|
|
1048
|
-
tmp = _this__u8e3s4.
|
|
1063
|
+
tmp = _this__u8e3s4.l1b_1;
|
|
1049
1064
|
break;
|
|
1050
1065
|
case 7:
|
|
1051
|
-
tmp = _this__u8e3s4.
|
|
1066
|
+
tmp = _this__u8e3s4.m1b_1;
|
|
1052
1067
|
break;
|
|
1053
1068
|
default:
|
|
1054
1069
|
noWhenBranchMatchedException();
|
|
@@ -1062,7 +1077,7 @@
|
|
|
1062
1077
|
return filterNotNullValues(tmp$ret$2);
|
|
1063
1078
|
}
|
|
1064
1079
|
function getReference(_this__u8e3s4, $this) {
|
|
1065
|
-
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
1080
|
+
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.i1d_1), ['/']).h(2);
|
|
1066
1081
|
}
|
|
1067
1082
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
1068
1083
|
var tmp0_subject = _this__u8e3s4;
|
|
@@ -1095,7 +1110,7 @@
|
|
|
1095
1110
|
// Inline function 'kotlin.contracts.contract' call
|
|
1096
1111
|
var tmp$ret$4;
|
|
1097
1112
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1098
|
-
var type = tmp0_let.
|
|
1113
|
+
var type = tmp0_let.n1c_1;
|
|
1099
1114
|
var tmp0 = type == null ? -1 : type.q4_1;
|
|
1100
1115
|
var tmp;
|
|
1101
1116
|
switch (tmp0) {
|
|
@@ -1115,9 +1130,9 @@
|
|
|
1115
1130
|
tmp = tmp$ret$1;
|
|
1116
1131
|
break;
|
|
1117
1132
|
case 4:
|
|
1118
|
-
var tmp0_safe_receiver = tmp0_let.
|
|
1133
|
+
var tmp0_safe_receiver = tmp0_let.o1c_1;
|
|
1119
1134
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve(tmp0_safe_receiver, $this);
|
|
1120
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1135
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k1e_1;
|
|
1121
1136
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, $this);
|
|
1122
1137
|
var tmp_0;
|
|
1123
1138
|
if (tmp3_safe_receiver == null) {
|
|
@@ -1159,8 +1174,8 @@
|
|
|
1159
1174
|
// Inline function 'kotlin.contracts.contract' call
|
|
1160
1175
|
var tmp$ret$6;
|
|
1161
1176
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1162
|
-
var tmp_2 = new Identifier(_this__u8e3s4.
|
|
1163
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1177
|
+
var tmp_2 = new Identifier(_this__u8e3s4.i1c_1);
|
|
1178
|
+
var tmp0_elvis_lhs = _this__u8e3s4.l1c_1;
|
|
1164
1179
|
tmp$ret$6 = new Field(tmp_2, tmp1_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
1165
1180
|
tmp$ret$7 = tmp$ret$6;
|
|
1166
1181
|
return tmp$ret$7;
|
|
@@ -1213,7 +1228,7 @@
|
|
|
1213
1228
|
var element = tmp0_iterator_0.e();
|
|
1214
1229
|
var tmp$ret$3;
|
|
1215
1230
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1216
|
-
tmp$ret$3 = element.
|
|
1231
|
+
tmp$ret$3 = element.i1c_1 === param;
|
|
1217
1232
|
if (tmp$ret$3) {
|
|
1218
1233
|
tmp$ret$4 = element;
|
|
1219
1234
|
break $l$block;
|
|
@@ -1232,7 +1247,7 @@
|
|
|
1232
1247
|
// Inline function 'kotlin.contracts.contract' call
|
|
1233
1248
|
var tmp$ret$6;
|
|
1234
1249
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1235
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver.
|
|
1250
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver.n1c_1;
|
|
1236
1251
|
tmp$ret$6 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, $this);
|
|
1237
1252
|
tmp$ret$7 = tmp$ret$6;
|
|
1238
1253
|
tmp_2 = tmp$ret$7;
|
|
@@ -1272,7 +1287,7 @@
|
|
|
1272
1287
|
}
|
|
1273
1288
|
function toName(_this__u8e3s4, $this, segments, method) {
|
|
1274
1289
|
var tmp0_safe_receiver = _this__u8e3s4;
|
|
1275
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1290
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w1b_1;
|
|
1276
1291
|
var tmp;
|
|
1277
1292
|
if (tmp1_safe_receiver == null) {
|
|
1278
1293
|
tmp = null;
|
|
@@ -1282,7 +1297,7 @@
|
|
|
1282
1297
|
// Inline function 'kotlin.contracts.contract' call
|
|
1283
1298
|
var tmp$ret$0;
|
|
1284
1299
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1285
|
-
tmp$ret$0 = Common_getInstance().
|
|
1300
|
+
tmp$ret$0 = Common_getInstance().x1s([tmp1_safe_receiver]);
|
|
1286
1301
|
tmp$ret$1 = tmp$ret$0;
|
|
1287
1302
|
tmp = tmp$ret$1;
|
|
1288
1303
|
}
|
|
@@ -1304,21 +1319,21 @@
|
|
|
1304
1319
|
return tmp_0;
|
|
1305
1320
|
}
|
|
1306
1321
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
1307
|
-
this.
|
|
1308
|
-
this.
|
|
1309
|
-
this.
|
|
1310
|
-
this.
|
|
1311
|
-
this.
|
|
1322
|
+
this.d1t_1 = path;
|
|
1323
|
+
this.e1t_1 = pathItem;
|
|
1324
|
+
this.f1t_1 = method;
|
|
1325
|
+
this.g1t_1 = operation;
|
|
1326
|
+
this.h1t_1 = type;
|
|
1312
1327
|
}
|
|
1313
1328
|
protoOf(FlattenRequest).toString = function () {
|
|
1314
|
-
return 'FlattenRequest(path=' + new Path(this.
|
|
1329
|
+
return 'FlattenRequest(path=' + new Path(this.d1t_1) + ', pathItem=' + this.e1t_1 + ', method=' + this.f1t_1 + ', operation=' + this.g1t_1 + ', type=' + this.h1t_1 + ')';
|
|
1315
1330
|
};
|
|
1316
1331
|
protoOf(FlattenRequest).hashCode = function () {
|
|
1317
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1318
|
-
result = imul(result, 31) + this.c1t_1.hashCode() | 0;
|
|
1319
|
-
result = imul(result, 31) + this.d1t_1.hashCode() | 0;
|
|
1332
|
+
var result = Path__hashCode_impl_go73kd(this.d1t_1);
|
|
1320
1333
|
result = imul(result, 31) + this.e1t_1.hashCode() | 0;
|
|
1321
|
-
result = imul(result, 31) +
|
|
1334
|
+
result = imul(result, 31) + this.f1t_1.hashCode() | 0;
|
|
1335
|
+
result = imul(result, 31) + this.g1t_1.hashCode() | 0;
|
|
1336
|
+
result = imul(result, 31) + getStringHashCode(this.h1t_1) | 0;
|
|
1322
1337
|
return result;
|
|
1323
1338
|
};
|
|
1324
1339
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -1327,15 +1342,15 @@
|
|
|
1327
1342
|
if (!(other instanceof FlattenRequest))
|
|
1328
1343
|
return false;
|
|
1329
1344
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
1330
|
-
if (!(this.
|
|
1345
|
+
if (!(this.d1t_1 === tmp0_other_with_cast.d1t_1))
|
|
1331
1346
|
return false;
|
|
1332
|
-
if (!this.
|
|
1347
|
+
if (!this.e1t_1.equals(tmp0_other_with_cast.e1t_1))
|
|
1333
1348
|
return false;
|
|
1334
|
-
if (!this.
|
|
1349
|
+
if (!this.f1t_1.equals(tmp0_other_with_cast.f1t_1))
|
|
1335
1350
|
return false;
|
|
1336
|
-
if (!this.
|
|
1351
|
+
if (!this.g1t_1.equals(tmp0_other_with_cast.g1t_1))
|
|
1337
1352
|
return false;
|
|
1338
|
-
if (!(this.
|
|
1353
|
+
if (!(this.h1t_1 === tmp0_other_with_cast.h1t_1))
|
|
1339
1354
|
return false;
|
|
1340
1355
|
return true;
|
|
1341
1356
|
};
|
|
@@ -1344,7 +1359,7 @@
|
|
|
1344
1359
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1345
1360
|
var tmp$ret$15;
|
|
1346
1361
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1347
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
1362
|
+
var tmp1_flatMap = _this__u8e3s4.o1a_1;
|
|
1348
1363
|
var tmp$ret$14;
|
|
1349
1364
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1350
1365
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -1358,7 +1373,7 @@
|
|
|
1358
1373
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
1359
1374
|
var tmp$ret$1;
|
|
1360
1375
|
// Inline function 'kotlin.collections.component1' call
|
|
1361
|
-
tmp$ret$1 = element.v().
|
|
1376
|
+
tmp$ret$1 = element.v().z1a_1;
|
|
1362
1377
|
var path = tmp$ret$1;
|
|
1363
1378
|
var tmp$ret$2;
|
|
1364
1379
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1390,8 +1405,8 @@
|
|
|
1390
1405
|
// Inline function 'kotlin.collections.map' call
|
|
1391
1406
|
var tmp$ret$6;
|
|
1392
1407
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1393
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1394
|
-
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.
|
|
1408
|
+
var tmp0_elvis_lhs = _this__u8e3s4.m1a_1;
|
|
1409
|
+
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.x1b_1 : tmp0_elvis_lhs;
|
|
1395
1410
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1396
1411
|
tmp$ret$6 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1397
1412
|
var tmp2_map = tmp$ret$6;
|
|
@@ -1438,25 +1453,25 @@
|
|
|
1438
1453
|
return tmp$ret$18;
|
|
1439
1454
|
}
|
|
1440
1455
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
1441
|
-
this.
|
|
1442
|
-
this.
|
|
1443
|
-
this.
|
|
1444
|
-
this.
|
|
1445
|
-
this.
|
|
1446
|
-
this.
|
|
1447
|
-
this.
|
|
1456
|
+
this.i1t_1 = path;
|
|
1457
|
+
this.j1t_1 = pathItem;
|
|
1458
|
+
this.k1t_1 = method;
|
|
1459
|
+
this.l1t_1 = operation;
|
|
1460
|
+
this.m1t_1 = statusCode;
|
|
1461
|
+
this.n1t_1 = response;
|
|
1462
|
+
this.o1t_1 = type;
|
|
1448
1463
|
}
|
|
1449
1464
|
protoOf(FlattenResponse).toString = function () {
|
|
1450
|
-
return 'FlattenResponse(path=' + new Path(this.
|
|
1465
|
+
return 'FlattenResponse(path=' + new Path(this.i1t_1) + ', pathItem=' + this.j1t_1 + ', method=' + this.k1t_1 + ', operation=' + this.l1t_1 + ', statusCode=' + new StatusCode(this.m1t_1) + ', response=' + this.n1t_1 + ', type=' + this.o1t_1 + ')';
|
|
1451
1466
|
};
|
|
1452
1467
|
protoOf(FlattenResponse).hashCode = function () {
|
|
1453
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1454
|
-
result = imul(result, 31) + this.h1t_1.hashCode() | 0;
|
|
1455
|
-
result = imul(result, 31) + this.i1t_1.hashCode() | 0;
|
|
1468
|
+
var result = Path__hashCode_impl_go73kd(this.i1t_1);
|
|
1456
1469
|
result = imul(result, 31) + this.j1t_1.hashCode() | 0;
|
|
1457
|
-
result = imul(result, 31) +
|
|
1458
|
-
result = imul(result, 31) +
|
|
1459
|
-
result = imul(result, 31) +
|
|
1470
|
+
result = imul(result, 31) + this.k1t_1.hashCode() | 0;
|
|
1471
|
+
result = imul(result, 31) + this.l1t_1.hashCode() | 0;
|
|
1472
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.m1t_1) | 0;
|
|
1473
|
+
result = imul(result, 31) + hashCode(this.n1t_1) | 0;
|
|
1474
|
+
result = imul(result, 31) + getStringHashCode(this.o1t_1) | 0;
|
|
1460
1475
|
return result;
|
|
1461
1476
|
};
|
|
1462
1477
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -1465,20 +1480,20 @@
|
|
|
1465
1480
|
if (!(other instanceof FlattenResponse))
|
|
1466
1481
|
return false;
|
|
1467
1482
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
1468
|
-
if (!(this.
|
|
1469
|
-
return false;
|
|
1470
|
-
if (!this.h1t_1.equals(tmp0_other_with_cast.h1t_1))
|
|
1471
|
-
return false;
|
|
1472
|
-
if (!this.i1t_1.equals(tmp0_other_with_cast.i1t_1))
|
|
1483
|
+
if (!(this.i1t_1 === tmp0_other_with_cast.i1t_1))
|
|
1473
1484
|
return false;
|
|
1474
1485
|
if (!this.j1t_1.equals(tmp0_other_with_cast.j1t_1))
|
|
1475
1486
|
return false;
|
|
1476
|
-
if (!
|
|
1487
|
+
if (!this.k1t_1.equals(tmp0_other_with_cast.k1t_1))
|
|
1477
1488
|
return false;
|
|
1478
|
-
if (!
|
|
1489
|
+
if (!this.l1t_1.equals(tmp0_other_with_cast.l1t_1))
|
|
1479
1490
|
return false;
|
|
1480
1491
|
if (!(this.m1t_1 === tmp0_other_with_cast.m1t_1))
|
|
1481
1492
|
return false;
|
|
1493
|
+
if (!equals(this.n1t_1, tmp0_other_with_cast.n1t_1))
|
|
1494
|
+
return false;
|
|
1495
|
+
if (!(this.o1t_1 === tmp0_other_with_cast.o1t_1))
|
|
1496
|
+
return false;
|
|
1482
1497
|
return true;
|
|
1483
1498
|
};
|
|
1484
1499
|
function flatMapResponses(_this__u8e3s4, $this, f) {
|
|
@@ -1486,7 +1501,7 @@
|
|
|
1486
1501
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1487
1502
|
var tmp$ret$22;
|
|
1488
1503
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1489
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
1504
|
+
var tmp1_flatMap = _this__u8e3s4.o1a_1;
|
|
1490
1505
|
var tmp$ret$21;
|
|
1491
1506
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1492
1507
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -1500,7 +1515,7 @@
|
|
|
1500
1515
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
1501
1516
|
var tmp$ret$1;
|
|
1502
1517
|
// Inline function 'kotlin.collections.component1' call
|
|
1503
|
-
tmp$ret$1 = element.v().
|
|
1518
|
+
tmp$ret$1 = element.v().z1a_1;
|
|
1504
1519
|
var path = tmp$ret$1;
|
|
1505
1520
|
var tmp$ret$2;
|
|
1506
1521
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1532,7 +1547,7 @@
|
|
|
1532
1547
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1533
1548
|
var tmp$ret$6;
|
|
1534
1549
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1535
|
-
var tmp0_orEmpty = operation.
|
|
1550
|
+
var tmp0_orEmpty = operation.a1c_1;
|
|
1536
1551
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1537
1552
|
tmp$ret$6 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1538
1553
|
var tmp2_flatMap = tmp$ret$6;
|
|
@@ -1549,7 +1564,7 @@
|
|
|
1549
1564
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
1550
1565
|
var tmp$ret$8;
|
|
1551
1566
|
// Inline function 'kotlin.collections.component1' call
|
|
1552
|
-
tmp$ret$8 = element_1.v().
|
|
1567
|
+
tmp$ret$8 = element_1.v().s1e_1;
|
|
1553
1568
|
var statusCode = tmp$ret$8;
|
|
1554
1569
|
var tmp$ret$9;
|
|
1555
1570
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1559,8 +1574,8 @@
|
|
|
1559
1574
|
// Inline function 'kotlin.collections.map' call
|
|
1560
1575
|
var tmp$ret$10;
|
|
1561
1576
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1562
|
-
var tmp0_elvis_lhs_0 = _this__u8e3s4.
|
|
1563
|
-
var tmp0_orEmpty_0 = tmp0_elvis_lhs_0 == null ? operation.
|
|
1577
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.n1a_1;
|
|
1578
|
+
var tmp0_orEmpty_0 = tmp0_elvis_lhs_0 == null ? operation.y1b_1 : tmp0_elvis_lhs_0;
|
|
1564
1579
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
1565
1580
|
tmp$ret$10 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1566
1581
|
var tmp2_map = tmp$ret$10;
|
|
@@ -1614,7 +1629,7 @@
|
|
|
1614
1629
|
}
|
|
1615
1630
|
function OpenApiParser$parseRequestBody$lambda(this$0) {
|
|
1616
1631
|
return function (req) {
|
|
1617
|
-
var tmp0_safe_receiver = req.
|
|
1632
|
+
var tmp0_safe_receiver = req.g1t_1.z1b_1;
|
|
1618
1633
|
var tmp;
|
|
1619
1634
|
if (tmp0_safe_receiver == null) {
|
|
1620
1635
|
tmp = null;
|
|
@@ -1651,7 +1666,7 @@
|
|
|
1651
1666
|
var element = tmp0_iterator_0.e();
|
|
1652
1667
|
var tmp$ret$3;
|
|
1653
1668
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1654
|
-
tmp$ret$3 = element.
|
|
1669
|
+
tmp$ret$3 = element.j1c_1.equals(ParameterLocation_BODY_getInstance());
|
|
1655
1670
|
if (tmp$ret$3) {
|
|
1656
1671
|
tmp1_filterTo.a(element);
|
|
1657
1672
|
}
|
|
@@ -1675,13 +1690,13 @@
|
|
|
1675
1690
|
var element_0 = tmp0_iterator_1.e();
|
|
1676
1691
|
var tmp$ret$9;
|
|
1677
1692
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1678
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1679
|
-
var segments = toSegments(req.
|
|
1680
|
-
var name = toName(req.
|
|
1681
|
-
var schema = element_0.
|
|
1693
|
+
var parameters = plus(resolveParameters_0(req.e1t_1, this$0), resolveParameters(req.g1t_1, this$0));
|
|
1694
|
+
var segments = toSegments(req.d1t_1, this$0, parameters);
|
|
1695
|
+
var name = toName(req.g1t_1, this$0, segments, req.f1t_1);
|
|
1696
|
+
var schema = element_0.m1c_1;
|
|
1682
1697
|
var tmp_2;
|
|
1683
1698
|
if (schema instanceof SchemaObject) {
|
|
1684
|
-
var tmp0_subject = schema.
|
|
1699
|
+
var tmp0_subject = schema.k1e_1;
|
|
1685
1700
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
1686
1701
|
var tmp_3;
|
|
1687
1702
|
switch (tmp0) {
|
|
@@ -1689,7 +1704,7 @@
|
|
|
1689
1704
|
case 5:
|
|
1690
1705
|
var tmp$ret$8;
|
|
1691
1706
|
// Inline function 'kotlin.collections.map' call
|
|
1692
|
-
var tmp1_map = flatten(schema, this$0, Common_getInstance().
|
|
1707
|
+
var tmp1_map = flatten(schema, this$0, Common_getInstance().x1s([name, 'RequestBody']));
|
|
1693
1708
|
var tmp$ret$7;
|
|
1694
1709
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1695
1710
|
var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1698,7 +1713,7 @@
|
|
|
1698
1713
|
var item_0 = tmp0_iterator_2.e();
|
|
1699
1714
|
var tmp$ret$6;
|
|
1700
1715
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
1701
|
-
tmp$ret$6 = new Type(item_0.
|
|
1716
|
+
tmp$ret$6 = new Type(item_0.b1t_1, new Shape(item_0.c1t_1));
|
|
1702
1717
|
tmp0_mapTo_0.a(tmp$ret$6);
|
|
1703
1718
|
}
|
|
1704
1719
|
tmp$ret$7 = tmp0_mapTo_0;
|
|
@@ -1736,14 +1751,14 @@
|
|
|
1736
1751
|
}
|
|
1737
1752
|
function OpenApiParser$parseResponseBody$lambda(this$0) {
|
|
1738
1753
|
return function (res) {
|
|
1739
|
-
var response = resolve_1(res.
|
|
1740
|
-
var parameters = plus(resolveParameters_0(res.
|
|
1741
|
-
var segments = toSegments(res.
|
|
1742
|
-
var name = toName(res.
|
|
1743
|
-
var schema = response.
|
|
1754
|
+
var response = resolve_1(res.n1t_1, this$0);
|
|
1755
|
+
var parameters = plus(resolveParameters_0(res.j1t_1, this$0), resolveParameters(res.l1t_1, this$0));
|
|
1756
|
+
var segments = toSegments(res.i1t_1, this$0, parameters);
|
|
1757
|
+
var name = toName(res.l1t_1, this$0, segments, res.k1t_1);
|
|
1758
|
+
var schema = response.w1e_1;
|
|
1744
1759
|
var tmp;
|
|
1745
1760
|
if (schema instanceof SchemaObject) {
|
|
1746
|
-
var tmp0_subject = schema.
|
|
1761
|
+
var tmp0_subject = schema.k1e_1;
|
|
1747
1762
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
1748
1763
|
var tmp_0;
|
|
1749
1764
|
switch (tmp0) {
|
|
@@ -1751,10 +1766,10 @@
|
|
|
1751
1766
|
case 5:
|
|
1752
1767
|
var tmp$ret$2;
|
|
1753
1768
|
// Inline function 'kotlin.collections.map' call
|
|
1754
|
-
var tmp1_safe_receiver = schema.
|
|
1769
|
+
var tmp1_safe_receiver = schema.o1e_1;
|
|
1755
1770
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_0(tmp1_safe_receiver, this$0);
|
|
1756
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : flatten(tmp2_safe_receiver, this$0, Common_getInstance().
|
|
1757
|
-
var tmp1_map = tmp3_elvis_lhs == null ? flatten(schema, this$0, Common_getInstance().
|
|
1771
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : flatten(tmp2_safe_receiver, this$0, Common_getInstance().x1s([name, _StatusCode___get_value__impl__we50mu(res.m1t_1), 'ResponseBody']));
|
|
1772
|
+
var tmp1_map = tmp3_elvis_lhs == null ? flatten(schema, this$0, Common_getInstance().x1s([name, _StatusCode___get_value__impl__we50mu(res.m1t_1), 'ResponseBody'])) : tmp3_elvis_lhs;
|
|
1758
1773
|
var tmp$ret$1;
|
|
1759
1774
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1760
1775
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1763,7 +1778,7 @@
|
|
|
1763
1778
|
var item = tmp0_iterator.e();
|
|
1764
1779
|
var tmp$ret$0;
|
|
1765
1780
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
1766
|
-
tmp$ret$0 = new Type(item.
|
|
1781
|
+
tmp$ret$0 = new Type(item.b1t_1, new Shape(item.c1t_1));
|
|
1767
1782
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1768
1783
|
}
|
|
1769
1784
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -1794,10 +1809,10 @@
|
|
|
1794
1809
|
var tmp0_subject = it;
|
|
1795
1810
|
var tmp;
|
|
1796
1811
|
if (tmp0_subject instanceof Literal) {
|
|
1797
|
-
tmp = Common_getInstance().
|
|
1812
|
+
tmp = Common_getInstance().x1s([it.rj_1]);
|
|
1798
1813
|
} else {
|
|
1799
1814
|
if (tmp0_subject instanceof Param) {
|
|
1800
|
-
tmp = Common_getInstance().
|
|
1815
|
+
tmp = Common_getInstance().x1s([it.si_1.dj_1]);
|
|
1801
1816
|
} else {
|
|
1802
1817
|
noWhenBranchMatchedException();
|
|
1803
1818
|
}
|
|
@@ -1806,9 +1821,9 @@
|
|
|
1806
1821
|
}
|
|
1807
1822
|
function OpenApiParser(openApi) {
|
|
1808
1823
|
Companion_getInstance_0();
|
|
1809
|
-
this.
|
|
1824
|
+
this.z1s_1 = openApi;
|
|
1810
1825
|
}
|
|
1811
|
-
protoOf(OpenApiParser).
|
|
1826
|
+
protoOf(OpenApiParser).a1t = function () {
|
|
1812
1827
|
return plus(plus(plus(parseEndpoints(this), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
|
|
1813
1828
|
};
|
|
1814
1829
|
function filterNotNullValues(_this__u8e3s4) {
|
|
@@ -1868,10 +1883,10 @@
|
|
|
1868
1883
|
function Companion_0() {
|
|
1869
1884
|
Companion_instance_0 = this;
|
|
1870
1885
|
}
|
|
1871
|
-
protoOf(Companion_0).
|
|
1886
|
+
protoOf(Companion_0).y1s = function (json) {
|
|
1872
1887
|
var tmp$ret$1;
|
|
1873
1888
|
// Inline function 'kotlin.let' call
|
|
1874
|
-
var tmp0_let = Default_getInstance_0().
|
|
1889
|
+
var tmp0_let = Default_getInstance_0().e1a(json);
|
|
1875
1890
|
// Inline function 'kotlin.contracts.contract' call
|
|
1876
1891
|
var tmp$ret$0;
|
|
1877
1892
|
// Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
|
|
@@ -1891,7 +1906,7 @@
|
|
|
1891
1906
|
function parseEndpoint($this) {
|
|
1892
1907
|
var tmp$ret$51;
|
|
1893
1908
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1894
|
-
var tmp1_flatMap = $this.
|
|
1909
|
+
var tmp1_flatMap = $this.p1t_1.e1j_1;
|
|
1895
1910
|
var tmp$ret$50;
|
|
1896
1911
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1897
1912
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -1905,7 +1920,7 @@
|
|
|
1905
1920
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>' call
|
|
1906
1921
|
var tmp$ret$1;
|
|
1907
1922
|
// Inline function 'kotlin.collections.component1' call
|
|
1908
|
-
tmp$ret$1 = element.v().
|
|
1923
|
+
tmp$ret$1 = element.v().m1j_1;
|
|
1909
1924
|
var key = tmp$ret$1;
|
|
1910
1925
|
var tmp$ret$2;
|
|
1911
1926
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1954,7 +1969,7 @@
|
|
|
1954
1969
|
var element_0 = tmp0_iterator_1.e();
|
|
1955
1970
|
var tmp$ret$7;
|
|
1956
1971
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1957
|
-
tmp$ret$7 = element_0.
|
|
1972
|
+
tmp$ret$7 = element_0.g1l_1.equals(ParameterLocation_QUERY_getInstance_0());
|
|
1958
1973
|
if (tmp$ret$7) {
|
|
1959
1974
|
tmp1_filterTo.a(element_0);
|
|
1960
1975
|
}
|
|
@@ -1988,7 +2003,7 @@
|
|
|
1988
2003
|
var element_1 = tmp0_iterator_3.e();
|
|
1989
2004
|
var tmp$ret$13;
|
|
1990
2005
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1991
|
-
tmp$ret$13 = element_1.
|
|
2006
|
+
tmp$ret$13 = element_1.g1l_1.equals(ParameterLocation_HEADER_getInstance_0());
|
|
1992
2007
|
if (tmp$ret$13) {
|
|
1993
2008
|
tmp4_filterTo.a(element_1);
|
|
1994
2009
|
}
|
|
@@ -2022,7 +2037,7 @@
|
|
|
2022
2037
|
var element_2 = tmp0_iterator_5.e();
|
|
2023
2038
|
var tmp$ret$19;
|
|
2024
2039
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2025
|
-
tmp$ret$19 = element_2.
|
|
2040
|
+
tmp$ret$19 = element_2.g1l_1.equals(ParameterLocation_COOKIE_getInstance());
|
|
2026
2041
|
if (tmp$ret$19) {
|
|
2027
2042
|
tmp7_filterTo.a(element_2);
|
|
2028
2043
|
}
|
|
@@ -2044,7 +2059,7 @@
|
|
|
2044
2059
|
tmp$ret$23 = tmp8_mapTo;
|
|
2045
2060
|
tmp$ret$24 = tmp$ret$23;
|
|
2046
2061
|
var cookies = tmp$ret$24;
|
|
2047
|
-
var tmp0_safe_receiver = operation.
|
|
2062
|
+
var tmp0_safe_receiver = operation.l1k_1;
|
|
2048
2063
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, $this);
|
|
2049
2064
|
var tmp_0;
|
|
2050
2065
|
if (tmp1_safe_receiver == null) {
|
|
@@ -2055,7 +2070,7 @@
|
|
|
2055
2070
|
// Inline function 'kotlin.contracts.contract' call
|
|
2056
2071
|
var tmp$ret$31;
|
|
2057
2072
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2058
|
-
var tmp0_safe_receiver_0 = tmp1_safe_receiver.
|
|
2073
|
+
var tmp0_safe_receiver_0 = tmp1_safe_receiver.l1l_1;
|
|
2059
2074
|
var tmp_1;
|
|
2060
2075
|
if (tmp0_safe_receiver_0 == null) {
|
|
2061
2076
|
tmp_1 = null;
|
|
@@ -2075,20 +2090,20 @@
|
|
|
2075
2090
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2076
2091
|
var tmp$ret$26;
|
|
2077
2092
|
// Inline function 'kotlin.collections.component1' call
|
|
2078
|
-
tmp$ret$26 = item_3.v().
|
|
2093
|
+
tmp$ret$26 = item_3.v().p1l_1;
|
|
2079
2094
|
var mediaType = tmp$ret$26;
|
|
2080
2095
|
var tmp$ret$27;
|
|
2081
2096
|
// Inline function 'kotlin.collections.component2' call
|
|
2082
2097
|
tmp$ret$27 = item_3.w();
|
|
2083
2098
|
var mediaObject = tmp$ret$27;
|
|
2084
2099
|
var tmp_2 = _MediaType___get_value__impl__wy58mp(mediaType);
|
|
2085
|
-
var schema = mediaObject.
|
|
2100
|
+
var schema = mediaObject.s1l_1;
|
|
2086
2101
|
var tmp_3;
|
|
2087
2102
|
if (schema instanceof ReferenceObject_0) {
|
|
2088
2103
|
tmp_3 = toReference_1(schema, $this);
|
|
2089
2104
|
} else {
|
|
2090
2105
|
if (schema instanceof SchemaObject_0) {
|
|
2091
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
2106
|
+
tmp_3 = new Custom(Common_getInstance().x1s([name, 'RequestBody']), true);
|
|
2092
2107
|
} else {
|
|
2093
2108
|
if (schema == null) {
|
|
2094
2109
|
throw new NotImplementedError();
|
|
@@ -2098,7 +2113,7 @@
|
|
|
2098
2113
|
}
|
|
2099
2114
|
}
|
|
2100
2115
|
var tmp_4 = tmp_3;
|
|
2101
|
-
var tmp0_elvis_lhs_0 = tmp1_safe_receiver.
|
|
2116
|
+
var tmp0_elvis_lhs_0 = tmp1_safe_receiver.m1l_1;
|
|
2102
2117
|
tmp$ret$28 = new Request(new Content(tmp_2, tmp_4, tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0));
|
|
2103
2118
|
tmp0_mapTo_0.a(tmp$ret$28);
|
|
2104
2119
|
}
|
|
@@ -2116,7 +2131,7 @@
|
|
|
2116
2131
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2117
2132
|
var tmp$ret$33;
|
|
2118
2133
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2119
|
-
var tmp10_orEmpty = operation.
|
|
2134
|
+
var tmp10_orEmpty = operation.m1k_1;
|
|
2120
2135
|
var tmp0_elvis_lhs_1 = tmp10_orEmpty;
|
|
2121
2136
|
tmp$ret$33 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
2122
2137
|
var tmp12_flatMap = tmp$ret$33;
|
|
@@ -2133,13 +2148,13 @@
|
|
|
2133
2148
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2134
2149
|
var tmp$ret$35;
|
|
2135
2150
|
// Inline function 'kotlin.collections.component1' call
|
|
2136
|
-
tmp$ret$35 = element_3.v().
|
|
2151
|
+
tmp$ret$35 = element_3.v().o1n_1;
|
|
2137
2152
|
var status = tmp$ret$35;
|
|
2138
2153
|
var tmp$ret$36;
|
|
2139
2154
|
// Inline function 'kotlin.collections.component2' call
|
|
2140
2155
|
tmp$ret$36 = element_3.w();
|
|
2141
2156
|
var res = tmp$ret$36;
|
|
2142
|
-
var tmp0_safe_receiver_1 = resolve_6(res, $this).
|
|
2157
|
+
var tmp0_safe_receiver_1 = resolve_6(res, $this).t1n_1;
|
|
2143
2158
|
var tmp_5;
|
|
2144
2159
|
if (tmp0_safe_receiver_1 == null) {
|
|
2145
2160
|
tmp_5 = null;
|
|
@@ -2159,7 +2174,7 @@
|
|
|
2159
2174
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2160
2175
|
var tmp$ret$38;
|
|
2161
2176
|
// Inline function 'kotlin.collections.component1' call
|
|
2162
|
-
tmp$ret$38 = item_4.v().
|
|
2177
|
+
tmp$ret$38 = item_4.v().p1l_1;
|
|
2163
2178
|
var contentType = tmp$ret$38;
|
|
2164
2179
|
var tmp$ret$39;
|
|
2165
2180
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -2167,13 +2182,13 @@
|
|
|
2167
2182
|
var media = tmp$ret$39;
|
|
2168
2183
|
var tmp_6 = _StatusCode___get_value__impl__we50mu_0(status);
|
|
2169
2184
|
var tmp_7 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
2170
|
-
var schema_0 = media.
|
|
2185
|
+
var schema_0 = media.s1l_1;
|
|
2171
2186
|
var tmp_8;
|
|
2172
2187
|
if (schema_0 instanceof ReferenceObject_0) {
|
|
2173
2188
|
tmp_8 = toReference_1(schema_0, $this);
|
|
2174
2189
|
} else {
|
|
2175
2190
|
if (schema_0 instanceof SchemaObject_0) {
|
|
2176
|
-
tmp_8 = toReference_2(schema_0, $this, Common_getInstance().
|
|
2191
|
+
tmp_8 = toReference_2(schema_0, $this, Common_getInstance().x1s([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
2177
2192
|
} else {
|
|
2178
2193
|
if (schema_0 == null) {
|
|
2179
2194
|
throw new NotImplementedError();
|
|
@@ -2183,9 +2198,9 @@
|
|
|
2183
2198
|
}
|
|
2184
2199
|
}
|
|
2185
2200
|
var tmp_9 = tmp_8;
|
|
2186
|
-
var tmp0_safe_receiver_2 = media.
|
|
2201
|
+
var tmp0_safe_receiver_2 = media.s1l_1;
|
|
2187
2202
|
var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : resolve_3(tmp0_safe_receiver_2, $this);
|
|
2188
|
-
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
2203
|
+
var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.b1m_1;
|
|
2189
2204
|
tmp$ret$40 = new Response(tmp_6, new Content(tmp_7, tmp_9, tmp2_elvis_lhs_0 == null ? false : tmp2_elvis_lhs_0));
|
|
2190
2205
|
tmp0_mapTo_1.a(tmp$ret$40);
|
|
2191
2206
|
}
|
|
@@ -2215,14 +2230,14 @@
|
|
|
2215
2230
|
return tmp$ret$51;
|
|
2216
2231
|
}
|
|
2217
2232
|
function parseRequestBody_0($this) {
|
|
2218
|
-
return flatMapRequests_0($this.
|
|
2233
|
+
return flatMapRequests_0($this.p1t_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
|
|
2219
2234
|
}
|
|
2220
2235
|
function parseResponseBody_0($this) {
|
|
2221
|
-
return flatMapResponses_0($this.
|
|
2236
|
+
return flatMapResponses_0($this.p1t_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
|
|
2222
2237
|
}
|
|
2223
2238
|
function parseComponents($this) {
|
|
2224
|
-
var tmp0_safe_receiver = $this.
|
|
2225
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2239
|
+
var tmp0_safe_receiver = $this.p1t_1.f1j_1;
|
|
2240
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y1n_1;
|
|
2226
2241
|
var tmp;
|
|
2227
2242
|
if (tmp1_safe_receiver == null) {
|
|
2228
2243
|
tmp = null;
|
|
@@ -2240,7 +2255,7 @@
|
|
|
2240
2255
|
var element = tmp0_iterator.e();
|
|
2241
2256
|
var tmp$ret$1;
|
|
2242
2257
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2243
|
-
tmp$ret$1 = flatten_2(element.w(), $this, Common_getInstance().
|
|
2258
|
+
tmp$ret$1 = flatten_2(element.w(), $this, Common_getInstance().x1s([element.v()]));
|
|
2244
2259
|
var list = tmp$ret$1;
|
|
2245
2260
|
addAll(tmp0_flatMapTo, list);
|
|
2246
2261
|
}
|
|
@@ -2263,7 +2278,7 @@
|
|
|
2263
2278
|
var item = tmp0_iterator_0.e();
|
|
2264
2279
|
var tmp$ret$4;
|
|
2265
2280
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2266
|
-
tmp$ret$4 = new Type(item.
|
|
2281
|
+
tmp$ret$4 = new Type(item.q1t_1, new Shape(item.r1t_1));
|
|
2267
2282
|
tmp1_mapTo.a(tmp$ret$4);
|
|
2268
2283
|
}
|
|
2269
2284
|
tmp$ret$5 = tmp1_mapTo;
|
|
@@ -2306,7 +2321,7 @@
|
|
|
2306
2321
|
var element = tmp0_iterator_0.e();
|
|
2307
2322
|
var tmp$ret$2;
|
|
2308
2323
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2309
|
-
tmp$ret$2 = element.
|
|
2324
|
+
tmp$ret$2 = element.f1l_1 === param;
|
|
2310
2325
|
if (tmp$ret$2) {
|
|
2311
2326
|
tmp$ret$3 = element;
|
|
2312
2327
|
break $l$block;
|
|
@@ -2316,7 +2331,7 @@
|
|
|
2316
2331
|
}
|
|
2317
2332
|
tmp$ret$4 = tmp$ret$3;
|
|
2318
2333
|
var tmp0_safe_receiver = tmp$ret$4;
|
|
2319
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2334
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b1l_1;
|
|
2320
2335
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_3(tmp1_safe_receiver, $this);
|
|
2321
2336
|
var tmp_0;
|
|
2322
2337
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2327,7 +2342,7 @@
|
|
|
2327
2342
|
// Inline function 'kotlin.contracts.contract' call
|
|
2328
2343
|
var tmp$ret$5;
|
|
2329
2344
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2330
|
-
var tmp0_safe_receiver_0 = tmp2_safe_receiver.
|
|
2345
|
+
var tmp0_safe_receiver_0 = tmp2_safe_receiver.k1m_1;
|
|
2331
2346
|
tmp$ret$5 = tmp0_safe_receiver_0 == null ? null : toPrimitive_0(tmp0_safe_receiver_0, $this);
|
|
2332
2347
|
tmp$ret$6 = tmp$ret$5;
|
|
2333
2348
|
tmp_0 = tmp$ret$6;
|
|
@@ -2366,7 +2381,7 @@
|
|
|
2366
2381
|
return tmp$ret$11;
|
|
2367
2382
|
}
|
|
2368
2383
|
function toName_0(_this__u8e3s4, $this, segments, method) {
|
|
2369
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2384
|
+
var tmp0_safe_receiver = _this__u8e3s4.j1k_1;
|
|
2370
2385
|
var tmp;
|
|
2371
2386
|
if (tmp0_safe_receiver == null) {
|
|
2372
2387
|
tmp = null;
|
|
@@ -2376,7 +2391,7 @@
|
|
|
2376
2391
|
// Inline function 'kotlin.contracts.contract' call
|
|
2377
2392
|
var tmp$ret$0;
|
|
2378
2393
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2379
|
-
tmp$ret$0 = Common_getInstance().
|
|
2394
|
+
tmp$ret$0 = Common_getInstance().x1s([tmp0_safe_receiver]);
|
|
2380
2395
|
tmp$ret$1 = tmp$ret$0;
|
|
2381
2396
|
tmp = tmp$ret$1;
|
|
2382
2397
|
}
|
|
@@ -2398,7 +2413,7 @@
|
|
|
2398
2413
|
return tmp_0;
|
|
2399
2414
|
}
|
|
2400
2415
|
function resolveParameters_1(_this__u8e3s4, $this) {
|
|
2401
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2416
|
+
var tmp0_safe_receiver = _this__u8e3s4.k1k_1;
|
|
2402
2417
|
var tmp;
|
|
2403
2418
|
if (tmp0_safe_receiver == null) {
|
|
2404
2419
|
tmp = null;
|
|
@@ -2446,7 +2461,7 @@
|
|
|
2446
2461
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2447
2462
|
}
|
|
2448
2463
|
function resolveParameters_2(_this__u8e3s4, $this) {
|
|
2449
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2464
|
+
var tmp0_safe_receiver = _this__u8e3s4.b1k_1;
|
|
2450
2465
|
var tmp;
|
|
2451
2466
|
if (tmp0_safe_receiver == null) {
|
|
2452
2467
|
tmp = null;
|
|
@@ -2494,8 +2509,8 @@
|
|
|
2494
2509
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2495
2510
|
}
|
|
2496
2511
|
function resolveParameterObject_0(_this__u8e3s4, $this) {
|
|
2497
|
-
var tmp0_safe_receiver = $this.
|
|
2498
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2512
|
+
var tmp0_safe_receiver = $this.p1t_1.f1j_1;
|
|
2513
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1o_1;
|
|
2499
2514
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2500
2515
|
var tmp;
|
|
2501
2516
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2524,8 +2539,8 @@
|
|
|
2524
2539
|
return tmp;
|
|
2525
2540
|
}
|
|
2526
2541
|
function resolveSchemaObject_0(_this__u8e3s4, $this) {
|
|
2527
|
-
var tmp0_safe_receiver = $this.
|
|
2528
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2542
|
+
var tmp0_safe_receiver = $this.p1t_1.f1j_1;
|
|
2543
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y1n_1;
|
|
2529
2544
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2530
2545
|
var tmp;
|
|
2531
2546
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2554,7 +2569,7 @@
|
|
|
2554
2569
|
var tmp3_elvis_lhs = tmp;
|
|
2555
2570
|
var tmp_1;
|
|
2556
2571
|
if (tmp3_elvis_lhs == null) {
|
|
2557
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2572
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.y1l_1);
|
|
2558
2573
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2559
2574
|
} else {
|
|
2560
2575
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2562,8 +2577,8 @@
|
|
|
2562
2577
|
return tmp_1;
|
|
2563
2578
|
}
|
|
2564
2579
|
function resolveRequestBodyObject(_this__u8e3s4, $this) {
|
|
2565
|
-
var tmp0_safe_receiver = $this.
|
|
2566
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2580
|
+
var tmp0_safe_receiver = $this.p1t_1.f1j_1;
|
|
2581
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c1o_1;
|
|
2567
2582
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2568
2583
|
var tmp;
|
|
2569
2584
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2592,7 +2607,7 @@
|
|
|
2592
2607
|
var tmp3_elvis_lhs = tmp;
|
|
2593
2608
|
var tmp_1;
|
|
2594
2609
|
if (tmp3_elvis_lhs == null) {
|
|
2595
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2610
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.y1l_1);
|
|
2596
2611
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2597
2612
|
} else {
|
|
2598
2613
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2600,8 +2615,8 @@
|
|
|
2600
2615
|
return tmp_1;
|
|
2601
2616
|
}
|
|
2602
2617
|
function resolveResponseObject_0(_this__u8e3s4, $this) {
|
|
2603
|
-
var tmp0_safe_receiver = $this.
|
|
2604
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2618
|
+
var tmp0_safe_receiver = $this.p1t_1.f1j_1;
|
|
2619
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z1n_1;
|
|
2605
2620
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2606
2621
|
var tmp;
|
|
2607
2622
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2630,7 +2645,7 @@
|
|
|
2630
2645
|
var tmp3_elvis_lhs = tmp;
|
|
2631
2646
|
var tmp_1;
|
|
2632
2647
|
if (tmp3_elvis_lhs == null) {
|
|
2633
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2648
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.y1l_1);
|
|
2634
2649
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2635
2650
|
} else {
|
|
2636
2651
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2698,7 +2713,7 @@
|
|
|
2698
2713
|
return tmp;
|
|
2699
2714
|
}
|
|
2700
2715
|
function flatten_1(_this__u8e3s4, $this, name) {
|
|
2701
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2716
|
+
var tmp0_subject = _this__u8e3s4.k1m_1;
|
|
2702
2717
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
2703
2718
|
var tmp;
|
|
2704
2719
|
switch (tmp0) {
|
|
@@ -2708,7 +2723,7 @@
|
|
|
2708
2723
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2709
2724
|
var tmp$ret$0;
|
|
2710
2725
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2711
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
2726
|
+
var tmp0_orEmpty = _this__u8e3s4.q1m_1;
|
|
2712
2727
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
2713
2728
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2714
2729
|
var tmp2_flatMap = tmp$ret$0;
|
|
@@ -2734,7 +2749,7 @@
|
|
|
2734
2749
|
var tmp0_subject_0 = value;
|
|
2735
2750
|
var tmp_0;
|
|
2736
2751
|
if (tmp0_subject_0 instanceof SchemaObject_0) {
|
|
2737
|
-
tmp_0 = flatten_1(value, $this, Common_getInstance().
|
|
2752
|
+
tmp_0 = flatten_1(value, $this, Common_getInstance().x1s([name, key]));
|
|
2738
2753
|
} else {
|
|
2739
2754
|
if (tmp0_subject_0 instanceof ReferenceObject_0) {
|
|
2740
2755
|
tmp_0 = emptyList();
|
|
@@ -2750,10 +2765,10 @@
|
|
|
2750
2765
|
tmp$ret$6 = tmp$ret$5;
|
|
2751
2766
|
|
|
2752
2767
|
var fields = tmp$ret$6;
|
|
2753
|
-
var tmp1_subject = _this__u8e3s4.
|
|
2768
|
+
var tmp1_subject = _this__u8e3s4.r1m_1;
|
|
2754
2769
|
var tmp_1;
|
|
2755
2770
|
if (tmp1_subject == null) {
|
|
2756
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
2771
|
+
var tmp2_safe_receiver = _this__u8e3s4.q1m_1;
|
|
2757
2772
|
var tmp_2;
|
|
2758
2773
|
if (tmp2_safe_receiver == null) {
|
|
2759
2774
|
tmp_2 = null;
|
|
@@ -2783,15 +2798,15 @@
|
|
|
2783
2798
|
var tmp_3;
|
|
2784
2799
|
if (tmp0_subject_1 instanceof SchemaObject_0) {
|
|
2785
2800
|
var tmp_4 = new Identifier(key_0);
|
|
2786
|
-
var tmp_5 = toReference_2(value_0, $this, Common_getInstance().
|
|
2787
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
2801
|
+
var tmp_5 = toReference_2(value_0, $this, Common_getInstance().x1s([name, key_0]));
|
|
2802
|
+
var tmp1_safe_receiver = _this__u8e3s4.j1n_1;
|
|
2788
2803
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : contains(tmp1_safe_receiver, key_0);
|
|
2789
2804
|
tmp_3 = new Field(tmp_4, tmp_5, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
2790
2805
|
} else {
|
|
2791
2806
|
if (tmp0_subject_1 instanceof ReferenceObject_0) {
|
|
2792
2807
|
var tmp_6 = new Identifier(key_0);
|
|
2793
2808
|
var tmp_7 = toReference_1(value_0, $this);
|
|
2794
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
2809
|
+
var tmp3_safe_receiver = _this__u8e3s4.j1n_1;
|
|
2795
2810
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : contains(tmp3_safe_receiver, key_0);
|
|
2796
2811
|
tmp_3 = new Field(tmp_6, tmp_7, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
2797
2812
|
} else {
|
|
@@ -2815,7 +2830,7 @@
|
|
|
2815
2830
|
tmp = plus(schema, fields);
|
|
2816
2831
|
break;
|
|
2817
2832
|
case 4:
|
|
2818
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
2833
|
+
var tmp4_safe_receiver = _this__u8e3s4.p1m_1;
|
|
2819
2834
|
var tmp_8;
|
|
2820
2835
|
if (tmp4_safe_receiver == null) {
|
|
2821
2836
|
tmp_8 = null;
|
|
@@ -2831,7 +2846,7 @@
|
|
|
2831
2846
|
tmp_9 = emptyList();
|
|
2832
2847
|
} else {
|
|
2833
2848
|
if (tmp0_subject_2 instanceof SchemaObject_0) {
|
|
2834
|
-
tmp_9 = flatten_1(tmp4_safe_receiver, $this, Common_getInstance().
|
|
2849
|
+
tmp_9 = flatten_1(tmp4_safe_receiver, $this, Common_getInstance().x1s([name, 'array']));
|
|
2835
2850
|
} else {
|
|
2836
2851
|
noWhenBranchMatchedException();
|
|
2837
2852
|
}
|
|
@@ -2865,15 +2880,15 @@
|
|
|
2865
2880
|
return tmp;
|
|
2866
2881
|
}
|
|
2867
2882
|
function SimpleSchema_0(name, properties) {
|
|
2868
|
-
this.
|
|
2869
|
-
this.
|
|
2883
|
+
this.q1t_1 = name;
|
|
2884
|
+
this.r1t_1 = properties;
|
|
2870
2885
|
}
|
|
2871
2886
|
protoOf(SimpleSchema_0).toString = function () {
|
|
2872
|
-
return 'SimpleSchema(name=' + this.
|
|
2887
|
+
return 'SimpleSchema(name=' + this.q1t_1 + ', properties=' + this.r1t_1 + ')';
|
|
2873
2888
|
};
|
|
2874
2889
|
protoOf(SimpleSchema_0).hashCode = function () {
|
|
2875
|
-
var result = getStringHashCode(this.
|
|
2876
|
-
result = imul(result, 31) + hashCode(this.
|
|
2890
|
+
var result = getStringHashCode(this.q1t_1);
|
|
2891
|
+
result = imul(result, 31) + hashCode(this.r1t_1) | 0;
|
|
2877
2892
|
return result;
|
|
2878
2893
|
};
|
|
2879
2894
|
protoOf(SimpleSchema_0).equals = function (other) {
|
|
@@ -2882,9 +2897,9 @@
|
|
|
2882
2897
|
if (!(other instanceof SimpleSchema_0))
|
|
2883
2898
|
return false;
|
|
2884
2899
|
var tmp0_other_with_cast = other instanceof SimpleSchema_0 ? other : THROW_CCE();
|
|
2885
|
-
if (!(this.
|
|
2900
|
+
if (!(this.q1t_1 === tmp0_other_with_cast.q1t_1))
|
|
2886
2901
|
return false;
|
|
2887
|
-
if (!equals(this.
|
|
2902
|
+
if (!equals(this.r1t_1, tmp0_other_with_cast.r1t_1))
|
|
2888
2903
|
return false;
|
|
2889
2904
|
return true;
|
|
2890
2905
|
};
|
|
@@ -2897,32 +2912,32 @@
|
|
|
2897
2912
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
|
|
2898
2913
|
var referencingObject = tmp0_let.i3();
|
|
2899
2914
|
var schema = tmp0_let.j3();
|
|
2900
|
-
var additionalProperties = schema.
|
|
2915
|
+
var additionalProperties = schema.r1m_1;
|
|
2901
2916
|
var tmp;
|
|
2902
2917
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
2903
2918
|
throw new NotImplementedError();
|
|
2904
2919
|
} else {
|
|
2905
2920
|
if (additionalProperties instanceof ReferenceObject_0) {
|
|
2906
|
-
tmp = new Custom(Common_getInstance().
|
|
2921
|
+
tmp = new Custom(Common_getInstance().x1s([getReference_0(additionalProperties, $this)]), false, true);
|
|
2907
2922
|
} else {
|
|
2908
2923
|
if (additionalProperties instanceof SchemaObject_0) {
|
|
2909
|
-
tmp = new Custom(Common_getInstance().
|
|
2924
|
+
tmp = new Custom(Common_getInstance().x1s([getReference_0(referencingObject, $this)]), false, true);
|
|
2910
2925
|
} else {
|
|
2911
2926
|
if (additionalProperties == null) {
|
|
2912
|
-
var tmp0_subject = schema.
|
|
2927
|
+
var tmp0_subject = schema.k1m_1;
|
|
2913
2928
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
2914
2929
|
var tmp_0;
|
|
2915
2930
|
if (tmp0 === 4) {
|
|
2916
|
-
var items = schema.
|
|
2931
|
+
var items = schema.p1m_1;
|
|
2917
2932
|
var tmp_1;
|
|
2918
2933
|
if (items instanceof ReferenceObject_0) {
|
|
2919
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
2934
|
+
tmp_1 = new Custom(Common_getInstance().x1s([getReference_0(items, $this)]), true);
|
|
2920
2935
|
} else {
|
|
2921
2936
|
if (items instanceof SchemaObject_0) {
|
|
2922
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
2937
|
+
tmp_1 = new Custom(Common_getInstance().x1s([getReference_0(referencingObject, $this), 'Array']), true);
|
|
2923
2938
|
} else {
|
|
2924
2939
|
if (items == null) {
|
|
2925
|
-
var tmp0_error = 'When schema is of type array items cannot be null for name: ' + new Ref_0(_this__u8e3s4.
|
|
2940
|
+
var tmp0_error = 'When schema is of type array items cannot be null for name: ' + new Ref_0(_this__u8e3s4.y1l_1);
|
|
2926
2941
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2927
2942
|
} else {
|
|
2928
2943
|
noWhenBranchMatchedException();
|
|
@@ -2931,7 +2946,7 @@
|
|
|
2931
2946
|
}
|
|
2932
2947
|
tmp_0 = tmp_1;
|
|
2933
2948
|
} else {
|
|
2934
|
-
tmp_0 = new Custom(Common_getInstance().
|
|
2949
|
+
tmp_0 = new Custom(Common_getInstance().x1s([getReference_0(referencingObject, $this)]), false);
|
|
2935
2950
|
}
|
|
2936
2951
|
tmp = tmp_0;
|
|
2937
2952
|
} else {
|
|
@@ -2945,39 +2960,53 @@
|
|
|
2945
2960
|
return tmp$ret$1;
|
|
2946
2961
|
}
|
|
2947
2962
|
function toReference_2(_this__u8e3s4, $this, name) {
|
|
2948
|
-
var
|
|
2949
|
-
var tmp0 =
|
|
2963
|
+
var type = _this__u8e3s4.k1m_1;
|
|
2964
|
+
var tmp0 = type == null ? -1 : type.q4_1;
|
|
2950
2965
|
var tmp;
|
|
2951
2966
|
switch (tmp0) {
|
|
2952
2967
|
case 0:
|
|
2953
2968
|
case 1:
|
|
2954
2969
|
case 2:
|
|
2955
2970
|
case 3:
|
|
2956
|
-
tmp = new Primitive(toPrimitive_0(
|
|
2971
|
+
tmp = new Primitive(toPrimitive_0(type, $this), false);
|
|
2957
2972
|
break;
|
|
2958
2973
|
case -1:
|
|
2959
2974
|
case 5:
|
|
2960
|
-
|
|
2975
|
+
var tmp0_safe_receiver = _this__u8e3s4.r1m_1;
|
|
2976
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_4(tmp0_safe_receiver, $this);
|
|
2977
|
+
var additionalPropertiesType = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k1m_1;
|
|
2978
|
+
var tmp0_0 = additionalPropertiesType == null ? -1 : additionalPropertiesType.q4_1;
|
|
2979
|
+
switch (tmp0_0) {
|
|
2980
|
+
case 0:
|
|
2981
|
+
case 2:
|
|
2982
|
+
case 1:
|
|
2983
|
+
case 3:
|
|
2984
|
+
tmp = new Primitive(toPrimitive_0(additionalPropertiesType, $this), false, !(_this__u8e3s4.r1m_1 == null));
|
|
2985
|
+
break;
|
|
2986
|
+
default:
|
|
2987
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.r1m_1 == null));
|
|
2988
|
+
break;
|
|
2989
|
+
}
|
|
2990
|
+
|
|
2961
2991
|
break;
|
|
2962
2992
|
case 4:
|
|
2963
|
-
var
|
|
2964
|
-
var
|
|
2965
|
-
var
|
|
2966
|
-
var
|
|
2967
|
-
var tmp0_0 = type == null ? -1 : type.q4_1;
|
|
2993
|
+
var tmp2_safe_receiver = _this__u8e3s4.p1m_1;
|
|
2994
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : resolve_3(tmp2_safe_receiver, $this);
|
|
2995
|
+
var type_0 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.k1m_1;
|
|
2996
|
+
var tmp0_1 = type_0 == null ? -1 : type_0.q4_1;
|
|
2968
2997
|
var tmp_0;
|
|
2969
|
-
switch (
|
|
2998
|
+
switch (tmp0_1) {
|
|
2970
2999
|
case 0:
|
|
2971
3000
|
case 1:
|
|
2972
3001
|
case 2:
|
|
2973
3002
|
case 3:
|
|
2974
|
-
tmp_0 = new Primitive(toPrimitive_0(
|
|
3003
|
+
tmp_0 = new Primitive(toPrimitive_0(type_0, $this), true);
|
|
2975
3004
|
break;
|
|
2976
3005
|
default:
|
|
2977
|
-
var it = _this__u8e3s4.
|
|
3006
|
+
var it = _this__u8e3s4.p1m_1;
|
|
2978
3007
|
var tmp_1;
|
|
2979
3008
|
if (it instanceof ReferenceObject_0) {
|
|
2980
|
-
tmp_1 = toReference_1(it, $this).
|
|
3009
|
+
tmp_1 = toReference_1(it, $this).dl(VOID, true);
|
|
2981
3010
|
} else {
|
|
2982
3011
|
if (it instanceof SchemaObject_0) {
|
|
2983
3012
|
tmp_1 = toReference_2(it, $this, name);
|
|
@@ -3023,28 +3052,28 @@
|
|
|
3023
3052
|
var tmp;
|
|
3024
3053
|
switch (tmp0) {
|
|
3025
3054
|
case 0:
|
|
3026
|
-
tmp = _this__u8e3s4.
|
|
3055
|
+
tmp = _this__u8e3s4.s1j_1;
|
|
3027
3056
|
break;
|
|
3028
3057
|
case 1:
|
|
3029
|
-
tmp = _this__u8e3s4.
|
|
3058
|
+
tmp = _this__u8e3s4.u1j_1;
|
|
3030
3059
|
break;
|
|
3031
3060
|
case 2:
|
|
3032
|
-
tmp = _this__u8e3s4.
|
|
3061
|
+
tmp = _this__u8e3s4.t1j_1;
|
|
3033
3062
|
break;
|
|
3034
3063
|
case 3:
|
|
3035
|
-
tmp = _this__u8e3s4.
|
|
3064
|
+
tmp = _this__u8e3s4.v1j_1;
|
|
3036
3065
|
break;
|
|
3037
3066
|
case 4:
|
|
3038
|
-
tmp = _this__u8e3s4.
|
|
3067
|
+
tmp = _this__u8e3s4.w1j_1;
|
|
3039
3068
|
break;
|
|
3040
3069
|
case 5:
|
|
3041
|
-
tmp = _this__u8e3s4.
|
|
3070
|
+
tmp = _this__u8e3s4.x1j_1;
|
|
3042
3071
|
break;
|
|
3043
3072
|
case 6:
|
|
3044
|
-
tmp = _this__u8e3s4.
|
|
3073
|
+
tmp = _this__u8e3s4.y1j_1;
|
|
3045
3074
|
break;
|
|
3046
3075
|
case 7:
|
|
3047
|
-
tmp = _this__u8e3s4.
|
|
3076
|
+
tmp = _this__u8e3s4.z1j_1;
|
|
3048
3077
|
break;
|
|
3049
3078
|
default:
|
|
3050
3079
|
noWhenBranchMatchedException();
|
|
@@ -3058,7 +3087,7 @@
|
|
|
3058
3087
|
return filterNotNullValues_0(tmp$ret$2);
|
|
3059
3088
|
}
|
|
3060
3089
|
function getReference_0(_this__u8e3s4, $this) {
|
|
3061
|
-
return split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
3090
|
+
return split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.y1l_1), ['/']).h(3);
|
|
3062
3091
|
}
|
|
3063
3092
|
function toPrimitive_0(_this__u8e3s4, $this) {
|
|
3064
3093
|
var tmp0_subject = _this__u8e3s4;
|
|
@@ -3085,15 +3114,15 @@
|
|
|
3085
3114
|
function toField_0(_this__u8e3s4, $this) {
|
|
3086
3115
|
var tmp$ret$1;
|
|
3087
3116
|
// Inline function 'kotlin.let' call
|
|
3088
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3117
|
+
var tmp0_subject = _this__u8e3s4.b1l_1;
|
|
3089
3118
|
var tmp;
|
|
3090
3119
|
if (tmp0_subject instanceof ReferenceObject_0) {
|
|
3091
|
-
var tmp_0 = _this__u8e3s4.
|
|
3120
|
+
var tmp_0 = _this__u8e3s4.b1l_1;
|
|
3092
3121
|
tmp = new Custom(getReference_0(tmp_0 instanceof ReferenceObject_0 ? tmp_0 : THROW_CCE(), $this), false);
|
|
3093
3122
|
} else {
|
|
3094
3123
|
if (tmp0_subject instanceof SchemaObject_0) {
|
|
3095
|
-
var tmp_1 = _this__u8e3s4.
|
|
3096
|
-
var type = (tmp_1 instanceof SchemaObject_0 ? tmp_1 : THROW_CCE()).
|
|
3124
|
+
var tmp_1 = _this__u8e3s4.b1l_1;
|
|
3125
|
+
var type = (tmp_1 instanceof SchemaObject_0 ? tmp_1 : THROW_CCE()).k1m_1;
|
|
3097
3126
|
var tmp0 = type == null ? -1 : type.q4_1;
|
|
3098
3127
|
var tmp_2;
|
|
3099
3128
|
switch (tmp0) {
|
|
@@ -3126,26 +3155,26 @@
|
|
|
3126
3155
|
// Inline function 'kotlin.contracts.contract' call
|
|
3127
3156
|
var tmp$ret$0;
|
|
3128
3157
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3129
|
-
var tmp_3 = new Identifier(_this__u8e3s4.
|
|
3130
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3158
|
+
var tmp_3 = new Identifier(_this__u8e3s4.f1l_1);
|
|
3159
|
+
var tmp0_elvis_lhs = _this__u8e3s4.v1k_1;
|
|
3131
3160
|
tmp$ret$0 = new Field(tmp_3, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3132
3161
|
tmp$ret$1 = tmp$ret$0;
|
|
3133
3162
|
return tmp$ret$1;
|
|
3134
3163
|
}
|
|
3135
3164
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
3136
|
-
this.
|
|
3137
|
-
this.
|
|
3138
|
-
this.
|
|
3139
|
-
this.
|
|
3165
|
+
this.s1t_1 = path;
|
|
3166
|
+
this.t1t_1 = pathItem;
|
|
3167
|
+
this.u1t_1 = method;
|
|
3168
|
+
this.v1t_1 = operation;
|
|
3140
3169
|
}
|
|
3141
3170
|
protoOf(FlattenRequest_0).toString = function () {
|
|
3142
|
-
return 'FlattenRequest(path=' + new Path_0(this.
|
|
3171
|
+
return 'FlattenRequest(path=' + new Path_0(this.s1t_1) + ', pathItem=' + this.t1t_1 + ', method=' + this.u1t_1 + ', operation=' + this.v1t_1 + ')';
|
|
3143
3172
|
};
|
|
3144
3173
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
3145
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3146
|
-
result = imul(result, 31) + this.r1t_1.hashCode() | 0;
|
|
3147
|
-
result = imul(result, 31) + this.s1t_1.hashCode() | 0;
|
|
3174
|
+
var result = Path__hashCode_impl_go73kd_0(this.s1t_1);
|
|
3148
3175
|
result = imul(result, 31) + this.t1t_1.hashCode() | 0;
|
|
3176
|
+
result = imul(result, 31) + this.u1t_1.hashCode() | 0;
|
|
3177
|
+
result = imul(result, 31) + this.v1t_1.hashCode() | 0;
|
|
3149
3178
|
return result;
|
|
3150
3179
|
};
|
|
3151
3180
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -3154,13 +3183,13 @@
|
|
|
3154
3183
|
if (!(other instanceof FlattenRequest_0))
|
|
3155
3184
|
return false;
|
|
3156
3185
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
3157
|
-
if (!(this.
|
|
3186
|
+
if (!(this.s1t_1 === tmp0_other_with_cast.s1t_1))
|
|
3158
3187
|
return false;
|
|
3159
|
-
if (!this.
|
|
3188
|
+
if (!this.t1t_1.equals(tmp0_other_with_cast.t1t_1))
|
|
3160
3189
|
return false;
|
|
3161
|
-
if (!this.
|
|
3190
|
+
if (!this.u1t_1.equals(tmp0_other_with_cast.u1t_1))
|
|
3162
3191
|
return false;
|
|
3163
|
-
if (!this.
|
|
3192
|
+
if (!this.v1t_1.equals(tmp0_other_with_cast.v1t_1))
|
|
3164
3193
|
return false;
|
|
3165
3194
|
return true;
|
|
3166
3195
|
};
|
|
@@ -3169,7 +3198,7 @@
|
|
|
3169
3198
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3170
3199
|
var tmp$ret$11;
|
|
3171
3200
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3172
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
3201
|
+
var tmp1_flatMap = _this__u8e3s4.e1j_1;
|
|
3173
3202
|
var tmp$ret$10;
|
|
3174
3203
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3175
3204
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -3183,7 +3212,7 @@
|
|
|
3183
3212
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
3184
3213
|
var tmp$ret$1;
|
|
3185
3214
|
// Inline function 'kotlin.collections.component1' call
|
|
3186
|
-
tmp$ret$1 = element.v().
|
|
3215
|
+
tmp$ret$1 = element.v().m1j_1;
|
|
3187
3216
|
var path = tmp$ret$1;
|
|
3188
3217
|
var tmp$ret$2;
|
|
3189
3218
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3240,23 +3269,23 @@
|
|
|
3240
3269
|
return tmp$ret$14;
|
|
3241
3270
|
}
|
|
3242
3271
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
3243
|
-
this.
|
|
3244
|
-
this.
|
|
3245
|
-
this.
|
|
3246
|
-
this.
|
|
3247
|
-
this.
|
|
3248
|
-
this.
|
|
3272
|
+
this.w1t_1 = path;
|
|
3273
|
+
this.x1t_1 = pathItem;
|
|
3274
|
+
this.y1t_1 = method;
|
|
3275
|
+
this.z1t_1 = operation;
|
|
3276
|
+
this.a1u_1 = statusCode;
|
|
3277
|
+
this.b1u_1 = response;
|
|
3249
3278
|
}
|
|
3250
3279
|
protoOf(FlattenResponse_0).toString = function () {
|
|
3251
|
-
return 'FlattenResponse(path=' + new Path_0(this.
|
|
3280
|
+
return 'FlattenResponse(path=' + new Path_0(this.w1t_1) + ', pathItem=' + this.x1t_1 + ', method=' + this.y1t_1 + ', operation=' + this.z1t_1 + ', statusCode=' + new StatusCode_0(this.a1u_1) + ', response=' + this.b1u_1 + ')';
|
|
3252
3281
|
};
|
|
3253
3282
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
3254
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3255
|
-
result = imul(result, 31) + this.v1t_1.hashCode() | 0;
|
|
3256
|
-
result = imul(result, 31) + this.w1t_1.hashCode() | 0;
|
|
3283
|
+
var result = Path__hashCode_impl_go73kd_0(this.w1t_1);
|
|
3257
3284
|
result = imul(result, 31) + this.x1t_1.hashCode() | 0;
|
|
3258
|
-
result = imul(result, 31) +
|
|
3259
|
-
result = imul(result, 31) +
|
|
3285
|
+
result = imul(result, 31) + this.y1t_1.hashCode() | 0;
|
|
3286
|
+
result = imul(result, 31) + this.z1t_1.hashCode() | 0;
|
|
3287
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.a1u_1) | 0;
|
|
3288
|
+
result = imul(result, 31) + hashCode(this.b1u_1) | 0;
|
|
3260
3289
|
return result;
|
|
3261
3290
|
};
|
|
3262
3291
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -3265,17 +3294,17 @@
|
|
|
3265
3294
|
if (!(other instanceof FlattenResponse_0))
|
|
3266
3295
|
return false;
|
|
3267
3296
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
3268
|
-
if (!(this.
|
|
3297
|
+
if (!(this.w1t_1 === tmp0_other_with_cast.w1t_1))
|
|
3269
3298
|
return false;
|
|
3270
|
-
if (!this.
|
|
3299
|
+
if (!this.x1t_1.equals(tmp0_other_with_cast.x1t_1))
|
|
3271
3300
|
return false;
|
|
3272
|
-
if (!this.
|
|
3301
|
+
if (!this.y1t_1.equals(tmp0_other_with_cast.y1t_1))
|
|
3273
3302
|
return false;
|
|
3274
|
-
if (!this.
|
|
3303
|
+
if (!this.z1t_1.equals(tmp0_other_with_cast.z1t_1))
|
|
3275
3304
|
return false;
|
|
3276
|
-
if (!(this.
|
|
3305
|
+
if (!(this.a1u_1 === tmp0_other_with_cast.a1u_1))
|
|
3277
3306
|
return false;
|
|
3278
|
-
if (!equals(this.
|
|
3307
|
+
if (!equals(this.b1u_1, tmp0_other_with_cast.b1u_1))
|
|
3279
3308
|
return false;
|
|
3280
3309
|
return true;
|
|
3281
3310
|
};
|
|
@@ -3284,7 +3313,7 @@
|
|
|
3284
3313
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3285
3314
|
var tmp$ret$18;
|
|
3286
3315
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3287
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
3316
|
+
var tmp1_flatMap = _this__u8e3s4.e1j_1;
|
|
3288
3317
|
var tmp$ret$17;
|
|
3289
3318
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3290
3319
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -3298,7 +3327,7 @@
|
|
|
3298
3327
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
3299
3328
|
var tmp$ret$1;
|
|
3300
3329
|
// Inline function 'kotlin.collections.component1' call
|
|
3301
|
-
tmp$ret$1 = element.v().
|
|
3330
|
+
tmp$ret$1 = element.v().m1j_1;
|
|
3302
3331
|
var path = tmp$ret$1;
|
|
3303
3332
|
var tmp$ret$2;
|
|
3304
3333
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3328,7 +3357,7 @@
|
|
|
3328
3357
|
var operation = tmp$ret$5;
|
|
3329
3358
|
var tmp$ret$12;
|
|
3330
3359
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3331
|
-
var tmp0_safe_receiver = operation.
|
|
3360
|
+
var tmp0_safe_receiver = operation.m1k_1;
|
|
3332
3361
|
var tmp;
|
|
3333
3362
|
if (tmp0_safe_receiver == null) {
|
|
3334
3363
|
tmp = null;
|
|
@@ -3348,7 +3377,7 @@
|
|
|
3348
3377
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
3349
3378
|
var tmp$ret$7;
|
|
3350
3379
|
// Inline function 'kotlin.collections.component1' call
|
|
3351
|
-
tmp$ret$7 = item.v().
|
|
3380
|
+
tmp$ret$7 = item.v().o1n_1;
|
|
3352
3381
|
var statusCode = tmp$ret$7;
|
|
3353
3382
|
var tmp$ret$8;
|
|
3354
3383
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3395,16 +3424,16 @@
|
|
|
3395
3424
|
}
|
|
3396
3425
|
function OpenApiParser$parseRequestBody$lambda_0(this$0) {
|
|
3397
3426
|
return function (req) {
|
|
3398
|
-
var parameters = plus(resolveParameters_2(req.
|
|
3399
|
-
var segments = toSegments_0(req.
|
|
3400
|
-
var name = toName_0(req.
|
|
3427
|
+
var parameters = plus(resolveParameters_2(req.t1t_1, this$0), resolveParameters_1(req.v1t_1, this$0));
|
|
3428
|
+
var segments = toSegments_0(req.s1t_1, this$0, parameters);
|
|
3429
|
+
var name = toName_0(req.v1t_1, this$0, segments, req.u1t_1);
|
|
3401
3430
|
var tmp$ret$8;
|
|
3402
3431
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3403
3432
|
var tmp$ret$0;
|
|
3404
3433
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3405
|
-
var tmp0_safe_receiver = req.
|
|
3434
|
+
var tmp0_safe_receiver = req.v1t_1.l1k_1;
|
|
3406
3435
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, this$0);
|
|
3407
|
-
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3436
|
+
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.l1l_1;
|
|
3408
3437
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3409
3438
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3410
3439
|
var tmp2_flatMap = tmp$ret$0;
|
|
@@ -3423,10 +3452,10 @@
|
|
|
3423
3452
|
// Inline function 'kotlin.collections.component2' call
|
|
3424
3453
|
tmp$ret$2 = element.w();
|
|
3425
3454
|
var mediaObject = tmp$ret$2;
|
|
3426
|
-
var schema = mediaObject.
|
|
3455
|
+
var schema = mediaObject.s1l_1;
|
|
3427
3456
|
var tmp;
|
|
3428
3457
|
if (schema instanceof SchemaObject_0) {
|
|
3429
|
-
var tmp0_subject = schema.
|
|
3458
|
+
var tmp0_subject = schema.k1m_1;
|
|
3430
3459
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3431
3460
|
var tmp_0;
|
|
3432
3461
|
switch (tmp0) {
|
|
@@ -3434,7 +3463,7 @@
|
|
|
3434
3463
|
case 5:
|
|
3435
3464
|
var tmp$ret$5;
|
|
3436
3465
|
// Inline function 'kotlin.collections.map' call
|
|
3437
|
-
var tmp1_map = flatten_1(schema, this$0, Common_getInstance().
|
|
3466
|
+
var tmp1_map = flatten_1(schema, this$0, Common_getInstance().x1s([name, 'RequestBody']));
|
|
3438
3467
|
var tmp$ret$4;
|
|
3439
3468
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3440
3469
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -3443,7 +3472,7 @@
|
|
|
3443
3472
|
var item = tmp0_iterator_0.e();
|
|
3444
3473
|
var tmp$ret$3;
|
|
3445
3474
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
3446
|
-
tmp$ret$3 = new Type(item.
|
|
3475
|
+
tmp$ret$3 = new Type(item.q1t_1, new Shape(item.r1t_1));
|
|
3447
3476
|
tmp0_mapTo.a(tmp$ret$3);
|
|
3448
3477
|
}
|
|
3449
3478
|
tmp$ret$4 = tmp0_mapTo;
|
|
@@ -3478,10 +3507,10 @@
|
|
|
3478
3507
|
}
|
|
3479
3508
|
function OpenApiParser$parseResponseBody$lambda_0(this$0) {
|
|
3480
3509
|
return function (res) {
|
|
3481
|
-
var parameters = plus(resolveParameters_2(res.
|
|
3482
|
-
var segments = toSegments_0(res.
|
|
3483
|
-
var name = toName_0(res.
|
|
3484
|
-
var response = res.
|
|
3510
|
+
var parameters = plus(resolveParameters_2(res.x1t_1, this$0), resolveParameters_1(res.z1t_1, this$0));
|
|
3511
|
+
var segments = toSegments_0(res.w1t_1, this$0, parameters);
|
|
3512
|
+
var name = toName_0(res.z1t_1, this$0, segments, res.y1t_1);
|
|
3513
|
+
var response = res.b1u_1;
|
|
3485
3514
|
var tmp;
|
|
3486
3515
|
if (response instanceof ReferenceObject_0) {
|
|
3487
3516
|
tmp = emptyList();
|
|
@@ -3491,7 +3520,7 @@
|
|
|
3491
3520
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3492
3521
|
var tmp$ret$0;
|
|
3493
3522
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3494
|
-
var tmp0_orEmpty = response.
|
|
3523
|
+
var tmp0_orEmpty = response.t1n_1;
|
|
3495
3524
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3496
3525
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3497
3526
|
var tmp2_flatMap = tmp$ret$0;
|
|
@@ -3510,10 +3539,10 @@
|
|
|
3510
3539
|
// Inline function 'kotlin.collections.component2' call
|
|
3511
3540
|
tmp$ret$2 = element.w();
|
|
3512
3541
|
var mediaObject = tmp$ret$2;
|
|
3513
|
-
var schema = mediaObject.
|
|
3542
|
+
var schema = mediaObject.s1l_1;
|
|
3514
3543
|
var tmp_0;
|
|
3515
3544
|
if (schema instanceof SchemaObject_0) {
|
|
3516
|
-
var tmp0_subject = schema.
|
|
3545
|
+
var tmp0_subject = schema.k1m_1;
|
|
3517
3546
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3518
3547
|
var tmp_1;
|
|
3519
3548
|
switch (tmp0) {
|
|
@@ -3521,10 +3550,10 @@
|
|
|
3521
3550
|
case 5:
|
|
3522
3551
|
var tmp$ret$5;
|
|
3523
3552
|
// Inline function 'kotlin.collections.map' call
|
|
3524
|
-
var tmp1_safe_receiver = schema.
|
|
3553
|
+
var tmp1_safe_receiver = schema.r1m_1;
|
|
3525
3554
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_4(tmp1_safe_receiver, this$0);
|
|
3526
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : flatten_1(tmp2_safe_receiver, this$0, Common_getInstance().
|
|
3527
|
-
var tmp1_map = tmp3_elvis_lhs == null ? flatten_1(schema, this$0, Common_getInstance().
|
|
3555
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : flatten_1(tmp2_safe_receiver, this$0, Common_getInstance().x1s([name, _StatusCode___get_value__impl__we50mu_0(res.a1u_1), 'ResponseBody']));
|
|
3556
|
+
var tmp1_map = tmp3_elvis_lhs == null ? flatten_1(schema, this$0, Common_getInstance().x1s([name, _StatusCode___get_value__impl__we50mu_0(res.a1u_1), 'ResponseBody'])) : tmp3_elvis_lhs;
|
|
3528
3557
|
var tmp$ret$4;
|
|
3529
3558
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3530
3559
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -3533,7 +3562,7 @@
|
|
|
3533
3562
|
var item = tmp0_iterator_0.e();
|
|
3534
3563
|
var tmp$ret$3;
|
|
3535
3564
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
3536
|
-
tmp$ret$3 = new Type(item.
|
|
3565
|
+
tmp$ret$3 = new Type(item.q1t_1, new Shape(item.r1t_1));
|
|
3537
3566
|
tmp0_mapTo.a(tmp$ret$3);
|
|
3538
3567
|
}
|
|
3539
3568
|
tmp$ret$4 = tmp0_mapTo;
|
|
@@ -3575,10 +3604,10 @@
|
|
|
3575
3604
|
var tmp0_subject = it;
|
|
3576
3605
|
var tmp;
|
|
3577
3606
|
if (tmp0_subject instanceof Literal) {
|
|
3578
|
-
tmp = Common_getInstance().
|
|
3607
|
+
tmp = Common_getInstance().x1s([it.rj_1]);
|
|
3579
3608
|
} else {
|
|
3580
3609
|
if (tmp0_subject instanceof Param) {
|
|
3581
|
-
tmp = Common_getInstance().
|
|
3610
|
+
tmp = Common_getInstance().x1s([it.si_1.dj_1]);
|
|
3582
3611
|
} else {
|
|
3583
3612
|
noWhenBranchMatchedException();
|
|
3584
3613
|
}
|
|
@@ -3587,7 +3616,7 @@
|
|
|
3587
3616
|
}
|
|
3588
3617
|
function OpenApiParser_0(openApi) {
|
|
3589
3618
|
Companion_getInstance_1();
|
|
3590
|
-
this.
|
|
3619
|
+
this.p1t_1 = openApi;
|
|
3591
3620
|
}
|
|
3592
3621
|
function filterNotNullValues_0(_this__u8e3s4) {
|
|
3593
3622
|
var tmp$ret$8;
|