@flock/wirespec 0.6.1 → 0.6.2
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 +3 -3
- 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 +385 -242
- package/kotlin/wirespec-core.js.map +1 -1
- package/kotlin/wirespec-lib.js +38 -38
- package/kotlin/wirespec-openapi.js +311 -311
- 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
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
function Common() {
|
|
129
129
|
Common_instance = this;
|
|
130
130
|
}
|
|
131
|
-
protoOf(Common).
|
|
131
|
+
protoOf(Common).z1s = 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).a1t = 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().g1a(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)).c1t();
|
|
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.b1t_1.q1a_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().b1b_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.l1c_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.l1c_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.l1c_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.b1t_1.o1a_1;
|
|
311
|
+
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.z1b_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.o1c_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().z1s([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.n1c_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.c1c_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().u1e_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.b1t_1.p1a_1;
|
|
395
|
+
var tmp0_orEmpty_0 = tmp0_elvis_lhs_3 == null ? operation.a1c_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).y1e_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().z1s([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.b1t_1, $this, OpenApiParser$parseRequestBody$lambda($this));
|
|
461
461
|
}
|
|
462
462
|
function parseResponseBody($this) {
|
|
463
|
-
return flatMapResponses($this.
|
|
463
|
+
return flatMapResponses($this.b1t_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.b1t_1.r1a_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().z1s([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.d1t_1, new Shape(item.e1t_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.b1c_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.q1b_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.b1t_1.s1a_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.k1d_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.b1t_1.t1a_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.k1d_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.b1t_1.r1a_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.k1d_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.m1e_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.p1e_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.m1e_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().z1s([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.q1e_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.p1e_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().z1s([name, key_0]));
|
|
788
|
+
var tmp1_safe_receiver_0 = _this__u8e3s4.k1e_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.k1e_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.n1e_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.n1e_1;
|
|
836
|
+
tmp_10 = tmp1_safe_receiver_1 == null ? null : flatten_0(tmp1_safe_receiver_1, $this, Common_getInstance().z1s([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.d1t_1 = name;
|
|
871
|
+
this.e1t_1 = properties;
|
|
872
872
|
}
|
|
873
873
|
protoOf(SimpleSchema).toString = function () {
|
|
874
|
-
return 'SimpleSchema(name=' + this.
|
|
874
|
+
return 'SimpleSchema(name=' + this.d1t_1 + ', properties=' + this.e1t_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.d1t_1);
|
|
878
|
+
result = imul(result, 31) + hashCode(this.e1t_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.d1t_1 === tmp0_other_with_cast.d1t_1))
|
|
888
888
|
return false;
|
|
889
|
-
if (!equals(this.
|
|
889
|
+
if (!equals(this.e1t_1, tmp0_other_with_cast.e1t_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.q1e_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().z1s([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().z1s([getReference(referencingObject, $this)]), false, true);
|
|
912
912
|
} else {
|
|
913
913
|
if (additionalProperties == null) {
|
|
914
|
-
var tmp0_subject = schema.
|
|
914
|
+
var tmp0_subject = schema.m1e_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.n1e_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().z1s([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().z1s([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.k1d_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().z1s([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.m1e_1;
|
|
951
951
|
var tmp0 = type == null ? -1 : type.q4_1;
|
|
952
952
|
var tmp;
|
|
953
953
|
switch (tmp0) {
|
|
@@ -959,28 +959,28 @@
|
|
|
959
959
|
break;
|
|
960
960
|
case -1:
|
|
961
961
|
case 5:
|
|
962
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
962
|
+
var tmp0_safe_receiver = _this__u8e3s4.q1e_1;
|
|
963
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.
|
|
964
|
+
var t = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m1e_1;
|
|
965
965
|
var tmp0_0 = t == null ? -1 : t.q4_1;
|
|
966
966
|
switch (tmp0_0) {
|
|
967
967
|
case 0:
|
|
968
968
|
case 2:
|
|
969
969
|
case 1:
|
|
970
970
|
case 3:
|
|
971
|
-
tmp = new Primitive(toPrimitive(t, $this), false, !(_this__u8e3s4.
|
|
971
|
+
tmp = new Primitive(toPrimitive(t, $this), false, !(_this__u8e3s4.q1e_1 == null));
|
|
972
972
|
break;
|
|
973
973
|
default:
|
|
974
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
974
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.q1e_1 == null));
|
|
975
975
|
break;
|
|
976
976
|
}
|
|
977
977
|
|
|
978
978
|
break;
|
|
979
979
|
case 4:
|
|
980
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
980
|
+
var tmp2_safe_receiver = _this__u8e3s4.n1e_1;
|
|
981
981
|
var resolve_1 = tmp2_safe_receiver == null ? null : resolve(tmp2_safe_receiver, $this);
|
|
982
982
|
var tmp3_safe_receiver = resolve_1;
|
|
983
|
-
var t_0 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
983
|
+
var t_0 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.m1e_1;
|
|
984
984
|
var tmp0_1 = t_0 == null ? -1 : t_0.q4_1;
|
|
985
985
|
var tmp_0;
|
|
986
986
|
switch (tmp0_1) {
|
|
@@ -991,10 +991,10 @@
|
|
|
991
991
|
tmp_0 = new Primitive(toPrimitive(t_0, $this), true);
|
|
992
992
|
break;
|
|
993
993
|
default:
|
|
994
|
-
var it = _this__u8e3s4.
|
|
994
|
+
var it = _this__u8e3s4.n1e_1;
|
|
995
995
|
var tmp_1;
|
|
996
996
|
if (it instanceof ReferenceObject) {
|
|
997
|
-
tmp_1 = toReference(it, $this).
|
|
997
|
+
tmp_1 = toReference(it, $this).fl(VOID, true);
|
|
998
998
|
} else {
|
|
999
999
|
if (it instanceof SchemaObject) {
|
|
1000
1000
|
tmp_1 = toReference_0(it, $this, name);
|
|
@@ -1042,28 +1042,28 @@
|
|
|
1042
1042
|
var tmp;
|
|
1043
1043
|
switch (tmp0) {
|
|
1044
1044
|
case 0:
|
|
1045
|
-
tmp = _this__u8e3s4.
|
|
1045
|
+
tmp = _this__u8e3s4.h1b_1;
|
|
1046
1046
|
break;
|
|
1047
1047
|
case 1:
|
|
1048
|
-
tmp = _this__u8e3s4.
|
|
1048
|
+
tmp = _this__u8e3s4.j1b_1;
|
|
1049
1049
|
break;
|
|
1050
1050
|
case 2:
|
|
1051
|
-
tmp = _this__u8e3s4.
|
|
1051
|
+
tmp = _this__u8e3s4.i1b_1;
|
|
1052
1052
|
break;
|
|
1053
1053
|
case 3:
|
|
1054
|
-
tmp = _this__u8e3s4.
|
|
1054
|
+
tmp = _this__u8e3s4.k1b_1;
|
|
1055
1055
|
break;
|
|
1056
1056
|
case 4:
|
|
1057
|
-
tmp = _this__u8e3s4.
|
|
1057
|
+
tmp = _this__u8e3s4.l1b_1;
|
|
1058
1058
|
break;
|
|
1059
1059
|
case 5:
|
|
1060
|
-
tmp = _this__u8e3s4.
|
|
1060
|
+
tmp = _this__u8e3s4.m1b_1;
|
|
1061
1061
|
break;
|
|
1062
1062
|
case 6:
|
|
1063
|
-
tmp = _this__u8e3s4.
|
|
1063
|
+
tmp = _this__u8e3s4.n1b_1;
|
|
1064
1064
|
break;
|
|
1065
1065
|
case 7:
|
|
1066
|
-
tmp = _this__u8e3s4.
|
|
1066
|
+
tmp = _this__u8e3s4.o1b_1;
|
|
1067
1067
|
break;
|
|
1068
1068
|
default:
|
|
1069
1069
|
noWhenBranchMatchedException();
|
|
@@ -1077,7 +1077,7 @@
|
|
|
1077
1077
|
return filterNotNullValues(tmp$ret$2);
|
|
1078
1078
|
}
|
|
1079
1079
|
function getReference(_this__u8e3s4, $this) {
|
|
1080
|
-
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.
|
|
1080
|
+
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.k1d_1), ['/']).h(2);
|
|
1081
1081
|
}
|
|
1082
1082
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
1083
1083
|
var tmp0_subject = _this__u8e3s4;
|
|
@@ -1110,7 +1110,7 @@
|
|
|
1110
1110
|
// Inline function 'kotlin.contracts.contract' call
|
|
1111
1111
|
var tmp$ret$4;
|
|
1112
1112
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1113
|
-
var type = tmp0_let.
|
|
1113
|
+
var type = tmp0_let.p1c_1;
|
|
1114
1114
|
var tmp0 = type == null ? -1 : type.q4_1;
|
|
1115
1115
|
var tmp;
|
|
1116
1116
|
switch (tmp0) {
|
|
@@ -1130,9 +1130,9 @@
|
|
|
1130
1130
|
tmp = tmp$ret$1;
|
|
1131
1131
|
break;
|
|
1132
1132
|
case 4:
|
|
1133
|
-
var tmp0_safe_receiver = tmp0_let.
|
|
1133
|
+
var tmp0_safe_receiver = tmp0_let.q1c_1;
|
|
1134
1134
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve(tmp0_safe_receiver, $this);
|
|
1135
|
-
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.m1e_1;
|
|
1136
1136
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, $this);
|
|
1137
1137
|
var tmp_0;
|
|
1138
1138
|
if (tmp3_safe_receiver == null) {
|
|
@@ -1174,8 +1174,8 @@
|
|
|
1174
1174
|
// Inline function 'kotlin.contracts.contract' call
|
|
1175
1175
|
var tmp$ret$6;
|
|
1176
1176
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
|
|
1177
|
-
var tmp_2 = new Identifier(_this__u8e3s4.
|
|
1178
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1177
|
+
var tmp_2 = new Identifier(_this__u8e3s4.k1c_1);
|
|
1178
|
+
var tmp0_elvis_lhs = _this__u8e3s4.n1c_1;
|
|
1179
1179
|
tmp$ret$6 = new Field(tmp_2, tmp1_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
1180
1180
|
tmp$ret$7 = tmp$ret$6;
|
|
1181
1181
|
return tmp$ret$7;
|
|
@@ -1228,7 +1228,7 @@
|
|
|
1228
1228
|
var element = tmp0_iterator_0.e();
|
|
1229
1229
|
var tmp$ret$3;
|
|
1230
1230
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1231
|
-
tmp$ret$3 = element.
|
|
1231
|
+
tmp$ret$3 = element.k1c_1 === param;
|
|
1232
1232
|
if (tmp$ret$3) {
|
|
1233
1233
|
tmp$ret$4 = element;
|
|
1234
1234
|
break $l$block;
|
|
@@ -1247,7 +1247,7 @@
|
|
|
1247
1247
|
// Inline function 'kotlin.contracts.contract' call
|
|
1248
1248
|
var tmp$ret$6;
|
|
1249
1249
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
1250
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver.
|
|
1250
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver.p1c_1;
|
|
1251
1251
|
tmp$ret$6 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, $this);
|
|
1252
1252
|
tmp$ret$7 = tmp$ret$6;
|
|
1253
1253
|
tmp_2 = tmp$ret$7;
|
|
@@ -1287,7 +1287,7 @@
|
|
|
1287
1287
|
}
|
|
1288
1288
|
function toName(_this__u8e3s4, $this, segments, method) {
|
|
1289
1289
|
var tmp0_safe_receiver = _this__u8e3s4;
|
|
1290
|
-
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.y1b_1;
|
|
1291
1291
|
var tmp;
|
|
1292
1292
|
if (tmp1_safe_receiver == null) {
|
|
1293
1293
|
tmp = null;
|
|
@@ -1297,7 +1297,7 @@
|
|
|
1297
1297
|
// Inline function 'kotlin.contracts.contract' call
|
|
1298
1298
|
var tmp$ret$0;
|
|
1299
1299
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
|
|
1300
|
-
tmp$ret$0 = Common_getInstance().
|
|
1300
|
+
tmp$ret$0 = Common_getInstance().z1s([tmp1_safe_receiver]);
|
|
1301
1301
|
tmp$ret$1 = tmp$ret$0;
|
|
1302
1302
|
tmp = tmp$ret$1;
|
|
1303
1303
|
}
|
|
@@ -1319,21 +1319,21 @@
|
|
|
1319
1319
|
return tmp_0;
|
|
1320
1320
|
}
|
|
1321
1321
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
1322
|
-
this.
|
|
1323
|
-
this.
|
|
1324
|
-
this.
|
|
1325
|
-
this.
|
|
1326
|
-
this.
|
|
1322
|
+
this.f1t_1 = path;
|
|
1323
|
+
this.g1t_1 = pathItem;
|
|
1324
|
+
this.h1t_1 = method;
|
|
1325
|
+
this.i1t_1 = operation;
|
|
1326
|
+
this.j1t_1 = type;
|
|
1327
1327
|
}
|
|
1328
1328
|
protoOf(FlattenRequest).toString = function () {
|
|
1329
|
-
return 'FlattenRequest(path=' + new Path(this.
|
|
1329
|
+
return 'FlattenRequest(path=' + new Path(this.f1t_1) + ', pathItem=' + this.g1t_1 + ', method=' + this.h1t_1 + ', operation=' + this.i1t_1 + ', type=' + this.j1t_1 + ')';
|
|
1330
1330
|
};
|
|
1331
1331
|
protoOf(FlattenRequest).hashCode = function () {
|
|
1332
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1333
|
-
result = imul(result, 31) + this.e1t_1.hashCode() | 0;
|
|
1334
|
-
result = imul(result, 31) + this.f1t_1.hashCode() | 0;
|
|
1332
|
+
var result = Path__hashCode_impl_go73kd(this.f1t_1);
|
|
1335
1333
|
result = imul(result, 31) + this.g1t_1.hashCode() | 0;
|
|
1336
|
-
result = imul(result, 31) +
|
|
1334
|
+
result = imul(result, 31) + this.h1t_1.hashCode() | 0;
|
|
1335
|
+
result = imul(result, 31) + this.i1t_1.hashCode() | 0;
|
|
1336
|
+
result = imul(result, 31) + getStringHashCode(this.j1t_1) | 0;
|
|
1337
1337
|
return result;
|
|
1338
1338
|
};
|
|
1339
1339
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -1342,15 +1342,15 @@
|
|
|
1342
1342
|
if (!(other instanceof FlattenRequest))
|
|
1343
1343
|
return false;
|
|
1344
1344
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
1345
|
-
if (!(this.
|
|
1345
|
+
if (!(this.f1t_1 === tmp0_other_with_cast.f1t_1))
|
|
1346
1346
|
return false;
|
|
1347
|
-
if (!this.
|
|
1347
|
+
if (!this.g1t_1.equals(tmp0_other_with_cast.g1t_1))
|
|
1348
1348
|
return false;
|
|
1349
|
-
if (!this.
|
|
1349
|
+
if (!this.h1t_1.equals(tmp0_other_with_cast.h1t_1))
|
|
1350
1350
|
return false;
|
|
1351
|
-
if (!this.
|
|
1351
|
+
if (!this.i1t_1.equals(tmp0_other_with_cast.i1t_1))
|
|
1352
1352
|
return false;
|
|
1353
|
-
if (!(this.
|
|
1353
|
+
if (!(this.j1t_1 === tmp0_other_with_cast.j1t_1))
|
|
1354
1354
|
return false;
|
|
1355
1355
|
return true;
|
|
1356
1356
|
};
|
|
@@ -1359,7 +1359,7 @@
|
|
|
1359
1359
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1360
1360
|
var tmp$ret$15;
|
|
1361
1361
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1362
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
1362
|
+
var tmp1_flatMap = _this__u8e3s4.q1a_1;
|
|
1363
1363
|
var tmp$ret$14;
|
|
1364
1364
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1365
1365
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -1373,7 +1373,7 @@
|
|
|
1373
1373
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
1374
1374
|
var tmp$ret$1;
|
|
1375
1375
|
// Inline function 'kotlin.collections.component1' call
|
|
1376
|
-
tmp$ret$1 = element.v().
|
|
1376
|
+
tmp$ret$1 = element.v().b1b_1;
|
|
1377
1377
|
var path = tmp$ret$1;
|
|
1378
1378
|
var tmp$ret$2;
|
|
1379
1379
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1405,8 +1405,8 @@
|
|
|
1405
1405
|
// Inline function 'kotlin.collections.map' call
|
|
1406
1406
|
var tmp$ret$6;
|
|
1407
1407
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1408
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1409
|
-
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.
|
|
1408
|
+
var tmp0_elvis_lhs = _this__u8e3s4.o1a_1;
|
|
1409
|
+
var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.z1b_1 : tmp0_elvis_lhs;
|
|
1410
1410
|
var tmp0_elvis_lhs_0 = tmp0_orEmpty;
|
|
1411
1411
|
tmp$ret$6 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
1412
1412
|
var tmp2_map = tmp$ret$6;
|
|
@@ -1453,25 +1453,25 @@
|
|
|
1453
1453
|
return tmp$ret$18;
|
|
1454
1454
|
}
|
|
1455
1455
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
1456
|
-
this.
|
|
1457
|
-
this.
|
|
1458
|
-
this.
|
|
1459
|
-
this.
|
|
1460
|
-
this.
|
|
1461
|
-
this.
|
|
1462
|
-
this.
|
|
1456
|
+
this.k1t_1 = path;
|
|
1457
|
+
this.l1t_1 = pathItem;
|
|
1458
|
+
this.m1t_1 = method;
|
|
1459
|
+
this.n1t_1 = operation;
|
|
1460
|
+
this.o1t_1 = statusCode;
|
|
1461
|
+
this.p1t_1 = response;
|
|
1462
|
+
this.q1t_1 = type;
|
|
1463
1463
|
}
|
|
1464
1464
|
protoOf(FlattenResponse).toString = function () {
|
|
1465
|
-
return 'FlattenResponse(path=' + new Path(this.
|
|
1465
|
+
return 'FlattenResponse(path=' + new Path(this.k1t_1) + ', pathItem=' + this.l1t_1 + ', method=' + this.m1t_1 + ', operation=' + this.n1t_1 + ', statusCode=' + new StatusCode(this.o1t_1) + ', response=' + this.p1t_1 + ', type=' + this.q1t_1 + ')';
|
|
1466
1466
|
};
|
|
1467
1467
|
protoOf(FlattenResponse).hashCode = function () {
|
|
1468
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
1469
|
-
result = imul(result, 31) + this.j1t_1.hashCode() | 0;
|
|
1470
|
-
result = imul(result, 31) + this.k1t_1.hashCode() | 0;
|
|
1468
|
+
var result = Path__hashCode_impl_go73kd(this.k1t_1);
|
|
1471
1469
|
result = imul(result, 31) + this.l1t_1.hashCode() | 0;
|
|
1472
|
-
result = imul(result, 31) +
|
|
1473
|
-
result = imul(result, 31) +
|
|
1474
|
-
result = imul(result, 31) +
|
|
1470
|
+
result = imul(result, 31) + this.m1t_1.hashCode() | 0;
|
|
1471
|
+
result = imul(result, 31) + this.n1t_1.hashCode() | 0;
|
|
1472
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.o1t_1) | 0;
|
|
1473
|
+
result = imul(result, 31) + hashCode(this.p1t_1) | 0;
|
|
1474
|
+
result = imul(result, 31) + getStringHashCode(this.q1t_1) | 0;
|
|
1475
1475
|
return result;
|
|
1476
1476
|
};
|
|
1477
1477
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -1480,20 +1480,20 @@
|
|
|
1480
1480
|
if (!(other instanceof FlattenResponse))
|
|
1481
1481
|
return false;
|
|
1482
1482
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
1483
|
-
if (!(this.
|
|
1484
|
-
return false;
|
|
1485
|
-
if (!this.j1t_1.equals(tmp0_other_with_cast.j1t_1))
|
|
1486
|
-
return false;
|
|
1487
|
-
if (!this.k1t_1.equals(tmp0_other_with_cast.k1t_1))
|
|
1483
|
+
if (!(this.k1t_1 === tmp0_other_with_cast.k1t_1))
|
|
1488
1484
|
return false;
|
|
1489
1485
|
if (!this.l1t_1.equals(tmp0_other_with_cast.l1t_1))
|
|
1490
1486
|
return false;
|
|
1491
|
-
if (!
|
|
1487
|
+
if (!this.m1t_1.equals(tmp0_other_with_cast.m1t_1))
|
|
1492
1488
|
return false;
|
|
1493
|
-
if (!
|
|
1489
|
+
if (!this.n1t_1.equals(tmp0_other_with_cast.n1t_1))
|
|
1494
1490
|
return false;
|
|
1495
1491
|
if (!(this.o1t_1 === tmp0_other_with_cast.o1t_1))
|
|
1496
1492
|
return false;
|
|
1493
|
+
if (!equals(this.p1t_1, tmp0_other_with_cast.p1t_1))
|
|
1494
|
+
return false;
|
|
1495
|
+
if (!(this.q1t_1 === tmp0_other_with_cast.q1t_1))
|
|
1496
|
+
return false;
|
|
1497
1497
|
return true;
|
|
1498
1498
|
};
|
|
1499
1499
|
function flatMapResponses(_this__u8e3s4, $this, f) {
|
|
@@ -1501,7 +1501,7 @@
|
|
|
1501
1501
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1502
1502
|
var tmp$ret$22;
|
|
1503
1503
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1504
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
1504
|
+
var tmp1_flatMap = _this__u8e3s4.q1a_1;
|
|
1505
1505
|
var tmp$ret$21;
|
|
1506
1506
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1507
1507
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -1515,7 +1515,7 @@
|
|
|
1515
1515
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
1516
1516
|
var tmp$ret$1;
|
|
1517
1517
|
// Inline function 'kotlin.collections.component1' call
|
|
1518
|
-
tmp$ret$1 = element.v().
|
|
1518
|
+
tmp$ret$1 = element.v().b1b_1;
|
|
1519
1519
|
var path = tmp$ret$1;
|
|
1520
1520
|
var tmp$ret$2;
|
|
1521
1521
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1547,7 +1547,7 @@
|
|
|
1547
1547
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1548
1548
|
var tmp$ret$6;
|
|
1549
1549
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1550
|
-
var tmp0_orEmpty = operation.
|
|
1550
|
+
var tmp0_orEmpty = operation.c1c_1;
|
|
1551
1551
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
1552
1552
|
tmp$ret$6 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
1553
1553
|
var tmp2_flatMap = tmp$ret$6;
|
|
@@ -1564,7 +1564,7 @@
|
|
|
1564
1564
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
1565
1565
|
var tmp$ret$8;
|
|
1566
1566
|
// Inline function 'kotlin.collections.component1' call
|
|
1567
|
-
tmp$ret$8 = element_1.v().
|
|
1567
|
+
tmp$ret$8 = element_1.v().u1e_1;
|
|
1568
1568
|
var statusCode = tmp$ret$8;
|
|
1569
1569
|
var tmp$ret$9;
|
|
1570
1570
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1574,8 +1574,8 @@
|
|
|
1574
1574
|
// Inline function 'kotlin.collections.map' call
|
|
1575
1575
|
var tmp$ret$10;
|
|
1576
1576
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1577
|
-
var tmp0_elvis_lhs_0 = _this__u8e3s4.
|
|
1578
|
-
var tmp0_orEmpty_0 = tmp0_elvis_lhs_0 == null ? operation.
|
|
1577
|
+
var tmp0_elvis_lhs_0 = _this__u8e3s4.p1a_1;
|
|
1578
|
+
var tmp0_orEmpty_0 = tmp0_elvis_lhs_0 == null ? operation.a1c_1 : tmp0_elvis_lhs_0;
|
|
1579
1579
|
var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
|
|
1580
1580
|
tmp$ret$10 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
1581
1581
|
var tmp2_map = tmp$ret$10;
|
|
@@ -1629,7 +1629,7 @@
|
|
|
1629
1629
|
}
|
|
1630
1630
|
function OpenApiParser$parseRequestBody$lambda(this$0) {
|
|
1631
1631
|
return function (req) {
|
|
1632
|
-
var tmp0_safe_receiver = req.
|
|
1632
|
+
var tmp0_safe_receiver = req.i1t_1.b1c_1;
|
|
1633
1633
|
var tmp;
|
|
1634
1634
|
if (tmp0_safe_receiver == null) {
|
|
1635
1635
|
tmp = null;
|
|
@@ -1666,7 +1666,7 @@
|
|
|
1666
1666
|
var element = tmp0_iterator_0.e();
|
|
1667
1667
|
var tmp$ret$3;
|
|
1668
1668
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1669
|
-
tmp$ret$3 = element.
|
|
1669
|
+
tmp$ret$3 = element.l1c_1.equals(ParameterLocation_BODY_getInstance());
|
|
1670
1670
|
if (tmp$ret$3) {
|
|
1671
1671
|
tmp1_filterTo.a(element);
|
|
1672
1672
|
}
|
|
@@ -1690,13 +1690,13 @@
|
|
|
1690
1690
|
var element_0 = tmp0_iterator_1.e();
|
|
1691
1691
|
var tmp$ret$9;
|
|
1692
1692
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
1693
|
-
var parameters = plus(resolveParameters_0(req.
|
|
1694
|
-
var segments = toSegments(req.
|
|
1695
|
-
var name = toName(req.
|
|
1696
|
-
var schema = element_0.
|
|
1693
|
+
var parameters = plus(resolveParameters_0(req.g1t_1, this$0), resolveParameters(req.i1t_1, this$0));
|
|
1694
|
+
var segments = toSegments(req.f1t_1, this$0, parameters);
|
|
1695
|
+
var name = toName(req.i1t_1, this$0, segments, req.h1t_1);
|
|
1696
|
+
var schema = element_0.o1c_1;
|
|
1697
1697
|
var tmp_2;
|
|
1698
1698
|
if (schema instanceof SchemaObject) {
|
|
1699
|
-
var tmp0_subject = schema.
|
|
1699
|
+
var tmp0_subject = schema.m1e_1;
|
|
1700
1700
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
1701
1701
|
var tmp_3;
|
|
1702
1702
|
switch (tmp0) {
|
|
@@ -1704,7 +1704,7 @@
|
|
|
1704
1704
|
case 5:
|
|
1705
1705
|
var tmp$ret$8;
|
|
1706
1706
|
// Inline function 'kotlin.collections.map' call
|
|
1707
|
-
var tmp1_map = flatten(schema, this$0, Common_getInstance().
|
|
1707
|
+
var tmp1_map = flatten(schema, this$0, Common_getInstance().z1s([name, 'RequestBody']));
|
|
1708
1708
|
var tmp$ret$7;
|
|
1709
1709
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1710
1710
|
var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1713,7 +1713,7 @@
|
|
|
1713
1713
|
var item_0 = tmp0_iterator_2.e();
|
|
1714
1714
|
var tmp$ret$6;
|
|
1715
1715
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
1716
|
-
tmp$ret$6 = new Type(item_0.
|
|
1716
|
+
tmp$ret$6 = new Type(item_0.d1t_1, new Shape(item_0.e1t_1));
|
|
1717
1717
|
tmp0_mapTo_0.a(tmp$ret$6);
|
|
1718
1718
|
}
|
|
1719
1719
|
tmp$ret$7 = tmp0_mapTo_0;
|
|
@@ -1751,14 +1751,14 @@
|
|
|
1751
1751
|
}
|
|
1752
1752
|
function OpenApiParser$parseResponseBody$lambda(this$0) {
|
|
1753
1753
|
return function (res) {
|
|
1754
|
-
var response = resolve_1(res.
|
|
1755
|
-
var parameters = plus(resolveParameters_0(res.
|
|
1756
|
-
var segments = toSegments(res.
|
|
1757
|
-
var name = toName(res.
|
|
1758
|
-
var schema = response.
|
|
1754
|
+
var response = resolve_1(res.p1t_1, this$0);
|
|
1755
|
+
var parameters = plus(resolveParameters_0(res.l1t_1, this$0), resolveParameters(res.n1t_1, this$0));
|
|
1756
|
+
var segments = toSegments(res.k1t_1, this$0, parameters);
|
|
1757
|
+
var name = toName(res.n1t_1, this$0, segments, res.m1t_1);
|
|
1758
|
+
var schema = response.y1e_1;
|
|
1759
1759
|
var tmp;
|
|
1760
1760
|
if (schema instanceof SchemaObject) {
|
|
1761
|
-
var tmp0_subject = schema.
|
|
1761
|
+
var tmp0_subject = schema.m1e_1;
|
|
1762
1762
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
1763
1763
|
var tmp_0;
|
|
1764
1764
|
switch (tmp0) {
|
|
@@ -1766,10 +1766,10 @@
|
|
|
1766
1766
|
case 5:
|
|
1767
1767
|
var tmp$ret$2;
|
|
1768
1768
|
// Inline function 'kotlin.collections.map' call
|
|
1769
|
-
var tmp1_safe_receiver = schema.
|
|
1769
|
+
var tmp1_safe_receiver = schema.q1e_1;
|
|
1770
1770
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_0(tmp1_safe_receiver, this$0);
|
|
1771
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : flatten(tmp2_safe_receiver, this$0, Common_getInstance().
|
|
1772
|
-
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().z1s([name, _StatusCode___get_value__impl__we50mu(res.o1t_1), 'ResponseBody']));
|
|
1772
|
+
var tmp1_map = tmp3_elvis_lhs == null ? flatten(schema, this$0, Common_getInstance().z1s([name, _StatusCode___get_value__impl__we50mu(res.o1t_1), 'ResponseBody'])) : tmp3_elvis_lhs;
|
|
1773
1773
|
var tmp$ret$1;
|
|
1774
1774
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1775
1775
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1778,7 +1778,7 @@
|
|
|
1778
1778
|
var item = tmp0_iterator.e();
|
|
1779
1779
|
var tmp$ret$0;
|
|
1780
1780
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
1781
|
-
tmp$ret$0 = new Type(item.
|
|
1781
|
+
tmp$ret$0 = new Type(item.d1t_1, new Shape(item.e1t_1));
|
|
1782
1782
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1783
1783
|
}
|
|
1784
1784
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -1809,10 +1809,10 @@
|
|
|
1809
1809
|
var tmp0_subject = it;
|
|
1810
1810
|
var tmp;
|
|
1811
1811
|
if (tmp0_subject instanceof Literal) {
|
|
1812
|
-
tmp = Common_getInstance().
|
|
1812
|
+
tmp = Common_getInstance().z1s([it.rj_1]);
|
|
1813
1813
|
} else {
|
|
1814
1814
|
if (tmp0_subject instanceof Param) {
|
|
1815
|
-
tmp = Common_getInstance().
|
|
1815
|
+
tmp = Common_getInstance().z1s([it.si_1.dj_1]);
|
|
1816
1816
|
} else {
|
|
1817
1817
|
noWhenBranchMatchedException();
|
|
1818
1818
|
}
|
|
@@ -1821,9 +1821,9 @@
|
|
|
1821
1821
|
}
|
|
1822
1822
|
function OpenApiParser(openApi) {
|
|
1823
1823
|
Companion_getInstance_0();
|
|
1824
|
-
this.
|
|
1824
|
+
this.b1t_1 = openApi;
|
|
1825
1825
|
}
|
|
1826
|
-
protoOf(OpenApiParser).
|
|
1826
|
+
protoOf(OpenApiParser).c1t = function () {
|
|
1827
1827
|
return plus(plus(plus(parseEndpoints(this), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
|
|
1828
1828
|
};
|
|
1829
1829
|
function filterNotNullValues(_this__u8e3s4) {
|
|
@@ -1883,10 +1883,10 @@
|
|
|
1883
1883
|
function Companion_0() {
|
|
1884
1884
|
Companion_instance_0 = this;
|
|
1885
1885
|
}
|
|
1886
|
-
protoOf(Companion_0).
|
|
1886
|
+
protoOf(Companion_0).a1t = function (json) {
|
|
1887
1887
|
var tmp$ret$1;
|
|
1888
1888
|
// Inline function 'kotlin.let' call
|
|
1889
|
-
var tmp0_let = Default_getInstance_0().
|
|
1889
|
+
var tmp0_let = Default_getInstance_0().g1a(json);
|
|
1890
1890
|
// Inline function 'kotlin.contracts.contract' call
|
|
1891
1891
|
var tmp$ret$0;
|
|
1892
1892
|
// Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
|
|
@@ -1906,7 +1906,7 @@
|
|
|
1906
1906
|
function parseEndpoint($this) {
|
|
1907
1907
|
var tmp$ret$51;
|
|
1908
1908
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1909
|
-
var tmp1_flatMap = $this.
|
|
1909
|
+
var tmp1_flatMap = $this.r1t_1.g1j_1;
|
|
1910
1910
|
var tmp$ret$50;
|
|
1911
1911
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1912
1912
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -1920,7 +1920,7 @@
|
|
|
1920
1920
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>' call
|
|
1921
1921
|
var tmp$ret$1;
|
|
1922
1922
|
// Inline function 'kotlin.collections.component1' call
|
|
1923
|
-
tmp$ret$1 = element.v().
|
|
1923
|
+
tmp$ret$1 = element.v().o1j_1;
|
|
1924
1924
|
var key = tmp$ret$1;
|
|
1925
1925
|
var tmp$ret$2;
|
|
1926
1926
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -1969,7 +1969,7 @@
|
|
|
1969
1969
|
var element_0 = tmp0_iterator_1.e();
|
|
1970
1970
|
var tmp$ret$7;
|
|
1971
1971
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
1972
|
-
tmp$ret$7 = element_0.
|
|
1972
|
+
tmp$ret$7 = element_0.i1l_1.equals(ParameterLocation_QUERY_getInstance_0());
|
|
1973
1973
|
if (tmp$ret$7) {
|
|
1974
1974
|
tmp1_filterTo.a(element_0);
|
|
1975
1975
|
}
|
|
@@ -2003,7 +2003,7 @@
|
|
|
2003
2003
|
var element_1 = tmp0_iterator_3.e();
|
|
2004
2004
|
var tmp$ret$13;
|
|
2005
2005
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2006
|
-
tmp$ret$13 = element_1.
|
|
2006
|
+
tmp$ret$13 = element_1.i1l_1.equals(ParameterLocation_HEADER_getInstance_0());
|
|
2007
2007
|
if (tmp$ret$13) {
|
|
2008
2008
|
tmp4_filterTo.a(element_1);
|
|
2009
2009
|
}
|
|
@@ -2037,7 +2037,7 @@
|
|
|
2037
2037
|
var element_2 = tmp0_iterator_5.e();
|
|
2038
2038
|
var tmp$ret$19;
|
|
2039
2039
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2040
|
-
tmp$ret$19 = element_2.
|
|
2040
|
+
tmp$ret$19 = element_2.i1l_1.equals(ParameterLocation_COOKIE_getInstance());
|
|
2041
2041
|
if (tmp$ret$19) {
|
|
2042
2042
|
tmp7_filterTo.a(element_2);
|
|
2043
2043
|
}
|
|
@@ -2059,7 +2059,7 @@
|
|
|
2059
2059
|
tmp$ret$23 = tmp8_mapTo;
|
|
2060
2060
|
tmp$ret$24 = tmp$ret$23;
|
|
2061
2061
|
var cookies = tmp$ret$24;
|
|
2062
|
-
var tmp0_safe_receiver = operation.
|
|
2062
|
+
var tmp0_safe_receiver = operation.n1k_1;
|
|
2063
2063
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, $this);
|
|
2064
2064
|
var tmp_0;
|
|
2065
2065
|
if (tmp1_safe_receiver == null) {
|
|
@@ -2070,7 +2070,7 @@
|
|
|
2070
2070
|
// Inline function 'kotlin.contracts.contract' call
|
|
2071
2071
|
var tmp$ret$31;
|
|
2072
2072
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2073
|
-
var tmp0_safe_receiver_0 = tmp1_safe_receiver.
|
|
2073
|
+
var tmp0_safe_receiver_0 = tmp1_safe_receiver.n1l_1;
|
|
2074
2074
|
var tmp_1;
|
|
2075
2075
|
if (tmp0_safe_receiver_0 == null) {
|
|
2076
2076
|
tmp_1 = null;
|
|
@@ -2090,20 +2090,20 @@
|
|
|
2090
2090
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2091
2091
|
var tmp$ret$26;
|
|
2092
2092
|
// Inline function 'kotlin.collections.component1' call
|
|
2093
|
-
tmp$ret$26 = item_3.v().
|
|
2093
|
+
tmp$ret$26 = item_3.v().r1l_1;
|
|
2094
2094
|
var mediaType = tmp$ret$26;
|
|
2095
2095
|
var tmp$ret$27;
|
|
2096
2096
|
// Inline function 'kotlin.collections.component2' call
|
|
2097
2097
|
tmp$ret$27 = item_3.w();
|
|
2098
2098
|
var mediaObject = tmp$ret$27;
|
|
2099
2099
|
var tmp_2 = _MediaType___get_value__impl__wy58mp(mediaType);
|
|
2100
|
-
var schema = mediaObject.
|
|
2100
|
+
var schema = mediaObject.u1l_1;
|
|
2101
2101
|
var tmp_3;
|
|
2102
2102
|
if (schema instanceof ReferenceObject_0) {
|
|
2103
2103
|
tmp_3 = toReference_1(schema, $this);
|
|
2104
2104
|
} else {
|
|
2105
2105
|
if (schema instanceof SchemaObject_0) {
|
|
2106
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
2106
|
+
tmp_3 = new Custom(Common_getInstance().z1s([name, 'RequestBody']), true);
|
|
2107
2107
|
} else {
|
|
2108
2108
|
if (schema == null) {
|
|
2109
2109
|
throw new NotImplementedError();
|
|
@@ -2113,7 +2113,7 @@
|
|
|
2113
2113
|
}
|
|
2114
2114
|
}
|
|
2115
2115
|
var tmp_4 = tmp_3;
|
|
2116
|
-
var tmp0_elvis_lhs_0 = tmp1_safe_receiver.
|
|
2116
|
+
var tmp0_elvis_lhs_0 = tmp1_safe_receiver.o1l_1;
|
|
2117
2117
|
tmp$ret$28 = new Request(new Content(tmp_2, tmp_4, tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0));
|
|
2118
2118
|
tmp0_mapTo_0.a(tmp$ret$28);
|
|
2119
2119
|
}
|
|
@@ -2131,7 +2131,7 @@
|
|
|
2131
2131
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2132
2132
|
var tmp$ret$33;
|
|
2133
2133
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2134
|
-
var tmp10_orEmpty = operation.
|
|
2134
|
+
var tmp10_orEmpty = operation.o1k_1;
|
|
2135
2135
|
var tmp0_elvis_lhs_1 = tmp10_orEmpty;
|
|
2136
2136
|
tmp$ret$33 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
|
|
2137
2137
|
var tmp12_flatMap = tmp$ret$33;
|
|
@@ -2148,13 +2148,13 @@
|
|
|
2148
2148
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
2149
2149
|
var tmp$ret$35;
|
|
2150
2150
|
// Inline function 'kotlin.collections.component1' call
|
|
2151
|
-
tmp$ret$35 = element_3.v().
|
|
2151
|
+
tmp$ret$35 = element_3.v().q1n_1;
|
|
2152
2152
|
var status = tmp$ret$35;
|
|
2153
2153
|
var tmp$ret$36;
|
|
2154
2154
|
// Inline function 'kotlin.collections.component2' call
|
|
2155
2155
|
tmp$ret$36 = element_3.w();
|
|
2156
2156
|
var res = tmp$ret$36;
|
|
2157
|
-
var tmp0_safe_receiver_1 = resolve_6(res, $this).
|
|
2157
|
+
var tmp0_safe_receiver_1 = resolve_6(res, $this).v1n_1;
|
|
2158
2158
|
var tmp_5;
|
|
2159
2159
|
if (tmp0_safe_receiver_1 == null) {
|
|
2160
2160
|
tmp_5 = null;
|
|
@@ -2174,7 +2174,7 @@
|
|
|
2174
2174
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
2175
2175
|
var tmp$ret$38;
|
|
2176
2176
|
// Inline function 'kotlin.collections.component1' call
|
|
2177
|
-
tmp$ret$38 = item_4.v().
|
|
2177
|
+
tmp$ret$38 = item_4.v().r1l_1;
|
|
2178
2178
|
var contentType = tmp$ret$38;
|
|
2179
2179
|
var tmp$ret$39;
|
|
2180
2180
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -2182,13 +2182,13 @@
|
|
|
2182
2182
|
var media = tmp$ret$39;
|
|
2183
2183
|
var tmp_6 = _StatusCode___get_value__impl__we50mu_0(status);
|
|
2184
2184
|
var tmp_7 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
2185
|
-
var schema_0 = media.
|
|
2185
|
+
var schema_0 = media.u1l_1;
|
|
2186
2186
|
var tmp_8;
|
|
2187
2187
|
if (schema_0 instanceof ReferenceObject_0) {
|
|
2188
2188
|
tmp_8 = toReference_1(schema_0, $this);
|
|
2189
2189
|
} else {
|
|
2190
2190
|
if (schema_0 instanceof SchemaObject_0) {
|
|
2191
|
-
tmp_8 = toReference_2(schema_0, $this, Common_getInstance().
|
|
2191
|
+
tmp_8 = toReference_2(schema_0, $this, Common_getInstance().z1s([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
2192
2192
|
} else {
|
|
2193
2193
|
if (schema_0 == null) {
|
|
2194
2194
|
throw new NotImplementedError();
|
|
@@ -2198,9 +2198,9 @@
|
|
|
2198
2198
|
}
|
|
2199
2199
|
}
|
|
2200
2200
|
var tmp_9 = tmp_8;
|
|
2201
|
-
var tmp0_safe_receiver_2 = media.
|
|
2201
|
+
var tmp0_safe_receiver_2 = media.u1l_1;
|
|
2202
2202
|
var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : resolve_3(tmp0_safe_receiver_2, $this);
|
|
2203
|
-
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.d1m_1;
|
|
2204
2204
|
tmp$ret$40 = new Response(tmp_6, new Content(tmp_7, tmp_9, tmp2_elvis_lhs_0 == null ? false : tmp2_elvis_lhs_0));
|
|
2205
2205
|
tmp0_mapTo_1.a(tmp$ret$40);
|
|
2206
2206
|
}
|
|
@@ -2230,14 +2230,14 @@
|
|
|
2230
2230
|
return tmp$ret$51;
|
|
2231
2231
|
}
|
|
2232
2232
|
function parseRequestBody_0($this) {
|
|
2233
|
-
return flatMapRequests_0($this.
|
|
2233
|
+
return flatMapRequests_0($this.r1t_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
|
|
2234
2234
|
}
|
|
2235
2235
|
function parseResponseBody_0($this) {
|
|
2236
|
-
return flatMapResponses_0($this.
|
|
2236
|
+
return flatMapResponses_0($this.r1t_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
|
|
2237
2237
|
}
|
|
2238
2238
|
function parseComponents($this) {
|
|
2239
|
-
var tmp0_safe_receiver = $this.
|
|
2240
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2239
|
+
var tmp0_safe_receiver = $this.r1t_1.h1j_1;
|
|
2240
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1o_1;
|
|
2241
2241
|
var tmp;
|
|
2242
2242
|
if (tmp1_safe_receiver == null) {
|
|
2243
2243
|
tmp = null;
|
|
@@ -2255,7 +2255,7 @@
|
|
|
2255
2255
|
var element = tmp0_iterator.e();
|
|
2256
2256
|
var tmp$ret$1;
|
|
2257
2257
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2258
|
-
tmp$ret$1 = flatten_2(element.w(), $this, Common_getInstance().
|
|
2258
|
+
tmp$ret$1 = flatten_2(element.w(), $this, Common_getInstance().z1s([element.v()]));
|
|
2259
2259
|
var list = tmp$ret$1;
|
|
2260
2260
|
addAll(tmp0_flatMapTo, list);
|
|
2261
2261
|
}
|
|
@@ -2278,7 +2278,7 @@
|
|
|
2278
2278
|
var item = tmp0_iterator_0.e();
|
|
2279
2279
|
var tmp$ret$4;
|
|
2280
2280
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
|
|
2281
|
-
tmp$ret$4 = new Type(item.
|
|
2281
|
+
tmp$ret$4 = new Type(item.s1t_1, new Shape(item.t1t_1));
|
|
2282
2282
|
tmp1_mapTo.a(tmp$ret$4);
|
|
2283
2283
|
}
|
|
2284
2284
|
tmp$ret$5 = tmp1_mapTo;
|
|
@@ -2321,7 +2321,7 @@
|
|
|
2321
2321
|
var element = tmp0_iterator_0.e();
|
|
2322
2322
|
var tmp$ret$2;
|
|
2323
2323
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2324
|
-
tmp$ret$2 = element.
|
|
2324
|
+
tmp$ret$2 = element.h1l_1 === param;
|
|
2325
2325
|
if (tmp$ret$2) {
|
|
2326
2326
|
tmp$ret$3 = element;
|
|
2327
2327
|
break $l$block;
|
|
@@ -2331,7 +2331,7 @@
|
|
|
2331
2331
|
}
|
|
2332
2332
|
tmp$ret$4 = tmp$ret$3;
|
|
2333
2333
|
var tmp0_safe_receiver = tmp$ret$4;
|
|
2334
|
-
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.d1l_1;
|
|
2335
2335
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_3(tmp1_safe_receiver, $this);
|
|
2336
2336
|
var tmp_0;
|
|
2337
2337
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2342,7 +2342,7 @@
|
|
|
2342
2342
|
// Inline function 'kotlin.contracts.contract' call
|
|
2343
2343
|
var tmp$ret$5;
|
|
2344
2344
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
|
|
2345
|
-
var tmp0_safe_receiver_0 = tmp2_safe_receiver.
|
|
2345
|
+
var tmp0_safe_receiver_0 = tmp2_safe_receiver.m1m_1;
|
|
2346
2346
|
tmp$ret$5 = tmp0_safe_receiver_0 == null ? null : toPrimitive_0(tmp0_safe_receiver_0, $this);
|
|
2347
2347
|
tmp$ret$6 = tmp$ret$5;
|
|
2348
2348
|
tmp_0 = tmp$ret$6;
|
|
@@ -2381,7 +2381,7 @@
|
|
|
2381
2381
|
return tmp$ret$11;
|
|
2382
2382
|
}
|
|
2383
2383
|
function toName_0(_this__u8e3s4, $this, segments, method) {
|
|
2384
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2384
|
+
var tmp0_safe_receiver = _this__u8e3s4.l1k_1;
|
|
2385
2385
|
var tmp;
|
|
2386
2386
|
if (tmp0_safe_receiver == null) {
|
|
2387
2387
|
tmp = null;
|
|
@@ -2391,7 +2391,7 @@
|
|
|
2391
2391
|
// Inline function 'kotlin.contracts.contract' call
|
|
2392
2392
|
var tmp$ret$0;
|
|
2393
2393
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
|
|
2394
|
-
tmp$ret$0 = Common_getInstance().
|
|
2394
|
+
tmp$ret$0 = Common_getInstance().z1s([tmp0_safe_receiver]);
|
|
2395
2395
|
tmp$ret$1 = tmp$ret$0;
|
|
2396
2396
|
tmp = tmp$ret$1;
|
|
2397
2397
|
}
|
|
@@ -2413,7 +2413,7 @@
|
|
|
2413
2413
|
return tmp_0;
|
|
2414
2414
|
}
|
|
2415
2415
|
function resolveParameters_1(_this__u8e3s4, $this) {
|
|
2416
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2416
|
+
var tmp0_safe_receiver = _this__u8e3s4.m1k_1;
|
|
2417
2417
|
var tmp;
|
|
2418
2418
|
if (tmp0_safe_receiver == null) {
|
|
2419
2419
|
tmp = null;
|
|
@@ -2461,7 +2461,7 @@
|
|
|
2461
2461
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2462
2462
|
}
|
|
2463
2463
|
function resolveParameters_2(_this__u8e3s4, $this) {
|
|
2464
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2464
|
+
var tmp0_safe_receiver = _this__u8e3s4.d1k_1;
|
|
2465
2465
|
var tmp;
|
|
2466
2466
|
if (tmp0_safe_receiver == null) {
|
|
2467
2467
|
tmp = null;
|
|
@@ -2509,8 +2509,8 @@
|
|
|
2509
2509
|
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
2510
2510
|
}
|
|
2511
2511
|
function resolveParameterObject_0(_this__u8e3s4, $this) {
|
|
2512
|
-
var tmp0_safe_receiver = $this.
|
|
2513
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2512
|
+
var tmp0_safe_receiver = $this.r1t_1.h1j_1;
|
|
2513
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c1o_1;
|
|
2514
2514
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2515
2515
|
var tmp;
|
|
2516
2516
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2539,8 +2539,8 @@
|
|
|
2539
2539
|
return tmp;
|
|
2540
2540
|
}
|
|
2541
2541
|
function resolveSchemaObject_0(_this__u8e3s4, $this) {
|
|
2542
|
-
var tmp0_safe_receiver = $this.
|
|
2543
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2542
|
+
var tmp0_safe_receiver = $this.r1t_1.h1j_1;
|
|
2543
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1o_1;
|
|
2544
2544
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2545
2545
|
var tmp;
|
|
2546
2546
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2569,7 +2569,7 @@
|
|
|
2569
2569
|
var tmp3_elvis_lhs = tmp;
|
|
2570
2570
|
var tmp_1;
|
|
2571
2571
|
if (tmp3_elvis_lhs == null) {
|
|
2572
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2572
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.a1m_1);
|
|
2573
2573
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2574
2574
|
} else {
|
|
2575
2575
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2577,8 +2577,8 @@
|
|
|
2577
2577
|
return tmp_1;
|
|
2578
2578
|
}
|
|
2579
2579
|
function resolveRequestBodyObject(_this__u8e3s4, $this) {
|
|
2580
|
-
var tmp0_safe_receiver = $this.
|
|
2581
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2580
|
+
var tmp0_safe_receiver = $this.r1t_1.h1j_1;
|
|
2581
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e1o_1;
|
|
2582
2582
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2583
2583
|
var tmp;
|
|
2584
2584
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2607,7 +2607,7 @@
|
|
|
2607
2607
|
var tmp3_elvis_lhs = tmp;
|
|
2608
2608
|
var tmp_1;
|
|
2609
2609
|
if (tmp3_elvis_lhs == null) {
|
|
2610
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2610
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.a1m_1);
|
|
2611
2611
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2612
2612
|
} else {
|
|
2613
2613
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2615,8 +2615,8 @@
|
|
|
2615
2615
|
return tmp_1;
|
|
2616
2616
|
}
|
|
2617
2617
|
function resolveResponseObject_0(_this__u8e3s4, $this) {
|
|
2618
|
-
var tmp0_safe_receiver = $this.
|
|
2619
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2618
|
+
var tmp0_safe_receiver = $this.r1t_1.h1j_1;
|
|
2619
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b1o_1;
|
|
2620
2620
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
|
|
2621
2621
|
var tmp;
|
|
2622
2622
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2645,7 +2645,7 @@
|
|
|
2645
2645
|
var tmp3_elvis_lhs = tmp;
|
|
2646
2646
|
var tmp_1;
|
|
2647
2647
|
if (tmp3_elvis_lhs == null) {
|
|
2648
|
-
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.
|
|
2648
|
+
var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.a1m_1);
|
|
2649
2649
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2650
2650
|
} else {
|
|
2651
2651
|
tmp_1 = tmp3_elvis_lhs;
|
|
@@ -2713,7 +2713,7 @@
|
|
|
2713
2713
|
return tmp;
|
|
2714
2714
|
}
|
|
2715
2715
|
function flatten_1(_this__u8e3s4, $this, name) {
|
|
2716
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2716
|
+
var tmp0_subject = _this__u8e3s4.m1m_1;
|
|
2717
2717
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
2718
2718
|
var tmp;
|
|
2719
2719
|
switch (tmp0) {
|
|
@@ -2723,7 +2723,7 @@
|
|
|
2723
2723
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2724
2724
|
var tmp$ret$0;
|
|
2725
2725
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
2726
|
-
var tmp0_orEmpty = _this__u8e3s4.
|
|
2726
|
+
var tmp0_orEmpty = _this__u8e3s4.s1m_1;
|
|
2727
2727
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
2728
2728
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
2729
2729
|
var tmp2_flatMap = tmp$ret$0;
|
|
@@ -2749,7 +2749,7 @@
|
|
|
2749
2749
|
var tmp0_subject_0 = value;
|
|
2750
2750
|
var tmp_0;
|
|
2751
2751
|
if (tmp0_subject_0 instanceof SchemaObject_0) {
|
|
2752
|
-
tmp_0 = flatten_1(value, $this, Common_getInstance().
|
|
2752
|
+
tmp_0 = flatten_1(value, $this, Common_getInstance().z1s([name, key]));
|
|
2753
2753
|
} else {
|
|
2754
2754
|
if (tmp0_subject_0 instanceof ReferenceObject_0) {
|
|
2755
2755
|
tmp_0 = emptyList();
|
|
@@ -2765,10 +2765,10 @@
|
|
|
2765
2765
|
tmp$ret$6 = tmp$ret$5;
|
|
2766
2766
|
|
|
2767
2767
|
var fields = tmp$ret$6;
|
|
2768
|
-
var tmp1_subject = _this__u8e3s4.
|
|
2768
|
+
var tmp1_subject = _this__u8e3s4.t1m_1;
|
|
2769
2769
|
var tmp_1;
|
|
2770
2770
|
if (tmp1_subject == null) {
|
|
2771
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
2771
|
+
var tmp2_safe_receiver = _this__u8e3s4.s1m_1;
|
|
2772
2772
|
var tmp_2;
|
|
2773
2773
|
if (tmp2_safe_receiver == null) {
|
|
2774
2774
|
tmp_2 = null;
|
|
@@ -2798,15 +2798,15 @@
|
|
|
2798
2798
|
var tmp_3;
|
|
2799
2799
|
if (tmp0_subject_1 instanceof SchemaObject_0) {
|
|
2800
2800
|
var tmp_4 = new Identifier(key_0);
|
|
2801
|
-
var tmp_5 = toReference_2(value_0, $this, Common_getInstance().
|
|
2802
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
2801
|
+
var tmp_5 = toReference_2(value_0, $this, Common_getInstance().z1s([name, key_0]));
|
|
2802
|
+
var tmp1_safe_receiver = _this__u8e3s4.l1n_1;
|
|
2803
2803
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : contains(tmp1_safe_receiver, key_0);
|
|
2804
2804
|
tmp_3 = new Field(tmp_4, tmp_5, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
2805
2805
|
} else {
|
|
2806
2806
|
if (tmp0_subject_1 instanceof ReferenceObject_0) {
|
|
2807
2807
|
var tmp_6 = new Identifier(key_0);
|
|
2808
2808
|
var tmp_7 = toReference_1(value_0, $this);
|
|
2809
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
2809
|
+
var tmp3_safe_receiver = _this__u8e3s4.l1n_1;
|
|
2810
2810
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : contains(tmp3_safe_receiver, key_0);
|
|
2811
2811
|
tmp_3 = new Field(tmp_6, tmp_7, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
2812
2812
|
} else {
|
|
@@ -2830,7 +2830,7 @@
|
|
|
2830
2830
|
tmp = plus(schema, fields);
|
|
2831
2831
|
break;
|
|
2832
2832
|
case 4:
|
|
2833
|
-
var tmp4_safe_receiver = _this__u8e3s4.
|
|
2833
|
+
var tmp4_safe_receiver = _this__u8e3s4.r1m_1;
|
|
2834
2834
|
var tmp_8;
|
|
2835
2835
|
if (tmp4_safe_receiver == null) {
|
|
2836
2836
|
tmp_8 = null;
|
|
@@ -2846,7 +2846,7 @@
|
|
|
2846
2846
|
tmp_9 = emptyList();
|
|
2847
2847
|
} else {
|
|
2848
2848
|
if (tmp0_subject_2 instanceof SchemaObject_0) {
|
|
2849
|
-
tmp_9 = flatten_1(tmp4_safe_receiver, $this, Common_getInstance().
|
|
2849
|
+
tmp_9 = flatten_1(tmp4_safe_receiver, $this, Common_getInstance().z1s([name, 'array']));
|
|
2850
2850
|
} else {
|
|
2851
2851
|
noWhenBranchMatchedException();
|
|
2852
2852
|
}
|
|
@@ -2880,15 +2880,15 @@
|
|
|
2880
2880
|
return tmp;
|
|
2881
2881
|
}
|
|
2882
2882
|
function SimpleSchema_0(name, properties) {
|
|
2883
|
-
this.
|
|
2884
|
-
this.
|
|
2883
|
+
this.s1t_1 = name;
|
|
2884
|
+
this.t1t_1 = properties;
|
|
2885
2885
|
}
|
|
2886
2886
|
protoOf(SimpleSchema_0).toString = function () {
|
|
2887
|
-
return 'SimpleSchema(name=' + this.
|
|
2887
|
+
return 'SimpleSchema(name=' + this.s1t_1 + ', properties=' + this.t1t_1 + ')';
|
|
2888
2888
|
};
|
|
2889
2889
|
protoOf(SimpleSchema_0).hashCode = function () {
|
|
2890
|
-
var result = getStringHashCode(this.
|
|
2891
|
-
result = imul(result, 31) + hashCode(this.
|
|
2890
|
+
var result = getStringHashCode(this.s1t_1);
|
|
2891
|
+
result = imul(result, 31) + hashCode(this.t1t_1) | 0;
|
|
2892
2892
|
return result;
|
|
2893
2893
|
};
|
|
2894
2894
|
protoOf(SimpleSchema_0).equals = function (other) {
|
|
@@ -2897,9 +2897,9 @@
|
|
|
2897
2897
|
if (!(other instanceof SimpleSchema_0))
|
|
2898
2898
|
return false;
|
|
2899
2899
|
var tmp0_other_with_cast = other instanceof SimpleSchema_0 ? other : THROW_CCE();
|
|
2900
|
-
if (!(this.
|
|
2900
|
+
if (!(this.s1t_1 === tmp0_other_with_cast.s1t_1))
|
|
2901
2901
|
return false;
|
|
2902
|
-
if (!equals(this.
|
|
2902
|
+
if (!equals(this.t1t_1, tmp0_other_with_cast.t1t_1))
|
|
2903
2903
|
return false;
|
|
2904
2904
|
return true;
|
|
2905
2905
|
};
|
|
@@ -2912,32 +2912,32 @@
|
|
|
2912
2912
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
|
|
2913
2913
|
var referencingObject = tmp0_let.i3();
|
|
2914
2914
|
var schema = tmp0_let.j3();
|
|
2915
|
-
var additionalProperties = schema.
|
|
2915
|
+
var additionalProperties = schema.t1m_1;
|
|
2916
2916
|
var tmp;
|
|
2917
2917
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
2918
2918
|
throw new NotImplementedError();
|
|
2919
2919
|
} else {
|
|
2920
2920
|
if (additionalProperties instanceof ReferenceObject_0) {
|
|
2921
|
-
tmp = new Custom(Common_getInstance().
|
|
2921
|
+
tmp = new Custom(Common_getInstance().z1s([getReference_0(additionalProperties, $this)]), false, true);
|
|
2922
2922
|
} else {
|
|
2923
2923
|
if (additionalProperties instanceof SchemaObject_0) {
|
|
2924
|
-
tmp = new Custom(Common_getInstance().
|
|
2924
|
+
tmp = new Custom(Common_getInstance().z1s([getReference_0(referencingObject, $this)]), false, true);
|
|
2925
2925
|
} else {
|
|
2926
2926
|
if (additionalProperties == null) {
|
|
2927
|
-
var tmp0_subject = schema.
|
|
2927
|
+
var tmp0_subject = schema.m1m_1;
|
|
2928
2928
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
2929
2929
|
var tmp_0;
|
|
2930
2930
|
if (tmp0 === 4) {
|
|
2931
|
-
var items = schema.
|
|
2931
|
+
var items = schema.r1m_1;
|
|
2932
2932
|
var tmp_1;
|
|
2933
2933
|
if (items instanceof ReferenceObject_0) {
|
|
2934
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
2934
|
+
tmp_1 = new Custom(Common_getInstance().z1s([getReference_0(items, $this)]), true);
|
|
2935
2935
|
} else {
|
|
2936
2936
|
if (items instanceof SchemaObject_0) {
|
|
2937
|
-
tmp_1 = new Custom(Common_getInstance().
|
|
2937
|
+
tmp_1 = new Custom(Common_getInstance().z1s([getReference_0(referencingObject, $this), 'Array']), true);
|
|
2938
2938
|
} else {
|
|
2939
2939
|
if (items == null) {
|
|
2940
|
-
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.a1m_1);
|
|
2941
2941
|
throw IllegalStateException_init_$Create$(toString(tmp0_error));
|
|
2942
2942
|
} else {
|
|
2943
2943
|
noWhenBranchMatchedException();
|
|
@@ -2946,7 +2946,7 @@
|
|
|
2946
2946
|
}
|
|
2947
2947
|
tmp_0 = tmp_1;
|
|
2948
2948
|
} else {
|
|
2949
|
-
tmp_0 = new Custom(Common_getInstance().
|
|
2949
|
+
tmp_0 = new Custom(Common_getInstance().z1s([getReference_0(referencingObject, $this)]), false);
|
|
2950
2950
|
}
|
|
2951
2951
|
tmp = tmp_0;
|
|
2952
2952
|
} else {
|
|
@@ -2960,7 +2960,7 @@
|
|
|
2960
2960
|
return tmp$ret$1;
|
|
2961
2961
|
}
|
|
2962
2962
|
function toReference_2(_this__u8e3s4, $this, name) {
|
|
2963
|
-
var type = _this__u8e3s4.
|
|
2963
|
+
var type = _this__u8e3s4.m1m_1;
|
|
2964
2964
|
var tmp0 = type == null ? -1 : type.q4_1;
|
|
2965
2965
|
var tmp;
|
|
2966
2966
|
switch (tmp0) {
|
|
@@ -2972,27 +2972,27 @@
|
|
|
2972
2972
|
break;
|
|
2973
2973
|
case -1:
|
|
2974
2974
|
case 5:
|
|
2975
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2975
|
+
var tmp0_safe_receiver = _this__u8e3s4.t1m_1;
|
|
2976
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.
|
|
2977
|
+
var additionalPropertiesType = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m1m_1;
|
|
2978
2978
|
var tmp0_0 = additionalPropertiesType == null ? -1 : additionalPropertiesType.q4_1;
|
|
2979
2979
|
switch (tmp0_0) {
|
|
2980
2980
|
case 0:
|
|
2981
2981
|
case 2:
|
|
2982
2982
|
case 1:
|
|
2983
2983
|
case 3:
|
|
2984
|
-
tmp = new Primitive(toPrimitive_0(additionalPropertiesType, $this), false, !(_this__u8e3s4.
|
|
2984
|
+
tmp = new Primitive(toPrimitive_0(additionalPropertiesType, $this), false, !(_this__u8e3s4.t1m_1 == null));
|
|
2985
2985
|
break;
|
|
2986
2986
|
default:
|
|
2987
|
-
tmp = new Custom(name, false, !(_this__u8e3s4.
|
|
2987
|
+
tmp = new Custom(name, false, !(_this__u8e3s4.t1m_1 == null));
|
|
2988
2988
|
break;
|
|
2989
2989
|
}
|
|
2990
2990
|
|
|
2991
2991
|
break;
|
|
2992
2992
|
case 4:
|
|
2993
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
2993
|
+
var tmp2_safe_receiver = _this__u8e3s4.r1m_1;
|
|
2994
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.
|
|
2995
|
+
var type_0 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.m1m_1;
|
|
2996
2996
|
var tmp0_1 = type_0 == null ? -1 : type_0.q4_1;
|
|
2997
2997
|
var tmp_0;
|
|
2998
2998
|
switch (tmp0_1) {
|
|
@@ -3003,10 +3003,10 @@
|
|
|
3003
3003
|
tmp_0 = new Primitive(toPrimitive_0(type_0, $this), true);
|
|
3004
3004
|
break;
|
|
3005
3005
|
default:
|
|
3006
|
-
var it = _this__u8e3s4.
|
|
3006
|
+
var it = _this__u8e3s4.r1m_1;
|
|
3007
3007
|
var tmp_1;
|
|
3008
3008
|
if (it instanceof ReferenceObject_0) {
|
|
3009
|
-
tmp_1 = toReference_1(it, $this).
|
|
3009
|
+
tmp_1 = toReference_1(it, $this).fl(VOID, true);
|
|
3010
3010
|
} else {
|
|
3011
3011
|
if (it instanceof SchemaObject_0) {
|
|
3012
3012
|
tmp_1 = toReference_2(it, $this, name);
|
|
@@ -3052,28 +3052,28 @@
|
|
|
3052
3052
|
var tmp;
|
|
3053
3053
|
switch (tmp0) {
|
|
3054
3054
|
case 0:
|
|
3055
|
-
tmp = _this__u8e3s4.
|
|
3055
|
+
tmp = _this__u8e3s4.u1j_1;
|
|
3056
3056
|
break;
|
|
3057
3057
|
case 1:
|
|
3058
|
-
tmp = _this__u8e3s4.
|
|
3058
|
+
tmp = _this__u8e3s4.w1j_1;
|
|
3059
3059
|
break;
|
|
3060
3060
|
case 2:
|
|
3061
|
-
tmp = _this__u8e3s4.
|
|
3061
|
+
tmp = _this__u8e3s4.v1j_1;
|
|
3062
3062
|
break;
|
|
3063
3063
|
case 3:
|
|
3064
|
-
tmp = _this__u8e3s4.
|
|
3064
|
+
tmp = _this__u8e3s4.x1j_1;
|
|
3065
3065
|
break;
|
|
3066
3066
|
case 4:
|
|
3067
|
-
tmp = _this__u8e3s4.
|
|
3067
|
+
tmp = _this__u8e3s4.y1j_1;
|
|
3068
3068
|
break;
|
|
3069
3069
|
case 5:
|
|
3070
|
-
tmp = _this__u8e3s4.
|
|
3070
|
+
tmp = _this__u8e3s4.z1j_1;
|
|
3071
3071
|
break;
|
|
3072
3072
|
case 6:
|
|
3073
|
-
tmp = _this__u8e3s4.
|
|
3073
|
+
tmp = _this__u8e3s4.a1k_1;
|
|
3074
3074
|
break;
|
|
3075
3075
|
case 7:
|
|
3076
|
-
tmp = _this__u8e3s4.
|
|
3076
|
+
tmp = _this__u8e3s4.b1k_1;
|
|
3077
3077
|
break;
|
|
3078
3078
|
default:
|
|
3079
3079
|
noWhenBranchMatchedException();
|
|
@@ -3087,7 +3087,7 @@
|
|
|
3087
3087
|
return filterNotNullValues_0(tmp$ret$2);
|
|
3088
3088
|
}
|
|
3089
3089
|
function getReference_0(_this__u8e3s4, $this) {
|
|
3090
|
-
return split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.
|
|
3090
|
+
return split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.a1m_1), ['/']).h(3);
|
|
3091
3091
|
}
|
|
3092
3092
|
function toPrimitive_0(_this__u8e3s4, $this) {
|
|
3093
3093
|
var tmp0_subject = _this__u8e3s4;
|
|
@@ -3114,15 +3114,15 @@
|
|
|
3114
3114
|
function toField_0(_this__u8e3s4, $this) {
|
|
3115
3115
|
var tmp$ret$1;
|
|
3116
3116
|
// Inline function 'kotlin.let' call
|
|
3117
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3117
|
+
var tmp0_subject = _this__u8e3s4.d1l_1;
|
|
3118
3118
|
var tmp;
|
|
3119
3119
|
if (tmp0_subject instanceof ReferenceObject_0) {
|
|
3120
|
-
var tmp_0 = _this__u8e3s4.
|
|
3120
|
+
var tmp_0 = _this__u8e3s4.d1l_1;
|
|
3121
3121
|
tmp = new Custom(getReference_0(tmp_0 instanceof ReferenceObject_0 ? tmp_0 : THROW_CCE(), $this), false);
|
|
3122
3122
|
} else {
|
|
3123
3123
|
if (tmp0_subject instanceof SchemaObject_0) {
|
|
3124
|
-
var tmp_1 = _this__u8e3s4.
|
|
3125
|
-
var type = (tmp_1 instanceof SchemaObject_0 ? tmp_1 : THROW_CCE()).
|
|
3124
|
+
var tmp_1 = _this__u8e3s4.d1l_1;
|
|
3125
|
+
var type = (tmp_1 instanceof SchemaObject_0 ? tmp_1 : THROW_CCE()).m1m_1;
|
|
3126
3126
|
var tmp0 = type == null ? -1 : type.q4_1;
|
|
3127
3127
|
var tmp_2;
|
|
3128
3128
|
switch (tmp0) {
|
|
@@ -3155,26 +3155,26 @@
|
|
|
3155
3155
|
// Inline function 'kotlin.contracts.contract' call
|
|
3156
3156
|
var tmp$ret$0;
|
|
3157
3157
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
|
|
3158
|
-
var tmp_3 = new Identifier(_this__u8e3s4.
|
|
3159
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
3158
|
+
var tmp_3 = new Identifier(_this__u8e3s4.h1l_1);
|
|
3159
|
+
var tmp0_elvis_lhs = _this__u8e3s4.x1k_1;
|
|
3160
3160
|
tmp$ret$0 = new Field(tmp_3, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
3161
3161
|
tmp$ret$1 = tmp$ret$0;
|
|
3162
3162
|
return tmp$ret$1;
|
|
3163
3163
|
}
|
|
3164
3164
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
3165
|
-
this.
|
|
3166
|
-
this.
|
|
3167
|
-
this.
|
|
3168
|
-
this.
|
|
3165
|
+
this.u1t_1 = path;
|
|
3166
|
+
this.v1t_1 = pathItem;
|
|
3167
|
+
this.w1t_1 = method;
|
|
3168
|
+
this.x1t_1 = operation;
|
|
3169
3169
|
}
|
|
3170
3170
|
protoOf(FlattenRequest_0).toString = function () {
|
|
3171
|
-
return 'FlattenRequest(path=' + new Path_0(this.
|
|
3171
|
+
return 'FlattenRequest(path=' + new Path_0(this.u1t_1) + ', pathItem=' + this.v1t_1 + ', method=' + this.w1t_1 + ', operation=' + this.x1t_1 + ')';
|
|
3172
3172
|
};
|
|
3173
3173
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
3174
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3175
|
-
result = imul(result, 31) + this.t1t_1.hashCode() | 0;
|
|
3176
|
-
result = imul(result, 31) + this.u1t_1.hashCode() | 0;
|
|
3174
|
+
var result = Path__hashCode_impl_go73kd_0(this.u1t_1);
|
|
3177
3175
|
result = imul(result, 31) + this.v1t_1.hashCode() | 0;
|
|
3176
|
+
result = imul(result, 31) + this.w1t_1.hashCode() | 0;
|
|
3177
|
+
result = imul(result, 31) + this.x1t_1.hashCode() | 0;
|
|
3178
3178
|
return result;
|
|
3179
3179
|
};
|
|
3180
3180
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -3183,13 +3183,13 @@
|
|
|
3183
3183
|
if (!(other instanceof FlattenRequest_0))
|
|
3184
3184
|
return false;
|
|
3185
3185
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
3186
|
-
if (!(this.
|
|
3186
|
+
if (!(this.u1t_1 === tmp0_other_with_cast.u1t_1))
|
|
3187
3187
|
return false;
|
|
3188
|
-
if (!this.
|
|
3188
|
+
if (!this.v1t_1.equals(tmp0_other_with_cast.v1t_1))
|
|
3189
3189
|
return false;
|
|
3190
|
-
if (!this.
|
|
3190
|
+
if (!this.w1t_1.equals(tmp0_other_with_cast.w1t_1))
|
|
3191
3191
|
return false;
|
|
3192
|
-
if (!this.
|
|
3192
|
+
if (!this.x1t_1.equals(tmp0_other_with_cast.x1t_1))
|
|
3193
3193
|
return false;
|
|
3194
3194
|
return true;
|
|
3195
3195
|
};
|
|
@@ -3198,7 +3198,7 @@
|
|
|
3198
3198
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3199
3199
|
var tmp$ret$11;
|
|
3200
3200
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3201
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
3201
|
+
var tmp1_flatMap = _this__u8e3s4.g1j_1;
|
|
3202
3202
|
var tmp$ret$10;
|
|
3203
3203
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3204
3204
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -3212,7 +3212,7 @@
|
|
|
3212
3212
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
|
|
3213
3213
|
var tmp$ret$1;
|
|
3214
3214
|
// Inline function 'kotlin.collections.component1' call
|
|
3215
|
-
tmp$ret$1 = element.v().
|
|
3215
|
+
tmp$ret$1 = element.v().o1j_1;
|
|
3216
3216
|
var path = tmp$ret$1;
|
|
3217
3217
|
var tmp$ret$2;
|
|
3218
3218
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3269,23 +3269,23 @@
|
|
|
3269
3269
|
return tmp$ret$14;
|
|
3270
3270
|
}
|
|
3271
3271
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
3272
|
-
this.
|
|
3273
|
-
this.
|
|
3274
|
-
this.
|
|
3275
|
-
this.
|
|
3276
|
-
this.
|
|
3277
|
-
this.
|
|
3272
|
+
this.y1t_1 = path;
|
|
3273
|
+
this.z1t_1 = pathItem;
|
|
3274
|
+
this.a1u_1 = method;
|
|
3275
|
+
this.b1u_1 = operation;
|
|
3276
|
+
this.c1u_1 = statusCode;
|
|
3277
|
+
this.d1u_1 = response;
|
|
3278
3278
|
}
|
|
3279
3279
|
protoOf(FlattenResponse_0).toString = function () {
|
|
3280
|
-
return 'FlattenResponse(path=' + new Path_0(this.
|
|
3280
|
+
return 'FlattenResponse(path=' + new Path_0(this.y1t_1) + ', pathItem=' + this.z1t_1 + ', method=' + this.a1u_1 + ', operation=' + this.b1u_1 + ', statusCode=' + new StatusCode_0(this.c1u_1) + ', response=' + this.d1u_1 + ')';
|
|
3281
3281
|
};
|
|
3282
3282
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
3283
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
3284
|
-
result = imul(result, 31) + this.x1t_1.hashCode() | 0;
|
|
3285
|
-
result = imul(result, 31) + this.y1t_1.hashCode() | 0;
|
|
3283
|
+
var result = Path__hashCode_impl_go73kd_0(this.y1t_1);
|
|
3286
3284
|
result = imul(result, 31) + this.z1t_1.hashCode() | 0;
|
|
3287
|
-
result = imul(result, 31) +
|
|
3288
|
-
result = imul(result, 31) +
|
|
3285
|
+
result = imul(result, 31) + this.a1u_1.hashCode() | 0;
|
|
3286
|
+
result = imul(result, 31) + this.b1u_1.hashCode() | 0;
|
|
3287
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.c1u_1) | 0;
|
|
3288
|
+
result = imul(result, 31) + hashCode(this.d1u_1) | 0;
|
|
3289
3289
|
return result;
|
|
3290
3290
|
};
|
|
3291
3291
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -3294,17 +3294,17 @@
|
|
|
3294
3294
|
if (!(other instanceof FlattenResponse_0))
|
|
3295
3295
|
return false;
|
|
3296
3296
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
3297
|
-
if (!(this.
|
|
3297
|
+
if (!(this.y1t_1 === tmp0_other_with_cast.y1t_1))
|
|
3298
3298
|
return false;
|
|
3299
|
-
if (!this.
|
|
3299
|
+
if (!this.z1t_1.equals(tmp0_other_with_cast.z1t_1))
|
|
3300
3300
|
return false;
|
|
3301
|
-
if (!this.
|
|
3301
|
+
if (!this.a1u_1.equals(tmp0_other_with_cast.a1u_1))
|
|
3302
3302
|
return false;
|
|
3303
|
-
if (!this.
|
|
3303
|
+
if (!this.b1u_1.equals(tmp0_other_with_cast.b1u_1))
|
|
3304
3304
|
return false;
|
|
3305
|
-
if (!(this.
|
|
3305
|
+
if (!(this.c1u_1 === tmp0_other_with_cast.c1u_1))
|
|
3306
3306
|
return false;
|
|
3307
|
-
if (!equals(this.
|
|
3307
|
+
if (!equals(this.d1u_1, tmp0_other_with_cast.d1u_1))
|
|
3308
3308
|
return false;
|
|
3309
3309
|
return true;
|
|
3310
3310
|
};
|
|
@@ -3313,7 +3313,7 @@
|
|
|
3313
3313
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3314
3314
|
var tmp$ret$18;
|
|
3315
3315
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3316
|
-
var tmp1_flatMap = _this__u8e3s4.
|
|
3316
|
+
var tmp1_flatMap = _this__u8e3s4.g1j_1;
|
|
3317
3317
|
var tmp$ret$17;
|
|
3318
3318
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3319
3319
|
var tmp0_flatMapTo = ArrayList_init_$Create$();
|
|
@@ -3327,7 +3327,7 @@
|
|
|
3327
3327
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
|
|
3328
3328
|
var tmp$ret$1;
|
|
3329
3329
|
// Inline function 'kotlin.collections.component1' call
|
|
3330
|
-
tmp$ret$1 = element.v().
|
|
3330
|
+
tmp$ret$1 = element.v().o1j_1;
|
|
3331
3331
|
var path = tmp$ret$1;
|
|
3332
3332
|
var tmp$ret$2;
|
|
3333
3333
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3357,7 +3357,7 @@
|
|
|
3357
3357
|
var operation = tmp$ret$5;
|
|
3358
3358
|
var tmp$ret$12;
|
|
3359
3359
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3360
|
-
var tmp0_safe_receiver = operation.
|
|
3360
|
+
var tmp0_safe_receiver = operation.o1k_1;
|
|
3361
3361
|
var tmp;
|
|
3362
3362
|
if (tmp0_safe_receiver == null) {
|
|
3363
3363
|
tmp = null;
|
|
@@ -3377,7 +3377,7 @@
|
|
|
3377
3377
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
|
|
3378
3378
|
var tmp$ret$7;
|
|
3379
3379
|
// Inline function 'kotlin.collections.component1' call
|
|
3380
|
-
tmp$ret$7 = item.v().
|
|
3380
|
+
tmp$ret$7 = item.v().q1n_1;
|
|
3381
3381
|
var statusCode = tmp$ret$7;
|
|
3382
3382
|
var tmp$ret$8;
|
|
3383
3383
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -3424,16 +3424,16 @@
|
|
|
3424
3424
|
}
|
|
3425
3425
|
function OpenApiParser$parseRequestBody$lambda_0(this$0) {
|
|
3426
3426
|
return function (req) {
|
|
3427
|
-
var parameters = plus(resolveParameters_2(req.
|
|
3428
|
-
var segments = toSegments_0(req.
|
|
3429
|
-
var name = toName_0(req.
|
|
3427
|
+
var parameters = plus(resolveParameters_2(req.v1t_1, this$0), resolveParameters_1(req.x1t_1, this$0));
|
|
3428
|
+
var segments = toSegments_0(req.u1t_1, this$0, parameters);
|
|
3429
|
+
var name = toName_0(req.x1t_1, this$0, segments, req.w1t_1);
|
|
3430
3430
|
var tmp$ret$8;
|
|
3431
3431
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3432
3432
|
var tmp$ret$0;
|
|
3433
3433
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3434
|
-
var tmp0_safe_receiver = req.
|
|
3434
|
+
var tmp0_safe_receiver = req.x1t_1.n1k_1;
|
|
3435
3435
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, this$0);
|
|
3436
|
-
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3436
|
+
var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n1l_1;
|
|
3437
3437
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3438
3438
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3439
3439
|
var tmp2_flatMap = tmp$ret$0;
|
|
@@ -3452,10 +3452,10 @@
|
|
|
3452
3452
|
// Inline function 'kotlin.collections.component2' call
|
|
3453
3453
|
tmp$ret$2 = element.w();
|
|
3454
3454
|
var mediaObject = tmp$ret$2;
|
|
3455
|
-
var schema = mediaObject.
|
|
3455
|
+
var schema = mediaObject.u1l_1;
|
|
3456
3456
|
var tmp;
|
|
3457
3457
|
if (schema instanceof SchemaObject_0) {
|
|
3458
|
-
var tmp0_subject = schema.
|
|
3458
|
+
var tmp0_subject = schema.m1m_1;
|
|
3459
3459
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3460
3460
|
var tmp_0;
|
|
3461
3461
|
switch (tmp0) {
|
|
@@ -3463,7 +3463,7 @@
|
|
|
3463
3463
|
case 5:
|
|
3464
3464
|
var tmp$ret$5;
|
|
3465
3465
|
// Inline function 'kotlin.collections.map' call
|
|
3466
|
-
var tmp1_map = flatten_1(schema, this$0, Common_getInstance().
|
|
3466
|
+
var tmp1_map = flatten_1(schema, this$0, Common_getInstance().z1s([name, 'RequestBody']));
|
|
3467
3467
|
var tmp$ret$4;
|
|
3468
3468
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3469
3469
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -3472,7 +3472,7 @@
|
|
|
3472
3472
|
var item = tmp0_iterator_0.e();
|
|
3473
3473
|
var tmp$ret$3;
|
|
3474
3474
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
3475
|
-
tmp$ret$3 = new Type(item.
|
|
3475
|
+
tmp$ret$3 = new Type(item.s1t_1, new Shape(item.t1t_1));
|
|
3476
3476
|
tmp0_mapTo.a(tmp$ret$3);
|
|
3477
3477
|
}
|
|
3478
3478
|
tmp$ret$4 = tmp0_mapTo;
|
|
@@ -3507,10 +3507,10 @@
|
|
|
3507
3507
|
}
|
|
3508
3508
|
function OpenApiParser$parseResponseBody$lambda_0(this$0) {
|
|
3509
3509
|
return function (res) {
|
|
3510
|
-
var parameters = plus(resolveParameters_2(res.
|
|
3511
|
-
var segments = toSegments_0(res.
|
|
3512
|
-
var name = toName_0(res.
|
|
3513
|
-
var response = res.
|
|
3510
|
+
var parameters = plus(resolveParameters_2(res.z1t_1, this$0), resolveParameters_1(res.b1u_1, this$0));
|
|
3511
|
+
var segments = toSegments_0(res.y1t_1, this$0, parameters);
|
|
3512
|
+
var name = toName_0(res.b1u_1, this$0, segments, res.a1u_1);
|
|
3513
|
+
var response = res.d1u_1;
|
|
3514
3514
|
var tmp;
|
|
3515
3515
|
if (response instanceof ReferenceObject_0) {
|
|
3516
3516
|
tmp = emptyList();
|
|
@@ -3520,7 +3520,7 @@
|
|
|
3520
3520
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3521
3521
|
var tmp$ret$0;
|
|
3522
3522
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3523
|
-
var tmp0_orEmpty = response.
|
|
3523
|
+
var tmp0_orEmpty = response.v1n_1;
|
|
3524
3524
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
3525
3525
|
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
|
|
3526
3526
|
var tmp2_flatMap = tmp$ret$0;
|
|
@@ -3539,10 +3539,10 @@
|
|
|
3539
3539
|
// Inline function 'kotlin.collections.component2' call
|
|
3540
3540
|
tmp$ret$2 = element.w();
|
|
3541
3541
|
var mediaObject = tmp$ret$2;
|
|
3542
|
-
var schema = mediaObject.
|
|
3542
|
+
var schema = mediaObject.u1l_1;
|
|
3543
3543
|
var tmp_0;
|
|
3544
3544
|
if (schema instanceof SchemaObject_0) {
|
|
3545
|
-
var tmp0_subject = schema.
|
|
3545
|
+
var tmp0_subject = schema.m1m_1;
|
|
3546
3546
|
var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
|
|
3547
3547
|
var tmp_1;
|
|
3548
3548
|
switch (tmp0) {
|
|
@@ -3550,10 +3550,10 @@
|
|
|
3550
3550
|
case 5:
|
|
3551
3551
|
var tmp$ret$5;
|
|
3552
3552
|
// Inline function 'kotlin.collections.map' call
|
|
3553
|
-
var tmp1_safe_receiver = schema.
|
|
3553
|
+
var tmp1_safe_receiver = schema.t1m_1;
|
|
3554
3554
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_4(tmp1_safe_receiver, this$0);
|
|
3555
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : flatten_1(tmp2_safe_receiver, this$0, Common_getInstance().
|
|
3556
|
-
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().z1s([name, _StatusCode___get_value__impl__we50mu_0(res.c1u_1), 'ResponseBody']));
|
|
3556
|
+
var tmp1_map = tmp3_elvis_lhs == null ? flatten_1(schema, this$0, Common_getInstance().z1s([name, _StatusCode___get_value__impl__we50mu_0(res.c1u_1), 'ResponseBody'])) : tmp3_elvis_lhs;
|
|
3557
3557
|
var tmp$ret$4;
|
|
3558
3558
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3559
3559
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -3562,7 +3562,7 @@
|
|
|
3562
3562
|
var item = tmp0_iterator_0.e();
|
|
3563
3563
|
var tmp$ret$3;
|
|
3564
3564
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
3565
|
-
tmp$ret$3 = new Type(item.
|
|
3565
|
+
tmp$ret$3 = new Type(item.s1t_1, new Shape(item.t1t_1));
|
|
3566
3566
|
tmp0_mapTo.a(tmp$ret$3);
|
|
3567
3567
|
}
|
|
3568
3568
|
tmp$ret$4 = tmp0_mapTo;
|
|
@@ -3604,10 +3604,10 @@
|
|
|
3604
3604
|
var tmp0_subject = it;
|
|
3605
3605
|
var tmp;
|
|
3606
3606
|
if (tmp0_subject instanceof Literal) {
|
|
3607
|
-
tmp = Common_getInstance().
|
|
3607
|
+
tmp = Common_getInstance().z1s([it.rj_1]);
|
|
3608
3608
|
} else {
|
|
3609
3609
|
if (tmp0_subject instanceof Param) {
|
|
3610
|
-
tmp = Common_getInstance().
|
|
3610
|
+
tmp = Common_getInstance().z1s([it.si_1.dj_1]);
|
|
3611
3611
|
} else {
|
|
3612
3612
|
noWhenBranchMatchedException();
|
|
3613
3613
|
}
|
|
@@ -3616,7 +3616,7 @@
|
|
|
3616
3616
|
}
|
|
3617
3617
|
function OpenApiParser_0(openApi) {
|
|
3618
3618
|
Companion_getInstance_1();
|
|
3619
|
-
this.
|
|
3619
|
+
this.r1t_1 = openApi;
|
|
3620
3620
|
}
|
|
3621
3621
|
function filterNotNullValues_0(_this__u8e3s4) {
|
|
3622
3622
|
var tmp$ret$8;
|