@flock/wirespec 0.6.3 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/kotlin/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js +336 -336
  2. package/kotlin/arrow-arrow-atomic.js +4 -4
  3. package/kotlin/arrow-arrow-continuations.js +3 -3
  4. package/kotlin/arrow-arrow-core.js +17 -17
  5. package/kotlin/kotlin-kotlin-stdlib-js-ir.js +195 -180
  6. package/kotlin/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
  7. package/kotlin/kotlin-openapi-bindings.js +3461 -3461
  8. package/kotlin/kotlin-openapi-bindings.js.map +1 -1
  9. package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1406 -1376
  10. package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
  11. package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1155 -1146
  12. package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
  13. package/kotlin/wirespec-cli.js +124 -124
  14. package/kotlin/wirespec-core.js +376 -305
  15. package/kotlin/wirespec-core.js.map +1 -1
  16. package/kotlin/wirespec-lib.js +53 -53
  17. package/kotlin/wirespec-openapi.js +1489 -1182
  18. package/kotlin/wirespec-openapi.js.map +1 -1
  19. package/package.json +1 -1
  20. package/sync-hashes/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.hash +1 -1
  21. package/sync-hashes/arrow-arrow-atomic.js.hash +1 -1
  22. package/sync-hashes/arrow-arrow-continuations.js.hash +1 -1
  23. package/sync-hashes/arrow-arrow-core.js.hash +1 -1
  24. package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.hash +1 -1
  25. package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.map.hash +1 -1
  26. package/sync-hashes/kotlin-openapi-bindings.js.hash +1 -1
  27. package/sync-hashes/kotlin-openapi-bindings.js.map.hash +1 -1
  28. package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +1 -1
  29. package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +1 -1
  30. package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +1 -1
  31. package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map.hash +1 -1
  32. package/sync-hashes/wirespec-cli.js.hash +1 -1
  33. package/sync-hashes/wirespec-core.js.hash +1 -1
  34. package/sync-hashes/wirespec-core.js.map.hash +1 -1
  35. package/sync-hashes/wirespec-lib.js.hash +1 -1
  36. package/sync-hashes/wirespec-openapi.js.hash +1 -1
  37. package/sync-hashes/wirespec-openapi.js.map.hash +1 -1
@@ -1,8 +1,8 @@
1
1
  (function (root, factory) {
2
2
  if (typeof define === 'function' && define.amd)
3
- define(['exports', './wirespec-core.js', './kotlin-kotlin-stdlib-js-ir.js', './kotlin-openapi-bindings.js'], factory);
3
+ define(['exports', './wirespec-core.js', './kotlin-kotlin-stdlib-js-ir.js', './kotlin-openapi-bindings.js', './kotlinx-serialization-kotlinx-serialization-json-js-ir.js'], factory);
4
4
  else if (typeof exports === 'object')
5
- factory(module.exports, require('./wirespec-core.js'), require('./kotlin-kotlin-stdlib-js-ir.js'), require('./kotlin-openapi-bindings.js'));
5
+ factory(module.exports, require('./wirespec-core.js'), require('./kotlin-kotlin-stdlib-js-ir.js'), require('./kotlin-openapi-bindings.js'), require('./kotlinx-serialization-kotlinx-serialization-json-js-ir.js'));
6
6
  else {
7
7
  if (typeof this['wirespec-core'] === 'undefined') {
8
8
  throw new Error("Error loading module 'wirespec-openapi'. Its dependency 'wirespec-core' was not found. Please, check whether 'wirespec-core' is loaded prior to 'wirespec-openapi'.");
@@ -13,81 +13,92 @@
13
13
  if (typeof this['kotlin-openapi-bindings'] === 'undefined') {
14
14
  throw new Error("Error loading module 'wirespec-openapi'. Its dependency 'kotlin-openapi-bindings' was not found. Please, check whether 'kotlin-openapi-bindings' is loaded prior to 'wirespec-openapi'.");
15
15
  }
16
- root['wirespec-openapi'] = factory(typeof this['wirespec-openapi'] === 'undefined' ? {} : this['wirespec-openapi'], this['wirespec-core'], this['kotlin-kotlin-stdlib-js-ir'], this['kotlin-openapi-bindings']);
16
+ if (typeof this['kotlinx-serialization-kotlinx-serialization-json-js-ir'] === 'undefined') {
17
+ throw new Error("Error loading module 'wirespec-openapi'. Its dependency 'kotlinx-serialization-kotlinx-serialization-json-js-ir' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-json-js-ir' is loaded prior to 'wirespec-openapi'.");
18
+ }
19
+ root['wirespec-openapi'] = factory(typeof this['wirespec-openapi'] === 'undefined' ? {} : this['wirespec-openapi'], this['wirespec-core'], this['kotlin-kotlin-stdlib-js-ir'], this['kotlin-openapi-bindings'], this['kotlinx-serialization-kotlinx-serialization-json-js-ir']);
17
20
  }
18
- }(this, function (_, kotlin_community_flock_wirespec_compiler_core, kotlin_kotlin, kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings) {
21
+ }(this, function (_, kotlin_community_flock_wirespec_compiler_core, kotlin_kotlin, kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json) {
19
22
  'use strict';
20
23
  //region block: imports
21
24
  var imul = Math.imul;
22
- var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.a1;
25
+ var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.c1;
23
26
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
24
- var split = kotlin_kotlin.$_$.v8;
27
+ var split = kotlin_kotlin.$_$.x8;
25
28
  var Unit_getInstance = kotlin_kotlin.$_$.i3;
26
29
  var addAll = kotlin_kotlin.$_$.z3;
27
- var VOID = kotlin_kotlin.$_$.xa;
28
- var joinToString = kotlin_kotlin.$_$.a5;
29
- var protoOf = kotlin_kotlin.$_$.s7;
30
- var objectMeta = kotlin_kotlin.$_$.r7;
31
- var setMetadataFor = kotlin_kotlin.$_$.t7;
30
+ var VOID = kotlin_kotlin.$_$.za;
31
+ var joinToString = kotlin_kotlin.$_$.b5;
32
+ var protoOf = kotlin_kotlin.$_$.t7;
33
+ var objectMeta = kotlin_kotlin.$_$.s7;
34
+ var setMetadataFor = kotlin_kotlin.$_$.u7;
32
35
  var Default_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i1;
33
- var plus = kotlin_kotlin.$_$.o5;
36
+ var plus = kotlin_kotlin.$_$.p5;
34
37
  var ParameterLocation_QUERY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t;
35
38
  var collectionSizeOrDefault = kotlin_kotlin.$_$.c4;
36
39
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.f;
37
40
  var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s;
38
41
  var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r;
39
42
  var emptyList = kotlin_kotlin.$_$.r4;
40
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.sa;
41
- var NotImplementedError = kotlin_kotlin.$_$.t9;
43
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.ua;
44
+ var NotImplementedError = kotlin_kotlin.$_$.v9;
42
45
  var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
43
46
  var ReferenceObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d;
44
47
  var Content = kotlin_community_flock_wirespec_compiler_core.$_$.g;
45
48
  var Request = kotlin_community_flock_wirespec_compiler_core.$_$.i;
46
- var listOf = kotlin_kotlin.$_$.h5;
49
+ var listOf = kotlin_kotlin.$_$.i5;
47
50
  var emptyMap = kotlin_kotlin.$_$.s4;
48
51
  var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b1;
49
52
  var Response = kotlin_community_flock_wirespec_compiler_core.$_$.j;
50
53
  var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.m;
51
- var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.s;
52
- var Type = kotlin_community_flock_wirespec_compiler_core.$_$.t;
54
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.p;
53
55
  var ParameterObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b;
54
56
  var Ref = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e;
55
- var toString = kotlin_kotlin.$_$.x7;
57
+ var toString = kotlin_kotlin.$_$.y7;
56
58
  var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.e1;
57
- var to = kotlin_kotlin.$_$.wa;
59
+ var to = kotlin_kotlin.$_$.ya;
58
60
  var BooleanObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a;
59
61
  var ResponseObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f;
60
- var Identifier = kotlin_community_flock_wirespec_compiler_core.$_$.o;
61
- var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.p;
62
- var contains = kotlin_kotlin.$_$.d4;
63
- var Field = kotlin_community_flock_wirespec_compiler_core.$_$.r;
64
- var getStringHashCode = kotlin_kotlin.$_$.w6;
65
- var hashCode = kotlin_kotlin.$_$.x6;
66
- var THROW_CCE = kotlin_kotlin.$_$.x9;
67
- var equals = kotlin_kotlin.$_$.r6;
68
- var classMeta = kotlin_kotlin.$_$.p6;
69
- var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.q;
62
+ var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.u;
63
+ var Type = kotlin_community_flock_wirespec_compiler_core.$_$.v;
64
+ var ensureNotNull = kotlin_kotlin.$_$.oa;
65
+ var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.e;
66
+ var JsonArray = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
67
+ var JsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.f;
68
+ var toSet = kotlin_kotlin.$_$.b6;
69
+ var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.n;
70
+ var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.r;
71
+ var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.s;
72
+ var Any = kotlin_community_flock_wirespec_compiler_core.$_$.q;
70
73
  var values = kotlin_community_flock_wirespec_compiler_core.$_$.h;
71
- var mapCapacity = kotlin_kotlin.$_$.j5;
72
- var coerceAtLeast = kotlin_kotlin.$_$.y7;
73
- var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.o;
74
+ var mapCapacity = kotlin_kotlin.$_$.k5;
75
+ var coerceAtLeast = kotlin_kotlin.$_$.z7;
76
+ var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.o;
74
77
  var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.z;
75
- var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.z;
76
- var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.y;
77
- var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.x;
78
+ var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.b1;
79
+ var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.a1;
80
+ var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.z;
81
+ var Identifier = kotlin_community_flock_wirespec_compiler_core.$_$.p;
82
+ var contains = kotlin_kotlin.$_$.d4;
83
+ var Field = kotlin_community_flock_wirespec_compiler_core.$_$.t;
78
84
  var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y;
79
85
  var drop = kotlin_kotlin.$_$.q4;
80
- var charSequenceLength = kotlin_kotlin.$_$.n6;
81
- var charSequenceGet = kotlin_kotlin.$_$.m6;
82
- var Char = kotlin_kotlin.$_$.l9;
86
+ var charSequenceLength = kotlin_kotlin.$_$.o6;
87
+ var charSequenceGet = kotlin_kotlin.$_$.n6;
88
+ var Char = kotlin_kotlin.$_$.n9;
83
89
  var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.i1;
90
+ var equals = kotlin_kotlin.$_$.s6;
84
91
  var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.k;
85
92
  var Param = kotlin_community_flock_wirespec_compiler_core.$_$.l;
86
93
  var Path = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c;
87
94
  var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.x;
95
+ var getStringHashCode = kotlin_kotlin.$_$.x6;
96
+ var THROW_CCE = kotlin_kotlin.$_$.z9;
97
+ var classMeta = kotlin_kotlin.$_$.q6;
88
98
  var StatusCode = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h;
89
99
  var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a1;
90
- var toMap = kotlin_kotlin.$_$.z5;
100
+ var hashCode = kotlin_kotlin.$_$.y6;
101
+ var toMap = kotlin_kotlin.$_$.a6;
91
102
  var Default_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j1;
92
103
  var ParameterLocation_QUERY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w;
93
104
  var ParameterLocation_HEADER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v;
@@ -103,6 +114,7 @@
103
114
  var ResponseObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o;
104
115
  var BooleanObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i;
105
116
  var _Ref___get_value__impl__kxavfe_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f1;
117
+ var getOrNull = kotlin_kotlin.$_$.x4;
106
118
  var Path_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k;
107
119
  var Path__hashCode_impl_go73kd_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d1;
108
120
  var StatusCode_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.q;
@@ -111,12 +123,10 @@
111
123
  //region block: pre-declaration
112
124
  setMetadataFor(Common, 'Common', objectMeta);
113
125
  setMetadataFor(Companion, 'Companion', objectMeta);
114
- setMetadataFor(SimpleSchema, 'SimpleSchema', classMeta);
115
126
  setMetadataFor(FlattenRequest, 'FlattenRequest', classMeta);
116
127
  setMetadataFor(FlattenResponse, 'FlattenResponse', classMeta);
117
128
  setMetadataFor(OpenApiParser, 'OpenApiParser', classMeta);
118
129
  setMetadataFor(Companion_0, 'Companion', objectMeta);
119
- setMetadataFor(SimpleSchema_0, 'SimpleSchema', classMeta);
120
130
  setMetadataFor(FlattenRequest_0, 'FlattenRequest', classMeta);
121
131
  setMetadataFor(FlattenResponse_0, 'FlattenResponse', classMeta);
122
132
  setMetadataFor(OpenApiParser_0, 'OpenApiParser', classMeta);
@@ -127,7 +137,7 @@
127
137
  function Common() {
128
138
  Common_instance = this;
129
139
  }
130
- protoOf(Common).z1s = function (arg) {
140
+ protoOf(Common).f1t = function (arg) {
131
141
  var tmp$ret$2;
132
142
  // Inline function 'kotlin.collections.flatMap' call
133
143
  var tmp$ret$1;
@@ -159,14 +169,14 @@
159
169
  function Companion() {
160
170
  Companion_instance = this;
161
171
  }
162
- protoOf(Companion).a1t = function (json) {
172
+ protoOf(Companion).g1t = function (json) {
163
173
  var tmp$ret$1;
164
174
  // Inline function 'kotlin.let' call
165
- var tmp0_let = Default_getInstance().g1a(json);
175
+ var tmp0_let = Default_getInstance().m1a(json);
166
176
  // Inline function 'kotlin.contracts.contract' call
167
177
  var tmp$ret$0;
168
178
  // Inline function 'community.flock.wirespec.openapi.v2.Companion.parse.<anonymous>' call
169
- tmp$ret$0 = (new OpenApiParser(tmp0_let)).c1t();
179
+ tmp$ret$0 = (new OpenApiParser(tmp0_let)).i1t();
170
180
  tmp$ret$1 = tmp$ret$0;
171
181
  return tmp$ret$1;
172
182
  };
@@ -179,7 +189,7 @@
179
189
  function parseEndpoints($this) {
180
190
  var tmp$ret$48;
181
191
  // Inline function 'kotlin.collections.flatMap' call
182
- var tmp1_flatMap = $this.b1t_1.q1a_1;
192
+ var tmp1_flatMap = $this.h1t_1.w1a_1;
183
193
  var tmp$ret$47;
184
194
  // Inline function 'kotlin.collections.flatMapTo' call
185
195
  var tmp0_flatMapTo = ArrayList_init_$Create$();
@@ -193,7 +203,7 @@
193
203
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>' call
194
204
  var tmp$ret$1;
195
205
  // Inline function 'kotlin.collections.component1' call
196
- tmp$ret$1 = element.v().b1b_1;
206
+ tmp$ret$1 = element.v().h1b_1;
197
207
  var path = tmp$ret$1;
198
208
  var tmp$ret$2;
199
209
  // Inline function 'kotlin.collections.component2' call
@@ -236,7 +246,7 @@
236
246
  var element_1 = tmp0_iterator_1.e();
237
247
  var tmp$ret$6;
238
248
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
239
- tmp$ret$6 = element_1.l1c_1.equals(ParameterLocation_QUERY_getInstance());
249
+ tmp$ret$6 = element_1.r1c_1.equals(ParameterLocation_QUERY_getInstance());
240
250
  if (tmp$ret$6) {
241
251
  tmp0_filterTo.a(element_1);
242
252
  }
@@ -252,7 +262,7 @@
252
262
  var item = tmp0_iterator_2.e();
253
263
  var tmp$ret$9;
254
264
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
255
- tmp$ret$9 = toField(item, $this);
265
+ tmp$ret$9 = toField_0(item, $this);
256
266
  tmp1_mapTo.a(tmp$ret$9);
257
267
  }
258
268
  tmp$ret$10 = tmp1_mapTo;
@@ -270,7 +280,7 @@
270
280
  var element_2 = tmp0_iterator_3.e();
271
281
  var tmp$ret$12;
272
282
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
273
- tmp$ret$12 = element_2.l1c_1.equals(ParameterLocation_HEADER_getInstance());
283
+ tmp$ret$12 = element_2.r1c_1.equals(ParameterLocation_HEADER_getInstance());
274
284
  if (tmp$ret$12) {
275
285
  tmp3_filterTo.a(element_2);
276
286
  }
@@ -286,7 +296,7 @@
286
296
  var item_0 = tmp0_iterator_4.e();
287
297
  var tmp$ret$15;
288
298
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
289
- tmp$ret$15 = toField(item_0, $this);
299
+ tmp$ret$15 = toField_0(item_0, $this);
290
300
  tmp4_mapTo.a(tmp$ret$15);
291
301
  }
292
302
  tmp$ret$16 = tmp4_mapTo;
@@ -306,7 +316,7 @@
306
316
  var element_3 = tmp0_iterator_5.e();
307
317
  var tmp$ret$18;
308
318
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
309
- tmp$ret$18 = element_3.l1c_1.equals(ParameterLocation_BODY_getInstance());
319
+ tmp$ret$18 = element_3.r1c_1.equals(ParameterLocation_BODY_getInstance());
310
320
  if (tmp$ret$18) {
311
321
  tmp6_filterTo.a(element_3);
312
322
  }
@@ -326,8 +336,8 @@
326
336
  // Inline function 'kotlin.collections.map' call
327
337
  var tmp$ret$21;
328
338
  // Inline function 'kotlin.collections.orEmpty' call
329
- var tmp0_elvis_lhs = $this.b1t_1.o1a_1;
330
- var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.z1b_1 : tmp0_elvis_lhs;
339
+ var tmp0_elvis_lhs = $this.h1t_1.u1a_1;
340
+ var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.f1c_1 : tmp0_elvis_lhs;
331
341
  var tmp0_elvis_lhs_0 = tmp0_orEmpty;
332
342
  tmp$ret$21 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
333
343
  var tmp2_map_0 = tmp$ret$21;
@@ -339,13 +349,13 @@
339
349
  var item_1 = tmp0_iterator_7.e();
340
350
  var tmp$ret$22;
341
351
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
342
- var schema = element_4.o1c_1;
352
+ var schema = element_4.u1c_1;
343
353
  var tmp;
344
354
  if (schema instanceof ReferenceObject) {
345
355
  tmp = toReference(schema, $this);
346
356
  } else {
347
357
  if (schema instanceof SchemaObject) {
348
- tmp = toReference_0(schema, $this, Common_getInstance().z1s([name, 'RequestBody']));
358
+ tmp = toReference_0(schema, $this, Common_getInstance().f1t([name, 'RequestBody']));
349
359
  } else {
350
360
  if (schema == null) {
351
361
  throw new NotImplementedError();
@@ -355,7 +365,7 @@
355
365
  }
356
366
  }
357
367
  var tmp_0 = tmp;
358
- var tmp0_elvis_lhs_1 = element_4.n1c_1;
368
+ var tmp0_elvis_lhs_1 = element_4.t1c_1;
359
369
  tmp$ret$22 = new Request(new Content(item_1, tmp_0, tmp0_elvis_lhs_1 == null ? false : tmp0_elvis_lhs_1));
360
370
  tmp1_mapTo_0.a(tmp$ret$22);
361
371
  }
@@ -383,7 +393,7 @@
383
393
  // Inline function 'kotlin.collections.flatMap' call
384
394
  var tmp$ret$30;
385
395
  // Inline function 'kotlin.collections.orEmpty' call
386
- var tmp10_orEmpty = operation.c1c_1;
396
+ var tmp10_orEmpty = operation.i1c_1;
387
397
  var tmp0_elvis_lhs_2 = tmp10_orEmpty;
388
398
  tmp$ret$30 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
389
399
  var tmp12_flatMap = tmp$ret$30;
@@ -400,7 +410,7 @@
400
410
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
401
411
  var tmp$ret$32;
402
412
  // Inline function 'kotlin.collections.component1' call
403
- tmp$ret$32 = element_5.v().u1e_1;
413
+ tmp$ret$32 = element_5.v().a1f_1;
404
414
  var status = tmp$ret$32;
405
415
  var tmp$ret$33;
406
416
  // Inline function 'kotlin.collections.component2' call
@@ -410,8 +420,8 @@
410
420
  // Inline function 'kotlin.collections.map' call
411
421
  var tmp$ret$34;
412
422
  // Inline function 'kotlin.collections.orEmpty' call
413
- var tmp0_elvis_lhs_3 = $this.b1t_1.p1a_1;
414
- var tmp0_orEmpty_0 = tmp0_elvis_lhs_3 == null ? operation.a1c_1 : tmp0_elvis_lhs_3;
423
+ var tmp0_elvis_lhs_3 = $this.h1t_1.v1a_1;
424
+ var tmp0_orEmpty_0 = tmp0_elvis_lhs_3 == null ? operation.g1c_1 : tmp0_elvis_lhs_3;
415
425
  var tmp0_elvis_lhs_4 = tmp0_orEmpty_0;
416
426
  tmp$ret$34 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
417
427
  var tmp2_map_1 = tmp$ret$34;
@@ -424,7 +434,7 @@
424
434
  var tmp$ret$37;
425
435
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
426
436
  var tmp_2 = _StatusCode___get_value__impl__we50mu(status);
427
- var tmp0_safe_receiver = resolve_1(res, $this).y1e_1;
437
+ var tmp0_safe_receiver = resolve_1(res, $this).e1f_1;
428
438
  var tmp_3;
429
439
  if (tmp0_safe_receiver == null) {
430
440
  tmp_3 = null;
@@ -440,7 +450,7 @@
440
450
  tmp_4 = toReference(tmp0_safe_receiver, $this);
441
451
  } else {
442
452
  if (tmp0_subject instanceof SchemaObject) {
443
- tmp_4 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().z1s([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']));
453
+ tmp_4 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().f1t([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']));
444
454
  } else {
445
455
  noWhenBranchMatchedException();
446
456
  }
@@ -476,69 +486,66 @@
476
486
  return tmp$ret$48;
477
487
  }
478
488
  function parseRequestBody($this) {
479
- return flatMapRequests($this.b1t_1, $this, OpenApiParser$parseRequestBody$lambda($this));
489
+ return flatMapRequests($this.h1t_1, $this, OpenApiParser$parseRequestBody$lambda($this));
480
490
  }
481
491
  function parseResponseBody($this) {
482
- return flatMapResponses($this.b1t_1, $this, OpenApiParser$parseResponseBody$lambda($this));
492
+ return flatMapResponses($this.h1t_1, $this, OpenApiParser$parseResponseBody$lambda($this));
483
493
  }
484
494
  function parseDefinitions($this) {
485
- var tmp0_safe_receiver = $this.b1t_1.r1a_1;
486
- var tmp;
487
- if (tmp0_safe_receiver == null) {
488
- tmp = null;
489
- } else {
490
- var tmp$ret$3;
491
- // Inline function 'kotlin.collections.flatMap' call
495
+ var tmp$ret$8;
496
+ // Inline function 'kotlin.collections.flatMap' call
497
+ var tmp$ret$4;
498
+ // Inline function 'kotlin.collections.filter' call
499
+ var tmp$ret$0;
500
+ // Inline function 'kotlin.collections.orEmpty' call
501
+ var tmp0_orEmpty = $this.h1t_1.x1a_1;
502
+ var tmp0_elvis_lhs = tmp0_orEmpty;
503
+ tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
504
+ var tmp2_filter = tmp$ret$0;
505
+ var tmp$ret$3;
506
+ // Inline function 'kotlin.collections.filterTo' call
507
+ var tmp1_filterTo = LinkedHashMap_init_$Create$();
508
+ var tmp$ret$1;
509
+ // Inline function 'kotlin.collections.iterator' call
510
+ tmp$ret$1 = tmp2_filter.u().c();
511
+ var tmp0_iterator = tmp$ret$1;
512
+ while (tmp0_iterator.d()) {
513
+ var element = tmp0_iterator.e();
492
514
  var tmp$ret$2;
493
- // Inline function 'kotlin.collections.flatMapTo' call
494
- var tmp0_flatMapTo = ArrayList_init_$Create$();
495
- var tmp$ret$0;
496
- // Inline function 'kotlin.collections.iterator' call
497
- tmp$ret$0 = tmp0_safe_receiver.u().c();
498
- var tmp0_iterator = tmp$ret$0;
499
- while (tmp0_iterator.d()) {
500
- var element = tmp0_iterator.e();
501
- var tmp$ret$1;
502
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
503
- tmp$ret$1 = flatten(element.w(), $this, Common_getInstance().z1s([element.v()]));
504
- var list = tmp$ret$1;
505
- addAll(tmp0_flatMapTo, list);
515
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
516
+ tmp$ret$2 = element.w().w1e_1 == null;
517
+ if (tmp$ret$2) {
518
+ tmp1_filterTo.k3(element.v(), element.w());
506
519
  }
507
- tmp$ret$2 = tmp0_flatMapTo;
508
- tmp$ret$3 = tmp$ret$2;
509
- tmp = tmp$ret$3;
510
520
  }
511
- var tmp1_safe_receiver = tmp;
512
- var tmp_0;
513
- if (tmp1_safe_receiver == null) {
514
- tmp_0 = null;
515
- } else {
521
+ tmp$ret$3 = tmp1_filterTo;
522
+ tmp$ret$4 = tmp$ret$3;
523
+ var tmp4_flatMap = tmp$ret$4;
524
+ var tmp$ret$7;
525
+ // Inline function 'kotlin.collections.flatMapTo' call
526
+ var tmp3_flatMapTo = ArrayList_init_$Create$();
527
+ var tmp$ret$5;
528
+ // Inline function 'kotlin.collections.iterator' call
529
+ tmp$ret$5 = tmp4_flatMap.u().c();
530
+ var tmp0_iterator_0 = tmp$ret$5;
531
+ while (tmp0_iterator_0.d()) {
532
+ var element_0 = tmp0_iterator_0.e();
516
533
  var tmp$ret$6;
517
- // Inline function 'kotlin.collections.map' call
518
- var tmp$ret$5;
519
- // Inline function 'kotlin.collections.mapTo' call
520
- var tmp1_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_safe_receiver, 10));
521
- var tmp0_iterator_0 = tmp1_safe_receiver.c();
522
- while (tmp0_iterator_0.d()) {
523
- var item = tmp0_iterator_0.e();
524
- var tmp$ret$4;
525
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
526
- tmp$ret$4 = new Type(item.d1t_1, new Shape(item.e1t_1));
527
- tmp1_mapTo.a(tmp$ret$4);
528
- }
529
- tmp$ret$5 = tmp1_mapTo;
530
- tmp$ret$6 = tmp$ret$5;
531
- tmp_0 = tmp$ret$6;
534
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
535
+ tmp$ret$6 = flatten(element_0.w(), $this, Common_getInstance().f1t([element_0.v()]));
536
+ var list = tmp$ret$6;
537
+ addAll(tmp3_flatMapTo, list);
532
538
  }
533
- var tmp2_elvis_lhs = tmp_0;
534
- return tmp2_elvis_lhs == null ? emptyList() : tmp2_elvis_lhs;
539
+ tmp$ret$7 = tmp3_flatMapTo;
540
+ tmp$ret$8 = tmp$ret$7;
541
+ return tmp$ret$8;
535
542
  }
536
543
  function resolveParameters(_this__u8e3s4, $this) {
537
544
  var tmp$ret$3;
538
545
  // Inline function 'kotlin.collections.map' call
539
546
  var tmp$ret$0;
540
547
  // Inline function 'kotlin.collections.orEmpty' call
541
- var tmp0_orEmpty = _this__u8e3s4.b1c_1;
548
+ var tmp0_orEmpty = _this__u8e3s4.h1c_1;
542
549
  var tmp0_elvis_lhs = tmp0_orEmpty;
543
550
  tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
544
551
  var tmp2_map = tmp$ret$0;
@@ -573,7 +580,7 @@
573
580
  // Inline function 'kotlin.collections.map' call
574
581
  var tmp$ret$0;
575
582
  // Inline function 'kotlin.collections.orEmpty' call
576
- var tmp0_orEmpty = _this__u8e3s4.q1b_1;
583
+ var tmp0_orEmpty = _this__u8e3s4.w1b_1;
577
584
  var tmp0_elvis_lhs = tmp0_orEmpty;
578
585
  tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
579
586
  var tmp2_map = tmp$ret$0;
@@ -604,11 +611,11 @@
604
611
  return tmp$ret$3;
605
612
  }
606
613
  function resolveParameterObject(_this__u8e3s4, $this) {
607
- var tmp0_safe_receiver = $this.b1t_1.s1a_1;
614
+ var tmp0_safe_receiver = $this.h1t_1.y1a_1;
608
615
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
609
616
  var tmp;
610
617
  if (tmp1_elvis_lhs == null) {
611
- var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.k1d_1);
618
+ var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.q1d_1);
612
619
  throw IllegalStateException_init_$Create$(toString(tmp0_error));
613
620
  } else {
614
621
  tmp = tmp1_elvis_lhs;
@@ -616,11 +623,11 @@
616
623
  return tmp;
617
624
  }
618
625
  function resolveResponseObject(_this__u8e3s4, $this) {
619
- var tmp0_safe_receiver = $this.b1t_1.t1a_1;
626
+ var tmp0_safe_receiver = $this.h1t_1.z1a_1;
620
627
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
621
628
  var tmp;
622
629
  if (tmp1_elvis_lhs == null) {
623
- var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.k1d_1);
630
+ var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.q1d_1);
624
631
  throw IllegalStateException_init_$Create$(toString(tmp0_error));
625
632
  } else {
626
633
  tmp = tmp1_elvis_lhs;
@@ -628,7 +635,7 @@
628
635
  return tmp;
629
636
  }
630
637
  function resolveSchemaObject(_this__u8e3s4, $this) {
631
- var tmp0_safe_receiver = $this.b1t_1.r1a_1;
638
+ var tmp0_safe_receiver = $this.h1t_1.x1a_1;
632
639
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
633
640
  var tmp;
634
641
  if (tmp1_safe_receiver == null) {
@@ -646,7 +653,7 @@
646
653
  var tmp2_elvis_lhs = tmp;
647
654
  var tmp_0;
648
655
  if (tmp2_elvis_lhs == null) {
649
- var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.k1d_1);
656
+ var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.q1d_1);
650
657
  throw IllegalStateException_init_$Create$(toString(tmp0_error));
651
658
  } else {
652
659
  tmp_0 = tmp2_elvis_lhs;
@@ -714,160 +721,241 @@
714
721
  return tmp;
715
722
  }
716
723
  function flatten(_this__u8e3s4, $this, name) {
717
- var tmp0_subject = _this__u8e3s4.m1e_1;
718
- var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
719
724
  var tmp;
720
- switch (tmp0) {
721
- case -1:
722
- case 5:
723
- var tmp1_safe_receiver = _this__u8e3s4.p1e_1;
724
- var tmp_0;
725
- if (tmp1_safe_receiver == null) {
726
- tmp_0 = null;
725
+ if (!(_this__u8e3s4.w1e_1 == null)) {
726
+ var tmp0_subject = _this__u8e3s4.w1e_1;
727
+ var tmp_0;
728
+ if (tmp0_subject instanceof BooleanObject) {
729
+ tmp_0 = emptyList();
730
+ } else {
731
+ tmp_0 = flatten(resolve_0(ensureNotNull(_this__u8e3s4.w1e_1), $this), $this, name);
732
+ }
733
+ tmp = tmp_0;
734
+ } else if (!(_this__u8e3s4.u1e_1 == null)) {
735
+ var tmp$ret$3;
736
+ // Inline function 'kotlin.collections.flatMap' call
737
+ var tmp$ret$0;
738
+ // Inline function 'kotlin.collections.orEmpty' call
739
+ var tmp0_orEmpty = _this__u8e3s4.u1e_1;
740
+ var tmp0_elvis_lhs = tmp0_orEmpty;
741
+ tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
742
+ var tmp2_flatMap = tmp$ret$0;
743
+ var tmp$ret$2;
744
+ // Inline function 'kotlin.collections.flatMapTo' call
745
+ var tmp1_flatMapTo = ArrayList_init_$Create$();
746
+ var tmp0_iterator = tmp2_flatMap.c();
747
+ while (tmp0_iterator.d()) {
748
+ var element = tmp0_iterator.e();
749
+ var tmp$ret$1;
750
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
751
+ tmp$ret$1 = toField(resolve(element, $this), $this, name);
752
+ var list = tmp$ret$1;
753
+ addAll(tmp1_flatMapTo, list);
754
+ }
755
+ tmp$ret$2 = tmp1_flatMapTo;
756
+ tmp$ret$3 = tmp$ret$2;
757
+ var tmp_1 = listOf(new Type(name, new Shape(tmp$ret$3)));
758
+ var tmp$ret$13;
759
+ // Inline function 'kotlin.collections.flatMap' call
760
+ var tmp4_flatMap = ensureNotNull(_this__u8e3s4.u1e_1);
761
+ var tmp$ret$12;
762
+ // Inline function 'kotlin.collections.flatMapTo' call
763
+ var tmp3_flatMapTo = ArrayList_init_$Create$();
764
+ var tmp0_iterator_0 = tmp4_flatMap.c();
765
+ while (tmp0_iterator_0.d()) {
766
+ var element_0 = tmp0_iterator_0.e();
767
+ var tmp$ret$11;
768
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
769
+ var tmp0_subject_0 = element_0;
770
+ var tmp_2;
771
+ if (tmp0_subject_0 instanceof ReferenceObject) {
772
+ tmp_2 = emptyList();
727
773
  } else {
728
- var tmp$ret$5;
729
- // Inline function 'kotlin.collections.flatMap' call
730
- var tmp$ret$4;
731
- // Inline function 'kotlin.collections.flatMapTo' call
732
- var tmp0_flatMapTo = ArrayList_init_$Create$();
733
- var tmp$ret$0;
734
- // Inline function 'kotlin.collections.iterator' call
735
- tmp$ret$0 = tmp1_safe_receiver.u().c();
736
- var tmp0_iterator = tmp$ret$0;
737
- while (tmp0_iterator.d()) {
738
- var element = tmp0_iterator.e();
739
- var tmp$ret$3;
740
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
741
- var tmp$ret$1;
742
- // Inline function 'kotlin.collections.component1' call
743
- tmp$ret$1 = element.v();
744
- var key = tmp$ret$1;
745
- var tmp$ret$2;
746
- // Inline function 'kotlin.collections.component2' call
747
- tmp$ret$2 = element.w();
748
- var value = tmp$ret$2;
749
- var tmp0_subject_0 = value;
750
- var tmp_1;
751
- if (tmp0_subject_0 instanceof SchemaObject) {
752
- var tmp1_subject = value.m1e_1;
753
- var tmp0_0 = tmp1_subject == null ? -1 : tmp1_subject.q4_1;
754
- tmp_1 = tmp0_0 === 4 ? emptyList() : flatten(value, $this, Common_getInstance().z1s([name, key]));
755
- } else {
756
- if (tmp0_subject_0 instanceof ReferenceObject) {
757
- tmp_1 = emptyList();
774
+ if (tmp0_subject_0 instanceof SchemaObject) {
775
+ var tmp$ret$10;
776
+ // Inline function 'kotlin.collections.flatMap' call
777
+ var tmp$ret$4;
778
+ // Inline function 'kotlin.collections.orEmpty' call
779
+ var tmp0_orEmpty_0 = element_0.v1e_1;
780
+ var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
781
+ tmp$ret$4 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
782
+ var tmp2_flatMap_0 = tmp$ret$4;
783
+ var tmp$ret$9;
784
+ // Inline function 'kotlin.collections.flatMapTo' call
785
+ var tmp1_flatMapTo_0 = ArrayList_init_$Create$();
786
+ var tmp$ret$5;
787
+ // Inline function 'kotlin.collections.iterator' call
788
+ tmp$ret$5 = tmp2_flatMap_0.u().c();
789
+ var tmp0_iterator_1 = tmp$ret$5;
790
+ while (tmp0_iterator_1.d()) {
791
+ var element_1 = tmp0_iterator_1.e();
792
+ var tmp$ret$8;
793
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>.<anonymous>' call
794
+ var tmp$ret$6;
795
+ // Inline function 'kotlin.collections.component1' call
796
+ tmp$ret$6 = element_1.v();
797
+ var key = tmp$ret$6;
798
+ var tmp$ret$7;
799
+ // Inline function 'kotlin.collections.component2' call
800
+ tmp$ret$7 = element_1.w();
801
+ var value = tmp$ret$7;
802
+ var tmp0_subject_1 = value;
803
+ var tmp_3;
804
+ if (tmp0_subject_1 instanceof ReferenceObject) {
805
+ tmp_3 = emptyList();
758
806
  } else {
759
- noWhenBranchMatchedException();
807
+ if (tmp0_subject_1 instanceof SchemaObject) {
808
+ tmp_3 = flatten(value, $this, Common_getInstance().f1t([name, key]));
809
+ } else {
810
+ noWhenBranchMatchedException();
811
+ }
760
812
  }
813
+ tmp$ret$8 = tmp_3;
814
+ var list_0 = tmp$ret$8;
815
+ addAll(tmp1_flatMapTo_0, list_0);
761
816
  }
762
- tmp$ret$3 = tmp_1;
763
- var list = tmp$ret$3;
764
- addAll(tmp0_flatMapTo, list);
817
+ tmp$ret$9 = tmp1_flatMapTo_0;
818
+ tmp$ret$10 = tmp$ret$9;
819
+ tmp_2 = tmp$ret$10;
820
+ } else {
821
+ noWhenBranchMatchedException();
765
822
  }
766
- tmp$ret$4 = tmp0_flatMapTo;
767
- tmp$ret$5 = tmp$ret$4;
768
- tmp_0 = tmp$ret$5;
769
823
  }
770
-
771
- var tmp2_elvis_lhs = tmp_0;
772
- var fields = tmp2_elvis_lhs == null ? emptyList() : tmp2_elvis_lhs;
773
- var tmp3_subject = _this__u8e3s4.q1e_1;
774
- var tmp_2;
775
- if (tmp3_subject == null) {
776
- var tmp4_safe_receiver = _this__u8e3s4.p1e_1;
777
- var tmp_3;
778
- if (tmp4_safe_receiver == null) {
779
- tmp_3 = null;
824
+ tmp$ret$11 = tmp_2;
825
+ var list_1 = tmp$ret$11;
826
+ addAll(tmp3_flatMapTo, list_1);
827
+ }
828
+ tmp$ret$12 = tmp3_flatMapTo;
829
+ tmp$ret$13 = tmp$ret$12;
830
+ tmp = plus(tmp_1, tmp$ret$13);
831
+ } else if (!(_this__u8e3s4.r1e_1 == null)) {
832
+ var tmp$ret$18;
833
+ // Inline function 'kotlin.let' call
834
+ var tmp$ret$16;
835
+ // Inline function 'kotlin.collections.map' call
836
+ var tmp6_map = ensureNotNull(_this__u8e3s4.r1e_1);
837
+ var tmp$ret$15;
838
+ // Inline function 'kotlin.collections.mapTo' call
839
+ var tmp5_mapTo = ArrayList_init_$Create$_0(tmp6_map.length);
840
+ var indexedObject = tmp6_map;
841
+ var inductionVariable = 0;
842
+ var last = indexedObject.length;
843
+ while (inductionVariable < last) {
844
+ var item = indexedObject[inductionVariable];
845
+ inductionVariable = inductionVariable + 1 | 0;
846
+ var tmp$ret$14;
847
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
848
+ var tmp0_subject_2 = item;
849
+ var tmp_4;
850
+ if (tmp0_subject_2 instanceof JsonPrimitive) {
851
+ tmp_4 = item.q13();
852
+ } else {
853
+ if (tmp0_subject_2 instanceof JsonArray) {
854
+ throw new NotImplementedError();
780
855
  } else {
781
- var tmp$ret$11;
782
- // Inline function 'kotlin.collections.map' call
783
- var tmp$ret$10;
784
- // Inline function 'kotlin.collections.mapTo' call
785
- var tmp1_mapTo = ArrayList_init_$Create$_0(tmp4_safe_receiver.f());
786
- var tmp$ret$6;
856
+ if (tmp0_subject_2 instanceof JsonObject) {
857
+ throw new NotImplementedError();
858
+ } else {
859
+ noWhenBranchMatchedException();
860
+ }
861
+ }
862
+ }
863
+ tmp$ret$14 = tmp_4;
864
+ tmp5_mapTo.a(tmp$ret$14);
865
+ }
866
+ tmp$ret$15 = tmp5_mapTo;
867
+ tmp$ret$16 = tmp$ret$15;
868
+ var tmp7_let = toSet(tmp$ret$16);
869
+ // Inline function 'kotlin.contracts.contract' call
870
+ var tmp$ret$17;
871
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
872
+ tmp$ret$17 = listOf(new Enum(name, tmp7_let));
873
+ tmp$ret$18 = tmp$ret$17;
874
+ tmp = tmp$ret$18;
875
+ } else {
876
+ var tmp1_subject = _this__u8e3s4.s1e_1;
877
+ var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.q4_1;
878
+ var tmp_5;
879
+ switch (tmp0) {
880
+ case -1:
881
+ case 5:
882
+ var tmp2_safe_receiver = _this__u8e3s4.v1e_1;
883
+ var tmp_6;
884
+ if (tmp2_safe_receiver == null) {
885
+ tmp_6 = null;
886
+ } else {
887
+ var tmp$ret$24;
888
+ // Inline function 'kotlin.collections.flatMap' call
889
+ var tmp$ret$23;
890
+ // Inline function 'kotlin.collections.flatMapTo' call
891
+ var tmp8_flatMapTo = ArrayList_init_$Create$();
892
+ var tmp$ret$19;
787
893
  // Inline function 'kotlin.collections.iterator' call
788
- tmp$ret$6 = tmp4_safe_receiver.u().c();
789
- var tmp0_iterator_0 = tmp$ret$6;
790
- while (tmp0_iterator_0.d()) {
791
- var item = tmp0_iterator_0.e();
792
- var tmp$ret$9;
894
+ tmp$ret$19 = tmp2_safe_receiver.u().c();
895
+ var tmp0_iterator_2 = tmp$ret$19;
896
+ while (tmp0_iterator_2.d()) {
897
+ var element_2 = tmp0_iterator_2.e();
898
+ var tmp$ret$22;
793
899
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
794
- var tmp$ret$7;
900
+ var tmp$ret$20;
795
901
  // Inline function 'kotlin.collections.component1' call
796
- tmp$ret$7 = item.v();
797
- var key_0 = tmp$ret$7;
798
- var tmp$ret$8;
902
+ tmp$ret$20 = element_2.v();
903
+ var key_0 = tmp$ret$20;
904
+ var tmp$ret$21;
799
905
  // Inline function 'kotlin.collections.component2' call
800
- tmp$ret$8 = item.w();
801
- var value_0 = tmp$ret$8;
802
- var tmp0_subject_1 = value_0;
803
- var tmp_4;
804
- if (tmp0_subject_1 instanceof SchemaObject) {
805
- var tmp_5 = new Identifier(key_0);
806
- var tmp_6 = toReference_0(value_0, $this, Common_getInstance().z1s([name, key_0]));
807
- var tmp1_safe_receiver_0 = _this__u8e3s4.k1e_1;
808
- var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : contains(tmp1_safe_receiver_0, key_0);
809
- tmp_4 = new Field(tmp_5, tmp_6, !(tmp2_elvis_lhs_0 == null ? false : tmp2_elvis_lhs_0));
906
+ tmp$ret$21 = element_2.w();
907
+ var value_0 = tmp$ret$21;
908
+ var tmp0_subject_3 = value_0;
909
+ var tmp_7;
910
+ if (tmp0_subject_3 instanceof SchemaObject) {
911
+ var tmp1_subject_0 = value_0.s1e_1;
912
+ var tmp0_0 = tmp1_subject_0 == null ? -1 : tmp1_subject_0.q4_1;
913
+ tmp_7 = tmp0_0 === 4 ? emptyList() : flatten(value_0, $this, Common_getInstance().f1t([name, key_0]));
810
914
  } else {
811
- if (tmp0_subject_1 instanceof ReferenceObject) {
812
- var tmp_7 = new Identifier(key_0);
813
- var tmp_8 = new Custom(getReference(value_0, $this), false);
814
- var tmp3_safe_receiver = _this__u8e3s4.k1e_1;
815
- var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : contains(tmp3_safe_receiver, key_0);
816
- tmp_4 = new Field(tmp_7, tmp_8, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
915
+ if (tmp0_subject_3 instanceof ReferenceObject) {
916
+ tmp_7 = emptyList();
817
917
  } else {
818
918
  noWhenBranchMatchedException();
819
919
  }
820
920
  }
821
- tmp$ret$9 = tmp_4;
822
- tmp1_mapTo.a(tmp$ret$9);
921
+ tmp$ret$22 = tmp_7;
922
+ var list_2 = tmp$ret$22;
923
+ addAll(tmp8_flatMapTo, list_2);
823
924
  }
824
- tmp$ret$10 = tmp1_mapTo;
825
- tmp$ret$11 = tmp$ret$10;
826
- tmp_3 = tmp$ret$11;
925
+ tmp$ret$23 = tmp8_flatMapTo;
926
+ tmp$ret$24 = tmp$ret$23;
927
+ tmp_6 = tmp$ret$24;
827
928
  }
828
- var tmp5_elvis_lhs = tmp_3;
829
- tmp_2 = listOf(new SimpleSchema(name, tmp5_elvis_lhs == null ? emptyList() : tmp5_elvis_lhs));
830
- } else {
831
- tmp_2 = emptyList();
832
- }
833
929
 
834
- var schema = tmp_2;
835
- tmp = plus(schema, fields);
836
- break;
837
- case 4:
838
- var tmp6_safe_receiver = _this__u8e3s4.n1e_1;
839
- var tmp_9;
840
- if (tmp6_safe_receiver == null) {
841
- tmp_9 = null;
842
- } else {
843
- var tmp$ret$13;
844
- // Inline function 'kotlin.let' call
845
- // Inline function 'kotlin.contracts.contract' call
846
- var tmp$ret$12;
847
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
848
- var tmp0_subject_2 = tmp6_safe_receiver;
849
- var tmp_10;
850
- if (tmp0_subject_2 instanceof ReferenceObject) {
851
- tmp_10 = emptyList();
930
+ var tmp3_elvis_lhs = tmp_6;
931
+ var fields = tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs;
932
+ var schema = listOf(new Type(name, new Shape(toField(_this__u8e3s4, $this, name))));
933
+ tmp_5 = plus(schema, fields);
934
+ break;
935
+ case 4:
936
+ var it = _this__u8e3s4.t1e_1;
937
+ var tmp_8;
938
+ if (it instanceof ReferenceObject) {
939
+ tmp_8 = emptyList();
852
940
  } else {
853
- if (tmp0_subject_2 instanceof SchemaObject) {
854
- var tmp1_safe_receiver_1 = tmp6_safe_receiver.n1e_1;
855
- tmp_10 = tmp1_safe_receiver_1 == null ? null : flatten_0(tmp1_safe_receiver_1, $this, Common_getInstance().z1s([name, 'array']));
941
+ if (it instanceof SchemaObject) {
942
+ tmp_8 = flatten(it, $this, Common_getInstance().f1t([name, 'Array']));
856
943
  } else {
857
- noWhenBranchMatchedException();
944
+ if (it == null) {
945
+ tmp_8 = emptyList();
946
+ } else {
947
+ noWhenBranchMatchedException();
948
+ }
858
949
  }
859
950
  }
860
- tmp$ret$12 = tmp_10;
861
- tmp$ret$13 = tmp$ret$12;
862
- tmp_9 = tmp$ret$13;
863
- }
864
951
 
865
- var tmp7_elvis_lhs = tmp_9;
866
- tmp = tmp7_elvis_lhs == null ? emptyList() : tmp7_elvis_lhs;
867
- break;
868
- default:
869
- tmp = emptyList();
870
- break;
952
+ tmp_5 = tmp_8;
953
+ break;
954
+ default:
955
+ tmp_5 = emptyList();
956
+ break;
957
+ }
958
+ tmp = tmp_5;
871
959
  }
872
960
  return tmp;
873
961
  }
@@ -878,37 +966,13 @@
878
966
  tmp = flatten(_this__u8e3s4, $this, name);
879
967
  } else {
880
968
  if (tmp0_subject instanceof ReferenceObject) {
881
- tmp = flatten(resolveSchemaObject(_this__u8e3s4, $this).h3_1, $this, name);
969
+ tmp = emptyList();
882
970
  } else {
883
971
  noWhenBranchMatchedException();
884
972
  }
885
973
  }
886
974
  return tmp;
887
975
  }
888
- function SimpleSchema(name, properties) {
889
- this.d1t_1 = name;
890
- this.e1t_1 = properties;
891
- }
892
- protoOf(SimpleSchema).toString = function () {
893
- return 'SimpleSchema(name=' + this.d1t_1 + ', properties=' + this.e1t_1 + ')';
894
- };
895
- protoOf(SimpleSchema).hashCode = function () {
896
- var result = getStringHashCode(this.d1t_1);
897
- result = imul(result, 31) + hashCode(this.e1t_1) | 0;
898
- return result;
899
- };
900
- protoOf(SimpleSchema).equals = function (other) {
901
- if (this === other)
902
- return true;
903
- if (!(other instanceof SimpleSchema))
904
- return false;
905
- var tmp0_other_with_cast = other instanceof SimpleSchema ? other : THROW_CCE();
906
- if (!(this.d1t_1 === tmp0_other_with_cast.d1t_1))
907
- return false;
908
- if (!equals(this.e1t_1, tmp0_other_with_cast.e1t_1))
909
- return false;
910
- return true;
911
- };
912
976
  function toReference(_this__u8e3s4, $this) {
913
977
  var tmp$ret$1;
914
978
  // Inline function 'kotlin.let' call
@@ -918,126 +982,113 @@
918
982
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
919
983
  var referencingObject = tmp0_let.i3();
920
984
  var schema = tmp0_let.j3();
921
- var additionalProperties = schema.q1e_1;
922
985
  var tmp;
923
- if (additionalProperties instanceof BooleanObject) {
924
- throw new NotImplementedError('An operation is not implemented: additionalProperties = true not implemented');
925
- } else {
926
- if (additionalProperties instanceof ReferenceObject) {
927
- tmp = new Custom(Common_getInstance().z1s([getReference(additionalProperties, $this)]), false, true);
986
+ if (!(schema.w1e_1 == null)) {
987
+ var additionalProperties = ensureNotNull(schema.w1e_1);
988
+ var tmp_0;
989
+ if (additionalProperties instanceof BooleanObject) {
990
+ tmp_0 = new Any(false, true);
928
991
  } else {
929
- if (additionalProperties instanceof SchemaObject) {
930
- tmp = new Custom(Common_getInstance().z1s([getReference(referencingObject, $this)]), false, true);
992
+ if (additionalProperties instanceof ReferenceObject) {
993
+ tmp_0 = toMap_0(toReference(additionalProperties, $this));
931
994
  } else {
932
- if (additionalProperties == null) {
933
- var tmp0_subject = schema.m1e_1;
934
- var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
935
- var tmp_0;
936
- if (tmp0 === 4) {
937
- var items = schema.n1e_1;
938
- var tmp_1;
939
- if (items instanceof ReferenceObject) {
940
- tmp_1 = new Custom(Common_getInstance().z1s([getReference(items, $this)]), true);
941
- } else {
942
- if (items instanceof SchemaObject) {
943
- tmp_1 = new Custom(Common_getInstance().z1s([getReference(referencingObject, $this), 'Array']), true);
944
- } else {
945
- if (items == null) {
946
- var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.k1d_1);
947
- throw IllegalStateException_init_$Create$(toString(tmp0_error));
948
- } else {
949
- noWhenBranchMatchedException();
950
- }
951
- }
952
- }
953
- tmp_0 = tmp_1;
954
- } else {
955
- tmp_0 = new Custom(Common_getInstance().z1s([getReference(referencingObject, $this)]), false);
956
- }
957
- tmp = tmp_0;
995
+ if (additionalProperties instanceof SchemaObject) {
996
+ tmp_0 = new Custom(Common_getInstance().f1t([getReference(referencingObject, $this)]), false, true);
958
997
  } else {
959
998
  noWhenBranchMatchedException();
960
999
  }
961
1000
  }
962
1001
  }
1002
+ tmp = tmp_0;
1003
+ } else if (!(schema.r1e_1 == null)) {
1004
+ tmp = new Custom(Common_getInstance().f1t([getReference(referencingObject, $this)]), false, false);
1005
+ } else if (isPrimitive(schema.s1e_1)) {
1006
+ tmp = new Primitive(toPrimitive(ensureNotNull(schema.s1e_1), $this), false, false);
1007
+ } else {
1008
+ var tmp0_subject = schema.s1e_1;
1009
+ var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
1010
+ var tmp_1;
1011
+ if (tmp0 === 4) {
1012
+ var items = schema.t1e_1;
1013
+ var tmp_2;
1014
+ if (items instanceof ReferenceObject) {
1015
+ tmp_2 = new Custom(Common_getInstance().f1t([getReference(items, $this)]), true);
1016
+ } else {
1017
+ if (items instanceof SchemaObject) {
1018
+ tmp_2 = new Custom(Common_getInstance().f1t([getReference(referencingObject, $this), 'Array']), true);
1019
+ } else {
1020
+ if (items == null) {
1021
+ var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.q1d_1);
1022
+ throw IllegalStateException_init_$Create$(toString(tmp0_error));
1023
+ } else {
1024
+ noWhenBranchMatchedException();
1025
+ }
1026
+ }
1027
+ }
1028
+ tmp_1 = tmp_2;
1029
+ } else {
1030
+ tmp_1 = new Custom(Common_getInstance().f1t([getReference(referencingObject, $this)]), false);
1031
+ }
1032
+ tmp = tmp_1;
963
1033
  }
964
1034
  tmp$ret$0 = tmp;
965
1035
  tmp$ret$1 = tmp$ret$0;
966
1036
  return tmp$ret$1;
967
1037
  }
968
1038
  function toReference_0(_this__u8e3s4, $this, name) {
969
- var type = _this__u8e3s4.m1e_1;
970
- var tmp0 = type == null ? -1 : type.q4_1;
971
1039
  var tmp;
972
- switch (tmp0) {
973
- case 0:
974
- case 2:
975
- case 1:
976
- case 3:
977
- tmp = new Primitive(toPrimitive(type, $this), false);
978
- break;
979
- case -1:
980
- case 5:
981
- var tmp0_safe_receiver = _this__u8e3s4.q1e_1;
982
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_0(tmp0_safe_receiver, $this);
983
- var t = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m1e_1;
984
- var tmp0_0 = t == null ? -1 : t.q4_1;
985
- switch (tmp0_0) {
986
- case 0:
987
- case 2:
988
- case 1:
989
- case 3:
990
- tmp = new Primitive(toPrimitive(t, $this), false, !(_this__u8e3s4.q1e_1 == null));
991
- break;
992
- default:
993
- tmp = new Custom(name, false, !(_this__u8e3s4.q1e_1 == null));
994
- break;
995
- }
1040
+ if (!(_this__u8e3s4.r1e_1 == null)) {
1041
+ tmp = new Custom(name, false, !(_this__u8e3s4.w1e_1 == null));
1042
+ } else {
1043
+ var type = _this__u8e3s4.s1e_1;
1044
+ var tmp0 = type == null ? -1 : type.q4_1;
1045
+ var tmp_0;
1046
+ switch (tmp0) {
1047
+ case 0:
1048
+ case 2:
1049
+ case 1:
1050
+ case 3:
1051
+ tmp_0 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.w1e_1 == null));
1052
+ break;
1053
+ case -1:
1054
+ case 5:
1055
+ var tmp_1;
1056
+ var tmp_2 = _this__u8e3s4.w1e_1;
1057
+ if (tmp_2 instanceof BooleanObject) {
1058
+ tmp_1 = new Any(false, !(_this__u8e3s4.w1e_1 == null));
1059
+ } else {
1060
+ tmp_1 = new Custom(name, false, !(_this__u8e3s4.w1e_1 == null));
1061
+ }
996
1062
 
997
- break;
998
- case 4:
999
- var tmp2_safe_receiver = _this__u8e3s4.n1e_1;
1000
- var resolve_1 = tmp2_safe_receiver == null ? null : resolve(tmp2_safe_receiver, $this);
1001
- var tmp3_safe_receiver = resolve_1;
1002
- var t_0 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.m1e_1;
1003
- var tmp0_1 = t_0 == null ? -1 : t_0.q4_1;
1004
- var tmp_0;
1005
- switch (tmp0_1) {
1006
- case 0:
1007
- case 1:
1008
- case 2:
1009
- case 3:
1010
- tmp_0 = new Primitive(toPrimitive(t_0, $this), true);
1011
- break;
1012
- default:
1013
- var it = _this__u8e3s4.n1e_1;
1014
- var tmp_1;
1015
- if (it instanceof ReferenceObject) {
1016
- tmp_1 = toReference(it, $this).fl(VOID, true);
1063
+ tmp_0 = tmp_1;
1064
+ break;
1065
+ case 4:
1066
+ var it = _this__u8e3s4.t1e_1;
1067
+ var tmp_3;
1068
+ if (it instanceof ReferenceObject) {
1069
+ tmp_3 = toIterable(toReference(it, $this));
1070
+ } else {
1071
+ if (it instanceof SchemaObject) {
1072
+ tmp_3 = toIterable(toReference_0(it, $this, name));
1017
1073
  } else {
1018
- if (it instanceof SchemaObject) {
1019
- tmp_1 = toReference_0(it, $this, name);
1074
+ if (it == null) {
1075
+ var tmp0_error = 'When schema is of type array items cannot be null for name: ' + name;
1076
+ throw IllegalStateException_init_$Create$(toString(tmp0_error));
1020
1077
  } else {
1021
- if (it == null) {
1022
- var tmp0_error = 'When schema is of type array items cannot be null for name: ' + name;
1023
- throw IllegalStateException_init_$Create$(toString(tmp0_error));
1024
- } else {
1025
- noWhenBranchMatchedException();
1026
- }
1078
+ noWhenBranchMatchedException();
1027
1079
  }
1028
1080
  }
1081
+ }
1029
1082
 
1030
- tmp_0 = tmp_1;
1031
- break;
1032
- }
1033
-
1034
- tmp = tmp_0;
1035
- break;
1036
- case 6:
1037
- throw new NotImplementedError('An operation is not implemented: Type file not implemented');
1038
- default:
1039
- noWhenBranchMatchedException();
1040
- break;
1083
+ tmp_0 = tmp_3;
1084
+ break;
1085
+ case 6:
1086
+ throw new NotImplementedError('An operation is not implemented: Type file not implemented');
1087
+ default:
1088
+ noWhenBranchMatchedException();
1089
+ break;
1090
+ }
1091
+ tmp = tmp_0;
1041
1092
  }
1042
1093
  return tmp;
1043
1094
  }
@@ -1045,7 +1096,7 @@
1045
1096
  var tmp$ret$2;
1046
1097
  // Inline function 'kotlin.collections.associateWith' call
1047
1098
  var tmp0_associateWith = values();
1048
- var result = LinkedHashMap_init_$Create$(coerceAtLeast(mapCapacity(tmp0_associateWith.length), 16));
1099
+ var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(tmp0_associateWith.length), 16));
1049
1100
  var tmp$ret$1;
1050
1101
  // Inline function 'kotlin.collections.associateWithTo' call
1051
1102
  var indexedObject = tmp0_associateWith;
@@ -1061,28 +1112,28 @@
1061
1112
  var tmp;
1062
1113
  switch (tmp0) {
1063
1114
  case 0:
1064
- tmp = _this__u8e3s4.h1b_1;
1115
+ tmp = _this__u8e3s4.n1b_1;
1065
1116
  break;
1066
1117
  case 1:
1067
- tmp = _this__u8e3s4.j1b_1;
1118
+ tmp = _this__u8e3s4.p1b_1;
1068
1119
  break;
1069
1120
  case 2:
1070
- tmp = _this__u8e3s4.i1b_1;
1121
+ tmp = _this__u8e3s4.o1b_1;
1071
1122
  break;
1072
1123
  case 3:
1073
- tmp = _this__u8e3s4.k1b_1;
1124
+ tmp = _this__u8e3s4.q1b_1;
1074
1125
  break;
1075
1126
  case 4:
1076
- tmp = _this__u8e3s4.l1b_1;
1127
+ tmp = _this__u8e3s4.r1b_1;
1077
1128
  break;
1078
1129
  case 5:
1079
- tmp = _this__u8e3s4.m1b_1;
1130
+ tmp = _this__u8e3s4.s1b_1;
1080
1131
  break;
1081
1132
  case 6:
1082
- tmp = _this__u8e3s4.n1b_1;
1133
+ tmp = _this__u8e3s4.t1b_1;
1083
1134
  break;
1084
1135
  case 7:
1085
- tmp = _this__u8e3s4.o1b_1;
1136
+ tmp = _this__u8e3s4.u1b_1;
1086
1137
  break;
1087
1138
  default:
1088
1139
  noWhenBranchMatchedException();
@@ -1096,7 +1147,7 @@
1096
1147
  return filterNotNullValues(tmp$ret$2);
1097
1148
  }
1098
1149
  function getReference(_this__u8e3s4, $this) {
1099
- return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.k1d_1), ['/']).h(2);
1150
+ return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.q1d_1), ['/']).h(2);
1100
1151
  }
1101
1152
  function toPrimitive(_this__u8e3s4, $this) {
1102
1153
  var tmp0_subject = _this__u8e3s4;
@@ -1120,7 +1171,61 @@
1120
1171
  }
1121
1172
  return tmp;
1122
1173
  }
1123
- function toField(_this__u8e3s4, $this) {
1174
+ function toField(_this__u8e3s4, $this, name) {
1175
+ var tmp$ret$6;
1176
+ // Inline function 'kotlin.collections.map' call
1177
+ var tmp$ret$0;
1178
+ // Inline function 'kotlin.collections.orEmpty' call
1179
+ var tmp0_orEmpty = _this__u8e3s4.v1e_1;
1180
+ var tmp0_elvis_lhs = tmp0_orEmpty;
1181
+ tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
1182
+ var tmp2_map = tmp$ret$0;
1183
+ var tmp$ret$5;
1184
+ // Inline function 'kotlin.collections.mapTo' call
1185
+ var tmp1_mapTo = ArrayList_init_$Create$_0(tmp2_map.f());
1186
+ var tmp$ret$1;
1187
+ // Inline function 'kotlin.collections.iterator' call
1188
+ tmp$ret$1 = tmp2_map.u().c();
1189
+ var tmp0_iterator = tmp$ret$1;
1190
+ while (tmp0_iterator.d()) {
1191
+ var item = tmp0_iterator.e();
1192
+ var tmp$ret$4;
1193
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
1194
+ var tmp$ret$2;
1195
+ // Inline function 'kotlin.collections.component1' call
1196
+ tmp$ret$2 = item.v();
1197
+ var key = tmp$ret$2;
1198
+ var tmp$ret$3;
1199
+ // Inline function 'kotlin.collections.component2' call
1200
+ tmp$ret$3 = item.w();
1201
+ var value = tmp$ret$3;
1202
+ var tmp0_subject = value;
1203
+ var tmp;
1204
+ if (tmp0_subject instanceof SchemaObject) {
1205
+ var tmp_0 = new Identifier(key);
1206
+ var tmp_1 = toReference_0(value, $this, Common_getInstance().f1t([name, key]));
1207
+ var tmp1_safe_receiver = _this__u8e3s4.q1e_1;
1208
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : contains(tmp1_safe_receiver, key);
1209
+ tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
1210
+ } else {
1211
+ if (tmp0_subject instanceof ReferenceObject) {
1212
+ var tmp_2 = new Identifier(key);
1213
+ var tmp_3 = toReference(value, $this);
1214
+ var tmp3_safe_receiver = _this__u8e3s4.q1e_1;
1215
+ var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : contains(tmp3_safe_receiver, key);
1216
+ tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
1217
+ } else {
1218
+ noWhenBranchMatchedException();
1219
+ }
1220
+ }
1221
+ tmp$ret$4 = tmp;
1222
+ tmp1_mapTo.a(tmp$ret$4);
1223
+ }
1224
+ tmp$ret$5 = tmp1_mapTo;
1225
+ tmp$ret$6 = tmp$ret$5;
1226
+ return tmp$ret$6;
1227
+ }
1228
+ function toField_0(_this__u8e3s4, $this) {
1124
1229
  var tmp$ret$7;
1125
1230
  // Inline function 'kotlin.let' call
1126
1231
  var tmp$ret$5;
@@ -1129,7 +1234,7 @@
1129
1234
  // Inline function 'kotlin.contracts.contract' call
1130
1235
  var tmp$ret$4;
1131
1236
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
1132
- var type = tmp0_let.p1c_1;
1237
+ var type = tmp0_let.v1c_1;
1133
1238
  var tmp0 = type == null ? -1 : type.q4_1;
1134
1239
  var tmp;
1135
1240
  switch (tmp0) {
@@ -1149,9 +1254,9 @@
1149
1254
  tmp = tmp$ret$1;
1150
1255
  break;
1151
1256
  case 4:
1152
- var tmp0_safe_receiver = tmp0_let.q1c_1;
1257
+ var tmp0_safe_receiver = tmp0_let.w1c_1;
1153
1258
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve(tmp0_safe_receiver, $this);
1154
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m1e_1;
1259
+ var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s1e_1;
1155
1260
  var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, $this);
1156
1261
  var tmp_0;
1157
1262
  if (tmp3_safe_receiver == null) {
@@ -1193,8 +1298,8 @@
1193
1298
  // Inline function 'kotlin.contracts.contract' call
1194
1299
  var tmp$ret$6;
1195
1300
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
1196
- var tmp_2 = new Identifier(_this__u8e3s4.k1c_1);
1197
- var tmp0_elvis_lhs = _this__u8e3s4.n1c_1;
1301
+ var tmp_2 = new Identifier(_this__u8e3s4.q1c_1);
1302
+ var tmp0_elvis_lhs = _this__u8e3s4.t1c_1;
1198
1303
  tmp$ret$6 = new Field(tmp_2, tmp1_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
1199
1304
  tmp$ret$7 = tmp$ret$6;
1200
1305
  return tmp$ret$7;
@@ -1247,7 +1352,7 @@
1247
1352
  var element = tmp0_iterator_0.e();
1248
1353
  var tmp$ret$3;
1249
1354
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
1250
- tmp$ret$3 = element.k1c_1 === param;
1355
+ tmp$ret$3 = element.q1c_1 === param;
1251
1356
  if (tmp$ret$3) {
1252
1357
  tmp$ret$4 = element;
1253
1358
  break $l$block;
@@ -1266,7 +1371,7 @@
1266
1371
  // Inline function 'kotlin.contracts.contract' call
1267
1372
  var tmp$ret$6;
1268
1373
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
1269
- var tmp0_safe_receiver_0 = tmp0_safe_receiver.p1c_1;
1374
+ var tmp0_safe_receiver_0 = tmp0_safe_receiver.v1c_1;
1270
1375
  tmp$ret$6 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, $this);
1271
1376
  tmp$ret$7 = tmp$ret$6;
1272
1377
  tmp_2 = tmp$ret$7;
@@ -1306,7 +1411,7 @@
1306
1411
  }
1307
1412
  function toName(_this__u8e3s4, $this, segments, method) {
1308
1413
  var tmp0_safe_receiver = _this__u8e3s4;
1309
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y1b_1;
1414
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e1c_1;
1310
1415
  var tmp;
1311
1416
  if (tmp1_safe_receiver == null) {
1312
1417
  tmp = null;
@@ -1316,7 +1421,7 @@
1316
1421
  // Inline function 'kotlin.contracts.contract' call
1317
1422
  var tmp$ret$0;
1318
1423
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
1319
- tmp$ret$0 = Common_getInstance().z1s([tmp1_safe_receiver]);
1424
+ tmp$ret$0 = Common_getInstance().f1t([tmp1_safe_receiver]);
1320
1425
  tmp$ret$1 = tmp$ret$0;
1321
1426
  tmp = tmp$ret$1;
1322
1427
  }
@@ -1338,21 +1443,21 @@
1338
1443
  return tmp_0;
1339
1444
  }
1340
1445
  function FlattenRequest(path, pathItem, method, operation, type) {
1341
- this.f1t_1 = path;
1342
- this.g1t_1 = pathItem;
1343
- this.h1t_1 = method;
1344
- this.i1t_1 = operation;
1345
- this.j1t_1 = type;
1446
+ this.j1t_1 = path;
1447
+ this.k1t_1 = pathItem;
1448
+ this.l1t_1 = method;
1449
+ this.m1t_1 = operation;
1450
+ this.n1t_1 = type;
1346
1451
  }
1347
1452
  protoOf(FlattenRequest).toString = function () {
1348
- return 'FlattenRequest(path=' + new Path(this.f1t_1) + ', pathItem=' + this.g1t_1 + ', method=' + this.h1t_1 + ', operation=' + this.i1t_1 + ', type=' + this.j1t_1 + ')';
1453
+ return 'FlattenRequest(path=' + new Path(this.j1t_1) + ', pathItem=' + this.k1t_1 + ', method=' + this.l1t_1 + ', operation=' + this.m1t_1 + ', type=' + this.n1t_1 + ')';
1349
1454
  };
1350
1455
  protoOf(FlattenRequest).hashCode = function () {
1351
- var result = Path__hashCode_impl_go73kd(this.f1t_1);
1352
- result = imul(result, 31) + this.g1t_1.hashCode() | 0;
1353
- result = imul(result, 31) + this.h1t_1.hashCode() | 0;
1354
- result = imul(result, 31) + this.i1t_1.hashCode() | 0;
1355
- result = imul(result, 31) + getStringHashCode(this.j1t_1) | 0;
1456
+ var result = Path__hashCode_impl_go73kd(this.j1t_1);
1457
+ result = imul(result, 31) + this.k1t_1.hashCode() | 0;
1458
+ result = imul(result, 31) + this.l1t_1.hashCode() | 0;
1459
+ result = imul(result, 31) + this.m1t_1.hashCode() | 0;
1460
+ result = imul(result, 31) + getStringHashCode(this.n1t_1) | 0;
1356
1461
  return result;
1357
1462
  };
1358
1463
  protoOf(FlattenRequest).equals = function (other) {
@@ -1361,15 +1466,15 @@
1361
1466
  if (!(other instanceof FlattenRequest))
1362
1467
  return false;
1363
1468
  var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
1364
- if (!(this.f1t_1 === tmp0_other_with_cast.f1t_1))
1469
+ if (!(this.j1t_1 === tmp0_other_with_cast.j1t_1))
1365
1470
  return false;
1366
- if (!this.g1t_1.equals(tmp0_other_with_cast.g1t_1))
1471
+ if (!this.k1t_1.equals(tmp0_other_with_cast.k1t_1))
1367
1472
  return false;
1368
- if (!this.h1t_1.equals(tmp0_other_with_cast.h1t_1))
1473
+ if (!this.l1t_1.equals(tmp0_other_with_cast.l1t_1))
1369
1474
  return false;
1370
- if (!this.i1t_1.equals(tmp0_other_with_cast.i1t_1))
1475
+ if (!this.m1t_1.equals(tmp0_other_with_cast.m1t_1))
1371
1476
  return false;
1372
- if (!(this.j1t_1 === tmp0_other_with_cast.j1t_1))
1477
+ if (!(this.n1t_1 === tmp0_other_with_cast.n1t_1))
1373
1478
  return false;
1374
1479
  return true;
1375
1480
  };
@@ -1378,7 +1483,7 @@
1378
1483
  // Inline function 'kotlin.collections.flatMap' call
1379
1484
  var tmp$ret$15;
1380
1485
  // Inline function 'kotlin.collections.flatMap' call
1381
- var tmp1_flatMap = _this__u8e3s4.q1a_1;
1486
+ var tmp1_flatMap = _this__u8e3s4.w1a_1;
1382
1487
  var tmp$ret$14;
1383
1488
  // Inline function 'kotlin.collections.flatMapTo' call
1384
1489
  var tmp0_flatMapTo = ArrayList_init_$Create$();
@@ -1392,7 +1497,7 @@
1392
1497
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
1393
1498
  var tmp$ret$1;
1394
1499
  // Inline function 'kotlin.collections.component1' call
1395
- tmp$ret$1 = element.v().b1b_1;
1500
+ tmp$ret$1 = element.v().h1b_1;
1396
1501
  var path = tmp$ret$1;
1397
1502
  var tmp$ret$2;
1398
1503
  // Inline function 'kotlin.collections.component2' call
@@ -1424,8 +1529,8 @@
1424
1529
  // Inline function 'kotlin.collections.map' call
1425
1530
  var tmp$ret$6;
1426
1531
  // Inline function 'kotlin.collections.orEmpty' call
1427
- var tmp0_elvis_lhs = _this__u8e3s4.o1a_1;
1428
- var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.z1b_1 : tmp0_elvis_lhs;
1532
+ var tmp0_elvis_lhs = _this__u8e3s4.u1a_1;
1533
+ var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.f1c_1 : tmp0_elvis_lhs;
1429
1534
  var tmp0_elvis_lhs_0 = tmp0_orEmpty;
1430
1535
  tmp$ret$6 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
1431
1536
  var tmp2_map = tmp$ret$6;
@@ -1472,25 +1577,25 @@
1472
1577
  return tmp$ret$18;
1473
1578
  }
1474
1579
  function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
1475
- this.k1t_1 = path;
1476
- this.l1t_1 = pathItem;
1477
- this.m1t_1 = method;
1478
- this.n1t_1 = operation;
1479
- this.o1t_1 = statusCode;
1480
- this.p1t_1 = response;
1481
- this.q1t_1 = type;
1580
+ this.o1t_1 = path;
1581
+ this.p1t_1 = pathItem;
1582
+ this.q1t_1 = method;
1583
+ this.r1t_1 = operation;
1584
+ this.s1t_1 = statusCode;
1585
+ this.t1t_1 = response;
1586
+ this.u1t_1 = type;
1482
1587
  }
1483
1588
  protoOf(FlattenResponse).toString = function () {
1484
- 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 + ')';
1589
+ return 'FlattenResponse(path=' + new Path(this.o1t_1) + ', pathItem=' + this.p1t_1 + ', method=' + this.q1t_1 + ', operation=' + this.r1t_1 + ', statusCode=' + new StatusCode(this.s1t_1) + ', response=' + this.t1t_1 + ', type=' + this.u1t_1 + ')';
1485
1590
  };
1486
1591
  protoOf(FlattenResponse).hashCode = function () {
1487
- var result = Path__hashCode_impl_go73kd(this.k1t_1);
1488
- result = imul(result, 31) + this.l1t_1.hashCode() | 0;
1489
- result = imul(result, 31) + this.m1t_1.hashCode() | 0;
1490
- result = imul(result, 31) + this.n1t_1.hashCode() | 0;
1491
- result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.o1t_1) | 0;
1492
- result = imul(result, 31) + hashCode(this.p1t_1) | 0;
1493
- result = imul(result, 31) + getStringHashCode(this.q1t_1) | 0;
1592
+ var result = Path__hashCode_impl_go73kd(this.o1t_1);
1593
+ result = imul(result, 31) + this.p1t_1.hashCode() | 0;
1594
+ result = imul(result, 31) + this.q1t_1.hashCode() | 0;
1595
+ result = imul(result, 31) + this.r1t_1.hashCode() | 0;
1596
+ result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.s1t_1) | 0;
1597
+ result = imul(result, 31) + hashCode(this.t1t_1) | 0;
1598
+ result = imul(result, 31) + getStringHashCode(this.u1t_1) | 0;
1494
1599
  return result;
1495
1600
  };
1496
1601
  protoOf(FlattenResponse).equals = function (other) {
@@ -1499,19 +1604,19 @@
1499
1604
  if (!(other instanceof FlattenResponse))
1500
1605
  return false;
1501
1606
  var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
1502
- if (!(this.k1t_1 === tmp0_other_with_cast.k1t_1))
1607
+ if (!(this.o1t_1 === tmp0_other_with_cast.o1t_1))
1503
1608
  return false;
1504
- if (!this.l1t_1.equals(tmp0_other_with_cast.l1t_1))
1609
+ if (!this.p1t_1.equals(tmp0_other_with_cast.p1t_1))
1505
1610
  return false;
1506
- if (!this.m1t_1.equals(tmp0_other_with_cast.m1t_1))
1611
+ if (!this.q1t_1.equals(tmp0_other_with_cast.q1t_1))
1507
1612
  return false;
1508
- if (!this.n1t_1.equals(tmp0_other_with_cast.n1t_1))
1613
+ if (!this.r1t_1.equals(tmp0_other_with_cast.r1t_1))
1509
1614
  return false;
1510
- if (!(this.o1t_1 === tmp0_other_with_cast.o1t_1))
1615
+ if (!(this.s1t_1 === tmp0_other_with_cast.s1t_1))
1511
1616
  return false;
1512
- if (!equals(this.p1t_1, tmp0_other_with_cast.p1t_1))
1617
+ if (!equals(this.t1t_1, tmp0_other_with_cast.t1t_1))
1513
1618
  return false;
1514
- if (!(this.q1t_1 === tmp0_other_with_cast.q1t_1))
1619
+ if (!(this.u1t_1 === tmp0_other_with_cast.u1t_1))
1515
1620
  return false;
1516
1621
  return true;
1517
1622
  };
@@ -1520,7 +1625,7 @@
1520
1625
  // Inline function 'kotlin.collections.flatMap' call
1521
1626
  var tmp$ret$22;
1522
1627
  // Inline function 'kotlin.collections.flatMap' call
1523
- var tmp1_flatMap = _this__u8e3s4.q1a_1;
1628
+ var tmp1_flatMap = _this__u8e3s4.w1a_1;
1524
1629
  var tmp$ret$21;
1525
1630
  // Inline function 'kotlin.collections.flatMapTo' call
1526
1631
  var tmp0_flatMapTo = ArrayList_init_$Create$();
@@ -1534,7 +1639,7 @@
1534
1639
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
1535
1640
  var tmp$ret$1;
1536
1641
  // Inline function 'kotlin.collections.component1' call
1537
- tmp$ret$1 = element.v().b1b_1;
1642
+ tmp$ret$1 = element.v().h1b_1;
1538
1643
  var path = tmp$ret$1;
1539
1644
  var tmp$ret$2;
1540
1645
  // Inline function 'kotlin.collections.component2' call
@@ -1566,7 +1671,7 @@
1566
1671
  // Inline function 'kotlin.collections.flatMap' call
1567
1672
  var tmp$ret$6;
1568
1673
  // Inline function 'kotlin.collections.orEmpty' call
1569
- var tmp0_orEmpty = operation.c1c_1;
1674
+ var tmp0_orEmpty = operation.i1c_1;
1570
1675
  var tmp0_elvis_lhs = tmp0_orEmpty;
1571
1676
  tmp$ret$6 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
1572
1677
  var tmp2_flatMap = tmp$ret$6;
@@ -1583,7 +1688,7 @@
1583
1688
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
1584
1689
  var tmp$ret$8;
1585
1690
  // Inline function 'kotlin.collections.component1' call
1586
- tmp$ret$8 = element_1.v().u1e_1;
1691
+ tmp$ret$8 = element_1.v().a1f_1;
1587
1692
  var statusCode = tmp$ret$8;
1588
1693
  var tmp$ret$9;
1589
1694
  // Inline function 'kotlin.collections.component2' call
@@ -1593,8 +1698,8 @@
1593
1698
  // Inline function 'kotlin.collections.map' call
1594
1699
  var tmp$ret$10;
1595
1700
  // Inline function 'kotlin.collections.orEmpty' call
1596
- var tmp0_elvis_lhs_0 = _this__u8e3s4.p1a_1;
1597
- var tmp0_orEmpty_0 = tmp0_elvis_lhs_0 == null ? operation.a1c_1 : tmp0_elvis_lhs_0;
1701
+ var tmp0_elvis_lhs_0 = _this__u8e3s4.v1a_1;
1702
+ var tmp0_orEmpty_0 = tmp0_elvis_lhs_0 == null ? operation.g1c_1 : tmp0_elvis_lhs_0;
1598
1703
  var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
1599
1704
  tmp$ret$10 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
1600
1705
  var tmp2_map = tmp$ret$10;
@@ -1648,7 +1753,7 @@
1648
1753
  }
1649
1754
  function OpenApiParser$parseRequestBody$lambda(this$0) {
1650
1755
  return function (req) {
1651
- var tmp0_safe_receiver = req.i1t_1.b1c_1;
1756
+ var tmp0_safe_receiver = req.m1t_1.h1c_1;
1652
1757
  var tmp;
1653
1758
  if (tmp0_safe_receiver == null) {
1654
1759
  tmp = null;
@@ -1685,7 +1790,7 @@
1685
1790
  var element = tmp0_iterator_0.e();
1686
1791
  var tmp$ret$3;
1687
1792
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
1688
- tmp$ret$3 = element.l1c_1.equals(ParameterLocation_BODY_getInstance());
1793
+ tmp$ret$3 = element.r1c_1.equals(ParameterLocation_BODY_getInstance());
1689
1794
  if (tmp$ret$3) {
1690
1795
  tmp1_filterTo.a(element);
1691
1796
  }
@@ -1699,46 +1804,39 @@
1699
1804
  if (tmp2_safe_receiver == null) {
1700
1805
  tmp_1 = null;
1701
1806
  } else {
1702
- var tmp$ret$11;
1807
+ var tmp$ret$9;
1703
1808
  // Inline function 'kotlin.collections.flatMap' call
1704
- var tmp$ret$10;
1809
+ var tmp$ret$8;
1705
1810
  // Inline function 'kotlin.collections.flatMapTo' call
1706
1811
  var tmp2_flatMapTo = ArrayList_init_$Create$();
1707
1812
  var tmp0_iterator_1 = tmp2_safe_receiver.c();
1708
1813
  while (tmp0_iterator_1.d()) {
1709
1814
  var element_0 = tmp0_iterator_1.e();
1710
- var tmp$ret$9;
1815
+ var tmp$ret$7;
1711
1816
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
1712
- var parameters = plus(resolveParameters_0(req.g1t_1, this$0), resolveParameters(req.i1t_1, this$0));
1713
- var segments = toSegments(req.f1t_1, this$0, parameters);
1714
- var name = toName(req.i1t_1, this$0, segments, req.h1t_1);
1715
- var schema = element_0.o1c_1;
1817
+ var parameters = plus(resolveParameters_0(req.k1t_1, this$0), resolveParameters(req.m1t_1, this$0));
1818
+ var segments = toSegments(req.j1t_1, this$0, parameters);
1819
+ var name = toName(req.m1t_1, this$0, segments, req.l1t_1);
1820
+ var schema = element_0.u1c_1;
1716
1821
  var tmp_2;
1717
1822
  if (schema instanceof SchemaObject) {
1718
- var tmp0_subject = schema.m1e_1;
1823
+ var tmp0_subject = schema.s1e_1;
1719
1824
  var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
1720
1825
  var tmp_3;
1721
1826
  switch (tmp0) {
1722
1827
  case -1:
1723
1828
  case 5:
1724
- var tmp$ret$8;
1725
- // Inline function 'kotlin.collections.map' call
1726
- var tmp1_map = flatten(schema, this$0, Common_getInstance().z1s([name, 'RequestBody']));
1727
- var tmp$ret$7;
1728
- // Inline function 'kotlin.collections.mapTo' call
1729
- var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
1730
- var tmp0_iterator_2 = tmp1_map.c();
1731
- while (tmp0_iterator_2.d()) {
1732
- var item_0 = tmp0_iterator_2.e();
1733
- var tmp$ret$6;
1734
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
1735
- tmp$ret$6 = new Type(item_0.d1t_1, new Shape(item_0.e1t_1));
1736
- tmp0_mapTo_0.a(tmp$ret$6);
1737
- }
1738
- tmp$ret$7 = tmp0_mapTo_0;
1739
- tmp$ret$8 = tmp$ret$7;
1829
+ tmp_3 = flatten(schema, this$0, Common_getInstance().f1t([name, 'RequestBody']));
1830
+ break;
1831
+ case 4:
1832
+ var tmp$ret$6;
1833
+ // Inline function 'kotlin.collections.orEmpty' call
1834
+ var tmp1_safe_receiver_0 = schema.t1e_1;
1835
+ var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().f1t([name, 'RequestBody']));
1836
+ var tmp0_elvis_lhs = tmp0_orEmpty;
1837
+ tmp$ret$6 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
1740
1838
 
1741
- tmp_3 = tmp$ret$8;
1839
+ tmp_3 = tmp$ret$6;
1742
1840
  break;
1743
1841
  default:
1744
1842
  tmp_3 = emptyList();
@@ -1746,23 +1844,15 @@
1746
1844
  }
1747
1845
  tmp_2 = tmp_3;
1748
1846
  } else {
1749
- if (schema instanceof ReferenceObject) {
1750
- tmp_2 = emptyList();
1751
- } else {
1752
- if (schema == null) {
1753
- tmp_2 = emptyList();
1754
- } else {
1755
- noWhenBranchMatchedException();
1756
- }
1757
- }
1847
+ tmp_2 = emptyList();
1758
1848
  }
1759
- tmp$ret$9 = tmp_2;
1760
- var list = tmp$ret$9;
1849
+ tmp$ret$7 = tmp_2;
1850
+ var list = tmp$ret$7;
1761
1851
  addAll(tmp2_flatMapTo, list);
1762
1852
  }
1763
- tmp$ret$10 = tmp2_flatMapTo;
1764
- tmp$ret$11 = tmp$ret$10;
1765
- tmp_1 = tmp$ret$11;
1853
+ tmp$ret$8 = tmp2_flatMapTo;
1854
+ tmp$ret$9 = tmp$ret$8;
1855
+ tmp_1 = tmp$ret$9;
1766
1856
  }
1767
1857
  var tmp3_elvis_lhs = tmp_1;
1768
1858
  return tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs;
@@ -1770,40 +1860,30 @@
1770
1860
  }
1771
1861
  function OpenApiParser$parseResponseBody$lambda(this$0) {
1772
1862
  return function (res) {
1773
- var response = resolve_1(res.p1t_1, this$0);
1774
- var parameters = plus(resolveParameters_0(res.l1t_1, this$0), resolveParameters(res.n1t_1, this$0));
1775
- var segments = toSegments(res.k1t_1, this$0, parameters);
1776
- var name = toName(res.n1t_1, this$0, segments, res.m1t_1);
1777
- var schema = response.y1e_1;
1863
+ var response = resolve_1(res.t1t_1, this$0);
1864
+ var parameters = plus(resolveParameters_0(res.p1t_1, this$0), resolveParameters(res.r1t_1, this$0));
1865
+ var segments = toSegments(res.o1t_1, this$0, parameters);
1866
+ var name = toName(res.r1t_1, this$0, segments, res.q1t_1);
1867
+ var schema = response.e1f_1;
1778
1868
  var tmp;
1779
1869
  if (schema instanceof SchemaObject) {
1780
- var tmp0_subject = schema.m1e_1;
1870
+ var tmp0_subject = schema.s1e_1;
1781
1871
  var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
1782
1872
  var tmp_0;
1783
1873
  switch (tmp0) {
1784
1874
  case -1:
1785
1875
  case 5:
1786
- var tmp$ret$2;
1787
- // Inline function 'kotlin.collections.map' call
1788
- var tmp1_safe_receiver = schema.q1e_1;
1789
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_0(tmp1_safe_receiver, this$0);
1790
- 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']));
1791
- 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;
1792
- var tmp$ret$1;
1793
- // Inline function 'kotlin.collections.mapTo' call
1794
- var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
1795
- var tmp0_iterator = tmp1_map.c();
1796
- while (tmp0_iterator.d()) {
1797
- var item = tmp0_iterator.e();
1798
- var tmp$ret$0;
1799
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>' call
1800
- tmp$ret$0 = new Type(item.d1t_1, new Shape(item.e1t_1));
1801
- tmp0_mapTo.a(tmp$ret$0);
1802
- }
1803
- tmp$ret$1 = tmp0_mapTo;
1804
- tmp$ret$2 = tmp$ret$1;
1876
+ tmp_0 = flatten(schema, this$0, Common_getInstance().f1t([name, _StatusCode___get_value__impl__we50mu(res.s1t_1), 'ResponseBody']));
1877
+ break;
1878
+ case 4:
1879
+ var tmp$ret$0;
1880
+ // Inline function 'kotlin.collections.orEmpty' call
1881
+ var tmp1_safe_receiver = schema.t1e_1;
1882
+ var tmp0_orEmpty = tmp1_safe_receiver == null ? null : flatten_0(tmp1_safe_receiver, this$0, Common_getInstance().f1t([name, _StatusCode___get_value__impl__we50mu(res.s1t_1), 'ResponseBody']));
1883
+ var tmp0_elvis_lhs = tmp0_orEmpty;
1884
+ tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
1805
1885
 
1806
- tmp_0 = tmp$ret$2;
1886
+ tmp_0 = tmp$ret$0;
1807
1887
  break;
1808
1888
  default:
1809
1889
  tmp_0 = emptyList();
@@ -1811,15 +1891,7 @@
1811
1891
  }
1812
1892
  tmp = tmp_0;
1813
1893
  } else {
1814
- if (schema instanceof ReferenceObject) {
1815
- tmp = emptyList();
1816
- } else {
1817
- if (schema == null) {
1818
- tmp = emptyList();
1819
- } else {
1820
- noWhenBranchMatchedException();
1821
- }
1822
- }
1894
+ tmp = emptyList();
1823
1895
  }
1824
1896
  return tmp;
1825
1897
  };
@@ -1828,10 +1900,10 @@
1828
1900
  var tmp0_subject = it;
1829
1901
  var tmp;
1830
1902
  if (tmp0_subject instanceof Literal) {
1831
- tmp = Common_getInstance().z1s([it.rj_1]);
1903
+ tmp = Common_getInstance().f1t([it.rj_1]);
1832
1904
  } else {
1833
1905
  if (tmp0_subject instanceof Param) {
1834
- tmp = Common_getInstance().z1s([it.si_1.dj_1]);
1906
+ tmp = Common_getInstance().f1t([it.si_1.dj_1]);
1835
1907
  } else {
1836
1908
  noWhenBranchMatchedException();
1837
1909
  }
@@ -1840,11 +1912,82 @@
1840
1912
  }
1841
1913
  function OpenApiParser(openApi) {
1842
1914
  Companion_getInstance_0();
1843
- this.b1t_1 = openApi;
1915
+ this.h1t_1 = openApi;
1844
1916
  }
1845
- protoOf(OpenApiParser).c1t = function () {
1917
+ protoOf(OpenApiParser).i1t = function () {
1846
1918
  return plus(plus(plus(parseEndpoints(this), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
1847
1919
  };
1920
+ function toMap_0(_this__u8e3s4) {
1921
+ var tmp0_subject = _this__u8e3s4;
1922
+ var tmp;
1923
+ if (tmp0_subject instanceof Custom) {
1924
+ tmp = _this__u8e3s4.jl(VOID, VOID, true);
1925
+ } else {
1926
+ if (tmp0_subject instanceof Any) {
1927
+ tmp = _this__u8e3s4.hl(VOID, true);
1928
+ } else {
1929
+ if (tmp0_subject instanceof Primitive) {
1930
+ tmp = _this__u8e3s4.ll(VOID, VOID, true);
1931
+ } else {
1932
+ noWhenBranchMatchedException();
1933
+ }
1934
+ }
1935
+ }
1936
+ return tmp;
1937
+ }
1938
+ function isPrimitive(_this__u8e3s4) {
1939
+ var tmp0_subject = _this__u8e3s4;
1940
+ var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
1941
+ var tmp;
1942
+ switch (tmp0) {
1943
+ case 0:
1944
+ tmp = true;
1945
+ break;
1946
+ case 1:
1947
+ tmp = true;
1948
+ break;
1949
+ case 2:
1950
+ tmp = true;
1951
+ break;
1952
+ case 3:
1953
+ tmp = true;
1954
+ break;
1955
+ case 4:
1956
+ tmp = false;
1957
+ break;
1958
+ case 5:
1959
+ tmp = false;
1960
+ break;
1961
+ case 6:
1962
+ tmp = false;
1963
+ break;
1964
+ case -1:
1965
+ tmp = false;
1966
+ break;
1967
+ default:
1968
+ noWhenBranchMatchedException();
1969
+ break;
1970
+ }
1971
+ return tmp;
1972
+ }
1973
+ function toIterable(_this__u8e3s4) {
1974
+ var tmp0_subject = _this__u8e3s4;
1975
+ var tmp;
1976
+ if (tmp0_subject instanceof Custom) {
1977
+ tmp = _this__u8e3s4.jl(VOID, true);
1978
+ } else {
1979
+ if (tmp0_subject instanceof Any) {
1980
+ tmp = _this__u8e3s4.hl(true);
1981
+ } else {
1982
+ if (tmp0_subject instanceof Primitive) {
1983
+ tmp = _this__u8e3s4.ll(VOID, true);
1984
+ } else {
1985
+ noWhenBranchMatchedException();
1986
+ }
1987
+ }
1988
+ }
1989
+ return tmp;
1990
+ }
1848
1991
  function filterNotNullValues(_this__u8e3s4) {
1849
1992
  var tmp$ret$8;
1850
1993
  // Inline function 'kotlin.collections.mapNotNull' call
@@ -1902,10 +2045,10 @@
1902
2045
  function Companion_0() {
1903
2046
  Companion_instance_0 = this;
1904
2047
  }
1905
- protoOf(Companion_0).a1t = function (json) {
2048
+ protoOf(Companion_0).g1t = function (json) {
1906
2049
  var tmp$ret$1;
1907
2050
  // Inline function 'kotlin.let' call
1908
- var tmp0_let = Default_getInstance_0().g1a(json);
2051
+ var tmp0_let = Default_getInstance_0().m1a(json);
1909
2052
  // Inline function 'kotlin.contracts.contract' call
1910
2053
  var tmp$ret$0;
1911
2054
  // Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
@@ -1923,10 +2066,10 @@
1923
2066
  return plus(plus(plus(parseEndpoint($this), parseRequestBody_0($this)), parseResponseBody_0($this)), parseComponents($this));
1924
2067
  }
1925
2068
  function parseEndpoint($this) {
1926
- var tmp$ret$51;
1927
- // Inline function 'kotlin.collections.flatMap' call
1928
- var tmp1_flatMap = $this.r1t_1.g1j_1;
1929
2069
  var tmp$ret$50;
2070
+ // Inline function 'kotlin.collections.flatMap' call
2071
+ var tmp1_flatMap = $this.v1t_1.m1j_1;
2072
+ var tmp$ret$49;
1930
2073
  // Inline function 'kotlin.collections.flatMapTo' call
1931
2074
  var tmp0_flatMapTo = ArrayList_init_$Create$();
1932
2075
  var tmp$ret$0;
@@ -1935,20 +2078,20 @@
1935
2078
  var tmp0_iterator = tmp$ret$0;
1936
2079
  while (tmp0_iterator.d()) {
1937
2080
  var element = tmp0_iterator.e();
1938
- var tmp$ret$49;
2081
+ var tmp$ret$48;
1939
2082
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>' call
1940
2083
  var tmp$ret$1;
1941
2084
  // Inline function 'kotlin.collections.component1' call
1942
- tmp$ret$1 = element.v().o1j_1;
2085
+ tmp$ret$1 = element.v().u1j_1;
1943
2086
  var key = tmp$ret$1;
1944
2087
  var tmp$ret$2;
1945
2088
  // Inline function 'kotlin.collections.component2' call
1946
2089
  tmp$ret$2 = element.w();
1947
2090
  var path = tmp$ret$2;
1948
- var tmp$ret$48;
2091
+ var tmp$ret$47;
1949
2092
  // Inline function 'kotlin.collections.map' call
1950
2093
  var tmp1_map = toOperationList_0(path, $this);
1951
- var tmp$ret$47;
2094
+ var tmp$ret$46;
1952
2095
  // Inline function 'kotlin.collections.mapTo' call
1953
2096
  var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.f());
1954
2097
  var tmp$ret$3;
@@ -1957,7 +2100,7 @@
1957
2100
  var tmp0_iterator_0 = tmp$ret$3;
1958
2101
  while (tmp0_iterator_0.d()) {
1959
2102
  var item = tmp0_iterator_0.e();
1960
- var tmp$ret$46;
2103
+ var tmp$ret$45;
1961
2104
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>' call
1962
2105
  var tmp$ret$4;
1963
2106
  // Inline function 'kotlin.collections.component1' call
@@ -1967,162 +2110,156 @@
1967
2110
  // Inline function 'kotlin.collections.component2' call
1968
2111
  tmp$ret$5 = item.w();
1969
2112
  var operation = tmp$ret$5;
1970
- var tmp = resolveParameters_2(path, $this);
1971
- var tmp$ret$6;
1972
- // Inline function 'kotlin.collections.orEmpty' call
1973
- var tmp0_orEmpty = resolveParameters_1(operation, $this);
1974
- var tmp0_elvis_lhs = tmp0_orEmpty;
1975
- tmp$ret$6 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
1976
- var parameters = plus(tmp, tmp$ret$6);
2113
+ var parameters = plus(resolveParameters_2(path, $this), resolveParameters_1(operation, $this));
1977
2114
  var segments = toSegments_0(key, $this, parameters);
1978
2115
  var name = toName_0(operation, $this, segments, method);
1979
- var tmp$ret$12;
2116
+ var tmp$ret$11;
1980
2117
  // Inline function 'kotlin.collections.map' call
1981
- var tmp$ret$9;
1982
- // Inline function 'kotlin.collections.filter' call
1983
2118
  var tmp$ret$8;
2119
+ // Inline function 'kotlin.collections.filter' call
2120
+ var tmp$ret$7;
1984
2121
  // Inline function 'kotlin.collections.filterTo' call
1985
- var tmp1_filterTo = ArrayList_init_$Create$();
2122
+ var tmp0_filterTo = ArrayList_init_$Create$();
1986
2123
  var tmp0_iterator_1 = parameters.c();
1987
2124
  while (tmp0_iterator_1.d()) {
1988
2125
  var element_0 = tmp0_iterator_1.e();
1989
- var tmp$ret$7;
2126
+ var tmp$ret$6;
1990
2127
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
1991
- tmp$ret$7 = element_0.i1l_1.equals(ParameterLocation_QUERY_getInstance_0());
1992
- if (tmp$ret$7) {
1993
- tmp1_filterTo.a(element_0);
2128
+ tmp$ret$6 = element_0.o1l_1.equals(ParameterLocation_QUERY_getInstance_0());
2129
+ if (tmp$ret$6) {
2130
+ tmp0_filterTo.a(element_0);
1994
2131
  }
1995
2132
  }
1996
- tmp$ret$8 = tmp1_filterTo;
1997
- tmp$ret$9 = tmp$ret$8;
1998
- var tmp3_map = tmp$ret$9;
1999
- var tmp$ret$11;
2133
+ tmp$ret$7 = tmp0_filterTo;
2134
+ tmp$ret$8 = tmp$ret$7;
2135
+ var tmp2_map = tmp$ret$8;
2136
+ var tmp$ret$10;
2000
2137
  // Inline function 'kotlin.collections.mapTo' call
2001
- var tmp2_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp3_map, 10));
2002
- var tmp0_iterator_2 = tmp3_map.c();
2138
+ var tmp1_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_map, 10));
2139
+ var tmp0_iterator_2 = tmp2_map.c();
2003
2140
  while (tmp0_iterator_2.d()) {
2004
2141
  var item_0 = tmp0_iterator_2.e();
2005
- var tmp$ret$10;
2142
+ var tmp$ret$9;
2006
2143
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
2007
- tmp$ret$10 = toField_0(item_0, $this);
2008
- tmp2_mapTo.a(tmp$ret$10);
2144
+ tmp$ret$9 = toField_2(item_0, $this);
2145
+ tmp1_mapTo.a(tmp$ret$9);
2009
2146
  }
2010
- tmp$ret$11 = tmp2_mapTo;
2011
- tmp$ret$12 = tmp$ret$11;
2012
- var query = tmp$ret$12;
2013
- var tmp$ret$18;
2147
+ tmp$ret$10 = tmp1_mapTo;
2148
+ tmp$ret$11 = tmp$ret$10;
2149
+ var query = tmp$ret$11;
2150
+ var tmp$ret$17;
2014
2151
  // Inline function 'kotlin.collections.map' call
2015
- var tmp$ret$15;
2016
- // Inline function 'kotlin.collections.filter' call
2017
2152
  var tmp$ret$14;
2153
+ // Inline function 'kotlin.collections.filter' call
2154
+ var tmp$ret$13;
2018
2155
  // Inline function 'kotlin.collections.filterTo' call
2019
- var tmp4_filterTo = ArrayList_init_$Create$();
2156
+ var tmp3_filterTo = ArrayList_init_$Create$();
2020
2157
  var tmp0_iterator_3 = parameters.c();
2021
2158
  while (tmp0_iterator_3.d()) {
2022
2159
  var element_1 = tmp0_iterator_3.e();
2023
- var tmp$ret$13;
2160
+ var tmp$ret$12;
2024
2161
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
2025
- tmp$ret$13 = element_1.i1l_1.equals(ParameterLocation_HEADER_getInstance_0());
2026
- if (tmp$ret$13) {
2027
- tmp4_filterTo.a(element_1);
2162
+ tmp$ret$12 = element_1.o1l_1.equals(ParameterLocation_HEADER_getInstance_0());
2163
+ if (tmp$ret$12) {
2164
+ tmp3_filterTo.a(element_1);
2028
2165
  }
2029
2166
  }
2030
- tmp$ret$14 = tmp4_filterTo;
2031
- tmp$ret$15 = tmp$ret$14;
2032
- var tmp6_map = tmp$ret$15;
2033
- var tmp$ret$17;
2167
+ tmp$ret$13 = tmp3_filterTo;
2168
+ tmp$ret$14 = tmp$ret$13;
2169
+ var tmp5_map = tmp$ret$14;
2170
+ var tmp$ret$16;
2034
2171
  // Inline function 'kotlin.collections.mapTo' call
2035
- var tmp5_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp6_map, 10));
2036
- var tmp0_iterator_4 = tmp6_map.c();
2172
+ var tmp4_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp5_map, 10));
2173
+ var tmp0_iterator_4 = tmp5_map.c();
2037
2174
  while (tmp0_iterator_4.d()) {
2038
2175
  var item_1 = tmp0_iterator_4.e();
2039
- var tmp$ret$16;
2176
+ var tmp$ret$15;
2040
2177
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
2041
- tmp$ret$16 = toField_0(item_1, $this);
2042
- tmp5_mapTo.a(tmp$ret$16);
2178
+ tmp$ret$15 = toField_2(item_1, $this);
2179
+ tmp4_mapTo.a(tmp$ret$15);
2043
2180
  }
2044
- tmp$ret$17 = tmp5_mapTo;
2045
- tmp$ret$18 = tmp$ret$17;
2046
- var headers = tmp$ret$18;
2047
- var tmp$ret$24;
2181
+ tmp$ret$16 = tmp4_mapTo;
2182
+ tmp$ret$17 = tmp$ret$16;
2183
+ var headers = tmp$ret$17;
2184
+ var tmp$ret$23;
2048
2185
  // Inline function 'kotlin.collections.map' call
2049
- var tmp$ret$21;
2050
- // Inline function 'kotlin.collections.filter' call
2051
2186
  var tmp$ret$20;
2187
+ // Inline function 'kotlin.collections.filter' call
2188
+ var tmp$ret$19;
2052
2189
  // Inline function 'kotlin.collections.filterTo' call
2053
- var tmp7_filterTo = ArrayList_init_$Create$();
2190
+ var tmp6_filterTo = ArrayList_init_$Create$();
2054
2191
  var tmp0_iterator_5 = parameters.c();
2055
2192
  while (tmp0_iterator_5.d()) {
2056
2193
  var element_2 = tmp0_iterator_5.e();
2057
- var tmp$ret$19;
2194
+ var tmp$ret$18;
2058
2195
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
2059
- tmp$ret$19 = element_2.i1l_1.equals(ParameterLocation_COOKIE_getInstance());
2060
- if (tmp$ret$19) {
2061
- tmp7_filterTo.a(element_2);
2196
+ tmp$ret$18 = element_2.o1l_1.equals(ParameterLocation_COOKIE_getInstance());
2197
+ if (tmp$ret$18) {
2198
+ tmp6_filterTo.a(element_2);
2062
2199
  }
2063
2200
  }
2064
- tmp$ret$20 = tmp7_filterTo;
2065
- tmp$ret$21 = tmp$ret$20;
2066
- var tmp9_map = tmp$ret$21;
2067
- var tmp$ret$23;
2201
+ tmp$ret$19 = tmp6_filterTo;
2202
+ tmp$ret$20 = tmp$ret$19;
2203
+ var tmp8_map = tmp$ret$20;
2204
+ var tmp$ret$22;
2068
2205
  // Inline function 'kotlin.collections.mapTo' call
2069
- var tmp8_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp9_map, 10));
2070
- var tmp0_iterator_6 = tmp9_map.c();
2206
+ var tmp7_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp8_map, 10));
2207
+ var tmp0_iterator_6 = tmp8_map.c();
2071
2208
  while (tmp0_iterator_6.d()) {
2072
2209
  var item_2 = tmp0_iterator_6.e();
2073
- var tmp$ret$22;
2210
+ var tmp$ret$21;
2074
2211
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
2075
- tmp$ret$22 = toField_0(item_2, $this);
2076
- tmp8_mapTo.a(tmp$ret$22);
2212
+ tmp$ret$21 = toField_2(item_2, $this);
2213
+ tmp7_mapTo.a(tmp$ret$21);
2077
2214
  }
2078
- tmp$ret$23 = tmp8_mapTo;
2079
- tmp$ret$24 = tmp$ret$23;
2080
- var cookies = tmp$ret$24;
2081
- var tmp0_safe_receiver = operation.n1k_1;
2215
+ tmp$ret$22 = tmp7_mapTo;
2216
+ tmp$ret$23 = tmp$ret$22;
2217
+ var cookies = tmp$ret$23;
2218
+ var tmp0_safe_receiver = operation.t1k_1;
2082
2219
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, $this);
2083
- var tmp_0;
2220
+ var tmp;
2084
2221
  if (tmp1_safe_receiver == null) {
2085
- tmp_0 = null;
2222
+ tmp = null;
2086
2223
  } else {
2087
- var tmp$ret$32;
2224
+ var tmp$ret$31;
2088
2225
  // Inline function 'kotlin.let' call
2089
2226
  // Inline function 'kotlin.contracts.contract' call
2090
- var tmp$ret$31;
2227
+ var tmp$ret$30;
2091
2228
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
2092
- var tmp0_safe_receiver_0 = tmp1_safe_receiver.n1l_1;
2093
- var tmp_1;
2229
+ var tmp0_safe_receiver_0 = tmp1_safe_receiver.t1l_1;
2230
+ var tmp_0;
2094
2231
  if (tmp0_safe_receiver_0 == null) {
2095
- tmp_1 = null;
2232
+ tmp_0 = null;
2096
2233
  } else {
2097
- var tmp$ret$30;
2098
- // Inline function 'kotlin.collections.map' call
2099
2234
  var tmp$ret$29;
2235
+ // Inline function 'kotlin.collections.map' call
2236
+ var tmp$ret$28;
2100
2237
  // Inline function 'kotlin.collections.mapTo' call
2101
2238
  var tmp0_mapTo_0 = ArrayList_init_$Create$_0(tmp0_safe_receiver_0.f());
2102
- var tmp$ret$25;
2239
+ var tmp$ret$24;
2103
2240
  // Inline function 'kotlin.collections.iterator' call
2104
- tmp$ret$25 = tmp0_safe_receiver_0.u().c();
2105
- var tmp0_iterator_7 = tmp$ret$25;
2241
+ tmp$ret$24 = tmp0_safe_receiver_0.u().c();
2242
+ var tmp0_iterator_7 = tmp$ret$24;
2106
2243
  while (tmp0_iterator_7.d()) {
2107
2244
  var item_3 = tmp0_iterator_7.e();
2108
- var tmp$ret$28;
2245
+ var tmp$ret$27;
2109
2246
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
2110
- var tmp$ret$26;
2247
+ var tmp$ret$25;
2111
2248
  // Inline function 'kotlin.collections.component1' call
2112
- tmp$ret$26 = item_3.v().r1l_1;
2113
- var mediaType = tmp$ret$26;
2114
- var tmp$ret$27;
2249
+ tmp$ret$25 = item_3.v().x1l_1;
2250
+ var mediaType = tmp$ret$25;
2251
+ var tmp$ret$26;
2115
2252
  // Inline function 'kotlin.collections.component2' call
2116
- tmp$ret$27 = item_3.w();
2117
- var mediaObject = tmp$ret$27;
2118
- var tmp_2 = _MediaType___get_value__impl__wy58mp(mediaType);
2119
- var schema = mediaObject.u1l_1;
2120
- var tmp_3;
2253
+ tmp$ret$26 = item_3.w();
2254
+ var mediaObject = tmp$ret$26;
2255
+ var tmp_1 = _MediaType___get_value__impl__wy58mp(mediaType);
2256
+ var schema = mediaObject.a1m_1;
2257
+ var tmp_2;
2121
2258
  if (schema instanceof ReferenceObject_0) {
2122
- tmp_3 = toReference_1(schema, $this);
2259
+ tmp_2 = toReference_1(schema, $this);
2123
2260
  } else {
2124
2261
  if (schema instanceof SchemaObject_0) {
2125
- tmp_3 = new Custom(Common_getInstance().z1s([name, 'RequestBody']), true);
2262
+ tmp_2 = toReference_2(schema, $this, Common_getInstance().f1t([name, 'RequestBody']));
2126
2263
  } else {
2127
2264
  if (schema == null) {
2128
2265
  throw new NotImplementedError();
@@ -2131,83 +2268,83 @@
2131
2268
  }
2132
2269
  }
2133
2270
  }
2134
- var tmp_4 = tmp_3;
2135
- var tmp0_elvis_lhs_0 = tmp1_safe_receiver.o1l_1;
2136
- tmp$ret$28 = new Request(new Content(tmp_2, tmp_4, tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0));
2137
- tmp0_mapTo_0.a(tmp$ret$28);
2271
+ var tmp_3 = tmp_2;
2272
+ var tmp0_elvis_lhs = tmp1_safe_receiver.u1l_1;
2273
+ tmp$ret$27 = new Request(new Content(tmp_1, tmp_3, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
2274
+ tmp0_mapTo_0.a(tmp$ret$27);
2138
2275
  }
2139
- tmp$ret$29 = tmp0_mapTo_0;
2140
- tmp$ret$30 = tmp$ret$29;
2141
- tmp_1 = tmp$ret$30;
2276
+ tmp$ret$28 = tmp0_mapTo_0;
2277
+ tmp$ret$29 = tmp$ret$28;
2278
+ tmp_0 = tmp$ret$29;
2142
2279
  }
2143
- tmp$ret$31 = tmp_1;
2144
- tmp$ret$32 = tmp$ret$31;
2145
- tmp_0 = tmp$ret$32;
2280
+ tmp$ret$30 = tmp_0;
2281
+ tmp$ret$31 = tmp$ret$30;
2282
+ tmp = tmp$ret$31;
2146
2283
  }
2147
- var tmp2_elvis_lhs = tmp_0;
2284
+ var tmp2_elvis_lhs = tmp;
2148
2285
  var requests = tmp2_elvis_lhs == null ? listOf(new Request(null)) : tmp2_elvis_lhs;
2149
- var tmp$ret$45;
2286
+ var tmp$ret$44;
2150
2287
  // Inline function 'kotlin.collections.flatMap' call
2151
- var tmp$ret$33;
2288
+ var tmp$ret$32;
2152
2289
  // Inline function 'kotlin.collections.orEmpty' call
2153
- var tmp10_orEmpty = operation.o1k_1;
2154
- var tmp0_elvis_lhs_1 = tmp10_orEmpty;
2155
- tmp$ret$33 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
2156
- var tmp12_flatMap = tmp$ret$33;
2157
- var tmp$ret$44;
2290
+ var tmp9_orEmpty = operation.u1k_1;
2291
+ var tmp0_elvis_lhs_0 = tmp9_orEmpty;
2292
+ tmp$ret$32 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
2293
+ var tmp11_flatMap = tmp$ret$32;
2294
+ var tmp$ret$43;
2158
2295
  // Inline function 'kotlin.collections.flatMapTo' call
2159
- var tmp11_flatMapTo = ArrayList_init_$Create$();
2160
- var tmp$ret$34;
2296
+ var tmp10_flatMapTo = ArrayList_init_$Create$();
2297
+ var tmp$ret$33;
2161
2298
  // Inline function 'kotlin.collections.iterator' call
2162
- tmp$ret$34 = tmp12_flatMap.u().c();
2163
- var tmp0_iterator_8 = tmp$ret$34;
2299
+ tmp$ret$33 = tmp11_flatMap.u().c();
2300
+ var tmp0_iterator_8 = tmp$ret$33;
2164
2301
  while (tmp0_iterator_8.d()) {
2165
2302
  var element_3 = tmp0_iterator_8.e();
2166
- var tmp$ret$43;
2303
+ var tmp$ret$42;
2167
2304
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
2168
- var tmp$ret$35;
2305
+ var tmp$ret$34;
2169
2306
  // Inline function 'kotlin.collections.component1' call
2170
- tmp$ret$35 = element_3.v().q1n_1;
2171
- var status = tmp$ret$35;
2172
- var tmp$ret$36;
2307
+ tmp$ret$34 = element_3.v().w1n_1;
2308
+ var status = tmp$ret$34;
2309
+ var tmp$ret$35;
2173
2310
  // Inline function 'kotlin.collections.component2' call
2174
- tmp$ret$36 = element_3.w();
2175
- var res = tmp$ret$36;
2176
- var tmp0_safe_receiver_1 = resolve_6(res, $this).v1n_1;
2177
- var tmp_5;
2311
+ tmp$ret$35 = element_3.w();
2312
+ var res = tmp$ret$35;
2313
+ var tmp0_safe_receiver_1 = resolve_6(res, $this).b1o_1;
2314
+ var tmp_4;
2178
2315
  if (tmp0_safe_receiver_1 == null) {
2179
- tmp_5 = null;
2316
+ tmp_4 = null;
2180
2317
  } else {
2181
- var tmp$ret$42;
2182
- // Inline function 'kotlin.collections.map' call
2183
2318
  var tmp$ret$41;
2319
+ // Inline function 'kotlin.collections.map' call
2320
+ var tmp$ret$40;
2184
2321
  // Inline function 'kotlin.collections.mapTo' call
2185
2322
  var tmp0_mapTo_1 = ArrayList_init_$Create$_0(tmp0_safe_receiver_1.f());
2186
- var tmp$ret$37;
2323
+ var tmp$ret$36;
2187
2324
  // Inline function 'kotlin.collections.iterator' call
2188
- tmp$ret$37 = tmp0_safe_receiver_1.u().c();
2189
- var tmp0_iterator_9 = tmp$ret$37;
2325
+ tmp$ret$36 = tmp0_safe_receiver_1.u().c();
2326
+ var tmp0_iterator_9 = tmp$ret$36;
2190
2327
  while (tmp0_iterator_9.d()) {
2191
2328
  var item_4 = tmp0_iterator_9.e();
2192
- var tmp$ret$40;
2329
+ var tmp$ret$39;
2193
2330
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
2194
- var tmp$ret$38;
2331
+ var tmp$ret$37;
2195
2332
  // Inline function 'kotlin.collections.component1' call
2196
- tmp$ret$38 = item_4.v().r1l_1;
2197
- var contentType = tmp$ret$38;
2198
- var tmp$ret$39;
2333
+ tmp$ret$37 = item_4.v().x1l_1;
2334
+ var contentType = tmp$ret$37;
2335
+ var tmp$ret$38;
2199
2336
  // Inline function 'kotlin.collections.component2' call
2200
- tmp$ret$39 = item_4.w();
2201
- var media = tmp$ret$39;
2202
- var tmp_6 = _StatusCode___get_value__impl__we50mu_0(status);
2203
- var tmp_7 = _MediaType___get_value__impl__wy58mp(contentType);
2204
- var schema_0 = media.u1l_1;
2205
- var tmp_8;
2337
+ tmp$ret$38 = item_4.w();
2338
+ var media = tmp$ret$38;
2339
+ var tmp_5 = _StatusCode___get_value__impl__we50mu_0(status);
2340
+ var tmp_6 = _MediaType___get_value__impl__wy58mp(contentType);
2341
+ var schema_0 = media.a1m_1;
2342
+ var tmp_7;
2206
2343
  if (schema_0 instanceof ReferenceObject_0) {
2207
- tmp_8 = toReference_1(schema_0, $this);
2344
+ tmp_7 = toReference_1(schema_0, $this);
2208
2345
  } else {
2209
2346
  if (schema_0 instanceof SchemaObject_0) {
2210
- tmp_8 = toReference_2(schema_0, $this, Common_getInstance().z1s([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
2347
+ tmp_7 = toReference_2(schema_0, $this, Common_getInstance().f1t([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
2211
2348
  } else {
2212
2349
  if (schema_0 == null) {
2213
2350
  throw new NotImplementedError();
@@ -2216,96 +2353,100 @@
2216
2353
  }
2217
2354
  }
2218
2355
  }
2219
- var tmp_9 = tmp_8;
2220
- var tmp0_safe_receiver_2 = media.u1l_1;
2356
+ var tmp_8 = tmp_7;
2357
+ var tmp0_safe_receiver_2 = media.a1m_1;
2221
2358
  var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : resolve_3(tmp0_safe_receiver_2, $this);
2222
- var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.d1m_1;
2223
- tmp$ret$40 = new Response(tmp_6, new Content(tmp_7, tmp_9, tmp2_elvis_lhs_0 == null ? false : tmp2_elvis_lhs_0));
2224
- tmp0_mapTo_1.a(tmp$ret$40);
2359
+ var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.j1m_1;
2360
+ tmp$ret$39 = new Response(tmp_5, new Content(tmp_6, tmp_8, tmp2_elvis_lhs_0 == null ? false : tmp2_elvis_lhs_0));
2361
+ tmp0_mapTo_1.a(tmp$ret$39);
2225
2362
  }
2226
- tmp$ret$41 = tmp0_mapTo_1;
2227
- tmp$ret$42 = tmp$ret$41;
2228
- tmp_5 = tmp$ret$42;
2363
+ tmp$ret$40 = tmp0_mapTo_1;
2364
+ tmp$ret$41 = tmp$ret$40;
2365
+ tmp_4 = tmp$ret$41;
2229
2366
  }
2230
- var tmp1_elvis_lhs = tmp_5;
2231
- tmp$ret$43 = tmp1_elvis_lhs == null ? listOf(new Response(_StatusCode___get_value__impl__we50mu_0(status), null)) : tmp1_elvis_lhs;
2232
- var list = tmp$ret$43;
2233
- addAll(tmp11_flatMapTo, list);
2234
- }
2235
- tmp$ret$44 = tmp11_flatMapTo;
2236
- tmp$ret$45 = tmp$ret$44;
2237
- var responses = tmp$ret$45;
2238
- tmp$ret$46 = new Endpoint(name, method, segments, query, headers, cookies, requests, responses);
2239
- tmp0_mapTo.a(tmp$ret$46);
2240
- }
2241
- tmp$ret$47 = tmp0_mapTo;
2367
+ var tmp1_elvis_lhs = tmp_4;
2368
+ tmp$ret$42 = tmp1_elvis_lhs == null ? listOf(new Response(_StatusCode___get_value__impl__we50mu_0(status), null)) : tmp1_elvis_lhs;
2369
+ var list = tmp$ret$42;
2370
+ addAll(tmp10_flatMapTo, list);
2371
+ }
2372
+ tmp$ret$43 = tmp10_flatMapTo;
2373
+ tmp$ret$44 = tmp$ret$43;
2374
+ var responses = tmp$ret$44;
2375
+ tmp$ret$45 = new Endpoint(name, method, segments, query, headers, cookies, requests, responses);
2376
+ tmp0_mapTo.a(tmp$ret$45);
2377
+ }
2378
+ tmp$ret$46 = tmp0_mapTo;
2379
+ tmp$ret$47 = tmp$ret$46;
2242
2380
  tmp$ret$48 = tmp$ret$47;
2243
- tmp$ret$49 = tmp$ret$48;
2244
- var list_0 = tmp$ret$49;
2381
+ var list_0 = tmp$ret$48;
2245
2382
  addAll(tmp0_flatMapTo, list_0);
2246
2383
  }
2247
- tmp$ret$50 = tmp0_flatMapTo;
2248
- tmp$ret$51 = tmp$ret$50;
2249
- return tmp$ret$51;
2384
+ tmp$ret$49 = tmp0_flatMapTo;
2385
+ tmp$ret$50 = tmp$ret$49;
2386
+ return tmp$ret$50;
2250
2387
  }
2251
2388
  function parseRequestBody_0($this) {
2252
- return flatMapRequests_0($this.r1t_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
2389
+ return flatMapRequests_0($this.v1t_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
2253
2390
  }
2254
2391
  function parseResponseBody_0($this) {
2255
- return flatMapResponses_0($this.r1t_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
2392
+ return flatMapResponses_0($this.v1t_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
2256
2393
  }
2257
2394
  function parseComponents($this) {
2258
- var tmp0_safe_receiver = $this.r1t_1.h1j_1;
2259
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1o_1;
2260
- var tmp;
2261
- if (tmp1_safe_receiver == null) {
2262
- tmp = null;
2263
- } else {
2264
- var tmp$ret$3;
2265
- // Inline function 'kotlin.collections.flatMap' call
2266
- var tmp$ret$2;
2267
- // Inline function 'kotlin.collections.flatMapTo' call
2268
- var tmp0_flatMapTo = ArrayList_init_$Create$();
2269
- var tmp$ret$0;
2270
- // Inline function 'kotlin.collections.iterator' call
2271
- tmp$ret$0 = tmp1_safe_receiver.u().c();
2272
- var tmp0_iterator = tmp$ret$0;
2273
- while (tmp0_iterator.d()) {
2274
- var element = tmp0_iterator.e();
2275
- var tmp$ret$1;
2276
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
2277
- tmp$ret$1 = flatten_2(element.w(), $this, Common_getInstance().z1s([element.v()]));
2278
- var list = tmp$ret$1;
2279
- addAll(tmp0_flatMapTo, list);
2395
+ var tmp$ret$8;
2396
+ // Inline function 'kotlin.collections.flatMap' call
2397
+ var tmp$ret$4;
2398
+ // Inline function 'kotlin.collections.filter' call
2399
+ var tmp$ret$0;
2400
+ // Inline function 'kotlin.collections.orEmpty' call
2401
+ var tmp0_safe_receiver = $this.v1t_1.n1j_1;
2402
+ var tmp0_orEmpty = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g1o_1;
2403
+ var tmp0_elvis_lhs = tmp0_orEmpty;
2404
+ tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
2405
+ var tmp2_filter = tmp$ret$0;
2406
+ var tmp$ret$3;
2407
+ // Inline function 'kotlin.collections.filterTo' call
2408
+ var tmp1_filterTo = LinkedHashMap_init_$Create$();
2409
+ var tmp$ret$1;
2410
+ // Inline function 'kotlin.collections.iterator' call
2411
+ tmp$ret$1 = tmp2_filter.u().c();
2412
+ var tmp0_iterator = tmp$ret$1;
2413
+ while (tmp0_iterator.d()) {
2414
+ var element = tmp0_iterator.e();
2415
+ var tmp$ret$2;
2416
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
2417
+ var s = element.w();
2418
+ var tmp;
2419
+ if (s instanceof SchemaObject_0) {
2420
+ tmp = s.z1m_1 == null;
2421
+ } else {
2422
+ tmp = false;
2423
+ }
2424
+ tmp$ret$2 = tmp;
2425
+ if (tmp$ret$2) {
2426
+ tmp1_filterTo.k3(element.v(), element.w());
2280
2427
  }
2281
- tmp$ret$2 = tmp0_flatMapTo;
2282
- tmp$ret$3 = tmp$ret$2;
2283
- tmp = tmp$ret$3;
2284
2428
  }
2285
- var tmp2_safe_receiver = tmp;
2286
- var tmp_0;
2287
- if (tmp2_safe_receiver == null) {
2288
- tmp_0 = null;
2289
- } else {
2429
+ tmp$ret$3 = tmp1_filterTo;
2430
+ tmp$ret$4 = tmp$ret$3;
2431
+ var tmp4_flatMap = tmp$ret$4;
2432
+ var tmp$ret$7;
2433
+ // Inline function 'kotlin.collections.flatMapTo' call
2434
+ var tmp3_flatMapTo = ArrayList_init_$Create$();
2435
+ var tmp$ret$5;
2436
+ // Inline function 'kotlin.collections.iterator' call
2437
+ tmp$ret$5 = tmp4_flatMap.u().c();
2438
+ var tmp0_iterator_0 = tmp$ret$5;
2439
+ while (tmp0_iterator_0.d()) {
2440
+ var element_0 = tmp0_iterator_0.e();
2290
2441
  var tmp$ret$6;
2291
- // Inline function 'kotlin.collections.map' call
2292
- var tmp$ret$5;
2293
- // Inline function 'kotlin.collections.mapTo' call
2294
- var tmp1_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_safe_receiver, 10));
2295
- var tmp0_iterator_0 = tmp2_safe_receiver.c();
2296
- while (tmp0_iterator_0.d()) {
2297
- var item = tmp0_iterator_0.e();
2298
- var tmp$ret$4;
2299
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
2300
- tmp$ret$4 = new Type(item.s1t_1, new Shape(item.t1t_1));
2301
- tmp1_mapTo.a(tmp$ret$4);
2302
- }
2303
- tmp$ret$5 = tmp1_mapTo;
2304
- tmp$ret$6 = tmp$ret$5;
2305
- tmp_0 = tmp$ret$6;
2442
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
2443
+ tmp$ret$6 = flatten_2(element_0.w(), $this, Common_getInstance().f1t([element_0.v()]));
2444
+ var list = tmp$ret$6;
2445
+ addAll(tmp3_flatMapTo, list);
2306
2446
  }
2307
- var tmp3_elvis_lhs = tmp_0;
2308
- return tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs;
2447
+ tmp$ret$7 = tmp3_flatMapTo;
2448
+ tmp$ret$8 = tmp$ret$7;
2449
+ return tmp$ret$8;
2309
2450
  }
2310
2451
  function toSegments_0(_this__u8e3s4, $this, parameters) {
2311
2452
  var tmp$ret$11;
@@ -2340,7 +2481,7 @@
2340
2481
  var element = tmp0_iterator_0.e();
2341
2482
  var tmp$ret$2;
2342
2483
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
2343
- tmp$ret$2 = element.h1l_1 === param;
2484
+ tmp$ret$2 = element.n1l_1 === param;
2344
2485
  if (tmp$ret$2) {
2345
2486
  tmp$ret$3 = element;
2346
2487
  break $l$block;
@@ -2350,7 +2491,7 @@
2350
2491
  }
2351
2492
  tmp$ret$4 = tmp$ret$3;
2352
2493
  var tmp0_safe_receiver = tmp$ret$4;
2353
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d1l_1;
2494
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j1l_1;
2354
2495
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_3(tmp1_safe_receiver, $this);
2355
2496
  var tmp_0;
2356
2497
  if (tmp2_safe_receiver == null) {
@@ -2361,7 +2502,7 @@
2361
2502
  // Inline function 'kotlin.contracts.contract' call
2362
2503
  var tmp$ret$5;
2363
2504
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
2364
- var tmp0_safe_receiver_0 = tmp2_safe_receiver.m1m_1;
2505
+ var tmp0_safe_receiver_0 = tmp2_safe_receiver.s1m_1;
2365
2506
  tmp$ret$5 = tmp0_safe_receiver_0 == null ? null : toPrimitive_0(tmp0_safe_receiver_0, $this);
2366
2507
  tmp$ret$6 = tmp$ret$5;
2367
2508
  tmp_0 = tmp$ret$6;
@@ -2400,7 +2541,7 @@
2400
2541
  return tmp$ret$11;
2401
2542
  }
2402
2543
  function toName_0(_this__u8e3s4, $this, segments, method) {
2403
- var tmp0_safe_receiver = _this__u8e3s4.l1k_1;
2544
+ var tmp0_safe_receiver = _this__u8e3s4.r1k_1;
2404
2545
  var tmp;
2405
2546
  if (tmp0_safe_receiver == null) {
2406
2547
  tmp = null;
@@ -2410,7 +2551,7 @@
2410
2551
  // Inline function 'kotlin.contracts.contract' call
2411
2552
  var tmp$ret$0;
2412
2553
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
2413
- tmp$ret$0 = Common_getInstance().z1s([tmp0_safe_receiver]);
2554
+ tmp$ret$0 = Common_getInstance().f1t([tmp0_safe_receiver]);
2414
2555
  tmp$ret$1 = tmp$ret$0;
2415
2556
  tmp = tmp$ret$1;
2416
2557
  }
@@ -2432,7 +2573,7 @@
2432
2573
  return tmp_0;
2433
2574
  }
2434
2575
  function resolveParameters_1(_this__u8e3s4, $this) {
2435
- var tmp0_safe_receiver = _this__u8e3s4.m1k_1;
2576
+ var tmp0_safe_receiver = _this__u8e3s4.s1k_1;
2436
2577
  var tmp;
2437
2578
  if (tmp0_safe_receiver == null) {
2438
2579
  tmp = null;
@@ -2480,7 +2621,7 @@
2480
2621
  return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
2481
2622
  }
2482
2623
  function resolveParameters_2(_this__u8e3s4, $this) {
2483
- var tmp0_safe_receiver = _this__u8e3s4.d1k_1;
2624
+ var tmp0_safe_receiver = _this__u8e3s4.j1k_1;
2484
2625
  var tmp;
2485
2626
  if (tmp0_safe_receiver == null) {
2486
2627
  tmp = null;
@@ -2528,8 +2669,8 @@
2528
2669
  return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
2529
2670
  }
2530
2671
  function resolveParameterObject_0(_this__u8e3s4, $this) {
2531
- var tmp0_safe_receiver = $this.r1t_1.h1j_1;
2532
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c1o_1;
2672
+ var tmp0_safe_receiver = $this.v1t_1.n1j_1;
2673
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i1o_1;
2533
2674
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
2534
2675
  var tmp;
2535
2676
  if (tmp2_safe_receiver == null) {
@@ -2558,8 +2699,8 @@
2558
2699
  return tmp;
2559
2700
  }
2560
2701
  function resolveSchemaObject_0(_this__u8e3s4, $this) {
2561
- var tmp0_safe_receiver = $this.r1t_1.h1j_1;
2562
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1o_1;
2702
+ var tmp0_safe_receiver = $this.v1t_1.n1j_1;
2703
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g1o_1;
2563
2704
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
2564
2705
  var tmp;
2565
2706
  if (tmp2_safe_receiver == null) {
@@ -2588,7 +2729,7 @@
2588
2729
  var tmp3_elvis_lhs = tmp;
2589
2730
  var tmp_1;
2590
2731
  if (tmp3_elvis_lhs == null) {
2591
- var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.a1m_1);
2732
+ var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.g1m_1);
2592
2733
  throw IllegalStateException_init_$Create$(toString(tmp0_error));
2593
2734
  } else {
2594
2735
  tmp_1 = tmp3_elvis_lhs;
@@ -2596,8 +2737,8 @@
2596
2737
  return tmp_1;
2597
2738
  }
2598
2739
  function resolveRequestBodyObject(_this__u8e3s4, $this) {
2599
- var tmp0_safe_receiver = $this.r1t_1.h1j_1;
2600
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e1o_1;
2740
+ var tmp0_safe_receiver = $this.v1t_1.n1j_1;
2741
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k1o_1;
2601
2742
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
2602
2743
  var tmp;
2603
2744
  if (tmp2_safe_receiver == null) {
@@ -2626,7 +2767,7 @@
2626
2767
  var tmp3_elvis_lhs = tmp;
2627
2768
  var tmp_1;
2628
2769
  if (tmp3_elvis_lhs == null) {
2629
- var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.a1m_1);
2770
+ var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.g1m_1);
2630
2771
  throw IllegalStateException_init_$Create$(toString(tmp0_error));
2631
2772
  } else {
2632
2773
  tmp_1 = tmp3_elvis_lhs;
@@ -2634,8 +2775,8 @@
2634
2775
  return tmp_1;
2635
2776
  }
2636
2777
  function resolveResponseObject_0(_this__u8e3s4, $this) {
2637
- var tmp0_safe_receiver = $this.r1t_1.h1j_1;
2638
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b1o_1;
2778
+ var tmp0_safe_receiver = $this.v1t_1.n1j_1;
2779
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h1o_1;
2639
2780
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
2640
2781
  var tmp;
2641
2782
  if (tmp2_safe_receiver == null) {
@@ -2664,7 +2805,7 @@
2664
2805
  var tmp3_elvis_lhs = tmp;
2665
2806
  var tmp_1;
2666
2807
  if (tmp3_elvis_lhs == null) {
2667
- var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.a1m_1);
2808
+ var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.g1m_1);
2668
2809
  throw IllegalStateException_init_$Create$(toString(tmp0_error));
2669
2810
  } else {
2670
2811
  tmp_1 = tmp3_elvis_lhs;
@@ -2732,196 +2873,269 @@
2732
2873
  return tmp;
2733
2874
  }
2734
2875
  function flatten_1(_this__u8e3s4, $this, name) {
2735
- var tmp0_subject = _this__u8e3s4.m1m_1;
2736
- var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
2737
2876
  var tmp;
2738
- switch (tmp0) {
2739
- case -1:
2740
- case 5:
2741
- var tmp$ret$6;
2742
- // Inline function 'kotlin.collections.flatMap' call
2743
- var tmp$ret$0;
2744
- // Inline function 'kotlin.collections.orEmpty' call
2745
- var tmp0_orEmpty = _this__u8e3s4.s1m_1;
2746
- var tmp0_elvis_lhs = tmp0_orEmpty;
2747
- tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
2748
- var tmp2_flatMap = tmp$ret$0;
2749
- var tmp$ret$5;
2750
- // Inline function 'kotlin.collections.flatMapTo' call
2751
- var tmp1_flatMapTo = ArrayList_init_$Create$();
2877
+ if (!(_this__u8e3s4.z1m_1 == null)) {
2878
+ var tmp0_subject = _this__u8e3s4.z1m_1;
2879
+ var tmp_0;
2880
+ if (tmp0_subject instanceof BooleanObject_0) {
2881
+ tmp_0 = emptyList();
2882
+ } else {
2883
+ tmp_0 = flatten_1(resolve_4(ensureNotNull(_this__u8e3s4.z1m_1), $this), $this, name);
2884
+ }
2885
+ tmp = tmp_0;
2886
+ } else if (!(_this__u8e3s4.u1m_1 == null)) {
2887
+ throw new NotImplementedError('An operation is not implemented: oneOf is not implemented');
2888
+ } else if (!(_this__u8e3s4.v1m_1 == null)) {
2889
+ throw new NotImplementedError('An operation is not implemented: anyOf is not implemented');
2890
+ } else if (!(_this__u8e3s4.t1m_1 == null)) {
2891
+ var tmp$ret$3;
2892
+ // Inline function 'kotlin.collections.flatMap' call
2893
+ var tmp$ret$0;
2894
+ // Inline function 'kotlin.collections.orEmpty' call
2895
+ var tmp0_orEmpty = _this__u8e3s4.t1m_1;
2896
+ var tmp0_elvis_lhs = tmp0_orEmpty;
2897
+ tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
2898
+ var tmp2_flatMap = tmp$ret$0;
2899
+ var tmp$ret$2;
2900
+ // Inline function 'kotlin.collections.flatMapTo' call
2901
+ var tmp1_flatMapTo = ArrayList_init_$Create$();
2902
+ var tmp0_iterator = tmp2_flatMap.c();
2903
+ while (tmp0_iterator.d()) {
2904
+ var element = tmp0_iterator.e();
2752
2905
  var tmp$ret$1;
2753
- // Inline function 'kotlin.collections.iterator' call
2754
- tmp$ret$1 = tmp2_flatMap.u().c();
2755
- var tmp0_iterator = tmp$ret$1;
2756
- while (tmp0_iterator.d()) {
2757
- var element = tmp0_iterator.e();
2758
- var tmp$ret$4;
2759
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
2760
- var tmp$ret$2;
2761
- // Inline function 'kotlin.collections.component1' call
2762
- tmp$ret$2 = element.v();
2763
- var key = tmp$ret$2;
2764
- var tmp$ret$3;
2765
- // Inline function 'kotlin.collections.component2' call
2766
- tmp$ret$3 = element.w();
2767
- var value = tmp$ret$3;
2768
- var tmp0_subject_0 = value;
2769
- var tmp_0;
2906
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
2907
+ tmp$ret$1 = toField_1(resolve_3(element, $this), $this, name);
2908
+ var list = tmp$ret$1;
2909
+ addAll(tmp1_flatMapTo, list);
2910
+ }
2911
+ tmp$ret$2 = tmp1_flatMapTo;
2912
+ tmp$ret$3 = tmp$ret$2;
2913
+ var tmp_1 = listOf(new Type(name, new Shape(tmp$ret$3)));
2914
+ var tmp$ret$13;
2915
+ // Inline function 'kotlin.collections.flatMap' call
2916
+ var tmp4_flatMap = ensureNotNull(_this__u8e3s4.t1m_1);
2917
+ var tmp$ret$12;
2918
+ // Inline function 'kotlin.collections.flatMapTo' call
2919
+ var tmp3_flatMapTo = ArrayList_init_$Create$();
2920
+ var tmp0_iterator_0 = tmp4_flatMap.c();
2921
+ while (tmp0_iterator_0.d()) {
2922
+ var element_0 = tmp0_iterator_0.e();
2923
+ var tmp$ret$11;
2924
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
2925
+ var tmp0_subject_0 = element_0;
2926
+ var tmp_2;
2927
+ if (tmp0_subject_0 instanceof ReferenceObject_0) {
2928
+ tmp_2 = emptyList();
2929
+ } else {
2770
2930
  if (tmp0_subject_0 instanceof SchemaObject_0) {
2771
- tmp_0 = flatten_1(value, $this, Common_getInstance().z1s([name, key]));
2772
- } else {
2773
- if (tmp0_subject_0 instanceof ReferenceObject_0) {
2774
- tmp_0 = emptyList();
2775
- } else {
2776
- noWhenBranchMatchedException();
2777
- }
2778
- }
2779
- tmp$ret$4 = tmp_0;
2780
- var list = tmp$ret$4;
2781
- addAll(tmp1_flatMapTo, list);
2782
- }
2783
- tmp$ret$5 = tmp1_flatMapTo;
2784
- tmp$ret$6 = tmp$ret$5;
2785
-
2786
- var fields = tmp$ret$6;
2787
- var tmp1_subject = _this__u8e3s4.t1m_1;
2788
- var tmp_1;
2789
- if (tmp1_subject == null) {
2790
- var tmp2_safe_receiver = _this__u8e3s4.s1m_1;
2791
- var tmp_2;
2792
- if (tmp2_safe_receiver == null) {
2793
- tmp_2 = null;
2794
- } else {
2795
- var tmp$ret$12;
2796
- // Inline function 'kotlin.collections.map' call
2797
- var tmp$ret$11;
2798
- // Inline function 'kotlin.collections.mapTo' call
2799
- var tmp3_mapTo = ArrayList_init_$Create$_0(tmp2_safe_receiver.f());
2800
- var tmp$ret$7;
2931
+ var tmp$ret$10;
2932
+ // Inline function 'kotlin.collections.flatMap' call
2933
+ var tmp$ret$4;
2934
+ // Inline function 'kotlin.collections.orEmpty' call
2935
+ var tmp0_orEmpty_0 = element_0.y1m_1;
2936
+ var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
2937
+ tmp$ret$4 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
2938
+ var tmp2_flatMap_0 = tmp$ret$4;
2939
+ var tmp$ret$9;
2940
+ // Inline function 'kotlin.collections.flatMapTo' call
2941
+ var tmp1_flatMapTo_0 = ArrayList_init_$Create$();
2942
+ var tmp$ret$5;
2801
2943
  // Inline function 'kotlin.collections.iterator' call
2802
- tmp$ret$7 = tmp2_safe_receiver.u().c();
2803
- var tmp0_iterator_0 = tmp$ret$7;
2804
- while (tmp0_iterator_0.d()) {
2805
- var item = tmp0_iterator_0.e();
2806
- var tmp$ret$10;
2807
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
2944
+ tmp$ret$5 = tmp2_flatMap_0.u().c();
2945
+ var tmp0_iterator_1 = tmp$ret$5;
2946
+ while (tmp0_iterator_1.d()) {
2947
+ var element_1 = tmp0_iterator_1.e();
2808
2948
  var tmp$ret$8;
2949
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>.<anonymous>' call
2950
+ var tmp$ret$6;
2809
2951
  // Inline function 'kotlin.collections.component1' call
2810
- tmp$ret$8 = item.v();
2811
- var key_0 = tmp$ret$8;
2812
- var tmp$ret$9;
2952
+ tmp$ret$6 = element_1.v();
2953
+ var key = tmp$ret$6;
2954
+ var tmp$ret$7;
2813
2955
  // Inline function 'kotlin.collections.component2' call
2814
- tmp$ret$9 = item.w();
2815
- var value_0 = tmp$ret$9;
2816
- var tmp0_subject_1 = value_0;
2956
+ tmp$ret$7 = element_1.w();
2957
+ var value = tmp$ret$7;
2958
+ var tmp0_subject_1 = value;
2817
2959
  var tmp_3;
2818
- if (tmp0_subject_1 instanceof SchemaObject_0) {
2819
- var tmp_4 = new Identifier(key_0);
2820
- var tmp_5 = toReference_2(value_0, $this, Common_getInstance().z1s([name, key_0]));
2821
- var tmp1_safe_receiver = _this__u8e3s4.l1n_1;
2822
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : contains(tmp1_safe_receiver, key_0);
2823
- tmp_3 = new Field(tmp_4, tmp_5, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
2960
+ if (tmp0_subject_1 instanceof ReferenceObject_0) {
2961
+ tmp_3 = emptyList();
2824
2962
  } else {
2825
- if (tmp0_subject_1 instanceof ReferenceObject_0) {
2826
- var tmp_6 = new Identifier(key_0);
2827
- var tmp_7 = toReference_1(value_0, $this);
2828
- var tmp3_safe_receiver = _this__u8e3s4.l1n_1;
2829
- var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : contains(tmp3_safe_receiver, key_0);
2830
- tmp_3 = new Field(tmp_6, tmp_7, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
2963
+ if (tmp0_subject_1 instanceof SchemaObject_0) {
2964
+ tmp_3 = flatten_1(value, $this, Common_getInstance().f1t([name, key]));
2831
2965
  } else {
2832
2966
  noWhenBranchMatchedException();
2833
2967
  }
2834
2968
  }
2835
- tmp$ret$10 = tmp_3;
2836
- tmp3_mapTo.a(tmp$ret$10);
2969
+ tmp$ret$8 = tmp_3;
2970
+ var list_0 = tmp$ret$8;
2971
+ addAll(tmp1_flatMapTo_0, list_0);
2837
2972
  }
2838
- tmp$ret$11 = tmp3_mapTo;
2839
- tmp$ret$12 = tmp$ret$11;
2840
- tmp_2 = tmp$ret$12;
2973
+ tmp$ret$9 = tmp1_flatMapTo_0;
2974
+ tmp$ret$10 = tmp$ret$9;
2975
+ tmp_2 = tmp$ret$10;
2976
+ } else {
2977
+ noWhenBranchMatchedException();
2841
2978
  }
2842
- var tmp3_elvis_lhs = tmp_2;
2843
- tmp_1 = listOf(new SimpleSchema_0(name, tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs));
2844
- } else {
2845
- tmp_1 = emptyList();
2846
2979
  }
2847
-
2848
- var schema = tmp_1;
2849
- tmp = plus(schema, fields);
2850
- break;
2851
- case 4:
2852
- var tmp4_safe_receiver = _this__u8e3s4.r1m_1;
2853
- var tmp_8;
2854
- if (tmp4_safe_receiver == null) {
2855
- tmp_8 = null;
2980
+ tmp$ret$11 = tmp_2;
2981
+ var list_1 = tmp$ret$11;
2982
+ addAll(tmp3_flatMapTo, list_1);
2983
+ }
2984
+ tmp$ret$12 = tmp3_flatMapTo;
2985
+ tmp$ret$13 = tmp$ret$12;
2986
+ tmp = plus(tmp_1, tmp$ret$13);
2987
+ } else if (!(_this__u8e3s4.s1n_1 == null)) {
2988
+ var tmp$ret$18;
2989
+ // Inline function 'kotlin.let' call
2990
+ var tmp$ret$16;
2991
+ // Inline function 'kotlin.collections.map' call
2992
+ var tmp6_map = ensureNotNull(_this__u8e3s4.s1n_1);
2993
+ var tmp$ret$15;
2994
+ // Inline function 'kotlin.collections.mapTo' call
2995
+ var tmp5_mapTo = ArrayList_init_$Create$_0(tmp6_map.length);
2996
+ var indexedObject = tmp6_map;
2997
+ var inductionVariable = 0;
2998
+ var last = indexedObject.length;
2999
+ while (inductionVariable < last) {
3000
+ var item = indexedObject[inductionVariable];
3001
+ inductionVariable = inductionVariable + 1 | 0;
3002
+ var tmp$ret$14;
3003
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
3004
+ var tmp0_subject_2 = item;
3005
+ var tmp_4;
3006
+ if (tmp0_subject_2 instanceof JsonPrimitive) {
3007
+ tmp_4 = item.q13();
2856
3008
  } else {
2857
- var tmp$ret$14;
2858
- // Inline function 'kotlin.let' call
2859
- // Inline function 'kotlin.contracts.contract' call
2860
- var tmp$ret$13;
2861
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
2862
- var tmp0_subject_2 = tmp4_safe_receiver;
2863
- var tmp_9;
2864
- if (tmp0_subject_2 instanceof ReferenceObject_0) {
2865
- tmp_9 = emptyList();
3009
+ if (tmp0_subject_2 instanceof JsonArray) {
3010
+ throw new NotImplementedError();
2866
3011
  } else {
2867
- if (tmp0_subject_2 instanceof SchemaObject_0) {
2868
- tmp_9 = flatten_1(tmp4_safe_receiver, $this, Common_getInstance().z1s([name, 'array']));
3012
+ if (tmp0_subject_2 instanceof JsonObject) {
3013
+ throw new NotImplementedError();
2869
3014
  } else {
2870
3015
  noWhenBranchMatchedException();
2871
3016
  }
2872
3017
  }
2873
- tmp$ret$13 = tmp_9;
2874
- tmp$ret$14 = tmp$ret$13;
2875
- tmp_8 = tmp$ret$14;
2876
3018
  }
3019
+ tmp$ret$14 = tmp_4;
3020
+ tmp5_mapTo.a(tmp$ret$14);
3021
+ }
3022
+ tmp$ret$15 = tmp5_mapTo;
3023
+ tmp$ret$16 = tmp$ret$15;
3024
+ var tmp7_let = toSet(tmp$ret$16);
3025
+ // Inline function 'kotlin.contracts.contract' call
3026
+ var tmp$ret$17;
3027
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
3028
+ tmp$ret$17 = listOf(new Enum(name, tmp7_let));
3029
+ tmp$ret$18 = tmp$ret$17;
3030
+ tmp = tmp$ret$18;
3031
+ } else {
3032
+ var tmp1_subject = _this__u8e3s4.s1m_1;
3033
+ var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.q4_1;
3034
+ var tmp_5;
3035
+ switch (tmp0) {
3036
+ case -1:
3037
+ case 5:
3038
+ var tmp$ret$25;
3039
+ // Inline function 'kotlin.collections.flatMap' call
3040
+ var tmp$ret$19;
3041
+ // Inline function 'kotlin.collections.orEmpty' call
3042
+ var tmp8_orEmpty = _this__u8e3s4.y1m_1;
3043
+ var tmp0_elvis_lhs_1 = tmp8_orEmpty;
3044
+ tmp$ret$19 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
3045
+ var tmp10_flatMap = tmp$ret$19;
3046
+ var tmp$ret$24;
3047
+ // Inline function 'kotlin.collections.flatMapTo' call
3048
+ var tmp9_flatMapTo = ArrayList_init_$Create$();
3049
+ var tmp$ret$20;
3050
+ // Inline function 'kotlin.collections.iterator' call
3051
+ tmp$ret$20 = tmp10_flatMap.u().c();
3052
+ var tmp0_iterator_2 = tmp$ret$20;
3053
+ while (tmp0_iterator_2.d()) {
3054
+ var element_2 = tmp0_iterator_2.e();
3055
+ var tmp$ret$23;
3056
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
3057
+ var tmp$ret$21;
3058
+ // Inline function 'kotlin.collections.component1' call
3059
+ tmp$ret$21 = element_2.v();
3060
+ var key_0 = tmp$ret$21;
3061
+ var tmp$ret$22;
3062
+ // Inline function 'kotlin.collections.component2' call
3063
+ tmp$ret$22 = element_2.w();
3064
+ var value_0 = tmp$ret$22;
3065
+ var tmp0_subject_3 = value_0;
3066
+ var tmp_6;
3067
+ if (tmp0_subject_3 instanceof SchemaObject_0) {
3068
+ tmp_6 = flatten_1(value_0, $this, Common_getInstance().f1t([name, key_0]));
3069
+ } else {
3070
+ if (tmp0_subject_3 instanceof ReferenceObject_0) {
3071
+ tmp_6 = emptyList();
3072
+ } else {
3073
+ noWhenBranchMatchedException();
3074
+ }
3075
+ }
3076
+ tmp$ret$23 = tmp_6;
3077
+ var list_2 = tmp$ret$23;
3078
+ addAll(tmp9_flatMapTo, list_2);
3079
+ }
3080
+ tmp$ret$24 = tmp9_flatMapTo;
3081
+ tmp$ret$25 = tmp$ret$24;
2877
3082
 
2878
- var tmp5_elvis_lhs = tmp_8;
2879
- tmp = tmp5_elvis_lhs == null ? emptyList() : tmp5_elvis_lhs;
2880
- break;
2881
- default:
2882
- tmp = emptyList();
2883
- break;
3083
+ var fields = tmp$ret$25;
3084
+ var schema = listOf(new Type(name, new Shape(toField_1(_this__u8e3s4, $this, name))));
3085
+ tmp_5 = plus(schema, fields);
3086
+ break;
3087
+ case 4:
3088
+ var tmp2_safe_receiver = _this__u8e3s4.x1m_1;
3089
+ var tmp_7;
3090
+ if (tmp2_safe_receiver == null) {
3091
+ tmp_7 = null;
3092
+ } else {
3093
+ var tmp$ret$27;
3094
+ // Inline function 'kotlin.let' call
3095
+ // Inline function 'kotlin.contracts.contract' call
3096
+ var tmp$ret$26;
3097
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
3098
+ var tmp0_subject_4 = tmp2_safe_receiver;
3099
+ var tmp_8;
3100
+ if (tmp0_subject_4 instanceof ReferenceObject_0) {
3101
+ tmp_8 = emptyList();
3102
+ } else {
3103
+ if (tmp0_subject_4 instanceof SchemaObject_0) {
3104
+ tmp_8 = flatten_1(tmp2_safe_receiver, $this, Common_getInstance().f1t([name, 'array']));
3105
+ } else {
3106
+ noWhenBranchMatchedException();
3107
+ }
3108
+ }
3109
+ tmp$ret$26 = tmp_8;
3110
+ tmp$ret$27 = tmp$ret$26;
3111
+ tmp_7 = tmp$ret$27;
3112
+ }
3113
+
3114
+ var tmp3_elvis_lhs = tmp_7;
3115
+ tmp_5 = tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs;
3116
+ break;
3117
+ default:
3118
+ tmp_5 = emptyList();
3119
+ break;
3120
+ }
3121
+ tmp = tmp_5;
2884
3122
  }
2885
3123
  return tmp;
2886
3124
  }
2887
3125
  function flatten_2(_this__u8e3s4, $this, name) {
2888
3126
  var tmp0_subject = _this__u8e3s4;
2889
3127
  var tmp;
2890
- if (tmp0_subject instanceof SchemaObject_0) {
2891
- tmp = flatten_1(_this__u8e3s4, $this, name);
3128
+ if (tmp0_subject instanceof ReferenceObject_0) {
3129
+ tmp = emptyList();
2892
3130
  } else {
2893
- if (tmp0_subject instanceof ReferenceObject_0) {
2894
- tmp = flatten_1(resolveSchemaObject_0(_this__u8e3s4, $this).h3_1, $this, name);
3131
+ if (tmp0_subject instanceof SchemaObject_0) {
3132
+ tmp = flatten_1(_this__u8e3s4, $this, name);
2895
3133
  } else {
2896
3134
  noWhenBranchMatchedException();
2897
3135
  }
2898
3136
  }
2899
3137
  return tmp;
2900
3138
  }
2901
- function SimpleSchema_0(name, properties) {
2902
- this.s1t_1 = name;
2903
- this.t1t_1 = properties;
2904
- }
2905
- protoOf(SimpleSchema_0).toString = function () {
2906
- return 'SimpleSchema(name=' + this.s1t_1 + ', properties=' + this.t1t_1 + ')';
2907
- };
2908
- protoOf(SimpleSchema_0).hashCode = function () {
2909
- var result = getStringHashCode(this.s1t_1);
2910
- result = imul(result, 31) + hashCode(this.t1t_1) | 0;
2911
- return result;
2912
- };
2913
- protoOf(SimpleSchema_0).equals = function (other) {
2914
- if (this === other)
2915
- return true;
2916
- if (!(other instanceof SimpleSchema_0))
2917
- return false;
2918
- var tmp0_other_with_cast = other instanceof SimpleSchema_0 ? other : THROW_CCE();
2919
- if (!(this.s1t_1 === tmp0_other_with_cast.s1t_1))
2920
- return false;
2921
- if (!equals(this.t1t_1, tmp0_other_with_cast.t1t_1))
2922
- return false;
2923
- return true;
2924
- };
2925
3139
  function toReference_1(_this__u8e3s4, $this) {
2926
3140
  var tmp$ret$1;
2927
3141
  // Inline function 'kotlin.let' call
@@ -2931,123 +3145,111 @@
2931
3145
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
2932
3146
  var referencingObject = tmp0_let.i3();
2933
3147
  var schema = tmp0_let.j3();
2934
- var additionalProperties = schema.t1m_1;
2935
3148
  var tmp;
2936
- if (additionalProperties instanceof BooleanObject_0) {
2937
- throw new NotImplementedError();
2938
- } else {
2939
- if (additionalProperties instanceof ReferenceObject_0) {
2940
- tmp = new Custom(Common_getInstance().z1s([getReference_0(additionalProperties, $this)]), false, true);
3149
+ if (!(schema.z1m_1 == null)) {
3150
+ var additionalProperties = ensureNotNull(schema.z1m_1);
3151
+ var tmp_0;
3152
+ if (additionalProperties instanceof BooleanObject_0) {
3153
+ tmp_0 = new Any(false, true);
2941
3154
  } else {
2942
- if (additionalProperties instanceof SchemaObject_0) {
2943
- tmp = new Custom(Common_getInstance().z1s([getReference_0(referencingObject, $this)]), false, true);
3155
+ if (additionalProperties instanceof ReferenceObject_0) {
3156
+ tmp_0 = toMap_1(toReference_1(additionalProperties, $this));
2944
3157
  } else {
2945
- if (additionalProperties == null) {
2946
- var tmp0_subject = schema.m1m_1;
2947
- var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
2948
- var tmp_0;
2949
- if (tmp0 === 4) {
2950
- var items = schema.r1m_1;
2951
- var tmp_1;
2952
- if (items instanceof ReferenceObject_0) {
2953
- tmp_1 = new Custom(Common_getInstance().z1s([getReference_0(items, $this)]), true);
2954
- } else {
2955
- if (items instanceof SchemaObject_0) {
2956
- tmp_1 = new Custom(Common_getInstance().z1s([getReference_0(referencingObject, $this), 'Array']), true);
2957
- } else {
2958
- if (items == null) {
2959
- var tmp0_error = 'When schema is of type array items cannot be null for name: ' + new Ref_0(_this__u8e3s4.a1m_1);
2960
- throw IllegalStateException_init_$Create$(toString(tmp0_error));
2961
- } else {
2962
- noWhenBranchMatchedException();
2963
- }
2964
- }
2965
- }
2966
- tmp_0 = tmp_1;
2967
- } else {
2968
- tmp_0 = new Custom(Common_getInstance().z1s([getReference_0(referencingObject, $this)]), false);
2969
- }
2970
- tmp = tmp_0;
3158
+ if (additionalProperties instanceof SchemaObject_0) {
3159
+ tmp_0 = new Custom(Common_getInstance().f1t([getReference_0(referencingObject, $this)]), false, true);
2971
3160
  } else {
2972
3161
  noWhenBranchMatchedException();
2973
3162
  }
2974
3163
  }
2975
3164
  }
3165
+ tmp = tmp_0;
3166
+ } else if (!(schema.s1n_1 == null)) {
3167
+ tmp = new Custom(Common_getInstance().f1t([getReference_0(referencingObject, $this)]), false, false);
3168
+ } else if (isPrimitive_0(schema.s1m_1)) {
3169
+ tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.s1m_1), $this), false, false);
3170
+ } else {
3171
+ var tmp0_subject = schema.s1m_1;
3172
+ var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
3173
+ var tmp_1;
3174
+ if (tmp0 === 4) {
3175
+ var items = schema.x1m_1;
3176
+ var tmp_2;
3177
+ if (items instanceof ReferenceObject_0) {
3178
+ tmp_2 = new Custom(Common_getInstance().f1t([getReference_0(items, $this)]), true);
3179
+ } else {
3180
+ if (items instanceof SchemaObject_0) {
3181
+ tmp_2 = new Custom(Common_getInstance().f1t([getReference_0(referencingObject, $this), 'Array']), true);
3182
+ } else {
3183
+ if (items == null) {
3184
+ var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.g1m_1);
3185
+ throw IllegalStateException_init_$Create$(toString(tmp0_error));
3186
+ } else {
3187
+ noWhenBranchMatchedException();
3188
+ }
3189
+ }
3190
+ }
3191
+ tmp_1 = tmp_2;
3192
+ } else {
3193
+ tmp_1 = new Custom(Common_getInstance().f1t([getReference_0(referencingObject, $this)]), false);
3194
+ }
3195
+ tmp = tmp_1;
2976
3196
  }
2977
3197
  tmp$ret$0 = tmp;
2978
3198
  tmp$ret$1 = tmp$ret$0;
2979
3199
  return tmp$ret$1;
2980
3200
  }
2981
3201
  function toReference_2(_this__u8e3s4, $this, name) {
2982
- var type = _this__u8e3s4.m1m_1;
2983
- var tmp0 = type == null ? -1 : type.q4_1;
2984
3202
  var tmp;
2985
- switch (tmp0) {
2986
- case 0:
2987
- case 1:
2988
- case 2:
2989
- case 3:
2990
- tmp = new Primitive(toPrimitive_0(type, $this), false);
2991
- break;
2992
- case -1:
2993
- case 5:
2994
- var tmp0_safe_receiver = _this__u8e3s4.t1m_1;
2995
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_4(tmp0_safe_receiver, $this);
2996
- var additionalPropertiesType = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m1m_1;
2997
- var tmp0_0 = additionalPropertiesType == null ? -1 : additionalPropertiesType.q4_1;
2998
- switch (tmp0_0) {
2999
- case 0:
3000
- case 2:
3001
- case 1:
3002
- case 3:
3003
- tmp = new Primitive(toPrimitive_0(additionalPropertiesType, $this), false, !(_this__u8e3s4.t1m_1 == null));
3004
- break;
3005
- default:
3006
- tmp = new Custom(name, false, !(_this__u8e3s4.t1m_1 == null));
3007
- break;
3008
- }
3203
+ if (!(_this__u8e3s4.s1n_1 == null)) {
3204
+ tmp = new Custom(name, false, !(_this__u8e3s4.z1m_1 == null));
3205
+ } else {
3206
+ var type = _this__u8e3s4.s1m_1;
3207
+ var tmp0 = type == null ? -1 : type.q4_1;
3208
+ var tmp_0;
3209
+ switch (tmp0) {
3210
+ case 0:
3211
+ case 1:
3212
+ case 2:
3213
+ case 3:
3214
+ tmp_0 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.z1m_1 == null));
3215
+ break;
3216
+ case -1:
3217
+ case 5:
3218
+ var tmp_1;
3219
+ var tmp_2 = _this__u8e3s4.z1m_1;
3220
+ if (tmp_2 instanceof BooleanObject_0) {
3221
+ tmp_1 = new Any(false, !(_this__u8e3s4.z1m_1 == null));
3222
+ } else {
3223
+ tmp_1 = new Custom(name, false, !(_this__u8e3s4.z1m_1 == null));
3224
+ }
3009
3225
 
3010
- break;
3011
- case 4:
3012
- var tmp2_safe_receiver = _this__u8e3s4.r1m_1;
3013
- var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : resolve_3(tmp2_safe_receiver, $this);
3014
- var type_0 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.m1m_1;
3015
- var tmp0_1 = type_0 == null ? -1 : type_0.q4_1;
3016
- var tmp_0;
3017
- switch (tmp0_1) {
3018
- case 0:
3019
- case 1:
3020
- case 2:
3021
- case 3:
3022
- tmp_0 = new Primitive(toPrimitive_0(type_0, $this), true);
3023
- break;
3024
- default:
3025
- var it = _this__u8e3s4.r1m_1;
3026
- var tmp_1;
3027
- if (it instanceof ReferenceObject_0) {
3028
- tmp_1 = toReference_1(it, $this).fl(VOID, true);
3226
+ tmp_0 = tmp_1;
3227
+ break;
3228
+ case 4:
3229
+ var it = _this__u8e3s4.x1m_1;
3230
+ var tmp_3;
3231
+ if (it instanceof ReferenceObject_0) {
3232
+ tmp_3 = toIterable_0(toReference_1(it, $this));
3233
+ } else {
3234
+ if (it instanceof SchemaObject_0) {
3235
+ tmp_3 = toIterable_0(toReference_2(it, $this, name));
3029
3236
  } else {
3030
- if (it instanceof SchemaObject_0) {
3031
- tmp_1 = toReference_2(it, $this, name);
3237
+ if (it == null) {
3238
+ var tmp0_error = 'When schema is of type array items cannot be null for name: ' + name;
3239
+ throw IllegalStateException_init_$Create$(toString(tmp0_error));
3032
3240
  } else {
3033
- if (it == null) {
3034
- var tmp0_error = 'When schema is of type array items cannot be null for name: ' + name;
3035
- throw IllegalStateException_init_$Create$(toString(tmp0_error));
3036
- } else {
3037
- noWhenBranchMatchedException();
3038
- }
3241
+ noWhenBranchMatchedException();
3039
3242
  }
3040
3243
  }
3244
+ }
3041
3245
 
3042
- tmp_0 = tmp_1;
3043
- break;
3044
- }
3045
-
3046
- tmp = tmp_0;
3047
- break;
3048
- default:
3049
- noWhenBranchMatchedException();
3050
- break;
3246
+ tmp_0 = tmp_3;
3247
+ break;
3248
+ default:
3249
+ noWhenBranchMatchedException();
3250
+ break;
3251
+ }
3252
+ tmp = tmp_0;
3051
3253
  }
3052
3254
  return tmp;
3053
3255
  }
@@ -3055,7 +3257,7 @@
3055
3257
  var tmp$ret$2;
3056
3258
  // Inline function 'kotlin.collections.associateWith' call
3057
3259
  var tmp0_associateWith = values();
3058
- var result = LinkedHashMap_init_$Create$(coerceAtLeast(mapCapacity(tmp0_associateWith.length), 16));
3260
+ var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(tmp0_associateWith.length), 16));
3059
3261
  var tmp$ret$1;
3060
3262
  // Inline function 'kotlin.collections.associateWithTo' call
3061
3263
  var indexedObject = tmp0_associateWith;
@@ -3071,28 +3273,28 @@
3071
3273
  var tmp;
3072
3274
  switch (tmp0) {
3073
3275
  case 0:
3074
- tmp = _this__u8e3s4.u1j_1;
3276
+ tmp = _this__u8e3s4.a1k_1;
3075
3277
  break;
3076
3278
  case 1:
3077
- tmp = _this__u8e3s4.w1j_1;
3279
+ tmp = _this__u8e3s4.c1k_1;
3078
3280
  break;
3079
3281
  case 2:
3080
- tmp = _this__u8e3s4.v1j_1;
3282
+ tmp = _this__u8e3s4.b1k_1;
3081
3283
  break;
3082
3284
  case 3:
3083
- tmp = _this__u8e3s4.x1j_1;
3285
+ tmp = _this__u8e3s4.d1k_1;
3084
3286
  break;
3085
3287
  case 4:
3086
- tmp = _this__u8e3s4.y1j_1;
3288
+ tmp = _this__u8e3s4.e1k_1;
3087
3289
  break;
3088
3290
  case 5:
3089
- tmp = _this__u8e3s4.z1j_1;
3291
+ tmp = _this__u8e3s4.f1k_1;
3090
3292
  break;
3091
3293
  case 6:
3092
- tmp = _this__u8e3s4.a1k_1;
3294
+ tmp = _this__u8e3s4.g1k_1;
3093
3295
  break;
3094
3296
  case 7:
3095
- tmp = _this__u8e3s4.b1k_1;
3297
+ tmp = _this__u8e3s4.h1k_1;
3096
3298
  break;
3097
3299
  default:
3098
3300
  noWhenBranchMatchedException();
@@ -3106,7 +3308,15 @@
3106
3308
  return filterNotNullValues_0(tmp$ret$2);
3107
3309
  }
3108
3310
  function getReference_0(_this__u8e3s4, $this) {
3109
- return split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.a1m_1), ['/']).h(3);
3311
+ var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.g1m_1), ['/']), 3);
3312
+ var tmp;
3313
+ if (tmp0_elvis_lhs == null) {
3314
+ var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.g1m_1);
3315
+ throw IllegalStateException_init_$Create$(toString(tmp0_error));
3316
+ } else {
3317
+ tmp = tmp0_elvis_lhs;
3318
+ }
3319
+ return tmp;
3110
3320
  }
3111
3321
  function toPrimitive_0(_this__u8e3s4, $this) {
3112
3322
  var tmp0_subject = _this__u8e3s4;
@@ -3130,18 +3340,72 @@
3130
3340
  }
3131
3341
  return tmp;
3132
3342
  }
3133
- function toField_0(_this__u8e3s4, $this) {
3343
+ function toField_1(_this__u8e3s4, $this, name) {
3344
+ var tmp$ret$6;
3345
+ // Inline function 'kotlin.collections.map' call
3346
+ var tmp$ret$0;
3347
+ // Inline function 'kotlin.collections.orEmpty' call
3348
+ var tmp0_orEmpty = _this__u8e3s4.y1m_1;
3349
+ var tmp0_elvis_lhs = tmp0_orEmpty;
3350
+ tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
3351
+ var tmp2_map = tmp$ret$0;
3352
+ var tmp$ret$5;
3353
+ // Inline function 'kotlin.collections.mapTo' call
3354
+ var tmp1_mapTo = ArrayList_init_$Create$_0(tmp2_map.f());
3355
+ var tmp$ret$1;
3356
+ // Inline function 'kotlin.collections.iterator' call
3357
+ tmp$ret$1 = tmp2_map.u().c();
3358
+ var tmp0_iterator = tmp$ret$1;
3359
+ while (tmp0_iterator.d()) {
3360
+ var item = tmp0_iterator.e();
3361
+ var tmp$ret$4;
3362
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
3363
+ var tmp$ret$2;
3364
+ // Inline function 'kotlin.collections.component1' call
3365
+ tmp$ret$2 = item.v();
3366
+ var key = tmp$ret$2;
3367
+ var tmp$ret$3;
3368
+ // Inline function 'kotlin.collections.component2' call
3369
+ tmp$ret$3 = item.w();
3370
+ var value = tmp$ret$3;
3371
+ var tmp0_subject = value;
3372
+ var tmp;
3373
+ if (tmp0_subject instanceof SchemaObject_0) {
3374
+ var tmp_0 = new Identifier(key);
3375
+ var tmp_1 = toReference_2(value, $this, Common_getInstance().f1t([name, key]));
3376
+ var tmp1_safe_receiver = _this__u8e3s4.r1n_1;
3377
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : contains(tmp1_safe_receiver, key);
3378
+ tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
3379
+ } else {
3380
+ if (tmp0_subject instanceof ReferenceObject_0) {
3381
+ var tmp_2 = new Identifier(key);
3382
+ var tmp_3 = new Custom(getReference_0(value, $this), false);
3383
+ var tmp3_safe_receiver = _this__u8e3s4.r1n_1;
3384
+ var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : contains(tmp3_safe_receiver, key);
3385
+ tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
3386
+ } else {
3387
+ noWhenBranchMatchedException();
3388
+ }
3389
+ }
3390
+ tmp$ret$4 = tmp;
3391
+ tmp1_mapTo.a(tmp$ret$4);
3392
+ }
3393
+ tmp$ret$5 = tmp1_mapTo;
3394
+ tmp$ret$6 = tmp$ret$5;
3395
+ return tmp$ret$6;
3396
+ }
3397
+ function toField_2(_this__u8e3s4, $this) {
3134
3398
  var tmp$ret$1;
3135
3399
  // Inline function 'kotlin.let' call
3136
- var tmp0_subject = _this__u8e3s4.d1l_1;
3400
+ var tmp0_subject = _this__u8e3s4.j1l_1;
3137
3401
  var tmp;
3138
3402
  if (tmp0_subject instanceof ReferenceObject_0) {
3139
- var tmp_0 = _this__u8e3s4.d1l_1;
3403
+ var tmp_0 = _this__u8e3s4.j1l_1;
3140
3404
  tmp = new Custom(getReference_0(tmp_0 instanceof ReferenceObject_0 ? tmp_0 : THROW_CCE(), $this), false);
3141
3405
  } else {
3142
3406
  if (tmp0_subject instanceof SchemaObject_0) {
3143
- var tmp_1 = _this__u8e3s4.d1l_1;
3144
- var type = (tmp_1 instanceof SchemaObject_0 ? tmp_1 : THROW_CCE()).m1m_1;
3407
+ var tmp_1 = _this__u8e3s4.j1l_1;
3408
+ var type = (tmp_1 instanceof SchemaObject_0 ? tmp_1 : THROW_CCE()).s1m_1;
3145
3409
  var tmp0 = type == null ? -1 : type.q4_1;
3146
3410
  var tmp_2;
3147
3411
  switch (tmp0) {
@@ -3174,26 +3438,26 @@
3174
3438
  // Inline function 'kotlin.contracts.contract' call
3175
3439
  var tmp$ret$0;
3176
3440
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
3177
- var tmp_3 = new Identifier(_this__u8e3s4.h1l_1);
3178
- var tmp0_elvis_lhs = _this__u8e3s4.x1k_1;
3441
+ var tmp_3 = new Identifier(_this__u8e3s4.n1l_1);
3442
+ var tmp0_elvis_lhs = _this__u8e3s4.d1l_1;
3179
3443
  tmp$ret$0 = new Field(tmp_3, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
3180
3444
  tmp$ret$1 = tmp$ret$0;
3181
3445
  return tmp$ret$1;
3182
3446
  }
3183
3447
  function FlattenRequest_0(path, pathItem, method, operation) {
3184
- this.u1t_1 = path;
3185
- this.v1t_1 = pathItem;
3186
- this.w1t_1 = method;
3187
- this.x1t_1 = operation;
3448
+ this.w1t_1 = path;
3449
+ this.x1t_1 = pathItem;
3450
+ this.y1t_1 = method;
3451
+ this.z1t_1 = operation;
3188
3452
  }
3189
3453
  protoOf(FlattenRequest_0).toString = function () {
3190
- return 'FlattenRequest(path=' + new Path_0(this.u1t_1) + ', pathItem=' + this.v1t_1 + ', method=' + this.w1t_1 + ', operation=' + this.x1t_1 + ')';
3454
+ return 'FlattenRequest(path=' + new Path_0(this.w1t_1) + ', pathItem=' + this.x1t_1 + ', method=' + this.y1t_1 + ', operation=' + this.z1t_1 + ')';
3191
3455
  };
3192
3456
  protoOf(FlattenRequest_0).hashCode = function () {
3193
- var result = Path__hashCode_impl_go73kd_0(this.u1t_1);
3194
- result = imul(result, 31) + this.v1t_1.hashCode() | 0;
3195
- result = imul(result, 31) + this.w1t_1.hashCode() | 0;
3457
+ var result = Path__hashCode_impl_go73kd_0(this.w1t_1);
3196
3458
  result = imul(result, 31) + this.x1t_1.hashCode() | 0;
3459
+ result = imul(result, 31) + this.y1t_1.hashCode() | 0;
3460
+ result = imul(result, 31) + this.z1t_1.hashCode() | 0;
3197
3461
  return result;
3198
3462
  };
3199
3463
  protoOf(FlattenRequest_0).equals = function (other) {
@@ -3202,13 +3466,13 @@
3202
3466
  if (!(other instanceof FlattenRequest_0))
3203
3467
  return false;
3204
3468
  var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
3205
- if (!(this.u1t_1 === tmp0_other_with_cast.u1t_1))
3469
+ if (!(this.w1t_1 === tmp0_other_with_cast.w1t_1))
3206
3470
  return false;
3207
- if (!this.v1t_1.equals(tmp0_other_with_cast.v1t_1))
3471
+ if (!this.x1t_1.equals(tmp0_other_with_cast.x1t_1))
3208
3472
  return false;
3209
- if (!this.w1t_1.equals(tmp0_other_with_cast.w1t_1))
3473
+ if (!this.y1t_1.equals(tmp0_other_with_cast.y1t_1))
3210
3474
  return false;
3211
- if (!this.x1t_1.equals(tmp0_other_with_cast.x1t_1))
3475
+ if (!this.z1t_1.equals(tmp0_other_with_cast.z1t_1))
3212
3476
  return false;
3213
3477
  return true;
3214
3478
  };
@@ -3217,7 +3481,7 @@
3217
3481
  // Inline function 'kotlin.collections.flatMap' call
3218
3482
  var tmp$ret$11;
3219
3483
  // Inline function 'kotlin.collections.flatMap' call
3220
- var tmp1_flatMap = _this__u8e3s4.g1j_1;
3484
+ var tmp1_flatMap = _this__u8e3s4.m1j_1;
3221
3485
  var tmp$ret$10;
3222
3486
  // Inline function 'kotlin.collections.flatMapTo' call
3223
3487
  var tmp0_flatMapTo = ArrayList_init_$Create$();
@@ -3231,7 +3495,7 @@
3231
3495
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
3232
3496
  var tmp$ret$1;
3233
3497
  // Inline function 'kotlin.collections.component1' call
3234
- tmp$ret$1 = element.v().o1j_1;
3498
+ tmp$ret$1 = element.v().u1j_1;
3235
3499
  var path = tmp$ret$1;
3236
3500
  var tmp$ret$2;
3237
3501
  // Inline function 'kotlin.collections.component2' call
@@ -3288,23 +3552,23 @@
3288
3552
  return tmp$ret$14;
3289
3553
  }
3290
3554
  function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
3291
- this.y1t_1 = path;
3292
- this.z1t_1 = pathItem;
3293
- this.a1u_1 = method;
3294
- this.b1u_1 = operation;
3295
- this.c1u_1 = statusCode;
3296
- this.d1u_1 = response;
3555
+ this.a1u_1 = path;
3556
+ this.b1u_1 = pathItem;
3557
+ this.c1u_1 = method;
3558
+ this.d1u_1 = operation;
3559
+ this.e1u_1 = statusCode;
3560
+ this.f1u_1 = response;
3297
3561
  }
3298
3562
  protoOf(FlattenResponse_0).toString = function () {
3299
- 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 + ')';
3563
+ return 'FlattenResponse(path=' + new Path_0(this.a1u_1) + ', pathItem=' + this.b1u_1 + ', method=' + this.c1u_1 + ', operation=' + this.d1u_1 + ', statusCode=' + new StatusCode_0(this.e1u_1) + ', response=' + this.f1u_1 + ')';
3300
3564
  };
3301
3565
  protoOf(FlattenResponse_0).hashCode = function () {
3302
- var result = Path__hashCode_impl_go73kd_0(this.y1t_1);
3303
- result = imul(result, 31) + this.z1t_1.hashCode() | 0;
3304
- result = imul(result, 31) + this.a1u_1.hashCode() | 0;
3566
+ var result = Path__hashCode_impl_go73kd_0(this.a1u_1);
3305
3567
  result = imul(result, 31) + this.b1u_1.hashCode() | 0;
3306
- result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.c1u_1) | 0;
3307
- result = imul(result, 31) + hashCode(this.d1u_1) | 0;
3568
+ result = imul(result, 31) + this.c1u_1.hashCode() | 0;
3569
+ result = imul(result, 31) + this.d1u_1.hashCode() | 0;
3570
+ result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.e1u_1) | 0;
3571
+ result = imul(result, 31) + hashCode(this.f1u_1) | 0;
3308
3572
  return result;
3309
3573
  };
3310
3574
  protoOf(FlattenResponse_0).equals = function (other) {
@@ -3313,17 +3577,17 @@
3313
3577
  if (!(other instanceof FlattenResponse_0))
3314
3578
  return false;
3315
3579
  var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
3316
- if (!(this.y1t_1 === tmp0_other_with_cast.y1t_1))
3580
+ if (!(this.a1u_1 === tmp0_other_with_cast.a1u_1))
3317
3581
  return false;
3318
- if (!this.z1t_1.equals(tmp0_other_with_cast.z1t_1))
3582
+ if (!this.b1u_1.equals(tmp0_other_with_cast.b1u_1))
3319
3583
  return false;
3320
- if (!this.a1u_1.equals(tmp0_other_with_cast.a1u_1))
3584
+ if (!this.c1u_1.equals(tmp0_other_with_cast.c1u_1))
3321
3585
  return false;
3322
- if (!this.b1u_1.equals(tmp0_other_with_cast.b1u_1))
3586
+ if (!this.d1u_1.equals(tmp0_other_with_cast.d1u_1))
3323
3587
  return false;
3324
- if (!(this.c1u_1 === tmp0_other_with_cast.c1u_1))
3588
+ if (!(this.e1u_1 === tmp0_other_with_cast.e1u_1))
3325
3589
  return false;
3326
- if (!equals(this.d1u_1, tmp0_other_with_cast.d1u_1))
3590
+ if (!equals(this.f1u_1, tmp0_other_with_cast.f1u_1))
3327
3591
  return false;
3328
3592
  return true;
3329
3593
  };
@@ -3332,7 +3596,7 @@
3332
3596
  // Inline function 'kotlin.collections.flatMap' call
3333
3597
  var tmp$ret$18;
3334
3598
  // Inline function 'kotlin.collections.flatMap' call
3335
- var tmp1_flatMap = _this__u8e3s4.g1j_1;
3599
+ var tmp1_flatMap = _this__u8e3s4.m1j_1;
3336
3600
  var tmp$ret$17;
3337
3601
  // Inline function 'kotlin.collections.flatMapTo' call
3338
3602
  var tmp0_flatMapTo = ArrayList_init_$Create$();
@@ -3346,7 +3610,7 @@
3346
3610
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
3347
3611
  var tmp$ret$1;
3348
3612
  // Inline function 'kotlin.collections.component1' call
3349
- tmp$ret$1 = element.v().o1j_1;
3613
+ tmp$ret$1 = element.v().u1j_1;
3350
3614
  var path = tmp$ret$1;
3351
3615
  var tmp$ret$2;
3352
3616
  // Inline function 'kotlin.collections.component2' call
@@ -3376,7 +3640,7 @@
3376
3640
  var operation = tmp$ret$5;
3377
3641
  var tmp$ret$12;
3378
3642
  // Inline function 'kotlin.collections.orEmpty' call
3379
- var tmp0_safe_receiver = operation.o1k_1;
3643
+ var tmp0_safe_receiver = operation.u1k_1;
3380
3644
  var tmp;
3381
3645
  if (tmp0_safe_receiver == null) {
3382
3646
  tmp = null;
@@ -3396,7 +3660,7 @@
3396
3660
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
3397
3661
  var tmp$ret$7;
3398
3662
  // Inline function 'kotlin.collections.component1' call
3399
- tmp$ret$7 = item.v().q1n_1;
3663
+ tmp$ret$7 = item.v().w1n_1;
3400
3664
  var statusCode = tmp$ret$7;
3401
3665
  var tmp$ret$8;
3402
3666
  // Inline function 'kotlin.collections.component2' call
@@ -3443,20 +3707,20 @@
3443
3707
  }
3444
3708
  function OpenApiParser$parseRequestBody$lambda_0(this$0) {
3445
3709
  return function (req) {
3446
- var parameters = plus(resolveParameters_2(req.v1t_1, this$0), resolveParameters_1(req.x1t_1, this$0));
3447
- var segments = toSegments_0(req.u1t_1, this$0, parameters);
3448
- var name = toName_0(req.x1t_1, this$0, segments, req.w1t_1);
3449
- var tmp$ret$8;
3710
+ var parameters = plus(resolveParameters_2(req.x1t_1, this$0), resolveParameters_1(req.z1t_1, this$0));
3711
+ var segments = toSegments_0(req.w1t_1, this$0, parameters);
3712
+ var name = toName_0(req.z1t_1, this$0, segments, req.y1t_1);
3713
+ var tmp$ret$6;
3450
3714
  // Inline function 'kotlin.collections.flatMap' call
3451
3715
  var tmp$ret$0;
3452
3716
  // Inline function 'kotlin.collections.orEmpty' call
3453
- var tmp0_safe_receiver = req.x1t_1.n1k_1;
3717
+ var tmp0_safe_receiver = req.z1t_1.t1k_1;
3454
3718
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, this$0);
3455
- var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n1l_1;
3719
+ var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t1l_1;
3456
3720
  var tmp0_elvis_lhs = tmp0_orEmpty;
3457
3721
  tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
3458
3722
  var tmp2_flatMap = tmp$ret$0;
3459
- var tmp$ret$7;
3723
+ var tmp$ret$5;
3460
3724
  // Inline function 'kotlin.collections.flatMapTo' call
3461
3725
  var tmp1_flatMapTo = ArrayList_init_$Create$();
3462
3726
  var tmp$ret$1;
@@ -3465,39 +3729,32 @@
3465
3729
  var tmp0_iterator = tmp$ret$1;
3466
3730
  while (tmp0_iterator.d()) {
3467
3731
  var element = tmp0_iterator.e();
3468
- var tmp$ret$6;
3732
+ var tmp$ret$4;
3469
3733
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
3470
3734
  var tmp$ret$2;
3471
3735
  // Inline function 'kotlin.collections.component2' call
3472
3736
  tmp$ret$2 = element.w();
3473
3737
  var mediaObject = tmp$ret$2;
3474
- var schema = mediaObject.u1l_1;
3738
+ var schema = mediaObject.a1m_1;
3475
3739
  var tmp;
3476
3740
  if (schema instanceof SchemaObject_0) {
3477
- var tmp0_subject = schema.m1m_1;
3741
+ var tmp0_subject = schema.s1m_1;
3478
3742
  var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
3479
3743
  var tmp_0;
3480
3744
  switch (tmp0) {
3481
3745
  case -1:
3482
3746
  case 5:
3483
- var tmp$ret$5;
3484
- // Inline function 'kotlin.collections.map' call
3485
- var tmp1_map = flatten_1(schema, this$0, Common_getInstance().z1s([name, 'RequestBody']));
3486
- var tmp$ret$4;
3487
- // Inline function 'kotlin.collections.mapTo' call
3488
- var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
3489
- var tmp0_iterator_0 = tmp1_map.c();
3490
- while (tmp0_iterator_0.d()) {
3491
- var item = tmp0_iterator_0.e();
3492
- var tmp$ret$3;
3493
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
3494
- tmp$ret$3 = new Type(item.s1t_1, new Shape(item.t1t_1));
3495
- tmp0_mapTo.a(tmp$ret$3);
3496
- }
3497
- tmp$ret$4 = tmp0_mapTo;
3498
- tmp$ret$5 = tmp$ret$4;
3747
+ tmp_0 = flatten_1(schema, this$0, Common_getInstance().f1t([name, 'RequestBody']));
3748
+ break;
3749
+ case 4:
3750
+ var tmp$ret$3;
3751
+ // Inline function 'kotlin.collections.orEmpty' call
3752
+ var tmp1_safe_receiver_0 = schema.x1m_1;
3753
+ var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().f1t([name, 'RequestBody']));
3754
+ var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
3755
+ tmp$ret$3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
3499
3756
 
3500
- tmp_0 = tmp$ret$5;
3757
+ tmp_0 = tmp$ret$3;
3501
3758
  break;
3502
3759
  default:
3503
3760
  tmp_0 = emptyList();
@@ -3515,103 +3772,85 @@
3515
3772
  }
3516
3773
  }
3517
3774
  }
3518
- tmp$ret$6 = tmp;
3519
- var list = tmp$ret$6;
3775
+ tmp$ret$4 = tmp;
3776
+ var list = tmp$ret$4;
3520
3777
  addAll(tmp1_flatMapTo, list);
3521
3778
  }
3522
- tmp$ret$7 = tmp1_flatMapTo;
3523
- tmp$ret$8 = tmp$ret$7;
3524
- return tmp$ret$8;
3779
+ tmp$ret$5 = tmp1_flatMapTo;
3780
+ tmp$ret$6 = tmp$ret$5;
3781
+ return tmp$ret$6;
3525
3782
  };
3526
3783
  }
3527
3784
  function OpenApiParser$parseResponseBody$lambda_0(this$0) {
3528
3785
  return function (res) {
3529
- var parameters = plus(resolveParameters_2(res.z1t_1, this$0), resolveParameters_1(res.b1u_1, this$0));
3530
- var segments = toSegments_0(res.y1t_1, this$0, parameters);
3531
- var name = toName_0(res.b1u_1, this$0, segments, res.a1u_1);
3532
- var response = res.d1u_1;
3786
+ var parameters = plus(resolveParameters_2(res.b1u_1, this$0), resolveParameters_1(res.d1u_1, this$0));
3787
+ var segments = toSegments_0(res.a1u_1, this$0, parameters);
3788
+ var name = toName_0(res.d1u_1, this$0, segments, res.c1u_1);
3789
+ var response = res.f1u_1;
3533
3790
  var tmp;
3534
- if (response instanceof ReferenceObject_0) {
3535
- tmp = emptyList();
3536
- } else {
3537
- if (response instanceof ResponseObject_0) {
3538
- var tmp$ret$8;
3539
- // Inline function 'kotlin.collections.flatMap' call
3540
- var tmp$ret$0;
3541
- // Inline function 'kotlin.collections.orEmpty' call
3542
- var tmp0_orEmpty = response.v1n_1;
3543
- var tmp0_elvis_lhs = tmp0_orEmpty;
3544
- tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
3545
- var tmp2_flatMap = tmp$ret$0;
3546
- var tmp$ret$7;
3547
- // Inline function 'kotlin.collections.flatMapTo' call
3548
- var tmp1_flatMapTo = ArrayList_init_$Create$();
3549
- var tmp$ret$1;
3550
- // Inline function 'kotlin.collections.iterator' call
3551
- tmp$ret$1 = tmp2_flatMap.u().c();
3552
- var tmp0_iterator = tmp$ret$1;
3553
- while (tmp0_iterator.d()) {
3554
- var element = tmp0_iterator.e();
3555
- var tmp$ret$6;
3556
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>' call
3557
- var tmp$ret$2;
3558
- // Inline function 'kotlin.collections.component2' call
3559
- tmp$ret$2 = element.w();
3560
- var mediaObject = tmp$ret$2;
3561
- var schema = mediaObject.u1l_1;
3562
- var tmp_0;
3563
- if (schema instanceof SchemaObject_0) {
3564
- var tmp0_subject = schema.m1m_1;
3565
- var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
3566
- var tmp_1;
3567
- switch (tmp0) {
3568
- case -1:
3569
- case 5:
3570
- var tmp$ret$5;
3571
- // Inline function 'kotlin.collections.map' call
3572
- var tmp1_safe_receiver = schema.t1m_1;
3573
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_4(tmp1_safe_receiver, this$0);
3574
- 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']));
3575
- 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;
3576
- var tmp$ret$4;
3577
- // Inline function 'kotlin.collections.mapTo' call
3578
- var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
3579
- var tmp0_iterator_0 = tmp1_map.c();
3580
- while (tmp0_iterator_0.d()) {
3581
- var item = tmp0_iterator_0.e();
3582
- var tmp$ret$3;
3583
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>.<anonymous>' call
3584
- tmp$ret$3 = new Type(item.s1t_1, new Shape(item.t1t_1));
3585
- tmp0_mapTo.a(tmp$ret$3);
3586
- }
3587
- tmp$ret$4 = tmp0_mapTo;
3588
- tmp$ret$5 = tmp$ret$4;
3791
+ if (response instanceof ResponseObject_0) {
3792
+ var tmp$ret$6;
3793
+ // Inline function 'kotlin.collections.flatMap' call
3794
+ var tmp$ret$0;
3795
+ // Inline function 'kotlin.collections.orEmpty' call
3796
+ var tmp0_orEmpty = response.b1o_1;
3797
+ var tmp0_elvis_lhs = tmp0_orEmpty;
3798
+ tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
3799
+ var tmp2_flatMap = tmp$ret$0;
3800
+ var tmp$ret$5;
3801
+ // Inline function 'kotlin.collections.flatMapTo' call
3802
+ var tmp1_flatMapTo = ArrayList_init_$Create$();
3803
+ var tmp$ret$1;
3804
+ // Inline function 'kotlin.collections.iterator' call
3805
+ tmp$ret$1 = tmp2_flatMap.u().c();
3806
+ var tmp0_iterator = tmp$ret$1;
3807
+ while (tmp0_iterator.d()) {
3808
+ var element = tmp0_iterator.e();
3809
+ var tmp$ret$4;
3810
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>' call
3811
+ var tmp$ret$2;
3812
+ // Inline function 'kotlin.collections.component2' call
3813
+ tmp$ret$2 = element.w();
3814
+ var mediaObject = tmp$ret$2;
3815
+ var schema = mediaObject.a1m_1;
3816
+ var tmp_0;
3817
+ if (schema instanceof SchemaObject_0) {
3818
+ var tmp0_subject = schema.s1m_1;
3819
+ var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
3820
+ var tmp_1;
3821
+ switch (tmp0) {
3822
+ case -1:
3823
+ case 5:
3824
+ tmp_1 = flatten_1(schema, this$0, Common_getInstance().f1t([name, _StatusCode___get_value__impl__we50mu_0(res.e1u_1), 'ResponseBody']));
3825
+ break;
3826
+ case 4:
3827
+ var tmp$ret$3;
3828
+ // Inline function 'kotlin.collections.orEmpty' call
3829
+ var tmp1_safe_receiver = schema.x1m_1;
3830
+ var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().f1t([name, _StatusCode___get_value__impl__we50mu_0(res.e1u_1), 'ResponseBody']));
3831
+ var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
3832
+ tmp$ret$3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
3589
3833
 
3590
- tmp_1 = tmp$ret$5;
3591
- break;
3592
- default:
3593
- tmp_1 = emptyList();
3594
- break;
3595
- }
3596
- tmp_0 = tmp_1;
3597
- } else {
3598
- if (schema instanceof ReferenceObject_0) {
3599
- tmp_0 = emptyList();
3600
- } else {
3601
- if (schema == null) {
3602
- tmp_0 = emptyList();
3603
- } else {
3604
- noWhenBranchMatchedException();
3605
- }
3606
- }
3834
+ tmp_1 = tmp$ret$3;
3835
+ break;
3836
+ default:
3837
+ tmp_1 = emptyList();
3838
+ break;
3607
3839
  }
3608
- tmp$ret$6 = tmp_0;
3609
- var list = tmp$ret$6;
3610
- addAll(tmp1_flatMapTo, list);
3840
+ tmp_0 = tmp_1;
3841
+ } else {
3842
+ tmp_0 = emptyList();
3611
3843
  }
3612
- tmp$ret$7 = tmp1_flatMapTo;
3613
- tmp$ret$8 = tmp$ret$7;
3614
- tmp = tmp$ret$8;
3844
+ tmp$ret$4 = tmp_0;
3845
+ var list = tmp$ret$4;
3846
+ addAll(tmp1_flatMapTo, list);
3847
+ }
3848
+ tmp$ret$5 = tmp1_flatMapTo;
3849
+ tmp$ret$6 = tmp$ret$5;
3850
+ tmp = tmp$ret$6;
3851
+ } else {
3852
+ if (response instanceof ReferenceObject_0) {
3853
+ tmp = emptyList();
3615
3854
  } else {
3616
3855
  noWhenBranchMatchedException();
3617
3856
  }
@@ -3623,10 +3862,10 @@
3623
3862
  var tmp0_subject = it;
3624
3863
  var tmp;
3625
3864
  if (tmp0_subject instanceof Literal) {
3626
- tmp = Common_getInstance().z1s([it.rj_1]);
3865
+ tmp = Common_getInstance().f1t([it.rj_1]);
3627
3866
  } else {
3628
3867
  if (tmp0_subject instanceof Param) {
3629
- tmp = Common_getInstance().z1s([it.si_1.dj_1]);
3868
+ tmp = Common_getInstance().f1t([it.si_1.dj_1]);
3630
3869
  } else {
3631
3870
  noWhenBranchMatchedException();
3632
3871
  }
@@ -3635,7 +3874,75 @@
3635
3874
  }
3636
3875
  function OpenApiParser_0(openApi) {
3637
3876
  Companion_getInstance_1();
3638
- this.r1t_1 = openApi;
3877
+ this.v1t_1 = openApi;
3878
+ }
3879
+ function toMap_1(_this__u8e3s4) {
3880
+ var tmp0_subject = _this__u8e3s4;
3881
+ var tmp;
3882
+ if (tmp0_subject instanceof Custom) {
3883
+ tmp = _this__u8e3s4.jl(VOID, VOID, true);
3884
+ } else {
3885
+ if (tmp0_subject instanceof Any) {
3886
+ tmp = _this__u8e3s4.hl(VOID, true);
3887
+ } else {
3888
+ if (tmp0_subject instanceof Primitive) {
3889
+ tmp = _this__u8e3s4.ll(VOID, VOID, true);
3890
+ } else {
3891
+ noWhenBranchMatchedException();
3892
+ }
3893
+ }
3894
+ }
3895
+ return tmp;
3896
+ }
3897
+ function isPrimitive_0(_this__u8e3s4) {
3898
+ var tmp0_subject = _this__u8e3s4;
3899
+ var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
3900
+ var tmp;
3901
+ switch (tmp0) {
3902
+ case 0:
3903
+ tmp = true;
3904
+ break;
3905
+ case 1:
3906
+ tmp = true;
3907
+ break;
3908
+ case 2:
3909
+ tmp = true;
3910
+ break;
3911
+ case 3:
3912
+ tmp = true;
3913
+ break;
3914
+ case 4:
3915
+ tmp = false;
3916
+ break;
3917
+ case 5:
3918
+ tmp = false;
3919
+ break;
3920
+ case -1:
3921
+ tmp = false;
3922
+ break;
3923
+ default:
3924
+ noWhenBranchMatchedException();
3925
+ break;
3926
+ }
3927
+ return tmp;
3928
+ }
3929
+ function toIterable_0(_this__u8e3s4) {
3930
+ var tmp0_subject = _this__u8e3s4;
3931
+ var tmp;
3932
+ if (tmp0_subject instanceof Custom) {
3933
+ tmp = _this__u8e3s4.jl(VOID, true);
3934
+ } else {
3935
+ if (tmp0_subject instanceof Any) {
3936
+ tmp = _this__u8e3s4.hl(true);
3937
+ } else {
3938
+ if (tmp0_subject instanceof Primitive) {
3939
+ tmp = _this__u8e3s4.ll(VOID, true);
3940
+ } else {
3941
+ noWhenBranchMatchedException();
3942
+ }
3943
+ }
3944
+ }
3945
+ return tmp;
3639
3946
  }
3640
3947
  function filterNotNullValues_0(_this__u8e3s4) {
3641
3948
  var tmp$ret$8;